/* =========================================================
   FRONTIER — стили сайта
   Цвета, шрифты и отступы задаются переменными ниже —
   поменяй здесь, и изменится везде.
   ========================================================= */

@font-face {
  font-family: "Bebas Neue";
  src: url("../fonts/bebas-neue.woff") format("woff");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Roboto";
  src: url("../fonts/roboto-cyrillic.woff2") format("woff2");
  font-weight: 300 700;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Roboto";
  src: url("../fonts/roboto-latin.woff2") format("woff2");
  font-weight: 300 700;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #000;
  --card: #212121;
  --accent: #beff3d;
  --text: #fff;
  --muted: #9b9b9b;
  --line: rgba(255, 255, 255, .85);

  --font-head: "Bebas Neue", "Arial Narrow", Arial, sans-serif;
  --font-text: "Roboto", Arial, sans-serif;

  --container: 960px;
  --gutter: 20px;
  --section: clamp(64px, 9vw, 120px);
  --radius: 40px;
}

/* ---------- база ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 500 18px/1.35 var(--font-text);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }

.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.accent { color: var(--accent); }
.center { text-align: center; }

/* ---------- заголовки ---------- */
.h1, .h2 {
  font-family: var(--font-head);
  font-weight: 400;
  text-transform: uppercase;
  line-height: 1.1;
  letter-spacing: .5px;
}
.h1 { font-size: clamp(44px, 6.6vw, 74px); max-width: 12.5em; }
.h2 { font-size: clamp(40px, 5.6vw, 72px); }
.h2--md { font-size: clamp(34px, 4.4vw, 52px); }
.h2--xl { font-size: clamp(44px, 6.6vw, 86px); line-height: 1.05; }

/* ---------- кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  background: var(--accent); color: #000;
  font: 700 16px/1 var(--font-text);
  text-decoration: none; border-radius: 10px;
  padding: 16px 28px;
  transition: transform .15s ease, filter .15s ease;
}
.btn:hover { filter: brightness(1.08); transform: translateY(-1px); }
.btn--sm { font-size: 14px; padding: 11px 24px; border-radius: 30px; }
.btn--lg { font-size: 22px; padding: 28px 42px; }
.btn--xl { font-size: 28px; padding: 34px 40px; border-radius: 8px; }
.btn--xl img { width: 26px; }

/* ---------- карточки ---------- */
.card { background: var(--card); border-radius: var(--radius); }

/* ---------- шапка ---------- */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  background: var(--bg);
}
.header__inner { display: flex; align-items: center; height: 86px; gap: 22px; }
.logo { font-size: 22px; font-weight: 500; letter-spacing: 2px; text-decoration: none; margin-right: auto; }
.nav { display: flex; gap: 22px; font-size: 14px; }
.nav a { text-decoration: none; opacity: .95; }
.nav a:hover { color: var(--accent); }
.burger { display: none; }

main { padding-top: 86px; }

/* ---------- первый экран ---------- */
.hero { padding: 40px 0 var(--section); }
.hero__sub { font-size: clamp(22px, 3vw, 36px); margin-top: 14px; }
.tags { display: flex; flex-wrap: wrap; gap: 10px 14px; margin-top: 16px; }
.tags li {
  color: var(--accent); font-size: clamp(18px, 2.2vw, 28px); font-weight: 400;
  border: 1.5px solid var(--accent); border-radius: 40px; padding: 0 16px; line-height: 1.3;
}
.hero__lead { font-size: clamp(16px, 1.8vw, 22px); max-width: 720px; margin-top: 30px; line-height: 1.5; }
.hero__cta { display: flex; align-items: center; flex-wrap: wrap; gap: 28px; margin-top: 36px; }
.social-proof { display: flex; align-items: center; gap: 22px; }
.social-proof img { width: 336px; }
.social-proof p { font-size: 14px; font-weight: 700; max-width: 260px; }

