/* ============================================================
   Север Дом — стили
   1. Шрифты, токены, база
   2. Шапка, меню
   3. Hero, цифры
   4. Секции, категории, преимущества
   5. Каталог, калькулятор
   6. Этапы, акции, портфолио, отзывы, FAQ
   7. Контакты, футер, модалки, адаптив
   ============================================================ */

@font-face {
  font-family: 'Manrope';
  src: url('../fonts/manrope-cyrillic.woff2') format('woff2');
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Manrope';
  src: url('../fonts/manrope-latin.woff2') format('woff2');
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --brand: #0089c5;
  --brand-600: #0076ab;
  --brand-700: #005f8a;
  --brand-50: #e9f7fc;
  --brand-100: #d1eff8;
  --ink: #101c24;
  --ink-2: #24333d;
  --text: #3b4a54;
  --muted: #6d7b85;
  --line: #dce6ea;
  --line-soft: #e9eff2;
  --bg: #f4f8f9;
  --white: #fff;
  --sand: #f4eee4;
  --green: #1f9d63;
  --orange: #e78743;
  --red: #d9534f;
  --dark: #0e1a22;
  --dark-2: #132731;
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --shadow-sm: 0 8px 24px -16px rgba(14, 35, 45, .3);
  --shadow: 0 28px 60px -32px rgba(14, 35, 45, .38);
  --shadow-lg: 0 40px 90px -36px rgba(14, 35, 45, .45);
  --container: 1240px;
  --font: 'Manrope', 'Segoe UI', Tahoma, sans-serif;
  --ease: cubic-bezier(.2, .7, .3, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }

[hidden] { display: none !important; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.menu-open,
body.modal-open { overflow: hidden; }

img, svg { display: block; }
img { max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
figure { margin: 0; }
p { margin: 0; }

h1, h2, h3, h4 {
  margin: 0;
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -.035em;
  color: var(--ink);
}

h1 { font-size: clamp(38px, 5vw, 66px); }
h2 { font-size: clamp(30px, 3.4vw, 44px); }
h3 { font-size: 20px; }

::selection { background: var(--brand); color: #fff; }

:focus-visible {
  outline: 3px solid rgba(0, 137, 197, .45);
  outline-offset: 2px;
  border-radius: 4px;
}

.container {
  width: min(var(--container), calc(100% - 48px));
  margin-inline: auto;
}

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.icon {
  width: 1.15em;
  height: 1.15em;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.skip-link {
  position: fixed;
  top: -100px;
  left: 16px;
  z-index: 300;
  padding: 12px 20px;
  background: var(--brand);
  color: #fff;
  border-radius: 8px;
  font-weight: 700;
  transition: top .2s;
}
.skip-link:focus { top: 12px; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--brand);
}
.eyebrow--light { color: #71cdec; }

.section { padding: 96px 0; }
.section--catalog-preview { padding: 44px 0 90px; }

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 48px;
  margin-bottom: 44px;
}
.section-head h2 { margin-top: 14px; }
.section-head__text {
  max-width: 430px;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.7;
  padding-bottom: 4px;
}
.section-head--wide { align-items: flex-end; }
.section-head--catalog { margin-bottom: 28px; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--brand);
  font-size: 13.5px;
  font-weight: 800;
  white-space: nowrap;
  padding-bottom: 4px;
  transition: gap .25s var(--ease);
}
.link-arrow:hover { gap: 13px; }
.link-arrow .icon { width: 17px; height: 17px; }

/* ---------- Кнопки ---------- */
.btn {
  --btn-bg: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 22px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: var(--btn-bg);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
  white-space: nowrap;
  transition: background .25s, color .25s, border-color .25s, transform .25s, box-shadow .25s;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn--primary {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 12px 26px -16px rgba(0, 137, 197, .8);
}
.btn--primary:hover { background: var(--brand-600); box-shadow: 0 16px 30px -14px rgba(0, 137, 197, .7); }
.btn--outline {
  border-color: var(--line);
  color: var(--ink);
  background: #fff;
}
.btn--outline:hover { border-color: var(--brand); color: var(--brand); background: var(--brand-50); }
.btn--ghost { color: var(--ink); background: transparent; }
.btn--ghost:hover { background: #eef4f6; }
.btn--ghost-light {
  color: #fff;
  border-color: rgba(255, 255, 255, .32);
  background: rgba(255, 255, 255, .07);
  backdrop-filter: blur(6px);
}
.btn--ghost-light:hover { background: rgba(255, 255, 255, .16); }
.btn--sm { padding: 10px 17px; font-size: 12.5px; border-radius: 10px; }
.btn--lg { padding: 16px 28px; font-size: 15px; border-radius: 14px; }
.btn--block { width: 100%; }
.btn .icon { width: 17px; height: 17px; }
.btn--lg .icon { width: 18px; height: 18px; }

.round-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  transition: background .25s, color .25s, border-color .25s, transform .25s;
}
.round-btn .icon { width: 19px; height: 19px; }
.round-btn--light {
  width: 46px;
  height: 46px;
  background: #fff;
  color: var(--ink);
  border: 0;
}
.round-btn--light:hover { background: var(--brand); color: #fff; transform: rotate(45deg); }

/* ---------- Топбар ---------- */
.topbar {
  background: var(--dark);
  color: #b7c6ce;
  font-size: 12px;
}
.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 40px;
}
.topbar__left, .topbar__right { display: flex; align-items: center; gap: 24px; }
.topbar__geo { display: inline-flex; align-items: center; gap: 6px; }
.topbar__geo .icon { width: 13px; height: 13px; color: #6dc7e7; }
.topbar__geo--spb { position: relative; padding-left: 24px; }
.topbar__geo--spb::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 1px;
  height: 12px;
  background: rgba(255, 255, 255, .18);
  transform: translateY(-50%);
}
.topbar__hours { display: inline-flex; align-items: center; gap: 6px; }
.topbar__hours .icon { width: 13px; height: 13px; color: #6dc7e7; }
.topbar__phone { color: #fff; font-weight: 700; letter-spacing: .01em; }
.topbar__link {
  padding: 0;
  border: 0;
  background: none;
  color: #6dc7e7;
  font-size: 12px;
  font-weight: 700;
  border-bottom: 1px dashed rgba(109, 199, 231, .45);
}
.topbar__link:hover { color: #fff; border-bottom-color: #fff; }

/* ---------- Шапка ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(255, 255, 255, .95);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .3s, border-color .3s;
}
.header.is-scrolled {
  border-bottom-color: var(--line-soft);
  box-shadow: 0 12px 32px -26px rgba(14, 35, 45, .4);
}
.header__inner {
  display: flex;
  align-items: center;
  gap: 34px;
  min-height: 82px;
}
.brand { display: inline-flex; align-items: center; gap: 11px; flex: 0 0 auto; }
.brand__mark { width: 44px; height: 44px; border-radius: 12px; flex: 0 0 auto; }
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__name {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: .01em;
  color: var(--ink);
}
.brand__name em { font-style: normal; color: var(--brand); }
.brand__tag {
  margin-top: 6px;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}
.nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: 8px;
}
.nav__item { position: relative; display: flex; align-items: center; }
.nav__link {
  display: inline-flex;
  align-items: center;
  padding: 10px 11px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-2);
  transition: background .2s, color .2s;
}
.nav__link:hover { color: var(--brand); background: var(--brand-50); }
.nav__toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 30px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--muted);
}
.nav__toggle .icon { width: 15px; height: 15px; transition: transform .25s; }
.nav__item.is-open .nav__toggle .icon { transform: rotate(180deg); }

.dropdown {
  position: absolute;
  top: calc(100% + 13px);
  left: -10px;
  min-width: 262px;
  padding: 10px;
  background: #fff;
  border: 1px solid var(--line-soft);
  border-radius: 16px;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity .25s var(--ease), visibility .25s, transform .25s var(--ease);
  z-index: 20;
}
.dropdown::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -16px;
  height: 16px;
}
.nav__item:hover .dropdown,
.nav__item:focus-within .dropdown,
.nav__item.is-open .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.dropdown a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 12px;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-2);
  transition: background .2s, color .2s;
}
.dropdown a span { font-size: 10.5px; color: var(--muted); font-weight: 500; white-space: nowrap; }
.dropdown a:hover { background: var(--bg); color: var(--brand); }
.dropdown__all {
  margin-top: 6px;
  border-top: 1px solid var(--line-soft);
  border-radius: 0 0 9px 9px !important;
  color: var(--brand) !important;
  font-weight: 800 !important;
}
.dropdown__all .icon { width: 15px; height: 15px; }

.header__actions { display: flex; align-items: center; gap: 18px; margin-left: auto; }
.header__phone { display: flex; flex-direction: column; line-height: 1.15; }
.header__phone span { font-size: 9.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.header__phone strong { margin-top: 4px; font-size: 14.5px; font-weight: 800; color: var(--ink); letter-spacing: -.01em; }
.header__phone:hover strong { color: var(--brand); }

.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}
.burger span {
  display: block;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform .25s, opacity .25s;
}
.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); }

/* ---------- Мобильное меню ---------- */
.drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 120;
  display: flex;
  flex-direction: column;
  width: min(390px, 100%);
  padding: 22px 22px 28px;
  background: #fff;
  transform: translateX(102%);
  transition: transform .4s var(--ease);
  overflow-y: auto;
  overscroll-behavior: contain;
}
body.menu-open .drawer { transform: translateX(0); }
.drawer__head { display: flex; align-items: center; justify-content: space-between; padding-bottom: 18px; border-bottom: 1px solid var(--line-soft); }
.drawer__title { font-size: 12px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.drawer__close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}
.drawer__close .icon { width: 18px; height: 18px; }
.drawer__nav { display: flex; flex-direction: column; padding: 10px 0 6px; }
.drawer__nav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 2px;
  border-bottom: 1px solid var(--line-soft);
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
}
.drawer__nav a span {
  padding: 2px 7px;
  border-radius: 6px;
  background: var(--bg);
  font-size: 10.5px;
  font-weight: 700;
  color: var(--muted);
}
.drawer__footer { margin-top: auto; padding-top: 24px; }
.drawer__phone { display: block; font-size: 22px; font-weight: 800; color: var(--ink); letter-spacing: -.02em; }
.drawer__phone--sub { margin-top: 2px; font-size: 15px; color: var(--muted); }
.drawer__socials { display: flex; gap: 8px; margin: 16px 0 18px; }
.drawer__socials a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--bg);
  color: var(--ink-2);
}
.drawer__socials a:hover { background: var(--brand); color: #fff; }
.drawer__socials .icon { width: 18px; height: 18px; }
.drawer-overlay {
  position: fixed;
  inset: 0;
  z-index: 110;
  background: rgba(6, 17, 23, .55);
  backdrop-filter: blur(3px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s, visibility .3s;
}
body.menu-open .drawer-overlay { opacity: 1; visibility: visible; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: clamp(610px, 84vh, 800px);
  background: var(--dark);
  color: #fff;
  overflow: hidden;
}
.hero__media { position: absolute; inset: 0; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(7, 17, 23, .95) 0%, rgba(7, 17, 23, .86) 30%, rgba(7, 17, 23, .52) 55%, rgba(7, 17, 23, .18) 78%, rgba(7, 17, 23, .12) 100%),
    linear-gradient(0deg, rgba(7, 17, 23, .62) 0%, transparent 38%);
}
.hero__inner {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding: 94px 0 110px;
}
.hero__content { max-width: 720px; }
.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 100px;
  background: rgba(255, 255, 255, .06);
  backdrop-filter: blur(8px);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .11em;
  text-transform: uppercase;
  color: #d4e5ec;
}
.hero__eyebrow .icon { width: 14px; height: 14px; color: #6dc7e7; }
.hero h1 {
  max-width: 760px;
  margin: 24px 0 22px;
  color: #fff;
  font-size: clamp(40px, 5vw, 68px);
  line-height: 1.03;
  letter-spacing: -.045em;
  text-wrap: balance;
}
.hero h1 .accent {
  color: #6dc7e7;
  position: relative;
  white-space: nowrap;
}
.hero__lead {
  max-width: 570px;
  color: #c3d1d8;
  font-size: 16px;
  line-height: 1.72;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero__trust {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  margin-top: 32px;
}
.hero__trust li {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12.5px;
  font-weight: 600;
  color: #c8d6dc;
}
.hero__trust .icon { width: 15px; height: 15px; color: #6dc7e7; stroke-width: 2.4; }
.hero__teaser {
  align-self: flex-end;
  width: 300px;
  flex: 0 0 auto;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 20px;
  background: rgba(8, 23, 31, .62);
  backdrop-filter: blur(18px);
  box-shadow: 0 24px 50px -20px rgba(0, 0, 0, .5);
}
.hero__teaser-tag {
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #6dc7e7;
}
.hero__teaser h2 { margin: 10px 0 6px; color: #fff; font-size: 31px; letter-spacing: -.04em; }
.hero__teaser p { color: #a9bcc5; font-size: 12.5px; }
.hero__teaser-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, .14);
}
.hero__teaser-row span { display: block; font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: #8fa4ad; }
.hero__teaser-row strong { display: block; margin-top: 4px; font-size: 20px; font-weight: 800; color: #fff; letter-spacing: -.02em; }
.hero__scroll {
  position: absolute;
  left: 50%;
  bottom: 20px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  transform: translateX(-50%);
  font-size: 8.5px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .45);
}
.hero__scroll i {
  width: 1px;
  height: 30px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, .45), transparent);
  animation: scrollLine 2s infinite;
}
@keyframes scrollLine {
  0% { transform: scaleY(0); transform-origin: top; }
  45% { transform: scaleY(1); transform-origin: top; }
  55% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ---------- Цифры ---------- */
.stats { position: relative; z-index: 5; margin-top: -58px; }
.stats__card {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 24px 10px;
  background: #fff;
  border: 1px solid var(--line-soft);
  border-radius: 22px;
  box-shadow: 0 30px 60px -42px rgba(14, 35, 45, .45);
}
.stat { padding: 6px 30px; border-left: 1px solid var(--line-soft); }
.stat:first-child { border-left: 0; }
.stat strong {
  display: block;
  font-size: 31px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -.045em;
  color: var(--ink);
}
.stat span { display: block; margin-top: 5px; font-size: 11.5px; color: var(--muted); }

/* ---------- Категории ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.cat-card {
  position: relative;
  display: block;
  min-height: 380px;
  border-radius: 22px;
  overflow: hidden;
  background: var(--dark-2);
  color: #fff;
  isolation: isolate;
}
.cat-card__media { position: absolute; inset: 0; z-index: -2; }
.cat-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.cat-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(7, 17, 23, .02) 34%, rgba(7, 17, 23, .72) 100%);
  transition: background .3s;
}
.cat-card:hover .cat-card__media img { transform: scale(1.05); }
.cat-card:hover::after { background: linear-gradient(180deg, rgba(7, 17, 23, .05) 20%, rgba(7, 17, 23, .8) 100%); }
.cat-card__count {
  position: absolute;
  top: 16px;
  left: 16px;
  padding: 7px 12px;
  border-radius: 100px;
  background: rgba(255, 255, 255, .92);
  color: var(--ink);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .02em;
  backdrop-filter: blur(6px);
}
.cat-card__body {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  padding: 24px;
}
.cat-card__body h3 { color: #fff; font-size: 24px; letter-spacing: -.04em; }
.cat-card__body p { margin-top: 6px; color: #b9cbd3; font-size: 13px; }
.cat-card__body .round-btn {
  border-color: rgba(255, 255, 255, .35);
  background: rgba(255, 255, 255, .1);
  color: #fff;
  backdrop-filter: blur(4px);
}
.cat-card:hover .round-btn { background: var(--brand); border-color: var(--brand); transform: rotate(45deg); }

/* ---------- Преимущества ---------- */
.advantages { background: #fff; }
.adv-grid {
  display: grid;
  grid-template-columns: 1.02fr 1fr;
  gap: 38px;
  align-items: stretch;
}
.adv-media {
  position: relative;
  min-height: 540px;
  border-radius: 24px;
  overflow: hidden;
  background: var(--bg);
}
.adv-media > img { width: 100%; height: 100%; object-fit: cover; }
.adv-media__badge {
  position: absolute;
  top: 20px;
  left: 20px;
  display: flex;
  flex-direction: column;
  padding: 13px 17px;
  border-radius: 13px;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow-sm);
}
.adv-media__badge strong { font-size: 22px; font-weight: 800; line-height: 1.1; letter-spacing: -.04em; color: var(--ink); }
.adv-media__badge span { margin-top: 3px; font-size: 10px; color: var(--muted); }
.adv-media__card {
  position: absolute;
  right: 16px;
  bottom: 16px;
  left: 16px;
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 14px 17px;
  border-radius: 14px;
  background: rgba(10, 25, 33, .78);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, .14);
  color: #fff;
}
.adv-media__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
}
.adv-media__icon .icon { width: 20px; height: 20px; }
.adv-media__card strong { display: block; font-size: 13.5px; font-weight: 800; }
.adv-media__card span { display: block; margin-top: 2px; font-size: 11px; color: #a9bcc5; }

.adv-list { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.adv-item {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 22px;
  border: 1px solid var(--line-soft);
  border-radius: 18px;
  background: var(--bg);
  transition: transform .3s var(--ease), box-shadow .3s, background .3s;
}
.adv-item:hover { transform: translateY(-3px); background: #fff; box-shadow: var(--shadow-sm); }
.adv-item__num {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .1em;
  color: #a8b6be;
}
.adv-item__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  margin-bottom: 18px;
  border-radius: 13px;
  background: #fff;
  color: var(--brand);
  box-shadow: 0 8px 18px -12px rgba(14, 35, 45, .3);
}
.adv-item:hover .adv-item__icon { background: var(--brand); color: #fff; }
.adv-item__icon .icon { width: 22px; height: 22px; }
.adv-item h3 { font-size: 16.5px; letter-spacing: -.025em; }
.adv-item p { margin-top: 8px; font-size: 12.5px; line-height: 1.6; color: var(--muted); }
.adv-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 22px;
  padding: 16px 26px;
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  background: var(--bg);
}
.adv-strip div {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-2);
}
.adv-strip .icon { width: 15px; height: 15px; color: var(--green); stroke-width: 2.4; }

/* ---------- Каталог ---------- */
.catalog { background: var(--bg); }
.catalog-tabs {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 5px;
  margin-bottom: 18px;
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  background: #eaf1f3;
}
.catalog-tab {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 15px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 700;
  transition: background .2s, color .2s, box-shadow .2s;
}
.catalog-tab span {
  padding: 1px 6px;
  border-radius: 5px;
  background: rgba(14, 35, 45, .07);
  font-size: 10px;
  font-weight: 800;
}
.catalog-tab:hover { color: var(--ink); }
.catalog-tab.is-active { background: #fff; color: var(--ink); box-shadow: 0 4px 12px -6px rgba(14, 35, 45, .25); }
.catalog-tab.is-active span { background: var(--brand-50); color: var(--brand); }

.filter-panel {
  padding: 22px 24px;
  border: 1px solid var(--line-soft);
  border-radius: 20px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.filter-panel__mobile { display: none; }
.filter-panel__body {
  display: grid;
  grid-template-columns: 1.15fr 1.15fr 1.25fr auto;
  gap: 30px;
  align-items: end;
}
.filter-block { min-width: 0; }
.filter-block__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 2px;
}
.filter-block__head > span,
.filter-block__label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
}
.filter-block__label .icon { width: 14px; height: 14px; }
.filter-block__head output {
  font-size: 11.5px;
  font-weight: 800;
  color: var(--brand);
  white-space: nowrap;
}
.range { position: relative; padding-top: 10px; }
.range__rail {
  position: relative;
  height: 4px;
  border-radius: 4px;
  background: #e5edf0;
}
.range__fill {
  position: absolute;
  top: 0;
  bottom: 0;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--brand-600), var(--brand));
}
.range__inputs { position: absolute; top: 2px; left: 0; right: 0; height: 20px; }
.range__input {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 20px;
  margin: 0;
  padding: 0;
  appearance: none;
  -webkit-appearance: none;
  background: none;
  pointer-events: none;
}
.range__input:focus { outline: none; }
.range__input::-webkit-slider-thumb {
  appearance: none;
  -webkit-appearance: none;
  pointer-events: auto;
  width: 19px;
  height: 19px;
  border: 4px solid #fff;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 1.5px var(--brand), 0 3px 8px rgba(14, 35, 45, .22);
  cursor: grab;
  transition: transform .15s;
}
.range__input::-moz-range-thumb {
  pointer-events: auto;
  width: 19px;
  height: 19px;
  border: 4px solid #fff;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 1.5px var(--brand), 0 3px 8px rgba(14, 35, 45, .22);
  cursor: grab;
  transition: transform .15s;
}
.range__input:active::-webkit-slider-thumb { cursor: grabbing; transform: scale(1.12); }
.range__input:active::-moz-range-thumb { cursor: grabbing; transform: scale(1.12); }
.range__input:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 3px var(--brand), 0 0 0 6px rgba(0, 137, 197, .25); }
.range__input:focus-visible::-moz-range-thumb { box-shadow: 0 0 0 3px var(--brand), 0 0 0 6px rgba(0, 137, 197, .25); }
.range__labels {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
  font-size: 10.5px;
  color: #94a2aa;
}
.filter-block--sort .filter-block__label { margin-bottom: 10px; }
.sort {
  display: flex;
  gap: 3px;
  padding: 4px;
  border-radius: 10px;
  background: var(--bg);
}
.sort__btn {
  padding: 8px 10px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  white-space: nowrap;
  transition: background .2s, color .2s;
}
.sort__btn:hover { color: var(--ink); }
.sort__btn.is-active { background: #fff; color: var(--brand); box-shadow: 0 3px 8px -4px rgba(14, 35, 45, .25); }
.filter-reset {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 42px;
  padding: 0 15px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--muted);
  white-space: nowrap;
  transition: color .2s, border-color .2s, background .2s;
}
.filter-reset .icon { width: 14px; height: 14px; }
.filter-reset:hover { color: var(--brand); border-color: var(--brand); background: var(--brand-50); }

.catalog-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 44px;
  margin: 18px 0 16px;
}
.catalog-meta p { font-size: 12.5px; color: var(--muted); }
.catalog-meta p span { font-weight: 800; color: var(--ink); }
.catalog-meta__chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 9px;
  border: 0;
  border-radius: 6px;
  background: var(--brand-50);
  color: var(--brand-700);
  font-size: 10.5px;
  font-weight: 700;
}
.chip:hover { background: var(--brand-100); }
.chip .icon { width: 11px; height: 11px; }

