/* ============================================================
   Green Line Auto — стили
   Фирменная палитра построена вокруг зелёного цвета.
   ============================================================ */

:root {
  --green-900: #052e1a;
  --green-800: #0a3d23;
  --green-700: #0f5132;
  --green-600: #128a4f;
  --green-500: #16a35e;
  --green-400: #2fbf78;
  --green-300: #6fdca5;
  --accent: #19c37d;
  --ink: #0f1a14;
  --text: #2b3a33;
  --muted: #6b7a72;
  --line: #e3eae6;
  --bg: #ffffff;
  --bg-alt: #f3f8f5;
  --white: #ffffff;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 4px 14px rgba(5, 46, 26, 0.06);
  --shadow: 0 14px 40px rgba(5, 46, 26, 0.12);
  --shadow-lg: 0 24px 60px rgba(5, 46, 26, 0.18);
  --container: 1300px;
  --transition: 0.25s ease;
  --font-head: "Montserrat", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; overflow-x: hidden; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--ink);
  line-height: 1.18;
  margin: 0;
}

p { margin: 0; }
a { text-decoration: none; color: inherit; }
ul { margin: 0; padding: 0; list-style: none; }
img { max-width: 100%; display: block; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}
.container--narrow { max-width: 820px; }

.accent { color: var(--accent); }

/* ===================== КНОПКИ ===================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 15px;
  padding: 13px 24px;
  border-radius: 50px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition), color var(--transition);
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn--lg { padding: 16px 32px; font-size: 16px; }
.btn--block { width: 100%; }

.btn--primary {
  background: linear-gradient(135deg, var(--green-500), var(--green-600));
  color: var(--white);
  box-shadow: 0 10px 24px rgba(18, 138, 79, 0.35);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 16px 30px rgba(18, 138, 79, 0.45); }

.btn--ghost {
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(4px);
}
.btn--ghost:hover { background: rgba(255, 255, 255, 0.22); }

.btn--outline {
  background: transparent;
  color: var(--green-600);
  border-color: var(--green-300);
}
.btn--outline:hover { background: var(--green-500); color: var(--white); border-color: var(--green-500); }

/* ===================== ШАПКА ===================== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow var(--transition);
}
.header.is-scrolled { box-shadow: var(--shadow-sm); }
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 86px;
  gap: 16px;
}
.logo__img { height: 100px; width: auto; }

.nav { display: flex; gap: 26px; }
.nav__link {
  font-weight: 500;
  font-size: 15px;
  color: var(--text);
  position: relative;
  transition: color var(--transition);
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0; bottom: -6px;
  width: 0; height: 2px;
  background: var(--accent);
  transition: width var(--transition);
}
.nav__link:hover { color: var(--green-600); }
.nav__link:hover::after { width: 100%; }

.header__actions { display: flex; align-items: center; gap: 18px; }
.header__phone { font-family: var(--font-head); font-weight: 700; color: var(--ink); white-space: nowrap; }
.header__phone:hover { color: var(--green-600); }

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 42px; height: 42px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--white);
  cursor: pointer;
  padding: 0;
  align-items: center;
  justify-content: center;
}
.burger span {
  display: block;
  width: 20px; height: 2px;
  background: var(--ink);
  transition: transform var(--transition), opacity var(--transition);
}
.burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===================== HERO ===================== */
.hero {
  position: relative;
  color: var(--white);
  background:
    linear-gradient(120deg, rgba(5, 46, 26, 0.92) 0%, rgba(15, 81, 50, 0.82) 45%, rgba(18, 138, 79, 0.55) 100%),
    url("../img/hero.svg") center/cover no-repeat,
    var(--green-800);
  overflow: hidden;
}
.hero__inner {
  display: grid;
  grid-template-columns: 1.2fr 0.85fr;
  gap: 50px;
  align-items: center;
  padding: 90px 20px 100px;
}
.hero__content { max-width: 620px; }
.hero__badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #eafff4;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.3px;
  padding: 7px 16px;
  border-radius: 50px;
  margin-bottom: 22px;
}
.hero__title { color: var(--white); font-size: clamp(32px, 5vw, 54px); font-weight: 800; }
.hero__subtitle { margin-top: 20px; font-size: 18px; color: #dff3e9; max-width: 540px; }

.hero__benefits { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 12px 24px; }
.hero__benefits li {
  position: relative;
  padding-left: 26px;
  font-weight: 500;
  color: #eafff4;
}
.hero__benefits li::before {
  content: "✓";
  position: absolute; left: 0; top: 0;
  color: var(--green-300);
  font-weight: 800;
}

.hero__cta-row { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 14px; }

.hero__form-card {
  background: var(--white);
  color: var(--text);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow-lg);
}
.form-card__title { font-size: 22px; margin-bottom: 8px; }
.form-card__text { color: var(--muted); font-size: 14px; margin-bottom: 20px; }
.form-card__policy { font-size: 11px; color: var(--muted); text-align: center; margin-top: 4px; }