/* ---------- рынок ---------- */
.market { padding-bottom: var(--section); }
.illustration {
  display: grid; grid-template-columns: 1fr minmax(0, 436px) 1fr;
  align-items: center; gap: 20px; margin-top: 24px;
}
.illustration--sm { grid-template-columns: 1fr minmax(0, 353px) 1fr; }
.illustration__col { display: flex; flex-direction: column; justify-content: space-around; align-self: stretch; gap: 40px; }
.illustration__col:first-child { align-items: flex-start; }
.illustration__col:last-child { align-items: flex-end; text-align: left; }
.illustration:not(.illustration--sm) .illustration__col:last-child { justify-content: flex-start; padding-top: 10px; }
.illustration:not(.illustration--sm) .illustration__col:first-child { justify-content: space-between; padding: 0 0 30px; }
.label { color: var(--accent); font-size: clamp(16px, 3vw, 36px); line-height: 1.2; max-width: 7em; }
.illustration__img { margin: 0 auto; }
.arrow-down + .h2 { max-width: 8.5em; margin: 0 auto; }

.arrow-down { width: 2px; height: 180px; margin: 30px auto 50px; background: #fff; position: relative; }
.arrow-down::after {
  content: ""; position: absolute; left: 50%; bottom: 0; width: 22px; height: 22px;
  border-right: 2px solid #fff; border-bottom: 2px solid #fff;
  transform: translate(-50%, 0) rotate(45deg); transform-origin: center;
}

.wave { margin: 0 auto -40px; width: min(608px, 100%); position: relative; z-index: 1; }
.pain { padding: 74px 62px 54px; }
.pain__title { font-size: clamp(22px, 2.6vw, 32px); font-weight: 700; }
.pain__story { font-size: clamp(16px, 2vw, 24px); margin-top: 18px; max-width: 830px; }
.pain__note { font-size: 14px; color: var(--muted); margin-top: 24px; line-height: 1.6; }
.pain__accent { font-size: clamp(20px, 3vw, 36px); color: var(--accent); margin-top: 20px; }

/* ---------- что такое Frontier ---------- */
.about { padding-bottom: var(--section); }
.about__lead { max-width: 560px; margin-top: 24px; font-size: 20px; }
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 44px; margin-top: 60px; }
.feature img { height: 107px; width: auto; }
.feature h3 { font-size: 22px; font-weight: 700; margin-top: 20px; line-height: 1.25; max-width: 230px; }
.feature p { color: var(--muted); font-size: 16px; font-weight: 700; margin-top: 20px; max-width: 280px; }

