:root {
  --bg: #0B0C0E;
  --bg-hero: #121418;
  --card: #16181C;
  --line: #23262C;
  --line-2: #2A2D33;
  --stroke: #3A3D44;
  --text: #F2F1EE;
  --text-2: #C2C4C9;
  --text-3: #B4B6BC;
  --muted: #A6A8AE;
  --note: #8E9198;
  --dim: #7D8088;
  --arrow: #6E7179;
  --accent: #FFB020;
  --accent-hover: #ffc65c;
  --font: Geologica, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --gutter: 20px;
  --section-gap: 88px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  /* місце під нижню панель на мобільному */
  padding-bottom: calc(96px + env(safe-area-inset-bottom));
}

img { max-width: 100%; display: block; }
a { color: var(--accent); }
a:hover { color: var(--accent-hover); }
h1, h2, h3, p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

.wrap {
  width: 100%;
  max-width: 1440px;
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.muted { color: var(--muted); }
.brand { font-weight: 600; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; }
.eyebrow { font: 500 11px/1.2 var(--mono); letter-spacing: .08em; color: var(--accent); }
.note { font-size: 13px; font-weight: 300; line-height: 1.5; color: var(--note); text-wrap: pretty; }
.center { text-align: center; text-wrap: balance; }

h2 { font-weight: 600; font-size: 30px; line-height: 1.08; letter-spacing: -.025em; text-wrap: balance; }
.head { display: flex; flex-direction: column; gap: 10px; }

/* Кнопки */
.btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 60px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 17px;
  text-decoration: none;
  transition: background-color .15s, border-color .15s, color .15s;
  -webkit-tap-highlight-color: transparent;
}
.btn .arrow { font-size: 20px; }
.btn-primary { background: var(--accent); color: var(--bg); }
.btn-primary:hover { background: var(--accent-hover); color: var(--bg); }
.btn-ghost { border: 1.5px solid var(--stroke); color: var(--text); font-weight: 500; }
.btn-ghost .arrow { color: var(--arrow); }
.btn-ghost:hover { border-color: #5a5e66; color: var(--text); }
.btn-plain { color: var(--text); font-weight: 500; }
.btn-plain:hover { color: var(--text); background: rgba(255,255,255,.05); }
.btn-sm { height: 48px; padding: 0 22px; font-size: 15px; }
.btn:focus-visible, summary:focus-visible, .contact:focus-visible, .topbar-phone:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* Шапка поверх героя */
.topbar {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 5;
  max-width: 1440px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px var(--gutter);
}
.topbar-right { display: flex; align-items: center; gap: 20px; }
.topbar-phone { font-size: 13px; color: var(--text-2); text-decoration: none; }
.topbar-phone:hover { color: var(--text); }
.topbar-tg { display: none; }

/* Герой */
.hero { position: relative; }
.hero-media {
  position: relative;
  height: 560px;
  overflow: hidden;
  background: var(--bg-hero);
}
.hero-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 55% 50%;
}
.hero-media::before,
.hero-media::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  pointer-events: none;
}
.hero-media::before {
  top: 0;
  height: 110px;
  background: linear-gradient(180deg, rgba(11,12,14,.75), rgba(11,12,14,0));
}
.hero-media::after {
  bottom: 0;
  height: 290px;
  background: linear-gradient(180deg, rgba(11,12,14,0) 0%, rgba(11,12,14,.6) 32%, rgba(11,12,14,.9) 60%, var(--bg) 100%);
}
.hero-content {
  position: relative;
  margin-top: -170px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.hero h1 {
  font-weight: 600;
  font-size: 36px;
  line-height: 1.04;
  letter-spacing: -.03em;
  text-wrap: balance;
  text-shadow: 0 2px 24px rgba(0,0,0,.6);
}
.rule { height: 1px; background: var(--line); }
.lead { font-size: 15.5px; font-weight: 300; line-height: 1.55; color: var(--text-2); text-wrap: pretty; }
.btn-row { display: grid; gap: 10px; padding-top: 6px; }

/* Секції */
.section { padding-top: var(--section-gap); display: flex; flex-direction: column; gap: 24px; }

.card { background: var(--card); border-radius: 28px; }

/* Моделі */
.models { gap: 14px; }
.models-card { padding: 28px 20px 22px; display: flex; flex-direction: column; gap: 22px; }
.models-card h2 { font-size: 28px; }
.model-list { border-top: 1px solid var(--line-2); }
.model {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "name name" "spec price";
  align-items: baseline;
  gap: 8px 12px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line-2);
}
.model-name { grid-area: name; font-weight: 500; font-size: 16px; line-height: 1.3; text-wrap: pretty; overflow-wrap: anywhere; }
.model-spec { grid-area: spec; font-size: 14px; font-weight: 300; color: var(--muted); }
.model-price { grid-area: price; font-weight: 600; font-size: 15px; color: var(--accent); white-space: nowrap; text-align: right; }
.model.is-out .model-name, .model.is-out .model-spec { opacity: .55; }
.model.is-out .model-price { color: var(--dim); font-weight: 400; }
.models-cta { display: flex; flex-direction: column; gap: 12px; }
.colors { padding: 0 6px; }

