/* TanP — clean water theme. Світла й темна тема, адаптив, без фреймворків. */

/* ───────────────────────── токени ───────────────────────── */
:root {
  --bg: #f4f9fb;
  --bg-2: #e9f4f8;
  --surface: #ffffff;
  --surface-2: #f1f7fa;
  --ink: #0b2233;
  --ink-2: #3a5468;
  --ink-3: #6a8396;
  --line: #d9e7ee;
  --line-2: #e7f0f4;
  --brand: #0891b2;
  --brand-2: #0e7490;
  --brand-3: #22d3ee;
  --brand-ink: #075e78;
  --brand-soft: #e1f5fa;
  --mint: #10b981;
  --mint-soft: #e3f8f0;
  --grad: linear-gradient(135deg, #22d3ee 0%, #0891b2 48%, #1d4ed8 100%);
  --grad-text: linear-gradient(90deg, #06b6d4 0%, #0284c7 55%, #10b981 100%);
  --deep-1: #0a4a63;
  --deep-2: #083a52;
  --deep-3: #062a3d;
  --deep-grad: linear-gradient(180deg, var(--deep-1) 0%, var(--deep-2) 55%, var(--deep-3) 100%);
  --orb-sky-1: #f0fbfe;
  --orb-sky-2: #c9f1fb;
  --wave-1: #0891b2;
  --wave-2: #22d3ee;
  --shadow-sm: 0 1px 2px rgba(8, 47, 73, .06), 0 2px 8px rgba(8, 47, 73, .05);
  --shadow: 0 10px 30px -12px rgba(8, 64, 96, .25), 0 4px 12px -6px rgba(8, 64, 96, .12);
  --shadow-lg: 0 30px 70px -20px rgba(6, 50, 80, .35);
  --glow: 0 14px 32px -12px rgba(8, 145, 178, .55);
  --radius: 20px;
  --radius-sm: 12px;
  --radius-lg: 28px;
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --font-head: 'Sora', 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --header-h: 70px;
  color-scheme: light;
}

[data-theme="dark"] {
  --bg: #061521;
  --bg-2: #081c2b;
  --surface: #0c2233;
  --surface-2: #10293c;
  --ink: #e5f3f8;
  --ink-2: #a8c1cf;
  --ink-3: #7893a5;
  --line: #193a4f;
  --line-2: #142f42;
  --brand: #22d3ee;
  --brand-2: #67e8f9;
  --brand-3: #22d3ee;
  --brand-ink: #a5f3fc;
  --brand-soft: rgba(34, 211, 238, .11);
  --mint: #34d399;
  --mint-soft: rgba(52, 211, 153, .1);
  --deep-1: #0a2f44;
  --deep-2: #072536;
  --deep-3: #041924;
  --orb-sky-1: #0e3044;
  --orb-sky-2: #0b3f57;
  --wave-1: #0e7490;
  --wave-2: #22d3ee;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .3);
  --shadow: 0 12px 30px -12px rgba(0, 0, 0, .55);
  --shadow-lg: 0 30px 70px -20px rgba(0, 0, 0, .7);
  --glow: 0 14px 34px -12px rgba(34, 211, 238, .45);
  color-scheme: dark;
}

/* ───────────────────────── база ───────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0; background: var(--bg); color: var(--ink); font: 400 1rem/1.65 var(--font);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden;
}
html.lock, html.lock body { overflow: hidden; }
[hidden] { display: none !important; }
img, svg { max-width: 100%; }
img { height: auto; }
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-2); }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--ink); line-height: 1.2; letter-spacing: -.02em; margin: 0; }
p { margin: 0; }
button { font: inherit; color: inherit; }
::selection { background: rgba(34, 211, 238, .3); }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 6px; }
.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 20px; }
.ico { width: 1.15em; height: 1.15em; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vertical-align: -.2em; }
.ico-sm { width: 1em; height: 1em; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 10px; }
.skip-link:focus { top: 12px; color: var(--bg); }
.hl {
  background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}

/* ───────────────────────── кнопки, чипи, плитки ───────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 20px;
  border-radius: 999px; border: 1px solid transparent; font-weight: 600; font-size: .95rem; line-height: 1.2;
  cursor: pointer; transition: transform .2s, box-shadow .2s, background-color .2s, color .2s, border-color .2s; white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--grad); color: #fff; box-shadow: var(--glow); }
.btn-primary:hover { color: #fff; box-shadow: 0 18px 36px -12px rgba(8, 145, 178, .7); }
.btn-ghost { background: var(--surface); border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); }
.btn-light { background: #fff; color: var(--deep-2); }
.btn-light:hover { color: var(--deep-3); box-shadow: 0 12px 30px -10px rgba(0, 0, 0, .35); }
.btn-outline-light { border-color: rgba(255, 255, 255, .35); color: #fff; }
.btn-outline-light:hover { color: #fff; background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .6); }
.btn-lg { padding: 14px 26px; font-size: 1rem; }
.btn-sm { padding: 8px 14px; font-size: .85rem; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips.center { justify-content: center; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 13px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line); color: var(--ink-2); font-size: .84rem; font-weight: 600;
  line-height: 1.3; transition: border-color .2s, color .2s, background-color .2s;
}
.chip:hover { border-color: var(--brand); color: var(--brand); }
.chip small { font-size: .74rem; color: var(--ink-3); font-weight: 600; background: var(--surface-2); padding: 1px 7px; border-radius: 999px; }
.chip-sm { position: relative; z-index: 2; align-self: flex-start; padding: 4px 11px; font-size: .76rem; background: var(--brand-soft); border-color: transparent; color: var(--brand-ink); }
.chip-sm:hover { background: var(--brand); color: #fff; border-color: transparent; }
.chip-glass { background: rgba(255, 255, 255, .16); border-color: rgba(255, 255, 255, .3); color: #fff; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.chip-glass:hover { background: rgba(255, 255, 255, .28); color: #fff; border-color: rgba(255, 255, 255, .55); }

.pal-0 { --c1: #22d3ee; --c2: #0284c7; }
.pal-1 { --c1: #2dd4bf; --c2: #0f766e; }
.pal-2 { --c1: #60a5fa; --c2: #4338ca; }
.pal-3 { --c1: #34d399; --c2: #0e7490; }
.pal-4 { --c1: #38bdf8; --c2: #1e3a8a; }
.pal-5 { --c1: #67e8f9; --c2: #0891b2; }
.pal-6 { --c1: #818cf8; --c2: #0369a1; }
.pal-7 { --c1: #5eead4; --c2: #155e75; }
.tile-ico {
  display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; flex-shrink: 0;
  background: color-mix(in srgb, var(--c1, #22d3ee) 18%, transparent); color: var(--c2, #0891b2);
}
.tile-ico .ico { width: 22px; height: 22px; }
.tile-ico.sm { width: 34px; height: 34px; border-radius: 10px; }
.tile-ico.sm .ico { width: 17px; height: 17px; }
.tile-ico.xs { width: 24px; height: 24px; border-radius: 8px; }
.tile-ico.xs .ico { width: 13px; height: 13px; }
[data-theme="dark"] .tile-ico { background: color-mix(in srgb, var(--c1, #22d3ee) 16%, transparent); color: var(--c1, #22d3ee); }

/* ───────────────────────── шапка ───────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  -webkit-backdrop-filter: saturate(1.6) blur(14px); backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .25s, box-shadow .25s;
}
.site-header.scrolled { border-bottom-color: var(--line); box-shadow: 0 8px 24px -18px rgba(8, 47, 73, .35); }
.header-row { position: relative; display: flex; align-items: center; gap: 18px; height: 100%; }
.logo { display: inline-flex; align-items: center; gap: 11px; color: var(--ink); flex-shrink: 0; }
.logo:hover { color: var(--ink); }
.logo-mark {
  display: grid; place-items: center; width: 42px; height: 42px; border-radius: 13px; background: var(--grad);
  color: #fff; box-shadow: var(--glow); position: relative; overflow: hidden;
}
.logo-mark::after { content: ''; position: absolute; inset: 0; background: linear-gradient(160deg, rgba(255, 255, 255, .35), transparent 50%); }
.logo-mark .ico { width: 25px; height: 25px; }
.logo-words { display: flex; flex-direction: column; line-height: 1; }
.logo-text { font: 800 1.42rem/1 var(--font-head); letter-spacing: -.03em; }
.logo-text em { font-style: normal; background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.logo-sub { margin-top: 5px; font-size: .62rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); }
.logo-light .logo-text { color: #fff; }
.logo-light .logo-sub { color: rgba(207, 230, 238, .7); }

.main-nav { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.nav-link {
  display: inline-flex; align-items: center; gap: 5px; padding: 8px 12px; border-radius: 999px; border: 0; background: none;
  color: var(--ink-2); font-size: .9rem; font-weight: 600; cursor: pointer; white-space: nowrap; transition: background-color .2s, color .2s;
}
.nav-link:hover, .has-mega.open .mega-btn { color: var(--brand); background: var(--brand-soft); }
.mega-btn .ico { transition: transform .25s; }
.has-mega.open .mega-btn .ico { transform: rotate(180deg); }
.mega {
  position: absolute; top: calc(100% - 4px); left: 20px; right: 20px; margin: 0 auto; width: min(940px, calc(100% - 40px));
  background: var(--surface); border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow-lg); padding: 20px;
  opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity .22s, transform .22s, visibility .22s;
}
.has-mega.open .mega { opacity: 1; visibility: visible; transform: none; }
.mega-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 2px 6px 14px; border-bottom: 1px solid var(--line-2); margin-bottom: 12px; }
.mega-head b { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-head); color: var(--ink); }
.mega-head b .ico { color: var(--brand); }
.mega-head span { font-size: .82rem; color: var(--ink-3); }
.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: 12px; padding: 9px 10px; border-radius: 14px; color: var(--ink); transition: background-color .2s; }
.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; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mega-text small { font-size: .76rem; color: var(--ink-3); }

.header-actions { display: flex; align-items: center; gap: 8px; margin-left: 8px; }
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 42px; min-width: 42px; padding: 0 11px;
  border-radius: 13px; border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); cursor: pointer;
  transition: border-color .2s, color .2s, background-color .2s;
}
.icon-btn:hover { border-color: var(--brand); color: var(--brand); }
.icon-btn .ico { width: 19px; height: 19px; }
.search-btn { padding: 0 10px 0 14px; font-size: .88rem; color: var(--ink-3); min-width: 190px; justify-content: flex-start; }
.search-btn kbd { margin-left: auto; }
kbd {
  display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 6px; font: 600 .72rem var(--font);
  color: var(--ink-3); background: var(--surface-2); border: 1px solid var(--line); border-bottom-width: 2px;
}
[data-theme="dark"] .i-moon, :root:not([data-theme="dark"]) .i-sun { display: none; }
.menu-btn { display: none; }

/* ───────────────────────── hero ───────────────────────── */
.hero { position: relative; padding: 54px 0 120px; overflow: hidden; }
.hero-bg {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(60% 60% at 85% 10%, rgba(34, 211, 238, .22), transparent 70%),
    radial-gradient(45% 50% at 5% 90%, rgba(16, 185, 129, .14), transparent 70%),
    radial-gradient(40% 40% at 50% 50%, rgba(29, 78, 216, .06), transparent 70%),
    linear-gradient(180deg, var(--bg-2), var(--bg));
}
.hero-bg::after {
  content: ''; position: absolute; inset: 0; opacity: .5;
  background-image: radial-gradient(rgba(8, 145, 178, .18) 1px, transparent 1.4px); background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(70% 70% at 70% 30%, #000, transparent); mask-image: radial-gradient(70% 70% at 70% 30%, #000, transparent);
}
.hero-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: 40px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 6px; border-radius: 999px; font-size: .84rem; font-weight: 600;
  background: var(--surface); border: 1px solid var(--line); color: var(--ink-2); box-shadow: var(--shadow-sm);
}
.eyebrow-dot { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--grad); color: #fff; }
.hero h1 { margin: 22px 0 18px; font-size: clamp(2.3rem, 3.7vw + .9rem, 4rem); font-weight: 800; line-height: 1.06; letter-spacing: -.035em; }
.hero h1 .hl { text-decoration: underline wavy rgba(34, 211, 238, .45); text-decoration-thickness: 2px; text-underline-offset: 10px; }
.lead { font-size: 1.15rem; color: var(--ink-2); max-width: 600px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-actions.center { justify-content: center; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 14px 36px; margin: 38px 0 0; }
.hero-stats div { display: flex; flex-direction: column-reverse; }
.hero-stats dt { font-size: .82rem; color: var(--ink-3); font-weight: 600; }
.hero-stats dd { margin: 0; font: 800 1.75rem/1.1 var(--font-head); letter-spacing: -.03em; }
.hero-stats div + div { padding-left: 36px; border-left: 1px solid var(--line); }

.hero-art { position: relative; height: 470px; }
.orb {
  position: absolute; left: 50%; top: 50%; width: 370px; height: 370px; margin: -185px 0 0 -185px; border-radius: 50%; overflow: hidden;
  background: radial-gradient(120% 90% at 30% 15%, var(--orb-sky-1), var(--orb-sky-2) 60%);
  border: 10px solid color-mix(in srgb, var(--surface) 75%, transparent);
  box-shadow: var(--shadow-lg), 0 0 0 1px var(--line), inset 0 -20px 60px rgba(8, 145, 178, .25), 0 0 90px -10px rgba(34, 211, 238, .45);
  isolation: isolate;
}
.orb-glow { position: absolute; inset: auto -20% -30% -20%; height: 60%; background: radial-gradient(closest-side, rgba(34, 211, 238, .5), transparent); z-index: -1; }
.orb-wave { position: absolute; left: 0; bottom: 0; width: 200%; max-width: none; height: 62%; animation: drift 9s linear infinite; }
.orb-wave path { fill: var(--wave-1); }
.orb-wave.w2 { height: 68%; animation-duration: 14s; animation-direction: reverse; opacity: .45; }
.orb-wave.w2 path { fill: var(--wave-2); }
.orb::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 52%; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(6, 42, 61, .55));
}
.bubble {
  position: absolute; bottom: -20px; z-index: 2; width: 12px; height: 12px; border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, .75); background: rgba(255, 255, 255, .15); animation: rise 7s ease-in infinite;
}
.bubble.b1 { left: 22%; animation-delay: 0s; }
.bubble.b2 { left: 38%; width: 8px; height: 8px; animation-delay: 1.6s; animation-duration: 6s; }
.bubble.b3 { left: 56%; width: 15px; height: 15px; animation-delay: 3.1s; animation-duration: 8s; }
.bubble.b4 { left: 70%; width: 9px; height: 9px; animation-delay: 4.4s; }
.bubble.b5 { left: 82%; width: 6px; height: 6px; animation-delay: 2.2s; animation-duration: 5.5s; }
.orb-shine { position: absolute; top: 9%; left: 14%; width: 34%; height: 18%; border-radius: 50%; background: linear-gradient(180deg, rgba(255, 255, 255, .85), rgba(255, 255, 255, 0)); transform: rotate(-28deg); z-index: 3; opacity: .7; }
.orb-drop { position: absolute; left: 50%; top: 13%; width: 78px; height: 78px; margin-left: -39px; z-index: 3; color: var(--brand); filter: drop-shadow(0 10px 18px rgba(8, 145, 178, .4)); animation: bob 5s ease-in-out infinite; }
@keyframes drift { to { transform: translateX(-50%); } }
@keyframes rise { 0% { transform: translateY(0) scale(.7); opacity: 0; } 15% { opacity: 1; } 90% { opacity: .9; } 100% { transform: translateY(-230px) scale(1.15); opacity: 0; } }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

