/* ============================================================
   Дом под ключ — Калининградская обл. | Прототип v3
   Визуальная система: «чертёж → объект»
   Палитра: charcoal + латунь + blueprint-cyan
   Шрифты: Playfair Display / Manrope / IBM Plex Mono
   ============================================================ */

:root {
  /* — палитра — */
  --charcoal:      #14130F;
  --surface-dark:  #1C1917;
  --surface-dark2: #252220;
  --offwhite:      #FAFAF8;
  --surface-lt:    #F1EFE9;
  --fg:            #1C1917;
  --fg-on-dark:    #ECEAE3;
  --muted:         #6C685E;
  --muted-dark:    #9A958A;
  --brass:         #B89154;
  --brass-bright:  #CDA869;
  --gold:          #A16207;
  --cyan:          #7FB7BE;
  --cyan-bright:   #5BE0E6;
  --line-dark:     rgba(236,234,227,.12);
  --line-lt:       #E2E0D8;
  --timber:        #9A6B43;
  --stone:         #A8A29A;
  --foliage:       #6E7A5E;

  /* — типографика — Archivo (архитектурный гротеск) + Onest + IBM Plex Mono — */
  --display: "Archivo", system-ui, sans-serif;
  --sans: "Onest", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;

  --text-hero: clamp(2.2rem, 1rem + 4.3vw, 5.3rem);
  --text-h2:   clamp(2rem, 1rem + 3.4vw, 4.2rem);
  --text-h3:   clamp(1.4rem, 1rem + 1.4vw, 2.2rem);
  --text-base: clamp(1rem, .95rem + .25vw, 1.18rem);

  /* — ритм / прочее — */
  --space-section: clamp(4rem, 3rem + 6vw, 10rem);
  --container: 1320px;
  --radius: 4px;
  --radius-lg: 12px;
  --ease: cubic-bezier(.16,1,.3,1);
  --dur: 600ms;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--sans);
  font-size: var(--text-base);
  line-height: 1.65;
  color: var(--fg);
  background: var(--offwhite);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul { list-style: none; }

/* — служебные — */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: clamp(1.2rem, 4vw, 3rem); }
.eyebrow {
  font-family: var(--mono); font-size: .8rem; letter-spacing: .22em;
  text-transform: uppercase; color: var(--brass); display: inline-flex; gap: .6rem; align-items: center;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: var(--brass); display: inline-block; }
h1, h2, h3 { font-family: var(--display); font-weight: 800; font-stretch: 115%; line-height: 1.0; letter-spacing: -.015em; text-transform: none; }
h1 { font-weight: 900; font-stretch: 125%; }
.mono { font-family: var(--mono); }
.section { padding-block: var(--space-section); position: relative; }

/* — секции тёмные = «чертёж» — */
.section--dark { background: var(--charcoal); color: var(--fg-on-dark); }
.section--dark h2, .section--dark h3 { color: var(--offwhite); }
.section--dark .blueprint-grid { position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image:
    linear-gradient(var(--line-dark) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-dark) 1px, transparent 1px);
  background-size: 40px 40px; mask-image: radial-gradient(ellipse at 50% 0%, #000 30%, transparent 80%);
}

/* ============================================================
   HEADER
   ============================================================ */
.header {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: nowrap;
  gap: clamp(1rem, 2.5vw, 2rem); padding: .9rem clamp(1.1rem, 4vw, 3rem);
  background: rgba(20,19,15,.82); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-dark); color: var(--fg-on-dark);
}
.brand { display: flex; align-items: center; gap: .7rem; font-family: var(--display); font-size: 1.22rem; color: var(--offwhite); flex-shrink: 0; }
.brand .brand__mark { width: 34px; height: 34px; flex-shrink: 0; border: 1px solid var(--brass); border-radius: 50%;
  display: grid; place-items: center; font-family: var(--mono); font-size: .85rem; color: var(--brass); }
.brand__txt { display: inline-flex; flex-direction: column; justify-content: center; line-height: 1.12; }
.brand__txt b { font-weight: 700; letter-spacing: .01em; white-space: nowrap; }
.brand small { font-family: var(--mono); font-size: .6rem; letter-spacing: .18em; color: var(--brass);
  text-transform: uppercase; display: block; margin: 0 0 2px; opacity: .92; white-space: nowrap; }
.nav { display: flex; align-items: center; gap: clamp(1rem, 1.8vw, 1.6rem); flex-shrink: 0; flex-wrap: nowrap; }
.nav a { font-size: .92rem; color: var(--fg-on-dark); opacity: .85; transition: opacity .2s; position: relative; white-space: nowrap; }
.nav a:hover { opacity: 1; color: var(--brass-bright); }
.nav .has-sub::after { content: "▾"; font-size: .7rem; margin-left: .3rem; color: var(--brass); }
.header__right { display: flex; align-items: center; gap: 1rem; }
.lang { font-family: var(--mono); font-size: .78rem; letter-spacing: .1em; color: var(--muted-dark); }
.lang b { color: var(--offwhite); }
.lang-switch { display: inline-flex; gap: .1rem; align-items: center; }
.lang-switch a { color: var(--muted-dark); padding: 0 .15rem; transition: color .2s; }
.lang-switch a:hover { color: var(--brass-bright); }
.lang-switch a[aria-current] b, .lang-switch a b { color: var(--offwhite); }
.btn {
  display: inline-flex; align-items: center; gap: .5rem; padding: .8rem 1.4rem;
  border-radius: 2px; font-weight: 600; font-size: .92rem; letter-spacing: .01em;
  transition: transform .25s var(--ease), background .25s, color .25s; white-space: nowrap;
}
.btn--gold { background: linear-gradient(135deg, var(--brass), var(--brass-bright)); color: var(--charcoal); }
.btn--gold:hover { transform: translateY(-2px); }
.btn--ghost { border: 1px solid var(--line-dark); color: var(--fg-on-dark); }
.btn--ghost:hover { border-color: var(--brass); color: var(--brass-bright); }
.btn--ghost-lt { border: 1px solid var(--line-lt); color: var(--fg); }
.btn--ghost-lt:hover { border-color: var(--brass); color: var(--gold); }
.btn--lg { padding: 1.05rem 2rem; font-size: 1rem; }
.burger { display: none; flex-direction: column; gap: 5px; }
.burger span { width: 26px; height: 2px; background: var(--offwhite); }

/* ============================================================
   HERO
   ============================================================ */
/* высота = экран минус шапка (≈92px), чтобы hero помещался целиком */
.hero { position: relative; min-height: calc(100svh - 92px); display: flex; align-items: center;
  background: var(--charcoal); color: var(--fg-on-dark); overflow: hidden; }
.hero__bg { position: absolute; inset: 0; z-index: 0; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.hero__bg::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20,19,15,.55) 0%, rgba(20,19,15,.2) 40%, var(--charcoal) 100%); }
.hero .blueprint-grid { z-index: 1; opacity: .35; }
.hero__inner { position: relative; z-index: 2; width: 100%; padding-block: clamp(1rem, 3vw, 2rem) clamp(1.5rem, 3.5vw, 2.8rem); }
.hero h1 { font-size: var(--text-hero); font-stretch: 112%; max-width: 20ch; margin: .6rem 0 .7rem; color: var(--offwhite); }
.hero h1 .accent { color: var(--brass-bright); }
.hero__sub { max-width: 52ch; font-size: clamp(1rem, .95rem + .35vw, 1.18rem); color: var(--offwhite); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 1.3rem; }
.hero__dims { position: absolute; right: clamp(1rem,4vw,3rem); top: 30%; z-index: 2;
  font-family: var(--mono); font-size: .72rem; color: var(--cyan); text-align: right; opacity: .75; display: none; }
.hero__dims div { border-right: 1px solid var(--cyan); padding-right: .6rem; margin-bottom: .4rem; }

/* — trust-полоса — */
.trust-strip { display: flex; flex-wrap: wrap; gap: clamp(1rem, 4vw, 3rem); align-items: center;
  padding: 1.3rem clamp(1.2rem,4vw,3rem); background: var(--surface-dark); color: var(--fg-on-dark);
  border-block: 1px solid var(--line-dark); }
.trust-strip .item { display: flex; align-items: center; gap: .6rem; font-size: .9rem; }
.trust-strip .item b { font-family: var(--mono); color: var(--brass-bright); }
.trust-strip .item svg { width: 18px; height: 18px; stroke: var(--brass); }

/* ============================================================
   ВЫБОР МАТЕРИАЛА (ключевой блок)
   ============================================================ */
.section-head { max-width: 60ch; margin-bottom: clamp(2rem, 4vw, 3.5rem); }
.section-head h2 { font-size: var(--text-h2); margin: .8rem 0; }
.section-head p { color: var(--muted); max-width: 52ch; }
.section--dark .section-head p { color: var(--muted-dark); }

.material-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.2rem; }
.mat-card { position: relative; display: flex; flex-direction: column; justify-content: flex-end;
  aspect-ratio: 1 / 1; min-height: 300px; padding: 1.6rem; border: 1px solid var(--line-dark); border-radius: var(--radius-lg);
  overflow: hidden; background: var(--surface-dark); transition: transform .4s var(--ease), border-color .4s; }
.mat-card:hover { transform: translateY(-6px); border-color: var(--brass); }
.mat-card__img { position: absolute; inset: 0; z-index: 0; }
.mat-card__img img { width: 100%; height: 100%; object-fit: cover; opacity: .42; transition: opacity .4s, transform .6s var(--ease); }
.mat-card:hover .mat-card__img img { opacity: .6; transform: scale(1.05); }
.mat-card__img::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 20%, rgba(20,19,15,.85) 100%); }
.mat-card__body { position: relative; z-index: 1; color: var(--fg-on-dark); }
.mat-card__tag { font-family: var(--mono); font-size: .7rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--cyan); }
.mat-card h3 { font-size: 1.6rem; color: var(--offwhite); margin: .4rem 0 .5rem; }
.mat-card p { font-size: .9rem; color: var(--muted-dark); margin-bottom: .9rem; }
.mat-card__price { font-family: var(--mono); font-size: .8rem; color: var(--brass-bright); }
.mat-card__arrow { position: absolute; top: 1.4rem; right: 1.4rem; z-index: 1;
  width: 38px; height: 38px; border: 1px solid var(--line-dark); border-radius: 50%; display: grid; place-items: center;
  color: var(--brass); transition: background .3s, color .3s; }
.mat-card:hover .mat-card__arrow { background: var(--brass); color: var(--charcoal); }
.mat-card--flagship { background: linear-gradient(150deg, var(--surface-dark2), var(--charcoal)); }
.mat-card--flagship .mat-card__img img { opacity: .5; }
.mat-card--flagship .blueprint-grid { opacity: .45; }

/* ============================================================
   ОДИН ИНЖЕНЕР vs ОТДЕЛ
   ============================================================ */
.vs-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.vs-card { padding: 2.2rem; border-radius: var(--radius-lg); }
.vs-card--bad { background: var(--surface-lt); border: 1px solid var(--line-lt); }
.vs-card--good { background: var(--charcoal); color: var(--fg-on-dark); position: relative; overflow: hidden; }
.vs-card h3 { font-size: 1.5rem; margin-bottom: 1.2rem; }
.vs-card--good h3 { color: var(--brass-bright); }
.vs-list li { display: flex; gap: .8rem; padding: .7rem 0; border-bottom: 1px dashed var(--line-lt); font-size: .96rem; }
.vs-card--good .vs-list li { border-color: var(--line-dark); }
.vs-list li::before { font-family: var(--mono); font-weight: 700; }
.vs-card--bad .vs-list li::before { content: "✕"; color: #B4524A; }
.vs-card--good .vs-list li::before { content: "✓"; color: var(--cyan-bright); }

/* ============================================================
   ПОЛНЫЙ ЦИКЛ (таймлайн)
   ============================================================ */
.timeline { position: relative; margin-top: 2rem; }
.timeline__hint { font-family: var(--mono); font-size: .78rem; color: var(--muted-dark); margin: 0 0 .4rem; }
.timeline__hint::before { content: "▾ "; color: var(--brass); }
.t-stage { border-top: 1px solid var(--line-dark); }
.t-stage:last-child { border-bottom: 1px solid var(--line-dark); }
/* шапка этапа — кликабельная кнопка-аккордеон */
.t-stage__head { display: grid; grid-template-columns: 120px 1fr auto; gap: 2rem; padding: 2rem 0;
  align-items: start; width: 100%; text-align: left; background: none; border: 0; color: inherit;
  font: inherit; cursor: pointer; }
.t-stage__head:hover h3, .t-stage__head:focus-visible h3 { color: var(--brass-bright); }
.t-stage__head:focus-visible { outline: 2px solid var(--brass); outline-offset: 4px; }
/* индикатор «плюс → крест» */
.t-stage__toggle { position: relative; width: 40px; height: 40px; flex: none; margin-top: .3rem;
  border: 1px solid var(--line-dark); border-radius: 50%; transition: border-color .3s, transform .45s var(--ease); }
.t-stage__toggle::before, .t-stage__toggle::after { content: ""; position: absolute; left: 50%; top: 50%;
  width: 14px; height: 2px; background: var(--brass); transform: translate(-50%, -50%); transition: transform .45s var(--ease); }
.t-stage__toggle::after { transform: translate(-50%, -50%) rotate(90deg); }
.t-stage__head:hover .t-stage__toggle { border-color: var(--brass); }
.t-stage.is-open .t-stage__toggle { transform: rotate(45deg); border-color: var(--brass); }
/* раскрывающаяся панель: плавно через grid-rows, без JS-измерений */
.t-stage__panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .55s var(--ease); }
.t-stage.is-open .t-stage__panel { grid-template-rows: 1fr; }
.t-stage__panel-in { overflow: hidden; min-height: 0; }
.t-stage__grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 2.4rem; align-items: start;
  padding: 0 0 2.4rem calc(120px + 2rem); }
