/* =====================================================================
   TM IMPRESSIVE — стили сайта
   Тёмный изумрудный «каркас» (шапка, герои, подвал) + светлые шёлковые
   секции; латунь только для акцентов; гёль (ковровый медальон) — знак бренда.
   ===================================================================== */
:root {
  --emerald-900: #062d22;
  --emerald-800: #0a4a37;
  --emerald-600: #1a8070;
  --brass: #ddb74e;
  --brass-soft: #efd892;
  --silk: #f8f5f0;
  --silk-2: #efe8dc;
  --white: #fff;
  --carpet: #8e1f24;
  --ink: #1f2a25;
  --ink-soft: #56635c;
  --line: rgba(var(--ink-rgb), .14);
  --on-dark: #f4efe4;
  --on-dark-soft: rgba(var(--light-rgb), .72);
  --ok: #2f8f5b;
  --no: #b5473c;
  --font-display: "Prata", Georgia, "Times New Roman", serif;
  --font-body: "Manrope", "Segoe UI", system-ui, -apple-system, sans-serif;
  --dark-rgb: 6, 45, 34;
  --deep-rgb: 4, 31, 24;
  --mid-rgb: 26, 128, 112;
  --ink-rgb: 10, 74, 55;
  --accent-rgb: 221, 183, 78;
  --light-rgb: 244, 239, 228;
  --footer-bg: #041f18;
  --heading: var(--emerald-800);
  --accent-ink: var(--emerald-600);
  --rs: 1;              /* масштаб скруглений: зависит от стиля */
  --r-pill: 999px;
  --radius: calc(22px * var(--rs));
  --header-h: 72px;
}

/* =====================================================================
   Темы оформления (html[data-theme]) и стили (html[data-style]).
   Выбираются кнопкой с палитрой в шапке, запоминаются в браузере.
   ===================================================================== */
