/* ============================================================================
   Стандарт Реалти — стили лендинга
   ============================================================================

   Собран 02.09.2026 из трёх файлов, которые раньше подключались по очереди:
   site.css → premium-redesign.css → fixes.css

   Порядок сохранён дословно, ничего не переписано и не удалено — поэтому
   итоговый вид страницы не изменился. Разделение на три файла было нужно,
   пока над сайтом работали двое: слой Codex пересобирался целиком, и правки
   внутри него терялись. Сейчас работу ведёт один человек, и держать три
   конкурирующих слоя больше незачем.

   Что важно знать при правке:
   — ниже по файлу правило перебивает то, что выше. Если меняете что-то из
     первого слоя, а вид не меняется — ищите переопределение во втором или третьем;
   — «CoFo Sans» объявлен в первом слое, но фактически не используется:
     во втором слое шрифт переопределён на Onest;
   — фирменный красный: в первом слое #d30c3b (цвет логотипа), во втором #e3313b.
     Побеждает второй — так решено заказчиком, это не ошибка.

   Оригиналы трёх файлов сохранены в материалы_сайта/стили-до-слияния/
   ============================================================================ */


/* ############################################################################
   СЛОЙ 1 — база
   Источник: site.css
   Дизайн-система: токены, сетка, компоненты. Написан 27.08.2026 при переносе с Tilda.
   ############################################################################ */

/* ============================================================
   Стандарт Реалти — дизайн-система лендинга
   ============================================================ */

/* ---------- 0. Шрифт CoFo Sans (тот же, что у ГК «Самолёт») ---------- */
@font-face {
  font-family: "CoFo Sans";
  src: url("/fonts/CoFoSans-Regular.woff") format("woff");
  font-weight: 300 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "CoFo Sans";
  src: url("/fonts/CoFoSans-Medium.woff") format("woff");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "CoFo Sans";
  src: url("/fonts/CoFoSans-Bold.woff") format("woff");
  font-weight: 600 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "CoFo Sans";
  src: url("/fonts/CoFoSans-Black.woff") format("woff");
  font-weight: 800 900;
  font-style: normal;
  font-display: swap;
}

/* ---------- 1. Токены ---------- */
:root {
  --ink: #0e1317;
  --ink-2: #151c21;
  --ink-3: #1f2830;
  --brand: #d30c3b;
  --brand-hi: #e8214a;
  --brand-deep: #a80930;
  --gold: #c9a227;

  --paper: #ffffff;
  --sand: #eceae5;
  --sand-2: #dedbd4;

  --text: #0e1317;
  --text-2: #56616a;
  --text-3: #87929c;
  --on-dark: #ffffff;
  --on-dark-2: rgba(255, 255, 255, 0.66);
  --on-dark-3: rgba(255, 255, 255, 0.42);

  --line: rgba(14, 19, 23, 0.12);
  --line-2: rgba(14, 19, 23, 0.07);
  --line-dark: rgba(255, 255, 255, 0.14);

  --r-sm: 4px;
  --r-md: 8px;
  --r-lg: 10px;
  --r-xl: 14px;
  --r-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(12, 13, 16, 0.04), 0 6px 16px rgba(12, 13, 16, 0.05);
  --shadow-md: 0 2px 6px rgba(12, 13, 16, 0.05), 0 18px 44px rgba(12, 13, 16, 0.1);
  --shadow-lg: 0 30px 80px rgba(12, 13, 16, 0.18);

  --container: 1240px;
  --gutter: clamp(18px, 4vw, 40px);
  --section-y: clamp(64px, 8vw, 124px);

  --ease: cubic-bezier(0.22, 0.68, 0.36, 1);
  --dur: 0.42s;

  --font: "CoFo Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --font-display: "CoFo Sans", -apple-system, BlinkMacSystemFont, Helvetica, Arial, sans-serif;
}

/* ---------- 2. База ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  font-feature-settings: "ss01", "cv05";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  margin: 0;
  letter-spacing: -0.03em;
  line-height: 1.06;
  font-weight: 800;
}

p { margin: 0; }

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

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- 3. Раскладка ---------- */
.wrap {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section-y); }
.section--tight { padding-block: clamp(48px, 5.5vw, 84px); }
.section--sand { background: var(--sand); }
.section--flush-top { padding-top: 0; }

.sec-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px 32px;
  margin-bottom: clamp(28px, 3.4vw, 48px);
}

.sec-head__text { flex: 1 1 420px; max-width: 720px; min-width: 0; }

.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-variant-numeric: tabular-nums;
  color: var(--text-3);
  margin-bottom: 12px;
}

.h2 { font-size: clamp(30px, 4.2vw, 54px); }
.h3 { font-size: clamp(22px, 2.4vw, 30px); }

.sub {
  margin-top: 14px;
  font-size: clamp(15px, 1.2vw, 18px);
  color: var(--text-2);
  line-height: 1.55;
  max-width: 58ch;
}

.on-dark .sub, .sub--dark { color: var(--on-dark-2); }

/* ---------- 4. Кнопки ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 26px;
  height: 54px;
  border: 0;
  border-radius: var(--r-md);
  font-family: var(--font);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: transform 0.2s var(--ease), background 0.2s var(--ease), box-shadow 0.25s var(--ease), color 0.2s var(--ease);
  white-space: nowrap;
}

.btn:active { transform: translateY(1px); }

.btn--primary {
  background: var(--brand);
  color: #fff;
}
.btn--primary:hover { background: var(--brand-hi); }

.btn--ink { background: var(--ink); color: #fff; }
.btn--ink:hover { background: var(--ink-3); }

.btn--ghost {
  background: transparent;
  color: var(--text);
  box-shadow: inset 0 0 0 1px var(--line);
}
.btn--ghost:hover { box-shadow: inset 0 0 0 1px rgba(12, 13, 16, 0.28); }

.btn--ghost-light {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.24);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.btn--ghost-light:hover { background: rgba(255, 255, 255, 0.16); }

.btn--sm { height: 44px; padding: 0 20px; font-size: 14px; }

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: var(--r-md);
  background: transparent;
  box-shadow: inset 0 0 0 1px var(--line);
  border: 0;
  cursor: pointer;
  color: var(--text);
  transition: background 0.2s var(--ease), color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.icon-btn svg { width: 19px; height: 19px; fill: currentColor; }
.icon-btn:hover { background: var(--ink); color: #fff; box-shadow: none; }

/* ---------- 5. Шапка ---------- */
.hdr {
  position: fixed;
  top: 0; right: 0; bottom: auto; left: 0;
  inset: 0 0 auto 0;
  z-index: 90;
  height: 78px;
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0);
  transition: background 0.3s var(--ease), box-shadow 0.3s var(--ease), height 0.3s var(--ease);
}

.hdr__inner {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.4vw, 40px);
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.hdr__logo { flex: none; }
.hdr__logo img { height: 34px; width: auto; transition: height 0.3s var(--ease); }

.hdr__nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 1.8vw, 30px);
  margin-inline: auto;
}

.hdr__nav a {
  position: relative;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--text-2);
  padding-block: 6px;
  transition: color 0.2s var(--ease);
}
.hdr__nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 1.5px;
  width: 0;
  background: var(--brand);
  transition: width 0.28s var(--ease);
}
.hdr__nav a:hover { color: var(--text); }
.hdr__nav a:hover::after { width: 100%; }

.hdr__side { display: flex; align-items: center; gap: 10px; flex: none; }

.hdr__phone {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.02em;
  white-space: nowrap;
  padding-inline: 6px;
}
.hdr__phone:hover { color: var(--brand); }

/* прозрачная шапка поверх тёмного героя */
.hdr--over { color: #fff; }
.hdr--over .hdr__nav a { color: rgba(255, 255, 255, 0.72); }
.hdr--over .hdr__nav a:hover { color: #fff; }
.hdr--over .hdr__phone { color: #fff; }
.hdr--over .icon-btn { color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.26); }
.hdr--over .icon-btn:hover { background: #fff; color: var(--ink); }
.hdr--over .hdr__logo img { filter: brightness(0) invert(1); }

.hdr--solid {
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: saturate(1.6) blur(16px);
  -webkit-backdrop-filter: saturate(1.6) blur(16px);
  box-shadow: 0 1px 0 var(--line-2), 0 8px 30px rgba(12, 13, 16, 0.06);
  height: 68px;
}
.hdr--solid .hdr__logo img { height: 30px; }

/* ---------- 6. Герой ---------- */
.hero {
  position: relative;
  min-height: min(880px, 94vh);
  display: flex;
  align-items: flex-end;
  padding-top: 130px;
  padding-bottom: clamp(56px, 6vw, 96px);
  background: var(--ink);
  overflow: hidden;
  isolation: isolate;
}

.hero__media {
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  inset: 0;
  z-index: -2;
}
.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 62%;
  transform: scale(1.04);
  animation: heroZoom 18s var(--ease) forwards;
}

@keyframes heroZoom { to { transform: scale(1); } }

.hero__scrim {
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(100deg, rgba(8, 9, 11, 0.94) 0%, rgba(8, 9, 11, 0.78) 34%, rgba(8, 9, 11, 0.28) 66%, rgba(8, 9, 11, 0.42) 100%),
    linear-gradient(180deg, rgba(8, 9, 11, 0.62) 0%, rgba(8, 9, 11, 0) 26%, rgba(8, 9, 11, 0.55) 100%);
}

.hero__inner { width: 100%; }
.hero__copy { max-width: 780px; color: #fff; }

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px 8px 10px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 26px;
}
.hero__badge b {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: var(--r-pill);
  background: var(--brand);
  color: #fff;
}

.hero h1 {
  font-size: clamp(38px, 6vw, 82px);
  letter-spacing: -0.04em;
  line-height: 0.98;
  text-wrap: balance;
}

.hero__sub {
  margin-top: 22px;
  font-size: clamp(16px, 1.5vw, 20px);
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.76);
  max-width: 44ch;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
}

.hero__scroll {
  position: absolute;
  right: var(--gutter);
  bottom: clamp(56px, 6vw, 96px);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}
.hero__scroll i {
  display: block;
  width: 1px;
  height: 54px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0));
}

/* ---------- 7. Преимущества ---------- */
.perks {
  position: relative;
  z-index: 2;
  margin-top: clamp(-92px, -6vw, -56px);
}

.perks__panel {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-radius: var(--r-xl);
  overflow: hidden;
  background: var(--ink-2);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08), var(--shadow-lg);
}

.perk {
  display: flex;
  flex-direction: column;
  min-height: 232px;
  padding: clamp(22px, 2.4vw, 36px);
  color: #fff;
  border-right: 1px solid rgba(255, 255, 255, 0.09);
  transition: background 0.35s var(--ease);
}
.perk:last-child { border-right: 0; }
.perk:hover { background: rgba(255, 255, 255, 0.04); }

.perk__ico {
  width: 44px;
  height: 44px;
  border-radius: 13px;
  background: rgba(211, 12, 59, 0.16);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: auto;
}
.perk__ico svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: #ff7d9c;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.perk__num {
  margin-bottom: auto;
  font-family: var(--font-display);
  font-size: clamp(46px, 4.6vw, 66px);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 0.9;
}

.perk__title {
  margin-top: 26px;
  font-family: var(--font-display);
  font-size: clamp(17px, 1.5vw, 20px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.18;
}

.perk__note {
  margin-top: 8px;
  font-size: 13.5px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.55);
}

/* ---------- 8. Рельс карточек ---------- */
.rail {
  position: relative;
  margin-inline: calc(var(--gutter) * -1);
}

.rail__track {
  display: flex;
  gap: clamp(12px, 1.3vw, 20px);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 6px var(--gutter) 26px;
  scrollbar-width: none;
  cursor: grab;
}
.rail__track::-webkit-scrollbar { display: none; }
.rail__track.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.rail__track > * { scroll-snap-align: start; flex: 0 0 clamp(258px, 25vw, 322px); }

.rail__nav { display: flex; gap: 8px; }

.rail__btn {
  width: 46px;
  height: 46px;
  border-radius: var(--r-md);
  border: 0;
  background: var(--paper);
  box-shadow: inset 0 0 0 1px var(--line);
  color: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s var(--ease), color 0.2s var(--ease), opacity 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.rail__btn svg { width: 18px; height: 18px; }
.rail__btn:hover { background: var(--ink); color: #fff; box-shadow: none; }
.rail__btn[disabled] { opacity: 0.32; pointer-events: none; }

/* ---------- 9. Карточка ЖК ---------- */
.jk {
  position: relative;
  display: flex;
  flex-direction: column;
  text-align: left;
  border: 0;
  padding: 0;
  background: var(--paper);
  border-radius: var(--r-lg);
  box-shadow: inset 0 0 0 1px var(--line-2), var(--shadow-sm);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.jk:hover { transform: translateY(-6px); box-shadow: inset 0 0 0 1px var(--line-2), var(--shadow-md); }
.jk[hidden] { display: none !important; }

.jk__media {
  position: relative;
  aspect-ratio: 4 / 3.1;
  overflow: hidden;
  background: var(--sand-2);
}
.jk__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}
.jk:hover .jk__media img { transform: scale(1.07); }

.jk__chips {
  position: absolute;
  top: 12px; right: 12px; bottom: auto; left: 12px;
  inset: 12px 12px auto 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 11px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
  box-shadow: 0 2px 10px rgba(12, 13, 16, 0.12);
}
.chip svg {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: var(--brand);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.jk__body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }

.jk__title {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.025em;
}

.jk__addr {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13.5px;
  color: var(--text-2);
}
.jk__addr svg {
  flex: none;
  width: 15px;
  height: 15px;
  fill: none;
  stroke: var(--text-3);
  stroke-width: 1.6;
}

.jk__foot {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--line-2);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.jk__status {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text);
  padding: 6px 12px;
  border-radius: var(--r-pill);
  background: var(--sand);
}
.jk--live .jk__status { background: rgba(211, 12, 59, 0.08); color: var(--brand-deep); }

.jk__arrow {
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--sand);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), transform 0.25s var(--ease);
}
.jk__arrow svg { width: 15px; height: 15px; }
.jk:hover .jk__arrow { background: var(--brand); color: #fff; transform: translateX(3px); }

/* ---------- 10. Квиз ---------- */
.quiz {
  position: relative;
  border-radius: var(--r-xl);
  overflow: hidden;
  background: var(--ink);
  color: #fff;
  isolation: isolate;
  min-height: 520px;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
}

.quiz__media { position: relative; }
.quiz__media img { width: 100%; height: 100%; object-fit: cover; }
.quiz__media::after {
  content: "";
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  inset: 0;
  background: linear-gradient(90deg, rgba(8, 9, 11, 0.35) 0%, rgba(8, 9, 11, 0) 40%, rgba(12, 13, 16, 0.92) 96%);
}

.quiz__panel {
  padding: clamp(28px, 3.6vw, 56px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.quiz__title { font-size: clamp(28px, 3.2vw, 44px); }
.quiz__title span { color: var(--brand-hi); }

.quiz__sub { margin-top: 14px; font-size: 15.5px; color: var(--on-dark-2); }

.quiz__list {
  list-style: none;
  margin: 26px 0 0;
  padding: 0;
  display: grid;
  gap: 11px;
}
.quiz__list li {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.86);
}
.quiz__list i {
  flex: none;
  width: 21px;
  height: 21px;
  border-radius: 50%;
  background: rgba(211, 12, 59, 0.18);
  color: var(--brand-hi);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-style: normal;
  font-weight: 700;
}

.quiz__rule { height: 1px; background: var(--line-dark); margin: 28px 0; }

.quiz__offer { font-size: 16px; line-height: 1.5; color: rgba(255, 255, 255, 0.86); }
.quiz__offer b {
  font-family: var(--font-display);
  font-weight: 800;
  color: #fff;
  background: linear-gradient(180deg, transparent 62%, rgba(211, 12, 59, 0.55) 62%);
}

.quiz__start { margin-top: 26px; align-self: flex-start; }

/* состояние: опрос запущен */
.quiz-host.is-started .quiz { display: none; }
.quiz-host .quiz-form { display: none; }
.quiz-host.is-started .quiz-form { display: block; }

.quiz-form {
  background: var(--paper);
  border-radius: var(--r-xl);
  box-shadow: inset 0 0 0 1px var(--line-2), var(--shadow-md);
  padding: clamp(20px, 2.4vw, 40px);
}

/* ---------- 11. О компании в цифрах ---------- */
.stats {
  position: relative;
  border-radius: var(--r-xl);
  overflow: hidden;
  background: var(--ink);
  color: #fff;
  isolation: isolate;
  padding: clamp(34px, 4.4vw, 68px);
}
.stats__bg {
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
}
.stats::before {
  content: "";
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  inset: 0;
  z-index: -1;
  background: linear-gradient(96deg, rgba(8, 9, 11, 0.95) 0%, rgba(8, 9, 11, 0.8) 42%, rgba(8, 9, 11, 0.32) 100%);
}

.stats__head { max-width: 460px; }
.stats__head h2 { font-size: clamp(28px, 3.4vw, 46px); }

.stats__grid {
  margin-top: clamp(30px, 3.6vw, 52px);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(10px, 1.1vw, 16px);
}

.stat {
  padding: 22px;
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.07);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: background 0.3s var(--ease), transform 0.3s var(--ease);
}
.stat:hover { background: rgba(255, 255, 255, 0.12); transform: translateY(-4px); }

.stat__icon {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: rgba(211, 12, 59, 0.2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.stat__icon svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: #ff98b1;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.stat__value {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(22px, 2vw, 28px);
  font-weight: 800;
  letter-spacing: -0.035em;
}
.stat__label { display: block; margin-top: 6px; font-size: 13.5px; color: var(--on-dark-2); }

/* ---------- 12. Формы (поверх Tilda) ---------- */
.formcard {
  background: var(--paper);
  border-radius: var(--r-xl);
  box-shadow: inset 0 0 0 1px var(--line-2), var(--shadow-sm);
  padding: clamp(26px, 3.2vw, 52px);
}

.formcard--dark {
  background: var(--ink);
  color: #fff;
  box-shadow: none;
}

.form-head { text-align: center; max-width: 640px; margin-inline: auto; }
.form-head h2 { font-size: clamp(26px, 3.2vw, 44px); }
.form-head .sub { margin-inline: auto; text-align: center; }

.sr-form { margin-top: clamp(24px, 2.6vw, 38px); }

.sr-form .t-form__inputsbox {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 12px;
  align-items: start;
}
.sr-form--stack .t-form__inputsbox { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; }

.sr-form .t-input-group { min-width: 0; }
.sr-form .t-input-group_cb { grid-column: 1 / -1; }
.sr-form .t-form__submit { grid-column: auto; }
.sr-form--stack .t-form__submit { grid-column: 1 / -1; }

.sr-form .t-input,
.sr-form input.t-input {
  width: 100%;
  height: 56px;
  padding: 0 18px;
  border-radius: var(--r-md) !important;
  border: 1px solid var(--line) !important;
  background: var(--paper);
  color: var(--text) !important;
  font-family: var(--font);
  font-size: 15.5px;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s var(--ease);
}
.sr-form .t-input::placeholder { color: var(--text-3); }
.sr-form .t-input:focus {
  outline: none;
  border-color: var(--ink) !important;
  box-shadow: 0 0 0 4px rgba(12, 13, 16, 0.07);
}

.formcard--dark .sr-form .t-input,
.formcard--dark .sr-form input.t-input {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.16) !important;
  color: #fff !important;
}
.formcard--dark .sr-form .t-input::placeholder { color: rgba(255, 255, 255, 0.42); }
.formcard--dark .sr-form .t-input:focus {
  border-color: rgba(255, 255, 255, 0.6) !important;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.08);
}

