/* United VPN — "transit map" design. Paper, ink, hard rules, one line colour per country. */

@font-face { font-family: "Unbounded"; font-weight: 500 800; font-display: swap; src: url(fonts/unbounded-cyrillic.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Unbounded"; font-weight: 500 800; font-display: swap; src: url(fonts/unbounded-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Onest"; font-weight: 400 700; font-display: swap; src: url(fonts/onest-cyrillic.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Onest"; font-weight: 400 700; font-display: swap; src: url(fonts/onest-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "JetBrains Mono"; font-weight: 500 700; font-display: swap; src: url(fonts/mono-cyrillic.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "JetBrains Mono"; font-weight: 500 700; font-display: swap; src: url(fonts/mono-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --paper: #f3ead9;
  --paper-2: #e8dac0;
  --land: #d9c39c;
  --ink: #2b2520;
  --ink-2: #463a31;
  --muted: #7b6a58;
  --accent: #f6a81a;
  --accent-soft: #fbd98c;
  --de: #e0442b;
  --fi: #1f5fd6;
  --at: #8b3ff2;
  --us: #e99a0c;
  --ru: #0f8f6e;
  --rule: 2px solid var(--ink);
  --wrap: 1200px;
  --display: "Unbounded", "Arial Black", system-ui, sans-serif;
  --text: "Onest", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 17px/1.55 var(--text); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 700; letter-spacing: -.02em; line-height: 1.02; }
h2 { font-size: clamp(28px, 4vw, 48px); }
h3 { font-size: 18px; letter-spacing: 0; }
p { margin: 0; }
a { color: inherit; text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--fi); outline-offset: 3px; }
.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
.muted { color: var(--muted); }
.skip { position: absolute; left: 16px; top: -60px; z-index: 50; padding: 10px 14px; background: var(--ink); color: var(--accent); font-weight: 600; }
.skip:focus { top: 12px; }

/* Line colour swatches */
i[class^="c-"] { display: inline-block; flex: none; width: 22px; height: 6px; border-radius: 3px; vertical-align: middle; }
.c-de { background: var(--de); stroke: var(--de); }
.c-fi { background: var(--fi); stroke: var(--fi); }
.c-at { background: var(--at); stroke: var(--at); }
.c-us { background: var(--us); stroke: var(--us); }
.c-ru { background: var(--ru); stroke: var(--ru); }

/* Buttons: flat, hard-edged, offset shadow */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 54px; padding: 0 24px; border: var(--rule); border-radius: 0;
  font: 600 16px/1 var(--text); text-decoration: none; white-space: nowrap;
  transition: transform .12s ease, box-shadow .12s ease;
}
.btn--lime { background: var(--accent); color: var(--ink); box-shadow: 4px 4px 0 var(--ink); }
.btn--lime:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); }
.btn--lime:active { transform: translate(4px, 4px); box-shadow: 0 0 0 var(--ink); }
.btn--line { background: transparent; color: var(--ink); }
.btn--line:hover { background: var(--ink); color: var(--paper); }
.btn--ink { background: var(--ink); color: var(--accent); }
.btn--ink:hover { background: var(--ink-2); }
.btn--sm { min-height: 42px; padding: 0 16px; font-size: 14px; }
.btn--block { width: 100%; }

