/* ============ ПЕРЕМЕННЫЕ ============ */
:root {
  --blue-900: #0b3d91;
  --blue-700: #1257c4;
  --blue-500: #2b8aef;
  --blue-400: #4ba3f7;
  --sky-200: #d6eaff;
  --sky-100: #eaf4ff;
  --sky-50:  #f5faff;
  --ink:     #122236;
  --muted:   #5b6b80;
  --white:   #ffffff;
  --radius:  16px;
  --shadow:  0 18px 40px rgba(18, 87, 196, 0.12);
  --shadow-sm: 0 8px 20px rgba(18, 87, 196, 0.10);
  --container: 1180px;
}

/* ============ БАЗА ============ */
* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }

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

/* Скрыто визуально, доступно поисковикам/скринридерам */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ============ КНОПКИ ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 15px;
  border: none;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
  white-space: nowrap;
}
.btn--primary {
  background: linear-gradient(135deg, var(--blue-500), var(--blue-700));
  color: var(--white);
  box-shadow: 0 10px 24px rgba(43, 138, 239, 0.35);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(43, 138, 239, 0.45); }
.btn--ghost {
  background: rgba(255, 255, 255, 0.85);
  color: var(--blue-700);
  border: 1.5px solid rgba(43, 138, 239, 0.4);
  backdrop-filter: blur(6px);
}
.btn--ghost:hover { background: #fff; transform: translateY(-2px); }
.btn--block { width: 100%; }

/* ============ ЗАГОЛОВКИ СЕКЦИЙ ============ */
.section-title {
  font-size: clamp(26px, 4vw, 38px);
  font-weight: 800;
  text-align: center;
  margin-bottom: 44px;
  letter-spacing: -0.02em;
}
.section-title--light { color: var(--white); }
.section-title--left { text-align: left; margin-bottom: 20px; }

/* ============ ШАПКА ============ */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  transition: background .3s ease, box-shadow .3s ease;
  padding: 14px 0;
}
.header.scrolled {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px rgba(18, 87, 196, 0.10);
}
.header__inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
}

.logo {
  font-size: 44px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--white);
  text-shadow: 0 2px 8px rgba(11, 61, 145, 0.4);
  transition: color .3s ease, text-shadow .3s ease;
}
.header.scrolled .logo { color: var(--blue-700); text-shadow: none; }
.logo__dot { color: var(--blue-400); }
.header.scrolled .logo__dot { color: var(--blue-500); }