.sr-form .t-submit,
.sr-form button.t-submit {
  height: 56px;
  padding: 0 30px;
  border: 0;
  border-radius: var(--r-md) !important;
  background: var(--brand) !important;
  color: #fff !important;
  font-family: var(--font);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s var(--ease), box-shadow 0.2s var(--ease);
  white-space: nowrap;
  width: 100%;
}
.sr-form .t-submit:hover { background: var(--brand-hi) !important; }

.sr-form .t-checkbox__control {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--text-2);
  cursor: pointer;
}
.formcard--dark .sr-form .t-checkbox__control { color: var(--on-dark-3); }
.sr-form .t-checkbox__control strong { font-weight: 500; }
.sr-form .t-checkbox__control a { color: var(--text-2); text-decoration: underline; text-underline-offset: 2px; }
.formcard--dark .sr-form .t-checkbox__control a { color: rgba(255, 255, 255, 0.62); }
.sr-form .t-checkbox__control a:hover { color: var(--brand); }

.sr-form .t-checkbox { position: absolute; opacity: 0; width: 0; height: 0; }
.sr-form .t-checkbox__indicator {
  flex: none;
  position: relative;
  width: 18px;
  height: 18px;
  margin-top: 1px;
  border-radius: 5px;
  border: 1px solid var(--line);
  background: var(--paper);
  transition: background 0.18s var(--ease), border-color 0.18s var(--ease);
}
.formcard--dark .sr-form .t-checkbox__indicator { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.28); }
.sr-form .t-checkbox:checked + .t-checkbox__indicator { background: var(--brand); border-color: var(--brand); }
.sr-form .t-checkbox:checked + .t-checkbox__indicator::after {
  content: "";
  position: absolute;
  left: 5.5px;
  top: 2px;
  width: 5px;
  height: 9px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.sr-form .t-input-error {
  font-size: 12px;
  color: var(--brand);
  margin-top: 6px;
}
.sr-form .t-form__errorbox-wrapper { margin-top: 10px; }
.sr-form .t-form__errorbox-text { font-size: 13px; color: var(--brand); list-style: none; padding: 0; margin: 0; }
.sr-form .t-form__successbox {
  padding: 18px 20px;
  border-radius: var(--r-md);
  background: rgba(211, 12, 59, 0.07);
  color: var(--brand-deep);
  font-size: 15px;
  text-align: center;
}
.formcard--dark .sr-form .t-form__successbox { background: rgba(255, 255, 255, 0.1); color: #fff; }

/* маска телефона Tilda */
.sr-form .t-input-phonemask__wrap { width: 100%; }
.sr-form .t-input-phonemask__select { border-radius: var(--r-md) 0 0 var(--r-md); }

/* ---------- 13. Планировки ---------- */
.plans__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: clamp(12px, 1.3vw, 20px);
}

.plan {
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--paper);
  box-shadow: inset 0 0 0 1px var(--line-2), var(--shadow-sm);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.plan:hover { transform: translateY(-6px); box-shadow: inset 0 0 0 1px var(--line-2), var(--shadow-md); }

.plan__media {
  position: relative;
  aspect-ratio: 1 / 1;
  background: #fbfaf9;
}
.plan__media img {
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.55s var(--ease);
}
.plan__media img.is-after { opacity: 0; }
.plan:hover .plan__media img.is-before { opacity: 0; }
.plan:hover .plan__media img.is-after { opacity: 1; }

.plan__tag {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 2;
  padding: 6px 11px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.9);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  font-size: 11.5px;
  font-weight: 600;
  color: var(--ink);
  box-shadow: 0 2px 10px rgba(12, 13, 16, 0.1);
  transition: opacity 0.3s var(--ease);
}
.plan__tag--after { opacity: 0; }
.plan:hover .plan__tag--before { opacity: 0; }
.plan:hover .plan__tag--after { opacity: 1; }

.plan__foot {
  padding: 16px 18px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.plan__name {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.plan__area { font-size: 13.5px; color: var(--text-2); white-space: nowrap; }

/* ---------- 14. Не только квартиры ---------- */
.spaces {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: clamp(12px, 1.3vw, 18px);
}
.spaces__col { display: grid; gap: clamp(12px, 1.3vw, 18px); }

.space {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  text-align: left;
  border: 0;
  padding: 26px;
  min-height: 240px;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--ink-2);
  color: #fff;
  cursor: pointer;
  isolation: isolate;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.space--tall { min-height: 100%; }
.space:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }

.space img {
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}
.space:hover img { transform: scale(1.06); }
.space::after {
  content: "";
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(8, 9, 11, 0.1) 30%, rgba(8, 9, 11, 0.88) 100%);
}

.space__icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.14);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.space__icon svg { width: 20px; height: 20px; fill: none; stroke: #fff; stroke-width: 1.6; stroke-linejoin: round; }

.space__title {
  font-family: var(--font-display);
  font-size: clamp(19px, 1.8vw, 24px);
  font-weight: 700;
  letter-spacing: -0.025em;
}
.space__text { margin-top: 6px; font-size: 14px; color: rgba(255, 255, 255, 0.7); }

.space__arrow {
  position: absolute;
  right: 22px;
  bottom: 22px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.25s var(--ease), transform 0.25s var(--ease);
}
.space__arrow svg { width: 16px; height: 16px; }
.space:hover .space__arrow { background: var(--brand); transform: translate(3px, -3px); }

/* ---------- 15. FAQ ---------- */
.faq { display: grid; gap: 0; border-top: 1px solid var(--line); }

.faq__item { border-bottom: 1px solid var(--line); }

.faq__q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: clamp(20px, 2vw, 28px) 0;
  background: none;
  border: 0;
  text-align: left;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: clamp(16px, 1.5vw, 20px);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
  transition: color 0.2s var(--ease);
}
.faq__q:hover { color: var(--brand); }

.faq__icon {
  flex: none;
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px var(--line);
  transition: background 0.25s var(--ease), box-shadow 0.25s var(--ease), transform 0.35s var(--ease);
}
.faq__icon::before,
.faq__icon::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 13px;
  height: 1.6px;
  background: currentColor;
  transform: translate(-50%, -50%);
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}
.faq__icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq__item.is-open .faq__icon { background: var(--brand); color: #fff; box-shadow: none; transform: rotate(180deg); }
.faq__item.is-open .faq__icon::after { opacity: 0; }

.faq__a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.42s var(--ease); }
.faq__item.is-open .faq__a { grid-template-rows: 1fr; }
.faq__a > div { overflow: hidden; }
.faq__a p {
  padding-bottom: 26px;
  max-width: 74ch;
  font-size: 15.5px;
  line-height: 1.62;
  color: var(--text-2);
}

/* ---------- 16. Отзывы ---------- */
.rating {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 18px 24px;
  border-radius: var(--r-lg);
  background: var(--paper);
  box-shadow: inset 0 0 0 1px var(--line-2), var(--shadow-sm);
}
.rating__num {
  font-family: var(--font-display);
  font-size: clamp(30px, 3vw, 40px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
}
.rating__stars { color: var(--gold); font-size: 15px; letter-spacing: 2px; }
.rating__label { font-size: 13px; color: var(--text-2); margin-top: 4px; }

.review {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 26px 24px;
  border-radius: var(--r-lg);
  background: var(--paper);
  box-shadow: inset 0 0 0 1px var(--line-2), var(--shadow-sm);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.review:hover { transform: translateY(-5px); box-shadow: inset 0 0 0 1px var(--line-2), var(--shadow-md); }
.review__stars { color: var(--gold); font-size: 14px; letter-spacing: 2px; }
.review__text { font-size: 14.5px; line-height: 1.6; color: var(--text-2); }
.review__foot {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--line-2);
  display: flex;
  align-items: center;
  gap: 12px;
}
.review__ava {
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--sand);
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.review__name { font-size: 14.5px; font-weight: 600; }
.review__src { font-size: 12.5px; color: var(--text-3); }

/* ---------- 17. Подвал ---------- */
.foot { background: var(--ink); color: #fff; padding-block: clamp(48px, 5vw, 80px) 34px; }

.foot__top {
  display: grid;
  grid-template-columns: 1.1fr 1fr 1fr;
  gap: clamp(28px, 3vw, 56px);
  padding-bottom: 40px;
  border-bottom: 1px solid var(--line-dark);
}

.foot__logo {
  display: inline-flex;
  padding: 12px 16px;
  border-radius: 14px;
  background: #fff;
}
.foot__logo img { height: 30px; width: auto; }

.foot__note { margin-top: 18px; font-size: 14px; line-height: 1.55; color: var(--on-dark-2); max-width: 34ch; }

.foot__ttl {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--on-dark-3);
  margin-bottom: 18px;
}

.foot__list { display: grid; gap: 12px; }
.foot__list a, .foot__list span {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.82);
  transition: color 0.2s var(--ease);
}
.foot__list a:hover { color: #fff; }
.foot__list svg { width: 17px; height: 17px; flex: none; fill: currentColor; opacity: 0.6; }

.foot__phone {
  font-family: var(--font-display);
  font-size: clamp(21px, 2vw, 27px) !important;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.foot__bottom {
  padding-top: 26px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 26px;
  font-size: 12.5px;
  color: var(--on-dark-3);
}
.foot__bottom a { text-decoration: underline; text-underline-offset: 2px; }
.foot__bottom a:hover { color: #fff; }

/* ---------- 18. Cookie ---------- */
.cookie {
  position: fixed;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%);
  z-index: 120;
  width: min(940px, calc(100vw - 32px));
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 18px;
  border-radius: var(--r-md);
  background: rgba(12, 13, 16, 0.94);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  color: #fff;
  font-size: 13.5px;
  line-height: 1.45;
  box-shadow: var(--shadow-lg);
}
.cookie.is-visible { display: flex; }
.cookie button {
  flex: none;
  height: 42px;
  padding: 0 22px;
  border: 0;
  border-radius: var(--r-pill);
  background: #fff;
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.cookie button:hover { background: var(--sand-2); }

/* ---------- 19. Попап ---------- */
.t-popup { z-index: 130; }
.t-popup__container[data-popup-type="702"] {
  border-radius: var(--r-xl) !important;
  padding: clamp(26px, 3vw, 44px) !important;
  max-width: 520px;
  box-shadow: var(--shadow-lg);
}
.t702__title {
  font-family: var(--font-display) !important;
  font-size: clamp(24px, 2.6vw, 32px) !important;
  font-weight: 800 !important;
  letter-spacing: -0.03em;
  color: var(--ink) !important;
}
.t702__descr {
  margin-top: 10px !important;
  font-family: var(--font) !important;
  font-size: 15px !important;
  color: var(--text-2) !important;
}

/* ---------- 20. Мобильная нижняя панель ---------- */
.mnav {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: space-around;
  gap: 4px;
  padding: 8px 6px;
  border-radius: 20px;
  background: rgba(12, 13, 16, 0.92);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 14px 40px rgba(12, 13, 16, 0.3);
}

.mnav__item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 6px 2px;
  background: none;
  border: 0;
  color: rgba(255, 255, 255, 0.66);
  font-size: 10px;
  font-weight: 500;
  cursor: pointer;
  border-radius: 14px;
}
.mnav__item svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.mnav__item--accent { color: #fff; }
.mnav__item--accent svg { fill: currentColor; stroke: none; }
.mnav__item:hover, .mnav__item:focus-visible { color: #fff; }

/* ---------- 21. Анимация появления ---------- */
.rv {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  transition-delay: var(--d, 0ms);
}
.rv.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rv { opacity: 1; transform: none; transition: none; }
  .hero__media img { animation: none; transform: none; }
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

/* ---------- 22. Адаптив ---------- */
@media (max-width: 1100px) {
  .hdr__nav { display: none; }
  .perks__panel { grid-template-columns: repeat(2, 1fr); }
  .perk:nth-child(2) { border-right: 0; }
  .perk:nth-child(-n+2) { border-bottom: 1px solid rgba(255, 255, 255, 0.09); }
  .stats__grid { grid-template-columns: repeat(2, 1fr); }
  .quiz { grid-template-columns: 1fr; min-height: 0; }
  .quiz__media { height: 260px; }
  .quiz__media::after { background: linear-gradient(180deg, rgba(8, 9, 11, 0.2) 0%, rgba(12, 13, 16, 0.95) 92%); }
  .spaces { grid-template-columns: 1fr; }
  .foot__top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 780px) {
  .hdr { height: 66px; }
  .hdr--solid { height: 62px; }
  .hdr__logo img { height: 28px; }
  .hdr__phone { display: none; }
  .hdr__side { margin-left: auto; }

  .hero { min-height: 640px; padding-top: 104px; }
  .hero__scroll { display: none; }
  .hero__cta .btn { flex: 1 1 100%; }

  .perks { margin-top: -46px; }
  .perk { min-height: 176px; }

  .sr-form .t-form__inputsbox { grid-template-columns: 1fr; }

  .foot__top { grid-template-columns: 1fr; gap: 32px; }
  .foot { padding-bottom: 96px; }

  .mnav { display: flex; }

  .cookie { bottom: 86px; flex-direction: column; align-items: stretch; text-align: center; }
  .cookie button { width: 100%; }

  .rating { flex-wrap: wrap; }
}

@media (max-width: 480px) {
  .perks__panel { grid-template-columns: 1fr; }
  .perk { min-height: 0; border-right: 0; border-bottom: 1px solid rgba(255, 255, 255, 0.09); }
  .perk:last-child { border-bottom: 0; }
  .perk__title { margin-top: 18px; }
  .perk__num { font-size: 42px; }
  .stats__grid { grid-template-columns: 1fr 1fr; }
  .stat { padding: 16px; }
  .stat__icon { margin-bottom: 12px; }
}

/* ============================================================
   23. Правки поверх стилей Tilda (квиз и попап)
   ============================================================ */

#rec2288377081 { padding: 0 !important; opacity: 1 !important; }
#rec2288377081 .t-container,
#rec2288377081 .t-col { padding: 0 !important; margin: 0 !important; width: 100% !important; max-width: none !important; }

#rec2288377081 .t-quiz__quiz-wrapper,
#rec2288377081 .t-quiz__content-wrapper,
#rec2288377081 .t-quiz__main {
  background: transparent !important;
  box-shadow: none !important;
  border: 0 !important;
  border-radius: 0 !important;
}
#rec2288377081 .t-quiz__content-padding-container { padding: 0 !important; }
#rec2288377081 .t-quiz__quiz-wrapper_fixed-height { height: auto !important; min-height: 0 !important; }

/* прогресс */
#rec2288377081 .t-quiz__progress-bar-container { margin-bottom: clamp(22px, 2.4vw, 38px) !important; }
#rec2288377081 .t-quiz__progressbar {
  height: 4px !important;
  border-radius: var(--r-pill) !important;
  background: rgba(12, 13, 16, 0.09) !important;
  overflow: hidden;
}
#rec2288377081 .t-quiz__progress {
  background: var(--brand) !important;
  border-radius: var(--r-pill) !important;
  transition: width 0.5s var(--ease);
}

/* заголовок вопроса */
#rec2288377081 .t-input-title,
#rec2288377081 .t-quiz__contact-form__header__title {
  font-family: var(--font-display) !important;
  font-size: clamp(21px, 2.4vw, 32px) !important;
  font-weight: 800 !important;
  letter-spacing: -0.03em !important;
  line-height: 1.12 !important;
  color: var(--text) !important;
}

/* варианты ответа */
#rec2288377081 .t-radio__wrapper_button { display: grid !important; gap: 10px !important; }
#rec2288377081 .t-radio__item {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  margin: 0 !important;
  padding: 16px 18px !important;
  border-radius: var(--r-md) !important;
  background: var(--paper) !important;
  box-shadow: inset 0 0 0 1px var(--line) !important;
  font-family: var(--font) !important;
  font-size: 15.5px !important;
  font-weight: 500 !important;
  color: var(--text) !important;
  cursor: pointer;
  transition: box-shadow 0.2s var(--ease), background 0.2s var(--ease), transform 0.2s var(--ease);
}
#rec2288377081 .t-radio__item:hover { box-shadow: inset 0 0 0 1px rgba(12, 13, 16, 0.3) !important; transform: translateY(-1px); }
#rec2288377081 .t-radio__indicator {
  position: static !important;
  flex: none !important;
  width: 20px !important;
  height: 20px !important;
  margin: 0 !important;
  border-radius: 50% !important;
  border: 1.5px solid var(--line) !important;
  background: transparent !important;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}
#rec2288377081 .t-radio:checked + .t-radio__indicator {
  border-color: var(--brand) !important;
  background: radial-gradient(circle at center, #fff 0 3.5px, var(--brand) 3.6px 100%) !important;
}
#rec2288377081 .t-radio__item:has(.t-radio:checked) {
  background: rgba(211, 12, 59, 0.05) !important;
  box-shadow: inset 0 0 0 1.5px var(--brand) !important;
}

/* поля контактов внутри квиза */
#rec2288377081 .t-input,
#rec2288377081 input.t-input {
  height: 56px !important;
  padding: 0 18px !important;
  border-radius: var(--r-md) !important;
  border: 1px solid var(--line) !important;
  background: var(--paper) !important;
  font-family: var(--font) !important;
  font-size: 15.5px !important;
  color: var(--text) !important;
}
#rec2288377081 .t-input:focus { border-color: var(--ink) !important; box-shadow: 0 0 0 4px rgba(12, 13, 16, 0.07) !important; }