.t-stage__lead { color: var(--fg-on-dark); max-width: 62ch; margin-bottom: 1.1rem; }
.t-stage__list { list-style: none; margin: 0 0 1.4rem; padding: 0; }
.t-stage__list li { position: relative; padding: .45rem 0 .45rem 1.6rem; color: var(--muted-dark);
  border-top: 1px dashed var(--line-dark); }
.t-stage__list li:first-child { border-top: 0; }
.t-stage__list li::before { content: "✓"; position: absolute; left: 0; top: .45rem;
  font-family: var(--mono); color: var(--brass-bright); }
.t-stage__photo { margin: 0; }
.t-stage__photo img { width: 100%; aspect-ratio: 3/2; max-height: 280px; object-fit: cover; border-radius: 10px;
  border: 1px solid var(--line-dark); display: block; }
.t-stage__photo figcaption { font-family: var(--mono); font-size: .72rem; color: var(--muted-dark);
  margin-top: .5rem; letter-spacing: .04em; }
.t-stage__facts { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 1.2rem; }
.t-fact { border: 1px solid var(--line-dark); border-radius: 10px; padding: .9rem 1rem; }
.t-fact > span { display: block; font-family: var(--mono); font-size: .68rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--muted-dark); margin-bottom: .45rem; }
.t-fact b { color: var(--brass-bright); font-size: 1.05rem; }
.t-fact ul { list-style: none; margin: 0; padding: 0; }
.t-fact ul li { padding: .18rem 0; color: var(--fg-on-dark); font-size: .88rem; }
.t-fact ul li::before { content: "▪ "; color: var(--cyan); font-family: var(--mono); }
.t-stage__tags { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.2rem; }
.t-stage__tags span { font-family: var(--mono); font-size: .72rem; padding: .35rem .7rem;
  border: 1px solid var(--line-dark); border-radius: 999px; color: var(--muted-dark); }
@media (max-width: 900px) {
  .t-stage__grid { grid-template-columns: 1fr; padding-left: 0; gap: 1.4rem; }
  .t-stage__photo { order: -1; }
  .t-stage__photo img { aspect-ratio: 16/9; max-height: 210px; }
}
.t-stage__num { font-family: var(--mono); }
.t-stage__num b { font-size: 2.4rem; color: var(--brass); display: block; line-height: 1; }
.t-stage__num span { font-size: .7rem; letter-spacing: .15em; color: var(--muted-dark); text-transform: uppercase; }
.t-stage__body h3 { font-size: var(--text-h3); margin-bottom: .5rem; }
.t-stage__body p { color: var(--muted-dark); max-width: 60ch; }
.t-stage__meta { display: flex; flex-wrap: wrap; gap: 1.2rem; margin-top: 1rem; font-family: var(--mono); font-size: .78rem; }
.t-stage__meta .who { color: var(--brass-bright); }
.t-stage__meta .who::before { content: "● "; }
.t-stage__meta .trust { color: var(--cyan); }
.t-stage__meta .trust::before { content: "◆ "; }

/* ============================================================
   КАЛЬКУЛЯТОР-ТИЗЕР
   ============================================================ */
.calc { display: grid; grid-template-columns: 1.1fr .9fr; gap: 3rem; align-items: center; }
.calc__visual { aspect-ratio: 4/3; border: 1px solid var(--line-dark); border-radius: var(--radius-lg);
  position: relative; background: var(--surface-dark); overflow: hidden; display: grid; place-items: center; }
.calc__house { font-family: var(--mono); color: var(--cyan); font-size: .7rem; line-height: 1.2; white-space: pre;
  text-align: center; opacity: .9; }
.calc__panel .price-counter { font-family: var(--mono); font-size: clamp(2.4rem, 5vw, 4rem); color: var(--brass-bright);
  letter-spacing: -.02em; font-feature-settings: "tnum"; }
.calc__panel .price-counter small { font-size: 1rem; color: var(--muted-dark); }
.calc__steps { margin: 1.5rem 0; }
.calc__steps button { display: flex; justify-content: space-between; width: 100%; padding: .8rem 1rem;
  border: 1px solid var(--line-dark); border-radius: var(--radius); margin-bottom: .5rem; color: var(--fg-on-dark);
  font-family: var(--mono); font-size: .82rem; transition: border-color .25s, background .25s; }
.calc__steps button.active, .calc__steps button:hover { border-color: var(--brass); background: rgba(184,145,84,.08); }
.calc__steps button .add { color: var(--cyan); }
.calc__disclaimer { font-size: .78rem; color: var(--muted-dark); font-family: var(--mono); margin-top: 1rem; }

/* ============================================================
   ПРОЕКТЫ-ТИЗЕР
   ============================================================ */
.proj-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.2rem; }
.proj-card { border: 1px solid var(--line-lt); border-radius: var(--radius-lg); overflow: hidden;
  background: #fff; transition: transform .35s var(--ease), box-shadow .35s; }
.proj-card:hover { transform: translateY(-5px); box-shadow: 0 18px 40px rgba(20,19,15,.12); }
.proj-card__img { aspect-ratio: 4/3; position: relative; background: var(--surface-lt); overflow: hidden; }
.proj-card__img img { width: 100%; height: 100%; object-fit: cover; transition: opacity .4s; }
.proj-card__overlay { position: absolute; inset: 0; opacity: 0; transition: opacity .4s;
  background-image: linear-gradient(rgba(127,183,190,.18) 1px, transparent 1px), linear-gradient(90deg, rgba(127,183,190,.18) 1px, transparent 1px);
  background-size: 22px 22px; background-color: rgba(20,19,15,.6); display: grid; place-items: center;
  font-family: var(--mono); color: var(--cyan-bright); font-size: .8rem; letter-spacing: .1em; }
.proj-card:hover .proj-card__overlay { opacity: 1; }
.proj-card__body { padding: 1.2rem 1.4rem 1.5rem; }
.proj-card__body h3 { font-size: 1.3rem; margin-bottom: .5rem; }
.proj-card__specs { display: flex; gap: 1.2rem; font-family: var(--mono); font-size: .82rem; color: var(--muted); }
.proj-card__specs .price { color: var(--gold); font-weight: 600; }

/* ============================================================
   ВИДЕО / ЭКСПЕРТ У УЗЛА
   ============================================================ */
.expert { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.video-card { position: relative; aspect-ratio: 16/10; border-radius: var(--radius-lg); overflow: hidden;
  background: var(--surface-dark); display: grid; place-items: center; border: 1px solid var(--line-dark); }
.video-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .5; }
.video-card .play { position: relative; z-index: 1; width: 76px; height: 76px; border-radius: 50%;
  background: rgba(184,145,84,.92); display: grid; place-items: center; color: var(--charcoal); }
.video-card .play svg { width: 26px; height: 26px; margin-left: 4px; }
.video-card .label { position: absolute; left: 1.2rem; bottom: 1.2rem; z-index: 1; font-family: var(--mono);
  font-size: .78rem; color: var(--offwhite); }

/* ============================================================
   ОБЪЕКТЫ / ВИДЕОИСТОРИИ
   ============================================================ */
.stat-row { display: grid; grid-template-columns: repeat(4,1fr); gap: 1.5rem; margin-bottom: 3rem; }
.stat { text-align: left; }
.stat b { font-family: var(--mono); font-size: clamp(2rem,4vw,3.2rem); color: var(--brass-bright); display: block; }
.stat span { font-size: .85rem; color: var(--muted-dark); }
.stories { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.2rem; }
.story { border: 1px solid var(--line-dark); border-radius: var(--radius-lg); overflow: hidden; background: var(--surface-dark); }
.story__img { aspect-ratio: 16/10; position: relative; background: var(--surface-dark2); }
.story__img img { width: 100%; height: 100%; object-fit: cover; opacity: .65; }
.story__img .dur { position: absolute; right: .7rem; bottom: .7rem; font-family: var(--mono); font-size: .72rem;
  background: rgba(20,19,15,.8); color: var(--offwhite); padding: .2rem .5rem; border-radius: 2px; }
.story__body { padding: 1.1rem 1.2rem 1.4rem; }
.story__body h4 { font-family: var(--display); font-size: 1.15rem; color: var(--offwhite); margin-bottom: .3rem; }
.story__body span { font-family: var(--mono); font-size: .74rem; color: var(--cyan); }

/* ============================================================
   ДОВЕРИЕ / ДОКУМЕНТЫ
   ============================================================ */
.docs-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 1.2rem; }
.doc-card { padding: 1.6rem; border: 1px solid var(--line-lt); border-radius: var(--radius-lg); background: #fff;
  transition: border-color .3s, transform .3s var(--ease); }
.doc-card:hover { border-color: var(--brass); transform: translateY(-4px); }
.doc-card svg { width: 30px; height: 30px; stroke: var(--brass); margin-bottom: 1rem; }
.doc-card h4 { font-family: var(--sans); font-weight: 700; font-size: 1.05rem; margin-bottom: .4rem; color: var(--fg); }
.doc-card p { color: var(--muted); }
.doc-card p { font-size: .85rem; color: var(--muted); }
.doc-card .pdf { font-family: var(--mono); font-size: .72rem; color: var(--gold); margin-top: .8rem; display: inline-block; }

/* ============================================================
   ФИНАЛЬНЫЙ CTA + ФОРМА
   ============================================================ */
.cta-final { background: var(--charcoal); color: var(--fg-on-dark); position: relative; overflow: hidden; }
.cta-final .container { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.cta-final h2 { font-size: var(--text-h2); }
.cta-final p { color: var(--muted-dark); margin-top: 1rem; max-width: 44ch; }
.form { background: var(--surface-dark); border: 1px solid var(--line-dark); border-radius: var(--radius-lg); padding: 2rem; }
.form label { font-family: var(--mono); font-size: .74rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted-dark); display: block; margin-bottom: .4rem; }
.form input, .form select { width: 100%; padding: .9rem 1rem; margin-bottom: 1.1rem; background: var(--charcoal);
  border: 1px solid var(--line-dark); border-radius: var(--radius); color: var(--offwhite); font-family: var(--sans); font-size: .95rem; }
.form input:focus, .form select:focus { outline: none; border-color: var(--brass); }
.form .hint { font-family: var(--mono); font-size: .72rem; color: var(--muted-dark); margin-top: .9rem; margin-bottom: 0; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: #0E0D0A; color: var(--muted-dark); padding-block: 3.5rem 2rem; }
.footer__top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem; padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--line-dark); }
.footer h5 { font-family: var(--mono); font-size: .76rem; letter-spacing: .15em; text-transform: uppercase;
  color: var(--brass); margin-bottom: 1rem; }
.footer a { display: block; padding: .3rem 0; font-size: .9rem; transition: color .2s; }
.footer a:hover { color: var(--brass-bright); }
.footer__brand p { font-size: .88rem; max-width: 34ch; margin-top: .8rem; }
.footer__msgr { display: flex; gap: .8rem; margin-top: 1.2rem; }
.footer__msgr a { width: 42px; height: 42px; border: 1px solid var(--line-dark); border-radius: 50%;
  display: grid; place-items: center; color: var(--brass); }
.footer__msgr a:hover { border-color: var(--brass); }
.footer__bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; padding-top: 1.5rem;
  font-family: var(--mono); font-size: .74rem; }

