/* Общие стили лендинга и документов Kidland */
:root {
  --bg: #f7f2e8;
  --paper: #fffdf8;
  --ink: #2b2620;
  --muted: #6f675c;
  --line: #e6dccb;
  --accent: #c4552d;
  --sage: #e3e8d9;
  --sky: #dfe8ee;
  --sand: #f1e3c8;
  --radius: 22px;
  --serif: "Alegreya", Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }

/* шапка */
.top { padding: 18px 0; }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.logo { font: 600 30px/1 var(--serif); color: var(--ink); text-decoration: none; letter-spacing: -.01em; }
.logo i { color: var(--accent); }
.nav { display: flex; gap: 22px; font-size: 15px; }
.nav a { color: var(--muted); text-decoration: none; }
.nav a:hover { color: var(--ink); }

/* кнопки сторов */
.stores { display: flex; flex-wrap: wrap; gap: 12px; }
.store {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 11px 20px 11px 16px; border-radius: 14px;
  background: var(--ink); color: #fff; text-decoration: none;
  line-height: 1.15; min-width: 190px;
}
.store svg { width: 26px; height: 26px; flex: none; fill: currentColor; }
.store small { display: block; font-size: 11px; opacity: .75; letter-spacing: .02em; }
.store b { font-size: 18px; font-weight: 600; }
.store.soon { background: transparent; color: var(--ink); border: 1.5px solid var(--line); }

