/* Museum of the Impossible — лендинг. Палитра — та же, что в игре (apps/tvos/MuseumTV/Components.swift
   Palette): ночной синий, золото, кремовый текст, тёмная обводка и пять цветов залов. Материалы —
   арт-гайд Bold Cartoon Party Game: толстые тёмные контуры, жёсткие тени, сочные плашки. */
@font-face {
  font-family: "Lilita One";
  src: url("/fonts/lilita-one-latin.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Nunito";
  src: url("/fonts/nunito-latin.woff2") format("woff2");
  font-weight: 200 1000;
  font-display: swap;
}

:root {
  --night: #132143;
  --night-deep: #0b142d;
  --night-soft: #1c2d5a;
  --gold: #f5b83d;
  --gold-light: #ffd977;
  --cream: #fff5de;
  --parchment: #f6e6c3;
  --outline: #241b25;
  --red: #d7373b;
  --blue: #1c78c8;
  --green: #219968;
  --purple: #873ec2;
  --yellow: #eeae2f;
  --muted: #c3cbea;
  --display: "Lilita One", "Arial Rounded MT Bold", "Trebuchet MS", sans-serif;
  --body: "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --gutter: clamp(16px, 4vw, 40px);
  --max: 1180px;
  --line: 4px;
  --drop: 0 6px 0 var(--outline);
  /* Обводка текста в стиле игровых надписей */
  --stroke: -2px -2px 0 var(--outline), 2px -2px 0 var(--outline), -2px 2px 0 var(--outline), 2px 2px 0 var(--outline),
            0 -3px 0 var(--outline), 0 3px 0 var(--outline), -3px 0 0 var(--outline), 3px 0 0 var(--outline);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body { margin: 0; background: var(--night); color: var(--cream); font: 500 18px/1.6 var(--body); overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold-light); text-underline-offset: 3px; }
a:hover { color: var(--cream); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 8px; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 50; background: var(--gold); color: var(--outline); padding: 8px 14px; border-radius: 10px; }
.skip:focus { left: 8px; }
[id] { scroll-margin-top: 76px; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.08; margin: 0 0 .45em; letter-spacing: .01em; }
p { margin: 0 0 1em; }
em { font-style: normal; color: var(--gold-light); }

/* Кнопки — как кнопки старта на TV: толстая обводка, жёсткая тень, нажатие вниз */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 56px; padding: 0 26px; border-radius: 18px;
  font: 400 21px/1 var(--display); letter-spacing: .02em; text-decoration: none;
  border: var(--line) solid var(--outline); box-shadow: var(--drop);
  transition: transform .12s ease, box-shadow .12s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 0 var(--outline); }
