/* ==========================================================================
   01. БАЗОВЫЕ ПЕРЕМЕННЫЕ
   Меняйте цвета сайта только здесь. Остальной CSS использует эти значения.
   ========================================================================== */
:root {
  --black: #030303;
  --black-soft: #090909;
  --panel: rgba(9, 9, 9, 0.82);
  --panel-solid: #0d0d0d;
  --white: #f7f7f4;
  --silver: #a6a6a0;
  --muted: #6c6c68;
  --line: rgba(255, 255, 255, 0.14);
  --line-strong: rgba(255, 255, 255, 0.34);
  --glass-surface: rgba(10, 10, 10, 0.68);
  --glass-surface-hover: rgba(18, 18, 18, 0.82);
  --glass-border: rgba(255, 255, 255, 0.18);
  --glass-border-hover: rgba(255, 255, 255, 0.52);
  --glass-shadow: 0 22px 70px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  --glass-shadow-hover: 0 30px 90px rgba(0, 0, 0, 0.62), 0 0 34px rgba(255, 255, 255, 0.11), inset 0 1px 0 rgba(255, 255, 255, 0.22);
  --success: #9cf7b1;
  --danger: #ff7474;
  --shadow: 0 22px 70px rgba(0, 0, 0, 0.46);
  --radius: 28px;
  --header-height: 74px;
  --content-width: 1180px;
  --narrow-width: 860px;
  --ease: 220ms ease;
}

/* ==========================================================================
   02. СБРОС И ТИПОГРАФИКА
   ========================================================================== */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  color-scheme: dark;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background: var(--black);
  color: var(--white);
  font-family: Inter, "SF Pro Display", "Segoe UI", Arial, sans-serif;
  line-height: 1.5;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: geometricPrecision;
}

button,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  line-height: 1.04;
  letter-spacing: 0;
}

h1 {
  font-size: 58px;
}

h2 {
  font-size: 38px;
}

h3 {
  font-size: 21px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 2000;
  padding: 10px 14px;
  color: var(--black);
  background: var(--white);
  transform: translateY(-160%);
  transition: transform var(--ease);
}

.skip-link:focus {
  transform: translateY(0);
}

.shell {
  width: min(calc(100% - 40px), var(--content-width));
  margin-inline: auto;
}

.shell-narrow {
  width: min(calc(100% - 40px), var(--narrow-width));
}

.eyebrow {
  margin-bottom: 12px;
  color: var(--silver);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

/* ==========================================================================
   03. ФОН И ШАПКА
   ========================================================================== */
.space-scene {
  position: fixed;
  inset: 0;
  z-index: -2;
  background: var(--black) url("../images/space-desktop.webp") center / cover no-repeat;
}

.space-scene::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.54);
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 1000;
  height: var(--header-height);
  border-bottom: 1px solid transparent;
  transition: background var(--ease), border-color var(--ease);
}

.site-header.is-scrolled,
body:not(.home-visible) .site-header {
  border-color: var(--line);
  background: rgba(3, 3, 3, 0.86);
  backdrop-filter: blur(20px);
}

.header-inner {
  width: calc(100% - 56px);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand-button,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0;
  border: 0;
  color: var(--white);
  background: transparent;
  cursor: pointer;
}

.brand-button img {
  width: 22px;
  height: 34px;
  object-fit: contain;
}

.brand-button .brand-wordmark {
  width: 116px;
  height: auto;
  object-fit: contain;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-link {
  padding: 9px 12px;
  border: 0;
  color: var(--muted);
  background: transparent;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: color var(--ease);
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--white);
}

/* ==========================================================================
   04. КНОПКИ
   ========================================================================== */
.button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  transition: transform var(--ease), background var(--ease), color var(--ease), border-color var(--ease);
}

.button:hover {
  transform: translateY(-2px);
}

.button:active {
  transform: translateY(0);
}

.button-light {
  border-color: var(--white);
  color: var(--black);
  background: var(--white);
}

.button-light:hover {
  background: #dcdcd8;
}

.button-dark {
  color: var(--white);
  background: rgba(0, 0, 0, 0.38);
}

.button-dark:hover {
  border-color: var(--white);
  background: rgba(255, 255, 255, 0.08);
}

.button-compact {
  min-height: 38px;
  padding-inline: 16px;
  font-size: 12px;
}

.button-full {
  width: 100%;
}

