/* Hajjency — UAE travel guide. Тема «Desert dusk»: нічне небо, пісок, золото й бірюза Затоки. */

/* ═════════════ токени ═════════════ */
:root {
  --bg: #faf6ef;
  --bg-2: #f3ecdf;
  --surface: #ffffff;
  --surface-2: #fdfaf4;
  --text: #142033;
  --text-2: #36425a;
  --muted: #687389;
  --line: #ebe2d3;
  --line-2: #ddd0ba;
  --brand: #0d7a72;
  --brand-2: #14a196;
  --brand-ink: #0a5d56;
  --brand-soft: #e2f3f0;
  --gold: #e2a23b;
  --gold-2: #f4c76f;
  --gold-ink: #93600f;
  --gold-soft: #fbf1db;
  --night: #0d1730;
  --night-2: #1d2756;
  --footer: #0a1226;
  --shadow-sm: 0 1px 2px rgba(20, 32, 51, .06), 0 1px 3px rgba(20, 32, 51, .05);
  --shadow: 0 14px 34px -16px rgba(20, 32, 51, .22), 0 2px 6px rgba(20, 32, 51, .05);
  --shadow-lg: 0 32px 64px -24px rgba(13, 23, 48, .42);
  --radius: 18px;
  --radius-sm: 12px;
  --radius-lg: 28px;
  --font: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --wrap: 1220px;
  --header-h: 70px;
  --dusk: linear-gradient(135deg, #0d1730 0%, #232a62 48%, #6c3f72 78%, #b9594f 100%);
  --pattern: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64' viewBox='0 0 64 64'%3E%3Cg fill='none' stroke='%23f4c76f' stroke-opacity='.14'%3E%3Crect x='19' y='19' width='26' height='26'/%3E%3Crect x='19' y='19' width='26' height='26' transform='rotate(45 32 32)'/%3E%3Cpath d='M0 0l6 6M64 0l-6 6M0 64l6-6M64 64l-6-6'/%3E%3C/g%3E%3C/svg%3E");
  --pattern-sand: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64' viewBox='0 0 64 64'%3E%3Cg fill='none' stroke='%23c9984a' stroke-opacity='.16'%3E%3Crect x='19' y='19' width='26' height='26'/%3E%3Crect x='19' y='19' width='26' height='26' transform='rotate(45 32 32)'/%3E%3C/g%3E%3C/svg%3E");
  color-scheme: light;
}

[data-theme="dark"] {
  --bg: #0a1120;
  --bg-2: #101a2e;
  --surface: #0f1829;
  --surface-2: #131e33;
  --text: #e8edf6;
  --text-2: #c2cada;
  --muted: #8e99ae;
  --line: #1e2a42;
  --line-2: #2a3857;
  --brand: #34c9bb;
  --brand-2: #63e0d4;
  --brand-ink: #86e9df;
  --brand-soft: rgba(52, 201, 187, .12);
  --gold: #f0b44c;
  --gold-2: #f6cd7c;
  --gold-ink: #f3c470;
  --gold-soft: rgba(240, 180, 76, .1);
  --footer: #070d1b;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .3);
  --shadow: 0 16px 36px -18px rgba(0, 0, 0, .6), 0 2px 6px rgba(0, 0, 0, .25);
  --shadow-lg: 0 32px 64px -24px rgba(0, 0, 0, .75);
  --pattern-sand: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64' viewBox='0 0 64 64'%3E%3Cg fill='none' stroke='%23f0b44c' stroke-opacity='.08'%3E%3Crect x='19' y='19' width='26' height='26'/%3E%3Crect x='19' y='19' width='26' height='26' transform='rotate(45 32 32)'/%3E%3C/g%3E%3C/svg%3E");
  color-scheme: dark;
}

/* палітри «неба» для обкладинок і плиток: a/b — градієнт, s — силует, k — колір іконки, sun — сонце */
.pal-0 { --a: #ffdca0; --b: #f2915c; --s: #7a3324; --k: #c4561f; --sun: #fff6d6; --sx: 66%; --sy: 18%; }
.pal-1 { --a: #a6eae2; --b: #2a9c98; --s: #0c4650; --k: #0f7c77; --sun: #fffbe8; --sx: 22%; --sy: 16%; }
.pal-2 { --a: #fbb47c; --b: #8a58a6; --s: #271c46; --k: #7c4ba2; --sun: #ffe3a8; --sx: 70%; --sy: 30%; }
.pal-3 { --a: #46629f; --b: #161f44; --s: #070c22; --k: #3c5bb0; --sun: #f3efe2; --sx: 76%; --sy: 14%; }
.pal-4 { --a: #fde6a6; --b: #e09d48; --s: #7d4516; --k: #ae6c10; --sun: #fffaf0; --sx: 30%; --sy: 22%; }
.pal-5 { --a: #bde6f8; --b: #4b8fd8; --s: #13386a; --k: #2d6cc0; --sun: #fffbea; --sx: 62%; --sy: 16%; }
.pal-6 { --a: #fcc9b8; --b: #cf6a7f; --s: #561c31; --k: #b6425b; --sun: #fff1dc; --sx: 26%; --sy: 26%; }
.pal-7 { --a: #cdeeb8; --b: #3fa27f; --s: #133f31; --k: #278862; --sun: #fffde9; --sx: 72%; --sy: 20%; }

/* ═════════════ база ═════════════ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
html.lock { overflow: hidden; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-2); }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, h4 { margin: 0; color: var(--text); line-height: 1.2; }
h1, h2 { font-family: var(--serif); font-weight: 650; letter-spacing: -.015em; font-optical-sizing: auto; }
p { margin: 0; }
kbd {
  font: 600 .72rem/1 var(--font);
  padding: 4px 6px;
  border-radius: 6px;
  border: 1px solid var(--line-2);
  background: var(--surface);
  color: var(--muted);
}
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; border-radius: 6px; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.section { padding-top: 72px; }
.section-tight { padding-top: 32px; }
.ico {
  width: 1.2em; height: 1.2em; flex-shrink: 0;
  fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}
.ico-sm { width: 1em; height: 1em; }
.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 200; background: var(--night); color: #fff; padding: 10px 16px; border-radius: 10px; }
.skip-link:focus { left: 12px; color: #fff; }
.hl {
  font-style: italic;
  background: linear-gradient(100deg, var(--gold) 0%, #f08b5b 100%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  padding-right: .06em;
}
.kicker {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .75rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--gold-ink);
  margin-bottom: 10px;
}
.kicker::before { content: ''; width: 7px; height: 7px; background: var(--gold); transform: rotate(45deg); border-radius: 1px; }
.kicker .ico { margin-left: -2px; }
.kicker:has(.ico)::before { display: none; }
.kicker-light { color: var(--gold-2); }

/* ═════════════ кнопки, чипи ═════════════ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 20px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 700; font-size: .95rem; line-height: 1.2; white-space: nowrap;
  transition: transform .2s, box-shadow .2s, background .2s, color .2s, border-color .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn-lg { padding: 15px 26px; font-size: 1rem; }
.btn-sm { padding: 8px 14px; font-size: .85rem; }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 10px 24px -12px var(--brand); }
.btn-primary:hover { background: var(--brand-ink); color: #fff; }
[data-theme="dark"] .btn-primary { color: #04201d; }
[data-theme="dark"] .btn-primary:hover { background: var(--brand-2); color: #04201d; }
.btn-gold { background: linear-gradient(135deg, var(--gold-2), var(--gold)); color: #2a1a03; box-shadow: 0 12px 26px -14px #e2a23b; }
.btn-gold:hover { color: #2a1a03; box-shadow: 0 16px 30px -14px #e2a23b; }
.btn-ghost { background: var(--surface); border-color: var(--line-2); color: var(--text); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); }
.btn-outline-light { border-color: rgba(255, 255, 255, .4); color: #fff; }
.btn-outline-light:hover { background: rgba(255, 255, 255, .1); color: #fff; border-color: #fff; }
.link-more {
  display: inline-flex; align-items: center; gap: 6px;
  background: none; border: 0; padding: 0;
  font-weight: 700; font-size: .93rem; color: var(--brand); white-space: nowrap;
}
.link-more .ico { transition: transform .2s; }
.link-more:hover { color: var(--brand-2); }
.link-more:hover .ico { transform: translateX(3px); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips.center { justify-content: center; }
.chip {
  position: relative; z-index: 2;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 13px; border-radius: 999px;
  background: var(--brand-soft); color: var(--brand-ink);
  font-weight: 650; font-size: .82rem; line-height: 1.3;
  transition: background .2s, color .2s;
}
.chip:hover { background: var(--brand); color: #fff; }
[data-theme="dark"] .chip:hover { color: #04201d; }
.chip small { font-weight: 600; opacity: .65; font-size: .75rem; }
.chip-sm { padding: 4px 10px; font-size: .74rem; }
.chip-ico { padding-left: 5px; background: var(--surface); border: 1px solid var(--line); color: var(--text); }

/* значки тем */
.tile-ico {
  display: inline-grid; place-items: center; flex-shrink: 0;
  width: 46px; height: 46px; border-radius: 14px;
  background: color-mix(in srgb, var(--k) 13%, var(--surface));
  color: var(--k);
}
.tile-ico .ico { width: 22px; height: 22px; }
.tile-ico.sm { width: 36px; height: 36px; border-radius: 11px; }
.tile-ico.sm .ico { width: 18px; height: 18px; }
.tile-ico.xs { width: 24px; height: 24px; border-radius: 999px; }
.tile-ico.xs .ico { width: 13px; height: 13px; }
[data-theme="dark"] .tile-ico { background: color-mix(in srgb, var(--k) 22%, var(--surface)); color: color-mix(in srgb, var(--k) 45%, #fff); }

/* ═════════════ шапка ═════════════ */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 84%, transparent);
  -webkit-backdrop-filter: saturate(1.5) blur(14px);
  backdrop-filter: saturate(1.5) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}
.site-header.scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 24px -18px rgba(13, 23, 48, .35); }
.header-row { display: flex; align-items: center; gap: 24px; height: var(--header-h); }
.logo { display: inline-flex; align-items: center; gap: 11px; color: var(--text); flex-shrink: 0; }
.logo:hover { color: var(--text); }
.logo-mark {
  display: grid; place-items: center;
  width: 42px; height: 42px; border-radius: 13px;
  background: linear-gradient(170deg, #1a2557 0%, #b45a55 62%, #f2b25c 100%);
  color: #fff; box-shadow: 0 8px 18px -10px #b45a55;
}
.logo-mark .ico { width: 26px; height: 26px; color: #fff6dc; }
.logo-text { display: flex; flex-direction: column; line-height: 1.05; }
.logo-text b { font-family: var(--serif); font-size: 1.42rem; font-weight: 700; letter-spacing: -.01em; }
.logo-text small { font-size: .66rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-ink); margin-top: 3px; }
.logo-light, .logo-light:hover { color: #fff; }
.logo-light .logo-text small { color: var(--gold-2); }

.main-nav { display: flex; align-items: center; gap: 2px; margin-left: auto; min-width: 0; }
.nav-link {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 9px 13px; border-radius: 999px; border: 0; background: none;
  font-weight: 600; font-size: .92rem; color: var(--text-2); white-space: nowrap;
  transition: background .2s, color .2s;
}
.nav-link:hover, .has-mega.open .mega-btn { background: var(--bg-2); color: var(--text); }
.mega-btn .ico { transition: transform .2s; }
.has-mega { position: relative; }
.has-mega.open .mega-btn .ico { transform: rotate(180deg); }
.mega {
  position: absolute; top: calc(100% + 12px); right: -120px;
  width: min(760px, 92vw); padding: 20px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .2s, transform .2s, visibility .2s;
}
.has-mega.open .mega { opacity: 1; visibility: visible; transform: none; }
.mega-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 0 6px 14px; border-bottom: 1px solid var(--line); margin-bottom: 12px; }
.mega-head b { font-family: var(--serif); font-size: 1.15rem; }
.mega-head span { font-size: .8rem; color: var(--muted); }
.mega-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; max-height: 60vh; overflow: auto; }
.mega-link { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 12px; color: var(--text); }
.mega-link:hover { background: var(--bg-2); color: var(--text); }
.mega-text { display: flex; flex-direction: column; min-width: 0; }
.mega-text b { font-size: .88rem; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mega-text small { font-size: .74rem; color: var(--muted); }

.header-actions { display: flex; align-items: center; gap: 6px; }
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 42px; min-width: 42px; padding: 0 11px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface); color: var(--text-2);
  transition: border-color .2s, color .2s;
}
.icon-btn:hover { border-color: var(--brand); color: var(--brand); }
.search-btn { padding: 0 8px 0 14px; color: var(--muted); font-size: .88rem; font-weight: 600; }
.search-btn span { margin-right: 14px; }
.i-sun { display: none; }
[data-theme="dark"] .i-sun { display: block; }
[data-theme="dark"] .i-moon { display: none; }
.menu-btn { display: none; }

/* ═════════════ головна: hero ═════════════ */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  color: #fff;
  background: linear-gradient(180deg, #0a1430 0%, #17204d 30%, #3b2d63 52%, #8a4766 70%, #d8734f 86%, #f2b25c 100%);
  padding: 72px 0 230px;
}
.hero-sky { position: absolute; inset: 0; z-index: -2; pointer-events: none; }
.hero-stars {
  position: absolute; inset: 0 0 45% 0; opacity: .75;
  background-image:
    radial-gradient(1.2px 1.2px at 8% 18%, #fff 50%, transparent 52%),
    radial-gradient(1px 1px at 18% 42%, #fff 50%, transparent 52%),
    radial-gradient(1.4px 1.4px at 27% 12%, #fff 50%, transparent 52%),
    radial-gradient(1px 1px at 38% 30%, #fff 50%, transparent 52%),
    radial-gradient(1.2px 1.2px at 47% 8%, #fff 50%, transparent 52%),
    radial-gradient(1px 1px at 58% 24%, #fff 50%, transparent 52%),
    radial-gradient(1.5px 1.5px at 66% 10%, #fff 50%, transparent 52%),
    radial-gradient(1px 1px at 74% 36%, #fff 50%, transparent 52%),
    radial-gradient(1.2px 1.2px at 83% 16%, #fff 50%, transparent 52%),
    radial-gradient(1px 1px at 92% 30%, #fff 50%, transparent 52%),
    radial-gradient(1px 1px at 4% 52%, #fff 50%, transparent 52%),
    radial-gradient(1.2px 1.2px at 96% 6%, #fff 50%, transparent 52%);
}
.hero-sun {
  position: absolute; right: 9%; bottom: 120px;
  width: 300px; height: 300px; border-radius: 50%;
  background: radial-gradient(circle, #fff1c2 0 34%, rgba(255, 205, 120, .55) 46%, rgba(255, 170, 90, 0) 70%);
}
.hero-city { position: absolute; left: 0; right: 0; bottom: 34px; width: 100%; height: 260px; z-index: -1; color: #0b1230; pointer-events: none; }
.hero-windows { fill: #f6c56b; opacity: .85; }
.hero-edge { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: 70px; color: var(--bg); z-index: -1; pointer-events: none; }
.hero-inner { position: relative; max-width: var(--wrap); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px; border-radius: 999px;
  background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .18);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  font-size: .82rem; font-weight: 600; color: #ffe8bd; margin-bottom: 22px;
}
.hero h1 { color: #fff; font-size: clamp(2.5rem, 6vw, 4.7rem); line-height: 1.02; max-width: 15ch; letter-spacing: -.025em; font-weight: 640; }
.hero .hl { background: linear-gradient(100deg, #ffd27a 0%, #ff9f68 100%); -webkit-background-clip: text; background-clip: text; }
.hero .lead { margin-top: 20px; max-width: 640px; font-size: 1.1rem; line-height: 1.65; color: rgba(255, 255, 255, .82); }
.hero-search {
  display: flex; align-items: center; gap: 12px;
  width: min(620px, 100%); margin-top: 32px; padding: 0 12px 0 20px; height: 62px;
  border: 0; border-radius: 18px; text-align: left;
  background: rgba(255, 255, 255, .97); color: #5d677c;
  box-shadow: 0 24px 50px -20px rgba(5, 10, 30, .6), 0 0 0 6px rgba(255, 255, 255, .08);
  transition: transform .2s, box-shadow .2s;
}
.hero-search:hover { transform: translateY(-2px); box-shadow: 0 30px 60px -22px rgba(5, 10, 30, .7), 0 0 0 6px rgba(255, 255, 255, .12); }
.hero-search .ico { width: 22px; height: 22px; color: #0d7a72; }
.hero-search span { flex: 1; font-size: 1rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hero-search kbd { background: #f1ece2; border-color: #e3d9c6; color: #7d6a48; }
.hero-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 18px; font-size: .85rem; }
.hero-chips span { color: rgba(255, 255, 255, .65); font-weight: 600; margin-right: 2px; }
.hero-chips a {
  padding: 6px 13px; border-radius: 999px; color: #fff; font-weight: 600;
  background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .16);
  transition: background .2s;
}
.hero-chips a:hover { background: rgba(255, 255, 255, .2); color: #fff; }

/* «UAE at a glance» */
.glance-wrap { position: relative; z-index: 3; margin-top: -76px; }
.glance {
  display: grid; grid-template-columns: 260px 1fr; gap: 28px; align-items: center;
  padding: 28px 30px; border-radius: var(--radius-lg);
  background: var(--surface) var(--pattern-sand) right top / 64px;
  border: 1px solid var(--line); box-shadow: var(--shadow);
}
.glance-head h2 { font-size: 1.6rem; }
.glance-head p { margin-top: 6px; font-size: .86rem; color: var(--muted); }
.glance-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 0; }
.glance-grid > div { padding: 14px 16px; border-radius: 16px; background: var(--surface-2); border: 1px solid var(--line); }
.glance-grid dt, .side-glance dt { display: flex; align-items: center; gap: 8px; font-size: .74rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.glance-grid dt .ico, .side-glance dt .ico { width: 17px; height: 17px; color: var(--gold); }
.glance-grid dd, .side-glance dd { margin: 4px 0 0; font-weight: 700; font-size: .98rem; color: var(--text); }

/* заголовки секцій */
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 26px; }
.sec-head h2 { font-size: clamp(1.7rem, 3.2vw, 2.35rem); }

/* плитки тем */
.topics-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.topic-tile {
  position: relative; display: flex; align-items: center; gap: 14px;
  padding: 16px 18px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line); color: var(--text);
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.topic-tile:hover { color: var(--text); transform: translateY(-2px); border-color: var(--line-2); box-shadow: var(--shadow); }
.topic-text { display: flex; flex-direction: column; min-width: 0; }
.topic-name { font-weight: 700; font-size: 1rem; }
.topic-count { font-size: .8rem; color: var(--muted); }
.topic-arrow { margin-left: auto; width: 18px; height: 18px; color: var(--muted); transition: transform .2s, color .2s; }
.topic-tile:hover .topic-arrow { color: var(--brand); transform: translate(2px, -2px); }

/* ═════════════ обкладинки-листівки ═════════════ */
.cover {
  position: relative; overflow: hidden; isolation: isolate;
  aspect-ratio: 16 / 9;
  background: linear-gradient(172deg, var(--a, #ffdca0) 0%, var(--b, #f2915c) 100%);
  color: var(--s, #7a3324);
}
.cover::before {
  content: ''; position: absolute; z-index: -1;
  left: var(--sx, 64%); top: var(--sy, 20%);
  width: 26%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, var(--sun, #fff6d6) 0 48%, color-mix(in srgb, var(--sun, #fff) 40%, transparent) 60%, transparent 72%);
}
.cover::after {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(120% 70% at 50% 0%, rgba(255, 255, 255, .28), transparent 60%);
}
.cover-scene { position: absolute; left: 0; bottom: 0; width: 100%; height: 72%; transition: transform .5s ease; transform-origin: 50% 100%; }
.cover-badge {
  position: absolute; top: 12px; left: 12px;
  display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px;
  background: rgba(255, 255, 255, .78); color: var(--k);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  box-shadow: 0 6px 16px -10px rgba(0, 0, 0, .4);
}
.cover-badge .ico { width: 19px; height: 19px; }
[data-theme="dark"] .cover { filter: saturate(.92) brightness(.9); }
[data-theme="dark"] .cover-badge { background: rgba(10, 17, 32, .6); color: #fff; }

/* ═════════════ картки ═════════════ */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 24px; }
.card {
  position: relative; display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--line-2); }
.card:hover .cover-scene { transform: scale(1.04); }
.card-body { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; flex: 1; padding: 18px 20px 20px; }
.card-title { font-family: var(--font); font-size: 1.08rem; font-weight: 700; line-height: 1.38; letter-spacing: -.005em; }
.card-title a { color: var(--text); }
.card-title a::after { content: ''; position: absolute; inset: 0; z-index: 1; }
.card:hover .card-title a { color: var(--brand); }
.card-excerpt { font-size: .93rem; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card-meta { margin-top: auto; display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: .8rem; color: var(--muted); }
.card-meta span::before { content: '·'; margin-right: 14px; color: var(--line-2); font-weight: 700; }
.card-featured { display: grid; grid-template-columns: 1.15fr 1fr; margin-bottom: 24px; }
.card-featured .cover { aspect-ratio: auto; min-height: 330px; height: 100%; }
.card-featured .card-body { padding: 34px 36px; justify-content: center; gap: 14px; }
.card-featured .card-title { font-family: var(--serif); font-size: clamp(1.5rem, 2.6vw, 2.15rem); font-weight: 650; line-height: 1.15; letter-spacing: -.015em; }
.card-featured .card-excerpt { font-size: 1rem; -webkit-line-clamp: 4; }
.card-featured .card-meta { margin-top: 6px; }
.card-featured .cover-badge { width: 46px; height: 46px; top: 18px; left: 18px; border-radius: 14px; }

/* «Destination guides» */
.spots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.spot { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.spot-art { aspect-ratio: 16 / 7; }
.spot-art .cover-scene { height: 84%; }
.spot-body { display: flex; flex-direction: column; gap: 12px; padding: 20px 22px 22px; flex: 1; }
.spot-title { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.spot-title h3 { font-family: var(--serif); font-size: 1.5rem; font-weight: 650; }
.spot-title span { font-size: .78rem; font-weight: 700; color: var(--gold-ink); white-space: nowrap; }
.spot-body > p { font-size: .92rem; color: var(--muted); }
.spot-list { list-style: none; margin: 4px 0 6px; padding: 0; display: grid; gap: 2px; }
.spot-list a {
  position: relative; display: block; padding: 8px 0 8px 18px;
  border-top: 1px dashed var(--line); color: var(--text); font-weight: 600; font-size: .92rem; line-height: 1.4;
}
.spot-list a::before { content: ''; position: absolute; left: 2px; top: 1.05em; width: 6px; height: 6px; background: var(--gold); transform: rotate(45deg); }
.spot-list a:hover { color: var(--brand); }
.spot .link-more { margin-top: auto; }

/* «Editor's picks» */
.picks {
  padding: 34px 34px 30px; border-radius: var(--radius-lg);
  background: var(--surface) var(--pattern-sand) 0 0 / 64px; border: 1px solid var(--line);
}
.picks-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px 28px; }
.picks-list .mini { padding: 16px 0; border-top: 1px solid var(--line); }
.mini-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.mini { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: start; padding: 10px 0; }
.mini + .mini { border-top: 1px solid var(--line); }
.picks-list .mini + .mini { border-top: 1px solid var(--line); }
.mini-n { font-family: var(--serif); font-size: 1.7rem; font-weight: 650; line-height: 1; color: var(--gold); min-width: 2ch; font-style: italic; }
.mini-body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.mini-title { color: var(--text); font-weight: 650; font-size: .95rem; line-height: 1.4; }
.mini-title:hover { color: var(--brand); }
.mini-meta { font-size: .78rem; color: var(--muted); }

/* «Why us» */
.why {
  display: grid; grid-template-columns: 1fr 1.5fr; gap: 40px; align-items: center;
  padding: 44px; border-radius: var(--radius-lg);
  background: var(--brand-soft);
  border: 1px solid color-mix(in srgb, var(--brand) 18%, transparent);
}
.why-head h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); }
.why-head p { margin: 14px 0 22px; color: var(--text-2); }
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.why-item { padding: 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.why-item h3 { margin: 14px 0 6px; font-size: 1.02rem; }
.why-item p { font-size: .9rem; color: var(--muted); }

/* ═════════════ пагінація ═════════════ */
.pagination { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; margin-top: 44px; }
.page-num, .page-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-width: 44px; height: 44px; padding: 0 12px; border-radius: 14px;
  background: var(--surface); border: 1px solid var(--line); color: var(--text); font-weight: 650; font-size: .92rem;
  transition: border-color .2s, color .2s, background .2s;
}
a.page-num:hover, .page-btn:hover { border-color: var(--brand); color: var(--brand); }
.page-btn { padding: 0 16px; }
.page-num.current { background: var(--night); border-color: var(--night); color: #fff; }
[data-theme="dark"] .page-num.current { background: var(--gold); border-color: var(--gold); color: #1d1405; }
.page-num.dots { border-color: transparent; background: none; min-width: 24px; padding: 0; color: var(--muted); }
.page-of { text-align: center; margin-top: 12px; font-size: .82rem; color: var(--muted); }

/* ═════════════ хлібні крихти ═════════════ */
.crumbs ol { list-style: none; margin: 0 0 16px; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: .84rem; color: var(--muted); }
.crumbs li { display: inline-flex; align-items: center; gap: 6px; min-width: 0; }
.crumbs li + li::before { content: ''; width: 5px; height: 5px; background: var(--gold); transform: rotate(45deg); flex-shrink: 0; }
.crumbs a { color: var(--text-2); font-weight: 600; }
.crumbs a:hover { color: var(--brand); }
.crumbs [aria-current] { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 46ch; }
.crumbs-light ol { color: rgba(255, 255, 255, .65); }
.crumbs-light a { color: #fff; }
.crumbs-light a:hover { color: var(--gold-2); }

/* ═════════════ категорія / архів ═════════════ */
.cat-hero {
  display: grid; grid-template-columns: 1.35fr 1fr; overflow: hidden; margin-top: 28px;
  border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm);
}
.cat-hero-text { padding: 36px 40px; display: flex; flex-direction: column; justify-content: center; }
.cat-hero h1 { display: flex; align-items: center; gap: 16px; font-size: clamp(2rem, 4.4vw, 3.1rem); }
.cat-hero h1 .tile-ico { width: 54px; height: 54px; border-radius: 16px; }
.cat-hero h1 .tile-ico .ico { width: 26px; height: 26px; }
.cat-hero-text > p { margin-top: 14px; color: var(--text-2); font-size: 1.04rem; max-width: 56ch; }
.cat-hero-meta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.cat-hero-meta span { display: inline-flex; align-items: center; gap: 7px; padding: 7px 13px; border-radius: 999px; background: var(--bg-2); font-size: .84rem; font-weight: 650; color: var(--text-2); }
.cat-hero-art { aspect-ratio: auto; min-height: 260px; height: 100%; }
.cat-hero-art .cover-badge { width: 48px; height: 48px; top: auto; bottom: 18px; left: auto; right: 18px; }
.related-topics { display: flex; align-items: center; gap: 14px; margin-top: 20px; flex-wrap: wrap; }
.rt-label { font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.page-head {
  margin-top: 28px; padding: 36px 40px; border-radius: var(--radius-lg);
  background: var(--surface) var(--pattern-sand) right top / 64px; border: 1px solid var(--line);
}
.page-head h1 { font-size: clamp(2rem, 4.4vw, 3rem); }
.page-head > p { margin-top: 10px; color: var(--muted); }
.empty { display: grid; place-items: center; gap: 12px; padding: 60px 20px; text-align: center; color: var(--muted); }
.empty .ico { width: 44px; height: 44px; color: var(--gold); }

/* ═════════════ стаття ═════════════ */
.progress { position: fixed; top: 0; left: 0; z-index: 120; width: 100%; height: 3px; background: linear-gradient(90deg, var(--gold), #f08b5b, var(--brand-2)); transform-origin: 0 50%; transform: scaleX(0); }
.post-head { padding-top: 34px; max-width: calc(var(--wrap) - 0px); }
.post-head .chips { margin-bottom: 18px; }
.post-title { font-size: clamp(2.05rem, 4.6vw, 3.35rem); line-height: 1.1; max-width: 22ch; letter-spacing: -.022em; }
.byline { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; margin-top: 24px; }
.avatar {
  display: grid; place-items: center; flex-shrink: 0;
  width: 46px; height: 46px; border-radius: 50%;
  background: linear-gradient(170deg, #1a2557 0%, #b45a55 62%, #f2b25c 100%);
}
.avatar .ico { width: 26px; height: 26px; color: #fff6dc; }
.avatar-lg { width: 68px; height: 68px; }
.avatar-lg .ico { width: 38px; height: 38px; }
.byline-text { display: flex; flex-direction: column; gap: 2px; font-size: .92rem; font-weight: 650; }
.byline-text a { color: var(--text); }
.byline-text a:hover { color: var(--brand); }
.byline-meta { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: .84rem; font-weight: 500; color: var(--muted); }
.byline-meta span { display: inline-flex; align-items: center; gap: 5px; }
.share { display: flex; gap: 8px; }
.share-top { margin-left: auto; }
.share-btn {
  position: relative; display: grid; place-items: center;
  width: 40px; height: 40px; border-radius: 50%; padding: 0;
  border: 1px solid var(--line); background: var(--surface); color: var(--text-2);
  transition: border-color .2s, color .2s, transform .2s;
}
.share-btn:hover { border-color: var(--brand); color: var(--brand); transform: translateY(-1px); }
.share-btn .ico { width: 17px; height: 17px; }
.copied {
  position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%);
  padding: 4px 9px; border-radius: 8px; background: var(--night); color: #fff; font-size: .74rem; font-weight: 600; white-space: nowrap;
  opacity: 0; pointer-events: none; transition: opacity .2s;
}
.share-btn.done .copied { opacity: 1; }
.post-banner { margin-top: 30px; aspect-ratio: 21 / 8; border-radius: var(--radius-lg); }
.post-banner .cover-badge { width: 52px; height: 52px; top: 20px; left: 20px; border-radius: 16px; }
.post-banner .cover-badge .ico { width: 24px; height: 24px; }

.post-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 60px; padding-top: 40px; align-items: start; }
.post-main { min-width: 0; max-width: 760px; }
.post-side { min-width: 0; }
.side-sticky { position: sticky; top: calc(var(--header-h) + 22px); display: grid; gap: 18px; }
.side-box { padding: 20px 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.side-title { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; font-size: .78rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--text); }
.side-title .ico { color: var(--gold); width: 17px; height: 17px; }
.side-glance dl { margin: 0; display: grid; gap: 12px; }
.side-glance dd { font-size: .92rem; }

/* зміст */
.toc ol { list-style: none; margin: 0; padding: 0; counter-reset: toc; }
.toc li { counter-increment: toc; }
.toc li.lvl-3 { padding-left: 16px; counter-increment: none; }
.toc a { display: block; padding: 6px 0 6px 12px; border-left: 2px solid var(--line); color: var(--muted); font-size: .88rem; line-height: 1.4; transition: color .2s, border-color .2s; }
.toc a:hover { color: var(--text); }
.toc a.active { color: var(--brand); border-left-color: var(--brand); font-weight: 650; }
.toc-side ol { max-height: 46vh; overflow: auto; }
.toc-inline { display: none; margin-bottom: 28px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.toc-inline summary { display: flex; align-items: center; gap: 10px; padding: 16px 18px; font-weight: 700; cursor: pointer; list-style: none; }
.toc-inline summary::-webkit-details-marker { display: none; }
.toc-inline summary .ico { color: var(--gold); }
.toc-count { margin-left: auto; font-size: .8rem; font-weight: 600; color: var(--muted); }
.toc-chev { transition: transform .2s; color: var(--muted) !important; }
.toc-inline[open] .toc-chev { transform: rotate(180deg); }
.toc-inline ol { padding: 0 18px 16px; }

/* типографіка статті */
.prose { font-size: 1.075rem; line-height: 1.8; color: var(--text-2); overflow-wrap: break-word; }
.prose > * + * { margin-top: 1.15em; }
.prose p { margin: 0 0 1.15em; }
.prose h2 { font-size: clamp(1.5rem, 2.6vw, 1.85rem); line-height: 1.22; margin: 2.1em 0 .65em; scroll-margin-top: calc(var(--header-h) + 20px); }
.prose h3 { font-family: var(--font); font-size: 1.24rem; font-weight: 750; line-height: 1.32; margin: 1.8em 0 .55em; scroll-margin-top: calc(var(--header-h) + 20px); }
.prose h4 { font-size: 1.05rem; margin: 1.5em 0 .5em; }
.prose h2:first-child, .prose h3:first-child { margin-top: 0; }
.prose strong, .prose b { color: var(--text); font-weight: 700; }
.prose a { color: var(--brand); text-decoration: underline; text-decoration-thickness: .08em; text-underline-offset: .2em; text-decoration-color: color-mix(in srgb, var(--brand) 40%, transparent); }
.prose a:hover { text-decoration-color: var(--brand); }
.prose ul, .prose ol { margin: 0 0 1.3em; padding-left: 1.5em; }
.prose ul { list-style: none; }
.prose ul > li { position: relative; }
.prose ul > li::before { content: ''; position: absolute; left: -1.15em; top: .7em; width: 7px; height: 7px; background: var(--gold); transform: rotate(45deg); border-radius: 1px; }
.prose ol > li::marker { color: var(--brand); font-weight: 750; }
.prose li { margin: .4em 0; padding-left: .2em; }
.prose li > ul, .prose li > ol { margin: .4em 0 .2em; }
.prose blockquote {
  margin: 1.6em 0; padding: 18px 22px; border-left: 4px solid var(--gold); border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: var(--gold-soft); font-family: var(--serif); font-size: 1.12rem; font-style: italic; color: var(--text);
}
.prose blockquote p:last-child { margin-bottom: 0; }
.prose hr { border: 0; height: 1px; background: var(--line); margin: 2.2em 0; }
.prose img { height: auto; border-radius: var(--radius-sm); }
.prose code { font-size: .9em; padding: 2px 6px; border-radius: 6px; background: var(--bg-2); }
.prose pre { overflow: auto; padding: 16px; border-radius: var(--radius-sm); background: var(--bg-2); }
.table-wrap { overflow-x: auto; margin: 1.6em 0; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); }
.prose table { width: 100%; border-collapse: collapse; font-size: .94rem; line-height: 1.55; }
.prose th, .prose td { padding: 12px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.prose th { background: var(--bg-2); color: var(--text); font-weight: 700; font-size: .84rem; letter-spacing: .02em; }
.prose tr:last-child td { border-bottom: 0; }
.quick-answer {
  margin: 0 0 1.8em; padding: 22px 24px; border-radius: var(--radius);
  background: linear-gradient(135deg, var(--brand-soft), var(--gold-soft));
  border: 1px solid color-mix(in srgb, var(--brand) 20%, transparent);
}
.qa-label { display: inline-flex; align-items: center; gap: 7px; margin-bottom: 8px; font-size: .74rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--brand); }
.qa-label .ico { width: 16px; height: 16px; }
.quick-answer p { margin: 0; font-size: 1.12rem; line-height: 1.7; color: var(--text); }
.read-also {
  display: flex; align-items: center; gap: 14px; margin: 1.8em 0; padding: 14px 18px;
  border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--gold);
}
.ra-ico { display: grid; place-items: center; flex-shrink: 0; width: 44px; height: 44px; border-radius: 13px; background: color-mix(in srgb, var(--k) 13%, var(--surface)); color: var(--k); }
.ra-ico .ico { width: 21px; height: 21px; }
.ra-body { display: flex; flex-direction: column; gap: 2px; line-height: 1.4; }
.ra-label { font-size: .72rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-ink); }
.prose .read-also a { color: var(--text); font-weight: 700; text-decoration: none; font-size: 1rem; }
.prose .read-also a:hover { color: var(--brand); }

.note-box { display: flex; gap: 14px; margin-top: 40px; padding: 18px 20px; border-radius: var(--radius); background: var(--gold-soft); border: 1px solid color-mix(in srgb, var(--gold) 30%, transparent); }
.note-ico { display: grid; place-items: center; flex-shrink: 0; width: 36px; height: 36px; border-radius: 11px; background: var(--surface); color: var(--gold-ink); }
.note-box p { font-size: .9rem; line-height: 1.65; color: var(--text-2); }
.post-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; margin-top: 30px; padding: 22px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.post-tags, .post-share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.foot-label { font-size: .76rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-right: 4px; }
.author-box { display: flex; gap: 20px; margin-top: 30px; padding: 26px; border-radius: var(--radius); background: var(--surface) var(--pattern-sand) right top / 64px; border: 1px solid var(--line); }
.author-name { font-size: 1.35rem; margin-bottom: 6px; }
.author-box p { font-size: .93rem; color: var(--text-2); }
.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 30px; }
.post-nav-link { display: flex; flex-direction: column; gap: 6px; padding: 18px 20px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); color: var(--text); transition: border-color .2s, transform .2s; }
.post-nav-link:hover { color: var(--text); border-color: var(--brand); transform: translateY(-2px); }
.post-nav-link.next { text-align: right; align-items: flex-end; }
.post-nav-label { display: inline-flex; align-items: center; gap: 6px; font-size: .76rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.post-nav-link b { font-size: .98rem; line-height: 1.4; }
.more-in { margin-top: 36px; padding: 24px 26px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.more-in-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 10px; }
.more-in-head h2 { font-size: 1.35rem; }

/* ═════════════ інформаційні сторінки ═════════════ */
.page-hero {
  position: relative; overflow: hidden; isolation: isolate;
  margin-top: 28px; padding: 48px 48px 56px; border-radius: var(--radius-lg);
  background: var(--pattern) 0 0 / 64px, var(--dusk);
  color: #fff;
}
.page-hero h1 { color: #fff; font-size: clamp(2.1rem, 5vw, 3.4rem); max-width: 18ch; }
.page-hero .hl { background: linear-gradient(100deg, #ffd27a, #ff9f68); -webkit-background-clip: text; background-clip: text; }
.page-hero .lead { margin-top: 14px; max-width: 62ch; color: rgba(255, 255, 255, .82); font-size: 1.06rem; }
.page-updated { display: inline-flex; align-items: center; gap: 8px; margin-top: 20px; padding: 6px 13px; border-radius: 999px; background: rgba(255, 255, 255, .1); font-size: .84rem; color: rgba(255, 255, 255, .85); }
.page-hero-art { position: absolute; right: 0; bottom: 0; width: 54%; height: 62%; color: rgba(5, 9, 25, .5); z-index: -1; }
.page-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 56px; padding-top: 44px; align-items: start; }
.legal { max-width: 760px; }
.legal h2 { font-size: 1.5rem; margin-top: 1.9em; }
.page-nav { display: flex; flex-direction: column; }
.page-nav a { padding: 8px 12px; border-radius: 10px; color: var(--text-2); font-size: .92rem; font-weight: 600; border-left: 2px solid transparent; }
.page-nav a:hover { background: var(--bg-2); color: var(--text); }
.page-nav a[aria-current] { color: var(--brand); background: var(--brand-soft); }
.side-contact p { font-size: .9rem; color: var(--text-2); }
.about-intro { display: grid; grid-template-columns: 1.5fr 1fr; gap: 50px; padding-top: 44px; align-items: start; }
.about-card {
  position: sticky; top: calc(var(--header-h) + 22px); overflow: hidden; isolation: isolate;
  display: grid; gap: 4px; padding: 30px 30px 150px; border-radius: var(--radius-lg);
  background: var(--pattern) 0 0 / 64px, var(--dusk); color: #fff;
}
.stat { padding: 14px 0; border-bottom: 1px solid rgba(255, 255, 255, .14); }
.stat b { display: block; font-family: var(--serif); font-size: 2.3rem; font-weight: 650; line-height: 1.05; color: var(--gold-2); }
.stat span { font-size: .9rem; color: rgba(255, 255, 255, .78); }
.about-card-art { position: absolute; left: 0; bottom: 0; width: 100%; height: 140px; color: rgba(5, 9, 25, .55); z-index: -1; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: step; }
.step { position: relative; padding: 26px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); counter-increment: step; }
.step::before { content: '0' counter(step); display: block; margin-bottom: 14px; font-family: var(--serif); font-style: italic; font-size: 2rem; font-weight: 650; line-height: 1; color: var(--gold); }
.step h3 { font-size: 1.1rem; margin-bottom: 8px; }
.step p { font-size: .93rem; color: var(--muted); }
.values { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.value { padding: 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.value h3 { margin: 14px 0 6px; font-size: 1.05rem; }
.value p { font-size: .9rem; color: var(--muted); }
.cta-band {
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  padding: 40px 44px; border-radius: var(--radius-lg); background: var(--pattern) 0 0 / 64px, var(--dusk); color: #fff;
}
.cta-band h2 { color: #fff; font-size: clamp(1.6rem, 3vw, 2.2rem); }
.cta-band p { margin-top: 8px; color: rgba(255, 255, 255, .8); }
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; padding-top: 44px; }
.contact-card { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 26px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.contact-card h3 { font-size: 1.1rem; margin-top: 6px; }
.contact-card p { font-size: .92rem; color: var(--muted); flex: 1; }
.contact-card .mail { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; word-break: break-all; }
.contact-layout { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: start; }
.form { display: grid; gap: 18px; padding: 32px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.form-title { font-size: 1.7rem; }
.form-note { margin-top: 6px; font-size: .9rem; color: var(--muted); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 7px; }
.field label { font-size: .85rem; font-weight: 700; color: var(--text); }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; border-radius: 12px;
  border: 1px solid var(--line-2); background: var(--surface-2); color: var(--text);
  font: inherit; font-size: .96rem; transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 0; border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
.form .btn { justify-self: start; }
.form-sent { display: flex; gap: 10px; align-items: flex-start; padding: 14px 16px; border-radius: 12px; background: var(--brand-soft); color: var(--brand-ink); font-size: .9rem; }
.form-sent[hidden] { display: none; }
.faq-title { font-size: 1.7rem; margin-bottom: 18px; }
.faq { display: grid; gap: 10px; }
.faq details { border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--line); }
.faq summary { position: relative; padding: 16px 44px 16px 18px; font-weight: 700; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); font-size: 1.3rem; font-weight: 500; color: var(--gold); }
.faq details[open] summary::after { content: '\2212'; }
.faq details p { padding: 0 18px 16px; font-size: .93rem; color: var(--text-2); }

/* 404 */
.notfound { display: flex; flex-direction: column; align-items: center; gap: 18px; padding-top: 40px; text-align: center; }
.nf-art { width: min(560px, 100%); aspect-ratio: 16 / 8; border-radius: var(--radius-lg); }
.nf-art::before { display: none; }
.nf-code { position: absolute; left: 0; right: 0; top: 12%; display: flex; justify-content: center; align-items: center; gap: .08em; font-family: var(--serif); font-size: clamp(4.5rem, 14vw, 8rem); font-weight: 700; line-height: 1; color: var(--s); }
.nf-sun { display: inline-block; width: .72em; height: .72em; border-radius: 50%; background: radial-gradient(circle, #fffaf0 0 50%, rgba(255, 250, 240, .4) 62%, transparent 72%); }
.notfound h1 { font-size: clamp(2rem, 4.4vw, 3rem); }
.notfound .lead { max-width: 56ch; color: var(--text-2); font-size: 1.05rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-actions.center { justify-content: center; }

/* ═════════════ футер ═════════════ */
.site-footer { margin-top: 140px; background: var(--footer); color: rgba(255, 255, 255, .7); }
.footer-cta {
  position: relative; overflow: hidden; isolation: isolate; top: -70px; margin-bottom: -30px;
  display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap;
  padding: 44px 48px; border-radius: var(--radius-lg);
  background: var(--pattern) 0 0 / 64px, var(--dusk); color: #fff; box-shadow: var(--shadow-lg);
}
.footer-cta-text { max-width: 560px; }
.footer-cta h2 { color: #fff; font-size: clamp(1.7rem, 3.2vw, 2.4rem); }
.footer-cta p { margin-top: 10px; color: rgba(255, 255, 255, .8); }
.footer-cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.footer-cta-art { position: absolute; right: -40px; bottom: 0; width: 520px; height: 120px; color: rgba(5, 9, 25, .45); z-index: -1; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; padding: 10px 0 44px; }
.footer-brand p { margin: 16px 0; font-size: .9rem; line-height: 1.7; max-width: 44ch; }
.footer-mail { display: inline-flex; align-items: center; gap: 8px; color: #fff; font-weight: 650; font-size: .92rem; }
.footer-mail:hover { color: var(--gold-2); }
.footer-col h3 { margin-bottom: 14px; font-size: .78rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-2); }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.footer-col a { color: rgba(255, 255, 255, .78); font-size: .92rem; }
.footer-col a:hover { color: #fff; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; padding: 22px 0 30px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: .82rem; color: rgba(255, 255, 255, .55); }

/* ═════════════ оверлеї ═════════════ */
.drawer { position: fixed; inset: 0; z-index: 100; }
.drawer[hidden] { display: none; }
.drawer-backdrop { position: absolute; inset: 0; background: rgba(6, 10, 24, .5); opacity: 0; transition: opacity .3s; }
.drawer-panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(390px, 90vw); overflow-y: auto;
  padding: 18px 20px 28px; background: var(--bg); box-shadow: var(--shadow-lg);
  transform: translateX(100%); transition: transform .32s cubic-bezier(.2, .8, .2, 1);
}
.drawer.open .drawer-backdrop { opacity: 1; }
.drawer.open .drawer-panel { transform: none; }
.drawer-head { display: flex; align-items: center; gap: 8px; margin-bottom: 18px; }
.drawer-head .logo { margin-right: auto; }
.drawer-search { display: flex; align-items: center; gap: 10px; width: 100%; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line-2); background: var(--surface); color: var(--muted); font-weight: 600; text-align: left; }
.drawer-search .ico { color: var(--brand); }
.drawer-label { margin: 22px 0 10px; font-size: .74rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.drawer-topics { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.drawer-topics a { display: flex; align-items: center; gap: 9px; padding: 8px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); color: var(--text); font-size: .86rem; font-weight: 650; line-height: 1.25; min-width: 0; }
.drawer-links { display: grid; }
.drawer-links a { display: flex; align-items: center; justify-content: space-between; padding: 13px 4px; border-bottom: 1px solid var(--line); color: var(--text); font-weight: 650; }

.search-modal { position: fixed; inset: 0; z-index: 110; display: flex; justify-content: center; align-items: flex-start; padding: 9vh 16px 16px; }
.search-modal[hidden] { display: none; }
.search-backdrop { position: absolute; inset: 0; background: rgba(6, 10, 24, .55); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.search-box { position: relative; display: flex; flex-direction: column; width: 100%; max-width: 660px; max-height: 80vh; border-radius: 22px; background: var(--surface); box-shadow: var(--shadow-lg); overflow: hidden; }
.search-form { display: flex; align-items: center; gap: 12px; padding: 6px 14px 6px 20px; border-bottom: 1px solid var(--line); }
.search-form > .ico { width: 22px; height: 22px; color: var(--brand); }
.search-form input[type="search"] { flex: 1; min-width: 0; height: 58px; border: 0; outline: 0; background: none; color: var(--text); font: inherit; font-size: 1.08rem; }
.search-form input::-webkit-search-cancel-button { display: none; }
.esc { padding: 6px 10px; border-radius: 8px; border: 1px solid var(--line-2); background: var(--bg-2); font-size: .74rem; font-weight: 700; color: var(--muted); }
.search-body { overflow-y: auto; padding: 8px 14px 16px; }
.search-label { margin: 14px 6px 8px; font-size: .72rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.search-body .chips { padding: 0 6px; }
.search-list { list-style: none; margin: 0; padding: 0; }
.sr-item { display: flex; align-items: center; gap: 12px; padding: 10px 10px; border-radius: 12px; color: var(--text); font-weight: 600; font-size: .94rem; line-height: 1.4; }
.sr-item:hover, .sr-item.active { background: var(--bg-2); color: var(--text); }
.sr-item > .ico { color: var(--gold); width: 18px; height: 18px; }
.sr-item mark { background: var(--gold-soft); color: inherit; border-radius: 3px; padding: 0 1px; box-shadow: inset 0 -2px 0 color-mix(in srgb, var(--gold) 55%, transparent); }
.sr-tag { display: grid; place-items: center; width: 30px; height: 30px; flex-shrink: 0; border-radius: 9px; background: var(--brand-soft); color: var(--brand-ink); font-weight: 800; }
.sr-count { margin-left: auto; font-size: .78rem; color: var(--muted); white-space: nowrap; font-weight: 500; }
.search-empty { padding: 30px 10px; text-align: center; color: var(--muted); }
.search-foot { display: flex; gap: 18px; padding: 12px 20px; border-top: 1px solid var(--line); font-size: .76rem; color: var(--muted); }
.search-foot kbd { margin-right: 3px; }

.cookie {
  position: fixed; left: 16px; bottom: 16px; z-index: 90;
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  width: min(560px, calc(100vw - 32px)); padding: 16px 18px;
  border-radius: 18px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-lg);
}
.cookie[hidden] { display: none; }
.cookie-ico { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--gold-soft); color: var(--gold-ink); flex-shrink: 0; }
.cookie p { flex: 1; min-width: 200px; font-size: .86rem; color: var(--text-2); }
.cookie-actions { display: flex; gap: 8px; }
.to-top {
  position: fixed; right: 18px; bottom: 18px; z-index: 80;
  display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%;
  border: 0; background: var(--night); color: #fff; box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity .25s, transform .25s, visibility .25s;
}
.to-top.show { opacity: 1; visibility: visible; transform: none; }
[data-theme="dark"] .to-top { background: var(--gold); color: #1d1405; }

/* ═════════════ адаптив ═════════════ */
@media (max-width: 1140px) {
  .post-layout { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .post-main { max-width: 780px; margin: 0 auto; width: 100%; }
  .post-side { display: none; }
  .toc-inline { display: block; }
  .page-layout { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .page-side .side-sticky { position: static; grid-template-columns: 1fr 1fr; }
  .why { grid-template-columns: 1fr; }
}
@media (max-width: 1180px) {
  .main-nav { display: none; }
  .menu-btn { display: inline-flex; }
  .header-actions { margin-left: auto; }
}
@media (max-width: 1020px) {
  .glance { grid-template-columns: 1fr; gap: 18px; }
  .spots { grid-template-columns: 1fr 1fr; }
  .picks-list { grid-template-columns: 1fr 1fr; }
  .values { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 820px) {
  :root { --header-h: 64px; }
  .section { padding-top: 56px; }
  .hero { padding: 48px 0 190px; }
  .hero-city { height: 200px; bottom: 30px; }
  .hero-sun { width: 220px; height: 220px; right: -30px; bottom: 110px; }
  .card-featured { grid-template-columns: 1fr; }
  .card-featured .cover { min-height: 0; aspect-ratio: 16 / 9; }
  .card-featured .card-body { padding: 22px 22px 24px; }
  .cat-hero { grid-template-columns: 1fr; }
  .cat-hero-art { order: -1; min-height: 0; aspect-ratio: 16 / 6; }
  .cat-hero-text { padding: 26px 24px 28px; }
  .why-grid, .steps, .contact-grid { grid-template-columns: 1fr; }
  .about-intro, .contact-layout { grid-template-columns: 1fr; gap: 32px; }
  .about-card { position: relative; top: 0; }
  .post-banner { aspect-ratio: 16 / 7; }
  .share-top { display: none; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .search-btn span, .search-btn kbd { display: none; }
  .search-btn { padding: 0; }
  .logo-text b { font-size: 1.28rem; }
  .logo-mark { width: 38px; height: 38px; }
  .hero h1 { font-size: clamp(2.2rem, 10vw, 2.8rem); }
  .hero .lead { font-size: 1rem; }
  .hero-search { height: 56px; padding-left: 16px; }
  .hero-search span { font-size: .92rem; }
  .hero-search kbd { display: none; }
  .glance-wrap { margin-top: -64px; }
  .glance { padding: 22px 18px; }
  .glance-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .glance-grid > div { padding: 12px; }
  .glance-grid dd { font-size: .9rem; }
  .sec-head { flex-direction: column; align-items: flex-start; gap: 10px; }
  .grid { grid-template-columns: 1fr; gap: 18px; }
  .topics-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .topic-tile { flex-direction: column; align-items: flex-start; gap: 10px; padding: 14px; }
  .topic-tile .tile-ico { width: 38px; height: 38px; border-radius: 12px; }
  .topic-name { font-size: .92rem; line-height: 1.3; }
  .topic-arrow { position: absolute; top: 14px; right: 14px; }
  .spots, .picks-list, .values, .form-row { grid-template-columns: 1fr; }
  .picks, .why, .page-hero, .cta-band, .footer-cta, .page-head, .form { padding: 26px 20px; }
  .page-hero { padding-bottom: 70px; }
  .page-hero-art { width: 100%; height: 40%; }
  .page-side .side-sticky { grid-template-columns: 1fr; }
  .post-nav { grid-template-columns: 1fr; }
  .post-nav-link.next { text-align: left; align-items: flex-start; }
  .author-box { flex-direction: column; gap: 14px; padding: 20px; }
  .more-in { padding: 20px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .footer-cta-art { width: 360px; height: 90px; }
  .prose { font-size: 1.04rem; }
  .crumbs [aria-current] { max-width: 28ch; }
  .search-modal { padding-top: 12px; }
  .search-foot { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
@media print {
  .site-header, .site-footer, .post-side, .share, .progress, .to-top, .cookie, .drawer, .search-modal, .post-nav, .more-in { display: none !important; }
  body { background: #fff; }
}