#rec2288377081 .t-quiz__contact-form__footer__text,
#rec2288377081 .t-quiz__contact-form__footer__text a {
  font-family: var(--font) !important;
  font-size: 12.5px !important;
  color: var(--text-2) !important;
}
#rec2288377081 .t-quiz__contact-form__footer__text a { text-decoration: underline; text-underline-offset: 2px; }

/* кнопки навигации квиза */
#rec2288377081 .t-quiz__footer-sticky,
#rec2288377081 .t-quiz__footer { background: transparent !important; box-shadow: none !important; border: 0 !important; padding: 0 !important; }
#rec2288377081 .t-quiz__footer { margin-top: clamp(22px, 2.4vw, 34px) !important; }

#rec2288377081 .t-btnflex,
#rec2288377081 .t-submit {
  height: 52px !important;
  min-height: 52px !important;
  padding: 0 26px !important;
  border: 0 !important;
  border-radius: var(--r-pill) !important;
  background: var(--brand) !important;
  background-image: none !important;
  color: #fff !important;
  font-family: var(--font) !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  letter-spacing: -0.01em !important;
  transition: background 0.2s var(--ease) !important;
}
#rec2288377081 .t-btnflex:hover,
#rec2288377081 .t-submit:hover { background: var(--brand-hi) !important; }
#rec2288377081 .t-btnflex__text { font-family: var(--font) !important; font-size: 15px !important; font-weight: 600 !important; color: inherit !important; }
#rec2288377081 .t-btnflex__icon { width: 17px !important; height: 17px !important; color: inherit !important; }

#rec2288377081 .t-quiz__btn_prev {
  width: 52px !important;
  padding: 0 !important;
  background: transparent !important;
  color: var(--text-2) !important;
  box-shadow: inset 0 0 0 1px var(--line) !important;
}
#rec2288377081 .t-quiz__btn_prev:hover { background: var(--sand) !important; color: var(--text) !important; }

#rec2288377081 .t-quiz__counter-container,
#rec2288377081 .t-quiz__counter,
#rec2288377081 .t-quiz__counter-title {
  font-family: var(--font) !important;
  font-size: 13px !important;
  color: var(--text-3) !important;
}

/* попап */
#rec2304889921 .t-popup__container { background: var(--paper) !important; }
#rec2304889921 .t702__wrapper { padding: 0 !important; }

/* ============================================================
   24. Уточнения раскладки
   ============================================================ */

/* лента планировок */
.rail__track--plans > * { flex: 0 0 clamp(240px, 23vw, 300px); display: flex; flex-direction: column; }

/* коммерческие помещения: снимок светлый — усиливаем затемнение */
.space--tall::after {
  background: linear-gradient(180deg, rgba(8, 9, 11, 0.42) 0%, rgba(8, 9, 11, 0.6) 45%, rgba(8, 9, 11, 0.93) 100%);
}

/* в узкой форме чекбокс идёт перед кнопкой */
.sr-form--stack .t-input-group_nm { order: 0; }
.sr-form--stack .t-input-group_ph { order: 1; }
.sr-form--stack .t-input-group_cb { order: 2; }
.sr-form--stack .t-form__submit { order: 3; margin-top: 4px; }
.sr-form--stack .t-form__errorbox-middle { order: 4; }

/* ============================================================
   25. Финальная шлифовка
   ============================================================ */

/* якоря не прячутся под шапкой */
section[id], main[id] { scroll-margin-top: 92px; }

/* заголовок героя на узких экранах */
.hero h1 { font-size: clamp(32px, 6.2vw, 82px); }

@media (max-width: 780px) {
  /* кнопка «Обратный звонок» уезжала за край — на мобильном её роль берёт нижняя панель */
  .hdr__side .btn { display: none; }
  .hdr__side { gap: 8px; }
  .icon-btn { width: 38px; height: 38px; }
  .icon-btn svg { width: 17px; height: 17px; }

  .hero { min-height: 620px; }
  .hero__badge { margin-bottom: 20px; }

  .sec-head .rail__nav { order: 3; }
  .rating { width: 100%; }
}

@media (max-width: 480px) {
  .rail__nav { display: none; }
  .quiz__panel { padding: 24px 20px 28px; }
  .formcard { padding: 24px 18px; }
  #rec2288377081 .t-radio__item { padding: 14px 16px !important; font-size: 15px !important; }
}

/* ссылки в чекбоксе: перебиваем наследие Tilda */
.sr-form .t-checkbox__control a,
#rec2288377081 .t-quiz__contact-form__footer__text a { color: var(--text-2) !important; }
.formcard--dark .sr-form .t-checkbox__control a { color: rgba(255, 255, 255, 0.62) !important; }
.sr-form .t-checkbox__control a:hover,
.formcard--dark .sr-form .t-checkbox__control a:hover,
#rec2288377081 .t-quiz__contact-form__footer__text a:hover { color: var(--brand) !important; }
.formcard--dark .sr-form .t-checkbox__control a:hover { color: #fff !important; }

/* ---------- поле телефона с маской: делаем единым ---------- */
.sr-form .t-input-phonemask__wrap,
#rec2288377081 .t-input-phonemask__wrap {
  display: flex !important;
  align-items: center;
  padding: 0 !important;
  overflow: hidden;
}
.sr-form .t-input-phonemask,
#rec2288377081 .t-input-phonemask {
  flex: 1;
  height: 54px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  padding-left: 4px !important;
}
.sr-form .t-input-phonemask:focus,
#rec2288377081 .t-input-phonemask:focus { box-shadow: none !important; }
.sr-form .t-input-phonemask__select,
#rec2288377081 .t-input-phonemask__select {
  height: 54px !important;
  padding-left: 16px !important;
  padding-right: 6px !important;
  border: 0 !important;
  background: transparent !important;
  cursor: pointer;
}
.sr-form .t-input-phonemask__select-code { font-size: 15.5px !important; color: inherit !important; }
.formcard--dark .sr-form .t-input-phonemask__select-code { color: #fff !important; }
.formcard--dark .sr-form .t-input-phonemask { color: #fff !important; }

/* чекбокс: рамка заметнее */
.sr-form .t-checkbox__indicator { border-color: rgba(12, 13, 16, 0.24); }

/* ============================================================
   26. Правый блок в шапке раздела (рейтинг + стрелки)
   ============================================================ */
.sec-head__aside {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

/* ============================================================
   27. Базовые стили Tilda, которых больше нет (квиз и попап)
   ============================================================ */
.t-btnflex {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  text-decoration: none;
}
.t-btnflex__icon { display: inline-flex; align-items: center; justify-content: center; flex: none; }
.t-btnflex__icon svg { width: 100%; height: 100%; }
.t-quiz-hidden { display: none !important; }

#rec2288377081 .t-quiz__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
#rec2288377081 .t-quiz__btn-wrapper { display: flex; align-items: center; gap: 10px; margin-left: auto; }
#rec2288377081 .t-quiz__screen-wrapper { display: none; }
#rec2288377081 .t-quiz__screen-wrapper.t-step-form__step_active { display: block; }
#rec2288377081 .t-quiz__contact-form__layout { display: grid; gap: clamp(20px, 2.4vw, 32px); }
#rec2288377081 .t-quiz__inputs-wrapper { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
#rec2288377081 .t-quiz__contact-form__footer { margin-top: 14px; }
#rec2288377081 .t-quiz__step__input { min-width: 0; }
#rec2288377081 .t-radio { position: absolute; opacity: 0; width: 0; height: 0; }

.t702__wrapper { display: block; }
.t702__text-wrapper { text-align: center; margin-bottom: 26px; }

@media (max-width: 600px) {
  #rec2288377081 .t-quiz__inputs-wrapper { grid-template-columns: 1fr; }
}

/* квиз: убираем прилипающий футер — высота блока теперь по содержимому */
#rec2288377081 .t-quiz__footer-sticky { position: static !important; height: auto !important; }
#rec2288377081 .t-quiz__progress-bar-container { padding-top: 4px; }

/* квиз: Tilda дублирует кнопки для мобильной вёрстки — нам хватает одного ряда */
#rec2288377081 .t-quiz__btn-wrapper_mobile { display: none !important; }

/* рейтинг и стрелки держатся справа от заголовка */
.sec-head__aside { flex: 0 0 auto; }
@media (max-width: 900px) { .sec-head__aside { width: 100%; } }

/* ============================================================
   28. Дизайн-ревизия: хронология, цифры, раскладка форм
   ============================================================ */

/* Год сдачи — структурная ось раздела: 15 домов за 16 лет */
.jk__year {
  position: absolute;
  right: 10px;
  bottom: 10px;
  padding: 5px 10px;
  border-radius: var(--r-sm);
  background: rgba(14, 19, 23, 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #fff;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.jk--live .jk__year { background: var(--brand); }

.jk__status {
  padding: 0;
  background: none;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-2);
  font-variant-numeric: tabular-nums;
}
.jk--live .jk__status { background: none; color: var(--brand-deep); font-weight: 600; }

.jk__arrow { border-radius: var(--r-sm); }
.chip { border-radius: var(--r-sm); }

/* Цифры выстраиваются в колонку — табличные всюду, где это читают как данные */
.rating__num,
.stat__value,
.perk__num,
.plan__area,
.hdr__phone,
.foot__phone,
.hero__badge b { font-variant-numeric: tabular-nums; }

/* Форма экскурсии: заголовок слева, поля справа */
.formcard--split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(24px, 3vw, 56px);
  align-items: center;
}
.form-head--left { text-align: left; margin-inline: 0; max-width: none; }
.form-head--left h2 { font-size: clamp(21px, 2vw, 27px); }
.form-head--left h2 { text-wrap: balance; }
.formcard--split .sr-form { margin-top: 0; }
.formcard--split .sr-form .t-form__inputsbox { grid-template-columns: 1fr 1fr; }
.formcard--split .t-input-group_nm { order: 0; }
.formcard--split .t-input-group_ph { order: 1; }
.formcard--split .t-input-group_cb { order: 2; grid-column: 1 / -1; }
.formcard--split .sr-form .t-form__submit { order: 3; grid-column: 1 / -1; }
.formcard--split .t-form__errorbox-middle { order: 4; }
.formcard--split .sr-form .t-submit { width: 100%; }

@media (max-width: 900px) {
  .formcard--split { grid-template-columns: 1fr; align-items: start; }
  .form-head--left { max-width: none; }
}
@media (max-width: 620px) {
  .formcard--split .sr-form .t-form__inputsbox { grid-template-columns: 1fr; }
}

/* Заголовки: воздух вокруг длинных строк */
.h2, .hero h1, .form-head h2 { text-wrap: balance; }
.sub { text-wrap: pretty; }

/* Геометрия доведена до конца: круг остаётся только у аватара отзыва */
.faq__icon,
.space__arrow,
.stat__icon,
.space__icon,
.perk__ico { border-radius: var(--r-md); }
.faq__item.is-open .faq__icon { transform: none; }
.hero__badge { border-radius: var(--r-md); }
.hero__badge b { border-radius: var(--r-sm); }
.mnav { border-radius: 12px; }
.mnav__item { border-radius: var(--r-md); }
.foot__logo { border-radius: var(--r-md); }
.cookie { border-radius: var(--r-md); }
.cookie button { border-radius: var(--r-md); }
.jk__status,
.rating { border-radius: var(--r-md); }

/* «Коммерческие помещения»: дневное фото рядом с двумя вечерними —
   кадрируем ниже и приглушаем, чтобы тройка читалась как один набор */
.space--tall img {
  object-position: 50% 72%;
  filter: brightness(0.74) saturate(0.92);
}
.space--tall::after {
  background: linear-gradient(180deg, rgba(8, 9, 11, 0.12) 0%, rgba(8, 9, 11, 0.42) 48%, rgba(8, 9, 11, 0.9) 100%);
}

/* ============================================================
   29. Правовой блок: информирование субъекта персональных данных
   ============================================================ */
.foot__legal {
  margin-top: 26px;
  padding-top: 24px;
  border-top: 1px solid var(--line-dark);
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--on-dark-3);
  max-width: 92ch;
}
.foot__legal a { color: var(--on-dark-2); text-decoration: underline; text-underline-offset: 2px; }
.foot__legal a:hover { color: #fff; }

.foot__bottom { border-top: 0; padding-top: 16px; }
.foot__docs { display: flex; flex-wrap: wrap; gap: 6px 22px; }

.cookie a { color: #fff; text-decoration: underline; text-underline-offset: 2px; }
.cookie a:hover { color: var(--brand-hi); }

/* ============================================================
   30. Фирменный логотип: цветной на светлом, выворотка на тёмном
   ============================================================ */
.hdr__logo { display: inline-flex; }
.hdr__logo img { height: 34px; width: auto; }
.hdr__logo--light { display: none; }
.hdr--over .hdr__logo--ink { display: none; }
.hdr--over .hdr__logo--light { display: block; }
.hdr--over .hdr__logo img { filter: none; }
.hdr--solid .hdr__logo img { height: 30px; }

.foot__logo {
  display: block;
  height: 34px;
  width: auto;
  padding: 0;
  background: none;
  border-radius: 0;
}

@media (max-width: 780px) {
  .hdr__logo img { height: 28px; }
}

/* ============================================================
   31. Согласия: обязательная и необязательная галочки
   ============================================================ */
.sr-form__cb-optional { margin-top: -4px; }
.sr-form__cb-optional .t-checkbox__control { color: var(--text-3); }
.formcard--dark .sr-form__cb-optional .t-checkbox__control { color: rgba(255, 255, 255, 0.34); }
.sr-form .t-input-group_cb + .sr-form__cb-optional { padding-top: 2px; }

/* ############################################################################
   СЛОЙ 2 — дизайн-ревизия
   Источник: premium-redesign.css
   Визуальный слой Codex поверх базы. Переопределяет шрифт (Onest вместо CoFo Sans),
   фирменный красный (#e3313b вместо #d30c3b) и типографику. Именно он задаёт нынешний вид.
   ############################################################################ */

/*
 * Стандарт Реалти — архитектурная дизайн-ревизия 2026
 * Только визуальный слой: порядок секций, контент, формы и интерактив не меняются.
 */

@font-face {
  font-family: "Onest";
  src: url("/fonts/Onest-Variable.ttf?v=1") format("truetype-variations");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --ink: #111111;
  --ink-2: #111111;
  --ink-3: #111111;
  --brand: #e3313b;
  --brand-hi: #e3313b;
  --brand-deep: #e3313b;
  --gold: #e3313b;
  --paper: #ffffff;
  --sand: #ffffff;
  --sand-2: #ffffff;
  --text: #111111;
  --text-2: rgba(17, 17, 17, .62);
  --text-3: rgba(17, 17, 17, .42);
  --on-dark: #ffffff;
  --on-dark-2: rgba(255, 255, 255, .68);
  --on-dark-3: rgba(255, 255, 255, .42);
  --line: rgba(17, 17, 17, 0.16);
  --line-2: rgba(17, 17, 17, 0.09);
  --line-dark: rgba(255, 255, 255, 0.18);
  --r-sm: 3px;
  --r-md: 5px;
  --r-lg: 7px;
  --r-xl: 9px;
  --shadow-sm: 0 14px 40px rgba(20, 21, 22, 0.06);
  --shadow-md: 0 24px 64px rgba(20, 21, 22, 0.1);
  --shadow-lg: 0 38px 100px rgba(20, 21, 22, 0.16);
  --container: 1440px;
  --gutter: clamp(18px, 3.4vw, 54px);
  --section-y: clamp(78px, 9vw, 144px);
  --ease: cubic-bezier(.22, 1, .36, 1);
  --dur: .5s;
  --font: "Onest", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: "Onest", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

html { background: var(--paper); }

body {
  background: #ffffff;
  color: var(--ink);
}

#allrecords { overflow: clip; }

h1, h2, h3, h4,
.jk__title,
.plan__name,
.stat__value,
.perk__num,
.rating__num,
.foot__phone {
  letter-spacing: -.055em;
}

.wrap { max-width: var(--container); }
.section { position: relative; }
.section--sand { background-color: var(--sand); }
.section--tight { padding-block: clamp(46px, 5vw, 76px); }

.eyebrow {
  color: var(--brand);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .15em;
}

.h2 {
  max-width: 13ch;
  font-size: clamp(42px, 5.6vw, 82px);
  font-weight: 500;
  line-height: .94;
}

.h3 { font-weight: 500; }

.sub {
  margin-top: 20px;
  color: var(--text-2);
  font-size: clamp(16px, 1.25vw, 19px);
  line-height: 1.48;
}

.sec-head {
  align-items: flex-end;
  margin-bottom: clamp(34px, 4vw, 62px);
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}

.sec-head__text { max-width: 980px; }

/* Кнопки */
.btn,
.sr-form .t-submit,
.sr-form button.t-submit,
#rec2288377081 .t-btnflex,
#rec2288377081 .t-submit {
  min-height: 56px;
  border-radius: var(--r-md) !important;
  font-size: 14px !important;
  font-weight: 650 !important;
  letter-spacing: -.015em !important;
  transition: transform .25s var(--ease), background-color .2s ease, color .2s ease !important;
}

.btn:hover,
.sr-form .t-submit:hover,
#rec2288377081 .t-btnflex:hover { transform: translateY(-2px); }

.btn--primary,
.sr-form .t-submit,
.sr-form button.t-submit,
#rec2288377081 .t-quiz__btn_next,
#rec2288377081 .t-quiz__btn_submit {
  background: var(--brand) !important;
  color: #fff !important;
}

.btn--primary:hover,
.sr-form .t-submit:hover,
#rec2288377081 .t-quiz__btn_next:hover,
#rec2288377081 .t-quiz__btn_submit:hover { background: var(--brand-hi) !important; }

.btn--ghost-light {
  color: var(--ink);
  background: transparent;
  box-shadow: inset 0 0 0 1px var(--line);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

.btn--ghost-light:hover {
  color: #fff;
  background: var(--ink);
  box-shadow: inset 0 0 0 1px var(--ink);
}

/* Шапка */
.hdr,
.hdr.hdr--over,
.hdr.hdr--solid {
  top: 12px;
  right: 16px;
  left: 16px;
  width: auto;
  height: 68px;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: rgba(251, 251, 248, .94);
  box-shadow: 0 12px 42px rgba(17, 18, 20, .08);
  backdrop-filter: blur(18px) saturate(120%);
  -webkit-backdrop-filter: blur(18px) saturate(120%);
}

.hdr__inner { max-width: 1456px; padding-inline: 22px; }
.hdr__logo img,
.hdr--solid .hdr__logo img { height: 30px; }
.hdr__logo--ink { display: block !important; }
.hdr__logo--light { display: none !important; }

.hdr--over .hdr__nav a,
.hdr--solid .hdr__nav a,
.hdr__nav a { color: rgba(17, 18, 20, .64); }

.hdr--over .hdr__nav a:hover,
.hdr--solid .hdr__nav a:hover,
.hdr__nav a:hover { color: var(--ink); }

.hdr--over .hdr__phone,
.hdr--solid .hdr__phone,
.hdr__phone { color: var(--ink); }

.hdr--over .icon-btn,
.hdr--solid .icon-btn,
.icon-btn {
  color: var(--ink);
  border-radius: var(--r-md);
  box-shadow: inset 0 0 0 1px var(--line);
}

.hdr--over .icon-btn:hover,
.hdr--solid .icon-btn:hover,
.icon-btn:hover { color: #fff; background: var(--ink); }

/* Первый экран — светлая архитектурная композиция */
.hero {
  width: calc(100% - 32px);
  max-width: 1560px;
  min-height: min(790px, calc(100vh - 110px));
  min-height: min(790px, calc(100svh - 110px));
  margin: 96px auto 0;
  padding: clamp(112px, 10vw, 156px) 0 clamp(62px, 7vw, 92px);
  align-items: center;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--sand);
}

.hero::before {
  content: "01";
  position: absolute;
  left: clamp(24px, 3.6vw, 58px);
  bottom: 22px;
  color: rgba(17, 18, 20, .14);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .16em;
}

.hero__media {
  z-index: 0;
  top: 24px;
  right: 24px;
  bottom: 24px;
  left: 52%;
  overflow: hidden;
  border-radius: var(--r-md);
}

.hero__media img {
  transform: none;
  animation: none;
  filter: saturate(.86) contrast(1.03);
  object-position: 58% 60%;
  transition: transform 1.2s var(--ease);
}

.hero:hover .hero__media img { transform: scale(1.025); }

.hero__scrim {
  z-index: 1;
  top: 24px;
  right: 24px;
  bottom: 24px;
  left: 52%;
  border-radius: var(--r-md);
  background: linear-gradient(180deg, rgba(17, 18, 20, .02) 48%, rgba(17, 18, 20, .42) 100%);
  pointer-events: none;
}

.hero__inner { position: relative; z-index: 2; }

.hero__copy {
  width: 48%;
  max-width: 680px;
  color: var(--ink);
}

.hero__badge {
  display: inline-flex;
  margin-bottom: 30px;
  padding: 0;
  color: var(--text-2);
  border: 0;
  background: transparent;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  font-size: 12px;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.hero__badge::before {
  content: "";
  width: 34px;
  height: 1px;
  margin-right: 13px;
  background: var(--brand);
}

.hero__badge b {
  margin: 0 7px 0 0;
  padding: 0;
  color: var(--brand);
  background: transparent;
}

.hero h1 {
  max-width: 9.4ch;
  color: var(--ink);
  font-size: clamp(48px, 6vw, 88px);
  font-weight: 500;
  line-height: .92;
  letter-spacing: -.065em;
}

.hero__sub {
  max-width: 34ch;
  margin-top: 28px;
  color: var(--text-2);
  font-size: clamp(17px, 1.35vw, 21px);
  line-height: 1.4;
}

.hero__cta { margin-top: 36px; }
.hero__cta .btn { min-width: 196px; }

.hero__scroll {
  z-index: 3;
  right: 48px;
  bottom: 48px;
  color: rgba(255, 255, 255, .88);
}
.hero__scroll i { background: rgba(255, 255, 255, .9); }

/* Преимущества — сразу после обещания */
.perks {
  max-width: var(--container);
  margin-top: 22px;
}

.perks__panel {
  gap: 0;
  overflow: hidden;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--paper);
  box-shadow: none;
}

.perk {
  min-height: 238px;
  padding: 26px;
  color: var(--ink);
  border-right-color: var(--line-2);
  background: transparent;
  transition: background .25s ease, color .25s ease;
}

.perk:hover { color: #fff; background: #111111; }

.perk__label {
  color: var(--brand);
  font-size: 10px;
  font-weight: 650;
  line-height: 1.2;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.perk__num {
  margin-top: 18px;
  color: var(--brand);
  font-size: clamp(46px, 4.6vw, 68px);
  font-weight: 350;
  font-variant-numeric: tabular-nums;
  line-height: .9;
  letter-spacing: -.065em;
}

.perk__body {
  min-height: 88px;
  margin-top: auto;
  display: grid;
  grid-template-rows: 2.3em minmax(2.8em, auto);
  align-content: start;
}
.perk__title {
  margin: 0;
  color: inherit;
  font-size: clamp(18px, 1.5vw, 23px);
  font-weight: 550;
  line-height: 1.15;
}
.perk__note { margin-top: 7px; color: var(--text-2); line-height: 1.4; }
.perk:hover .perk__note { color: rgba(255,255,255,.72); }
.perk:hover .perk__label { color: var(--brand); }
.perk:hover .perk__num { color: #fff; }

.perk--stat {
  color: #fff;
  background: #111111;
}
.perk--stat .perk__note { color: rgba(255,255,255,.58); }
.perk--stat:hover { background: var(--brand); }
.perk--stat:hover .perk__label,
.perk--stat:hover .perk__num { color: #fff; }

/* Горизонтальные каталоги */
.rail { overflow: visible; }
.rail__track { gap: 18px; padding-bottom: 16px; }
.rail__track > .jk { flex: 0 0 clamp(330px, 32vw, 468px); }

.rail__btn {
  width: 52px;
  height: 52px;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: transparent;
  box-shadow: none;
}
.rail__btn:hover:not(:disabled) { color: #fff; background: var(--ink); border-color: var(--ink); }

.jk {
  overflow: hidden;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--paper);
  box-shadow: none;
  transition: transform .42s var(--ease), box-shadow .42s var(--ease);
}
.jk:hover { transform: translateY(-8px); box-shadow: var(--shadow-md); }

.jk__media { aspect-ratio: 4 / 3; }
.jk__media img { filter: saturate(.88) contrast(1.02); }
.jk:hover .jk__media img { transform: scale(1.035); }

.jk__chips { top: 14px; left: 14px; }
.chip {
  color: var(--ink);
  border: 1px solid rgba(17,18,20,.08);
  border-radius: var(--r-sm);
  background: rgba(251,251,248,.9);
  box-shadow: none;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.jk__year {
  right: 14px;
  bottom: 14px;
  padding: 7px 10px;
  color: #fff;
  border-radius: var(--r-sm);
  background: var(--ink);
  font-size: 15px;
  font-weight: 650;
}
.jk--live .jk__year { background: var(--brand); }

.jk__body { padding: 24px 24px 22px; }
.jk__title { font-size: clamp(23px, 2vw, 31px); font-weight: 520; }
.jk__addr { margin-top: 11px; color: var(--text-2); }
.jk__foot { margin-top: 28px; padding-top: 15px; border-top: 1px solid var(--line-2); }
.jk__status { color: var(--text-2); }
.jk--live .jk__status { color: var(--brand-deep); }
.jk__arrow { color: var(--ink); border: 1px solid var(--line); border-radius: var(--r-md); background: transparent; }
.jk:hover .jk__arrow { color: #fff; background: var(--brand); border-color: var(--brand); }

/* Опрос — главный конверсионный блок */
#quiz {
  background:
    linear-gradient(rgba(17,18,20,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(17,18,20,.035) 1px, transparent 1px),
    var(--sand);
  background-size: 48px 48px;
}

.quiz-host {
  padding: 10px;
  border: 1px solid var(--brand);
  border-radius: var(--r-lg);
  background: var(--brand);
}

.quiz {
  min-height: 650px;
  grid-template-columns: 1.12fr .88fr;
  overflow: hidden;
  border-radius: var(--r-md);
  background: var(--paper);
  box-shadow: none;
}

.quiz__media { min-height: 650px; }
.quiz__media img { filter: saturate(.82) contrast(1.04); }
.quiz__media::after { background: linear-gradient(180deg, rgba(17,18,20,.03), rgba(17,18,20,.34)); }

.quiz__panel {
  padding: clamp(40px, 5vw, 78px);
  color: var(--ink);
  background: var(--paper);
}

.quiz__title {
  max-width: 9ch;
  color: var(--ink);
  font-size: clamp(39px, 4.7vw, 70px);
  font-weight: 500;
  line-height: .94;
  letter-spacing: -.06em;
}
.quiz__title span { color: var(--brand); }
.quiz__sub { margin-top: 24px; color: var(--text-2); font-size: 17px; }
.quiz__list { color: var(--ink); }
.quiz__list li { color: var(--ink); }
.quiz__list i { color: var(--brand); background: transparent; }
.quiz__rule { background: var(--line); }
.quiz__offer { color: var(--text-2); }
.quiz__offer b { color: var(--brand); }
.quiz__start { align-self: flex-start; }

.quiz-form {
  padding: clamp(28px, 5vw, 70px);
  border-radius: var(--r-md);
  background: var(--paper);
}

#rec2288377081 .t-input-title,
#rec2288377081 .t-quiz__contact-form__header__title {
  font-size: clamp(28px, 3.6vw, 52px) !important;
  font-weight: 520 !important;
  letter-spacing: -.05em !important;
}

#rec2288377081 .t-radio__wrapper_button {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 12px !important;
}

#rec2288377081 .t-radio__item {
  min-height: 72px;
  border-radius: var(--r-md) !important;
  background: var(--sand) !important;
  box-shadow: inset 0 0 0 1px var(--line-2) !important;
}

#rec2288377081 .t-radio__item:has(.t-radio:checked) {
  background: rgba(227,49,59,.08) !important;
  box-shadow: inset 0 0 0 1px var(--brand) !important;
}

#rec2288377081 .t-quiz__contact-form {
  width: 100% !important;
  max-width: none !important;
  box-sizing: border-box;
}

#rec2288377081 .t-quiz__quiz-form-wrapper {
  grid-template-columns: minmax(0, 1fr) !important;
  gap: 0 !important;
}

#rec2288377081 .t-quiz__quiz-form-wrapper > .t-step-form__step {
  grid-column: 1 / -1;
  width: 100% !important;
}

#rec2288377081 .t-quiz__contact-form__layout {
  display: grid !important;
  grid-template-columns: minmax(260px, .78fr) minmax(0, 1.22fr) !important;
  gap: clamp(32px, 5vw, 72px) !important;
  width: 100% !important;
}

#rec2288377081 .t-quiz__contact-form__header,
#rec2288377081 .t-quiz__contact-form__main {
  width: 100% !important;
  min-width: 0;
}

#rec2288377081 .t-quiz__inputs-wrapper {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 12px !important;
  width: 100% !important;
}