/* ==========================================================================
   05. ЭКРАНЫ И ГЛАВНАЯ
   ========================================================================== */
.view {
  min-height: 100vh;
}

.view[hidden] {
  display: none;
}

.view.is-entering {
  animation: view-in 300ms ease both;
}

@keyframes view-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero {
  position: relative;
  min-height: min(860px, 92svh);
  display: grid;
  place-items: center;
  padding-top: calc(var(--header-height) + 42px);
  padding-bottom: 70px;
}

.hero-brand {
  width: min(760px, 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero-mark-wrap {
  position: relative;
  width: 460px;
  height: 460px;
  display: grid;
  place-items: center;
  margin-bottom: 34px;
}

.orbit {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  transition: border-color 300ms ease, box-shadow 300ms ease;
}

.orbit i {
  position: absolute;
  top: 50%;
  left: -4px;
  width: 8px;
  height: 8px;
  margin-top: -4px;
  border-radius: 50%;
  background: var(--white);
  box-shadow: 0 0 14px rgba(255, 255, 255, 0.9);
}

.orbit-one {
  width: 440px;
  height: 440px;
  animation: orbit-clockwise 28s linear infinite;
}

.orbit-two {
  width: 322px;
  height: 322px;
  border-style: dashed;
  border-color: rgba(255, 255, 255, 0.2);
  animation: orbit-counterclockwise 21s linear infinite;
}

.orbit-two i {
  top: -3px;
  left: 50%;
  width: 6px;
  height: 6px;
  margin: 0 0 0 -3px;
}

.orbit-three {
  width: 214px;
  height: 214px;
  border-color: rgba(255, 255, 255, 0.36);
  animation: orbit-clockwise 14s linear infinite;
}

.orbit-three i {
  top: auto;
  right: 14%;
  bottom: 9%;
  left: auto;
  width: 7px;
  height: 7px;
  margin: 0;
}

.hero-mark {
  position: relative;
  z-index: 1;
  width: 172px;
  height: 277px;
  object-fit: contain;
  filter: drop-shadow(0 18px 30px rgba(0, 0, 0, 0.42));
  animation: mark-float 5s ease-in-out infinite;
}

.hero-mark-wrap:hover .orbit-one {
  border-color: rgba(255, 255, 255, 0.52);
  box-shadow: 0 0 32px rgba(255, 255, 255, 0.09);
  animation-duration: 5s;
}

.hero-mark-wrap:hover .orbit-two {
  border-color: rgba(255, 255, 255, 0.48);
  animation-duration: 3.8s;
}

.hero-mark-wrap:hover .orbit-three {
  border-color: rgba(255, 255, 255, 0.65);
  box-shadow: inset 0 0 24px rgba(255, 255, 255, 0.06);
  animation-duration: 2.8s;
}

@keyframes mark-float {
  50% {
    transform: translateY(-11px) rotate(1.2deg);
  }
}

@keyframes orbit-clockwise {
  to { transform: rotate(360deg); }
}

@keyframes orbit-counterclockwise {
  to { transform: rotate(-360deg); }
}

.hero-wordmark {
  width: min(620px, 82%);
  height: auto;
  margin: 0 auto 18px;
  object-fit: contain;
  filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.13));
}

.hero-manifesto {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 30px;
  color: #d7d7d2;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.hero-manifesto span {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--silver);
}

.hero-actions {
  display: flex;
  gap: 10px;
}

.hero-scroll {
  position: absolute;
  bottom: 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: var(--silver);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-decoration: none;
  text-transform: uppercase;
}

.hero-scroll span {
  width: 1px;
  height: 22px;
  background: var(--line-strong);
}

.section {
  padding-block: 94px;
}

.section-heading {
  max-width: 740px;
  margin-bottom: 34px;
}

.section-heading h2 {
  margin-bottom: 0;
}

.section-heading-split {
  max-width: none;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  align-items: end;
  gap: 50px;
}

.section-heading-split > p {
  margin-bottom: 3px;
  color: var(--silver);
}

/* ==========================================================================
   06. ПОМОЩНИК
   ========================================================================== */
.guide {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(0, 0, 0, 0.72);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(32px) saturate(118%);
  -webkit-backdrop-filter: blur(32px) saturate(118%);
}

.guide-log {
  min-height: 190px;
  max-height: 380px;
  overflow-y: auto;
  padding: 26px;
  border-bottom: 1px solid var(--line);
}