html[data-theme="garnet"] {
  --emerald-900: #2a0a0f; --emerald-800: #6b1a24; --emerald-600: #a8443c;
  --brass: #e3b766; --brass-soft: #f1d49b;
  --silk: #faf4ef; --silk-2: #f1e3d8; --ink: #2b1d1d; --ink-soft: #6b5856;
  --line: rgba(107, 26, 36, .14);
  --dark-rgb: 42, 10, 15; --deep-rgb: 28, 6, 9; --mid-rgb: 168, 68, 60;
  --ink-rgb: 107, 26, 36; --accent-rgb: 227, 183, 102;
  --footer-bg: #1c0609;
}
html[data-theme="caspian"] {
  --emerald-900: #0a1f33; --emerald-800: #123a5c; --emerald-600: #1c7f95;
  --brass: #7fd3c8; --brass-soft: #b4e8e0;
  --silk: #f3f7f9; --silk-2: #e2ecf1; --ink: #17242f; --ink-soft: #52626e;
  --line: rgba(18, 58, 92, .14);
  --dark-rgb: 10, 31, 51; --deep-rgb: 6, 20, 31; --mid-rgb: 28, 127, 149;
  --ink-rgb: 18, 58, 92; --accent-rgb: 127, 211, 200;
  --footer-bg: #06141f;
}
html[data-theme="karakum"] {
  --emerald-900: #2b1a10; --emerald-800: #5c3a22; --emerald-600: #a35f2c;
  --brass: #eaa65c; --brass-soft: #f4c993;
  --silk: #fbf6ee; --silk-2: #f1e4ce; --ink: #2e241b; --ink-soft: #6d5e50;
  --line: rgba(92, 58, 34, .15);
  --dark-rgb: 43, 26, 16; --deep-rgb: 29, 17, 9; --mid-rgb: 163, 95, 44;
  --ink-rgb: 92, 58, 34; --accent-rgb: 234, 166, 92;
  --footer-bg: #1d1109;
}
html[data-theme="night"] {
  --emerald-900: #050d0a; --emerald-800: #0d3a2c; --emerald-600: #3fb79c;
  --silk: #0b1411; --silk-2: #111d18; --white: #15221c;
  --ink: #e8e2d6; --ink-soft: #a3aea7; --line: rgba(244, 239, 228, .1);
  --heading: #efd892; --accent-ink: #5fcfb1;
  --dark-rgb: 5, 13, 10; --deep-rgb: 2, 7, 5; --ink-rgb: 244, 239, 228;
  --footer-bg: #030806;
  color-scheme: dark;
}
html[data-theme="night"] .tour:hover, html[data-theme="night"] .result:hover { box-shadow: 0 18px 40px rgba(0, 0, 0, .5); }
html[data-theme="night"] .modal .qr { background: #fff; }
html[data-theme="night"] .field input, html[data-theme="night"] .field select, html[data-theme="night"] .field textarea { border-color: rgba(244, 239, 228, .16); }

/* Стиль «Модерн»: гротеск в заголовках, мягкие небольшие скругления */
html[data-style="modern"] { --font-display: "Manrope", "Segoe UI", system-ui, sans-serif; --rs: .45; --r-pill: 12px; }
html[data-style="modern"] :is(h1, h2, h3, .num b, .aside-card .from b, .logo b, .marquee span, .days .n, .mission) { font-weight: 800; letter-spacing: -.02em; }
html[data-style="modern"] .logo b { letter-spacing: .06em; }
/* Стиль «Строгий»: антиква Playfair, прямые углы, заголовки капителью */
html[data-style="strict"] { --font-display: "Playfair Display", Georgia, serif; --rs: .1; --r-pill: 3px; }
html[data-style="strict"] :is(.sec-head h2, .hero h1, .page-hero h1) { text-transform: uppercase; letter-spacing: .04em; }
html[data-style="strict"] .btn { text-transform: uppercase; letter-spacing: .1em; font-size: .82rem; }

/* ---------- Переключатель оформления ---------- */
.theme-pick { position: relative; flex-shrink: 0; }
.theme-btn {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; cursor: pointer;
  background: rgba(var(--light-rgb), .06); border: 1px solid rgba(var(--accent-rgb), .45); color: var(--brass); font-size: 1.05rem;
  transition: background .2s, transform .2s;
}
.theme-btn:hover, .theme-btn[aria-expanded="true"] { background: rgba(var(--accent-rgb), .16); transform: rotate(-12deg); }
.theme-pop {
  position: absolute; right: 0; top: calc(100% + 12px); z-index: 60; width: min(320px, calc(100vw - 32px));
  background: var(--silk); color: var(--ink); border-radius: calc(20px * var(--rs)); padding: 20px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .35); border: 1px solid var(--line); display: grid; gap: 16px;
}
.theme-pop[hidden] { display: none; }
.theme-pop h4 { margin: 0; font: 800 .72rem var(--font-body); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-soft); }
.theme-pop .grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; }
.theme-opt {
  display: grid; justify-items: center; gap: 6px; padding: 10px 6px; border-radius: calc(14px * var(--rs));
  border: 1.5px solid var(--line); background: var(--white); color: var(--ink); font: 600 .78rem/1.2 var(--font-body);
  cursor: pointer; text-align: center; transition: border-color .2s;
}
.theme-opt:hover { border-color: var(--accent-ink); }
.theme-opt[aria-pressed="true"] { border-color: var(--brass); box-shadow: inset 0 0 0 1px var(--brass); }
.theme-opt .sw { width: 34px; height: 34px; border-radius: 50%; display: block; border: 2px solid rgba(255, 255, 255, .7); box-shadow: 0 2px 6px rgba(0, 0, 0, .2); }
.theme-opt .st { font-size: 1.25rem; line-height: 34px; height: 34px; color: var(--heading); }
.theme-opt .st.classic { font-family: "Prata", serif; }
.theme-opt .st.modern { font-family: "Manrope", sans-serif; font-weight: 800; }
.theme-opt .st.strict { font-family: "Playfair Display", serif; letter-spacing: .08em; }
.theme-reset { justify-self: start; background: none; border: 0; padding: 0; color: var(--accent-ink); font: 700 .82rem var(--font-body); cursor: pointer; }
.theme-reset:hover { text-decoration: underline; }
@media (max-width: 1279px) {
  .theme-pick { margin-left: auto; }
  .theme-pick + .cta-desk + .burger, .theme-pick ~ .burger { margin-left: 0; }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  background: var(--silk); color: var(--ink);
  font-family: var(--font-body); font-size: 16px; line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
main { flex: 1; }
a { color: inherit; }
img { max-width: 100%; display: block; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 400; text-wrap: balance; margin: 0; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { max-width: 1200px; margin: 0 auto; padding-left: 16px; padding-right: 16px; }
@media (min-width: 720px) { .wrap { padding-left: 32px; padding-right: 32px; } }

.eyebrow { font-size: .78rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--accent-ink); }
.on-dark .eyebrow { color: var(--brass); }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  font: 700 .95rem/1 var(--font-body); padding: 1em 1.6em; border-radius: var(--r-pill);
  text-decoration: none; border: 1.5px solid transparent; cursor: pointer;
  transition: transform .2s, background .2s, color .2s, border-color .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-gold { background: var(--brass); color: var(--emerald-900); }
.btn-gold:hover { background: var(--brass-soft); }
.btn-ghost { border-color: rgba(var(--light-rgb), .45); color: var(--on-dark); background: transparent; }
.btn-ghost:hover { border-color: var(--brass); color: var(--brass); }
.btn-dark { background: var(--emerald-800); color: var(--on-dark); }
.btn-dark:hover { background: var(--emerald-900); }
.btn-line { border-color: var(--heading); color: var(--heading); background: transparent; }
.btn-line:hover { background: var(--emerald-800); color: var(--on-dark); }
.btn-block { width: 100%; }
.link-more { display: inline-flex; align-items: center; gap: .5em; color: var(--accent-ink); font-weight: 700; text-decoration: none; }
.link-more:hover { gap: .8em; }
.on-dark .link-more { color: var(--brass); }

/* ---------- Шапка ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(var(--dark-rgb), .94); color: var(--on-dark);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(var(--accent-rgb), .18);
}
.header .wrap { display: flex; align-items: center; gap: 20px; height: var(--header-h); }
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; flex-shrink: 0; color: var(--brass); }
.logo svg { width: 34px; height: 34px; }
.logo b { font: 400 1.2rem/1 var(--font-display); letter-spacing: .14em; color: var(--brass); }
.nav { display: none; gap: 2px; margin-left: auto; }
.nav a {
  white-space: nowrap; font-size: .9rem; font-weight: 600; text-decoration: none;
  padding: .5em .75em; border-radius: calc(8px * var(--rs)); color: var(--on-dark-soft); transition: color .2s;
}
.nav a:hover, .nav a.active { color: var(--brass); }
.search-mini { position: relative; display: none; }
.search-mini input {
  width: 40px; padding: .6em .6em .6em 2.2em; border-radius: var(--r-pill); border: 1px solid rgba(var(--light-rgb), .2);
  background: rgba(var(--light-rgb), .06); color: var(--on-dark); font: inherit; font-size: .88rem;
  transition: width .3s, background .3s; cursor: pointer;
}
.search-mini input::placeholder { color: transparent; }
.search-mini input:focus { width: 200px; background: var(--silk); color: var(--ink); cursor: text; outline: none; }
.search-mini input:focus::placeholder { color: var(--ink-soft); }
.search-mini i { position: absolute; left: .85em; top: 50%; transform: translateY(-50%); color: var(--brass); font-size: .85rem; pointer-events: none; }
.langs { display: none; gap: 2px; flex-shrink: 0; font-size: .76rem; font-weight: 700; letter-spacing: .08em; }
.langs a { color: var(--on-dark-soft); padding: .45em .55em; border-radius: calc(6px * var(--rs)); text-decoration: none; }
.langs a:hover { color: var(--brass); }
.langs a.active { color: var(--emerald-900); background: var(--brass); }
.header .cta-desk { display: none; padding: .75em 1.2em; font-size: .88rem; white-space: nowrap; }
.burger {
  margin-left: auto; background: none; border: 1px solid rgba(var(--light-rgb), .3); color: var(--on-dark);
  border-radius: calc(10px * var(--rs)); width: 44px; height: 44px; display: grid; place-items: center; cursor: pointer; font-size: 1.1rem;
}
.mnav { background: var(--emerald-900); border-top: 1px solid rgba(var(--accent-rgb), .18); max-height: calc(100vh - var(--header-h)); overflow-y: auto; }
.mnav .wrap { display: grid; gap: 2px; padding-top: 14px; padding-bottom: 24px; height: auto; }
.mnav a.item { color: var(--on-dark); text-decoration: none; font-weight: 600; padding: .75em 0; border-bottom: 1px solid rgba(var(--light-rgb), .08); }
.mnav form { display: flex; gap: 8px; margin-bottom: 8px; }
.mnav input { flex: 1; min-width: 0; padding: .75em 1em; border-radius: var(--r-pill); border: 0; font: inherit; }
.mnav .langs { display: flex; margin-top: 14px; }
@media (min-width: 1280px) {
  .nav, .langs, .search-mini { display: flex; }
  .header .cta-desk { display: inline-flex; }
  .burger, .mnav { display: none !important; }
}

/* ---------- Главный герой ---------- */
.hero { position: relative; background: var(--emerald-900); color: var(--on-dark); overflow: hidden; isolation: isolate; }
.hero > img.bg, .hero picture img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% 50%;
  z-index: -2; transform: scale(1.04); animation: drift 18s ease-out forwards;
}
@keyframes drift { to { transform: scale(1); } }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(var(--dark-rgb), .94) 0%, rgba(var(--dark-rgb), .78) 38%, rgba(var(--dark-rgb), .15) 75%),
    linear-gradient(0deg, rgba(var(--dark-rgb), .85), transparent 40%);
}
.hero .wrap.main { padding-top: clamp(72px, 12vw, 150px); padding-bottom: clamp(48px, 7vw, 88px); }
.hero-copy { max-width: 620px; display: grid; gap: 22px; }
.hero h1 { font-size: clamp(2.6rem, 7vw, 5.4rem); line-height: 1.02; }
.hero h1 em { font-style: normal; color: var(--brass); }
.hero .tag { font: italic 400 clamp(1.15rem, 2.2vw, 1.5rem)/1.35 var(--font-display); color: var(--brass-soft); }
.hero .lead { color: var(--on-dark-soft); font-size: 1.08rem; max-width: 520px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
.hero-bar { border-top: 1px solid rgba(var(--accent-rgb), .22); background: rgba(var(--dark-rgb), .6); }
.hero-bar .wrap { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px 32px; padding-top: 22px; padding-bottom: 22px; }
.stat { display: flex; align-items: center; gap: 14px; min-width: 0; }
.stat .ico { width: 42px; height: 42px; border-radius: 50%; border: 1px solid rgba(var(--accent-rgb), .4); display: grid; place-items: center; color: var(--brass); flex-shrink: 0; }
.stat small { display: block; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--on-dark-soft); font-weight: 700; }
.stat strong { font-weight: 600; font-variant-numeric: tabular-nums; }

