/* КурьерБайк — site v2
   Brand palette lives in :root so colors can be swapped in one place. */
@font-face {
  font-family: "Unbounded";
  src: url("../assets/fonts/unbounded.woff2") format("woff2");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Manrope";
  src: url("../assets/fonts/manrope.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #0c0e11;
  --bg-elev: #13161b;
  --bg-card: #1a1f27;
  --bg-input: #101317;
  --bg-photo: #e8eaed;
  --text: #f3f4f0;
  --text-muted: #a7b0b8;
  --text-faint: #6e767e;
  --accent: #c6ff3d;
  --accent-hover: #d8ff6e;
  --accent-ink: #141a08;
  --accent-2: #ff5c1a;
  --accent-2-soft: #ff8a4c;
  --line: rgba(243, 244, 240, 0.10);
  --line-strong: rgba(198, 255, 61, 0.38);
  --danger: #ff6b6b;
  --ok: #9cff7a;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  --radius: 20px;
  --radius-sm: 12px;
  --header-h: 68px;
  --bar-h: 68px;
  --font: "Manrope", "Noto Sans", system-ui, sans-serif;
  --font-display: "Unbounded", "Manrope", sans-serif;
  --wrap: 1160px;
  --pad: 20px;
}

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

html {
  color-scheme: dark;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  padding-bottom: calc(var(--bar-h) + env(safe-area-inset-bottom, 0px));
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent-hover); }
address { font-style: normal; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0;
}

h2 { font-size: clamp(1.7rem, 4vw, 2.6rem); }
h3 { font-size: 1.15rem; }

p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

.wrap {
  width: min(100% - var(--pad) * 2, var(--wrap));
  margin-inline: auto;
}
.wrap-narrow { --wrap: 780px; }

.skip-link {
  position: absolute;
  left: 12px;
  top: -40px;
  z-index: 100;
  background: var(--accent);
  color: var(--accent-ink);
  padding: 8px 14px;
  border-radius: 8px;
  font-weight: 700;
  text-decoration: none;
}
.skip-link:focus { top: 12px; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--font);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: transform .15s ease, background .15s ease, border-color .15s ease, color .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-accent {
  background: var(--accent);
  color: var(--accent-ink);
}
.btn-accent:hover {
  background: var(--accent-hover);
  color: var(--accent-ink);
}
.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--line);
}
.btn-ghost:hover {
  border-color: var(--text-muted);
  color: var(--text);
  background: rgba(255,255,255,.04);
}
.btn-lg { min-height: 54px; padding: 0 24px; font-size: 16px; }
.btn-block { width: 100%; }
.btn-icon { width: 48px; padding: 0; flex: 0 0 48px; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--header-h);
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 20px;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  flex: 0 0 auto;
}
.logo:hover { color: var(--text); }
.logo-mark { color: var(--accent); display: flex; }
.logo-word {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}
.logo-word span { color: var(--accent-2); }

.nav {
  display: none;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}
.nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  padding: 8px 10px;
  border-radius: 999px;
}
.nav a:hover { color: var(--text); background: rgba(255,255,255,.04); }

.header-cta { display: none; margin-left: auto; }

.nav-toggle {
  margin-left: auto;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  color: var(--text);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease;
}
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 859px) {
  .nav-open .nav {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--bg-elev);
    border-bottom: 1px solid var(--line);
    padding: 12px 20px 20px;
    gap: 4px;
  }
  .nav-open .nav a { padding: 12px 14px; font-size: 16px; color: var(--text); }
}

/* Hero */
.hero {
  position: relative;
  padding: 28px 0 48px;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(900px 420px at 80% 20%, rgba(198, 255, 61, 0.08), transparent 60%),
    radial-gradient(700px 400px at 10% 80%, rgba(255, 92, 26, 0.07), transparent 60%);
  pointer-events: none;
}
.hero-grid {
  position: relative;
  display: grid;
  gap: 28px;
}
.hero-copy { container-type: inline-size; }

