:root {
  color-scheme: dark;
  --bg: #07111a;
  --card: rgba(9, 22, 32, 0.86);
  --card-strong: rgba(15, 31, 43, 0.96);
  --line: rgba(154, 193, 214, 0.16);
  --text: #f3f7fb;
  --muted: #a9bfcd;
  --accent: #63e6be;
  --accent-2: #f7b538;
  --danger: #ff7a7a;
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
  --shadow-soft: 0 10px 24px rgba(0, 0, 0, 0.12);
  --radius: 24px;
  --shell-max: 920px;
  --shell-site-max: 1180px;
  --shell-mobile-max: 430px;
  --mono: "JetBrains Mono", monospace;
  --sans: "Manrope", "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: rgba(99, 230, 190, 0.12);
}

[hidden] {
  display: none !important;
}

html,
body {
  margin: 0;
  min-height: 100%;
  overflow-x: hidden;
  background:
    radial-gradient(circle at top left, rgba(99, 230, 190, 0.16), transparent 34%),
    radial-gradient(circle at top right, rgba(247, 181, 56, 0.2), transparent 30%),
    linear-gradient(180deg, #08131d 0%, #04090e 100%);
  color: var(--text);
  font-family: var(--sans);
}

body {
  position: relative;
  display: flex;
  justify-content: center;
  padding: 18px 16px 136px;
}

body.sheet-open {
  overflow: hidden;
}

.bg-grid {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.75), transparent 92%);
  pointer-events: none;
}

.shell {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 16px;
  width: min(100%, var(--shell-max));
  max-width: var(--shell-max);
  margin: 0 auto;
}

.shell--auth {
  max-width: 760px;
}

.shell--auth .panel {
  display: none !important;
}

.shell,
.card,
.tabs,
.shop-entry,
.shop-wizard,
.panel,
.service-group,
.panel,
.shop-wizard,
.shop-carousel,
.shop-track,
.shop-step,
.shop-stepper__meta {
  min-width: 0;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.hero,
.tech-card,
.node-card,
.plan-card,
.service-card,
.help-card,
.variant-panel,
.overview {
  padding: 18px;
}

.hero {
  overflow: hidden;
  position: relative;
  padding: 20px;
}

.hero--inline {
  margin-top: 2px;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto -10% -40% auto;
  width: 180px;
  height: 180px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(99, 230, 190, 0.14), transparent 70%);
}

.hero__kicker,
.eyebrow {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}

.hero__row,
.section-head,
.sheet-head,
.variant-panel__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.hero__row--stack {
  flex-direction: column;
}

.hero h1,
.section-head h2,
.help-card h2,
.sheet-head h3 {
  margin: 0;
  line-height: 1;
}

.hero h1 {
  font-size: clamp(28px, 5vw, 40px);
  line-height: 1.04;
}

.section-head h2,
.help-card h2,
.sheet-head h3,
.variant-panel h3 {
  font-size: 24px;
}

.hero__chips,
.segmented,
.sheet-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero__facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  width: 100%;
}

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

.hero__fact {
  min-width: 0;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: var(--shadow-soft);
}

.hero__fact strong {
  display: block;
  font-size: 15px;
}

.hero__fact-label {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.chip,
.badge,
.status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  font-size: 13px;
  font-weight: 800;
}

.chip {
  color: var(--muted);
}

.chip--accent,
.badge--accent {
  background: var(--accent);
  color: #061018;
}

.plan-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  padding: 5px 9px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(169, 191, 205, 0.96);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.tabs {
  display: grid;
  grid-template-columns: repeat(var(--tab-columns, 2), minmax(0, 1fr));
  align-items: stretch;
  gap: var(--tab-gap, 10px);
  padding: 6px;
  border-radius: 22px;
  background: rgba(7, 18, 26, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(16px);
  overflow: hidden;
}

.tabs[hidden] {
  display: none !important;
}

.shop-stepper {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  align-items: start;
  gap: 12px;
  padding: 12px 14px;
}

.shop-stepper--root {
  grid-template-columns: minmax(0, 1fr) auto;
}

.shop-stepper__actions {
  display: flex;
  align-items: center;
  align-self: start;
  justify-self: end;
  gap: 8px;
}

.shop-entry,
.review-card {
  padding: 18px;
}

.auth-card {
  display: grid;
  gap: 14px;
  padding: 20px;
}

.auth-card__copy,
.auth-card__aside {
  display: grid;
  gap: 14px;
}

.auth-card__copy h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 38px);
  line-height: 1.04;
}