.btn:active { transform: translateY(4px); box-shadow: 0 2px 0 var(--outline); }
.btn-gold { background: linear-gradient(180deg, var(--gold-light), var(--gold) 60%, #dc9a22); color: var(--outline); }
.btn-gold:hover { color: var(--outline); }
.btn-ghost { background: var(--night-soft); color: var(--cream); }
.btn-ghost:hover { color: var(--cream); background: #26397a; }
.btn-soon { cursor: default; }
.btn-soon::before { content: ""; width: 12px; height: 12px; border-radius: 50%; background: var(--red); border: 2px solid var(--outline); animation: blink 1.6s ease-in-out infinite; }
.btn-soon:hover, .btn-soon:active { transform: none; box-shadow: var(--drop); }
@keyframes blink { 50% { opacity: .35; } }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* Шапка */
.topbar {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; gap: 18px;
  padding: 10px var(--gutter);
  background: rgba(11, 20, 45, .88);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 3px solid var(--outline);
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--cream); text-decoration: none; font: 400 20px var(--display); white-space: nowrap; }
.brand img { border-radius: 8px; border: 2px solid var(--outline); }
.nav { display: flex; gap: 2px; margin-left: auto; }
.nav a { color: var(--cream); text-decoration: none; font-weight: 800; font-size: 16px; padding: 8px 12px; border-radius: 999px; }
.nav a:hover { background: rgba(255, 255, 255, .08); color: var(--gold-light); }
.topbar-cta { font: 400 16px var(--display); color: var(--outline); background: var(--gold); border: 3px solid var(--outline); border-radius: 999px; padding: 6px 14px; box-shadow: 0 3px 0 var(--outline); white-space: nowrap; }
@media (max-width: 980px) { .nav { display: none; } .topbar-cta { margin-left: auto; } }
@media (max-width: 420px) { .brand span { font-size: 17px; } .topbar-cta { font-size: 14px; padding: 5px 10px; } }

/* Первый экран */
.hero { position: relative; overflow: hidden; isolation: isolate; padding: clamp(24px, 3.5vw, 44px) var(--gutter) clamp(120px, 12vw, 160px); }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -3; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -2; background: linear-gradient(90deg, rgba(11, 20, 45, .94) 0%, rgba(11, 20, 45, .82) 42%, rgba(11, 20, 45, .45) 100%), linear-gradient(0deg, var(--night) 0%, transparent 30%); }
.hero-confetti { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -1; opacity: .55; pointer-events: none; }
.hero-inner { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 4vw, 56px); align-items: center; }
.hero-logo { width: min(360px, 76%); margin: 0 0 14px -8px; filter: drop-shadow(0 10px 20px rgba(0, 0, 0, .5)); }
.hero h1 { font-size: clamp(42px, 5.2vw, 70px); color: var(--cream); text-shadow: var(--stroke), 0 8px 0 var(--outline); margin-bottom: 18px; }
.eyebrow { display: block; font-family: var(--body); font-weight: 900; font-size: clamp(14px, 1.4vw, 17px); letter-spacing: .14em; text-transform: uppercase; color: var(--gold-light); text-shadow: none; margin-bottom: 12px; }
.hl { display: inline-block; color: var(--outline); background: var(--gold); padding: 0 .18em; border: var(--line) solid var(--outline); border-radius: 14px; box-shadow: var(--drop); text-shadow: none; transform: rotate(-3deg); }
.hero-lead { font-size: clamp(18px, 1.8vw, 21px); color: #e6eaff; max-width: 34em; margin-bottom: 26px; }
.hero-facts { list-style: none; padding: 0; margin: 22px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.hero-facts li { background: rgba(255, 245, 222, .1); border: 2px solid rgba(255, 245, 222, .3); border-radius: 999px; padding: 5px 14px; font-weight: 700; font-size: 16px; }
.hero-facts b { font-family: var(--display); font-weight: 400; color: var(--gold-light); font-size: 18px; margin-right: 2px; }
.hero-art { position: relative; margin: 0; }
.tv-frame { border: 10px solid var(--gold); border-radius: 22px; box-shadow: 0 0 0 var(--line) var(--outline), inset 0 0 0 3px var(--outline), 0 14px 0 var(--outline), 0 30px 60px rgba(0, 0, 0, .55); overflow: hidden; transform: rotate(1.6deg); background: var(--outline); }
.scene { width: 100%; }
.sticker { position: absolute; z-index: 2; font: 400 clamp(17px, 1.8vw, 22px)/1 var(--display); padding: 10px 16px; border: var(--line) solid var(--outline); border-radius: 14px; box-shadow: var(--drop); white-space: nowrap; }
.sticker-a { top: -18px; left: 8%; background: var(--red); color: var(--cream); transform: rotate(-6deg); text-shadow: 0 2px 0 var(--outline); }
.sticker-b { bottom: -22px; right: 14%; background: var(--green); color: var(--cream); transform: rotate(4deg); text-shadow: 0 2px 0 var(--outline); }
.pop { position: absolute; z-index: 2; width: clamp(84px, 10vw, 128px); filter: drop-shadow(0 8px 12px rgba(0, 0, 0, .5)); }
.pop-fox { left: -40px; bottom: -36px; transform: rotate(-8deg); }
.pop-raccoon { right: -34px; top: -44px; transform: rotate(8deg); }
@media (max-width: 900px) {
  .hero { padding-bottom: 110px; }
  .hero::before { background: linear-gradient(180deg, rgba(11, 20, 45, .9) 0%, rgba(11, 20, 45, .8) 60%, var(--night) 100%); }
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-logo { margin: 0 auto 14px; }
  .hero-lead { margin-left: auto; margin-right: auto; }
  .cta-row, .hero-facts { justify-content: center; }
  .hero-art { order: -1; margin: 26px 14px 26px; }
  .pop-fox { left: -14px; } .pop-raccoon { right: -10px; }
  .eyebrow { letter-spacing: .06em; }
}
@media (max-width: 560px) {
  .hero { padding-top: 16px; padding-bottom: 40px; }
  .hero-logo { display: none; }
  .sticker { font-size: 15px; padding: 7px 11px; }
  .sticker-b { bottom: -18px; }
  .pop { width: 74px; }
  .pop-fox { bottom: -26px; } .pop-raccoon { top: -30px; }
}

/* Четыре причины — плитки цветов залов, как на старте игры */
.pillars { position: relative; z-index: 3; max-width: var(--max); margin: -80px auto 0; padding: 0 var(--gutter); display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.pillar { position: relative; padding: 22px 22px 24px; border-radius: 28px; border: 5px solid var(--outline); box-shadow: inset 0 0 0 3px rgba(255, 217, 119, .75), 0 8px 0 var(--outline); text-align: center; }
.pillar::after { content: ""; position: absolute; inset: 0; border-radius: 23px; pointer-events: none; background: linear-gradient(180deg, rgba(255, 255, 255, .16), transparent 45%); }
.pillar h2 { font-size: 25px; color: var(--cream); text-shadow: var(--stroke), 0 4px 0 var(--outline); margin: 8px 0 8px; }
.pillar p { font-size: 16px; line-height: 1.5; margin: 0; color: #fff; font-weight: 700; }
.pillar-art { width: 120px; height: 120px; object-fit: contain; margin: -54px auto 0; filter: drop-shadow(0 8px 10px rgba(0, 0, 0, .45)); }
.pillar-faces { display: flex; justify-content: center; margin: -42px 0 8px; height: 112px; align-items: flex-end; }
.pillar-faces .face { width: 64px; height: 64px; margin: 0 -8px; }
.p-red { background: var(--red); } .p-blue { background: var(--blue); } .p-purple { background: var(--purple); } .p-green { background: var(--green); }
@media (max-width: 1000px) { .pillars { grid-template-columns: repeat(2, 1fr); row-gap: 64px; } }
@media (max-width: 560px) { .pillars { grid-template-columns: 1fr; margin-top: 56px; row-gap: 60px; } }

/* Общие секции */
.section { max-width: var(--max); margin: 0 auto; padding: clamp(80px, 10vw, 128px) var(--gutter) 0; }
.kicker { font: 900 14px/1 var(--body); letter-spacing: .18em; text-transform: uppercase; color: var(--gold-light); text-align: center; margin-bottom: 14px; }
.kicker-light { color: var(--gold-light); text-align: left; }
.kicker-dark { color: var(--red); }
.title { font-size: clamp(36px, 5vw, 58px); color: var(--cream); text-align: center; text-shadow: var(--stroke), 0 6px 0 var(--outline); }
.title-left { text-align: left; }
.title-dark { color: var(--gold-light); }
.lead-center { text-align: center; color: var(--muted); max-width: 640px; margin: -4px auto 40px; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } .title-left, .kicker-light { text-align: center; } }

/* Как играть */
.steps { list-style: none; padding: 0; margin: 48px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.step { position: relative; background: var(--parchment); color: var(--outline); border: 5px solid var(--outline); border-radius: 28px; padding: 18px 24px 26px; text-align: center; box-shadow: 0 8px 0 var(--outline); }
.step:nth-child(2) { transform: translateY(18px); }
.step-num { position: absolute; top: -24px; left: 50%; transform: translateX(-50%); width: 52px; height: 52px; display: grid; place-items: center; border-radius: 50%; background: var(--red); color: var(--cream); border: var(--line) solid var(--outline); font: 400 28px/1 var(--display); box-shadow: 0 4px 0 var(--outline); text-shadow: 0 2px 0 var(--outline); }
.step-art { width: 190px; height: 190px; object-fit: contain; margin: 4px auto 4px; }
.step h3 { font-size: 26px; color: var(--outline); }
.step p { margin: 0; font-weight: 600; color: #4a3528; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; gap: 44px; } .step:nth-child(2) { transform: none; } }

/* Полоса «Саботаж» */
.band { margin-top: clamp(96px, 11vw, 140px); padding: clamp(64px, 8vw, 100px) var(--gutter); position: relative; border-top: 5px solid var(--outline); border-bottom: 5px solid var(--outline); }
.band-inner { max-width: var(--max); margin: 0 auto; }
.band-purple { background: radial-gradient(circle at 20% 20%, rgba(255, 255, 255, .12) 0 2px, transparent 3px) 0 0 / 34px 34px, linear-gradient(160deg, #9a4fd6, var(--purple) 55%, #6a2aa3); }
.band-lead { font-size: 20px; color: #fff; font-weight: 700; max-width: 30em; }
.band-art { width: min(300px, 60%); margin-top: 8px; filter: drop-shadow(0 12px 18px rgba(0, 0, 0, .4)); }
@media (max-width: 860px) { .band-lead { margin: 0 auto 1em; text-align: center; } .band-art { margin: 0 auto; } }
.seals { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.seal-card { display: flex; align-items: center; gap: 12px; background: var(--cream); color: var(--outline); border: var(--line) solid var(--outline); border-radius: 18px; padding: 12px 14px; box-shadow: 0 5px 0 var(--outline); }
.seal-card h3 { font-size: 20px; margin: 0 0 2px; color: var(--red); }
.seal-good h3 { color: var(--green); }
.seal-card p { margin: 0; font-size: 15px; line-height: 1.35; font-weight: 700; color: #4a3528; }
.seal { flex: none; width: 64px; height: 64px; object-fit: contain; filter: drop-shadow(0 3px 4px rgba(0, 0, 0, .35)); }
.tilt-1 { transform: rotate(-1.2deg); } .tilt-2 { transform: rotate(.8deg); } .tilt-3 { transform: rotate(-.4deg); }
.seal-card:last-child { grid-column: 1 / -1; justify-self: center; max-width: 50%; }
@media (max-width: 560px) { .seals { gap: 12px; } .seal-card { flex-direction: column; text-align: center; padding: 12px 10px; gap: 6px; } .seal-card h3 { font-size: 18px; } .seal-card p { font-size: 14px; } .seal { width: 52px; height: 52px; } .seal-card:last-child { max-width: 60%; } }

/* Залы — плитки как на экране выбора темы */
.tiles { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.tile { position: relative; text-align: center; padding: 18px 16px 22px; border-radius: 28px; border: 6px solid var(--outline); box-shadow: inset 0 0 0 3px rgba(255, 217, 119, .8), 0 8px 0 var(--outline); transition: transform .18s ease; }
.tile:hover { transform: translateY(-6px) rotate(-1deg); }
.tile::after { content: ""; position: absolute; inset: 0; border-radius: 22px; pointer-events: none; background: linear-gradient(180deg, rgba(255, 255, 255, .18), transparent 40%); }
.tile-icon { width: 140px; height: 140px; object-fit: contain; margin: 0 auto 6px; filter: drop-shadow(0 6px 8px rgba(0, 0, 0, .4)); }
.tile h3 { font-size: 25px; color: var(--cream); text-shadow: var(--stroke), 0 4px 0 var(--outline); margin-bottom: 8px; }
.tile p { margin: 0; font-size: 15px; line-height: 1.45; font-weight: 700; color: #fff; }
.t-purple { background: var(--purple); } .t-green { background: var(--green); } .t-red { background: var(--red); }
.t-yellow { background: var(--yellow); } .t-blue { background: var(--blue); }
.t-yellow p { color: var(--outline); }
.ribbon { position: absolute; z-index: 2; top: -18px; right: -12px; background: var(--green); color: var(--cream); font: 400 19px/1 var(--display); padding: 8px 14px; border: var(--line) solid var(--outline); border-radius: 12px; box-shadow: 0 4px 0 var(--outline); transform: rotate(8deg); text-shadow: 0 2px 0 var(--outline); }
@media (max-width: 1000px) { .tiles { grid-template-columns: repeat(6, 1fr); } .tile { grid-column: span 2; } .tile:nth-child(4) { grid-column: 2 / span 2; } .tile:nth-child(5) { grid-column: 4 / span 2; } }
@media (max-width: 620px) { .tiles { grid-template-columns: 1fr 1fr; gap: 14px; } .tile, .tile:nth-child(4) { grid-column: auto; } .tile:nth-child(5) { grid-column: 1 / -1; justify-self: center; width: calc(50% - 7px); } .tile-icon { width: 100px; height: 100px; } .tile h3 { font-size: 21px; } .tile p { font-size: 14px; } }

/* История */
.story-art { margin: 0; display: grid; justify-items: center; }
.statue { max-height: 520px; width: auto; filter: drop-shadow(0 20px 36px rgba(0, 0, 0, .55)); }
.story p { color: #e1e6fb; }
.titles { list-style: none; padding: 0; margin: 20px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.titles li { font: 400 18px var(--display); color: var(--outline); background: var(--parchment); border: 3px solid var(--outline); border-radius: 12px; padding: 6px 14px; box-shadow: 0 4px 0 var(--outline); }
.titles li:nth-child(odd) { transform: rotate(-1.5deg); }
.titles li:nth-child(3n) { transform: rotate(1.4deg); background: var(--gold-light); }
@media (max-width: 860px) { .statue { max-height: 380px; } .titles { justify-content: center; } .story .split > div { text-align: center; } }
.cast { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; max-width: 900px; margin: 56px auto 0; }
.face { width: 80px; height: 80px; border-radius: 50%; background: var(--night-soft); border: var(--line) solid var(--outline); box-shadow: 0 4px 0 var(--outline); transition: transform .18s ease; }
.cast .face:nth-child(5n+1) { background: var(--red); } .cast .face:nth-child(5n+2) { background: var(--blue); }
.cast .face:nth-child(5n+3) { background: var(--green); } .cast .face:nth-child(5n+4) { background: var(--purple); }
.cast .face:nth-child(5n) { background: var(--yellow); }
.face:hover { transform: translateY(-6px) rotate(-6deg); }
.cast-caption { text-align: center; font: 400 24px var(--display); color: var(--gold-light); margin-top: 18px; }
@media (max-width: 520px) { .cast .face { width: 60px; height: 60px; } }

/* Цены */
.band-cream { background: var(--parchment); color: var(--outline); }
.tickets { display: grid; grid-template-columns: 1fr 1.25fr; gap: 26px; max-width: 900px; margin: 40px auto 0; align-items: stretch; }
@media (max-width: 760px) { .tickets { grid-template-columns: 1fr; } }
.ticket { position: relative; background: #fffaf0; border: 5px solid var(--outline); border-radius: 26px; padding: 28px 30px; box-shadow: 0 8px 0 var(--outline); }
.ticket h3 { font-size: 28px; color: var(--outline); margin-bottom: 4px; }
.ticket-gold { background: linear-gradient(180deg, var(--gold-light), var(--gold)); transform: rotate(-1deg); }
.ticket-lock { position: absolute; top: -30px; right: 24px; width: 64px; filter: drop-shadow(0 4px 4px rgba(0, 0, 0, .3)); }
.price { font: 400 46px/1.05 var(--display); margin: 0; color: var(--outline); }
.price small { font-size: 20px; }
.price-alt { font-weight: 800; margin: 0 0 12px; }
.ticket ul { margin: 14px 0 0; padding-left: 22px; font-weight: 700; }
.ticket li { margin: 5px 0; }
.fineprint { text-align: center; font-size: 14px; color: #6b5444; margin: 26px auto 0; max-width: 680px; }

/* FAQ */
.faq-list { max-width: 820px; margin: 36px auto 0; display: grid; gap: 12px; }
.faq details, .doc details { background: var(--night-soft); border: 3px solid var(--outline); border-radius: 18px; box-shadow: 0 5px 0 var(--outline); padding: 0 22px; }
.faq summary, .doc summary { cursor: pointer; list-style: none; position: relative; padding: 18px 40px 18px 0; font: 400 21px/1.3 var(--display); color: var(--cream); }
.faq summary::-webkit-details-marker, .doc summary::-webkit-details-marker { display: none; }
.faq summary::after, .doc summary::after { content: "+"; display: inline-block; position: absolute; right: 0; top: 12px; font: 400 30px/1 var(--display); color: var(--gold); transition: transform .2s; }
.faq details[open] summary::after, .doc details[open] summary::after { transform: rotate(45deg); }
.faq details p, .doc details p, .doc details ul, .doc details ol { color: var(--muted); margin: 0 0 18px; }
.more { text-align: center; margin-top: 26px; color: var(--muted); }

/* Финал: стойка кандидатов, как на старте игры */
.finale { position: relative; margin-top: clamp(96px, 11vw, 140px); overflow: hidden; isolation: isolate; min-height: clamp(560px, 62vw, 820px); display: flex; flex-direction: column; border-top: 5px solid var(--outline); }
.finale-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.finale::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(11, 20, 45, .85) 0%, rgba(11, 20, 45, .35) 45%, rgba(11, 20, 45, .1) 100%); }
.finale-copy { text-align: center; padding: clamp(48px, 6vw, 80px) var(--gutter) 0; }
.finale-copy p { font-size: 20px; font-weight: 700; color: #fff; text-shadow: 0 2px 6px rgba(0, 0, 0, .6); }
.finale-copy .cta-row { justify-content: center; }
.finale-stage { position: relative; margin-top: auto; height: clamp(260px, 36vw, 470px); }
.cand { position: absolute; bottom: 14%; height: 86%; width: auto; filter: drop-shadow(0 8px 18px rgba(0, 0, 0, .45)); }
.c1 { left: 5%; } .c2 { left: 26%; } .c3 { right: 26%; } .c4 { right: 5%; }
.desk { position: absolute; left: 0; bottom: 0; width: 100%; max-width: none; z-index: 1; }
@media (max-width: 700px) {
  .finale-stage { height: 300px; }
  .cand { height: 70%; bottom: 22%; }
  .c1 { left: -14%; } .c2 { left: 14%; } .c3 { right: 14%; } .c4 { right: -14%; }
  .desk { width: 200%; left: -50%; }
}

/* Текстовые страницы */
.doc { max-width: 820px; margin: 0 auto; padding: clamp(48px, 7vw, 88px) var(--gutter) 0; }
.doc h1 { font-size: clamp(40px, 6vw, 60px); color: var(--cream); text-shadow: var(--stroke), 0 6px 0 var(--outline); }
.doc h2 { font-size: clamp(26px, 3.4vw, 34px); color: var(--gold-light); text-shadow: 0 3px 0 var(--outline); margin-top: 1.6em; }
.doc h3 { font-size: 24px; color: var(--cream); }
.doc p, .doc li { color: #dfe4fa; }
.doc .updated { color: var(--muted); font-size: 15px; }
.doc .summary { background: var(--night-soft); border: 3px solid var(--outline); border-radius: 18px; padding: 16px 20px; box-shadow: 0 5px 0 var(--outline); }
.doc details { margin-bottom: 12px; }
.contact-card { margin-top: 40px; padding: 24px 26px; border-radius: 24px; background: var(--parchment); color: var(--outline); border: 5px solid var(--outline); box-shadow: 0 8px 0 var(--outline); }
.contact-card h3 { color: var(--red); }
.contact-card p { color: #4a3528; margin: 0; font-weight: 700; }
.contact-card a { color: var(--blue); }

/* Подвал */
.footer { padding: 44px var(--gutter) 48px; background: var(--night-deep); border-top: 5px solid var(--outline); text-align: center; }
.page-index .footer { border-top: 0; }
.footer-brand { font: 400 26px var(--display); color: var(--gold-light); text-decoration: none; }
.footer-tag { color: var(--muted); margin: 4px 0 18px; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 24px; margin-bottom: 16px; }
.footer-links a { color: var(--cream); text-decoration: none; font-weight: 800; }
.footer-links a:hover { color: var(--gold-light); }
.footer-small { color: #8792bd; font-size: 14px; margin: 0; }
