:root {
  --color-dark: #000A1F;
  --color-dark-2: #0A1633;
  --color-accent: #0C4EE0;
  --color-accent-hover: #0a3fb8;
  --color-light-bg: #F8F9FD;
  --color-card-bg: #FEFEFE;
  --color-heading: #27304D;
  --color-text: #5B677B;
  --color-white: #FFFFFF;
  --container-w: 2400px;
  --header-h: 77px;
  --radius: 14px;
  --font: 'Manrope', 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--color-text);
  background: var(--color-white);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container {
  width: 100%;
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 24px;
  min-width: 0;
}

h1, h2, h3 { color: var(--color-heading); font-weight: 800; line-height: 1.15; }
h2 { font-size: clamp(24px, 3vw, 34px); margin: 10px 0 32px; }
h3 { font-size: 17px; margin-bottom: 6px; }

.eyebrow {
  display: inline-block;
  color: var(--color-accent);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.06em;
}
.eyebrow--section-title {
  font-size: clamp(22px, 2.6vw, 30px);
  letter-spacing: 0.03em;
  margin-bottom: 24px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 15px 26px;
  border-radius: 10px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease, color .15s ease, transform .1s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--color-accent); color: #fff; }
.btn--primary:hover { background: var(--color-accent-hover); }
.btn--outline { background: transparent; color: #fff; border-color: rgba(255,255,255,0.35); }
.btn--outline:hover { border-color: #fff; }
.btn--sm { padding: 11px 20px; font-size: 12.5px; }

/* ---------- HEADER ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-dark);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.header__inner {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 76px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-weight: 800;
  font-size: 17px;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.logo__icon { height: 34px; width: auto; flex-shrink: 0; }

.nav {
  display: flex;
  gap: 26px;
  flex: 1;
  margin-left: 12px;
}
.nav a {
  color: #cfd6e8;
  font-size: 14.5px;
  font-weight: 600;
  transition: color .15s ease;
}
.nav a:hover { color: #fff; }

.header__actions {
  display: flex;
  align-items: center;
  gap: 22px;
}
.header__phone {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  font-weight: 700;
  font-size: 14.5px;
  white-space: nowrap;
}

.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
.burger span {
  display: block;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease;
}
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- HERO ---------- */
.hero {
  position: relative;
  background: var(--color-dark);
  min-height: calc(100vh - var(--header-h));
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 64px 0 40px;
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.55;
}
.hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #000A1F 20%, rgba(0,10,31,0.75) 55%, rgba(0,10,31,0.35) 100%),
              linear-gradient(0deg, #000A1F 0%, transparent 30%);
}
.hero__inner {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0;
  padding-top: 24px;
  padding-bottom: 56px;
}
.badge {
  display: inline-block;
  background: rgba(12,78,224,0.15);
  border: 1px solid rgba(12,78,224,0.5);
  color: #6f9bff;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 8px 16px;
  border-radius: 20px;
  margin-bottom: 24px;
}
.hero__title {
  color: #fff;
  font-size: clamp(34px, 4.4vw, 68px);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -0.01em;
  margin-bottom: 20px;
}
.hero__lead {
  color: #b9c2d6;
  font-size: 17px;
  max-width: 520px;
  margin-bottom: 32px;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.stats-bar {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius);
  padding: 26px 10px;
  backdrop-filter: blur(6px);
}
.stats-bar .stat {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 18px;
  border-right: 1px solid rgba(255,255,255,0.08);
  min-width: 0;
}
.stats-bar .stat:last-child { border-right: none; }
.stats-bar .stat__icon {
  color: var(--color-accent);
  flex-shrink: 0;
}
.stats-bar .stat__num {
  color: #fff;
  font-weight: 800;
  font-size: 19px;
  line-height: 1.2;
}
.stats-bar .stat > div {
  min-width: 0;
}
.stats-bar .stat__num--text {
  font-size: 14.5px;
  line-height: 1.3;
  overflow-wrap: break-word;
}
.stats-bar .stat__label {
  color: #a9b3c9;
  font-size: 12.5px;
  line-height: 1.3;
}

/* ---------- SECTION GENERIC ---------- */
.section {
  min-height: calc(100vh - var(--header-h));
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 56px 0;
}
.section--light { background: var(--color-light-bg); }

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
}

/* Секция «Наши проекты» размещается по контенту, а не растягивается на весь экран */
#projects.section {
  min-height: 0;
  justify-content: flex-start;
  padding: 68px 0 72px;
}
.section-head--projects h2 { margin: 6px 0 10px; }
.section-desc {
  color: var(--color-text);
  font-size: 15px;
  line-height: 1.6;
  max-width: 480px;
}
.carousel-nav { display: flex; gap: 12px; flex-shrink: 0; }
.carousel-nav__btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  background: #fff;
  color: var(--color-heading);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(20, 30, 60, 0.12);
  cursor: pointer;
  transition: background .25s ease, color .25s ease, transform .2s ease, box-shadow .25s ease;
}
.carousel-nav__btn:hover:not(:disabled) {
  background: var(--color-accent);
  color: #fff;
  box-shadow: 0 8px 20px rgba(12, 78, 224, 0.3);
}
.carousel-nav__btn:active:not(:disabled) { transform: scale(0.94); }
.carousel-nav__btn:disabled { opacity: 0.35; cursor: default; box-shadow: none; }