/* Чому в мене */
.why { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.why-item {
  background: var(--card);
  border-radius: 22px;
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-height: 150px;
}
.badge {
  width: 44px; height: 44px;
  border-radius: 14px;
  background: rgba(255,176,32,.1);
  color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-weight: 600; font-size: 15px; letter-spacing: -.01em;
}
.why-title { font-weight: 500; font-size: 16px; line-height: 1.25; text-wrap: balance; }

/* Кроки */
.step {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 4px;
  padding: 20px 0;
  border-top: 1px solid var(--line);
}
.step-n { font-weight: 600; font-size: 28px; line-height: 1; color: var(--accent); letter-spacing: -.03em; }
.step h3 { font-weight: 500; font-size: 18px; line-height: 1.25; margin-bottom: 6px; }
.step p { font-size: 15px; font-weight: 300; line-height: 1.5; color: var(--text-3); }

/* FAQ */
.faq { display: flex; flex-direction: column; gap: 8px; }
.faq details { background: var(--card); border-radius: 20px; overflow: hidden; }
.faq summary {
  list-style: none;
  cursor: pointer;
  min-height: 64px;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-weight: 500;
  font-size: 16px;
  line-height: 1.3;
  color: var(--text);
  -webkit-tap-highlight-color: transparent;
}
.faq summary::-webkit-details-marker { display: none; }
.sign {
  flex: none;
  position: relative;
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 1px solid var(--stroke);
  color: var(--muted);
}
.sign::before, .sign::after {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  width: 10px; height: 1.5px;
  background: currentColor;
  transform: translate(-50%, -50%);
}
.sign::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq details[open] .sign { color: var(--accent); }
.faq details[open] .sign::after { display: none; }
.faq details p { padding: 0 20px 20px; font-size: 15px; font-weight: 300; line-height: 1.55; color: var(--text-3); text-wrap: pretty; }

/* Фінальний заклик */
.cta { position: relative; overflow: hidden; padding: 36px 22px 22px; display: flex; flex-direction: column; gap: 24px; }
.cta h2 { position: relative; font-size: 28px; line-height: 1.1; }
.glow {
  position: absolute;
  right: -120px; top: -140px;
  width: 360px; height: 360px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,176,32,.22), rgba(255,176,32,.06) 40%, rgba(255,176,32,0) 70%);
  pointer-events: none;
}
.cta-buttons { position: relative; display: grid; gap: 10px; }

/* Підвал */
.footer { padding-top: 64px; padding-bottom: 40px; display: flex; flex-direction: column; }
.footer-brand { display: contents; }
.footer-brand .brand { order: 0; margin-bottom: 22px; }
.footer-brand .note { order: 2; margin-top: 22px; font-size: 14px; color: var(--dim); }
.contact {
  order: 1;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  color: var(--text);
  text-decoration: none;
  font-size: 15px;
}
.contact:last-of-type { border-bottom: 1px solid var(--line); }
.contact:hover { color: var(--accent); }
.contact .label { color: var(--dim); }

/* Нижня липка панель (тільки мобільний/планшет) */
.dock {
  position: fixed;
  left: 12px; right: 12px;
  bottom: calc(14px + env(safe-area-inset-bottom));
  z-index: 20;
  max-width: 480px;
  margin: 0 auto;
  padding: 8px;
  border-radius: 999px;
  background: rgba(22,24,28,.9);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border: 1px solid var(--line-2);
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 6px;
  box-shadow: 0 10px 30px rgba(0,0,0,.5);
}
.dock .btn { height: 52px; justify-content: center; font-size: 15px; padding: 0 12px; }

