/* Номерика · главная v3 (04.11.2026), в одном стиле с витриной сайтов sites.nomerica.ru
 * type: Onest 400/600/800 (свой файл, см. landing/fonts/onest.css) · palette: светлая бумага,
 * чернила, синий бренда; тёмные сцены для экранов кабинета, которые сами тёмные
 * idea: живой кабинет в 3D над парящими кубиками из знака, сцены на прокрутке */

:root {
  --paper: #f3f5f9;
  --paper-2: #e7ecf4;
  --line: #d3dbe8;
  --ink: #0c1222;
  --ink-soft: #46506a;
  --accent: #2f62d8;
  --accent-deep: #234cb3;
  --dark: #0a0f1c;
  --dark-2: #151c2e;
  --on-dark: #ffffff;
  --on-dark-soft: #b4bdd1;
  --on-dark-faint: rgba(255, 255, 255, 0.22);
  --gold: #9dbbff;
  --ok: #1f8a4c;
  --err: #c2332b;
  --glass: rgba(10, 15, 28, 0.66);
  --top-bg: rgba(243, 245, 249, 0.8);
  --tile-a: #e4ecff;
  --tile-b: #8fb0fb;
  --tile-c: #3f73ea;
  --tile-glow: rgba(47, 98, 216, 0.35);
  --shot-shadow: rgba(10, 15, 28, 0.35);

  --font: "Onest", ui-sans-serif, system-ui, sans-serif;
  --step-small: 0.9375rem;
  --step-body: clamp(1.0625rem, 1rem + 0.2vw, 1.1875rem);
  --step-lead: clamp(1.125rem, 1.03rem + 0.4vw, 1.375rem);
  --step-h3: clamp(1.375rem, 1.2rem + 0.7vw, 1.875rem);
  --step-h2: clamp(2.125rem, 1.5rem + 2.5vw, 3.75rem);
  --step-h1: clamp(2.375rem, 1.3rem + 3.1vw, 4.125rem);

  --wrap: 1240px;
  --m: clamp(16px, 4vw, 40px);
  --section: clamp(88px, 10vw, 152px);
  --radius: 20px;
  --radius-s: 12px;
  --t: 160ms cubic-bezier(.33, 1, .68, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html, body { overflow-x: clip; }
html { background: var(--paper); scroll-behavior: smooth; scroll-padding-top: 72px; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font); font-size: var(--step-body); line-height: 1.5; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { margin: 0; font-weight: 800; letter-spacing: -0.025em; line-height: 1.05; overflow-wrap: break-word; min-width: 0; text-wrap: balance; }
p, figure { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--gold); color: var(--ink); }

/* одна ширина и одинаковые поля у всех полос */
.top, .hero, .say, .pains, .how, .who, .geo, .free, .demo, .steps, .pms, .limits, .faq, .contact, .foot {
  padding-inline: max(var(--m), calc((100% - var(--wrap)) / 2));
}

/* кнопки */
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 26px;
  background: var(--accent); color: var(--on-dark); border: 2px solid var(--accent); border-radius: 999px;
  font: 600 1.0625rem/1.2 var(--font); text-decoration: none; text-align: center; cursor: pointer;
  transition: background-color var(--t), border-color var(--t), color var(--t), transform var(--t);
}
.btn:hover { background: var(--accent-deep); border-color: var(--accent-deep); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: 0.6; cursor: progress; }
.btn--line { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--line:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.btn--small { min-height: 44px; padding: 0 20px; font-size: 1rem; white-space: nowrap; }
.btn--big { min-height: 60px; padding: 0 34px; font-size: 1.1875rem; background: var(--on-dark); border-color: var(--on-dark); color: var(--ink); }
.btn--big:hover { background: var(--gold); border-color: var(--gold); }
.btn--ghost { background: transparent; color: var(--on-dark); border-color: var(--on-dark-faint); }
.btn--ghost:hover { background: transparent; border-color: var(--on-dark); }

/* шапка */
.top {
  position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 24px; height: 72px;
  background: var(--top-bg); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  transition: background-color 300ms ease-out;
}
.top__mark { display: inline-flex; align-items: center; min-height: 44px; flex: none; }
.top__mark img { width: auto; height: 28px; }
.top__logo--dark { display: none; }
.top--dark { background: var(--glass); }
.top--dark .top__logo { display: none; }
.top--dark .top__logo--dark { display: block; }
.top__nav { display: flex; gap: 2px; margin-left: auto; }
.top__nav a, .top__login { display: inline-flex; align-items: center; min-height: 44px; padding: 0 9px; text-decoration: none; color: var(--ink-soft); font-size: 0.9375rem; white-space: nowrap; transition: color var(--t); }
.top__nav a:hover, .top__login:hover { color: var(--ink); }
.top__login { font-weight: 600; color: var(--ink); }
.top--dark .top__nav a { color: var(--on-dark-soft); }
.top--dark .top__nav a:hover, .top--dark .top__login { color: var(--on-dark); }

/* первый экран */
.hero {
  display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: clamp(32px, 4vw, 64px); align-items: center;
  min-height: min(calc(100svh - 72px), 880px); padding-block: clamp(32px, 4vw, 56px) clamp(56px, 7vw, 96px);
}
.hero h1 { font-size: var(--step-h1); line-height: 1; }
.hero__lead { margin-top: 28px; max-width: 34em; font-size: var(--step-lead); color: var(--ink-soft); line-height: 1.45; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero__note { margin-top: 18px; max-width: 36em; font-size: var(--step-small); color: var(--ink-soft); }
.hero__note a { font-weight: 600; color: var(--ink); text-underline-offset: 3px; }
.hero__facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 44px; }
.hero__facts b { display: block; font-size: clamp(2rem, 1.6rem + 1.4vw, 2.75rem); font-weight: 800; line-height: 1; letter-spacing: -0.03em; color: var(--accent); }
.hero__facts i { font-style: normal; }
.hero__facts span { display: block; margin-top: 8px; font-size: var(--step-small); color: var(--ink-soft); line-height: 1.35; }

.hero__stage { position: relative; perspective: 1400px; }
.hero__pic { position: relative; z-index: 1; margin-right: clamp(0px, 2vw, 24px); }
/* Боковую панель кабинета срезаем: на снимках под логотипом осталась подпись прежнего бренда. */
.hero__screen { aspect-ratio: 4 / 5; max-height: 74svh; overflow: hidden; border-radius: var(--radius); background: var(--dark-2); box-shadow: 0 50px 100px -40px var(--shot-shadow); }
.hero__screen img { width: 117%; max-width: none; margin-left: -16.5%; transform: translateY(calc(var(--pan, 0) * -1%)); }
.hero__chip { position: absolute; left: clamp(-64px, -5vw, -16px); bottom: 12%; width: 74%; border-radius: var(--radius-s); border: 4px solid var(--dark-2); box-shadow: 0 40px 80px -24px var(--shot-shadow); }
.hero__pic figcaption { position: absolute; right: 14px; top: 14px; padding: 6px 12px; border-radius: 999px; background: var(--glass); color: var(--on-dark); font-size: 0.875rem; }

/* мысль по словам */
.say { padding-block: var(--section) calc(var(--section) * 0.5); }
.say__text { max-width: 20em; font-size: clamp(1.75rem, 1rem + 3vw, 3.5rem); font-weight: 800; line-height: 1.12; letter-spacing: -0.025em; }

/* что мешает */
.pains { padding-block: calc(var(--section) * 0.5) var(--section); }
.pains h2 { font-size: var(--step-h2); max-width: 15em; }
.pains__list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px clamp(32px, 4vw, 64px); margin-top: 64px; counter-reset: pain; }
.pains__list li { counter-increment: pain; padding-top: 20px; border-top: 2px solid var(--ink); }
.pains__list li::before { content: counter(pain, decimal-leading-zero); display: block; font-weight: 800; font-size: 1.125rem; color: var(--accent); }
.pains__q { margin-top: 16px; font-weight: 800; font-size: clamp(1.375rem, 1.15rem + 0.8vw, 1.75rem); line-height: 1.15; letter-spacing: -0.02em; }
.pains__a { margin-top: 14px; color: var(--ink-soft); }

