@import url('../fonts/inter-local.css');

@font-face { font-family: 'BebasNeue'; src: url('../fonts/BebasNeue-Book.woff') format('woff'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'BebasNeue'; src: url('../fonts/BebasNeue-Regular.woff') format('woff'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'BebasNeue'; src: url('../fonts/BebasNeue-Bold.woff') format('woff'); font-weight: 700; font-display: swap; }

/* ---------- tokens ---------- */
:root {
  --navy: #081924;
  --navy-2: #1b2b35;
  --orange: #f47920;
  --orange-hot: #f65709;
  --orange-soft: #f9b48a;
  --peach: #fdf1e8;
  --gray-bg: #f5f6f6;
  --pill-bg: #f2f2f2;
  --text-muted: #5f6b72;
  --white: #fff;
  --font-head: 'BebasNeue', 'Arial Narrow', Arial, sans-serif;
  --font-body: 'Inter', Arial, sans-serif;
  --container: 1240px;
  --radius-pill: 30px;
  --ease-out: cubic-bezier(.22, .8, .24, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);

  /*
    Spacing scale: every step is the previous one × 1.6.
    --k scales the whole scale on smaller screens, so the proportions stay the same.
    Hierarchy used across the page:
      s-1 / s0  — inside a control (icon ↔ label, label ↔ input, list rows)
      s1        — title ↔ its text inside a card or item; image ↔ title; grid gutter
      s2        — section heading ↔ lead paragraph; controls (tabs, filters) ↔ the content they switch
      s3        — section heading block ↔ section content; rows of cards; panel padding
      s4        — text column ↔ media column; large intra-section breaks
      s5        — between sections (each section gets half on top and half on bottom)
  */
  --k: 1;
  --s-1: calc(6px * var(--k));
  --s0: calc(10px * var(--k));
  --s1: calc(16px * var(--k));
  --s2: calc(26px * var(--k));
  --s3: calc(42px * var(--k));
  --s4: calc(66px * var(--k));
  --s5: calc(106px * var(--k));
  --s6: calc(170px * var(--k));

  /*
    Type scale. Headings (BebasNeue) jump hard from section title to card title, so the hierarchy reads at a glance;
    text (Inter) steps by about 1.25. Every font size on the page comes from here.
      h2     — section titles
      h3     — a block's own title inside a section (calculator, quiz question, the orbit)
      h4     — card titles
      lead   — intro under a title
      micro  — uppercase labels (section number, captions)
  */
  --fs-h2: 72px;
  --fs-h3: 44px;
  --fs-h4: 30px;
  --fs-lead: 20px;
  --fs-text: 16px;
  --fs-small: 14px;
  --fs-micro: 12px;
}
@media (max-width: 1199px) { :root { --k: .9; --fs-h2: 58px; --fs-h3: 38px; --fs-h4: 26px; --fs-lead: 18px; } }
@media (max-width: 767px) { :root { --k: .8; --fs-h2: 42px; --fs-h3: 32px; --fs-h4: 24px; --fs-lead: 17px; --fs-small: 13px; } }

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-text);
  line-height: 1.2;
  color: var(--navy);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
body.is-locked { overflow: hidden; }

.container { width: min(var(--container), 100% - 2 * 20px); margin-inline: auto; }

.h2 {
  margin: 0;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: var(--fs-h2);
  line-height: .92;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}
/* section number and label above the title: «01 — Акции» (numbers are in the markup: container queries isolate CSS counters) */
.h2[data-eyebrow]::before {
  content: attr(data-eyebrow);
  content: attr(data-eyebrow) / "";
  display: block; margin-bottom: var(--s2);
  font-family: var(--font-body); font-size: var(--fs-micro); font-weight: 600; line-height: 1.2; letter-spacing: .16em;
  color: var(--orange-hot);
}
.h3 {
  margin: 0;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: var(--fs-h4);
  line-height: 1;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}
.lead { margin: 0; font-size: var(--fs-lead); line-height: 1.4; }
.text { margin: 0; font-size: var(--fs-text); line-height: 1.5; }
.muted { color: var(--text-muted); }
/* sections breathe: 170px between them (the s6 step) */
.section { padding-block: calc(var(--s6) / 2); }
.link-orange { color: var(--orange-hot); text-decoration: underline; text-underline-offset: 3px; transition: color .3s; }
.link-orange:hover { color: var(--navy); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s0);
  min-height: 44px;
  padding: var(--s0) var(--s2);
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color .35s var(--ease-out), color .35s var(--ease-out), border-color .35s var(--ease-out), transform .35s var(--ease-out), box-shadow .35s var(--ease-out);
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn--dark { background: var(--navy); color: var(--white); }
.btn--dark:hover { background: var(--orange); }
.btn--orange { background: var(--orange); color: var(--white); font-weight: 500; }
.btn--orange:hover { background: var(--orange-hot); box-shadow: 0 10px 24px -12px rgba(246, 87, 9, .8); }
.btn--outline { border-color: var(--navy); background: var(--white); color: var(--navy); font-weight: 500; }
.btn--outline:hover { background: var(--navy); color: var(--white); }
.btn--white { background: var(--white); color: var(--navy); font-weight: 500; }
.btn--white:hover { background: var(--orange); color: var(--white); }
.btn--lg { min-height: 56px; padding-inline: var(--s3); }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .5; pointer-events: none; }

.round-btn {
  display: inline-grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border: 0;
  border-radius: 50%;
  background: var(--orange);
  color: var(--white);
  transition: background-color .3s, transform .3s var(--ease-out), opacity .3s;
}
.round-btn:hover { background: var(--orange-hot); transform: scale(1.06); }
.round-btn[disabled] { opacity: .45; pointer-events: none; }
.round-btn svg { width: 24px; height: 24px; }

.pills { display: flex; gap: var(--s-1); overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.pills::-webkit-scrollbar { display: none; }
.pill {
  flex: none;
  min-height: 42px;
  padding: var(--s0) var(--s1);
  border: 0;
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--orange);
  font-size: 16px;
  line-height: 1.1;
  transition: background-color .35s var(--ease-out), color .35s var(--ease-out);
}
.pill:hover { background: rgba(244, 121, 32, .1); }
.pill.is-active { background: var(--orange); color: var(--white); }

/* ---------- reveal on scroll ---------- */
[data-reveal] { opacity: 0; transform: translate3d(0, 28px, 0); transition: opacity 1s var(--ease-out), transform 1.1s var(--ease-out); transition-delay: var(--d, 0s); }
[data-reveal="fade"] { transform: none; transition-duration: 1.4s; }
[data-reveal="zoom"] { transform: scale(1.04); }
[data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- header + hero ---------- */
.hero {
  position: relative; height: 100vh; height: 100svh; min-height: 700px; max-height: 1000px; overflow: hidden; isolation: isolate; background: #dfe8f1;
  /*
    Towers geometry. In the 1500×803 picture the three towers take 54.7…96.3% of the width (.777 of the picture height).
    They fill the frame top to bottom (8% taller, the tall one runs off the top) and stand to the right of the text;
    on narrow landscape screens they shrink instead of crawling under it.
  */
  --hh: clamp(700px, 100svh, 1000px);                       /* hero height */
  --edge: calc(max(20px, 50vw - 620px) + 560px);            /* right edge of the text column */
  --gw: min(var(--hh) * .84, 100vw - var(--edge) - 2vw);    /* width of the three towers */
  --th: calc(var(--gw) / .777);                             /* picture height */
  --gl: max(var(--edge), 100vw - var(--gw) - 3vw);          /* where the first tower starts */
}

/*
  Layered scene: sky with the city → towers → trees. The three pictures share one canvas,
  so they line up with identical object-fit / object-position. main.js sets --p (scroll progress 0…1)
  and --mx / --my (cursor, −1…1); each layer has its own depth: --dx/--dy for the cursor, --sy for scrolling.
*/
.hero__scene { position: absolute; z-index: 0; inset: 0; }
.hero__layer {
  --dx: 0px; --dy: 0px; --sy: 0%;
  position: absolute; inset: -3%;
  transform: translate3d(calc(var(--mx, 0) * var(--dx)), calc(var(--my, 0) * var(--dy) + var(--p, 0) * var(--sy)), 0);
  will-change: transform;
  pointer-events: none;
}
.hero__layer img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: 100% 100%; }
.hero__layer--sky { --dx: -8px; --dy: -5px; --sy: 28%; }
.hero__layer--towers { --dx: 12px; --dy: 4px; --sy: 12%; }
.hero__layer--towers { inset: 0 0 -3%; }
.hero__layer--towers img { top: auto; right: auto; bottom: 0; left: calc(var(--gl) - var(--th) * 1.022); width: calc(var(--th) * 1.868); height: var(--th); object-fit: fill; }
.hero__layer--trees { --dx: 28px; --dy: 10px; --sy: -6%; bottom: -8%; }
.hero__layer--sky img { animation: heroSky 2.6s var(--ease-out) both; }
.hero__layer--towers img { animation: heroTowers 1.8s var(--ease-out) both .2s; }
.hero__layer--trees img { animation: heroTrees 1.6s var(--ease-out) both .1s; }
@keyframes heroSky { from { transform: scale(1.18); } to { transform: none; } }
@keyframes heroTowers { from { opacity: 0; transform: translate3d(0, 18%, 0); } to { opacity: 1; transform: none; } }
@keyframes heroTrees { from { transform: translate3d(0, 22%, 0); } to { transform: none; } }


