/* Static storefront. No scripts, no trackers, no forms. Fonts are local (SIL OFL, see fonts/). */
@font-face { font-family: "Golos Text"; font-weight: 400; font-display: swap; src: url("fonts/golos-text-cyrillic-400-normal.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Golos Text"; font-weight: 600; font-display: swap; src: url("fonts/golos-text-cyrillic-600-normal.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Golos Text"; font-weight: 400; font-display: swap; src: url("fonts/golos-text-latin-ext-400-normal.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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Golos Text"; font-weight: 600; font-display: swap; src: url("fonts/golos-text-latin-ext-600-normal.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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Golos Text"; font-weight: 400; font-display: swap; src: url("fonts/golos-text-latin-400-normal.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: "Golos Text"; font-weight: 600; font-display: swap; src: url("fonts/golos-text-latin-600-normal.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; }

/* Same tokens as the mini app; the theme follows the system. */
:root {
  color-scheme: light dark;
  interpolate-size: allow-keywords;
  --bg: #f4f6f3; --surface: #ffffff; --surface-2: #ebefeb; --line: #d3dbd5;
  --text: #121a16; --muted: #55625a; --accent: #0b7a42; --on-accent: #ffffff;
  --privacy-text: #173c80; --privacy-fill: #e2edff; --privacy-line: #b6cef6;
  --terms-text: #105a38; --terms-fill: #dcf4e5; --terms-line: #a9d8bd;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e1412; --surface: #161d1a; --surface-2: #1f2925; --line: #2a352f;
    --text: #e8efeb; --muted: #9daba3; --accent: #5fd38d; --on-accent: #07130c;
    --privacy-text: #d3e2ff; --privacy-fill: #1c3153; --privacy-line: #486492;
    --terms-text: #bdeed1; --terms-fill: #18392c; --terms-line: #3a7457;
  }
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Golos Text", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 1rem;
  line-height: 1.5;
}
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
a { color: inherit; }

.page { max-width: 56rem; margin: 0 auto; padding: 2rem 1rem 3rem; }
header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; }
h1 { margin: 0; font-size: 1.5rem; font-weight: 600; line-height: 1.2; }
.lead { margin: 0.5rem 0 0; color: var(--muted); max-width: 38rem; }
.open {
  display: inline-flex; align-items: center; min-height: 48px; padding: 0 1.25rem;
  background: var(--accent); color: var(--on-accent); border-radius: 12px; font-weight: 600; text-decoration: none;
}

.cards { display: grid; grid-template-columns: 1fr; gap: 0.75rem; align-items: start; padding: 0; margin: 0; list-style: none; }
@media (min-width: 720px) { .cards { grid-template-columns: 1fr 1fr; } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; }
summary {
  display: flex; align-items: center; gap: 0.875rem; min-height: 72px; padding: 0.875rem 1rem;
  cursor: pointer; list-style: none;
}
summary::-webkit-details-marker { display: none; }
summary svg { flex: none; color: var(--accent); }
.name { display: block; font-weight: 600; font-size: 1.0625rem; line-height: 1.25; }
.short { display: block; color: var(--muted); font-size: 0.875rem; }
summary > span:nth-child(2) { flex: 1; min-width: 0; }
summary::after {
  content: ""; flex: none; width: 0.55rem; height: 0.55rem; margin-right: 0.25rem;
  border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted);
  transform: rotate(45deg); transition: transform 180ms ease;
}
details[open] summary::after { transform: rotate(-135deg); }

/* The panel opens by animating its height (browsers without ::details-content open it instantly). */
details::details-content {
  block-size: 0; overflow: hidden;
  transition: block-size 180ms ease, content-visibility 180ms allow-discrete;
}
details[open]::details-content { block-size: auto; }
.body { padding: 0 1rem 1rem; }
.body p { margin: 0 0 0.75rem; }
dl { margin: 0; display: grid; gap: 0.5rem; }
dt { font-weight: 600; font-size: 0.875rem; }
dd { margin: 0; color: var(--muted); }

footer { margin-top: 2rem; color: var(--muted); font-size: 0.9375rem; }
footer p { margin: 0 0 0.5rem; max-width: 40rem; }
footer .links { display: flex; flex-wrap: wrap; gap: 1.25rem; margin-top: 1rem; }
footer .links a { display: inline-flex; align-items: center; min-height: 44px; color: var(--text); font-weight: 600; }

.document-page { max-width: 48rem; }
.document-nav, .document-nav .links, .document-versions { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; }
.document-nav { justify-content: space-between; margin-bottom: 1.25rem; }
.document-nav a { padding-block: .45rem; }
.document-brand { font-weight: 600; text-decoration: none; }
.document-card { padding: clamp(1.15rem, 5vw, 2.5rem); background: var(--surface); border: 1px solid var(--line); border-radius: 20px; overflow-wrap: anywhere; }
.document-card.document-privacy { border-color: var(--privacy-line); }
.document-card.document-terms { border-color: var(--terms-line); }
.document-card h2 { font-size: 1.2rem; margin-top: 1.75rem; }
.document-card h3 { font-size: 1rem; }
.document-card blockquote { margin-inline: 0; padding-inline: 1rem; border-inline-start: 2px solid var(--line); }
.document-card footer { padding-top: 1rem; border-top: 1px solid var(--line); }
.document-list, .price-list { list-style: none; padding: 0; margin: 1rem 0 0; }
.document-list { display: grid; gap: .625rem; }
.document-button { display: flex; align-items: center; min-height: 48px; padding: .6rem 1rem; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); text-decoration: none; font-weight: 600; }
.document-button.document-privacy { color: var(--privacy-text); background: var(--privacy-fill); border-color: var(--privacy-line); }
.document-button.document-terms { color: var(--terms-text); background: var(--terms-fill); border-color: var(--terms-line); }
.document-button:hover { text-decoration: underline; text-underline-offset: .2em; }
.price-list li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .25rem 1rem; padding: .625rem 0; border-bottom: 1px solid var(--line); }
.price-list strong { font-variant-numeric: tabular-nums; }

@media (prefers-reduced-motion: reduce) {
  details::details-content, summary::after { transition: none; }
}