#rec2288377081 .quiz-consents {
  display: grid !important;
  gap: 10px;
  width: 100%;
  margin-top: 18px;
  text-align: left;
}

#rec2288377081 .quiz-consents .t-input-group {
  width: 100%;
  margin: 0;
  padding: 0;
}

#rec2288377081 .quiz-consents .t-checkbox__control {
  color: var(--text-2);
  font-size: 12.5px;
  line-height: 1.45;
}

#rec2288377081 .quiz-consents .sr-form__cb-optional .t-checkbox__control {
  color: var(--text-3);
}

#rec2288377081 .quiz-consents a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

#rec2288377081 .quiz-consents a:hover { color: var(--brand); }

/* Статистика — единственная сильная цветовая плоскость */
.stats {
  min-height: 620px;
  padding: clamp(44px, 6vw, 86px);
  overflow: hidden;
  color: #fff;
  border-radius: var(--r-lg);
  background: var(--brand);
}

.stats::after {
  content: "";
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  inset: 0;
  z-index: 0;
  background: linear-gradient(100deg, rgba(157,14,27,.94) 0%, rgba(227,49,59,.84) 46%, rgba(227,49,59,.45) 100%);
}

.stats__bg {
  opacity: .48;
  filter: grayscale(1) contrast(1.1);
  mix-blend-mode: multiply;
}

.stats__head,
.stats__grid { position: relative; z-index: 1; }
.stats__head { max-width: 620px; }
.stats__head h2 { font-size: clamp(50px, 6.2vw, 90px); font-weight: 500; line-height: .9; }
.stats .sub { color: rgba(255,255,255,.76); }
.stats__grid { margin-top: auto; }

.stat {
  padding: 22px 22px 0 0;
  border-top: 1px solid rgba(255,255,255,.38);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
.stat:hover { transform: none; background: transparent; }
.stat__icon { display: none; }
.stat__value { font-size: clamp(27px, 2.8vw, 41px); font-weight: 500; }
.stat__label { color: rgba(255,255,255,.68); }

/* Формы */
.formcard {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--paper);
  box-shadow: none;
}

.formcard--split {
  position: relative;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  padding: clamp(34px, 5vw, 72px);
}

.formcard--split::before {
  content: "Консультация";
  position: absolute;
  top: 18px;
  left: 20px;
  color: var(--brand);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.form-head--left h2 { max-width: 18ch; font-size: clamp(30px, 3.2vw, 48px); font-weight: 500; line-height: 1.02; }

.sr-form .t-input,
.sr-form input.t-input,
#rec2288377081 .t-input,
#rec2288377081 input.t-input {
  height: 60px !important;
  border: 1px solid var(--line) !important;
  border-radius: var(--r-md) !important;
  background: var(--paper) !important;
}

.sr-form .t-input:focus,
#rec2288377081 .t-input:focus {
  border-color: var(--brand) !important;
  box-shadow: 0 0 0 3px rgba(227,49,59,.1) !important;
}

.sr-form .t-checkbox__indicator { border-radius: 2px; }

/* Планировки */
#plans {
  background:
    linear-gradient(rgba(17,18,20,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(17,18,20,.035) 1px, transparent 1px),
    var(--sand);
  background-size: 48px 48px;
}

.rail__track--plans > * { flex-basis: clamp(270px, 26vw, 380px); }

.plan {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--paper);
  box-shadow: none;
}
.plan:hover { transform: translateY(-7px); box-shadow: var(--shadow-md); }
.plan__media {
  display: grid;
  place-items: stretch;
  background:
    linear-gradient(rgba(255,255,255,.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.055) 1px, transparent 1px),
    #111111;
  background-size: 48px 48px;
}
.plan__placeholder {
  width: 100%;
  height: 100%;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #ffffff;
}
.plan__placeholder b {
  color: #e3313b;
  font-size: clamp(62px, 7vw, 96px);
  font-weight: 330;
  line-height: .9;
  letter-spacing: -.065em;
}
.plan__placeholder small {
  color: rgba(255,255,255,.58);
  font-size: 10px;
  font-weight: 600;
  line-height: 1.45;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.plan__tag { border: 1px solid var(--line-2); border-radius: var(--r-sm); box-shadow: none; }
.plan__foot { padding: 22px; border-top: 1px solid var(--line-2); }
.plan__name { font-size: 20px; font-weight: 520; }

/* Дополнительные пространства */
.spaces { gap: 18px; }
.spaces__col { gap: 18px; }
.space {
  min-height: 310px;
  padding: 30px;
  border-radius: var(--r-lg);
  box-shadow: none;
}
.space--tall { min-height: 638px; }
.space:hover { box-shadow: var(--shadow-lg); }
.space__icon { border: 1px solid rgba(255,255,255,.32); border-radius: var(--r-md); background: transparent; }
.space__title { font-size: clamp(26px, 2.4vw, 36px); font-weight: 520; }
.space__arrow { border-radius: var(--r-md); }

/* FAQ */
#faq { background: var(--paper); }
.faq { border-top-color: var(--line); }
.faq__q {
  min-height: 92px;
  padding-block: 22px;
  font-size: clamp(20px, 2vw, 29px);
  font-weight: 500;
}
.faq__icon { border-radius: var(--r-md); }
.faq__item.is-open .faq__icon { background: var(--brand); }
.faq__a p { font-size: 17px; }

/* Отзывы */
#reviews { background: var(--sand); }
.rating,
.review {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--paper);
  box-shadow: none;
}
.rating { padding: 22px 26px; }
.review { min-height: 300px; padding: 28px; }
.review:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.review__text { color: var(--ink); font-size: 15.5px; }
.review__ava { border-radius: var(--r-md); background: var(--brand); color: #fff; }

/* Финальный контакт */
#contact {
  padding-top: 24px;
  padding-bottom: 24px;
  background: var(--sand);
}

#contact .formcard--dark {
  min-height: 560px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(42px, 7vw, 104px);
  border: 0;
  border-radius: var(--r-lg);
  background:
    radial-gradient(circle at 84% 18%, rgba(227,49,59,.55), transparent 28%),
    var(--ink);
}

#contact .form-head { max-width: 820px; }
#contact .form-head h2 { font-size: clamp(46px, 6vw, 86px); font-weight: 500; line-height: .92; }
#contact .sub { color: rgba(255,255,255,.62); }
#contact .sr-form { width: min(940px, 100%); margin-inline: auto; }

.formcard--dark .sr-form .t-input,
.formcard--dark .sr-form input.t-input {
  color: #fff !important;
  border-color: rgba(255,255,255,.24) !important;
  background: rgba(255,255,255,.07) !important;
}

.formcard--dark .sr-form .t-checkbox__control,
.formcard--dark .sr-form .t-checkbox__control a {
  color: rgba(255,255,255,.66) !important;
}

/* Подвал и сервисные элементы */
.foot {
  color: #fff;
  background: var(--brand);
}
.foot__top { border-bottom-color: rgba(255,255,255,.24); }
.foot__list a, .foot__list span { color: rgba(255,255,255,.84); }
.foot__ttl, .foot__bottom, .foot__legal { color: rgba(255,255,255,.62); }
.foot__legal { border-top-color: rgba(255,255,255,.22); }
.foot__legal a { color: rgba(255,255,255,.84); }

.cookie {
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--r-md);
  background: rgba(17,18,20,.96);
}
.cookie button { border-radius: var(--r-md); }

.t-popup__container[data-popup-type="702"] { border-radius: var(--r-lg) !important; }