.guide-message {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
  animation: message-in 220ms ease both;
}

.guide-message-system {
  align-items: center;
}

.guide-message:last-child {
  margin-bottom: 0;
}

@keyframes message-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
}

.guide-message-user {
  justify-content: flex-end;
}

.guide-message-user > div {
  max-width: 78%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.08);
}

.guide-avatar {
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--black);
  background: var(--white);
  font-weight: 900;
}

.guide-message p {
  margin: 3px 0 0;
  color: var(--silver);
}

.guide-topics {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 16px 18px 0;
}

.guide-topics button {
  padding: 8px 11px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--silver);
  background: rgba(255, 255, 255, 0.03);
  font-size: 12px;
  cursor: pointer;
  transition: color var(--ease), border-color var(--ease), background var(--ease);
}

.guide-topics button:hover {
  border-color: var(--line-strong);
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
}

.guide-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 44px;
  align-items: end;
  gap: 10px;
  padding: 14px 18px 18px;
}

.guide-form textarea {
  width: 100%;
  min-height: 54px;
  max-height: 140px;
  resize: none;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  outline: 0;
  color: var(--white);
  background: rgba(0, 0, 0, 0.42);
  transition: border-color var(--ease);
}

.guide-form textarea:focus {
  border-color: var(--white);
}

.icon-command {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid var(--white);
  border-radius: 50%;
  color: var(--black);
  background: var(--white);
  font-size: 22px;
  cursor: pointer;
}

/* ==========================================================================
   07. ПРЕИМУЩЕСТВА И ПОДДЕРЖКА
   ========================================================================== */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.feature-card {
  position: relative;
  min-height: 430px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(0, 0, 0, 0.78);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(22px) saturate(112%);
  -webkit-backdrop-filter: blur(22px) saturate(112%);
  transition: transform var(--ease), border-color var(--ease), box-shadow var(--ease), background var(--ease);
}

.feature-card:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 255, 255, 0.52);
  background: rgba(5, 5, 5, 0.88);
  box-shadow: 0 0 34px rgba(255, 255, 255, 0.12), 0 28px 70px rgba(0, 0, 0, 0.7);
}

.feature-card img {
  width: 190px;
  height: 190px;
  align-self: center;
  object-fit: contain;
  mix-blend-mode: screen;
}

/* На главной скругления и стекло мягче, чем во внутренних рабочих экранах. */
#view-home .button {
  border-radius: var(--radius);
}

#view-home .guide-topics button,
#view-home .guide-form textarea {
  border-radius: 16px;
}

.feature-card span,
.tariff-index {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.feature-card h3 {
  margin: 8px 0;
}

.feature-card p {
  margin-bottom: 0;
  color: var(--silver);
}

.support-band {
  padding-block: 74px;
  border-block: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.58);
}

.support-band-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
}

.support-band h2 {
  max-width: 670px;
  margin-bottom: 0;
}

.support-actions {
  display: flex;
  flex: 0 0 auto;
  gap: 10px;
}

.support-band-compact {
  justify-content: center;
}

.support-band-compact .support-actions {
  width: min(100%, 520px);
}

.support-band-compact .button {
  flex: 1;
}

/* ==========================================================================
   08. ОБЩИЕ СТИЛИ ВНУТРЕННИХ ЭКРАНОВ
   ========================================================================== */
.view-page {
  padding-block: calc(var(--header-height) + 72px) 110px;
}

.page-intro {
  max-width: 760px;
  margin-bottom: 38px;
}

.page-intro h1 {
  margin-bottom: 14px;
}

.page-intro > p:last-child,
.page-intro-with-icon > div > p:last-child {
  color: var(--silver);
  font-size: 17px;
}

.page-intro-with-icon {
  max-width: none;
  display: flex;
  align-items: center;
  gap: 24px;
}

.page-intro-with-icon > img {
  width: 96px;
  height: 96px;
  flex: 0 0 96px;
  object-fit: contain;
}

.tariff-page-intro {
  margin-top: 28px;
}

.tariff-page-intro > img {
  object-fit: contain;
}

.segmented-control {
  width: fit-content;
  display: flex;
  gap: 4px;
  margin-bottom: 30px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(0, 0, 0, 0.36);
}