/* — плавающие мессенджеры — */
.float-msgr { position: fixed; right: 1.2rem; bottom: 1.2rem; z-index: 90; display: flex; flex-direction: column; gap: .7rem; }
.float-msgr a { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center;
  color: #fff; box-shadow: 0 8px 22px rgba(20,19,15,.34), inset 0 0 0 1px rgba(255,255,255,.12);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.float-msgr a svg { width: 26px; height: 26px; display: block; filter: drop-shadow(0 1px 1px rgba(0,0,0,.18)); }
.float-msgr a:hover { transform: scale(1.09) translateY(-1px); box-shadow: 0 12px 28px rgba(20,19,15,.42), inset 0 0 0 1px rgba(255,255,255,.18); }
.float-msgr a:focus-visible { outline: 2px solid var(--brass-bright); outline-offset: 3px; }
/* фирменные цвета мессенджеров */
.float-msgr .msgr--tg  { background: linear-gradient(145deg, #34B4EE, #1E96C8); }
.float-msgr .msgr--wa  { background: linear-gradient(145deg, #4AE168, #25B93F); }

/* — баннер-дисклеймер прототипа — */
.proto-banner { background: var(--gold); color: #fff; text-align: center; font-family: var(--mono);
  font-size: .76rem; padding: .5rem 1rem; letter-spacing: .03em; }

/* ============================================================
   СТРАНИЦА МАТЕРИАЛА — спец-блоки
   ============================================================ */
/* ============================================================
   ЮРИДИЧЕСКИЕ СТРАНИЦЫ
   ============================================================ */
.legal-hero { background: var(--charcoal); color: var(--fg-on-dark); padding: clamp(7rem,12vw,9rem) 0 clamp(2.5rem,5vw,3.5rem); position: relative; }
.legal-hero .blueprint-grid { opacity: .4; }
.legal-hero .container { position: relative; z-index: 1; }
.legal-hero h1 { color: var(--offwhite); font-size: clamp(2rem,1rem+3vw,3.4rem); font-stretch: 110%; margin: .6rem 0 .4rem; max-width: 26ch; }
.legal-hero p { color: var(--muted-dark); font-family: var(--mono); font-size: .82rem; }
.legal { max-width: 840px; margin: 0 auto; }
.legal h2 { font-family: var(--display); font-stretch: 108%; font-weight: 800; font-size: 1.5rem; margin: 2.4rem 0 .9rem; color: var(--fg); }
.legal h3 { font-family: var(--sans); font-weight: 700; font-size: 1.1rem; margin: 1.4rem 0 .5rem; color: var(--fg); }
.legal p, .legal li { color: var(--muted); line-height: 1.7; }
.legal p { margin-bottom: .9rem; }
.legal ul, .legal ol { margin: 0 0 1rem 1.3rem; }
.legal li { margin-bottom: .45rem; }
.legal a { color: var(--gold); text-decoration: underline; text-underline-offset: 2px; }
.legal .ph { background: rgba(184,145,84,.14); border-bottom: 1px dashed var(--brass); padding: 0 .25em; border-radius: 2px; font-family: var(--mono); font-size: .92em; }
.legal .updated { font-family: var(--mono); font-size: .8rem; color: var(--muted); border: 1px solid var(--line-lt); border-radius: var(--radius); padding: .7rem 1rem; margin-bottom: 2rem; display: inline-block; }
.legal .toc { background: var(--surface-lt); border: 1px solid var(--line-lt); border-radius: var(--radius-lg); padding: 1.3rem 1.6rem; margin-bottom: 2rem; }
.legal .toc b { font-family: var(--mono); font-size: .76rem; letter-spacing: .1em; text-transform: uppercase; color: var(--brass); display: block; margin-bottom: .6rem; }
.legal .toc a { display: block; padding: .25rem 0; color: var(--fg); text-decoration: none; font-size: .95rem; }
.legal .toc a:hover { color: var(--gold); }

/* галочка согласия в формах */
.consent { display: block; position: relative; padding-left: 28px; margin: 1.1rem 0 1.5rem; font-size: .8rem; line-height: 1.55;
  color: var(--muted-dark); font-family: var(--sans); cursor: pointer; width: 100%; max-width: 100%; box-sizing: border-box;
  overflow-wrap: break-word; word-break: break-word; }
.capture .consent, .form .consent { flex-basis: 100%; color: var(--muted-dark); }
.consent input { position: absolute; left: 0; top: 2px; width: 17px; height: 17px; min-width: 0; flex: 0 0 auto;
  padding: 0; margin: 0; background: none; border: 0; border-radius: 0; box-shadow: none; accent-color: var(--brass); cursor: pointer; }
/* перебиваем .capture input / .form input (растягивали чекбокс до 150px) */
.capture .consent input, .form .consent input { width: 17px; height: 17px; min-width: 0; flex: 0 0 auto; padding: 0; border: 0; background: none; }
.consent a { white-space: normal; overflow-wrap: break-word; word-break: break-word; }
.consent a { color: var(--brass-bright); text-decoration: underline; text-underline-offset: 2px; }
.consent.consent--err { color: #E0857D; }
.consent.consent--err input { outline: 2px solid #B4524A; outline-offset: 1px; }
/* honeypot — скрытое поле-ловушка для ботов (люди его не видят) */
.hp-field { position: absolute !important; left: -9999px !important; top: auto; width: 1px; height: 1px; overflow: hidden; opacity: 0; }

/* cookie-баннер */
.cookie-banner { position: fixed; left: 1rem; right: 1rem; bottom: 1rem; z-index: 130; max-width: 920px; margin: 0 auto;
  background: rgba(20,19,15,.97); backdrop-filter: blur(14px); border: 1px solid var(--line-dark); border-radius: var(--radius-lg);
  padding: 1.1rem 1.3rem; display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; box-shadow: 0 18px 44px rgba(0,0,0,.45); color: var(--fg-on-dark); }
.cookie-banner p { font-size: .85rem; color: var(--muted-dark); flex: 1; min-width: 240px; margin: 0; }
.cookie-banner a { color: var(--brass-bright); text-decoration: underline; }
.cookie-banner .ck-actions { display: flex; gap: .6rem; }
.cookie-banner .btn { padding: .7rem 1.2rem; font-size: .85rem; }
@media (max-width: 600px) { .cookie-banner { bottom: 80px; } .cookie-banner .ck-actions { width: 100%; } .cookie-banner .btn { flex: 1; } }

/* юр-ссылки в подвале */
.footer__bottom .legal-links { flex-basis: 100%; margin-top: .9rem; padding-top: .9rem; border-top: 1px solid var(--line-dark); line-height: 1.7; }
.footer__bottom .legal-links a { display: inline; padding: 0; color: var(--muted-dark); }
.footer__bottom .legal-links a:hover { color: var(--brass-bright); }

/* hero-раскадровка по скроллу (как блок сметы) */
.seq-hero { position: relative; height: calc(100svh - 92px); background: var(--charcoal); }
.seq-hero.is-scrolly { height: 280vh; }
.seq-sticky { position: sticky; top: 0; height: 100vh; overflow: hidden; display: flex; align-items: center; }
.seq-frames { position: absolute; inset: 0; z-index: 0; }
.seq-frames img { width: 100%; height: 100%; object-fit: cover; }
.seq-overlay { position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(20,19,15,.55) 0%, rgba(20,19,15,.2) 38%, rgba(20,19,15,.85) 100%); }
.seq-content { position: relative; z-index: 2; color: var(--fg-on-dark); }
.seq-content h1, .seq-content h2 { color: var(--offwhite); font-size: clamp(2.1rem, 1rem + 3.6vw, 4.4rem); font-stretch: 112%; line-height: 1.03;
  max-width: 20ch; margin: .6rem 0 .8rem; }
.seq-content .hero__sub { color: var(--offwhite); max-width: 54ch; }
.seq-content .hero__cta { margin-top: 1.4rem; }
.seq-content .breadcrumbs { color: var(--muted-dark); padding-top: 0; }
@media (max-width: 980px) { .seq-hero.is-scrolly { height: 240vh; } }

/* hero на светлом фото (белый фон) — тёмный текст */
.hero--light { background: var(--offwhite); }
.hero--light .hero__bg img { opacity: 1; }
.hero--light .hero__bg::after { background: linear-gradient(180deg, rgba(250,250,248,.2) 0%, rgba(250,250,248,0) 30%, rgba(250,250,248,.55) 72%, var(--offwhite) 100%); }
.hero--light .blueprint-grid { display: none; }
.hero--light h1 { color: var(--fg); }
.hero--light h1 .accent { color: var(--gold); }
.hero--light .hero__sub { color: var(--muted); }
.hero--light .eyebrow { color: var(--gold); }
.hero--light .eyebrow::before { background: var(--gold); }
.hero--light .breadcrumbs { color: var(--muted); }
.hero--light .breadcrumbs a:hover { color: var(--gold); }

.breadcrumbs { font-family: var(--mono); font-size: .76rem; color: var(--muted-dark); padding: 1.2rem 0 0; }
.breadcrumbs a:hover { color: var(--brass-bright); }
.mat-hero { min-height: calc(100svh - 92px); }
.mat-hero h1 { font-size: clamp(2.6rem,1rem+6vw,6.5rem); }

/* для кого */
.audience-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.2rem; }
.aud-card { padding: 1.8rem; border-radius: var(--radius-lg); border: 1px solid var(--line-lt); background: #fff; }
.aud-card .ico { font-family: var(--mono); color: var(--brass); font-size: 1.4rem; margin-bottom: .6rem; }
.aud-card h4 { font-family: var(--sans); font-weight: 700; margin-bottom: .4rem; }
.aud-card p { font-size: .9rem; color: var(--muted); }

/* Честная врезка под сеткой "для кого" — личная реплика Дмитрия */
.honest { display: grid; grid-template-columns: auto 1fr; gap: 1.2rem 1.7rem; align-items: start;
  margin-top: clamp(2rem, 4vw, 3rem); padding: clamp(1.7rem, 3.2vw, 2.6rem);
  background: linear-gradient(135deg, rgba(184,145,84,.12), rgba(184,145,84,.03));
  border: 1px solid var(--line-lt); border-left: 4px solid var(--brass); border-radius: var(--radius-lg); }
.honest__mark { font-family: var(--display); font-weight: 900; font-size: 3.6rem; line-height: .68; color: var(--brass); user-select: none; }
.honest__label { font-family: var(--mono); font-size: .74rem; letter-spacing: .2em; text-transform: uppercase;
  color: var(--brass); margin-bottom: .8rem; display: inline-flex; gap: .6rem; align-items: center; }
.honest__label::before { content: ""; width: 24px; height: 1px; background: var(--brass); }
.honest__text { font-family: var(--display); font-stretch: 104%; font-weight: 600;
  font-size: clamp(1.22rem, 1rem + 1vw, 1.7rem); line-height: 1.3; letter-spacing: -.01em;
  color: var(--fg); max-width: 42ch; }
.honest__text em { font-style: normal; color: var(--brass); }
.honest__sign { display: flex; align-items: center; gap: .65rem; margin-top: 1.2rem;
  font-family: var(--mono); font-size: .8rem; color: var(--muted); }
.honest__sign b { font-family: var(--display); font-stretch: 110%; font-weight: 800; font-size: .98rem; color: var(--fg); }
@media (max-width: 720px) {
  .honest { grid-template-columns: 1fr; gap: .4rem; }
  .honest__mark { font-size: 2.6rem; }
}

/* разрез пирога стены */
.wall { display: grid; grid-template-columns: 1.1fr .9fr; gap: 3rem; align-items: center; }
.wall__viz { border: 1px solid var(--line-dark); border-radius: var(--radius-lg); overflow: hidden; background: var(--surface-dark); }
.wall__layer { display: grid; grid-template-columns: 60px 1fr; align-items: center; padding: 1rem 1.2rem;
  border-bottom: 1px solid var(--line-dark); font-size: .9rem; }
.wall__layer:last-child { border-bottom: none; }
.wall__layer .sw { width: 44px; height: 44px; border-radius: 4px; border: 1px solid var(--line-dark); }
.wall__layer b { color: var(--offwhite); }
.wall__layer span { display: block; font-family: var(--mono); font-size: .74rem; color: var(--cyan); }

/* плюсы/минусы */
.pm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.pm { padding: 2rem; border-radius: var(--radius-lg); }
.pm--plus { background: var(--surface-lt); border: 1px solid var(--line-lt); }
.pm--minus { background: #fff; border: 1px dashed var(--line-lt); }
.pm h3 { font-family: var(--sans); font-weight: 800; font-size: 1.2rem; margin-bottom: 1rem; }
.pm li { padding: .6rem 0; border-bottom: 1px dashed var(--line-lt); font-size: .94rem; }
.pm li:last-child { border: none; }
.pm li b { display: block; margin-top: .2rem; color: var(--gold); font-size: .85rem; }

/* сравнительная таблица */
.cmp { width: 100%; border-collapse: collapse; font-size: .92rem; }
.cmp th, .cmp td { padding: 1rem; text-align: left; border-bottom: 1px solid var(--line-dark); }
.cmp thead th { font-family: var(--mono); font-size: .76rem; letter-spacing: .1em; text-transform: uppercase; color: var(--brass); }
.cmp tbody tr.is-this { background: rgba(184,145,84,.1); }
.cmp tbody tr.is-this td:first-child { color: var(--brass-bright); font-weight: 700; }
.cmp td .mono { color: var(--cyan); }

/* состав цены */
.pricebox { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.price-stack { border: 1px solid var(--line-dark); border-radius: var(--radius-lg); overflow: hidden; }
.price-stack .row { display: flex; justify-content: space-between; padding: 1rem 1.4rem; border-bottom: 1px solid var(--line-dark);
  font-family: var(--mono); font-size: .88rem; }
.price-stack .row:last-child { border: none; }
.price-stack .row.total { background: rgba(184,145,84,.12); color: var(--brass-bright); font-weight: 700; }
.price-stack .row .v { color: var(--cyan); }

/* ============================================================
   АНИМАЦИЯ ПОЯВЛЕНИЯ
   ============================================================ */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ============================================================
   АДАПТИВ
   ============================================================ */
/* горизонтальное меню сворачивается в бургер, пока места хватает только с запасом */
@media (max-width: 1080px) {
  .nav { display: none; }
  .burger { display: flex; }
  .header__right .btn { padding: .7rem 1.1rem; font-size: .85rem; white-space: nowrap; }
}
.header__right .btn { white-space: nowrap; }
.header__right { flex-shrink: 0; }
@media (max-width: 980px) {
  .material-grid, .proj-grid, .docs-grid, .stories { grid-template-columns: repeat(2,1fr); }
  .stat-row { grid-template-columns: repeat(2,1fr); }
  .vs-grid, .calc, .expert, .cta-final .container, .wall, .pm-grid, .pricebox { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .material-grid, .proj-grid, .docs-grid, .stories, .stat-row, .audience-grid { grid-template-columns: 1fr; }
  .t-stage__head { grid-template-columns: 1fr; gap: .8rem; }
  .t-stage__toggle { position: absolute; right: 0; top: 1.6rem; width: 34px; height: 34px; }
  .t-stage { position: relative; }
  .t-stage__facts { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr; }
  .hero { min-height: calc(100svh - 100px); }
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  .t-stage__panel, .t-stage__toggle, .t-stage__toggle::before, .t-stage__toggle::after { transition: none; }
}

/* ============================================================
   HORMOZI: триггеры, формы захвата, оффер-стек
   ============================================================ */
/* дефицит/срочность в hero */
.hero__scarcity { display: inline-flex; align-items: center; gap: .6rem; margin-top: 1.2rem;
  padding: .5rem .95rem; border: 1px solid rgba(184,145,84,.45); border-radius: 2px;
  font-family: var(--mono); font-size: .78rem; color: var(--brass-bright); background: rgba(184,145,84,.06); }
.hero__scarcity .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brass-bright); animation: pulse 2.4s infinite; }
@keyframes pulse { 0%{box-shadow:0 0 0 0 rgba(205,168,105,.5)} 70%{box-shadow:0 0 0 9px rgba(205,168,105,0)} 100%{box-shadow:0 0 0 0 rgba(205,168,105,0)} }

/* инлайн-полоса захвата (лид-магнит) */
.capture { background: linear-gradient(135deg, var(--surface-dark2), var(--charcoal)); color: var(--fg-on-dark);
  border: 1px solid var(--line-dark); border-radius: var(--radius-lg); padding: clamp(1.6rem,4vw,2.8rem); position: relative; overflow: hidden; }
.capture .blueprint-grid { opacity: .4; }
.capture__grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 2.2rem; align-items: center; position: relative; z-index: 1; }
.capture h3 { font-size: var(--text-h3); color: var(--offwhite); margin-bottom: .5rem; }
.capture p { color: var(--muted-dark); font-size: .95rem; }
.capture .tag { font-family: var(--mono); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--cyan); display: block; margin-bottom: .7rem; }
.capture form { display: flex; gap: .6rem; flex-wrap: wrap; }
.capture input { flex: 1; min-width: 150px; padding: .9rem 1rem; background: var(--charcoal); border: 1px solid var(--line-dark);
  border-radius: var(--radius); color: var(--offwhite); font-family: var(--sans); font-size: .95rem; }
.capture input:focus { outline: none; border-color: var(--brass); }
.capture .hint { font-family: var(--mono); font-size: .72rem; color: var(--muted-dark); margin-top: .6rem; width: 100%; }

/* центрированный CTA для секций */
.section-cta { text-align: center; margin-top: clamp(2rem,4vw,3rem); }
.section-cta .sub { font-family: var(--mono); font-size: .8rem; color: var(--muted); margin-top: .9rem; }
.section--dark .section-cta .sub { color: var(--muted-dark); }

/* бейдж срочности */
.urgency { display: inline-flex; align-items: center; gap: .5rem; font-family: var(--mono); font-size: .76rem; color: var(--gold);
  background: rgba(161,98,7,.1); border: 1px solid rgba(161,98,7,.32); padding: .45rem .8rem; border-radius: 2px; margin-bottom: 1rem; }

/* де-риск строка у формы */
.derisk { display: flex; flex-wrap: wrap; gap: .6rem 1.3rem; margin: 1rem 0 1.2rem; font-family: var(--mono); font-size: .76rem; color: var(--muted-dark); }
.derisk span::before { content: "✓ "; color: var(--cyan-bright); }

/* оффер-стек (Grand Slam) */
.offer-stack { background: var(--surface-dark); border: 1px solid var(--line-dark); border-radius: var(--radius-lg); overflow: hidden; }
.offer-stack__head { padding: 1.1rem 1.4rem; border-bottom: 1px solid var(--line-dark); font-family: var(--mono);
  font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--brass); }
.offer-stack .b { display: flex; justify-content: space-between; gap: 1rem; padding: .85rem 1.4rem; border-bottom: 1px solid var(--line-dark); font-size: .92rem; align-items: center; }
.offer-stack .b > span:first-child { color: var(--fg-on-dark); }
.offer-stack .b .v { font-family: var(--mono); color: var(--cyan); white-space: nowrap; }
.offer-stack .b .free { color: var(--brass-bright); font-weight: 700; }
.offer-stack .total { background: rgba(184,145,84,.12); font-weight: 700; }
.offer-stack .total > span:first-child { color: var(--brass-bright); }
.offer-stack .total .v { color: var(--brass-bright); }
.guarantee-box { border: 1px dashed var(--brass); border-radius: var(--radius-lg); padding: 1.3rem 1.5rem; margin-top: 1.2rem; }
.guarantee-box h4 { font-family: var(--sans); color: var(--offwhite); font-weight: 800; font-size: 1.05rem; margin-bottom: .4rem; display: flex; gap: .5rem; align-items: center; }
.guarantee-box p { color: var(--muted-dark); font-size: .9rem; }

/* О мастере (персональный блок) — компактный, в один экран */
.bio-section { padding-block: clamp(1.4rem, 2vw, 2.8rem); }
.bio { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(2rem,5vw,4rem); align-items: center; }
.bio__photo { position: relative; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4/5; max-height: 62vh; background: var(--surface-lt); display: grid; place-items: center; }
.bio__photo img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.bio__photo .ph { font-family: var(--mono); font-size: .8rem; color: var(--muted); }
.bio__photo .frame { position: absolute; inset: 14px; border: 1px solid rgba(127,183,190,.55); pointer-events: none; }
.bio__photo .cap { position: absolute; left: 1rem; bottom: 1rem; font-family: var(--mono); font-size: .74rem; color: var(--offwhite);
  background: rgba(20,19,15,.7); padding: .3rem .6rem; border-radius: 2px; }
.bio__body h2 { font-size: var(--text-h2); margin: .6rem 0 1rem; }
.bio__body p { color: var(--muted); margin-bottom: 1rem; max-width: 58ch; }
.bio__creds { display: flex; flex-wrap: wrap; gap: .6rem; margin: 1.3rem 0 .4rem; }
.bio__creds span { font-family: var(--mono); font-size: .78rem; color: var(--fg); border: 1px solid var(--line-lt);
  border-radius: 2px; padding: .45rem .8rem; }
.bio__sign { display: flex; align-items: center; gap: 1rem; margin-top: 1.5rem; padding-top: 1.3rem; border-top: 1px solid var(--line-lt); }
.bio__sign .mono-mark { width: 46px; height: 46px; border: 1px solid var(--brass); border-radius: 50%; display: grid; place-items: center;
  font-family: var(--mono); color: var(--brass); flex-shrink: 0; }
.bio__sign .name { font-family: var(--display); font-stretch: 112%; font-weight: 800; font-size: 1.25rem; }
.bio__sign .role { font-family: var(--mono); font-size: .76rem; color: var(--muted); }

@media (max-width: 980px) {
  .capture__grid { grid-template-columns: 1fr; gap: 1.4rem; }
  .bio { grid-template-columns: 1fr; }
  .bio__photo { aspect-ratio: 4/5; max-height: 460px; max-width: 360px; margin-inline: auto; width: 100%; }
}

/* ============================================================
   MARQUEE — бегущая полоса УТП
   ============================================================ */
.marquee { overflow: hidden; background: var(--surface-dark); color: var(--fg-on-dark);
  border-block: 1px solid var(--line-dark); position: relative;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent); }
.marquee__track { display: flex; width: max-content; animation: marquee 42s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee .item { display: inline-flex; align-items: center; gap: .6rem; white-space: nowrap;
  padding: 1.05rem clamp(1.1rem, 2.6vw, 2.2rem); font-size: .92rem; color: var(--fg-on-dark); }
.marquee .item::before { content: "◆"; color: var(--brass); font-size: .58rem; }
.marquee .item b { font-family: var(--mono); color: var(--brass-bright); }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .marquee__track { animation: none; width: 100%; flex-wrap: wrap; justify-content: center; }
  .marquee__track [aria-hidden="true"], .marquee__track .dup { display: none; }
}

/* ============================================================
   МИКРО-ТРИГГЕРЫ / ИНФОГРАФИКИ
   ============================================================ */
/* число-сравнение (1 vs 5–7) */
.stat-vs { display: grid; grid-template-columns: 1fr auto 1fr; gap: clamp(1rem,4vw,3rem); align-items: center;
  margin-top: 2rem; border: 1px solid var(--line-lt); border-radius: var(--radius-lg); padding: clamp(1.3rem,3vw,2.2rem); background: #fff; }
.stat-vs .cell { text-align: center; }
.stat-vs .cell b { font-family: var(--display); font-stretch: 125%; font-weight: 900; font-size: clamp(2.4rem,6vw,4.2rem); line-height: 1; display: block; }
.stat-vs .cell.bad b { color: var(--muted); }
.stat-vs .cell.good b { color: var(--gold); }
.stat-vs .cell span { font-size: .86rem; color: var(--muted); display: block; margin-top: .4rem; }
.stat-vs .vs { font-family: var(--mono); color: var(--brass); font-size: .82rem; }

/* таймлайн «один сезон» */
.season { margin-top: clamp(2rem,4vw,3rem); border-top: 1px solid var(--line-dark); padding-top: 1.8rem; }
.season__head { display: flex; justify-content: space-between; font-family: var(--mono); font-size: .78rem; color: var(--brass-bright); margin-bottom: 1.4rem; }
.season__track { position: relative; display: flex; justify-content: space-between; gap: .4rem; }
.season__track::before { content: ""; position: absolute; left: 8px; right: 8px; top: 7px; height: 2px;
  background: linear-gradient(90deg, var(--brass), var(--brass-bright)); }
.season__step { position: relative; display: flex; flex-direction: column; align-items: center; gap: .7rem; flex: 1; text-align: center; }
.season__step i { width: 16px; height: 16px; border-radius: 50%; background: var(--charcoal); border: 2px solid var(--brass-bright); z-index: 1; }
.season__step span { font-family: var(--mono); font-size: .7rem; color: var(--muted-dark); line-height: 1.2; }

/* микро-статы (3 числа) */
.micro-stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 1rem; margin-top: 2rem; }
.micro-stat { border: 1px solid var(--line-dark); border-radius: var(--radius-lg); padding: 1.5rem 1.2rem; text-align: center; background: var(--surface-dark); }
.micro-stat b { font-family: var(--display); font-stretch: 120%; font-weight: 900; font-size: clamp(1.9rem,4vw,2.8rem); color: var(--brass-bright); display: block; line-height: 1; }
.micro-stat span { font-size: .82rem; color: var(--muted-dark); display: block; margin-top: .5rem; }

@media (max-width: 600px) {
  .season__step span { font-size: .6rem; }
  .micro-stats { grid-template-columns: 1fr; }
  .stat-vs { grid-template-columns: 1fr; gap: 1rem; }
}

/* ============================================================
   КАТАЛОГ · ПРОЕКТ · ГАЛЕРЕЯ · КОНТАКТЫ
   ============================================================ */
/* фильтры каталога */
.filters { display: flex; flex-wrap: wrap; gap: 1rem 1.5rem; margin-bottom: 2rem; align-items: center; }
.filters .group { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; }
.filters .group > b { font-family: var(--mono); font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-right: .3rem; }
.filters .chip { font-family: var(--mono); font-size: .82rem; padding: .5rem 1rem; border: 1px solid var(--line-lt); border-radius: 2px;
  color: var(--fg); cursor: pointer; background: #fff; transition: border-color .2s, background .2s, color .2s; }
.filters .chip:hover { border-color: var(--brass); }
.filters .chip.active { background: var(--charcoal); color: var(--offwhite); border-color: var(--charcoal); }

/* характеристики проекта */
.specs { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px,1fr)); gap: 1px; background: var(--line-lt);
  border: 1px solid var(--line-lt); border-radius: var(--radius-lg); overflow: hidden; }
.specs .s { background: #fff; padding: 1.1rem 1.2rem; }
.specs .s b { font-family: var(--display); font-stretch: 115%; font-weight: 800; font-size: 1.45rem; display: block; line-height: 1.1; }
.specs .s span { font-family: var(--mono); font-size: .7rem; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }

/* большой ценник проекта */
.price-badge { display: inline-flex; flex-direction: column; gap: .2rem; border: 1px solid var(--line-lt); border-radius: var(--radius-lg);
  padding: 1.1rem 1.5rem; background: #fff; }
.price-badge b { font-family: var(--display); font-stretch: 120%; font-weight: 900; font-size: clamp(1.8rem,4vw,2.6rem); color: var(--gold); line-height: 1; }
.price-badge span { font-family: var(--mono); font-size: .74rem; color: var(--muted); }

/* галерея */
.gallery { display: grid; grid-template-columns: repeat(3,1fr); gap: 1rem; }
.gallery .g { aspect-ratio: 4/3; border-radius: var(--radius-lg); overflow: hidden; background: var(--surface-lt); position: relative; }
.gallery .g img { width: 100%; height: 100%; object-fit: cover; }
.gallery .g .cap { position: absolute; left: .7rem; bottom: .7rem; font-family: var(--mono); font-size: .72rem;
  background: rgba(20,19,15,.7); color: var(--offwhite); padding: .2rem .5rem; border-radius: 2px; }

/* контакты */
.contacts { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem,5vw,4rem); align-items: start; }
.contact-list .row { display: flex; gap: 1rem; padding: 1.1rem 0; border-bottom: 1px solid var(--line-lt); }
.contact-list .row .k { font-family: var(--mono); font-size: .74rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); min-width: 130px; }
.contact-list .row .v { font-weight: 600; }
.contact-list .row .v a { color: var(--gold); }
.geo-map { aspect-ratio: 4/3; border-radius: var(--radius-lg); background: var(--surface-lt); display: grid; place-items: center;
  font-family: var(--mono); color: var(--muted); border: 1px solid var(--line-lt); position: relative; overflow: hidden; text-align: center; padding: 1rem; }

@media (max-width: 980px) {
  .contacts { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 600px) {
  .gallery { grid-template-columns: 1fr; }
}

/* ============================================================
   ФОРМЫ: состояния валидации и успеха
   ============================================================ */
.input-error { border-color: #B4524A !important; box-shadow: 0 0 0 2px rgba(180,82,74,.18); }
.field-error { color: #E0857D; font-family: var(--mono); font-size: .74rem; margin: -.6rem 0 .9rem; }
.form-success, .capture-success { text-align: center; padding: 1.4rem .5rem; }
.form-success .ok, .capture-success .ok { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center;
  margin: 0 auto 1rem; background: linear-gradient(135deg, var(--brass), var(--brass-bright)); color: var(--charcoal); font-size: 1.6rem; }
.form-success h4, .capture-success h4 { font-family: var(--display); font-stretch: 112%; font-weight: 800; color: var(--brass-bright);
  font-size: 1.35rem; margin-bottom: .5rem; }
.form-success p, .capture-success p { color: var(--muted-dark); font-size: .92rem; max-width: 36ch; margin: 0 auto; }

/* ============================================================
   STICKY-CTA для мобайла
   ============================================================ */
.sticky-cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 95; display: none; gap: .6rem;
  padding: .55rem .6rem calc(.55rem + env(safe-area-inset-bottom, 0px)); background: rgba(20,19,15,.96);
  backdrop-filter: blur(12px); border-top: 1px solid var(--line-dark); }
.sticky-cta a { flex: 1; text-align: center; padding: .95rem .5rem; border-radius: 3px; font-weight: 700; font-size: .92rem;
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem; }
.sticky-cta .write { border: 1px solid var(--line-dark); color: var(--offwhite); }
.sticky-cta .smeta { background: linear-gradient(135deg, var(--brass), var(--brass-bright)); color: var(--charcoal); }
@media (max-width: 768px) {
  .sticky-cta { display: flex; }
  .float-msgr { display: none; }
  body { padding-bottom: 74px; }
}

/* ============================================================
   FAQ
   ============================================================ */
.faq { max-width: 840px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--line-lt); }
.faq summary { cursor: pointer; padding: 1.25rem 0; font-family: var(--display); font-stretch: 108%; font-weight: 700;
  font-size: clamp(1.05rem,1rem+.4vw,1.3rem); list-style: none; display: flex; justify-content: space-between; gap: 1rem; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--mono); color: var(--brass); font-size: 1.5rem; line-height: 1; flex-shrink: 0; }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 0 1.4rem; color: var(--muted); max-width: 72ch; }
.section--dark .faq details { border-color: var(--line-dark); }
.section--dark .faq summary { color: var(--offwhite); }
.section--dark .faq details p { color: var(--muted-dark); }

/* ============================================================
   ВЫПАДАЮЩЕЕ ПОДМЕНЮ «Дома»
   ============================================================ */
.nav-item { position: relative; display: inline-flex; align-items: center; }
.nav-dropdown { position: absolute; top: 100%; left: 0; min-width: 250px; margin-top: 8px;
  background: rgba(20,19,15,.98); backdrop-filter: blur(14px); border: 1px solid var(--line-dark); border-radius: 10px;
  padding: .5rem; display: flex; flex-direction: column; gap: .1rem; box-shadow: 0 20px 44px rgba(0,0,0,.45); z-index: 120;
  opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .2s var(--ease), transform .2s var(--ease); }
.nav-dropdown::before { content: ""; position: absolute; top: -12px; left: 0; right: 0; height: 12px; }
.nav-item:hover .nav-dropdown, .nav-item:focus-within .nav-dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-dropdown a { padding: .65rem .85rem; border-radius: 5px; font-size: .9rem; color: var(--fg-on-dark); opacity: .85; white-space: nowrap; display: flex; justify-content: space-between; gap: 1rem; }
.nav-dropdown a:hover { background: rgba(184,145,84,.12); color: var(--brass-bright); opacity: 1; }
.nav-dropdown a .px { font-family: var(--mono); font-size: .72rem; color: var(--muted-dark); }

/* ============================================================
   СМЕТА · СКРОЛЛ-АНИМАЦИЯ «дом собирается»
   ============================================================ */
.smeta-scroll { position: relative; height: 100vh; background: var(--charcoal); }
.smeta-scroll.is-scrolly { height: 360vh; }
.smeta-sticky { position: sticky; top: 0; height: 100vh; overflow: hidden; display: flex; align-items: center; }
.smeta-frames { position: absolute; inset: 0; z-index: 0; }
.smeta-frames img { width: 100%; height: 100%; object-fit: cover; }
.smeta-overlay { position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(90deg, rgba(20,19,15,.92) 0%, rgba(20,19,15,.55) 38%, rgba(20,19,15,.1) 62%, rgba(20,19,15,.72) 100%); }
.smeta-grid { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr 440px; gap: 2.5rem; align-items: center; width: 100%; }
.smeta-intro { color: var(--fg-on-dark); max-width: 42ch; }
.smeta-intro h2 { color: var(--offwhite); font-size: var(--text-h2); margin: .7rem 0; }
.smeta-intro p { color: var(--muted-dark); }
.smeta-progress { margin-top: 1.3rem; font-family: var(--mono); color: var(--brass-bright); font-size: .85rem; letter-spacing: .04em; }
.smeta-panel { background: rgba(20,19,15,.74); backdrop-filter: blur(14px); border: 1px solid var(--line-dark);
  border-radius: var(--radius-lg); padding: 1.8rem; color: var(--fg-on-dark); }
.smeta-badge { font-family: var(--mono); font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; color: var(--cyan);
  border: 1px solid rgba(127,183,190,.35); border-radius: 2px; padding: .4rem .6rem; display: inline-block; margin-bottom: 1.1rem; }
.smeta-total b { font-family: var(--display); font-stretch: 100%; font-weight: 900; font-size: clamp(1.4rem, .9rem + 1.8vw, 2.3rem);
  color: var(--brass-bright); display: block; line-height: 1.05; letter-spacing: -.015em; font-feature-settings: "tnum";
  white-space: nowrap; }
.smeta-total small { color: var(--muted-dark); font-family: var(--mono); font-size: .74rem; display: block; margin-top: .35rem; }
.smeta-stages { margin: 1.4rem 0; }
.smeta-stages li { display: flex; justify-content: space-between; gap: 1rem; padding: .72rem 0; border-bottom: 1px solid var(--line-dark);
  font-size: .88rem; color: var(--muted-dark); transition: color .3s; }
.smeta-stages li:last-child { border-bottom: none; }
.smeta-stages li b { font-family: var(--mono); color: var(--muted-dark); white-space: nowrap; transition: color .3s; }
.smeta-stages li.done { color: var(--fg-on-dark); }
.smeta-stages li.done b { color: var(--cyan); }
.smeta-stages li.current { color: var(--offwhite); }
.smeta-stages li.current b { color: var(--brass-bright); }
.smeta-stages li.current span::before { content: "▸ "; color: var(--brass); }
.smeta-note { font-family: var(--mono); font-size: .72rem; color: var(--muted-dark); margin-bottom: 1.1rem; line-height: 1.5; }
.smeta-scrollhint { position: absolute; bottom: 1.4rem; left: 50%; transform: translateX(-50%); z-index: 2;
  font-family: var(--mono); font-size: .75rem; color: var(--muted-dark); animation: hintbob 2s ease-in-out infinite; pointer-events: none; }
@keyframes hintbob { 0%,100% { transform: translateX(-50%) translateY(0); } 50% { transform: translateX(-50%) translateY(6px); } }

@media (max-width: 980px) {
  .smeta-grid { grid-template-columns: 1fr; gap: 1.3rem; align-content: center; }
  .smeta-panel { max-width: 520px; }
  .smeta-scroll.is-scrolly { height: 300vh; }
}
@media (max-width: 600px) {
  .smeta-intro h2 { font-size: 1.7rem; }
  .smeta-intro p { display: none; }
  .smeta-panel { padding: 1.3rem; }
  .smeta-total b { font-size: 1.5rem; }
  .smeta-overlay { background: linear-gradient(180deg, rgba(20,19,15,.5) 0%, rgba(20,19,15,.88) 100%); }
}
@media (prefers-reduced-motion: reduce) {
  .smeta-scrollhint { animation: none; }
}

/* ============================================================
   МОБИЛЬНОЕ МЕНЮ (сэндвич) + фиксы переполнения по ширине
   ============================================================ */
@media (max-width: 1080px) {
  .nav-dropdown { display: none !important; }   /* выпадашка «Дома» — только на десктопе (hover) */
  .nav-item { display: contents; }              /* «Дома» как обычный пункт в колонке меню */
  .nav.is-open {
    display: flex; flex-direction: column; gap: 0;
    position: absolute; top: 100%; left: 0; right: 0; z-index: 110;
    background: rgba(20,19,15,.98); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line-dark); padding: .3rem 1.1rem .7rem; box-shadow: 0 22px 44px rgba(0,0,0,.5);
  }
  .nav.is-open a { padding: .9rem .2rem; font-size: 1rem; opacity: .95; border-bottom: 1px solid var(--line-dark); }
  .nav.is-open a:last-child { border-bottom: 0; }
  .burger span { transition: transform .25s var(--ease), opacity .2s; }
  .burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .burger.is-open span:nth-child(2) { opacity: 0; }
  .burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}
