/* ===== Автопеленг — modern redesign ===== */

:root {
  --bg: #ffffff;
  --bg-soft: #f4f7fb;
  --dark: #0b1526;
  --dark-2: #0e1b30;
  --text: #17233b;
  --text-muted: #5b6b84;
  --text-inverse: #eef3fb;
  --accent: #f59e0b;
  --accent-hover: #e08e00;
  --blue: #2563eb;
  --cyan: #06b6d4;
  --line: #e3e9f2;
  --radius: 18px;
  --shadow: 0 12px 40px rgba(15, 35, 70, .10);
  --font: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container {
  width: min(1140px, 100% - 48px);
  margin-inline: auto;
}

.gradient-text {
  background: linear-gradient(92deg, #5ea2ff, #22d3ee);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 30px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 16px;
  line-height: 1;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
  cursor: pointer;
  white-space: nowrap;
}
.btn--accent {
  background: linear-gradient(135deg, var(--accent), #fbbf24);
  color: #201200;
  box-shadow: 0 8px 24px rgba(245, 158, 11, .35);
}
.btn--accent:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(245, 158, 11, .45); }
.btn--ghost {
  color: var(--text-inverse);
  border: 1.5px solid rgba(255, 255, 255, .28);
  background: rgba(255, 255, 255, .05);
  backdrop-filter: blur(6px);
}
.btn--ghost:hover { background: rgba(255, 255, 255, .12); }
.btn--sm { padding: 11px 20px; font-size: 14.5px; }
.btn--lg { padding: 18px 38px; font-size: 17px; }

/* ===== Header ===== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 14px 0;
  background: rgba(11, 21, 38, .82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, .07);
  transition: box-shadow .25s ease;
}
.header.is-scrolled { box-shadow: 0 10px 30px rgba(4, 10, 20, .35); }

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo { display: inline-flex; align-items: center; gap: 11px; }
.logo__mark {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  box-shadow: 0 6px 18px rgba(37, 99, 235, .4);
}
.logo__mark svg { width: 22px; height: 22px; }
.logo__text {
  font-size: 21px;
  font-weight: 800;
  letter-spacing: .2px;
  color: #fff;
}
.logo__text span { color: var(--accent); }

.nav { display: flex; align-items: center; gap: 28px; }
.nav__link {
  color: rgba(238, 243, 251, .82);
  font-weight: 600;
  font-size: 15px;
  transition: color .2s ease;
}
.nav__link:hover { color: #fff; }
.nav__cta { margin-left: 6px; }

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  padding: 8px;
  cursor: pointer;
}
.burger span {
  width: 24px; height: 2.5px;
  border-radius: 2px;
  background: #fff;
  transition: transform .25s ease, opacity .25s ease;
}
.burger.is-open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ===== Hero ===== */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(900px 500px at 85% -10%, rgba(37, 99, 235, .35), transparent 60%),
    radial-gradient(700px 420px at 5% 110%, rgba(6, 182, 212, .22), transparent 60%),
    linear-gradient(180deg, var(--dark) 0%, var(--dark-2) 100%);
  color: var(--text-inverse);
  padding: 104px 0 96px;
}
.hero__bg { position: absolute; inset: 0; pointer-events: none; }
.hero__grid { width: 100%; height: 100%; opacity: .8; }
.hero__glow { position: absolute; border-radius: 50%; filter: blur(90px); }
.hero__glow--1 { width: 420px; height: 420px; right: -80px; top: -120px; background: rgba(59, 130, 246, .28); }
.hero__glow--2 { width: 360px; height: 360px; left: -120px; bottom: -140px; background: rgba(34, 211, 238, .16); }

.hero__inner { position: relative; max-width: 780px; }
.hero__tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .16);
  background: rgba(255, 255, 255, .06);
  font-size: 14px;
  font-weight: 600;
  color: rgba(238, 243, 251, .9);
  margin-bottom: 26px;
}
.hero__title {
  font-size: clamp(34px, 5.2vw, 58px);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -.02em;
  margin-bottom: 22px;
}
.hero__subtitle {
  font-size: clamp(16px, 2vw, 19px);
  color: rgba(238, 243, 251, .75);
  max-width: 620px;
  margin-bottom: 36px;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 52px; }