.mnav {
  bottom: max(12px, env(safe-area-inset-bottom));
  padding: 7px 6px;
  border: 1px solid rgba(255,255,255,.26);
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(43,44,48,.72), rgba(14,15,18,.66));
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  backdrop-filter: blur(28px) saturate(180%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.22),
    inset 0 -1px 0 rgba(255,255,255,.06),
    0 14px 42px rgba(0,0,0,.34);
}
.mnav__item {
  min-height: 55px;
  border-radius: 16px;
  color: rgba(255,255,255,.72);
  transition: color .2s ease, background .2s ease, transform .2s ease;
}
.mnav__item:hover,
.mnav__item:focus-visible {
  color: #fff;
  background: rgba(255,255,255,.1);
}
.mnav__item:active { transform: scale(.96); }
.mnav__item--accent {
  color: #fff;
  background: linear-gradient(180deg, rgba(242,58,68,.96), rgba(211,30,42,.92));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.26),
    0 7px 18px rgba(227,49,59,.28);
}
.mnav__item--accent:hover,
.mnav__item--accent:focus-visible {
  background: linear-gradient(180deg, #f23a44, #d31e2a);
}

/* Адаптив */
@media (max-width: 1180px) {
  .hero__media, .hero__scrim { left: 55%; }
  .hero__copy { width: 51%; }
  .hdr__nav { display: none; }
  .perk { min-height: 190px; }
  .quiz { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .hdr,
  .hdr.hdr--over,
  .hdr.hdr--solid {
    top: 8px;
    right: 8px;
    left: 8px;
    height: 62px;
  }

  .hero {
    display: block;
    width: calc(100% - 16px);
    min-height: 820px;
    margin-top: 78px;
    padding: 480px 0 54px;
  }

  .hero__media,
  .hero__scrim {
    top: 8px;
    right: 8px;
    bottom: auto;
    left: 8px;
    height: 440px;
  }

  .hero__copy { width: 100%; max-width: 720px; }
  .hero__inner { padding-inline: 30px; }
  .hero h1 { max-width: 11ch; }
  .hero__scroll { display: none; }

  .perks__panel { grid-template-columns: repeat(2, 1fr); }
  .perk:nth-child(2) { border-right: 0; }
  .perk:nth-child(-n+2) { border-bottom: 1px solid var(--line-2); }

  .quiz { min-height: 0; grid-template-columns: 1fr; }
  .quiz__media { min-height: 360px; height: 360px; }
  .quiz__panel { min-height: 0; }

  .stats { min-height: 700px; }
  .stats__grid { grid-template-columns: repeat(2, 1fr); gap: 26px; }
  .formcard--split { grid-template-columns: 1fr; }
}

@media (max-width: 780px) {
  :root { --section-y: 80px; }

  body { background-size: 48px 48px; }
  .hdr__inner { padding-inline: 14px; }
  .hdr__logo img, .hdr--solid .hdr__logo img { height: 25px; }
  .hdr__phone { display: none; }

  .hero { min-height: 760px; padding-top: 390px; }
  .hero__media, .hero__scrim { height: 350px; }
  .hero__inner { padding-inline: 22px; }
  .hero__badge { margin-bottom: 20px; font-size: 10px; }
  .hero h1 { font-size: clamp(42px, 12.2vw, 65px); }
  .hero__sub { margin-top: 20px; }
  .hero__cta { margin-top: 26px; }
  .hero__cta .btn { flex: 1 1 calc(50% - 6px); min-width: 0; }

  .h2 { font-size: clamp(40px, 12vw, 64px); }
  .sec-head { padding-bottom: 18px; }

  .perks { margin-top: 12px; }
  .perk { min-height: 170px; padding: 20px; }
  .perk__title { font-size: 18px; }

  .rail__track > .jk { flex-basis: min(84vw, 370px); }
  .jk__body { padding: 20px; }

  .quiz-host { padding: 6px; }
  .quiz__media { height: 290px; min-height: 290px; }
  .quiz__panel { padding: 30px 24px 34px; }
  .quiz__title { max-width: 10ch; font-size: 44px; }
  .quiz-form { padding: 28px 18px; }
  #rec2288377081 .t-radio__wrapper_button { grid-template-columns: 1fr !important; }
  #rec2288377081 .t-quiz__contact-form { padding: 30px 20px 36px !important; }
  #rec2288377081 .t-quiz__contact-form__layout { grid-template-columns: 1fr !important; gap: 24px !important; }
  #rec2288377081 .t-quiz__inputs-wrapper { grid-template-columns: 1fr !important; }

  .stats { min-height: 680px; padding: 34px 24px; }
  .stats__head h2 { font-size: 54px; }
  .stats__grid { margin-top: 60px; }

  .formcard--split { padding: 54px 22px 28px; }
  .form-head--left h2 { font-size: 32px; }

  .rail__track--plans > * { flex-basis: min(82vw, 330px); }
  .spaces { grid-template-columns: 1fr; }
  .space, .space--tall { min-height: 360px; }

  #contact .formcard--dark { min-height: 590px; padding: 42px 20px; }
  #contact .form-head h2 { font-size: 48px; }
}

/* Галерея ЖК — чёрно-белая оболочка с красным целевым действием */
body.project-modal-open { overflow: hidden; }

.project-modal {
  position: fixed;
  top: 0; right: 0; bottom: 0; left: 0;
  inset: 0;
  z-index: 5000;
  display: grid;
  place-items: center;
  padding: 28px;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity .28s ease, visibility .28s ease;
}

.project-modal.is-open {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}

.project-modal__backdrop {
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  inset: 0;
  background: rgba(8,9,11,.78);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.project-modal__dialog {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(310px, 370px);
  width: min(1440px, 96vw);
  height: min(860px, 90vh);
  overflow: hidden;
  color: #fff;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 22px;
  background: #111214;
  box-shadow: 0 34px 100px rgba(0,0,0,.45);
}

.project-modal__close {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 8;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 50%;
  background: rgba(17,18,20,.72);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  cursor: pointer;
}

.project-modal__close span {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 18px;
  height: 1px;
  background: #fff;
}
.project-modal__close span:first-child { transform: translate(-50%,-50%) rotate(45deg); }
.project-modal__close span:last-child { transform: translate(-50%,-50%) rotate(-45deg); }

.project-modal__gallery {
  min-width: 0;
  min-height: 0;
  display: grid;
  grid-template-rows: minmax(0, 1fr) 104px;
  background: #090a0c;
}

.project-modal__stage {
  position: relative;
  min-height: 0;
  overflow: hidden;
  background:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px),
    #090a0c;
  background-size: 48px 48px;
}

.project-modal__slide {
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  inset: 0;
  margin: 0;
  display: grid;
  place-items: center;
  opacity: 0;
  visibility: hidden;
  transform: scale(.985);
  transition: opacity .35s ease, transform .45s ease, visibility .35s ease;
}

.project-modal__slide.is-active {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
}

.project-modal__slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.project-modal__slide figcaption {
  position: absolute;
  left: 20px;
  bottom: 18px;
  padding: 8px 11px;
  color: rgba(255,255,255,.86);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 8px;
  background: rgba(17,18,20,.68);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  font-size: 12px;
}

.project-modal__nav {
  position: absolute;
  top: 50%;
  z-index: 4;
  width: 50px;
  height: 50px;
  padding: 0;
  color: #fff;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 50%;
  background: rgba(17,18,20,.66);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  transform: translateY(-50%);
  cursor: pointer;
}
.project-modal__nav--prev { left: 18px; }
.project-modal__nav--next { right: 18px; }
.project-modal__nav svg { width: 19px; height: 19px; fill: none; stroke: currentColor; }

.project-modal__counter {
  position: absolute;
  right: 20px;
  bottom: 20px;
  z-index: 4;
  color: rgba(255,255,255,.72);
  font-size: 12px;
  letter-spacing: .1em;
}

.project-modal__thumbs {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 12px;
  border-top: 1px solid rgba(255,255,255,.1);
  scrollbar-width: none;
}
.project-modal__thumbs::-webkit-scrollbar { display: none; }

.project-modal__thumb {
  flex: 0 0 126px;
  height: 78px;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 9px;
  background: #111214;
  opacity: .52;
  cursor: pointer;
  transition: opacity .2s ease, border-color .2s ease;
}
.project-modal__thumb.is-active { opacity: 1; border-color: var(--brand); }
.project-modal__thumb img { width: 100%; height: 100%; object-fit: cover; }

.project-modal__info {
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding: 48px 34px 34px;
  background:
    radial-gradient(circle at 100% 0, rgba(227,49,59,.16), transparent 34%),
    #111214;
}

.project-modal__eyebrow {
  color: var(--brand);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.project-modal__info h2 {
  margin-top: 20px;
  font-size: clamp(38px, 4vw, 62px);
  font-weight: 400;
  line-height: .95;
  letter-spacing: -.055em;
}

.project-modal__info > p {
  margin-top: 24px;
  color: rgba(255,255,255,.58);
  font-size: 14px;
  line-height: 1.55;
}

.project-modal__facts { margin: 30px 0 0; }
.project-modal__facts div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 0;
  border-top: 1px solid rgba(255,255,255,.12);
}
.project-modal__facts dt { color: rgba(255,255,255,.48); font-size: 12px; }
.project-modal__facts dd { margin: 0; color: #fff; font-size: 13px; text-align: right; }

.project-modal__actions { margin-top: auto; display: grid; gap: 12px; }
.project-modal__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 58px;
  padding: 14px 20px;
  color: #fff;
  border-radius: 12px;
  background: var(--brand);
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
  transition: background .2s ease, transform .2s ease;
}
.project-modal__cta:hover { color: #fff; background: var(--brand-deep); transform: translateY(-2px); }
.project-modal__phone { color: rgba(255,255,255,.7); font-size: 14px; text-align: center; text-decoration: none; }
.project-modal__phone:hover { color: #fff; }

@media (max-width: 780px) {
  .project-modal { padding: 0; }
  .project-modal__dialog {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(0, 62vh) auto;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    max-height: none;
    overflow-y: auto;
    border: 0;
    border-radius: 0;
  }
  .project-modal__gallery { grid-template-rows: minmax(0, 1fr) 82px; }
  .project-modal__thumbs { padding: 9px; }
  .project-modal__thumb { flex-basis: 98px; height: 62px; }
  .project-modal__nav { width: 44px; height: 44px; }
  .project-modal__nav--prev { left: 10px; }
  .project-modal__nav--next { right: 10px; }
  .project-modal__slide figcaption { left: 12px; bottom: 12px; }
  .project-modal__counter { right: 14px; bottom: 14px; }
  .project-modal__info { min-height: 38vh; padding: 28px 20px 28px; }
  .project-modal__info h2 { margin-top: 12px; font-size: 40px; }
  .project-modal__info > p { margin-top: 16px; }
  .project-modal__facts { margin-top: 20px; }
  .project-modal__actions { margin-top: 22px; }
}

@media (max-width: 520px) {
  .hero { min-height: 650px; padding-top: 268px; }
  .hero__media, .hero__scrim { height: 230px; }
  .hero__media img { object-position: 62% 58%; }
  .hero h1 { font-size: clamp(39px, 10.8vw, 48px); }
  .hero__sub { margin-top: 16px; font-size: 16px; }
  .hero__cta { margin-top: 20px; }
  .hero__cta { flex-direction: column; }
  .hero__cta .btn { width: 100%; }

  .perks__panel { grid-template-columns: 1fr; }
  .perk,
  .perk:nth-child(n) {
    display: grid;
    grid-template-columns: 98px minmax(0, 1fr);
    gap: 18px;
    min-height: 0;
    padding: 22px 20px;
    border-right: 0;
    border-bottom: 1px solid var(--line-2);
  }
  .perk:last-child { border-bottom: 0; }
  .perk__label { grid-column: 1; padding-top: 3px; }
  .perk__body {
    grid-column: 2;
    min-height: 0;
    margin-top: 0;
    display: block;
  }
  .perk__title { font-size: 20px; line-height: 1.12; }
  .perk__note { margin-top: 7px; font-size: 13px; }
  .perk--stat { grid-template-rows: auto auto; }
  .perk--stat .perk__num {
    grid-column: 1;
    grid-row: 2;
    margin-top: 12px;
    font-size: 46px;
  }
  .perk--stat .perk__body {
    grid-column: 2;
    grid-row: 1 / span 2;
    align-self: center;
  }

  .stats__grid { gap: 20px 14px; }
  .stat { padding-right: 8px; }
  .stat__value { font-size: 26px; }

  .faq__q { min-height: 78px; font-size: 20px; }
  .faq__icon { width: 36px; height: 36px; }

  .review { min-height: 280px; }
}

@media (prefers-reduced-motion: reduce) {
  .hero__media img,
  .jk,
  .plan,
  .review { transition: none !important; }
}

/* ========================================================================== */
/* Режим без рекламных фотографий и рендеров                                  */
/* Логотипы и схемы планировок остаются: они несут продуктовую информацию.     */
/* ========================================================================== */

.hero__media,
.hero__scrim,
.quiz__media,
.stats__bg,
.space img { display: none !important; }

/* Первый экран становится типографическим, без декоративной фотографии. */
.hero {
  align-items: center;
  background:
    linear-gradient(rgba(17,18,20,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(17,18,20,.04) 1px, transparent 1px),
    var(--sand);
  background-size: 64px 64px;
}

.hero::after {
  content: "";
  position: absolute;
  z-index: 0;
  top: 24px;
  right: 24px;
  bottom: 24px;
  width: 34%;
  border-radius: var(--r-md);
  background:
    linear-gradient(145deg, rgba(255,255,255,.12), transparent 46%),
    var(--brand);
}

.hero__copy { width: 66%; max-width: 860px; }
.hero h1 { max-width: 10.5ch; }
.hero__scroll { color: rgba(255,255,255,.88); }

/* Каталог домов: вместо рендера — строгая карточка с годом и типографикой. */
.jk__media {
  display: grid;
  min-height: 210px;
  aspect-ratio: auto;
  place-items: center;
  overflow: hidden;
  background:
    linear-gradient(rgba(17,18,20,.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(17,18,20,.055) 1px, transparent 1px),
    var(--sand);
  background-size: 40px 40px;
}

.jk__media img,
.jk__chips { display: none !important; }

.jk__media::before {
  content: "Стандарт Реалти";
  position: absolute;
  top: 18px;
  left: 18px;
  color: var(--text-3);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.jk__year,
.jk--live .jk__year {
  position: static;
  padding: 0;
  color: var(--ink);
  border-radius: 0;
  background: transparent;
  font-size: clamp(62px, 7vw, 96px);
  font-weight: 500;
  letter-spacing: -.07em;
}

.jk--live .jk__media {
  color: #fff;
  background:
    linear-gradient(rgba(255,255,255,.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.1) 1px, transparent 1px),
    var(--ink);
  background-size: 40px 40px;
}
.jk--live .jk__media::before { color: rgba(255,255,255,.52); }
.jk--live .jk__year { color: #fff; }

/* Карточки ЖК с утверждёнными рендерами. */
.jk--legend .jk__media,
.jk--orientir1 .jk__media,
.jk--orientir2 .jk__media,
.jk--premium .jk__media,
.jk--kavkazsky2 .jk__media {
  display: block;
  background: var(--ink);
}

.jk--legend .jk__media img,
.jk--orientir1 .jk__media img,
.jk--orientir2 .jk__media img,
.jk--premium .jk__media img,
.jk--kavkazsky2 .jk__media img {
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  inset: 0;
  display: block !important;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 49%;
  filter: none;
}

.jk--legend .jk__media::before,
.jk--orientir1 .jk__media::before,
.jk--orientir2 .jk__media::before,
.jk--premium .jk__media::before,
.jk--kavkazsky2 .jk__media::before {
  display: none;
}

.jk--legend .jk__media::after,
.jk--orientir1 .jk__media::after,
.jk--orientir2 .jk__media::after,
.jk--premium .jk__media::after,
.jk--kavkazsky2 .jk__media::after {
  content: "";
  position: absolute;
  top: 45%; right: 0; bottom: 0; left: 0;
  inset: 45% 0 0;
  z-index: 1;
  background: linear-gradient(180deg, transparent, rgba(17,18,20,.42));
  pointer-events: none;
}

.jk--legend .jk__year,
.jk--orientir1 .jk__year,
.jk--orientir2 .jk__year,
.jk--premium .jk__year,
.jk--kavkazsky2 .jk__year {
  position: absolute;
  right: 14px;
  bottom: 14px;
  z-index: 2;
  padding: 7px 10px;
  color: #fff;
  border: 1px solid rgba(255,255,255,.24);
  border-radius: 8px;
  background: rgba(17,18,20,.62);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font-size: 13px;
  font-weight: 650;
  letter-spacing: .04em;
}

/* Квиз сохраняет оффер, но больше не зависит от фонового рендера. */
.quiz { min-height: 0; grid-template-columns: 1fr; }
.quiz__panel {
  min-height: 620px;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, .9fr);
  grid-template-rows: auto auto 1fr auto;
  column-gap: clamp(34px, 6vw, 96px);
  align-items: start;
}
.quiz__title { grid-column: 1; grid-row: 1 / 5; align-self: center; max-width: 10ch; }
.quiz__sub { grid-column: 2; grid-row: 1; }
.quiz__list { grid-column: 2; grid-row: 2; }
.quiz__rule { grid-column: 2; grid-row: 3; align-self: end; }
.quiz__offer { grid-column: 2; grid-row: 4; }
.quiz__start { grid-column: 2; grid-row: 5; }

/* Цветной блок доказательств остаётся, но без фоновой картинки здания. */
.stats > .stats__bg {
  display: block !important;
  opacity: .62;
  filter: grayscale(1) contrast(1.08);
  mix-blend-mode: normal;
}

.stats::after {
  background:
    linear-gradient(rgba(255,255,255,.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px),
    linear-gradient(110deg, rgba(120,8,18,.94), rgba(227,49,59,.62));
  background-size: 64px 64px, 64px 64px, auto;
}

/* Паркинг, кладовые и коммерция — информационные цветовые карточки. */
.space {
  color: var(--ink);
  border: 1px solid var(--line);
  background: var(--sand);
}
.space::after { display: none; }
.space:nth-child(odd) { color: #fff; border-color: var(--ink); background: var(--ink); }
.spaces__col .space:nth-child(even) { color: #fff; border-color: var(--brand); background: var(--brand); }
.space__icon { border-color: currentColor; background: transparent; }
.space__icon svg { stroke: currentColor; }
.space__text { color: currentColor; opacity: .68; }
.space__arrow { color: inherit; border: 1px solid currentColor; background: transparent; }

/* Для ключевых преимуществ показываем реальные визуализации, сохраняя контраст. */
.space--commercial,
.space--parking,
.space--storage {
  color: #fff;
  border-color: var(--ink);
  background: var(--ink);
}

.space--commercial img,
.space--parking img,
.space--storage img {
  display: block !important;
  z-index: 0;
  object-position: center;
}

.space--parking img { object-position: center 54%; }

.space--commercial::after,
.space--parking::after,
.space--storage::after {
  display: block;
  z-index: 1;
  background: linear-gradient(105deg, rgba(10,11,13,.86) 0%, rgba(10,11,13,.50) 58%, rgba(10,11,13,.18) 100%);
}

.space--commercial > span,
.space--parking > span,
.space--storage > span {
  position: relative;
  z-index: 2;
}

/* Стрелка остаётся отдельной кнопкой в углу, а не частью текстового потока. */
.space--commercial > .space__arrow,
.space--parking > .space__arrow,
.space--storage > .space__arrow {
  position: absolute;
  right: 30px;
  bottom: 30px;
  z-index: 3;
}

@media (max-width: 900px) {
  .hero::after { width: 24%; }
  .hero__copy { width: 78%; }
  .quiz__panel {
    min-height: 0;
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }
  .quiz__title,
  .quiz__sub,
  .quiz__list,
  .quiz__rule,
  .quiz__offer,
  .quiz__start { grid-column: 1; grid-row: auto; }
  .quiz__title { align-self: auto; }
}

@media (max-width: 780px) {
  .hero {
    min-height: 650px;
    padding-top: 92px;
    background-size: 48px 48px;
  }
  .hero::after {
    top: auto;
    right: 8px;
    bottom: 8px;
    width: 10px;
    height: calc(100% - 16px);
  }
  .hero__copy { width: 100%; }
  .hero h1 { max-width: 10ch; }
  .quiz__panel { min-height: 0; }
  .space,
  .space--tall { min-height: 300px; }
}

@media (max-width: 520px) {
  .hero { min-height: 650px; padding-top: 76px; }
  .jk__media { min-height: 174px; }
  .jk__year,
  .jk--live .jk__year { font-size: 66px; }
}

/* ========================================================================== */
/* Тихая премиальность: видео, воздух и сдержанное движение                    */
/* Вдохновлено принципами premium development, без копирования Sminex.         */
/* ========================================================================== */

html {
  scroll-behavior: smooth;
  scroll-padding-top: 82px;
}

body {
  background: #fff;
}

.section--sand { background: #ffffff; }

/* Тонкая белая панель вместо плавающей карточки. */
.hdr,
.hdr.hdr--over,
.hdr.hdr--solid {
  top: 0;
  right: 0;
  left: 0;
  height: 72px;
  border: 0;
  border-bottom: 1px solid rgba(17,18,20,.1);
  border-radius: 0;
  background: rgba(255,255,255,.96);
  box-shadow: none;
}

.hdr__inner { max-width: none; padding-inline: clamp(22px, 3.2vw, 52px); }
.hdr__nav a { font-size: 13px; font-weight: 450; }
.hdr__phone { font-size: 15px; font-weight: 600; }
.hdr__side .btn { height: 44px; min-height: 44px; }

/* Единственный эмоциональный медиа-кадр — настоящее видео на первом экране. */
.hero {
  display: flex;
  width: 100%;
  max-width: none;
  min-height: calc(100vh - 72px);
  min-height: calc(100svh - 72px);
  margin: 72px 0 0;
  padding: clamp(150px, 18vh, 220px) 0 clamp(54px, 7vh, 86px);
  align-items: flex-end;
  color: #fff;
  border: 0;
  border-radius: 0;
  background: #111;
}

.hero::before,
.hero::after { display: none; }

.hero__media {
  display: block !important;
  z-index: 0;
  top: 0; right: 0; bottom: 0; left: 0;
  inset: 0;
  overflow: hidden;
  border-radius: 0;
}

.hero__video {
  width: 116%;
  height: calc(100% + 70px);
  object-fit: cover;
  object-position: center center;
  transform: translate3d(0, var(--hero-shift, 0px), 0) scale(1.045);
  filter: saturate(.76) contrast(1.02);
  will-change: transform;
}

.hero__scrim {
  display: block !important;
  z-index: 1;
  top: 0; right: 0; bottom: 0; left: 0;
  inset: 0;
  border-radius: 0;
  background:
    linear-gradient(180deg, rgba(5,7,9,.08) 15%, rgba(5,7,9,.16) 48%, rgba(5,7,9,.76) 100%),
    linear-gradient(90deg, rgba(5,7,9,.34), transparent 58%);
}

.hero__scrim::after {
  content: "КАСПИЙСК\A 42°53′ N · КАСПИЙСКОЕ МОРЕ";
  position: absolute;
  top: 24px;
  right: 0;
  width: 250px;
  height: 250px;
  display: flex;
  align-items: flex-end;
  padding: 18px;
  color: rgba(255,255,255,.76);
  border: 1px solid rgba(255,255,255,.22);
  background: rgba(8,10,12,.62);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  font-size: 10px;
  font-weight: 550;
  line-height: 1.6;
  letter-spacing: .12em;
  white-space: pre-line;
}

.hero__scrim::after { display: none !important; content: none !important; }

.hero__inner { z-index: 2; }
.hero__copy { width: min(940px, 78%); max-width: none; color: #fff; }

.hero__badge {
  color: rgba(255,255,255,.82);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .13em;
}
.hero__badge b { color: #fff; font-weight: 600; }
.hero__badge::before { background: #fff; }

.hero h1 {
  max-width: 12.5ch;
  color: #fff;
  font-size: clamp(56px, 7.4vw, 108px);
  font-weight: 350;
  line-height: .91;
  letter-spacing: -.058em;
}

.hero__sub {
  color: rgba(255,255,255,.78);
  font-size: clamp(17px, 1.3vw, 20px);
}

.hero .btn--primary {
  color: var(--ink) !important;
  background: #fff !important;
}
.hero .btn--primary:hover { color: #fff !important; background: var(--brand) !important; }

.hero .btn--ghost-light {
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.5);
}
.hero .btn--ghost-light:hover { color: var(--ink); background: #fff; box-shadow: none; }

.hero__scroll { color: rgba(255,255,255,.72); }

/* Меньше визуального шума, больше воздуха между историями. */
.section { padding-block: clamp(92px, 11vw, 168px); }
.section--tight { padding-block: clamp(56px, 7vw, 96px); }

.h2 {
  font-size: clamp(48px, 6vw, 90px);
  font-weight: 390;
  letter-spacing: -.062em;
}

.sec-head { margin-bottom: clamp(46px, 5.5vw, 78px); }

/* Рендеров нет: каталоги читаются как коллекция проектов. */
.jk { border-color: rgba(17,18,20,.12); }
.jk__media { min-height: 238px; }
.jk--live .jk__media {
  background:
    linear-gradient(rgba(255,255,255,.075) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.075) 1px, transparent 1px),
    #111111;
  background-size: 48px 48px;
}
.jk__title { font-weight: 430; }

/* Квиз становится спокойнее: красный только в действии и выгоде. */
#quiz { background: #ffffff; }
.quiz-host { padding: 0; border: 0; background: transparent; }
.quiz { border: 1px solid var(--line); border-radius: 0; }
.quiz__panel { min-height: 660px; border-radius: 0; background: #ffffff; }
.quiz__title { font-weight: 380; }

/* Доверие — глубокий нейтральный блок вместо рекламной красной плашки. */
.stats { border-radius: 0; background: #111111; }
.stats::after {
  background:
    linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px),
    #111111;
  background-size: 64px 64px;
}
.stats.stats--legend > .stats__bg {
  display: block !important;
  opacity: .9;
  filter: saturate(.72) contrast(1.08);
  mix-blend-mode: normal;
}
.stats.stats--legend::after {
  background:
    linear-gradient(rgba(255,255,255,.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.055) 1px, transparent 1px),
    linear-gradient(100deg, rgba(17,17,17,.97) 0%, rgba(17,17,17,.8) 50%, rgba(17,17,17,.38) 100%);
  background-size: 64px 64px, 64px 64px, auto;
}
.stats__head h2,
.stat__value { font-weight: 380; }

.formcard,
.plan,
.rating,
.review { border-radius: 0; }

#contact .formcard--dark { border-radius: 0; }
.foot { background: #111111; }

/* Более медленные и чистые появления при прокрутке. */
.rv {
  opacity: 0;
  transform: translateY(30px);
  filter: blur(2px);
  transition:
    opacity 1.05s cubic-bezier(.22,1,.36,1),
    transform 1.05s cubic-bezier(.22,1,.36,1),
    filter 1.05s cubic-bezier(.22,1,.36,1);
}
.rv.is-in { opacity: 1; transform: none; filter: none; }

.jk--legend .jk__status--gallery,
.jk--orientir1 .jk__status--gallery {
  color: #fff;
  background: var(--brand);
  white-space: nowrap;
}

/* Актуальные планировки ЖК «Кавказский» */
.plan--available {
  position: relative;
  cursor: pointer;
  outline: none;
}

.plan--available:focus-visible {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(227,49,59,.12);
}

.plan--available .plan__media {
  aspect-ratio: 29 / 20;
  overflow: hidden;
  background: #fff;
}

.plan--available .plan__media img {
  object-fit: contain;
  object-position: center;
  padding: 18px 22px 12px;
  transform: scale(1);
  transition: transform .55s cubic-bezier(.22,1,.36,1);
}

.plan--available:hover .plan__media img { transform: scale(1.018); }

.plan--available .plan__tag {
  color: #fff;
  border-color: rgba(255,255,255,.16);
  background: rgba(17,18,20,.82);
}

.plan__zoom {
  position: absolute;
  right: 12px;
  top: 12px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 8px 12px;
  color: #fff;
  border-radius: 7px;
  background: var(--brand);
  font-size: 11px;
  font-weight: 650;
  letter-spacing: .02em;
  transform: none;
  opacity: 1;
  transition: opacity .22s ease, transform .22s ease;
}

.plan--available:hover .plan__zoom,
.plan--available:focus-visible .plan__zoom {
  opacity: 1;
  transform: none;
}

body.plan-modal-open { overflow: hidden; }

.plan-modal {
  position: fixed;
  top: 0; right: 0; bottom: 0; left: 0;
  inset: 0;
  z-index: 5100;
  display: grid;
  place-items: center;
  padding: 28px;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity .28s ease, visibility .28s ease;
}

.plan-modal.is-open {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}

.plan-modal__backdrop {
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  inset: 0;
  background: rgba(8,9,11,.8);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.plan-modal__dialog {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 360px);
  width: min(1380px, 96vw);
  height: min(780px, 88vh);
  overflow: hidden;
  color: #fff;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 22px;
  background: #111214;
  box-shadow: 0 34px 100px rgba(0,0,0,.46);
}

.plan-modal__close {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 5;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 50%;
  background: rgba(17,18,20,.72);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  cursor: pointer;
}

.plan-modal__close span {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 18px;
  height: 1px;
  background: #fff;
}
.plan-modal__close span:first-child { transform: translate(-50%,-50%) rotate(45deg); }
.plan-modal__close span:last-child { transform: translate(-50%,-50%) rotate(-45deg); }

.plan-modal__visual {
  min-width: 0;
  min-height: 0;
  display: grid;
  place-items: center;
  padding: clamp(18px, 3vw, 44px);
  overflow: auto;
  background:
    linear-gradient(rgba(17,18,20,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(17,18,20,.035) 1px, transparent 1px),
    #fff;
  background-size: 48px 48px;
}

.plan-modal__visual img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 100%;
  aspect-ratio: 29 / 20;
  object-fit: cover;
  object-position: left center;
}

.plan-modal__info {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 50px 34px 34px;
  background:
    radial-gradient(circle at 100% 0, rgba(227,49,59,.18), transparent 34%),
    #111214;
}

.plan-modal__eyebrow {
  color: var(--brand);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.plan-modal__info h2 {
  margin-top: 22px;
  font-size: clamp(42px, 4vw, 64px);
  font-weight: 400;
  line-height: .96;
  letter-spacing: -.055em;
}

.plan-modal__area {
  margin-top: 18px;
  color: #fff;
  font-size: clamp(26px, 3vw, 42px);
  font-weight: 380;
  letter-spacing: -.04em;
}

.plan-modal__info > p {
  margin-top: 24px;
  color: rgba(255,255,255,.58);
  font-size: 14px;
  line-height: 1.55;
}

.plan-modal__actions {
  display: grid;
  gap: 12px;
  margin-top: auto;
}

.plan-modal__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 58px;
  padding: 14px 20px;
  color: #fff;
  border-radius: 12px;
  background: var(--brand);
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
  transition: background .2s ease, transform .2s ease;
}
.plan-modal__cta:hover { color: #fff; background: var(--brand-deep); transform: translateY(-2px); }
.plan-modal__phone { color: rgba(255,255,255,.7); font-size: 14px; text-align: center; text-decoration: none; }
.plan-modal__phone:hover { color: #fff; }

@media (max-width: 780px) {
  .plan__zoom { right: 9px; top: 9px; min-height: 32px; padding: 7px 10px; font-size: 10px; }
  .plan-modal { padding: 0; }
  .plan-modal__dialog {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(0, 57vh) auto;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    overflow-y: auto;
    border: 0;
    border-radius: 0;
  }
  .plan-modal__visual { min-height: 57vh; padding: 10px; }
  .plan-modal__info { min-height: 43vh; padding: 28px 20px 28px; }
  .plan-modal__info h2 { margin-top: 12px; font-size: 40px; }
  .plan-modal__area { margin-top: 10px; font-size: 30px; }
  .plan-modal__info > p { margin-top: 15px; }
  .plan-modal__actions { margin-top: 22px; }
}

/* Выборочные появления текста: спокойно, по одному смысловому слою за раз. */
.text-reveal {
  opacity: 0;
  transform: translate3d(0, 20px, 0);
  transition:
    opacity .82s cubic-bezier(.22,1,.36,1) var(--text-delay, 0ms),
    transform .82s cubic-bezier(.22,1,.36,1) var(--text-delay, 0ms);
  will-change: opacity, transform;
}

.text-reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (max-width: 900px) {
  .hero__copy { width: 92%; }
  .hero h1 { font-size: clamp(52px, 9.6vw, 82px); }
  .quiz__panel { min-height: 0; }
}

@media (max-width: 780px) {
  html { scroll-padding-top: 70px; }

  .hdr,
  .hdr.hdr--over,
  .hdr.hdr--solid { top: 0; right: 0; left: 0; height: 66px; }

  .hero {
    min-height: calc(100vh - 66px);
    min-height: calc(100svh - 66px);
    margin-top: 66px;
    padding: 120px 0 112px;
  }
  .hero__video {
    height: calc(100% + 42px);
    object-position: 42% center;
    transform: translate3d(0, var(--hero-shift, 0px), 0) scale(1.055);
  }
  .hero__copy { width: 100%; }
  .hero h1 { max-width: 10.5ch; font-size: clamp(46px, 13vw, 68px); }
  .hero__badge { margin-bottom: 18px; }
  .hero__sub { color: rgba(255,255,255,.82); }
  .hero__cta { margin-top: 24px; }
  .hero::after { display: none; }
  .hero__scrim::after {
    content: "42°53′ N\A КАСПИЙСК";
    top: 18px;
    right: 0;
    width: 82px;
    height: 94px;
    display: flex;
    padding: 9px;
    border-color: rgba(255,255,255,.16);
    background: rgba(8,10,12,.58);
    font-size: 7px;
    line-height: 1.45;
  }

  .section { padding-block: 88px; }
  .jk__media { min-height: 190px; }
}

/* Квиз — единая редакционная композиция вместо разрозненных колонок. */
#quiz {
  padding-block: clamp(72px, 7vw, 112px);
  background: #ffffff;
}

.quiz {
  border: 0;
  background: #111111;
}

.quiz__panel {
  position: relative;
  min-height: 590px;
  padding: clamp(48px, 5.5vw, 84px);
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-template-rows: auto auto 1fr auto;
  gap: 28px 24px;
  overflow: hidden;
  color: #fff;
  background:
    linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px),
    #111111;
  background-size: 64px 64px;
}

.quiz__panel::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 7px;
  height: 38%;
  background: var(--brand);
}

.quiz__title {
  grid-column: 1 / 8;
  grid-row: 1 / 4;
  align-self: start;
  max-width: 9ch;
  color: #fff;
  font-size: clamp(54px, 6vw, 88px);
  font-weight: 330;
  line-height: .92;
  letter-spacing: -.065em;
}

.quiz__title::before {
  content: "ПЕРСОНАЛЬНЫЙ ПОДБОР · 3 ШАГА";
  display: block;
  margin-bottom: 30px;
  color: rgba(255,255,255,.52);
  font-size: 10px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: .16em;
}

.quiz__title span { color: var(--brand); }

.quiz__sub {
  grid-column: 9 / 13;
  grid-row: 1;
  margin: 0;
  padding-bottom: 18px;
  color: rgba(255,255,255,.55);
  border-bottom: 1px solid rgba(255,255,255,.14);
  font-size: 14px;
  line-height: 1.5;
}

.quiz__list {
  grid-column: 9 / 13;
  grid-row: 2;
  counter-reset: quiz-points;
  margin: 0;
  gap: 0;
}

.quiz__list li {
  counter-increment: quiz-points;
  min-height: 44px;
  gap: 16px;
  color: rgba(255,255,255,.9);
  border-bottom: 1px solid rgba(255,255,255,.1);
  font-size: 15px;
}

.quiz__list li::before {
  content: "0" counter(quiz-points);
  flex: 0 0 24px;
  color: var(--brand);
  font-size: 10px;
  font-weight: 650;
  letter-spacing: .08em;
}

.quiz__list i { display: none; }
.quiz__rule { display: none; }

.quiz__offer {
  grid-column: 1 / 8;
  grid-row: 4;
  align-self: end;
  display: flex;
  align-items: flex-end;
  gap: clamp(24px, 4vw, 64px);
  color: rgba(255,255,255,.58);
  font-size: 14px;
  line-height: 1.45;
}

.quiz__offer b {
  display: flex;
  align-items: baseline;
  gap: 12px;
  color: #fff;
  background: none;
  font-family: var(--font-display);
  font-size: clamp(38px, 4vw, 58px);
  font-weight: 340;
  line-height: .85;
  letter-spacing: -.06em;
  white-space: nowrap;
}

.quiz__offer small {
  color: var(--brand);
  font-size: 10px;
  font-weight: 650;
  line-height: 1;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.quiz__start {
  grid-column: 9 / 13;
  grid-row: 4;
  width: 100%;
  margin: 0;
  align-self: end;
}

@media (max-width: 900px) {
  .quiz__panel {
    min-height: 0;
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    gap: 26px;
  }
  .quiz__title,
  .quiz__sub,
  .quiz__list,
  .quiz__offer,
  .quiz__start {
    grid-column: 1;
    grid-row: auto;
  }
  .quiz__title { max-width: 9ch; }
  .quiz__offer { align-items: flex-start; justify-content: space-between; }
}

@media (max-width: 560px) {
  .quiz__panel { padding: 38px 24px 28px; }
  .quiz__title { font-size: clamp(44px, 13vw, 58px); }
  .quiz__title::before { margin-bottom: 22px; }
  .quiz__offer { display: grid; gap: 16px; }
  .quiz__offer b { font-size: 43px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero__video { transform: scale(1.02); }
  .rv { filter: none; }
  .text-reveal { opacity: 1; transform: none; transition: none; }
}

/* Квиз 2.0 — тёмный пошаговый интерфейс */
.quiz-host.is-started {
  padding: 1px;
  border-color: #111214;
  border-radius: 30px;
  background: #111214;
}

.quiz-form {
  padding: 10px;
  overflow: hidden;
  border-radius: 29px;
  background: #111214;
  box-shadow: 0 26px 70px rgba(17,18,20,.18);
}

#rec2288377081 .t-quiz__quiz-wrapper {
  overflow: hidden !important;
  border: 1px solid rgba(255,255,255,.1) !important;
  border-radius: 21px !important;
  background:
    radial-gradient(circle at 88% 12%, rgba(227,49,59,.18), transparent 30%),
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px),
    #111214 !important;
  background-size: auto, 48px 48px, 48px 48px, auto !important;
}

#rec2288377081 .t-quiz__quiz { background: #111214 !important; }
#rec2288377081 form.t-form { margin-top: 0 !important; }

#rec2288377081 .t-quiz__content-padding-container {
  padding: clamp(32px, 4.2vw, 54px) !important;
}

#rec2288377081 .t-quiz__progress-bar-container {
  position: static !important;
  width: 100% !important;
  height: auto !important;
  margin-bottom: clamp(34px, 4vw, 54px) !important;
  padding-top: 0 !important;
}

#rec2288377081 .quiz-progress-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
  color: rgba(255,255,255,.48);
  font-size: 10px;
  font-weight: 650;
  letter-spacing: .16em;
  text-transform: uppercase;
}

#rec2288377081 .quiz-progress-meta span:last-child { color: rgba(255,255,255,.78); }

#rec2288377081 .t-quiz__progressbar {
  height: 3px !important;
  background: rgba(255,255,255,.12) !important;
}

#rec2288377081 .t-quiz__progress {
  background: var(--brand) !important;
  box-shadow: 0 0 18px rgba(227,49,59,.42);
}

#rec2288377081 .t-step-form__step:not(.t-quiz__contact-form) > .t-input-group {
  display: grid !important;
  grid-template-columns: minmax(260px, .8fr) minmax(380px, 1.2fr) !important;
  align-items: start;
  gap: clamp(34px, 5vw, 74px) !important;
}

#rec2288377081 .t-input-group__header { margin: 0 !important; }

#rec2288377081 .t-input-title,
#rec2288377081 .t-quiz__contact-form__header__title {
  max-width: 12ch;
  color: #fff !important;
  font-size: clamp(34px, 3.5vw, 50px) !important;
  font-weight: 430 !important;
  line-height: .98 !important;
  letter-spacing: -.055em !important;
}

#rec2288377081 .t-radio__wrapper_button {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 12px !important;
}

#rec2288377081 .t-radio__item {
  min-height: 82px;
  padding: 18px 20px !important;
  color: rgba(255,255,255,.9) !important;
  border-radius: 16px !important;
  background: rgba(255,255,255,.055) !important;
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,.13),
    inset 0 1px 0 rgba(255,255,255,.04) !important;
  font-size: 15.5px !important;
  font-weight: 500 !important;
  line-height: 1.2;
  transition: transform .22s ease, background .22s ease, box-shadow .22s ease !important;
}

#rec2288377081 .t-radio__item:hover {
  transform: translateY(-2px);
  background: rgba(255,255,255,.09) !important;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.24), 0 12px 28px rgba(0,0,0,.14) !important;
}

#rec2288377081 .t-radio__indicator {
  width: 22px !important;
  height: 22px !important;
  border-color: rgba(255,255,255,.28) !important;
  background: rgba(255,255,255,.04) !important;
}

/* В базовых стилях Tilda у индикатора остаётся псевдоэлемент,
   который смещается к тексту и выглядит как лишняя чёрная точка. */
#rec2288377081 .t-radio__indicator::after {
  content: none !important;
  display: none !important;
}

#rec2288377081 .t-radio:checked + .t-radio__indicator {
  border-color: var(--brand) !important;
  background: radial-gradient(circle at center, #fff 0 3px, var(--brand) 3.2px 100%) !important;
}

#rec2288377081 .t-radio__item:has(.t-radio:checked) {
  color: #fff !important;
  background: linear-gradient(135deg, rgba(227,49,59,.24), rgba(227,49,59,.09)) !important;
  box-shadow: inset 0 0 0 1.5px var(--brand), 0 12px 30px rgba(227,49,59,.12) !important;
}