@media (max-width: 768px) {
  /* компактная шапка: лого + бургер (язык и CTA продублированы в нижней панели) */
  .header__right .lang, .header__right .btn { display: none; }
  /* длинные кнопки переносятся и не вылезают за экран */
  .btn { white-space: normal; }
  .hero__cta { gap: .7rem; }
  .hero__cta .btn, .section-cta .btn { width: 100%; }
  /* шкала этапов «сезона»: скролл внутри блока, без слома страницы */
  .season { overflow-x: auto; -webkit-overflow-scrolling: touch; padding-bottom: .6rem; }
  .season__track { min-width: 480px; }
  /* оффер-стек: значение под названием, без сжатия в одну строку */
  .offer-stack .b { flex-wrap: wrap; gap: .15rem .6rem; }
  .offer-stack .b > span { min-width: 0; overflow-wrap: anywhere; }
  .offer-stack .b .v, .offer-stack .b .free { flex-basis: 100%; }
  /* одноколоночные гриды должны уметь сжиматься уже контента (minmax 0, а не 1fr=minmax(auto)) */
  .cta-final .container, .smeta-grid, .capture__grid, .bio,
  .vs-grid, .pm-grid, .pricebox, .expert, .calc, .wall {
    grid-template-columns: minmax(0, 1fr) !important;
  }
  .cta-final h2, .seq-content h1, .legal-hero h1 { overflow-wrap: anywhere; }
  /* длинные ссылки согласия переносятся (на узком экране nowrap вылезал) */
  .consent a { white-space: normal; }
}