/* Ticker */
.ticker { overflow: hidden; background: var(--ink); color: var(--paper); font: 500 12px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.ticker__track { display: flex; width: max-content; animation: ticker 40s linear infinite; }
.ticker span { display: inline-flex; align-items: center; gap: 10px; padding: 10px 22px; border-right: 1px solid #463b33; white-space: nowrap; }
.ticker i { width: 14px; height: 4px; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* Header */
.header { position: sticky; top: 0; z-index: 20; background: var(--paper); border-bottom: var(--rule); }
.header__inner { display: flex; align-items: center; gap: 28px; height: 68px; }
.logo { display: inline-flex; align-items: center; gap: 12px; font: 700 17px/1 var(--display); letter-spacing: -.01em; text-decoration: none; }
.logo__mark { width: 40px; height: 24px; }
.logo__mark rect { fill: var(--paper); stroke: var(--ink); stroke-width: 3; }
.logo__mark circle { fill: var(--ink); }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a { padding: 8px 12px; font-size: 15px; font-weight: 500; text-decoration: none; }
.nav a:hover { background: var(--ink); color: var(--paper); }

/* Hero */
.hero { padding: 56px 0 72px; }
.hero__top { display: grid; grid-template-columns: 1.25fr .75fr; gap: 48px; align-items: end; margin-bottom: 40px; }
.hero h1 { font-size: clamp(40px, 6.6vw, 92px); letter-spacing: -.04em; line-height: .98; }
.hl { background: linear-gradient(transparent 58%, var(--accent) 58%, var(--accent) 92%, transparent 92%); padding-right: .1em; }
.lead { font-size: 19px; color: var(--ink-2); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 26px; }

/* Map */
.map { margin: 0; border: var(--rule); background: var(--paper); position: relative; }
.map__scroll { overflow-x: auto; scrollbar-width: thin; }
.map__svg { display: block; width: 100%; min-width: 820px; height: auto; }
.map__grat { fill: none; stroke: var(--ink); stroke-opacity: .09; stroke-width: 1; }
.map__land { fill: var(--land); stroke: var(--paper); stroke-width: .8; stroke-linejoin: round; }
.map__cty { stroke-width: 1.4; stroke-linejoin: round; transition: opacity .2s; }
.map__cty[data-node="de"] { stroke: var(--de); }
.map__cty[data-node="fi"] { stroke: var(--fi); }
.map__cty[data-node="at"] { stroke: var(--at); }
.map__cty[data-node="us"] { stroke: var(--us); }
.map__cty[data-node="ru"] { stroke: var(--ru); }
.h-bg { fill: var(--paper); }
.h-de, .h-fi, .h-at, .h-us, .h-ru { stroke-width: 2.2; }
.h-de { stroke: var(--de); } .h-fi { stroke: var(--fi); } .h-at { stroke: var(--at); } .h-us { stroke: var(--us); } .h-ru { stroke: var(--ru); }
.map__sea { fill: var(--muted); font: italic 500 13px var(--mono); letter-spacing: .3em; text-transform: uppercase; }
.lbl .leader { fill: none; stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; }
.lbl__name { font: 700 19px var(--display); fill: var(--ink); paint-order: stroke; stroke: var(--paper); stroke-width: 6px; stroke-linejoin: round; }
.lbl__sub { font: 500 12px var(--mono); fill: var(--ink-2); paint-order: stroke; stroke: var(--paper); stroke-width: 5px; letter-spacing: .04em; }
.st rect { fill: #fff; stroke: var(--ink); stroke-width: 3.5; }
.st circle { fill: var(--ink); }
.st, .lbl, .map__cty { transition: opacity .2s; }
.map.is-focus .st:not(.is-on), .map.is-focus .lbl:not(.is-on), .map.is-focus .map__cty:not(.is-on) { opacity: .2; }
.map__hint { display: none; position: absolute; left: 10px; top: 10px; padding: 4px 8px; background: var(--ink); color: var(--paper); font: 500 11px var(--mono); }
.map__cap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 24px; padding: 14px 18px; border-top: var(--rule); }
.legend { display: flex; flex-wrap: wrap; gap: 6px 20px; margin: 0; padding: 0; list-style: none; font-weight: 600; font-size: 15px; }
.legend li { display: inline-flex; align-items: center; gap: 8px; cursor: default; }
.legend__st { font-weight: 500; color: var(--muted); }
.legend__st svg { width: 30px; height: 16px; }
.legend__st rect { fill: #fff; stroke: var(--ink); stroke-width: 2.5; }
.legend__st circle { fill: var(--ink); }
.map__src { font: 500 11.5px var(--mono); color: var(--muted); }

/* Sections */
.section { padding: 100px 0; }
.section--rule { border-top: var(--rule); }
.section--dark { background: var(--ink); color: var(--paper); }
.section__head { max-width: 820px; margin-bottom: 48px; }
.kicker { margin-bottom: 18px; font: 600 13px var(--mono); letter-spacing: .06em; text-transform: uppercase; }
.section--dark .kicker { color: var(--accent); }
.body { margin-top: 20px; max-width: 34em; }

/* Platforms + board */
.split { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: center; }
.board { background: var(--ink); color: #f3ead9; padding: 8px 22px 18px; box-shadow: 8px 8px 0 var(--accent), 8px 8px 0 2px var(--ink); font-family: var(--mono); }
.board__head, .board__row { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 12px; align-items: center; }
.board__head { padding: 14px 0 10px; border-bottom: 1px solid #4f433a; color: #b3a28f; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; }
.board__row { padding: 13px 0; border-bottom: 1px dashed #463b33; font-size: 16px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; transition: background .15s; }
.board__row span:first-child { display: flex; align-items: center; gap: 12px; }
.board__row span:not(:first-child) { color: var(--accent); text-transform: none; }
.board__row:hover, .board__row.is-on { background: #3a3029; }
.board__foot { padding-top: 14px; color: #b3a28f; font-size: 11.5px; letter-spacing: .04em; }

/* Ticket */
.ticket { display: grid; grid-template-columns: 1.35fr .65fr; background: var(--paper); color: var(--ink); position: relative; }
.ticket__main { padding: 30px 34px 34px; }
.ticket__stub { position: relative; display: flex; flex-direction: column; padding: 30px 30px 26px; border-left: 3px dashed var(--ink); background: var(--paper-2); }
.ticket__stub::before, .ticket__stub::after { content: ""; position: absolute; left: -17px; width: 32px; height: 32px; border-radius: 50%; background: var(--ink); }
.ticket__stub::before { top: -16px; }
.ticket__stub::after { bottom: -16px; }
.ticket__top { display: flex; justify-content: space-between; gap: 12px; padding-bottom: 16px; margin-bottom: 24px; border-bottom: var(--rule); font: 600 12px var(--mono); letter-spacing: .08em; text-transform: uppercase; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
legend { padding: 0; margin-bottom: 10px; font: 600 12px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.seg, .periods { display: grid; }
.seg { grid-template-columns: 1fr 1fr; }
.periods { grid-template-columns: repeat(4, 1fr); margin-top: 22px; }
.seg input, .periods input { position: absolute; opacity: 0; pointer-events: none; }
.seg span, .periods span { display: block; height: 100%; cursor: pointer; border: var(--rule); margin-left: -2px; transition: background .12s; }
.seg label:first-of-type span, .periods label:first-of-type span { margin-left: 0; }
.seg span { padding: 16px 18px; }
.seg b { display: block; font: 700 18px var(--display); }
.seg small { font-size: 13.5px; color: var(--ink-2); }
.periods span { padding: 12px 6px; text-align: center; font: 700 26px/1 var(--display); }
.periods small { display: block; margin-top: 4px; font: 500 12px var(--mono); }
.seg label:hover span, .periods label:hover span { background: var(--paper-2); }
.seg input:checked + span, .periods input:checked + span { background: var(--ink); color: var(--accent); }
.seg input:checked + span small { color: #e3d3bd; }
.seg input:focus-visible + span, .periods input:focus-visible + span { outline: 3px solid var(--fi); outline-offset: 2px; position: relative; z-index: 1; }
.ticks { list-style: none; margin: 26px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 24px; }
.ticks li { position: relative; padding-left: 22px; font-size: 15.5px; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .5em; width: 12px; height: 12px; border: 2.5px solid var(--ink); border-radius: 50%; background: var(--accent); }
.stub__name { font: 600 13px var(--mono); letter-spacing: .06em; text-transform: uppercase; }
.stub__price { display: flex; align-items: baseline; gap: 6px; margin-top: 12px; font: 800 clamp(56px, 6vw, 78px)/1 var(--display); letter-spacing: -.05em; font-variant-numeric: tabular-nums; }
.rub { font-size: .5em; letter-spacing: 0; }
.stub__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 14px; font-weight: 500; }
.save { padding: 2px 8px; background: var(--accent); border: 2px solid var(--ink); font: 700 13px var(--mono); }
.save[hidden] { display: none; }
.stub__stars { margin: 6px 0 26px; color: var(--muted); font-size: 14.5px; }
.ticket__stub .btn { margin-top: auto; }
.stub__note { margin-top: 12px; font-size: 12.5px; color: var(--muted); }
.barcode { height: 30px; margin-top: 18px; background: repeating-linear-gradient(90deg, var(--ink) 0 2px, transparent 2px 4px, var(--ink) 4px 7px, transparent 7px 9px, var(--ink) 9px 10px, transparent 10px 14px); opacity: .85; }
.stub-bump .stub__price { animation: bump .25s ease; }
@keyframes bump { 40% { transform: translateY(-4px); } }

.pay { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; margin-top: 36px; }
.pay__title { font: 600 13px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: #b3a28f; }
.pay ul { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.pay li { display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px 8px 8px; border: 1.5px solid #55483e; font-weight: 500; }
.pay b { display: grid; place-items: center; width: 28px; height: 28px; background: var(--accent); color: var(--ink); font-size: 15px; }
.fine { margin-top: 24px; color: #b8a794; font-size: 14px; }
.fine summary { cursor: pointer; width: fit-content; }
.fine p { margin-top: 10px; max-width: 80ch; }

/* Route */
.route { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); position: relative; }
.route::before { content: ""; position: absolute; left: 0; right: 0; top: 15px; height: 8px; background: linear-gradient(90deg, var(--de), var(--fi) 33%, var(--at) 66%, var(--ru)); border-radius: 4px; }
.route li { position: relative; padding-right: 28px; }
.route__st { display: block; position: relative; width: 38px; height: 38px; border: 4px solid var(--ink); border-radius: 50%; background: #fff; margin-bottom: 22px; }
.route__st--end { width: 56px; border-radius: 19px; }
.route__st--end::before, .route__st--end::after { content: ""; position: absolute; top: 50%; width: 9px; height: 9px; margin-top: -4.5px; border-radius: 50%; background: var(--ink); }
.route__st--end::before { left: 8px; }
.route__st--end::after { right: 8px; }
.route h3 { font-size: 20px; }
.route p { margin-top: 10px; color: var(--ink-2); font-size: 15.5px; }
.devices { margin-top: 48px; padding-top: 18px; border-top: var(--rule); font: 700 clamp(18px, 2.4vw, 26px) var(--display); letter-spacing: -.01em; }
.devices span { color: var(--muted); font-weight: 500; margin: 0 .3em; }

/* FAQ */
.faq { display: grid; grid-template-columns: .7fr 1.3fr; gap: 56px; align-items: start; }
.qa details { border-bottom: var(--rule); }
.qa details:first-child { border-top: var(--rule); }
.qa summary { position: relative; display: flex; gap: 18px; align-items: baseline; list-style: none; cursor: pointer; padding: 20px 44px 20px 0; font-size: 18px; font-weight: 600; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary span { flex: none; width: 30px; font: 600 12px var(--mono); color: var(--muted); }
.qa summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font: 500 26px/1 var(--mono); transition: transform .15s; }
.qa details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.qa summary:hover { background: linear-gradient(90deg, var(--paper-2), transparent); }
.qa p { padding: 0 0 22px 48px; color: var(--ink-2); max-width: 64ch; }

/* Help band */
.help { background: var(--accent-soft); border-block: var(--rule); }
.help__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; padding: 44px 0; }
.help__text { font: 600 clamp(20px, 2.6vw, 30px)/1.25 var(--display); letter-spacing: -.02em; max-width: 26em; }
.help__text b { font-weight: 800; }

/* Footer */
.footer { background: var(--ink); color: var(--paper); padding: 72px 0 40px; }
.footer__big { font: 800 clamp(56px, 13vw, 180px)/.9 var(--display); letter-spacing: -.055em; color: var(--paper); }
.footer__big::first-line { color: var(--accent); }
.footer__row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; margin-top: 56px; padding-top: 22px; border-top: 1px solid #463b33; font-size: 14px; color: #b8a794; }
.footer nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.footer a { color: var(--paper); }

/* Responsive */
@media (max-width: 980px) {
  .nav { display: none; }
  .header__inner > .btn { margin-left: auto; }
  .hero__top, .split, .faq { grid-template-columns: 1fr; gap: 28px; }
  .ticket { grid-template-columns: 1fr; }
  .ticket__stub { border-left: 0; border-top: 3px dashed var(--ink); }
  .ticket__stub::before, .ticket__stub::after { top: -17px; bottom: auto; }
  .ticket__stub::before { left: -16px; }
  .ticket__stub::after { left: auto; right: -16px; }
  .route { grid-template-columns: 1fr 1fr; row-gap: 40px; }
  .route::before { display: none; }
  .map__hint { display: block; }
}
@media (max-width: 620px) {
  body { font-size: 16px; }
  .section { padding: 72px 0; }
  .hero { padding: 36px 0 48px; }
  .hero__cta .btn { flex: 1 1 100%; }
  .ticket__main, .ticket__stub { padding: 22px 18px; }
  .ticket__top { flex-direction: column; gap: 4px; }
  .seg { grid-template-columns: 1fr; }
  .seg span { margin-left: 0; margin-top: -2px; }
  .seg label:first-of-type span { margin-top: 0; }
  .ticks { grid-template-columns: 1fr; }
  .route { grid-template-columns: 1fr; }
  .board { padding: 4px 14px 14px; }
  .board__row { font-size: 13px; }
  .qa summary { font-size: 16px; }
  .qa p { padding-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* Mascot "Фигня Мелкая" and bug logo */
.logo__bug { width: 44px; height: auto; display: block; }
.faq__bug { margin: 36px 0 0; max-width: 240px; }
.faq__bug img { width: 100%; height: auto; display: block; }
.faq__bug figcaption { margin-top: 8px; font: 500 13px var(--mono); color: var(--muted); }
.help__inner { flex-wrap: nowrap; }
.help__bug { flex: none; width: 150px; height: auto; margin: -24px 0 -44px; }
.help__text { flex: 1; }
.footer__top { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.footer__bug { width: clamp(110px, 18vw, 240px); height: auto; margin-bottom: 1.2vw; }
@media (max-width: 760px) {
  .help__inner { flex-wrap: wrap; }
  .help__bug { width: 120px; margin: 0; }
  .faq__bug { max-width: 180px; }
}

/* Language choice uses the same paper/ink rules and native keyboard buttons. */
.language-switch { display: inline-flex; flex: none; border: var(--rule); }
.language-switch[hidden] { display: none; }
.language-switch button { min-width: 42px; min-height: 42px; padding: 0 9px; border: 0; border-radius: 0; background: transparent; color: inherit; font: 600 12px/1 var(--mono); cursor: pointer; }
.language-switch button + button { border-left: var(--rule); }
.language-switch button[aria-pressed="true"] { background: var(--ink); color: var(--accent); }
.language-switch button:hover:not([aria-pressed="true"]) { background: var(--paper-2); }
@media (min-width: 981px) and (max-width: 1160px) {
  .header__inner { gap: 12px; }
  .nav a { padding-inline: 7px; }
}
@media (max-width: 620px) {
  .header__inner { height: auto; min-height: 68px; flex-wrap: wrap; gap: 10px 12px; padding-block: 10px; }
  .header__inner .language-switch { margin-left: auto; }
  .header__inner > .btn { flex: 1 0 100%; }
}