#rec2288377081 .t-quiz__contact-form { padding: 0 !important; }

#rec2288377081 .t-quiz__contact-form__layout {
  grid-template-columns: minmax(260px, .76fr) minmax(0, 1.24fr) !important;
  gap: clamp(34px, 5vw, 74px) !important;
}

#rec2288377081 .t-quiz__contact-form__header {
  position: static !important;
  top: auto !important;
}

#rec2288377081 .t-quiz__contact-form__header__title {
  max-width: none;
  font-size: clamp(36px, 3.2vw, 46px) !important;
  line-height: 1 !important;
}

#rec2288377081 .quiz-contact-note {
  max-width: 30ch;
  margin: 22px 0 0;
  color: rgba(255,255,255,.68);
  font-size: 15px;
  line-height: 1.5;
}

#rec2288377081 .t-input,
#rec2288377081 input.t-input {
  height: 62px !important;
  border: 1px solid rgba(255,255,255,.16) !important;
  border-radius: 15px !important;
  background: rgba(255,255,255,.96) !important;
  color: #111214 !important;
  box-shadow: 0 10px 26px rgba(0,0,0,.12);
}

#rec2288377081 .t-input:focus {
  border-color: var(--brand) !important;
  box-shadow: 0 0 0 4px rgba(227,49,59,.18), 0 10px 26px rgba(0,0,0,.12) !important;
}