.hero__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  max-width: 640px;
}
.stat {
  padding: 18px 22px;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, .12);
  background: rgba(255, 255, 255, .055);
  backdrop-filter: blur(8px);
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.stat__value {
  font-size: clamp(19px, 2.4vw, 25px);
  font-weight: 800;
  background: linear-gradient(92deg, #7db2ff, #3ee0f5);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat__label { font-size: 13.5px; color: rgba(238, 243, 251, .66); line-height: 1.35; }

/* ===== Sections ===== */
.section { padding: 96px 0; }
.section--dark {
  background:
    radial-gradient(800px 460px at 110% 20%, rgba(37, 99, 235, .25), transparent 60%),
    linear-gradient(180deg, var(--dark) 0%, #122441 100%);
  color: var(--text-inverse);
}
.section__head { max-width: 640px; margin-bottom: 52px; }
.section--dark .section__head { margin-bottom: 0; }
.section__eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 12px;
}
.section--dark .section__eyebrow { color: #5ea2ff; }
.section__title {
  font-size: clamp(27px, 3.6vw, 40px);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -.015em;
  margin-bottom: 14px;
}
.section__subtitle { font-size: 16.5px; color: var(--text-muted); }
.section--dark .section__subtitle { color: rgba(238, 243, 251, .72); }

/* ===== Service cards ===== */
.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}
.card {
  display: flex;
  flex-direction: column;
  padding: 30px 28px;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 4px 18px rgba(15, 35, 70, .05);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: rgba(37, 99, 235, .35);
}
.card__icon {
  width: 54px; height: 54px;
  display: grid; place-items: center;
  border-radius: 15px;
  margin-bottom: 20px;
}
.card__icon svg { width: 27px; height: 27px; }
.card__icon--blue  { color: #2563eb; background: rgba(37, 99, 235, .1); }
.card__icon--cyan  { color: #0891b2; background: rgba(6, 182, 212, .12); }
.card__icon--amber { color: #d97706; background: rgba(245, 158, 11, .14); }

.card__title { font-size: 19px; font-weight: 800; margin-bottom: 8px; letter-spacing: -.01em; }
.card__text { font-size: 15px; color: var(--text-muted); margin-bottom: 20px; flex-grow: 1; }
.card__badge {
  align-self: flex-start;
  font-size: 13px;
  font-weight: 700;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  color: #33456b;
}

/* Контрастная плашка-акция на карточке */
.card--flag { position: relative; }
.card__flag {
  position: absolute;
  top: 20px;
  right: 20px;
  padding: 9px 16px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), #fbbf24);
  color: #201200;
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
  box-shadow: 0 6px 18px rgba(245, 158, 11, .4);
}

/* ===== Info section ===== */
.info {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 64px;
  align-items: center;
}
.checklist { display: flex; flex-direction: column; gap: 14px; margin: 28px 0 34px; }
.checklist li { display: flex; align-items: center; gap: 14px; font-size: 17px; }
.checklist svg {
  flex-shrink: 0;
  width: 26px; height: 26px;
  padding: 6px;
  border-radius: 50%;
  color: #34d399;
  background: rgba(52, 211, 153, .15);
}

.warning {
  display: flex;
  gap: 16px;
  padding: 20px 22px;
  border-radius: var(--radius);
  border: 1px solid rgba(245, 158, 11, .4);
  background: rgba(245, 158, 11, .1);
  margin-bottom: 34px;
}
.warning svg { flex-shrink: 0; color: var(--accent); margin-top: 2px; }
.warning p { font-size: 15px; color: rgba(238, 243, 251, .85); line-height: 1.55; }

/* Stylized tachograph */
.info__visual { position: relative; display: grid; place-items: center; }
.tach-svg {
  width: min(330px, 100%);
  height: auto;
  filter: drop-shadow(0 30px 60px rgba(2, 8, 20, .55));
}
.tach-glow {
  position: absolute;
  width: 260px; height: 260px;
  border-radius: 50%;
  background: rgba(34, 211, 238, .18);
  filter: blur(70px);
  z-index: -1;
}

/* ===== ASN decrees ===== */
.section--soft { background: var(--bg-soft); }

.decrees {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}
.decree {
  display: flex;
  flex-direction: column;
  padding: 30px 28px;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 4px 18px rgba(15, 35, 70, .05);
  transition: transform .25s ease, box-shadow .25s ease;
}
.decree:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.decree__tag {
  align-self: flex-start;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  color: var(--blue);
  background: rgba(37, 99, 235, .1);
  margin-bottom: 16px;
}
.decree__tag--green { color: #059669; background: rgba(16, 185, 129, .12); }
.decree__title {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -.01em;
  margin-bottom: 10px;
}
.decree__text {
  font-size: 15px;
  color: var(--text-muted);
  margin-bottom: 18px;
}
.decree__facts {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.decree__facts li {
  position: relative;
  padding-left: 24px;
  font-size: 14.5px;
  color: var(--text-muted);
}
.decree__facts li strong { color: var(--text); }
.decree__facts li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: rgba(37, 99, 235, .12);
  box-shadow: inset 0 0 0 2px rgba(37, 99, 235, .45);
}

.note {
  display: flex;
  gap: 16px;
  margin-top: 22px;
  padding: 20px 22px;
  border-radius: var(--radius);
  border: 1px solid rgba(37, 99, 235, .25);
  background: rgba(37, 99, 235, .06);
}
.note svg { flex-shrink: 0; color: var(--blue); margin-top: 2px; }
.note p { font-size: 15px; color: var(--text-muted); line-height: 1.55; }

.asn-cta { margin-top: 28px; }

/* ===== Features ===== */
.features {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}
.feature {
  padding: 28px 26px;
  border-radius: var(--radius);
  background: var(--bg-soft);
  border: 1px solid var(--line);
  transition: transform .25s ease, box-shadow .25s ease;
}
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.feature__num {
  display: inline-block;
  font-size: 14px;
  font-weight: 800;
  color: transparent;
  -webkit-text-stroke: 1px rgba(37, 99, 235, .55);
  margin-bottom: 14px;
}
.feature__title { font-size: 17.5px; font-weight: 800; margin-bottom: 7px; }
.feature__text { font-size: 14.5px; color: var(--text-muted); }

/* ===== CTA ===== */
.cta {
  background:
    radial-gradient(640px 300px at 20% 0%, rgba(37, 99, 235, .5), transparent 65%),
    radial-gradient(640px 300px at 90% 120%, rgba(6, 182, 212, .4), transparent 65%),
    linear-gradient(135deg, #0e1b30, #14305c);
  color: var(--text-inverse);
  padding: 84px 0;
}
.cta__inner {
  max-width: 620px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}
.cta__title { font-size: clamp(26px, 3.4vw, 36px); font-weight: 800; letter-spacing: -.015em; }
.cta__text { font-size: 16.5px; color: rgba(238, 243, 251, .78); margin-bottom: 8px; }

/* ===== Contacts ===== */
.contacts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}
.contact {
  padding: 30px 28px;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 4px 18px rgba(15, 35, 70, .05);
}
.contact .card__icon { margin-bottom: 16px; }
.contact__title { font-size: 17.5px; font-weight: 800; margin-bottom: 6px; }
.contact__text { font-size: 15px; color: var(--text-muted); margin-bottom: 12px; }
.contact__phone { font-size: 24px; font-weight: 800; color: var(--text); }
.contact__link {
  font-size: 14px;
  font-weight: 700;
  color: var(--blue);
  transition: color .2s ease;
}
.contact__link:hover { color: var(--cyan); }

/* ===== Footer ===== */
.footer {
  background: var(--dark);
  color: rgba(238, 243, 251, .75);
  padding: 56px 0 0;
  font-size: 14.5px;
}
.footer__inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.logo__text--footer { font-size: 20px; }
.footer__brand p { margin-top: 12px; max-width: 280px; line-height: 1.55; }
.footer__nav { display: flex; flex-direction: column; gap: 10px; }
.footer__nav a { transition: color .2s ease; }
.footer__nav a:hover { color: #fff; }
.footer__contacts { display: flex; flex-direction: column; gap: 10px; }
.footer__contacts a { font-weight: 700; color: #fff; }
.footer__bottom {
  display: flex;
  justify-content: center;
  padding: 22px 0;
  font-size: 13px;
  color: rgba(238, 243, 251, .45);
}

/* ===== Reveal animation ===== */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ===== Responsive ===== */
@media (max-width: 960px) {
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .info { grid-template-columns: 1fr; gap: 48px; }
  .info__visual { order: -1; }
  .contacts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .decrees { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .section { padding: 68px 0; }
  .hero { padding: 72px 0 64px; }
  .hero__stats { grid-template-columns: 1fr; max-width: 420px; }
  .cards, .features, .contacts { grid-template-columns: 1fr; }

  .burger { display: flex; }
  .nav {
    position: fixed;
    top: 69px;
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: rgba(11, 21, 38, .98);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    padding: 10px 24px 22px;
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: transform .25s ease, opacity .25s ease, visibility .25s;
  }
  .nav.is-open { transform: none; opacity: 1; visibility: visible; }
  .nav__link { padding: 14px 0; font-size: 16.5px; border-bottom: 1px solid rgba(255, 255, 255, .07); }
  .nav__cta { margin: 18px 0 0; justify-content: center; }
  .footer__inner { grid-template-columns: 1fr; gap: 28px; }
}
