:root {
  --bg: #071018;
  --bg-elev: #0d1a24;
  --ink: #e7f0f6;
  --muted: #8aa0b2;
  --accent: #3ddea6;
  --accent-2: #7cf0c8;
  --line: rgba(231, 240, 246, 0.12);
  --danger: #ff7b7b;
  --radius: 18px;
  --font-display: "Syne", sans-serif;
  --font-body: "Manrope", sans-serif;
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: var(--font-body);
  background: var(--bg);
  line-height: 1.55;
  display: flex;
  flex-direction: column;
}
main {
  flex: 1 0 auto;
}

a { color: var(--accent-2); text-decoration: none; }
a:hover { color: #fff; }

.atmosphere {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background:
    radial-gradient(1200px 700px at 15% -10%, rgba(61, 222, 166, 0.18), transparent 60%),
    radial-gradient(900px 600px at 90% 10%, rgba(56, 130, 255, 0.12), transparent 55%),
    linear-gradient(180deg, #071018 0%, #0a1620 45%, #071018 100%);
}
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.55;
  animation: drift 18s ease-in-out infinite alternate;
}
.orb-a {
  width: 42vw;
  height: 42vw;
  left: -8%;
  top: 18%;
  background: rgba(61, 222, 166, 0.22);
}
.orb-b {
  width: 36vw;
  height: 36vw;
  right: -10%;
  top: 8%;
  background: rgba(80, 140, 255, 0.16);
  animation-duration: 22s;
  animation-delay: -4s;
}
.grid-glow {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse at center, black 20%, transparent 75%);
  opacity: 0.35;
}

@keyframes drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(4%, -3%, 0) scale(1.08); }
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem clamp(1.2rem, 4vw, 3rem);
  position: sticky;
  top: 0;
  backdrop-filter: blur(14px);
  background: rgba(7, 16, 24, 0.55);
  border-bottom: 1px solid var(--line);
  z-index: 20;
}
.brand-mark {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.03em;
  color: var(--ink);
}
.topnav {
  display: flex;
  gap: 1rem;
  align-items: center;
}
.topnav a { color: var(--muted); font-weight: 600; font-size: 0.95rem; }
.topnav a:hover { color: var(--ink); }
.nav-cta {
  padding: 0.55rem 0.95rem;
  border: 1px solid rgba(61, 222, 166, 0.45);
  border-radius: 999px;
  color: var(--accent-2) !important;
}
.nav-logout {
  margin: 0;
  display: inline-flex;
}
.nav-logout .nav-cta {
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  color: var(--ink) !important;
  border: 1px solid var(--line);
  cursor: pointer;
  font: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.2;
}
.nav-logout .nav-cta:hover {
  border-color: rgba(232, 244, 255, 0.35);
  color: #fff !important;
  background: rgba(232, 244, 255, 0.06);
}

