/* Лендинг. Использует токены app.css (--ground/--raised/--ink/--accent/--ekyzmet/
   --okk/--qrt и т.д.) — отдельной палитры не заводим, чтобы страница не спорила
   с остальным приложением. Единственное новое — дисплейный шрифт Unbounded
   (самохостинг, кириллица+kk) для заголовков и крупных цифр; весь остальной
   текст остаётся на системном стеке, как во всём приложении. */
@import url('/static/fonts/unbounded.css');

.landing .l-h1, .landing .l-h2,
.landing .l-strip-n, .landing .l-stub-count {
  font-family: 'Unbounded', ui-sans-serif, -apple-system, "Segoe UI", sans-serif;
}

/* =============== HERO =============== */
.l-hero {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(300px, 1fr);
  gap: 40px; align-items: center; padding: 30px 0 8px;
}
.l-eyebrow { margin: 0 0 6px; font-size: 14px; font-weight: 600; color: var(--accent); }
.l-h1 {
  margin: 0 0 16px; font-weight: 700; letter-spacing: -.005em;
  font-size: clamp(28px, 3.6vw, 42px); line-height: 1.12; text-wrap: balance;
}
.l-accent { color: var(--accent); }
.l-lead { margin: 0 0 26px; color: var(--muted); font-size: 17px; max-width: 46ch; }
.l-actions { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; }
.l-textlink {
  display: inline-flex; align-items: center; gap: 7px; font-weight: 600;
  color: var(--ink); text-decoration: none;
}
.l-textlink:hover { color: var(--accent); text-decoration: none; }
.l-arrow { width: 13px; height: 13px; flex: none; position: relative; }
.l-arrow::before, .l-arrow::after { content: ""; position: absolute; background: currentColor; }
.l-arrow::before { width: 100%; height: 1.6px; top: 5.7px; left: 0; transform-origin: right center; }
.l-arrow::after {
  width: 7px; height: 7px; top: -1px; right: -1px;
  border-top: 1.6px solid currentColor; border-right: 1.6px solid currentColor;
  background: none; transform: rotate(45deg);
}