/* четыре ответа: тёмная сцена с экранами кабинета */
.show { background: var(--dark); color: var(--on-dark); padding-inline: max(var(--m), calc((100% - var(--wrap)) / 2)); }
.show__pin { padding-block: var(--section); }
.show__title { font-size: var(--step-h2); max-width: 15em; }
.show__title span { color: var(--gold); }
.show__list { display: grid; gap: 64px; margin-top: 56px; }
.show__txt b { display: block; font-size: var(--step-h3); line-height: 1.15; letter-spacing: -0.02em; }
.show__txt p { margin-top: 12px; color: var(--on-dark-soft); max-width: 32em; }
.show__img { width: 100%; margin-top: 24px; border-radius: var(--radius-s); box-shadow: 0 40px 120px -30px var(--tile-glow); }

/* как считаем */
.how { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px clamp(40px, 6vw, 96px); align-items: center; padding-block: var(--section); }
.how h2 { font-size: var(--step-h2); }
.how__lead { margin-top: 24px; font-size: var(--step-lead); color: var(--ink-soft); }
.how__screen { overflow: hidden; border-radius: var(--radius-s); background: var(--dark-2); box-shadow: 0 30px 70px -36px var(--shot-shadow); }
.how__screen img { width: 117%; max-width: none; margin-left: -16.5%; }
.how__list { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px 32px; margin-top: 24px; }
.how__list li { padding-top: 20px; border-top: 2px solid var(--ink); }
.how__list b { display: block; font-size: 1.375rem; line-height: 1.2; letter-spacing: -0.015em; }
.how__list span { display: block; margin-top: 10px; color: var(--ink-soft); font-size: 1rem; }