.auth-grid {
  display: grid;
  gap: 10px;
}

.auth-points {
  display: grid;
  gap: 12px;
}

.auth-point {
  display: grid;
  gap: 4px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.04);
}

.auth-point strong {
  font-size: 14px;
}

.auth-point span {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.42;
}

.auth-widget {
  display: flex;
  justify-content: center;
  width: 100%;
  min-height: 52px;
}

.auth-widget > * {
  max-width: 100%;
}

.auth-actions {
  display: flex;
  justify-content: flex-start;
}

.shop-entry {
  display: grid;
  gap: 10px;
}

.shop-entry h3,
.review-card h3 {
  margin: 0;
  font-size: 22px;
}

.shop-stepper__meta {
  min-width: 0;
}

.shop-stepper__meta h3,
.shop-stepper__meta p {
  margin: 0;
}

.shop-stepper__meta h3 {
  line-height: 1.12;
  word-break: break-word;
}

.callout,
.card-note,
.hero p,
.hero h1,
.section-head h2,
.tech-card h3,
.node-card h3,
.plan-card h3,
.shop-stepper__meta,
.shop-stepper__meta p,
.shop-stepper__meta h3 {
  overflow-wrap: anywhere;
}

.shop-stepper__meta .card-note {
  margin-top: 4px;
}

.shop-step {
  display: grid;
  gap: 14px;
  position: absolute;
  inset: 0;
  width: 100%;
  min-width: 100%;
  max-width: 100%;
  padding: 2px 0 4px;
  transform: translate3d(108%, 0, 0) scale(0.98);
  transform-origin: center center;
  opacity: 0;
  filter: none;
  pointer-events: none;
  transition: transform 520ms cubic-bezier(0.2, 0.9, 0.2, 1), opacity 220ms ease;
  overflow: hidden;
}

.shop-step[hidden] {
  display: none !important;
}

.shop-step.is-current {
  position: relative;
  inset: auto;
  transform: translate3d(0, 0, 0) scale(1);
  opacity: 1;
  filter: none;
  pointer-events: auto;
  z-index: 2;
}

.shop-step.is-near {
  opacity: 1;
  filter: none;
}

.shop-step.is-past {
  transform: translate3d(-108%, 0, 0) scale(0.98);
  opacity: 0;
  z-index: 1;
}

.shop-step.is-future {
  transform: translate3d(108%, 0, 0) scale(0.98);
  opacity: 0;
  z-index: 1;
}

.shop-wizard {
  display: grid;
  gap: 14px;
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
}

.shop-carousel {
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: 100%;
  padding: 2px 0;
  perspective: 1200px;
  isolation: isolate;
}

.shop-track {
  position: relative;
  width: 100%;
  max-width: none;
  min-width: 0;
  padding: 0;
  overflow: hidden;
}

.shop-step-action {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  gap: 10px;
  width: 100%;
  max-width: 100%;
}

.shop-step-action[hidden] {
  display: none !important;
}

.shop-step-action .action-btn {
  min-height: 54px;
  width: 100%;
  max-width: 100%;
}

.choice-summary {
  display: grid;
  grid-column: 1 / -1;
  gap: 6px;
  padding: 16px 18px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(99, 230, 190, 0.14);
}

.choice-summary strong {
  font-size: 17px;
  line-height: 1.24;
}

.choice-summary span {
  color: var(--text);
  font-weight: 700;
}

.choice-summary .card-note {
  margin: 0;
}

.icon-btn--danger {
  color: var(--text);
  background: rgba(255, 122, 122, 0.12);
  border: 1px solid rgba(255, 122, 122, 0.14);
}

.tab,
.segmented button,
.action-btn,
.ghost-btn,
.icon-btn,
.action-link,
.plan-card button,
.node-card button,
.tech-card button,
.service-card button {
  appearance: none;
  border: 0;
  font: inherit;
  cursor: pointer;
}

