/* =========================================================
   TripScan — лендинг
   Палитра снята с auth-register.jpg:
   светлая кнопка #D1E4F5 · основной синий #76ADE5 · текст #297FD5
   ========================================================= */

:root {
  --blue: #76ade5;
  --blue-hover: #63a0de;
  --blue-light: #d1e4f5;
  --blue-light-hover: #c1daf3;
  --link: #297fd5;
  --ink: #16233b;
  --muted: #5d6d87;
  --line: #e3edf9;
  --soft: #f4f9ff;
  --white: #ffffff;

  --radius: 16px;
  --radius-lg: 24px;
  --shadow: 0 18px 45px rgba(41, 127, 213, 0.14);
  --shadow-soft: 0 10px 30px rgba(41, 127, 213, 0.10);

  --font: "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

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

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

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

/* ---------- Кнопки (стиль auth-register) ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 26px;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.2px;
  white-space: nowrap;
  cursor: pointer;
  border: none;
  transition: transform .2s ease, background-color .2s ease, box-shadow .2s ease;
}

.btn--light {
  background: var(--blue-light);
  color: var(--link);
}
.btn--light:hover {
  background: var(--blue-light-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
}

.btn--primary {
  background: var(--blue);
  color: var(--white);
}
.btn--primary:hover {
  background: var(--blue-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.btn--lg {
  padding: 16px 34px;
  font-size: 17px;
  border-radius: 18px;
}

/* ---------- Header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .25s ease, border-color .25s ease;
}
.header.is-scrolled {
  box-shadow: 0 6px 24px rgba(22, 35, 59, .07);
  border-color: var(--line);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 0;
}

.logo img { height: 34px; width: auto; }

.nav {
  display: flex;
  align-items: center;
  gap: 12px;
}

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 44px;
  height: 40px;
  align-items: center;
  justify-content: center;
  background: var(--blue-light);
  border: none;
  border-radius: 12px;
  cursor: pointer;
}
.burger span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--link);
  border-radius: 2px;
  transition: transform .25s ease, opacity .2s ease;
}
.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;
  overflow: hidden;
  background:
    radial-gradient(900px 420px at 8% -10%, rgba(118, 173, 229, .30), transparent 60%),
    radial-gradient(700px 400px at 95% 10%, rgba(209, 228, 245, .85), transparent 65%),
    var(--white);
  padding: 70px 0 80px;
}

.hero__inner {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 48px;
  align-items: center;
}

.badge {
  display: inline-block;
  background: var(--blue-light);
  color: var(--link);
  font-size: 13px;
  font-weight: 600;
  padding: 7px 16px;
  border-radius: 999px;
  margin-bottom: 20px;
}

.hero h1 {
  font-size: clamp(32px, 4.4vw, 54px);
  line-height: 1.12;
  letter-spacing: -0.5px;
  margin-bottom: 18px;
}
.hero h1 .accent { color: var(--link); }

.hero__lead {
  font-size: 18px;
  color: var(--muted);
  max-width: 540px;
  margin-bottom: 30px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 30px;
}
.hero__actions--center { justify-content: center; }

.hero__points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  list-style: none;
  color: var(--muted);
  font-size: 15px;
}
.hero__points li {
  position: relative;
  padding-left: 26px;
}
.hero__points li::before {
  content: "";
  position: absolute;
  left: 0; top: 4px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--blue-light) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23297FD5' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>") center/12px no-repeat;
}

.visual-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 14px;
  overflow: hidden;
}
.visual-card img { border-radius: 14px; width: 100%; }

/* ---------- Секции ---------- */
.section { padding: 84px 0; }
.section--soft {
  background: linear-gradient(180deg, var(--soft), var(--white));
}

.section__head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 46px;
}
.section__head h2 {
  font-size: clamp(26px, 3.2vw, 38px);
  letter-spacing: -0.4px;
  margin-bottom: 10px;
}
.section__head p { color: var(--muted); font-size: 17px; }

.grid { display: grid; gap: 22px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 30px 26px;
  box-shadow: var(--shadow-soft);
  transition: transform .25s ease, box-shadow .25s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }

.card__icon,
.mini__icon {
  width: 54px; height: 54px;
  display: grid; place-items: center;
  background: var(--blue-light);
  color: var(--link);
  border-radius: 16px;
  margin-bottom: 18px;
}
.card__icon svg, .mini__icon svg { width: 26px; height: 26px; }

.card h3 { font-size: 20px; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 15.5px; }

.mini {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 26px 22px;
  text-align: left;
  box-shadow: var(--shadow-soft);
  transition: transform .25s ease, box-shadow .25s ease;
}
.mini:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.mini h3 { font-size: 17px; margin-bottom: 6px; }
.mini p { color: var(--muted); font-size: 14.5px; }

