@font-face { font-family: Tinos; font-display: block; font-weight: 400; src: url(fonts/tinos-cyrillic-400.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: Tinos; font-display: block; font-weight: 400; src: url(fonts/tinos-latin-400.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: Tinos; font-display: block; font-weight: 700; src: url(fonts/tinos-cyrillic-700.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: Tinos; font-display: block; font-weight: 700; src: url(fonts/tinos-latin-700.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: #1c1a1b;
  --deep: #0c0e0e;
  --text: #f0ebee;
  --muted: #b8afb6;
  --line: #3b3638;
  --bone: #cfc2b3;
  --red: #873730;
  --red-deep: #672a25;
  --ok: #8fe3a8;
  --warn: #f2b36b;
  --bad: #ff8f8f;
  --pad: clamp(16px, 5vw, 64px);
  --font: Tinos, "Times New Roman", Times, serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; color: var(--text); background: var(--bg); font: 400 18px/1.55 var(--font); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
p { margin: 0 0 12px; }
a { color: var(--text); text-decoration: underline; text-decoration-color: var(--red); text-underline-offset: 4px; text-decoration-thickness: 2px; }
a:hover { text-decoration-color: var(--text); }
code { font: 400 17px/1.5 var(--font); color: var(--text); word-break: break-all; }
b.host { font-weight: 700; word-break: break-all; }
h1, h2 { font-family: var(--font); margin: 0; }
h2 { font-size: clamp(25px, 3vw, 32px); line-height: 1.15; font-weight: 700; margin: 52px 0 12px; max-width: 22em; }
h3 { font-size: 21px; font-weight: 700; margin: 36px 0 8px; }

/* шапка */
.bar { max-width: 1000px; margin: 0 auto; padding: 22px var(--pad) 0; display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: clamp(28px, 6vw, 72px); align-items: center; }
.bar nav { justify-self: end; }
.motto { margin: 0; text-align: center; font: 700 20px/1.2 var(--font); letter-spacing: .01em; }
.bar nav { display: flex; gap: 22px; font-size: 17px; }

/* первый экран: герб и текст на одной оси */
.hero { max-width: 1000px; margin: 0 auto; padding: clamp(28px, 6vh, 72px) var(--pad) clamp(28px, 5vh, 56px);
  display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: clamp(28px, 6vw, 72px); align-items: start; }
.crest { width: 100%; max-width: 300px; height: auto; }
/* верх буквы «Ч» стоит на одной линии с правым верхним углом щита (11.9% высоты картинки) */
.hero-text { max-width: 560px; padding-top: calc(300px * 821 / 600 * .119); }
h1 { text-box: trim-both cap alphabetic; }
@supports not (text-box: trim-both cap alphabetic) { h1 { margin-top: -.141em; } }
h1 { font-size: clamp(64px, 11vw, 128px); line-height: .92; font-weight: 700; letter-spacing: -0.01em; }
h1::after { content: ""; display: block; width: 72px; height: 3px; background: var(--red); margin: 26px 0 24px; }
.lead { font-size: clamp(21px, 2.3vw, 28px); line-height: 1.35; font-weight: 400; margin-bottom: 12px; }
.facts { font-size: clamp(19px, 1.9vw, 23px); line-height: 1.35; font-weight: 700; color: var(--text); margin-bottom: 22px; }

.status { display: flex; gap: 10px; align-items: center; color: var(--muted); font-size: 16px; line-height: 1.4; margin: 0; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--muted); flex: none; }
.status.ok .dot { background: var(--ok); }
.status.warn .dot { background: var(--warn); }
.status.bad .dot { background: var(--bad); }

/* середина: одна колонка, по одной оси с шапкой и гербом */
main { max-width: 1000px; margin: 0 auto; padding: 0 var(--pad) 24px; }
main p, main ol, main dd, main details { max-width: 46em; }

/* выбор устройства */
.platforms { display: flex; flex-wrap: wrap; gap: 6px 30px; padding: 16px 0 14px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.platforms a { font: 700 19px var(--font); text-decoration-color: transparent; color: var(--muted); padding: 4px 0; }
.platforms a:hover { color: var(--text); }
.platforms a[aria-current="true"] { color: var(--text); text-decoration-color: var(--red); }
.pick-title { margin: 0 0 14px; }
.platforms a[data-me]::after { content: "· ваше"; display: inline-block; margin-left: .3em; text-decoration: none; font-weight: 400; font-size: 15px; color: var(--muted); }

/* рамки для значений, которые надо скопировать и вставить в настройки */
.label { margin: 18px 0 6px; font-size: 15px; color: var(--muted); }
.copybox { display: flex; align-items: center; justify-content: space-between; gap: 12px 20px; flex-wrap: wrap;
  max-width: 46em; margin: 0 0 14px; padding: 14px 18px; background: var(--deep); border: 1px solid var(--line); }
.copybox code { flex: 1 1 16em; min-width: 0; font-size: 18px; font-weight: 700; color: var(--text); }
.copybox pre { flex: 1 1 100%; margin: 0; overflow-x: auto; font: 400 15px/1.5 ui-monospace, Menlo, monospace; color: var(--text); }
.copybox.code { align-items: flex-end; }
.steps .copybox { margin: 10px 0 4px; }
.copy { flex: none; background: none; border: 0; padding: 4px 0; font: 700 17px var(--font); color: var(--text); cursor: pointer;
  text-decoration: underline; text-decoration-color: var(--red); text-underline-offset: 5px; text-decoration-thickness: 2px; }
.copy:hover { text-decoration-color: var(--text); }

section { padding-top: 8px; }
.action { display: inline-flex; align-items: center; gap: 16px; margin: 12px 0 10px; font: 700 21px/1.3 var(--font); text-decoration: none; }
.action > span:last-child { border-bottom: 2px solid var(--red); padding-bottom: 2px; }
.action:hover > span:last-child { border-bottom-color: var(--text); }
.action.small { font-size: 18px; }
.mark { width: 52px; height: 52px; border-radius: 50%; flex: none; display: inline-grid; place-items: center;
  background: var(--red); color: var(--text); font: 700 22px/1 var(--font); transition: transform .25s, background .25s; }
.action:hover .mark { transform: translateY(3px); background: var(--red-deep); }
.action.small .mark { width: 40px; height: 40px; font-size: 18px; }
.hint { color: var(--muted); font-size: 17px; line-height: 1.5; }
.count { color: var(--text); font-weight: 700; font-size: 17px; line-height: 1.45; margin: 0 0 6px; }
.off { font-size: 17px; line-height: 1.5; color: var(--muted); margin-top: 18px; padding-left: 16px; border-left: 2px solid var(--red); }
.off b { color: var(--text); }
.steps { padding-left: 1.4em; margin: 8px 0 18px; }
.steps li { margin: 0 0 8px; padding-left: 4px; }
.steps li::marker { color: var(--muted); font-weight: 700; }

details { border-top: 1px solid var(--line); padding: 14px 0 6px; }
details:last-of-type { border-bottom: 1px solid var(--line); padding-bottom: 14px; }
summary { cursor: pointer; font-weight: 700; font-size: 19px; }
details[open] summary { margin-bottom: 8px; }

.levels { margin-top: 44px; border-top: 1px solid var(--line); }
dl { margin: 0; }
dt { font: 700 20px var(--font); margin-top: 22px; }
dd { margin: 6px 0 0; color: var(--muted); max-width: 40em; }
dd.no { color: var(--text); }

/* подвал */
footer { background: var(--deep); margin-top: 56px; }
.foot { max-width: 1000px; margin: 0 auto; padding: 8px var(--pad) 56px; color: var(--muted); font-size: 17px; line-height: 1.5; }
.foot > p, .foot dl, .foot details, .ksd { max-width: 46em; }
footer code { font-size: 17px; color: var(--muted); }
#tgLine { padding-top: 40px; margin: 0; color: var(--text); font-size: 18px; }
.more { margin: 36px 0 0; }
.ksd { display: block; margin: 40px 0 8px; padding: 22px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); text-decoration: none; color: var(--text); font-size: 18px; line-height: 1.45; }
.ksd u { text-decoration-color: var(--red); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.ksd:hover u { text-decoration-color: var(--text); }
.donate { border: 0; padding: 14px 0 0; margin: 0 0 16px; }
.donate summary { font-size: 17px; font-weight: 700; color: var(--muted); }
.donate p { font-size: 17px; }
.donate code { display: block; margin: 6px 0 10px; font-size: 17px; color: var(--text); }
.donate .warn { font-size: 15px; }

@media (max-width: 720px) {
  .hero { grid-template-columns: 1fr; gap: 18px; padding-top: 24px; }
  .bar { grid-template-columns: 1fr; gap: 10px; text-align: center; }
  .bar nav { justify-self: center; }
  .crest { justify-self: center; width: 124px; }
  .hero { text-align: center; }
  .hero-text { padding-top: 0; margin: 0 auto; }
  .status { justify-content: center; }
  h1::after { margin: 16px auto 16px; }
  .facts { margin-bottom: 16px; }
  .bar nav { gap: 16px; font-size: 15px; }
  .bar nav a { white-space: nowrap; }
  .motto { font-size: 16px; }
}
@media (max-width: 420px) {
  body { font-size: 17px; }
  .action { font-size: 19px; }
}
[hidden] { display: none !important; }

/* VPN */
.vpn-pick { display: flex; flex-wrap: wrap; gap: 4px 24px; margin: 20px 0 6px; max-width: none; }
.vpn-pick button { font: 700 18px var(--font); color: var(--muted); background: none; border: 0; padding: 4px 0; cursor: pointer;
  text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 6px; text-decoration-thickness: 2px; }
.vpn-pick button:hover { color: var(--text); }
.vpn-pick button[aria-selected="true"] { color: var(--text); text-decoration-color: var(--red); }
.vpn-item { margin: 22px 0 6px; }
.vpn-item h3 { margin: 0 0 4px; font-size: 19px; }
.vpn-item h3 + .copybox { margin-top: 8px; }
.vpn-sizes { color: var(--muted); font-size: 16px; }
.vpn-sizes a { color: var(--muted); }

/* iPhone: шаги со скринами и стрелками */
.ios-steps { list-style: none; margin: 26px 0 8px; padding: 0; max-width: none; }
.ios-step { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 340px); gap: 18px clamp(24px, 5vw, 64px); align-items: start;
  padding: 34px 0; border-top: 1px solid var(--line); }
.ios-step:last-child { border-bottom: 1px solid var(--line); }
.ios-text .n { display: block; font: 700 clamp(52px, 6vw, 72px)/.9 var(--font); }
.ios-text .n::after { content: ""; display: block; width: 40px; height: 3px; background: var(--red); margin: 14px 0 16px; }
.ios-text h3 { margin: 0 0 8px; font-size: 24px; line-height: 1.2; }
.ios-text p { max-width: 24em; }
.shot { display: block; width: 100%; height: auto; }
.shot .ring { fill: none; stroke: #ec5a4c; stroke-width: 5; transform-box: fill-box; transform-origin: center; animation: ring 2.4s ease-in-out infinite; }
.shot .arrow { fill: none; stroke: #ec5a4c; stroke-width: 6; stroke-linecap: round; stroke-dasharray: 400; stroke-dashoffset: 0; }
.tick { width: 120px; justify-self: start; }
.tick circle { fill: none; stroke: var(--red); stroke-width: 5; }
.tick path { fill: none; stroke: var(--text); stroke-width: 9; stroke-linecap: round; stroke-linejoin: round; }
@keyframes ring { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .45; transform: scale(1.04); } }
@media (prefers-reduced-motion: reduce) { .shot .ring { animation: none; } }
.more-ios { border: 0; padding: 14px 0 0; }
.more-ios summary { font-size: 17px; color: var(--muted); }
.vpn-note { margin-top: 18px; }
@media (max-width: 720px) {
  .ios-step { grid-template-columns: minmax(0, 1fr); padding: 28px 0; }
  .shot { max-width: 380px; }
  .ios-text p { max-width: none; }
}