.tab {
  min-width: 0;
  min-height: 48px;
  padding: 12px 10px;
  border-radius: 18px;
  background: transparent;
  color: var(--muted);
  font-weight: 800;
  font-size: clamp(13px, 3.4vw, 16px);
  text-align: center;
  line-height: 1.08;
  white-space: normal;
  word-break: break-word;
  transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}

.tab.is-active {
  background: linear-gradient(135deg, rgba(99, 230, 190, 0.18), rgba(247, 181, 56, 0.16));
  color: var(--text);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.panel {
  display: none;
  gap: 16px;
  min-width: 0;
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
}

.panel.is-active {
  display: grid;
  animation: fade-up 220ms ease;
}

.grid {
  display: grid;
  gap: 12px;
}

.tech-grid,
.plan-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.node-grid,
.service-grid,
.help-grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.tech-card,
.node-card,
.plan-card,
.service-card {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.tech-card.is-choice,
.node-card.is-choice,
.plan-card.is-choice {
  max-height: 960px;
  transition:
    transform 240ms cubic-bezier(0.22, 1, 0.36, 1),
    border-color 160ms ease,
    box-shadow 160ms ease,
    opacity 220ms ease,
    max-height 280ms ease,
    padding 220ms ease,
    margin 220ms ease;
}

.tech-card.is-choice.is-collapsed,
.node-card.is-choice.is-collapsed,
.plan-card.is-choice.is-collapsed {
  max-height: 0;
  padding: 0;
  margin: 0;
  border-width: 0;
  opacity: 0;
  transform: translateX(48px) scale(0.9);
  pointer-events: none;
}

.tech-card.is-choice.is-confirmed,
.node-card.is-choice.is-confirmed,
.plan-card.is-choice.is-confirmed {
  box-shadow: 0 22px 44px rgba(0, 0, 0, 0.2);
}

.tech-card > *,
.node-card > *,
.plan-card > *,
.service-card > * {
  position: relative;
  z-index: 1;
}

.tech-card:hover,
.node-card:hover,
.plan-card:hover,
.service-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 42px rgba(0, 0, 0, 0.18);
}

.tech-card::before,
.node-card::before,
.plan-card::before,
.service-card::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 180ms ease;
  background: linear-gradient(135deg, rgba(99, 230, 190, 0.08), rgba(247, 181, 56, 0.08));
}

.tech-card.is-selected::before,
.node-card.is-selected::before,
.plan-card:hover::before,
.service-card:hover::before {
  opacity: 0.72;
}

.tech-card.is-selected,
.node-card.is-selected {
  border-color: rgba(99, 230, 190, 0.4);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.18), inset 0 0 0 1px rgba(99, 230, 190, 0.12);
}

.tech-card h3,
.node-card h3,
.plan-card h3,
.service-card h3 {
  margin: 0;
  font-size: 18px;
}

.service-card h3 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.card-note,
.service-meta,
.muted {
  color: var(--muted);
  font-size: 14px;
}

.price {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.mono,
code {
  font-family: var(--mono);
}

code {
  padding: 2px 6px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
  color: #d4fbe8;
  word-break: break-all;
}

.segmented button,
.action-btn,
.ghost-btn,
.icon-btn,
.action-link,
.node-card button,
.plan-card button,
.tech-card button,
.service-card button {
  padding: 12px 14px;
  border-radius: 16px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  text-decoration: none;
  transition: transform 120ms ease, opacity 120ms ease, box-shadow 160ms ease, background 160ms ease, color 160ms ease;
}

.segmented button {
  max-height: 124px;
  overflow: hidden;
  transition:
    transform 240ms cubic-bezier(0.22, 1, 0.36, 1),
    opacity 220ms ease,
    box-shadow 160ms ease,
    background 160ms ease,
    color 160ms ease,
    max-height 240ms ease,
    padding 220ms ease,
    margin 220ms ease;
}

.segmented button,
.node-card button,
.plan-card button,
.tech-card button,
.service-card button,
.action-link {
  width: 100%;
  margin-top: auto;
}

.tab:active,
.segmented button:active,
.action-btn:active,
.ghost-btn:active,
.icon-btn:active,
.action-link:active,
.node-card button:active,
.plan-card button:active,
.tech-card button:active,
.service-card button:active {
  transform: translateY(1px) scale(0.985);
}

.tab:disabled,
.segmented button:disabled,
.action-btn:disabled,
.ghost-btn:disabled,
.icon-btn:disabled,
.action-link:disabled,
.node-card button:disabled,
.plan-card button:disabled,
.tech-card button:disabled,
.service-card button:disabled {
  cursor: wait;
  opacity: 0.65;
}

.segmented button,
.ghost-btn,
.action-link--soft {
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted);
}