/* ============================================================
   ИНДИВИДУАЛЬНЫЙ ПРОЕКТ — отдельный блок
   ============================================================ */
.indiv-band { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(1.6rem,4vw,3.5rem); align-items: center; }
.indiv-band__media { position: relative; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4/3; background: var(--surface-lt); }
.indiv-band__media img { width: 100%; height: 100%; object-fit: cover; }
.indiv-band__tag { position: absolute; left: 1rem; bottom: 1rem; font-family: var(--mono); font-size: .72rem; letter-spacing: .1em;
  text-transform: uppercase; color: var(--offwhite); background: rgba(20,19,15,.7); padding: .35rem .65rem; border-radius: 2px; }
.indiv-band__body h2 { font-size: var(--text-h2); margin: .6rem 0 1rem; }
.indiv-band__body p { color: var(--muted); margin-bottom: 1.1rem; max-width: 56ch; }
.indiv-band__list { list-style: none; margin: 0 0 1.6rem; }
.indiv-band__list li { position: relative; padding: .55rem 0 .55rem 1.7rem; border-bottom: 1px solid var(--line-lt); color: var(--fg); font-size: .96rem; }
.indiv-band__list li:last-child { border-bottom: none; }
.indiv-band__list li::before { content: "✓"; position: absolute; left: 0; color: var(--brass); font-weight: 700; }
@media (max-width: 768px) {
  .indiv-band { grid-template-columns: minmax(0,1fr); }
  .indiv-band__media { aspect-ratio: 16/10; }
  .indiv-band__body .btn { width: 100%; }
}

/* ═══════════════ КАЛЬКУЛЯТОР-СМЕТЧИК (overlay) ═══════════════ */
.calc-modal { position: fixed; inset: 0; z-index: 140; display: flex; align-items: center; justify-content: center;
  padding: clamp(0px, 2vw, 32px); }