.gauge, .float-chip, .float-card {
  position: absolute; z-index: 5; background: color-mix(in srgb, var(--surface) 88%, transparent); border: 1px solid var(--line);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: var(--shadow); color: var(--ink);
}
.gauge { left: 2%; bottom: 7%; display: flex; align-items: center; gap: 12px; padding: 12px 16px 12px 12px; border-radius: 18px; animation: floaty 6s ease-in-out infinite; }
.gauge-ico { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--mint-soft); color: var(--mint); }
.gauge-text { display: flex; flex-direction: column; line-height: 1.3; }
.gauge-text b { font: 700 .95rem var(--font-head); }
.gauge-text small { font-size: .74rem; color: var(--ink-3); }
.float-chip { display: inline-flex; align-items: center; gap: 9px; padding: 6px 14px 6px 6px; border-radius: 999px; font-size: .84rem; font-weight: 600; transition: transform .2s, border-color .2s; }
.float-chip:hover { color: var(--brand); border-color: var(--brand); }
.float-chip.f1 { top: 8%; left: 0; animation: floaty 7s ease-in-out infinite; }
.float-chip.f2 { top: 47%; right: -2%; animation: floaty 6.5s ease-in-out 1s infinite; }
.float-chip.f3 { bottom: 26%; left: -3%; animation: floaty 7.5s ease-in-out 2s infinite; }
.float-card { top: 0; right: 0; max-width: 250px; padding: 14px 16px; border-radius: 18px; animation: floaty 8s ease-in-out .5s infinite; }
.float-card:hover { color: var(--ink); border-color: var(--brand); }
.float-label { display: inline-flex; align-items: center; gap: 6px; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--brand); }
.float-card b { display: block; margin-top: 6px; font: 600 .92rem/1.35 var(--font-head); }

