/* Закрепляет полосу прокрутки, чтобы ширина страниц не менялась. */
html { overflow-y: scroll; }

/* Задаёт постоянные цвета трёх видов лицензий. */
:root { --license-month: #58a6ff; --license-year: #9857ff; --license-forever: #ff5a00; }

/* Показывает текущий раздел шапки. */
.main-nav a, .header-cabinet-link { display: block; position: relative; }
.main-nav a::after, .header-cabinet-link::after { content: ""; position: absolute; left: 0; right: 0; top: calc(100% + 8px); height: 2px; border-radius: 2px; background: var(--accent-primary); box-shadow: 0 0 14px var(--accent-primary); opacity: 0; }
.main-nav a.active, .header-cabinet-link.active { color: var(--text); }
.main-nav a.active::after, .header-cabinet-link.active::after { opacity: 1; }
.brand.active { color: var(--accent-primary); text-shadow: 0 0 20px #58c8ff80; }
.site-release-version { padding: 4px 8px; border: 1px solid var(--line); border-radius: 6px; color: var(--muted); font-size: 11px; white-space: nowrap; }
.site-footer-links { display: flex; align-items: center; gap: 30px; margin-left: auto; }
.site-footer-links a { margin-left: 0; }
.header-logout { margin: 0; }
.partner-join { margin-top: 32px; }

/* Рисует технологическую сеть и строки кода поверх общего фона страницы. */
.hero { min-height: 760px; isolation: isolate; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: 0; background: transparent; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: 2; background: transparent; pointer-events: none; }
.hero-copy { text-shadow: 0 3px 24px #02070c; }
.tunnel { display: none; }
.hero-network-svg { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; overflow: visible; }
.network-depth { transform-box: fill-box; transform-origin: center; transition: transform .18s ease-out; }
.network-depth path { fill: none; stroke: #58c8ff; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 6px #58c8ff); }
.network-depth circle { fill: #ffffff; stroke: #ffffff; stroke-width: 2; filter: drop-shadow(0 0 9px #ffffff); animation: network-pulse 3.6s ease-in-out infinite; }
.network-depth-far { opacity: .48; }
.network-depth-far path { stroke-width: 1.4; }
.network-depth-mid { opacity: .72; }
.network-depth-mid path { stroke-width: 2; }
.network-depth-mid circle { animation-delay: -1.2s; }
.network-depth-near { opacity: .96; }
.network-depth-near path { stroke-width: 2.8; }
.network-depth-near circle { animation-delay: -2.3s; }
@keyframes network-pulse { 50% { opacity: .5; } }
.hero-code-layer { position: absolute; inset: 0; z-index: 3; pointer-events: none; overflow: hidden; color: #a9dcf89c; font: 13px ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: .06em; }
.hero-code-layer span { position: absolute; width: max-content; padding: 0; white-space: nowrap; text-shadow: 0 0 12px #58c8ff80; transform: rotateZ(-11deg); transform-origin: 50% 50%; animation: code-flight 10s ease-in-out infinite; }
.hero-code-layer span:nth-child(1) { top: 17%; left: 52%; font-size: 15px; }
.hero-code-layer span:nth-child(2) { top: 37%; left: 55%; font-size: 11px; animation-delay: -2s; opacity: .82; }
.hero-code-layer span:nth-child(3) { top: 61%; left: 48%; font-size: 14px; animation-delay: -5s; }
.hero-code-layer span:nth-child(4) { top: 78%; left: 58%; font-size: 10px; animation-delay: -7s; opacity: .72; }
@keyframes code-flight { 50% { translate: -18px -10px; filter: brightness(1.35); } }

/* Новая композиция: карта потоков с кривыми маршрутами и световыми пакетами. */
.data-map { transform-origin: 76% 48%; transition: transform .22s ease-out; }
.data-routes path { fill: none; stroke: #58c8ff; stroke-width: 2; stroke-linecap: round; stroke-dasharray: 2 9; filter: drop-shadow(0 0 5px #58c8ff70); animation: route-flow 16s linear infinite; }
.data-routes path:nth-child(2n) { stroke-width: 1.2; opacity: .58; animation-direction: reverse; }
.data-nodes circle { fill: #ffffff; filter: drop-shadow(0 0 7px #ffffff); transform-box: fill-box; transform-origin: center; animation: node-breathe 4.5s ease-in-out infinite; }
.data-nodes circle:nth-child(3n) { animation-delay: -1.6s; }
.data-nodes circle:nth-child(3n + 1) { animation-delay: -3.1s; }
.data-packets circle { fill: #ffffff; filter: drop-shadow(0 0 7px #ffffff); }
.data-edge-fades { pointer-events: none; }
.data-edge-fades rect { fill: var(--bg); filter: blur(48px); }
@keyframes route-flow { to { stroke-dashoffset: -220; } }
@keyframes node-breathe { 50% { scale: 1.35; opacity: .62; } }

.hero-code-layer { color: #b8cad8a8; font-size: 12px; letter-spacing: .035em; }
.hero-code-layer span { transform: none; animation: terminal-flicker 7s ease-in-out infinite; }
.hero-code-layer span b { color: #8ed8ff; font-weight: 600; }
.hero-code-layer span:nth-child(1) { top: 22%; left: 57%; font-size: 12px; }
.hero-code-layer span:nth-child(2) { top: 43%; left: 72%; font-size: 11px; animation-delay: -2s; }
.hero-code-layer span:nth-child(3) { top: 61%; left: 55%; font-size: 13px; animation-delay: -4s; }
.hero-code-layer span:nth-child(4) { top: 78%; left: 74%; font-size: 10px; animation-delay: -5.5s; }
@keyframes terminal-flicker { 0%, 100% { opacity: .42; } 45%, 70% { opacity: .9; } }

/* Выравнивает страницу скачивания с остальными страницами. */
.download-panel { text-align: left; }
.download-panel .platform-mark { margin: 60px 0 35px; }
.download-meta { justify-content: flex-start; }

/* Делает выбранные тарифы явными и интерактивными. */
.price-card { cursor: pointer; transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease; }
.price-card:hover { border-color: #58c8ff55; transform: translateY(-8px); outline: none; }
.price-card:focus-visible { border-color: #58c8ff55; outline: none; }
.price-card.included { border-color: var(--accent-primary); box-shadow: 0 12px 45px #58c8ff1f, inset 0 0 0 1px #58c8ff38; }
.price-card label { margin-top: auto; }
.price-grid-public article{cursor:default}.modal-purchase .purchase-price-grid{padding:24px 0 8px}.modal-purchase .checkout-line{margin-bottom:0}.partner-card{align-items:center;gap:24px}.partner-card h2{overflow-wrap:anywhere}
.order-summary { display: flex; justify-content: space-between; gap: 36px; align-items: flex-end; margin: 12px 0 8px; }
.order-summary p { margin: 0; color: var(--muted); }
.order-summary strong { color: var(--text); font-size: 28px; }
.order-summary [data-order-discount] strong { color: var(--accent-primary); font-size: inherit; }
.order-summary-totals { display: grid; justify-items: end; gap: 8px; margin-left: auto; }
.order-total-line { display: flex; align-items: baseline; gap: 24px; }
.order-summary [data-order-total].insufficient { color: #ff657a; text-shadow: 0 0 20px #ff657a55; }
.point-balance { align-self: center; }
.point-balance strong { font-size: inherit; }
.license-kind-month .price { color: var(--license-month) !important; text-shadow: 0 0 26px #58a6ff45; }
.license-kind-year .price { color: var(--license-year) !important; text-shadow: 0 0 28px #9857ff70; }
.license-kind-forever .price { color: var(--license-forever) !important; text-shadow: none; }
.license-kind-month .plan-name { color: var(--license-month) !important; }
.license-kind-year .plan-name { color: var(--license-year) !important; }
.license-kind-forever .plan-name { color: var(--license-forever) !important; }

/* Запрещает случайное выделение декоративных и управляющих надписей. */
.hero h1, button, [role="button"], .button, .price-card p, .price-card h2, .price-card .plan-name { user-select: none; -webkit-user-select: none; }

/* Показывает недоступное действие регистрации без двусмысленности. */
.button:disabled { cursor: not-allowed; opacity: .42; filter: saturate(.35); box-shadow: none; }
/* Оформляет результаты регистрации, входа, восстановления и подтверждения почты. */
.auth-message { padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; line-height: 1.45; text-align: left; }
.auth-message.success { border-color: #58c8ff66; background: #58c8ff12; color: #c9efff; }
.auth-message.error { border-color: #ff657a66; background: #ff657a12; color: #ffb8c2; }
/* Держит место под подпись о несовпадении паролей, чтобы окно не меняло размеры при ошибке. */
.field-error { display: block; height: 18px; margin-top: 6px; overflow: hidden; color: #ffb8c2; font-size: 13px; line-height: 18px; visibility: hidden; }
.field-error.visible { visibility: visible; }
.modal-explanation { margin: -4px 0 20px; color: var(--muted); line-height: 1.5; }
.modal-links-single { justify-content: center; margin-top: 14px; }
.logout-actions { display: flex; gap: 12px; justify-content: flex-end; margin-top: 24px; }
.auth-result-page { display: grid; place-items: center; }
.auth-result-card { width: min(680px, 100%); padding: 48px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel-solid); text-align: left; box-shadow: 0 28px 90px #0006; }
.auth-result-card.success { border-color: #58c8ff55; }
.auth-result-card.error { border-color: #ff657a55; }
.auth-result-card h1 { margin: 16px 0 22px; font-size: clamp(42px,7vw,76px); }
.auth-result-card .lead { margin-bottom: 30px; }
.inline-link { border: 0; padding: 0; background: transparent; color: var(--accent-primary); cursor: pointer; text-align: left; }
.legal-copy h3 { margin: 28px 0 8px; color: var(--text); }
.legal-copy p { line-height: 1.65; }

/* Собирает описание в крупные смысловые блоки в общем стиле публичных страниц. */
.description-page { position: relative; isolation: isolate; }
.description-page > h1 { margin-bottom: 48px; }
.description-intro { position: relative; display: grid; grid-template-columns: 1fr; gap: 18px; overflow: hidden; padding: clamp(30px, 5vw, 58px); border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel-solid); box-shadow: 0 28px 90px #0005, inset 0 1px #ffffff0a; }
.description-intro > * { position: relative; z-index: 1; }
.description-lead, .description-intro-copy p { margin: 0; color: var(--muted); font-size: 19px; line-height: 1.72; }
.description-intro-copy { display: grid; align-content: start; gap: 18px; }

/* Выделяет название Vibetun однотонным голубым цветом. */
.description-vibetun { color: var(--accent-primary); font-weight: 800; text-shadow: 0 0 22px #58c8ff40; }

/* Показывает преимущества отдельными карточками с заметной сквозной нумерацией. */
.description-advantages { margin-top: clamp(64px, 8vw, 96px); }
.description-advantages h2 { max-width: 760px; margin: 0; font-size: clamp(30px, 4vw, 48px); line-height: 1.08; }
.description-benefits { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin: 34px 0 0; padding: 0; list-style: none; counter-reset: description-benefit; }
.description-benefits li { position: relative; min-height: 176px; padding: 30px 30px 30px 84px; border: 1px solid var(--line); border-radius: 20px; background: var(--panel); color: var(--muted); font-size: 16px; line-height: 1.65; counter-increment: description-benefit; box-shadow: inset 0 1px #ffffff08; }
.description-benefits li::before { content: counter(description-benefit) "."; position: absolute; left: 28px; top: 28px; display: grid; width: 38px; height: 38px; place-items: center; border: 1px solid var(--accent-secondary); border-radius: 11px; background: #ffffff05; color: var(--accent-secondary); font-weight: 800; box-shadow: none; }

/* Оформляет список поддерживаемых провайдеров как завершение страницы. */
.description-providers { position: relative; display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(260px, .55fr); align-items: center; gap: clamp(30px, 6vw, 84px); overflow: hidden; margin-top: 72px; padding: clamp(30px, 5vw, 52px); border: 1px solid var(--accent-secondary); border-radius: var(--radius); background: var(--panel-solid); box-shadow: 0 24px 75px #0004; }
.description-provider-intro { position: relative; z-index: 1; margin: 0; color: var(--text); font-size: clamp(21px, 2.5vw, 30px); line-height: 1.42; letter-spacing: -.018em; }
.description-provider-list { position: relative; z-index: 1; display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.description-provider-list li { display: flex; align-items: center; gap: 14px; padding: 17px 19px; border: 1px solid var(--line); border-radius: 14px; background: #14191f80; color: var(--text); font-weight: 700; }
.description-provider-list li::before { content: "●"; flex: 0 0 auto; width: 14px; color: var(--accent-secondary); font-size: 16px; font-weight: 900; line-height: 1; }

/* Разбивает объяснение партнёрской программы на короткие последовательные шаги. */
.partner-program-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 65px; }
.partner-program-step { min-width: 0; display: grid; grid-template-columns: auto 1fr; align-items: start; gap: 18px; padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); backdrop-filter: blur(16px); }
.partner-program-step:nth-child(3), .partner-program-step:nth-child(4) { border-left: 2px solid var(--accent-secondary); }
.partner-program-number { padding-top: 5px; color: var(--accent-secondary); font: 700 12px ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: .12em; }
.partner-program-step p { margin: 0; color: var(--muted); font-size: 17px; line-height: 1.65; }
.partner-program-percent { color: var(--accent-secondary); font-size: 1.12em; font-weight: 800; white-space: nowrap; }

@media (max-width: 900px) {
  .hero-code-layer { opacity: .45; }
  .order-summary { align-items: stretch; flex-direction: column; gap: 14px; }
  .order-summary-totals { margin-left: 0; }
  .description-page > h1 { margin-bottom: 36px; }
  .description-intro { grid-template-columns: 1fr; }
  .description-benefits { grid-template-columns: 1fr; }
  .description-benefits li { min-height: auto; }
  .description-providers { grid-template-columns: 1fr; }
  .partner-program-grid { grid-template-columns: 1fr; }
}

/* Страницы правовых документов и их предыдущих редакций. */
.legal-page { padding-bottom: 100px; }
.legal-page h1 { margin-bottom: 36px; }
.legal-page .muted { margin-top: 0; margin-bottom: 26px; }
.legal-edition-list { display: grid; gap: 14px; padding: 8px 0 26px; }
.legal-edition-row { padding: 22px 24px; background: #122433d9; border: 1px solid var(--line); border-radius: var(--radius); }
.legal-edition-row h2 { margin: 0 0 6px; font-size: 19px; }
.legal-edition-row p { margin: 0 0 10px; color: var(--muted); line-height: 1.6; }
.legal-page-links { padding: 6px 0 0; }

/* Ярлык уведомления капчи Яндекс прижат к выбранному владельцем углу и спрятан за край так, что виден только кружок; при наведении ярлык выезжает целиком. */
.SmartCaptcha-Shield { transition: right 0.25s ease, left 0.25s ease !important; }
.SmartCaptcha-Shield.SmartCaptcha-Shield_position_bottom { bottom: 24px !important; }
.SmartCaptcha-Shield.SmartCaptcha-Shield_position_top { top: 24px !important; }
.SmartCaptcha-Shield.SmartCaptcha-Shield_position_right { right: -107px !important; transform: none !important; }
.SmartCaptcha-Shield.SmartCaptcha-Shield_position_left { left: -107px !important; transform: none !important; }
.SmartCaptcha-Shield.SmartCaptcha-Shield_position_right:hover { right: 0 !important; }
.SmartCaptcha-Shield.SmartCaptcha-Shield_position_left:hover { left: 0 !important; }