/* ---------- ABOUT ---------- */
.about {
  display: grid;
  grid-template-columns: minmax(0, 47fr) minmax(0, 50fr);
  gap: 48px;
  align-items: start;
  margin-bottom: 28px;
}
.about h2 { font-size: clamp(30px, 3.3vw, 46px); line-height: 1.1; margin-bottom: 18px; }
.about__lead { font-size: 16.5px; line-height: 1.5; max-width: 600px; margin-bottom: 30px; }
.about__subtitle { font-size: 20px; margin-bottom: 18px; }

.feature {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 14px;
}
.feature__icon {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #EAF0FF;
  color: var(--color-accent);
  border-radius: 12px;
}
.feature h3 { font-size: 16.5px; margin-bottom: 2px; }
.feature p { font-size: 14.5px; }

.about__gallery {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  grid-template-rows: 1fr 1fr;
  gap: 14px;
  height: 500px;
}
.about__img { width: 100%; height: 100%; min-height: 0; min-width: 0; object-fit: cover; border-radius: 16px; }
.about__img--big { grid-row: 1 / 3; }

.about__body { margin-bottom: 32px; }
.about__body p { font-size: 15.5px; line-height: 1.55; max-width: 1100px; margin-bottom: 12px; }

/* Десктоп: раздел «О компании» целиком помещается на один экран */
@media (min-width: 981px) {
  #about.section { padding: 24px 0; }
  .about { align-items: stretch; margin-bottom: 20px; gap: 44px; }
  .about h2 { font-size: clamp(30px, 2.9vw, 42px); margin: 6px 0 12px; }
  .about__lead { font-size: 15.5px; line-height: 1.5; margin-bottom: 18px; }
  .about__subtitle { font-size: 18px; margin-bottom: 12px; }
  .feature { gap: 16px; margin-bottom: 8px; }
  .feature__icon { width: 46px; height: 46px; }
  .feature__icon svg { width: 24px; height: 24px; }
  .feature h3 { font-size: 15.5px; margin-bottom: 1px; }
  .feature p { font-size: 13.5px; line-height: 1.4; }
  .about__gallery { height: auto; align-self: stretch; contain: size; }
  .about__body { margin-bottom: 18px; }
  .about__body p { font-size: 14.5px; line-height: 1.5; max-width: none; margin-bottom: 8px; }
  #about .stats-bar { padding: 16px 10px; }
}
@media (min-width: 981px) and (max-height: 800px) {
  #about.section { padding: 14px 0; }
  .about h2 { font-size: clamp(28px, 2.6vw, 36px); margin-bottom: 8px; }
  .about__lead { font-size: 14.5px; margin-bottom: 12px; }
  .about__subtitle { font-size: 16.5px; margin-bottom: 8px; }
  .feature { margin-bottom: 5px; }
  .feature__icon { width: 40px; height: 40px; }
  .about__body { margin-bottom: 12px; }
  .about__body p { font-size: 13.5px; margin-bottom: 5px; }
  .about { margin-bottom: 14px; }
  #about .stats-bar { padding: 12px 10px; }
}

