/* Публичный сайт WITNESS: газетная вёрстка, только светлая тема, свои шрифты, без внешних ресурсов и JS. */

/* Шрифты: Source Serif 4 (SIL OFL) — заголовки и текст; Inter (SIL OFL) — мелкие подписи. Лицензии в fonts/. */
@font-face { font-family: "WSerif"; font-style: normal; font-weight: 200 900; font-display: swap;
  src: url(fonts/source-serif-4-cyrillic-opsz-normal.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "WSerif"; font-style: normal; font-weight: 200 900; font-display: swap;
  src: url(fonts/source-serif-4-latin-opsz-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: "WSerif"; font-style: italic; font-weight: 200 900; font-display: swap;
  src: url(fonts/source-serif-4-cyrillic-opsz-italic.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "WSerif"; font-style: italic; font-weight: 200 900; font-display: swap;
  src: url(fonts/source-serif-4-latin-opsz-italic.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: "WSans"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url(fonts/inter-cyrillic-wght-normal.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "WSans"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url(fonts/inter-latin-wght-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; }

/*
 * Токены. Бумага — тёплый off-white; чернила почти чёрные; один акцент — тёмно-синий
 * (ссылки и главная кнопка), контраст на бумаге ≈ 11:1. Вторичный текст ≈ 7:1.
 */
:root {
  color-scheme: light;
  --paper: #fbf9f4;
  --ink: #121212;
  --muted: #4f4c45;
  --rule: #cfcac0;
  --accent: #1d3557;
  --accent-hover: #10213a;
  --serif: "WSerif", Georgia, "Times New Roman", serif;
  --sans: "WSans", "Helvetica Neue", Arial, sans-serif;
  --measure: 38rem;
  --gutter: clamp(1.25rem, 3vw, 2.25rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--paper); scroll-behavior: smooth; }
body { margin: 0; font: 1.125rem/1.6 var(--serif); color: var(--ink); background: var(--paper); font-optical-sizing: auto; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

h1, h2, h3 { font-family: var(--serif); font-weight: 700; margin: 0; text-wrap: balance; }
p { margin: 0 0 1rem; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; height: auto; }

a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { color: var(--accent-hover); text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.wrap { width: min(100% - 2.5rem, 74rem); margin-inline: auto; }

.skip { position: absolute; left: 1rem; top: -4rem; background: var(--ink); color: var(--paper); padding: .6rem 1rem; z-index: 20; }
.skip:focus { top: 1rem; }

/* Мелкие подписи: гротеск, капитель трекингом. */
.kicker, .col-head, .sections a, .langs, figcaption, .amount-label, .route-name {
  font-family: var(--sans); font-size: .75rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
}

/* ===== Шапка издания ===== */
.masthead { padding-top: .5rem; }
.ears { display: flex; align-items: center; justify-content: space-between; gap: 1rem; border-bottom: 1px solid var(--rule); }
.kicker { margin: 0; color: var(--muted); }
.langs { display: flex; align-items: center; }
.lang { min-width: 2.75rem; min-height: 2.75rem; display: inline-flex; align-items: center; justify-content: center; color: var(--muted); }
.lang.is-current { color: var(--ink); }
.sep { color: var(--rule); }

.brand {
  display: flex; align-items: center; justify-content: center; gap: .22em; text-align: center; color: var(--ink); text-decoration: none;
  font-family: var(--serif); font-weight: 800; font-size: clamp(2.75rem, 11vw, 5.5rem); line-height: 1;
  letter-spacing: .04em; padding: clamp(.9rem, 2.5vw, 1.4rem) 0 clamp(.7rem, 2vw, 1.1rem);
  font-variation-settings: "opsz" 60;
}
.brand:hover { color: var(--ink); }
.brand-mark { width: .82em; height: .82em; flex: none; }
.foot-brand { display: flex; align-items: center; gap: .5rem; }
.foot-mark { width: 1.5rem; height: 1.5rem; flex: none; }
/* Двойная линия под названием издания. */
.sections { border-top: 3px double var(--ink); border-bottom: 1px solid var(--ink); }
.sections ul { display: flex; justify-content: center; flex-wrap: wrap; gap: 0 clamp(.75rem, 2.5vw, 2rem); }
.sections a { display: inline-flex; align-items: center; min-height: 2.75rem; color: var(--ink); text-decoration: none; }
.sections a:hover { text-decoration: underline; }
@media (max-width: 40rem) {
  /* На телефоне рубрики переносятся на вторую строку. */
  .sections ul { flex-wrap: wrap; justify-content: flex-start; gap: 0 1rem; }
}

/* ===== Первая полоса ===== */
.hero { display: grid; gap: 2rem var(--gutter); padding-block: clamp(1.75rem, 5vw, 3.5rem); }
.hero h1 { font-size: clamp(2.2rem, 7vw, 4rem); line-height: 1.06; letter-spacing: -.01em; font-variation-settings: "opsz" 60; margin-bottom: 1.25rem; max-width: 16ch; }
.lead { font-size: clamp(1.15rem, 2.2vw, 1.35rem); line-height: 1.5; max-width: var(--measure); }
.lead::first-letter { float: left; font-size: 3.4em; line-height: .82; font-weight: 700; padding: .06em .1em 0 0; }
.note { color: var(--muted); font-size: .95rem; font-style: italic; }
.hero-map { margin: 0; align-self: start; }
.hero-map .map { width: 100%; }
figcaption { color: var(--muted); padding-top: .6rem; margin-top: .75rem; border-top: 1px solid var(--rule); }
@media (min-width: 56rem) {
  .hero { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
  .hero-map { border-left: 1px solid var(--rule); padding-left: var(--gutter); padding-top: .5rem; }
}

/* Кнопка бота — единственная плотная плашка акцента. Без теней и скруглений. */
.cta { margin: 1.75rem 0 .75rem; }
.btn {
  display: inline-flex; align-items: center; min-height: 3rem; padding: .75rem 1.6rem;
  background: var(--accent); color: var(--paper); border: 1px solid var(--accent);
  font: 600 .85rem/1.2 var(--sans); letter-spacing: .1em; text-transform: uppercase; text-decoration: none;
}
a.btn:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: var(--paper); text-decoration: underline; }
a.btn:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.btn.is-disabled { background: transparent; color: var(--muted); border-color: var(--rule); text-transform: none; letter-spacing: 0; font-weight: 500; }

/* ===== Разделы ===== */
.sec { padding-block: clamp(2.25rem, 6vw, 4rem); border-top: 2px solid var(--ink); }
.sec-head { margin-bottom: clamp(1.5rem, 4vw, 2.5rem); }
.sec-head h2 { font-size: clamp(1.9rem, 5vw, 2.9rem); line-height: 1.1; font-variation-settings: "opsz" 48; }
.deck { font-style: italic; font-size: clamp(1.1rem, 2.2vw, 1.3rem); color: var(--muted); margin: .5rem 0 0; max-width: var(--measure); }
@media (min-width: 56rem) {
  .sec-head { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--gutter); align-items: end; }
  .deck { margin: 0; }
}
.col-head { display: block; color: var(--ink); padding-bottom: .5rem; margin-bottom: .25rem; border-bottom: 1px solid var(--ink); }

/* Схема «путь видео»: четыре станции, между ними штрих-стрелка. */
.route { margin: 0 0 clamp(1.5rem, 4vw, 2.5rem); padding-block: 1.25rem; border-block: 1px solid var(--rule); }
.route-steps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem 1rem; counter-reset: r; }
.route-steps li { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: .5rem; }
.route svg { width: 5rem; fill: none; stroke: var(--ink); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.route svg .hatch { stroke-width: .8; stroke-dasharray: 1.5 2; }
.route svg .thin { stroke-width: .7; }
.route-name { color: var(--ink); }
@media (min-width: 40rem) {
  .route-steps { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .route-steps li + li::before {
    content: ""; position: absolute; top: 2rem; right: calc(50% + 3.25rem); width: calc(100% - 6.5rem + 1rem);
    border-top: 1px solid var(--ink);
  }
  .route-steps li + li::after {
    content: ""; position: absolute; top: calc(2rem - 4px); right: calc(50% + 3.25rem); width: 8px; height: 8px;
    border-top: 1px solid var(--ink); border-right: 1px solid var(--ink); transform: rotate(45deg);
  }
}

/* Шаги: колонки, как в газетной полосе, тонкие вертикальные линии между ними. */
.steps { display: grid; grid-template-columns: minmax(0, 1fr); }
.steps li { padding-block: 1.25rem; border-top: 1px solid var(--rule); }
.steps li:first-child { border-top: 0; padding-top: 0; }
.num { display: block; font-size: 2.75rem; line-height: 1; font-weight: 300; font-variant-numeric: lining-nums; margin-bottom: .5rem; font-variation-settings: "opsz" 60; }
.steps h3 { font-size: 1.2rem; line-height: 1.25; margin-bottom: .5rem; }
.steps p { margin: 0; font-size: 1rem; line-height: 1.55; }
@media (min-width: 40rem) and (max-width: 63.99rem) {
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--gutter); }
  .steps li:nth-child(2) { border-top: 0; padding-top: 0; }
}
@media (min-width: 64rem) {
  .steps { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .steps li { border-top: 0; padding: 0 1.1rem; border-left: 1px solid var(--rule); }
  .steps li:first-child { padding-left: 0; border-left: 0; }
  .steps li:last-child { padding-right: 0; }
}

/* Принимаем / не принимаем. */
.pair { display: grid; gap: 2rem; }
@media (min-width: 48rem) {
  .pair { grid-template-columns: 1fr 1fr; gap: 0; }
  .pair > div:first-child { padding-right: var(--gutter); }
  .pair > div + div { border-left: 1px solid var(--rule); padding-left: var(--gutter); }
}
.plain li { padding-block: .7rem; border-bottom: 1px solid var(--rule); font-size: 1.05rem; }

/* Безопасность: газетные колонки с линией между ними; предупреждения — курсивом и с жирной линией. */
.points { margin: 0; }
.points > div { break-inside: avoid; padding-block: 1rem; border-top: 1px solid var(--rule); }
.points > div:first-child { border-top: 0; padding-top: 0; }
.points dt { font-weight: 700; font-size: 1.15rem; line-height: 1.3; margin-bottom: .3rem; }
.points dd { margin: 0; font-size: 1rem; }
.points .warn { border-top: 2px solid var(--ink); padding-top: 1rem; }
.points .warn dt { font-style: italic; font-size: 1.35rem; }
@media (min-width: 48rem) {
  .points { column-count: 2; column-gap: calc(var(--gutter) * 2); column-rule: 1px solid var(--rule); }
  .points > div { display: inline-block; width: 100%; }
}

/* Винагорода: цифра из настроек крупно, слева; пояснение справа. */
.reward { display: grid; gap: 1.5rem var(--gutter); }
.amount { margin: 0; display: flex; flex-direction: column; gap: .5rem; padding-bottom: 1.25rem; border-bottom: 1px solid var(--rule); }
.amount-label { color: var(--muted); }
.amount-value { font-size: clamp(2.75rem, 9vw, 4.5rem); font-weight: 300; line-height: 1; font-variant-numeric: lining-nums; font-variation-settings: "opsz" 60; }
.statement { font-size: clamp(1.3rem, 2.6vw, 1.6rem); line-height: 1.35; font-weight: 600; }
.reward div { max-width: var(--measure); }
@media (min-width: 56rem) {
  .reward { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
  .amount { border-bottom: 0; border-right: 1px solid var(--rule); padding: 0 var(--gutter) 0 0; }
}

/* Вопросы: две колонки на широком экране. */
.faq { display: grid; column-gap: calc(var(--gutter) * 2); align-items: start; }
.faq details { border-top: 1px solid var(--rule); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: baseline; gap: 1.25rem; min-height: 2.75rem; padding-block: .9rem; font-weight: 700; font-size: 1.1rem; line-height: 1.35; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--sans); font-weight: 400; color: var(--muted); flex: none; }
.faq details[open] summary::after { content: "\2212"; }
.faq summary:hover { color: var(--accent); }
.faq details p { margin: 0; padding-bottom: 1.1rem; font-size: 1rem; }
@media (min-width: 56rem) {
  .faq { grid-template-columns: 1fr 1fr; }
  .faq details:nth-child(-n+2) { border-top: 0; }
}
@media (max-width: 55.99rem) {
  .faq details:first-child { border-top: 0; }
}

/* Документы и контакты — две колонки. */
.duo { display: grid; gap: 2.5rem var(--gutter); }
.duo .col-head { font-size: .75rem; font-weight: 600; }
.duo p { margin-top: 1rem; }
.docs li { padding-block: .7rem; border-bottom: 1px solid var(--rule); }
@media (min-width: 48rem) {
  .duo { grid-template-columns: 1fr 1fr; gap: 0; }
  .duo > section:first-child { padding-right: var(--gutter); }
  .duo > section + section { border-left: 1px solid var(--rule); padding-left: var(--gutter); }
}

/* Подвал: двойная линия, как под шапкой. */
.foot { border-top: 3px double var(--ink); margin-top: 1rem; }
.foot-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .25rem 2rem; padding-block: 1.25rem 3rem; font-size: .95rem; color: var(--muted); }
.foot-row p { margin: 0; display: flex; align-items: center; min-height: 2.75rem; }
.foot-brand { font-weight: 800; letter-spacing: .06em; color: var(--ink); }
