@font-face → Offline/dernoga.com/fonts  (preload лише 1–2 файли для першого екрану) */
@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/geist-400-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/geist-400-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(../fonts/geist-600-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(../fonts/geist-600-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Geist Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/geist-mono-400-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Geist Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/geist-mono-400-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Geist Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(../fonts/geist-mono-500-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Geist Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(../fonts/geist-mono-500-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #eef0f3;
  --surface: #e2e5ea;
  --ink: #0b0c0e;
  --muted: #5d6470;
  --accent: #1f2de6;
  --accent-dark: #1622b8;
  --line: #c9ced6;
  --font: "Geist", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --u: 8px;
  --gutter: 20px;
  --section: 72px;
  --header-h: 64px;
  --fs-h1: 2.375rem;
  --fs-h2: 1.75rem;
  --fs-h3: 1.25rem;
  --fs-body: 1rem;
  --fs-lead: 1.125rem;
}
@media (min-width: 768px) {
  :root {
    --gutter: 24px;
    --section: 128px;
    --header-h: 72px;
    --fs-h1: 3.5rem;
    --fs-h2: 2.25rem;
    --fs-h3: 1.375rem;
    --fs-body: 1.0625rem;
    --fs-lead: 1.25rem;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-padding-top: calc(var(--header-h) + 16px);
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: 1.6;
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
h1, h2, h3 { font-weight: 600; text-wrap: balance; }
h1 { font-size: var(--fs-h1); line-height: 1.05; letter-spacing: -0.035em; }
h2 { font-size: var(--fs-h2); line-height: 1.1; letter-spacing: -0.03em; }
h3 { font-size: var(--fs-h3); line-height: 1.25; }
p { text-wrap: pretty; }
a { color: var(--accent); text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { color: var(--accent-dark); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
::selection { background: var(--accent); color: #fff; }

.wrap { width: 100%; max-width: 1248px; margin-inline: auto; padding-inline: var(--gutter); }
.nowrap { white-space: nowrap; }
.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.mono, .num { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.small { font-size: 0.875rem; line-height: 1.5; color: var(--muted); }
.label { font-family: var(--mono); font-weight: 500; font-size: 0.8125rem; letter-spacing: 0.02em; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 20px;
  background: var(--accent); color: #fff;
  font: 600 1rem/1.2 var(--font);
  border: 0; border-radius: 6px; text-decoration: none; cursor: pointer;
  transition: background-color 0.15s;
}
.btn:hover { background: var(--accent-dark); color: #fff; }
.link-btn, .link-sec {
  color: var(--ink); font: inherit; font-weight: 400;
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px;
  background: none; border: 0; padding: 0; cursor: pointer;
}
.link-btn:hover, .link-sec:hover { color: var(--accent); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: var(--bg); border-bottom: 1px solid var(--line);
}
.site-header__bar {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  height: var(--header-h);
}
.brand {
  display: flex; flex-direction: column;
  color: var(--ink); text-decoration: none;
  font-weight: 600; font-size: 0.9375rem; line-height: 1.15; letter-spacing: -0.01em;
}
.brand:hover { color: var(--ink); }
.site-header__end { display: flex; align-items: center; gap: 12px; }
.badge-18 {
  display: inline-block; padding: 2px 8px;
  border: 1px solid var(--ink); font: 500 0.8125rem/1.4 var(--mono); letter-spacing: 0.02em;
}
.menu-btn {
  display: none; min-height: 40px; padding: 0 14px;
  font: 600 0.9375rem var(--font); color: var(--ink);
  background: none; border: 1px solid var(--ink); border-radius: 6px; cursor: pointer;
}
.nav ul { display: flex; flex-wrap: wrap; gap: 4px 24px; }
.nav a {
  display: inline-block; padding: 8px 0;
  color: var(--ink); text-decoration: none; font-size: 0.9375rem;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--accent); }
.nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px; }

@media (max-width: 899px) {
  .site-header__bar { flex-wrap: nowrap; }
  .js .menu-btn { display: inline-flex; align-items: center; }
  .js .nav {
    display: none; position: fixed; inset: var(--header-h) 0 0 0;
    background: var(--bg); padding: 24px var(--gutter); overflow-y: auto;
  }
  .js.menu-open .nav { display: block; }
  .js.menu-open { overflow: hidden; }
  .js .nav ul { flex-direction: column; gap: 0; }
  .js .nav li { border-bottom: 1px solid var(--line); }
  .js .nav a { display: block; padding: 18px 0; font-size: 1.5rem; font-weight: 600; letter-spacing: -0.02em; }
  .nav { order: 3; }
  html:not(.js) .site-header__bar { flex-wrap: wrap; height: auto; padding-block: 12px; }
  html:not(.js) .nav { order: 3; width: 100%; }
}

/* Footer */
.site-footer { background: var(--ink); color: var(--line); padding-block: 72px 48px; font-size: 0.9375rem; }
.site-footer a { color: #fff; }
.site-footer a:hover { color: #fff; text-decoration-thickness: 2px; }
.site-footer :focus-visible { outline-color: #fff; }
.site-footer__top { display: grid; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid #2a2d33; margin-bottom: 32px; }
.site-footer__about { max-width: 44ch; }
.site-footer__col h2 { font-size: 1rem; letter-spacing: 0; color: #fff; margin-bottom: 12px; }
.site-footer__col li + li { margin-top: 6px; }
.site-footer__mail, .site-footer__warn { max-width: 72ch; margin-bottom: 16px; }
.site-footer__small { font-size: 0.875rem; margin-bottom: 8px; }
@media (min-width: 768px) {
  .site-footer { padding-block: 96px 56px; }
  .site-footer__top { grid-template-columns: repeat(3, 1fr); }
  .site-footer__about { grid-column: 1 / -1; }
}
@media (min-width: 1000px) {
  .site-footer__top { grid-template-columns: 1.6fr 1fr 1.2fr 1.2fr; }
  .site-footer__about { grid-column: auto; }
}

/* Age gate */
.age-gate {
  width: calc(100% - 40px); max-width: 440px; padding: 32px;
  background: var(--bg); color: var(--ink);
  border: 1px solid var(--ink); border-radius: 6px;
}
.age-gate::backdrop { background: rgba(11, 12, 14, 0.92); }
.age-gate h2 { font-size: 1.5rem; margin-bottom: 12px; }
.age-gate h2:focus { outline: none; }
.age-gate p { margin-bottom: 24px; }
.age-gate [data-age-denied] p { margin-bottom: 0; }
.age-gate__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; }
.age-ok .age-gate { display: none !important; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
