/* ─────────────────────────────────────────────────────────────
   Кожа страниц, отданных сервером: витрина и посадочные — одно
   существо. Тёплая каталанская палитра, свои шрифты (Inter для
   текста, Playfair Display для заголовков, OFL, web/fonts/),
   одна шапка и один подвал. Карта живёт токенами style.css и
   сюда не заглядывает: у неё своя работа и свой цвет.
   ───────────────────────────────────────────────────────────── */
@font-face {
  font-family: 'Inter'; font-style: normal; font-weight: 400 700;
  font-display: swap; src: url('/fonts/inter-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'Playfair Display'; font-style: normal; font-weight: 500 700;
  font-display: swap; src: url('/fonts/playfair-latin.woff2') format('woff2');
}

body.land, body.page {
  --bg: #FAF8F5; --fg: #2A2622; --muted: #6B6259; --faint: #8f8578;
  --panel: #FFFFFF; --line: #E7E0D5; --line-soft: #EFE9DF;
  --accent: #1A3A5C; --accent-hover: #234B75; --on-accent: #FAF8F5;
  --gold: #C9A961; --gold-deep: #A8853F; --gold-fill: #C9A961;
  --terra: #C45A3C; --pine: #2D4A3E;
  --ok: var(--pine);
  --e1: 0 1px 2px rgba(42, 38, 34, .06);
  --e2: 0 2px 8px rgba(42, 38, 34, .06), 0 12px 32px rgba(42, 38, 34, .08);
  --e3: 0 4px 12px rgba(42, 38, 34, .10), 0 20px 48px rgba(42, 38, 34, .14);
}
:root[data-theme="dark"] body.land, :root[data-theme="dark"] body.page {
  --bg: #1A1815; --fg: #EDE7DE; --muted: #A79C8E; --faint: #7d7365;
  --panel: #232019; --line: #3A342B; --line-soft: #2E2921;
  --accent: #2E5580; --accent-hover: #3A6796; --on-accent: #FAF8F5;
  --gold: #D4B679; --gold-deep: #C9A961; --gold-fill: #D4B679;
  --terra: #D97757; --pine: #7FA88F;
  --e1: 0 1px 2px rgba(0, 0, 0, .4);
  --e2: 0 2px 8px rgba(0, 0, 0, .35), 0 12px 32px rgba(0, 0, 0, .4);
  --e3: 0 6px 14px rgba(0, 0, 0, .5), 0 22px 50px rgba(0, 0, 0, .45);
}

/* Карта держит html и body ростом в экран и запрещает прокрутку; читаемым
   страницам нужно обратное — прокручивается сама страница. */
:root:has(body.land), :root:has(body.page) { height: auto; }
body.land, body.page {
  height: auto; min-height: 100%; overflow: visible; background: var(--bg);
  font-family: 'Inter', var(--font); font-size: 16px; line-height: 1.55;
}
body.land *, body.page * { box-sizing: border-box; }
body.land h1, body.land h2, body.land h3,
body.page h1, body.page h2, body.page h3 {
  font-family: 'Playfair Display', Georgia, serif;
  letter-spacing: -.01em; text-wrap: balance; font-weight: 600;
}

/* Шапка: марка, поиск, языки. На узком экране поиск уходит под марку целой
   строкой — втискивать его между маркой и пятью языками некуда. */
.site-top {
  position: relative; z-index: 3; display: flex; align-items: center;
  justify-content: space-between; flex-wrap: wrap; gap: var(--s3) var(--s4);
  padding: var(--s4) clamp(16px, 4vw, 48px);
}
.site-top .mark {
  display: inline-flex; align-items: center; min-height: 44px; padding-right: var(--s2);
  font-family: 'Playfair Display', Georgia, serif; font-size: 24px; font-weight: 700;
  color: var(--fg); text-decoration: none;
}
.site-top .mark b { font-weight: 400; font-size: .72em; letter-spacing: .02em;
  color: var(--gold-deep); align-self: center; }
.site-top .langs { display: flex; gap: 4px; }
.site-top .langs a, .site-top .langs b {
  min-width: 44px; min-height: 44px; display: grid; place-items: center;
  border-radius: var(--r1); font: 600 12px/1 'Inter', sans-serif; text-transform: uppercase;
  color: var(--muted); text-decoration: none;
}
.site-top .langs b { color: var(--fg); background: color-mix(in srgb, var(--fg) 8%, transparent); }
.site-top .langs a:hover { color: var(--fg); }

.site-find {
  order: 3; flex: 1 1 100%; min-width: 0; display: flex; gap: 6px;
  padding: 5px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--panel); box-shadow: var(--e1);
}
.site-find input[type="search"] {
  flex: 1 1 auto; min-width: 0; min-height: 44px; padding: 0 18px; border: 0;
  border-radius: 999px; font: 15px 'Inter', sans-serif; color: var(--fg);
  background: transparent; -webkit-appearance: none; appearance: none;
}
.site-find input[type="search"]::placeholder { color: var(--muted); }
.site-find input[type="search"]:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.site-find .cta {
  flex: 0 0 auto; min-height: 44px; padding: 0 20px; border-radius: 999px;
  font-size: 15px; box-shadow: none; white-space: nowrap;
}
@media (min-width: 760px) {
  .site-find { order: 0; flex: 1 1 auto; max-width: 440px; margin: 0 var(--s4); }
}

/* Призыв. Ширину сбрасываем нарочно: тем же именем зовётся кнопка в карточке
   карты, и она растянута во всю колонку — на странице это рвало строку. */
.cta {
  display: inline-flex; align-items: center; justify-content: center; min-height: 52px;
  width: auto; padding: 0 28px; border: 0; border-radius: var(--r1); cursor: pointer;
  background: var(--accent); color: var(--on-accent); text-decoration: none;
  font: 600 16px/1 'Inter', sans-serif; box-shadow: var(--e2);
  transition: background var(--fast), transform var(--fast);
}
.cta:hover { background: var(--accent-hover); transform: translateY(-1px); }
.cta:active { transform: translateY(0); }

.site-foot {
  position: relative; z-index: 2; display: flex; gap: var(--s2) var(--s5); flex-wrap: wrap;
  justify-content: center; padding: var(--s5) clamp(16px, 4vw, 48px) var(--s6);
  background: var(--bg); border-top: 1px solid var(--line);
}
.site-foot a { min-height: 44px; min-width: 44px; display: inline-flex;
  align-items: center; justify-content: center; padding: 0 var(--s2);
  font-size: 13px; color: var(--muted); text-decoration: none; }
.site-foot a:hover { color: var(--fg); }

@media (prefers-reduced-motion: reduce) {
  .cta { transition: none; }
}
