/* Серверные страницы travelix: те же цвета и шрифты, что в приложении (frontend/src/index.css). */
:root {
  /* Светлая тема — тёплая «песочная» бумага вместо белого (как в приложении). */
  --bg: 243 239 231;
  --surface: 250 247 241;
  --surface-2: 234 228 217;
  --ink: 31 27 22;
  --muted: 112 103 91;
  --line: 222 213 199;
  --accent: 47 61 196;
  --accent-ink: 250 247 241;
  --signal: 245 166 35;
  --signal-ink: 31 27 22;
  --ok: 22 120 80;
  --warn: 170 100 0;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: 6 10 20;
  --surface: 13 19 34;
  --surface-2: 20 28 48;
  --ink: 231 236 245;
  --muted: 146 159 181;
  --line: 34 45 70;
  --accent: 126 156 255;
  --accent-ink: 6 10 20;
  --signal: 255 196 56;
  --signal-ink: 6 10 20;
  --ok: 74 201 142;
  --warn: 240 172 64;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: rgb(var(--bg));
  color: rgb(var(--ink));
  font: 16px/1.6 "Onest", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: rgb(var(--accent)); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
img { max-width: 100%; height: auto; display: block; }
/* Заголовки — Geologica с заострёнными углами, цифры и метки — Tektur («табло вылетов»), как в приложении. */
h1, h2, h3, .display-font { font-variation-settings: "SHRP" 40; }
h1, h2, h3 { font-family: "Geologica", "Onest", system-ui, sans-serif; font-weight: 700; letter-spacing: -0.025em; text-wrap: balance; margin: 0; }
p { margin: 0; }
:focus-visible { outline: 2px solid rgb(var(--accent)); outline-offset: 2px; }

.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left)); padding-right: max(16px, env(safe-area-inset-right)); }
.narrow { max-width: 820px; }
.max-prose { max-width: 64ch; }
.muted { color: rgb(var(--muted)); }
.small { font-size: 13px; }
.mono { font-family: "Tektur", ui-monospace, monospace; font-variant-numeric: tabular-nums; }
.upper { text-transform: uppercase; letter-spacing: .08em; }
.num { font-variant-numeric: tabular-nums; }
.nowrap { white-space: nowrap; }
.accent { color: rgb(var(--accent)); }
.eyebrow { font: 500 11px/1.4 "Tektur", ui-monospace, monospace; text-transform: uppercase; letter-spacing: .14em; color: rgb(var(--muted)); margin-bottom: 10px; }
.grad {
  background: linear-gradient(95deg, #2dd4bf 0%, #bef264 28%, #fbbf24 48%, #a78bfa 72%, #f97316 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* --- шапка --- */
.site-header { position: sticky; top: 0; z-index: 20; background: rgb(var(--bg) / .82); backdrop-filter: blur(12px); border-bottom: 1px solid rgb(var(--line) / .6); }
.header-row { display: flex; align-items: center; gap: 16px; height: 64px; }
.logo { display: inline-flex; align-items: center; gap: 8px; color: rgb(var(--ink)); font: 700 18px "Geologica", sans-serif; font-variation-settings: "SHRP" 40; letter-spacing: -0.03em; }
.logo:hover { text-decoration: none; }
.logo-mark { width: 28px; height: 28px; }
.lm-bg { fill: rgb(var(--accent)); }
.lm-path { stroke: rgb(var(--signal)); }
.lm-dot { fill: rgb(var(--accent-ink)); }
.site-nav { display: flex; gap: 2px; margin-left: 12px; }
.site-nav a { color: rgb(var(--muted)); font-size: 14px; padding: 8px 12px; border-radius: 8px; white-space: nowrap; }
.site-nav a:hover, .site-nav a[aria-current] { color: rgb(var(--ink)); background: rgb(var(--ink) / .05); text-decoration: none; }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.icon-btn { display: grid; place-items: center; width: 36px; height: 36px; border: 0; border-radius: 8px; background: transparent; color: rgb(var(--muted)); cursor: pointer; }
.icon-btn:hover { background: rgb(var(--ink) / .05); color: rgb(var(--ink)); }
.icon-btn svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
:root[data-theme="dark"] .i-moon, :root[data-theme="light"] .i-sun { display: none; }
@media (max-width: 860px) {
  .header-row { flex-wrap: wrap; height: auto; padding-top: 10px; padding-bottom: 0; gap: 8px 12px; }
  .site-nav { order: 3; width: 100%; margin: 0 -4px; overflow-x: auto; scrollbar-width: none; padding-bottom: 6px; }
  .site-nav::-webkit-scrollbar { display: none; }
}

/* --- кнопки --- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 20px; border-radius: 12px; font: 500 15px "Onest", sans-serif; border: 1px solid transparent; cursor: pointer; white-space: nowrap; }
.btn:hover { text-decoration: none; }
.btn-sm { height: 36px; padding: 0 14px; font-size: 14px; border-radius: 10px; }
.btn-primary { background: rgb(var(--accent)); color: rgb(var(--accent-ink)); }
.btn-primary:hover { background: rgb(var(--accent) / .88); }
.btn-signal { background: rgb(var(--signal)); color: rgb(var(--signal-ink)); }
.btn-ghost { border-color: rgb(var(--line)); color: rgb(var(--ink)); background: rgb(var(--surface) / .5); }
.btn-ghost:hover { border-color: rgb(var(--accent) / .5); }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }

/* --- герои и секции --- */
.hero { padding: 64px 0 40px; position: relative; }
.hero h1 { font-size: clamp(32px, 5vw, 56px); line-height: 1.08; max-width: 22ch; }
.hero h1.display { font-size: clamp(36px, 6.4vw, 76px); max-width: 16ch; }
.hero .lead { margin-top: 18px; font-size: clamp(16px, 1.6vw, 19px); color: rgb(var(--muted)); max-width: 62ch; }
.hero-glow { overflow: hidden; }
.hero-glow::before {
  content: ""; position: absolute; inset: -40% -10% auto; height: 120%; z-index: -1; pointer-events: none;
  background:
    radial-gradient(40% 50% at 15% 40%, rgb(45 212 191 / .16), transparent 70%),
    radial-gradient(35% 45% at 55% 20%, rgb(139 92 246 / .18), transparent 70%),
    radial-gradient(40% 50% at 90% 50%, rgb(249 115 22 / .12), transparent 70%);
}
.vision-hero { padding: 96px 0 72px; }
.section { padding-top: 56px; padding-bottom: 56px; }
.section-tight { padding-top: 8px; padding-bottom: 64px; }
.section-title { font-size: clamp(24px, 3vw, 34px); line-height: 1.15; margin-bottom: 12px; }
.band { background: rgb(var(--surface)); border-top: 1px solid rgb(var(--line)); border-bottom: 1px solid rgb(var(--line)); padding: 56px 0; }

.steps { list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.steps h3, .points h3 { font-family: "Onest", sans-serif; font-size: 18px; letter-spacing: 0; margin: 8px 0 6px; }
.steps p, .points p { color: rgb(var(--muted)); font-size: 15px; }
.step-n { font: 600 14px "Tektur", monospace; color: rgb(var(--accent)); }
.points { display: grid; gap: 32px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

/* --- пример --- */
.example-grid { display: grid; gap: 20px; margin-top: 28px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 960px) { .example-grid { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); } }
.card { background: rgb(var(--surface)); border: 1px solid rgb(var(--line)); border-radius: 18px; overflow: hidden; }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: 1px dashed rgb(var(--line)); }
.route { font: 600 15px "Tektur", sans-serif; letter-spacing: .04em; }
.card-body { padding: 18px 20px 20px; }
.total { font: 600 30px/1.1 "Tektur", sans-serif; font-variant-numeric: tabular-nums; margin: 2px 0 16px; }
.bars { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; font-size: 13px; }
.bars .num { font-family: "Tektur", sans-serif; font-size: 13px; }
.day-items .num, .day-items .mono { font-family: "Tektur", sans-serif; font-size: 13px; }
.bars li { display: grid; grid-template-columns: 140px 1fr auto; gap: 12px; align-items: center; }
.bar { position: relative; height: 6px; border-radius: 99px; background: rgb(var(--ink) / .07); }
.bar i, .bar b { position: absolute; top: 0; bottom: 0; border-radius: 99px; }
.bar i { left: 0; background: rgb(var(--accent)); }
.bar b { background: rgb(var(--accent) / .3); }
@media (max-width: 520px) { .bars li { grid-template-columns: 1fr auto; } .bar { grid-column: 1 / -1; grid-row: 2; } }
.card-foot { display: flex; justify-content: space-between; gap: 12px; padding: 12px 20px; font-size: 12px; color: rgb(var(--muted)); border-top: 1px dashed rgb(var(--line)); background: rgb(var(--surface-2) / .5); }
.day-head { display: flex; gap: 12px; align-items: flex-start; padding: 14px 20px; border-bottom: 1px solid rgb(var(--line)); background: rgb(var(--surface-2) / .5); }
.day-head h3 { font: 600 16px "Onest", sans-serif; letter-spacing: 0; }
.day-n { display: grid; place-items: center; width: 44px; height: 44px; flex: none; border-radius: 12px; background: rgb(var(--ink)); color: rgb(var(--bg)); font: 600 18px/1 "Tektur", sans-serif; }
.day-n small { font: 10px/1 "Tektur", monospace; text-transform: uppercase; opacity: .7; }
.day-items { list-style: none; margin: 0; padding: 0; }
.day-items li { display: grid; grid-template-columns: 52px 1fr auto; gap: 12px; padding: 13px 20px; border-top: 1px solid rgb(var(--line)); font-size: 15px; }
.day-items li:first-child { border-top: 0; }
@media (max-width: 520px) { .day-items li { grid-template-columns: 48px 1fr; } .day-items li .num { grid-column: 2; font-size: 13px; } }
sup.ref { font: 10px "Tektur", monospace; color: rgb(var(--accent)); margin-left: 2px; }

/* --- CTA --- */
.cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; padding: 36px 32px; border-radius: 24px; background: #060a14; color: #e7ecf5; border: 1px solid rgb(126 156 255 / .2);
  background-image: radial-gradient(60% 120% at 0% 0%, rgb(139 92 246 / .25), transparent 60%), radial-gradient(50% 120% at 100% 100%, rgb(249 115 22 / .18), transparent 60%); }
:root[data-theme="light"] .cta { background-color: rgb(var(--surface-2)); color: rgb(var(--ink)); border-color: rgb(var(--line));
  background-image: radial-gradient(60% 120% at 0% 0%, rgb(124 58 237 / .12), transparent 60%), radial-gradient(50% 120% at 100% 100%, rgb(234 88 12 / .1), transparent 60%); }
:root[data-theme="light"] .cta p { color: rgb(var(--muted)); }
:root[data-theme="light"] .grad { background-image: linear-gradient(95deg, #0f766e 0%, #65a30d 28%, #b45309 48%, #6d28d9 72%, #c2410c 100%); }
.cta h2 { font-size: 24px; }
.cta p { color: rgb(231 236 245 / .7); margin-top: 6px; max-width: 48ch; }
.cta-inline { margin: 40px 0; }

/* --- FAQ --- */
.faq { border-top: 1px solid rgb(var(--line)); }
.faq details { border-bottom: 1px solid rgb(var(--line)); padding: 16px 0; }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; cursor: pointer; list-style: none; font-weight: 500; font-size: 17px; }
.faq summary::-webkit-details-marker { display: none; }
.faq .plus { display: grid; place-items: center; width: 26px; height: 26px; flex: none; border: 1px solid rgb(var(--line)); border-radius: 7px; color: rgb(var(--muted)); font-family: "JetBrains Mono", monospace; transition: transform .2s; }
.faq details[open] .plus { transform: rotate(45deg); }
.faq details p { margin-top: 8px; color: rgb(var(--muted)); max-width: 68ch; }

/* --- видение --- */
.eras { list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 0; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); border-top: 1px solid rgb(var(--line)); }
.eras li { padding: 20px 20px 4px 0; position: relative; }
.eras li::before { content: ""; position: absolute; top: -5px; left: 0; width: 9px; height: 9px; border-radius: 50%; background: rgb(var(--line)); }
.eras li.now::before { background: rgb(var(--signal)); box-shadow: 0 0 0 6px rgb(var(--signal) / .2); }
.eras h3 { font: 600 18px "Onest", sans-serif; letter-spacing: 0; margin: 6px 0; }
.eras p { color: rgb(var(--muted)); font-size: 15px; }
.eras .mono { font-size: 13px; color: rgb(var(--muted)); }
.notes { list-style: none; padding: 0; margin: 24px 0 20px; border-top: 1px solid rgb(var(--line)); }
.notes a { display: grid; grid-template-columns: 150px 1fr auto; gap: 16px; align-items: baseline; padding: 16px 0; border-bottom: 1px solid rgb(var(--line)); color: rgb(var(--ink)); }
.notes a:hover { text-decoration: none; color: rgb(var(--accent)); }
.note-title { font-weight: 500; font-size: 17px; }
@media (max-width: 640px) { .notes a { grid-template-columns: 1fr auto; } .notes .mono { grid-column: 1 / -1; } }
.statement { padding: 88px 0; text-align: center; border-top: 1px solid rgb(var(--line)); }
.statement-text { font: 700 clamp(26px, 3.6vw, 46px)/1.2 "Geologica", sans-serif; font-variation-settings: "SHRP" 40; letter-spacing: -0.025em; text-wrap: balance; }

/* Блоки на фото: текст светлый в обеих темах, фото затемнено слева/по центру. */
.on-photo { --ink: 238 242 248; --muted: 198 207 222; --line: 92 108 138; --surface: 13 19 34; --accent: 126 156 255; --accent-ink: 6 10 20; color-scheme: dark; color: rgb(var(--ink)); position: relative; isolation: isolate; overflow: hidden; background: rgb(6 10 20); }
:root[data-theme] .on-photo .grad { background-image: linear-gradient(95deg, #2dd4bf 0%, #bef264 28%, #fbbf24 48%, #a78bfa 72%, #f97316 100%); }
.on-photo > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.on-photo::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; }

.vision-hero.on-photo { min-height: min(84svh, 760px); display: flex; align-items: flex-end; padding: 140px 0 72px; }
.vision-hero-photo { object-position: 64% 50%; animation: photo-settle 1.8s cubic-bezier(.16, 1, .3, 1) both; }
.vision-hero.on-photo::after {
  background:
    linear-gradient(90deg, rgb(6 10 20 / .9) 0%, rgb(6 10 20 / .66) 36%, rgb(6 10 20 / .16) 70%, rgb(6 10 20 / 0) 100%),
    linear-gradient(180deg, rgb(6 10 20 / .3) 0%, rgb(6 10 20 / 0) 28%);
}
:root[data-theme="dark"] .vision-hero.on-photo::after {
  background:
    linear-gradient(90deg, rgb(6 10 20 / .9) 0%, rgb(6 10 20 / .66) 36%, rgb(6 10 20 / .16) 70%, rgb(6 10 20 / 0) 100%),
    linear-gradient(180deg, rgb(6 10 20 / .3) 0%, rgb(6 10 20 / 0) 28%, rgb(6 10 20 / 0) 72%, rgb(var(--bg)) 100%);
}
.vision-hero.on-photo .lead { max-width: 54ch; }
@media (min-width: 1000px) { .vision-hero.on-photo > .vision-hero-photo { width: 118%; max-width: none; inset: 0 auto 0 0; transform-origin: 70% 50%; } }
@keyframes photo-settle { from { transform: scale(1.07); opacity: .4; } to { transform: none; opacity: 1; } }
@media (max-width: 720px) {
  .vision-hero.on-photo { min-height: 0; padding: 200px 0 48px; }
  .vision-hero-photo { object-position: 70% 50%; }
  .vision-hero.on-photo::after { background: linear-gradient(180deg, rgb(6 10 20 / .15) 0%, rgb(6 10 20 / .55) 38%, rgb(6 10 20 / .92) 100%); }
  :root[data-theme="dark"] .vision-hero.on-photo::after { background: linear-gradient(180deg, rgb(6 10 20 / .15) 0%, rgb(6 10 20 / .55) 38%, rgb(var(--bg)) 100%); }
}

.bigpic { display: grid; gap: 36px; align-items: start; }
.bigpic .eras { grid-template-columns: 1fr; border-top: 0; border-left: 1px solid rgb(var(--line)); margin: 28px 0 0 4px; }
.bigpic .eras li { padding: 0 0 26px 26px; }
.bigpic .eras li:last-child { padding-bottom: 0; }
.bigpic .eras li::before { top: 7px; left: -5px; }
.bigpic-photo { margin: 0; position: relative; border-radius: 24px; overflow: hidden; border: 1px solid rgb(var(--line)); aspect-ratio: 4 / 3; background: rgb(var(--surface-2)); }
.bigpic-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 58%; }
.bigpic-chip { position: absolute; left: 14px; right: 14px; bottom: 14px; display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; background: rgb(6 10 20 / .5); -webkit-backdrop-filter: blur(14px) saturate(1.3); backdrop-filter: blur(14px) saturate(1.3); border: 1px solid rgb(255 255 255 / .14); color: #eef2f8; font-size: 14px; font-weight: 500; line-height: 1.3; }
.bigpic-chip .mono { flex: none; font-size: 12px; color: #ffc438; padding: 3px 8px; border-radius: 999px; background: rgb(255 196 56 / .14); }
@media (min-width: 900px) {
  .bigpic { grid-template-columns: minmax(0, 1fr) minmax(0, 440px); gap: 72px; }
  .bigpic-photo { position: sticky; top: 96px; aspect-ratio: 4 / 5; }
}

.statement.on-photo { border-top: 0; padding: clamp(120px, 17vw, 210px) 0; }
.statement-photo { object-position: 50% 45%; }
.statement.on-photo::after { background: radial-gradient(70% 80% at 50% 52%, rgb(6 10 20 / .66), rgb(6 10 20 / .22) 100%); }
:root[data-theme="dark"] .statement.on-photo::after {
  background: linear-gradient(180deg, rgb(var(--bg)) 0%, rgb(6 10 20 / 0) 26%), radial-gradient(70% 80% at 50% 52%, rgb(6 10 20 / .66), rgb(6 10 20 / .22) 100%);
}
.statement.on-photo .statement-text { filter: drop-shadow(0 2px 18px rgb(0 0 0 / .4)); }

/* --- статьи: хаб --- */
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 13px; color: rgb(var(--muted)); margin-bottom: 14px; }
.crumbs a { color: rgb(var(--muted)); }
.featured { margin: 8px 0 32px; }
.featured-link { display: grid; gap: 0; grid-template-columns: minmax(0, 1fr); border: 1px solid rgb(var(--line)); border-radius: 22px; overflow: hidden; background: rgb(var(--surface)); color: rgb(var(--ink)); }
.featured-link:hover { text-decoration: none; border-color: rgb(var(--accent) / .45); }
@media (min-width: 900px) { .featured-link { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); } }
.featured-cover { aspect-ratio: 16 / 10; background: rgb(var(--surface-2)); }
.featured-cover img { width: 100%; height: 100%; object-fit: cover; }
.featured-body { padding: 28px; display: flex; flex-direction: column; gap: 12px; justify-content: center; }
.featured-body h2 { font-size: clamp(22px, 2.4vw, 30px); line-height: 1.15; }
.featured-body .btn { align-self: flex-start; margin-top: 6px; }
.filters { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 4px 0 8px; border-bottom: 1px solid rgb(var(--line)); margin-bottom: 28px; }
.filters::-webkit-scrollbar { display: none; }
.filters a { white-space: nowrap; padding: 8px 14px; border-radius: 99px; border: 1px solid rgb(var(--line)); color: rgb(var(--muted)); font-size: 14px; }
.filters a:hover { color: rgb(var(--ink)); text-decoration: none; }
.filters a[aria-current] { background: rgb(var(--ink)); color: rgb(var(--bg)); border-color: rgb(var(--ink)); }
.filters .count { opacity: .6; font-size: 12px; margin-left: 2px; }
.feed-title { font: 700 21px "Geologica", sans-serif; font-variation-settings: "SHRP" 40; margin-bottom: 20px; }
.stories { display: grid; gap: 28px 20px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); margin-bottom: 48px; }
.story-link { display: flex; flex-direction: column; gap: 8px; color: rgb(var(--ink)); }
.story-link:hover { text-decoration: none; }
.story-link:hover .story-title { color: rgb(var(--accent)); }
.story-cover { aspect-ratio: 3 / 2; border-radius: 16px; overflow: hidden; background: rgb(var(--surface-2)); margin-bottom: 6px; }
.story-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.story-link:hover .story-cover img { transform: scale(1.03); }
.cover-fallback { display: block; width: 100%; height: 100%; background: radial-gradient(60% 80% at 20% 30%, rgb(45 212 191 / .25), transparent), radial-gradient(60% 80% at 80% 70%, rgb(139 92 246 / .25), transparent), rgb(var(--surface-2)); }
.story-meta { font-size: 13px; color: rgb(var(--muted)); }
.story-meta span { color: rgb(var(--accent)); }
.story-title { font: 600 18px/1.3 "Onest", sans-serif; letter-spacing: -0.01em; }
.story-desc { color: rgb(var(--muted)); font-size: 14px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.empty { padding: 40px; border: 1px dashed rgb(var(--line)); border-radius: 18px; text-align: center; color: rgb(var(--muted)); display: grid; gap: 16px; justify-items: center; margin-bottom: 48px; }
.pager { display: flex; gap: 6px; justify-content: center; margin: 0 0 56px; }
.pager a { min-width: 38px; height: 38px; display: grid; place-items: center; border-radius: 10px; border: 1px solid rgb(var(--line)); color: rgb(var(--muted)); }
.pager a[aria-current] { background: rgb(var(--accent)); color: rgb(var(--accent-ink)); border-color: transparent; }

/* --- статья --- */
.post-narrow { max-width: 760px; }
.post-wide { max-width: 1000px; }
.post-head { padding-top: 48px; padding-bottom: 24px; }
.post-head h1 { font-size: clamp(28px, 4.2vw, 46px); line-height: 1.12; margin-bottom: 14px; }
.post-cover { margin: 0 auto 32px; }
.post-cover img { width: 100%; border-radius: 20px; }
figcaption { font-size: 13px; color: rgb(var(--muted)); margin-top: 8px; }
.prose { font-size: 17px; line-height: 1.7; padding-bottom: 32px; }
.prose > * + * { margin-top: 18px; }
.prose h2 { font-size: clamp(22px, 2.6vw, 28px); line-height: 1.2; margin-top: 44px; }
.prose h3 { font: 600 20px/1.3 "Onest", sans-serif; letter-spacing: -0.01em; margin-top: 32px; }
.prose ul, .prose ol { padding-left: 22px; }
.prose li + li { margin-top: 8px; }
.prose figure { margin: 32px 0; }
.prose figure img { border-radius: 16px; width: 100%; }
.post-lead { font-size: 20px; line-height: 1.55; color: rgb(var(--ink)); }
.callout { padding: 16px 18px; border-radius: 14px; border: 1px solid rgb(var(--line)); background: rgb(var(--surface)); font-size: 16px; }
.callout.tip { border-left: 3px solid rgb(var(--ok)); }
.callout.warn { border-left: 3px solid rgb(var(--warn)); }
.sources { border-top: 1px solid rgb(var(--line)); padding-top: 24px; margin-top: 40px; }
.sources h2 { font-size: 20px; margin: 0 0 12px; }
.sources ol { font-size: 14px; padding-left: 22px; }
.sources li { word-break: break-word; }
.sources li:target { background: rgb(var(--signal) / .15); border-radius: 6px; }

/* --- карта сайта --- */
.sitemap { display: grid; gap: 32px 40px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); padding-bottom: 64px; }
.sitemap ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.sitemap a { color: rgb(var(--ink)); }
.sitemap-posts { grid-column: 1 / -1; }
.sitemap-posts ul { columns: 2 320px; column-gap: 40px; display: block; }
.sitemap-posts li { break-inside: avoid; margin-bottom: 8px; }

