/* Лендинг Korra v5 — главная. С 13.10.2026 вся страница говорит языком первого экрана:
   тёплая бумага, поля как у шапки, плоские поверхности с тонкими линиями, одна чёрная
   кнопка-капсула с лаймовой стрелкой. Интерфейс кабинета в демо и роликах — свой (demo.css). */

@font-face {
  font-family: "Onest";
  src: url("assets/onest.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #f1f1eb;
  --surface: #e7e7de;
  --ink: #1f1f1f;
  --ink-soft: #3c3c3c;
  --muted: #5c5c5c;
  --faint: #7a7a7a;
  --accent: #9ede01;
  --accent-ink: #1f2a00;
  --accent-tint: rgba(158, 222, 1, 0.2);
  --line: #deded6;
  --line-strong: #cfcfc4;
  --graphite: #1b1e18;
  --graphite-2: #262a22;
  --on-dark: #f2f2f2;
  --on-dark-muted: #b9b9b9;
  --on-dark-line: rgba(255, 255, 255, 0.12);

  /* Поверхности плоские: глубину дают линии и контраст, а не тени. */
  --gutter: clamp(20px, 3vw, 48px);
  --r-card: 20px;
  --r-panel: 24px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background-color: var(--bg);
  color: var(--ink);
  font-family: "Onest", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, p, figure, blockquote, dl, dd, fieldset, legend { margin: 0; }
fieldset { border: 0; padding: 0; min-width: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; }

h1 { font-weight: 500; letter-spacing: -0.03em; line-height: 1.05; text-wrap: balance; }
h2 { font-weight: 500; letter-spacing: -0.035em; line-height: 1.02; text-wrap: balance; }
h3 { font-weight: 550; letter-spacing: -0.02em; line-height: 1.25; }

a { color: inherit; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 8px; }
.package-dark :focus-visible, .final-card :focus-visible { outline-color: var(--on-dark); }
section[tabindex="-1"]:focus, div[tabindex="-1"]:focus { outline: none; }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--ink); color: var(--on-dark); padding: 10px 14px; border-radius: 12px; text-decoration: none;
}
.skip-link:focus { top: 12px; }

.wrap { width: 100%; padding: 0 var(--gutter); }
.nw { white-space: nowrap; }

.ico { display: inline-flex; align-items: center; justify-content: center; flex: none; }
.ico svg { display: block; }