.hero {
  min-height: calc(100vh - 72px);
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: center;
  padding: clamp(2rem, 6vh, 5rem) clamp(1.2rem, 4vw, 3rem);
}
.brand-hero {
  margin: 0 0 0.6rem;
  font-family: var(--font-display);
  font-size: clamp(3.2rem, 9vw, 6.5rem);
  font-weight: 800;
  letter-spacing: -0.06em;
  line-height: 0.92;
  background: linear-gradient(120deg, #fff 20%, var(--accent-2) 75%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-copy {
  min-width: 0;
  width: 100%;
}
.hero h1 {
  margin: 0 0 1rem;
  max-width: none;
  width: 100%;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
  font-weight: 700;
}
.hero-lead {
  margin: 0 0 1.8rem;
  max-width: none;
  width: 100%;
  color: var(--muted);
  font-size: clamp(1.02rem, 1.6vw, 1.15rem);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; }

.hero-visual {
  position: relative;
  min-height: 360px;
  display: block;
  --hero-scale: 1;
  touch-action: pan-y;
  isolation: isolate;
  overflow: hidden;
}
.hero-graph {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.9;
  z-index: 0;
}
.hero-stats {
  position: absolute;
  bottom: 0.4rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.85rem;
  padding: 0.6rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(7, 16, 24, 0.72);
  backdrop-filter: blur(8px);
  z-index: 4;
  max-width: calc(100% - 1rem);
  overflow-x: auto;
}
.hero-stat {
  display: grid;
  text-align: center;
  min-width: 4.1rem;
}
.hero-stat-value {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--accent-2);
}
.hero-stat-label {
  font-size: 0.72rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  line-height: 1.15;
  max-width: 6.2rem;
  justify-self: center;
}
.signal-core {
  position: absolute;
  left: var(--nx, 50%);
  top: var(--ny, 50%);
  --dx: 0px;
  --dy: 0px;
  transform: translate3d(calc(-50% + var(--dx)), calc(-50% + var(--dy)), 0);
  width: calc(96px * var(--hero-scale));
  height: calc(96px * var(--hero-scale));
  border-radius: calc(28px * var(--hero-scale));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: calc(1.6rem * var(--hero-scale));
  letter-spacing: -0.04em;
  color: #04130f;
  background: linear-gradient(145deg, var(--accent-2), var(--accent));
  box-shadow: var(--shadow);
  z-index: 3;
  cursor: grab;
  user-select: none;
  touch-action: none;
}
.signal-core.is-dragging {
  cursor: grabbing;
  box-shadow: 0 24px 60px rgba(61, 222, 166, 0.35);
}
.hero-node {
  position: absolute;
  left: var(--nx, 50%);
  top: var(--ny, 50%);
  --dx: 0px;
  --dy: 0px;
  transform: translate3d(calc(-50% + var(--dx)), calc(-50% + var(--dy)), 0);
  z-index: 3;
  box-sizing: border-box;
  width: auto;
  height: auto;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 0.3rem;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
  appearance: none;
  -webkit-appearance: none;
  line-height: 1;
}
.hero-node:hover .hero-node-disk,
.hero-node:focus-visible .hero-node-disk {
  border-color: var(--accent-2);
  box-shadow: 0 12px 32px rgba(61, 222, 166, 0.22);
  outline: none;
}
.hero-node.is-dragging {
  cursor: grabbing;
  z-index: 5;
}
.hero-node.is-dragging .hero-node-disk {
  border-color: var(--accent-2);
  box-shadow: 0 16px 40px rgba(61, 222, 166, 0.3);
}
.hero-node-disk {
  width: calc(52px * var(--hero-scale));
  height: calc(52px * var(--hero-scale));
  border-radius: 999px;
  border: 1.5px solid rgba(61, 222, 166, 0.55);
  background: rgba(13, 26, 36, 0.92);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.hero-node-flag {
  display: block;
  width: 62%;
  height: auto;
  max-width: 28px;
  border-radius: 2px;
  pointer-events: none;
  flex-shrink: 0;
  overflow: hidden;
}
.hero-node-emoji {
  display: block;
  font-size: calc(1.35rem * var(--hero-scale));
  line-height: 1;
  pointer-events: none;
  font-family: "Segoe UI Emoji", "Apple Color Emoji", "Noto Color Emoji", emoji, sans-serif;
}
.hero-node-emoji.is-code {
  font-size: calc(0.72rem * var(--hero-scale));
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--accent-2);
  font-family: var(--font-display);
}
.hero-node-tech {
  z-index: 2;
}
.hero-node-tech .hero-node-disk {
  width: calc(38px * var(--hero-scale));
  height: calc(38px * var(--hero-scale));
  border-color: rgba(124, 240, 200, 0.35);
  background: rgba(10, 22, 32, 0.94);
}
.hero-node-tech[data-tech="reality"] .hero-node-disk {
  border-color: rgba(120, 180, 255, 0.55);
  box-shadow: 0 8px 22px rgba(80, 140, 255, 0.18);
}
.hero-node-tech[data-tech="websocket"] .hero-node-disk {
  border-color: rgba(61, 222, 166, 0.55);
  box-shadow: 0 8px 22px rgba(61, 222, 166, 0.16);
}
.hero-node-tech-label {
  font-size: calc(0.62rem * var(--hero-scale));
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--accent-2);
  font-family: var(--font-display);
  pointer-events: none;
}
.hero-node-tech .hero-node-code {
  font-size: calc(0.58rem * var(--hero-scale));
  letter-spacing: 0.02em;
  max-width: 5.5rem;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hero-node-code {
  position: static;
  transform: none;
  left: auto;
  bottom: auto;
  font-size: calc(0.68rem * var(--hero-scale));
  font-weight: 700;
  letter-spacing: 0.06em;
  color: rgba(231, 240, 246, 0.82);
  pointer-events: none;
  white-space: nowrap;
  line-height: 1;
}
.signal-ring {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 1;
  border: 1px solid rgba(61, 222, 166, 0.28);
  border-radius: 50%;
  pointer-events: none;
  translate: -50% -50%;
  animation: pulse 5s ease-out infinite;
}
.ring-1 {
  width: calc(160px * var(--hero-scale));
  height: calc(160px * var(--hero-scale));
}
.ring-2 {
  width: calc(240px * var(--hero-scale));
  height: calc(240px * var(--hero-scale));
  animation-delay: 0.7s;
}
.ring-3 {
  width: calc(320px * var(--hero-scale));
  height: calc(320px * var(--hero-scale));
  animation-delay: 1.4s;
}
@keyframes pulse {
  0% { transform: scale(0.86); opacity: 0.7; }
  70% { transform: scale(1.08); opacity: 0; }
  100% { transform: scale(1.08); opacity: 0; }
}

@media (min-width: 1100px) {
  .hero-visual { min-height: 480px; }
  .hero-stats {
    gap: 1.5rem;
    padding: 0.75rem 1.25rem;
  }
  .hero-stat { min-width: 5.2rem; }
  .hero-stat-value { font-size: 1.05rem; }
}
@media (min-width: 1400px) {
  .hero-visual { min-height: 560px; }
  .brand-hero { font-size: clamp(3.2rem, 8vw, 7.2rem); }
  .hero h1 { font-size: clamp(2rem, 3vw, 2.9rem); }
  .hero-lead { font-size: 1.12rem; }
}
@media (min-width: 1700px) {
  .hero-visual { min-height: 620px; }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border: 0;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  border-radius: 999px;
  padding: 0.85rem 1.25rem;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: linear-gradient(120deg, var(--accent), #2bbf8d);
  color: #04130f;
}
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}

.section {
  padding: clamp(3.5rem, 8vh, 6rem) clamp(1.2rem, 4vw, 3rem);
}
.section-alt {
  background: linear-gradient(180deg, transparent, rgba(13, 26, 36, 0.65), transparent);
}
.section-head {
  max-width: 40rem;
  margin-bottom: 2rem;
}
.section-head h2,
.cabinet-head h1,
.auth-panel h1 {
  margin: 0 0 0.7rem;
  font-family: var(--font-display);
  letter-spacing: -0.03em;
  line-height: 1.15;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
}
.section-head p,
.auth-lead,
.cabinet-head p {
  margin: 0;
  color: var(--muted);
}
.section-cta { margin-top: 2rem; }

.benefits {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}
.benefit-card {
  padding: 1.25rem 1.2rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.benefit-card:hover {
  border-color: rgba(61, 222, 166, 0.35);
  transform: translateY(-2px);
}
.benefit-icon {
  font-size: 1.4rem;
  margin-bottom: 0.6rem;
}
.benefit-card h3 {
  margin: 0 0 0.45rem;
  font-size: 1.05rem;
}
.benefit-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.connect-page .tariff-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}
.tariff-card {
  padding: 1.3rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.tariff-card.is-featured {
  border-color: rgba(61, 222, 166, 0.45);
  background: linear-gradient(180deg, rgba(61, 222, 166, 0.1), transparent);
}
.tariff-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}
.tariff-head h2 {
  margin: 0;
  font-size: 1.1rem;
}
.tariff-badge {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
}
.tariff-price {
  margin: 0;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
}
.tariff-price span {
  font-size: 1.1rem;
  font-weight: 700;
}
.tariff-meta {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}
.tariff-features {
  margin: 0.4rem 0 0.8rem;
  padding-left: 1.1rem;
  color: var(--muted);
  font-size: 0.9rem;
}
.tariff-pay { width: 100%; margin-top: auto; }
.demo-note {
  margin-top: 0.8rem;
  padding: 0.7rem 0.9rem;
  border-radius: 12px;
  background: rgba(61, 222, 166, 0.08);
  color: var(--accent-2);
  font-size: 0.92rem;
}

.price-btn {
  margin-top: 0.9rem;
  width: 100%;
  font-size: 0.88rem;
  padding: 0.65rem 0.9rem;
}

.payment-success-panel { width: min(640px, 100%); }
.token-block { margin: 1.4rem 0; }
.token-block label {
  display: block;
  margin-bottom: 0.45rem;
  font-weight: 600;
  font-size: 0.92rem;
}
.success-steps {
  margin: 1.5rem 0;
  padding: 1rem 1.1rem;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
}
.success-steps h2 {
  margin: 0 0 0.7rem;
  font-size: 1rem;
}
.success-steps ol {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--muted);
}
.success-steps li + li { margin-top: 0.45rem; }

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.4rem;
}
.steps li {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 1rem;
  row-gap: 0.25rem;
  padding-bottom: 1.2rem;
  border-bottom: 1px solid var(--line);
}
.steps h3 { margin: 0; grid-column: 2; font-size: 1.15rem; }
.steps p { margin: 0; grid-column: 2; color: var(--muted); }
.step-num {
  grid-row: 1 / span 2;
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--accent);
  font-size: 1.4rem;
}

