:root {
  --bg: #0e0e11;
  --fg: #ffffff;
  --muted: rgba(255, 255, 255, 0.65);
  --accent: #9dd06a;
  --card: rgba(255, 255, 255, 0.04);
  --card-border: rgba(255, 255, 255, 0.08);
  --soft-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
  --radius: 18px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--fg);
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.container {
  width: min(1200px, 90vw);
  margin: 0 auto;
}

.container-wide {
  width: min(1200px, 96vw);
}

header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(14, 14, 17, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 0;
}

.nav-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;

  font-weight: 600;
  letter-spacing: 0.2em;
  font-size: 0.95rem;
}

.nav-logo-icon {
  width: 36px;
  height: 36px;
  display: block;
}

.nav-links,
.btn {
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  justify-content: center;
}

.nav-links {
  display: flex;
  font-size: 0.9rem;
  color: var(--muted);
}

.nav-links a:hover {
  color: var(--fg);
}

.nav-links a,
.nav-more summary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--muted);
  transition: all 0.2s ease;
}

.nav-more {
  position: relative;
}

.nav-more summary {
  cursor: pointer;
  list-style: none;
}

.nav-more summary::-webkit-details-marker {
  display: none;
}

.nav-links a:hover,
.nav-more summary:hover,
.nav-more[open] summary {
  color: var(--fg);
  border-color: rgba(255, 255, 255, 0.3);
}

.nav-more-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 10px;
  min-width: 210px;
  /* FIX: непрозрачный читаемый фон */
  background: rgba(14, 14, 17, 0.97);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
  border-radius: 14px;
  box-shadow: var(--soft-shadow);
  z-index: 999;
}

.nav-more[open] .nav-more-menu {
  display: flex;
}

.nav-more-menu a {
  display: block;
  padding: 8px 12px;
  border-radius: 10px;
  color: var(--fg);
  white-space: nowrap;
  border: 1px solid transparent;
}

.nav-more-menu a:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.1);
}

/* Dropdown animation */
.nav-more-menu {
  transform-origin: top right;
  transform: translateY(-6px) scale(0.98);
  opacity: 0;
  pointer-events: none;
  transition: opacity 120ms ease, transform 120ms ease;
}

.nav-more[open] .nav-more-menu {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}


.nav-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.lang-switch {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--muted);
}

.lang-option {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: var(--fg);
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: all 0.2s ease;
}

.lang-option:hover {
  border-color: rgba(255, 255, 255, 0.4);
}

.lang-option.is-active {
  background: var(--accent);
  color: #0e0e11;
  border-color: transparent;
  font-weight: 600;
}

.lang-separator {
  color: rgba(255, 255, 255, 0.4);
}

.variant-switch {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: var(--muted);
}

.variant-option {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: var(--fg);
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: all 0.2s ease;
}

.variant-option:hover {
  border-color: rgba(255, 255, 255, 0.4);
}

.variant-option.is-active {
  background: var(--accent);
  color: #0e0e11;
  border-color: transparent;
  font-weight: 600;
}

.btn {
  display: inline-flex;
  font-size: 0.9rem;
  color: var(--muted);
  padding: 12px 22px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  letter-spacing: 0.02em;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn:hover {
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-1px);
}

.btn-accent {
  background: var(--accent);
  color: #0e0e11;
  border-color: transparent;
  font-weight: 600;
}

.btn-outline {
  color: #0b0d12;                 /* тёмный текст */
  background: #ffffff;            /* явный белый фон */
  border: 1px solid rgba(0,0,0,0.15);
}

.btn-outline:hover {
  background: #f2f3f5;
  border-color: rgba(0,0,0,0.25);
}

section {
  padding: 90px 0;
  scroll-margin-top: 90px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.3em;
  font-size: 0.7rem;
  color: var(--accent);
}

.section-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  margin: 12px 0 18px;
}

.section-subtitle {
  color: var(--muted);
  font-size: 1rem;
  max-width: 640px;
}

.disclaimer-block {
  margin-top: 18px;
  padding: 16px 18px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  font-size: 0.95rem;
  max-width: 720px;
}

.disclaimer-block p + p {
  margin-top: 10px;
}