/* разброс результатов */
.who { padding-block: var(--section); background: var(--paper-2); }
.who__head, .geo__head, .pms__head, .limits__head { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 20px 64px; align-items: end; }
.who h2, .geo h2, .pms h2, .limits h2 { font-size: var(--step-h2); }
.who__head p, .geo__head p, .pms__head p, .limits__head p { color: var(--ink-soft); font-size: var(--step-lead); line-height: 1.45; }
.who__list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 56px; }
.res { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-content: start; padding: 32px 28px; background: var(--paper); border-radius: var(--radius); }
.res__name { font-size: 1.25rem; line-height: 1.2; letter-spacing: -0.015em; }
.res__n { color: var(--ink-soft); font-size: var(--step-small); white-space: nowrap; padding-top: 3px; }
.res__median { grid-column: 1 / -1; margin-top: 36px; font-size: clamp(3rem, 2.4rem + 2.4vw, 4.5rem); font-weight: 800; line-height: 1; letter-spacing: -0.04em; color: var(--accent); }
.res__unit { grid-column: 1 / -1; margin-top: 8px; color: var(--ink-soft); font-size: var(--step-small); }
.res__scale { grid-column: 1 / -1; position: relative; height: 12px; margin-top: 32px; border-radius: 999px; background: var(--paper-2); }
.res__span { position: absolute; top: 0; bottom: 0; left: var(--l); right: var(--r); border-radius: 999px; background: linear-gradient(90deg, var(--tile-b), var(--accent)); transform-origin: left center; }
.res__mark { position: absolute; top: 50%; left: var(--m); width: 22px; height: 22px; margin: -11px 0 0 -11px; border-radius: 50%; background: var(--ink); border: 4px solid var(--paper); }
.res__legend { grid-column: 1 / -1; display: flex; justify-content: space-between; margin-top: 10px; color: var(--ink-soft); font-size: var(--step-small); font-weight: 600; }
.who__note { margin-top: 32px; max-width: 36em; color: var(--ink-soft); }

