@font-face {
  font-family: Onest;
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("assets/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-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("assets/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+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 {
  color-scheme: dark;
  --bg: #0b0e13;
  --surface: #10141b;
  --text: #f1f3f7;
  --muted: #9ba5b5;
  --quiet: #8791a3;
  --line: #272d38;
  --ice: #86aaff;
  font-family: Onest, "Segoe UI", sans-serif;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; scrollbar-gutter: stable; }
body { margin: 0; background: var(--bg); color: var(--text); }
::selection { color: #fff; background: #264db2; }
a { color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; }
button, a { touch-action: manipulation; }
a:focus-visible { outline: 2px solid #a8c4ff; outline-offset: 6px; border-radius: 2px; }
p, h1, h2, h3, h4 { margin: 0; }
svg, img { display: block; flex-shrink: 0; }
.icon { fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
.site-shell { width: min(1120px, calc(100% - 112px)); margin-inline: auto; }
.skip-link { position: fixed; z-index: 10; left: 20px; top: 15px; padding: 14px 20px; background: var(--text); color: var(--bg); transform: translateY(-180%); }
.skip-link:focus { transform: none; }
/* пока применяется английский, страница скрыта долю секунды; страховка — показать через 1,5 с */
.lang-pending body { visibility: hidden; animation: lang-reveal 0s 1.5s forwards; }
@keyframes lang-reveal { to { visibility: visible; } }
.site-header { height: 100px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; flex-shrink: 0; gap: 8px; min-height: 44px; font-size: 28px; font-weight: 670; letter-spacing: -.6px; line-height: 1; }
.brand img { width: 58px; height: auto; transform: translateY(3px); }
.brand-wordmark { line-height: 1.05; }
.header-nav { display: flex; flex-shrink: 0; gap: 38px; align-items: center; font-size: 13px; }
.header-nav a { display: inline-flex; min-height: 44px; align-items: center; }
.header-nav > .text-link { width: 104px; flex-shrink: 0; justify-content: flex-end; white-space: nowrap; }
.text-link { display: inline-flex; gap: 10px; align-items: center; }
.text-link .icon { color: var(--quiet); transition: transform 180ms ease, color 180ms ease; }
.text-link:hover .icon { color: var(--text); transform: translate(2px, -2px); }
.header-nav a { transition: color 180ms ease; }
.header-nav a:hover { color: var(--ice); }
.language-switch { display: inline-flex; align-items: center; gap: 2px; padding: 3px; border: 1px solid var(--line); border-radius: 6px; }
.language-switch button { position: relative; display: inline-flex; align-items: center; justify-content: center; min-width: 40px; min-height: 36px; padding: 0; border: 0; border-radius: 3px; background: none; color: var(--muted); font: inherit; font-size: 12px; font-weight: 550; letter-spacing: .5px; cursor: pointer; transition: color 180ms ease; -webkit-tap-highlight-color: transparent; }
.language-switch button:hover { color: var(--ice); }
.language-switch button[aria-pressed="true"] { background: #222b3b; color: var(--text); cursor: default; }
.language-switch button:focus-visible { outline: 2px solid #a8c4ff; outline-offset: 2px; }
.language-switch button::after { content: ""; position: absolute; inset: -4px 0; } /* зона нажатия 44px при видимых 36px */

.hero { position: relative; display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px; padding: 62px 0 52px; align-items: center; }
h1 { font-size: clamp(42px, 4.3vw, 58px); font-weight: 540; letter-spacing: -2.2px; line-height: 1.1; }
h1 span { color: #a0aabc; }
.hero-description { margin-top: 24px; font-size: 15px; line-height: 1.7; color: var(--muted); }
.hero-link { display: inline-flex; gap: 18px; align-items: center; min-height: 44px; margin-top: 20px; font-size: 15px; font-weight: 500; }
.hero-link .icon { color: var(--ice); transition: transform 180ms ease; }
.hero-link:hover .icon { transform: translate(2px, -2px); }
.route-art { position: relative; height: 316px; min-width: 0; align-self: center; }
.route-lines { position: absolute; inset: 0; width: 100%; height: 100%; }
.route-track { stroke: #252e3e; stroke-width: 1; }
.route-end { stroke: #60718c; stroke-width: 1; }
.emblem-stage { position: absolute; width: 100%; height: 100%; inset: 0; display: grid; place-items: center; }
.hero-emblem { width: 106%; max-width: 490px; height: auto; transform: translate(0, -14px); }
.art-coordinate { position: absolute; font-size: 9px; font-weight: 450; letter-spacing: 1.6px; color: var(--quiet); }
.coordinate-start { top: 13px; left: 27px; }
.coordinate-end { bottom: 14px; right: 0; }
.coordinate-end .coord-arrow { display: inline-block; width: 0.9em; height: 0.5em; margin-inline: 14px; vertical-align: 0.1em; overflow: visible; color: #6894ff; fill: none; stroke: currentColor; stroke-width: 0.9; stroke-linecap: round; stroke-linejoin: round; } /* стрелка по центру заглавных */
.coord-arrow path { vector-effect: non-scaling-stroke; }

.products { position: relative; scroll-margin-top: 22px; padding-top: 28px; }
.products:focus { outline: none; }
/* Заголовок раздела скрыт визуально, но остаётся для поисковиков и экранных дикторов */
.section-heading { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* Карточки: цвета сайта (поверхность --surface, линии --line) и срезанный угол — как у планок эмблемы */
.panels { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.panel { --cut: 36px; padding: 1px; border-radius: 22px; background: linear-gradient(160deg, #3a4251 0%, var(--line) 35%, var(--line) 100%); clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, 0 100%); }
.panel-inner { display: flex; flex-direction: column; height: 100%; padding: 40px 42px 42px; border-radius: 21px; background: linear-gradient(180deg, #121720 0%, var(--surface) 100%); clip-path: polygon(0 0, calc(100% - var(--cut) + .59px) 0, 100% calc(var(--cut) - .59px), 100% 100%, 0 100%); }
.panel h3 { font-size: clamp(30px, 3.2vw, 44px); font-weight: 540; letter-spacing: -1.4px; line-height: 1; }
.panel-lead { margin-top: 12px; font-size: 14px; color: var(--muted); }
.items { margin: 32px 0 0; border-top: 1px solid var(--line); }
.item { padding: 17px 0; border-bottom: 1px solid var(--line); }
.item:last-child { border-bottom: 0; padding-bottom: 0; }
.item dt { display: flex; align-items: center; gap: 15px; font-size: 18px; font-weight: 520; letter-spacing: -.3px; }
.item dt::before { content: ""; flex: none; width: 21px; height: 4px; clip-path: polygon(4px 0, 100% 0, calc(100% - 4px) 100%, 0 100%); background: linear-gradient(170deg, #fff 0%, #f2f7ff 38%, #c2d4f0 72%, #e9f1fd 100%); }
.panel-numbers .item dt::before { background: linear-gradient(120deg, #86ccff 0%, #2f6dff 42%, #1434b4 100%); }
.item dd { margin: 4px 0 0; padding-left: 36px; font-size: 14px; line-height: 1.55; color: var(--muted); overflow-wrap: break-word; }
.slots { display: flex; justify-content: center; gap: 10px; margin-block: auto; padding-top: 32px; }
.slots i { display: grid; place-items: center; width: 44px; height: 54px; border-radius: 12px; background: rgba(255, 255, 255, .02); box-shadow: inset 0 0 0 1px var(--line); font-style: normal; font-size: 20px; color: var(--quiet); }
.slots i:first-child { box-shadow: inset 0 0 0 1px var(--ice); color: var(--text); }
/* Частые вопросы: раскрываются по клику, без JavaScript */
.faq { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 48px; padding-top: 96px; }
.faq-head h2 { font-size: clamp(30px, 3.2vw, 44px); font-weight: 540; letter-spacing: -1.4px; line-height: 1.05; }
.faq-head p { margin-top: 14px; max-width: 280px; font-size: 14px; line-height: 1.6; color: var(--muted); }
.faq-head a, .faq-item p a { color: var(--text); text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px; transition: color 180ms ease, text-decoration-color 180ms ease; }
.faq-head a:hover, .faq-item p a:hover { color: var(--ice); text-decoration-color: currentColor; }
.faq-head { align-self: start; position: sticky; top: 32px; }
.faq-group + .faq-group { margin-top: 40px; }
.faq-label { padding-bottom: 12px; line-height: 14px; border-bottom: 1px solid var(--line); font-size: 10px; font-weight: 450; letter-spacing: 1.6px; text-transform: uppercase; color: var(--quiet); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary { display: flex; justify-content: space-between; align-items: center; gap: 24px; min-height: 44px; padding: 20px 0; list-style: none; cursor: pointer; font-size: 17px; font-weight: 520; letter-spacing: -.2px; line-height: 24px; transition: color 180ms ease; -webkit-tap-highlight-color: transparent; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: ""; flex: none; width: 12px; height: 12px; color: var(--quiet); background: linear-gradient(currentColor, currentColor) center / 12px 2px no-repeat, linear-gradient(currentColor, currentColor) center / 2px 12px no-repeat; transition: transform 200ms ease, color 180ms ease; }
.faq-item summary:hover { color: var(--ice); }
.faq-item summary:focus-visible { outline: 2px solid #a8c4ff; outline-offset: 4px; border-radius: 2px; }
.faq-item[open] summary::after { transform: rotate(45deg); color: var(--ice); }
.nw { white-space: nowrap; }
.faq-item p { max-width: 640px; padding: 0 48px 22px 0; font-size: 14px; line-height: 24px; color: var(--muted); }
.site-footer { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 86px; margin-top: 32px; border-top: 1px solid var(--line); }
.footer-brand { display: flex; align-items: center; gap: 18px; font-size: 17px; font-weight: 600; letter-spacing: -.5px; }
.footer-slash { color: #3f4d65; font-weight: 350; }
.copyright { font-size: 12px; font-weight: 400; letter-spacing: 0; color: var(--quiet); }
.footer-bot { min-height: 44px; font-size: 13px; color: var(--muted); transition: color 180ms ease; }
.footer-bot:hover { color: var(--ice); }

@media (min-width: 1500px) {
  .hero { padding-top: 76px; padding-bottom: 65px; }
  .site-header { height: 110px; }
}
@media (max-width: 1100px) {
  .site-shell { width: calc(100% - 80px); }
  .hero { grid-template-columns: 1.3fr 1fr; gap: 8px; }
  h1 { font-size: clamp(42px, 4.6vw, 50px); letter-spacing: -1.8px; }
  .hero-emblem { width: 114%; }
  .panel-inner { padding: 32px 32px 34px; }
}
@media (max-width: 850px) {
  .faq { grid-template-columns: minmax(0, 1fr); gap: 24px; padding-top: 80px; }
  .faq-head { position: static; }
  .faq-head p { max-width: none; }
  .site-shell { width: calc(100% - 56px); }
  .site-header { height: 88px; }
  .header-nav { gap: 26px; }
  .hero { grid-template-columns: 1.5fr 1fr; padding-block: 52px 42px; }
  h1 { font-size: clamp(34px, 5vw, 42px); letter-spacing: -1.5px; }
  .hero-description { font-size: 14px; }
  .route-art { height: 265px; }
  .hero-emblem { width: 120%; max-width: none; transform: translate(-3%, -7px); }
  .coordinate-start { left: 10px; top: 22px; }
  .coordinate-end { font-size: 8px; letter-spacing: 1px; }
  .panels { gap: 14px; }
  .panel-inner { padding: 28px 26px 30px; }
  .item dt { font-size: 17px; }
}
@media (max-width: 600px) {
  .faq { padding-top: 64px; }
  .faq-head h2 { font-size: 30px; letter-spacing: -1px; }
  .faq-item summary { padding: 16px 0; font-size: 16px; line-height: 22px; gap: 16px; }
  .faq-group + .faq-group { margin-top: 32px; }
  .faq-item p { padding-right: 0; padding-bottom: 18px; }
  .site-shell { width: calc(100% - 40px); }
  .site-header { height: 76px; }
  .brand { gap: 5px; font-size: 23px; }
  .brand img { width: 44px; }
  .header-nav { font-size: 12px; gap: 16px; }
  .header-nav > .text-link { width: 91px; gap: 8px; } /* ширина под «Поддержка», чтобы RU/EN не сдвигался при смене языка */
  .language-switch button { min-width: 36px; }
  .hero { grid-template-columns: 1fr; gap: 0; padding: 38px 0 30px; }
  h1 { font-size: clamp(34px, 9.2vw, 52px); letter-spacing: -1.5px; line-height: 1.12; }
  .hero-description { font-size: 15px; line-height: 1.6; margin-top: 18px; }
  .hero-link { margin-top: 14px; font-size: 14px; gap: 16px; }
  .route-art { height: 148px; margin-top: -5px; }
  .route-lines { width: 100%; height: 100%; }
  .emblem-stage { width: 67%; left: auto; right: 0; }
  .hero-emblem { max-width: 260px; width: 100%; transform: translate(1%, -12px); }
  .coordinate-start { top: 57px; left: 0; font-size: 8px; }
  .coordinate-end { bottom: 0; font-size: 8px; }
  .products { padding-top: 20px; }
  .panels { grid-template-columns: minmax(0, 1fr); }
  .panel { --cut: 28px; }
  .panel-inner { padding: 26px 22px 28px; }
  .panel h3 { font-size: 30px; letter-spacing: -1px; }
  .items { margin-top: 24px; }
  .item { padding-block: 15px; }
  .item dd { font-size: 14px; }
  .slots { padding-top: 24px; gap: 8px; }
  .slots i { width: 40px; height: 50px; }
  .site-footer { min-height: 78px; margin-top: 25px; padding-block: 24px; }
  .footer-brand { font-size: 16px; gap: 15px; }
  .copyright { font-size: 12px; }
}
@media (max-width: 359px) {
  .site-shell { width: calc(100% - 32px); }
  .brand { font-size: 21px; }
  .brand img { width: 40px; }
  .header-nav { gap: 12px; font-size: 11px; }
  .header-nav > .text-link .icon { display: none; }
  .header-nav > .text-link { width: 61px; }
  h1 { font-size: 31px; letter-spacing: -1.1px; }
  .hero-description { font-size: 14px; }
  .panel-inner { padding-inline: 18px; }
  .item dd { padding-left: 0; }
  .slots { gap: 7px; }
  .slots i { width: 36px; height: 46px; }
}
@media (max-height: 500px) and (orientation: landscape) {
  .site-header { height: 64px; }
  .hero { padding-block: 22px 28px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