/* ---------- Набор первого экрана ----------
   На сайте четыре элемента, все — с первого экрана: кнопка-капсула (46 px, текст 13 px,
   стрелка ↗ 19 px лаймом), вводный текст (.section-lead = .hero-lead), подпись 12 px
   (.eyebrow = .hero-bottom) и тонкая линия. Новых кнопок, точек и плашек не заводим. */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 28px;
  min-height: 46px; padding: 0 21px; border-radius: 999px; border: 0;
  background: #1b1e18; color: #f6f7ef; font-weight: 500; font-size: 13px; text-decoration: none; cursor: pointer;
  transition: background-color .15s ease, color .15s ease;
}
.button:hover { background: #34451b; }
.button > span[aria-hidden] { color: var(--accent); font-size: 19px; line-height: 1; }
/* На тёмном та же капсула светлая. */
.package-dark .button, .final-card .button { background: var(--bg); color: #1b1e18; }
.package-dark .button:hover, .final-card .button:hover { background: #ffffff; }
.package-dark .button > span[aria-hidden], .final-card .button > span[aria-hidden] { color: #5f8a00; }

/* Шапка — общая для всех страниц сайта: site-nav.css. */

/* ---------- Секции: тонкая линия сверху, крупный заголовок, воздух ---------- */
.section { padding: 56px 0; border-top: 1px solid var(--line); }
.section-head { max-width: 820px; margin-bottom: 36px; }
.eyebrow { display: block; font-size: 12px; line-height: 1.45; color: #4d5047; }
.section-head h2 { margin-top: 14px; font-size: clamp(34px, 5.4vw, 72px); }
.section-lead { margin-top: 18px; color: #272923; font-size: clamp(15px, 1.25vw, 18px); line-height: 1.35; letter-spacing: -0.03em; max-width: 640px; }
.data-note { margin-top: 14px; font-size: 13px; color: var(--muted); }
.tag {
  display: inline-flex; align-items: center; flex: none; padding: 3px 10px; border-radius: 999px;
  background: var(--surface); font-size: 12px; color: var(--muted); white-space: nowrap;
}
.tag-dark { background: rgba(255, 255, 255, 0.08); box-shadow: none; color: var(--on-dark-muted); }

/* ---------- Логотипы компаний ---------- */
.clients { padding: 24px 0 32px; }
.logo-shell { --logo-gap: clamp(40px, 4vw, 64px); }
.logo-viewport {
  width: 100%; min-width: 0; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 24px, #000 calc(100% - 24px), transparent);
  mask-image: linear-gradient(90deg, transparent, #000 24px, #000 calc(100% - 24px), transparent);
}
.logo-track { display: flex; width: max-content; animation: logos-scroll 44s linear infinite; }
.logo-row { display: flex; flex: none; flex-wrap: nowrap; align-items: center; gap: var(--logo-gap); padding: 14px var(--logo-gap) 14px 0; }
.logo-row li { display: flex; flex: none; align-items: center; justify-content: center; min-height: 64px; }
.logo-row img { height: calc(var(--h) * 1.2); width: auto; max-width: none; opacity: .8; }
@keyframes logos-scroll { to { transform: translateX(-50%); } }

@media (prefers-reduced-motion: reduce) {
  /* Запрошенная бегущая лента движется медленнее. */
  .logo-track { animation-duration: 88s !important; animation-iteration-count: infinite !important; }
}

/* ---------- Пакеты ---------- */
.package-grid { display: grid; gap: 16px; }
.package { display: flex; flex-direction: column; gap: 12px; padding: 28px; border-radius: var(--r-panel); background: transparent; box-shadow: inset 0 0 0 1px var(--line-strong); }
.package h3 { font-size: 18px; font-weight: 500; }
.package-price { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.package-price b { font-size: clamp(34px, 3.6vw, 52px); font-weight: 500; letter-spacing: -0.04em; line-height: 1.05; }
.package-price span { color: var(--muted); font-size: 14px; }
.package-lead { color: var(--ink-soft); font-size: 15px; }
.package-list { display: flex; flex-direction: column; gap: 6px; padding-top: 12px; border-top: 1px solid var(--line); }
.package-list li { position: relative; padding-left: 20px; font-size: 14.5px; }
.package-list li::before { content: "—"; position: absolute; left: 0; color: var(--muted); }
.package-dark .package-list li::before { color: var(--on-dark-muted); }
.package-limit { font-size: 12px; line-height: 1.45; color: var(--on-dark-muted); }
.package-cta { margin-top: auto; align-self: flex-start; }
.package-dark { background: var(--graphite); color: var(--on-dark); box-shadow: none; }
.package-dark .package-price span, .package-dark .package-lead { color: var(--on-dark-muted); }
.package-dark .package-list { border-color: var(--on-dark-line); }
.package-sub { padding-top: 12px; border-top: 1px solid var(--line); font-size: 12px; line-height: 1.45; color: #4d5047; }
.include-list { display: flex; flex-direction: column; margin-top: -6px; }
.include-list a {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px;
  border-bottom: 1px solid var(--line); font-size: 15px; text-decoration: none;
}
.include-list li:last-child a { border-bottom: 0; }
.include-list a::after { content: "↑"; flex: none; color: var(--muted); font-size: 14px; }
.include-list a:hover::after { color: var(--ink); }
@media (min-width: 600px) {
  .include-list { display: grid; grid-template-columns: 1fr 1fr; column-gap: 20px; }
  .include-list li:nth-last-child(2) a { border-bottom: 0; }
  .include-list a { font-size: 14.5px; line-height: 1.3; }
}
.package-custom { margin-top: 20px; color: var(--muted); font-size: 15px; }
.package-custom a { color: var(--ink); text-underline-offset: 3px; }

.costs { display: grid; gap: 22px; margin-top: 16px; padding: 28px; border-radius: var(--r-panel); box-shadow: inset 0 0 0 1px var(--line-strong); }
.costs-title { font-size: 17px; font-weight: 600; }
.costs-list { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
.costs-list li { display: grid; grid-template-columns: 124px 1fr; gap: 12px; align-items: baseline; font-size: 14.5px; }
.costs-list b { font-size: 16px; font-weight: 600; white-space: nowrap; }
.costs-list span { color: var(--muted); }
.costs-list a { color: var(--ink); text-underline-offset: 3px; }
.costs .support-details { margin-top: 6px; border-bottom: 0; }
.costs .support-details summary { padding: 14px 0; font-size: 15px; }
.support-details .package-list { padding: 0 0 6px; border: 0; }
.launch-steps { counter-reset: l; display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
.launch-steps li { counter-increment: l; display: grid; grid-template-columns: 28px 1fr; gap: 10px; align-items: baseline; font-size: 14.5px; line-height: 1.4; }
.launch-steps li::before { content: counter(l, decimal-leading-zero); font-size: 12px; color: #4d5047; font-variant-numeric: tabular-nums; }

@media (min-width: 900px) {
  .package-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .costs { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 40px; padding: 28px; }
}

/* ---------- Вопросы ---------- */
.faq-wrap > * { max-width: 860px; }
.faq h2 { font-size: clamp(34px, 5.4vw, 72px); margin-bottom: 36px; }
.faq-list { border-top: 1px solid var(--line); }
.qa { border-bottom: 1px solid var(--line); }
.qa summary { display: flex; justify-content: space-between; gap: 16px; padding: 18px 2px; cursor: pointer; font-weight: 550; list-style: none; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: "+"; font-size: 20px; line-height: 1; color: var(--muted); transition: transform .2s ease; }
.qa[open] summary::after { transform: rotate(45deg); }
.qa p { padding: 0 2px 18px; color: var(--ink-soft); max-width: 720px; }
.qa p + p { margin-top: -8px; }
.qa p a { text-underline-offset: 3px; }
@media (min-width: 1000px) {
  .faq-wrap > * { max-width: none; }
  .faq-list { display: grid; grid-template-columns: 1fr 1fr; gap: 0 48px; align-items: start; border-top: 0; }
  .faq-col { border-top: 1px solid var(--line); }
}

/* ---------- Финал и подвал ---------- */
.final { padding: 8px 0 48px; }
.final-card { padding: 40px 28px; border-radius: var(--r-panel); background: var(--graphite); color: var(--on-dark); position: relative; overflow: hidden; }
.final-card h2 { font-size: clamp(34px, 5vw, 64px); position: relative; }
.final-card p { margin-top: 12px; color: var(--on-dark-muted); max-width: 560px; position: relative; }
.final-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; margin-top: 24px; position: relative; }
@media (min-width: 560px) { .final-actions { flex-direction: row; } .final-card { padding: 34px 48px; } }
@media (min-width: 900px) {
  .final-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: 40px; }
  .final-card p { grid-column: 1; }
  .final-actions { grid-column: 2; grid-row: 1 / span 2; margin-top: 0; }
}

.site-footer { padding: 24px 0 40px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.footer-row { display: flex; flex-direction: column; gap: 12px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.footer-nav a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }
.footer-nav a:hover { color: var(--ink); }
@media (min-width: 760px) { .footer-row { flex-direction: row; align-items: center; justify-content: space-between; } }

@media (min-width: 1000px) {
  .section { padding: 96px 0; }
  .final-card { padding: 56px 48px; }
}

/* ---------- Движение ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes pop { from { opacity: .4; transform: scale(.985); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

/* Полноэкранная типографика: слово — сама сцена. */
.hero { position:relative; isolation:isolate; overflow:hidden; padding:0; height:calc(100svh - var(--header-h)); min-height:530px; background:#f1f1eb; }
.hero-grid { position:relative; max-width:none; width:100%; height:100%; padding:0; }
.hero-copy { position:absolute; z-index:2; top:clamp(28px,5.3vh,64px); left:clamp(20px,3vw,48px); }
.hero-lead { font-size:clamp(15px,1.25vw,18px); line-height:1.35; color:#272923; letter-spacing:-.03em; }
.hero-actions { display:flex; margin-top:20px; }
.hero-actions .button { min-height:46px; padding:0 21px; gap:28px; background:#1b1e18; color:#f6f7ef; box-shadow:none; border-radius:999px; font-size:13px; font-weight:500; }
.hero-actions .button:hover { background:#34451b; }
.hero-arrow { font-size:19px; color:var(--accent); }
.hero-aside { position:absolute; top:44%; left:3%; width:94%; transform:translateY(-25%); }
.hero h1 { margin:0; width:100%; line-height:0; }
.hero-fallback { display:block; width:100%; height:auto; }
.hero-sr { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
.hero-canvas { position:absolute; inset:0; width:100%; height:100%; opacity:0; pointer-events:none; }
.hero-live .hero-canvas { opacity:1; }
.hero-bottom { position:absolute; z-index:2; bottom:max(22px,env(safe-area-inset-bottom)); left:clamp(20px,3vw,48px); right:clamp(20px,3vw,48px); display:flex; justify-content:space-between; align-items:center; gap:14px; font-size:12px; line-height:1.45; color:#4d5047; }
.hero-down { display:grid; place-items:center; width:44px; height:44px; color:#242720; text-decoration:none; font-size:23px; }
/* Over the ink the copy inverts (difference). Colours are chosen so that on the paper
   (#f1f1eb) the result equals the resting colours above, so switching is invisible. */
.hero-live .hero-copy, .hero-live .hero-bottom { mix-blend-mode:difference; }
.hero-live .hero-lead { color:#cac8c8; }
.hero-live .hero-actions .button { background:#d6d3d3; color:#000; }
.hero-live .hero-actions .button:hover { background:#bdacd0; }
.hero-live .hero-arrow { color:#5313ea; }
.hero-live .hero-bottom { color:#a4a1a4; }
.hero-live .hero-down { color:#cdcad7; }
@media (max-width:759px) {
 .hero { min-height:550px; }
 .hero-copy { top:34px; }
 .hero-aside { left:4%; width:92%; top:46%; transform:translateY(-10%); }
 .hero-bottom { align-items:flex-end; font-size:11px; }
 .hero-bottom > p { max-width:110px; }
 .hero-down { display:none; }
}
@media (max-height:650px) and (min-width:760px) {
 .hero { min-height:480px; }
 .hero-copy { top:22px; }
 .hero-aside { top:43%; }
}
@media (prefers-reduced-motion:reduce) {
 .hero-canvas { display:none; }
 .hero .hero-fallback { opacity:1; }
}