/* география */
.geo { padding-block: var(--section); }
.geo__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px 20px; margin-top: 56px; }
.geo__item img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius-s); transition: transform 500ms cubic-bezier(.16, 1, .3, 1); }
.geo__item:hover img { transform: translateY(-4px) scale(1.015); }
.geo__item h3 { margin-top: 14px; font-size: 1.1875rem; line-height: 1.25; letter-spacing: -0.01em; }
.geo__item p { margin-top: 4px; color: var(--ink-soft); font-size: var(--step-small); line-height: 1.35; }

/* бесплатный год */
.free { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: 48px clamp(40px, 6vw, 96px); align-items: center; padding-block: var(--section); background: var(--paper-2); }
.free__zero { font-size: clamp(7rem, 4rem + 14vw, 17rem); font-weight: 800; line-height: 0.85; letter-spacing: -0.06em; color: var(--accent); white-space: nowrap; }
.free__till { margin-top: 20px; font-size: var(--step-lead); font-weight: 600; }
.free h2 { font-size: clamp(2rem, 1.5rem + 1.8vw, 3rem); }
.free__lead { margin-top: 20px; color: var(--ink-soft); }
.free__list { display: grid; gap: 12px; margin-top: 28px; }
.free__list li { position: relative; padding-left: 28px; font-weight: 600; line-height: 1.35; }
.free__list li::before { content: ""; position: absolute; left: 2px; top: 6px; width: 12px; height: 7px; border-left: 2.5px solid var(--accent); border-bottom: 2.5px solid var(--accent); transform: rotate(-45deg); }
.free__later { margin-top: 28px; color: var(--ink-soft); font-size: 1rem; }
.free .btn { margin-top: 32px; }

/* демо-кабинет */
.demo { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px clamp(40px, 6vw, 96px); align-items: center; padding-block: var(--section); background: var(--dark); color: var(--on-dark); overflow: hidden; }
.demo > :not(.tiles) { position: relative; z-index: 1; }
.demo h2 { font-size: var(--step-h2); }
.demo__text p { margin-top: 24px; max-width: 30em; color: var(--on-dark-soft); font-size: var(--step-lead); }
.demo__text .demo__faint { margin-top: 16px; font-size: 1rem; }
.form { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; padding: clamp(24px, 3vw, 40px); background: var(--dark-2); border-radius: var(--radius); }
.form__field span { display: block; margin-bottom: 8px; font-size: var(--step-small); color: var(--on-dark-soft); }
.form__field input { width: 100%; min-height: 52px; padding: 0 16px; border: 2px solid var(--on-dark-faint); border-radius: var(--radius-s); background: var(--dark); color: var(--on-dark); font: 400 1.0625rem var(--font); transition: border-color var(--t); }
.form__field input:hover { border-color: var(--on-dark-soft); }
.form__field input:focus-visible { outline: none; border-color: var(--gold); }
.form__consent { grid-column: 1 / -1; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; align-items: start; font-size: var(--step-small); color: var(--on-dark-soft); cursor: pointer; }
.form__consent input { width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--accent); }
.form__consent a { color: var(--on-dark); text-underline-offset: 3px; }
.form .btn { grid-column: 1 / -1; margin-top: 8px; }
.form__msg { grid-column: 1 / -1; min-height: 1.5em; font-size: var(--step-small); font-weight: 600; }
.form__msg--ok { color: var(--gold); }
.form__msg--err { color: #ff9a92; }

/* три шага */
.steps { padding-block: var(--section); }
.steps h2 { font-size: var(--step-h2); max-width: 14em; }
.steps__list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 56px; counter-reset: step; }
.steps__list li { counter-increment: step; padding: 32px 28px 36px; background: var(--paper-2); border-radius: var(--radius); }
.steps__list li:last-child { background: var(--ink); color: var(--on-dark); }
.steps__list li::before { content: counter(step); display: block; font-weight: 800; font-size: clamp(2.5rem, 2rem + 1.5vw, 3.5rem); line-height: 1; color: var(--accent); letter-spacing: -0.03em; }
.steps__list li:last-child::before { color: var(--gold); }
.steps__list b { display: block; margin-top: 48px; font-size: 1.375rem; letter-spacing: -0.015em; }
.steps__list span { display: block; margin-top: 10px; font-size: 1rem; color: var(--ink-soft); }
.steps__list li:last-child span { color: var(--on-dark-soft); }
.steps__note { margin-top: 28px; max-width: 36em; color: var(--ink-soft); }