.segmented-control button {
  min-width: 132px;
  min-height: 40px;
  padding: 0 14px;
  border: 0;
  border-radius: var(--radius);
  color: var(--silver);
  background: transparent;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.segmented-control button.is-active {
  color: var(--black);
  background: var(--white);
}

.segmented-control span {
  color: inherit;
  opacity: 0.65;
}

/* ==========================================================================
   09. ТАРИФЫ
   ========================================================================== */
.tariff-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  gap: 14px;
}

.tariff-grid-duo {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  justify-content: center;
}

.tariff-card {
  position: relative;
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(8, 8, 8, 0.88);
  box-shadow: var(--shadow);
}

.tariff-card-featured {
  border-color: rgba(255, 255, 255, 0.44);
  background: rgba(18, 18, 18, 0.92);
}

.tariff-label {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 5px 8px;
  border-radius: var(--radius);
  color: var(--black);
  background: var(--white);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tariff-card > img {
  width: 100%;
  height: 158px;
  margin-bottom: 18px;
  object-fit: contain;
}

.tariff-card h2 {
  margin: 5px 0 8px;
  font-size: 30px;
}

.tariff-subtitle {
  min-height: 48px;
  color: var(--silver);
  font-size: 14px;
}

.tariff-price {
  display: flex;
  align-items: flex-start;
  gap: 3px;
  margin: 16px 0;
}

.tariff-price strong {
  font-size: 42px;
  line-height: 1;
}

.tariff-price span {
  padding-top: 4px;
  color: var(--silver);
}

.tariff-card ul {
  display: grid;
  gap: 10px;
  margin: 0 0 24px;
  padding: 18px 0 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.tariff-card li {
  position: relative;
  padding-left: 17px;
  color: #d2d2cd;
  font-size: 13px;
}

.tariff-card li::before {
  content: "";
  position: absolute;
  top: 8px;
  left: 0;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--white);
}

.tariff-card .button {
  width: 100%;
  margin-top: auto;
}

.tariff-card-quasar {
  min-height: 600px;
  padding: 30px;
}

.tariff-card-quasar > img {
  height: 210px;
}

/* ==========================================================================
   10. УСТРОЙСТВА
   ========================================================================== */
.device-console,
.referral-panel {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.device-counter {
  min-height: 190px;
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) 52px;
  align-items: center;
  gap: 18px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-align: center;
  background: rgba(255, 255, 255, 0.025);
}

.device-counter div {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.device-counter span,
.device-counter small {
  color: var(--silver);
  font-size: 12px;
}

.device-counter strong {
  margin-block: 3px;
  font-size: 60px;
  line-height: 1;
}

.stepper-button {
  width: 52px;
  height: 52px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  font-size: 25px;
  cursor: pointer;
  transition: border-color var(--ease), background var(--ease);
}

.stepper-button:hover {
  border-color: var(--white);
  background: rgba(255, 255, 255, 0.08);
}

.device-list-heading {
  display: flex;
  justify-content: space-between;
  margin: 28px 0 12px;
}

.device-list-heading h2 {
  margin: 0;
  font-size: 17px;
}

.device-list-heading span {
  color: var(--silver);
  font-size: 12px;
}

.device-list {
  display: grid;
  gap: 8px;
  margin-bottom: 20px;
}

.device-row {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.device-row-info {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 12px;
}

.device-row-icon {
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  font-weight: 900;
}

.device-row strong,
.device-row small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.device-row small {
  color: var(--success);
}

.device-remove {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  color: var(--muted);
  background: transparent;
  font-size: 19px;
  cursor: pointer;
}

.device-remove:hover {
  color: var(--danger);
  background: rgba(255, 116, 116, 0.08);
}

/* ==========================================================================
   11. ПАРТНЁРСКАЯ ПРОГРАММА
   ========================================================================== */
.partner-stats,
.account-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 26px;
}

.partner-stats > div,
.account-metrics > div {
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(8, 8, 8, 0.78);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(18px) saturate(112%);
  -webkit-backdrop-filter: blur(18px) saturate(112%);
}

.partner-stats span,
.account-metrics span {
  display: block;
  margin-bottom: 6px;
  color: var(--silver);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.partner-stats strong {
  font-size: 30px;
}

.partner-stats small {
  color: var(--silver);
  font-size: 12px;
}

.partner-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.partner-terms,
.referral-panel {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(18px) saturate(112%);
  -webkit-backdrop-filter: blur(18px) saturate(112%);
}

.numbered-list {
  display: grid;
  gap: 0;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.numbered-list li {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 12px;
  padding: 15px 0;
  border-top: 1px solid var(--line);
}

.numbered-list span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.numbered-list p {
  margin: 0;
}

.referral-panel code {
  display: block;
  min-height: 96px;
  margin: 20px 0;
  padding: 14px;
  overflow-wrap: anywhere;
  border: 1px solid var(--line);
  border-radius: 16px;
  color: var(--silver);
  background: rgba(0, 0, 0, 0.42);
  font-size: 15px;
  line-height: 1.55;
}

/* ==========================================================================
   12. ЛИЧНЫЙ КАБИНЕТ
   ========================================================================== */
.profile-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 26px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.profile-identity {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 15px;
}

.profile-avatar {
  flex: 0 0 58px;
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
}

.profile-avatar img {
  width: 27px;
  height: 44px;
  object-fit: contain;
}

.profile-header h1 {
  margin-bottom: 3px;
  font-size: 28px;
}

.profile-header p {
  margin-bottom: 0;
  color: var(--silver);
  font-size: 12px;
}

.status-badge {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 10px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: var(--radius);
  color: var(--white);
  font-size: 11px;
  font-weight: 800;
}

.status-badge i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 14px rgba(255, 255, 255, 0.94);
}

.account-metrics {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.account-metrics strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 17px;
}

.subscription-overview {
  position: relative;
  min-height: 286px;
  margin-bottom: 28px;
  padding: 30px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(5, 5, 5, 0.86);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), var(--shadow);
  backdrop-filter: blur(20px) saturate(112%);
  -webkit-backdrop-filter: blur(20px) saturate(112%);
}

.subscription-overview-heading {
  position: relative;
  z-index: 1;
  min-height: 112px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.subscription-overview-heading span {
  color: var(--silver);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.subscription-overview-heading h2 {
  margin-top: 8px;
  font-size: 54px;
}

.subscription-overview-heading > img {
  position: absolute;
  top: -70px;
  right: -28px;
  width: 250px;
  height: 250px;
  object-fit: contain;
  opacity: 0.88;
  pointer-events: none;
}

.subscription-overview .account-metrics {
  position: relative;
  z-index: 2;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 22px 0 0;
}

.subscription-overview .account-metrics > div {
  min-height: 82px;
  padding: 16px;
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.72);
}

.connection-section {
  margin-top: 52px;
}

.dashboard-heading {
  margin-bottom: 26px;
}

.dashboard-heading h2 {
  margin-bottom: 0;
  white-space: nowrap;
}

.app-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.app-button {
  min-height: 152px;
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr) 24px;
  align-items: center;
  gap: 15px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--white);
  background: rgba(0, 0, 0, 0.82);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(22px) saturate(112%);
  -webkit-backdrop-filter: blur(22px) saturate(112%);
  text-align: left;
  cursor: pointer;
  transition:
    transform var(--ease),
    border-color var(--ease),
    background var(--ease),
    box-shadow var(--ease);
}

.app-button:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 255, 255, 0.54);
  background: rgba(5, 5, 5, 0.92);
  box-shadow: 0 0 34px rgba(255, 255, 255, 0.12), 0 28px 70px rgba(0, 0, 0, 0.7);
}