/* light variant of the stats bar used in "about" section */
.stats-bar--light {
  background: var(--color-card-bg);
  border: 1px solid #E7EAF3;
}
.stats-bar--light .stat { border-right-color: #E7EAF3; }
.stats-bar--light .stat__num { color: var(--color-heading); }
.stats-bar--light .stat__label { color: var(--color-text); }

/* ---------- SERVICES ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 22px;
}
.service-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--color-card-bg);
  border: 1px solid #E7EAF3;
  border-radius: var(--radius);
  padding: 22px;
}
.service-card__icon {
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #EAF0FF;
  color: var(--color-accent);
  border-radius: 10px;
}
.service-card p { color: var(--color-heading); font-weight: 700; font-size: 14.5px; line-height: 1.35; }

.note-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #EAF0FF;
  color: var(--color-heading);
  border-radius: var(--radius);
  padding: 20px 24px;
}
.note-bar svg { color: var(--color-accent); flex-shrink: 0; }
.note-bar p { font-size: 14.5px; font-weight: 600; }

/* ---------- PROJECTS ---------- */
.carousel-wrap { position: relative; width: 100%; min-width: 0; }
.carousel {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 8px;
  scrollbar-width: none;
}
.carousel::-webkit-scrollbar { display: none; }

.project-card {
  position: relative;
  flex: 0 0 calc((100% - 2 * 24px) / 3.2);
  scroll-snap-align: start;
  border-radius: 16px;
  overflow: hidden;
  height: clamp(430px, 30vw, 500px);
  display: block;
  border: none;
  background: none;
  padding: 0;
  font: inherit;
  text-align: left;
  color: inherit;
  cursor: pointer;
  transition: transform .3s ease, box-shadow .3s ease;
}
.project-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 44px rgba(10, 20, 50, 0.18);
}
.project-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}
.project-card:hover img { transform: scale(1.04); }

.project-card__status {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 11px;
  border-radius: 24px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.03em;
  line-height: 1.4;
  color: #fff;
  white-space: nowrap;
}
.project-card__status svg { flex-shrink: 0; }
.project-card__status--done { background: rgba(21,128,61,0.92); }
.project-card__status--progress { background: rgba(12,78,224,0.92); }

.project-card__overlay {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 22px 22px 18px;
  background: linear-gradient(180deg, rgba(0,10,31,0) 0%, rgba(0,10,31,0.5) 40%, rgba(0,10,31,0.95) 100%);
  color: #fff;
}
.project-card__title {
  display: block;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.28;
}
.project-card__category {
  display: block;
  margin-top: 4px;
  font-size: 12.5px;
  color: rgba(255,255,255,0.65);
}
.project-card__divider {
  display: block;
  height: 1px;
  background: rgba(255,255,255,0.18);
  margin: 14px 0 12px;
}
.project-card__meta {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 12.5px;
  font-weight: 600;
}
.project-card__city {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: rgba(255,255,255,0.85);
}
.project-card__city svg { flex-shrink: 0; }
.project-card__more {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #fff;
}
.project-card__more svg { transition: transform .25s ease; }
.project-card:hover .project-card__more svg { transform: translateX(4px); }

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 20px;
}
.carousel-dots button {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  border: none;
  background: #D3D9E8;
  cursor: pointer;
  padding: 0;
  transition: background .15s ease, transform .15s ease;
}
.carousel-dots button.is-active {
  background: var(--color-accent);
  transform: scale(1.15);
}

.projects-cta {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 44px;
  padding: 26px 30px;
  background: rgba(12, 78, 224, 0.05);
  border: 1px solid rgba(12, 78, 224, 0.14);
  border-radius: 16px;
}
.projects-cta__icon {
  flex-shrink: 0;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(12, 78, 224, 0.1);
  color: var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
}
.projects-cta__text { flex: 1 1 auto; min-width: 0; }
.projects-cta__title { font-size: 17px; font-weight: 800; color: var(--color-heading); margin-bottom: 3px; }
.projects-cta__desc { font-size: 13.5px; color: var(--color-text); }
.projects-cta__btn { flex-shrink: 0; }