#rec2288377081 .quiz-consents { gap: 12px; margin-top: 20px; }

#rec2288377081 .quiz-consents .t-checkbox__control,
#rec2288377081 .quiz-consents .sr-form__cb-optional .t-checkbox__control {
  color: rgba(255,255,255,.72) !important;
}

#rec2288377081 .quiz-consents a { color: rgba(255,255,255,.92) !important; }
#rec2288377081 .quiz-consents a:hover { color: #fff !important; }
#rec2288377081 .quiz-consents .t-checkbox__indicator {
  border-color: rgba(255,255,255,.24);
  background: rgba(255,255,255,.06);
}

#rec2288377081 .t-quiz__footer {
  margin-top: clamp(34px, 4vw, 52px) !important;
  padding-top: 24px !important;
  border-top: 1px solid rgba(255,255,255,.1) !important;
}

#rec2288377081 .t-quiz__counter-container,
#rec2288377081 .t-quiz__counter,
#rec2288377081 .t-quiz__counter-title { display: none !important; }

#rec2288377081 .t-btnflex,
#rec2288377081 .t-submit {
  height: 56px !important;
  min-height: 56px !important;
  border-radius: 14px !important;
  box-shadow: 0 10px 26px rgba(227,49,59,.22);
}

#rec2288377081 .t-quiz__btn_prev {
  background: rgba(255,255,255,.06) !important;
  color: rgba(255,255,255,.7) !important;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.14) !important;
}

#rec2288377081 .t-quiz__btn_prev:hover {
  color: #fff !important;
  background: rgba(255,255,255,.11) !important;
}

#rec2288377081 .t-quiz__btn_prev:disabled { display: none !important; }

/* На финальном шаге кнопки продолжают сетку формы:
   назад остаётся под заголовком, отправка — строго под полями. */
@media (min-width: 781px) {
  #rec2288377081 form:has(.t-quiz__contact-form.t-step-form__step_active) .t-quiz__footer {
    display: block !important;
  }

  #rec2288377081 form:has(.t-quiz__contact-form.t-step-form__step_active) .t-quiz__footer__text-container {
    display: none !important;
  }

  #rec2288377081 form:has(.t-quiz__contact-form.t-step-form__step_active) .t-quiz__btn-wrapper:not(.t-quiz__btn-wrapper_mobile) {
    display: grid !important;
    grid-template-columns: minmax(260px, .76fr) minmax(0, 1.24fr) !important;
    gap: clamp(34px, 5vw, 74px) !important;
    width: 100% !important;
  }

  #rec2288377081 form:has(.t-quiz__contact-form.t-step-form__step_active) .t-quiz__btn-wrapper:not(.t-quiz__btn-wrapper_mobile) .t-quiz__btn_prev {
    grid-column: 1;
    justify-self: start;
  }

  #rec2288377081 form:has(.t-quiz__contact-form.t-step-form__step_active) .t-quiz__btn-wrapper:not(.t-quiz__btn-wrapper_mobile) .t-quiz__btn_submit {
    grid-column: 2;
    width: 100% !important;
  }
}

@media (max-width: 780px) {
  /* В мобильном каталоге строящихся домов год остаётся в сроке сдачи,
     а крупная декоративная цифра убрана. */
  #building .jk__year { display: none !important; }

  .space--commercial > .space__arrow,
  .space--parking > .space__arrow,
  .space--storage > .space__arrow {
    right: 24px;
    bottom: 24px;
  }

  .space--commercial .space__text,
  .space--parking .space__text,
  .space--storage .space__text { padding-right: 74px; }

  .quiz-host.is-started { border-radius: 24px; }
  .quiz-form { padding: 6px; border-radius: 23px; }
  #rec2288377081 .t-quiz__quiz-wrapper { border-radius: 18px !important; }
  #rec2288377081 .t-quiz__content-padding-container { padding: 28px 20px 30px !important; }
  #rec2288377081 .t-quiz__progress-bar-container { margin-bottom: 30px !important; }
  #rec2288377081 .quiz-progress-meta { margin-bottom: 13px; font-size: 9px; letter-spacing: .13em; }
  #rec2288377081 .t-step-form__step:not(.t-quiz__contact-form) > .t-input-group {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }
  #rec2288377081 .t-input-title,
  #rec2288377081 .t-quiz__contact-form__header__title {
    max-width: 11ch;
    font-size: clamp(32px, 10vw, 42px) !important;
  }
  #rec2288377081 .t-radio__wrapper_button { grid-template-columns: 1fr !important; gap: 9px !important; }
  #rec2288377081 .t-radio__item { min-height: 64px; padding: 15px 16px !important; }
  #rec2288377081 .t-quiz__contact-form__layout { grid-template-columns: 1fr !important; gap: 26px !important; }
  #rec2288377081 .t-quiz__contact-form__header__title { max-width: 11ch; }
  #rec2288377081 .quiz-contact-note { margin-top: 14px; font-size: 14px; }
  #rec2288377081 .t-quiz__inputs-wrapper { grid-template-columns: 1fr !important; gap: 10px !important; }
  #rec2288377081 .t-input,
  #rec2288377081 input.t-input { height: 58px !important; }
  #rec2288377081 .t-quiz__footer { margin-top: 30px !important; padding-top: 20px !important; }
  #rec2288377081 .t-btnflex,
  #rec2288377081 .t-submit { width: 100% !important; }
  #rec2288377081 .t-quiz__btn_prev { width: 52px !important; flex: 0 0 52px; }
}

/* ############################################################################
   СЛОЙ 3 — исправления
   Источник: fixes.css
   Точечные правки: модальные окна галерей и планировок, отображение карточек ЖК
   в Safari на iPhone, адаптив окон. Muhammad + Codex, 30–31.08.2026.
   ############################################################################ */

/*
 * Точечные исправления поверх premium-redesign.css
 * Автор: Muhammad, 30.08.2026
 *
 * Отдельный файл, чтобы правки пережили пересборку слоя Codex.
 * Подключается ПОСЛЕ premium-redesign.css — иначе не сработает.
 */

/* --------------------------------------------------------------
   1. Картинка в галерее ЖК вылезала за рамку
   --------------------------------------------------------------
   Слайд объявлен как grid с place-items: center. При таком выравнивании
   элемент не растягивается, и заданные ему width/height: 100% не
   применяются — картинка берёт натуральный размер. При кадре 857×542
   вертикальный рендер 1252×1600 разворачивался в 857×1095 и вылезал
   вниз за пределы слайда: половина кадра уходила за границу, вокруг
   оставалась пустота.

   Прижимаем картинку к слайду абсолютным позиционированием — тогда
   размер задаёт рамка, а не содержимое, при любых пропорциях файла.  */
.project-modal__slide img {
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* Рендеры вертикальные и горизонтальные вперемешку (1252×1600, 1800×1080,
   1800×1500). При object-fit: contain вертикальный кадр в широкой рамке
   выглядит мелким, поэтому даём сцене больше высоты. */
.project-modal__stage {
  min-height: min(62vh, 640px);
}

/* --------------------------------------------------------------
   2. То же самое для окна планировок
   -------------------------------------------------------------- */
.plan-modal__figure,
.plan-modal__media {
  position: relative;
  overflow: hidden;
}

.plan-modal__figure img,
.plan-modal__media img,
#planModalImage {
  max-width: 100%;
  max-height: min(72vh, 820px);
  width: auto;
  height: auto;
  object-fit: contain;
  margin-inline: auto;
}

/* --------------------------------------------------------------
   3. Мелочи вокруг открытия
   -------------------------------------------------------------- */

/* Карточки лежат в горизонтальной ленте с перетаскиванием мышью.
   Курсор-указатель подсказывает, что карточка кликабельна. */
[data-project-open],
[data-plan-open] {
  cursor: pointer;
}

/* Пока открыто модальное окно, страница под ним не должна прокручиваться. */
body.project-modal-open,
body.plan-modal-open {
  overflow: hidden;
}

/* --------------------------------------------------------------
   4. Карточки ЖК с рендерами не показывались в Safari на iPhone
   --------------------------------------------------------------
   В premium-redesign.css картинка внутри .jk__media позиционирована
   абсолютно (position:absolute; inset:0) и берёт размер от родителя.
   В Chrome это работает, в Safari внутри <button> связка часто
   разваливается: картинка остаётся без размеров, карточка выглядит
   пустой. На боевом сайте так и было — файлы отдавались с кодом 200,
   но не отображались.

   Возвращаем картинку в поток и задаём пропорции ей самой. Тогда
   высота карточки определяется картинкой, а не наоборот, и поведение
   одинаково во всех браузерах.                                      */
.jk--legend .jk__media,
.jk--orientir1 .jk__media,
.jk--orientir2 .jk__media,
.jk--premium .jk__media,
.jk--kavkazsky2 .jk__media {
  position: relative;
  display: block;
  min-height: 0;
  aspect-ratio: auto;
}

.jk--legend .jk__media img,
.jk--orientir1 .jk__media img,
.jk--orientir2 .jk__media img,
.jk--premium .jk__media img,
.jk--kavkazsky2 .jk__media img {
  position: static;
  display: block !important;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center 49%;
  filter: none;
}

/* --------------------------------------------------------------
   5. Адаптивные окна галерей и планировок
   --------------------------------------------------------------
   Сцена всегда занимает только свободное место внутри окна. Никаких
   обязательных vh-высот: они ломали grid на невысоких экранах и в Safari.
   100vh оставлен как fallback, 100dvh учитывает панели мобильного браузера. */
.project-modal,
.plan-modal {
  box-sizing: border-box;
  padding:
    max(12px, env(safe-area-inset-top))
    max(12px, env(safe-area-inset-right))
    max(12px, env(safe-area-inset-bottom))
    max(12px, env(safe-area-inset-left));
  overscroll-behavior: contain;
}

.project-modal__dialog,
.plan-modal__dialog {
  box-sizing: border-box;
  width: min(1540px, calc(100vw - 24px));
  height: min(900px, calc(100vh - 24px));
  height: min(900px, calc(100vh - 24px));
  height: min(900px, calc(100dvh - 24px));
  max-width: 100%;
  max-height: 100%;
}

.project-modal__dialog {
  grid-template-columns: minmax(0, 1fr) clamp(320px, 26vw, 400px);
}

.project-modal__gallery,
.project-modal__stage,
.project-modal__slide,
.project-modal__info,
.plan-modal__visual,
.plan-modal__info {
  min-width: 0;
  min-height: 0;
}

.project-modal__stage {
  height: auto;
  min-height: 0;
}

.project-modal__slide {
  display: block;
}

.project-modal__slide img {
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
}

.project-modal__info,
.plan-modal__info {
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,.2) transparent;
}

.plan-modal__dialog {
  grid-template-columns: minmax(0, 1fr) clamp(310px, 25vw, 380px);
}

.plan-modal__visual {
  overflow: hidden;
}

.plan-modal__visual img,
#planModalImage {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  margin: 0;
  aspect-ratio: auto;
  object-fit: contain;
  object-position: center;
}

.project-modal__close:focus-visible,
.project-modal__nav:focus-visible,
.project-modal__thumb:focus-visible,
.project-modal__cta:focus-visible,
.plan-modal__close:focus-visible,
.plan-modal__cta:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
}

/* Планшеты и телефоны в вертикальном положении. */
@media (max-width: 900px) {
  .project-modal,
  .plan-modal {
    padding: 0;
  }

  .project-modal__dialog,
  .plan-modal__dialog {
    width: 100%;
    height: 100vh;
    height: 100vh;
    height: 100dvh;
    max-width: none;
    max-height: none;
    border: 0;
    border-radius: 0;
  }

  .project-modal__dialog {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: minmax(0, 58vh) minmax(0, 1fr);
    grid-template-rows: minmax(0, 58vh) minmax(0, 1fr);
    grid-template-rows: minmax(0, 58dvh) minmax(0, 1fr);
    overflow: hidden;
  }

  .project-modal__gallery {
    grid-template-rows: minmax(0, 1fr) 76px;
  }

  .project-modal__thumbs {
    gap: 8px;
    padding: 8px max(8px, env(safe-area-inset-right)) 8px max(8px, env(safe-area-inset-left));
  }

  .project-modal__thumb {
    flex-basis: 94px;
    height: 60px;
  }

  .project-modal__info,
  .plan-modal__info {
    padding-right: max(20px, env(safe-area-inset-right));
    padding-bottom: max(24px, env(safe-area-inset-bottom));
    padding-left: max(20px, env(safe-area-inset-left));
  }

  .project-modal__close,
  .plan-modal__close {
    top: max(10px, env(safe-area-inset-top));
    right: max(10px, env(safe-area-inset-right));
  }

  .plan-modal__dialog {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: minmax(0, 56vh) minmax(0, 1fr);
    grid-template-rows: minmax(0, 56vh) minmax(0, 1fr);
    grid-template-rows: minmax(0, 56dvh) minmax(0, 1fr);
    overflow: hidden;
  }

  .plan-modal__visual {
    min-height: 0;
    padding: clamp(10px, 3vw, 24px);
  }
}