/* системы бронирования */
.pms { padding-block: 0 var(--section); }
.pms__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 56px; }
.pms__card { padding: clamp(28px, 3vw, 44px); background: var(--paper-2); border-radius: var(--radius); }
.pms__card h3 { font-size: var(--step-h3); }
.pms__intro { margin-top: 14px; color: var(--ink-soft); }
.pms__steps { display: grid; gap: 14px; margin-top: 28px; counter-reset: pms; }
.pms__steps li { counter-increment: pms; display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 14px; align-items: start; line-height: 1.4; }
.pms__steps li::before { content: counter(pms); display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--accent); color: var(--on-dark); font-weight: 800; font-size: 1rem; }
.pms__steps li { padding-top: 0; }
.pms__time { margin-top: 28px; font-weight: 600; color: var(--accent-deep); }
.pms__note { margin-top: 28px; max-width: 36em; color: var(--ink-soft); }

/* границы */
.limits { padding-block: var(--section); background: var(--paper-2); }
.limits__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px clamp(32px, 5vw, 80px); margin-top: 64px; }
.limits__list li { padding-top: 20px; border-top: 2px solid var(--ink); }
.limits__list b { display: block; font-size: clamp(1.375rem, 1.15rem + 0.8vw, 1.75rem); line-height: 1.15; letter-spacing: -0.02em; }
.limits__list span { display: block; margin-top: 14px; color: var(--ink-soft); max-width: 32em; }

/* вопросы */
.faq { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 32px 64px; padding-block: var(--section); }
.faq h2 { font-size: var(--step-h2); }
.faq__list { display: grid; gap: 8px; align-content: start; }
.faq details { padding: 0 24px; background: var(--paper-2); border-radius: var(--radius-s); }
.faq summary { display: flex; justify-content: space-between; gap: 24px; align-items: center; min-height: 72px; padding: 16px 0; cursor: pointer; list-style: none; font-weight: 600; font-size: clamp(1.125rem, 1.05rem + 0.35vw, 1.375rem); line-height: 1.3; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; border: 1.5px solid var(--ink); font-weight: 400; font-size: 1.375rem; line-height: 1; transition: transform var(--t); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 56px 22px 0; color: var(--ink-soft); max-width: 40em; }

/* финал */
.contact { position: relative; display: grid; justify-items: center; text-align: center; padding-block: var(--section); background: var(--dark); color: var(--on-dark); overflow: hidden; }
.contact > :not(.tiles) { position: relative; z-index: 1; }
.contact h2 { font-size: var(--step-h2); max-width: 13em; }
.contact p { margin-top: 24px; max-width: 34em; color: var(--on-dark-soft); font-size: var(--step-lead); }
.contact__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 40px; }
.contact__actions .btn--ghost { min-height: 60px; }