.calc-modal[hidden] { display: none; }
.calc-modal__scrim { position: absolute; inset: 0; background: rgba(20,19,15,.92); backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px); }
.calc-modal__panel { position: relative; z-index: 1; width: min(1180px, 100%); height: min(92vh, 980px);
  display: flex; flex-direction: column; overflow: hidden; background: var(--surface-dark);
  border: 1px solid var(--line-dark); border-radius: var(--radius-lg); color: var(--fg-on-dark);
  box-shadow: 0 40px 120px rgba(0,0,0,.6); }
.calc-modal .blueprint-grid { opacity: .5; }

/* шапка */
.calc-head { position: relative; z-index: 2; display: flex; align-items: center; gap: .9rem;
  padding: 1rem clamp(1rem, 3vw, 2rem); border-bottom: 1px solid var(--line-dark); }
.calc-head__mark { width: 34px; height: 34px; flex: 0 0 auto; display: grid; place-items: center;
  font-family: var(--display); font-weight: 800; color: var(--charcoal); background: var(--brass);
  border-radius: var(--radius); }
.calc-head__t { display: flex; flex-direction: column; line-height: 1.15; }
.calc-head__t b { font-family: var(--display); font-size: 1.15rem; color: var(--offwhite); }
.calc-head__t small { color: var(--muted-dark); font-size: .78rem; }
.calc-close { margin-left: auto; width: 40px; height: 40px; flex: 0 0 auto; border: 1px solid var(--line-dark);
  background: transparent; color: var(--fg-on-dark); border-radius: var(--radius); font-size: 1.5rem; line-height: 1;
  cursor: pointer; transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease); }
.calc-close:hover { background: var(--surface-dark2); border-color: var(--brass); }

/* прогресс */
.calc-progress { position: relative; z-index: 2; height: 3px; background: var(--line-dark); }
.calc-progress > i { display: block; height: 100%; width: 12.5%; background: var(--brass);
  transition: width var(--dur) var(--ease); }

/* раскладка */
.calc-layout { position: relative; z-index: 2; flex: 1; min-height: 0; display: grid;
  grid-template-columns: 1fr 1fr; }
.calc-viz { position: relative; padding: clamp(1rem, 3vw, 2rem); border-right: 1px solid var(--line-dark);
  display: flex; flex-direction: column; gap: 1.2rem; overflow: auto; background: var(--surface-dark2); }
.calc-viz__house { position: relative; aspect-ratio: 4 / 3; border: 1px solid var(--line-dark);
  border-radius: var(--radius); overflow: hidden; background: var(--surface-dark);
  color: var(--muted-dark); font-family: var(--mono); font-size: .8rem; }
.calc-house__svg { position: absolute; inset: 0; display: grid; place-items: center; padding: 1.2rem;
  transition: opacity .45s var(--ease); }
.calc-house__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity .55s var(--ease); }
.calc-viz__house.has-img .calc-house__img { opacity: 1; }
.calc-viz__house.has-img .calc-house__svg { opacity: 0; }
/* бейдж стадии готовности (лево-верх) */
.calc-house__badge { position: absolute; left: 10px; top: 10px; z-index: 2;
  font-family: var(--mono); font-size: .64rem; letter-spacing: .1em; text-transform: uppercase;
  padding: .34rem .6rem; border-radius: 999px; color: var(--charcoal);
  background: linear-gradient(135deg, var(--brass) 0%, var(--brass-bright) 100%);
  box-shadow: 0 2px 10px -2px rgba(184,145,84,.5); }
.calc-house__badge:empty { display: none; }
/* подпись: материал · площадь · этажность (лево-низ) */
.calc-house__cap { position: absolute; left: 10px; bottom: 10px; right: 10px; z-index: 2;
  font-family: var(--mono); font-size: .68rem; letter-spacing: .03em; color: var(--fg-on-dark);
  text-shadow: 0 1px 6px rgba(20,19,15,.8); }
.calc-viz__house.has-img .calc-house__cap { padding-top: 1.4rem;
  background: linear-gradient(to top, rgba(20,19,15,.72), transparent); left: 0; right: 0; bottom: 0;
  padding: 1.4rem .8rem .55rem; }
.calc-house__cap:empty { display: none; }
.calc-breakdown { display: flex; flex-direction: column; gap: .35rem; }

.calc-flow { display: flex; flex-direction: column; min-height: 0; }
.calc-steps { flex: 1; overflow: auto; padding: clamp(1.2rem, 3vw, 2.4rem); }
.calc-result { flex: 1; overflow: auto; padding: clamp(1.2rem, 3vw, 2.4rem); }
.calc-placeholder { color: var(--muted-dark); font-family: var(--mono); font-size: .85rem; }

/* нижняя панель действий */
.calc-actions { display: flex; align-items: center; gap: 1rem; padding: 1rem clamp(1rem, 3vw, 2rem);
  border-top: 1px solid var(--line-dark); background: var(--surface-dark); }
.calc-live { flex: 1; text-align: center; font-family: var(--mono); font-variant-numeric: tabular-nums;
  font-size: .95rem; color: var(--brass-bright); }
.calc-actions .btn:disabled { opacity: .4; pointer-events: none; }

body.calc-open { overflow: hidden; }

/* мобайл: колонки в стек, визуализация сверху, действия липкие */
@media (max-width: 980px) {
  .calc-modal { padding: 0; }
  .calc-modal__panel { width: 100%; height: 100%; border-radius: 0; border: 0; }
  .calc-layout { grid-template-columns: 1fr; overflow: auto; }
  .calc-viz { border-right: 0; border-bottom: 1px solid var(--line-dark); }
  .calc-viz__house { aspect-ratio: 16 / 9; }
  .calc-actions { position: sticky; bottom: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .calc-progress > i { transition: none; }
}

/* — калькулятор: шаги и контролы — */
.calc-q { margin-bottom: 1.4rem; }
.calc-q__n { font-family: var(--mono); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase;
  color: var(--brass-bright); }
.calc-q h3 { font-family: var(--display); font-size: clamp(1.4rem, 1rem + 1.6vw, 2.1rem); color: var(--offwhite);
  margin: .35rem 0 0; line-height: 1.1; }
.calc-q__sub { color: var(--muted-dark); margin-top: .5rem; font-size: .95rem; }

.calc-opts { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: .7rem; }
.calc-opt { position: relative; text-align: left; padding: 1rem 1.1rem; background: var(--surface-dark);
  border: 1px solid var(--line-dark); border-radius: var(--radius); color: var(--fg-on-dark); cursor: pointer;
  display: flex; flex-direction: column; gap: .25rem; transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease), transform var(--dur) var(--ease); }
.calc-opt:hover { border-color: var(--brass); }
.calc-opt b { font-family: var(--display); font-weight: 600; font-size: 1.02rem; color: var(--offwhite); }
.calc-opt small { color: var(--muted-dark); font-size: .82rem; line-height: 1.4; }
.calc-opt.is-sel { border-color: var(--brass-bright); background: var(--surface-dark2); box-shadow: inset 0 0 0 1px var(--brass-bright); }
.calc-opt.is-disabled { opacity: .35; pointer-events: none; }
.calc-opt.is-flagship { border-color: rgba(205,168,105,.4); }
.calc-opt__badge { font-family: var(--mono); font-size: .64rem; letter-spacing: .06em; text-transform: uppercase;
  color: var(--charcoal); background: var(--brass-bright); padding: .12rem .4rem; border-radius: 3px; align-self: flex-start; }

.calc-range { margin-top: .4rem; }
.calc-range__val b { font-family: var(--mono); font-variant-numeric: tabular-nums; font-size: 1.8rem; color: var(--offwhite); }
.calc-range__val small { color: var(--muted-dark); font-family: var(--mono); }
.calc-range input[type=range] { width: 100%; margin: 1rem 0; accent-color: var(--brass); height: 4px; }
.calc-presets { display: flex; flex-wrap: wrap; gap: .5rem; }
.calc-presets .chip { cursor: pointer; }
.calc-presets .chip.is-on { background: var(--brass); color: var(--charcoal); border-color: var(--brass); }

.calc-toggle .calc-opt { width: 100%; }

.calc-note, .calc-hint, .calc-warn { font-size: .85rem; line-height: 1.5; margin-top: 1rem; padding: .7rem .9rem;
  border-radius: var(--radius); border-left: 3px solid var(--line-dark); }
