@font-face {
  font-family: Russo;
  src: url("/main/fonts/RussoOne-Regular.woff2") format("woff2");
  font-display: swap;
}
:root {
  color-scheme: dark;
  --bg: #060d0b;
  --paper: #101c17;
  --inset: #192a21;
  --text: #f3f7f5;
  --soft: #c9d6d0;
  --muted: #a0b3a8;
  --line: #304438;
  --green: #67ffa6;
  --mint: #67ffa6;
  --ink: #062416;
  --error: #ff978e;
  --gutter: clamp(16px, 4vw, 64px);
  font: 16px/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
@media (prefers-color-scheme: light) {
  :root {
    color-scheme: light;
    --bg: #f3f6f1;
    --paper: #fff;
    --inset: #e6eee6;
    --text: #122318;
    --soft: #35483d;
    --muted: #51645a;
    --line: #cad6cc;
    --green: #167343;
    --error: #9f2d23;
  }
}
* {box-sizing: border-box}
body {margin: 0; background: var(--bg); color: var(--text)}
.header, main, .footer {width: min(calc(100% - 2 * var(--gutter)), 1400px); margin-inline: auto}
img {max-width: 100%; display: block}
a {color: var(--green); text-underline-offset: .2em}
a:hover {text-decoration: underline}
a:focus-visible, button:focus-visible, summary:focus-visible, [tabindex]:focus-visible {outline: 3px solid var(--green); outline-offset: 3px}
:target {scroll-margin-top: 20px}
h1, h2, h3, .wordmark, .price b {font-family: Russo, sans-serif; font-weight: 400; line-height: 1.12}
h1, h2, h3, p, ul, ol, dl, dd {margin: 0}
h1 {font-size: clamp(38px, 5vw, 76px); letter-spacing: -.035em}
h2 {font-size: clamp(25px, 2.6vw, 40px); letter-spacing: -.03em}
h3 {font-size: clamp(19px, 1.7vw, 25px)}
p {color: var(--soft)}
p + p {margin-top: .8em}
button, summary {font: inherit; cursor: pointer}
.skip {position: absolute; z-index: 5; top: 8px; left: 8px; transform: translateY(-160%); padding: 10px 20px; background: var(--paper)}
.skip:focus {transform: none}
.header {min-height: 88px; display: flex; align-items: center; justify-content: space-between; gap: 16px}
.brand {display: inline-flex; align-items: center; gap: 9px; color: var(--text); text-decoration: none}
.brand:hover {text-decoration: none}
.wordmark {text-transform: uppercase; font-size: 23px; letter-spacing: -.045em}
.wordmark span {color: var(--green)}
.header nav, .footer nav {display: flex; align-items: center; gap: clamp(12px, 2.25vw, 36px)}
.header nav {margin-left: auto}
.header nav a {display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-size: 14px; font-weight: 650; text-decoration: none; color: var(--soft)}
.header nav a:hover, .header nav a[aria-current] {color: var(--green)}
.header nav a:last-child {padding: 0 17px; border: 1px solid var(--line); border-radius: 999px; color: var(--text)}
.campaign {position: relative; isolation: isolate; overflow: hidden; border-radius: 24px; background: #06120c; color: white; display: grid; min-height: clamp(370px, 35vw, 520px); align-items: end}
.campaign picture, .campaign picture img {position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2}
.campaign picture img {object-fit: cover; object-position: 76% center}
.campaign::after {content: ""; position: absolute; z-index: -1; inset: 0; background: linear-gradient(90deg, rgba(2,12,8,.9), rgba(2,12,8,.63) 32%, transparent 65%)}
.campaign-copy {padding: clamp(30px, 4.7vw, 72px); max-width: 64%}
.campaign h1 {font-size: clamp(48px, 5.1vw, 82px); line-height: 1.04}
.campaign em {font-style: normal; color: var(--mint)}
.campaign p {max-width: 39ch; margin: 19px 0 25px; font-size: clamp(16px, 1.35vw, 21px); color: #e0eae4}
.primary, .checkout-box button {display: inline-flex; align-items: center; justify-content: center; gap: 18px; min-height: 50px; padding: 10px 22px; border: 0; border-radius: 12px; background: var(--mint); color: var(--ink); text-decoration: none; font-family: inherit; font-size: 16px; line-height: 1.3; font-weight: 700}
.primary:hover, .checkout-box button:hover {background: #96ffbd; text-decoration: none}
.primary span, .text-link span {font-size: 1.25em}
.plans, .comparisons, .guide-section, .support-grid, .reading, main > .seller {margin-top: clamp(36px, 4.5vw, 72px)}
.section-top {display: flex; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 24px}
.section-top p {margin-top: 8px; color: var(--muted)}
.cur-switch {display: inline-flex; flex: none; align-items: center; padding: 4px; border: 1px solid var(--line); border-radius: 14px; background: var(--paper)}
.cur-switch button {border: 0; border-radius: 10px; min-height: 40px; padding: 4px 14px; white-space: nowrap; background: transparent; color: var(--soft); font-weight: 600}
.cur-switch .active {color: var(--ink); background: var(--mint)}
.cur-rub, html[data-currency=rub] .cur-kzt {display: none}
html[data-currency=rub] .cur-rub {display: inline}
.tariffs {display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 12px}
.tariff, .paper, .checkout-box {background: var(--paper); border: 1px solid var(--line); border-radius: 20px; min-width: 0}
.tariff {display: grid; grid-template-rows: auto auto auto 1fr; align-content: start; padding: clamp(18px, 1.7vw, 28px)}
@supports (grid-template-rows: subgrid) {
  .tariff {grid-row: span 4; grid-template-rows: subgrid; row-gap: 0}
}
.tariff h3 {font-size: clamp(21px, 1.9vw, 29px)}
.tariff-line {color: var(--muted); margin-top: 8px; min-height: 3em; font-size: 15px}
.price {color: var(--muted); font-size: 14px}
.price b {font-size: clamp(30px, 2.6vw, 41px); color: var(--text); white-space: nowrap; letter-spacing: -.055em}
.tariff .price {margin: 20px 0 16px}
.features {padding: 16px 0 0; border-top: 1px solid var(--line); list-style: none; display: grid; gap: 10px}
.features li {color: var(--soft); padding-left: 21px; position: relative; font-size: 15px; line-height: 1.45}
.features li::before {content: '✓'; position: absolute; left: 0; color: var(--green); font-weight: 700}
.featured {--text: #092617; --muted: #284e36; --soft: #133722; --line: #7bc796; --green: #16462b; background: #b3f8c8; color: var(--text); border-color: #b3f8c8}
.catalog-note {font-size: 14px; color: var(--muted); margin-top: 16px; max-width: 90ch}
.paper, .checkout-box {padding: clamp(22px, 2.5vw, 40px)}
.paper h2, .checkout-box h2 {font-size: clamp(22px, 2vw, 30px)}
.paper p, .paper dl {margin-top: 12px}
.comparisons, .support-grid {display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px}
.table-wrap {margin-top: 20px; overflow-x: auto}
.periods {width: 100%; border-collapse: collapse; font-size: 14px; line-height: 1.4; text-align: left; font-variant-numeric: tabular-nums}
.periods caption {position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%)}
.periods th, .periods td {padding: 12px 8px; border-bottom: 1px solid var(--line)}
.periods th:first-child {padding-left: 0}
.periods thead th {font-size: 13px; color: var(--muted)}
.periods tbody th {font-weight: 600}
.text-link, .back {display: inline-flex; align-items: center; min-height: 44px; gap: 8px; font-weight: 650; text-decoration: none}
.guide {display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); list-style: none; padding: 0; gap: 20px}
.guide li {border-top: 1px solid var(--line); padding-top: 16px}
.step-number {display: inline-block; font: 400 23px/1 Russo,sans-serif; color: var(--green); margin-bottom: 20px; animation: step-in 12s infinite}
.guide li:nth-child(2) .step-number {animation-delay: 3s}
.guide li:nth-child(3) .step-number {animation-delay: 6s}
.guide li:nth-child(4) .step-number {animation-delay: 9s}
@keyframes step-in {0%,23% {transform: translateX(3px)} 28%,100% {transform: none}}
.guide h3 {font-size: 20px; margin-bottom: 10px}
.guide p, .paper p, .seller dl {font-size: 15px}
.seller dl {display: grid; grid-template-columns: max-content minmax(0,1fr); gap: 9px 20px; overflow-wrap: anywhere}
.seller dt {color: var(--muted)}
.pay-logos {display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 20px}
.pay-logos img {box-sizing: content-box; height: 16px; width: auto; padding: 6px 8px; border-radius: 5px; background: #fff}
.footer {margin-top: clamp(40px, 6vw, 88px); padding: 30px 0 40px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; align-items: start; justify-content: space-between; gap: 20px}
.footer .brand img {width: 28px; height: 28px}
.footer .wordmark {font-size: 18px}
.footer nav {flex-wrap: wrap; gap: 8px 18px; max-width: 60ch}
.footer p, .footer nav a {font-size: 13px; color: var(--muted)}
.footer nav a {padding-block: 6px}
.footer .pay-logos {margin: 0}
.doc-title {display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: clamp(24px, 4vw, 56px); border-radius: 20px; border: 1px solid var(--line); background: var(--paper)}
.doc-title > div {min-width: 0}
.doc-title img {width: clamp(90px, 12vw, 172px)}
.doc-title h1 {font-size: clamp(29px, 4.4vw, 66px); overflow-wrap: anywhere}
.doc-title p {margin-top: 14px; color: var(--muted)}
.doc-title p span {padding: 0 7px}
.reading {display: grid; grid-template-columns: minmax(210px, 280px) minmax(0, 76ch); gap: clamp(24px, 6vw, 96px); justify-content: center; align-items: start}
.contents {position: sticky; top: 20px; max-height: calc(100vh - 40px); overflow: auto; scrollbar-width: thin}
.contents h2 {font-size: 20px; margin-bottom: 14px}
.contents nav {display: grid; gap: 1px; border-left: 2px solid var(--line); padding-left: 14px}
.contents a {display: block; padding: 5px 0; color: var(--muted); font-size: 14px; text-decoration: none}
.contents a:hover {color: var(--green); text-decoration: underline}
.mobile-toc {display: none}
.legal {overflow-wrap: anywhere; font-size: 16px; line-height: 1.7}
.legal h2 {font-size: clamp(23px, 2.1vw, 32px); margin: 32px 0 14px; padding-top: 20px; border-top: 1px solid var(--line)}
.legal h2:first-child {margin-top: 0; padding-top: 0; border: 0}
.legal h2:target {color: var(--green)}
.legal ul {display: grid; gap: 8px; padding-left: 21px; color: var(--soft)}
.legal li::marker {color: var(--green)}
.checkout {display: grid; grid-template-columns: 1.2fr 1fr; gap: 20px}
.checkout-intro {border-radius: 20px; overflow: hidden; background: #0b1510; color: #f3f7f5; position: relative; isolation: isolate; display: flex; flex-direction: column; justify-content: end; padding: clamp(24px, 3vw, 46px); min-height: clamp(360px, 32vw, 500px)}
.checkout-intro img {position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 56% 24%}
.checkout-intro::after {content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(transparent 48%, rgba(1,10,6,.93))}
.checkout-intro h1 {font-size: clamp(34px, 3.4vw, 54px)}
.checkout-intro p {margin-top: 6px; color: #e7efea}
.checkout-box {display: flex; flex-direction: column; justify-content: center; align-items: start; gap: 14px}
.checkout-box .price b {font-size: clamp(38px, 4.5vw, 64px)}
.checkout-box button {width: 100%; font-size: 16px}
.checkout-box button.quiet {background: var(--inset); color: var(--text)}
.checkout-box button[disabled] {opacity: .58; cursor: default}
.checkout-box h3 {margin: 6px 0 0; font-size: 18px}
.checkout-box .choice {display: grid; grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)); gap: 8px; width: 100%}
.opt {display: block; min-width: 0; cursor: pointer}
.opt input {position: absolute; opacity: 0; pointer-events: none}
.opt span {display: grid; gap: 2px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--inset); min-height: 58px; align-content: center}
.opt small {color: var(--muted); font-size: 13px; line-height: 1.3}
.opt input:checked + span {border-color: var(--green); box-shadow: 0 0 0 1px var(--green)}
.opt input:focus-visible + span {outline: 2px solid var(--green); outline-offset: 2px}
.agree {display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--soft)}
.agree input {margin-top: 4px; flex: none}
.total {margin: 4px 0 0; font-size: 18px}
.total b {font-size: clamp(26px, 3vw, 36px)}
.error {color: var(--error); overflow-wrap: anywhere}
.error:empty {display: none}
.small, .note {font-size: 15px}
.spinner {width: 34px; height: 34px; border: 3px solid var(--line); border-top-color: var(--green); border-radius: 50%; animation: spin 1s linear infinite}
@keyframes spin {to {transform: rotate(1turn)}}
@media (max-width: 1100px) {
  .tariffs, .guide {grid-template-columns: repeat(2,minmax(0,1fr))}
  .comparisons {grid-template-columns: 1fr}
  .tariff-line {min-height: auto}
}
@media (max-width: 800px) {
  .reading {display: block}
  .contents {position: static; max-height: none; margin-bottom: 20px; overflow: visible}
  .desktop-toc {display: none}
  .mobile-toc {display: block; border: 1px solid var(--line); border-radius: 12px; background: var(--paper)}
  .mobile-toc summary {padding: 14px; font-weight: 650}
  .mobile-toc nav {margin: 0 14px 14px}
  .contents a {padding: 8px 0}
  .support-grid {grid-template-columns: 1fr}
}
@media (max-width: 680px) {
  .campaign {display: flex; flex-direction: column; align-items: stretch; border-radius: 18px}
  .campaign picture, .campaign picture img {position: static; z-index: auto; height: auto}
  .campaign picture img {aspect-ratio: 1.95; object-fit: cover; object-position: center 35%}
  .campaign::after {display: none}
  .campaign-copy {max-width: none; padding: 20px 22px 25px}
  .campaign h1 {font-size: clamp(32px, 7.7vw, 49px)}
  .campaign p {margin: 12px 0 18px}
  .section-top {flex-wrap: wrap; align-items: start; margin-bottom: 16px}
  .tariffs {gap: 10px}
  .doc-title {padding: 20px}
  .doc-title img {display: none}
  .checkout {grid-template-columns: 1fr; gap: 12px}
  .checkout-intro {min-height: 270px}
}
@media (max-width: 500px) {
  .tariffs, .guide {grid-template-columns: 1fr}
  .tariff .price {margin: 10px 0 12px}
  .guide li {display: grid; grid-template-columns: 40px 1fr; gap: 4px 12px}
  .guide li .step-number {grid-row: span 2}
  .guide h3 {margin: 0}
  .paper {padding: 20px 16px}
  .seller dl {grid-template-columns: 1fr; gap: 0}
  .seller dd + dt {margin-top: 10px}
  .periods {font-size: 13px}
  .periods th, .periods td {padding: 9px 4px}
  .footer {display: grid}
}
@media (prefers-reduced-motion: reduce) {
  .spinner, .step-number {animation: none}
}
@media (max-width: 680px) {
  .campaign picture img {object-position: center 10%}
}

/* Pair each value with its column heading when a full table would require sideways scrolling. */
@media (max-width: 500px) {
  .periods thead {position: absolute; clip-path: inset(50%); width: 1px; height: 1px; overflow: hidden}
  .periods tbody, .periods tbody tr {display: block}
  .periods tbody tr {padding-block: 12px; border-top: 1px solid var(--line)}
  .periods tbody th {display: block; padding: 0 0 4px; font-size: 15px; border: 0}
  .periods td {display: flex; justify-content: space-between; align-items: baseline; gap: 8px; padding: 3px 0; border: 0; text-align: right}
  .periods td::before {content: attr(data-label); color: var(--muted); text-align: left}
}
html:not([data-currency]) .cur-switch {display: none}

/* Language switcher: Russian, Kazakh, English. Without the script all three are links in a row; with it (class `dd`, set by pay.js) it is one drop-down list on every width,
   at the right of the button «Моя подписка» in the same row. */
.lang-switch {display: flex; align-items: center; gap: 4px; margin-left: 12px}
.lang-switch a {display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 6px 8px; border: 1px solid transparent; border-radius: 9px; font-size: 12px; letter-spacing: .06em; color: var(--muted); text-decoration: none}
.lang-switch a:hover {color: var(--text); border-color: var(--line)}
.lang-switch a[aria-current="true"] {color: var(--text); border-color: var(--green); background: var(--paper)}
.lang-switch .flag {display: block; width: 22px; height: 15px; border-radius: 2px; box-shadow: 0 0 0 1px rgba(0, 0, 0, .27)}
.lang-switch.dd {position: relative; display: block}
.lang-switch.dd a {display: none}
.lang-switch.dd a[aria-current="true"] {display: inline-flex; box-sizing: border-box; width: 72px; min-height: 44px; justify-content: space-between; padding: 6px 10px; border-color: var(--line); border-radius: 999px; background: var(--paper)}
.lang-switch.dd a[aria-current="true"]::after {content: ""; width: 6px; height: 6px; margin-left: 2px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translate(-1px, -1px); transition: transform .15s}
.lang-switch.dd.open a[aria-current="true"]::after {transform: rotate(-135deg) translate(-1px, -1px)}
.lang-switch.dd.open a:not([aria-current="true"]) {display: flex; position: absolute; right: 0; top: calc(100% + 6px); box-sizing: border-box; width: 72px; min-height: 44px; padding: 6px 10px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); box-shadow: 0 8px 22px rgba(0, 0, 0, .35); z-index: 30; color: var(--text)}
.lang-switch.dd.open a:not([aria-current="true"]) ~ a:not([aria-current="true"]) {top: calc(100% + 56px)}
.lang-switch.dd.open a:not([aria-current="true"]) ~ a:not([aria-current="true"]) ~ a:not([aria-current="true"]) {top: calc(100% + 106px)}
.lang-switch.dd.open a:not([aria-current="true"]):focus-visible, .lang-switch.dd a:focus-visible {outline: 2px solid var(--green); outline-offset: 2px}
html:not([lang="ru"]) .header nav a {white-space: nowrap}
/* Russo One has no Kazakh letters: in Kazakh the headings and prices use a bold system font. */
html[lang="kk"] :is(h1, h2, h3, .price b) {font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif; font-weight: 800}

/* release 247 (wish 21, second wave): up to 900px the first row is the mark and the word at the left, the button of the subscription and the drop-down list of the language at the
   right (the button stands left of the list with a small gap); the links go to the second row */
@media (max-width: 900px) {
  .header {display: grid; grid-template-columns: 1fr auto; grid-template-areas: "brand lang" "nav nav"; align-items: center; column-gap: 8px; row-gap: 0; position: relative; min-height: 0; padding: 8px 0}
  .header .brand {grid-area: brand; width: fit-content; gap: 6px}
  .header .brand img {width: 30px; height: 30px}
  .header .wordmark {font-size: 18px}
  .header .lang-switch {grid-area: lang; margin-left: 0}
  .header .lang-switch.dd a[aria-current="true"], .header .lang-switch.dd.open a:not([aria-current="true"]) {width: 64px; min-height: 38px}
  .header .lang-switch.dd.open a:not([aria-current="true"]) {min-height: 44px}
  .header .lang-switch.dd.open a:not([aria-current="true"]) ~ a:not([aria-current="true"]) {top: calc(100% + 56px)}
  .header nav {grid-area: nav; margin: 0; display: flex; flex-wrap: wrap; justify-content: flex-start; gap: 0 14px}
  .header nav a {min-height: 38px; font-size: 13px}
  .header nav a:last-child {position: absolute; top: 8px; right: 72px; min-height: 38px; padding: 0 12px; border: 1px solid var(--line); font-size: 12px; white-space: nowrap}
}
@media (max-width: 420px) {
  .header .brand {gap: 5px}
  .header .brand img {width: 26px; height: 26px}
  .header .wordmark {font-size: 15px}
  .header nav a:last-child {padding: 0 8px; font-size: 11px}
  .header nav a:last-child span {display: none}
}