.icon-btn {
  width: 44px;
  min-width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  font-size: 28px;
  line-height: 1;
}

.segmented button.is-selected,
.action-btn,
.action-link--primary,
.node-card button,
.plan-card button,
.tech-card button,
.service-card button {
  background: linear-gradient(135deg, #5be2bc, #f7b538);
  color: #061018;
}

.segmented button.is-collapsed {
  max-height: 0;
  padding: 0;
  margin: 0;
  opacity: 0;
  transform: translateX(32px) scale(0.9);
  overflow: hidden;
  pointer-events: none;
}

.tech-card.is-selected button,
.node-card.is-selected button,
.variant-panel .segmented button.is-selected {
  background: rgba(99, 230, 190, 0.16);
  color: var(--text);
  box-shadow: inset 0 0 0 1px rgba(99, 230, 190, 0.24);
}

.tech-card.is-selected .card-note,
.node-card.is-selected .card-note,
.variant-panel .segmented button.is-selected .muted {
  color: rgba(243, 247, 251, 0.8);
}

.action-btn--danger {
  background: rgba(255, 122, 122, 0.14);
  color: #ffd7d7;
}

.action-btn--secondary {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
}

.action-btn--small {
  min-height: 46px;
  font-size: 14px;
}

.action-link--small {
  min-height: 46px;
  font-size: 14px;
}

.callout,
.routing-block {
  display: block;
  width: 100%;
  max-width: 100%;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(99, 230, 190, 0.18);
  background: rgba(99, 230, 190, 0.08);
  color: #d9fff0;
}

.section-head > *,
.shop-stepper > *,
.shop-step > *,
.shop-step-action > * {
  min-width: 0;
  max-width: 100%;
}

.routing-block {
  margin-top: 18px;
}

.routing-block--compact {
  margin-top: 12px;
  padding: 12px 14px;
}

.routing-block strong,
.routing-block span {
  display: block;
}

.formatted {
  display: grid;
  gap: 12px;
}

.formatted p,
.formatted ul,
.formatted ol {
  margin: 0;
}

.formatted a {
  color: var(--accent);
}

.formatted hr,
.help-card hr {
  width: 100%;
  border: 0;
  border-top: 1px solid var(--line);
}

.overview ul {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
}

.overview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}

.overview-stat {
  display: grid;
  gap: 6px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  min-width: 0;
}

.overview-stat strong {
  font-size: 17px;
  line-height: 1.2;
}

.overview-stat span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.overview-notes {
  display: grid;
  gap: 8px;
  margin-top: 2px;
}

.overview-note {
  margin: 0;
  color: var(--muted);
}

.access-panel {
  display: grid;
  gap: 14px;
  padding: 18px;
}

.access-panel__head,
.access-panel__summary {
  display: grid;
  gap: 12px;
}

