/* ==========================================================
   VODO MOTO — vodomoto.pp.ua
   Фірмові кольори взято з логотипу
   ========================================================== */
:root {
  --navy-900: #071d3d;
  --navy-800: #0b2a55;
  --navy-700: #0f3a78;      /* «VODO» */
  --blue-600: #1570cc;
  --blue-500: #1a85e0;      /* «MOTO» */
  --blue-100: #dcebfa;
  --blue-50:  #eef5fc;
  --ink:      #12213a;
  --muted:    #52627a;
  --line:     #d6e2ef;
  --white:    #ffffff;

  --radius:   14px;
  --shadow:   0 10px 30px -12px rgba(11, 42, 85, .25);
  --container: 1180px;

  --font-head: "Exo 2", system-ui, sans-serif;
  --font-body: "Golos Text", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue-600); }
h1, h2, h3 { font-family: var(--font-head); color: var(--navy-800); line-height: 1.15; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 4.2vw, 3.3rem); font-weight: 800; letter-spacing: -.01em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }

.eyebrow {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .82rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--blue-500);
  margin-bottom: .8em;
  display: flex; align-items: center; gap: .7em;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; }
.eyebrow--light { color: #6db7f5; }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: .9em 1.6em;
  border-radius: 999px;
  font-family: var(--font-head); font-weight: 700; font-size: 1rem;
  text-decoration: none; cursor: pointer; border: 2px solid transparent;
  transition: transform .15s ease, background .2s ease, box-shadow .2s ease, color .2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--blue-500); color: var(--white); box-shadow: 0 8px 20px -8px rgba(26,133,224,.7); }
.btn--primary:hover { background: var(--blue-600); }
.btn--ghost { border-color: var(--navy-700); color: var(--navy-700); background: transparent; }
.btn--ghost:hover { background: var(--navy-700); color: var(--white); }
.btn--full { width: 100%; }
.btn:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, button:focus-visible {
  outline: 3px solid #7cc0ff; outline-offset: 2px;
}

/* ---------- Шапка ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}
.header.is-scrolled { border-color: var(--line); box-shadow: 0 4px 20px -14px rgba(11,42,85,.4); }
.header__inner { display: flex; align-items: center; gap: 32px; height: 72px; }
.header__logo img { width: 200px; }
.nav { display: flex; gap: 28px; margin-left: auto; }
.nav a {
  color: var(--navy-800); text-decoration: none; font-weight: 500;
  position: relative; padding: 4px 0;
}
.nav a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 2px; width: 0;
  background: var(--blue-500); transition: width .2s ease;
}
.nav a:hover::after { width: 100%; }
.header__phone {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-head); font-weight: 700; color: var(--navy-700);
  text-decoration: none; white-space: nowrap;
}
.header__phone svg { width: 18px; height: 18px; fill: var(--blue-500); }
.burger { display: none; }

/* ---------- Перший екран ---------- */
.hero {
  position: relative;
  background:
    radial-gradient(1000px 500px at 85% 20%, rgba(26,133,224,.16), transparent 60%),
    linear-gradient(180deg, var(--blue-50) 0%, var(--blue-100) 100%);
  padding: 56px 0 140px;
  overflow: hidden;
}
.hero__inner { display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 48px; }
.hero__lead { font-size: 1.12rem; color: var(--muted); max-width: 34em; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 28px 0 36px; }
.hero__facts {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-wrap: wrap; gap: 12px 28px;
  color: var(--muted); font-size: .95rem;
}
.hero__facts li { display: flex; align-items: center; gap: 0 8px; }
.hero__facts strong { margin-right: .3em; }
.hero__facts li::before {
  content: ""; flex: none; margin-right: 6px; width: 8px; height: 8px; border-radius: 50%; background: var(--blue-500);
  box-shadow: 0 0 0 4px rgba(26,133,224,.18);
}
.hero__facts strong { color: var(--navy-800); }
.hero__emblem { position: relative; }
.hero__emblem img {
  width: min(100%, 520px); margin-left: auto;
  filter: drop-shadow(0 30px 40px rgba(11,42,85,.18));
  animation: float 7s ease-in-out infinite;
}
@keyframes float { 50% { transform: translateY(-10px); } }
.wave { position: absolute; left: 0; bottom: -1px; width: 100%; height: 110px; }