/* подвал */
.foot { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 16px 48px; align-items: center; padding-block: 56px; background: var(--dark); color: var(--on-dark-soft); font-size: 1rem; }
.foot__mark img { width: auto; height: 26px; }
.foot__links { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 4px 28px; }
.foot__links a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; transition: color var(--t); }
.foot__links a:hover { color: var(--gold); }

@media (max-width: 1180px) {
  .top__nav a { padding: 0 6px; font-size: 0.875rem; }
}
@media (max-width: 1100px) {
  .top__nav { display: none; }
  .top__login { margin-left: auto; }
  .how__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .geo__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .hero { grid-template-columns: minmax(0, 1fr); min-height: 0; gap: 48px; }
  .hero__pic { margin: 0 0 24px 32px; }
  .hero__screen { aspect-ratio: 4 / 3.4; max-height: none; }
  .hero__chip { left: -32px; width: 78%; }
  .pains__list, .who__list, .limits__list, .steps__list, .pms__list { grid-template-columns: minmax(0, 1fr); }
  .pains__list { gap: 40px; margin-top: 48px; }
  .how, .free, .demo, .faq, .who__head, .geo__head, .pms__head, .limits__head { grid-template-columns: minmax(0, 1fr); }
  .geo__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 16px; }
  .steps__list li { display: grid; grid-template-columns: 56px minmax(0, 1fr); padding: 24px; }
  .steps__list li::before { grid-row: span 2; }
  .steps__list b { margin-top: 4px; }
  .foot { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 560px) {
  :root { --radius: 16px; }
  .top { gap: 12px; height: 64px; }
  .top__mark img { height: 22px; }
  .top__login { display: none; }
  .top .btn--small { margin-left: auto; padding: 0 16px; font-size: 0.9375rem; }
  .hero { padding-top: 28px; }
  .hero h1 { font-size: clamp(2.125rem, 9.4vw, 3rem); }
  .hero__lead { margin-top: 20px; }
  .hero__actions { flex-direction: column; margin-top: 28px; }
  .hero__actions .btn { width: 100%; }
  .hero__facts { gap: 12px; margin-top: 36px; }
  .hero__facts span { font-size: 0.875rem; }
  .hero__pic { margin-left: 20px; }
  .hero__screen { aspect-ratio: 4 / 4.4; }
  .hero__chip { left: -20px; width: 92%; border-width: 3px; }
  .hero__pic figcaption { display: none; }
  .how__list { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .geo__grid { gap: 24px 12px; }
  .geo__item h3 { font-size: 1.0625rem; }
  .geo__item p { font-size: 0.875rem; }
  .res { padding: 28px 22px; }
  .form { grid-template-columns: minmax(0, 1fr); }
  .faq details { padding: 0 16px; }
  .faq details p { padding-right: 0; }
  .contact__actions { flex-direction: column; width: 100%; }
  .contact__actions .btn { width: 100%; }
}


/* ===== движение и 3D (включается классом .motion из motion.js) ===== */

/* парящие кубики из знака Номерики */
.tiles { position: absolute; inset: 0; pointer-events: none; transform-style: preserve-3d; }
.tile {
  position: absolute; left: var(--x); top: var(--y); width: var(--s); aspect-ratio: 1; z-index: 0;
  transform: translate3d(calc(var(--mx, 0) * var(--d) * 24px), calc(var(--my, 0) * var(--d) * 24px - var(--sy, 0) * var(--d) * 0.35px), 0);
}
.tile--front { z-index: 2; }
.tile::before {
  content: ""; position: absolute; inset: 0; border-radius: 26%;
  background: linear-gradient(150deg, var(--tile-a), var(--tile-b) 55%, var(--tile-c));
  box-shadow: 0 24px 48px -14px var(--tile-glow), inset 0 1px 1px var(--on-dark);
  transform: rotateX(16deg) rotateY(-18deg) rotate(var(--r));
}
.motion .tile::before { animation: float var(--t) ease-in-out infinite alternate; }
@keyframes float {
  from { transform: translate3d(0, -12px, 0) rotateX(16deg) rotateY(-18deg) rotate(var(--r)); }
  to { transform: translate3d(0, 14px, 0) rotateX(-10deg) rotateY(14deg) rotate(calc(var(--r) + 10deg)); }
}
.tiles--demo .tile, .tiles--contact .tile { opacity: 0.5; }
/* Кубики в тёмных блоках всегда под текстом: 3D-слой иначе вылезает поверх кнопок. */
.demo, .contact { isolation: isolate; }
.tiles--demo, .tiles--contact { z-index: -1; }

/* экран кабинета в 3D за курсором, виджет «вы и соседи» парит ближе */
.motion .hero__pic { transform-style: preserve-3d; transform: rotateY(calc(var(--mx, 0) * 7deg - 6deg)) rotateX(calc(var(--my, 0) * -5deg + 2deg)); }
.motion .hero__chip { transform: translateZ(90px); }

/* заголовок поднимается по словам */
.hero h1 .w { display: inline-block; }
.js .hero h1 .w { animation: rise 1000ms cubic-bezier(.16, 1, .3, 1) both; transform-origin: 50% 100%; }
.js .hero h1 .w:nth-child(2) { animation-delay: 60ms; }
.js .hero h1 .w:nth-child(3) { animation-delay: 120ms; }
.js .hero h1 .w:nth-child(4) { animation-delay: 180ms; }
.js .hero h1 .w:nth-child(5) { animation-delay: 260ms; }
.js .hero h1 .w:nth-child(6) { animation-delay: 320ms; }
.js .hero h1 .w:nth-child(7) { animation-delay: 380ms; }
.js .hero h1 .w:nth-child(8) { animation-delay: 440ms; }
.js .hero h1 .w:nth-child(9) { animation-delay: 500ms; }
.js .hero__lead, .js .hero__actions, .js .hero__note, .js .hero__facts { animation: fade 900ms 480ms cubic-bezier(.16, 1, .3, 1) both; }
.js .hero__stage { animation: fade 1200ms 200ms cubic-bezier(.16, 1, .3, 1) both; }
@keyframes rise { from { opacity: 0; transform: translateY(60%) rotateX(-50deg); } }
@keyframes fade { from { opacity: 0; transform: translateY(32px); } }

/* мысль по словам */
.motion .say__text span { opacity: 0.14; transition: opacity 350ms ease-out; }
.motion .say__text span.on { opacity: 1; }

/* четыре ответа: сцена закрепляется, прокрутка листает экраны.
   Только на экранах повыше: на низких закреплённая сцена не помещается. */
@media (min-height: 640px) {
  .motion .show { height: 400vh; }
  .motion .show__pin { position: sticky; top: 0; height: 100vh; height: 100svh; display: flex; flex-direction: column; justify-content: center; padding-block: 96px 40px; overflow: hidden; }
  .motion .show__title { font-size: clamp(2rem, 1.4rem + 2vw, 3.25rem); }
  .motion .show__list { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); grid-template-rows: repeat(4, auto); gap: 0 clamp(32px, 4vw, 64px); align-items: center; margin-top: clamp(24px, 4vh, 48px); }
  .motion .show__list li { display: contents; }
  .motion .show__txt { grid-column: 1; padding: 14px 0 14px 20px; border-left: 3px solid var(--on-dark-faint); opacity: 0.35; transition: opacity 400ms ease-out, border-color 400ms ease-out; }
  .motion .show__list li:nth-child(1) .show__txt { grid-row: 1; }
  .motion .show__list li:nth-child(2) .show__txt { grid-row: 2; }
  .motion .show__list li:nth-child(3) .show__txt { grid-row: 3; }
  .motion .show__list li:nth-child(4) .show__txt { grid-row: 4; }
  .motion .show__txt b { font-size: 1.25rem; }
  .motion .show__txt p { margin-top: 6px; font-size: 1rem; max-height: 0; overflow: hidden; opacity: 0; }
  .motion .show__list li.on .show__txt { opacity: 1; border-color: var(--gold); }
  .motion .show__list li.on .show__txt p { max-height: none; opacity: 1; }
  .motion .show__img {
    grid-column: 2; grid-row: 1 / span 4; margin: 0; width: min(100%, (100svh - 300px) * 1.6); justify-self: end;
    opacity: 0; transform: perspective(1600px) translateY(calc((1 - var(--a, 1)) * 14%)) rotateX(calc((1 - var(--a, 1)) * 40deg)) scale(calc(0.97 + var(--a, 1) * 0.03 - (1 - var(--a, 1)) * 0.15));
    transform-origin: 50% 100%; transition: opacity 500ms ease-out;
  }
  .motion .show__list li.on .show__img { opacity: calc(0.3 + var(--a, 1) * 0.7); }
}
@media (min-height: 640px) and (max-width: 900px) {
  .motion .show__pin { padding-block: 80px 24px; }
  .motion .show__list { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto; gap: 20px; }
  .motion .show__list li:nth-child(n) .show__txt { grid-row: 1; grid-column: 1; opacity: 0; border: 0; padding: 0; }
  .motion .show__list li.on .show__txt { opacity: 1; }
  .motion .show__img { grid-column: 1; grid-row: 2; width: min(100%, (100svh - 420px) * 1.6); justify-self: center; }
}