/* ---------- Герой внутренних страниц ---------- */
.page-hero { position: relative; background: var(--emerald-900); color: var(--on-dark); overflow: hidden; isolation: isolate; }
.page-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; object-position: 75% 50%; }
.page-hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(var(--dark-rgb), .95) 0%, rgba(var(--dark-rgb), .82) 42%, rgba(var(--dark-rgb), .25) 80%);
}
.page-hero .wrap { padding-top: clamp(56px, 9vw, 110px); padding-bottom: clamp(48px, 7vw, 90px); }
.page-hero .inner { max-width: 640px; display: grid; gap: 18px; }
.page-hero h1 { font-size: clamp(2.3rem, 5.6vw, 4.2rem); line-height: 1.05; }
.page-hero h1 em { font-style: normal; color: var(--brass); }
.page-hero .lead { color: var(--on-dark-soft); font-size: 1.08rem; }
.crumbs { font-size: .85rem; color: var(--on-dark-soft); display: flex; gap: 8px; flex-wrap: wrap; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--brass); }

@media (max-width: 800px) {
  .page-hero::after, .hero::after { background: linear-gradient(180deg, rgba(var(--dark-rgb), .78), rgba(var(--dark-rgb), .92)); }
}

/* ---------- Гёль-разделитель ---------- */
.gol-rule { display: flex; align-items: center; gap: 16px; color: var(--brass); }
.gol-rule::before, .gol-rule::after { content: ""; height: 1px; flex: 1; background: linear-gradient(90deg, transparent, currentColor); }
.gol-rule::after { background: linear-gradient(90deg, currentColor, transparent); }
.gol-rule svg { width: 28px; height: 28px; }

