/* KageMode — тёмная гамма «ночной Токио» (31.10.2026), акцент сакура. Прежняя светлая — в git до 31.10. */
:root {
  /* 31.10.2026: спокойнее — без чисто белого: карточки цвета васи, фон страницы чуть темнее */
  --bg: #0f0e13;
  --card: #1b1921;
  --chip: #25222d;
  --line: #2f2b38;
  --text: #f1eef5;
  --muted: #a49eaf;
  --ink: #f1eef5;
  --sakura: #f2a6b8;
  --sakura-soft: #3a2331;
  --sakura-deep: #f4a9bc;
  --matcha: #5f8a45;
  --sky: #d7ebf5;
  --sun: #e8604c;
  --radius: 22px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
section { scroll-margin-top: 88px; }
body {
  margin: 0;
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
}
a { color: var(--sakura-deep); }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 16px; }

/* Шапка и первый экран шире основной колонки: почти до краёв окна */
.bleed { width: min(1600px, calc(100vw - 32px)); margin-left: 50%; transform: translateX(-50%); }
/* Шапка прилипает к верху: полупрозрачная васи с размытием (идея с sosa.ink, цвета наши) */
header.top { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 12px 18px; position: sticky; top: 10px; z-index: 10;
  margin-top: 10px; margin-bottom: 14px; background: rgba(15, 14, 19, 0.85); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  border: 1px solid var(--line); border-radius: 999px; }
.top .mid { display: flex; gap: 28px; }
.top .actions { justify-self: end; display: flex; align-items: center; gap: 20px; }
.top .actions .link, .top .mid a { color: var(--muted); text-decoration: none; font-size: 15px; }
.top .actions .link:hover, .top .mid a:hover { color: var(--text); }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 800; font-size: 21px; letter-spacing: -0.01em; }
.brand img { width: 44px; height: 44px; display: block; }
.brand b { color: var(--sakura-deep); font-weight: 800; }