.projects { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.project {
  position: relative;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line-soft);
  border-radius: 20px;
  background: #fff;
  overflow: hidden;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s;
}
.project:hover { transform: translateY(-4px); border-color: transparent; box-shadow: var(--shadow); }
.project__media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--bg);
}
.project__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.project:hover .project__media img { transform: scale(1.04); }
.project__badges { position: absolute; top: 13px; left: 13px; display: flex; flex-wrap: wrap; gap: 5px; }
.badge {
  display: inline-flex;
  align-items: center;
  padding: 5px 8px;
  border-radius: 6px;
  background: var(--green);
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
  line-height: 1.2;
}
.badge--hit { background: var(--orange); }
.badge--sale { background: var(--red); }
.badge--premium { background: var(--ink); }
.badge--season { background: #6d7b85; }
.project__fav {
  position: absolute;
  top: 12px;
  right: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .92);
  color: var(--ink-2);
  backdrop-filter: blur(4px);
  transition: color .2s, background .2s, transform .2s;
}
.project__fav .icon { width: 16px; height: 16px; }
.project__fav:hover { transform: scale(1.08); color: var(--red); }
.project__fav.is-active { background: var(--red); color: #fff; }
.project__fav.is-active .icon { fill: currentColor; }
.project__body { display: flex; flex-direction: column; flex: 1; padding: 17px 20px 20px; }
.project__type {
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--brand);
}
.project h3 { margin-top: 4px; font-size: 20px; letter-spacing: -.035em; }
.project__specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px 10px;
  margin-top: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line-soft);
}
.project__specs span { display: flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--muted); }
.project__specs .icon { width: 14px; height: 14px; color: #93a2ab; }
.project__foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 14px; }
.project__price span { display: block; font-size: 9.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.project__price strong { display: block; margin-top: 2px; font-size: 20px; font-weight: 800; letter-spacing: -.035em; color: var(--ink); }
.project__mortgage { margin-top: 3px; font-size: 10px; color: var(--muted); }
.project__more {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fff;
  color: var(--ink);
  transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.project__more .icon { width: 17px; height: 17px; }
.project__more:hover { background: var(--brand); border-color: var(--brand); color: #fff; transform: rotate(45deg); }

.catalog-more { display: flex; justify-content: center; margin-top: 34px; }
.catalog-more .btn[hidden] { display: none; }
.catalog-empty {
  padding: 56px 24px;
  border: 1px dashed var(--line);
  border-radius: 20px;
  background: #fff;
  text-align: center;
}
.catalog-empty__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  margin-bottom: 16px;
  border-radius: 50%;
  background: var(--brand-50);
  color: var(--brand);
}
.catalog-empty__icon .icon { width: 26px; height: 26px; }
.catalog-empty h3 { font-size: 21px; }
.catalog-empty p { max-width: 420px; margin: 8px auto 20px; font-size: 13.5px; color: var(--muted); }
.noscript { padding: 14px 18px; border-radius: 10px; background: #fff3cd; color: #7a5c00; font-size: 13px; }

.catalog-banner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  margin-top: 42px;
  padding: 34px 38px;
  border-radius: 22px;
  background:
    radial-gradient(600px 240px at 88% 30%, rgba(0, 137, 197, .5), transparent 60%),
    linear-gradient(115deg, #0d2733 0%, #123d4d 100%);
  color: #fff;
  overflow: hidden;
}
.catalog-banner::after {
  content: "";
  position: absolute;
  right: -40px;
  top: -80px;
  width: 300px;
  height: 300px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 50%;
}
.catalog-banner__text h3 { margin-top: 8px; color: #fff; font-size: clamp(22px, 2.4vw, 30px); }
.catalog-banner__text p { max-width: 600px; margin-top: 8px; color: #b6c9d1; font-size: 13px; }
.catalog-banner .btn { position: relative; z-index: 1; flex: 0 0 auto; }

/* ---------- Калькулятор ---------- */
.calculator { background: #0b161d; padding: 92px 0; }
.calc {
  display: grid;
  grid-template-columns: .88fr 1.12fr;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.calc__aside {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 46px 44px;
  background:
    radial-gradient(480px 340px at 100% 0%, rgba(0, 137, 197, .38), transparent 65%),
    linear-gradient(150deg, #0f2530 0%, #102f3c 100%);
  color: #fff;
  overflow: hidden;
}
.calc__aside h2 { margin: 14px 0 16px; color: #fff; font-size: clamp(28px, 3vw, 38px); line-height: 1.1; max-width: 420px; }
.calc__lead { max-width: 420px; color: #b7c8d0; font-size: 13.5px; line-height: 1.7; }
.calc__benefits { display: flex; flex-direction: column; gap: 12px; margin-top: 26px; }
.calc__benefits li { display: flex; align-items: center; gap: 11px; font-size: 12.5px; font-weight: 600; color: #d2dee4; }
.calc__benefits li span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: rgba(109, 199, 231, .14);
  color: #6dc7e7;
}
.calc__benefits .icon { width: 13px; height: 13px; stroke-width: 2.6; }
.calc__aside-note {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-top: auto;
  padding-top: 36px;
}
.calc__aside-avatars { display: flex; }
.calc__aside-avatars span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  margin-left: -9px;
  border: 2px solid #12313e;
  border-radius: 50%;
  background: #d7a97f;
  font-size: 11px;
  font-weight: 800;
  color: #402a18;
}
.calc__aside-avatars span:first-child { margin-left: 0; background: #e0bd99; }
.calc__aside-avatars span:nth-child(3) { background: #9db4b0; color: #21332e; }
.calc__aside-note p { font-size: 10.5px; line-height: 1.45; color: #93a8b2; }
.calc__aside-note strong { font-size: 11.5px; color: #e6eef2; }
.calc__deco {
  position: absolute;
  right: -36px;
  bottom: -30px;
  width: 300px;
  color: #6dc7e7;
  opacity: .07;
  pointer-events: none;
}
.calc__panel {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 38px 40px 30px;
  background: #fff;
}
.calc__top { display: flex; align-items: center; gap: 18px; }
.calc__progress { flex: 1; height: 6px; border-radius: 6px; background: #e9eff2; overflow: hidden; }
.calc__progress span {
  display: block;
  width: 10%;
  height: 100%;
  border-radius: 6px;
  background: linear-gradient(90deg, var(--brand-600), #35b7e8);
  transition: width .4s var(--ease);
}
.calc__step { font-size: 10.5px; font-weight: 700; color: var(--muted); white-space: nowrap; }
.calc__step b { color: var(--ink); font-weight: 800; }
.calc__body { flex: 1; padding-top: 26px; }
.calc__body h3 { font-size: 21px; letter-spacing: -.03em; }
.calc__body > p { margin-top: 5px; font-size: 12px; color: var(--muted); }
.quiz-options { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-top: 18px; }
.quiz-option {
  position: relative;
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 58px;
  padding: 12px 38px 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: #fff;
  text-align: left;
  transition: border-color .2s, background .2s, box-shadow .2s;
}
.quiz-option:hover { border-color: #a9cfe0; background: #f7fcfd; }
.quiz-option.is-selected { border-color: var(--brand); background: var(--brand-50); box-shadow: 0 0 0 1px var(--brand) inset; }
.quiz-option__mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  border: 1.5px solid #cfdce2;
  border-radius: 50%;
  color: transparent;
  transition: background .2s, border-color .2s, color .2s;
}
.quiz-option.is-selected .quiz-option__mark { background: var(--brand); border-color: var(--brand); color: #fff; }
.quiz-option__mark .icon { width: 10px; height: 10px; stroke-width: 3; }
.quiz-option--multi .quiz-option__mark { border-radius: 5px; }
.quiz-option__text { font-size: 12.5px; font-weight: 700; line-height: 1.35; color: var(--ink-2); }
.quiz-option__hint { display: block; margin-top: 2px; font-size: 10.5px; font-weight: 500; color: var(--muted); }
.quiz-option__check {
  position: absolute;
  top: 10px;
  right: 10px;
  display: none;
  color: var(--brand);
}
.quiz-option.is-selected .quiz-option__check { display: block; }
.quiz-option__check .icon { width: 14px; height: 14px; stroke-width: 2.4; }

.quiz-form { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 18px; }
.quiz-form .field--full { grid-column: 1 / -1; }
.quiz-summary { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 16px; }
.quiz-summary span {
  padding: 5px 9px;
  border-radius: 6px;
  background: var(--bg);
  font-size: 10px;
  font-weight: 600;
  color: var(--muted);
}
.quiz-summary span b { font-weight: 800; color: var(--ink-2); }
.calc__nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 26px; }
.calc__nav .btn { min-width: 132px; }
.calc__back[hidden] { display: none; }
.calc__next { margin-left: auto; }
.calc__next:disabled { opacity: .42; cursor: not-allowed; transform: none; box-shadow: none; }
.calc__privacy { margin-top: 14px; font-size: 10px; line-height: 1.5; color: #98a5ad; }
.calc__privacy a { color: var(--brand); text-decoration: underline; }
.quiz-success { padding: 8px 0 4px; }
.quiz-success__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  margin-bottom: 16px;
  border-radius: 50%;
  background: #e5f7ee;
  color: var(--green);
}
.quiz-success__icon .icon { width: 28px; height: 28px; stroke-width: 2.4; }
.quiz-success h3 { font-size: 26px; }
.quiz-success > p { max-width: 460px; margin-top: 8px; font-size: 13px; color: var(--muted); }
.quiz-estimate {
  margin: 20px 0;
  padding: 18px 20px;
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  background: var(--bg);
}
.quiz-estimate span { display: block; font-size: 10px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); }
.quiz-estimate strong { display: block; margin-top: 4px; font-size: 28px; font-weight: 800; letter-spacing: -.04em; color: var(--ink); }
.quiz-estimate small { display: block; margin-top: 3px; font-size: 10.5px; color: var(--muted); }
.quiz-success__actions { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------- Этапы ---------- */
.process { background: #fff; }
.steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
  counter-reset: step;
}
.step {
  position: relative;
  padding: 24px 20px;
  border: 1px solid var(--line-soft);
  border-radius: 16px;
  background: var(--bg);
  transition: transform .3s var(--ease), box-shadow .3s, background .3s;
}
.step:hover { transform: translateY(-3px); background: #fff; box-shadow: var(--shadow-sm); }
.step__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  margin-bottom: 18px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-size: 10.5px;
  font-weight: 800;
}
.step:nth-child(2) .step__num { background: #1e9bbd; }
.step:nth-child(3) .step__num { background: #2aab9c; }
.step:nth-child(4) .step__num { background: #3a9d78; }
.step:nth-child(5) .step__num { background: #1f9d63; }
.step h3 { font-size: 16px; }
.step p { margin-top: 7px; font-size: 11.5px; line-height: 1.55; color: var(--muted); }
.step__time {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 14px;
  font-size: 10px;
  font-weight: 700;
  color: var(--brand);
}
.step__time .icon { width: 12px; height: 12px; }
.steps .step::after {
  content: "";
  position: absolute;
  top: 40px;
  right: -15px;
  width: 16px;
  height: 1px;
  background: var(--line);
}
.steps .step:last-child::after { display: none; }

/* ---------- Акции ---------- */
.promo { background: var(--sand); }
.promo__period {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 14px;
  border: 1px solid #e4d8c6;
  border-radius: 100px;
  background: rgba(255, 255, 255, .6);
  font-size: 10.5px;
  font-weight: 700;
  color: #7b6a54;
}
.promo__period .icon { width: 13px; height: 13px; }
.promo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.promo-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 330px;
  padding: 26px;
  border-radius: 22px;
  overflow: hidden;
  color: #fff;
  isolation: isolate;
}
.promo-card--blue { background: linear-gradient(150deg, #0c6f9c 0%, #0a8fbe 100%); }
.promo-card--sand { background: linear-gradient(150deg, #c4894d 0%, #dca363 100%); }
.promo-card--dark { background: linear-gradient(150deg, #25333b 0%, #101c24 100%); }
.promo-card::before {
  content: "";
  position: absolute;
  right: -60px;
  top: -70px;
  z-index: -1;
  width: 230px;
  height: 230px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 50%;
}
.promo-card__badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin-bottom: 24px;
  border-radius: 12px;
  background: rgba(255, 255, 255, .14);
  color: #fff;
  backdrop-filter: blur(4px);
}
.promo-card__badge .icon { width: 21px; height: 21px; }
.promo-card__label {
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .64);
}
.promo-card h3 { max-width: 330px; margin-top: 7px; color: #fff; font-size: 22px; line-height: 1.18; }
.promo-card p { max-width: 330px; margin-top: 10px; font-size: 12px; line-height: 1.6; color: rgba(255, 255, 255, .75); }
.promo-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  align-self: flex-start;
  margin-top: auto;
  padding: 10px 15px;
  border: 1px solid rgba(255, 255, 255, .32);
  border-radius: 9px;
  background: rgba(255, 255, 255, .08);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  transition: background .2s, color .2s, border-color .2s, gap .25s;
}
.promo-card__cta:hover { gap: 11px; background: #fff; color: var(--ink); border-color: #fff; }
.promo-card__cta .icon { width: 14px; height: 14px; }
.promo-card__deco {
  position: absolute;
  right: 18px;
  bottom: 8px;
  z-index: -1;
  font-size: 96px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.07em;
  color: rgba(255, 255, 255, .08);
  pointer-events: none;
}
.promo-card__deco small { font-size: 30px; }

/* ---------- Портфолио ---------- */
.portfolio { background: var(--bg); }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.tile {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  padding: 0;
  border: 0;
  border-radius: 18px;
  overflow: hidden;
  background: var(--dark-2);
  cursor: zoom-in;
}
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(6, 16, 22, .78) 100%);
  opacity: .75;
  transition: opacity .3s;
}
.tile:hover img { transform: scale(1.045); }
.tile:hover::after { opacity: 1; }
.tile__overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 18px;
  text-align: left;
  color: #fff;
}
.tile__tag {
  padding: 4px 8px;
  border-radius: 5px;
  background: rgba(255, 255, 255, .16);
  backdrop-filter: blur(4px);
  font-size: 8.5px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.tile__title { margin-top: 7px; font-size: 13px; font-weight: 700; line-height: 1.3; }
.tile__zoom {
  position: absolute;
  right: 16px;
  bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .16);
  backdrop-filter: blur(4px);
  transition: background .2s, transform .2s;
}
.tile__zoom .icon { width: 15px; height: 15px; }
.tile:hover .tile__zoom { background: var(--brand); transform: scale(1.08); }
.portfolio__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 24px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.portfolio__footer > span { display: flex; align-items: center; gap: 7px; font-size: 11.5px; color: var(--muted); }
.portfolio__footer .icon { width: 14px; height: 14px; color: var(--brand); }

/* ---------- Отзывы ---------- */
.reviews { background: #fff; }
.reviews__rating {
  display: grid;
  grid-template-columns: auto auto;
  align-items: center;
  gap: 2px 10px;
  padding: 12px 16px;
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  background: var(--bg);
}
.reviews__stars { display: flex; gap: 2px; color: #f2a93b; grid-row: span 2; }
.reviews__stars .icon { width: 15px; height: 15px; fill: currentColor; stroke: none; }
.reviews__rating strong { font-size: 17px; font-weight: 800; color: var(--ink); line-height: 1; }
.reviews__rating > span:last-child { font-size: 9.5px; color: var(--muted); }
.reviews-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.review {
  display: flex;
  flex-direction: column;
  padding: 24px;
  border: 1px solid var(--line-soft);
  border-radius: 18px;
  background: var(--bg);
}
.review__stars { display: flex; gap: 2px; color: #f2a93b; }
.review__stars .icon { width: 13px; height: 13px; fill: currentColor; stroke: none; }
.review blockquote {
  margin: 14px 0 20px;
  font-size: 12.5px;
  line-height: 1.72;
  color: var(--text);
}
.review footer { display: flex; align-items: center; gap: 10px; margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line); }
.review__avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--av, var(--brand));
  color: #fff;
  font-size: 13px;
  font-weight: 800;
}
.review footer div { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
.review footer strong { font-size: 11.5px; font-weight: 800; color: var(--ink); }
.review footer span { font-size: 9.5px; color: var(--muted); }
.review__source {
  margin-left: auto;
  padding: 3px 7px;
  border-radius: 4px;
  background: #fff;
  font-size: 8.5px !important;
  font-weight: 700;
  color: #7d8a93 !important;
}

/* ---------- FAQ ---------- */
.faq { background: var(--bg); }
.faq__layout { display: grid; grid-template-columns: .8fr 1.2fr; gap: 64px; align-items: start; }
.faq__aside { position: sticky; top: 110px; }
.faq__aside h2 { margin: 13px 0 16px; }
.faq__aside > p { max-width: 360px; font-size: 13px; line-height: 1.7; color: var(--muted); }
.faq__aside .btn { margin-top: 24px; }
.faq__phone { display: inline-block; margin-top: 18px; font-size: 18px; font-weight: 800; letter-spacing: -.03em; color: var(--ink); }
.faq__phone:hover { color: var(--brand); }
.faq__list { display: flex; flex-direction: column; gap: 9px; }
.faq-item {
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  background: #fff;
  overflow: hidden;
  transition: border-color .25s, box-shadow .25s;
}
.faq-item[open] { border-color: #cfe3ec; box-shadow: 0 14px 30px -26px rgba(14, 35, 45, .5); }
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 20px;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 27px;
  height: 27px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--bg);
  color: var(--ink-2);
  transition: background .2s, color .2s, transform .3s;
}
.faq-item__icon .icon { width: 13px; height: 13px; transition: transform .3s; }
.faq-item[open] .faq-item__icon { background: var(--brand); color: #fff; }
.faq-item[open] .faq-item__icon .icon { transform: rotate(45deg); }
.faq-item__body { padding: 0 20px 19px; }
.faq-item__body p { max-width: 680px; font-size: 12px; line-height: 1.7; color: var(--muted); }

/* ---------- Контакты / CTA ---------- */
.cta { position: relative; padding: 92px 0; background: var(--dark); overflow: hidden; }
.cta__bg { position: absolute; inset: 0; }
.cta__bg img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.cta__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(6, 16, 22, .97) 0%, rgba(6, 16, 22, .93) 42%, rgba(6, 16, 22, .62) 100%),
    linear-gradient(0deg, rgba(6, 16, 22, .4), transparent);
}
.cta__inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr .95fr; gap: 60px; align-items: center; }
.cta__content h2 { margin: 13px 0 16px; color: #fff; font-size: clamp(34px, 4vw, 50px); }
.cta__content > p { max-width: 480px; color: #b9c9d1; font-size: 13.5px; line-height: 1.7; }
.cta__contacts { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 24px; margin-top: 30px; }
.cta__contacts li { display: flex; align-items: flex-start; gap: 11px; }
.cta__ic {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 10px;
  background: rgba(255, 255, 255, .06);
  color: #6dc7e7;
}
.cta__ic .icon { width: 16px; height: 16px; }
.cta__contacts li > div { display: flex; flex-direction: column; line-height: 1.4; }
.cta__contacts span { font-size: 9.5px; letter-spacing: .08em; text-transform: uppercase; color: #8fa4ad; }
.cta__contacts a, .cta__contacts p { margin-top: 3px; font-size: 13px; font-weight: 700; color: #fff; }
.cta__contacts a:hover { color: #6dc7e7; }
.cta__socials { display: flex; gap: 9px; margin-top: 28px; }
.cta__socials a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 13px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 9px;
  color: #e0eaee;
  font-size: 11px;
  font-weight: 700;
  transition: background .2s, border-color .2s;
}
.cta__socials a:hover { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .35); }
.cta__socials .icon { width: 14px; height: 14px; }

.lead-form {
  padding: 30px;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .65);
}
.lead-form__head { display: flex; flex-direction: column; gap: 3px; padding-bottom: 18px; margin-bottom: 18px; border-bottom: 1px solid var(--line-soft); }
.lead-form__head h3 { font-size: 20px; }
.lead-form__head span { display: flex; align-items: center; gap: 5px; font-size: 10px; font-weight: 600; color: var(--green); }
.lead-form__head .icon { width: 12px; height: 12px; }

/* ---------- Формы ---------- */
.form { display: flex; flex-direction: column; }
.field { display: flex; flex-direction: column; margin-bottom: 12px; }
.field label { display: flex; align-items: baseline; gap: 5px; margin-bottom: 6px; font-size: 10px; font-weight: 700; letter-spacing: .02em; color: var(--ink-2); }
.field label span { font-size: 9px; font-weight: 500; color: #9aa8b0; }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 11px 13px;
  border: 1.5px solid var(--line);
  border-radius: 9px;
  background: #fbfdfd;
  color: var(--ink);
  font-size: 12.5px;
  line-height: 1.4;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.field textarea { resize: vertical; min-height: 70px; }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236d7b85' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 13px center; padding-right: 34px; }
.field input::placeholder, .field textarea::placeholder { color: #9fadb5; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--brand);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(0, 137, 197, .11);
}
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--red); background: #fff8f8; }
.field__error { display: block; margin-top: 4px; font-size: 9.5px; font-weight: 600; color: var(--red); }
.field__error:empty { display: none; }
.field__error--consent { margin: -6px 0 10px; }
.checkbox { display: flex; align-items: flex-start; gap: 8px; margin: 4px 0 14px; font-size: 9.5px; line-height: 1.55; color: var(--muted); cursor: pointer; }
.checkbox input { width: 15px; height: 15px; flex: 0 0 auto; margin: 1px 0 0; accent-color: var(--brand); }
.checkbox a { color: var(--brand); text-decoration: underline; text-underline-offset: 2px; }
.form__note { margin-top: 9px; font-size: 9.5px; line-height: 1.5; color: #9aa8b0; text-align: center; }
.form-success { padding: 34px 8px 22px; text-align: center; }
.form-success__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 62px;
  height: 62px;
  margin-bottom: 16px;
  border-radius: 50%;
  background: #e5f7ee;
  color: var(--green);
}
.form-success__icon .icon { width: 30px; height: 30px; stroke-width: 2.4; }
.form-success h3 { font-size: 23px; }
.form-success p { max-width: 380px; margin: 9px auto 20px; font-size: 12px; line-height: 1.65; color: var(--muted); }
.modal .form-success { padding-top: 18px; }

/* ---------- Футер ---------- */
.footer { padding-top: 62px; background: #0b161d; color: #91a3ac; }
.footer__top { display: grid; grid-template-columns: 1.4fr .9fr .9fr 1.2fr; gap: 42px; padding-bottom: 46px; }
.footer .brand__name { color: #fff; }
.footer .brand__tag { color: #7a8f99; }
.footer__brand > p { max-width: 290px; margin: 18px 0 20px; font-size: 11.5px; line-height: 1.7; color: #81959f; }
.footer__socials { display: flex; gap: 7px; }
.footer__socials a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 9px;
  background: rgba(255, 255, 255, .035);
  color: #b9c9d1;
  transition: background .2s, color .2s, border-color .2s;
}
.footer__socials a:hover { background: var(--brand); border-color: var(--brand); color: #fff; }
.footer__socials .icon { width: 16px; height: 16px; }
.footer__col { display: flex; flex-direction: column; align-items: flex-start; }
.footer__col h4 { margin-bottom: 14px; font-size: 9.5px; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; color: #e6eef2; }
.footer__col a { padding: 4px 0; font-size: 11.5px; color: #8fa2ac; transition: color .2s; }
.footer__col a:hover { color: #fff; }
.footer__col p { padding: 3px 0; font-size: 11px; color: #7f939d; }
.footer__col--contacts .footer__phone { padding: 0 0 3px; font-size: 16px; font-weight: 800; letter-spacing: -.02em; color: #fff; }
.footer__col--contacts .footer__phone:hover { color: #6dc7e7; }
.footer__col--contacts a[href^="mailto"] { padding: 4px 0 8px; color: #b9c9d1; }
.footer__callback {
  margin-top: 10px;
  padding: 0;
  border: 0;
  border-bottom: 1px dashed #4e6a78;
  background: none;
  font-size: 10.5px;
  font-weight: 700;
  color: #6dc7e7;
}
.footer__callback:hover { color: #fff; border-bottom-color: #fff; }
.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 17px 0 22px;
  border-top: 1px solid rgba(255, 255, 255, .08);
  font-size: 9.5px;
  color: #667c87;
}
.footer__bottom > div { display: flex; gap: 18px; }
.footer__bottom a:hover { color: #b7c8d0; }
.footer__demo { color: #536a75; }

/* ---------- Плавающие кнопки ---------- */
.contact-dock {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 60;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.dock-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 14px;
  color: #fff;
  box-shadow: 0 10px 24px -10px rgba(8, 20, 27, .55);
  transition: transform .2s, filter .2s;
}
.dock-btn:hover { transform: translateY(-2px); filter: brightness(1.06); }
.dock-btn .icon { width: 21px; height: 21px; }
.dock-btn span {
  position: absolute;
  right: calc(100% + 10px);
  padding: 5px 9px;
  border-radius: 6px;
  background: var(--dark);
  color: #fff;
  font-size: 9.5px;
  font-weight: 700;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transform: translateX(4px);
  transition: opacity .2s, visibility .2s, transform .2s;
}
.dock-btn:hover span { opacity: 1; visibility: visible; transform: translateX(0); }
.dock-btn--wa { background: #22a95e; }
.dock-btn--tg { background: #229ed9; }
.dock-btn--call { background: var(--brand); }

.to-top {
  position: fixed;
  right: 23px;
  bottom: 196px;
  z-index: 55;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 255, 255, .95);
  color: var(--ink);
  box-shadow: var(--shadow-sm);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity .25s, visibility .25s, transform .25s, background .2s, color .2s;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { background: var(--brand); border-color: var(--brand); color: #fff; }
.to-top .icon { width: 17px; height: 17px; transform: rotate(90deg); }

.chat-teaser {
  position: fixed;
  right: 82px;
  bottom: 20px;
  z-index: 70;
  width: 300px;
  padding: 15px;
  border: 1px solid var(--line-soft);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 24px 60px -18px rgba(8, 20, 27, .45);
  animation: teaserIn .45s var(--ease);
}
@keyframes teaserIn { from { opacity: 0; transform: translateY(12px) scale(.97); } to { opacity: 1; transform: none; } }
.chat-teaser[hidden] { display: none; }
.chat-teaser__close {
  position: absolute;
  top: 8px;
  right: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--bg);
  color: var(--muted);
}
.chat-teaser__close .icon { width: 12px; height: 12px; }
.chat-teaser__head { display: flex; align-items: center; gap: 9px; padding-right: 20px; }
.chat-teaser__avatar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: linear-gradient(145deg, #c99062, #a86d42);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
}
.chat-teaser__avatar i {
  position: absolute;
  right: 0;
  bottom: 1px;
  width: 9px;
  height: 9px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: #2fbf71;
}
.chat-teaser__head div { display: flex; flex-direction: column; line-height: 1.3; }
.chat-teaser__head strong { font-size: 12px; font-weight: 800; color: var(--ink); }
.chat-teaser__head span { font-size: 9px; color: var(--green); }
.chat-teaser > p { margin: 10px 0 11px; font-size: 10.5px; line-height: 1.55; color: var(--muted); }
.chat-teaser__cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px;
  border-radius: 8px;
  background: #22a95e;
  color: #fff;
  font-size: 10.5px;
  font-weight: 800;
}
.chat-teaser__cta:hover { filter: brightness(1.05); }
.chat-teaser__cta .icon { width: 14px; height: 14px; }

/* ---------- Модальные окна ---------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity .28s, visibility .28s;
}
.modal.is-open { opacity: 1; visibility: visible; }
.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 15, 21, .7);
  backdrop-filter: blur(6px);
}
.modal__dialog {
  position: relative;
  width: min(500px, 100%);
  max-height: calc(100vh - 48px);
  padding: 34px;
  border-radius: 22px;
  background: #fff;
  overflow-y: auto;
  box-shadow: 0 50px 100px -30px rgba(0, 0, 0, .55);
  transform: translateY(18px) scale(.985);
  transition: transform .3s var(--ease);
}
.modal.is-open .modal__dialog { transform: none; }
.modal--wide .modal__dialog { width: min(1000px, 100%); padding: 0; overflow-x: hidden; }
.modal--privacy .modal__dialog { width: min(680px, 100%); z-index: 2; }
.modal__close {
  position: sticky;
  top: 0;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  margin-left: auto;
  margin-bottom: -38px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 255, 255, .96);
  color: var(--ink);
  box-shadow: var(--shadow-sm);
  transition: background .2s, color .2s, transform .2s;
}
.modal__close:hover { background: var(--ink); color: #fff; transform: rotate(90deg); }
.modal__close .icon { width: 17px; height: 17px; }
.modal__body { padding-top: 6px; }
.modal__body h3 { margin-top: 10px; font-size: 27px; }
.modal__lead { margin-top: 8px; font-size: 12.5px; line-height: 1.65; color: var(--muted); }
.modal__topic {
  display: inline-flex;
  margin-top: 12px;
  padding: 5px 10px;
  border-radius: 6px;
  background: var(--brand-50);
  font-size: 10px;
  font-weight: 700;
  color: var(--brand-700);
}
.modal .form { margin-top: 18px; }
.modal .field { margin-bottom: 11px; }

.project-view { display: grid; grid-template-columns: 1.02fr 1fr; min-height: 480px; }
.project-view__media { position: relative; min-height: 100%; background: var(--bg); }
.project-view__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.project-view__badge {
  position: absolute;
  top: 18px;
  left: 18px;
  padding: 6px 10px;
  border-radius: 6px;
  background: var(--orange);
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.project-view__body { display: flex; flex-direction: column; padding: 32px 32px 28px; }
.project-view__body h3 { margin-top: 6px; font-size: 30px; }
.project-view__desc { margin-top: 10px; font-size: 12px; line-height: 1.7; color: var(--muted); }
.project-view__specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 18px;
  padding: 14px;
  border-radius: 12px;
  background: var(--bg);
}
.project-view__specs span { display: flex; align-items: center; gap: 7px; font-size: 11px; font-weight: 600; color: var(--ink-2); }
.project-view__specs .icon { width: 15px; height: 15px; color: var(--brand); }
.project-view__features { display: grid; grid-template-columns: 1fr 1fr; gap: 5px 14px; margin-top: 16px; }
.project-view__features li { display: flex; align-items: flex-start; gap: 6px; font-size: 10.5px; line-height: 1.45; color: var(--muted); }
.project-view__features .icon { width: 12px; height: 12px; margin-top: 2px; color: var(--green); stroke-width: 2.4; }
.project-view__foot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid var(--line-soft);
}
.project-view__price span { display: block; font-size: 9.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.project-view__price strong { display: block; margin-top: 2px; font-size: 25px; font-weight: 800; letter-spacing: -.04em; color: var(--ink); }
.project-view__price small { display: block; margin-top: 2px; font-size: 9.5px; color: var(--muted); }
.project-view__actions { display: flex; gap: 7px; }
.project-view__actions .btn { padding: 11px 14px; font-size: 11px; }

.privacy-text { max-height: 48vh; margin: 16px 0 20px; padding-right: 8px; overflow-y: auto; }
.privacy-text p { margin-bottom: 12px; font-size: 11.5px; line-height: 1.7; color: var(--muted); }
.privacy-text p strong { color: var(--ink-2); }
.privacy-text a { color: var(--brand); text-decoration: underline; }
.privacy-text__note { padding: 10px 12px; border-radius: 8px; background: #fff8e6; color: #7a5c00 !important; font-size: 10px !important; }

/* ---------- Лайтбокс ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 260;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 70px;
  background: rgba(4, 11, 15, .95);
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s, visibility .25s;
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox__figure { max-width: 100%; text-align: center; }
.lightbox__figure img {
  max-width: 100%;
  max-height: 76vh;
  margin: 0 auto;
  border-radius: 10px;
  object-fit: contain;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .5);
}
.lightbox__figure figcaption {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  max-width: 820px;
  margin: 14px auto 0;
  color: #b6c6ce;
  font-size: 11.5px;
  text-align: left;
}
.lightbox__count { color: #70848e; white-space: nowrap; }
.lightbox__close {
  position: absolute;
  top: 20px;
  right: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 50%;
  background: rgba(255, 255, 255, .07);
  color: #fff;
}
.lightbox__close:hover { background: rgba(255, 255, 255, .16); }
.lightbox__close .icon { width: 20px; height: 20px; }
.lightbox__nav {
  position: absolute;
  top: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 50%;
  background: rgba(255, 255, 255, .07);
  color: #fff;
  transform: translateY(-50%);
  transition: background .2s, transform .2s;
}
.lightbox__nav:hover { background: var(--brand); border-color: var(--brand); }
.lightbox__nav--prev { left: 16px; }
.lightbox__nav--next { right: 16px; }
.lightbox__nav .icon { width: 20px; height: 20px; }

/* ---------- Тост ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 26px;
  z-index: 300;
  padding: 12px 18px;
  border-radius: 10px;
  background: var(--dark);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 12px);
  transition: opacity .25s, visibility .25s, transform .25s;
  pointer-events: none;
  max-width: calc(100% - 32px);
  text-align: center;
}
.toast.is-visible { opacity: 1; visibility: visible; transform: translate(-50%, 0); }

/* ---------- Появление ---------- */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* ============================================================
   Адаптив
   ============================================================ */
@media (max-width: 1280px) {
  .header__inner { gap: 20px; }
  .nav { margin-left: 0; }
  .nav__link { padding: 10px 8px; font-size: 12.5px; }
  .header__actions { gap: 14px; }
  .hero__teaser { width: 280px; }
  .hero h1 { font-size: clamp(40px, 4.8vw, 62px); }
}

@media (max-width: 1180px) {
  .header__phone { display: none; }
  .hero__inner { gap: 30px; }
  .hero__content { max-width: 660px; }
}

@media (max-width: 1080px) {
  .nav { display: none; }
  .burger { display: flex; }
  .header__inner { justify-content: space-between; }
  .header__actions { margin-left: auto; }
  .hero__teaser { display: none; }
  .hero__content { max-width: 720px; }
  .projects { grid-template-columns: repeat(2, 1fr); }
  .calc { grid-template-columns: .9fr 1.1fr; }
  .calc__aside { padding: 38px 34px; }
  .calc__panel { padding: 32px 30px 28px; }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .steps .step::after { display: none; }
  .footer__top { grid-template-columns: 1.3fr 1fr 1fr; }
  .footer__col--contacts { grid-column: span 3; display: grid; grid-template-columns: 1fr 1fr; gap: 0 30px; align-items: start; }
  .footer__col--contacts h4 { grid-column: 1 / -1; }
  .footer__col--contacts .footer__phone { grid-column: 1; }
}

@media (max-width: 1024px) {
  .section { padding: 78px 0; }
  .section--catalog-preview { padding: 38px 0 76px; }
  .section-head { margin-bottom: 34px; gap: 30px; }
  .stats__card { grid-template-columns: 1fr 1fr; padding: 14px 8px; }
  .stat { padding: 16px 24px; }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(3), .stat:nth-child(4) { border-top: 1px solid var(--line-soft); }
  .cat-grid { grid-template-columns: 1fr 1fr; }
  .cat-card { min-height: 340px; }
  .cat-card:last-child { grid-column: span 2; min-height: 300px; }
  .cat-card:last-child .cat-card__media img { object-position: center 60%; }
  .adv-grid { grid-template-columns: 1fr; gap: 24px; }
  .adv-media { min-height: 430px; }
  .adv-list { grid-template-columns: 1fr 1fr; }
  .adv-strip { flex-wrap: wrap; justify-content: flex-start; gap: 12px 28px; }
  .filter-panel__body { grid-template-columns: 1fr 1fr; gap: 24px 30px; }
  .filter-reset { height: 40px; width: 100%; }
  .filter-block--sort { grid-column: 1 / 2; }
  .catalog-banner { padding: 28px 30px; }
  .calc { grid-template-columns: 1fr; }
  .calc__aside { padding: 36px 34px 30px; }
  .calc__aside-note { margin-top: 18px; padding-top: 0; }
  .calc__deco { display: none; }
  .calc__panel { padding: 30px 32px 26px; }
  .promo-grid { gap: 14px; }
  .promo-card { padding: 22px; }
  .promo-card__deco { font-size: 76px; }
  .gallery { gap: 12px; }
  .reviews-grid { grid-template-columns: 1fr 1fr; }
  .review:last-child { grid-column: span 2; }
  .faq__layout { grid-template-columns: 1fr; gap: 30px; }
  .faq__aside { position: static; }
  .faq__aside > p { max-width: 520px; }
  .cta__inner { grid-template-columns: 1fr; gap: 38px; }
  .cta__content > p { max-width: 600px; }
  .lead-form { max-width: 620px; }
  .footer__top { grid-template-columns: 1fr 1fr; gap: 34px; }
  .footer__brand { grid-column: span 2; }
  .footer__brand > p { max-width: 440px; }
  .footer__col--contacts { grid-column: auto; display: flex; }
  .footer__col--contacts h4 { grid-column: auto; }
}

@media (max-width: 900px) {
  .topbar__geo--spb, .topbar__hours { display: none; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 14px; }
  .section-head__text { max-width: 560px; }
  .section-head--wide { align-items: flex-start; }
  .cat-grid { grid-template-columns: 1fr 1fr; }
  .cat-card { min-height: 300px; }
  .cat-card:last-child { min-height: 280px; }
  .promo-grid { grid-template-columns: 1fr; }
  .promo-card { min-height: 280px; }
  .promo-card__deco { font-size: 110px; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .cta__contacts { grid-template-columns: 1fr 1fr; }
  .footer__bottom { flex-wrap: wrap; }
  .footer__demo { width: 100%; }
}

@media (max-width: 760px) {
  .container { width: calc(100% - 32px); }
  .section { padding: 62px 0; }
  .section--catalog-preview { padding: 32px 0 62px; }
  .section-head { margin-bottom: 28px; }
  .topbar__inner { min-height: 36px; }
  .topbar__left { display: none; }
  .topbar__right { width: 100%; justify-content: space-between; gap: 12px; }
  .header__inner { min-height: 68px; gap: 12px; }
  .brand__mark { width: 40px; height: 40px; }
  .brand__name { font-size: 18px; }
  .brand__tag { font-size: 8px; }
  .header__cta { display: none; }
  .hero { min-height: 570px; }
  .hero__inner { padding: 52px 0 66px; }
  .hero h1 { margin: 18px 0 18px; font-size: clamp(34px, 8vw, 44px); }
  .hero__lead { font-size: 14px; line-height: 1.65; }
  .hero__eyebrow { font-size: 9px; padding: 7px 11px; }
  .hero__actions { flex-direction: column; align-items: stretch; gap: 9px; margin-top: 24px; }
  .hero__actions .btn { width: 100%; }
  .hero__trust { gap: 10px 16px; margin-top: 24px; }
  .hero__trust li { font-size: 11px; }
  .hero__scroll { display: none; }
  .hero__overlay { background: linear-gradient(0deg, rgba(6, 16, 22, .9) 0%, rgba(6, 16, 22, .62) 55%, rgba(6, 16, 22, .5) 100%); }
  .stats { margin-top: -32px; }
  .stat { padding: 14px 16px; }
  .stat strong { font-size: 24px; }
  .stat span { font-size: 10px; }
  .cat-grid { grid-template-columns: 1fr; gap: 14px; }
  .cat-card, .cat-card:last-child { grid-column: auto; min-height: 290px; }
  .cat-card:last-child .cat-card__media img { object-position: center; }
  .cat-card__body { padding: 20px; }
  .cat-card__body h3 { font-size: 22px; }
  .adv-list { grid-template-columns: 1fr; }
  .adv-media { min-height: 340px; }
  .adv-strip { justify-content: flex-start; gap: 10px 20px; padding: 14px 18px; }
  .adv-strip div { font-size: 10.5px; }
  .catalog-tabs { display: flex; width: 100%; overflow-x: auto; flex-wrap: nowrap; scrollbar-width: none; }
  .catalog-tabs::-webkit-scrollbar { display: none; }
  .catalog-tab { flex: 0 0 auto; }
  .filter-panel { padding: 14px 16px; }
  .filter-panel__mobile { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
  .filter-panel__mobile > span { display: flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 800; color: var(--ink); }
  .filter-panel__mobile .icon { width: 16px; height: 16px; color: var(--brand); }
  .filter-panel__toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    font-size: 10.5px;
    font-weight: 700;
    color: var(--muted);
  }
  .filter-panel__toggle .icon { width: 13px; height: 13px; transition: transform .25s; }
  .filter-panel__toggle[aria-expanded="true"] .icon { transform: rotate(180deg); }
  .filter-panel__body { display: none; grid-template-columns: 1fr; gap: 20px; padding-top: 18px; }
  .filter-panel__body.is-open { display: grid; }
  .filter-block--sort { grid-column: auto; }
  .filter-reset { width: 100%; }
  .catalog-meta { align-items: flex-start; flex-direction: column; gap: 8px; margin: 14px 0 12px; }
  .projects { grid-template-columns: 1fr; gap: 14px; }
  .project__media { aspect-ratio: 16 / 11; }
  .catalog-banner { flex-direction: column; align-items: flex-start; gap: 20px; padding: 24px; margin-top: 30px; }
  .catalog-banner .btn { width: 100%; }
  .calculator { padding: 62px 0; }
  .calc__aside { padding: 28px 24px 26px; }
  .calc__aside h2 { font-size: 28px; }
  .calc__aside-note { margin-top: 22px; }
  .calc__panel { padding: 24px 20px 22px; }
  .calc__top { gap: 12px; }
  .quiz-options { grid-template-columns: 1fr; gap: 8px; }
  .quiz-option { min-height: 54px; }
  .quiz-form { grid-template-columns: 1fr; }
  .calc__nav .btn { min-width: 0; flex: 1; padding: 13px 16px; font-size: 12.5px; }
  .calc__next { flex: 1.4; }
  .quiz-success h3 { font-size: 22px; }
  .quiz-estimate strong { font-size: 24px; }
  .steps { grid-template-columns: 1fr 1fr; gap: 10px; }
  .step { padding: 20px 17px; }
  .step__num { margin-bottom: 14px; }
  .section-head .link-arrow { padding-top: 2px; }
  .gallery { grid-template-columns: 1fr 1fr; gap: 10px; }
  .tile { border-radius: 14px; }
  .tile__title { font-size: 11px; }
  .tile__overlay { padding: 13px; }
  .tile__zoom { display: none; }
  .portfolio__footer { flex-direction: column; align-items: flex-start; }
  .portfolio__footer .btn { width: 100%; }
  .reviews-grid { grid-template-columns: 1fr; }
  .review:last-child { grid-column: auto; }
  .reviews__rating { align-self: flex-start; }
  .faq-item summary { padding: 15px 16px; font-size: 12px; }
  .faq-item__body { padding: 0 16px 16px; }
  .faq__aside .btn { width: 100%; }
  .cta { padding: 62px 0; }
  .cta__inner { gap: 30px; }
  .cta__contacts { grid-template-columns: 1fr; gap: 14px; }
  .cta__socials { margin-top: 22px; }
  .lead-form { padding: 24px 20px; }
  .footer { padding-top: 44px; }
  .footer__top { grid-template-columns: 1fr 1fr; gap: 28px 20px; padding-bottom: 32px; }
  .footer__brand { grid-column: span 2; }
  .footer__bottom { flex-direction: column; align-items: flex-start; gap: 10px; padding-bottom: 18px; }
  .footer__bottom > div { flex-wrap: wrap; gap: 6px 16px; }
  .modal { padding: 12px; }
  .modal__dialog { padding: 24px 20px; max-height: calc(100vh - 24px); }
  .modal__body h3 { font-size: 23px; }
  .project-view { grid-template-columns: 1fr; }
  .project-view__media { min-height: 0; height: 230px; }
  .project-view__media img { position: static; height: 100%; }
  .project-view__body { padding: 22px 20px 20px; }
  .project-view__body h3 { font-size: 25px; }
  .project-view__features { grid-template-columns: 1fr; }
  .project-view__foot { flex-direction: column; align-items: stretch; }
  .project-view__actions .btn { flex: 1; }
  .lightbox { padding: 56px 12px 20px; }
  .lightbox__figure img { max-height: 70vh; }
  .lightbox__nav { width: 40px; height: 40px; top: auto; bottom: 16px; transform: none; }
  .lightbox__nav--prev { left: 16px; }
  .lightbox__nav--next { right: 16px; }
  .lightbox__figure figcaption { margin-bottom: 46px; font-size: 10px; }
  .lightbox__close { top: 12px; right: 12px; width: 38px; height: 38px; }
  .contact-dock { right: 14px; bottom: 14px; }
  .dock-btn { width: 44px; height: 44px; border-radius: 12px; }
  .dock-btn span { display: none; }
  .to-top { right: 16px; bottom: 154px; width: 38px; height: 38px; }
  .chat-teaser { display: none !important; }
  .toast { bottom: 76px; font-size: 11px; }
  .footer__col--contacts { grid-column: span 2; }
}

@media (max-width: 560px) {
  .section { padding: 54px 0; }
  .topbar__phone { font-size: 11px; }
  .topbar__link { font-size: 10.5px; }
  .brand__tag { display: none; }
  .brand__mark { width: 38px; height: 38px; }
  .brand__name { font-size: 19px; }
  .hero h1 { font-size: clamp(31px, 9.4vw, 38px); line-height: 1.06; }
  .hero__lead { font-size: 13.5px; }
  .hero__trust { flex-direction: column; gap: 7px; }
  .stat { padding: 12px 14px; }
  .stat strong { font-size: 22px; }
  .adv-media { min-height: 280px; }
  .adv-media__badge { padding: 10px 13px; }
  .adv-media__card { padding: 12px 13px; }
  .adv-strip { flex-direction: column; align-items: flex-start; gap: 8px; }
  .catalog-tab { padding: 8px 11px; font-size: 11.5px; }
  .catalog-meta__chips { gap: 4px; }
  .steps { grid-template-columns: 1fr; }
  .step { padding: 18px 16px; }
  .step__num { width: 30px; height: 30px; }
  .gallery { grid-template-columns: 1fr; }
  .tile__zoom { display: flex; }
  .tile__title { font-size: 13px; }
  .promo-card { padding: 20px; min-height: 300px; }
  .promo-card h3 { font-size: 20px; }
  .promo-card__deco { font-size: 84px; }
  .footer__top { grid-template-columns: 1fr; }
  .footer__brand, .footer__col--contacts { grid-column: auto; }
  .footer__col { padding-top: 4px; }
  .lead-form { padding: 20px 16px; }
  .cta__socials { flex-wrap: wrap; }
  .modal__dialog { padding: 22px 16px; }
  .project-view__body { padding: 20px 16px; }
  .project-view__specs { grid-template-columns: 1fr; }
  .lightbox__figure figcaption { flex-direction: column; gap: 4px; }
  .quiz-options { gap: 7px; }
  .quiz-option { padding: 11px 34px 11px 12px; }
  .quiz-option__text { font-size: 11.5px; }
  .calc__panel { padding: 22px 16px 18px; }
  .calc__privacy { font-size: 9px; }
}