.image-caption {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.privacy-section {
  margin-top: 28px;
  max-width: 760px;
  color: var(--muted);
}

.privacy-section h2 {
  font-size: 1.4rem;
  margin: 0 0 12px;
  color: var(--fg);
}

.privacy-section p {
  margin: 0 0 12px;
}

.privacy-section ul {
  margin: 0 0 12px 18px;
}

.hero {
  padding-top: 120px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 80px;
}

.hero-title {
  font-size: clamp(3rem, 6vw, 4.2rem);
  letter-spacing: 0.22em;
  white-space: nowrap;
}

.hero-title__variant {
  margin-left: 0.12em;
  color: var(--accent);
  font-weight: inherit;
  letter-spacing: inherit;
  font-size: inherit;
  vertical-align: inherit;
  white-space: nowrap;
}

.hero .hero-subtitle {
  margin-top: 10px;
  font-size: 1.15rem;
  color: var(--muted);
}

.hero .hero-tagline {
  margin-top: 14px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.85rem;
}

.hero-actions {
  margin-top: 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: visible;
}

.hero-visual img {
  width: min(400px, 70vw);
  max-width: none;
  filter: drop-shadow(0 90px 180px rgba(0, 0, 0, 0.85));
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.card {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: 8px 8px 18px rgba(0, 0, 0, 0.25), -4px -4px 10px rgba(255, 255, 255, 0.02);
  min-height: 150px;
}

.card .icon {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: rgba(157, 208, 106, 0.15);
  display: grid;
  place-items: center;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 14px;
}

.card h3 {
  font-size: 1.05rem;
  margin-bottom: 6px;
}

.card p {
  color: var(--muted);
  font-size: 0.92rem;
}

.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
  align-items: center;
}

.placeholder {
  background: #1a1a1f;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.45);
  text-align: center;
  padding: 20px;
  min-height: 220px;
}

.mini-placeholder {
  min-height: 160px;
  font-size: 0.85rem;
}

.list {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.list-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--muted);
}

.list-item span {
  color: var(--accent);
}

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

.bullet {
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.9rem;
  color: var(--muted);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.bom-table-wrapper {
  margin-top: 30px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: var(--card);
  overflow-x: auto;
}

.bom-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  margin-top: 16px;
  color: var(--muted);
  font-size: 0.85rem;
}

.bom-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.bom-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.08);
}

.bom-dot--optional {
  background: rgba(120, 198, 255, 0.2);
  border-color: rgba(120, 198, 255, 0.4);
}

.bom-dot--choice {
  background: rgba(176, 139, 255, 0.2);
  border-color: rgba(176, 139, 255, 0.4);
}

.bom-choice-label {
  display: none;
}

.bom-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
  font-size: 0.9rem;
}

.bom-table th,
.bom-table td {
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  text-align: left;
  vertical-align: top;
}

.bom-table thead th {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.03);
}

.bom-table tbody tr:nth-child(even) td {
  background: rgba(255, 255, 255, 0.02);
}

.bom-table tbody tr:last-child td {
  border-bottom: none;
}

.bom-table td:first-child {
  width: 52px;
  color: var(--muted);
}

.bom-table th.bom-col-photo,
.bom-table td.bom-col-photo {
  width: 88px;
  min-width: 88px;
  max-width: 88px;
  text-align: center;
}

.bom-table th.bom-col-buy,
.bom-table td.bom-col-buy {
  width: 120px;
  min-width: 120px;
  text-align: center;
}

.bom-table tr.is-hidden {
  display: none;
}

.bom-table tr[data-kind="optional"] td {
  background: rgba(120, 198, 255, 0.08);
}

.bom-table tr[data-kind="alternative"] td {
  background: rgba(176, 139, 255, 0.08);
}

.bom-table tr.is-choice td {
  border-left: 3px solid rgba(176, 139, 255, 0.5);
}

.bom-badges {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-left: 10px;
}

.bom-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.65rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 1px solid transparent;
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted);
}

.bom-badge--optional {
  border-color: rgba(120, 198, 255, 0.5);
  color: rgba(158, 220, 255, 0.95);
  background: rgba(120, 198, 255, 0.12);
}

.bom-badge--alternative {
  border-color: rgba(176, 139, 255, 0.5);
  color: rgba(210, 186, 255, 0.95);
  background: rgba(176, 139, 255, 0.12);
}

.bom-badge--choice {
  display: none;
  border-color: rgba(176, 139, 255, 0.5);
  color: rgba(210, 186, 255, 0.95);
  background: rgba(176, 139, 255, 0.2);
}

.bom-table tr.is-choice .bom-badge--choice {
  display: inline-flex;
}

.bom-choice-row td {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  background: rgba(176, 139, 255, 0.12);
}