/* ---------- Секции ---------- */
.section { padding-top: clamp(64px, 9vw, 120px); padding-bottom: clamp(64px, 9vw, 120px); }
.section.tight { padding-top: clamp(48px, 6vw, 80px); padding-bottom: clamp(48px, 6vw, 80px); }
.bg-silk2 { background: var(--silk-2); }
.bg-dark { background: var(--emerald-900); color: var(--on-dark); }
.sec-head { display: grid; gap: 14px; margin-bottom: clamp(32px, 5vw, 56px); max-width: 680px; }
.sec-head.center { margin-left: auto; margin-right: auto; text-align: center; justify-items: center; }
.sec-head h2 { font-size: clamp(2rem, 4.2vw, 3.1rem); line-height: 1.1; color: var(--heading); }
.sec-head p { color: var(--ink-soft); font-size: 1.05rem; }
.on-dark .sec-head h2, .bg-dark .sec-head h2 { color: var(--on-dark); }
.on-dark .sec-head p, .bg-dark .sec-head p { color: var(--on-dark-soft); }
.sec-head.row { max-width: none; grid-template-columns: 1fr; align-items: end; }
@media (min-width: 900px) { .sec-head.row { grid-template-columns: 1fr auto; } }

/* Направления (главная) */
.dirs { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 900px) { .dirs { grid-template-columns: 1.35fr 1fr; grid-template-rows: 1fr 1fr; } .dir.flag { grid-row: span 2; } }
.dir { position: relative; border-radius: var(--radius); overflow: hidden; min-height: 300px; display: flex; align-items: flex-end; text-decoration: none; color: var(--on-dark); isolation: isolate; background: var(--emerald-800); }
.dir img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .8s cubic-bezier(.2, .7, .2, 1); }
.dir::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(var(--dark-rgb), .95) 0%, rgba(var(--dark-rgb), .55) 45%, rgba(var(--dark-rgb), .05) 100%); }
.dir:hover img { transform: scale(1.05); }
.dir .in { padding: 28px; display: grid; gap: 10px; max-width: 520px; }
.dir.flag { min-height: 420px; }
.dir.flag .in { padding: 36px; }
.dir h3 { font-size: clamp(1.6rem, 3vw, 2.3rem); line-height: 1.1; }
.dir.flag h3 { font-size: clamp(2rem, 3.6vw, 3rem); }
.dir p { color: var(--on-dark-soft); }
.dir .more { display: inline-flex; align-items: center; gap: .5em; color: var(--brass); font-weight: 700; font-size: .92rem; margin-top: 4px; }
.badge { display: inline-block; background: var(--brass); color: var(--emerald-900); font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; padding: .45em .95em; border-radius: var(--r-pill); }
.badge.dark { background: var(--emerald-800); color: var(--on-dark); }
.badge.glass { background: rgba(var(--light-rgb), .16); color: var(--on-dark); }
.dir .badge { position: absolute; top: 20px; left: 20px; }

/* Преимущества / тёмная полоса */
.why { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); }
@media (min-width: 900px) { .why { grid-template-columns: repeat(2, 1fr); } }
.why-item { border: 1px solid rgba(var(--accent-rgb), .25); border-radius: var(--radius); padding: 30px; display: grid; gap: 12px; align-content: start; background: rgba(var(--light-rgb), .03); }
.why-item .ico { width: 54px; height: 54px; border-radius: calc(16px * var(--rs)); display: grid; place-items: center; background: rgba(var(--accent-rgb), .14); color: var(--brass); font-size: 1.4rem; }
.why-item h3 { font-size: 1.6rem; }
.why-item p { color: var(--on-dark-soft); }

/* Чипы услуг */
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { display: inline-flex; align-items: center; gap: .55em; padding: .7em 1.15em; border-radius: var(--r-pill); border: 1px solid rgba(var(--accent-rgb), .35); background: rgba(var(--dark-rgb), .5); color: var(--on-dark); font-weight: 600; font-size: .93rem; }
.chip i { color: var(--brass); }

/* Сплит: картинка + текст */
.split { display: grid; gap: 40px; grid-template-columns: 1fr; align-items: center; }
@media (min-width: 960px) { .split { grid-template-columns: 5fr 7fr; gap: 64px; } .split.rev { grid-template-columns: 7fr 5fr; } .split.rev .media { order: 2; } }
.split .media { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 5; max-width: 100%; }
.split .media img { width: 100%; height: 100%; object-fit: cover; }

/* Список услуг с линиями */
.svc { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); border-top: 1px solid var(--line); }
.svc > div { padding: 22px 20px 22px 0; border-bottom: 1px solid var(--line); display: grid; gap: 6px; min-width: 0; align-content: start; }
.svc h3 { font: 700 1.06rem/1.3 var(--font-body); color: var(--heading); display: flex; gap: 10px; align-items: center; }
.svc h3 i { color: var(--accent-ink); width: 20px; text-align: center; }
.svc p { color: var(--ink-soft); font-size: .95rem; }

