/* ============================================================
   VELOSTRANA.KZ — продающий лендинг под аккумуляторы
   стиль: индустриально-электрический (графит + вольт-лайм)
   ============================================================ */

:root {
  --bg: #101210;
  --bg-alt: #171a16;
  --panel: #1c201b;
  --ink: #f1f4ea;
  --muted: #9ba695;
  --volt: #cdf32c;
  --volt-dim: #a8c918;
  --wa: #25d366;
  --wa-dark: #128c4b;
  --line: rgba(205, 243, 44, 0.16);
  --display: "Unbounded", "Arial Black", sans-serif;
  --body: "Golos Text", "Segoe UI", Tahoma, sans-serif;
}

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

html { scroll-behavior: smooth; }

html, body { overflow-x: clip; }

body {
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background:
    radial-gradient(ellipse 80% 50% at 70% -10%, rgba(205, 243, 44, 0.07), transparent),
    var(--bg);
}

/* тонкая сетка-миллиметровка поверх фона */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(241, 244, 234, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(241, 244, 234, 0.025) 1px, transparent 1px);
  background-size: 44px 44px;
  z-index: 0;
}

main, header, footer { position: relative; z-index: 1; }

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 22px;
}

.wrap-narrow { max-width: 760px; }

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

a { color: var(--volt); }

strong { color: var(--ink); }

/* ---------------- шапка ---------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(16, 18, 16, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  padding-bottom: 12px;
}

.wordmark {
  font-family: var(--display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.06em;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}

.volt-dot { color: var(--volt); font-size: 9px; vertical-align: 3px; padding: 0 3px; }

/* ---------------- кнопки ---------------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--body);
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  padding: 13px 22px;
  border-radius: 0;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}

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

.btn-wa {
  background: var(--wa);
  color: #06210f;
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.28);
}
.btn-wa:hover { background: #2ee574; transform: translateY(-2px); }

.btn-big { font-size: 18px; padding: 16px 30px; }

.btn-header { font-size: 14px; padding: 10px 16px; box-shadow: none; }

.btn-ghost {
  border: 1px solid var(--line);
  color: var(--ink);
}
.btn-ghost:hover { border-color: var(--volt); color: var(--volt); }

.btn-dark {
  background: #101210;
  color: var(--volt);
}
.btn-dark:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35); }

.wa-icon { width: 21px; height: 21px; fill: currentColor; flex: none; }

/* ---------------- hero ---------------- */

.hero { padding: 64px 0 56px; overflow: hidden; }

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  grid-template-areas:
    "copy photo"
    "buy photo";
  column-gap: 48px;
  align-items: center;
}

.hero-copy { grid-area: copy; align-self: end; }
.hero-photo { grid-area: photo; }
.hero-buy { grid-area: buy; align-self: start; }

.sale-tag {
  display: inline-block;
  background: var(--volt);
  color: #0c1405;
  font-weight: 600;
  font-size: 15px;
  padding: 7px 14px;
  margin-bottom: 20px;
  transform: rotate(-1deg);
}

.hero h1 {
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(30px, 4.6vw, 52px);
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin-bottom: 20px;
}

.volt { color: var(--volt); text-shadow: 0 0 34px rgba(205, 243, 44, 0.45); }

.lead {
  font-size: 19px;
  color: var(--muted);
  max-width: 30em;
  margin-bottom: 28px;
}

.price-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 26px;
  flex-wrap: wrap;
}

.price-tag {
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(34px, 4vw, 46px);
  color: var(--ink);
  line-height: 1;
}

.price-tag .cur { color: var(--volt); }

.stock-badge {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #0c1405;
  background: var(--volt);
  padding: 7px 14px;
  transform: rotate(-2deg);
}

.cta-row { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 18px; }

.hero-note { font-size: 14px; color: var(--muted); }

/* фото-карточки */

.photo-card {
  position: relative;
  overflow: visible;
  transform: rotate(2deg);
}

.photo-card img {
  border: 1px solid var(--line);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.55);
  width: 100%;
  height: auto;
  object-fit: contain;
}

.photo-card.tilt-l { transform: rotate(-1.5deg); }
.photo-card.tilt-r { transform: rotate(1.5deg); }