.app-button img {
  width: 82px;
  height: 82px;
  object-fit: contain;
  transform: none;
  filter: none;
}

.app-button strong,
.app-button small {
  display: block;
}

.app-button strong {
  font-size: 16px;
}

.app-button small {
  color: var(--silver);
}

.app-button b {
  font-size: 20px;
}

.account-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 28px;
}

.account-links button {
  min-height: 48px;
  padding: 10px;
  border: 1px solid var(--white);
  border-radius: var(--radius);
  color: var(--black);
  background: var(--white);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.28);
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
  transition: transform var(--ease), background var(--ease), box-shadow var(--ease);
}

.account-links button:hover {
  color: var(--black);
  background: #e9e9e5;
  box-shadow: 0 0 24px rgba(255, 255, 255, 0.16);
  transform: translateY(-2px);
}

/* ==========================================================================
   13. ФУТЕР, МОБИЛЬНОЕ МЕНЮ, МОДАЛЬНОЕ ОКНО
   ========================================================================== */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--black);
}

.footer-inner {
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  color: var(--muted);
  font-size: 12px;
}

.footer-brand img {
  width: 145px;
  height: auto;
}

.footer-inner p {
  margin: 0;
}

.mobile-nav {
  display: none;
}

.telegram-mini-app .site-header,
.telegram-mini-app .site-footer {
  display: none;
}