/* soft white light behind the text on the left */
.hero__veil { position: absolute; inset: 0; background: linear-gradient(100deg, rgba(255, 255, 255, .9) 0%, rgba(255, 255, 255, .72) 30%, rgba(255, 255, 255, 0) 58%), linear-gradient(180deg, rgba(255, 255, 255, .55) 0%, rgba(255, 255, 255, 0) 22%); pointer-events: none; }
.header { position: relative; z-index: 3; display: flex; align-items: center; justify-content: space-between; gap: var(--s2); padding-top: var(--s2); }
.header__logo img { width: 114px; height: auto; }
.header__actions { display: flex; gap: var(--s1); }
.header__phone { border-color: var(--navy); background: var(--white); color: var(--navy); font-weight: 500; min-width: 190px; }
.header__phone:hover { background: var(--navy); color: var(--white); }
.header__pick { min-width: 190px; }
.header__call { display: none; width: 44px; height: 44px; border: 1px solid var(--navy); border-radius: 50%; place-items: center; }
.header__call svg { width: 20px; height: 20px; }

.hero__content { --tf: 80px; position: relative; z-index: 2; padding-top: var(--s4); transform: translate3d(0, calc(var(--p, 0) * -90px), 0); opacity: calc(1 - var(--p, 0) * 1.6); }
.hero__title { margin: 0; font-family: var(--font-head); font-weight: 600; font-size: var(--tf); line-height: 1; letter-spacing: -0.032em; text-transform: uppercase; }
.hero__title span { display: block; }
.hero__title .accent { color: var(--orange-hot); }
.hero__lead { max-width: 540px; margin-top: var(--s1); }
.hero__tags { display: flex; flex-wrap: wrap; max-width: 540px; gap: var(--s0) var(--s2); margin: var(--s2) 0 0; padding: 0; list-style: none; color: var(--orange-hot); font-size: 14px; font-weight: 500; }

/* quiz button: the arrow sits in a white circle and runs forward on hover, a light glint passes now and then */
.hero__quiz { position: relative; overflow: hidden; gap: var(--s1); margin-top: var(--s3); padding-right: 8px; font-size: 18px; box-shadow: 0 14px 30px -12px rgba(246, 87, 9, .7); }
.hero__quiz i { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--white); color: var(--orange-hot); transition: transform .45s var(--ease-out); }
.hero__quiz svg { width: 20px; height: 20px; }
.hero__quiz:hover i { transform: translateX(4px) rotate(-45deg); }
.hero__quiz::after { content: ''; position: absolute; top: 0; bottom: 0; left: -40%; width: 30%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .45), transparent); transform: skewX(-20deg); animation: heroGlint 4.5s ease-in-out 2.2s infinite; pointer-events: none; }
@keyframes heroGlint { 0% { left: -40%; } 22%, 100% { left: 130%; } }

/* round sticker (hero, parking): the caption runs around the edge and slowly turns, the figure sits in an orange core */
.sticker { --size: 156px; position: relative; display: grid; place-items: center; width: var(--size); height: var(--size); border-radius: 50%; background: var(--white); color: var(--navy); box-shadow: 0 20px 44px -18px rgba(8, 25, 36, .55); }
.sticker__ring { position: absolute; inset: 0; width: 100%; height: 100%; animation: stickerSpin 24s linear infinite; }
.sticker__ring text { font-family: var(--font-head); font-weight: 600; font-size: 15px; letter-spacing: .06em; text-transform: uppercase; fill: currentColor; }
.sticker__core { display: grid; place-content: center; width: 54%; aspect-ratio: 1; border-radius: 50%; background: var(--orange-hot); color: var(--white); text-align: center; font-family: var(--font-head); text-transform: uppercase; line-height: .9; transition: transform .5s var(--ease-out); }
.sticker__core b { font-weight: 700; font-size: calc(var(--size) * .26); }
.sticker__core small { font-weight: 500; font-size: calc(var(--size) * .085); letter-spacing: .04em; }
.sticker:hover .sticker__core { transform: scale(1.08) rotate(-8deg); }
@keyframes stickerSpin { to { transform: rotate(1turn); } }

