/* Посадочные страницы 09.10 — статический HTML для поиска, вид главной по макету Валерия:
   кремовая гамма, красный логотипа #9e2f2f, антиква PT Serif, кремль и панорама. */
:root {
  --bg: #fbf5ec; --card: #fffdf9; --text: #1b1a17; --muted: #5f5b53; --line: #ecdfcf; --soft: #f5ebdd;
  --accent: #9e2f2f; --accent-soft: #f6e4dc; --zoloto: #e8913a;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --serif: "PT Serif", Georgia, "Times New Roman", serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --bg: #15110f; --card: #201a17; --text: #efede7; --muted: #b1ada3;
    --line: #3a2f29; --soft: #2a221e; --accent: #d9574f; --accent-soft: #3b211e; }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.55 var(--font);
  -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: var(--accent); }
h1, h2, h3 { text-wrap: balance; }

.shapka { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: 10px 16px; background: color-mix(in srgb, var(--card) 92%, transparent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.znak { display: block; line-height: 0; }
.znak-logo { display: block; width: 160px; height: auto; overflow: visible; }
.znak-imya { font: 800 30px "Montserrat", "Arial Black", Arial, sans-serif; fill: var(--text); }
.znak-24 { overflow: visible; }  /* знак Валерия кривыми (scripts/logo_vektor.py), цвета внутри */
.znak-imya .kr, .znak-gorod { fill: var(--accent); }
.znak-gorod { font: 700 9.5px "Montserrat", Arial, sans-serif; }
.znak-cherta { stroke: var(--accent); stroke-width: 1.2; }
.shapka-knopka { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 10px;
  background: var(--accent); color: #fff; font-weight: 600; font-size: 15px; text-decoration: none; white-space: nowrap; }

.wrap { max-width: 760px; margin: 0 auto; padding: 0 16px 40px; }
.geroy { position: relative; isolation: isolate; margin: 0 -16px; padding: 22px 16px 26px; }
.geroy::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background: url(/img/hero-kreml-tel.jpg) center bottom / cover no-repeat; }
.geroy::after { content: ""; position: absolute; inset: auto 0 0 0; height: 18%; z-index: -1;
  background: linear-gradient(to top, var(--bg), transparent); }
.kiker { display: inline-block; padding: 5px 12px; border-radius: 99px; font-size: 13px; font-weight: 600;
  background: color-mix(in srgb, var(--card) 85%, transparent); color: var(--accent); }
.geroy h1 { font: 700 32px/1.1 var(--serif); margin: 14px 0 0; letter-spacing: -.01em;
  text-shadow: 0 0 18px color-mix(in srgb, var(--bg) 70%, transparent); }
.geroy h1 em { font-style: normal; color: var(--accent); }
.geroy h1::after { content: ""; display: block; width: 56px; height: 2px; background: var(--text); margin: 16px 0 14px; }
.geroy .lead { margin: 0; max-width: 32ch; font-size: 16px; text-shadow: 0 0 12px var(--bg), 0 0 4px var(--bg); }
.cena-blok { display: inline-flex; align-items: baseline; gap: 8px; margin: 18px 0 0; padding: 10px 14px;
  border-radius: 14px; background: color-mix(in srgb, var(--card) 92%, transparent); border: 1px solid var(--line); }
.cena-blok b { font: 700 28px var(--font); white-space: nowrap; }
.cena-blok span { color: var(--muted); font-size: 14px; }
.knopka { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 24px;
  border-radius: 12px; background: var(--accent); color: #fff; font: 600 17px var(--font); text-decoration: none;
  box-shadow: 0 6px 18px rgba(158,47,47,.22); }
.knopka:hover { filter: brightness(1.07); }
.geroy .knopka { display: flex; margin-top: 16px; max-width: 340px; }
.panorama { height: 96px; margin: 0 -16px; background: url(/img/panorama-nn.jpg) center / cover no-repeat;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 25%, #000 75%, transparent);
  mask-image: linear-gradient(to bottom, transparent, #000 25%, #000 75%, transparent); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .panorama { opacity: .55; filter: sepia(.4); }
  :root:not([data-theme="light"]) .geroy::before { filter: brightness(.42) saturate(.9); }
}

h2 { font: 700 28px/1.15 var(--serif); margin: 34px 0 14px; }
h2::after { content: ""; display: block; width: 56px; height: 2px; background: var(--zoloto); margin-top: 8px; }
h3 { font: 700 18px/1.3 var(--font); margin: 0 0 6px; }
p { margin: 0 0 12px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 16px;
  box-shadow: 0 2px 12px rgba(80,40,20,.05); }
.spisok { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.spisok li { position: relative; padding-left: 28px; }
.spisok li::before { content: ""; position: absolute; left: 2px; top: .45em; width: 14px; height: 8px;
  border-left: 2.5px solid var(--accent); border-bottom: 2.5px solid var(--accent); transform: rotate(-45deg); }
.shagi { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; counter-reset: shag; }
.shagi li { display: flex; gap: 14px; align-items: flex-start; }
.shagi li::before { counter-increment: shag; content: counter(shag); flex: 0 0 32px; height: 32px; display: grid;
  place-items: center; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 700; }
.shagi b { display: block; }
.shagi span { color: var(--muted); font-size: 15px; }
.setka { display: grid; gap: 10px; }
.povody { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.povody li { padding: 8px 14px; border-radius: 99px; background: var(--card); border: 1px solid var(--line); font-size: 15px; }
.sravnenie { width: 100%; border-collapse: collapse; font-size: 15px; }
.sravnenie th, .sravnenie td { text-align: left; vertical-align: top; padding: 10px 8px; border-bottom: 1px solid var(--line); }
.sravnenie th { font-size: 13px; color: var(--muted); font-weight: 600; }
.sravnenie td:last-child { font-weight: 600; }
.izdanie { display: flex; gap: 14px; align-items: flex-start; }
.izdanie img, .izdanie svg { flex: 0 0 48px; width: 48px; height: 48px; }
.izdanie .cena { margin-left: auto; font-weight: 700; white-space: nowrap; }
.izdanie p { color: var(--muted); font-size: 15px; margin: 4px 0 0; }
details { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 0 16px; margin-bottom: 8px; }
summary { cursor: pointer; list-style: none; min-height: 52px; display: flex; align-items: center; justify-content: space-between;
  gap: 12px; font-weight: 600; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; flex: 0 0 auto; font-size: 22px; color: var(--accent); }
details[open] summary::after { content: "−"; }
details p { color: var(--muted); padding-bottom: 6px; }
.final { margin-top: 34px; text-align: center; padding: 24px 16px; }
.final h2 { margin-top: 0; }
.final h2::after { margin-left: auto; margin-right: auto; }
.final .knopka { width: 100%; max-width: 340px; }
.svyaz { margin-top: 18px; color: var(--muted); font-size: 15px; }
.niz { position: sticky; bottom: 0; z-index: 4; display: flex; align-items: center; gap: 12px; padding: 12px 16px;
  background: var(--card); border-top: 1px solid var(--line); box-shadow: 0 -6px 20px rgba(0,0,0,.06); }
.niz div { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.niz b { font-size: 22px; }
.niz span { color: var(--muted); font-size: 13px; }
.niz .knopka { margin-left: auto; min-height: 48px; padding: 0 18px; font-size: 16px; white-space: nowrap; }
.podval { max-width: 760px; margin: 0 auto; padding: 20px 16px 32px; color: var(--muted); font-size: 13px; }
.podval a { color: inherit; }
.podval nav { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-bottom: 10px; }
.podval nav a { min-height: 32px; display: inline-flex; align-items: center; }

@media (min-width: 640px) {
  .shapka { padding: 12px max(16px, calc((100vw - 760px) / 2 + 16px)); }
  .geroy { padding: 40px 16px 34px; border-radius: 0 0 20px 20px; overflow: hidden; }
  .geroy::before { background-image: url(/img/hero-kreml.jpg); background-position: right bottom; }
  .geroy h1 { font-size: 46px; max-width: 14ch; }
  .geroy .lead { max-width: 36ch; font-size: 17px; }
  .panorama { height: auto; aspect-ratio: 2400 / 500; }
  h2 { font-size: 36px; }
  .setka { grid-template-columns: repeat(2, 1fr); }
  .niz { display: none; }
}
@media (max-width: 360px) { .geroy h1 { font-size: 28px; } .znak-logo { width: 136px; } .shapka-knopka { padding: 0 10px; font-size: 14px; } }
.knopka.shirokaya { display: flex; width: 100%; max-width: 420px; margin: 16px auto 0; }
.spisok b { font-weight: 700; }

/* 320×640: кнопка первого экрана не прячется под нижней панелью (юзабилист 09.10) */
@media (max-height: 680px) and (max-width: 400px) {
  .geroy { padding: 14px 16px 16px; }
  .geroy h1 { font-size: 27px; margin-top: 10px; }
  .geroy h1::after { margin: 10px 0; }
}