/* --- билет-допуск: сигнатурный артефакт --- */
.l-ticket {
  display: flex; background: var(--raised); border: 1px solid var(--line);
  border-radius: 14px; box-shadow: 0 10px 30px -14px color-mix(in srgb, var(--ink) 28%, transparent);
  transform: rotate(1.2deg); position: relative;
}
.l-ticket-main { flex: 1; padding: 26px 28px 24px; min-width: 0; }
.l-ticket-top { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.l-ticket-eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .09em; color: var(--muted); }
.l-ticket-code { display: flex; align-items: center; gap: 2px; height: 14px; flex: none; }
.l-ticket-code i {
  display: block; width: 2px; height: 100%; background: var(--line-strong); border-radius: 1px;
}
.l-ticket-code i:nth-child(3n) { height: 65%; }
.l-ticket-code i:nth-child(5n) { height: 45%; }
.l-ticket-title { font-weight: 700; font-size: 22px; margin-bottom: 18px; letter-spacing: -.01em; }
.l-ticket-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 12px; margin-bottom: 18px; }
.l-ticket-grid > div { display: flex; flex-direction: column; gap: 4px; }
.l-tk { font-size: 11.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.l-tv { font-size: 14.5px; font-weight: 600; }
.l-ticket-bars { display: flex; gap: 4px; height: 6px; border-radius: 4px; overflow: hidden; }
.l-ticket-bars span { flex: 1; background: var(--c); position: relative; overflow: hidden; }
.l-ticket-bars span::after {
  content: ""; position: absolute; inset: 0; background: color-mix(in srgb, #fff 55%, transparent);
  transform: translateX(-100%); animation: l-fill 3.6s ease-in-out infinite;
}
.l-ticket-bars span:nth-child(2)::after { animation-delay: .5s; }
.l-ticket-bars span:nth-child(3)::after { animation-delay: 1s; }
@keyframes l-fill { 0% { transform: translateX(-100%); } 55%, 100% { transform: translateX(100%); } }
@media (prefers-reduced-motion: reduce) { .l-ticket-bars span::after { animation: none; display: none; } }

.l-ticket-stub {
  flex: none; width: 120px; display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 3px; padding: 20px 12px;
  border-left: 1.5px dashed var(--line-strong); position: relative;
  background:
    radial-gradient(circle 7px at 0 0,    transparent 7px, var(--ground) 7.5px) top left / 100% 1px no-repeat,
    radial-gradient(circle 7px at 0 100%, transparent 7px, var(--ground) 7.5px) bottom left / 100% 1px no-repeat;
}
.l-ticket-stub::before, .l-ticket-stub::after {
  content: ""; position: absolute; left: -8px; width: 16px; height: 16px; border-radius: 50%;
  background: var(--ground); border: 1px solid var(--line);
}
.l-ticket-stub::before { top: -8px; }
.l-ticket-stub::after { bottom: -8px; }
.l-stub-count {
  font-weight: 700; font-size: 29px; letter-spacing: -.02em; line-height: 1;
  font-variant-numeric: tabular-nums;
}
.l-stub-label { font-size: 12.5px; color: var(--muted); text-align: center; }

/* =============== СТРОКА ФАКТОВ =============== */
.l-strip {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 12px;
  overflow: hidden; margin: 56px 0;
}
.l-strip-item { background: var(--raised); padding: 18px 20px; display: flex; flex-direction: column; gap: 4px; }
.l-strip-n {
  font-weight: 700; font-size: 22px; letter-spacing: -.01em;
  font-variant-numeric: tabular-nums; color: var(--accent);
}
.l-strip-k { color: var(--muted); font-size: 13px; line-height: 1.35; }

/* =============== СЕКЦИИ =============== */
.l-section { padding: 20px 0 40px; }
.l-h2 {
  font-weight: 700; font-size: clamp(22px, 2.6vw, 30px); letter-spacing: -.01em;
  margin: 0 0 10px; max-width: 30ch;
}
.l-sub { color: var(--muted); font-size: 15.5px; max-width: 56ch; margin: 0 0 30px; }

/* --- платформы --- */
.l-plat-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.l-plat {
  display: flex; flex-direction: column; gap: 14px; text-decoration: none; color: var(--ink);
  background: var(--raised); border: 1px solid var(--line); border-radius: 12px;
  border-top: 3px solid var(--bc, var(--accent)); padding: 20px;
  transition: box-shadow .15s ease;
}
.l-plat[data-b="e-kyzmet"] { --bc: var(--ekyzmet); }
.l-plat[data-b="okk"]      { --bc: var(--okk); }
.l-plat[data-b="qrt"]      { --bc: var(--qrt); }
.l-plat[data-b="bolashak"] { --bc: var(--bolashak); }
a.l-plat:hover {
  text-decoration: none;
  box-shadow: 0 8px 24px -12px color-mix(in srgb, var(--bc, var(--accent)) 45%, transparent);
}
.l-plat-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.l-plat-tag { font: 12px/1 ui-monospace, Menlo, monospace; color: var(--muted); }
.l-plat-desc { margin: 0; color: var(--muted); font-size: 14.5px; flex: 1; }
.l-plat-foot {
  display: flex; align-items: baseline; gap: 6px; margin-top: auto; padding-top: 12px;
  border-top: 1px dashed var(--line);
}
.l-plat-nk { color: var(--muted); font-size: 13px; flex: 1; }
.l-plat-go, .l-plat-lock {
  display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 13.5px;
  color: var(--bc, var(--accent)); text-decoration: none;
}
.l-plat-lock:hover { text-decoration: none; }

.l-fineprint { margin: 16px 0 0; font-size: 13px; color: var(--muted); }

/* --- полоса во всю ширину (демо, тарифы); контент 1080px, как в макете --- */
.l-band {
  background: var(--sunk); border-block: 1px solid var(--line);
  margin: 40px calc(50% - 50vw); padding: 64px max(20px, calc(50vw - 540px));
}
.l-band .l-h2 { max-width: none; }
/* обычная секция, выходящая за колонку 900 до 1080 (мокам тесно) */
.l-wide {
  width: min(1080px, calc(100vw - 40px));
  margin-inline: calc((100% - min(1080px, 100vw - 40px)) / 2);
}

/* --- сеточные заготовки --- */
.l-2col { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 48px; align-items: center; }
.l-3col { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; align-items: stretch; }
/* QRT: мок слева и крупнее текста, как в макете */
.l-qrt { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); }

/* --- чек-листы --- */
.l-checks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.l-checks li { display: flex; gap: 10px; align-items: baseline; }
.l-checks li > span:first-child { color: var(--good); font-weight: 700; }
.l-checks--qrt li > span:first-child { color: var(--qrt); }
.l-btn-qrt { margin-top: 26px; background: var(--qrt); border-color: var(--qrt); }

/* --- миниатюрные реплики экранов (демо-моки) --- */
.dm { overflow: hidden; padding: 0; font-size: 13px; }
.dm-ek-brand { display: flex; align-items: center; justify-content: center; gap: 12px;
  padding: 10px 16px; border-bottom: 1px solid var(--line); }
.dm-ek-logo { font-weight: 700; font-size: 18px; letter-spacing: -.01em; color: #2f3ab8; }
.dm-ek-agency { font-size: 9px; line-height: 1.3; color: var(--muted); text-transform: uppercase;
  letter-spacing: .03em; border-left: 1px solid var(--line-strong); padding-left: 12px; }
.dm-ek-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px;
  padding: 12px 16px; border-bottom: 1px solid var(--line); }
.dm-ek-nm { font-weight: 700; font-size: 13px; }
.dm-ek-user { color: var(--muted); font-size: 11.5px; }
.dm-ek-left { display: flex; align-items: baseline; gap: 8px; white-space: nowrap; }
.dm-ek-left span { color: var(--muted); font-size: 9.5px; text-transform: uppercase; letter-spacing: .05em; }
.dm-ek-left b { color: var(--good); font-size: 17px; font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.dm-ek-bar { height: 9px; background: #E3E5E9; border-radius: 6px; overflow: hidden; margin: 12px 16px 0; }
:root[data-theme="dark"] .dm-ek-bar { background: var(--sunk); }
.dm-ek-bar i { display: block; height: 100%; border-radius: 6px;
  background: linear-gradient(90deg, #3947C2, var(--ekyzmet), #D9534F); }
.dm-ek-grid { display: grid; grid-template-columns: 1fr 140px; gap: 14px; padding: 14px 16px 16px; align-items: start; }
.dm-ek-qtop { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 8px; }
.dm-ek-qtop p { margin: 0; flex: 1; font-weight: 600; font-size: 12.5px; color: var(--ekyzmet); }
.dm-ek-arrows { display: flex; gap: 5px; flex: none; }
.dm-ek-arrows b { width: 30px; height: 26px; border-radius: 7px; background: #D9B282; color: #5b4322;
  display: grid; place-items: center; font-size: 14px; }
.dm-ek-opts { display: flex; flex-direction: column; gap: 2px; font-size: 12px; }
.dm-ek-opt { display: flex; gap: 8px; align-items: flex-start; padding: 7px 6px; border-radius: 8px; }
.dm-ek-opt i { flex: none; width: 14px; height: 14px; border-radius: 50%; border: 2px solid #9AA0AC; margin-top: 1px; }
.dm-ek-opt.chosen { background: color-mix(in srgb, var(--ekyzmet) 7%, transparent); }
.dm-ek-opt.chosen i { border-color: var(--ekyzmet); position: relative; }
.dm-ek-opt.chosen i::after { content: ""; position: absolute; inset: 2px; border-radius: 50%; background: var(--ekyzmet); }
.dm-ek-finish { display: inline-block; margin-top: 10px; border: 1px solid #D9B282;
  background: color-mix(in srgb, #D9B282 18%, var(--raised)); font-size: 9.5px; font-weight: 600;
  text-transform: uppercase; letter-spacing: .05em; padding: 8px 12px; border-radius: 8px; }
.dm-ek-nums { border: 1px solid var(--line); border-radius: 10px; padding: 10px;
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; align-content: start; }
.dm-ek-nums b { aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center;
  font-size: 9.5px; font-weight: 600; border: 1px solid var(--line-strong); color: var(--muted); }
.dm-ek-nums b.answered { background: #3947C2; border-color: #3947C2; color: #fff; }
.dm-ek-nums b.current { background: #E8912D; border-color: #E8912D; color: #fff; }

/* мок QRT: палитра оригинала фиксированная — реплика не темнеет */
.l-stagerow { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.l-qrt-mock { min-width: 0; }
.dm-qrt { background: #fff; border-color: #dbe1e9; color: #1c2733; }
.dm-qrt-top { display: flex; align-items: center; gap: 12px; padding: 10px 14px;
  border-bottom: 1px solid #dbe1e9; background: #fff; }
.dm-qrt-logo { font-weight: 800; font-size: 17px; color: #0054a8; letter-spacing: .02em; }
.dm-qrt-exit { color: #6b7684; font-size: 11px; font-weight: 600; }
.dm-qrt-lang { margin-left: auto; display: inline-flex; border: 1px solid #dbe1e9; border-radius: 7px;
  overflow: hidden; font-size: 10px; font-weight: 700; }
.dm-qrt-lang b { background: #0054a8; color: #fff; padding: 3px 7px; }
.dm-qrt-lang span { color: #6b7684; padding: 3px 7px; }
.dm-qrt-user { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 11px; }
.dm-qrt-user > span { width: 22px; height: 22px; border-radius: 50%; background: #e8f0fb; color: #0054a8;
  display: grid; place-items: center; font-weight: 700; font-size: 11px; }
.dm-qrt-shell { display: grid; grid-template-columns: 132px 1fr; background: #e9edf3; }
.dm-qrt-side { background: #fff; border-right: 1px solid #dbe1e9; padding: 14px 12px;
  display: flex; flex-direction: column; align-items: center; gap: 3px; }
.dm-qrt-ic { width: 44px; height: 44px; border-radius: 50%; background: #e8f0fb;
  display: grid; place-items: center; font-size: 22px; }
.dm-qrt-side strong { font-size: 13px; text-align: center; line-height: 1.2; }
.dm-qrt-side strong span { display: block; font-weight: 500; font-size: 10px; color: #6b7684; }
.dm-qrt-tl { margin-top: 10px; font-size: 10.5px; }
.dm-qrt-navlbl { align-self: flex-start; }
.dm-qrt-time { font-size: 19px; font-variant-numeric: tabular-nums; letter-spacing: .04em; }
.dm-qrt-nav { display: grid; grid-template-columns: repeat(5, 1fr); gap: 5px; width: 100%; margin-top: 6px; }
.dm-qrt-nav b { aspect-ratio: 1; border-radius: 5px; background: #fff; border: 1px solid #dbe1e9;
  color: #6b7684; display: grid; place-items: center; font-size: 10px; font-weight: 600; }
.dm-qrt-nav b.answered { background: #0054a8; border-color: #0054a8; color: #fff; }
.dm-qrt-nav b.current { outline: 2px solid #003a75; outline-offset: 1px; }
.dm-qrt-work { padding: 14px; display: grid; grid-template-columns: 1.05fr .95fr; gap: 14px; align-items: start; }
.dm-qrt-video { position: relative; padding-top: 56.25%; border-radius: 10px; overflow: hidden;
  background: #000; border: 2px solid #fff; box-shadow: 0 6px 20px rgba(20,40,70,.12); }
.dm-qrt-video img, .dm-qrt-video video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.dm-qrt-cap { margin: 8px 2px 0; color: #6b7684; font-size: 10.5px; }
.dm-qrt-qh { margin: 0 0 3px; font-weight: 700; font-size: 12px; }
.dm-qrt-stem { margin: 0 0 8px; font-size: 12px; }
.dm-qrt-opts { display: flex; flex-direction: column; gap: 6px; }
.dm-qrt-opts > span { display: flex; gap: 9px; align-items: center; padding: 8px 10px;
  border: 1px solid #C7D2E3; border-radius: 6px; background: #fff; font-size: 11.5px; }
.dm-qrt-opts b { flex: none; width: 18px; height: 18px; border: 1px solid #C7D2E3; border-radius: 5px;
  display: grid; place-items: center; font-size: 10px; color: #6b7684; }
.dm-qrt-actions { display: flex; gap: 8px; margin-top: 12px; }
.dm-qrt-actions span { padding: 8px 14px; border: 1px solid #dbe1e9; border-radius: 8px;
  background: #fff; font-size: 11px; font-weight: 600; }
.dm-qrt-actions .pri { border: none; background: linear-gradient(180deg, #0a5fb5, #0054a8);
  color: #fff; box-shadow: 0 6px 16px rgba(0,84,168,.32); }

/* --- три шага --- */
.l-step { display: flex; flex-direction: column; gap: 8px; }
.l-step-n { font-family: 'Unbounded', ui-sans-serif, sans-serif; font-size: 30px; color: var(--accent); font-weight: 700; }
.l-step strong { font-size: 17px; }
.l-step > span:last-child { color: var(--muted); font-size: 14.5px; }

/* --- отзывы --- */
.l-quote { margin: 0; display: flex; flex-direction: column; gap: 14px; }
.l-quote blockquote { margin: 0; font-size: 15px; }
.l-quote figcaption { display: flex; align-items: center; gap: 10px; margin-top: auto; }
.l-quote-av { width: 36px; height: 36px; border-radius: 50%; color: #fff;
  display: grid; place-items: center; font-weight: 700; font-size: 14px; flex: none; }
.l-quote-who { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.l-quote-who strong { font-size: 14px; }
.l-quote-who span { font-size: 12.5px; color: var(--muted); }

/* --- тарифы --- */
.l-price { display: flex; flex-direction: column; gap: 14px; position: relative; }
.l-price > div:first-child p { margin: 4px 0 0; font-size: 13.5px; color: var(--muted); }
.l-price > div:first-child strong { font-size: 17px; }
.l-price-sum { font-family: 'Unbounded', ui-sans-serif, sans-serif; font-size: 28px; font-weight: 700; }
.l-price-sum span { font-family: inherit; font-size: 13.5px; color: var(--muted); font-weight: 500; }
.l-price ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column;
  gap: 8px; font-size: 14px; color: var(--muted); flex: 1; }
.l-price .btn { justify-content: center; }
.l-price--hot { border-color: var(--accent);
  box-shadow: 0 12px 32px -16px color-mix(in srgb, var(--accent) 50%, transparent); }
.l-price-hot { position: absolute; top: -12px; right: 16px; background: var(--accent); }

/* --- FAQ --- */
.l-faq { max-width: 680px; }
.l-faq details { padding: 4px 20px; margin-top: 10px; }
.l-faq summary { cursor: pointer; font-weight: 600; padding: 14px 0; }
.l-faq details p { margin: 0 0 16px; color: var(--muted); font-size: 15px; }

/* --- финал --- */
.l-cta {
  background: var(--accent); color: var(--accent-ink); border-radius: 16px;
  padding: 44px 48px; margin: 30px 0 10px;
  display: flex; align-items: center; gap: 32px; flex-wrap: wrap;
}
.l-cta > div { flex: 1; min-width: 280px; }
.l-cta h2 { font-family: 'Unbounded', ui-sans-serif, sans-serif; margin: 0 0 8px;
  font-size: clamp(22px, 2.6vw, 30px); letter-spacing: -.01em; }
.l-cta p { margin: 0; opacity: .85; font-size: 16px; }
.l-cta .btn { background: #fff; color: var(--accent); border-color: #fff; flex: none; }

@media (max-width: 860px) {
  .l-hero { grid-template-columns: 1fr; gap: 40px; }
  .l-ticket { max-width: 420px; }
  .l-2col, .l-qrt { grid-template-columns: 1fr; gap: 32px; }
  .l-3col { grid-template-columns: 1fr; }
  .l-band { padding-top: 48px; padding-bottom: 48px; }
  .l-wide { width: auto; margin-inline: 0; }
}
@media (max-width: 560px) {
  .l-ticket-grid { grid-template-columns: 1fr 1fr; }
  .l-strip { grid-template-columns: 1fr; }
  .dm-ek-grid, .dm-qrt-work { grid-template-columns: 1fr; }
  .l-cta { padding: 32px 24px; }
}