.sticker {
  position: absolute;
  right: -12px;
  bottom: -14px;
  background: var(--volt);
  color: #0c1405;
  font-family: var(--display);
  font-weight: 700;
  font-size: 14px;
  line-height: 1.25;
  text-align: center;
  padding: 12px 16px;
  transform: rotate(-4deg);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.4);
}

.sticker-dark { background: #101210; color: var(--volt); border: 1px solid var(--line); }

/* появление hero */

.reveal { opacity: 0; transform: translateY(18px); animation: rise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) forwards; }
.d1 { animation-delay: 0.08s; }
.d2 { animation-delay: 0.16s; }
.d3 { animation-delay: 0.24s; }
.d4 { animation-delay: 0.32s; }
.d5 { animation-delay: 0.4s; }

@keyframes rise { to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  .reveal { animation: none; opacity: 1; transform: none; }
  .marquee-track { animation: none; }
}

/* ---------------- бегущая строка ---------------- */

.marquee {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(205, 243, 44, 0.05);
  overflow: hidden;
  padding: 12px 0;
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: slide 28s linear infinite;
  font-family: var(--display);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.14em;
  color: var(--volt);
  white-space: nowrap;
}

@keyframes slide { to { transform: translateX(-50%); } }

/* ---------------- секции ---------------- */

.section { padding: 76px 0; }

.section-alt { background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.section-title {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(24px, 3vw, 34px);
  margin-bottom: 18px;
}

.section-sub { color: var(--muted); margin: -6px 0 28px; }

/* ---------------- выгоды ---------------- */

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-top: 28px;
}

.benefit {
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 24px 22px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.benefit:hover { transform: translateY(-4px); border-color: rgba(205, 243, 44, 0.45); }

.benefit-wide {
  grid-column: 1 / -1;
  display: flex;
  gap: 26px;
  align-items: center;
}

.benefit-wide img {
  width: 220px;
  height: auto;
  aspect-ratio: 992 / 724;
  object-fit: contain;
  border: 1px solid var(--line);
  flex: none;
}

.benefit h3 { font-size: 18px; margin-bottom: 10px; font-weight: 600; }

.benefit p { font-size: 15px; color: var(--muted); }

/* ---------------- характеристики ---------------- */

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

.specs-table {
  width: 100%;
  border-collapse: collapse;
  margin: 10px 0 28px;
}

.specs-table th,
.specs-table td {
  text-align: left;
  padding: 13px 6px;
  border-bottom: 1px solid var(--line);
  font-size: 16px;
  vertical-align: top;
}

.specs-table th { color: var(--muted); font-weight: 500; width: 40%; }

.specs-table td { color: var(--ink); font-weight: 600; }

/* ---------------- совместимость ---------------- */

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

.check-list { list-style: none; margin: 10px 0 20px; }

.check-list li {
  position: relative;
  padding: 9px 0 9px 38px;
  color: var(--muted);
  font-size: 17px;
}

.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 7px;
  width: 26px;
  height: 26px;
  background: rgba(205, 243, 44, 0.14);
  color: var(--volt);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.compat-note {
  color: var(--ink);
  background: rgba(205, 243, 44, 0.07);
  border: 1px solid var(--line);
  padding: 14px 18px;
  font-size: 15px;
  margin-bottom: 24px;
}

/* ---------------- зарядка ---------------- */

.charger-card {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 40px;
  align-items: center;
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 36px;
}

.charger-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.charger-photos a {
  display: block;
  aspect-ratio: 992 / 724;
  background: var(--bg);
}

.charger-photos img {
  border: 1px solid var(--line);
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.2s ease;
}

.charger-photos a:hover img { transform: scale(1.03); }

.charger-copy h2 {
  font-family: var(--display);
  font-weight: 700;
  font-size: 28px;
  margin-bottom: 14px;
}

.charger-copy p { color: var(--muted); margin-bottom: 24px; max-width: 34em; }

/* ---------------- галерея ---------------- */

.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.gallery a {
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--bg);
}

.gallery img {
  border: 1px solid var(--line);
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.gallery a:hover img {
  transform: scale(1.025) rotate(-0.5deg);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.5);
}

/* ---------------- доверие ---------------- */

.trust-lead {
  font-size: 18px;
  color: var(--ink);
  margin-bottom: 24px;
}

.trust-facts { list-style: none; }