/* ---------- Секції ---------- */
.section { padding: 96px 0; }
.section--tint { background: var(--blue-50); }
.section--dark {
  background: linear-gradient(160deg, var(--navy-800), var(--navy-900));
  color: #c9d8ec;
}
.section--dark h2, .section--dark h3 { color: var(--white); }
.section__head { max-width: 720px; margin-bottom: 48px; }
.section__lead { color: var(--muted); font-size: 1.08rem; }
.section--dark .section__lead { color: #a9bdd9; }

/* ---------- Картки асортименту ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 26px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.card p { color: var(--muted); margin: 0; }
.card__icon {
  width: 56px; height: 56px; border-radius: 14px;
  display: grid; place-items: center; margin-bottom: 18px;
  background: linear-gradient(135deg, var(--blue-50), var(--blue-100));
}
.card__icon svg {
  width: 32px; height: 32px; fill: none;
  stroke: var(--navy-700); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round;
}

/* ---------- Сервіс ---------- */
.service { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.checklist { list-style: none; padding: 0; margin: 0 0 32px; display: grid; gap: 14px; }
.checklist li { position: relative; padding-left: 36px; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 2px;
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--blue-500) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat;
}
.service__visual img { width: 100%; max-width: 560px; margin: 0 auto; }

/* ---------- Кроки ---------- */
.steps {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px;
  counter-reset: step;
}
.steps li {
  position: relative;
  padding: 32px 28px;
  border-radius: var(--radius);
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
}
.steps p { margin: 0; color: #a9bdd9; }
.steps__num {
  display: inline-grid; place-items: center;
  width: 48px; height: 48px; margin-bottom: 18px; border-radius: 50%;
  font-family: var(--font-head); font-weight: 900; font-style: italic; font-size: 1.4rem;
  color: var(--white); background: var(--blue-500);
}

/* ---------- Бренди ---------- */
.brands {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-wrap: wrap; gap: 14px;
}
.brands li {
  font-family: var(--font-head); font-weight: 800; font-style: italic;
  font-size: 1.15rem; letter-spacing: .02em; text-transform: uppercase;
  color: var(--navy-700);
  padding: 14px 26px;
  border: 1.5px solid var(--line); border-radius: 999px;
  background: var(--white);
  transition: border-color .2s, color .2s;
}
.brands li:hover { border-color: var(--blue-500); color: var(--blue-500); }
.brands__note { margin-top: 28px; color: var(--muted); }

/* ---------- Контакти ---------- */
.contacts { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; }
.contact-list li { display: grid; grid-template-columns: 130px 1fr; gap: 12px; align-items: baseline; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.contact-list__label { font-size: .85rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.contact-list a { color: var(--navy-800); font-weight: 600; text-decoration: none; }
.contact-list a:hover { color: var(--blue-500); }
.map {
  margin-top: 28px; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); box-shadow: var(--shadow);
  aspect-ratio: 16 / 10; background: var(--blue-100);
}
.map iframe { display: block; width: 100%; height: 100%; border: 0; }
.messengers { display: flex; gap: 18px; flex-wrap: wrap; }

.form {
  background: var(--white);
  border-radius: 20px;
  padding: 36px;
  box-shadow: var(--shadow);
  display: grid; gap: 16px;
}
.form h3 { font-size: 1.45rem; margin-bottom: 4px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form label { display: grid; gap: 6px; font-size: .92rem; font-weight: 500; color: var(--navy-800); }
.optional { font-weight: 400; color: var(--muted); }
.form input, .form textarea {
  font: inherit; font-size: 1rem; color: var(--ink);
  padding: 12px 14px;
  border: 1.5px solid var(--line); border-radius: 10px;
  background: #fbfdff;
  transition: border-color .2s, box-shadow .2s;
  resize: vertical;
}
.form input:focus, .form textarea:focus { outline: none; border-color: var(--blue-500); box-shadow: 0 0 0 4px rgba(26,133,224,.15); }
.form .is-invalid { border-color: #d64545; }
.form__hint { margin: 0; font-size: .92rem; color: var(--muted); min-height: 1.4em; }
.form__hint.is-error { color: #c23434; }
.form__hint.is-ok { color: #1c8a4a; }

/* Десктоп: форма і мапа закінчуються на одному рівні —
   обидві колонки тягнуться на висоту рядка, лишок забирають мапа та поле «Що потрібно» */
@media (min-width: 981px) {
  .contacts { align-items: stretch; }
  .contacts__info { display: flex; flex-direction: column; }
  .contacts__info .map { flex: 1 1 auto; aspect-ratio: auto; min-height: 260px; }
  .form { display: flex; flex-direction: column; }
  .form__grow { flex: 1 1 auto; grid-template-rows: auto 1fr; }
  .form__grow textarea { min-height: 120px; height: 100%; resize: none; }
}

/* ---------- Підвал ---------- */
.footer { background: var(--navy-900); color: #8ea4c4; padding: 40px 0; font-size: .95rem; }
.footer__inner { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; justify-content: space-between; }
.footer p { margin: 0; }
.footer__logo { width: 160px; filter: brightness(0) invert(1); opacity: .9; }

/* ---------- Адаптив ---------- */
@media (max-width: 980px) {
  .header__phone span { display: none; }
  .header__phone { width: 42px; height: 42px; justify-content: center; border-radius: 50%; background: var(--blue-50); }
  .nav {
    position: fixed; inset: 72px 0 auto 0;
    flex-direction: column; gap: 0;
    background: var(--white); border-bottom: 1px solid var(--line);
    padding: 8px 20px 16px;
    transform: translateY(-120%); visibility: hidden;
    transition: transform .25s ease, visibility .25s;
    box-shadow: 0 20px 30px -20px rgba(11,42,85,.35);
  }
  .nav.is-open { transform: none; visibility: visible; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .nav a:last-child { border-bottom: 0; }
  .nav a::after { display: none; }
  .header__inner { gap: 12px; }
  .header__phone { margin-left: auto; }
  .burger {
    display: grid; gap: 5px; place-content: center;
    width: 42px; height: 42px; border: 0; border-radius: 10px; background: var(--navy-800); cursor: pointer;
  }
  .burger span { display: block; width: 20px; height: 2px; background: var(--white); transition: transform .2s, opacity .2s; }
  .burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .hero__inner, .service, .contacts { grid-template-columns: 1fr; }
  .hero__emblem { order: -1; }
  .hero__emblem img { width: min(70%, 340px); margin: 0 auto; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .service__visual { order: -1; }
  .service__visual img { max-width: 420px; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .header__logo img { width: 160px; }
  .hero { padding: 28px 0 110px; }
  .hero__actions .btn { flex: 1 1 100%; }
  .section { padding: 64px 0; }
  .cards { grid-template-columns: 1fr; }
  .form { padding: 24px 20px; }
  .form__row { grid-template-columns: 1fr; }
  .contact-list li { grid-template-columns: 1fr; gap: 2px; }
  .brands li { font-size: 1rem; padding: 10px 18px; }
  .footer__inner { flex-direction: column; text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