.bom-thumb {
  width: 64px;
  height: 64px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.bom-photo {
  width: 64px;
  height: 64px;
  object-fit: contain;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  display: block;
}

@media (max-width: 768px) {
  .bom-table-wrapper {
    overflow-x: hidden;
    border: none;
    background: transparent;
  }

  .bom-table {
    min-width: 0;
  }

  .bom-table thead {
    display: none;
  }

  .bom-table,
  .bom-table tbody,
  .bom-table tr,
  .bom-table td {
    display: block;
    width: 100%;
  }

  .bom-table tbody tr {
    background: var(--card);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    margin-bottom: 16px;
    overflow: hidden;
    box-shadow: var(--soft-shadow);
  }

  .bom-table tbody tr:last-child {
    margin-bottom: 0;
  }

  .bom-table td {
    padding: 12px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
  }

  .bom-table td::before {
    content: attr(data-label);
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
    flex: 0 0 auto;
  }

  .bom-table td:last-child {
    border-bottom: none;
    justify-content: center;
    text-align: center;
    flex-direction: column;
    gap: 8px;
  }

  .bom-table td:last-child::before {
    margin-bottom: 4px;
  }

  .bom-choice-row td::before {
    content: "";
  }

  .bom-table td.bom-col-photo,
  .bom-table td.bom-col-buy {
    justify-content: center;
    text-align: center;
    flex-direction: column;
  }

  .bom-badges {
    margin-left: 0;
    margin-top: 6px;
  }
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: clamp(16px, 4vw, 32px);
  height: 100vh;
  height: 100dvh;
  z-index: 1000;
}

.lightbox.is-open {
  display: flex;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(6px);
  z-index: 1;
}

.lightbox-panel {
  position: relative;
  width: min(92vw, 720px);
  max-width: 92vw;
  max-height: min(90vh, 90dvh);
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(12, 14, 18, 0.92);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.6);
  display: flex;
  flex-direction: column;
  z-index: 2;
  overflow: hidden;
}

.lightbox-header {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  height: 52px;
  padding: 8px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(12, 14, 18, 0.96);
  position: relative;
  z-index: 3;
}

.lightbox-close {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.9);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  z-index: 4;
}

.lightbox-body {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 2;
}

.lightbox-img {
  width: 100%;
  height: auto;
  max-height: 100%;
  object-fit: contain;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.lightbox-caption {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.85);
  text-align: center;
}

.step {
  background: var(--card);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 16px;
}

.step .placeholder {
  min-height: 130px;
  margin-bottom: 12px;
}

.step h4 {
  font-size: 0.95rem;
  margin-bottom: 4px;
}

.step p {
  font-size: 0.85rem;
  color: var(--muted);
}

.step .image-caption {
  font-size: 0.8rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.site-footer {
  margin-top: 64px;
  padding: 24px;
  text-align: center;
  font-size: 0.85rem;
  opacity: 0.7;
}

footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 32px 0;
  color: var(--muted);
  font-size: 0.85rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 14px;
}

.footer-links {
  display: flex;
  gap: 18px;
}

.footer-disclaimer {
  color: var(--muted);
  font-size: 0.85rem;
  text-align: center;
  max-width: 540px;
}

.autonomy-graphs {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  margin-top: 24px;
}

.autonomy-graphs img {
  width: 100%;
  height: auto;
  min-height: 260px;
  object-fit: contain;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #0c0c0f;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
}

.graph-card,
.winter-card {
  margin: 0;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.55);
}

.graph-card {
  padding: 18px 18px 16px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
}

.winter-card {
  padding: 18px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
}

.graph-meta,
.winter-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.graph-title,
.winter-title {
  font-weight: 600;
  color: rgba(255, 255, 255, 0.92);
}

.graph-title {
  letter-spacing: 0.02em;
}

.graph-note,
.winter-note {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.55);
}

.graph-card img,
.winter-card img {
  width: 100%;
  height: auto;
  object-fit: contain;
  background: #0c0c0f;
}

.graph-card img {
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.25);
}

.winter-card img {
  max-height: 420px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.winter-stack {
  display: grid;
  gap: 18px;
}

.custom-parts-grid {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 28px;
}

.legend-item {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.03),
    rgba(255, 255, 255, 0.01)
  );
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 16px 16px 18px;
  text-align: center;
}

.legend-item img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  display: block;
}

.legend-title {
  margin-top: 14px;
  font-size: 15px;
  font-weight: 600;
  color: #ffffff;
}

.legend-desc {
  margin-top: 4px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.65);
}

.legend-head {
  margin-top: 34px;
  margin-bottom: 14px;
  display: grid;
  gap: 6px;
}

.legend-eyebrow {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(186, 255, 92, 0.85);
}

.legend-note {
  font-size: 14px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.68);
  max-width: 70ch;
}

.card-sub {
  margin: 4px 0 10px;
  font-size: 13px;
  font-weight: 600;
  color: rgba(186, 255, 92, 0.85);
}

.packages-title {
  margin-top: 16px;
  font-weight: 600;
  color: #ffffff;
}

.packages-note {
  margin-top: 18px;
  font-size: 13px;
  opacity: 0.6;
}

.mounting-visual {
  margin: 28px 0 36px;
  display: flex;
  justify-content: center;
}