.trust-facts li {
  position: relative;
  padding: 12px 0 12px 30px;
  color: var(--muted);
  font-size: 16px;
  border-bottom: 1px solid var(--line);
}

.trust-facts li:last-child { border-bottom: none; }

.trust-facts li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 20px;
  width: 12px;
  height: 12px;
  background: var(--volt);
}

/* ---------------- FAQ ---------------- */

.faq {
  border: 1px solid var(--line);
  background: var(--panel);
  margin-bottom: 12px;
  overflow: hidden;
}

.faq summary {
  cursor: pointer;
  list-style: none;
  font-weight: 600;
  font-size: 17px;
  padding: 18px 52px 18px 22px;
  position: relative;
}

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

.faq summary::after {
  content: "+";
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--display);
  font-size: 20px;
  color: var(--volt);
  transition: transform 0.2s ease;
}

.faq[open] summary::after { transform: translateY(-50%) rotate(45deg); }

.faq p { padding: 0 22px 20px; color: var(--muted); font-size: 15.5px; }

/* ---------------- финальный CTA ---------------- */

.final-cta {
  background: var(--volt);
  color: #0c1405;
  text-align: center;
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.final-cta::before {
  content: "⚡";
  position: absolute;
  font-size: 300px;
  opacity: 0.08;
  right: -40px;
  top: 50%;
  transform: translateY(-50%) rotate(12deg);
  pointer-events: none;
}

.final-cta h2 {
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.1;
  margin-bottom: 16px;
}

.final-cta p { font-size: 19px; margin-bottom: 30px; }
.final-cta strong { color: inherit; }

.cta-assure {
  font-size: 15px !important;
  margin: 22px 0 0 !important;
  opacity: 0.85;
}

/* ---------------- футер ---------------- */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 26px 0;
  font-size: 13.5px;
  color: var(--muted);
}

.footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.site-footer .wordmark { font-size: 13px; }

/* ---------------- плавающий WhatsApp ---------------- */

.wa-float {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 60;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--wa);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 30px rgba(37, 211, 102, 0.45);
  animation: pulse 2.4s ease-in-out infinite;
}

.wa-float .wa-icon { width: 30px; height: 30px; }

@keyframes pulse {
  0%, 100% { box-shadow: 0 10px 30px rgba(37, 211, 102, 0.45); }
  50% { box-shadow: 0 10px 30px rgba(37, 211, 102, 0.45), 0 0 0 14px rgba(37, 211, 102, 0.12); }
}

@media (prefers-reduced-motion: reduce) { .wa-float { animation: none; } }

/* ---------------- лайтбокс ---------------- */

#lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(6, 8, 6, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
}
#lightbox-overlay[hidden] { display: none; }

#lb-img {
  max-width: 88vw;
  max-height: 88vh;
  box-shadow: 0 0 60px rgba(0, 0, 0, 0.7);
}

#lightbox-overlay button {
  position: absolute;
  background: none;
  border: none;
  color: #fff;
  font-size: 36px;
  cursor: pointer;
  padding: 10px 18px;
}
.lb-close { top: 10px; right: 15px; }
.lb-prev { left: 10px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 10px; top: 50%; transform: translateY(-50%); }

.lb-counter {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  font-size: 14px;
  letter-spacing: 0.08em;
}

/* ---------------- адаптив ---------------- */

@media (max-width: 920px) {
  .hero-grid {
    grid-template-columns: 1fr;
    grid-template-areas:
      "copy"
      "photo"
      "buy";
    row-gap: 30px;
  }

  .specs-grid,
  .compat-grid,
  .charger-card { grid-template-columns: 1fr; gap: 36px; }

  .specs-photo { order: 2; max-width: 420px; }

  .compat-photo { max-width: 460px; }

  .hero { padding: 44px 0 48px; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }

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

  .benefit-wide { flex-direction: column; align-items: flex-start; }

  .benefit-wide img { width: 100%; height: auto; }

  .gallery { grid-template-columns: repeat(2, 1fr); }

  .section { padding: 56px 0; }

  .btn-header { padding: 9px 12px; font-size: 13px; }
  .btn-header .wa-icon { width: 17px; height: 17px; }

  .charger-card { padding: 22px; }

  .cta-row .btn { width: 100%; justify-content: center; }

  .sticker { right: 6px; bottom: -12px; font-size: 12px; padding: 9px 12px; }
}