/* ---------- REQUEST FORM ---------- */
.request {
  background: var(--color-dark);
}
.request__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: max(560px, calc(100vh - var(--header-h)));
}
.request__form-wrap {
  display: flex;
  align-items: center;
  padding: 56px 0;
}
.container--form { max-width: 500px; margin: 0; padding-left: 48px; padding-right: 40px; }
.request h2 { color: #fff; margin-bottom: 24px; }

.request-form { display: flex; flex-direction: column; gap: 14px; }
.field input,
.field textarea {
  width: 100%;
  background: #fff;
  border: none;
  border-radius: 10px;
  padding: 15px 18px;
  font-family: var(--font);
  font-size: 14.5px;
  color: var(--color-heading);
}
.field input::placeholder, .field textarea::placeholder { color: #8993a8; }
.field textarea { resize: vertical; min-height: 90px; }
.field--phone {
  display: flex;
  align-items: center;
  background: #fff;
  border-radius: 10px;
  padding: 0 4px 0 16px;
}
.field--phone input { padding-left: 8px; }
.field__flag { font-size: 18px; }

/* Ловушка для ботов — скрыта от людей, но видна автозаполнению ботов.
   Не используем left:-9999px, чтобы не создавать горизонтальный оверфлоу страницы. */
.field--honeypot {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
  opacity: 0;
}

.checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: #c3cadd;
  font-size: 12.5px;
  line-height: 1.4;
  cursor: pointer;
}
.checkbox input { margin-top: 3px; accent-color: var(--color-accent); width: 15px; height: 15px; flex-shrink: 0; }
.checkbox a { text-decoration: underline; color: #c3cadd; }

.request-form .btn { align-self: flex-start; margin-top: 6px; }
.form-status { font-size: 13px; color: #6f9bff; min-height: 18px; }

.request__photo { position: relative; height: 100%; min-height: 340px; min-width: 0; }
.request__photo img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- PROJECT MODAL (ГАЛЕРЕЯ) ---------- */
body.modal-open { overflow: hidden; }

.project-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.project-modal.is-open { display: flex; }
.project-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,10,31,0.7);
}
.project-modal__dialog {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1400px;
  max-height: 92vh;
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 60px rgba(0,0,0,0.35);
}
.project-modal__close {
  position: absolute;
  top: 16px; right: 16px;
  z-index: 2;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid #E7EAF3;
  color: var(--color-heading);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .15s ease, color .15s ease;
}
.project-modal__close:hover { background: var(--color-accent); color: #fff; border-color: var(--color-accent); }

.project-modal__body {
  display: flex;
  min-height: 0;
  flex: 1;
}
.project-modal__viewer {
  position: relative;
  background: var(--color-light-bg);
  flex: 1 1 70%;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
}
.project-modal__img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.project-modal__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px; height: 44px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid #E7EAF3;
  color: var(--color-heading);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .15s ease, color .15s ease;
  box-shadow: 0 4px 14px rgba(20,30,60,0.12);
}
.project-modal__nav:hover { background: var(--color-accent); color: #fff; }
.project-modal__nav--prev { left: 20px; }
.project-modal__nav--next { right: 20px; }
.project-modal__nav[hidden] { display: none; }

.project-modal__info {
  flex: 0 0 320px;
  padding: 56px 32px 32px;
  border-left: 1px solid #E7EAF3;
}
.project-modal__title { color: var(--color-accent); font-size: 21px; line-height: 1.3; margin: 0; }
.project-modal__desc { color: var(--color-text); font-size: 14px; line-height: 1.6; margin-top: 16px; }
.project-modal__counter { display: block; color: var(--color-text); font-size: 13px; margin-top: 12px; }

.project-modal__thumbs {
  flex-shrink: 0;
  display: flex;
  gap: 10px;
  padding: 16px 20px;
  overflow-x: auto;
  border-top: 1px solid #E7EAF3;
}
.project-modal__thumbs:empty { display: none; }
.project-modal__thumb {
  flex: 0 0 92px;
  height: 66px;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid transparent;
  padding: 0;
  cursor: pointer;
  background: none;
  opacity: 0.6;
  transition: opacity .15s ease, border-color .15s ease;
}
.project-modal__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.project-modal__thumb:hover { opacity: 0.85; }
.project-modal__thumb.is-active { opacity: 1; border-color: var(--color-accent); }

@media (max-width: 900px) {
  .project-modal__body { flex-direction: column; }
  .project-modal__info { flex-basis: auto; border-left: none; border-top: 1px solid #E7EAF3; padding: 20px 24px; }
  .project-modal__viewer { padding: 20px; min-height: 280px; }
}
@media (max-width: 640px) {
  .project-modal { padding: 0; }
  .project-modal__dialog { max-height: 100vh; height: 100%; border-radius: 0; }
}

/* ---------- FOOTER ---------- */
.footer { background: var(--color-dark); border-top: 1px solid rgba(255,255,255,0.07); padding: 48px 0 28px; }
.footer__inner {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1.2fr 1.2fr;
  gap: 24px;
}
.logo--footer { margin-bottom: 12px; }
.footer__brand p { color: #a9b3c9; font-size: 14px; margin-bottom: 16px; }
.footer__social { display: flex; gap: 10px; }
.footer__social a {
  width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.06);
  border-radius: 50%;
  color: #cfd6e8;
  transition: background .15s ease, color .15s ease;
}
.footer__social a:hover { background: var(--color-accent); color: #fff; }

.footer__nav { display: flex; flex-direction: column; gap: 12px; }
.footer__nav a { color: #cfd6e8; font-size: 14px; font-weight: 600; }
.footer__nav a:hover { color: #fff; }

.footer__contacts { display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.footer__contacts a { color: #cfd6e8; font-weight: 600; }
.footer__contacts a:hover { color: #fff; }
.footer__contacts p { color: #8f99b3; line-height: 1.4; }
.footer__site { color: var(--color-accent) !important; margin-top: 4px; }

.footer__legal { font-size: 12.5px; color: #8f99b3; text-align: right; }
.footer__legal p { margin-bottom: 10px; }
.footer__legal a { color: #8f99b3; text-decoration: underline; line-height: 1.4; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 980px) {
  .nav { display: none; }
  .header__phone { display: none; }
  .burger { display: flex; }

  .header__inner { height: 68px; }

  .nav.is-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 68px; left: 0; right: 0;
    background: var(--color-dark);
    padding: 20px 24px 28px;
    gap: 18px;
    border-top: 1px solid rgba(255,255,255,0.08);
  }

  .hero { min-height: 0; padding: 48px 0 32px; }
  .section { min-height: 0; padding: 48px 0; }

  .about { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .about__gallery { height: 380px; }

  .services-grid { grid-template-columns: repeat(2, 1fr); }

  #projects.section { padding: 48px 0 56px; }
  .section-head--projects { align-items: flex-start; flex-direction: column; gap: 16px; }
  .section-desc { max-width: 100%; }
  .carousel { gap: 18px; }
  .project-card { flex-basis: calc((100% - 18px) / 1.7); height: clamp(360px, 46vw, 430px); }

  .request__grid { grid-template-columns: 1fr; min-height: 0; }
  .request__photo { min-height: 220px; order: -1; }
  .container--form { padding: 0 24px; max-width: 100%; }

  .footer__inner { grid-template-columns: 1fr 1fr; }
  .footer__legal { text-align: left; }
}

@media (max-width: 640px) {
  .header__actions .btn--sm { display: none; }
  .hero { padding: 40px 0 28px; }
  .hero__inner { padding-bottom: 40px; }
  .stats-bar { grid-template-columns: repeat(2, 1fr); row-gap: 20px; }
  .stats-bar .stat { border-right: none; padding: 0 10px; }
  .stats-bar .stat:nth-child(odd) { border-right: 1px solid rgba(255,255,255,0.08); }
  .about h2 { font-size: 25px; }
  .about__lead { font-size: 15.5px; }
  .about__gallery { height: 280px; gap: 10px; }
  .stats-bar--light .stat:nth-child(odd) { border-right-color: #E7EAF3; }

  .services-grid { grid-template-columns: 1fr; }
  .section { padding: 52px 0; }

  #projects.section { padding: 40px 0 48px; }
  .carousel-nav { display: none; }
  .project-card { flex-basis: calc(100% - 48px); height: 340px; }
  .project-card__title { font-size: 16.5px; }
  .project-card__overlay { padding: 18px 18px 16px; }
  .project-card__divider { margin: 11px 0 10px; }

  .projects-cta {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding: 22px;
  }
  .projects-cta__btn { width: 100%; }

  .footer__inner { grid-template-columns: 1fr; }
}
