/* Milwkick — Life Hacks, Pets & Inspiration. Світла й темна тема, адаптив. */

/* ───────────── токени ───────────── */
:root {
  --bg: #fbf8f4;
  --bg-2: #f4efe8;
  --surface: #ffffff;
  --surface-2: #f7f3ee;
  --ink: #17141f;
  --ink-2: #47435a;
  --muted: #777287;
  --line: #ebe5dc;
  --line-2: #ddd5ca;
  --brand: #5b45f5;
  --brand-ink: #4532d8;
  --brand-soft: #efecff;
  --pink: #ff4f7b;
  --sun: #ffc93c;
  --lime: #d7ff5c;
  --mint: #19b394;
  --hl-1: #dcff6e;
  --hl-3: #ffe27d;
  --overlay: rgba(14, 11, 26, .55);
  --shadow-sm: 0 1px 2px rgba(23, 20, 31, .05), 0 2px 8px rgba(23, 20, 31, .04);
  --shadow: 0 4px 14px rgba(23, 20, 31, .07), 0 1px 3px rgba(23, 20, 31, .05);
  --shadow-lg: 0 18px 44px rgba(40, 28, 90, .14), 0 4px 12px rgba(23, 20, 31, .06);
  --radius: 22px;
  --radius-sm: 14px;
  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --header-h: 68px;
  --pc: var(--brand);
  --pg1: #6a4dff;
  --pg2: #b49bff;
  color-scheme: light;
}
[data-theme="dark"] {
  --bg: #0f0d16;
  --bg-2: #151320;
  --surface: #1a1726;
  --surface-2: #221e31;
  --ink: #f5f2fb;
  --ink-2: #c8c2d8;
  --muted: #958ea8;
  --line: #2b2739;
  --line-2: #393449;
  --brand: #8f80ff;
  --brand-ink: #b0a5ff;
  --brand-soft: #231f42;
  --hl-1: rgba(205, 255, 80, .3);
  --hl-3: rgba(255, 205, 70, .3);
  --overlay: rgba(4, 3, 10, .7);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .3);
  --shadow: 0 4px 16px rgba(0, 0, 0, .35);
  --shadow-lg: 0 18px 48px rgba(0, 0, 0, .5);
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --bg: #0f0d16; --bg-2: #151320; --surface: #1a1726; --surface-2: #221e31; --ink: #f5f2fb; --ink-2: #c8c2d8;
    --muted: #958ea8; --line: #2b2739; --line-2: #393449; --brand: #8f80ff; --brand-ink: #b0a5ff; --brand-soft: #231f42;
    --hl-1: rgba(205, 255, 80, .3); --hl-3: rgba(255, 205, 70, .3); color-scheme: dark;
  }
}

