/* ============================================================
   AVANTAGE — обновлённый сайт (эволюционный трек, без ребрендинга)
   Айдентика сохранена: красный #C70F02, логотип-надпись, кремовый акцент.
   Изменения: современная сетка, типографика, состояния, адаптив, доступность.
   ============================================================ */

/* ---------- токены ---------- */
:root {
  --red: #C70F02;
  --red-hover: #A50C02;
  --red-soft: #FDECEA;
  --red-soft-2: #FFF5F3;
  --cream: #FFF6E5;
  --cream-line: #F3E3C3;

  --ink: #16181D;
  --ink-2: #3D434B;
  --muted: #5B6169;
  --muted-2: #7C838B;
  --line: #E5E6E8;
  --line-2: #EFF0F1;
  --soft: #F6F6F7;
  --white: #FFFFFF;

  --radius: 14px;
  --radius-sm: 10px;
  --radius-lg: 22px;

  --shadow-sm: 0 1px 2px rgba(22, 24, 29, .06), 0 2px 8px rgba(22, 24, 29, .04);
  --shadow-md: 0 4px 12px rgba(22, 24, 29, .07), 0 12px 32px rgba(22, 24, 29, .06);
  --shadow-lg: 0 12px 32px rgba(22, 24, 29, .10), 0 32px 64px rgba(22, 24, 29, .08);

  --container: 1200px;
  --gutter: 24px;
  --section: clamp(56px, 7vw, 96px);

  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(.2, .6, .2, 1);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.62;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
h1, h2, h3, h4, p, ul, ol, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }

/* ---------- доступность ---------- */
:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 3px;
  border-radius: 4px;
}
.skip-link {
  position: absolute; left: 16px; top: -64px; z-index: 999;
  background: var(--ink); color: #fff; padding: 12px 20px;
  border-radius: 0 0 10px 10px; font-weight: 600;
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 0; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ---------- типографика ---------- */
h1, h2, h3, h4 { font-weight: 600; letter-spacing: -.02em; line-height: 1.1; color: var(--ink); }
h1 { font-size: clamp(30px, 4.2vw, 54px); line-height: 1.04; letter-spacing: -.03em; }
h2 { font-size: clamp(24px, 3vw, 38px); line-height: 1.12; }
h3 { font-size: clamp(19px, 1.6vw, 23px); line-height: 1.25; }
h4 { font-size: 17px; line-height: 1.35; }
p { color: var(--ink-2); }
.lead { font-size: clamp(17px, 1.5vw, 20px); line-height: 1.55; color: var(--muted); }
small, .small { font-size: 14px; line-height: 1.5; }
.muted { color: var(--muted); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12px; font-weight: 600; letter-spacing: .1em;
  text-transform: uppercase; color: var(--red); margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 22px; height: 3px; background: var(--red); border-radius: 2px; }
.eyebrow--muted { color: var(--muted-2); }
.eyebrow--muted::before { background: var(--muted-2); }

/* ---------- раскладка ---------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--section) 0; }
.section--soft { background: var(--soft); }
.section--cream { background: var(--cream); }
.section--tight { padding: clamp(36px, 4vw, 56px) 0; }
.section__head { max-width: 760px; margin-bottom: clamp(28px, 3.5vw, 48px); }
.section__head p { margin-top: 16px; }
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.split { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(28px, 4vw, 64px); align-items: start; }
.stack > * + * { margin-top: 16px; }
.stack-lg > * + * { margin-top: 28px; }

/* ---------- кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px;
  border-radius: var(--radius-sm); border: 1.5px solid transparent;
  font-weight: 600; font-size: 16px; line-height: 1;
  cursor: pointer; white-space: nowrap;
  transition: background .18s var(--ease), color .18s var(--ease),
              border-color .18s var(--ease), box-shadow .18s var(--ease), transform .18s var(--ease);
}
.btn--primary { background: var(--red); color: #fff; box-shadow: 0 2px 6px rgba(199, 15, 2, .22); }
.btn--primary:hover { background: var(--red-hover); box-shadow: 0 4px 14px rgba(199, 15, 2, .28); }
.btn--ghost { border-color: var(--line); color: var(--ink); background: #fff; }
.btn--ghost:hover { border-color: var(--ink); }
.btn--light { background: #fff; color: var(--red); }
.btn--light:hover { background: var(--cream); }
.btn--sm { min-height: 42px; padding: 0 18px; font-size: 14.5px; }
.btn--block { width: 100%; }
.btn:active { transform: translateY(1px); }

/* ---------- шапка ---------- */
.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line-2);
  transition: box-shadow .2s var(--ease);
}
.header.is-scrolled { box-shadow: 0 2px 16px rgba(22, 24, 29, .07); }
.header__inner { display: flex; align-items: center; gap: 20px; height: 74px; }
.header__logo { flex: 0 0 auto; display: flex; align-items: center; }
.header__logo img { height: 22px; width: auto; }
.header__nav { margin-left: 2px; min-width: 0; }
.header__list { display: flex; align-items: center; gap: 2px; flex-wrap: nowrap; }
.header__list > li { flex: 0 0 auto; }
.header__link {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 11px; border-radius: 8px;
  font-size: 14.5px; font-weight: 500; color: var(--ink-2);
  white-space: nowrap; flex: 0 0 auto;
  transition: background .15s var(--ease), color .15s var(--ease);
}
.header__link:hover, .header__link[aria-current="page"] { background: var(--soft); color: var(--ink); }
.header__actions { margin-left: auto; display: flex; align-items: center; gap: 12px; flex: 0 0 auto; }
.header__phone { font-weight: 600; font-size: 15px; white-space: nowrap; }
.header__phone span { display: block; font-size: 10.5px; font-weight: 500; color: var(--muted-2); letter-spacing: .02em; white-space: nowrap; }
.burger {
  display: none; width: 44px; height: 44px; margin-left: auto;
  align-items: center; justify-content: center;
  background: var(--soft); border: 0; border-radius: 10px; cursor: pointer;
}
.burger span { display: block; width: 20px; height: 2px; background: var(--ink); position: relative; }
.burger span::before, .burger span::after {
  content: ""; position: absolute; left: 0; width: 20px; height: 2px; background: var(--ink);
  transition: transform .2s var(--ease), top .2s var(--ease);
}
.burger span::before { top: -6px; }
.burger span::after { top: 6px; }