.locations {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem 1.5rem;
  font-size: 1.15rem;
  font-weight: 600;
}

.price-tariff-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(0.75rem, 1.6vw, 1.35rem);
  width: 100%;
  max-width: none;
  margin-inline: 0;
}
.price-tariff-grid .tariff-card {
  min-width: 0;
  padding: clamp(1.15rem, 2vw, 1.7rem);
}
.price-tariff-grid .tariff-card h3 {
  margin: 0;
  font-size: clamp(1rem, 1.3vw, 1.15rem);
}
.price-tariff-grid .tariff-price {
  font-size: clamp(1.55rem, 2.6vw, 2.25rem);
}
.price-tariff-grid .tariff-meta {
  font-size: clamp(0.85rem, 1.1vw, 0.95rem);
}
.price-tariff-grid .price-btn {
  margin-top: auto;
}
.price-row {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.price-item {
  padding: 1.3rem 1rem;
  border-right: 1px solid var(--line);
}
.price-item:last-child { border-right: 0; }
.price-item h3 {
  margin: 0 0 0.8rem;
  font-size: 0.95rem;
  color: var(--muted);
  font-weight: 600;
}
.price-main {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 700;
}
.price-sub { margin: 0.35rem 0 0; color: var(--muted); font-size: 0.92rem; }
.price-item.is-featured {
  background: linear-gradient(180deg, rgba(61, 222, 166, 0.12), transparent);
}

.auth-shell {
  min-height: calc(100vh - 160px);
  display: grid;
  place-items: center;
  padding: 2rem clamp(1.2rem, 4vw, 3rem);
}
.auth-panel,
.cabinet-block {
  width: min(520px, 100%);
  padding: 1.6rem 0;
}
.eyebrow {
  margin: 0 0 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.75rem;
  color: var(--accent);
  font-weight: 700;
}
.auth-form {
  display: grid;
  gap: 0.65rem;
  margin-top: 1.4rem;
}
.auth-form label { font-weight: 600; font-size: 0.92rem; }
.auth-form input {
  width: 100%;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.03);
  color: var(--ink);
  padding: 0.95rem 1rem;
  font: inherit;
}
.auth-form input:focus {
  outline: 2px solid rgba(61, 222, 166, 0.45);
  border-color: transparent;
}
.form-error {
  margin: 1rem 0 0;
  color: var(--danger);
  font-weight: 600;
}
.auth-help { margin-top: 1.2rem; color: var(--muted); }