/* --- подвал --- */
.site-footer { border-top: 1px solid rgb(var(--line)); margin-top: 24px; }
.footer-grid { display: grid; gap: 28px; grid-template-columns: 1.4fr repeat(4, 1fr); padding-top: 40px; padding-bottom: 28px; }
.footer-grid > div { display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.footer-grid a:not(.logo) { color: rgb(var(--muted)); }
.footer-grid a:not(.logo):hover { color: rgb(var(--ink)); }
.footer-brand p { color: rgb(var(--muted)); max-width: 30ch; }
.footer-bottom { padding-bottom: 32px; font-size: 12px; color: rgb(var(--muted)); }
@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }

/* --- анимации: смена темы, раскрытие вопросов, появление блоков --- */
::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
.icon-btn.spin svg { animation: theme-spin .35s ease-out; }
@keyframes theme-spin { from { transform: rotate(-90deg) scale(.4); opacity: 0; } to { transform: none; opacity: 1; } }
/* Плавное раскрытие <details> там, где браузер это умеет (Chrome 131+), остальные открывают как раньше. */
@supports (interpolate-size: allow-keywords) {
  :root { interpolate-size: allow-keywords; }
  .faq details::details-content { height: 0; overflow: clip; transition: height .32s cubic-bezier(.16, 1, .3, 1), content-visibility .32s allow-discrete; }
  .faq details[open]::details-content { height: auto; }
}
.faq details p { animation: none; }
.faq details[open] p { animation: faq-in .35s ease-out; }
@keyframes faq-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
/* Карточки и колонки появляются при прокрутке (без JS: animation-timeline, где поддерживается). */
@supports (animation-timeline: view()) {
  .story, .eras li, .points > div, .featured {
    animation: rise linear both; animation-timeline: view(); animation-range: entry 0% entry 40%;
  }
  @keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
  .statement-photo { animation: drift linear both; animation-timeline: view(); }
  @keyframes drift { from { transform: scale(1.14) translateY(-5%); } to { transform: scale(1.14) translateY(5%); } }
}
@media (prefers-reduced-motion: reduce) {
  ::view-transition-new(root) { animation: none !important; }
  .story, .step-card, .eras li, .points > div, .featured, .vision-hero-photo, .statement-photo { animation: none !important; }
}

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* --- переключатель языка RU / EN --- */
.lang-switch { display: flex; padding: 2px; border-radius: 9px; background: rgb(var(--ink) / .05); }
.lang-switch a { font: 500 12px/1 "Onest", sans-serif; padding: 7px 8px; border-radius: 7px; color: rgb(var(--muted)); }
.lang-switch a:hover { color: rgb(var(--ink)); text-decoration: none; }
.lang-switch a[aria-current] { background: rgb(var(--surface)); color: rgb(var(--ink)); box-shadow: 0 1px 2px rgb(0 0 0 / .08); }
@media (max-width: 520px) { .header-cta { display: none; } }