/* Аудитории */
.cards3 { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card { background: var(--white); border: 1px solid var(--line); border-radius: calc(18px * var(--rs)); padding: 26px; display: grid; gap: 10px; align-content: start; }
.card .ico { width: 48px; height: 48px; border-radius: calc(14px * var(--rs)); display: grid; place-items: center; background: var(--silk-2); color: var(--heading); font-size: 1.2rem; }
.card h3 { font: 700 1.1rem/1.3 var(--font-body); color: var(--heading); }
.card p { color: var(--ink-soft); font-size: .95rem; }

/* Виды перевода */
.types { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.type { background: var(--silk); border-radius: calc(16px * var(--rs)); padding: 24px; display: grid; gap: 8px; align-content: start; border: 1px solid var(--line); }
.type .k { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--brass); color: var(--heading); font-size: 1.05rem; }
.type h3 { font: 700 1.05rem/1.3 var(--font-body); color: var(--heading); }
.type p { color: var(--ink-soft); font-size: .93rem; }

/* Оборудование */
.equip { display: grid; grid-template-columns: 1fr; background: var(--emerald-800); color: var(--on-dark); border-radius: calc(26px * var(--rs)); overflow: hidden; }
@media (min-width: 900px) { .equip { grid-template-columns: 1fr 1fr; } }
.equip .txt { padding: clamp(28px, 4vw, 52px); display: grid; gap: 18px; align-content: center; }
.equip h2, .equip h3 { font-size: clamp(1.7rem, 3vw, 2.5rem); line-height: 1.12; }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ticks li { display: flex; gap: 12px; }
.ticks li::before { content: ""; width: 8px; height: 8px; margin-top: .6em; flex-shrink: 0; background: var(--brass); transform: rotate(45deg); }
.equip .ticks li { color: var(--on-dark-soft); }
.equip .pics { display: flex; flex-direction: column; min-height: 360px; }
.equip .pics img { flex: 1 1 0; min-height: 200px; width: 100%; object-fit: cover; }

/* CTA-полоса */
.cta-band { background: var(--emerald-800); color: var(--on-dark); border-radius: calc(26px * var(--rs)); padding: clamp(28px, 5vw, 56px); display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; position: relative; overflow: hidden; }
.cta-band h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); line-height: 1.15; }
.cta-band p { color: var(--on-dark-soft); margin-top: 8px; }
.cta-band .gol-bg { position: absolute; right: -40px; top: -40px; width: 220px; height: 220px; color: rgba(var(--accent-rgb), .12); pointer-events: none; }

/* О компании */
.about-grid { display: grid; gap: 48px; grid-template-columns: 1fr; }
@media (min-width: 960px) { .about-grid { grid-template-columns: 7fr 5fr; gap: 72px; } }
.prose { display: grid; gap: 18px; color: var(--ink-soft); font-size: 1.05rem; max-width: 62ch; }
.mission { font: 400 clamp(1.3rem, 2.4vw, 1.7rem)/1.4 var(--font-display); color: var(--heading); border-left: 2px solid var(--brass); padding-left: 22px; margin: 8px 0; }
.nums { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border-radius: calc(20px * var(--rs)); overflow: hidden; align-self: start; }
.num { background: var(--silk); padding: 28px 22px; display: grid; gap: 4px; }
.num b { font: 400 clamp(2.4rem, 5vw, 3.4rem)/1 var(--font-display); color: var(--heading); font-variant-numeric: tabular-nums; }
.num span { color: var(--ink-soft); font-size: .9rem; }
.values { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.value { padding-top: 18px; border-top: 2px solid var(--emerald-800); display: grid; gap: 6px; }
.value h3 { font: 700 1.08rem var(--font-body); color: var(--heading); display: flex; gap: 10px; align-items: center; }
.value h3 i { color: var(--brass); }
.value p { color: var(--ink-soft); font-size: .95rem; }
.langline { display: flex; flex-wrap: wrap; gap: 10px 28px; font: 400 1.4rem var(--font-display); color: var(--accent-ink); }
.langline span { display: flex; gap: 10px; align-items: baseline; }
.langline small { font: 700 .7rem var(--font-body); letter-spacing: .14em; color: var(--ink-soft); }

/* ---------- Каталог туров ---------- */
.catalog { display: grid; gap: 28px; grid-template-columns: 1fr; }
@media (min-width: 1024px) { .catalog { grid-template-columns: 280px 1fr; align-items: start; } }
.catalog-wrap { transition: opacity .2s; }
.catalog-wrap.loading { opacity: .4; pointer-events: none; }
.filters { background: var(--white); border: 1px solid var(--line); border-radius: calc(20px * var(--rs)); padding: 22px; }
@media (min-width: 1024px) { .filters { position: sticky; top: calc(var(--header-h) + 20px); max-height: calc(100vh - var(--header-h) - 40px); overflow-y: auto; } }
.filters details { border-bottom: 1px solid var(--line); padding: 12px 0; }
.filters details:last-of-type { border-bottom: 0; }
.filters summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; font-size: .74rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); }
.filters summary::-webkit-details-marker { display: none; }
.filters summary::after { content: "+"; font-size: 1.1rem; color: var(--accent-ink); }
.filters details[open] summary::after { content: "–"; }
.filters .head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; }
.filters .head h2 { font: 700 1.1rem var(--font-body); color: var(--heading); display: flex; gap: 8px; align-items: center; }
.filters .head h2 i { color: var(--brass); }
.filters .reset { font-size: .82rem; font-weight: 700; color: var(--ink-soft); text-decoration: none; }
.filters .reset:hover { color: var(--heading); }
.opts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.opt { display: inline-flex; align-items: center; gap: 7px; padding: .5em .85em; border-radius: var(--r-pill); border: 1px solid var(--line); text-decoration: none; font-size: .86rem; font-weight: 600; color: var(--ink); transition: border-color .2s, background .2s; }
.opt i { color: var(--accent-ink); font-size: .8rem; }
.opt:hover { border-color: var(--emerald-600); }
.opt.on { background: var(--emerald-800); border-color: var(--emerald-800); color: var(--on-dark); }
.opt.on i { color: var(--brass); }
.found { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center; margin-bottom: 18px; color: var(--ink-soft); }
.found b { color: var(--heading); }
.pill-note { font-size: .85rem; background: rgba(var(--accent-rgb), .2); color: var(--heading); font-weight: 600; padding: .4em 1em; border-radius: var(--r-pill); }
.tours { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); }
.tour { background: var(--white); border: 1px solid var(--line); border-radius: calc(20px * var(--rs)); overflow: hidden; display: flex; flex-direction: column; transition: transform .25s, box-shadow .25s; }
.tour:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(var(--dark-rgb), .12); }
.tour .ph { position: relative; aspect-ratio: 16 / 11; background: linear-gradient(135deg, var(--emerald-800), var(--emerald-600)); display: grid; place-items: center; color: rgba(var(--accent-rgb), .6); font-size: 2.4rem; }
.tour .ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tour .ph .badges { position: absolute; top: 12px; left: 12px; right: 12px; display: flex; justify-content: space-between; gap: 6px; }
.tour .body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.tour h3 { font-size: 1.35rem; line-height: 1.2; color: var(--heading); }
.tour h3 a { text-decoration: none; }
.tour .dirn { font-size: .88rem; font-weight: 600; color: var(--accent-ink); }
.tour .desc { color: var(--ink-soft); font-size: .93rem; flex: 1; }
.price-rows { display: grid; gap: 4px; }
.price-rows div { display: flex; justify-content: space-between; font-size: .88rem; padding: .4em .7em; border-radius: calc(8px * var(--rs)); background: var(--silk); font-variant-numeric: tabular-nums; }
.price-rows div.on { background: rgba(var(--accent-rgb), .22); box-shadow: inset 0 0 0 1px var(--brass); }
.price-rows b { color: var(--heading); }
.tour .foot { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--line); padding-top: 12px; font-variant-numeric: tabular-nums; }
.tour .foot span { color: var(--ink-soft); font-size: .88rem; }
.tour .foot strong { color: var(--heading); font-size: 1.15rem; }
.empty { text-align: center; padding: 56px 20px; background: var(--white); border: 1px dashed var(--line); border-radius: calc(20px * var(--rs)); color: var(--ink-soft); display: grid; gap: 12px; justify-items: center; grid-column: 1 / -1; }
.empty i { font-size: 2.4rem; color: var(--line); }