/* ---------- три составляющих ---------- */
.pillars { padding-bottom: var(--section); }
.pillars__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; margin-top: 60px; }
.pillar { padding: 24px 36px 40px; min-height: 342px; display: flex; flex-direction: column; justify-content: flex-end; }
.pillar__num { color: #cafb3e; font-size: 141px; line-height: 1; text-align: center; margin-bottom: auto; }
.pillar h3 { font-size: 24px; font-weight: 700; }
.pillar p { font-size: 18px; margin-top: 10px; max-width: 220px; }

/* ---------- блоки «текст + список справа» ---------- */
.split { padding-bottom: var(--section); }
.split__inner { display: grid; grid-template-columns: 1.7fr 1fr; gap: 40px; align-items: start; }
.forum-collage { margin-top: -50px; width: 100%; max-width: 621px; }

.points li { position: relative; padding-left: 82px; min-height: 60px; font-size: 18px; }
.points li + li { margin-top: 56px; }
.points--plus li::before {
  content: "+"; position: absolute; left: 0; top: -36px;
  color: #b4f247; font-size: 92px; font-weight: 500; line-height: 1;
}
.points--arrow li { padding-left: 90px; font-size: 19px; }
.points--arrow li::before {
  content: ""; position: absolute; left: 0; top: 4px; width: 67px; height: 57px;
  background: url("../img/icon-arrow.webp") center / contain no-repeat;
}

/* ---------- AI ---------- */
.ai { padding-bottom: var(--section); }
.ai__lead { max-width: 680px; font-size: 24px; margin-top: 24px; line-height: 1.5; }
.chat { display: flex; flex-direction: column; gap: 30px; margin-top: 80px; }
.bubble { font-size: 24px; padding: 26px 40px; border-radius: 40px; max-width: 520px; }
.bubble--user { background: var(--card); align-self: flex-end; border-top-right-radius: 40px; }
.bubble--bot { background: var(--accent); color: #000; margin-left: 0; }

/* ---------- офлайн ---------- */
.offline-media { position: relative; padding-bottom: 150px; }
.trip-paris { position: absolute; left: 47%; top: 70px; width: 173px; }
.trips-strip { position: absolute; left: -50px; bottom: 0; width: min(847px, 110%); max-width: none; }

/* ---------- основатели ---------- */
.team { padding-bottom: var(--section); }
.person { display: grid; grid-template-columns: 267px 210px 1fr; gap: 38px; margin-top: 70px; }
.person__photo { border-radius: 10px; filter: grayscale(1); }
.person__head h3 { color: var(--accent); font-size: 26px; font-weight: 700; line-height: 1.2; }
.person__head p { font-size: 16px; margin-top: 18px; }
.person__facts { list-style: disc; padding-left: 18px; font-size: 12px; color: rgba(255,255,255,.85); }
.person__facts li + li { margin-top: 16px; }

/* ---------- цены ---------- */
.join { padding-bottom: 100px; }
.join__card { padding: 110px 60px 50px; border-radius: 38px; }
.join__lead { font-size: clamp(20px, 2.4vw, 28px); font-weight: 400; margin-top: 20px; max-width: 810px; }
.join__body { display: grid; grid-template-columns: 1fr 290px; gap: 30px; margin-top: 46px; }
.points--star li { padding-left: 45px; min-height: 0; font-size: 22px; font-weight: 400; }
.points--star li + li { margin-top: 24px; }
.points--star li::before {
  content: ""; position: absolute; left: 0; top: 1px; width: 29px; height: 29px;
  background: url("../img/icon-star.webp") center / contain no-repeat;
}
.join__note { font-size: 22px; font-weight: 400; }
.prices { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; margin-top: 56px; }
.price { display: flex; flex-direction: column; }
.price__value { color: var(--accent); font-size: clamp(56px, 8vw, 95px); font-weight: 700; line-height: 1.1; }
.price__label { font-size: 18px; font-weight: 400; margin-top: 10px; }
.join__cta { display: flex; align-items: center; gap: 28px; margin-top: 40px; flex-wrap: wrap; }
.signature { display: flex; align-items: center; gap: 16px; }
.signature img { width: 71px; border-radius: 50%; }
.signature b { display: block; font-size: 18px; }
.signature span { font-size: 18px; font-weight: 400; }
.join__guarantee { color: var(--muted); font-size: 22px; font-weight: 400; margin-top: 28px; }

/* ---------- FAQ ---------- */
.faq { padding-bottom: 120px; }
.faq .h2 { margin-bottom: 44px; }
.faq__item { border-top: 1px solid var(--line); }
.faq__item:last-child { border-bottom: 1px solid var(--line); }
.faq__item summary {
  list-style: none; cursor: pointer; position: relative;
  padding: 36px 0 36px 34px; font-size: 26px; font-weight: 700; line-height: 1.2; max-width: 700px;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::before {
  content: ""; position: absolute; left: 0; top: 44px;
  border-left: 18px solid #fff; border-top: 10px solid transparent; border-bottom: 10px solid transparent;
  transition: transform .2s ease;
}
.faq__item[open] summary::before { transform: rotate(90deg); }
.faq__answer { padding: 0 0 36px 34px; font-size: 22px; font-weight: 400; max-width: 850px; }
.faq__answer p + p { margin-top: 1.2em; }
.faq__answer a { color: #0091fc; }

/* ---------- подвал ---------- */
.footer { padding: 40px 0 60px; }
.footer__inner { display: flex; justify-content: space-between; font-size: 18px; font-weight: 400; }

/* =========================================================
   Адаптив
   ========================================================= */
@media (max-width: 980px) {
  .nav {
    position: fixed; top: 76px; left: 0; right: 0; background: var(--bg);
    flex-direction: column; gap: 0; padding: 10px 20px 24px; font-size: 20px;
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 12px 0; }
  .header__inner { height: 76px; }
  main { padding-top: 76px; }
  .burger {
    display: block; width: 32px; height: 32px; background: none; border: 0; padding: 0; cursor: pointer; position: relative;
  }
  .burger span, .burger::before, .burger::after {
    content: ""; position: absolute; left: 6px; right: 6px; height: 2px; background: #fff; transition: .2s;
  }
  .burger::before { top: 9px; } .burger span { top: 15px; } .burger::after { top: 21px; }
  .burger[aria-expanded="true"] span { opacity: 0; }
  .burger[aria-expanded="true"]::before { top: 15px; transform: rotate(45deg); }
  .burger[aria-expanded="true"]::after { top: 15px; transform: rotate(-45deg); }

  .features { grid-template-columns: 1fr; gap: 50px; }
  .feature { display: grid; grid-template-columns: 90px 1fr; column-gap: 20px; align-items: center; }
  .feature img { height: 90px; }
  .feature h3 { margin: 0; }
  .feature p { grid-column: 1 / -1; max-width: none; }

  .pillars__grid { grid-template-columns: 1fr; gap: 24px; }
  .pillar { min-height: 0; flex-direction: row; align-items: center; gap: 30px; padding: 40px 36px; }
  .pillar__num { font-size: 96px; margin: 0; }

  .split__inner { grid-template-columns: 1fr; gap: 50px; }
  .forum-collage { margin-top: -10px; }

  .person { grid-template-columns: 140px 1fr; gap: 20px; }
  .person__facts { grid-column: 1 / -1; font-size: 15px; }

  .join__body { grid-template-columns: 1fr; }
  .prices { grid-template-columns: 1fr; gap: 16px; }
  .price { flex-direction: row; align-items: center; gap: 20px; }
  .price__value { min-width: 150px; }
}

@media (max-width: 640px) {
  :root { --radius: 28px; }
  body { font-size: 16px; }
  .header .btn--sm { padding: 12px 26px; }
  .tags { gap: 8px; }
  .tags li { font-size: 16px; padding: 6px 14px; }
  .hero__cta { flex-direction: column; align-items: stretch; }
  .btn--lg { padding: 22px; }
  .social-proof { flex-direction: column; text-align: center; gap: 12px; }
  .social-proof img { width: 100%; max-width: 300px; }
  .illustration, .illustration--sm { grid-template-columns: 1fr 1.5fr 1fr; gap: 6px; }
  .label { font-size: 15px; }
  .arrow-down { height: 110px; margin: 24px auto 32px; }
  .pain { padding: 50px 26px 34px; }
  .about__lead { font-size: 16px; }
  .pillar { padding: 30px 26px; }
  .pillar__num { font-size: 80px; min-width: 50px; }
  .points li { font-size: 20px; padding-left: 74px; }
  .points li + li { margin-top: 44px; }
  .points--plus li::before { font-size: 80px; top: -28px; }
  .points--arrow li { padding-left: 86px; }
  .ai__lead { font-size: 16px; }
  .chat { margin-top: 40px; gap: 26px; }
  .bubble { font-size: 15px; padding: 22px 26px; border-radius: 28px; }
  .bubble--user { margin-right: calc(var(--gutter) * -1); }
  .offline-media { padding-bottom: 80px; }
  .trip-paris { width: 105px; left: 52%; top: 0; }
  .trips-strip { left: 0; width: 100%; }
  .person { grid-template-columns: 130px 1fr; }
  .person__head h3 { font-size: 22px; }
  .person__head p { font-size: 13px; margin-top: 10px; font-weight: 700; }
  .join { padding-bottom: 60px; }
  .join .container { padding: 0 12px; }
  .join__card { padding: 50px 22px 34px; }
  .points--star li { font-size: 16px; padding-left: 32px; }
  .points--star li::before { width: 20px; height: 20px; }
  .points--star li + li { margin-top: 18px; }
  .join__note { font-size: 16px; }
  .price__value { font-size: 60px; min-width: 125px; }
  .price__label { font-size: 15px; }
  .join__cta { flex-direction: column; align-items: stretch; gap: 20px; }
  .btn--xl { font-size: 22px; padding: 24px; }
  .signature { justify-content: center; }
  .signature img { width: 50px; }
  .signature b, .signature span { font-size: 13px; }
  .join__guarantee { font-size: 13px; text-align: center; }
  .faq__item summary { font-size: 22px; padding: 26px 0 26px 34px; }
  .faq__item summary::before { top: 30px; }
  .faq__answer { font-size: 16px; }
  .footer__inner { font-size: 14px; }
}