.header__center {
  grid-column: 2;
  justify-self: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.header__tagline {
  text-align: center;
  font-weight: 800;
  font-size: 16px;
  line-height: 1.3;
  color: #fff;
  background: linear-gradient(135deg, var(--blue-500), var(--blue-700));
  padding: 12px 28px;
  border-radius: 14px;
  box-shadow: 0 10px 26px rgba(43, 138, 239, 0.5);
}
.header__tagline-main { display: block; }
.header__tagline-sub { display: block; color: #cfe6ff; }

/* яркие соц-иконки под текстом */
.header__socials { display: flex; gap: 16px; }
.hsoc {
  width: 54px; height: 54px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.55);
  animation: hsoc-pulse 2.4s ease-in-out infinite;
  transition: transform .2s ease, box-shadow .2s ease;
}
.hsoc svg { width: 32px; height: 32px; }
.hsoc:hover { transform: translateY(-3px) scale(1.12); }
.hsoc--wa { background: #25d366; box-shadow: 0 6px 18px rgba(37, 211, 102, .55); }
.hsoc--ig {
  background: linear-gradient(45deg, #feda75, #fa7e1e, #d62976, #962fbf, #4f5bd5);
  box-shadow: 0 6px 18px rgba(214, 41, 118, .55);
  animation-delay: .6s;
}
@keyframes hsoc-pulse {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-4px); }
}
@media (prefers-reduced-motion: reduce) {
  .hsoc { animation: none; }
}

/* телефон справа */
.header__inner .nav__phone { grid-column: 3; justify-self: end; }

.nav { display: flex; align-items: center; gap: 30px; }
.nav__link {
  font-weight: 600;
  font-size: 15px;
  color: var(--white);
  text-shadow: 0 1px 6px rgba(11, 61, 145, 0.5);
  transition: color .25s ease, text-shadow .3s ease;
}
.header.scrolled .nav__link { color: var(--ink); text-shadow: none; }
.nav__link:hover { color: var(--blue-400); }
.header.scrolled .nav__link:hover { color: var(--blue-500); }
.nav__phone {
  font-weight: 700;
  font-size: 20px;
  color: var(--white);
  background: linear-gradient(135deg, var(--blue-500), var(--blue-700));
  padding: 10px 20px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  box-shadow: 0 8px 18px rgba(43, 138, 239, 0.4);
  transition: transform .18s ease, box-shadow .18s ease;
  animation: phone-beat 1.1s ease-in-out infinite;
}
.nav__phone-ico { width: 19px; height: 19px; transform-origin: center; animation: phone-shake 1.1s ease-in-out infinite; }
.nav__phone:hover { animation-play-state: paused; transform: scale(1.06); box-shadow: 0 12px 28px rgba(43, 138, 239, 0.65); }

@keyframes phone-beat {
  0%, 100% { transform: scale(1);    box-shadow: 0 8px 18px rgba(43, 138, 239, 0.4); }
  8%       { transform: scale(1.07); box-shadow: 0 12px 30px rgba(43, 138, 239, 0.75); }
  16%      { transform: scale(1); }
  24%      { transform: scale(1.07); box-shadow: 0 12px 30px rgba(43, 138, 239, 0.75); }
  32%      { transform: scale(1);    box-shadow: 0 8px 18px rgba(43, 138, 239, 0.4); }
}
@keyframes phone-shake {
  0%, 55%, 100% { transform: rotate(0); }
  60% { transform: rotate(-20deg); }
  65% { transform: rotate(18deg); }
  70% { transform: rotate(-16deg); }
  75% { transform: rotate(14deg); }
  80% { transform: rotate(-10deg); }
  85% { transform: rotate(6deg); }
  90% { transform: rotate(0); }
}
@media (prefers-reduced-motion: reduce) {
  .nav__phone, .nav__phone-ico { animation: none; }
}

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.burger span {
  width: 26px; height: 3px;
  background: var(--white);
  border-radius: 3px;
  transition: .3s;
  box-shadow: 0 1px 4px rgba(11, 61, 145, 0.4);
}
.header.scrolled .burger span { background: var(--blue-700); box-shadow: none; }

/* ============ HERO ============ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: -10% 0 -10% 0;
  background: url('hero-bg.png') center/cover no-repeat;
  will-change: transform;
  z-index: 1;
}
/* очень лёгкое осветление сверху для читаемости меню — фон НЕ затемняем */
.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(to bottom,
    rgba(255, 255, 255, 0.35) 0%,
    rgba(255, 255, 255, 0) 22%);
  pointer-events: none;
}
.hero__content {
  position: relative;
  z-index: 3;
  max-width: 640px;
  margin-top: 60px;
}
.hero__eyebrow {
  display: inline-block;
  background: linear-gradient(135deg, var(--blue-500), var(--blue-700));
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 8px 18px;
  border-radius: 30px;
  margin-bottom: 22px;
  box-shadow: 0 8px 20px rgba(43, 138, 239, 0.4);
}
.hero__title {
  font-size: clamp(34px, 6vw, 60px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--blue-900);
  text-shadow: 0 2px 18px rgba(255, 255, 255, 0.6);
}
.hero__title span { color: var(--blue-500); }
.hero__text {
  margin: 22px 0 32px;
  font-size: 18px;
  font-weight: 500;
  color: var(--ink);
  max-width: 520px;
  background: rgba(255, 255, 255, 0.55);
  padding: 14px 18px;
  border-radius: 12px;
  backdrop-filter: blur(4px);
}
.hero__actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* ============ ПЛАВАЮЩИЕ КНОПКИ ============ */
.floats {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 60;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.float {
  width: 56px; height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
  transition: transform .2s ease;
}
.float:hover { transform: scale(1.08); }
.float svg { width: 28px; height: 28px; }
.float--wa { background: #25d366; }
.float--phone { background: linear-gradient(135deg, var(--blue-500), var(--blue-700)); }

/* ============ ПРЕИМУЩЕСТВА ============ */
.advantages {
  position: relative;
  padding: 90px 0;
  background: linear-gradient(160deg, var(--blue-700) 0%, var(--blue-900) 100%);
  overflow: hidden;
}
.advantages::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(255,255,255,.06) 0, transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(255,255,255,.06) 0, transparent 40%);
  pointer-events: none;
}
.adv-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
  max-width: 920px;
  margin: 0 auto;
}
.adv-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  padding: 30px 26px;
  display: flex;
  align-items: center;
  gap: 18px;
  backdrop-filter: blur(6px);
  transition: transform .2s ease, background .2s ease;
}
.adv-card:hover { transform: translateY(-4px); background: rgba(255, 255, 255, 0.14); }
.adv-card__icon {
  font-size: 30px;
  flex-shrink: 0;
  width: 56px; height: 56px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255, 255, 255, 0.14);
  border-radius: 14px;
}
.adv-card__text { color: #eaf4ff; font-size: 15.5px; font-weight: 500; }
.adv-card__text b { color: #fff; font-weight: 700; }

/* ============ ПАРК ТЕХНИКИ ============ */
.fleet {
  padding: 90px 0;
  background: var(--sky-50);
}
.fleet-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  max-width: 820px;
  margin-inline: auto;
}
.fleet-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease;
}
.fleet-card:hover { transform: translateY(-5px); box-shadow: 0 24px 48px rgba(18, 87, 196, 0.18); }
.fleet-card__media {
  background: linear-gradient(135deg, var(--sky-100), var(--sky-200));
}
/* фото в натуральных пропорциях, без обрезки — блок принимает размер фото */
.fleet-card__img {
  display: block;
  width: 100%;
  height: auto;
}
.fleet-card__placeholder {
  color: var(--blue-500);
  font-weight: 600;
  font-size: 14px;
  opacity: .65;
}
.fleet-card__body {
  flex: 1;
  padding: 26px 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
}
.fleet-card__specs { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.fleet-card__specs li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  font-size: 16px;
  color: var(--ink);
}
.spec-ico {
  width: 36px; height: 36px;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: var(--sky-100);
  border-radius: 10px;
  font-size: 18px;
}