/* ===================== ФОРМЫ ===================== */
.lead-form { display: flex; flex-direction: column; gap: 12px; }
.input {
  width: 100%;
  font-family: var(--font-body);
  font-size: 15px;
  padding: 13px 16px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg-alt);
  color: var(--ink);
  transition: border-color var(--transition), background var(--transition), box-shadow var(--transition);
}
.input::placeholder { color: #9aa8a1; }
.input:focus {
  outline: none;
  border-color: var(--green-400);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(25, 195, 125, 0.12);
}
.input--area { resize: vertical; min-height: 90px; }
select.input { appearance: none; cursor: pointer; }

.input.is-invalid { border-color: #e05656; background: #fdf0f0; }

.form-status { font-size: 14px; text-align: center; margin-top: 4px; min-height: 1px; }
.form-status.is-ok { color: var(--green-600); font-weight: 600; }
.form-status.is-err { color: #d14343; font-weight: 600; }

/* ===================== ЦИФРЫ ===================== */
.stats { background: var(--green-900); }
.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding: 34px 20px;
}
.stat { text-align: center; color: var(--white); }
.stat__num {
  display: block;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(26px, 4vw, 38px);
  color: var(--green-300);
}
.stat__label { font-size: 14px; color: #cfe6da; }

/* ===================== СЕКЦИИ ===================== */
.section { padding: 84px 0; }
.section--alt { background: var(--bg-alt); }
.section__head { text-align: center; max-width: 720px; margin: 0 auto 50px; }
.section__tag {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--green-600);
  background: rgba(25, 195, 125, 0.12);
  padding: 6px 14px;
  border-radius: 50px;
  margin-bottom: 16px;
}
.section__title { font-size: clamp(26px, 4vw, 38px); font-weight: 800; }
.section__lead { margin-top: 14px; font-size: 17px; color: var(--muted); }

/* ===================== КАРТОЧКИ ПРЕИМУЩЕСТВ ===================== */
.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: 30px 26px;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.card__icon {
  width: 56px; height: 56px;
  display: flex; align-items: center; justify-content: center;
  font-size: 26px;
  background: var(--bg-alt);
  border-radius: 14px;
  margin-bottom: 18px;
}
.card__title { font-size: 19px; margin-bottom: 8px; }
.card__text { color: var(--muted); font-size: 15px; }

/* ===================== НАПРАВЛЕНИЯ ===================== */
.directions { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.direction {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px;
  position: relative;
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}
.direction:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.direction__flag { font-size: 44px; margin-bottom: 16px; }
.direction__title { font-size: 24px; margin-bottom: 12px; }
.direction__text { color: var(--muted); margin-bottom: 18px; }
.direction__list li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 10px;
  color: var(--text);
}
.direction__list li::before {
  content: "→";
  position: absolute; left: 0;
  color: var(--green-500);
  font-weight: 700;
}

/* ===================== ШАГИ ===================== */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.step {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 24px;
  position: relative;
  transition: transform var(--transition), box-shadow var(--transition);
}
.step:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.step__num {
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 20px;
  color: var(--white);
  background: linear-gradient(135deg, var(--green-500), var(--green-700));
  border-radius: 50%;
  margin-bottom: 18px;
}
.step__title { font-size: 18px; margin-bottom: 8px; }
.step__text { color: var(--muted); font-size: 15px; }

/* ===================== ПРИМЕРЫ АВТО ===================== */
.cars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.car-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition), box-shadow var(--transition);
}
.car-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.car-card__img {
  position: relative;
  height: 200px;
  background: linear-gradient(135deg, var(--green-600), var(--green-800));
  overflow: hidden;
}
.car-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.car-card:hover .car-card__img img { transform: scale(1.06); }
.car-card__country {
  position: absolute;
  top: 12px; left: 12px;
  background: rgba(0, 0, 0, 0.35);
  color: var(--white);
  font-size: 13px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 50px;
}
.car-card__body { padding: 22px; display: flex; flex-direction: column; gap: 14px; flex: 1; }
.car-card__title { font-size: 19px; }
.car-card__specs { display: flex; flex-direction: column; gap: 6px; color: var(--muted); font-size: 14px; }
.car-card__specs li { border-bottom: 1px dashed var(--line); padding-bottom: 6px; }
.car-card__specs li:last-child { border-bottom: none; color: var(--green-700); font-weight: 600; }
.car-card .btn { margin-top: auto; }