.calc-note { color: var(--muted-dark); background: var(--surface-dark2); }
.calc-hint { color: var(--cyan-bright); background: rgba(127,183,190,.08); border-left-color: var(--cyan); }
.calc-warn { color: #E0b07d; background: rgba(224,176,125,.08); border-left-color: var(--brass); }

/* накопительная шкала (правая колонка) */
.calc-bd__head { font-family: var(--mono); font-size: .7rem; letter-spacing: .08em; text-transform: uppercase;
  color: var(--muted-dark); margin-bottom: .3rem; }
.calc-bd__row { display: flex; justify-content: space-between; gap: 1rem; padding: .4rem 0; font-size: .85rem;
  border-bottom: 1px solid var(--line-dark); color: var(--fg-on-dark); }
.calc-bd__row span { color: var(--muted-dark); }
.calc-bd__row b { font-family: var(--mono); font-variant-numeric: tabular-nums; color: var(--fg-on-dark); }
.calc-bd__row.is-off { opacity: .45; }
.calc-bd__row--total { border-bottom: 0; border-top: 1px solid rgba(184,145,84,.4); margin-top: .5rem; padding-top: .85rem;
  align-items: baseline; flex-wrap: wrap; row-gap: .2rem; }
.calc-bd__row--total span, .calc-bd__row--total b { color: var(--brass-bright); font-weight: 700; }
.calc-bd__row--total span { font-size: 1rem; }
.calc-bd__row--total b { font-size: clamp(1.55rem, 2.3vw, 2rem); line-height: 1.1; letter-spacing: -.01em; white-space: nowrap; }

/* экран результата */
.calc-res__hero { margin-bottom: 1rem; }
.calc-res__range { font-family: var(--display); font-size: clamp(1.8rem, 1rem + 3vw, 3.2rem); color: var(--offwhite);
  line-height: 1.05; margin-top: .4rem; }
.calc-res__range b { color: var(--brass-bright); }
.calc-res__perm2 { font-family: var(--mono); color: var(--muted-dark); margin-top: .3rem; }
.calc-result .price-stack .row { color: var(--fg-on-dark); }
.calc-lead-cta { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.6rem; align-items: center; }
.calc-lead-cta .btn--gold { flex: 1; min-width: 240px; }

/* — калькулятор: лид-форма — */
.calc-lead { flex: 1; overflow: auto; padding: clamp(1.2rem, 3vw, 2.4rem); border-top: 1px solid var(--line-dark); }
.calc-lead h3 { font-family: var(--display); color: var(--offwhite); font-size: 1.4rem; margin: 0 0 .3rem; }
.calc-lead .form { margin-top: 1rem; }
.calc-lead__msgr { margin-top: 1rem; color: var(--muted-dark); font-size: .85rem; }
.calc-lead__msgr a { color: var(--brass-bright); text-decoration: underline; text-underline-offset: 2px; }

/* — калькулятор: SVG «чертёж → объём» (Веха 5) — */
.calc-svg { width: 100%; height: 100%; display: block; }
.calc-svg .ground { stroke: var(--line-dark); stroke-width: 1; }
.calc-svg .hscale { transform-box: fill-box; transform-origin: 110px 150px; transition: transform var(--dur) var(--ease); }
.calc-svg .ly { fill: none; stroke: var(--cyan); stroke-width: 1.6; stroke-dasharray: 3 2.5; opacity: .5;
  transition: opacity var(--dur) var(--ease), fill var(--dur) var(--ease), stroke var(--dur) var(--ease); }
/* конструктив построен с уровня «коробка» (минимальный) */
.calc-svg .ly-foundation, .calc-svg .ly-wall, .calc-svg .ly-roof { stroke: var(--brass); stroke-dasharray: none; opacity: 1; }
.calc-svg .ly-foundation { fill: #2a2622; }
.calc-svg .ly-roof { fill: var(--surface-dark); }
.calc-svg .ly-wall { fill: var(--surface-dark2); }
/* цвет стен по материалу */
.calc-svg.m-gas .ly-wall, .calc-svg.m-ceramo .ly-wall { fill: #6f5a33; }
.calc-svg.m-brick .ly-wall { fill: #7c3b2e; }
.calc-svg.m-monolith .ly-wall { fill: #4b4a47; }
.calc-svg.m-glulam .ly-wall, .calc-svg.m-combo .ly-wall { fill: #6b4a2c; }
.calc-svg.m-individual .ly-wall { fill: var(--surface-dark2); }
/* окна/дверь — появляются с «тёплого контура» / «под ключ» */
.calc-svg.r-warm .ly-window, .calc-svg.r-turnkey .ly-window { stroke: var(--cyan-bright); stroke-dasharray: none; opacity: 1; fill: rgba(91,224,230,.16); }
.calc-svg.r-turnkey .ly-door { stroke: var(--brass); stroke-dasharray: none; opacity: 1; fill: var(--surface-dark2); }
/* тёплый интерьер — с «под ключ» */
.calc-svg .ly-interior { fill: rgba(205,168,105,0); stroke: none; opacity: 0; }
.calc-svg.r-turnkey .ly-interior { fill: rgba(205,168,105,.12); opacity: 1; }
/* этажность */
.calc-svg .ly-floor2, .calc-svg .ly-dormer { display: none; }
.calc-svg.f-f2 .ly-floor2 { display: block; stroke: var(--brass); stroke-dasharray: none; opacity: .55; }
.calc-svg.f-f1m .ly-dormer { display: block; stroke: var(--brass); stroke-dasharray: none; opacity: 1; fill: var(--surface-dark2); }
/* участок */
.calc-svg .ly-plot { display: none; }
.calc-svg.ls-on .ly-plot { display: block; }
.calc-svg.ls-on .ly-plot .tree { stroke: var(--foliage); stroke-dasharray: none; opacity: 1; fill: rgba(110,122,94,.28); }
.calc-svg .ly-plot .gline, .calc-svg .ly-plot .trunk { stroke: var(--foliage); stroke-dasharray: none; }
@media (prefers-reduced-motion: reduce) { .calc-svg .ly, .calc-svg .hscale { transition: none; } }

/* ═══════════════ КАЛЬКУЛЯТОР v2 — одноэкранный конфигуратор ═══════════════ */
.calc-body { flex: 1; min-height: 0; display: grid; grid-template-columns: 1.15fr .85fr; overflow: hidden; }
.calc-controls { overflow: auto; padding: clamp(1.2rem, 2.5vw, 2.2rem); }
.calc-summary { position: relative; z-index: 2; overflow: auto; border-left: 1px solid var(--line-dark);
  background: var(--surface-dark2); }
.calc-summary__in { display: flex; flex-direction: column; gap: 1.1rem; padding: clamp(1.2rem, 2.5vw, 2rem); min-height: 100%; }

/* секции и группы */
.calc-sec { font-family: var(--mono); font-size: .7rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--brass-bright); margin: 1.8rem 0 .9rem; padding-bottom: .5rem; border-bottom: 1px solid var(--line-dark); }
.calc-sec:first-child { margin-top: 0; }
.calc-grp { margin-bottom: 1.3rem; }
.calc-grp__h { font-family: var(--mono); font-size: .74rem; letter-spacing: .04em; color: var(--fg-on-dark);
  margin-bottom: .6rem; text-transform: uppercase; }
.calc-grp__h span { text-transform: none; letter-spacing: 0; color: var(--muted-dark); font-size: .72rem; }
.calc-grp--hero { background: linear-gradient(180deg, var(--surface-dark2), var(--surface-dark));
  border: 1px solid var(--line-dark); border-radius: var(--radius-lg); padding: 1.3rem; margin-bottom: 1.6rem; }
.calc-grp--hero .calc-grp__h { color: var(--brass-bright); }

/* карточки (материал, готовность) */
.calc-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: .6rem; }
.calc-card { position: relative; text-align: left; padding: .85rem .95rem; background: var(--surface-dark);
  border: 1px solid var(--line-dark); border-radius: var(--radius); color: var(--fg-on-dark); cursor: pointer;
  display: flex; flex-direction: column; gap: .2rem; transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease), box-shadow var(--dur) var(--ease); }
.calc-card:hover { border-color: var(--brass); }
.calc-card b { font-family: var(--display); font-weight: 600; font-size: .98rem; color: var(--offwhite); line-height: 1.15; }
.calc-card small { color: var(--muted-dark); font-size: .78rem; line-height: 1.35; }
.calc-card.is-sel { border-color: var(--brass-bright); background: var(--surface-dark2); box-shadow: inset 0 0 0 1px var(--brass-bright); }
.calc-card.is-disabled { opacity: .32; pointer-events: none; }
.calc-card.is-flagship { border-color: rgba(205,168,105,.4); }
.calc-card__badge { position: absolute; top: .5rem; right: .6rem; color: var(--brass-bright); font-size: .8rem; }
.calc-card--wide { width: 100%; }

/* сегмент-контролы (этажность, грунт, отделка, тип) */
.calc-seg { display: flex; flex-wrap: wrap; gap: .4rem; }
.calc-pill { padding: .5rem .9rem; border: 1px solid var(--line-dark); border-radius: 100px; background: transparent;
  color: var(--fg-on-dark); font-family: var(--sans); font-size: .85rem; cursor: pointer;
  transition: all var(--dur) var(--ease); }
.calc-pill:hover { border-color: var(--brass); }
.calc-pill.is-sel { background: var(--brass); border-color: var(--brass); color: var(--charcoal); font-weight: 600; }
.calc-pill.is-disabled { opacity: .3; pointer-events: none; text-decoration: line-through; }

.calc-extra__time { font-family: var(--mono); font-size: .85rem; color: var(--brass-bright); }
.calc-acc { border: 1px solid var(--line-dark); border-radius: var(--radius); }
.calc-acc summary { cursor: pointer; padding: .7rem .9rem; font-family: var(--mono); font-size: .78rem;
  color: var(--fg-on-dark); list-style: none; }
.calc-acc summary::-webkit-details-marker { display: none; }
.calc-acc[open] summary { border-bottom: 1px solid var(--line-dark); color: var(--brass-bright); }
.calc-acc .pm-grid { padding: .9rem; gap: .7rem; }
/* «Что входит / Не входит» внутри калькулятора — тёмная тема, читаемый текст */
.calc-acc .pm { padding: .9rem 1rem; border-radius: var(--radius); }
.calc-acc .pm--plus { background: rgba(184,145,84,.10); border: 1px solid var(--line-dark); }
.calc-acc .pm--minus { background: rgba(236,234,227,.04); border: 1px dashed var(--line-dark); }
.calc-acc .pm h3 { color: var(--fg-on-dark); font-size: .95rem; margin-bottom: .5rem; }
.calc-acc .pm li { color: var(--fg-on-dark); border-bottom: 1px dashed var(--line-dark); font-size: .84rem; padding: .4rem 0; }
.calc-acc .pm li:last-child { border-bottom: 0; }
@media (max-width: 560px) { .calc-acc .pm-grid { grid-template-columns: 1fr; } }
.calc-note--sm { font-size: .78rem; }
.calc-summary__cta { margin-top: auto; padding-top: .6rem; }
.calc-summary__cta .btn { width: 100%; }

/* лид-форма как «лист» поверх панели */
.calc-lead { position: absolute; inset: 0; z-index: 6; background: rgba(20,19,15,.86);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); display: grid; place-items: center; padding: 1.5rem; overflow: auto; }
.calc-lead[hidden] { display: none; }
.calc-lead__in { position: relative; width: min(460px, 100%); background: var(--surface-dark);
  border: 1px solid var(--line-dark); border-radius: var(--radius-lg); padding: clamp(1.4rem, 3vw, 2.2rem); }
.calc-lead__in h3 { font-family: var(--display); color: var(--offwhite); font-size: 1.4rem; margin: 0 0 .3rem; padding-right: 2rem; }
.calc-lead__in .form { margin-top: 1rem; }
.calc-lead__in #calcLeadClose { position: absolute; top: .8rem; right: .8rem; margin: 0; }

/* мобайл: контролы сверху, цена+CTA липкой нижней панелью */
@media (max-width: 980px) {
  .calc-body { display: flex; flex-direction: column; overflow: auto; }
  .calc-controls { order: 1; }
  .calc-summary { order: 2; position: sticky; bottom: 0; border-left: 0; border-top: 1px solid var(--brass);
    background: var(--surface-dark); flex-shrink: 0; overflow: visible; }
  .calc-summary__in { flex-direction: row; align-items: center; gap: 1rem; padding: .7rem 1rem; min-height: 0; }
  .calc-summary .calc-viz__house, .calc-summary .calc-extra { display: none; }
  /* в нижней панели остаётся только строка «Итого, ориентир» из раскладки */
  .calc-summary .calc-breakdown { flex: 1; min-width: 0; }
  .calc-summary .calc-bd__head, .calc-summary .calc-bd__row:not(.calc-bd__row--total) { display: none; }
  .calc-summary .calc-bd__row--total { margin-top: 0; padding: 0; border-top: 0; flex-direction: column; align-items: flex-start; }
  .calc-summary .calc-bd__row--total span { font-size: .72rem; }
  .calc-summary .calc-bd__row--total b { font-size: 1.35rem; }
  .calc-summary__cta { margin-top: 0; padding-top: 0; flex: 0 0 auto; max-width: 52%; }
  .calc-summary__cta .btn { width: auto; white-space: normal; line-height: 1.2; text-align: center;
    padding: .6rem .85rem; font-size: .8rem; }
}

/* — калькулятор: пресеты площади как полноценные кнопки — */
.calc-presets { gap: .5rem; margin-top: .9rem; }
.calc-presets .chip { padding: .55rem 1.1rem; min-width: 66px; text-align: center; border: 1px solid var(--line-dark);
  border-radius: var(--radius); background: var(--surface-dark); color: var(--fg-on-dark);
  font-family: var(--mono); font-size: .92rem; font-variant-numeric: tabular-nums; cursor: pointer;
  transition: all var(--dur) var(--ease); }
.calc-presets .chip:hover { border-color: var(--brass); color: var(--offwhite); }
.calc-presets .chip.is-on { background: var(--brass); border-color: var(--brass); color: var(--charcoal); font-weight: 700; }

/* — калькулятор: блок «индивидуальный проект» — */
.calc-individual { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; justify-content: space-between;
  margin-top: 1.8rem; padding: 1.1rem 1.2rem; border: 1px dashed var(--brass); border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--surface-dark2), var(--surface-dark)); }
.calc-individual__t { flex: 1; min-width: 200px; }
.calc-individual__t b { display: block; font-family: var(--display); color: var(--offwhite); font-size: 1.02rem; line-height: 1.2; }
.calc-individual__t small { color: var(--muted-dark); font-size: .82rem; line-height: 1.4; }
.calc-individual .btn { white-space: nowrap; }

.smeta-frames canvas, .seq-frames canvas { width: 100%; height: 100%; display: block; }

/* ───────────── HERO · светлый сплит (главная) ───────────── */
.hero-split {
  background: #fff;
  color: var(--fg);
  padding-block: clamp(2rem, 4vw, 4rem);
  border-bottom: 1px solid var(--line-lt);
}
.hero-split__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 4vw, 4.5rem);
  align-items: center;
}
.hero-split__left,
.hero-split__right { min-width: 0; }

/* ── Заголовок: адаптивный размер, без переполнения ── */
.hero-split__left h1 {
  /* clamp: от 1.7rem (320px) → до 3.4rem (1920px), не вылезает из колонки */
  font-size: clamp(1.7rem, 1.1rem + 2.6vw, 3.4rem);
  font-stretch: 112%;
  width: 100%;
  max-width: 100%;
  margin: .7rem 0 1rem;
  color: var(--fg);
  line-height: 1.08;
  overflow-wrap: break-word;
  word-break: break-word;
  text-wrap: balance;
}
.hero-split__left h1 .accent {
  color: var(--gold);
  /* Подчёркивание-акцент под ключевой фразой */
  text-decoration: underline;
  text-decoration-color: rgba(161, 98, 7, .28);
  text-underline-offset: .18em;
  text-decoration-thickness: .06em;
}

.hero-split__sub {
  max-width: 44ch;
  font-size: clamp(.93rem, .88rem + .22vw, 1.12rem);
  color: var(--muted);
  line-height: 1.62;
}
.hero-split__scarcity {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  margin-top: 1.2rem;
  font-family: var(--mono);
  font-size: .77rem;
  color: var(--muted);
  letter-spacing: .02em;
}
.hero-split__scarcity .dot {
  flex-shrink: 0;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--brass);
  box-shadow: 0 0 0 4px rgba(184,145,84,.18);
  animation: dot-pulse 2.4s ease-in-out infinite;
}
@keyframes dot-pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(184,145,84,.18); }
  50%       { box-shadow: 0 0 0 6px rgba(184,145,84,.06); }
}
.hero-split__cta { margin-top: 1.6rem; }

/* ── Правая колонка ── */
.hero-split__right {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

/* ── Карточка-карусель ── */
.hero-carousel {
  position: relative;
  display: block;
  aspect-ratio: 1 / 1;
  width: 100%;
  max-width: 560px;
  margin-inline: auto;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line-lt);
  box-shadow:
    0 2px 0 0 rgba(184,145,84,.22),
    0 28px 64px -24px rgba(20,19,15,.48),
    0 8px 20px -8px rgba(20,19,15,.14);
  color: #fff;
  transition: box-shadow .4s var(--ease);
}
.hero-carousel:hover {
  box-shadow:
    0 2px 0 0 rgba(184,145,84,.35),
    0 36px 72px -20px rgba(20,19,15,.55),
    0 10px 28px -8px rgba(20,19,15,.18);
}
.hero-carousel img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: opacity .3s var(--ease), transform .7s var(--ease);
}
.hero-carousel:hover img { transform: scale(1.035); }

.hero-carousel__arrow {
  position: absolute;
  top: 14px; right: 14px;
  width: 40px; height: 40px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: 1rem;
  background: rgba(20,19,15,.5);
  color: var(--brass-bright);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(184,145,84,.3);
  transition: background .25s var(--ease), transform .25s var(--ease);
}
.hero-carousel:hover .hero-carousel__arrow {
  background: rgba(20,19,15,.72);
  transform: translate(1px, -1px);
}