/* выпадающее меню услуг */
.has-sub { position: relative; }
.has-sub > .header__link::after {
  content: ""; width: 6px; height: 6px; border-right: 1.6px solid currentColor;
  border-bottom: 1.6px solid currentColor; transform: rotate(45deg) translateY(-2px); opacity: .6;
}
.submenu {
  position: absolute; left: 0; top: calc(100% + 8px); min-width: 268px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-md); padding: 8px; opacity: 0; visibility: hidden;
  transform: translateY(-4px); transition: all .16s var(--ease);
}
.has-sub:hover .submenu, .has-sub:focus-within .submenu { opacity: 1; visibility: visible; transform: none; }
.submenu a {
  display: block; padding: 10px 12px; border-radius: 8px; font-size: 15px; color: var(--ink-2);
}
.submenu a:hover { background: var(--soft); color: var(--ink); }

/* ---------- герой ---------- */
.hero { position: relative; overflow: hidden; background: var(--white); }
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(900px 420px at 88% -8%, var(--red-soft) 0%, rgba(253, 236, 234, 0) 62%),
    radial-gradient(700px 380px at -6% 12%, var(--cream) 0%, rgba(255, 246, 229, 0) 58%);
}
.hero__inner { position: relative; padding: clamp(40px, 5vw, 76px) 0 clamp(36px, 4vw, 60px); }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr); gap: clamp(28px, 4vw, 60px); align-items: center; }
.hero h1 { margin-bottom: 20px; }
.hero h1 em { font-style: normal; color: var(--red); display: inline-block; }
.hero__text { max-width: 520px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero__note { display: flex; align-items: center; gap: 10px; margin-top: 22px; font-size: 14px; color: var(--muted); }
.hero__note svg { flex: 0 0 auto; color: var(--red); }

/* «фотоблок» — стилизованная заглушка вместо стока */
.photo {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  background:
    linear-gradient(135deg, #2A2F36 0%, #1A1D22 55%, #262B32 100%);
  aspect-ratio: 4 / 3;
  box-shadow: var(--shadow-lg);
  isolation: isolate;
}
.photo::before {
  content: ""; position: absolute; inset: 0;
  background-image: repeating-linear-gradient(115deg, rgba(255,255,255,.10) 0 2px, transparent 2px 26px);
  opacity: .5;
}
.photo::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 26%;
  background: linear-gradient(0deg, var(--red) 0%, var(--red) 14%, transparent 14%);
  opacity: .9;
}
.photo__label {
  position: absolute; left: 22px; top: 22px; z-index: 2;
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(0, 0, 0, .38); color: #fff;
  font-size: 12px; font-weight: 500; letter-spacing: .04em;
  padding: 7px 12px; border-radius: 999px; backdrop-filter: blur(4px);
}
.photo__hint {
  position: absolute; inset: auto 22px 22px 22px; z-index: 2;
  color: #fff; font-size: 13px; opacity: .92;
}
.photo--wide { aspect-ratio: auto; height: 100%; min-height: 340px; }

/* герой с настоящим фото проекта */
.photo--hero { aspect-ratio: 800 / 425; }
.photo--hero::after { display: none; }
.photo--hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.photo--hero .photo__label { z-index: 2; }

/* ---------- метрики ---------- */
.metrics { border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); background: #fff; }
.metrics__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.metric { padding: 26px 24px; border-left: 1px solid var(--line-2); }
.metric:first-child { border-left: 0; padding-left: 0; }
.metric__value { font-size: clamp(28px, 3vw, 40px); font-weight: 700; letter-spacing: -.03em; line-height: 1; }
.metric__value i { font-style: normal; color: var(--red); }
.metric__label { margin-top: 8px; font-size: 14px; color: var(--muted); line-height: 1.4; }

/* ---------- карточки ---------- */
.card {
  position: relative; display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; transition: box-shadow .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease);
}
.card:hover { box-shadow: var(--shadow-md); border-color: #D8DADD; transform: translateY(-2px); }
.card__icon {
  width: 46px; height: 46px; border-radius: 12px; margin-bottom: 18px;
  display: grid; place-items: center; color: var(--red); background: var(--red-soft);
}
.card h3 { margin-bottom: 10px; }
.card p { font-size: 15.5px; color: var(--muted); }
.card__link { margin-top: auto; padding-top: 18px; font-weight: 600; font-size: 15px; color: var(--red); display: inline-flex; align-items: center; gap: 8px; }
.card__link svg { transition: transform .2s var(--ease); }
.card:hover .card__link svg { transform: translateX(4px); }
.card--flat { border-color: var(--line-2); background: var(--soft); }
.card--flat:hover { transform: none; box-shadow: none; }

/* ---------- списки ---------- */
.checks { display: grid; gap: 12px; }
.checks li { position: relative; padding-left: 34px; color: var(--ink-2); font-size: 16px; line-height: 1.5; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 3px; width: 21px; height: 21px;
  border-radius: 50%; background: var(--red-soft);
}
.checks li::after {
  content: ""; position: absolute; left: 6.5px; top: 9px; width: 8px; height: 4.5px;
  border-left: 2px solid var(--red); border-bottom: 2px solid var(--red);
  transform: rotate(-45deg);
}
.checks--on-dark li { color: rgba(255, 255, 255, .88); }
.checks--on-dark li::before { background: rgba(255, 255, 255, .16); }
.checks--on-dark li::after { border-color: #fff; }
.checks--two { grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* ---------- акцентный блок «бесплатные тенты» ---------- */
.offer {
  position: relative; overflow: hidden;
  background: linear-gradient(120deg, var(--red) 0%, #A50C02 100%);
  color: #fff; border-radius: var(--radius-lg);
  padding: clamp(28px, 4vw, 52px);
}
.offer::after {
  content: ""; position: absolute; right: -80px; top: -80px; width: 340px; height: 340px;
  border: 60px solid rgba(255, 255, 255, .07); border-radius: 50%;
}
.offer h2, .offer h3 { color: #fff; }
.offer p { color: rgba(255, 255, 255, .88); }
.offer__grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 32px; align-items: center; }
.offer__price { font-size: clamp(56px, 8vw, 96px); font-weight: 700; line-height: .9; letter-spacing: -.04em; }
.offer__price small { display: block; font-size: 14px; font-weight: 500; letter-spacing: .02em; opacity: .85; margin-top: 12px; }
.steps { counter-reset: s; display: grid; gap: 14px; margin-top: 20px; }
.steps li { counter-increment: s; position: relative; padding-left: 44px; font-size: 15.5px; line-height: 1.5; color: var(--ink-2); }
.steps li::before {
  content: counter(s); position: absolute; left: 0; top: -1px;
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--red); color: #fff; font-size: 13.5px; font-weight: 600;
  display: grid; place-items: center;
}
.offer .steps li { color: rgba(255, 255, 255, .92); }
.offer .steps li::before { background: #fff; color: var(--red); }

/* ---------- города ---------- */
.cities { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.cities a {
  padding: 9px 14px; border: 1px solid var(--line); border-radius: 8px;
  font-size: 14.5px; color: var(--ink-2); background: #fff;
  transition: border-color .15s var(--ease), color .15s var(--ease), background .15s var(--ease);
}
.cities a:hover { border-color: var(--red); color: var(--red); background: var(--red-soft-2); }
.cities--cols { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }

/* ---------- логотипы клиентов ---------- */
.logos { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 1px; background: var(--line-2); border: 1px solid var(--line-2); border-radius: var(--radius); overflow: hidden; }
.logos div {
  display: grid; place-items: center; min-height: 84px;
  background: #fff; font-weight: 600; font-size: 15px; color: var(--muted-2);
  letter-spacing: -.01em; text-align: center; padding: 12px;
  transition: color .15s var(--ease), background .15s var(--ease);
}
.logos div:hover { color: var(--ink); background: var(--soft); }

/* ---------- отзывы ---------- */
.quote {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; display: flex; flex-direction: column; gap: 16px; height: 100%;
}
.quote p { font-size: 15.5px; color: var(--ink-2); line-height: 1.6; }
.quote__author { margin-top: auto; font-size: 14px; font-weight: 600; }
.quote__author span { display: block; font-weight: 400; color: var(--muted-2); font-size: 13px; margin-top: 2px; }
.quote__mark { color: var(--red); font-size: 40px; line-height: .6; font-weight: 700; }

/* ---------- таблица ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; background: #fff; font-size: 15px; }
caption { text-align: left; font-size: 14px; color: var(--muted); padding: 0 0 12px; }
th, td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--line-2); vertical-align: top; }
th { background: var(--soft); font-weight: 600; font-size: 14px; color: var(--ink); white-space: nowrap; }
tbody tr:last-child td { border-bottom: 0; }
td { color: var(--ink-2); }

/* ---------- формы ---------- */
.form { display: grid; gap: 16px; }
.field { display: grid; gap: 7px; }
.field label { font-size: 14px; font-weight: 500; color: var(--ink-2); }
.field input, .field textarea, .field select {
  width: 100%; min-height: 50px; padding: 12px 14px;
  border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  background: #fff; font-size: 16px; color: var(--ink);
  transition: border-color .15s var(--ease), box-shadow .15s var(--ease);
}
.field input::placeholder, .field textarea::placeholder { color: #9AA0A7; }
.field input:focus, .field textarea:focus, .field select:focus {
  border-color: var(--red); box-shadow: 0 0 0 4px rgba(199, 15, 2, .10); outline: none;
}
.field textarea { min-height: 104px; resize: vertical; }
.field--error input, .field--error textarea { border-color: var(--red); }
.field__error { display: none; font-size: 13px; color: var(--red); }
.field--error .field__error { display: block; }
.checkbox { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; color: var(--muted); line-height: 1.45; }
.checkbox input { flex: 0 0 auto; width: 18px; height: 18px; margin-top: 2px; accent-color: var(--red); }
.checkbox a { color: var(--red); text-decoration: underline; text-underline-offset: 2px; }
.form__status { display: none; padding: 14px 16px; border-radius: var(--radius-sm); font-size: 15px; }
.form__status.is-ok { display: block; background: #EDF7ED; color: #1F6B25; }
.form__status.is-err { display: block; background: var(--red-soft); color: var(--red-hover); }
.form__hint { font-size: 13px; color: var(--muted-2); }

/* ---------- хлебные крошки ---------- */
.crumbs { padding-top: 22px; }
.crumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13.5px; color: var(--muted-2); }
.crumbs li { display: flex; align-items: center; gap: 8px; }
.crumbs li + li::before { content: "/"; color: #C6C9CD; }
.crumbs a:hover { color: var(--red); }
.crumbs [aria-current="page"] { color: var(--ink-2); }

/* ---------- внутренняя страница ---------- */
.page-head { padding: 26px 0 clamp(28px, 3.5vw, 48px); border-bottom: 1px solid var(--line-2); }
.page-head h1 { max-width: 900px; }
.page-head .lead { max-width: 720px; margin-top: 16px; }
.page-head__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }

/* ---------- сайдбар услуг ---------- */
.layout-side { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: clamp(28px, 4vw, 56px); align-items: start; }
.side { position: sticky; top: 96px; display: grid; gap: 8px; }
.side a {
  display: block; padding: 12px 16px; border-radius: 10px; font-size: 15px;
  color: var(--ink-2); border: 1px solid transparent;
}
.side a:hover { background: var(--soft); }
.side a[aria-current="page"] { background: var(--red-soft); color: var(--red-hover); font-weight: 600; }
.side__title { font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted-2); padding: 0 16px 6px; }

.prose h2 { margin-top: 40px; margin-bottom: 14px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 26px; margin-bottom: 10px; }
.prose p + p { margin-top: 12px; }
.prose ul { margin-top: 12px; }
.prose .checks { margin-top: 16px; }
.prose .table-wrap { margin-top: 22px; }

/* ---------- аккордеон ---------- */
.acc { border-top: 1px solid var(--line); }
.acc__item { border-bottom: 1px solid var(--line); }
.acc__btn {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px 0; background: none; border: 0; cursor: pointer; text-align: left;
  font-size: 17px; font-weight: 600; color: var(--ink);
}
.acc__btn svg { flex: 0 0 auto; transition: transform .2s var(--ease); color: var(--red); }
.acc__item.is-open .acc__btn svg { transform: rotate(45deg); }
.acc__panel { display: none; padding: 0 0 22px; max-width: 820px; }
.acc__item.is-open .acc__panel { display: block; }

/* ---------- таймлайн ---------- */
.timeline { position: relative; display: grid; gap: 0; }
.timeline::before { content: ""; position: absolute; left: 74px; top: 8px; bottom: 8px; width: 2px; background: var(--line); }
.timeline li { position: relative; display: grid; grid-template-columns: 74px minmax(0, 1fr); gap: 28px; padding: 14px 0; }
.timeline li::before {
  content: ""; position: absolute; left: 69px; top: 22px; width: 12px; height: 12px;
  border-radius: 50%; background: #fff; border: 3px solid var(--red); box-shadow: 0 0 0 4px #fff;
}
.timeline__year { font-size: 15px; font-weight: 700; color: var(--red); letter-spacing: -.01em; padding-top: 2px; }
.timeline__text { font-size: 15.5px; color: var(--ink-2); line-height: 1.5; }

/* ---------- CTA-полоса ---------- */
.cta-band {
  background: var(--ink); color: #fff; border-radius: var(--radius-lg);
  padding: clamp(28px, 4vw, 52px);
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  gap: 32px; align-items: center;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255, 255, 255, .72); margin-top: 12px; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: flex-end; }

/* ---------- подвал ---------- */
.footer { background: #0F1115; color: rgba(255, 255, 255, .72); padding: clamp(40px, 5vw, 64px) 0 28px; }
.footer h4 { color: #fff; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 14px; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 32px; }
.footer a { color: rgba(255, 255, 255, .72); }
.footer a:hover { color: #fff; }
.footer__links { display: grid; gap: 9px; font-size: 14.5px; }
.footer__logo { height: 24px; width: auto; margin-bottom: 16px; }
.footer__contacts { display: grid; gap: 10px; font-size: 14.5px; }
.footer__phone { font-size: 20px; font-weight: 600; color: #fff; }
.footer__bottom {
  margin-top: 36px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .12);
  display: flex; flex-wrap: wrap; gap: 14px 28px; justify-content: space-between;
  font-size: 13px; color: rgba(255, 255, 255, .5);
}
.footer__bottom a { color: rgba(255, 255, 255, .6); }

/* ---------- мобильное меню ---------- */
.drawer {
  position: fixed; inset: 0; z-index: 200; display: none;
  background: #fff; padding: 18px var(--gutter) 32px; overflow-y: auto;
}
.drawer.is-open { display: block; }
.drawer__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.drawer__close { width: 44px; height: 44px; border: 0; background: var(--soft); border-radius: 10px; font-size: 22px; cursor: pointer; }
.drawer__list { display: grid; gap: 2px; margin-bottom: 24px; }
.drawer__list a { display: block; padding: 14px 4px; font-size: 18px; font-weight: 500; border-bottom: 1px solid var(--line-2); }
.drawer__sub { display: grid; gap: 2px; padding: 4px 0 8px 16px; }
.drawer__sub a { font-size: 15.5px; color: var(--ink-2); font-weight: 400; border-bottom: 0; padding: 9px 0; }
.drawer__actions { display: grid; gap: 10px; }

/* ---------- адаптив ---------- */
@media (max-width: 1180px) {
  /* шапка не влезает — переходим на бургер раньше, чем начнёт ломаться */
  .header__nav { display: none; }
  .header__actions .header__phone { display: none; }
  .header__actions .btn { display: none; }
  .burger { display: flex; }
}
@media (max-width: 1100px) {
  .header__nav { display: none; }
  .header__actions .header__phone { display: none; }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .logos { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .layout-side { grid-template-columns: 1fr; }
  .side { position: static; display: flex; flex-wrap: wrap; gap: 6px; }
  .side__title { display: none; }
  .side a { border: 1px solid var(--line); }
}
@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__text { max-width: none; }
  .photo { aspect-ratio: 16 / 10; }
  .split { grid-template-columns: 1fr; }
  .offer__grid { grid-template-columns: 1fr; }
  .cta-band { grid-template-columns: 1fr; }
  .cta-band__actions { justify-content: flex-start; }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .metrics__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .metric:nth-child(3) { border-left: 0; padding-left: 0; }
  .metric:nth-child(-n+2) { border-bottom: 1px solid var(--line-2); }
  .checks--two { grid-template-columns: 1fr; }
  .timeline::before { left: 6px; }
  .timeline li { grid-template-columns: 1fr; gap: 4px; padding-left: 30px; }
  .timeline li::before { left: 1px; top: 20px; }
  .timeline__year { padding-top: 0; }
}
@media (max-width: 900px) {
  .proj-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .proj-grid, .gallery--more { grid-template-columns: 1fr; }
  body { font-size: 16px; }
  :root { --gutter: 18px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .logos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer__grid { grid-template-columns: 1fr; gap: 28px; }
  .btn { width: 100%; }
  .hero__cta .btn { width: 100%; }
  .metrics__grid { grid-template-columns: 1fr; }
  .metric { border-left: 0; padding-left: 0; border-bottom: 1px solid var(--line-2); }
  .cities { grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); }
}
@media (hover: none) {
  .has-sub:hover .submenu { opacity: 0; visibility: hidden; }
}

/* ---------- портфолио: карточки проектов ---------- */
.proj-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.proj-card {
  display: flex; flex-direction: column; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  transition: box-shadow .22s var(--ease), border-color .22s var(--ease), transform .22s var(--ease);
}
.proj-card:hover { box-shadow: var(--shadow-md); border-color: #D6D8DB; transform: translateY(-2px); }
.proj-card__media { position: relative; aspect-ratio: 800 / 425; overflow: hidden; background: var(--soft); }
.proj-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.proj-card:hover .proj-card__media img { transform: scale(1.035); }
.proj-card__body { display: flex; flex-direction: column; gap: 10px; padding: 20px 22px 24px; flex: 1; }
.proj-card__tag { font-size: 11.5px; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; color: var(--red); }
.proj-card h3 { font-size: 19px; letter-spacing: -.01em; }
.proj-card p { font-size: 14.5px; line-height: 1.55; color: var(--muted); }
.proj-card__more { margin-top: auto; padding-top: 6px; display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600; font-size: 14.5px; color: var(--red); }
.proj-card:hover .proj-card__more svg { transform: translateX(4px); }
.proj-card__more svg { transition: transform .2s var(--ease); }
.badge {
  position: absolute; left: 14px; top: 14px; z-index: 2;
  background: rgba(255, 255, 255, .95); color: var(--ink);
  font-size: 12px; font-weight: 600; padding: 5px 11px; border-radius: 999px;
}

/* ---------- страница проекта ---------- */
.gallery__hero { margin: 0; border-radius: 14px; overflow: hidden; background: var(--soft); aspect-ratio: 800 / 425; }
.gallery__hero img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery--more figure { margin: 0; border-radius: 12px; overflow: hidden; background: var(--soft); aspect-ratio: 800 / 425; }
.gallery--more img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery--more { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; margin-top: 12px; }
.gallery--more figure { aspect-ratio: 16 / 9; }

.specs { border-top: 1px solid var(--line); }
.specs div { display: flex; flex-wrap: wrap; gap: 4px 20px; justify-content: space-between; align-items: baseline;
  padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.specs dt { color: var(--muted); flex: 0 0 auto; }
.specs dd { margin: 0; font-weight: 600; text-align: right; min-width: 0; }

.case-block { border-left: 3px solid var(--red); padding-left: 20px; }
.case-block + .case-block { margin-top: 28px; }
.case-block h2 { font-size: 20px; margin-bottom: 10px; }