/* ---------- Страница тура ---------- */
.detail { display: grid; gap: 28px; grid-template-columns: 1fr; }
@media (min-width: 1024px) { .detail { grid-template-columns: 1fr 340px; align-items: start; } }
.detail .main { display: grid; gap: 24px; min-width: 0; }
.block { background: var(--white); border: 1px solid var(--line); border-radius: calc(20px * var(--rs)); padding: clamp(22px, 3.5vw, 36px); display: grid; gap: 16px; min-width: 0; }
.block h2 { font-size: 1.7rem; color: var(--heading); }
.block .lead { font-size: 1.1rem; color: var(--ink); }
.block .text { color: var(--ink-soft); }
.gallery { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
.gallery a { display: block; border-radius: calc(14px * var(--rs)); overflow: hidden; aspect-ratio: 1; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.gallery a:hover img { transform: scale(1.06); }
.days { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.days li { display: grid; grid-template-columns: 52px 1fr; gap: 16px; padding-bottom: 22px; position: relative; }
.days li::before { content: ""; position: absolute; left: 25px; top: 52px; bottom: 0; width: 1px; background: var(--line); }
.days li:last-child::before { display: none; }
.days .n { width: 52px; height: 52px; border-radius: 50%; background: var(--emerald-800); color: var(--brass); display: grid; place-items: center; font: 400 1.25rem var(--font-display); }
.days h3 { font: 700 1.08rem var(--font-body); color: var(--heading); margin-top: 12px; }
.days p { color: var(--ink-soft); margin-top: 4px; }
.tbl-wrap { overflow-x: auto; }
.tbl { width: 100%; border-collapse: collapse; min-width: 520px; font-size: .93rem; }
.tbl th { background: var(--emerald-800); color: var(--on-dark); padding: 12px 14px; font-weight: 700; text-align: center; }
.tbl th:first-child { text-align: left; border-top-left-radius: 12px; }
.tbl th:last-child { border-top-right-radius: 12px; }
.tbl td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: center; vertical-align: top; }
.tbl td:first-child { text-align: left; font-weight: 600; color: var(--heading); }
.tbl small { display: block; color: var(--ink-soft); font-size: .8rem; margin-top: 2px; }
.yes { color: var(--ok); }
.no { color: var(--no); }
.incl { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.incl h3 { font: 700 1rem var(--font-body); margin-bottom: 10px; }
.incl ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; color: var(--ink-soft); }
.incl li { display: flex; gap: 10px; }
.aside-card { background: var(--white); border: 1px solid var(--line); border-radius: calc(20px * var(--rs)); padding: 28px; display: grid; gap: 18px; }
@media (min-width: 1024px) { .aside-card { position: sticky; top: calc(var(--header-h) + 20px); } }
.aside-card .from { text-align: center; }
.aside-card .from small { color: var(--ink-soft); }
.aside-card .from b { display: block; font: 400 2.6rem/1.1 var(--font-display); color: var(--heading); font-variant-numeric: tabular-nums; }
.facts { list-style: none; margin: 0; padding: 0 0 18px; display: grid; gap: 10px; border-bottom: 1px solid var(--line); }
.facts li { display: flex; gap: 12px; align-items: center; color: var(--ink-soft); }
.facts i { color: var(--accent-ink); width: 18px; text-align: center; }
.facts b { color: var(--heading); }
.plist { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; font-size: .92rem; }
.plist li { display: flex; justify-content: space-between; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.plist span small { color: var(--ink-soft); }
.plist b { color: var(--heading); }

/* ---------- Контакты ---------- */
.c-grid { display: grid; gap: 32px; grid-template-columns: 1fr; }
@media (min-width: 960px) { .c-grid { grid-template-columns: 1fr 1fr; gap: 56px; } }
.messengers { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); gap: 10px; }
.msg {
  display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: calc(16px * var(--rs));
  border: 1px solid rgba(var(--light-rgb), .14); background: rgba(var(--light-rgb), .04);
  text-decoration: none; color: var(--on-dark); font: 700 1rem var(--font-body); text-align: left;
  transition: border-color .2s, background .2s; cursor: pointer; width: 100%;
}
.msg:hover { border-color: var(--brass); background: rgba(var(--accent-rgb), .08); }
.msg i, .msg img { width: 24px; font-size: 1.4rem; color: var(--brass); text-align: center; flex-shrink: 0; }
.msg small { display: block; font-weight: 500; font-size: .8rem; color: var(--on-dark-soft); }
.info { display: grid; gap: 20px; }
.info > div { display: grid; gap: 3px; }
.info small.l { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--brass); font-weight: 700; }
.info a { text-decoration: none; }
.info a:hover { color: var(--brass); }
.hours { display: grid; grid-template-columns: auto 1fr; gap: 4px 20px; margin: 0; font-variant-numeric: tabular-nums; }
.hours dt { color: var(--on-dark-soft); }
.hours dd { margin: 0; }
.now { display: inline-flex; align-items: center; gap: 8px; margin-top: 6px; font-size: .88rem; color: var(--on-dark-soft); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: #7bd3a4; }
.dot.off { background: #d9a25e; }
.form-card { background: var(--silk); color: var(--ink); border-radius: var(--radius); padding: clamp(24px, 4vw, 40px); display: grid; gap: 16px; }
.form-card h2, .form-card h3 { font-size: 1.9rem; color: var(--heading); }
.form-card .sub { color: var(--ink-soft); margin-top: -6px; }
.field { display: grid; gap: 6px; }
.field label { font-size: .82rem; font-weight: 700; color: var(--heading); }
.field input, .field textarea, .field select {
  font: inherit; padding: .85em 1em; border-radius: calc(12px * var(--rs)); border: 1px solid var(--line);
  background: var(--white); color: var(--ink); width: 100%;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field textarea:focus, .field select:focus { outline: 2px solid var(--emerald-600); outline-offset: 0; border-color: transparent; }
.field .err { color: var(--no); font-size: .82rem; }
.row2 { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.alert-ok { background: rgba(47, 143, 91, .12); border: 1px solid rgba(47, 143, 91, .4); border-radius: calc(12px * var(--rs)); padding: 14px 16px; color: var(--heading); font-weight: 600; display: flex; gap: 10px; align-items: center; }

/* ---------- Поиск ---------- */
.search-big { display: flex; gap: 10px; max-width: 640px; }
.search-big input { flex: 1; min-width: 0; padding: 1em 1.3em; border-radius: var(--r-pill); border: 0; font: inherit; font-size: 1.05rem; }
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.results { display: grid; gap: 12px; }
.result { background: var(--white); border: 1px solid var(--line); border-radius: calc(16px * var(--rs)); padding: 18px 20px; display: grid; grid-template-columns: auto 1fr; gap: 16px; text-decoration: none; transition: border-color .2s; }
.result:hover { border-color: var(--emerald-600); }
.result .ico { width: 44px; height: 44px; border-radius: calc(12px * var(--rs)); background: var(--silk-2); color: var(--heading); display: grid; place-items: center; }
.result h3 { font: 700 1.05rem var(--font-body); color: var(--heading); }
.result p { color: var(--ink-soft); font-size: .92rem; }
.result small { color: var(--accent-ink); font-weight: 700; font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; }
mark { background: rgba(var(--accent-rgb), .4); color: inherit; border-radius: 3px; padding: 0 2px; }

/* ---------- Подвал ---------- */
.footer { background: var(--footer-bg); color: var(--on-dark-soft); font-size: .92rem; }
.footer .wrap { padding-top: 56px; padding-bottom: 28px; display: grid; gap: 40px; }
.f-cols { display: grid; gap: 32px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.footer h4 { margin: 0 0 12px; color: var(--brass); font-size: .75rem; letter-spacing: .16em; text-transform: uppercase; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--brass); }
.socials { display: flex; gap: 8px; }
.socials a, .socials button { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: rgba(var(--light-rgb), .08); color: var(--on-dark); border: 0; cursor: pointer; font-size: 1.05rem; }
.socials a:hover, .socials button:hover { background: var(--brass); color: var(--emerald-900); }
.socials img { width: 18px; height: 18px; }
.f-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; border-top: 1px solid rgba(var(--light-rgb), .1); padding-top: 22px; font-size: .82rem; }

/* ---------- Плавающие виджеты ---------- */
.float-stack { position: fixed; right: 18px; bottom: 18px; z-index: 45; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.fab { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; border: 0; cursor: pointer; font-size: 1.35rem; box-shadow: 0 10px 30px rgba(var(--dark-rgb), .35); transition: transform .2s; }
.fab:hover { transform: scale(1.06); }
.fab.gold { background: var(--brass); color: var(--emerald-900); }
.fab.dark { background: var(--emerald-800); color: var(--brass); }
.quick { display: none; flex-direction: column; gap: 8px; align-items: flex-end; }
.quick.open { display: flex; }
.quick a, .quick button { display: inline-flex; align-items: center; gap: 10px; background: var(--white); color: var(--heading); padding: .6em 1em; border-radius: var(--r-pill); text-decoration: none; font-weight: 700; font-size: .9rem; box-shadow: 0 6px 18px rgba(var(--dark-rgb), .18); border: 0; cursor: pointer; font-family: inherit; }
.quick i { color: var(--accent-ink); width: 18px; text-align: center; }
.quick img { width: 18px; height: 18px; }

.tma-panel {
  position: fixed; right: 18px; bottom: 92px; z-index: 46; width: min(380px, calc(100vw - 36px));
  height: min(560px, calc(100vh - 130px)); background: var(--silk); border-radius: calc(22px * var(--rs)); overflow: hidden;
  box-shadow: 0 24px 60px rgba(var(--dark-rgb), .35); display: flex; flex-direction: column;
}
.tma-panel[hidden] { display: none; }
.tma-head { background: var(--emerald-900); color: var(--on-dark); padding: 16px 18px; display: flex; align-items: center; gap: 12px; }
.tma-head .av { width: 40px; height: 40px; border-radius: 50%; background: var(--brass); color: var(--emerald-900); display: grid; place-items: center; }
.tma-head b { display: block; }
.tma-head small { color: var(--on-dark-soft); font-size: .8rem; display: flex; gap: 6px; align-items: center; }
.tma-head button { margin-left: auto; background: none; border: 0; color: var(--on-dark); font-size: 1.2rem; cursor: pointer; }
.tma-msgs { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.tma-row { display: flex; }
.tma-row.user { justify-content: flex-end; }
.tma-b { max-width: 85%; padding: 10px 14px; border-radius: calc(16px * var(--rs)); font-size: .92rem; line-height: 1.5; }
.tma-row.bot .tma-b { background: var(--white); border-bottom-left-radius: 4px; box-shadow: 0 1px 3px rgba(0, 0, 0, .06); }
.tma-row.user .tma-b { background: var(--emerald-800); color: var(--on-dark); border-bottom-right-radius: 4px; }
.tma-chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 16px 10px; }
.tma-chips button { border: 1px solid rgba(var(--mid-rgb), .4); color: var(--accent-ink); background: transparent; border-radius: var(--r-pill); padding: .4em .8em; font: 600 .8rem var(--font-body); cursor: pointer; }
.tma-chips button:hover { background: var(--emerald-600); color: var(--on-dark); }
.tma-form { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line); background: var(--white); }
.tma-form input { flex: 1; min-width: 0; border: 1px solid var(--line); border-radius: var(--r-pill); padding: .7em 1em; font: inherit; }
.tma-form button { width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--brass); color: var(--emerald-900); cursor: pointer; }

/* Модалка с QR */
.modal { position: fixed; inset: 0; z-index: 70; background: rgba(var(--deep-rgb), .6); display: grid; place-items: center; padding: 16px; }
.modal[hidden] { display: none; }
.modal .box { background: var(--silk); border-radius: calc(22px * var(--rs)); padding: 28px; max-width: 360px; width: 100%; display: grid; gap: 16px; }
.modal .box h3 { font-size: 1.6rem; color: var(--heading); display: flex; justify-content: space-between; align-items: center; }
.modal .box h3 button { background: none; border: 0; font-size: 1.3rem; cursor: pointer; color: var(--ink-soft); }
.modal .qr { background: var(--white); border-radius: calc(14px * var(--rs)); padding: 16px; }
.modal ol { margin: 0; padding-left: 1.2em; color: var(--ink-soft); font-size: .92rem; display: grid; gap: 4px; }

/* Утилиты */
.mt-s { margin-top: 16px; } .mt-m { margin-top: 32px; } .mt-l { margin-top: 56px; }
.center { text-align: center; }
.muted { color: var(--ink-soft); }

/* Бегущая строка партнёров */
.partners { padding-top: 40px; padding-bottom: 48px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); overflow: hidden; display: grid; gap: 22px; }
.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee .track { display: flex; align-items: center; gap: 36px; width: max-content; animation: marquee 40s linear infinite; }
.marquee span { font: 400 clamp(1.3rem, 2.4vw, 1.8rem) var(--font-display); color: var(--heading); white-space: nowrap; opacity: .75; }
.marquee svg { width: 18px; height: 18px; color: var(--brass); flex-shrink: 0; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Языки: у Prata нет туркменских букв (ň, ş, ž) — для TM заголовки в Playfair Display;
   для китайского — системные CJK-шрифты */
:root:lang(tk) { --font-display: "Playfair Display", Georgia, serif; }
:root:lang(zh-Hans) {
  --font-display: "Noto Serif SC", "Songti SC", "STSong", "SimSun", serif;
  --font-body: "Manrope", "PingFang SC", "Noto Sans SC", "Microsoft YaHei", sans-serif;
}
:root:lang(zh-Hans) .eyebrow { letter-spacing: .12em; }

/* шапка: место под кнопку оформления */
@media (min-width: 1280px) {
  .header .wrap { max-width: 1400px; gap: 14px; }
  .theme-btn { width: 40px; height: 40px; }
}
@media (min-width: 1280px) and (max-width: 1399px) {
  .nav a { padding: .5em .5em; font-size: .86rem; }
  .logo b { font-size: 1.05rem; letter-spacing: .1em; }
  .search-mini input:focus { width: 160px; }
}