.access-panel__summary {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.access-panel__head .badge {
  justify-self: start;
  align-self: start;
}

.access-panel__section {
  display: grid;
  gap: 10px;
  padding: 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.empty {
  padding: 26px;
  border-radius: var(--radius);
  border: 1px dashed var(--line);
  color: var(--muted);
  text-align: center;
}

.sheet-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(4, 8, 12, 0.66);
  backdrop-filter: blur(10px);
  z-index: 40;
}

.sheet-backdrop[hidden],
.detail-sheet[hidden] {
  display: none !important;
}

.detail-sheet {
  position: fixed;
  inset: 0;
  display: grid;
  align-content: start;
  gap: 14px;
  padding:
    calc(env(safe-area-inset-top, 0px) + 18px)
    16px
    calc(env(safe-area-inset-bottom, 0px) + 28px);
  border: 0;
  border-radius: 0;
  background: var(--card-strong);
  box-shadow: 0 -24px 70px rgba(0, 0, 0, 0.4);
  overflow: auto;
  z-index: 50;
  animation: sheet-up 200ms ease;
}

.sheet-head {
  position: relative;
  flex-direction: row;
  align-items: center;
  margin: 0;
  padding: 0 0 2px;
  background: transparent;
}

.sheet-head > div {
  min-width: 0;
  flex: 1;
  padding-right: 8px;
}

.sheet-head .icon-btn {
  flex-shrink: 0;
}

.sheet-head h3 {
  line-height: 1.08;
  word-break: break-word;
}

.ghost-btn {
  align-self: flex-start;
}

.status-pill {
  width: fit-content;
  margin-bottom: 4px;
}

.status-pill:empty {
  display: none;
}

.sheet-primary-actions {
  display: grid;
  gap: 10px;
  margin-top: 0;
}

.shop-entry:not([hidden]),
.callout:not([hidden]),
.sheet-primary-actions:not([hidden]),
.sheet-store-links,
.service-region-switch,
.promo-box {
  animation: fade-up 180ms ease;
}

.sheet-primary-actions .sheet-actions {
  display: grid;
  gap: 10px;
}

.sheet-primary-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 52px;
  gap: 10px;
  align-items: stretch;
}

.sheet-primary-row > :only-child {
  grid-column: 1 / -1;
}

.sheet-secondary-row {
  display: grid;
  gap: 8px;
}

.sheet-primary-actions[hidden] {
  display: none;
}

.sheet-primary-actions .action-btn {
  min-height: 54px;
  font-size: 15px;
}

.action-btn--icon {
  min-height: 52px;
  width: 52px;
  min-width: 52px;
  padding: 0;
  font-size: 20px;
  line-height: 1;
}

.sheet-store-links,
.download-links__grid,
.service-card__actions {
  display: grid;
  gap: 10px;
}

.sheet-store-links,
.download-links__grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 6px;
}

.service-card__actions {
  margin-top: auto;
  padding-top: 4px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.service-card__primary-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 48px;
  gap: 10px;
  align-items: stretch;
}

.service-card__secondary-row {
  display: grid;
  gap: 10px;
}

.service-card__primary-row .action-btn--icon {
  min-height: 48px;
  width: 48px;
  padding: 0;
}

.service-region-switch {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.service-region-switch .chip {
  padding: 5px 9px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  cursor: pointer;
  background: rgba(255, 255, 255, 0.03);
  color: rgba(169, 191, 205, 0.92);
  font-size: 11px;
  font-weight: 700;
  transition: transform 160ms ease, background 160ms ease, color 160ms ease;
}

.service-region-switch .chip--accent {
  background: rgba(99, 230, 190, 0.18);
  color: var(--text);
  box-shadow: inset 0 0 0 1px rgba(99, 230, 190, 0.26);
}

.service-region-switch .chip:active {
  transform: scale(0.98);
}

.service-region-switch--compact {
  margin-top: 0;
}

.service-region-switch--compact .chip {
  padding: 4px 8px;
  font-size: 10px;
}

.access-panel__summary .service-region-switch {
  margin-top: 6px;
}

.access-panel__summary .service-region-switch--compact .chip {
  padding: 6px 8px;
  font-size: 11px;
}

.service-card__section {
  display: grid;
  gap: 8px;
  padding: 12px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.service-card__section-title {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.service-card__section--actions {
  margin-top: auto;
}

.service-card__action-btn {
  min-height: 48px;
  padding: 11px 13px;
  font-size: 13px;
}

.proxy-install-grid {
  display: grid;
  gap: 12px;
}

.proxy-protocol-card {
  display: grid;
  gap: 12px;
  padding: 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.proxy-protocol-card__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: start;
}

.proxy-protocol-card__head p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.proxy-protocol-card__actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 52px;
  gap: 10px;
  align-self: start;
  justify-self: end;
}

.proxy-protocol-card__actions--icon-only {
  grid-template-columns: 52px;
}

.proxy-manual-grid {
  display: grid;
  gap: 10px;
}

.proxy-manual-row {
  display: grid;
  gap: 8px;
}

.proxy-manual-row > span {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.proxy-manual-row__value {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}

.proxy-manual-row__value code {
  display: block;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  overflow-wrap: anywhere;
}

.copy-inline-btn {
  width: 38px;
  min-width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.copy-inline-btn:active {
  transform: scale(0.97);
}

.copy-inline-btn:hover {
  background: rgba(99, 230, 190, 0.12);
  border-color: rgba(99, 230, 190, 0.24);
}

body.is-web {
  padding: 24px 24px 120px;
}

body.is-web .shell {
  width: min(100%, var(--shell-site-max));
  max-width: var(--shell-site-max);
  gap: 20px;
}

body.is-web .shell--auth {
  max-width: 920px;
}

body.is-web .auth-card {
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 420px);
  align-items: center;
  gap: 20px;
  padding: 24px;
}

body.is-web .auth-card__aside {
  justify-self: end;
  width: min(100%, 420px);
}

body.is-web #tab-shop {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.95fr);
  grid-template-areas:
    "head head"
    "hero entry"
    "wizard wizard";
  align-items: start;
  gap: 18px;
}

body.is-web #tab-shop > .section-head {
  grid-area: head;
}

body.is-web #hero-card {
  grid-area: hero;
}