.hero-carousel__cap {
  position: absolute;
  inset: auto 0 0 0;
  padding: 2rem 1.5rem 1.4rem;
  background: linear-gradient(to top,
    rgba(20,19,15,.96) 0%,
    rgba(20,19,15,.62) 55%,
    transparent 100%);
}
.hero-carousel__tag {
  font-family: var(--mono);
  font-size: .65rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--brass-bright);
  display: flex; align-items: center; gap: .45rem;
}
.hero-carousel__tag::before {
  content: "";
  display: inline-block;
  width: 18px; height: 1px;
  background: var(--brass-bright);
  opacity: .7;
}
.hero-carousel__cap h3 {
  font-family: var(--display);
  font-size: clamp(1.15rem, .9rem + .9vw, 1.75rem);
  color: #fff;
  margin: .35rem 0 .25rem;
  line-height: 1.1;
}
.hero-carousel__cap p {
  font-size: .88rem;
  color: rgba(236,234,227,.8);
  max-width: 40ch;
  line-height: 1.5;
}

/* ── Кнопки типов домов (премиальные, выровнены под ширину карточки) ── */
.hero-types {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: .5rem;
  width: 100%;
  max-width: 560px;
  margin-inline: auto;
}
/* 3 кнопки в первом ряду + 2 во втором — оба ряда во всю ширину изображения */
.hero-type { grid-column: span 2; }
.hero-type:nth-child(4), .hero-type:nth-child(5) { grid-column: span 3; }
.hero-type {
  font-family: var(--sans);
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .01em;
  padding: .62rem .9rem;
  border-radius: var(--radius);
  border: 1px solid var(--line-lt);
  background: var(--offwhite);
  color: var(--muted);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  white-space: nowrap;
  transition:
    background .22s var(--ease),
    color .22s var(--ease),
    border-color .22s var(--ease),
    box-shadow .22s var(--ease),
    transform .15s var(--ease);
  /* Маркер-точка слева */
  position: relative;
}
.hero-type::before {
  content: "";
  flex-shrink: 0;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--line-lt);
  transition: background .22s var(--ease), transform .22s var(--ease);
}
.hero-type:hover {
  border-color: rgba(184,145,84,.45);
  color: var(--gold);
  background: #fff;
  box-shadow: 0 2px 8px -2px rgba(184,145,84,.18);
  transform: translateY(-1px);
}
.hero-type:hover::before { background: var(--brass); transform: scale(1.3); }
.hero-type:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 2px;
  border-color: var(--brass);
}
.hero-type:active { transform: translateY(0); box-shadow: none; }
.hero-type.is-active {
  background: linear-gradient(135deg, var(--brass) 0%, var(--brass-bright) 100%);
  color: var(--charcoal);
  border-color: transparent;
  font-weight: 700;
  box-shadow:
    0 0 0 1px rgba(184,145,84,.35),
    0 4px 14px -4px rgba(184,145,84,.45);
  transform: translateY(-1px);
}
.hero-type.is-active::before {
  background: rgba(20,19,15,.5);
}
.hero-type.is-active:hover { transform: translateY(-2px); }

/* ── Адаптив ── */
@media (max-width: 1100px) {
  .hero-split__left h1 {
    font-size: clamp(1.7rem, 1rem + 3vw, 2.9rem);
  }
}
@media (max-width: 900px) {
  .hero-split__grid { grid-template-columns: 1fr; }
  .hero-split__left h1 {
    font-size: clamp(1.8rem, 1rem + 4.5vw, 2.8rem);
    max-width: 100%;
  }
  .hero-split__sub { max-width: 100%; }
  .hero-carousel { max-width: 100%; }
  .hero-types { max-width: 100%; }
}
@media (max-width: 560px) {
  /* узкий экран: 2 колонки, последняя кнопка во всю ширину */
  .hero-types { grid-template-columns: repeat(2, 1fr); gap: .45rem; }
  .hero-type,
  .hero-type:nth-child(4),
  .hero-type:nth-child(5) { grid-column: auto; }
  .hero-type:nth-child(5) { grid-column: span 2; }
}
@media (max-width: 480px) {
  .hero-split__left h1 {
    font-size: clamp(1.65rem, 1rem + 5.5vw, 2.4rem);
    line-height: 1.1;
  }
  .hero-type { font-size: .78rem; padding: .55rem .7rem; }
}

/* ───────────── ПОРТФОЛИО ЧАСТНЫХ ДОМОВ ───────────── */
.pf-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.4rem; }
.pf-card__btn { display: block; width: 100%; text-align: left; padding: 0; color: inherit; font: inherit;
  position: relative; cursor: pointer; overflow: hidden; background: var(--surface-dark2);
  border: 1px solid var(--line-dark); border-radius: var(--radius-lg);
  transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease); }
.pf-card__btn:hover { border-color: var(--brass); transform: translateY(-3px); }
.pf-card__btn:focus-visible { outline: 2px solid var(--brass-bright); outline-offset: 3px; }
.pf-card__img { display: block; aspect-ratio: 16/10; overflow: hidden; background: var(--surface-dark); }
.pf-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.pf-card__btn:hover .pf-card__img img { transform: scale(1.04); }
.pf-card__tag { position: absolute; top: .8rem; left: .8rem; font-family: var(--mono); font-size: .66rem;
  letter-spacing: .06em; text-transform: uppercase; padding: .3rem .6rem; border-radius: 999px;
  background: rgba(20,19,15,.8); color: var(--brass-bright); border: 1px solid rgba(184,145,84,.4); }
.pf-card__body { display: block; padding: 1.1rem 1.2rem 1.3rem; }
.pf-card__title { display: block; font-family: var(--display); font-size: 1.2rem; color: var(--offwhite); margin-bottom: .35rem; }
.pf-card__desc { display: block; font-size: .88rem; line-height: 1.5; color: var(--muted-dark); }
.pf-card__meta { display: block; margin-top: .75rem; font-family: var(--mono); font-size: .72rem; color: var(--cyan); }

/* галерея */
.pf-modal { position: fixed; inset: 0; z-index: 150; display: flex; align-items: center; justify-content: center; }
.pf-modal[hidden] { display: none; }
.pf-modal__scrim { position: absolute; inset: 0; background: rgba(20,19,15,.94);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.pf-modal__panel { position: relative; z-index: 1; width: min(1180px, 100%); height: min(92vh, 980px);
  display: flex; flex-direction: column; overflow: hidden; background: var(--surface-dark);
  border: 1px solid var(--line-dark); border-radius: var(--radius-lg); }
.pf-modal__head { position: relative; display: flex; align-items: baseline; gap: .8rem; flex-wrap: wrap;
  padding: 1rem 3.4rem 1rem 1.3rem; border-bottom: 1px solid var(--line-dark); }
.pf-modal__head h3 { font-family: var(--display); font-size: 1.25rem; color: var(--offwhite); }
.pf-modal__head p { font-family: var(--mono); font-size: .72rem; color: var(--cyan); }
.pf-modal__close { position: absolute; top: .7rem; right: .8rem; width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid var(--line-dark); background: transparent; color: var(--fg-on-dark); font-size: 1.15rem;
  line-height: 1; cursor: pointer; transition: all var(--dur) var(--ease); }
.pf-modal__close:hover { border-color: var(--brass); color: var(--offwhite); }
.pf-stage { position: relative; flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center;
  background: #0F0E0C; }
.pf-stage img { max-width: 100%; max-height: 100%; object-fit: contain; }
.pf-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--line-dark); background: rgba(20,19,15,.72); color: var(--offwhite); font-size: 1.35rem;
  line-height: 1; cursor: pointer; transition: all var(--dur) var(--ease); }
.pf-nav:hover { border-color: var(--brass); background: rgba(20,19,15,.9); }
.pf-nav--prev { left: .7rem; } .pf-nav--next { right: .7rem; }
.pf-cap { display: flex; align-items: baseline; gap: .7rem; padding: .7rem 1.3rem;
  border-top: 1px solid var(--line-dark); font-size: .85rem; color: var(--fg-on-dark); }
.pf-cap__kind { font-family: var(--mono); font-size: .66rem; text-transform: uppercase; letter-spacing: .06em;
  color: var(--brass-bright); border: 1px solid rgba(184,145,84,.4); padding: .15rem .5rem; border-radius: 999px;
  white-space: nowrap; }
.pf-cap__num { margin-left: auto; font-family: var(--mono); font-size: .74rem; color: var(--muted-dark); white-space: nowrap; }
.pf-thumbs { display: flex; gap: .5rem; overflow-x: auto; padding: .7rem 1.3rem 1rem; border-top: 1px solid var(--line-dark); }
.pf-thumbs button { flex: 0 0 auto; width: 96px; height: 64px; padding: 0; overflow: hidden; cursor: pointer;
  background: var(--surface-dark2); border: 1px solid var(--line-dark); border-radius: var(--radius);
  opacity: .55; transition: opacity var(--dur) var(--ease), border-color var(--dur) var(--ease); }
.pf-thumbs button img { width: 100%; height: 100%; object-fit: cover; }
.pf-thumbs button:hover { opacity: .85; }
.pf-thumbs button.is-on { opacity: 1; border-color: var(--brass); }
body.pf-open { overflow: hidden; }

@media (max-width: 980px) {
  .pf-grid { grid-template-columns: repeat(2, 1fr); }
  .pf-modal__panel { width: 100%; height: 100%; border: 0; border-radius: 0; }
}
@media (max-width: 600px) {
  .pf-grid { grid-template-columns: 1fr; }
  .pf-thumbs button { width: 74px; height: 52px; }
  .pf-cap { flex-wrap: wrap; row-gap: .3rem; }
  .pf-cap__num { margin-left: 0; width: 100%; }
  .pf-nav { width: 38px; height: 38px; }
}

/* ───────────── ОКНО ОБРАТНОЙ СВЯЗИ ПО КНОПКЕ МЕССЕНДЖЕРА ───────────── */
.msgr-modal { position: fixed; inset: 0; z-index: 160; display: flex; align-items: center; justify-content: center;
  padding: 1.2rem; }
.msgr-modal[hidden] { display: none; }
.msgr-modal__scrim { position: absolute; inset: 0; background: rgba(20,19,15,.92);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.msgr-modal__panel { position: relative; z-index: 1; width: min(440px, 100%); max-height: 92vh; overflow: auto;
  background: var(--surface-dark); border: 1px solid var(--line-dark); border-radius: var(--radius-lg);
  padding: clamp(1.4rem, 3vw, 2rem); }
.msgr-modal__close { position: absolute; top: .7rem; right: .8rem; width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid var(--line-dark); background: transparent; color: var(--fg-on-dark); font-size: 1.05rem;
  line-height: 1; cursor: pointer; transition: all var(--dur) var(--ease); }
.msgr-modal__close:hover { border-color: var(--brass); color: var(--offwhite); }
.msgr-modal__kind { display: inline-block; font-family: var(--mono); font-size: .68rem; letter-spacing: .08em;
  text-transform: uppercase; padding: .3rem .7rem; border-radius: 999px; color: #fff; margin-bottom: .8rem; }
.msgr-modal.is-tg .msgr-modal__kind { background: linear-gradient(145deg, #37AEE2, #1E96C8); }
.msgr-modal.is-wa .msgr-modal__kind { background: linear-gradient(145deg, #4BD865, #1EB955); }
.msgr-modal__title { font-family: var(--display); font-size: 1.4rem; color: var(--offwhite); margin-bottom: .4rem;
  padding-right: 2.2rem; }
.msgr-modal__sub { font-size: .9rem; line-height: 1.5; color: var(--muted-dark); margin-bottom: 1.2rem; }
.msgr-modal .msgr-form label { display: block; font-family: var(--mono); font-size: .7rem; letter-spacing: .06em;
  text-transform: uppercase; color: var(--muted-dark); margin: .9rem 0 .35rem; }
.msgr-modal .msgr-form label.consent { text-transform: none; letter-spacing: 0; font-family: inherit;
  font-size: .8rem; line-height: 1.45; }
body.msgr-open { overflow: hidden; }

@media (max-width: 600px) {
  .msgr-modal { padding: 0; align-items: flex-end; }
  .msgr-modal__panel { width: 100%; max-height: 90vh; border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
}
.msgr-modal.is-doc .msgr-modal__kind { background: linear-gradient(145deg, var(--brass-bright), var(--brass)); color: var(--charcoal); }

/* переключатель языков внутри бургер-меню (в шапке на мобильных он скрыт) */
.nav .lang-in-nav { display: none; }
@media (max-width: 768px) {
  .nav.is-open .lang-in-nav { display: flex; justify-content: center; gap: .25rem;
    margin-top: .6rem; padding-top: .9rem; border-top: 1px solid var(--line-dark); font-size: .95rem; }
  .nav.is-open .lang-in-nav a { padding: .25rem .5rem; border-bottom: 0; font-size: .95rem; }
}

/* телефон: поле кода страны + поле номера с маской */
.phone-field { display: flex; gap: .5rem; width: 100%; align-items: stretch; }
.form .phone-field { margin-bottom: 1.1rem; }
.form .phone-field input { margin-bottom: 0; }
.capture .phone-field { flex: 1; min-width: 230px; width: auto; }
.phone-field .phone-cc { flex: 0 0 4.4rem; width: 4.4rem; min-width: 0; text-align: center;
  padding-left: .35rem; padding-right: .35rem; }
.phone-field input[name="contact"] { flex: 1; min-width: 0; }
.form .phone-field + .field-error { margin-top: -.7rem; margin-bottom: 1rem; }