.hero__badge {
  position: absolute; z-index: 2; right: max(20px, 50% - 620px); bottom: var(--s4); /* bottom-right corner, over the trees */
  translate: calc(var(--mx, 0) * 28px) calc(var(--my, 0) * 10px + var(--p, 0) * -60px); /* moves with the trees layer */
  animation: badgeIn 1s var(--ease-out) both .9s;
}
@keyframes badgeIn { from { opacity: 0; transform: scale(.6) rotate(-40deg); } to { opacity: 1; transform: none; } }
/* portrait screens (phones, tablets upright): text on top, the scene below it in its own box */
@media (max-width: 767px), (max-aspect-ratio: 5 / 4) {
  .hero { height: auto; min-height: 0; max-height: none; display: flex; flex-direction: column; }
  .hero > .container { order: 0; }
  .hero__scene { position: relative; order: 1; height: clamp(380px, 62vw, 640px); margin-top: calc(var(--s3) * -1); -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 22%); mask-image: linear-gradient(180deg, transparent 0, #000 22%); }
  .hero__layer img { object-position: 80% 100%; }
  .hero__layer--towers img { left: auto; right: 0; width: auto; height: 92%; aspect-ratio: 1500 / 803; }
  .hero__badge { right: 10px; bottom: var(--s2); }
  .hero__veil { display: none; }
  .hero__content { transform: none; opacity: 1; }
  .hero { background: var(--white); }
}

.hero__content > * { animation: heroText 1s var(--ease-out) both; }
.hero__content > :nth-child(2) { animation-delay: .1s; }
.hero__content > :nth-child(3) { animation-delay: .2s; }
.hero__content > :nth-child(4) { animation-delay: .35s; }
@keyframes heroText { from { opacity: 0; transform: translate3d(0, 24px, 0); } to { opacity: 1; transform: none; } }

/* ---------- offers ---------- */
/* carousel: three cards per view, the next one peeks out to the right edge of the screen; swipe, drag or arrows */
.offers { container-type: inline-size; } /* 100cqw = page width without the scrollbar */
.offers__head { display: flex; justify-content: space-between; align-items: flex-end; gap: var(--s2); }
.offers__nav { display: flex; gap: var(--s0); flex: none; }
.offers__grid {
  --cw: min(var(--container), 100cqw - 40px); /* container width */
  --gap: var(--s2);
  display: flex; gap: var(--gap);
  margin-top: var(--s3);
  margin-right: calc((var(--cw) - 100cqw) / 2);
  overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scrollbar-width: none;
  cursor: grab;
}
.offers__grid::-webkit-scrollbar { display: none; }
.offers__grid.is-dragging { scroll-snap-type: none; cursor: grabbing; user-select: none; }
.offers__grid.is-dragging .offer { pointer-events: none; }
.offer { flex: 0 0 calc((var(--cw) - 2 * var(--gap)) / 3); scroll-snap-align: start; }
.offer:last-child { margin-right: calc((100cqw - var(--cw)) / 2); }
.offers__bar { position: relative; height: 2px; margin-top: var(--s3); background: var(--pill-bg); overflow: hidden; }
.offers__bar i { position: absolute; left: 0; top: 0; bottom: 0; width: calc(var(--vis, .5) * 100%); background: var(--orange); transform: translateX(calc(var(--pos, 0) * (1 / var(--vis, .5) - 1) * 100%)); transition: transform .2s linear; }
.offer__img { aspect-ratio: 400 / 288; overflow: hidden; background: var(--gray-bg); }
.offer__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.offer:hover .offer__img img { transform: scale(1.04); }
.offer .h3 { margin-top: var(--s1); max-width: 342px; }
.offer .text { margin-top: var(--s0); max-width: 370px; color: var(--text-muted); }

/* ---------- video ---------- */
/* heading and button in a row, the video below runs edge to edge (capped at the screen height) */
.video-sec__head { display: flex; justify-content: space-between; align-items: flex-end; gap: var(--s3); }
.video-sec__text .text { max-width: 542px; margin-top: var(--s2); color: var(--text-muted); }
.video-sec__head > .btn { flex: none; min-width: 296px; }
.video-sec__media { width: 100%; aspect-ratio: 16 / 9; max-height: 100vh; margin-top: var(--s3); background: var(--gray-bg) center / cover no-repeat; overflow: hidden; }
.video-sec__media video { width: 100%; height: 100%; object-fit: cover; }
.video-sec__btn-m { display: none; }

/* ---------- live in the center (circle) ---------- */
.center { text-align: center; }
.center .h2 { max-width: 780px; margin-inline: auto; }
.orbit { position: relative; width: 1240px; max-width: 100%; height: 896px; margin: calc(var(--s3) + 16px) auto 0; }
.orbit__ring { position: absolute; left: 50%; top: 126px; width: 622px; height: 622px; margin-left: -311px; border: 1px solid var(--orange-soft); border-radius: 50%; }
/* progress arc on the ring: --a turns it to start at the active dot, the animation grows it to the next dot */
.orbit__arc { position: absolute; z-index: 1; left: 50%; top: 126px; width: 622px; height: 622px; margin-left: -311px; overflow: visible; transform: rotate(calc(var(--a, 0) * 90deg - 90deg)); pointer-events: none; }
.orbit__arc circle { fill: none; stroke: var(--orange-hot); stroke-width: 3px; stroke-linecap: round; vector-effect: non-scaling-stroke; stroke-dasharray: 0 100; }
.orbit.is-playing .orbit__arc circle { animation: orbit-arc var(--orbit-t, 5s) linear forwards; }
.orbit.is-paused .orbit__arc circle { animation-play-state: paused; }
@keyframes orbit-arc { from { stroke-dasharray: 0 100; } to { stroke-dasharray: 25 100; } }

/* photo: the new one opens like an iris from the side of its dot, the old one stays underneath until it's covered */
.orbit__photo { position: absolute; left: 50%; top: 142px; width: 590px; height: 590px; margin-left: -295px; border-radius: 50%; overflow: hidden; background: var(--gray-bg); transform: translate3d(var(--tx, 0), var(--ty, 0), 0); transition: transform .9s var(--ease-out); }
.orbit__photo img { position: absolute; inset: -4%; width: 108%; height: 108%; max-width: none; object-fit: cover; opacity: 0; }
.orbit__photo img.is-prev { z-index: 1; opacity: 1; }
.orbit__photo img.is-active { z-index: 2; opacity: 1; animation: orbit-iris 1.1s var(--ease-out) both; }
@keyframes orbit-iris {
  from { clip-path: circle(0% at var(--ox) var(--oy)); transform: scale(1.12); }
  to { clip-path: circle(150% at var(--ox) var(--oy)); transform: none; }
}

/* dots: solid buttons with an icon, a big invisible hit area around each, a pulse on the active one */
.orbit__dot {
  position: absolute; z-index: 2;
  display: grid; place-items: center;
  width: 52px; height: 52px; margin: -26px 0 0 -26px; padding: 0;
  border: 1px solid var(--orange-soft); border-radius: 50%;
  background: var(--white); color: var(--orange-hot);
  box-shadow: 0 6px 18px rgba(8, 25, 36, .1);
  transition: background-color .4s, color .4s, border-color .4s, transform .5s var(--ease-out), box-shadow .4s;
}
.orbit__dot::before { content: ''; position: absolute; inset: -22px; border-radius: 50%; } /* hit area */
.orbit__dot::after { content: ''; position: absolute; inset: -1px; border-radius: 50%; box-shadow: 0 0 0 2px var(--orange-hot); opacity: 0; pointer-events: none; }
.orbit__dot svg { width: 24px; height: 24px; transition: transform .5s var(--ease-out); }
.orbit__dot:hover { transform: scale(1.1); }
.orbit__dot:hover svg { transform: rotate(-8deg) scale(1.08); }
.orbit__dot.is-active { border-color: var(--orange-hot); background: var(--orange-hot); color: var(--white); transform: scale(1.18); box-shadow: 0 10px 26px rgba(246, 87, 9, .35); }
.orbit__dot.is-active::after { animation: orbit-pulse 2.4s var(--ease-out) infinite; }
@keyframes orbit-pulse { 0% { transform: scale(1); opacity: .8; } 100% { transform: scale(1.9); opacity: 0; } }
.orbit__item { position: absolute; width: 300px; padding: 0; border: 0; background: none; text-align: center; cursor: pointer; }
.orbit__item:hover .orbit__title { opacity: .85; }
.orbit__item .orbit__title { font-family: var(--font-head); font-weight: 600; font-size: var(--fs-h3); line-height: 1; letter-spacing: -0.03em; text-transform: uppercase; color: var(--orange-hot); opacity: .55; transition: opacity .4s; }
.orbit__item .text { margin-top: var(--s0); color: var(--text-muted); transition: color .4s; }
.orbit__item.is-active .orbit__title { opacity: 1; }
.orbit__item.is-active .text { color: var(--navy); }
.orbit__item--top { left: 50%; top: -16px; margin-left: -150px; }
.orbit__item--right { right: 0; top: 410px; width: 270px; }
.orbit__item--bottom { left: 50%; top: 806px; margin-left: -150px; }
.orbit__item--left { left: 0; top: 400px; width: 270px; }

.mslider { display: none; }

/* ---------- city map ---------- */
.city .text { max-width: 618px; margin-top: var(--s2); color: var(--text-muted); }
.city__bar { display: flex; justify-content: space-between; align-items: center; gap: var(--s2); margin-top: var(--s3); }
.city__map-btn-m { display: none; }

/*
  Map, by the «Формула» map: the block spans the whole section, the visible part is a clip-path.
  It starts at container width, widens to the full screen while scrolling and narrows back (main.js).
  Without JS and with reduced motion it stays at container width.
*/
.cmap {
  --mk: clamp(32px, 2.6vw, 44px); /* marker size */
  --in: calc((100% - min(var(--container), 100% - 40px)) / 2); /* side inset */
  position: relative; z-index: 1;
  margin-top: var(--s2);
  background: #ebeded;
  clip-path: inset(0 var(--in));
}
.cmap__viewport { position: relative; aspect-ratio: 4320 / 2517; overflow: hidden; }
.cmap__world { position: absolute; inset: 0; transform-origin: 50% 45%; container-type: inline-size; }
.cmap__img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; user-select: none; pointer-events: none; }
.cmap.is-pending .cpt { visibility: hidden; }

/* wave from the complex when markers appear; dashed route from the complex to a marker */
.cmap__wave { position: absolute; z-index: 1; width: 0; height: 0; border-radius: 50%; transform: translate(-50%, -50%); box-shadow: inset 0 0 0 2px var(--orange-hot), 0 0 0 1px rgba(246, 87, 9, .15); background: rgba(246, 87, 9, .06); opacity: 0; pointer-events: none; }
.cmap__route { position: absolute; z-index: 1; inset: 0; width: 100%; height: 100%; overflow: visible; opacity: 0; transition: opacity .25s; pointer-events: none; }
.cmap__route.is-on { opacity: 1; }
.cmap__route line { stroke: var(--orange-hot); stroke-width: 2; stroke-linecap: round; stroke-dasharray: 7 6; animation: cmap-march .9s linear infinite; }
@keyframes cmap-march { to { stroke-dashoffset: -13; } }

/* markers: only the icon is shown, the name slides out from under it */
.cpt { position: absolute; z-index: 2; width: 0; height: 0; padding: 0; border: 0; background: none; -webkit-tap-highlight-color: transparent; }
.cpt:hover, .cpt.is-open { z-index: 6; }
.cpt:focus-visible { outline: none; }
.cpt:focus-visible .cpt__ico { outline: 2px solid var(--orange); outline-offset: 3px; }
.cpt__ico {
  position: absolute; z-index: 2;
  left: calc(var(--mk) / -2); top: calc(var(--mk) / -2);
  width: var(--mk); height: var(--mk);
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--white); color: var(--orange-hot);
  box-shadow: 0 0 0 3px rgba(246, 87, 9, .16), 0 6px 16px rgba(8, 25, 36, .16);
  transition: background-color .35s, color .35s, box-shadow .35s;
}
.cpt__ico svg { width: 56%; height: 56%; stroke-dasharray: 1; transition: transform .5s var(--ease-out); }
.cpt.is-open .cpt__ico { background: var(--orange-hot); color: var(--white); box-shadow: 0 0 0 3px var(--white), 0 8px 20px rgba(8, 25, 36, .28); }
.cpt.is-open .cpt__ico svg { transform: scale(1.12); }