/* ============ ЗАКАЗ ============ */
.order {
  padding: 90px 0;
  background: linear-gradient(160deg, var(--sky-100), var(--white));
}
.order__inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 50px;
  align-items: center;
}
.order__text {
  color: var(--muted);
  font-size: 16.5px;
  margin-bottom: 30px;
  max-width: 520px;
}
.order-form { display: grid; gap: 14px; max-width: 460px; }
.order-form__field {
  padding: 15px 18px;
  border: 1.5px solid var(--sky-200);
  border-radius: 12px;
  font-size: 15px;
  font-family: inherit;
  background: #fff;
  transition: border .2s ease, box-shadow .2s ease;
}
.order-form__field:focus {
  outline: none;
  border-color: var(--blue-500);
  box-shadow: 0 0 0 4px rgba(43, 138, 239, 0.12);
}
.order-form__submit { margin-top: 4px; }
.order-form__consent {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--muted);
  cursor: pointer;
}
.order-form__consent input { width: 17px; height: 17px; accent-color: var(--blue-500); flex-shrink: 0; }
.order-form__status { font-size: 14px; font-weight: 600; color: #1aaf5d; min-height: 18px; }

.order__image-inner {
  border-radius: var(--radius);
  min-height: 340px;
  background: url('callback.jpg') center/cover no-repeat;
  box-shadow: var(--shadow);
}

/* ============ ФУТЕР ============ */
.footer {
  background: linear-gradient(160deg, var(--blue-900), #072a66);
  color: #cfe2ff;
  padding: 56px 0 36px;
}
.footer__inner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  align-items: start;
}
.logo--footer { color: #fff; font-size: 26px; }
.footer__tagline { margin-top: 8px; font-size: 14px; color: #9bbbe8; }
.footer__phone { font-size: 24px; font-weight: 800; color: #fff; }
.footer__note { font-size: 13px; color: #9bbbe8; margin: 4px 0 12px; }
.footer__email { font-size: 15px; font-weight: 600; color: var(--blue-400); }
.footer__col:last-child { display: flex; flex-direction: column; align-items: flex-end; gap: 16px; }
.footer__socials { display: flex; gap: 12px; }
.soc {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.10);
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  transition: background .2s ease, transform .2s ease;
}
.soc:hover { background: var(--blue-500); transform: translateY(-3px); }
.soc svg { width: 22px; height: 22px; }
.footer__copy { font-size: 13px; color: #7fa3d8; }

/* ============ АНИМАЦИЯ ПОЯВЛЕНИЯ ============ */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ============ АДАПТИВ ============ */
@media (max-width: 980px) {
  .adv-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .nav {
    position: fixed;
    top: 0; right: -100%;
    width: min(80vw, 320px);
    height: 100vh;
    flex-direction: column;
    justify-content: center;
    gap: 26px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    box-shadow: -10px 0 40px rgba(11, 61, 145, 0.18);
    transition: right .35s ease;
  }
  .nav.open { right: 0; }
  .nav__link { color: var(--ink); text-shadow: none; font-size: 18px; }
  .burger { display: flex; z-index: 70; }
  .burger.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .burger.open span:nth-child(2) { opacity: 0; }
  .burger.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
  .burger.open span { background: var(--blue-700); box-shadow: none; }

  .fleet-grid { grid-template-columns: 1fr; max-width: 420px; }
  .order__inner { grid-template-columns: 1fr; gap: 34px; }
  .order__image { order: -1; }
  .order__image-inner { min-height: 240px; }
}
@media (max-width: 920px) {
  .header { padding: clamp(8px, 2.2vw, 14px) 0; }
  .header__inner {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    column-gap: clamp(6px, 1.8vw, 18px);
  }
  .logo { flex: 0 0 auto; font-size: clamp(15px, 4.2vw, 30px); }
  .header__center {
    flex: 1 1 auto;
    min-width: 0;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: clamp(5px, 1.5vw, 10px);
  }
  .header__tagline {
    font-size: clamp(8.5px, 2.2vw, 15px);
    padding: clamp(4px, 1.2vw, 11px) clamp(7px, 2vw, 22px);
    border-radius: clamp(8px, 1.8vw, 14px);
    line-height: 1.2;
  }
  .header__socials { flex: 0 0 auto; gap: clamp(7px, 2vw, 16px); }
  .hsoc { width: clamp(28px, 7.5vw, 52px); height: clamp(28px, 7.5vw, 52px); }
  .hsoc svg { width: clamp(16px, 4.3vw, 30px); height: clamp(16px, 4.3vw, 30px); }
  .header__inner .nav__phone {
    flex: 0 0 auto;
    grid-column: auto;
    justify-self: auto;
    font-size: clamp(10px, 2.8vw, 17px);
    padding: clamp(5px, 1.4vw, 10px) clamp(7px, 2vw, 18px);
    gap: clamp(3px, 1vw, 8px);
  }
  .nav__phone-ico { width: clamp(11px, 2.8vw, 18px); height: clamp(11px, 2.8vw, 18px); }
}
/* мобильный hero: показываем машину целиком по ширине */
@media (max-width: 768px) {
  .hero {
    min-height: 0;
    aspect-ratio: 1672 / 941;
  }
  .hero__bg {
    inset: 0;
    transform: none !important;
    background-size: contain;
    background-position: center;
    background-color: #cfe7ff;
  }
  .hero__overlay { display: none; }
}
@media (max-width: 560px) {
  .container { padding: 0 16px; }

  /* отдельное вертикальное фото для телефонов (skytruck.png 941x1672),
     показываем только нижнюю половину */
  .hero { aspect-ratio: 941 / 1210; }
  .hero__bg {
    background-image: url('skytruck.png');
    background-size: cover;
    background-position: bottom center;
  }

  .adv-grid { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr; gap: 28px; text-align: center; }
  .footer__col:last-child { align-items: center; }
  .hero__content { margin-top: 80px; }
  .hero__actions .btn { flex: 1; }
}