/* ===================== ОСНОВНАЯ ФОРМА (LEAD) ===================== */
.lead {
  background:
    linear-gradient(120deg, var(--green-800), var(--green-600));
  padding: 80px 0;
}
.lead__inner { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 50px; align-items: center; }
.lead__title { color: var(--white); font-size: clamp(26px, 4vw, 38px); font-weight: 800; }
.lead__subtitle { color: #e2f5ec; margin-top: 16px; font-size: 17px; }
.lead__list { margin-top: 22px; display: flex; flex-direction: column; gap: 10px; }
.lead__list li { position: relative; padding-left: 28px; color: #eafff4; font-weight: 500; }
.lead__list li::before {
  content: "✓"; position: absolute; left: 0;
  color: var(--green-300); font-weight: 800;
}
.lead__form-card { background: var(--white); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow-lg); }

/* ===================== ОТЗЫВЫ ===================== */
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.review {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: transform var(--transition), box-shadow var(--transition);
}
.review:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.review__stars { color: #f5a623; font-size: 18px; letter-spacing: 2px; }
.review__text { color: var(--text); font-style: italic; flex: 1; }
.review__author { display: flex; align-items: center; gap: 12px; }
.review__avatar {
  width: 46px; height: 46px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--white);
  background: linear-gradient(135deg, var(--green-500), var(--green-700));
}
.review__name { display: block; font-weight: 700; color: var(--ink); }
.review__meta { display: block; font-size: 13px; color: var(--muted); }

/* ===================== FAQ ===================== */
.faq { display: flex; flex-direction: column; gap: 14px; }
.faq__item {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.faq__q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  text-align: left;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 16px;
  color: var(--ink);
  background: none;
  border: none;
  padding: 20px 22px;
  cursor: pointer;
}
.faq__icon {
  flex-shrink: 0;
  width: 22px; height: 22px;
  position: relative;
}
.faq__icon::before,
.faq__icon::after {
  content: "";
  position: absolute;
  background: var(--green-600);
  transition: transform var(--transition);
}
.faq__icon::before { top: 10px; left: 0; width: 22px; height: 2px; }
.faq__icon::after { left: 10px; top: 0; width: 2px; height: 22px; }
.faq__item.is-open .faq__icon::after { transform: scaleY(0); }
.faq__a {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition);
}
.faq__a p { padding: 0 22px 20px; color: var(--muted); }