.eyebrow {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}
.hero h1 {
  font-size: clamp(1.65rem, 7.4cqi, 2.8rem);
  max-width: 100%;
  letter-spacing: -0.03em;
  overflow-wrap: anywhere;
}
.hero h1 span { color: var(--accent); }
.lead {
  margin-top: 16px;
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 38em;
}
.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 22px 0;
}
.pills li {
  border: 1px solid var(--line);
  background: rgba(255,255,255,.03);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 650;
  color: var(--text);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.price-hint {
  margin-top: 18px;
  color: var(--text-muted);
  font-size: 15px;
}
.price-hint strong { color: var(--text); font-weight: 800; }

.hero-visual {
  position: relative;
  min-height: 280px;
  display: grid;
  place-items: end center;
}
.hero-glow {
  position: absolute;
  width: 80%;
  height: 60%;
  left: 10%;
  bottom: 8%;
  background: radial-gradient(circle, rgba(198, 255, 61, 0.22), rgba(255, 92, 26, 0.08) 45%, transparent 70%);
  filter: blur(18px);
  pointer-events: none;
}
.hero-bike {
  position: relative;
  width: min(100%, 560px);
  filter: drop-shadow(0 24px 30px rgba(0,0,0,.55));
}
.hero-caption {
  position: relative;
  margin-top: 4px;
  font-size: 13px;
  color: var(--text-faint);
  text-align: center;
}

/* Sections */
.section { padding: 56px 0; }
.section-head { margin-bottom: 28px; }
.section-lead {
  margin-top: 12px;
  color: var(--text-muted);
  max-width: 40em;
}
.section-cta { margin-top: 28px; }

.benefit-grid {
  display: grid;
  gap: 12px;
}
.benefit-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 20px 24px;
}
.benefit-icon {
  display: inline-flex;
  color: var(--accent);
  margin-bottom: 14px;
}
.benefit-card h3 { margin-bottom: 8px; }
.benefit-card p { color: var(--text-muted); font-size: 15px; }

/* Steps */
.steps {
  display: grid;
  gap: 12px;
  counter-reset: none;
}
.steps li {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 20px 24px;
}
.step-num {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--accent);
  margin-bottom: 10px;
  letter-spacing: 0.04em;
}
.steps h3 { margin-bottom: 8px; }
.steps p { color: var(--text-muted); font-size: 15px; }

/* Models */
.model-grid {
  display: grid;
  gap: 16px;
}
.model-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.model-card-featured { border-color: var(--line-strong); }
.model-photo {
  position: relative;
  background: var(--bg-photo);
  aspect-ratio: 4 / 3;
  overflow: hidden;
}
.model-photo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 12px;
}
.model-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 1;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 12px;
  font-weight: 800;
  padding: 6px 10px;
  border-radius: 999px;
  max-width: calc(100% - 24px);
}
.model-body { padding: 18px 18px 20px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.model-body .btn { margin-top: 14px; }
.model-price {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-top: 6px;
}
.model-price strong {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 600;
}

.model-price span, .model-month { color: var(--text-muted); font-size: 14px; }

.specs { margin-top: 10px; }
.specs summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  color: var(--text);
  padding: 0 18px;
  transition: background .15s ease, border-color .15s ease;
}
.specs summary::-webkit-details-marker { display: none; }
.specs summary::after {
  content: "";
  width: 8px;
  height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform .2s ease;
}
.specs[open] summary::after {
  transform: rotate(225deg) translate(-1px, -1px);
}
.specs summary:hover {
  border-color: var(--text-muted);
  background: rgba(255,255,255,.04);
}
.specs-body { padding: 14px 2px 2px; }
.specs-list { margin: 0; display: grid; }
.specs-list > div {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 8px 12px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.specs-list dt { margin: 0; color: var(--text-muted); font-weight: 650; }
.specs-list dd { margin: 0; color: var(--text); }
.specs-note {
  margin-top: 12px;
  font-size: 12px;
  color: var(--text-faint);
  line-height: 1.45;
}
@media (max-width: 859px) {
  .specs[open] .specs-body { padding-bottom: 8px; }
}



/* Form */
.apply {
  background:
    radial-gradient(800px 400px at 80% 0%, rgba(198, 255, 61, 0.06), transparent 60%),
    var(--bg-elev);
  border-block: 1px solid var(--line);
}
.apply-grid { display: grid; gap: 32px; }
.apply-intro h2 { max-width: 16ch; }
.quick-contacts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.apply-form {
  background: var(--bg-card);
  border: 1px solid var(--line-strong);
  border-radius: 24px;
  padding: 22px 18px 20px;
  box-shadow: var(--shadow);
}
.form-fields { display: grid; gap: 16px; }
fieldset {
  border: 0;
  margin: 0;
  padding: 0;
  min-inline-size: 0;
}

.field label,
.field legend {
  display: block;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text);
}
.optional {
  font-weight: 500;
  color: var(--text-faint);
  margin-left: 6px;
}
.field input[type="text"],
.field input[type="date"],
.field input[type="tel"] {
  width: 100%;
  min-height: 50px;
  padding: 0 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--bg-input);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px; /* iOS zoom lock */
}
.field input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(198, 255, 61, 0.18);
}
.field input.invalid {
  border-color: var(--danger);
}