.cpt__label {
  position: absolute; z-index: 1; left: 0; top: 0;
  display: grid; gap: 2px; align-content: center;
  width: max-content; max-width: 260px; min-height: calc(var(--mk) + 8px);
  padding: 7px 22px 7px calc(var(--mk) / 2 + 14px);
  border-radius: var(--radius-pill);
  background: var(--navy); color: var(--white);
  text-align: left;
  transform: translateY(-50%);
  box-shadow: 0 14px 34px rgba(8, 25, 36, .28);
  clip-path: inset(0 100% 0 0);
  transition: clip-path .55s var(--ease-out);
  pointer-events: none;
}
.cpt.is-left .cpt__label { left: auto; right: 0; padding: 7px calc(var(--mk) / 2 + 14px) 7px 22px; text-align: right; clip-path: inset(0 0 0 100%); }
.cpt.is-open .cpt__label { clip-path: inset(-60px); pointer-events: auto; }
.cpt__type { font-size: 11px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--orange); }
.cpt__title { font-family: var(--font-head); font-weight: 600; font-size: 22px; line-height: 1; text-transform: uppercase; }
.cpt__label > *, .cpt__body > * { display: block; opacity: 0; transform: translateX(-12px); transition: opacity .25s, transform .5s var(--ease-out); }
.cpt.is-left .cpt__label > * { transform: translateX(12px); }
.cpt.is-open .cpt__label > *, .cpt.is-open .cpt__body > * { opacity: 1; transform: none; transition-delay: .12s; }
.cpt.is-open .cpt__label > * + *, .cpt.is-open .cpt__body > * + * { transition-delay: .18s; }

/* the complex: the «Грани» sign and wordmark as on the original map, pulse rings, a card with a photo on hover */
.cpt--home { z-index: 4; --sw: 3.125cqw; } /* sign width: 135 of 4320 px of the artwork */
.cpt--home::before { content: ''; position: absolute; left: calc(var(--sw) * -.9); top: calc(var(--sw) * -1); width: calc(var(--sw) * 1.8); height: calc(var(--sw) * 2.6); }
.cpt__sign { position: absolute; left: calc(var(--sw) / -2); top: calc(var(--sw) * -.852); width: var(--sw); height: auto; max-width: none; overflow: visible; transform-origin: 50% 100%; transition: transform .5s var(--ease-out); }
.cpt__sign rect { transform-box: fill-box; transform-origin: 50% 100%; }
.cpt--home.is-open .cpt__sign { transform: scale(1.08); }
.cpt--home:focus-visible::before { outline: 2px solid var(--orange); outline-offset: 3px; border-radius: 12px; }
.cpt__mark { position: absolute; left: 0; top: calc(var(--sw) * .97); transform: translateX(-50%); font-family: var(--font-head); font-weight: 500; font-size: calc(var(--sw) * .7); line-height: .8; letter-spacing: .01em; text-transform: uppercase; white-space: nowrap; color: var(--orange-hot); }
.cpt__pulse { --pd: calc(var(--sw) * 2.2); position: absolute; left: calc(var(--pd) / -2); top: calc(var(--pd) / -2); width: var(--pd); height: var(--pd); border-radius: 50%; box-shadow: 0 0 0 2px var(--orange-hot); opacity: 0; pointer-events: none; }
.cpt--home.is-live .cpt__pulse { animation: cpt-pulse 3s cubic-bezier(.3, .6, .4, 1) infinite; }
.cpt--home.is-live .cpt__pulse + .cpt__pulse { animation-delay: 1.5s; }
.cpt--home.is-open .cpt__pulse { animation: none; }
@keyframes cpt-pulse { 0% { transform: scale(.6); opacity: .9; } 80%, 100% { transform: scale(2.2); opacity: 0; } }
.cpt__card {
  position: absolute; z-index: 1;
  left: calc(var(--sw) * .9 + 8px); top: calc(var(--sw) * -1);
  width: 280px;
  border-radius: 20px; overflow: hidden;
  background: var(--navy); color: var(--white); text-align: left;
  box-shadow: 0 18px 44px rgba(8, 25, 36, .32);
  clip-path: inset(0 100% 100% 0);
  transition: clip-path .65s var(--ease-out);
  pointer-events: none;
}
.cpt--home.is-left .cpt__card { left: auto; right: calc(var(--sw) * .9 + 8px); clip-path: inset(0 0 100% 100%); }
.cpt--home.is-up .cpt__card { top: auto; bottom: calc(var(--sw) * -1); clip-path: inset(100% 100% 0 0); }
.cpt--home.is-open .cpt__card { clip-path: inset(-60px); pointer-events: auto; }
.cpt__photo { display: block; aspect-ratio: 16 / 10; overflow: hidden; }
.cpt__photo img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.15); transition: transform 1.1s var(--ease-out); }
.cpt--home.is-open .cpt__photo img { transform: none; }
.cpt__body { display: grid; gap: 4px; padding: 14px 18px 16px; }
.cpt__body .cpt__title { font-size: 30px; }
.cpt__text { font-size: 14px; line-height: 1.3; color: rgba(255, 255, 255, .72); }

/* hint in the corner — goes away after the first marker is opened */
.cmap__hint {
  position: absolute; z-index: 7;
  right: calc(var(--in) + var(--s1)); top: var(--s1); /* the complex sits in the top-left corner */
  display: flex; align-items: center; gap: var(--s0);
  max-width: calc(100% - 2 * var(--in) - 2 * var(--s1));
  margin: 0; padding: 9px 16px;
  border-radius: var(--radius-pill);
  background: rgba(8, 25, 36, .86); color: var(--white);
  font-size: 13px; line-height: 1.2;
  pointer-events: none;
  transition: opacity .5s, transform .5s var(--ease-out);
}
.cmap__hint i { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--orange); animation: cmap-blink 1.4s steps(2) infinite; }
@keyframes cmap-blink { 50% { opacity: .35; } }
.cmap__hint.is-gone { opacity: 0; transform: translateY(-8px); }
.cmap__pan { display: none; }

/* narrow screens: the map is full height and scrolls sideways */
@media (max-width: 1023px) {
  .cmap { --mk: 32px; --h: clamp(420px, 72vh, 600px); }
  .cmap__viewport { aspect-ratio: auto; height: var(--h); overflow-x: auto; overflow-y: hidden; scrollbar-width: none; overscroll-behavior-x: contain; }
  .cmap__viewport::-webkit-scrollbar { display: none; }
  .cmap__world { position: relative; inset: auto; height: 100%; width: calc(var(--h) * 4320 / 2517); }
  .cmap__pan { display: inline; }
  .cmap__hint { top: auto; bottom: var(--s1); }
}
@supports (height: 1svh) {
  @media (max-width: 1023px) { .cmap { --h: clamp(420px, 72svh, 600px); } }
}

/* ---------- pinned horizontal scenes ---------- */
.scene { position: relative; height: 330vh; }
.scene__sticky { position: sticky; top: 0; height: 100vh; overflow: hidden; }
.scene__intro { position: absolute; z-index: 2; left: max(20px, calc(50% - 620px)); top: 12vh; width: 448px; will-change: transform, opacity; }
.scene__intro .text { margin-top: var(--s2); max-width: 360px; color: var(--text-muted); }
.scene__frame {
  position: absolute; z-index: 1; overflow: hidden; background: var(--gray-bg);
  /* geometry is driven by JS through custom properties (start box -> full viewport) */
  left: var(--fx, 0px); top: var(--fy, 0px); width: var(--fw, 100%); height: var(--fh, 100%);
  will-change: left, top, width, height;
}
.scene__track { display: flex; height: 100%; width: 300%; will-change: transform; }
.scene__slide { position: relative; flex: 0 0 33.3334%; height: 100%; }
.scene__slide img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.scene__slide::after { content: ''; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(8, 25, 36, .55) 0%, rgba(8, 25, 36, .15) 38%, transparent 60%); opacity: var(--shade, 0); transition: opacity .3s; }
.scene__caption { position: absolute; z-index: 2; left: max(var(--s3), calc(50vw - 580px)); top: var(--s4); width: 380px; color: var(--white); opacity: var(--cap, 0); transform: translate3d(0, calc((1 - var(--cap, 0)) * 20px), 0); }
.scene__caption .h2 { max-width: 300px; }
.scene__caption .text { margin-top: var(--s2); }
.scene__dots { position: absolute; z-index: 3; left: 50%; bottom: var(--s2); display: flex; gap: var(--s0); transform: translateX(-50%); opacity: var(--cap, 0); }
.scene__dots i { width: 28px; height: 3px; border-radius: 2px; background: rgba(255, 255, 255, .45); overflow: hidden; }
.scene__dots i b { display: block; height: 100%; width: calc(var(--p, 0) * 100%); background: var(--white); }
.scene__mobile { display: none; }