/* --- пример на «Как это работает»: день с фото, «билет», из чего складывается --- */
@media (min-width: 960px) { .example-grid { grid-template-columns: minmax(0, 1.25fr) minmax(0, .9fr); align-items: start; } }
.example-side { display: grid; gap: 20px; min-width: 0; }
.day-items li { grid-template-columns: 52px minmax(0, 1fr) auto; align-items: start; }
.it-time { display: grid; gap: 6px; justify-items: start; }
.kind-ico { width: 16px; height: 16px; fill: none; stroke: rgb(var(--muted)); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.it-main { min-width: 0; }
.it-title { line-height: 1.45; }
.it-price { white-space: nowrap; text-align: right; font-size: 14px; }
.it-price .num, .it-price-sm .num { font-family: "Tektur", sans-serif; font-weight: 600; }
.it-price .muted, .it-price-sm .muted { font-size: 12px; }
.it-price-sm { display: none; margin-top: 4px; font-size: 13px; }
@media (max-width: 520px) { .it-price { display: none; } .it-price-sm { display: block; } }
.strip { list-style: none; display: flex; gap: 8px; margin: 10px -4px 0; padding: 0 4px 4px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.strip li { flex: none; scroll-snap-align: start; }
.ph { position: relative; display: block; width: 128px; height: 88px; padding: 0; border: 0; border-radius: 10px; overflow: hidden; background: rgb(var(--surface-2)); cursor: zoom-in; }
.ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.ph:hover img { transform: scale(1.05); }
.ph-count { position: absolute; left: 4px; bottom: 4px; padding: 2px 6px; border-radius: 5px; background: rgb(0 0 0 / .6); color: #fff; font: 10px "Tektur", sans-serif; }
@media (max-width: 520px) { .ph { width: 112px; height: 80px; } }

.ticket-wrap { position: relative; }
.route-board { display: inline-flex; align-items: center; gap: 8px; }
.route-board .code { padding: 3px 7px; border-radius: 6px; background: rgb(var(--ink)); color: rgb(var(--bg)); font: 600 13px "Tektur", sans-serif; letter-spacing: .14em; }
.route-board svg { width: 14px; height: 14px; fill: none; stroke: rgb(var(--muted)); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.sticker { position: absolute; top: -12px; right: -10px; transform: rotate(6deg); padding: 5px 10px; border-radius: 8px; background: rgb(var(--signal)); color: rgb(var(--signal-ink));
  font: 600 11px "Tektur", sans-serif; text-transform: uppercase; letter-spacing: .1em; box-shadow: 0 6px 16px rgb(0 0 0 / .25); }
@media (max-width: 520px) { .sticker { right: 6px; } }

.breakdown { padding: 20px; }
.breakdown ul { list-style: none; margin: 14px 0 0; padding: 0; }
.breakdown li { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-top: 1px solid rgb(var(--line)); font-size: 14px; }
.breakdown li:first-child { border-top: 0; }
.breakdown .num { font-family: "Tektur", sans-serif; white-space: nowrap; }
.bd-total { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-top: 6px; padding-top: 12px; border-top: 2px solid rgb(var(--ink)); font-weight: 600; }
.bd-total .num { font: 600 20px "Tektur", sans-serif; }
.bd-pp { margin-top: 4px; text-align: right; font-size: 12px; color: rgb(var(--muted)); }
.bd-note { margin-top: 14px; font-size: 12px; color: rgb(var(--muted)); }

.lightbox { width: min(1100px, 100vw - 32px); max-height: calc(100vh - 32px); padding: 0; border: 0; border-radius: 16px; background: #05070d; color: #e7ecf5; overflow: hidden; }
.lightbox::backdrop { background: rgb(0 0 0 / .8); backdrop-filter: blur(4px); }
.lightbox figure { margin: 0; display: grid; }
.lightbox img { width: 100%; max-height: calc(100vh - 110px); object-fit: contain; background: #000; }
.lightbox figcaption { padding: 12px 16px; font-size: 13px; overflow-wrap: anywhere; }
.lightbox figcaption .muted { color: rgb(231 236 245 / .6); }
.lightbox figcaption a { color: #9db2ff; }
.lb-btn { position: absolute; display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 999px; background: rgb(0 0 0 / .5); color: #fff; cursor: pointer; }
.lb-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.lb-prev { left: 12px; top: 40%; } .lb-next { right: 12px; top: 40%; } .lb-close { right: 12px; top: 12px; }
.lb-count { position: absolute; left: 14px; top: 14px; padding: 3px 8px; border-radius: 6px; background: rgb(0 0 0 / .5); font-size: 12px; }
.it-word { font-size: 13px; color: rgb(var(--muted)); }

/* --- три шага: номера на линии и карточки со списком (по мотивам «How it works», ravikatiyar162, 21st.dev) --- */
.steps-section { padding: 72px 0 24px; }
.steps-head { max-width: 640px; margin: 0 auto 40px; text-align: center; }
.steps-head .section-title { font-size: clamp(28px, 4vw, 44px); margin-bottom: 12px; }
.steps-head p { color: rgb(var(--muted)); font-size: clamp(15px, 1.5vw, 18px); }
.steps-track { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-bottom: 28px; }
.steps-track::before { content: ""; position: absolute; left: 16.667%; right: 16.667%; top: 50%; height: 2px; transform: translateY(-50%); background: rgb(var(--line)); }
.steps-track span {
  position: relative; justify-self: center; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  font: 600 14px "Tektur", monospace; color: rgb(var(--ink)); background: rgb(var(--surface-2)); box-shadow: 0 0 0 5px rgb(var(--bg));
}
.steps-cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 768px) { .steps-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 767px) { .steps-track { display: none; } }
.step-card {
  position: relative; padding: 24px; border-radius: 18px; border: 1px solid rgb(var(--line)); background: rgb(var(--surface));
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease, background-color .3s ease;
}
.step-card:hover { transform: scale(1.03); border-color: rgb(var(--accent) / .5); background: rgb(var(--surface-2)); box-shadow: 0 22px 44px -24px rgb(0 0 0 / .5); }
.step-card-top { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 16px; }
.step-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; background: rgb(var(--surface-2)); color: rgb(var(--accent)); transition: background-color .3s ease; }
.step-card:hover .step-icon { background: rgb(var(--surface)); }
.step-icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.step-num { display: none; font-size: 13px; color: rgb(var(--muted)); }
@media (max-width: 767px) { .step-num { display: block; } }
.step-card h3 { font: 600 20px/1.25 "Geologica", "Onest", sans-serif; font-variation-settings: "SHRP" 40; letter-spacing: -0.015em; margin: 0 0 8px; }
.step-card > p { color: rgb(var(--muted)); font-size: 15px; margin-bottom: 20px; }
.step-card ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.step-card ul li { display: flex; align-items: flex-start; gap: 12px; color: rgb(var(--muted)); font-size: 14.5px; line-height: 1.45; }
.step-card ul li::before {
  content: ""; flex: none; width: 16px; height: 16px; margin-top: 1px; border-radius: 50%;
  background: radial-gradient(circle, rgb(var(--accent)) 0 3.5px, rgb(var(--accent) / .2) 4px);
}
@media (prefers-reduced-motion: reduce) { .step-card:hover { transform: none; } }

/* Документы (/legal) */
.legal { padding-bottom: 64px; }
.legal.prose { font-size: 16px; line-height: 1.65; }
.legal.prose h2 { font-size: clamp(19px, 2.2vw, 22px); margin-top: 36px; }
.table-wrap { overflow-x: auto; }
.legal-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.legal-table th, .legal-table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid rgb(var(--line)); vertical-align: top; }
.legal-table th { font-weight: 600; color: rgb(var(--muted)); font-size: 13px; }
.legal-list { list-style: none; padding: 0; margin: 0; border-top: 1px solid rgb(var(--line)); }
.legal-list li { border-bottom: 1px solid rgb(var(--line)); }
.legal-list a { display: flex; flex-direction: column; gap: 4px; padding: 16px 0; color: inherit; text-decoration: none; }
.legal-list a:hover strong { color: rgb(var(--accent)); }
.legal-req { margin-top: 40px; }
.legal-req dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 20px; margin-top: 12px; font-size: 15px; }
.legal-req dt { color: rgb(var(--muted)); }
.legal-req dd { margin: 0; overflow-wrap: anywhere; }
.legal section > * + * { margin-top: 12px; }
.legal section ul { padding-left: 22px; }
.legal section li + li { margin-top: 6px; }