/* Планшет */
@media (min-width: 640px) {
  :root { --gutter: 40px; --section-gap: 112px; }
  .hero-media { height: 640px; }
  .hero h1 { font-size: 46px; }
  .lead { font-size: 17px; max-width: 560px; }
  .btn-row, .cta-buttons { grid-template-columns: repeat(2, max-content); }
  .btn-row .btn, .cta-buttons .btn { gap: 28px; padding: 0 26px; }
  h2 { font-size: 38px; }
  .models-card { padding: 40px 40px 36px; }
  .models-card h2 { font-size: 36px; }
  .model { grid-template-columns: minmax(0, 1fr) 120px 180px; grid-template-areas: "name spec price"; gap: 20px; }
  .why { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
  .step { display: flex; flex-direction: column; gap: 14px; padding-top: 28px; border-top-color: var(--line-2); }
  .step-n { font-size: 40px; }
  .step h3 { font-size: 20px; margin-bottom: 8px; }
  .cta { padding: 56px 44px 44px; }
  .cta h2 { font-size: 36px; }
}

/* Десктоп */
@media (min-width: 1024px) {
  :root { --gutter: 80px; --section-gap: 140px; }
  body { padding-bottom: 0; }
  .dock { display: none; }

  .topbar { padding: 28px var(--gutter); }
  .brand { font-size: 15px; }
  .topbar-phone { font-size: 15px; }
  .topbar-tg { display: flex; }

  .hero {
    height: min(820px, 100vh);
    min-height: 680px;
    max-width: 1440px;
    margin: 0 auto;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
  }
  .hero-media { position: absolute; inset: 0; height: auto; }
  .hero-media img { object-position: 50% 45%; }
  .hero-media::before {
    top: 0; bottom: 0; height: auto;
    background:
      linear-gradient(180deg, rgba(11,12,14,.7), rgba(11,12,14,0) 120px),
      linear-gradient(90deg, rgba(11,12,14,.92) 0%, rgba(11,12,14,.72) 34%, rgba(11,12,14,.15) 60%, rgba(11,12,14,0) 75%);
  }
  .hero-media::after { height: 320px; background: linear-gradient(180deg, rgba(11,12,14,0), rgba(11,12,14,.7) 55%, var(--bg)); }
  .hero-content { margin: 0; padding-bottom: 96px; gap: 24px; max-width: none; }
  .hero-content > * { max-width: 620px; }
  .hero h1 { font-size: 60px; line-height: 1.02; letter-spacing: -.035em; text-shadow: 0 2px 30px rgba(0,0,0,.5); }
  .rule { background: var(--line-2); width: 620px; max-width: 100%; }
  .lead { font-size: 18px; max-width: 520px; }
  .btn-row { padding-top: 8px; gap: 12px; }
  .btn-row .btn-ghost { background: rgba(11,12,14,.4); }

  .eyebrow { font-size: 12px; }
  .head { gap: 12px; }
  h2 { font-size: 44px; line-height: 1.05; letter-spacing: -.03em; }
  .section { gap: 40px; }

  .models { align-items: center; gap: 18px; }
  .models-card { width: 100%; max-width: 960px; border-radius: 32px; padding: 48px 56px 44px; gap: 32px; }
  .models-card h2 { font-size: 40px; }
  .model { grid-template-columns: minmax(0, 1fr) 140px 200px; gap: 24px; padding: 20px 0; }
  .model-name { font-size: 18px; }
  .model-spec { font-size: 16px; }
  .model-price { font-size: 17px; }
  .models-cta { gap: 14px; }
  .btn-wide { height: 64px; justify-content: center; gap: 14px; font-size: 18px; }
  .models-cta .note { font-size: 14px; }
  .colors { width: 100%; max-width: 960px; padding: 0 8px; font-size: 14px; }

  .why { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
  .why-item { border-radius: 24px; padding: 28px 26px; gap: 40px; min-height: 180px; }
  .badge { width: 52px; height: 52px; border-radius: 16px; font-size: 17px; }
  .why-title { font-size: 19px; }

  .steps { gap: 40px; }
  .step-n { font-size: 44px; }
  .step h3 { font-size: 21px; }
  .step p { font-size: 16px; }

  .faq-section { display: grid; grid-template-columns: 400px minmax(0, 1fr); gap: 64px; align-items: start; }
  .faq { gap: 10px; }
  .faq details { border-radius: 22px; }
  .faq summary { min-height: 72px; padding: 20px 26px; gap: 20px; font-size: 18px; }
  .sign { width: 32px; height: 32px; }
  .faq details p { padding: 0 26px 24px; max-width: 640px; font-size: 16px; }

  .cta {
    border-radius: 36px;
    padding: 72px;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-end;
    gap: 48px;
  }
  .cta h2 { max-width: 640px; font-size: 44px; line-height: 1.08; }
  .glow { right: -160px; top: -220px; width: 620px; height: 620px; background: radial-gradient(circle, rgba(255,176,32,.2), rgba(255,176,32,.05) 40%, rgba(255,176,32,0) 70%); }
  .cta-buttons { grid-template-columns: 1fr; width: 340px; flex: none; }
  .cta-buttons .btn { padding: 0 24px; }

  .footer {
    padding-top: 96px;
    padding-bottom: 56px;
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 56px;
    align-items: end;
  }
  .footer-brand { display: flex; flex-direction: column; gap: 14px; }
  .footer-brand .brand, .footer-brand .note { margin: 0; }
  .contact, .contact:last-of-type { flex-direction: column; gap: 6px; padding: 0; border: 0; font-size: 16px; }
  .contact .label { font-size: 13px; }
}

@media (prefers-reduced-motion: reduce) {
  .btn { transition: none; }
}