.model-choice {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}
.model-choice label {
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  background: var(--bg-input);
}
.model-choice input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.model-choice label:has(input:checked) {
  background: var(--accent);
  color: var(--accent-ink);
  border-color: var(--accent);
}
.model-choice label:has(input:focus-visible) {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.form-error {
  color: var(--danger);
  font-size: 14px;
  font-weight: 600;
}
[hidden] { display: none !important; }
.form-note {
  font-size: 13px;
  color: var(--text-faint);
  line-height: 1.45;
}
.honeypot {
  position: absolute;
  left: -9999px;
  height: 0;
  overflow: hidden;
}

.form-success {
  text-align: center;
  padding: 18px 8px 8px;
}
.success-mark { color: var(--accent); margin-bottom: 12px; }
.form-success h3 { margin-bottom: 10px; }
.form-success p { color: var(--text-muted); }
.success-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 22px;
}

/* FAQ */
.faq-list { display: grid; gap: 8px; }
.faq-list details {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 0 18px;
}
.faq-list summary {
  cursor: pointer;
  list-style: none;
  font-weight: 700;
  padding: 16px 0;
  position: relative;
  padding-right: 28px;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "";
  position: absolute;
  right: 0;
  top: 22px;
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--text-muted);
  border-bottom: 2px solid var(--text-muted);
  transform: rotate(45deg);
  transition: transform .2s ease;
}
.faq-list details[open] summary::after { transform: rotate(225deg); top: 26px; }
.faq-list details p {
  color: var(--text-muted);
  padding-bottom: 16px;
}
.faq-list details a { color: var(--accent); }

/* Contacts */
.contact-grid {
  display: grid;
  gap: 12px;
}
.contact-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 20px;
}
.contact-card h3 { margin-bottom: 10px; }
.contact-card p, .contact-links { color: var(--text-muted); }
.contact-card a { color: var(--accent); text-decoration: none; font-weight: 650; }
.contact-card a:hover { text-decoration: underline; }
.contact-card p, .contact-card li { color: var(--text-muted); }
.contact-links { display: grid; gap: 8px; }

/* Footer */
.footer {
  border-top: 1px solid var(--line);
  padding: 32px 0 40px;
  color: var(--text-muted);
  font-size: 14px;
}
.footer-inner { display: grid; gap: 14px; }
.footer .logo { color: var(--text); width: max-content; }
.footer-meta { color: var(--text-faint); }

/* Sticky mobile CTA */
.sticky-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 35;
  display: flex;
  gap: 10px;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px));
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--line);
}
.sticky-cta .btn-accent { flex: 1; }
.sticky-cta.is-hidden { display: none; }

@media (min-width: 640px) {
  .benefit-grid { grid-template-columns: 1fr 1fr; }
  .model-choice { grid-template-columns: repeat(4, 1fr); }
  .apply-form { padding: 28px; }
}

@media (min-width: 860px) {
  body { padding-bottom: 0; }
  .sticky-cta { display: none !important; }
  .nav-toggle { display: none; }
  .nav { display: flex; }
  .header-cta { display: inline-flex; margin-left: 12px; }
  .hero { padding: 48px 0 72px; }
  .hero-grid {
    grid-template-columns: 1.05fr 0.95fr;
    align-items: center;
    gap: 40px;
    min-height: 560px;
  }
  .section { padding: 80px 0; }
  .steps {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    position: relative;
  }
  .model-grid { grid-template-columns: repeat(3, 1fr); align-items: stretch; }
  .apply-grid {
    grid-template-columns: 0.9fr 1.1fr;
    gap: 56px;
    align-items: start;
  }
  .contact-grid { grid-template-columns: repeat(3, 1fr); }
  .hero-bike { width: min(100%, 640px); }
}

@media (min-width: 1100px) {
  .benefit-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

@media print {
  .header, .sticky-cta, .nav-toggle { display: none !important; }
  body { padding: 0; background: #fff; color: #111; }
}