.telegram-mini-app .view-page {
  padding-top: max(24px, env(safe-area-inset-top));
}

.modal {
  width: min(calc(100% - 30px), 440px);
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  color: var(--white);
  background: rgba(8, 8, 8, 0.94);
  box-shadow:
    0 34px 110px rgba(0, 0, 0, 0.86),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(30px) saturate(115%);
  -webkit-backdrop-filter: blur(30px) saturate(115%);
}

.modal::backdrop {
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(12px);
}

.modal form {
  position: relative;
  padding: 32px;
}

.modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--white);
  background: rgba(255, 255, 255, 0.04);
  font-size: 21px;
  line-height: 1;
  cursor: pointer;
  transition: background var(--ease), border-color var(--ease), transform var(--ease);
}

.modal-close:hover {
  border-color: var(--white);
  background: rgba(255, 255, 255, 0.1);
  transform: rotate(90deg);
}

.modal h2 {
  margin-bottom: 10px;
  padding-right: 42px;
  font-size: clamp(30px, 5vw, 38px);
  letter-spacing: 0;
}

.modal #modal-copy {
  max-width: 340px;
  margin-bottom: 26px;
  color: var(--silver);
  line-height: 1.55;
}

.modal-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
}

.modal-actions .button {
  width: 100%;
  min-width: 0;
}

.modal-payment {
  border-color: rgba(255, 255, 255, 0.42);
}

.modal-payment .eyebrow {
  margin-bottom: 10px;
}

.modal-payment .modal-actions {
  grid-template-columns: 1fr 1fr;
}

.modal-payment .button {
  min-height: 52px;
  padding-inline: 14px;
  white-space: nowrap;
}