/* как считаем: снимок наклоняется за курсором */
.motion .how__shot { transform-style: preserve-3d; transform: perspective(1400px) rotateY(calc(var(--tx, 0) * 6deg)) rotateX(calc(var(--ty, 0) * -5deg)); transition: transform 500ms cubic-bezier(.16, 1, .3, 1), opacity 900ms cubic-bezier(.16, 1, .3, 1); }

/* разброс: полосы вырастают слева направо */
.js .who__list .res__span { transform: scaleX(0); transition: transform 1200ms 300ms cubic-bezier(.16, 1, .3, 1); }
.js .who__list.is-in .res__span { transform: none; }
.js .who__list .res__mark { opacity: 0; transition: opacity 400ms 1300ms ease-out; }
.js .who__list.is-in .res__mark { opacity: 1; }

/* география: карточки появляются лесенкой */
.geo__item:nth-child(4n + 2) { transition-delay: 80ms; }
.geo__item:nth-child(4n + 3) { transition-delay: 160ms; }
.geo__item:nth-child(4n + 4) { transition-delay: 240ms; }

@supports not (overflow-x: clip) {
  .hero { overflow-x: hidden; }
}

/* появление при прокрутке: без JS всё видно сразу */
.js [data-reveal] { opacity: 0; transform: translateY(48px) scale(0.98); transition: opacity 900ms cubic-bezier(.16, 1, .3, 1), transform 900ms cubic-bezier(.16, 1, .3, 1); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
.motion .how__shot[data-reveal].is-in { transform: perspective(1400px) rotateY(calc(var(--tx, 0) * 6deg)) rotateX(calc(var(--ty, 0) * -5deg)); }

@media (max-width: 900px) {
  .hero__stage .tile:nth-child(2), .hero__stage .tile:nth-child(6) { display: none; }
}
@media (max-width: 560px) {
  .tile { width: calc(var(--s) * 0.62); }
  .motion .hero__pic { transform: rotateY(-4deg) rotateX(2deg); }
}

@media (max-width: 360px) {
  .top__mark img { height: 19px; }
  .top .btn--small { padding: 0 12px; font-size: 0.875rem; }
}

@media (prefers-reduced-motion: reduce) {
  .js .hero h1 .w, .js .hero__lead, .js .hero__actions, .js .hero__note, .js .hero__facts, .js .hero__stage { animation: none; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .js .who__list .res__span { transform: none; }
  .js .who__list .res__mark { opacity: 1; }
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