.wave-sep { display: block; width: 100%; height: 60px; }
.hero-wave { position: absolute; left: 0; right: 0; bottom: -1px; height: 70px; fill: var(--bg); }

/* ───────────────────────── секції ───────────────────────── */
.section { margin-top: 76px; }
.section-tight { margin-top: 30px; }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 26px; flex-wrap: wrap; }
.sec-head h2 { font-size: clamp(1.55rem, 1.6vw + 1rem, 2.2rem); font-weight: 800; letter-spacing: -.03em; margin-top: 6px; }
.kicker { display: inline-flex; align-items: center; gap: 7px; font-size: .74rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; color: var(--brand); }
.kicker-light { color: #67e8f9; }
.link-more { display: inline-flex; align-items: center; gap: 6px; padding: 0; border: 0; background: none; color: var(--brand); font-weight: 600; font-size: .92rem; cursor: pointer; }
.link-more:hover { color: var(--brand-2); gap: 9px; }
.link-more .ico { transition: transform .2s; }

.topics-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.topic-tile {
  display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: var(--radius); background: var(--surface);
  border: 1px solid var(--line); color: var(--ink); transition: transform .22s, box-shadow .22s, border-color .22s;
}
.topic-tile:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--brand) 45%, var(--line)); color: var(--ink); }
.topic-text { display: flex; flex-direction: column; min-width: 0; }
.topic-name { font: 600 .98rem/1.3 var(--font-head); }
.topic-count { font-size: .8rem; color: var(--ink-3); margin-top: 2px; }
.topic-arrow { margin-left: auto; color: var(--ink-3); opacity: .5; transition: opacity .2s, color .2s, transform .2s; }
.topic-tile:hover .topic-arrow { opacity: 1; color: var(--brand); transform: translate(2px, -2px); }

