: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);
}

.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: var(--fg);
}

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 h1 {
  font-size: clamp(3rem, 6vw, 4.2rem);
  letter-spacing: 0.22em;
}

.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-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 td:last-child {
  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;
}

.exploded-view {
  background: #0c0c10;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 18px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.55);
  display: grid;
  place-items: center;
}

.exploded-view img {
  width: 100%;
  height: auto;
  display: block;
}

.exploded-legend {
  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;
}

.section-divider {
  margin: 48px 0 32px;
  height: 1px;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0),
    rgba(255, 255, 255, 0.12),
    rgba(255, 255, 255, 0)
  );
}

.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);
  }
}