.mounting-visual img {
  width: 100%;
  max-width: 800px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #111;
}

.cookie-banner {
  position: fixed;
  bottom: 16px;
  left: 16px;
  right: 16px;
  max-width: 900px;
  margin: 0 auto;
  padding: 14px 18px;
  background: rgba(20, 22, 26, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  z-index: 9999;
  backdrop-filter: blur(6px);
}

.cookie-banner p {
  margin: 0;
  font-size: 0.85rem;
  color: #c7cbd1;
}

.cookie-banner a {
  color: #8da2b8;
  text-decoration: underline;
}

.cookie-banner .btn {
  color: #0f1115;          /* читаемый тёмный текст */
  background: #ffffff;     /* светлая кнопка */
  border-color: #ffffff;
  font-weight: 600;
}

.cookie-banner .btn:hover {
  background: #e6e8eb;
  border-color: #e6e8eb;
}


@media (max-width: 520px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
  }

  .cookie-banner button {
    align-self: flex-end;
  }
}

@media (min-width: 900px) {
  .autonomy-graphs {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .nav {
    flex-direction: column;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero h1 {
    letter-spacing: 0.14em;
  }

  .hero-visual img {
    width: min(520px, 92vw);
  }
}


/* --- Tablet + Mobile: compact header & disable sticky --- */
@media (max-width: 1024px) {

  /* disable sticky header */
  header {
    position: relative !important;
    top: auto !important;
  }

  header, .header, .topbar, .nav {
    padding-top: 10px !important;
    padding-bottom: 10px !important;
  }

  .nav, nav {
    gap: 10px !important;
  }

  .nav a, nav a, .nav-more summary {
    font-size: 13px !important;
    line-height: 1.1 !important;
    padding: 6px 8px !important;
  }

  /* FIX: prevent "More" button from jumping */
  .nav-more summary {
    min-width: 64px;           /* держит ширину */
    justify-content: center;   /* текст по центру */
  }

  /* keep dropdown stable */
   .nav-more {
    position: relative;
    flex: 0 0 auto;
  }

  .nav-more-menu {
    position: absolute !important;
    top: calc(100% + 10px) !important;
    left: 0 !important;

    min-width: 210px !important;
    width: max-content;
    box-shadow: var(--soft-shadow) !important;

    background: rgba(14, 14, 17, 0.97) !important;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    z-index: 999 !important;
  }


  .lang-switch, .lang-toggle {
    transform: scale(0.92);
    transform-origin: right center;
  }

  .btn, .button, .chip, .pill {
    padding: 7px 10px !important;
    font-size: 13px !important;
  }
}

/* Phone: keep dropdown inside screen */
@media (max-width: 520px) {
  .nav-more-menu {
    left: auto !important;
    right: 0 !important;
    max-width: calc(100vw - 24px);
  }
}

.is-hidden {
  display: none !important;
}

.viewer-page {
  width: min(1200px, 92vw);
  margin: 0 auto;
  padding: 32px 0 60px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-height: 100vh;
}

.viewer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  padding: 18px 20px;
}

.viewer-header-main {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.viewer-header-text h1 {
  font-size: 1.6rem;
  margin-bottom: 4px;
}

.viewer-hint {
  color: var(--muted);
  font-size: 0.95rem;
}

.viewer-header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.viewer-variant {
  font-size: 1rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  display: flex;
  align-items: baseline;
  gap: 0.35em;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  width: fit-content;
}

.viewer-variant__suffix {
  color: var(--accent);
  font-weight: 700;
  white-space: nowrap;
}
.viewer-stage {
  position: relative;
  background: radial-gradient(circle at top, rgba(20, 22, 33, 0.9), rgba(8, 9, 13, 0.95));
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 18px;
  min-height: 320px;
}

#viewerCanvasWrap {
  width: 100%;
  height: min(70vh, 720px);
  min-height: 300px;
  border-radius: calc(var(--radius) - 8px);
  overflow: hidden;
  background: rgba(8, 9, 13, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

#viewerCanvasWrap canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.viewer-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(10, 12, 17, 0.72);
  border-radius: var(--radius);
  backdrop-filter: blur(8px);
}

.viewer-overlay-card {
  background: rgba(14, 14, 17, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 22px 26px;
  box-shadow: var(--soft-shadow);
  text-align: center;
  min-width: min(320px, 86vw);
  display: grid;
  gap: 8px;
}

.viewer-progress {
  font-weight: 600;
  color: var(--accent);
}

.viewer-error {
  color: #f2b3b3;
}

@media (max-width: 768px) {
  .viewer-page {
    padding-top: 20px;
  }

  .viewer-header {
    padding: 16px;
  }

  #viewerCanvasWrap {
    height: min(70vh, 560px);
  }
}