.cabinet {
  padding: clamp(2rem, 6vh, 4rem) clamp(1.2rem, 4vw, 3rem) 4rem;
}
.cabinet-head { max-width: 40rem; margin-bottom: 1.25rem; }
.cabinet-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem 2rem;
  align-items: start;
}
.cabinet-wide { grid-column: 1 / -1; }
.cabinet-block h2 {
  margin: 0 0 0.7rem;
  font-size: 0.95rem;
  color: var(--muted);
  font-weight: 600;
}
.stat-value {
  margin: 0;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
}
.stat-meta { margin: 0.35rem 0 0.5rem; color: var(--muted); }
.token-box {
  display: block;
  width: 100%;
  overflow-wrap: anywhere;
  padding: 1rem;
  border-radius: 14px;
  border: 1px dashed rgba(61, 222, 166, 0.35);
  background: rgba(61, 222, 166, 0.06);
  margin-bottom: 0.9rem;
  font-size: 0.92rem;
}
.inline-actions { display: flex; flex-wrap: wrap; gap: 0.7rem; }

.bind-panel {
  margin-top: 1rem;
}
.bind-summary {
  list-style: none;
  width: fit-content;
  max-width: 100%;
  box-sizing: border-box;
  cursor: pointer;
  user-select: none;
}
.bind-summary::-webkit-details-marker { display: none; }
.bind-body {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 1.1rem;
}
.bind-panel h3 {
  margin: 0 0 0.45rem;
  font-size: 0.95rem;
}
.bind-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.4rem;
}
.bind-item {
  padding: 0.55rem 0.75rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  font-size: 0.9rem;
}
.bind-item.is-on {
  border-color: rgba(61, 222, 166, 0.35);
  background: rgba(61, 222, 166, 0.08);
  color: var(--accent-2);
}
.bind-item.is-off {
  color: var(--muted);
}