/* первый экран */
.hero { padding: 28px 0 56px; }
.hero .wrap { display: grid; grid-template-columns: 1fr 1.35fr; gap: 48px; align-items: center; }
h1 {
  font: 600 clamp(38px, 5vw, 60px)/1.05 var(--serif);
  margin: 0 0 18px; letter-spacing: -.015em;
}
h1 i, h2 i { color: var(--accent); }
.lead { font-size: 19px; color: var(--muted); margin: 0 0 28px; max-width: 34ch; }
/* рамка телефона вокруг видео из приложения */
.phone { background: #1d1a17; padding: 2.2%; border-radius: 7% / 15%; }
.phone video, .phone img { display: block; width: 100%; aspect-ratio: 1280 / 590; border-radius: 4.2% / 9%; background: #efe8db; object-fit: cover; }

/* секции */
section { padding: 64px 0; }
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin: 0 0 10px; }
h2 { font: 600 clamp(30px, 3.6vw, 44px)/1.12 var(--serif); margin: 0 0 16px; letter-spacing: -.01em; }
.intro { font-size: 19px; color: var(--muted); max-width: 60ch; margin: 0 0 36px; }

/* серии */
.series { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 40px; }
.card { border-radius: var(--radius); padding: 22px 22px 0; display: flex; flex-direction: column; overflow: hidden; }
.card.c-blue { background: #d3e2ec; }
.card.c-sand { background: var(--sand); }
.card.c-sage { background: var(--sage); }
.card .meta { font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.card h3 { font: 600 28px/1.15 var(--serif); margin: 6px 0 8px; }
.card p { margin: 0; font-size: 16px; color: var(--muted); }
.card .art { margin-top: auto; padding-top: 18px; height: 210px; display: flex; align-items: flex-end; justify-content: center; gap: 4px; }
.card .art img { height: 100%; width: auto; object-fit: contain; }
.card .art .sm { height: 92%; }
.card .art img.wide { height: auto; max-height: 100%; width: 100%; }


/* как устроено */
.how h2 { margin-bottom: 28px; }
.how { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature { background: var(--bg); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.feature .pic { padding: 22px 18px 4px; }
.feature .txt { padding: 20px 22px 24px; }
.feature h3 { font: 600 23px/1.2 var(--serif); margin: 0 0 8px; }
.feature p { margin: 0; color: var(--muted); font-size: 16px; }

/* подвал */
footer { padding: 36px 0 48px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px; }
footer nav { display: flex; flex-wrap: wrap; gap: 18px; }
footer a { color: var(--muted); }

/* документы */
.doc { max-width: 760px; margin: 0 auto; padding: 24px 16px 72px; }
.doc h1 { font-size: clamp(34px, 4.5vw, 46px); }
.doc .date { color: var(--muted); font-size: 15px; margin: 0 0 32px; }
.doc h2 { font-size: 26px; margin: 40px 0 10px; }
.doc p, .doc li { font-size: 17px; }
.doc ul { padding-left: 22px; }
.doc li { margin: 6px 0; }
.doc .box { background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 18px 22px; margin: 24px 0; }
.doc .box p { margin: 0; }

@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 28px; }
  .lead { max-width: none; }
  .series, .features { grid-template-columns: 1fr; }
  .nav { display: none; }
  section { padding: 48px 0; }
}
@media (max-width: 480px) {
  .store { min-width: 0; flex: 1 1 100%; justify-content: center; }
}

/* ——— Первый экран, серии, финал (вариант C + финал из A, выбран 28.10.2026) ——— */
/* понять за 5 секунд и скачать — возраст в заголовке, видео крупно, одна кнопка всегда под рукой */
:root { --muted: #5a5348; }
h2 i { color: inherit; }
.hero { padding-top: 12px; text-align: center; }
.hero .wrap { display: block; max-width: 1000px; }
.hero h1 { font-size: clamp(34px, 4.4vw, 54px); max-width: 18ch; margin: 0 auto 14px; }
.hero .lead { margin: 0 auto 24px; max-width: 46ch; font-size: 18px; }
.book { border-radius: 16px; overflow: hidden; box-shadow: 0 30px 60px -20px rgba(80,55,30,.4); margin: 0 auto 28px; }
.book video { display: block; width: 100%; aspect-ratio: 1280 / 590; object-fit: cover; }
.big { display: inline-flex; align-items: center; justify-content: center; gap: 12px; background: var(--ink); color: #fff; text-decoration: none; border-radius: 16px; padding: 16px 34px; font-size: 19px; font-weight: 600; min-width: 300px; }
.big svg { width: 24px; height: 24px; fill: currentColor; }
.under { margin: 12px 0 0; font-size: 15px; color: var(--muted); }
.line { margin: 18px 0 0; font-size: 15px; font-weight: 600; color: var(--ink); display: flex; justify-content: center; flex-wrap: wrap; gap: 6px 18px; }
.line span::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); margin-right: 8px; vertical-align: 2px; }
.eyebrow { color: #a8441f; font-size: 14px; }
.card .meta { color: #5a5348; font-size: 14px; }
.zoom { border-radius: 14px; overflow: hidden; aspect-ratio: 3 / 2; }
.zoom img { width: 100%; height: 100%; object-fit: cover; }
.feature .pic { padding: 18px 18px 0; }
/* финал: каток на закате, текст слева */
.final { position: relative; min-height: 380px; display: flex; align-items: center; background: url(/img/sunset.webp) center 70% / cover; }
.final::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(247,242,232,.96) 0%, rgba(247,242,232,.82) 45%, rgba(247,242,232,0) 75%); }
.final .wrap { position: relative; width: 100%; }
.final h2 { max-width: 14ch; }
.final .intro { margin-bottom: 22px; }
/* полоска с кнопкой внизу экрана, появляется после первого экрана (только телефон) */
.sticky { display: none; }
@media (max-width: 900px) {
  .series { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 14px; margin: 0 -16px; padding: 0 16px 8px; }
  .series .card { flex: 0 0 78%; scroll-snap-align: center; }
  .card .art { height: 160px; }
  .big { width: 100%; min-width: 0; }
  .sticky { display: block; position: fixed; left: 0; right: 0; bottom: 0; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: rgba(247,242,232,.96); border-top: 1px solid var(--line); transform: translateY(110%); transition: transform .3s; z-index: 10; }
  .sticky.on { transform: none; }
  .sticky .big { padding: 13px; font-size: 17px; }
  /* на телефоне каток целиком под кнопкой: картинка во всю ширину внизу, текст на чистом фоне */
  .final { align-items: flex-start; min-height: 0; padding: 40px 0 calc(50vw + 8px); background: var(--bg) url(/img/sunset.webp) center bottom / 100% auto no-repeat; }
  .final::before { background: linear-gradient(180deg, var(--bg) 0, var(--bg) calc(100% - 50vw), rgba(247,242,232,0) calc(100% - 50vw + 48px)); }
  footer { padding-bottom: 96px; }
  footer nav { flex-direction: column; gap: 4px; }
  footer nav a { padding: 10px 0; }
}
