/* Plansza i Prawdopodobieństwo — спільні стилі */
@font-face {
  font-family: 'Literata';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/literata-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: 'Literata';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/literata-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: 'Literata';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(../fonts/literata-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: 'Literata';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(../fonts/literata-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: 'Figtree';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/figtree-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: 'Figtree';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/figtree-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: 'Figtree';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(../fonts/figtree-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: 'Figtree';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(../fonts/figtree-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;
}

:root {
  --bg: #161c1a; --surface: #1f2725; --ink: #e3e2da; --muted: #8e948d;
  --jade: #9fc7b8; --jade-hi: #b6d8cb; --line: #3a4542; --deep: #101513;
  --serif: 'Literata', Georgia, 'Times New Roman', serif;
  --sans: 'Figtree', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --sec: 72px;
}
@media (min-width: 900px) { :root { --sec: 120px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; color-scheme: dark; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 1rem/1.65 var(--sans); font-size: 16px; }
@media (min-width: 900px) { body { font-size: 16.5px; } }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--jade); text-underline-offset: 0.2em; text-decoration-thickness: from-font; }
a:hover { color: var(--jade-hi); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; margin: 0; letter-spacing: -0.02em; }
h1 { font-size: 36px; line-height: 1.08; font-variation-settings: "opsz" 72; }
h2 { font-size: 28px; line-height: 1.15; }
h3 { font-size: 20px; line-height: 1.3; letter-spacing: -0.01em; }
@media (min-width: 900px) { h1 { font-size: 54px; } h2 { font-size: 36px; } h3 { font-size: 22px; } }
p { margin: 0 0 1em; text-wrap: pretty; }
ul { margin: 0; padding: 0; list-style: none; }
.small { font-size: 14px; line-height: 1.55; color: var(--muted); }
.nw { white-space: nowrap; }
.vh { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.wrap { width: 100%; max-width: 1248px; margin-inline: auto; padding-inline: 16px; }
@media (min-width: 900px) { .wrap { padding-inline: 24px; } }

/* Кнопки */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 24px; border-radius: 999px; font: 600 16px/1.2 var(--sans); text-decoration: none; text-align: center; cursor: pointer; border: 1px solid transparent; }
.btn-primary { background: var(--jade); color: var(--bg); }
.btn-primary:hover { background: var(--jade-hi); color: var(--bg); }
.btn-secondary { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-secondary:hover { color: var(--ink); background: var(--surface); }
.btns { display: flex; flex-wrap: wrap; gap: 12px; margin: 0; }
.link { font-weight: 600; }

/* Хедер */
.site-header { border-bottom: 1px solid var(--line); }
.bar { display: flex; align-items: center; gap: 12px; padding-block: 14px; flex-wrap: wrap; }
.brand { font: 600 17px/1.2 var(--serif); letter-spacing: -0.01em; color: var(--ink); text-decoration: none; flex: 1 1 0; min-width: 0; }
.brand:hover { color: var(--ink); }
.age-mark { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border: 1px solid var(--ink); border-radius: 50%; font: 600 13px/1 var(--sans); flex: none; }
.menu-btn { display: none; min-height: 40px; padding: 0 16px; border-radius: 999px; background: transparent; color: var(--ink); border: 1px solid var(--ink); font: 600 15px var(--sans); cursor: pointer; }
.site-nav ul { display: flex; flex-direction: column; gap: 2px; }
.site-nav a { display: block; padding: 10px 0; color: var(--ink); text-decoration: none; font-weight: 600; }
.site-nav a:hover { color: var(--jade); }
.site-nav a[aria-current="page"] { color: var(--jade); }
.site-nav { flex-basis: 100%; order: 5; }
.js .menu-btn { display: inline-flex; align-items: center; }
.js .site-nav { display: none; }
.js .site-nav.open { display: block; }
@media (min-width: 900px) {
  .bar { flex-wrap: nowrap; gap: 32px; padding-block: 20px; }
  .brand { flex: none; font-size: 20px; }
  .site-nav { flex: 1 1 auto; order: 0; }
  .js .site-nav, .js .site-nav.open { display: block; }
  .site-nav ul { flex-direction: row; gap: 28px; justify-content: flex-end; }
  .site-nav a { padding: 6px 0; }
  .js .menu-btn { display: none; }
  .age-mark { order: 3; }
}

/* Футер */
.site-footer { background: var(--deep); margin-top: var(--sec); padding-block: 56px 40px; border-top: 1px solid var(--line); }
.foot-top { display: grid; gap: 40px; margin-bottom: 40px; }
.foot-about { max-width: 46ch; margin: 0; }
.foot-cols { display: grid; gap: 32px; }
.foot-h { font: 600 18px/1.3 var(--serif); margin: 0 0 12px; }
.site-footer li a { display: inline-block; padding: 5px 0; }
.foot-mail, .foot-warn { max-width: 80ch; }
.site-footer .small { margin-bottom: 8px; }
@media (min-width: 700px) { .foot-cols { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1000px) { .foot-top { grid-template-columns: 4fr 8fr; gap: 48px; } }

/* Вікове вікно */
.age { width: calc(100% - 32px); max-width: 440px; padding: 32px; margin: auto; background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: 24px; }
.age::backdrop { background: rgb(22 28 26 / 0.92); }
.age-h { font-size: 24px; margin-bottom: 12px; }
.age-h:focus { outline: none; }
.age p { margin-bottom: 24px; }
.age-deny p { margin-bottom: 0; }
.age-btns { display: flex; flex-direction: column; gap: 12px; }
.age-btns .btn { width: 100%; }
html.age-ok .age { display: none; }

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