body.is-web #shop-entry {
  grid-area: entry;
  position: sticky;
  top: 24px;
}

body.is-web #shop-wizard {
  grid-area: wizard;
}

body.is-web .help-grid {
  grid-template-columns: 1.05fr 1fr 1fr;
}

body.is-web .tabs {
  position: static;
}

body.is-web .service-card__actions,
body.is-web .sheet-store-links,
body.is-web .download-links__grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.download-links {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.download-links__title {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.sheet-body,
.sheet-install {
  padding: 16px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.sheet-install {
  margin-top: 12px;
}

.portal-note {
  color: #ddfff2;
}

.promo-box {
  display: grid;
  gap: 10px;
  margin-top: 8px;
}

.promo-box .sheet-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 6px;
}

.promo-box .sheet-actions .action-btn {
  width: 100%;
  min-height: 56px;
}

.promo-input-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}

.promo-status {
  padding: 10px 12px;
  border-radius: 14px;
  font-size: 13px;
  line-height: 1.35;
}

.promo-status--ok {
  border: 1px solid rgba(99, 230, 190, 0.22);
  background: rgba(99, 230, 190, 0.08);
  color: #d9fff0;
}

.promo-status--error {
  border: 1px solid rgba(255, 122, 122, 0.18);
  background: rgba(255, 122, 122, 0.08);
  color: #ffd7d7;
}

.variant-panel {
  display: grid;
  gap: 14px;
}

.variant-panel__head {
  align-items: center;
}

.variant-summary {
  display: grid;
  gap: 6px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.variant-summary strong {
  font-size: 16px;
}

.variant-panel .segmented {
  overflow: hidden;
  max-height: 240px;
  opacity: 1;
  transition: max-height 220ms ease, opacity 180ms ease, margin-top 180ms ease;
}

.variant-panel.is-collapsed .segmented {
  max-height: 0;
  opacity: 0;
  pointer-events: none;
  margin-top: -4px;
}

.variant-panel.is-collapsed {
  gap: 10px;
}

.service-card .badge {
  flex-shrink: 0;
}

.service-group {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: rgba(9, 22, 32, 0.72);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.service-group__summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 18px;
  cursor: pointer;
}

.service-group__summary::-webkit-details-marker {
  display: none;
}

.service-group__summary strong {
  display: block;
  font-size: 17px;
}

.service-group__meta {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}

.service-group__toggle {
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
}

.service-group__toggle::before {
  content: "Развернуть";
}

.service-group[open] .service-group__summary {
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
}

.service-group[open] .service-group__toggle {
  color: var(--text);
}

.service-group[open] .service-group__toggle::before {
  content: "Свернуть";
}

.service-group__grid {
  display: grid;
  gap: 12px;
  padding: 12px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.promo-box input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  font: inherit;
}

.support-panel {
  display: grid;
  gap: 12px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.support-label {
  font-size: 13px;
  font-weight: 800;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.support-status {
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  color: var(--muted);
}

.support-status strong {
  color: var(--text);
}

.support-panel textarea {
  width: 100%;
  min-height: 120px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  font: inherit;
  resize: vertical;
}

.support-panel textarea:focus,
.promo-box input:focus,
.support-panel input:focus,
.auth-grid input:focus {
  outline: 0;
  border-color: rgba(99, 230, 190, 0.34);
  box-shadow: 0 0 0 4px rgba(99, 230, 190, 0.08);
}

.support-panel input,
.auth-grid input {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  font: inherit;
}

.support-actions {
  display: flex;
  justify-content: flex-start;
}

.review-card {
  display: grid;
  gap: 14px;
}

.review-card--compact {
  gap: 10px;
  padding: 16px;
}

.checkout-waiting {
  gap: 14px;
}

.checkout-waiting__row {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
}

.checkout-waiting .spinner {
  width: 34px;
  height: 34px;
  margin: 0;
}

.checkout-waiting__body {
  display: grid;
  gap: 4px;
}

.checkout-waiting__body strong {
  font-size: 15px;
}

.checkout-waiting__body span {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.review-list {
  display: grid;
  gap: 10px;
}

.review-item {
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.review-item--wide {
  grid-column: 1 / -1;
}

.review-item strong,
.review-note strong {
  display: block;
  margin-bottom: 4px;
}

.review-note {
  padding: 16px;
  border-radius: 18px;
  border: 1px solid rgba(99, 230, 190, 0.16);
  background: rgba(99, 230, 190, 0.06);
  color: #ddfff2;
}

.checkout-note {
  margin: 0;
  color: var(--text);
  font-size: 14px;
  line-height: 1.42;
}

.toast {
  position: fixed;
  inset: auto 16px 18px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(9, 20, 29, 0.94);
  border: 1px solid rgba(99, 230, 190, 0.24);
  color: var(--text);
  z-index: 60;
  box-shadow: var(--shadow);
}

.busy-overlay {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  background: rgba(4, 10, 15, 0.52);
  backdrop-filter: blur(10px);
}

.busy-overlay[hidden] {
  display: none;
}

.busy-card {
  min-width: 220px;
  max-width: calc(100vw - 40px);
  padding: 18px 20px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(10, 21, 31, 0.92);
  box-shadow: var(--shadow);
  text-align: center;
}

.spinner {
  width: 34px;
  height: 34px;
  margin: 0 auto 12px;
  border-radius: 999px;
  border: 3px solid rgba(255, 255, 255, 0.12);
  border-top-color: var(--accent);
  animation: spin 900ms linear infinite;
}

@keyframes fade-up {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes sheet-up {
  from { transform: translateY(24px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@media (max-width: 720px) {
  body {
    padding: 14px 14px 120px;
  }

  .shell {
    width: min(100%, var(--shell-mobile-max));
    max-width: var(--shell-mobile-max);
  }

  .hero__row,
  .section-head,
  .variant-panel__head {
    flex-direction: column;
  }

  .tabs {
    position: sticky;
    top: 6px;
    z-index: 20;
    background: rgba(5, 9, 14, 0.9);
  }

  .shop-stepper {
    position: sticky;
    top: 82px;
    z-index: 18;
    grid-template-columns: 40px minmax(0, 1fr) 86px;
    gap: 10px;
    padding: 12px;
    background: rgba(9, 22, 32, 0.94);
    backdrop-filter: blur(18px);
  }

  .shop-stepper__actions {
    gap: 6px;
    justify-self: end;
  }

  .shop-step-action {
    grid-template-columns: 1fr;
  }

  .shop-stepper__meta h3 {
    font-size: 18px;
  }

  .shop-stepper__meta .card-note {
    font-size: 13px;
  }

  .icon-btn {
    width: 40px;
    min-width: 40px;
    height: 40px;
    font-size: 24px;
  }

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

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

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

  .tech-grid,
  .plan-grid,
  .node-grid,
  .service-grid,
  .help-grid,
  .service-group__grid,
  .access-panel__summary {
    grid-template-columns: 1fr;
  }

  .sheet-store-links,
  .download-links__grid,
  .service-card__actions,
  .service-card__secondary-row,
  .proxy-protocol-card__actions {
    grid-template-columns: 1fr;
  }

  .shop-carousel,
  .shop-track,
  .shop-step {
    width: 100%;
    max-width: 100%;
  }

  .detail-sheet {
    padding-left: 14px;
    padding-right: 14px;
  }

  .sheet-head {
    flex-direction: row;
    align-items: center;
  }

  body.is-web {
    padding: 16px 14px 112px;
  }

  body.is-web .shell {
    width: min(100%, calc(100vw - 28px));
    max-width: 560px;
    gap: 16px;
  }

  body.is-web .auth-card {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 18px;
  }

  body.is-web #tab-shop {
    grid-template-columns: 1fr;
    grid-template-areas:
      "head"
      "hero"
      "entry"
      "wizard";
  }

  body.is-web #shop-entry {
    position: static;
    top: auto;
  }

  body.is-web .help-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 500px) {
  body {
    padding: 12px 12px 108px;
  }

  .shell {
    width: min(100%, calc(100vw - 24px));
    max-width: min(var(--shell-mobile-max), calc(100vw - 24px));
    margin: 0 auto;
    gap: 14px;
  }

  .section-head,
  .hero,
  .shop-entry,
  .shop-stepper,
  .shop-carousel,
  .shop-step-action,
  .overview,
  .callout {
    width: 100%;
    max-width: 100%;
  }

  .hero {
    padding: 16px;
  }

  .hero h1,
  .section-head h2 {
    font-size: 18px;
    line-height: 1.14;
  }

  .hero__facts--compact {
    grid-template-columns: 1fr;
  }

  .hero__fact,
  .callout {
    padding: 12px 14px;
  }

  .callout,
  .hero p,
  .card-note,
  .service-meta,
  .muted {
    font-size: 13px;
    line-height: 1.35;
  }

  .hero__fact-label {
    font-size: 11px;
    letter-spacing: 0.08em;
  }

  .hero__fact strong {
    font-size: 14px;
  }

  .shop-stepper {
    position: static;
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "meta meta"
      "back actions";
    padding: 10px;
    gap: 8px;
  }

  .shop-stepper.shop-stepper--root {
    grid-template-areas:
      "meta meta"
      ". actions";
  }

  #shop-back {
    grid-area: back;
    justify-self: start;
  }

  .shop-stepper__meta {
    grid-area: meta;
  }

  .shop-stepper__actions {
    grid-area: actions;
    gap: 6px;
    justify-self: end;
    justify-content: flex-end;
  }

  .shop-stepper__meta h3 {
    font-size: 16px;
  }

  .icon-btn {
    width: 36px;
    min-width: 36px;
    height: 36px;
    font-size: 22px;
  }

  .tech-card,
  .node-card,
  .plan-card,
  .service-card {
    gap: 8px;
    padding: 14px;
  }

  .proxy-manual-row__value {
    grid-template-columns: minmax(0, 1fr) 38px;
  }

  .price {
    font-size: 22px;
  }

  .action-btn,
  .node-card button,
  .plan-card button,
  .tech-card button,
  .service-card button {
    min-height: 50px;
    padding: 11px 12px;
    font-size: 14px;
  }

  .tabs {
    position: static;
    gap: 8px;
  }

  .shop-step-action {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  body.is-web {
    padding: 12px 12px 100px;
  }

  body.is-web .shell {
    width: min(100%, calc(100vw - 24px));
    max-width: calc(100vw - 24px);
    gap: 14px;
  }

  body.is-web .auth-card {
    padding: 16px;
  }

  body.is-web .auth-card__copy h2 {
    font-size: 24px;
  }

  body.is-web .tab {
    min-height: 46px;
    padding: 11px 10px;
    font-size: 14px;
  }

  body.is-web .overview-grid {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 721px) and (max-width: 980px) {
  body.is-web .help-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.is-web .auth-card {
    grid-template-columns: 1fr;
  }

  body.is-web .auth-card__aside {
    justify-self: stretch;
    width: 100%;
  }
}

@media (max-height: 760px) {
  body {
    padding-top: 12px;
    padding-bottom: 96px;
  }

  .shell {
    gap: 12px;
  }

  .hero,
  .tech-card,
  .node-card,
  .plan-card,
  .service-card,
  .help-card,
  .variant-panel,
  .overview,
  .shop-entry,
  .sheet-body,
  .sheet-install {
    padding: 14px;
  }

  .shop-stepper {
    padding: 10px 12px;
  }
}