/* Desktop: панель привязки поверх, без сдвига соседних блоков */
@media (min-width: 961px) {
  .cabinet-block:has(.bind-panel) {
    position: relative;
    z-index: 2;
  }
  .bind-panel {
    position: relative;
  }
  .bind-body {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 0.35rem);
    z-index: 8;
    margin-top: 0;
    padding: 1rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(13, 26, 36, 0.96);
    backdrop-filter: blur(12px);
    box-shadow: var(--shadow);
  }
}
.proxy-block {
  margin-top: 1.25rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--line);
}
.proxy-block h3 {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
}
.proxy-block .muted {
  margin: 0 0 0.75rem;
}
.muted { color: var(--muted); }
.logout-form { margin-top: 2rem; }

.cabinet-section {
  margin-top: 2.5rem;
  max-width: 52rem;
}
.cabinet-section h2 {
  margin: 0 0 0.6rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
}
.cabinet-alert {
  background: rgba(255, 123, 123, 0.14);
  border: 1px solid rgba(255, 123, 123, 0.4);
  color: #ffc9c9;
  padding: 0.8rem 1rem;
  border-radius: 12px;
}
.cabinet-ok {
  background: rgba(61, 222, 166, 0.14);
  border: 1px solid rgba(61, 222, 166, 0.4);
  color: var(--accent-2);
  padding: 0.8rem 1rem;
  border-radius: 12px;
}
.server-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
  align-items: start;
}
.server-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1rem;
  background: var(--bg-elev);
  color: var(--ink);
  align-self: start;
  height: auto;
}
.server-card-head {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 0.9rem;
}
.server-card-head strong {
  color: var(--ink);
  font-size: 1.05rem;
}
.server-tag {
  font-size: 0.8rem;
  color: var(--muted);
}
.key-box {
  font-size: 0.78rem;
  max-height: 8rem;
  overflow: auto;
  color: var(--ink);
}
.guide-steps {
  margin: 0.8rem 0 1.4rem;
  padding-left: 1.2rem;
  color: var(--ink);
  line-height: 1.55;
}
.cabinet-section > p {
  color: var(--muted);
}
.instruction-grid {
  display: grid;
  gap: 0.7rem;
}
.instruction-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.85rem 1rem;
  background: var(--bg-elev);
  color: var(--ink);
}
.instruction-card summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--ink);
}
.instruction-card[open] summary {
  color: var(--accent-2);
  margin-bottom: 0.25rem;
}
.instruction-card ol {
  margin: 0.75rem 0 0;
  padding-left: 1.2rem;
  color: var(--muted);
  line-height: 1.5;
}
.instruction-card li {
  color: var(--muted);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 1.1rem clamp(1.2rem, 4vw, 3rem) 1.4rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  flex-shrink: 0;
}
.footer-brand {
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--ink);
}
.footer-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
}
.connect-page {
  padding-bottom: 2rem;
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  animation: rise 0.8s ease forwards;
}
.reveal:nth-child(2) { animation-delay: 0.08s; }
.reveal:nth-child(3) { animation-delay: 0.16s; }
@keyframes rise {
  to { opacity: 1; transform: none; }
}