/* ---------- Split (покупки) ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}
.split__text h2 {
  font-size: clamp(26px, 3vw, 36px);
  letter-spacing: -0.4px;
  margin-bottom: 16px;
}
.split__text p { color: var(--muted); font-size: 17px; margin-bottom: 22px; }

.ticks { list-style: none; margin-bottom: 28px; }
.ticks li {
  position: relative;
  padding: 8px 0 8px 32px;
  color: var(--ink);
}
.ticks li::before {
  content: "";
  position: absolute;
  left: 0; top: 12px;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--blue) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>") center/12px no-repeat;
}

/* ---------- CTA ---------- */
.cta {
  padding: 70px 0;
  background:
    radial-gradient(700px 300px at 20% 0%, rgba(118, 173, 229, .35), transparent 65%),
    var(--soft);
}
.cta__inner {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: var(--shadow);
  text-align: center;
  padding: 54px 32px;
}
.cta__inner h2 {
  font-size: clamp(24px, 3vw, 34px);
  letter-spacing: -0.4px;
  margin-bottom: 10px;
}
.cta__inner p { color: var(--muted); margin-bottom: 28px; font-size: 17px; }

/* ---------- Чипы ключей ---------- */
.chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}
.chip {
  background: var(--blue-light);
  color: var(--link);
  font-weight: 600;
  font-size: 15px;
  padding: 10px 22px;
  border-radius: 999px;
  transition: transform .2s ease, background-color .2s ease, box-shadow .2s ease;
}
.chip:hover {
  background: var(--blue);
  color: var(--white);
  transform: translateY(-3px);
  box-shadow: var(--shadow-soft);
}

.chip--tag {
  background: var(--white);
  color: var(--muted);
  border: 1px solid var(--line);
  font-weight: 500;
}
.chip--tag:hover {
  background: var(--blue-light);
  color: var(--link);
  border-color: var(--blue-light);
  transform: none;
  box-shadow: none;
}

/* ---------- Группы ключей ---------- */
.keygroups {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.keygroup {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  padding: 24px;
}

.keygroup h3 {
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: .6px;
  color: var(--link);
  margin-bottom: 16px;
}

.keygroup .chips {
  justify-content: flex-start;
}

/* ---------- Тематические ключи в герое ---------- */
.hotkeys {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 24px;
  font-size: 13.5px;
  color: var(--muted);
}
.hotkeys__label {
  font-weight: 700;
  color: var(--ink);
  margin-right: 2px;
}
.hotkeys span:not(.hotkeys__label) {
  background: rgba(255, 255, 255, .75);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 12px;
}

/* ---------- Footer ---------- */
.footer {
  background: var(--white);
  border-top: 1px solid var(--line);
  padding: 46px 0 26px;
}
.footer__inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 24px;
  align-items: start;
  padding-bottom: 26px;
}
.footer__brand img { height: 30px; margin-bottom: 12px; }
.footer__brand p { color: var(--muted); font-size: 15px; }

.footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 26px;
  justify-content: flex-end;
  align-items: center;
}
.footer__nav a {
  color: var(--link);
  font-weight: 600;
  font-size: 15px;
  transition: opacity .2s ease;
}
.footer__nav a:hover { opacity: .7; }

.footer__keywords {
  grid-column: 1 / -1;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 18px;
  color: var(--muted);
  font-size: 14px;
  text-align: center;
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  justify-content: space-between;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13.5px;
}

/* ---------- Появление ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s ease, transform .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: 980px) {
  .hero { padding: 48px 0 60px; }
  .hero__inner,
  .split { grid-template-columns: 1fr; gap: 36px; }
  .hero__visual { order: -1; }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: 1fr; }
  .keygroups { grid-template-columns: 1fr; }
  .section { padding: 60px 0; }
  .footer__inner { grid-template-columns: 1fr; }
  .footer__nav { justify-content: flex-start; }
}

@media (max-width: 760px) {
  .burger { display: flex; }

  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 30px rgba(22, 35, 59, .10);
    padding: 16px 20px 22px;
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav .btn { width: 100%; padding: 14px 20px; font-size: 16px; }

  .header { position: sticky; }
  .header__inner { position: relative; }

  .hero__actions .btn { flex: 1 1 auto; }
  .cta__inner { padding: 38px 20px; }
}

@media (max-width: 520px) {
  .grid--4 { grid-template-columns: 1fr; }
  .container { width: min(1180px, 100% - 28px); }
  .hero h1 { font-size: 30px; }
  .hero__actions { gap: 10px; }
}