/* ───────────────────────── картки ───────────────────────── */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(310px, 100%), 1fr)); gap: 22px; }
.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: color-mix(in srgb, var(--brand) 35%, var(--line)); }
.cover {
  position: relative; aspect-ratio: 16 / 9; overflow: hidden; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--c1, #22d3ee), var(--c2, #0891b2));
}
.cover::before {
  content: ''; position: absolute; inset: 0; opacity: .9;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='28' viewBox='0 0 120 28'%3E%3Cpath d='M0 14c15-9 30-9 45 0s30 9 45 0 30-9 45 0' fill='none' stroke='%23fff' stroke-opacity='.16' stroke-width='2'/%3E%3C/svg%3E");
  background-size: 120px 28px; transition: transform 6s linear;
}
.cover::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 38%;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 60' preserveAspectRatio='none'%3E%3Cpath d='M0 22c50-18 100-18 150 0s100 18 150 0 70-14 100-6v44H0z' fill='%23fff' fill-opacity='.16'/%3E%3Cpath d='M0 36c60-14 120-14 180 0s120 14 220-4v28H0z' fill='%23fff' fill-opacity='.14'/%3E%3C/svg%3E") bottom / 100% 100% no-repeat;
}
.cover-bubbles, .post-hero-bubbles, .cat-hero-bubbles, .page-hero-bubbles {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(circle at 14% 26%, rgba(255, 255, 255, .28) 0 5px, transparent 6px),
    radial-gradient(circle at 22% 40%, rgba(255, 255, 255, .2) 0 3px, transparent 4px),
    radial-gradient(circle at 82% 22%, rgba(255, 255, 255, .24) 0 7px, transparent 8px),
    radial-gradient(circle at 74% 36%, rgba(255, 255, 255, .18) 0 3px, transparent 4px),
    radial-gradient(circle at 88% 55%, rgba(255, 255, 255, .16) 0 4px, transparent 5px);
}
.cover-ico { position: relative; z-index: 1; width: 62px; height: 62px; fill: none; stroke: #fff; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 8px 16px rgba(4, 30, 46, .3)); transition: transform .35s; }
.card:hover .cover-ico { transform: scale(1.08) rotate(-4deg); }
.card:hover .cover::before { transform: translateX(-60px); }
.cover-img::before, .cover-img::after { display: none; }
.cover-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.card:hover .cover-img img { transform: scale(1.05); }
.card-body { display: flex; flex-direction: column; gap: 10px; padding: 18px 20px 20px; flex: 1; }
.card-title { font-size: 1.07rem; font-weight: 600; line-height: 1.38; letter-spacing: -.01em; }
.card-title a { color: var(--ink); }
.card-title a::after { content: ''; position: absolute; inset: 0; z-index: 1; }
.card:hover .card-title a { color: var(--brand); }
.card-excerpt { font-size: .92rem; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card-meta { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: auto; padding-top: 4px; font-size: .8rem; color: var(--ink-3); }
.card-meta span::before { content: ''; display: inline-block; width: 4px; height: 4px; border-radius: 50%; background: currentColor; margin: 0 10px 2px -4px; opacity: .6; }
.card-featured { margin-bottom: 22px; }
@media (min-width: 860px) {
  .card-featured { display: grid; grid-template-columns: 1.15fr 1fr; }
  .card-featured .cover { aspect-ratio: auto; min-height: 330px; }
  .card-featured .cover-ico { width: 96px; height: 96px; }
  .card-featured .card-body { padding: 34px 36px; justify-content: center; gap: 14px; }
  .card-featured .card-title { font-size: clamp(1.4rem, 1vw + 1rem, 1.85rem); font-weight: 700; line-height: 1.25; letter-spacing: -.02em; }
  .card-featured .card-excerpt { font-size: 1rem; -webkit-line-clamp: 4; }
}

/* ───────────────────────── пагінація ───────────────────────── */
.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: 8px; min-width: 44px; height: 44px; padding: 0 14px;
  border-radius: 13px; border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); font-weight: 600; font-size: .92rem;
  transition: border-color .2s, color .2s, background-color .2s;
}
.page-num:hover, .page-btn:hover { border-color: var(--brand); color: var(--brand); }
.page-num.current { background: var(--grad); color: #fff; border-color: transparent; box-shadow: var(--glow); }
.page-num.dots { border: 0; background: none; min-width: 24px; padding: 0; }
.page-of { text-align: center; margin-top: 14px; font-size: .84rem; color: var(--ink-3); }

/* ───────────────────────── «рутина» резервуара ───────────────────────── */
.routine-band { margin-top: 90px; }
.routine-band .wave-sep { height: 56px; fill: var(--deep-1); }
.routine-band .wave-bottom { fill: var(--deep-3); transform: rotate(180deg); }
.routine-inner { background: var(--deep-grad); color: #d6edf4; padding: 26px 0 50px; position: relative; overflow: hidden; }
.routine-inner::before {
  content: ''; position: absolute; inset: 0; opacity: .5; pointer-events: none;
  background: radial-gradient(40% 60% at 90% 10%, rgba(34, 211, 238, .25), transparent 70%), radial-gradient(35% 50% at 0% 100%, rgba(16, 185, 129, .18), transparent 70%);
}
.sec-head-light h2 { color: #fff; }
.routine { position: relative; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.routine-step {
  position: relative; display: flex; flex-direction: column; gap: 10px; padding: 24px 22px; border-radius: var(--radius);
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); transition: transform .25s, background-color .25s;
}
.routine-step:hover { transform: translateY(-4px); background: rgba(255, 255, 255, .09); }
.routine-n { position: absolute; top: 14px; right: 18px; font: 800 2.6rem/1 var(--font-head); color: rgba(255, 255, 255, .08); }
.routine-ico { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 15px; background: rgba(34, 211, 238, .16); color: #67e8f9; }
.routine-ico .ico { width: 23px; height: 23px; }
.routine-step h3 { color: #fff; font-size: 1.2rem; margin-top: 6px; }
.routine-step p { font-size: .93rem; color: rgba(214, 237, 244, .82); }
.routine-link { margin-top: auto; padding-top: 6px; display: inline-flex; align-items: center; gap: 6px; color: #67e8f9; font-size: .88rem; font-weight: 600; }
.routine-link:hover { color: #fff; }

/* ───────────────────────── essential guides, why ───────────────────────── */
.essentials { padding: 30px 32px 22px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); }
.essentials .sec-head { margin-bottom: 10px; }
.essentials-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); column-gap: 40px; }
.mini-list { list-style: none; margin: 0; padding: 0; }
.mini { display: flex; align-items: flex-start; gap: 14px; padding: 14px 0; border-bottom: 1px dashed var(--line); }
.mini:last-child { border-bottom: 0; }
.essentials-list .mini:nth-last-child(2):nth-child(odd) { border-bottom: 0; }
.mini-n { font: 800 1.45rem/1 var(--font-head); background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; min-width: 34px; padding-top: 2px; }
.mini-body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.mini-title { font: 600 .97rem/1.38 var(--font-head); color: var(--ink); letter-spacing: -.01em; }
.mini-title:hover { color: var(--brand); }
.mini-meta { font-size: .78rem; color: var(--ink-3); }

.why { display: grid; grid-template-columns: .9fr 1.1fr; gap: 40px; align-items: center; padding: 40px; border-radius: var(--radius-lg); background: linear-gradient(135deg, var(--brand-soft), var(--mint-soft)); border: 1px solid var(--line); }
.why-head h2 { font-size: clamp(1.5rem, 1.4vw + 1rem, 2.1rem); font-weight: 800; letter-spacing: -.03em; margin: 8px 0 12px; }
.why-head p { color: var(--ink-2); margin-bottom: 22px; }
.why-grid { display: grid; gap: 14px; }
.why-item { display: grid; grid-template-columns: auto 1fr; column-gap: 16px; row-gap: 4px; padding: 18px 20px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.why-ico { grid-row: span 2; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: linear-gradient(135deg, var(--c1), var(--c2)); color: #fff; }
.why-item h3 { font-size: 1.04rem; }
.why-item p { font-size: .92rem; color: var(--ink-2); }

/* ───────────────────────── хлібні крихти, архіви ───────────────────────── */
.crumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; list-style: none; margin: 0; padding: 0; font-size: .84rem; color: var(--ink-3); }
.crumbs li { display: inline-flex; align-items: center; gap: 8px; min-width: 0; }
.crumbs li + li::before { content: '\203A'; opacity: .6; font-size: 1.1em; }
.crumbs a { color: var(--ink-2); }
.crumbs a:hover { color: var(--brand); }
.crumbs span[aria-current] { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 46ch; }
.crumbs-light ol, .crumbs-light a { color: rgba(255, 255, 255, .82); }
.crumbs-light a:hover { color: #fff; }

.cat-hero, .post-hero {
  position: relative; overflow: hidden; margin-top: 26px; padding: 30px 34px 76px; border-radius: var(--radius-lg); color: #fff;
  background: radial-gradient(70% 90% at 100% 0%, rgba(255, 255, 255, .22), transparent 60%), linear-gradient(135deg, var(--c1), var(--c2));
}
.cat-hero-ico { display: grid; place-items: center; width: 58px; height: 58px; margin-top: 22px; border-radius: 18px; background: rgba(255, 255, 255, .18); border: 1px solid rgba(255, 255, 255, .3); }
.cat-hero-ico .ico { width: 28px; height: 28px; }
.cat-hero h1 { color: #fff; margin: 16px 0 10px; font-size: clamp(2rem, 2.6vw + 1rem, 3.1rem); font-weight: 800; letter-spacing: -.035em; max-width: 780px; position: relative; }
.cat-hero p { max-width: 640px; color: rgba(255, 255, 255, .9); font-size: 1.05rem; position: relative; }
.cat-hero-meta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; position: relative; }
.cat-hero-meta span { display: inline-flex; align-items: center; gap: 7px; padding: 6px 13px; border-radius: 999px; background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .25); font-size: .84rem; font-weight: 600; }
.cat-hero-art, .post-hero-art .ico { position: absolute; right: -10px; top: 10px; width: 250px; height: 250px; stroke: #fff; opacity: .13; stroke-width: 1.2; }
.cat-hero-art, .footer-cta-art, .about-card-art { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.cat-hero-wave, .post-hero-wave { position: absolute; left: 0; right: 0; bottom: -1px; height: 54px; fill: var(--bg); }
.related-topics { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 14px; margin-top: 18px; }
.rt-label { font-size: .74rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.page-head { padding: 36px 0 6px; }
.page-head h1 { font-size: clamp(2rem, 2vw + 1.2rem, 2.8rem); font-weight: 800; letter-spacing: -.035em; margin: 12px 0 8px; }
.page-head .crumbs { margin-bottom: 16px; }
.page-head p { color: var(--ink-3); }
.empty { text-align: center; padding: 60px 20px; color: var(--ink-3); }
.empty .ico { width: 44px; height: 44px; color: var(--brand); margin-bottom: 10px; }

/* ───────────────────────── стаття ───────────────────────── */
.progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 60; background: var(--grad); transform: scaleX(0); transform-origin: 0 50%; }
.post-hero { padding-bottom: 84px; }
.post-hero .chips { margin-top: 22px; position: relative; z-index: 1; }
.post-hero .crumbs { position: relative; z-index: 1; }
.post-title { position: relative; z-index: 1; color: #fff; margin: 16px 0 22px; max-width: 900px; font-size: clamp(1.85rem, 2.4vw + 1rem, 3.1rem); font-weight: 800; line-height: 1.12; letter-spacing: -.035em; }
.byline { position: relative; z-index: 1; display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.avatar { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: rgba(255, 255, 255, .2); border: 1px solid rgba(255, 255, 255, .35); color: #fff; flex-shrink: 0; }
.avatar .ico { width: 22px; height: 22px; }
.byline-text { display: flex; flex-direction: column; gap: 2px; font-size: .92rem; }
.byline-text a { color: #fff; font-weight: 600; text-decoration: underline; text-decoration-color: rgba(255, 255, 255, .4); text-underline-offset: 3px; }
.byline-meta { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: .82rem; color: rgba(255, 255, 255, .85); }
.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%; cursor: pointer;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); transition: border-color .2s, color .2s, background-color .2s, transform .2s;
}
.share-btn:hover { color: var(--brand); border-color: var(--brand); transform: translateY(-2px); }
.share-btn .ico { width: 17px; height: 17px; }
.share-top .share-btn { background: rgba(255, 255, 255, .15); border-color: rgba(255, 255, 255, .3); color: #fff; }
.share-top .share-btn:hover { background: rgba(255, 255, 255, .28); 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: .74rem; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .2s; }
.share-btn.done .copied { opacity: 1; }
.post-hero-art { position: absolute; inset: 0; pointer-events: none; }
.post-thumb { margin: 20px 0 0; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); background: var(--surface-2); }
.post-thumb img { display: block; width: 100%; max-height: 540px; object-fit: cover; }

.post-layout { display: grid; grid-template-columns: minmax(0, 1fr) 310px; gap: 52px; margin-top: 34px; align-items: start; }
.post-main { min-width: 0; max-width: 780px; }
.side-sticky { position: sticky; top: calc(var(--header-h) + 20px); display: flex; flex-direction: column; gap: 18px; }
.side-box { padding: 20px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.side-title { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; font: 700 .95rem var(--font-head); color: var(--ink); }
.side-title .ico { color: var(--brand); }
.side-box .mini { padding: 11px 0; }
.side-box .mini-n { font-size: 1.15rem; min-width: 26px; }
.side-box .mini-title { font-size: .9rem; }
.toc ol { list-style: none; margin: 0; padding: 0; }
.toc-side ol { max-height: 52vh; overflow: auto; margin-right: -8px; padding-right: 8px; scrollbar-width: thin; scrollbar-color: var(--line) transparent; }
.toc-side a { display: block; padding: 6px 10px; border-left: 2px solid var(--line); color: var(--ink-2); font-size: .86rem; line-height: 1.4; transition: color .2s, border-color .2s, background-color .2s; }
.toc-side a:hover { color: var(--brand); }
.toc-side a.active { color: var(--brand-ink); border-left-color: var(--brand); background: var(--brand-soft); border-radius: 0 8px 8px 0; font-weight: 600; }
.toc .lvl-3 a { padding-left: 24px; font-size: .82rem; }
.toc-inline { display: none; margin-bottom: 26px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.toc-inline summary { display: flex; align-items: center; gap: 10px; padding: 15px 18px; cursor: pointer; list-style: none; font: 700 .98rem var(--font-head); }
.toc-inline summary::-webkit-details-marker { display: none; }
.toc-inline summary > .ico:first-child { color: var(--brand); }
.toc-count { margin-left: auto; font: 600 .78rem var(--font); color: var(--ink-3); }
.toc-chev { transition: transform .25s; }
.toc-inline[open] .toc-chev { transform: rotate(180deg); }
.toc-inline ol { padding: 0 18px 16px; }
.toc-inline li a { display: block; padding: 6px 0; color: var(--ink-2); font-size: .92rem; border-top: 1px dashed var(--line-2); }
.toc-inline .lvl-3 a { padding-left: 18px; }

/* текст статті */
.prose { font-size: 1.075rem; line-height: 1.8; color: var(--ink); overflow-wrap: break-word; }
.prose > * + * { margin-top: 1.1em; }
.prose p { margin: 0; }
.prose * + p, .prose p + * { margin-top: 1.1em; }
.prose h1, .prose h2 { font-size: clamp(1.45rem, .9vw + 1.1rem, 1.85rem); font-weight: 750; margin: 2.1em 0 .1em; letter-spacing: -.025em; line-height: 1.25; }
.prose h2::after { content: ''; display: block; width: 44px; height: 4px; margin-top: 12px; border-radius: 4px; background: var(--grad); }
.prose h3 { font-size: 1.25rem; font-weight: 700; margin: 1.8em 0 .1em; line-height: 1.32; }
.prose h4, .prose h5, .prose h6 { font-size: 1.08rem; font-weight: 700; margin: 1.6em 0 .1em; }
.prose h1 + *, .prose h2 + *, .prose h3 + *, .prose h4 + * { margin-top: .7em; }
.prose a { color: var(--brand); 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: currentColor; }
.prose strong, .prose b { color: var(--ink); font-weight: 650; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li { margin-top: .45em; padding-left: .2em; }
.prose li::marker { color: var(--brand); font-weight: 700; }
.prose blockquote { margin: 1.6em 0; padding: 18px 22px; border-left: 4px solid var(--brand); border-radius: 0 16px 16px 0; background: var(--brand-soft); color: var(--ink); font-style: normal; }
.prose blockquote p + p { margin-top: .6em; }
.prose img { border-radius: 16px; display: block; }
.prose figure { margin: 1.8em 0; }
.prose figure img { width: 100%; }
.prose figcaption { margin-top: 8px; font-size: .86rem; color: var(--ink-3); text-align: center; }
.prose hr { border: 0; height: 1px; background: var(--line); margin: 2.2em 0; }
.prose code { font-size: .9em; background: var(--surface-2); border: 1px solid var(--line); padding: .1em .4em; border-radius: 6px; }
.prose pre { overflow: auto; padding: 16px 18px; border-radius: 14px; background: var(--deep-3); color: #d6edf4; font-size: .9rem; }
.prose pre code { background: none; border: 0; padding: 0; color: inherit; }
.table-wrap { overflow-x: auto; margin: 1.6em 0; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); -webkit-overflow-scrolling: touch; }
.prose .table-wrap { margin: 1.6em 0; }
.table-wrap table { width: 100%; border-collapse: collapse; font-size: .93rem; line-height: 1.55; min-width: 520px; }
.table-wrap th { background: var(--surface-2); text-align: left; font: 600 .86rem var(--font-head); color: var(--ink); padding: 12px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table-wrap td { padding: 12px 14px; border-top: 1px solid var(--line-2); vertical-align: top; color: var(--ink-2); }
.table-wrap tr:first-child td { border-top: 0; }
.table-wrap tbody tr:hover td { background: color-mix(in srgb, var(--brand-soft) 60%, transparent); }

.quick-answer {
  position: relative; padding: 20px 24px 22px; border-radius: var(--radius); overflow: hidden;
  background: linear-gradient(135deg, var(--brand-soft), var(--mint-soft)); border: 1px solid color-mix(in srgb, var(--brand) 25%, var(--line));
}
.quick-answer::after { content: ''; position: absolute; right: -30px; top: -30px; width: 120px; height: 120px; border-radius: 50%; background: radial-gradient(closest-side, rgba(34, 211, 238, .25), transparent); }
.qa-label { display: inline-flex; align-items: center; gap: 7px; margin-bottom: 8px; font-size: .74rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; color: var(--brand-ink); }
.qa-label .ico { color: var(--brand); }
.quick-answer p { margin: 0; font-size: 1.1rem; line-height: 1.7; color: var(--ink); }
.read-also {
  display: flex; align-items: center; gap: 16px; padding: 14px 18px; border-radius: 18px; background: var(--surface);
  border: 1px solid var(--line); border-left: 4px solid var(--brand); box-shadow: var(--shadow-sm);
}
.ra-ico { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; flex-shrink: 0; background: linear-gradient(135deg, var(--c1), var(--c2)); color: #fff; }
.ra-body { display: flex; flex-direction: column; gap: 2px; line-height: 1.4; }
.ra-label { font-size: .7rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; color: var(--brand); }
.prose .read-also a { font: 600 1rem/1.4 var(--font-head); color: var(--ink); text-decoration: none; }
.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(--surface-2); border: 1px solid var(--line); font-size: .92rem; color: var(--ink-2); }
.note-ico { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: var(--brand-soft); color: var(--brand); flex-shrink: 0; }
.note-box b { color: var(--ink); }
.post-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; margin-top: 28px; padding: 20px 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: .72rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; color: var(--ink-3); margin-right: 4px; }
.author-box { display: flex; gap: 18px; margin-top: 28px; padding: 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.avatar-lg { width: 62px; height: 62px; background: var(--grad); border: 0; box-shadow: var(--glow); }
.avatar-lg .ico { width: 28px; height: 28px; }
.author-name { font-size: 1.2rem; margin: 4px 0 6px; }
.author-box p { font-size: .94rem; color: var(--ink-2); }
.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 28px; }
.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(--ink); transition: border-color .2s, transform .2s; }
.post-nav-link:hover { border-color: var(--brand); transform: translateY(-2px); color: var(--ink); }
.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: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--brand); }
.post-nav-link b { font: 600 .98rem/1.4 var(--font-head); }
.more-in { margin-top: 28px; padding: 22px 24px 8px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.more-in-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.more-in-head h2 { font-size: 1.15rem; }

/* ───────────────────────── інформаційні сторінки ───────────────────────── */
.page-hero {
  position: relative; overflow: hidden; margin-top: 26px; padding: 34px 38px 40px; border-radius: var(--radius-lg);
  background: radial-gradient(60% 90% at 100% 0%, rgba(34, 211, 238, .18), transparent 60%), linear-gradient(135deg, var(--brand-soft), var(--mint-soft));
  border: 1px solid var(--line);
}
.page-hero-bubbles { opacity: .9; background:
  radial-gradient(circle at 78% 30%, rgba(8, 145, 178, .14) 0 8px, transparent 9px),
  radial-gradient(circle at 86% 62%, rgba(8, 145, 178, .1) 0 5px, transparent 6px),
  radial-gradient(circle at 70% 76%, rgba(16, 185, 129, .12) 0 4px, transparent 5px); }
.page-hero .kicker { margin-top: 22px; position: relative; }
.page-hero h1 { position: relative; margin: 10px 0 12px; font-size: clamp(2rem, 2.4vw + 1.1rem, 3.1rem); font-weight: 800; letter-spacing: -.035em; max-width: 820px; }
.page-hero .lead { position: relative; }
.page-hero .crumbs { position: relative; }
.page-hero-art { position: absolute; right: 30px; bottom: -40px; width: 220px; height: 220px; color: var(--brand); opacity: .08; }
.page-updated { position: relative; display: inline-flex; align-items: center; gap: 7px; margin-top: 18px; font-size: .85rem; color: var(--ink-3); }
.page-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 52px; margin-top: 36px; align-items: start; }
.legal { max-width: 780px; }
.legal h2 { font-size: 1.4rem; }
.page-nav { display: flex; flex-direction: column; gap: 2px; }
.page-nav a { padding: 8px 12px; border-radius: 10px; color: var(--ink-2); font-size: .9rem; font-weight: 500; }
.page-nav a:hover { background: var(--surface-2); color: var(--brand); }
.page-nav a[aria-current] { background: var(--brand-soft); color: var(--brand-ink); font-weight: 650; }
.side-contact p { font-size: .9rem; color: var(--ink-2); }

.about-intro { display: grid; grid-template-columns: 1.45fr .85fr; gap: 44px; margin-top: 36px; align-items: start; }
.about-intro .prose h2:first-child { margin-top: 0; }
.about-card { position: sticky; top: calc(var(--header-h) + 20px); overflow: hidden; padding: 30px; border-radius: var(--radius-lg); background: var(--deep-grad); color: #d6edf4; display: flex; flex-direction: column; gap: 22px; box-shadow: var(--shadow-lg); }
.stat { position: relative; z-index: 1; display: flex; flex-direction: column; padding-bottom: 18px; border-bottom: 1px solid rgba(255, 255, 255, .12); }
.stat:last-of-type { border-bottom: 0; padding-bottom: 0; }
.stat b { font: 800 2.3rem/1.1 var(--font-head); letter-spacing: -.03em; background: linear-gradient(90deg, #67e8f9, #6ee7b7); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat span { font-size: .92rem; color: rgba(214, 237, 244, .8); }
.about-card-art { position: absolute; right: -40px; bottom: -40px; width: 220px; height: 220px; stroke: #fff; opacity: .07; stroke-width: 1.2; fill: none; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: step; }
.step { position: relative; padding: 26px 24px 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); counter-increment: step; }
.step::before { content: counter(step); display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 14px; border-radius: 12px; background: var(--grad); color: #fff; font: 800 1rem var(--font-head); box-shadow: var(--glow); }
.step h3 { font-size: 1.12rem; margin-bottom: 6px; }
.step p { font-size: .93rem; color: var(--ink-2); }
.values { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.value { padding: 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.value h3 { font-size: 1.05rem; margin: 14px 0 6px; }
.value p { font-size: .9rem; color: var(--ink-2); }
.cta-band { position: relative; overflow: hidden; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 22px; padding: 36px 40px; border-radius: var(--radius-lg); background: var(--grad); color: #fff; box-shadow: var(--glow); }
.cta-band::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 60' preserveAspectRatio='none'%3E%3Cpath d='M0 30c50-18 100-18 150 0s100 18 150 0 70-14 100-6v36H0z' fill='%23fff' fill-opacity='.12'/%3E%3C/svg%3E") bottom / 100% 45% no-repeat; }
.cta-band h2 { color: #fff; font-size: clamp(1.4rem, 1vw + 1rem, 1.85rem); margin-bottom: 6px; }
.cta-band p { color: rgba(255, 255, 255, .88); }
.cta-band .btn { position: relative; z-index: 1; }

.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 36px; }
.contact-card { display: flex; flex-direction: column; gap: 8px; padding: 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.contact-card h3 { font-size: 1.1rem; margin-top: 8px; }
.contact-card p { font-size: .92rem; color: var(--ink-2); }
.contact-card .mail { margin-top: auto; padding-top: 6px; display: inline-flex; align-items: center; gap: 6px; font-weight: 600; word-break: break-all; }
.contact-layout { display: grid; grid-template-columns: 1.1fr .9fr; gap: 44px; align-items: start; }
.form { display: grid; gap: 16px; padding: 30px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.form-title { font-size: 1.4rem; }
.form-note { margin-top: 6px; font-size: .9rem; color: var(--ink-3); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field label { font-size: .86rem; font-weight: 600; color: var(--ink-2); }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg); color: var(--ink);
  font: inherit; font-size: .95rem; transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; 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: 12px 14px; border-radius: 12px; background: var(--mint-soft); color: var(--ink); font-size: .9rem; }
.form-sent .ico { color: var(--mint); margin-top: 2px; }
.faq-title { font-size: 1.5rem; margin: 8px 0 18px; }
.faq details { margin-bottom: 10px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); transition: border-color .2s; }
.faq details[open] { border-color: color-mix(in srgb, var(--brand) 40%, var(--line)); }
.faq summary { position: relative; padding: 16px 48px 16px 18px; cursor: pointer; list-style: none; font: 600 .98rem/1.4 var(--font-head); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); width: 24px; height: 24px; display: grid; place-items: center; border-radius: 8px; background: var(--brand-soft); color: var(--brand); font: 700 1rem/1 var(--font); transition: transform .2s; }
.faq details[open] summary::after { content: '\2212'; }
.faq details p { padding: 0 18px 16px; font-size: .93rem; color: var(--ink-2); }

/* ───────────────────────── 404 ───────────────────────── */
.notfound { text-align: center; padding: 70px 20px 20px; }
.nf-art { display: flex; justify-content: center; align-items: center; gap: 4px; font: 800 clamp(6rem, 16vw, 10.5rem)/1 var(--font-head); letter-spacing: -.05em; }
.nf-art span:not(.nf-drop) { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nf-drop { display: inline-grid; place-items: center; width: .8em; height: .8em; color: var(--brand); animation: bob 4s ease-in-out infinite; }
.nf-drop .ico { width: 100%; height: 100%; filter: drop-shadow(0 16px 24px rgba(8, 145, 178, .35)); }
.notfound h1 { font-size: clamp(1.8rem, 2vw + 1rem, 2.6rem); font-weight: 800; letter-spacing: -.03em; margin: 22px 0 12px; }
.notfound .lead { margin: 0 auto; }
.notfound .chips { margin-top: 36px; }

/* ───────────────────────── футер ───────────────────────── */
.site-footer { margin-top: 110px; color: #c9e3ec; }
.footer-wave { height: 64px; fill: var(--deep-1); }
.footer-inner { background: var(--deep-grad); padding: 8px 0 30px; margin-top: -1px; }
.footer-cta {
  position: relative; overflow: hidden; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px;
  padding: 32px 36px; border-radius: var(--radius-lg); background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12);
}
.footer-cta-text { position: relative; z-index: 1; max-width: 640px; }
.footer-cta h2 { color: #fff; font-size: clamp(1.4rem, 1vw + 1rem, 1.9rem); margin: 8px 0; }
.footer-cta p { color: rgba(201, 227, 236, .82); }
.footer-cta-actions { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 12px; }
.footer-cta-art { position: absolute; right: 26%; top: -30px; width: 200px; height: 200px; stroke: #fff; opacity: .05; fill: none; stroke-width: 1.2; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 36px; margin-top: 50px; }
.footer-brand p { margin: 16px 0; font-size: .9rem; color: rgba(201, 227, 236, .75); max-width: 380px; }
.footer-mail { display: inline-flex; align-items: center; gap: 8px; color: #67e8f9; font-weight: 600; font-size: .9rem; word-break: break-all; }
.footer-mail:hover { color: #fff; }
.footer-col h3 { color: #fff; font-size: .95rem; margin-bottom: 14px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.footer-col a { color: rgba(201, 227, 236, .78); font-size: .9rem; }
.footer-col a:hover { color: #fff; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 30px; margin-top: 44px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: .8rem; color: rgba(201, 227, 236, .6); }
.footer-bottom p:last-child { max-width: 640px; }

/* ───────────────────────── меню, пошук, cookie ───────────────────────── */
.drawer { position: fixed; inset: 0; z-index: 80; }
.drawer-backdrop { position: absolute; inset: 0; background: rgba(3, 20, 31, .5); opacity: 0; transition: opacity .3s; -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.drawer-panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(390px, 90vw); overflow-y: auto; padding: 16px 18px 28px;
  background: var(--surface); 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: 13px 16px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface-2); color: var(--ink-3); font-size: .95rem; cursor: pointer; text-align: left; }
.drawer-label { margin: 22px 0 8px; font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.drawer-topics { display: grid; gap: 2px; }
.drawer-topics a { display: flex; align-items: center; gap: 12px; padding: 8px 8px; border-radius: 12px; color: var(--ink); font-weight: 600; font-size: .94rem; }
.drawer-topics a:hover { background: var(--surface-2); }
.drawer-links a { display: flex; justify-content: space-between; align-items: center; padding: 13px 4px; border-bottom: 1px solid var(--line-2); color: var(--ink); font-weight: 600; }
.drawer-links a .ico { color: var(--ink-3); }

.search-modal { position: fixed; inset: 0; z-index: 90; display: flex; justify-content: center; align-items: flex-start; padding: 10vh 16px 16px; }
.search-backdrop { position: absolute; inset: 0; background: rgba(3, 20, 31, .55); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.search-box { position: relative; display: flex; flex-direction: column; width: min(700px, 100%); max-height: 78vh; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-lg); overflow: hidden; animation: pop .2s ease-out; }
@keyframes pop { from { transform: translateY(10px) scale(.98); opacity: 0; } }
.search-form { display: flex; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.search-form > .ico { width: 21px; height: 21px; color: var(--brand); }
.search-form input[type="search"] { flex: 1; min-width: 0; border: 0; background: none; outline: none; color: var(--ink); font: 500 1.1rem var(--font); }
.search-form input[type="search"]::-webkit-search-cancel-button { display: none; }
.esc { padding: 5px 10px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface-2); color: var(--ink-3); font-size: .78rem; font-weight: 600; cursor: pointer; }
.search-body { overflow-y: auto; padding: 6px 20px 20px; }
.search-label { margin: 16px 0 8px; font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.search-list { list-style: none; margin: 0; padding: 0; }
.sr-item { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; color: var(--ink); font-size: .95rem; line-height: 1.4; }
.sr-item > .ico { color: var(--brand); }
.sr-item:hover, .sr-item.active { background: var(--brand-soft); color: var(--ink); }
.sr-tag { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: var(--brand-soft); color: var(--brand); font-weight: 800; flex-shrink: 0; }
.sr-count { margin-left: auto; font-size: .78rem; color: var(--ink-3); white-space: nowrap; }
.search-body mark { background: rgba(34, 211, 238, .28); color: inherit; border-radius: 3px; padding: 0 1px; }
.search-empty { padding: 26px 0 10px; text-align: center; color: var(--ink-3); }
.search-foot { display: flex; gap: 18px; padding: 10px 20px; border-top: 1px solid var(--line); font-size: .78rem; color: var(--ink-3); background: var(--surface-2); }
.search-foot kbd { margin-right: 3px; }

.cookie {
  position: fixed; left: 16px; bottom: 16px; z-index: 70; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 14px;
  max-width: 540px; padding: 16px 18px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-lg);
  font-size: .88rem; color: var(--ink-2); animation: pop .3s ease-out;
}
.cookie p { flex: 1 1 260px; }
.cookie-ico { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--brand-soft); color: var(--brand); flex-shrink: 0; }
.cookie-actions { display: flex; gap: 8px; margin-left: auto; }
.to-top {
  position: fixed; right: 18px; bottom: 18px; z-index: 65; display: grid; place-items: center; width: 46px; height: 46px; border: 0; border-radius: 50%;
  background: var(--grad); color: #fff; box-shadow: var(--glow); cursor: pointer; opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity .25s, transform .25s, visibility .25s;
}
.to-top.show { opacity: 1; visibility: visible; transform: none; }

/* ───────────────────────── адаптив ───────────────────────── */
@media (min-width: 1101px) {
  .toc-inline { display: none !important; }
}
@media (max-width: 1100px) {
  .post-layout, .page-layout { grid-template-columns: minmax(0, 1fr); }
  .post-main, .legal { max-width: 820px; }
  .toc-inline { display: block; }
  .post-side { display: none; }
  .page-side .side-sticky { position: static; display: grid; grid-template-columns: 1fr 1fr; }
  .routine { grid-template-columns: repeat(2, 1fr); }
  .values { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 1500px) {
  .main-nav > a.nav-link:nth-child(5) { display: none; }
}
@media (max-width: 1360px) {
  .main-nav > a.nav-link:nth-child(4) { display: none; }
  .search-btn { min-width: 0; padding: 0 10px 0 12px; }
  .search-btn span { display: none; }
}
@media (max-width: 1180px) {
  .main-nav > a.nav-link:nth-child(3) { display: none; }
}
@media (max-width: 1080px) {
  .main-nav { display: none; }
  .menu-btn { display: inline-flex; }
  .header-actions { margin-left: auto; }
}
@media (max-width: 960px) {
  .hero { padding-top: 36px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { height: 420px; max-width: 520px; width: 100%; margin: 0 auto; }
  .why, .about-intro, .contact-layout { grid-template-columns: 1fr; }
  .about-card { position: relative; top: 0; }
  .steps, .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .essentials-list { grid-template-columns: 1fr; }
  .essentials-list .mini:nth-last-child(2):nth-child(odd) { border-bottom: 1px dashed var(--line); }
}
@media (max-width: 720px) {
  :root { --header-h: 62px; }
  .wrap { padding: 0 16px; }
  .search-btn { min-width: 0; padding: 0 11px; }
  .search-btn span, .search-btn kbd { display: none; }
  .header-actions [data-theme-toggle] { display: none; }
  .header-row { gap: 10px; }
  .logo-mark { width: 38px; height: 38px; border-radius: 12px; }
  .logo-text { font-size: 1.28rem; }
  .hero { padding-bottom: 90px; }
  .hero-art { height: 340px; }
  .orb { width: 270px; height: 270px; margin: -135px 0 0 -135px; border-width: 7px; }
  .orb-drop { width: 58px; height: 58px; margin-left: -29px; }
  .float-chip.f3, .float-card { display: none; }
  .float-chip.f1 { top: 2%; }
  .gauge { left: 0; bottom: 0; }
  .hero-stats div + div { padding-left: 0; border-left: 0; }
  .hero-stats { gap: 14px 28px; }
  .section { margin-top: 56px; }
  .cat-hero, .post-hero { padding: 22px 20px 64px; border-radius: 22px; margin-top: 16px; }
  .cat-hero-art, .post-hero-art .ico { width: 170px; height: 170px; }
  .share-top { margin-left: 0; width: 100%; }
  .page-hero { padding: 24px 22px 28px; border-radius: 22px; margin-top: 16px; }
  .routine { grid-template-columns: 1fr; }
  .values { grid-template-columns: 1fr; }
  .essentials { padding: 22px 18px 12px; border-radius: 22px; }
  .why { padding: 24px 18px; border-radius: 22px; }
  .post-nav { grid-template-columns: 1fr; }
  .post-nav-link.next { text-align: left; align-items: flex-start; }
  .form { padding: 22px 18px; }
  .form-row { grid-template-columns: 1fr; }
  .footer-cta { padding: 24px 20px; }
  .footer-cta-art { right: -50px; top: auto; bottom: -50px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .page-side .side-sticky { grid-template-columns: 1fr; }
  .cta-band { padding: 28px 22px; }
  .author-box { flex-direction: column; }
  .cookie { left: 10px; right: 10px; bottom: 10px; }
  .pagination .page-btn span { display: none; }
  .prose { font-size: 1.04rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