/* ---------- quality ---------- */
.quality__head { display: grid; grid-template-columns: 1fr 378px; gap: var(--s3); align-items: end; align-items: last baseline; } /* side text sits on the title's last line */
.quality__head .text { color: var(--text-muted); }
.quality__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s1); margin-top: var(--s4); }
.qcard { display: flex; flex-direction: column; padding: var(--s0); border-radius: 28px; background: var(--gray-bg); transition: background-color .5s var(--ease-out), box-shadow .5s var(--ease-out); }
.qcard__img { position: relative; aspect-ratio: 4 / 3; border-radius: 20px; overflow: hidden; background: var(--pill-bg); }
.qcard__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.qcard__body { display: flex; flex-direction: column; flex: 1; padding: var(--s2) var(--s1) var(--s1); }
.qcard__num { font: 600 var(--fs-micro) / 1 var(--font-body); letter-spacing: .16em; color: var(--orange-hot); }
.qcard .h3 { margin-top: var(--s1); color: var(--navy); transition: color .45s var(--ease-out); }
.qcard .text { margin-top: var(--s0); color: var(--text-muted); }
.qcard:hover { background: var(--white); box-shadow: 0 24px 60px -28px rgba(8, 25, 36, .28); }
.qcard:hover .qcard__img img { transform: scale(1.06); }
.qcard:hover .h3 { color: var(--orange-hot); }

/* ---------- catalog ---------- */
.catalog__filters { margin-top: var(--s3); }
.catalog__filters .pill { background: var(--pill-bg); color: var(--orange); }
.catalog__filters .pill.is-active { background: var(--orange-hot); color: var(--white); }
.catalog__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s3) var(--s1); margin-top: var(--s2); }
.progress .catalog__grid { margin-top: var(--s3); }
.card { display: flex; flex-direction: column; align-items: center; padding-bottom: var(--s3); border-radius: 24px; background: var(--gray-bg); text-align: center; animation: cardIn .7s var(--ease-out) both; animation-delay: var(--d, 0s); }
@keyframes cardIn { from { opacity: 0; transform: translate3d(0, 24px, 0); } to { opacity: 1; transform: none; } }
/* the plan sits in the middle of its frame with even margins and never touches the edges */
.card__img { display: block; width: 100%; aspect-ratio: 4 / 3; padding: var(--s3) var(--s4) var(--s1); overflow: hidden; }
.card__img img { width: 100%; height: 100%; object-fit: contain; transition: transform .9s var(--ease-out); }
.card:hover .card__img img { transform: scale(1.05); }
.card .h3 { margin-top: var(--s2); }
.card__descr { margin-top: var(--s0); color: var(--text-muted); }
.card .btn { margin-top: var(--s2); min-width: 250px; }
.catalog__more { display: flex; justify-content: center; margin-top: var(--s3); }
.progress-cards .card { padding-bottom: 0; border-radius: 0; background: none; }
.progress-cards .card .h3 { margin-top: var(--s1); }
.progress-cards .card__img { aspect-ratio: 435 / 326; padding: 0; border-radius: 24px; }
.progress-cards .card__img img { object-fit: cover; }
.progress-cards .card { cursor: pointer; }

/* ---------- parking ---------- */
.parking { position: relative; height: 810px; margin-block: calc(var(--s6) / 2); color: var(--white); overflow: hidden; }
.parking__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); will-change: transform; }
/* dark backing behind the text: heavy from the left and from the bottom, clear photo on the right */
.parking::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(4, 12, 18, .86) 0%, rgba(4, 12, 18, .6) 34%, rgba(4, 12, 18, 0) 64%), linear-gradient(0deg, rgba(4, 12, 18, .75) 0%, rgba(4, 12, 18, 0) 60%); }
.parking__inner { position: relative; z-index: 2; height: 100%; }
.parking__text { position: absolute; left: 0; bottom: var(--s5); width: 440px; }
.parking__text .text { max-width: 355px; margin-top: var(--s2); }
.parking__badge { position: absolute; right: 0; top: var(--s5); }

/* ---------- time + viewing form ---------- */
.time__grid { display: grid; grid-template-columns: 420px 1fr; gap: var(--s1); }
.time__calc { position: relative; display: flex; flex-direction: column; padding: var(--s3); border-radius: 28px; background: var(--peach); overflow: hidden; }
.time__calc > *:not(.time__decor) { position: relative; z-index: 2; }
.time__calc .h3, .time__form .h3 { font-size: var(--fs-h3); }
.time__calc .text { margin-top: var(--s1); max-width: 330px; }
.time__decor { position: absolute; right: 0; bottom: 0; width: 99px; z-index: 1; opacity: .7; }

/* slider: thick track, white thumb with an orange ring, a dark label riding above the thumb */
.range { position: relative; margin-top: auto; padding-top: calc(var(--s4) + var(--s1)); }
.range input { display: block; width: 100%; height: 30px; margin: 0; background: transparent; -webkit-appearance: none; appearance: none; cursor: pointer; }
.range input::-webkit-slider-runnable-track { height: 6px; border-radius: 3px; background: linear-gradient(90deg, var(--orange-hot) var(--fill, 20%), rgba(246, 87, 9, .16) var(--fill, 20%)); }
.range input::-moz-range-track { height: 6px; border-radius: 3px; background: rgba(246, 87, 9, .16); }
.range input::-moz-range-progress { height: 6px; border-radius: 3px; background: var(--orange-hot); }
.range input::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; margin-top: -10px; border: 6px solid var(--orange-hot); border-radius: 50%; background: var(--white); box-shadow: 0 6px 14px -4px rgba(246, 87, 9, .6); transition: transform .25s var(--ease-out); }
.range input::-moz-range-thumb { box-sizing: border-box; width: 26px; height: 26px; border: 6px solid var(--orange-hot); border-radius: 50%; background: var(--white); box-shadow: 0 6px 14px -4px rgba(246, 87, 9, .6); }
.range input:active::-webkit-slider-thumb { transform: scale(1.15); }
.range__bubble { position: absolute; top: var(--s3); left: var(--pos, 20%); padding: 6px 12px; border-radius: 10px; background: var(--navy); color: var(--white); font-size: var(--fs-small); font-weight: 500; line-height: 1.2; white-space: nowrap; transform: translateX(-50%); transition: left .12s linear; }
.range__bubble::after { content: ''; position: absolute; left: 50%; bottom: -5px; width: 10px; height: 10px; border-radius: 2px; background: inherit; transform: translateX(-50%) rotate(45deg); }
.range__bubble span { font-weight: 700; }
.range__scale { display: flex; justify-content: space-between; margin-top: var(--s-1); padding-inline: 9px; color: var(--text-muted); font-size: var(--fs-micro); font-variant-numeric: tabular-nums; }

/* result: the big number in orange, its explanation left-aligned next to it */
.time__result { display: flex; align-items: center; gap: var(--s1); margin-top: var(--s2); padding: var(--s1) var(--s2); border-radius: 20px; background: var(--white); box-shadow: 0 16px 40px -28px rgba(246, 87, 9, .55); }
.time__result b { flex: none; min-width: 1.62em; font-family: var(--font-head); font-weight: 700; font-size: 64px; line-height: .8; letter-spacing: -0.02em; color: var(--orange-hot); padding-top: .06em; }
.time__result span { display: block; font-size: var(--fs-text); font-weight: 600; line-height: 1.25; }
.time__result small { display: block; margin-top: 4px; color: var(--text-muted); font-size: var(--fs-small); line-height: 1.3; }

/* viewing form: text and fields on the left, a photo of the showroom on the right */
.time__form { display: grid; grid-template-columns: 1fr 34%; border-radius: 28px; background: var(--gray-bg); overflow: hidden; }
.time__body { display: flex; flex-direction: column; padding: var(--s3); }
.time__body > .text { margin-top: var(--s1); max-width: 380px; color: var(--text-muted); }
.time__body form { margin-top: auto; padding-top: var(--s3); }
.time__body .form-row { grid-template-columns: 1fr 1fr; }
.time__submit { margin-top: var(--s0); }
.time__submit svg { width: 20px; height: 20px; transition: transform .4s var(--ease-out); }
.time__submit:hover svg { transform: translateX(4px); }
.time__photo { position: relative; margin: 0; min-height: 100%; }
.time__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease-out); }
.time__form:hover .time__photo img { transform: scale(1.04); }
.time__photo figcaption { position: absolute; left: var(--s1); bottom: var(--s1); padding: 8px 14px; border-radius: var(--radius-pill); background: rgba(255, 255, 255, .92); font-size: var(--fs-small); font-weight: 500; backdrop-filter: blur(6px); }