@media (max-width: 520px) {
  .modal form {
    padding: 28px 22px 22px;
  }

  .modal-payment .modal-actions {
    grid-template-columns: 1fr;
  }
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 2100;
  max-width: min(360px, calc(100vw - 36px));
  padding: 12px 15px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  color: var(--white);
  background: #111;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity var(--ease), transform var(--ease);
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   14. ПРЕМИАЛЬНОЕ СТЕКЛО И ИНТЕРАКТИВНЫЕ БЛОКИ
   Единый эффект для карточек, панелей и элементов управления.
   ========================================================================== */
.guide,
.feature-card,
.tariff-card,
.device-console,
.partner-stats > div,
.partner-terms,
.referral-panel,
.subscription-overview,
.app-button {
  border-color: var(--glass-border);
  background-color: var(--glass-surface);
  box-shadow: var(--glass-shadow);
  backdrop-filter: blur(24px) saturate(128%) contrast(104%);
  -webkit-backdrop-filter: blur(24px) saturate(128%) contrast(104%);
}

.feature-card,
.tariff-card,
.partner-stats > div,
.partner-terms,
.referral-panel,
.app-button,
.device-item,
.guide-topics button,
.button,
.segmented-control button,
.stepper-button {
  transform: translateZ(0);
  transition:
    transform 280ms cubic-bezier(0.2, 0.8, 0.2, 1),
    border-color 280ms ease,
    background-color 280ms ease,
    box-shadow 280ms ease,
    color 280ms ease;
}

.device-item,
.guide-topics button,
.subscription-overview .account-metrics > div {
  border-color: var(--glass-border);
  background-color: rgba(6, 6, 6, 0.7);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(18px) saturate(120%);
  -webkit-backdrop-filter: blur(18px) saturate(120%);
  transition:
    transform 260ms cubic-bezier(0.2, 0.8, 0.2, 1),
    border-color 260ms ease,
    background-color 260ms ease,
    box-shadow 260ms ease;
}

.guide,
.device-console,
.subscription-overview {
  transition:
    border-color 300ms ease,
    background-color 300ms ease,
    box-shadow 300ms ease;
}

@media (hover: hover) and (pointer: fine) {
  .feature-card:hover,
  .tariff-card:hover,
  .partner-stats > div:hover,
  .partner-terms:hover,
  .referral-panel:hover,
  .app-button:hover {
    z-index: 3;
    border-color: var(--glass-border-hover);
    background-color: var(--glass-surface-hover);
    box-shadow: var(--glass-shadow-hover);
    transform: translateY(-5px) scale(1.014);
  }

  .device-item:hover,
  .guide-topics button:hover,
  .subscription-overview .account-metrics > div:hover {
    z-index: 3;
    border-color: var(--glass-border-hover);
    background-color: rgba(20, 20, 20, 0.88);
    box-shadow: 0 16px 42px rgba(0, 0, 0, 0.52), 0 0 22px rgba(255, 255, 255, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transform: translateY(-3px) scale(1.018);
  }

  .guide:hover,
  .device-console:hover,
  .subscription-overview:hover {
    border-color: rgba(255, 255, 255, 0.36);
    background-color: rgba(13, 13, 13, 0.76);
    box-shadow: 0 28px 84px rgba(0, 0, 0, 0.58), 0 0 30px rgba(255, 255, 255, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.16);
  }

  .button:hover,
  .segmented-control button:hover,
  .stepper-button:hover {
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.46), 0 0 20px rgba(255, 255, 255, 0.12);
    transform: translateY(-2px) scale(1.025);
  }
}

/* ==========================================================================
   15. АДАПТАЦИЯ
   ========================================================================== */
@media (max-width: 960px) {
  h1 {
    font-size: 46px;
  }

  .hero h1 {
    font-size: 62px;
  }

  .feature-grid,
  .tariff-grid {
    grid-template-columns: 1fr;
  }

  .feature-card {
    min-height: 300px;
    display: grid;
    grid-template-columns: 160px 1fr;
    align-items: center;
    gap: 26px;
  }

  .feature-card img {
    width: 150px;
    height: 150px;
  }

  .tariff-card {
    display: grid;
    grid-template-columns: 170px minmax(0, 1fr);
    column-gap: 22px;
  }

  .tariff-card > img {
    grid-row: 1 / span 6;
    height: 180px;
  }

  .tariff-card .button {
    grid-column: 2;
  }

  .partner-layout {
    grid-template-columns: 1fr;
  }

  .account-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  :root {
    --header-height: 58px;
  }

  body {
    padding-bottom: calc(70px + env(safe-area-inset-bottom));
  }

  .space-scene {
    background-image: url("../images/space-mobile.webp");
  }

  .shell,
  .shell-narrow {
    width: min(calc(100% - 28px), var(--content-width));
  }

  h1 {
    font-size: 38px;
  }

  h2 {
    font-size: 30px;
  }

  .site-header {
    display: none;
  }

  .hero {
    min-height: 100svh;
    padding-top: 28px;
  }

  .hero-mark-wrap {
    width: 290px;
    height: 290px;
  }

  .hero-mark {
    width: 108px;
    height: 174px;
  }

  .orbit-one {
    width: 280px;
    height: 280px;
  }

  .orbit-two {
    width: 210px;
    height: 210px;
  }

  .orbit-three {
    width: 142px;
    height: 142px;
  }

  .hero-wordmark {
    width: min(330px, 88%);
  }

  .hero-manifesto {
    gap: 7px;
    font-size: 10px;
    letter-spacing: 0.1em;
  }

  .hero-actions {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .section {
    padding-block: 68px;
  }

  .section-heading-split {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .guide-log {
    min-height: 220px;
    padding: 18px;
  }

  .guide-form {
    grid-template-columns: minmax(0, 1fr) 46px;
    align-items: center;
    gap: 8px;
    padding: 14px;
  }

  .guide-form textarea {
    min-height: 50px;
    max-height: 50px;
    padding: 13px 15px;
    overflow: hidden;
    line-height: 1.35;
  }

  .icon-command {
    width: 46px;
    height: 46px;
  }

  .guide-topics {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .guide-topics button {
    min-height: 42px;
    text-align: left;
  }

  .feature-grid {
    display: grid;
    grid-template-columns: 1fr;
  }

  .feature-card {
    min-height: 0;
    grid-template-columns: 112px 1fr;
    gap: 14px;
    padding: 18px;
  }

  .feature-card img {
    width: 104px;
    height: 104px;
  }

  .feature-card h3 {
    font-size: 18px;
  }

  .feature-card p {
    font-size: 13px;
  }

  .support-band-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .support-actions {
    width: 100%;
  }

  .support-actions .button {
    flex: 1;
  }

  .view-page {
    padding-block: 34px 80px;
  }

  .page-intro-with-icon {
    align-items: flex-start;
  }

  .page-intro-with-icon > img {
    width: 76px;
    height: 76px;
    flex-basis: 76px;
  }

  .segmented-control {
    width: 100%;
  }

  .segmented-control button {
    min-width: 0;
    flex: 1;
  }

  .tariff-card {
    display: flex;
  }

  .tariff-card-quasar {
    min-height: 0;
    padding: 22px;
  }

  .tariff-card-featured {
    order: -1;
  }

  .tariff-card > img {
    width: 100%;
    height: 150px;
  }

  .tariff-card .button {
    width: 100%;
  }

  .device-console {
    padding: 16px;
  }

  .device-counter {
    grid-template-columns: 46px minmax(0, 1fr) 46px;
    gap: 10px;
    padding: 16px 10px;
  }

  .stepper-button {
    width: 46px;
    height: 46px;
  }

  .partner-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .partner-stats > div:last-child {
    grid-column: 1 / -1;
  }

  .profile-header {
    position: relative;
    align-items: center;
  }

  #view-dashboard .shell-narrow {
    padding-top: 30px;
  }

  .profile-header h1 {
    font-size: 22px;
  }

  .subscription-overview {
    min-height: 350px;
    padding: 22px;
  }

  .subscription-overview-heading {
    min-height: 128px;
  }

  .subscription-overview-heading h2 {
    font-size: 46px;
  }

  .subscription-overview-heading > img {
    top: -42px;
    right: -40px;
    width: 190px;
    height: 190px;
  }

  .subscription-overview .account-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 18px;
  }

  .subscription-overview .account-metrics > div {
    min-height: 76px;
    padding: 14px;
  }

  .subscription-overview .account-metrics strong {
    overflow: visible;
    white-space: normal;
    font-size: 15px;
    line-height: 1.15;
  }

  .dashboard-heading h2 {
    max-width: 100%;
    font-size: 24px;
    line-height: 1.1;
  }

  .account-metrics {
    grid-template-columns: 1fr 1fr;
  }

  .app-grid {
    grid-template-columns: 1fr;
  }

  .app-button {
    min-height: 118px;
  }

  .account-links {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    min-height: 150px;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
    text-align: center;
  }

  .mobile-nav {
    position: fixed;
    inset: auto 0 0;
    z-index: 1500;
    height: calc(66px + env(safe-area-inset-bottom));
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    padding-bottom: env(safe-area-inset-bottom);
    border-top: 1px solid var(--line);
    background: rgba(3, 3, 3, 0.93);
    backdrop-filter: blur(22px);
  }

  .mobile-nav button {
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    padding: 4px 2px;
    border: 0;
    color: var(--muted);
    background: transparent;
    font-size: 9px;
    font-weight: 750;
    cursor: pointer;
  }

  .mobile-nav img {
    width: 24px;
    height: 24px;
    object-fit: contain;
    opacity: 0.44;
    filter: grayscale(1);
  }

  .mobile-nav button.is-active {
    color: var(--white);
  }

  .mobile-nav button.is-active img {
    opacity: 1;
    filter: grayscale(0);
  }

  .toast {
    right: 14px;
    bottom: calc(80px + env(safe-area-inset-bottom));
  }
}

@media (max-width: 430px) {
  .hero-actions,
  .guide-topics {
    grid-template-columns: 1fr;
  }

  .support-actions {
    display: grid;
  }

  .page-intro-with-icon {
    display: block;
  }

  .page-intro-with-icon > img {
    margin-bottom: 14px;
  }

  .partner-stats,
  .account-metrics {
    grid-template-columns: 1fr;
  }

  .account-metrics > div {
    grid-column: auto;
    grid-row: auto;
  }

  .partner-stats > div:last-child {
    grid-column: auto;
  }

  .profile-header {
    display: flex;
    align-items: center;
    gap: 12px;
  }

  .status-badge {
    width: fit-content;
    margin-left: auto;
  }

  .app-button {
    grid-template-columns: 70px minmax(0, 1fr) 20px;
    padding: 14px;
  }

  .app-button img {
    width: 70px;
    height: 70px;
  }

  .mobile-nav span {
    max-width: 58px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