.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 100;
  padding: 1rem clamp(1rem, 3vw, 2rem) calc(1rem + env(safe-area-inset-bottom));
  pointer-events: none;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.cookie-banner.is-visible {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}
.cookie-banner-inner {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  padding: 1rem 1.2rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: rgba(7, 16, 24, 0.94);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
}
.cookie-banner-text {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
}
.cookie-banner-text a {
  color: var(--accent-2);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.cookie-banner-btn {
  flex-shrink: 0;
  white-space: nowrap;
}

.hidden-video-page {
  max-width: 960px;
  margin: 1.5rem auto 3rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.hidden-video-player {
  display: block;
  width: 100%;
  max-height: min(78vh, 720px);
  background: #000;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}

.legal-page {
  max-width: 42rem;
  margin: 0 auto;
  padding: clamp(2rem, 6vh, 4rem) clamp(1.2rem, 4vw, 3rem) 4rem;
}
.legal-page h1 {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  letter-spacing: -0.03em;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
}
.legal-page h2 {
  margin: 1.8rem 0 0.6rem;
  font-size: 1.1rem;
}
.legal-page p,
.legal-page li {
  color: var(--muted);
  line-height: 1.6;
}
.legal-page ul {
  margin: 0.5rem 0 0;
  padding-left: 1.2rem;
}

@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; min-height: auto; padding-top: 2.5rem; }
  .hero-visual { order: -1; min-height: 280px; }
  .hero-node-disk {
    width: 44px;
    height: 44px;
  }
  .hero-node-flag {
    max-width: 24px;
    width: 58%;
  }
  .hero-node-emoji {
    font-size: 1.15rem;
  }
  .hero-node-tech .hero-node-disk {
    width: 32px;
    height: 32px;
  }
  .hero-node-code {
    font-size: 0.62rem;
  }
  .hero-node-tech .hero-node-code {
    font-size: 0.52rem;
  }
  .benefits { grid-template-columns: 1fr 1fr; }
  .price-row { grid-template-columns: 1fr; }
  .price-item { border-right: 0; border-bottom: 1px solid var(--line); }
  .price-tariff-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .cabinet-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .benefits { grid-template-columns: 1fr; }
  .price-tariff-grid {
    grid-template-columns: 1fr;
  }
  .cookie-banner-inner {
    flex-direction: column;
    align-items: stretch;
  }
  .cookie-banner-btn { width: 100%; }
}

/* —— Download page —— */
.download-hero {
  position: relative;
  padding: clamp(3rem, 8vh, 5.5rem) clamp(1.2rem, 4vw, 3rem) clamp(1.5rem, 3vh, 2.5rem);
  overflow: hidden;
}
.download-hero-glow {
  position: absolute;
  inset: -20% 10% auto;
  height: 280px;
  background:
    radial-gradient(ellipse at 30% 40%, rgba(61, 222, 166, 0.22), transparent 55%),
    radial-gradient(ellipse at 75% 30%, rgba(70, 140, 255, 0.16), transparent 50%);
  filter: blur(8px);
  animation: downloadGlow 10s ease-in-out infinite alternate;
  pointer-events: none;
}
@keyframes downloadGlow {
  from { transform: translateY(0) scale(1); opacity: 0.85; }
  to { transform: translateY(12px) scale(1.05); opacity: 1; }
}
.download-hero-copy {
  position: relative;
  max-width: 40rem;
}
.download-brand {
  margin: 0 0 0.6rem;
  font-size: clamp(2.4rem, 6vw, 3.8rem);
  line-height: 0.95;
}
.download-hero h1 {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 3.2vw, 2.15rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--ink);
}
.download-lead {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 34rem;
}