/* Первый экран: шапка и экран — одна карточка; текст по центру слева, пейзаж Фудзи справа */
.hero-card { margin-top: 16px; border-radius: 28px; overflow: hidden;
  background: radial-gradient(circle at 85% 15%, rgba(242,166,184,.18), transparent 50%), linear-gradient(135deg, #1e1b25, #141218); }  /* тёплая бумага (31.10.2026) */  /* без линий (31.10.2026) */
.hero-card header.top { position: static; margin: 0; padding: 18px 28px; background: transparent; border: 0;
  border-radius: 0; -webkit-backdrop-filter: none; backdrop-filter: none; }
.hero { display: grid; grid-template-columns: minmax(0, 1fr); }  /* без картинки (31.10.2026): текст по центру всей карточки */
.hero-art { order: 2; min-height: clamp(520px, calc(100vh - 160px), 800px); background: url("assets/hero.jpg") 96% center / cover no-repeat; }
.hero-text { padding: 88px 64px 92px; align-self: center; text-align: center; max-width: 860px; margin: 0 auto; }
.hero-meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 16px 36px; margin-top: 24px; }
.hero-meta .stats, .hero-meta .platforms.hero-pf { margin: 0; }
.hero h1 { font-size: 64px; line-height: 1.08; margin: 0 0 14px; letter-spacing: -0.02em; }
.hero h1 span { color: var(--sakura-deep); }
.hero p.lead { color: var(--muted); font-size: 19px; margin: 0 auto 22px; max-width: 520px; }
.badge { display: inline-block; background: var(--sakura-soft); color: var(--sakura-deep); padding: 6px 14px; border-radius: 999px; font-size: 14px; font-weight: 700; margin-bottom: 14px; }

.btn { display: inline-block; background: var(--ink); color: var(--card); text-decoration: none; font-weight: 700; padding: 15px 28px; border-radius: 999px; font-size: 17px; }
.btn:hover { background: #d9d4e0; }
.btn.ghost { background: var(--card); border: 1px solid var(--line); color: var(--text); margin-left: 10px; }
.btn.ghost:hover { background: var(--chip); }
.btn.small { padding: 9px 18px; font-size: 15px; }

.stats { list-style: none; display: flex; gap: 28px; padding: 0; margin: 24px 0 0; }
.stats li { display: flex; flex-direction: column; }
.stats b { font-size: 28px; line-height: 1.1; color: var(--text); }
.stats span { color: var(--muted); font-size: 14px; }
/* «Фишки» первого экрана — таблетки */
.stats.chips { flex-wrap: wrap; justify-content: center; gap: 10px; }
.stats.chips li { flex-direction: row; align-items: baseline; gap: 6px; background: var(--chip); border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; }
.stats.chips b { font-size: 18px; }
.stats.chips.top-chips { margin: 0 0 22px; }  /* «фишки» над заголовком вместо плашки (31.10.2026) */

.platforms.hero-pf { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 20px; }
.pf { background: var(--chip); border: 1px solid var(--line); border-radius: 14px; width: 54px; height: 54px; display: flex; align-items: center; justify-content: center; }
.pf svg { width: 28px; height: 28px; fill: var(--ink); }
.pf svg .ln { fill: none; stroke: var(--ink); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.pf svg .hole { fill: var(--chip); }
.pf svg .beak { fill: #f5b942; }
.pf svg .belly { fill: var(--chip); }

section { padding: 56px 0 8px; }
h2 { font-size: 34px; margin: 0 0 8px; letter-spacing: -0.01em; }
.sub { color: var(--muted); margin: 0 0 28px; }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.card h3 { margin: 0 0 6px; font-size: 18px; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }
.card { transition: transform .18s ease, box-shadow .18s ease; }
.card:hover { transform: translateY(-3px); box-shadow: 0 14px 34px rgba(0, 0, 0, 0.35); }
@media (prefers-reduced-motion: reduce) { .card, .card:hover { transition: none; transform: none; } }
#features .card { padding: 30px 28px; }
.card .ic { width: 52px; height: 52px; border-radius: 16px; background: linear-gradient(150deg, var(--sakura-soft), #fbf1f3); color: var(--sakura-deep); display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
/* киберпанк-картинки на фоне карточек (31.10.2026) */
.card.feat { position: relative; overflow: hidden; min-height: 300px; display: flex; flex-direction: column; justify-content: flex-end; color: #fff; border: 0;
  background: linear-gradient(to bottom, rgba(8,6,14,.1) 0%, rgba(8,6,14,.55) 40%, rgba(8,6,14,.9) 62%, rgba(8,6,14,.96) 100%), var(--img) var(--pos, center) / cover no-repeat, #0b0816; }
.card.feat h3 { color: #fff; }
.card.feat p { color: #fff; }
.card.feat .ic { margin-bottom: auto; color: #fff; background: rgba(8,6,14,.78); }
.card .ic svg { width: 26px; height: 26px; }

.plans { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.plan { text-align: center; padding: 26px 16px; }
.plan .name { color: var(--muted); font-weight: 600; }
.plan .price { font-size: 30px; font-weight: 800; margin: 8px 0 2px; white-space: nowrap; }
.plan .price .from { font-size: 16px; font-weight: 600; color: var(--muted); }
.plan .per { color: var(--muted); font-size: 15px; }
.plan.trial .price { color: var(--sakura-deep); }
.plan.trial.best { border: 2px solid #5a3446; background: linear-gradient(160deg, #3a2331 0%, var(--card) 100%); }
.plan.best { border: 2px solid var(--sakura); background: linear-gradient(var(--sakura-soft), var(--card) 55%); }
.feats { list-style: none; padding: 14px 0 0; margin: 14px 0 0; border-top: 1px solid var(--line); text-align: left; font-size: 14px; color: var(--muted); }
.feats li { padding: 3px 0 3px 20px; position: relative; }
.feats li::before { content: "✓"; position: absolute; left: 0; color: var(--sakura-deep); font-weight: 700; }
.note { color: var(--muted); font-size: 15px; margin-top: 18px; }

/* Локации */
.locs { display: grid; grid-template-columns: repeat(8, 1fr); gap: 14px; }
.locs > .loc { grid-column: span 2; }
.locs > .loc:nth-child(5) { grid-column: 2 / span 2; }  /* нижний ряд из трёх — по центру */
.loc { display: flex; align-items: center; gap: 14px; padding: 18px 20px; }
.loc .flag { font-size: 30px; line-height: 1; }
.loc div { display: flex; flex-direction: column; min-width: 0; }
.loc b { font-size: 16px; }
.loc div span { color: var(--muted); font-size: 14px; }
.loc em { margin-left: auto; font-style: normal; font-size: 12px; font-weight: 700; color: var(--matcha); background: #e9f3df; padding: 3px 9px; border-radius: 999px; }
/* локации — карточки с фото города (31.10.2026, фото Wikimedia Commons, CC0/PD) */
.loc.city { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 0; min-height: 230px; padding: 22px;
  border-radius: 24px; border: 1px solid rgba(255,255,255,.08); color: #fff; text-decoration: none; overflow: hidden;
  background: linear-gradient(rgba(10,10,14,.55), rgba(10,10,14,.62)), var(--img) center / cover no-repeat, #121218;
  transition: transform .18s ease, box-shadow .18s ease; }
.loc.city:hover { transform: translateY(-3px); box-shadow: 0 14px 34px rgba(20,18,26,.25); }
.loc.city .dot { position: absolute; top: 18px; right: 18px; width: 10px; height: 10px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 0 3px rgba(74,222,128,.18); }
.loc.city .flag { font-size: 28px; margin-bottom: 8px; }
.loc.city b { font-size: 24px; font-weight: 700; line-height: 1.15; color: #fff; }
.loc.city .town { color: rgba(255,255,255,.55); font-size: 15px; margin-top: 2px; }
.loc.city .go { margin-top: auto; display: inline-flex; align-items: center; gap: 10px; background: #fff; color: #17161c; font-weight: 700; font-size: 15px; padding: 11px 20px; border-radius: 999px; }
@media (prefers-reduced-motion: reduce) { .loc.city, .loc.city:hover { transition: none; transform: none; } }

details { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 16px 20px; margin-bottom: 10px; }
summary { cursor: pointer; font-weight: 600; }
details p { color: var(--muted); margin: 10px 0 0; }

/* Финальный призыв: маскот под сакурой */
/* финальный призыв — в стиле первого экрана (31.10.2026) */
.cta { margin-top: 56px; padding: 64px 24px 56px; text-align: center; border-radius: 28px; border: 1px solid var(--line);
  background: radial-gradient(circle at 85% 15%, rgba(242,166,184,.18), transparent 50%), radial-gradient(circle at 10% 100%, rgba(242,166,184,.08), transparent 45%), linear-gradient(135deg, #1e1b25, #141218); }
.cta h2 { font-size: clamp(32px, 5vw, 52px); line-height: 1.1; margin: 0 0 12px; }
.cta h2 span { color: var(--sakura-deep); }
.cta .sub { margin: 0 auto 28px; max-width: 560px; }
.cta-actions .btn.ghost { margin-left: 10px; }
.note-small { color: var(--muted); font-size: 14px; margin: 18px 0 0; }

footer { border-top: 1px solid var(--line); margin-top: 56px; padding: 28px 0 40px; color: var(--muted); font-size: 14px; }
footer .cols { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px; }
footer a { color: var(--muted); }

/* Документы */
.doc { max-width: 780px; padding: 20px 0 40px; }
.doc h1 { font-size: 36px; margin: 10px 0 4px; }
.doc .ed { color: var(--muted); margin-bottom: 28px; }
.doc h2 { font-size: 21px; margin: 28px 0 8px; }
.doc p, .doc li { color: var(--text); }
.doc table { border-collapse: collapse; width: 100%; }
.doc td { border-bottom: 1px solid var(--line); padding: 8px 0; vertical-align: top; }
.doc td:first-child { color: var(--muted); width: 40%; padding-right: 12px; }

@media (max-width: 860px) {
  header.top { grid-template-columns: 1fr auto; }
  .top .mid, .top .actions .link { display: none; }
  .bleed { width: auto; margin-left: 0; transform: none; }
  header.top { padding: 18px 0; }
  .hero { display: block; }
  .hero-art { min-height: 0; height: 210px; background-position: 75% center; }
  .hero-text { padding: 24px 20px 28px; }
  .hero h1 { font-size: 34px; }
  .hero p.lead { font-size: 17px; }
  .btn.ghost { margin: 10px 0 0; }
  .stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px 12px; }
  .stats b { white-space: nowrap; }
  .stats.chips { display: flex; }  /* таблетки переносятся строками, а не сеткой из 3 колонок */
  .grid { grid-template-columns: 1fr 1fr; }
  .locs { grid-template-columns: 1fr 1fr; }
  .locs > .loc, .locs > .loc:nth-child(5) { grid-column: auto; }
  header.top { position: sticky; transform: none; border-radius: 22px; padding: 10px 14px; }
  .hero-card { margin-top: 10px; }
  .hero-card header.top { padding: 12px 16px; }
  .plans { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .grid { grid-template-columns: 1fr; }
  .locs { grid-template-columns: 1fr; }
  h2 { font-size: 28px; }
}
#features h2 { margin-bottom: 22px; }
#locations h2 { margin-bottom: 22px; }