/* ===================== КОНТАКТЫ ===================== */
.contacts { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.contacts__row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.contacts__ico {
  width: 46px; height: 46px;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  background: var(--bg-alt);
  border-radius: 12px;
}
a.contacts__row:hover .contacts__val { color: var(--green-600); }
.contacts__label { display: block; font-size: 13px; color: var(--muted); }
.contacts__val { display: block; font-family: var(--font-head); font-weight: 600; color: var(--ink); }
.contacts__messengers { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.msg-btn {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 14px;
  color: var(--white);
  padding: 11px 22px;
  border-radius: 50px;
  transition: transform var(--transition), opacity var(--transition);
}
.msg-btn:hover { transform: translateY(-2px); opacity: 0.92; }
.msg-btn--tg { background: #29a0db; }
.msg-btn--wa { background: #25d366; }
.contacts__form-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow-sm); }

/* ===================== ПОДВАЛ ===================== */
.footer { background: var(--green-900); color: #c7ddd2; padding-top: 56px; }
.footer__inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
}
.footer__logo { height: 36px; margin-bottom: 16px; filter: brightness(0) invert(1); }
.footer__about { font-size: 14px; max-width: 320px; }
.footer__title { color: var(--white); font-size: 16px; margin-bottom: 16px; }
.footer__link {
  display: block;
  font-size: 14px;
  padding: 5px 0;
  color: #c7ddd2;
  transition: color var(--transition);
}
.footer__link:hover { color: var(--green-300); }
.footer__link--muted { color: #8aa99a; }
.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 20px 0;
  font-size: 13px;
  color: #8aa99a;
}
.footer__bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.footer__bottom-link { color: #8aa99a; transition: color var(--transition); }
.footer__bottom-link:hover { color: var(--green-300); }

.form-card__policy a { color: var(--green-600); text-decoration: underline; }
.form-card__policy a:hover { color: var(--green-700); }

/* ===================== ВНУТРЕННЯЯ СТРАНИЦА / ПОЛИТИКА ===================== */
.page-hero {
  background: linear-gradient(120deg, var(--green-800), var(--green-600));
  color: var(--white);
  padding: 56px 0;
  text-align: center;
}
.page-hero h1 { color: var(--white); font-size: clamp(26px, 4vw, 40px); }
.page-hero p { color: #dff3e9; margin-top: 12px; }

.legal { padding: 64px 0 84px; }
.legal__back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--green-600);
  font-weight: 600;
  margin-bottom: 28px;
}
.legal__back:hover { color: var(--green-700); }
.legal h2 {
  font-size: 22px;
  margin: 34px 0 12px;
}
.legal h2:first-of-type { margin-top: 0; }
.legal p, .legal li { color: var(--text); font-size: 16px; }
.legal p { margin-bottom: 14px; }
.legal ul { margin: 0 0 14px; padding-left: 0; }
.legal ul li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 10px;
}
.legal ul li::before {
  content: "•";
  position: absolute; left: 6px;
  color: var(--green-500);
  font-weight: 700;
}
.legal__updated { color: var(--muted); font-size: 14px; margin-top: 30px; }

/* ===================== ПЛАВАЮЩИЕ КНОПКИ ===================== */
.floats {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 90;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.float {
  width: 54px; height: 54px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 16px;
  color: var(--white);
  box-shadow: var(--shadow);
  transition: transform var(--transition);
}
.float:hover { transform: scale(1.08); }
.float svg { width: 28px; height: 28px; display: block; }
.float--tg { background: #29a0db; }
.float--wa { background: #25d366; }
.float--call { background: var(--green-600); }

/* ===================== АНИМАЦИИ ===================== */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ===================== АДАПТИВ ===================== */
@media (max-width: 1024px) {
  .cars, .cards, .reviews { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .hero__inner { grid-template-columns: 1fr; gap: 36px; }
  .hero__form-card { max-width: 460px; }
  .lead__inner, .contacts { grid-template-columns: 1fr; gap: 30px; }
}

@media (max-width: 768px) {
  .footer__inner { grid-template-columns: 1fr 1fr; gap: 28px; }
}

@media (max-width: 992px) {
  .nav {
    position: fixed;
    top: 86px; right: 0;
    height: calc(100vh - 86px);
    width: 76%;
    max-width: 320px;
    flex-direction: column;
    gap: 0;
    background: var(--white);
    padding: 20px;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity var(--transition), visibility var(--transition);
    overflow-y: auto;
  }
  .nav.is-open { opacity: 1; visibility: visible; pointer-events: auto; }
  .nav__link { padding: 14px 6px; border-bottom: 1px solid var(--line); font-size: 16px; }
  .nav__link::after { display: none; }
  .burger { display: flex; }
  .header__phone { display: none; }
  .header__cta { display: none; }
}

@media (max-width: 600px) {
  .section { padding: 60px 0; }
  .stats__grid { grid-template-columns: repeat(2, 1fr); gap: 24px 12px; }
  .cars, .cards, .reviews, .steps, .directions { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr; gap: 28px; }
  .footer__bottom-inner { justify-content: center; text-align: center; }
  .hero__inner { padding: 60px 20px 70px; }
  .hero__cta-row .btn { width: 100%; }
  .floats { right: 12px; bottom: 12px; }
  .float { width: 48px; height: 48px; }
}