.download-stage {
  display: grid;
  gap: 1.5rem;
  padding: 0 clamp(1.2rem, 4vw, 3rem) clamp(2rem, 5vh, 3.5rem);
  max-width: 1100px;
}

.platform-panel {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  border: 1px solid var(--line);
  background: rgba(10, 18, 26, 0.72);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  isolation: isolate;
}
.platform-panel-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.9;
  transition: opacity 0.35s ease, transform 0.5s ease;
}
.platform-panel:hover .platform-panel-bg {
  opacity: 1;
  transform: scale(1.02);
}
.platform-windows .platform-panel-bg {
  background:
    radial-gradient(900px 420px at 0% 0%, rgba(0, 168, 232, 0.22), transparent 55%),
    radial-gradient(700px 380px at 100% 100%, rgba(61, 222, 166, 0.1), transparent 50%),
    linear-gradient(145deg, #0b1520 0%, #0a121a 55%, #071018 100%);
}
.platform-linux .platform-panel-bg {
  background:
    radial-gradient(900px 420px at 100% 0%, rgba(255, 170, 60, 0.14), transparent 55%),
    radial-gradient(700px 380px at 0% 100%, rgba(61, 222, 166, 0.14), transparent 50%),
    linear-gradient(145deg, #0b1520 0%, #0a121a 55%, #071018 100%);
}
.platform-panel.is-unavailable,
.linux-format.is-unavailable {
  opacity: 0.78;
}

.platform-panel-main {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(240px, 0.9fr);
  gap: 1.5rem;
  align-items: end;
  padding: clamp(1.4rem, 3vw, 2rem);
}
.platform-linux-head {
  padding: clamp(1.4rem, 3vw, 2rem) clamp(1.4rem, 3vw, 2rem) 0.4rem;
}
.platform-identity {
  display: flex;
  gap: 1.1rem;
  align-items: flex-start;
}
.platform-identity h2 {
  margin: 0.15rem 0 0.55rem;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  letter-spacing: -0.03em;
  line-height: 1.05;
}
.platform-identity h3 {
  margin: 0 0 0.3rem;
  font-family: var(--font-display);
  font-size: 1.2rem;
  letter-spacing: -0.02em;
}
.platform-eyebrow {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent-2);
}
.platform-desc,
.linux-format-top p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
  font-size: 0.95rem;
}