/* ---------- forms ---------- */
.form-row { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: var(--s0); align-items: end; }
.field { display: flex; flex-direction: column; gap: var(--s0); }
.field label, .field__label { font-size: var(--fs-small); font-weight: 500; }
.input {
  width: 100%; height: 50px; padding: 0 var(--s2); border: 1px solid transparent; border-radius: 30px; background: var(--white); color: var(--navy);
  font: inherit; font-size: 14px; transition: border-color .25s, box-shadow .25s;
}
.input::placeholder { color: #8c969c; }
.input:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 4px rgba(244, 121, 32, .15); }
.input.is-error { border-color: #e5322d; }
.phone { position: relative; }
.phone .input { padding-left: calc(var(--s2) + 30px); }
.phone__flag { position: absolute; left: var(--s2); top: 50%; width: 20px; height: 14px; margin-top: -7px; border-radius: 2px; background: linear-gradient(#fff 0 33.3%, #0039a6 33.3% 66.6%, #d52b1e 66.6%); box-shadow: 0 0 0 1px rgba(8, 25, 36, .12); pointer-events: none; }
.check { display: flex; align-items: flex-start; gap: var(--s0); margin-top: var(--s1); font-size: var(--fs-small); line-height: 1.35; cursor: pointer; }
.check input { flex: none; width: 20px; height: 20px; margin: 0; color: inherit; border: 1.5px solid currentColor; border-radius: 3px; background: transparent; -webkit-appearance: none; appearance: none; display: grid; place-items: center; cursor: pointer; transition: background-color .2s, border-color .2s; }
.check input::after { content: ''; width: 10px; height: 6px; border-left: 2px solid var(--white); border-bottom: 2px solid var(--white); transform: rotate(-45deg) translate(1px, -1px) scale(0); transition: transform .2s var(--ease-out); }
.check input:checked { background: var(--orange); border-color: var(--orange); }
.check input:checked::after { transform: rotate(-45deg) translate(1px, -1px) scale(1); }
.check.is-error input { border-color: #e5322d; }
.check a { color: var(--orange-hot); text-decoration: none; }
.check a:hover { text-decoration: underline; }
.form-error { margin-top: var(--s0); color: #e5322d; font-size: 13px; min-height: 0; }
.form-error:empty { display: none; }
.form-success { display: none; padding: var(--s2); border-radius: 20px; background: var(--white); color: var(--navy); font-size: 16px; line-height: 1.35; }
form.is-sent > :not(.form-success) { display: none !important; }
form.is-sent .form-success { display: block; animation: cardIn .6s var(--ease-out) both; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.dark-form .input { background: var(--navy-2); color: var(--white); }
.dark-form .input::placeholder { color: #9aa6ad; }
.dark-form .check { color: var(--white); }

/* ---------- progress ---------- */
.progress__head { display: flex; justify-content: space-between; align-items: flex-end; align-items: last baseline; gap: var(--s2); }
.progress__meter { display: flex; align-items: center; gap: var(--s2); margin-top: var(--s0); }
.progress__ready { position: relative; padding-bottom: var(--s0); font-family: var(--font-head); font-weight: 500; font-size: 18px; text-transform: uppercase; }
.progress__ready::before, .progress__ready::after { content: ''; position: absolute; left: 0; bottom: 0; height: 4px; }
.progress__ready::before { width: 120px; background: var(--pill-bg); }
.progress__ready::after { width: 0; background: var(--orange); transition: width 1.6s var(--ease-out) .2s; }
.progress__ready.is-in::after { width: calc(120px * var(--ready, .82)); }
.progress__live { color: var(--orange-hot); font-size: var(--fs-text); font-weight: 500; text-underline-offset: 3px; }
.progress__live:hover { color: var(--navy); }

/* ---------- quiz ---------- */
.quiz__grid { display: grid; grid-template-columns: 1fr 425px; gap: var(--s1); margin-top: var(--s3); }
.quiz__card { position: relative; display: flex; flex-direction: column; min-height: 420px; padding: var(--s3); background: var(--gray-bg); overflow: hidden; }
.quiz__steps { position: relative; flex: 1; }
.quiz__step { display: none; }
.quiz__step.is-active { display: block; animation: stepIn .55s var(--ease-out) both; }
.quiz__step.is-back { animation-name: stepBack; }
@keyframes stepIn { from { opacity: 0; transform: translate3d(28px, 0, 0); } to { opacity: 1; transform: none; } }
@keyframes stepBack { from { opacity: 0; transform: translate3d(-28px, 0, 0); } to { opacity: 1; transform: none; } }
.quiz__q { margin: 0; font-family: var(--font-head); font-weight: 600; font-size: var(--fs-h3); line-height: 1; text-transform: uppercase; }
.quiz__opts { display: grid; grid-template-columns: repeat(2, max-content); gap: var(--s1) var(--s2); margin-top: var(--s2); }
.radio { display: flex; align-items: center; gap: var(--s0); font-size: var(--fs-text); font-weight: 400; cursor: pointer; }
.radio input { flex: none; width: 20px; height: 20px; margin: 0; border: 1.5px solid #5f6b72; border-radius: 50%; -webkit-appearance: none; appearance: none; display: grid; place-items: center; cursor: pointer; transition: border-color .2s; }
.radio input::after { content: ''; width: 10px; height: 10px; border-radius: 50%; background: var(--orange); transform: scale(0); transition: transform .25s var(--ease-out); }
.radio input:checked { border-color: var(--orange); }
.radio input:checked::after { transform: scale(1); }
.quiz__nav { display: flex; align-items: center; justify-content: space-between; gap: var(--s1); padding-top: var(--s2); }
.quiz__counter { font-family: var(--font-head); font-size: 14px; color: #c7cdd0; text-transform: uppercase; }
.quiz__btns { display: flex; gap: var(--s0); }
.quiz__back { width: 52px; height: 52px; border: 0; border-radius: 50%; background: var(--orange); color: var(--white); display: grid; place-items: center; transition: opacity .3s, background-color .3s; }
.quiz__back[disabled] { opacity: .4; }
.quiz__back svg, .quiz__next svg { width: 18px; height: 18px; }
.quiz__next { min-height: 52px; padding-inline: var(--s2); font-weight: 500; font-size: var(--fs-text); flex-direction: row; }
.quiz__img { min-height: 420px; overflow: hidden; }
.quiz__img img { width: 100%; height: 100%; object-fit: cover; }
.quiz__contact { max-width: 360px; }
.quiz__contact .input { background: var(--white); }
.quiz__error { margin-top: var(--s1); color: #e5322d; font-size: 14px; opacity: 0; transition: opacity .3s; }
.quiz__error.is-shown { opacity: 1; }
.quiz__done { display: none; font-size: var(--fs-lead); line-height: 1.4; max-width: 560px; }
.quiz.is-done .quiz__steps, .quiz.is-done .quiz__nav { display: none; }
.quiz.is-done .quiz__done { display: block; animation: cardIn .6s var(--ease-out) both; }

/* ---------- buy ---------- */
.buy__tabs { margin-top: var(--s3); }
/* left column: title, tabs, steps (top) and banks (bottom); the calculator runs from the title down to the banks */
.buy__layout { display: grid; grid-template-columns: 1fr 400px; gap: var(--s4); align-items: stretch; }
#buy:not([data-tab="0"]) .buy__layout { grid-template-columns: 1fr; }
#buy:not([data-tab="0"]) .calc { display: none; }
.buy__main { display: flex; flex-direction: column; min-width: 0; }
.buy__panels { position: relative; display: flex; flex: 1; flex-direction: column; margin-top: var(--s2); }
.buy__panel { display: none; }
.buy__panel.is-active { display: block; max-width: 880px; animation: fadeUp .5s var(--ease-out) both; }
.buy__panel--mortgage.is-active { display: flex; flex: 1; flex-direction: column; max-width: none; }
/* the bank logos end on the line of the calculator button (calculator padding = --s2) */
.buy__panel--mortgage .banks { margin-bottom: var(--s2); }
@keyframes fadeUp { from { opacity: 0; transform: translate3d(0, 12px, 0); } to { opacity: 1; transform: none; } }
.buy__panel ol { margin: 0; padding: 0; list-style: none; counter-reset: s; font-size: var(--fs-text); line-height: 1.6; }
.buy__panel li { counter-increment: s; }
.buy__panel li::before { content: counter(s) '. '; }
.buy__panel p { margin: 0 0 var(--s1); font-size: var(--fs-text); line-height: 1.6; }
.banks { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s1) var(--s2); margin-top: auto; padding-top: var(--s3); }
.banks img { height: 31px; width: auto; }
.calc { display: flex; flex-direction: column; padding: var(--s2); background: var(--gray-bg); }
/* fields right under the title, consent + button pinned to the bottom, air in between */
.calc form { display: flex; flex: 1; flex-direction: column; margin-top: var(--s2); }
.calc__grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s1) var(--s0); }
.calc .field { gap: var(--s-1); }
.calc .field label { font-size: 12px; }
.calc .input { height: 44px; padding-inline: var(--s1); font-size: 14px; }
.calc .phone .input { padding-left: calc(var(--s1) + 30px); }
.calc .phone__flag { left: var(--s1); }
.calc__result { margin-top: var(--s1); padding: var(--s0) var(--s1); border-radius: 16px; background: var(--white); font-size: 14px; line-height: 1.35; }
.calc__result b { display: block; margin-top: var(--s-1); font-family: var(--font-head); font-weight: 600; font-size: 30px; line-height: 1; color: var(--orange-hot); }
.calc .btn { margin-top: var(--s1); }
.calc .check { margin-top: auto; padding-top: var(--s2); font-size: 12px; }

/* ---------- developer ---------- */
.dev__head { display: flex; justify-content: space-between; align-items: flex-end; align-items: last baseline; gap: var(--s2); }
.dev__docs { flex: none; font-size: var(--fs-text); font-weight: 500; color: var(--orange-hot); background: none; border: 0; padding: 0; text-decoration: underline; text-underline-offset: 3px; }
.dev__docs:hover { color: var(--navy); }
.dev__body { display: grid; grid-template-columns: 1fr 505px; gap: var(--s2); margin-top: var(--s3); align-items: center; }
.dev__stats { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s3) var(--s2); }
.stat { position: relative; padding: var(--s0) var(--s3) var(--s0) 0; cursor: default; }
.stat__num { font-family: var(--font-head); font-weight: 600; font-size: var(--fs-h2); line-height: 1; letter-spacing: -0.04em; text-transform: uppercase; color: var(--navy); transition: color .35s; }
.stat__num sup { font-size: .5em; }
.stat .text { margin-top: var(--s-1); }
.stat__plus { position: absolute; right: var(--s1); top: var(--s1); width: 22px; height: 22px; transition: transform .45s var(--ease-out), color .35s; }
.stat.is-active .stat__num { color: var(--orange); }
.stat.is-active .stat__plus { transform: rotate(45deg); color: var(--orange); }
.dev__photo { position: relative; aspect-ratio: 505 / 276; overflow: hidden; }
.dev__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.05); transition: opacity .7s var(--ease-out), transform 1.2s var(--ease-out); }
.dev__photo img.is-active { opacity: 1; transform: none; }

/* ---------- footer ---------- */
.footer { position: relative; margin-top: calc(var(--s6) / 2); padding: var(--s5) 0 var(--s3); background: var(--navy); color: var(--white); overflow: hidden; }
.footer__grid { position: relative; display: grid; grid-template-columns: 300px 1fr 190px 270px; gap: var(--s3); }
.footer__form { position: relative; z-index: 2; }
.footer__form form { margin-top: var(--s2); }
.footer__form .field + .field { margin-top: var(--s1); }
.footer__form .btn { margin-top: var(--s2); }
.footer__mark { position: absolute; left: calc(50% - 220px); bottom: -40px; width: 292px; z-index: 1; pointer-events: none; }
.footer__col { position: relative; z-index: 2; }
.footer__col .h3 + * { margin-top: var(--s0); }
.footer__col ul { margin: 0; padding: 0; list-style: none; }
.footer__col li { font-size: var(--fs-text); line-height: 1.6; }
.footer__col a { text-decoration: none; transition: color .25s; }
.footer__col a:hover { color: var(--orange); }
.footer__col .block + .block { margin-top: var(--s2); }
.social a { display: inline-flex; align-items: center; gap: var(--s-1); }
.social svg { width: 10px; height: 10px; color: var(--orange); transition: transform .3s var(--ease-out); }
.social a:hover svg { transform: translate(2px, -2px); }
.footer__bottom { position: relative; z-index: 2; display: grid; grid-template-columns: 300px 1fr 190px 270px; gap: var(--s3); margin-top: var(--s4); font-family: var(--font-head); font-size: 18px; text-transform: uppercase; }
.footer__bottom span:first-child { grid-column: 3; white-space: nowrap; }
.footer__bottom span:last-child { grid-column: 4; }

/* ---------- modals ---------- */
.modal { position: fixed; z-index: 100; inset: 0; display: grid; place-items: center; padding: var(--s4) 20px; overflow-y: auto; visibility: hidden; opacity: 0; transition: opacity .35s var(--ease-out), visibility 0s .35s; }
.modal.is-open { visibility: visible; opacity: 1; transition: opacity .35s var(--ease-out); }
.modal__overlay { position: fixed; inset: 0; background: rgba(8, 25, 36, .78); }
.modal__box { position: relative; width: min(760px, 100%); background: #fafafa; transform: translate3d(0, 24px, 0) scale(.98); transition: transform .5s var(--ease-out); }
.modal.is-open .modal__box { transform: none; }
.modal__close { position: fixed; z-index: 3; right: var(--s1); top: var(--s1); width: 36px; height: 36px; border: 0; background: none; color: var(--white); }
.modal__close svg { width: 100%; height: 100%; }
.modal__back { position: fixed; z-index: 3; left: var(--s1); top: var(--s2); border: 0; background: none; color: var(--white); font-size: 14px; }
.modal--docs .modal__box { padding: var(--s3); }
.modal--docs ul { margin: var(--s2) 0 0; padding: 0; list-style: none; font-size: 20px; line-height: 2; }
.modal--docs a { color: var(--orange-hot); text-decoration: none; }
.modal--docs a:hover { text-decoration: underline; }
.modal--order .modal__box { padding: var(--s3); background: var(--navy); color: var(--white); text-align: center; }
.modal--order .modal__title { margin: 0; font-size: 36px; font-weight: 600; }
.modal--order .modal__sub { margin: var(--s0) 0 0; color: #9aa6ad; font-size: 15px; }
.modal--order form { margin-top: var(--s2); text-align: left; }
.modal--order .input { height: 60px; font-size: 16px; }
.modal--order .field + .field { margin-top: var(--s1); }
.modal--order .btn { margin-top: var(--s2); min-height: 60px; }
.modal--order .form-success { background: var(--navy-2); color: var(--white); text-align: center; }
.modal--wide .modal__box { width: min(1240px, 100%); }
.product { display: grid; grid-template-columns: 1fr 380px; gap: var(--s3); min-height: 714px; padding: var(--s3); background: var(--gray-bg); }
.product__info { text-align: center; }
.product__info .h3 { font-size: 34px; }
.product__select { display: inline-flex; flex-direction: column; align-items: flex-start; gap: var(--s-1); margin-top: var(--s3); font-size: 14px; }
.product__select select { min-width: 150px; height: 28px; padding: 0 var(--s0); border: 1px solid #ddd; border-radius: 3px; background: var(--white); font: inherit; font-size: 14px; }
.product__info .btn { display: flex; margin: var(--s2) auto 0; min-width: 172px; }
.product__descr { margin-top: var(--s2); color: var(--text-muted); }
.gallery { position: relative; display: flex; flex-direction: column; min-width: 0; }
.gallery__stage { position: relative; flex: 1; min-height: 420px; overflow: hidden; }
.gallery__track { display: flex; height: 100%; transition: transform .6s var(--ease-out); }
.gallery__slide { flex: 0 0 100%; display: grid; place-items: center; }
.gallery__slide img { max-width: 100%; max-height: 640px; object-fit: contain; user-select: none; -webkit-user-drag: none; }
.gallery__arrow { position: absolute; top: 50%; z-index: 2; display: grid; place-items: center; width: 40px; height: 40px; margin-top: -20px; border: 0; border-radius: 50%; background: var(--white); color: var(--navy); box-shadow: 0 4px 16px rgba(8, 25, 36, .12); transition: transform .3s var(--ease-out), opacity .3s; }
.gallery__arrow:hover { transform: scale(1.08); }
.gallery__arrow--prev { left: var(--s0); }
.gallery__arrow--next { right: var(--s0); }
.gallery__arrow[hidden] { display: none; }
.gallery__arrow svg { width: 18px; height: 18px; }
.gallery__thumbs { display: flex; gap: var(--s0); margin-top: var(--s1); overflow-x: auto; scrollbar-width: thin; }
.gallery__thumb { flex: none; width: 60px; height: 60px; padding: 0; border: 2px solid transparent; background: none; opacity: .6; transition: opacity .3s, border-color .3s; }
.gallery__thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery__thumb.is-active { opacity: 1; border-color: var(--orange); }
.album { display: grid; grid-template-columns: 60px 1fr; gap: var(--s0); padding: var(--s3); background: var(--gray-bg); }
.album .gallery__thumbs { flex-direction: column; margin: 0; max-height: 460px; overflow-x: hidden; overflow-y: auto; scrollbar-width: none; }
.album .gallery__thumbs::-webkit-scrollbar { display: none; }
.album .gallery__slide img { width: 100%; max-height: none; aspect-ratio: 610 / 457; object-fit: cover; }
.album__title { grid-column: 1 / -1; margin-top: var(--s3); text-align: center; }
.album__count { grid-column: 1 / -1; margin-top: var(--s1); text-align: center; color: var(--text-muted); }
.modal--album .modal__box { width: min(760px, 100%); }

/* ---------- cookie ---------- */
.cookie { position: fixed; z-index: 90; left: 20px; bottom: 20px; display: flex; align-items: center; gap: var(--s2); max-width: 560px; padding: var(--s1) var(--s2); border-radius: 12px; background: var(--white); box-shadow: 0 12px 40px -12px rgba(8, 25, 36, .35); font-size: 14px; line-height: 1.35; transform: translate3d(0, 140%, 0); transition: transform .6s var(--ease-out); }
.cookie.is-shown { transform: none; }
.cookie a { color: var(--orange-hot); }
.cookie .btn { min-height: 40px; flex: none; }

/* ---------- legal pages ---------- */
.legal { padding: var(--s4) 0 var(--s5); }
.legal__back { display: inline-block; margin-top: var(--s2); color: var(--orange-hot); }
.legal h1 { margin: var(--s3) 0 var(--s2); font-family: var(--font-head); font-weight: 600; font-size: 52px; line-height: 1; text-transform: uppercase; letter-spacing: -0.03em; }
.legal__body { max-width: 900px; font-size: 16px; line-height: 1.6; }
.legal__body a { color: var(--orange-hot); }

/* ---------- responsive ---------- */
@media (max-width: 1279px) {
  .orbit { transform: scale(.9); transform-origin: top center; height: 816px; margin-bottom: -80px; }
  .footer__grid, .footer__bottom { grid-template-columns: 270px 1fr 180px 250px; gap: var(--s2); }
}

@media (max-width: 1199px) {
  .hero { --edge: calc(max(20px, 50vw - 620px) + 480px); }
  .hero__content { --tf: 72px; }
  .hero__lead { max-width: 460px; }
  .offer { flex-basis: calc((var(--cw) - var(--gap)) / 2.15); }
  .video-sec__head > .btn { min-width: 0; }
  /* circle -> slider */
  .orbit { display: none; }
  .mslider { display: block; position: relative; min-width: 0; margin-top: var(--s3); }
  .mslider__viewport { overflow: hidden; touch-action: pan-y; }
  .mslider__track { display: flex; transition: transform .6s var(--ease-out); }
  .mslider__slide { flex: 0 0 100%; padding-inline: 2px; text-align: center; }
  .mslider__nav { display: flex; justify-content: center; gap: var(--s0); margin-top: var(--s2); }
  .mslider--center .mslider__img { width: min(590px, 100%); aspect-ratio: 1; margin: 0 auto; border: 1px solid var(--orange-soft); border-radius: 50%; padding: var(--s0); }
  .mslider--center .mslider__img img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
  .mslider--center .orbit__title { margin-top: var(--s2); font-family: var(--font-head); font-weight: 600; font-size: var(--fs-h3); letter-spacing: -0.04em; text-transform: uppercase; color: var(--orange-hot); }
  .mslider--center .text { margin-top: var(--s0); }
  /* scenes -> plain stacks / sliders */
  .scene { height: auto; }
  .scene__sticky { display: none; }
  .scene__mobile { display: block; }
  .scene__mobile .text { margin-top: var(--s2); color: var(--text-muted); }
  .scene__stack figure { margin: var(--s2) 0 0; }
  .scene__stack img, .mslider--amen img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
  .scene__stack .h2 { margin-top: var(--s4); }
  .mslider--amen { margin-top: 0; }
  .mslider--amen .mslider__slide { text-align: left; }
  .mslider--amen .mslider__slide > img { margin-top: var(--s2); }
  .mslider--amen .mslider__nav { justify-content: flex-start; }
  /* quality */
  .quality__head { grid-template-columns: 1fr; gap: var(--s2); }
  /* cards become a swipeable row that bleeds to the screen edge */
  .quality__grid { display: flex; margin-top: var(--s3); margin-inline: calc(50% - 50vw); padding-inline: calc(50vw - 50%); scroll-padding-inline: calc(50vw - 50%); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
  .quality__grid::-webkit-scrollbar { display: none; }
  .qcard { flex: 0 0 min(360px, 78%); scroll-snap-align: start; }
  .catalog__grid { grid-template-columns: repeat(2, 1fr); }
  .parking { height: 620px; }
  .time__grid { grid-template-columns: 1fr; }
  .time__form { grid-template-columns: 1fr 38%; }
  .form-row { grid-template-columns: 1fr 1fr; }
  .form-row .btn { grid-column: 1 / -1; }
  .quiz__grid { grid-template-columns: 1fr; }
  .quiz__img { display: none; }
  .buy__layout { grid-template-columns: 1fr; gap: var(--s3); }
  .calc { max-width: 520px; }
  .dev__body { grid-template-columns: 1fr; }
  .dev__stats, .dev__photo { display: none; }
  .mslider--dev { margin-top: 0; }
  .mslider--dev .mslider__slide img { width: min(590px, 100%); aspect-ratio: 1; object-fit: cover; margin: 0 auto; }
  .mslider--dev .stat__num { margin-top: var(--s2); color: var(--orange); font-size: 40px; }
  .mslider--dev .text { margin-top: var(--s0); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__form { grid-column: 1 / -1; max-width: 420px; }
  .footer__spacer { display: none; }
  .footer__mark { left: auto; right: -40px; width: 220px; opacity: .6; }
  .footer__bottom { grid-template-columns: 1fr; gap: var(--s0); }
  .footer__bottom span:first-child, .footer__bottom span:last-child { grid-column: auto; }
  .product { grid-template-columns: 1fr; min-height: 0; }
}

@media (max-width: 767px) {
  .container { width: calc(100% - 20px); }
  .header { padding-top: var(--s0); }
  .header__logo img { width: 95px; }
  .header__actions { gap: var(--s-1); }
  .header__pick { min-width: 0; padding-inline: var(--s1); min-height: 40px; font-size: 14px; }
  .header__phone { display: none; }
  .header__call { display: grid; }
  .hero__content { padding-top: var(--s3); }
  .hero__content { --tf: 48px; }
  .hero__title { letter-spacing: -0.03em; }
  .hero__tags { flex-direction: column; gap: var(--s0); }
  .hero__quiz { width: 100%; justify-content: space-between; font-size: 16px; }
  .hero__badge { --size: 120px; }
  .offers__grid { --cw: calc(100cqw - 20px); --gap: var(--s0); scroll-padding-inline: 10px; margin-left: -10px; padding-left: 10px; }
  .offer { flex-basis: 280px; }
  .offers__nav { display: none; }
  .offers__bar { margin-top: var(--s2); }
  .video-sec__head > .btn { display: none; }
  .video-sec__btn-m { display: flex; margin-top: var(--s1); }
  .city__bar > .btn { display: none; }
  .cmap { --in: 10px; }
  .cpt__label { max-width: 220px; }
  .cpt__title { font-size: 20px; }
  .cpt__card { width: 240px; }
  .city__map-btn-m { display: flex; margin-top: var(--s1); }
  .catalog__grid { grid-template-columns: 1fr; }
  .card .btn { min-width: 0; width: calc(100% - 2 * var(--s2)); }
  .parking { height: 540px; }
  .parking__text { bottom: var(--s3); width: auto; right: 0; }
  .parking::after { background: linear-gradient(0deg, rgba(4, 12, 18, .92) 0%, rgba(4, 12, 18, .72) 45%, rgba(4, 12, 18, 0) 85%); }
  .parking__badge { --size: 116px; top: var(--s2); }
  .time__calc, .time__body { padding: var(--s2) var(--s1); }
  .time__calc, .time__form { border-radius: 20px; }
  .time__form { grid-template-columns: 1fr; }
  .time__photo { order: -1; height: 190px; min-height: 0; }
  .time__body .form-row { grid-template-columns: 1fr; }
  .time__result { padding: var(--s1); }
  .time__result b { font-size: 54px; }
  .form-row { grid-template-columns: 1fr; gap: var(--s1); }
  .progress__head { flex-direction: column; align-items: stretch; gap: var(--s0); }
  .progress__meter { justify-content: space-between; }
  .quiz__card { padding: var(--s2) var(--s1); min-height: 460px; }
  .quiz__opts { grid-template-columns: 1fr; }
  .banks img { height: 28px; }
  .calc { padding: var(--s2) var(--s1); }
  .dev__head { flex-direction: column; align-items: flex-start; gap: var(--s1); }
  .footer { padding-top: var(--s4); }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: var(--s3) var(--s1); }
  .footer__mark { display: none; }
  .modal { padding: var(--s4) 10px; }
  .modal--docs .modal__box, .modal--order .modal__box { padding: var(--s3) var(--s2); }
  .modal--docs ul { font-size: 16px; line-height: 1.8; }
  .product, .album { padding: var(--s2) var(--s1); }
  .gallery__stage { min-height: 260px; }
  .album { grid-template-columns: 1fr; }
  .album .gallery__thumbs { flex-direction: row; order: 2; max-height: none; }
  .album__title { margin-top: var(--s2); }
  .cookie { left: 10px; right: 10px; bottom: 10px; flex-direction: column; align-items: stretch; gap: var(--s1); }
  .legal h1 { font-size: 36px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  [data-reveal] { opacity: 1; transform: none; }
}
