/* ТОР — система в духе apple.com: белый / #f5f5f7 / чёрный, системный шрифт
   (SF на Apple, Helvetica Neue как в презентации — дальше по стеку), одна сетка.
   Цвета текста — только через переменные секции: тёмная секция сама
   переопределяет --text/--text-2/--line, поэтому тёмный текст на тёмном фоне
   невозможен в принципе. Inline-отступов в разметке нет. */

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

:root {
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
          "Helvetica Neue", Helvetica, Arial, sans-serif;

  --bg: #fff;
  --bg-2: #f5f5f7;
  --text: #1d1d1f;
  --text-2: #6e6e73;
  --text-3: #86868b;
  --line: #d2d2d7;
  --hair: rgba(0, 0, 0, .08);
  --tile: #f5f5f7;
  --accent: #140af0;
  --accent-hover: #0f08c4;
  --brand: #140af0;

  --wide: 1440px;
  --gutter: clamp(20px, 5vw, 48px);
  --section: clamp(96px, 12vw, 168px);
  --r-lg: 28px;
  --r: 18px;

  --ease-out: cubic-bezier(.23, 1, .32, 1);
  --ease-in-out: cubic-bezier(.77, 0, .175, 1);
}

.theme-dark {
  --bg: #000;
  --bg-2: #161617;
  --text: #f5f5f7;
  --text-2: #a1a1a6;
  --text-3: #86868b;
  --line: #424245;
  --hair: rgba(255, 255, 255, .12);
  --tile: #161617;
  /* на тёмном — только нейтральные акценты: синий остаётся за кнопкой,
     его светлые оттенки читаются фиолетовыми */
  --accent: #f5f5f7;
  --accent-hover: #fff;
}
.theme-dark .eyebrow { color: var(--text-2); }
.theme-gray { --bg: #f5f5f7; --tile: #fff; }

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

body {
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.47;
  letter-spacing: -.012em;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button, input, textarea, select { font: inherit; color: inherit; }

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

/* ---------- типографика ---------- */
h1, h2, h3, h4 { font-weight: 600; color: var(--text); text-wrap: balance; }
h1 { font-size: clamp(44px, 7.4vw, 96px); line-height: 1.03; letter-spacing: -.038em; }
h2 { font-size: clamp(36px, 5.4vw, 64px); line-height: 1.06; letter-spacing: -.032em; }
h3 { font-size: clamp(26px, 2.6vw, 34px); line-height: 1.14; letter-spacing: -.024em; }
h4 { font-size: 21px; line-height: 1.24; letter-spacing: -.018em; }
p { color: var(--text-2); }

.eyebrow {
  display: block;
  font-size: clamp(17px, 1.5vw, 21px);
  font-weight: 600;
  letter-spacing: -.015em;
  color: var(--accent);
  margin-bottom: 14px;
}
.kicker {
  display: block;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .01em;
  color: var(--text-3);
  font-variant-numeric: tabular-nums;
  margin-bottom: 16px;
}
.sub {
  font-size: clamp(19px, 1.9vw, 24px);
  line-height: 1.38;
  letter-spacing: -.018em;
  color: var(--text-2);
}

/* ---------- сетка ---------- */
.wrap {
  width: 100%;
  max-width: calc(var(--wide) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section { padding: var(--section) 0; background: var(--bg); color: var(--text); }

.intro { max-width: 880px; margin: 0 0 clamp(56px, 7vw, 96px); text-align: left; }
.intro .sub { max-width: 720px; margin: 22px 0 0; }

.split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}
.split--top { align-items: start; }
.split + .split { margin-top: clamp(88px, 10vw, 144px); }
.split--flip > :first-child { order: 2; }
.split__text { max-width: 500px; }
.split__text > p:not([class]) { margin-top: 18px; font-size: 19px; line-height: 1.45; }
.split__text .sub { margin-top: 20px; }

.tiles { display: grid; gap: 20px; }
.tiles--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tiles--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tiles--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stack { display: grid; gap: 20px; }

.tile {
  display: flex;
  flex-direction: column;
  background: var(--tile);
  color: var(--text);
  border-radius: var(--r-lg);
  padding: clamp(28px, 3vw, 40px);
}
.tile > p:not([class]) { margin-top: 10px; }
.tile--wide { grid-column: 1 / -1; flex-direction: row; align-items: center; gap: 28px; }
.tile__foot { margin-top: auto; padding-top: 28px; }
a.tile { transition: box-shadow .3s ease; }
.tile--wide .tile__icon { margin: 0; }
.tile--wide p { margin-top: 6px; }
.tile__icon { width: 32px; height: 32px; color: var(--accent); margin-bottom: 28px; flex: none; }

.note { margin-top: 40px; text-align: left; font-size: 15px; color: var(--text-3); }
.source { font-size: 13px; line-height: 1.45; color: var(--text-3); }

/* ---------- кнопки и ссылки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 50px; padding: 0 28px;
  border: 0; border-radius: 980px;
  font-size: 17px; font-weight: 500; letter-spacing: -.012em;
  white-space: nowrap; cursor: pointer;
  transition: background-color .2s ease, box-shadow .2s ease, color .2s ease, transform .16s var(--ease-out);
}
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--brand); color: #fff; }
.btn-secondary { background: transparent; color: var(--accent); box-shadow: inset 0 0 0 1.5px var(--accent); }
.btn-sm { height: 32px; padding: 0 16px; font-size: 14px; }

.link { color: var(--accent); font-weight: 500; transition: color .2s ease; }

.actions {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 16px 32px; margin-top: 40px;
}
.actions--start { justify-content: flex-start; }

@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover { background: #0f08c4; }
  .btn-secondary:hover { background: var(--accent); color: var(--bg); }
  .link:hover { text-decoration: underline; text-underline-offset: 3px; }
}

/* ---------- шапка ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  height: 56px;
  background: rgba(255, 255, 255, .78);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease;
}
.site-header.is-scrolled { border-bottom-color: rgba(0, 0, 0, .08); }
.site-header .wrap { height: 100%; display: flex; align-items: center; gap: 36px; }

.brand { display: flex; align-items: center; gap: 12px; flex: none; margin-right: auto; }
.brand img { height: 18px; width: auto; }
.brand span { font-size: 13px; color: #6e6e73; padding-left: 12px; border-left: 1px solid #d2d2d7; line-height: 16px; }

.nav { display: flex; align-items: center; gap: 36px; }
.nav a { font-size: 14px; color: #6e6e73; transition: color .2s ease; }
.nav a.active { color: #1d1d1f; }
.nav .nav-cta { display: none; }

.header-actions { display: flex; align-items: center; gap: 12px; flex: none; }
.nav-toggle {
  display: none; position: relative;
  width: 40px; height: 40px; margin-right: -10px;
  background: none; border: 0; cursor: pointer;
}
.nav-toggle span {
  position: absolute; left: 12px; width: 16px; height: 1.5px; border-radius: 1px;
  background: #1d1d1f;
  transition: transform .3s var(--ease-out);
}
.nav-toggle span:nth-child(1) { top: 16px; }
.nav-toggle span:nth-child(2) { top: 22.5px; }

@media (hover: hover) and (pointer: fine) {
  .nav a:hover { color: #1d1d1f; }
}

/* ---------- герой ---------- */
.hero {
  padding: clamp(64px, 9vw, 128px) 0 clamp(88px, 10vw, 144px);
  text-align: left;
  background: var(--bg);
  color: var(--text);
}
.hero h1 { max-width: 16ch; margin: 0; }
.hero .sub { max-width: 680px; margin: 26px 0 0; }
.hero .actions { justify-content: flex-start; }
.hero .media { margin-top: clamp(56px, 7vw, 96px); }
.hero .stats { margin-top: clamp(56px, 7vw, 88px); text-align: left; }

/* герой с фоновым видео: текст на тёмной подложке слева */
.hero--video {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; align-items: flex-end;
  min-height: min(calc(100svh - 56px), 900px);
  padding: clamp(96px, 12vw, 160px) 0 clamp(24px, 3vw, 40px);
  text-align: left;
}
.hero__bg {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%; max-width: none;
  object-fit: cover; object-position: 100% 25%;
  background: #000;
}
/* лёгкое затемнение всего кадра — чтобы шапка и края не спорили с текстом */
.hero--video::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,.2) 55%, rgba(0,0,0,0) 80%),
    linear-gradient(0deg, rgba(0,0,0,.45) 0%, rgba(0,0,0,0) 45%);
}
.hero--video .hero__content { width: 100%; }
.hero__panel {
  width: clamp(480px, 55vw, 800px); max-width: 100%;
  padding: clamp(28px, 3.4vw, 48px);
  border-radius: var(--r-lg);
  background: rgba(0, 0, 0, .58);
  -webkit-backdrop-filter: blur(24px) saturate(140%);
  backdrop-filter: blur(24px) saturate(140%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08);
}
/* лавр награды: венок слева с «1 место» внутри, подпись справа */
.award { display: inline-flex; align-items: center; gap: 14px; margin-bottom: 22px; color: #f5f5f7; }
.award__wreath { display: inline-flex; align-items: center; flex: none; }
.award__laurel { width: 30px; height: 68px; flex: none; }
.award__laurel--r { transform: scaleX(-1); }
.award__place { display: flex; flex-direction: column; align-items: center; min-width: 40px; margin: -6px -2px 0; line-height: 1; }
.award__place b { font-size: 28px; font-weight: 700; letter-spacing: -.03em; background: linear-gradient(180deg, #f6ebc8, #d4b374); -webkit-background-clip: text; background-clip: text; color: transparent; }
.award__place span { margin-top: 3px; font-size: 10.5px; font-weight: 600; letter-spacing: .02em; color: #e3d3a8; }
.award__text { display: flex; flex-direction: column; gap: 2px; line-height: 1.25; }
.award__text b { font-size: 15px; font-weight: 600; letter-spacing: -.01em; }
.award__text span { font-size: 13px; color: #d2d2d7; }
.hero--video h1 { max-width: none; margin: 0; font-size: clamp(30px, 3.2vw, 46px); line-height: 1.08; }
.hero--video .sub { max-width: none; margin: 22px 0 0; color: #d2d2d7; }
.hero--video .actions { margin-top: 32px; }

/* ---------- медиа ---------- */
.media {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--tile);
}
.media--cover { aspect-ratio: 16 / 9; }
.media--cover img, .media--cover video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.media--shot { box-shadow: 0 0 0 1px var(--hair), 0 40px 80px -48px rgba(0, 0, 0, .45); }
.media--shot img { width: 100%; height: auto; }
.media--square { aspect-ratio: 1; }
.media--square img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- цифры ---------- */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 48px clamp(24px, 3vw, 40px); }
.stats--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.stat { border-top: 1px solid var(--line); padding-top: 24px; }
.stat b {
  display: block;
  font-size: clamp(56px, 6.8vw, 92px);
  font-weight: 600; line-height: 1; letter-spacing: -.045em;
  font-variant-numeric: tabular-nums;
  color: var(--text);
}
.stats--compact .stat b { font-size: clamp(44px, 5.2vw, 72px); }
.stat span { display: block; margin-top: 16px; max-width: 24ch; font-size: 17px; line-height: 1.4; color: var(--text-2); }

.figure {
  display: block;
  font-size: clamp(56px, 6vw, 80px);
  font-weight: 600; line-height: 1; letter-spacing: -.045em;
  font-variant-numeric: tabular-nums;
  color: var(--text);
}
.figure--accent { color: var(--accent); }
.figure + p { margin-top: 14px; }

/* ---------- доверие ---------- */
.trust {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px clamp(24px, 3vw, 40px);
  margin-top: clamp(80px, 10vw, 128px);
}
.trust__label { grid-column: 1 / -1; font-size: 14px; font-weight: 600; color: var(--text-3); }
.trust__item { border-top: 1px solid var(--line); padding-top: 20px; }
.trust__item h4 { font-size: 17px; letter-spacing: -.012em; }
.trust__item p { margin-top: 6px; font-size: 15px; line-height: 1.45; }

/* ---------- списки ---------- */
.list-check { display: grid; gap: 14px; margin-top: 24px; }
.list-check li { display: flex; gap: 12px; font-size: 17px; line-height: 1.45; color: var(--text-2); }
.list-check li b { color: var(--text); font-weight: 600; }
.list-check svg { flex: none; width: 20px; height: 20px; margin-top: 2px; color: var(--accent); }

.list-num { display: grid; gap: 32px; counter-reset: n; }
.list-num li { display: grid; grid-template-columns: 44px minmax(0, 1fr); counter-increment: n; }
.list-num li::before {
  content: counter(n, decimal-leading-zero);
  font-size: 15px; font-weight: 600; color: var(--accent);
  font-variant-numeric: tabular-nums; padding-top: 3px;
}
.list-num h4 { font-size: 19px; }
.list-num p { margin-top: 6px; font-size: 17px; line-height: 1.45; }
.list-num--sm { gap: 20px; }
.list-num--sm h4 { font-size: 17px; }
.list-num--sm p { font-size: 15px; }

.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.tags span {
  font-size: 14px; color: var(--text-2);
  padding: 7px 14px; border-radius: 980px;
  box-shadow: inset 0 0 0 1px var(--line);
}
.aside-title { margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--line); font-size: 15px; font-weight: 600; color: var(--text); }

/* ---------- карточка продукта ---------- */
.tile--product { --pad: clamp(32px, 3.6vw, 48px); padding: var(--pad) var(--pad) 0; overflow: hidden; }
.tile--product .eyebrow { font-size: 17px; margin-bottom: 8px; }
.tile--product p { margin-top: 12px; max-width: 460px; font-size: 17px; }
.tile--product .link { margin-top: 20px; }
.tile__media {
  margin: 44px calc(var(--pad) * -1) 0;
  overflow: hidden;
  border-top: 1px solid var(--hair);
}
.tile__media img { width: 100%; height: auto; transition: transform .7s var(--ease-out); }

@media (hover: hover) and (pointer: fine) {
  a.tile:hover { box-shadow: 0 24px 48px -32px rgba(0, 0, 0, .25); }
  a.tile:hover .link { text-decoration: underline; text-underline-offset: 3px; }
  .tile--product:hover .tile__media img { transform: scale(1.025); }
  .tile--product:hover .link { text-decoration: underline; text-underline-offset: 3px; }
}

/* ---------- дефекты ---------- */
.defect h4 { margin-top: 20px; font-size: 19px; }
.defect p { margin-top: 6px; font-size: 15px; line-height: 1.45; }

/* ---------- чат ассистента ---------- */
.chat { display: flex; flex-direction: column; gap: 12px; }
.chat__meta { text-align: center; font-size: 12px; font-weight: 600; color: var(--text-3); margin-bottom: 8px; }
.bubble { max-width: 86%; padding: 12px 16px; border-radius: 20px; font-size: 16px; line-height: 1.42; }
.bubble--me { align-self: flex-end; background: var(--brand); color: #fff; border-bottom-right-radius: 6px; }
.bubble--ai { align-self: flex-start; background: var(--bg); color: var(--text); border-bottom-left-radius: 6px; }
.theme-gray .bubble--ai, .tile .bubble--ai { background: #fff; }

/* ---------- таблица экономики ---------- */
.table { width: 100%; border-collapse: collapse; font-size: 17px; }
.table th {
  padding: 0 0 14px; text-align: left;
  font-size: 13px; font-weight: 600; color: var(--text-3);
  border-bottom: 1px solid var(--line);
}
.table td { padding: 18px 0; vertical-align: top; border-bottom: 1px solid var(--hair); color: var(--text); }
.table th:last-child, .table td:last-child { text-align: right; white-space: nowrap; padding-left: 24px; font-variant-numeric: tabular-nums; }
.table small { display: block; margin-top: 4px; font-size: 14px; line-height: 1.4; color: var(--text-3); }
.table tr.total td { border-bottom: 0; padding-top: 24px; font-size: 21px; font-weight: 600; letter-spacing: -.018em; }
.table tr.total td:last-child { color: var(--accent); }

.quote { font-size: clamp(22px, 2.2vw, 28px); line-height: 1.3; font-weight: 600; letter-spacing: -.02em; color: var(--text); }
.quote + p { margin-top: 20px; }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 28px 0;
  list-style: none; cursor: pointer;
  font-size: clamp(19px, 1.8vw, 24px); font-weight: 600; letter-spacing: -.018em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary i { position: relative; flex: none; width: 16px; height: 16px; transition: transform .3s var(--ease-out); }
.faq summary i::before, .faq summary i::after { content: ''; position: absolute; background: var(--text-2); border-radius: 1px; }
.faq summary i::before { left: 0; top: 7.25px; width: 16px; height: 1.5px; }
.faq summary i::after { left: 7.25px; top: 0; width: 1.5px; height: 16px; }
.faq details[open] summary i { transform: rotate(45deg); }
.faq details > div { padding: 0 0 28px; max-width: 700px; font-size: 17px; line-height: 1.5; color: var(--text-2); }

/* ---------- CTA и форма ---------- */
.contact { margin-top: 48px; padding-top: 28px; border-top: 1px solid var(--line); }
.contact span { display: block; font-size: 14px; color: var(--text-3); }
.contact a { display: inline-block; margin-top: 6px; font-size: 21px; font-weight: 600; letter-spacing: -.018em; color: var(--text); }
.split__text .list-num { margin-top: 40px; }

.form {
  --text: #1d1d1f; --text-2: #6e6e73; --text-3: #86868b; --line: #d2d2d7; --accent: #140af0;
  background: #fff; color: var(--text);
  border-radius: var(--r-lg);
  padding: clamp(28px, 3.6vw, 44px);
}
.form h4 { font-size: 24px; letter-spacing: -.022em; }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
.field { display: flex; flex-direction: column; gap: 8px; margin-top: 18px; }
.field label { font-size: 13px; font-weight: 600; color: var(--text-2); }
.field input, .field textarea {
  width: 100%; height: 48px; padding: 0 16px;
  border: 1px solid var(--line); border-radius: 12px;
  font-size: 17px; background: #fff; color: var(--text);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.field textarea { height: auto; min-height: 104px; padding: 12px 16px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: #aeaeb2; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(20, 10, 240, .14); }
.consent { display: flex; gap: 10px; align-items: flex-start; margin-top: 20px; }
.consent input { flex: none; width: 18px; height: 18px; margin-top: 1px; accent-color: #140af0; }
.consent label { font-size: 13px; line-height: 1.45; color: var(--text-3); }
.form .btn { width: 100%; margin-top: 24px; }
.form-note { margin-top: 12px; text-align: center; font-size: 13px; color: var(--text-3); }

/* ---------- подвал ---------- */
.site-footer { background: #f5f5f7; color: #6e6e73; font-size: 13px; line-height: 1.5; padding: 56px 0 32px; }
.footer-grid {
  display: grid; grid-template-columns: 2fr repeat(3, minmax(0, 1fr)); gap: 32px;
  padding-bottom: 32px; border-bottom: 1px solid #d2d2d7;
}
.footer-brand p { margin-top: 14px; max-width: 36ch; color: #6e6e73; }
.footer-grid h5 { margin-bottom: 12px; font-size: 13px; font-weight: 600; color: #1d1d1f; }
.footer-grid ul { display: grid; gap: 10px; }
.footer-grid a { color: #6e6e73; transition: color .2s ease; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding-top: 20px; color: #86868b; }

@media (hover: hover) and (pointer: fine) {
  .footer-grid a:hover { color: #1d1d1f; }
}

/* ---------- калькулятор ---------- */
.calc { max-width: none; }
.section--flush { padding-top: 0; }
.calc-step + .calc-step, .calc-step + .calc-formula, .calc-formula + .calc-step { margin-top: 48px; }
.calc-step h4 { margin-bottom: 20px; }

#sizegrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
.sizecell { display: flex; flex-direction: column; }
.sizecell__icon {
  width: 80px; height: 70px; margin-bottom: 16px;
  fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round;
  color: var(--text-3); transition: color .2s ease;
}
/* объект введён — пиктограмма окрашивается */
.sizecell:has(input:not(:placeholder-shown)) .sizecell__icon { color: var(--accent); }

.calc-bar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px;
  margin-bottom: 48px; padding-bottom: 20px; border-bottom: 1px solid var(--hair);
  font-size: 15px; color: var(--text-2);
}
.currency { display: flex; gap: 28px; }
.currency button {
  padding: 6px 0; border: 0; background: none; cursor: pointer;
  font-size: 15px; font-weight: 500; color: var(--text-3);
  box-shadow: inset 0 0 0 transparent; transition: color .2s ease, box-shadow .2s ease;
}
.currency button[aria-checked="true"] { color: var(--text); font-weight: 600; box-shadow: inset 0 -2px 0 var(--text); }
@media (hover: hover) and (pointer: fine) { .currency button:hover { color: var(--text); } }
.currency button:active { transform: scale(.97); }
.calc-caption { margin: -8px 0 12px; font-size: 14px; color: var(--text-3); }
.calc-formula small { font-size: 13px; color: var(--text-3); }
.sizecell .name { font-size: 15px; font-weight: 600; color: var(--text); }
.sizecell .hint { margin-top: 2px; min-height: 36px; font-size: 13px; line-height: 1.4; color: var(--text-3); }
/* поля ввода — одна линия снизу, без рамок и подложек */
.sizecell input, .qfield input, .qfield select {
  width: 100%; margin: 0; padding: 0;
  border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: transparent;
  color: var(--text); font-variant-numeric: tabular-nums;
  -webkit-appearance: none; appearance: none;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.sizecell input { height: 56px; margin-top: 8px; font-size: 32px; font-weight: 600; letter-spacing: -.02em; }
.sizecell input:focus, .qfield input:focus, .qfield select:focus { outline: none; border-bottom-color: var(--accent); box-shadow: inset 0 -1px 0 var(--accent); }
.sizecell input::-webkit-inner-spin-button, .qfield input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.sizecell input[type="number"], .qfield input[type="number"] { -moz-appearance: textfield; }
/* подсказка «0» полупрозрачная, введённые цифры — чёрные */
.sizecell input::placeholder, .qfield input::placeholder { color: var(--text); opacity: .22; }

.calc-formula {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 12px;
  margin-top: 40px; padding: 20px 0; border-top: 1px solid var(--hair); border-bottom: 1px solid var(--hair);
  font-size: 15px; color: var(--text-2);
}
.calc-formula strong { margin-left: auto; font-size: 17px; font-weight: 600; color: var(--text); font-variant-numeric: tabular-nums; }

/* ценовой диапазон — подчёркнутые вкладки вместо серой «таблетки» */
.brackets { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-bottom: 1px solid var(--line); }
.bracket { padding: 10px 4px 12px; text-align: left; font-size: 13px; font-weight: 500; color: var(--text-3); box-shadow: inset 0 0 0 transparent; transition: color .2s ease, box-shadow .2s ease; }
.bracket.active { color: var(--text); font-weight: 600; box-shadow: inset 0 -2px 0 var(--text); }

.modtable { width: 100%; margin-top: 24px; border-collapse: collapse; }
.modtable th { padding: 0 0 12px; text-align: left; font-size: 13px; font-weight: 600; color: var(--text-3); border-bottom: 1px solid var(--line); }
.modtable td { padding: 18px 0; vertical-align: top; border-bottom: 1px solid var(--hair); }
.modtable th:nth-child(2), .modtable td:nth-child(2) { width: 88px; text-align: center; }
.modtable th:last-child, .modtable td:last-child { text-align: right; white-space: nowrap; }
.modtable .modname { font-size: 17px; font-weight: 600; color: var(--text); }
.modtable .moddesc { margin-top: 4px; font-size: 14px; line-height: 1.4; color: var(--text-3); }
.modtable td.rate { font-size: 17px; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--text); }
.modtable input[type="checkbox"] { width: 20px; height: 20px; accent-color: #140af0; }
.modtable tr.total td { border-bottom: 0; padding-top: 22px; }
.modtable tr.total td.rate { color: var(--accent); }

.calc-quota { display: flex; flex-direction: column; gap: 20px; margin-top: 48px; }
.qtop { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 8px 16px; font-size: 15px; color: var(--text-2); }
.qtitle { font-size: 17px; font-weight: 600; color: var(--text); }
.qval { font-weight: 600; font-variant-numeric: tabular-nums; color: var(--text); }
.qrow { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: end; }
.qfield { display: flex; flex-direction: column; gap: 8px; }
.qfield label { font-size: 13px; font-weight: 600; color: var(--text-2); }
.qfield input, .qfield select { height: 44px; font-size: 17px; }
.qfield select {
  padding-right: 24px; cursor: pointer;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%2386868b' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 2px center;
}
.qfield .qval { height: 44px; display: flex; align-items: center; font-size: 17px; }
#packsList { display: flex; flex-wrap: wrap; gap: 6px 24px; }
#packsList span { font-size: 13px; color: var(--text-3); font-variant-numeric: tabular-nums; }

.calc-result { display: flex; flex-direction: column; gap: 12px; margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--line); }
.result-row { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.result-row .k { font-size: 15px; color: var(--text-2); }
.result-row .v { font-size: 19px; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--text); white-space: nowrap; }
.result-row.total { margin-top: 8px; padding-top: 20px; border-top: 1px solid var(--hair); }
.result-row.total .k { font-size: 17px; font-weight: 600; color: var(--text); }
.result-row.total .v { font-size: clamp(32px, 4vw, 44px); letter-spacing: -.035em; color: var(--accent); }

.calc-notes { display: grid; gap: 10px; margin-top: 40px; font-size: 14px; line-height: 1.5; color: var(--text-3); }
.calc-notes b { color: var(--text-2); font-weight: 600; }

/* ---------- появление при скролле ---------- */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .8s var(--ease-out), transform .8s var(--ease-out);
}
.js [data-reveal].is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js [data-reveal] { transform: none; transition: opacity .4s ease; }
  .tile__media img, .btn, .faq summary i { transition: none; }
}
@media (prefers-reduced-transparency: reduce) {
  .site-header { background: #fff; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .hero__panel { background: rgba(0, 0, 0, .86); -webkit-backdrop-filter: none; backdrop-filter: none; }
}

/* ---------- адаптив ---------- */
@media (max-width: 1068px) {
  .tiles--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
  #sizegrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 834px) {
  .split { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .split--flip > :first-child { order: 0; }
  .split__text { max-width: 640px; }
  .tiles--2, .tiles--3 { grid-template-columns: minmax(0, 1fr); }
  .trust { grid-template-columns: minmax(0, 1fr); }

  .header-actions .btn { display: none; }
  .nav-toggle { display: block; }
  .nav {
    position: fixed; top: 56px; left: 0; right: 0;
    height: calc(100vh - 56px); height: calc(100dvh - 56px);
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 24px var(--gutter) 40px;
    background: #fff;
    opacity: 0; transform: translateY(-8px); pointer-events: none;
    transition: opacity .25s var(--ease-out), transform .25s var(--ease-out);
  }
  .nav.nav-open { opacity: 1; transform: none; pointer-events: auto; }
  .nav a { padding: 14px 0; font-size: 28px; font-weight: 600; letter-spacing: -.022em; color: #1d1d1f; }
  .nav .nav-cta { display: flex; margin-top: 24px; height: 50px; padding: 0; font-size: 17px; font-weight: 500; letter-spacing: -.012em; align-items: center; justify-content: center; border-radius: 980px; background: #140af0; color: #fff; }
  .menu-open .nav-toggle span:nth-child(1) { transform: translateY(3.25px) rotate(45deg); }
  .menu-open .nav-toggle span:nth-child(2) { transform: translateY(-3.25px) rotate(-45deg); }
  .menu-open.site-header { background: #fff; }

  .qrow { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 734px) {
  body { font-size: 16px; }
  /* на телефоне видео сверху и уходит в чёрный, подложка с текстом под лицом, а не на нём */
  .hero--video { min-height: 0; padding: 0 0 16px; flex-direction: column; align-items: stretch; }
  .hero__bg { position: relative; inset: auto; height: clamp(380px, 62svh, 560px); object-position: 64% 30%; }
  .hero--video::after { inset: 0 0 auto; height: clamp(380px, 62svh, 560px); background: linear-gradient(180deg, rgba(0,0,0,0) 50%, #000 100%); }
  .hero__content { margin-top: -96px; position: relative; }
  .hero__panel { width: 100%; padding: 28px 24px; }
  .hero--video .actions .btn { width: 100%; }
  .stats--3 { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .stats { gap: 36px 20px; }
  .stat span { font-size: 15px; }
  .form-row { grid-template-columns: minmax(0, 1fr); }
  .tile--wide { flex-direction: column; align-items: flex-start; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .table { font-size: 15px; }
  .table thead, .table tbody { display: block; }
  .table thead tr { display: flex; justify-content: space-between; padding-top: 0; }
  .table th { padding: 0 0 12px; border-bottom: 0; }
  .table tr { display: block; padding: 16px 0; border-bottom: 1px solid var(--hair); }
  .table tr.total { border-bottom: 0; padding-top: 20px; }
  .table td { display: block; padding: 0; border-bottom: 0; }
  .table td:last-child { text-align: left; padding: 6px 0 0; font-weight: 600; }
  .table tr.total td { font-size: 18px; padding-top: 0; }
  .brackets { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .modtable thead, .modtable tbody { display: block; }
  .modtable thead tr { display: block; border-bottom: 1px solid var(--line); }
  .modtable th:nth-child(-n+2) { display: none; }
  .modtable th:last-child { display: block; text-align: right; border-bottom: 0; }
  .modtable tbody tr { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; column-gap: 12px; padding: 18px 0; border-bottom: 1px solid var(--hair); }
  .modtable tbody tr.total { border-bottom: 0; }
  .modtable td, .modtable tr.total td { padding: 0; border-bottom: 0; }
  .modtable td:nth-child(2) { order: -1; width: auto; text-align: left; }
  .modtable td:last-child { padding-left: 8px; }
  .actions .btn { width: 100%; }
}