@media (max-width: 520px) {
  .project-modal__dialog {
    grid-template-rows: minmax(0, 56vh) minmax(0, 1fr);
    grid-template-rows: minmax(0, 56vh) minmax(0, 1fr);
    grid-template-rows: minmax(0, 56dvh) minmax(0, 1fr);
  }

  .project-modal__gallery {
    grid-template-rows: minmax(0, 1fr) 70px;
  }

  .project-modal__thumb {
    flex-basis: 82px;
    height: 54px;
  }

  .project-modal__nav {
    width: 42px;
    height: 42px;
  }

  .project-modal__info {
    padding-top: 24px;
  }

  .project-modal__info h2 {
    margin-top: 10px;
    font-size: clamp(34px, 10.5vw, 44px);
    line-height: 1;
  }

  .project-modal__info > p {
    margin-top: 14px;
  }

  .project-modal__facts {
    margin-top: 18px;
  }

  .project-modal__actions {
    margin-top: 20px;
  }

  .plan-modal__dialog {
    grid-template-rows: minmax(0, 54vh) minmax(0, 1fr);
    grid-template-rows: minmax(0, 54vh) minmax(0, 1fr);
    grid-template-rows: minmax(0, 54dvh) minmax(0, 1fr);
  }

  .plan-modal__info {
    padding-top: 24px;
  }

  .plan-modal__info h2 {
    margin-top: 10px;
    font-size: clamp(34px, 10vw, 42px);
  }
}

/* Телефон или невысокий ноутбук в горизонтальном положении. */
@media (max-width: 900px) and (orientation: landscape),
       (min-width: 901px) and (max-height: 680px) {
  .project-modal__dialog,
  .plan-modal__dialog {
    grid-template-rows: minmax(0, 1fr);
    height: 100vh;
    height: 100vh;
    height: 100dvh;
  }

  .project-modal__dialog {
    grid-template-columns: minmax(0, 1fr) clamp(260px, 34vw, 330px);
  }

  .project-modal__gallery {
    grid-template-rows: minmax(0, 1fr) 58px;
  }

  .project-modal__thumbs {
    padding: 6px;
  }

  .project-modal__thumb {
    flex-basis: 70px;
    height: 44px;
  }

  .project-modal__info,
  .plan-modal__info {
    padding-top: max(20px, env(safe-area-inset-top));
    padding-right: max(18px, env(safe-area-inset-right));
    padding-bottom: max(16px, env(safe-area-inset-bottom));
    padding-left: 20px;
  }

  .project-modal__info h2,
  .plan-modal__info h2 {
    margin-top: 8px;
    font-size: clamp(30px, 4.5vw, 42px);
  }

  .project-modal__info > p,
  .plan-modal__info > p {
    margin-top: 10px;
    font-size: 12px;
  }

  .project-modal__facts {
    margin-top: 12px;
  }

  .project-modal__facts div {
    padding: 8px 0;
  }

  .project-modal__actions,
  .plan-modal__actions {
    margin-top: 14px;
    gap: 7px;
  }

  .project-modal__cta,
  .plan-modal__cta {
    min-height: 44px;
    padding: 10px 14px;
  }

  .plan-modal__dialog {
    grid-template-columns: minmax(0, 1fr) clamp(260px, 34vw, 330px);
  }

  .plan-modal__visual {
    min-height: 0;
    padding: 12px;
  }

  .plan-modal__area {
    margin-top: 7px;
    font-size: 26px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .project-modal,
  .project-modal__slide,
  .project-modal__cta,
  .plan-modal,
  .plan-modal__cta {
    transition: none;
  }
}

/* Мобильная шапка: логотип строго по центру экрана. */
@media (max-width: 780px) {
  .hdr__inner {
    position: relative;
    justify-content: center;
  }

  .hdr__logo {
    margin-inline: auto;
  }

  .hdr__side {
    display: none;
  }
}

/* Инфраструктура сданных домов */
#delivered .rail__track > * { flex-basis: clamp(310px, 31vw, 390px); }
#delivered .jk__body { padding: 20px 22px 22px; gap: 9px; }
.jk__nearby {
  display: block;
  margin: 11px -4px 4px;
  padding: 17px 16px 15px;
  border-radius: 14px;
  background: #f6f6fa;
}
.jk__nearby-title {
  display: block;
  margin-bottom: 13px;
  font-family: var(--font-display);
  font-weight: 750;
  font-size: 18px;
  line-height: 1.15;
  color: var(--ink);
}
.jk__nearby-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px 10px;
}
.jk__nearby-item {
  min-width: 0;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.jk__nearby-item:last-child:nth-child(odd) { grid-column: 1 / -1; }
.jk__nearby-item svg {
  flex: 0 0 23px;
  width: 23px;
  height: 23px;
  margin-top: 2px;
  fill: none;
  stroke: var(--brand);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.jk__nearby-copy { display: block; min-width: 0; line-height: 1.3; }
.jk__nearby-copy strong {
  display: block;
  margin-bottom: 2px;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 750;
  line-height: 1.15;
}
.jk__nearby-copy > span {
  display: block;
  color: var(--text-2);
  font-size: 11.5px;
  overflow-wrap: anywhere;
}
@media (max-width: 520px) {
  #delivered .rail__track > * { flex-basis: min(88vw, 390px); }
  #delivered .jk__body { padding: 18px; }
  .jk__nearby { padding: 15px 13px; }
}

/* Дневной и вечерний виды ЖК «Весенний»: по 5 секунд на каждый. */
.jk__media--slideshow .jk__photo {
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: jk-photo-cycle 10s linear infinite;
}
.jk__media--slideshow .jk__photo--evening { animation-delay: -5s; }
@keyframes jk-photo-cycle {
  0%, 45% { opacity: 1; }
  50%, 95% { opacity: 0; }
  100% { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .jk__media--slideshow .jk__photo { animation: none; }
  .jk__media--slideshow .jk__photo--evening { display: none; }
}

/* Возвращаем фото только карточке, для которой получены снимки. */
.jk__media--slideshow {
  display: block;
  aspect-ratio: 4 / 3.1;
  min-height: 0;
  background: var(--sand);
}
.jk__media--slideshow::before { display: none; }
.jk__media--slideshow .jk__photo { display: block !important; }
.jk__media--slideshow .jk__year {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 2;
  padding: 6px 10px;
  border-radius: 7px;
  background: rgba(255,255,255,.92);
  color: var(--ink);
  font-size: 13px;
  font-weight: 650;
  letter-spacing: 0;
}
@media (prefers-reduced-motion: reduce) {
  .jk__media--slideshow .jk__photo--evening { display: none !important; }
}

/* Сданные дома: типографика и палитра сайта, без изменения геометрии карточек. */
#delivered .jk {
  font-family: var(--font);
  color: var(--text);
}
#delivered .jk__title {
  font-family: var(--font-display);
  font-weight: 430;
  color: var(--text);
}
#delivered .jk__addr,
#delivered .jk__nearby-copy > span,
#delivered .jk__status {
  font-family: var(--font);
  color: var(--text-2);
}
#delivered .jk__addr svg { stroke: var(--text-2); }
#delivered .jk__nearby {
  background: #f6f6f6;
  background: color-mix(in srgb, var(--ink) 4%, var(--paper));
}
#delivered .jk__nearby-title,
#delivered .jk__nearby-copy strong {
  font-family: var(--font-display);
  font-weight: 550;
  color: var(--text);
}
#delivered .jk__nearby-item svg {
  color: var(--brand);
  stroke: currentColor;
}
#delivered .jk__year {
  font-family: var(--font);
  font-weight: 500;
  color: var(--text);
}
#delivered .jk__arrow,
#delivered .jk:hover .jk__arrow {
  color: var(--on-dark);
  background: var(--brand);
  border-color: var(--brand);
}

/* Короткие категории и способ передвижения в блоке «Всё рядом».
   Минимальная высота сохраняет исходную геометрию карточек при коротких подписях. */
#delivered .jk__nearby {
  min-height: 249.375px;
}
#delivered .jk__nearby-grid {
  min-height: 183.6875px;
  align-content: space-between;
}
#delivered .jk__nearby-copy strong {
  display: flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}
#delivered .jk__nearby-item .jk__nearby-mode {
  flex: 0 0 14px;
  width: 14px;
  height: 14px;
  margin-top: 0;
  color: var(--text-2);
  stroke-width: 1.6;
}
@media (max-width: 520px) {
  #delivered .jk__nearby-item { gap: 4px; }
  #delivered .jk__nearby { min-height: 277.25px; }
  #delivered .jk__nearby-grid { min-height: 213.5625px; }
}

/* Старые браузеры без aspect-ratio (iOS 14 и раньше, старые Android): без этого блок под фото
   «Сданных домов» получает нулевую высоту и картинок не видно. Высоту задаём отступом: 3,1 / 4 = 77,5 %. */
@supports not (aspect-ratio: 1 / 1) {
  .jk__media--slideshow { height: 0; padding-top: 77.5%; }
  .jk__media--slideshow .jk__photo { top: 0; left: 0; }
}


/* ===== Запасные варианты для старых телефонов (01.10.2026) =====
   Блоки с фото держат высоту через aspect-ratio. Старые браузеры (iOS 14 и раньше, старые Android)
   его не знают — блок получает нулевую высоту и картинку не видно. Задаём высоту отступом. */
@supports not (aspect-ratio: 1 / 1) {
  .plan__media { height: 0; padding-top: 100%; }
  .plan--available .plan__media { padding-top: 68.97%; }
  .plan__media img { top: 0; left: 0; }
}


/* 02.10.2026 ускорение: текст первого экрана виден сразу — не ждёт анимации (главный элемент для оценки скорости Google). Остальные блоки появляются как раньше. */
.hero .text-reveal { opacity: 1 !important; transform: none !important; transition: none !important; }

/* 03.10.2026 — сданные дома в стиле строящихся */
#delivered .rail__track > .jk {
  flex-basis: clamp(330px, 32vw, 468px);
}
#delivered .jk__media--slideshow {
  aspect-ratio: 4 / 3;
}
#delivered .jk__body {
  padding: 24px 24px 22px;
  gap: 8px;
}
#delivered .jk__addr svg { stroke: var(--text-3); }
#delivered .jk__status {
  padding: 0;
  background: none;
  color: var(--brand-deep);
  font-size: 13px;
  font-weight: 600;
}
#delivered .jk__arrow {
  color: var(--ink);
  background: transparent;
  border-color: var(--line);
}
#delivered .jk:hover .jk__arrow {
  color: #fff;
  background: var(--brand);
  border-color: var(--brand);
}

/* Строки уже используют общий компонент .project-modal__facts. */
.project-modal--delivered .project-modal__nearby-title {
  margin: 24px 0 0;
  color: var(--brand);
  font-family: var(--font);
  font-size: 10px;
  font-weight: 700;
  line-height: 1.55;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.project-modal--delivered .project-modal__facts--nearby {
  margin-top: 12px;
}
.project-modal--delivered .project-modal__info > * {
  flex-shrink: 0;
}
.project-modal--delivered .project-modal__facts dt {
  flex-shrink: 0;
}
.project-modal--delivered .project-modal__facts dd {
  min-width: 0;
  overflow-wrap: anywhere;
}

@media (max-width: 780px) {
  #delivered .rail__track > .jk { flex-basis: min(84vw, 370px); }
  #delivered .jk__body { padding: 20px; }
}
@supports not (aspect-ratio: 1 / 1) {
  #delivered .jk__media--slideshow { padding-top: 75%; }
}

/* Горизонтальные фото: область 4:3 сохраняет кадр без полей и сильной обрезки.
   На компьютере учитываем панель сведений, миниатюры (104px) и рамку (2px). */
[id^="projectDelivered-"] {
  --delivered-viewport-height: 100vh;
  --delivered-info-width: clamp(320px, 26vw, 400px);
  --delivered-photo-width: min(
    calc(100vw - 26px - var(--delivered-info-width)),
    calc((min(900px, var(--delivered-viewport-height) - 24px) - 106px) * 4 / 3)
  );
  --delivered-control-inset: clamp(12px, 2vw, 20px);
}
@supports (height: 100dvh) {
  [id^="projectDelivered-"] { --delivered-viewport-height: 100dvh; }
}
[id^="projectDelivered-"] .project-modal__dialog {
  width: calc(var(--delivered-photo-width) + var(--delivered-info-width) + 2px);
  height: calc(var(--delivered-photo-width) * .75 + 106px);
  grid-template-columns: minmax(0, 1fr) var(--delivered-info-width);
  grid-template-rows: minmax(0, 1fr);
}
[id^="projectDelivered-"] .project-modal__gallery {
  grid-template-rows: minmax(0, 1fr) 104px;
}
[id^="projectDelivered-"] .project-modal__slide img {
  object-fit: cover;
  object-position: center;
}
[id^="projectDelivered-"] .project-modal__nav--prev {
  left: var(--delivered-control-inset);
  right: auto;
}
[id^="projectDelivered-"] .project-modal__nav--next {
  right: var(--delivered-control-inset);
  left: auto;
}
[id^="projectDelivered-"] .project-modal__slide figcaption {
  display: none;
}
[id^="projectDelivered-"] .project-modal__counter {
  right: var(--delivered-control-inset);
  bottom: var(--delivered-control-inset);
  padding: 8px 11px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 8px;
  background: rgba(17,18,20,.68);
  white-space: nowrap;
}
/* Одна колонка — при тех же условиях, что у строящихся домов. */
@media (max-width: 900px) and (orientation: portrait) {
  [id^="projectDelivered-"] .project-modal__dialog {
    width: 100%;
    height: var(--delivered-viewport-height);
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: max-content auto;
    align-content: start;
    overflow-y: auto;
  }
  [id^="projectDelivered-"] .project-modal__gallery {
    grid-template-rows: auto 76px;
  }
  [id^="projectDelivered-"] .project-modal__stage {
    height: 0;
    padding-top: 75%;
  }
  [id^="projectDelivered-"] .project-modal__info {
    overflow: visible;
  }
}
@media (max-width: 520px) and (orientation: portrait) {
  [id^="projectDelivered-"] .project-modal__gallery {
    grid-template-rows: auto 70px;
  }
}

/* Компактная двухколоночная раскладка повторяет условия общего окна. */
@media (max-width: 900px) and (orientation: landscape),
       (min-width: 901px) and (max-height: 680px) {
  [id^="projectDelivered-"] .project-modal__dialog {
    width: min(1540px, calc(100vw - 24px));
    height: var(--delivered-viewport-height);
    grid-template-columns: minmax(0, 1fr) clamp(260px, 34vw, 330px);
    grid-template-rows: minmax(0, 1fr);
    overflow: hidden;
  }
  [id^="projectDelivered-"] .project-modal__gallery {
    grid-template-rows: minmax(0, 1fr) 58px;
  }
  [id^="projectDelivered-"] .project-modal__info {
    --delivered-info-bottom: max(16px, env(safe-area-inset-bottom));
  }
}
@media (max-width: 900px) and (orientation: landscape) {
  [id^="projectDelivered-"] .project-modal__dialog { width: 100%; }
}

/* В двух колонках сведения прокручиваются, действия остаются видны. */
@media (min-width: 901px),
       (max-width: 900px) and (orientation: landscape) {
  [id^="projectDelivered-"] .project-modal__info {
    min-height: 0;
    padding-bottom: var(--delivered-info-bottom, 34px);
    overflow-x: hidden;
    overflow-y: auto;
  }
  [id^="projectDelivered-"] .project-modal__actions {
    position: sticky;
    /* Фон перекрывает и нижний отступ прокручиваемой панели. */
    bottom: calc(-1 * var(--delivered-info-bottom, 34px));
    z-index: 5;
    margin-top: auto;
    margin-bottom: calc(-1 * var(--delivered-info-bottom, 34px));
    padding-top: 16px;
    padding-bottom: var(--delivered-info-bottom, 34px);
    background: #111214;
  }
}

/* 05.10.2026: в окне дома длинные названия («Молодежный», «Жемчужина», «Спортивный 3», «Кавказский 2») не помещались
   в узкую правую колонку и обрезались. В двухколоночной раскладке заголовок подстраивается под ширину колонки;
   на телефоне размер прежний. Старые браузеры без cqi просто покажут прежний размер. */
@media (min-width: 901px), (max-width: 900px) and (orientation: landscape) {
  .project-modal__info { container-type: inline-size; }
  .project-modal__info h2 { font-size: min(13.8cqi, 48px); }
}

/* Cookie: отдельная галочка согласия для сервиса DMP.ONE (12.10.2026, ответ юристов) */
.cookie__text { display: grid; gap: 10px; min-width: 0; }
.cookie__dmp { display: inline-flex; align-items: flex-start; justify-self: start; gap: 9px; cursor: pointer; text-align: left; }
.cookie__dmp input { flex: none; width: 18px; height: 18px; margin: 1px 0 0; accent-color: #fff; cursor: pointer; }
@media (max-width: 900px) { .cookie__dmp { justify-self: center; } }

/* Квиз: без «перехода» — маска Tilda размывала верхний и нижний край содержимого, на шаге контактов
   из-за неё поля «Имя» и «Телефон» сверху выглядели затёртыми (12.10.2026, просьба владельца). */
#rec2288377081 .t-quiz__main { -webkit-mask-image: none !important; mask-image: none !important; }

/* Поле телефона с маской в формах страницы («Бесплатная консультация», «Напишите ваш номер», окно «Обратный звонок»):
   единое поле — рамка и фон у обёртки, внутреннее поле без своих. Квиз (#form2288377081) не трогаем. 12.10.2026 */
form.sr-form:not(#form2288377081) .t-input-phonemask__wrap input.t-input-phonemask,
form.sr-form:not(#form2288377081) .t-input-phonemask__wrap input.t-input-phonemask:focus {
  height: 58px !important; border: 0 !important; border-radius: 0 !important; background: transparent !important;
  box-shadow: none !important; padding-left: 8px !important;
}
form.sr-form:not(#form2288377081) .t-input-phonemask__wrap:focus-within {
  border-color: var(--brand) !important; box-shadow: 0 0 0 3px rgba(227,49,59,.1) !important;
}
.formcard--dark form.sr-form:not(#form2288377081) .t-input-phonemask__wrap:focus-within {
  border-color: rgba(255,255,255,.6) !important; box-shadow: none !important;
}