/* палітри тем: --pc — колір тексту/іконок, --pg1/--pg2 — градієнт обкладинки */
.pal-0 { --pc: #5b45f5; --pg1: #6a4dff; --pg2: #b49bff; }
.pal-1 { --pc: #e23d63; --pg1: #ff5c7c; --pg2: #ffb08a; }
.pal-2 { --pc: #0d8f71; --pg1: #12b48c; --pg2: #86e6c8; }
.pal-3 { --pc: #b46f06; --pg1: #f7a823; --pg2: #ffdc72; }
.pal-4 { --pc: #2160e0; --pg1: #3b82f6; --pg2: #86ccff; }
.pal-5 { --pc: #b522c7; --pg1: #d946ef; --pg2: #f8a3c8; }
.pal-6 { --pc: #4a8a1c; --pg1: #5aa928; --pg2: #c9ef6f; }
.pal-7 { --pc: #4338ca; --pg1: #312e81; --pg2: #6d6af5; }
.pal-8 { --pc: #d55712; --pg1: #f97316; --pg2: #fdc07e; }
.pal-9 { --pc: #0b7590; --pg1: #0891b2; --pg2: #6fe3f5; }
[data-theme="dark"] .pal-0 { --pc: #a99dff; }
[data-theme="dark"] .pal-1 { --pc: #ff8aa4; }
[data-theme="dark"] .pal-2 { --pc: #4fd8b2; }
[data-theme="dark"] .pal-3 { --pc: #ffc65a; }
[data-theme="dark"] .pal-4 { --pc: #7fb2ff; }
[data-theme="dark"] .pal-5 { --pc: #ec8bf8; }
[data-theme="dark"] .pal-6 { --pc: #a6e06a; }
[data-theme="dark"] .pal-7 { --pc: #a5a3ff; }
[data-theme="dark"] .pal-8 { --pc: #ffa266; }
[data-theme="dark"] .pal-9 { --pc: #5fd6ef; }

/* ───────────── база ───────────── */
*, *::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; background: var(--bg); color: var(--ink-2); font-family: var(--font-body); font-size: 16px;
  line-height: 1.6; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--brand-ink); text-decoration: none; }
a:hover { color: var(--brand); }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--ink); font-weight: 650; line-height: 1.18; letter-spacing: -.012em; margin: 0; }
p { margin: 0; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--brand) 55%, transparent); outline-offset: 2px; border-radius: 6px; }
::selection { background: color-mix(in srgb, var(--brand) 25%, transparent); }
.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--brand); color: #fff; padding: 10px 16px; border-radius: 10px; font-weight: 700; }
.skip-link:focus { top: 12px; color: #fff; }
.ico { width: 1.15em; height: 1.15em; flex: none; }
.ico-sm { width: 1em; height: 1em; }
.ico-xs { width: .9em; height: .9em; }
.center { justify-content: center; text-align: center; }
kbd {
  display: inline-block; font: 600 .7rem/1 var(--font-body); padding: 4px 6px; border-radius: 6px;
  border: 1px solid var(--line-2); background: var(--surface-2); color: var(--muted); box-shadow: inset 0 -1px 0 var(--line-2);
}
.statcounter { display: none; }

/* підсвітка-маркер у заголовках */
.hl { padding: 0 .06em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.hl-1, .hl-3 { background: linear-gradient(transparent 56%, var(--hl-1) 56%, var(--hl-1) 92%, transparent 92%); }
.hl-3 { background: linear-gradient(transparent 56%, var(--hl-3) 56%, var(--hl-3) 92%, transparent 92%); }
.hl-2 { font-style: italic; color: var(--brand); }

.kicker {
  display: inline-flex; align-items: center; gap: 8px; font-size: .78rem; font-weight: 800; letter-spacing: .08em;
  text-transform: uppercase; color: var(--brand-ink); margin-bottom: 8px;
}
.kicker::before { content: ''; width: 8px; height: 8px; border-radius: 3px; background: linear-gradient(135deg, var(--brand), var(--pink)); transform: rotate(45deg); }
.kicker:has(.ico)::before { display: none; }
.kicker-light { color: #fff; opacity: .9; }

/* кнопки */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid transparent;
  border-radius: 999px; padding: 11px 20px; font-weight: 700; font-size: .95rem; line-height: 1.2; text-decoration: none;
  transition: transform .15s ease, background-color .15s ease, box-shadow .15s ease, border-color .15s ease; white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 8px 20px color-mix(in srgb, var(--brand) 30%, transparent); }
.btn-primary:hover { color: #fff; background: color-mix(in srgb, var(--brand) 88%, #000); }
.btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { color: var(--brand-ink); border-color: var(--brand); }
.btn-light { background: #fff; color: #1c1640; }
.btn-light:hover { color: var(--brand); background: #fff; }
.btn-outline-light { color: #fff; border-color: rgba(255, 255, 255, .5); background: transparent; }
.btn-outline-light:hover { color: #fff; border-color: #fff; background: rgba(255, 255, 255, .1); }
.btn-sm { padding: 8px 14px; font-size: .85rem; }
.btn-lg { padding: 14px 24px; font-size: 1rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* чипи і плитки-іконки */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  position: relative; z-index: 2; display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border-radius: 999px;
  font-size: .8rem; font-weight: 700; line-height: 1.2; color: var(--pc); background: var(--surface-2);
  background: color-mix(in srgb, var(--pc) 10%, var(--surface)); border: 1px solid color-mix(in srgb, var(--pc) 20%, transparent);
  transition: background-color .15s ease, transform .15s ease; text-decoration: none;
}
.chip:hover { color: var(--pc); background: color-mix(in srgb, var(--pc) 18%, var(--surface)); }
.chip .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--pc); flex: none; }
.chip small { color: var(--muted); font-weight: 600; margin-left: 2px; }
.chip-sm { padding: 4px 10px; font-size: .74rem; }
.chip-light { background: rgba(255, 255, 255, .92); border-color: transparent; }
[data-theme="dark"] .chip-light { background: rgba(20, 17, 30, .85); }
.tile-ico {
  display: inline-grid; place-items: center; flex: none; width: 48px; height: 48px; border-radius: 15px; color: var(--pc);
  background: var(--surface-2); background: color-mix(in srgb, var(--pc) 13%, var(--surface));
}
.tile-ico .ico { width: 24px; height: 24px; }
.tile-ico.sm { width: 36px; height: 36px; border-radius: 11px; }
.tile-ico.sm .ico { width: 18px; height: 18px; }
.tile-ico.xs { width: 26px; height: 26px; border-radius: 8px; }
.tile-ico.xs .ico { width: 15px; height: 15px; }
.tile-ico.xl { width: 68px; height: 68px; border-radius: 20px; background: linear-gradient(135deg, var(--pg1), var(--pg2)); color: #fff; box-shadow: 0 10px 26px color-mix(in srgb, var(--pg1) 35%, transparent); }
.tile-ico.xl .ico { width: 32px; height: 32px; }

/* ───────────── шапка ───────────── */
.site-header {
  position: sticky; top: 0; z-index: 50; background: var(--bg); background: color-mix(in srgb, var(--bg) 86%, transparent);
  -webkit-backdrop-filter: saturate(1.6) blur(14px); backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .2s ease, box-shadow .2s ease;
}
.site-header.scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 24px rgba(23, 20, 31, .05); }
.header-row { position: relative; display: flex; align-items: center; gap: 22px; height: var(--header-h); }
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; flex: none; }
.logo:hover { color: var(--ink); }
.logo-mark {
  display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; color: #fff;
  background: linear-gradient(135deg, #6a4dff 0%, #a64dff 55%, #ff4f7b 100%); box-shadow: 0 6px 16px rgba(106, 77, 255, .35);
  position: relative;
}
.logo-mark::after { content: ''; position: absolute; top: 5px; right: 5px; width: 6px; height: 6px; border-radius: 50%; background: var(--lime); }
.logo-mark .ico { width: 21px; height: 21px; }
.logo-text { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; letter-spacing: -.03em; line-height: 1; }
.logo-text em { font-style: italic; color: var(--brand); }
.logo-light { color: #fff; }
.logo-light:hover { color: #fff; }
.logo-light .logo-text em { color: #c3b8ff; }
.main-nav { display: flex; align-items: center; gap: 2px; margin-left: 4px; flex: 1; min-width: 0; overflow: hidden; padding: 4px; }
.mega-btn { background: var(--surface); border: 1px solid var(--line-2) !important; margin-right: 6px; }
.nav-link {
  display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 999px; border: 0; background: none;
  color: var(--ink-2); font-weight: 650; font-size: .92rem; white-space: nowrap; text-decoration: none; transition: background-color .15s, color .15s;
}
.nav-link:hover, .mega-btn[aria-expanded="true"] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); }
.mega-btn .chev { transition: transform .2s ease; }
.mega-btn[aria-expanded="true"] .chev { transform: rotate(180deg); }
.mega {
  position: absolute; top: calc(100% - 4px); left: 24px; right: 24px; background: var(--surface); border: 1px solid var(--line);
  border-radius: 24px; box-shadow: var(--shadow-lg); padding: 22px; opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s; z-index: 60;
}
.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(--font-display); font-size: 1.25rem; color: var(--ink); }
.mega-head span { color: var(--muted); font-size: .85rem; }
.mega-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; }
.mega-link { display: flex; align-items: center; gap: 11px; padding: 9px 10px; border-radius: 14px; color: var(--ink); text-decoration: none; }
.mega-link:hover { background: var(--surface-2); color: var(--ink); }
.mega-text { display: flex; flex-direction: column; min-width: 0; }
.mega-text b { font-size: .9rem; 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: 8px; margin-left: auto; }
.search-pill {
  display: inline-flex; align-items: center; gap: 10px; height: 42px; padding: 0 8px 0 14px; border-radius: 999px;
  border: 1px solid var(--line-2); background: var(--surface); color: var(--muted); font-size: .9rem; font-weight: 600; min-width: 190px;
  transition: border-color .15s, box-shadow .15s;
}
.search-pill span { flex: 1; text-align: left; }
.search-pill:hover { border-color: var(--brand); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 12%, transparent); }
.icon-btn {
  display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line-2);
  background: var(--surface); color: var(--ink); transition: border-color .15s, color .15s;
}
.icon-btn:hover { border-color: var(--brand); color: var(--brand); }
.i-sun { display: none; }
[data-theme="dark"] .i-sun { display: block; }
[data-theme="dark"] .i-moon { display: none; }
.menu-btn { display: none; }

/* ───────────── загальні секції ───────────── */
.section { padding: 64px 0 0; }
.section-tight { padding-top: 28px; }
.section-tint { margin-top: 64px; padding: 64px 0; background: var(--bg-2); border-block: 1px solid var(--line); }
.section-tint + .section { padding-top: 64px; }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 26px; }
.sec-title { font-size: clamp(1.6rem, 2.6vw, 2.25rem); }
.link-more {
  display: inline-flex; align-items: center; gap: 6px; flex: none; border: 0; background: none; padding: 6px 0; color: var(--brand-ink);
  font-weight: 750; font-size: .92rem; white-space: nowrap;
}
.link-more .ico { transition: transform .15s ease; }
.link-more:hover .ico { transform: translateX(3px); }
.lead { font-size: 1.12rem; line-height: 1.65; color: var(--ink-2); }

/* ───────────── hero головної ───────────── */
.hero { position: relative; padding: 56px 0 8px; overflow: hidden; }
.hero::before {
  content: ''; position: absolute; inset: -20% -10% auto; height: 760px; z-index: -1; pointer-events: none;
  background:
    radial-gradient(520px 340px at 82% 30%, color-mix(in srgb, var(--brand) 16%, transparent), transparent 70%),
    radial-gradient(420px 300px at 62% 75%, color-mix(in srgb, var(--pink) 12%, transparent), transparent 70%),
    radial-gradient(360px 260px at 12% 10%, color-mix(in srgb, var(--lime) 22%, transparent), transparent 70%);
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: 48px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; padding: 5px 14px 5px 5px; border-radius: 999px; background: var(--surface);
  border: 1px solid var(--line); box-shadow: var(--shadow-sm); font-size: .85rem; font-weight: 700; color: var(--ink);
}
.eyebrow-ico { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; color: #fff; background: linear-gradient(135deg, var(--brand), var(--pink)); }
.hero-title { font-size: clamp(2.6rem, 5.6vw, 4.6rem); line-height: 1.02; letter-spacing: -.035em; margin: 22px 0 20px; font-weight: 700; }
.hero-copy .lead { max-width: 560px; }
.hero-search {
  display: flex; align-items: center; gap: 12px; width: 100%; max-width: 540px; margin-top: 30px; padding: 0 12px 0 20px; height: 62px;
  border-radius: 20px; border: 1px solid var(--line-2); background: var(--surface); color: var(--muted); font-size: 1rem; font-weight: 600;
  box-shadow: var(--shadow); transition: border-color .15s, box-shadow .15s, transform .15s; text-align: left;
}
.hero-search > .ico { width: 22px; height: 22px; color: var(--brand); }
.hero-search span { flex: 1; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.hero-search:hover { border-color: var(--brand); box-shadow: 0 0 0 5px color-mix(in srgb, var(--brand) 12%, transparent), var(--shadow); }
.hero-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin-top: 18px; font-size: .88rem; }
.hero-tags span { color: var(--muted); font-weight: 600; }
.hero-tags a { color: var(--ink); font-weight: 650; border-bottom: 2px solid color-mix(in srgb, var(--brand) 25%, transparent); }
.hero-tags a:hover { color: var(--brand-ink); border-color: var(--brand); }
.hero-board { position: relative; min-height: 500px; }
.blob { position: absolute; border-radius: 50%; pointer-events: none; }
.blob-1 { width: 380px; height: 380px; top: 40px; left: 50%; transform: translateX(-50%); background: conic-gradient(from 210deg, #6a4dff, #ff4f7b, #ffc93c, #6a4dff); opacity: .16; filter: blur(2px); }
.blob-2 { width: 120px; height: 120px; right: 4%; bottom: 18px; background: var(--lime); opacity: .55; }
[data-theme="dark"] .blob-2 { opacity: .2; }
.sticker {
  position: absolute; width: min(330px, 78%); display: flex; flex-direction: column; gap: 10px; padding: 20px 20px 18px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow-lg); color: var(--ink);
  text-decoration: none; transition: transform .25s cubic-bezier(.2, .8, .2, 1), box-shadow .25s ease;
}
.sticker::before {
  content: ''; position: absolute; top: -11px; left: 50%; width: 86px; height: 22px; transform: translateX(-50%) rotate(-3deg);
  background: color-mix(in srgb, var(--pc) 40%, #fff); opacity: .85; border-radius: 3px;
}
[data-theme="dark"] .sticker::before { background: color-mix(in srgb, var(--pc) 55%, #000); }
.sticker:hover { color: var(--ink); transform: rotate(0) translateY(-4px) scale(1.02); z-index: 3; }
.sticker-1 { top: 8px; left: 0; transform: rotate(-2.5deg); z-index: 1; }
.sticker-2 { top: 172px; right: 0; transform: rotate(2deg); z-index: 2; }
.sticker-3 { top: 336px; left: 7%; transform: rotate(-1.2deg); z-index: 3; }
.sticker-label { display: flex; align-items: center; gap: 8px; font-size: .74rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--pc); }
.sticker-title {
  font-family: var(--font-display); font-size: 1.22rem; font-weight: 650; line-height: 1.25; letter-spacing: -.01em;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.sticker-meta { display: flex; align-items: center; gap: 6px; font-size: .82rem; font-weight: 700; color: var(--muted); }
.sticker:hover .sticker-meta { color: var(--pc); }
.stats {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 48px 0 0; padding: 0; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm);
}
.stats > div { padding: 20px 24px; }
.stats > div + div { border-left: 1px solid var(--line); }
.stats dt { font-size: .74rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.stats dd { margin: 4px 0 0; font-family: var(--font-display); font-size: clamp(1.3rem, 2.2vw, 1.75rem); white-space: nowrap; font-weight: 650; color: var(--ink); letter-spacing: -.02em; }

/* ───────────── картки ───────────── */
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.card {
  position: relative; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 8px; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: color-mix(in srgb, var(--brand) 25%, var(--line)); }
.cover {
  position: relative; overflow: hidden; display: grid; place-items: center; aspect-ratio: 16 / 10; border-radius: 16px; isolation: isolate;
  background:
    radial-gradient(circle at 18% 18%, rgba(255, 255, 255, .38), transparent 42%),
    radial-gradient(circle at 85% 90%, rgba(0, 0, 0, .14), transparent 45%),
    linear-gradient(135deg, var(--pg1), var(--pg2));
}
.cover::before {
  content: ''; position: absolute; inset: 0; z-index: -1; opacity: .5;
  background-image: radial-gradient(rgba(255, 255, 255, .55) 1.1px, transparent 1.4px); background-size: 18px 18px;
  -webkit-mask-image: linear-gradient(120deg, #000, transparent 70%); mask-image: linear-gradient(120deg, #000, transparent 70%);
}
/* варіанти обкладинок без фото, щоб сусідні картки однієї теми відрізнялися */
.cv-1 { background: radial-gradient(circle at 85% 15%, rgba(255, 255, 255, .4), transparent 40%), linear-gradient(210deg, var(--pg1), var(--pg2)); }
.cv-1 .cover-art { justify-self: start; margin-left: 12%; }
.cv-2 { background: radial-gradient(circle at 50% 120%, rgba(255, 255, 255, .45), transparent 55%), linear-gradient(20deg, var(--pg2), var(--pg1)); }
.cv-2::before { -webkit-mask-image: linear-gradient(300deg, #000, transparent 70%); mask-image: linear-gradient(300deg, #000, transparent 70%); }
.cv-3 { background: radial-gradient(circle at 15% 85%, rgba(255, 255, 255, .35), transparent 45%), radial-gradient(circle at 90% 10%, var(--pg2), transparent 60%), var(--pg1); }
.cv-3 .cover-art { justify-self: end; margin-right: 12%; }
.cover-art {
  display: grid; place-items: center; width: 32%; max-width: 104px; aspect-ratio: 1; border-radius: 50%; color: #fff;
  background: rgba(255, 255, 255, .2); border: 1px solid rgba(255, 255, 255, .45); box-shadow: 0 10px 30px rgba(0, 0, 0, .12);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.cover-ico { width: 46%; height: 46%; }
.cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; z-index: 1; }
.card:hover .cover img { transform: scale(1.045); }
.cover-tall { aspect-ratio: 4 / 3; }
[data-theme="dark"] .cover { filter: saturate(.92) brightness(.92); }
.card-body { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; flex: 1; padding: 14px 10px 8px; }
.card-title { font-size: 1.16rem; line-height: 1.3; font-weight: 650; }
.card-title a { color: var(--ink); text-decoration: none; }
.card-title a::after { content: ''; position: absolute; inset: 0; border-radius: inherit; z-index: 1; }
.card:hover .card-title a { color: var(--brand-ink); }
.card-excerpt { font-size: .92rem; line-height: 1.6; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin-top: auto; padding-top: 4px; font-size: .8rem; font-weight: 600; color: var(--muted); }
.card-meta span { display: inline-flex; align-items: center; gap: 5px; }
.card-featured { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); margin-bottom: 24px; padding: 10px; }
.card-featured .cover { aspect-ratio: auto; min-height: 340px; height: 100%; border-radius: 18px; }
.card-featured .card-body { justify-content: center; padding: 28px 30px; gap: 14px; }
.card-featured .card-title { font-size: clamp(1.5rem, 2.4vw, 2.1rem); line-height: 1.15; letter-spacing: -.02em; }
.card-featured .card-excerpt { font-size: 1rem; -webkit-line-clamp: 4; }
.card-featured .card-meta { margin-top: 6px; }

/* мініатюрні списки */
.mini-list, .pick-list { list-style: none; margin: 0; padding: 0; }
.mini { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 14px; align-items: start; padding: 12px 0; border-top: 1px solid var(--line); }
.mini:first-child { border-top: 0; padding-top: 2px; }
.mini-n { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; line-height: 1; color: var(--brand); min-width: 32px; opacity: .85; }
.mini-thumb {
  position: relative; display: grid; place-items: center; width: 64px; height: 64px; border-radius: 14px; overflow: hidden; color: #fff;
  background: linear-gradient(135deg, var(--pg1), var(--pg2));
}
.mini-thumb .ico { width: 24px; height: 24px; }
.mini-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.mini-body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.mini-title { color: var(--ink); font-weight: 700; font-size: .94rem; line-height: 1.38; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.mini-title:hover { color: var(--brand-ink); }
.mini-meta { display: flex; flex-wrap: wrap; gap: 4px 8px; font-size: .76rem; color: var(--muted); font-weight: 600; }
.mini-meta b { color: var(--pc); font-weight: 700; }

/* ───────────── теми ───────────── */
.topics-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.topic-tile {
  position: relative; display: flex; align-items: center; gap: 14px; padding: 16px; background: var(--surface); border: 1px solid var(--line);
  border-radius: 20px; color: var(--ink); text-decoration: none; transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.topic-tile:hover { color: var(--ink); transform: translateY(-3px); border-color: color-mix(in srgb, var(--pc) 45%, var(--line)); box-shadow: var(--shadow); }
.topic-text { display: flex; flex-direction: column; min-width: 0; gap: 2px; }
.topic-name { font-weight: 750; font-size: .98rem; line-height: 1.3; }
.topic-count { font-size: .78rem; color: var(--muted); font-weight: 600; }
.topic-arrow { position: absolute; top: 12px; right: 12px; width: 16px; height: 16px; color: var(--muted); transition: color .15s, transform .15s; }
.topic-tile:hover .topic-arrow { color: var(--pc); transform: translate(2px, -2px); }

/* ───────────── Editor's picks ───────────── */
.picks { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); gap: 28px; align-items: start; }
.pick-main { position: relative; border-radius: 26px; overflow: hidden; box-shadow: var(--shadow); }
.pick-main .cover { border-radius: 0; }
.pick-body {
  position: absolute; inset: auto 0 0; z-index: 2; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 90px 28px 26px;
  background: linear-gradient(180deg, transparent, rgba(14, 10, 26, .55) 35%, rgba(14, 10, 26, .9)); color: rgba(255, 255, 255, .8); font-size: .85rem; font-weight: 600;
}
.pick-title { font-size: clamp(1.35rem, 2.3vw, 1.9rem); line-height: 1.18; color: #fff; }
.pick-title a { color: #fff; }
.pick-title a::after { content: ''; position: absolute; inset: 0; z-index: 1; }
.pick-main:hover .pick-title a { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.pick-list { background: var(--surface); border: 1px solid var(--line); border-radius: 26px; padding: 14px 22px; }
.pick-list .mini { padding: 14px 0; }
.pick-list .mini:first-child { padding-top: 8px; }

/* ───────────── Spotlight ───────────── */
.spotlights { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.spot { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 18px 18px 8px; position: relative; overflow: hidden; }
.spot::before { content: ''; position: absolute; inset: 0 0 auto; height: 4px; background: linear-gradient(90deg, var(--pg1), var(--pg2)); }
.spot-head { display: flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; padding-bottom: 12px; }
.spot-head > span:not(.tile-ico) { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.spot-head b { font-size: 1rem; line-height: 1.25; }
.spot-head small { font-size: .76rem; color: var(--muted); font-weight: 600; }
.spot-head:hover { color: var(--pc); }
.spot-arrow { width: 18px; height: 18px; color: var(--muted); }
.spot-list { list-style: none; margin: 0; padding: 0; }
.spot-list li { padding: 12px 0; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 4px; }
.spot-list a { color: var(--ink); font-weight: 650; font-size: .92rem; line-height: 1.38; }
.spot-list a:hover { color: var(--pc); }
.spot-list time { font-size: .74rem; color: var(--muted); font-weight: 600; }

/* ───────────── Why ───────────── */
.why {
  display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.4fr); gap: 40px; padding: 44px; border-radius: 32px;
  background: radial-gradient(500px 300px at 0% 0%, color-mix(in srgb, var(--lime) 30%, transparent), transparent 70%), var(--brand-soft);
  border: 1px solid color-mix(in srgb, var(--brand) 15%, transparent);
}
[data-theme="dark"] .why { background: radial-gradient(500px 300px at 0% 0%, rgba(205, 255, 80, .07), transparent 70%), var(--brand-soft); }
.why-head p { margin: 14px 0 22px; color: var(--ink-2); }
.why-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.why-item { background: var(--surface); border-radius: 20px; padding: 22px; box-shadow: var(--shadow-sm); }
.why-item h3 { font-size: 1.12rem; margin: 14px 0 6px; }
.why-item p { font-size: .9rem; color: var(--muted); }

/* ───────────── пагінація ───────────── */
.pagination { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; margin-top: 44px; }
.page-num, .page-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-width: 46px; height: 46px; padding: 0 14px;
  border-radius: 14px; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink); font-weight: 700; font-size: .92rem; text-decoration: none;
}
a.page-num:hover, .page-btn:hover { border-color: var(--brand); color: var(--brand-ink); }
.page-num.current { background: var(--brand); border-color: var(--brand); color: #fff; box-shadow: 0 8px 18px color-mix(in srgb, var(--brand) 30%, transparent); }
.page-num.dots { border: 0; background: none; min-width: 24px; padding: 0; color: var(--muted); }
.page-btn { padding: 0 18px; border-radius: 999px; }
.page-of { text-align: center; margin-top: 12px; font-size: .82rem; color: var(--muted); font-weight: 600; }

/* ───────────── хлібні крихти ───────────── */
.crumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 0; list-style: none; margin: 0 0 18px; padding: 0; font-size: .84rem; font-weight: 600; }
.crumbs li { display: inline-flex; align-items: center; color: var(--muted); min-width: 0; }
.crumbs li + li::before { content: ''; width: 6px; height: 6px; margin: 0 10px; border-right: 1.6px solid currentColor; border-top: 1.6px solid currentColor; transform: rotate(45deg); opacity: .6; }
.crumbs a { color: var(--ink-2); }
.crumbs a:hover { color: var(--brand-ink); }
.crumbs [aria-current] { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 46ch; }

/* ───────────── категорія і сторінки архіву ───────────── */
.cat-hero, .page-head, .page-hero {
  position: relative; overflow: hidden; margin-top: 28px; padding: 40px 44px; border-radius: 30px; border: 1px solid var(--line);
  background: radial-gradient(420px 260px at 100% 0%, color-mix(in srgb, var(--pg2) 30%, transparent), transparent 70%),
              color-mix(in srgb, var(--pc) 7%, var(--surface));
}
.page-head, .page-hero { --pc: var(--brand); --pg2: #b49bff; }
.cat-hero-row { display: flex; align-items: center; gap: 18px; }
.cat-hero-row .kicker { margin-bottom: 4px; color: var(--pc); }
.cat-title, .page-title { font-size: clamp(2.1rem, 4.4vw, 3.4rem); letter-spacing: -.03em; line-height: 1.05; }
.cat-intro { max-width: 640px; margin-top: 16px; font-size: 1.06rem; color: var(--ink-2); }
.cat-meta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.cat-meta span { display: inline-flex; align-items: center; gap: 7px; padding: 7px 13px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: .84rem; font-weight: 700; color: var(--ink); }
.cat-meta .ico { color: var(--pc); }
.cat-hero-art, .page-hero-art { position: absolute; right: -24px; bottom: -40px; width: 240px; height: 240px; color: var(--pc); opacity: .1; pointer-events: none; }
.cat-hero-art .ico, .page-hero-art .ico { width: 100%; height: 100%; }
.related-topics { display: flex; align-items: center; gap: 14px; margin-top: 18px; flex-wrap: wrap; }
.rt-label { display: inline-flex; align-items: center; gap: 6px; font-size: .82rem; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.page-head p { margin-top: 12px; color: var(--muted); font-weight: 600; }
.empty { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 60px 20px; color: var(--muted); text-align: center; }
.empty .ico { width: 40px; height: 40px; color: var(--brand); }

/* ───────────── стаття ───────────── */
.progress { position: fixed; inset: 0 0 auto; height: 3px; z-index: 70; transform: scaleX(0); transform-origin: 0 50%; background: linear-gradient(90deg, var(--brand), var(--pink), var(--sun)); }
.post-hero {
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 40px; align-items: center; margin-top: 28px; padding: 40px 44px;
  border-radius: 32px; border: 1px solid var(--line); overflow: hidden;
  background: radial-gradient(460px 300px at 100% 0%, color-mix(in srgb, var(--pg2) 28%, transparent), transparent 70%),
              color-mix(in srgb, var(--pc) 6%, var(--surface));
}
.post-hero.has-img { grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); }
.post-hero-text { min-width: 0; }
.post-hero .chips { margin-bottom: 16px; }
.post-title { font-size: clamp(2rem, 4.2vw, 3.2rem); line-height: 1.1; letter-spacing: -.028em; font-weight: 700; }
.byline { display: flex; align-items: center; gap: 12px; margin-top: 24px; }
.avatar {
  display: grid; place-items: center; flex: none; width: 46px; height: 46px; border-radius: 50%; color: #fff; font-family: var(--font-display);
  font-weight: 700; font-size: 1.2rem; background: linear-gradient(135deg, var(--brand), var(--pink)); box-shadow: 0 0 0 3px var(--surface);
}
.avatar-lg { width: 64px; height: 64px; font-size: 1.6rem; }
.byline-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.byline-name { font-weight: 750; color: var(--ink); font-size: .95rem; }
.byline-name a { color: var(--ink); }
.byline-name a:hover { color: var(--brand-ink); }
.byline-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 14px; font-size: .82rem; color: var(--muted); font-weight: 600; }
.byline-meta span { display: inline-flex; align-items: center; gap: 5px; }
.share { display: flex; gap: 8px; }
.share-top { margin-top: 22px; }
.share-btn {
  position: relative; display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-2);
  background: var(--surface); color: var(--ink-2); transition: all .15s ease;
}
.share-btn .ico { width: 17px; height: 17px; }
.share-btn:hover { background: var(--brand); border-color: var(--brand); color: #fff; }
.copied { position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%); padding: 4px 9px; border-radius: 8px; background: var(--ink); color: var(--bg); font-size: .72rem; font-weight: 700; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .15s; }
.share-btn.done .copied { opacity: 1; }
.post-figure { margin: 0; aspect-ratio: 1; width: 100%; max-width: 440px; justify-self: end; border-radius: 26px; box-shadow: var(--shadow-lg); }
.post-figure img { transition: none; }
.post-hero-art { position: relative; display: grid; place-items: center; width: 260px; height: 260px; justify-self: end; }
.art-ring { position: absolute; inset: 0; border-radius: 50%; border: 2px dashed color-mix(in srgb, var(--pc) 35%, transparent); animation: spin 40s linear infinite; }
.art-disc { display: grid; place-items: center; width: 190px; height: 190px; border-radius: 50%; color: #fff; background: radial-gradient(circle at 30% 25%, rgba(255, 255, 255, .4), transparent 45%), linear-gradient(135deg, var(--pg1), var(--pg2)); box-shadow: 0 24px 50px color-mix(in srgb, var(--pg1) 35%, transparent); }
.art-disc .ico { width: 80px; height: 80px; }
.art-spark { position: absolute; color: var(--pc); }
.art-spark.s1 { width: 34px; height: 34px; top: 8px; right: 18px; }
.art-spark.s2 { width: 22px; height: 22px; bottom: 26px; left: 6px; color: var(--sun); }
@keyframes spin { to { transform: rotate(360deg); } }
.post-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 60px; margin-top: 44px; 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) + 20px); display: flex; flex-direction: column; gap: 18px; }
.side-box { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 20px; }
.side-title { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; font-weight: 800; font-size: .8rem; letter-spacing: .07em; text-transform: uppercase; color: var(--ink); }
.side-title .ico { color: var(--brand); }
.toc ol { list-style: none; margin: 0; padding: 0; counter-reset: toc; }
.toc li a { display: block; padding: 7px 0 7px 14px; border-left: 2px solid var(--line); color: var(--ink-2); font-size: .88rem; font-weight: 600; line-height: 1.4; }
.toc li.lvl-3 a { padding-left: 26px; font-weight: 500; font-size: .84rem; }
.toc li a:hover { color: var(--brand-ink); border-left-color: color-mix(in srgb, var(--brand) 40%, var(--line)); }
.toc li a.active { color: var(--brand-ink); border-left-color: var(--brand); background: linear-gradient(90deg, color-mix(in srgb, var(--brand) 8%, transparent), transparent); }
.toc-side ol { max-height: 48vh; overflow: auto; overscroll-behavior: contain; }
.toc-inline { display: none; margin-bottom: 28px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; }
.toc-inline summary { display: flex; align-items: center; gap: 10px; padding: 14px 18px; font-weight: 750; color: var(--ink); cursor: pointer; list-style: none; }
.toc-inline summary::-webkit-details-marker { display: none; }
.toc-inline summary > .ico:first-child { color: var(--brand); }
.toc-count { margin-left: auto; font-size: .78rem; color: var(--muted); font-weight: 600; }
.toc-chev { transition: transform .2s ease; }
.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(--ink-2); overflow-wrap: break-word; }
.prose > * + * { margin-top: 1.15em; }
.prose h2, .prose h3, .prose h4 { scroll-margin-top: calc(var(--header-h) + 20px); }
.prose h2 { font-size: clamp(1.5rem, 2.5vw, 1.9rem); margin-top: 2em; letter-spacing: -.02em; line-height: 1.22; }
.prose h3 { font-size: 1.32rem; margin-top: 1.7em; line-height: 1.3; }
.prose h4 { font-size: 1.1rem; margin-top: 1.5em; }
.prose h2 + *, .prose h3 + *, .prose h4 + * { margin-top: .65em; }
.prose > h2:first-child, .prose > h3:first-child { margin-top: 0; }
/* заголовок-підзаголовок на початку статті */
.post .prose > h2:first-child, .post .prose > h3:first-child {
  font-style: italic; font-weight: 500; font-size: clamp(1.25rem, 2vw, 1.5rem); color: var(--ink); line-height: 1.4; letter-spacing: -.01em;
  padding: 2px 0 2px 20px; border-left: 4px solid var(--brand); border-image: linear-gradient(var(--brand), var(--pink)) 1;
}
.post .prose > h2:first-child + *, .post .prose > h3:first-child + * { margin-top: 1.1em; }
.post .prose > h2:first-child + p, .post .prose > h3:first-child + p { font-size: 1.12em; color: var(--ink); }
.prose a { color: var(--brand-ink); text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 3px; text-decoration-color: color-mix(in srgb, var(--brand) 40%, transparent); }
.prose a:hover { text-decoration-color: var(--brand); }
.prose strong, .prose b { color: var(--ink); font-weight: 750; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li + li { margin-top: .45em; }
.prose li::marker { color: var(--brand); font-weight: 700; }
.prose ul > li { padding-left: .2em; }
.prose blockquote {
  margin: 1.6em 0; padding: 20px 24px; border-radius: 0 18px 18px 0; border-left: 4px solid var(--brand); background: var(--brand-soft);
  font-family: var(--font-display); font-style: italic; font-size: 1.12em; color: var(--ink);
}
.prose blockquote p + p { margin-top: .8em; }
.prose img { border-radius: 18px; margin: 1.5em auto; }
.prose figure { margin: 1.6em 0; }
.prose figcaption { margin-top: 8px; font-size: .85rem; color: var(--muted); text-align: center; }
.prose hr { border: 0; height: 1px; background: var(--line); margin: 2.4em 0; }
.prose code { font-size: .88em; padding: 2px 6px; border-radius: 6px; background: var(--surface-2); color: var(--ink); }
.prose pre { overflow: auto; padding: 18px; border-radius: 16px; background: #17141f; color: #eee; font-size: .88rem; }
.prose pre code { background: none; color: inherit; padding: 0; }
.table-wrap { overflow-x: auto; margin: 1.6em 0; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); -webkit-overflow-scrolling: touch; }
.table-wrap table { width: 100%; border-collapse: collapse; font-size: .93rem; line-height: 1.55; min-width: 480px; }
.table-wrap th { text-align: left; padding: 13px 16px; background: var(--brand-soft); color: var(--ink); font-weight: 750; font-size: .84rem; letter-spacing: .02em; }
.table-wrap td { padding: 12px 16px; border-top: 1px solid var(--line); vertical-align: top; }
.table-wrap tbody tr:nth-child(even) td { background: color-mix(in srgb, var(--surface-2) 70%, transparent); }
.table-wrap td:first-child { font-weight: 650; color: var(--ink); }
.quick-answer {
  position: relative; padding: 20px 24px; border-radius: 20px; border: 1px solid color-mix(in srgb, var(--brand) 22%, transparent);
  background: linear-gradient(135deg, var(--brand-soft), color-mix(in srgb, var(--pink) 7%, var(--surface)));
}
.qa-label { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 6px; font-size: .74rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--brand-ink); font-family: var(--font-body); }
.quick-answer p { color: var(--ink); font-size: 1.04em; }
.read-also {
  display: flex; align-items: center; gap: 14px; margin: 1.8em 0; padding: 14px 18px; border-radius: 18px; background: var(--surface);
  border: 1px solid var(--line); box-shadow: var(--shadow-sm); line-height: 1.4;
}
.ra-ico { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 13px; color: #fff; background: linear-gradient(135deg, var(--pg1), var(--pg2)); }
.ra-ico .ico { width: 22px; height: 22px; }
.ra-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ra-label { font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-family: var(--font-body); }
.prose .read-also a { color: var(--ink); font-weight: 750; text-decoration: none; font-size: .98rem; }
.prose .read-also a:hover { color: var(--brand-ink); }
.note-box { display: flex; gap: 14px; margin-top: 40px; padding: 18px 20px; border-radius: 18px; background: var(--surface-2); border: 1px solid var(--line); font-size: .9rem; line-height: 1.6; }
.note-ico { color: var(--brand); flex: none; padding-top: 2px; }
.note-box b { color: var(--ink); }
.post-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 28px; padding: 20px 0; border-block: 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: .08em; text-transform: uppercase; color: var(--muted); margin-right: 4px; }
.author-box { display: flex; gap: 18px; align-items: flex-start; margin-top: 28px; padding: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: 24px; }
.author-box .kicker { margin-bottom: 2px; }
.author-name { font-family: var(--font-display); font-size: 1.3rem; font-weight: 650; color: var(--ink); margin-bottom: 6px; }
.author-box p:last-child { font-size: .92rem; color: var(--ink-2); }
.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 28px; }
.post-nav-link { display: flex; flex-direction: column; gap: 8px; padding: 18px 20px; border-radius: 20px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); transition: border-color .15s, transform .15s; }
.post-nav-link:hover { color: var(--ink); 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: .74rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--brand-ink); }
.post-nav-link b { font-family: var(--font-display); font-weight: 650; font-size: 1.04rem; line-height: 1.3; }
.more-in { margin-top: 36px; padding: 22px 24px 10px; border-radius: 24px; background: var(--surface); border: 1px solid var(--line); }
.more-in-head { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; margin-bottom: 8px; }
.more-in-head h2 { font-size: 1.3rem; }

/* ───────────── інформаційні сторінки ───────────── */
.page-hero .lead { max-width: 720px; margin-top: 14px; }
.page-hero .page-title { max-width: 820px; }
.page-hero .kicker, .page-head .kicker { color: var(--brand-ink); }
.page-updated { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; padding: 7px 13px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: .84rem; font-weight: 650; color: var(--ink-2); }
.page-hero-art { opacity: .08; color: var(--brand); width: 280px; height: 280px; bottom: -60px; }
.page-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 56px; margin-top: 40px; align-items: start; }
.legal { max-width: 780px; font-size: 1.02rem; }
.legal h2 { font-size: 1.45rem; }
.page-nav a { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 9px 10px; border-radius: 10px; color: var(--ink-2); font-weight: 650; font-size: .9rem; }
.page-nav a .ico { opacity: 0; transition: opacity .15s; }
.page-nav a:hover { background: var(--surface-2); color: var(--ink); }
.page-nav a:hover .ico, .page-nav a[aria-current] .ico { opacity: 1; }
.page-nav a[aria-current] { background: var(--brand-soft); color: var(--brand-ink); }
.side-contact p:last-child { font-size: .9rem; }
.about-intro { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, .8fr); gap: 48px; margin-top: 44px; align-items: start; }
.about-card {
  position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 4px; padding: 30px; border-radius: 28px; color: #fff;
  background: radial-gradient(circle at 15% 10%, rgba(255, 255, 255, .25), transparent 40%), linear-gradient(150deg, #6a4dff, #a64dff 55%, #ff4f7b);
  box-shadow: var(--shadow-lg); position: sticky; top: calc(var(--header-h) + 20px);
}
.about-card .stat { position: relative; z-index: 1; padding: 16px 0; border-bottom: 1px solid rgba(255, 255, 255, .2); }
.about-card .stat:last-of-type { border-bottom: 0; }
.about-card b { display: block; font-family: var(--font-display); font-size: 2.4rem; line-height: 1; letter-spacing: -.03em; }
.about-card span { font-size: .92rem; opacity: .9; font-weight: 600; }
.about-card-art { position: absolute; right: -40px; bottom: -40px; width: 200px; height: 200px; opacity: .15; }
.about-card-art .ico { width: 100%; height: 100%; }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; counter-reset: step; }
.step { position: relative; padding: 26px; border-radius: 24px; background: var(--surface); border: 1px solid var(--line); counter-increment: step; }
.step::before { content: '0' counter(step); display: block; margin-bottom: 12px; font-family: var(--font-display); font-size: 2.4rem; font-weight: 700; line-height: 1; background: linear-gradient(135deg, var(--brand), var(--pink)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.step h3 { font-size: 1.2rem; margin-bottom: 8px; }
.step p, .value p { font-size: .92rem; color: var(--muted); }
.values { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.value { padding: 24px; border-radius: 24px; background: var(--surface); border: 1px solid var(--line); }
.value h3 { font-size: 1.1rem; margin: 14px 0 6px; }
.cta-band {
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding: 40px 44px; border-radius: 30px; color: #fff;
  background: radial-gradient(circle at 90% 10%, rgba(255, 255, 255, .25), transparent 35%), linear-gradient(120deg, #5b45f5, #a64dff 60%, #ff4f7b);
}
.cta-band h2 { color: #fff; font-size: clamp(1.5rem, 2.6vw, 2.1rem); }
.cta-band p { margin-top: 8px; opacity: .9; }
.contact-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 40px; }
.contact-card { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 26px; border-radius: 24px; background: var(--surface); border: 1px solid var(--line); }
.contact-card h3 { font-size: 1.15rem; 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: 750; overflow-wrap: anywhere; }
.contact-layout { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 48px; align-items: start; }
.form { display: flex; flex-direction: column; gap: 16px; padding: 32px; border-radius: 28px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.form-title, .faq-title { font-size: 1.6rem; }
.form-note { margin-top: 6px; font-size: .9rem; color: var(--muted); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: .84rem; font-weight: 750; color: var(--ink); }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; border-radius: 13px; border: 1px solid var(--line-2); background: var(--bg); color: var(--ink);
  font: inherit; font-size: .95rem; transition: border-color .15s, box-shadow .15s;
}
.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 color-mix(in srgb, var(--brand) 15%, transparent); }
.form .btn { align-self: flex-start; }
.form-sent { display: flex; gap: 10px; align-items: flex-start; padding: 14px 16px; border-radius: 14px; background: color-mix(in srgb, var(--mint) 12%, var(--surface)); font-size: .9rem; }
.form-sent .ico { color: var(--mint); margin-top: 3px; }
.faq-title { margin-bottom: 14px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { position: relative; padding: 16px 36px 16px 0; font-weight: 750; color: var(--ink); cursor: pointer; list-style: none; line-height: 1.4; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 4px; top: 12px; font-size: 1.5rem; font-weight: 400; color: var(--brand); transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 16px; font-size: .94rem; color: var(--ink-2); }

/* ───────────── 404 ───────────── */
.notfound { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 80px 24px 20px; }
.nf-art { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 700; font-size: clamp(6rem, 18vw, 10rem); line-height: 1; letter-spacing: -.04em; background: linear-gradient(135deg, var(--brand), var(--pink)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nf-mark { display: grid; place-items: center; width: .8em; height: .8em; border-radius: 30%; color: #fff; background: linear-gradient(135deg, #6a4dff, #ff4f7b); box-shadow: var(--shadow-lg); transform: rotate(-8deg); }
.nf-mark .ico { width: 50%; height: 50%; }
.notfound h1 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); margin-top: 24px; }
.notfound .lead { max-width: 560px; margin: 14px auto 28px; }
.notfound .chips { margin-top: 36px; max-width: 760px; }

/* ───────────── футер ───────────── */
.site-footer { margin-top: 96px; padding: 0 0 32px; background: #13111b; color: #b9b3c8; }
.site-footer a { color: #e6e1f2; }
.site-footer a:hover { color: #fff; }
.footer-cta {
  position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 28px;
  padding: 44px 48px; border-radius: 30px; transform: translateY(-56px); margin-bottom: -16px; color: #fff;
  background: radial-gradient(circle at 92% 0%, rgba(255, 255, 255, .25), transparent 35%), linear-gradient(120deg, #5b45f5, #9b4dff 55%, #ff4f7b);
  box-shadow: 0 24px 60px rgba(91, 69, 245, .3);
}
.footer-cta h2 { color: #fff; font-size: clamp(1.6rem, 3vw, 2.3rem); }
.footer-cta p { margin-top: 10px; max-width: 560px; opacity: .92; }
.footer-cta-actions { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 12px; }
.footer-cta-art { position: absolute; right: 30%; bottom: -70px; width: 220px; height: 220px; opacity: .12; color: #fff; transform: rotate(14deg); }
.footer-cta-art .ico { width: 100%; height: 100%; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); gap: 40px; padding: 12px 0 40px; }
.footer-brand p { margin: 16px 0; font-size: .92rem; line-height: 1.65; max-width: 360px; }
.footer-mail { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: .92rem; }
.footer-col h3 { font-family: var(--font-body); font-size: .76rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: #8d86a3; margin-bottom: 14px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-col a { font-size: .93rem; font-weight: 600; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .09); font-size: .82rem; color: #8d86a3; }

/* ───────────── оверлеї ───────────── */
.drawer { position: fixed; inset: 0; z-index: 100; }
.drawer-backdrop { position: absolute; inset: 0; background: var(--overlay); opacity: 0; transition: opacity .3s ease; }
.drawer-panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(400px, 90vw); overflow-y: auto; padding: 18px 20px 30px; background: var(--bg);
  transform: translateX(100%); transition: transform .32s cubic-bezier(.2, .8, .2, 1); box-shadow: var(--shadow-lg);
}
.drawer.open .drawer-backdrop { opacity: 1; }
.drawer.open .drawer-panel { transform: none; }
.drawer-head { display: flex; align-items: center; gap: 8px; }
.drawer-head .logo { margin-right: auto; }
.drawer-search { display: flex; align-items: center; gap: 10px; width: 100%; margin-top: 18px; padding: 14px 16px; border-radius: 16px; 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: 24px 0 10px; font-size: .74rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.drawer-topics { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.drawer-topics a { display: flex; align-items: center; gap: 9px; padding: 9px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); color: var(--ink); font-size: .84rem; font-weight: 650; line-height: 1.25; }
.drawer-topics .tile-ico { width: 30px; height: 30px; border-radius: 9px; }
.drawer-topics .tile-ico .ico { width: 16px; height: 16px; }
.drawer-links { display: flex; flex-direction: column; }
.drawer-links a { display: flex; align-items: center; justify-content: space-between; padding: 13px 4px; border-bottom: 1px solid var(--line); color: var(--ink); 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: var(--overlay); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.search-box { position: relative; width: 100%; max-width: 680px; max-height: 80vh; display: flex; flex-direction: column; background: var(--surface); border-radius: 24px; box-shadow: var(--shadow-lg); overflow: hidden; border: 1px solid var(--line); }
.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 { flex: 1; min-width: 0; height: 58px; border: 0; outline: 0; background: none; color: var(--ink); font: 600 1.1rem var(--font-body); }
.search-form input::-webkit-search-cancel-button { display: none; }
.esc { border: 1px solid var(--line-2); background: var(--surface-2); color: var(--muted); border-radius: 8px; padding: 4px 9px; font-size: .74rem; font-weight: 700; }
.search-body { overflow-y: auto; padding: 10px 14px 16px; overscroll-behavior: contain; }
.search-label { margin: 12px 8px 8px; font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.search-body .chips { padding: 0 8px; }
.search-list { list-style: none; margin: 0; padding: 0; }
.sr-item { display: flex; align-items: center; gap: 12px; padding: 10px 10px; border-radius: 13px; color: var(--ink); font-weight: 600; font-size: .94rem; line-height: 1.35; }
.sr-item:hover, .sr-item.active { background: var(--surface-2); color: var(--ink); }
.sr-item.active { box-shadow: inset 3px 0 0 var(--brand); }
.sr-tag { display: grid; place-items: center; flex: none; width: 32px; height: 32px; border-radius: 10px; background: var(--brand-soft); color: var(--brand-ink); }
.sr-tag .ico { width: 16px; height: 16px; }
.sr-count { margin-left: auto; font-size: .76rem; color: var(--muted); white-space: nowrap; }
.sr-item mark { background: var(--hl-1); color: inherit; border-radius: 3px; padding: 0 1px; }
.search-empty { padding: 26px 10px; text-align: center; color: var(--muted); }
.search-foot { display: flex; gap: 18px; padding: 10px 20px; border-top: 1px solid var(--line); font-size: .76rem; color: var(--muted); background: var(--surface-2); }
.search-foot kbd { margin-right: 3px; }
.cookie {
  position: fixed; left: 16px; bottom: 16px; z-index: 90; display: flex; align-items: center; gap: 14px; max-width: 580px; padding: 16px 18px;
  border-radius: 20px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-lg); font-size: .88rem; line-height: 1.5;
}
.cookie[hidden] { display: none; }
.cookie-ico { display: grid; place-items: center; flex: none; width: 42px; height: 42px; border-radius: 13px; background: color-mix(in srgb, var(--sun) 25%, var(--surface)); color: #b46f06; }
.cookie-actions { display: flex; gap: 8px; flex: none; }
.to-top {
  position: fixed; right: 18px; bottom: 18px; z-index: 80; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%;
  border: 0; background: var(--brand); color: #fff; box-shadow: 0 10px 24px color-mix(in srgb, var(--brand) 35%, transparent);
  opacity: 0; transform: translateY(12px); pointer-events: none; transition: opacity .2s ease, transform .2s ease;
}
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }

/* ───────────── адаптив ───────────── */
@media (max-width: 1240px) {
  .main-nav > a.nav-link:nth-of-type(n+4) { display: none; }
}
@media (max-width: 1180px) {
  .main-nav > a.nav-link:nth-of-type(n+3) { display: none; }
}
@media (max-width: 1100px) {
  .main-nav { display: none; }
  .menu-btn { display: inline-grid; }
  .header-actions { margin-left: auto; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .topics-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .spotlights { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .post-layout { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .post-main { max-width: 760px; margin: 0 auto; width: 100%; }
  .post-side { display: none; }
  .toc-inline { display: block; }
  .page-layout { grid-template-columns: minmax(0, 1fr); }
  .page-side { display: none; }
  .values { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .why { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 900px) {
  :root { --header-h: 62px; }
  .wrap { padding: 0 18px; }
  .hero { padding-top: 36px; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .hero-board { min-height: 0; display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 16px 2px 14px; margin: 0 -18px; padding-inline: 18px; scrollbar-width: none; }
  .hero-board::-webkit-scrollbar { display: none; }
  .blob { display: none; }
  .sticker { position: relative; inset: auto; transform: none; flex: 0 0 min(300px, 80%); scroll-snap-align: start; box-shadow: var(--shadow); }
  .sticker:hover { transform: translateY(-2px); }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 28px; }
  .stats > div:nth-child(3) { border-left: 0; }
  .stats > div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .card-featured { grid-template-columns: minmax(0, 1fr); }
  .card-featured .cover { min-height: 0; aspect-ratio: 16 / 9; }
  .card-featured .card-body { padding: 18px 12px 10px; }
  .picks { grid-template-columns: minmax(0, 1fr); }
  .post-hero, .post-hero.has-img { grid-template-columns: minmax(0, 1fr); padding: 28px 24px; gap: 24px; }
  .post-hero-art { display: none; }
  .post-figure { justify-self: stretch; max-width: none; aspect-ratio: 16 / 10; }
  .cat-hero, .page-head, .page-hero { padding: 28px 24px; border-radius: 26px; }
  .about-intro, .contact-layout { grid-template-columns: minmax(0, 1fr); }
  .about-card { position: relative; top: 0; }
  .steps, .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .footer-cta { grid-template-columns: minmax(0, 1fr); padding: 32px 28px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .section { padding-top: 52px; }
  .section-tint { margin-top: 52px; padding: 52px 0; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .search-pill { min-width: 0; width: 42px; padding: 0; justify-content: center; }
  .search-pill span, .search-pill kbd { display: none; }
  .logo-text { font-size: 1.35rem; }
  .hero-search { height: 56px; font-size: .92rem; }
  .hero-search kbd { display: none; }
  .hero-board { margin: 0 -16px; padding-inline: 16px; }
  .sec-head { align-items: flex-start; flex-direction: column; gap: 6px; margin-bottom: 20px; }
  .grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .grid .card { flex-direction: row; align-items: stretch; gap: 0; padding: 8px; border-radius: 18px; }
  .grid .card .cover { flex: 0 0 104px; aspect-ratio: 1; border-radius: 12px; align-self: flex-start; }
  .grid .card .cover-art { width: 46%; }
  .grid .card .card-body { padding: 4px 6px 4px 14px; gap: 7px; }
  .grid .card .card-title { font-size: 1.02rem; }
  .grid .card .card-excerpt { display: none; }
  .grid .card .chip { display: none; }
  .topics-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .topic-tile { flex-direction: column; align-items: flex-start; gap: 10px; padding: 14px; }
  .spotlights { grid-template-columns: minmax(0, 1fr); }
  .why { padding: 26px 20px; border-radius: 26px; }
  .why-grid, .values, .form-row { grid-template-columns: minmax(0, 1fr); }
  .pick-body { padding: 70px 20px 20px; }
  .pick-list { padding: 8px 16px; }
  .post-nav { grid-template-columns: minmax(0, 1fr); }
  .post-nav-link.next { text-align: left; align-items: flex-start; }
  .prose { font-size: 1.04rem; }
  .author-box { flex-direction: column; }
  .cta-band { padding: 30px 24px; }
  .form { padding: 22px; }
  .footer-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .footer-cta { transform: translateY(-40px); }
  .cookie { flex-wrap: wrap; right: 16px; }
  .cookie-actions { width: 100%; justify-content: flex-end; }
  .search-modal { padding-top: 12px; }
  .search-foot { display: none; }
  .page-num { min-width: 42px; height: 42px; }
  .page-btn span { display: none; }
  .page-btn { padding: 0 13px; }
  .crumbs [aria-current] { max-width: 24ch; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
@media print {
  .site-header, .site-footer, .post-side, .share, .cookie, .to-top, .progress, .post-nav, .more-in, .drawer, .search-modal { display: none !important; }
  body { background: #fff; color: #000; }
}