.platform-icon {
  flex-shrink: 0;
  width: 72px;
  height: 72px;
  border-radius: 20px;
  display: grid;
  place-items: center;
  box-shadow: inset 0 0 0 1px rgba(231, 240, 246, 0.1);
}
.platform-icon svg,
.platform-icon img {
  display: block;
  width: 42px;
  height: 42px;
  object-fit: contain;
}
.platform-icon-windows {
  color: #5cc8ff;
  background: linear-gradient(145deg, rgba(0, 168, 232, 0.28), rgba(0, 120, 215, 0.08));
}
.platform-icon-windows svg {
  width: 40px;
  height: 40px;
}
.platform-icon-linux {
  background: linear-gradient(145deg, rgba(240, 193, 74, 0.16), rgba(61, 222, 166, 0.08));
}
.platform-icon-linux img {
  width: 44px;
  height: 52px;
}
.platform-icon-deb {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(215, 7, 81, 0.18), rgba(100, 40, 70, 0.1));
}
.platform-icon-deb img {
  width: 28px;
  height: 36px;
}
.platform-icon-appimage {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  color: #7cf0c8;
  background: linear-gradient(145deg, rgba(61, 222, 166, 0.22), rgba(40, 120, 200, 0.1));
}
.platform-icon-appimage svg {
  width: 30px;
  height: 30px;
}

.platform-action {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}
.platform-meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
}
.format-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #04130f;
  background: linear-gradient(120deg, var(--accent), #2bbf8d);
}
.platform-size,
.platform-ver {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 600;
}
.platform-size.is-muted { font-weight: 500; }
.platform-cta {
  width: 100%;
  justify-content: center;
  min-height: 3rem;
}
.platform-cta .cta-arrow {
  font-size: 1.05rem;
  line-height: 1;
}
.platform-cta.is-disabled {
  pointer-events: none;
  opacity: 0.55;
}

.platform-note {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  margin: 0 clamp(1.4rem, 3vw, 2rem) clamp(1.4rem, 3vw, 2rem);
  padding: 0.95rem 1.05rem;
  border-radius: 16px;
  background: rgba(255, 196, 90, 0.07);
  border: 1px solid rgba(255, 196, 90, 0.2);
}
.platform-note-icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 0.9rem;
  color: #071018;
  background: #ffc45a;
}
.platform-note p {
  margin: 0;
  color: #e8d7b0;
  font-size: 0.88rem;
  line-height: 1.45;
}
.platform-note strong { color: #fff; }

.linux-formats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  padding: 0.6rem clamp(1.4rem, 3vw, 2rem) clamp(1.4rem, 3vw, 2rem);
}
.linux-format {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.15rem 1.2rem 1.2rem;
  border-radius: 20px;
  background: rgba(7, 16, 24, 0.55);
  border: 1px solid rgba(231, 240, 246, 0.1);
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.linux-format:hover {
  border-color: rgba(61, 222, 166, 0.35);
  transform: translateY(-2px);
}
.linux-format-top {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
}
.linux-hint {
  margin: -0.25rem 0 0;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.4;
}
.linux-hint code {
  font-size: 0.78rem;
  color: var(--accent-2);
}

.download-foot {
  padding: 0 clamp(1.2rem, 4vw, 3rem) clamp(3.5rem, 8vh, 5rem);
  max-width: 1100px;
}
.download-foot p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}
.download-foot a { font-weight: 600; }

@media (max-width: 860px) {
  .platform-panel-main {
    grid-template-columns: 1fr;
    align-items: stretch;
  }
  .linux-formats {
    grid-template-columns: 1fr;
  }
  .platform-icon {
    width: 64px;
    height: 64px;
  }
  .platform-icon-windows svg {
    width: 34px;
    height: 34px;
  }
  .platform-icon-linux img {
    width: 38px;
    height: 46px;
  }
}

