/* Travelino — travelino.world
   Цвета и шрифт — из приложения: коралловый акцент, тёплый фон экранов,
   скруглённый системный шрифт. Тёмной темы нет намеренно: скриншоты светлые. */

:root {
  color-scheme: light;

  --ground: #f6f2ec;
  --surface: #ffffff;
  --ink: #211813;
  --muted: #6b5d54;
  --line: #e8e0d6;

  /* Кнопки — чуть темнее кораллового из приложения, чтобы белый текст читался */
  --accent: #d9654a;
  --accent-press: #c4553a;
  --accent-ink: #a9462c;
  --accent-soft: #fbe4d9;

  /* Подложки разделов — те же тона, что у слайдов в App Store */
  --tint-trips: #fbe3d6;
  --tint-map: #e6eef8;
  --tint-ai: #efe8f8;
  --tint-pack: #fcefdc;
  --tint-memories: #fae5ea;
  --tint-diary: #f3ebe0;
  --tint-share: #e3eefa;

  --display: ui-rounded, "SF Pro Rounded", "Nunito", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --body: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, system-ui, sans-serif;

  --radius-lg: 36px;
  --radius-md: 22px;
  --wrap: 1160px;
  --gutter: 20px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--accent-ink); text-underline-offset: 3px; }
a:hover { color: var(--accent-press); }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.05;
  text-wrap: balance;
  margin: 0;
}

p { margin: 0; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.eyebrow {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-ink);
}

.lead { font-size: 20px; line-height: 1.55; color: var(--muted); }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(246, 242, 236, 0.86);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  backdrop-filter: saturate(160%) blur(16px);
  border-bottom: 1px solid transparent;
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-family: var(--display);
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.02em;
}

.brand img { width: 36px; height: 36px; border-radius: 22%; }

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

.site-nav a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
}

.site-nav a:hover { color: var(--accent-ink); }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 24px;
  border-radius: 16px;
  font-family: var(--body);
  font-size: 17px;
  font-weight: 700;
  text-decoration: none;
  border: 0;
  cursor: pointer;
}

.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 8px 20px rgba(217, 101, 74, 0.3); }
.btn-primary:hover { background: var(--accent-press); color: #fff; }

/* До релиза вместо значка App Store — «скоро». После релиза: официальный значок Apple */
.btn-soon { background: var(--ink); color: #fff; cursor: default; }
.btn-soon:hover { color: #fff; }
.btn-soon small { display: block; font-size: 11px; font-weight: 600; opacity: 0.7; line-height: 1.1; }
.btn-soon span { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.15; }

.btn-ghost { background: transparent; color: var(--ink); padding: 0 8px; }
.btn-ghost:hover { color: var(--accent-ink); }

.btn-small { min-height: 40px; padding: 0 16px; font-size: 15px; border-radius: 12px; }

/* ---------- Hero ---------- */

/* Дуга с самолётом заходит за край — страница не должна из-за неё скроллиться вбок */
.hero { padding-block: 48px 72px; overflow-x: clip; }

.hero .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  gap: 48px;
}

.hero-copy { display: flex; flex-direction: column; gap: 22px; }

.hero h1 { font-size: clamp(46px, 6.4vw, 80px); }
.hero h1 .accent { color: var(--accent); display: block; }

.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 6px; }

.hero-note { font-size: 15px; color: var(--muted); }

.hero-visual { position: relative; }

/* Та же подложка, что у разделов ниже: фон впечён в картинку телефона,
   поэтому её цвет обязан совпадать с --tint-trips */
.hero-panel {
  background: var(--tint-trips);
  border-radius: var(--radius-lg);
  padding: 48px 40px 0;
  display: flex;
  justify-content: center;
  overflow: hidden;
  max-height: 680px;
}

.hero-panel img { width: min(100%, 380px); }

/* Пунктирная дуга с самолётом — как на карточке трипа в приложении */
.flight-arc {
  position: absolute;
  top: -40px;
  right: -14px;
  width: 44%;
  z-index: 1;
  color: var(--accent);
  pointer-events: none;
}

/* ---------- Itinerary: три этапа поездки ---------- */

.itinerary { padding-block: 8px 24px; }

.itinerary ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  position: relative;
}

.itinerary ol::before {
  content: "";
  position: absolute;
  left: 16.66%;
  right: 16.66%;
  top: 11px;
  border-top: 2px dashed #d7c8b9;
}

.itinerary li { position: relative; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 10px; }

.itinerary .stop {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--ground);
  border: 6px solid var(--accent);
}

.itinerary a {
  color: var(--ink);
  text-decoration: none;
  font-family: var(--display);
  font-weight: 800;
  font-size: 20px;
}

.itinerary a:hover { color: var(--accent-ink); }

.itinerary span { font-size: 15px; color: var(--muted); }

/* ---------- Chapters & features ---------- */

.chapter { padding-block: 56px 16px; scroll-margin-top: 72px; }

.chapter-head { display: flex; flex-direction: column; gap: 10px; margin-bottom: 8px; }

.chapter-head h2 { font-size: clamp(30px, 3.6vw, 42px); color: var(--muted); }

.feature {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: 56px;
  padding-block: 40px;
}

.feature.reverse .feature-media { order: -1; }

.feature-copy { display: flex; flex-direction: column; gap: 18px; max-width: 520px; }

.feature-copy h3 { font-size: clamp(34px, 4.2vw, 54px); }

.feature-copy p { font-size: 18px; color: var(--muted); }

.checks { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }

.checks li { display: flex; gap: 12px; align-items: flex-start; font-weight: 600; }

.checks svg { flex: none; width: 22px; height: 22px; margin-top: 2px; color: var(--accent); }

.feature-media {
  border-radius: var(--radius-lg);
  padding: 48px 40px 0;
  display: flex;
  justify-content: center;
  overflow: hidden;
  /* Телефон уходит под нижний край панели, как в рекламных раскладках */
  max-height: 640px;
}

/* Фон впечён в картинку — цвет подложки обязан совпадать с цветом раздела */
.feature-media img { width: min(100%, 360px); }

.tint-map { background: var(--tint-map); }
.tint-ai { background: var(--tint-ai); }
.tint-pack { background: var(--tint-pack); }
.tint-memories { background: var(--tint-memories); }
.tint-diary { background: var(--tint-diary); }
.tint-share { background: var(--tint-share); }

/* ---------- All in one ---------- */

.all-in-one { padding-block: 88px 40px; }

.section-head { display: flex; flex-direction: column; gap: 14px; max-width: 680px; margin-bottom: 36px; }

.section-head h2 { font-size: clamp(34px, 4.2vw, 54px); }

.tiles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.tile {
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tile-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
}

.tile-icon svg { width: 22px; height: 22px; }

.tile h3 { font-size: 21px; letter-spacing: -0.015em; }

.tile p { font-size: 16px; color: var(--muted); }

/* ---------- Pricing ---------- */

.pricing { padding-block: 88px 40px; scroll-margin-top: 72px; }

.plans {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 16px;
  align-items: start;
}

.plan {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.plan h3 { font-size: 28px; }

.plan .price { font-family: var(--display); font-weight: 800; font-size: 44px; letter-spacing: -0.03em; line-height: 1; }

.plan .price small { font-family: var(--body); font-size: 16px; font-weight: 600; color: var(--muted); letter-spacing: 0; }

.plan-badge {
  align-self: flex-start;
  background: var(--accent-soft);
  color: var(--accent-ink);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 6px 12px;
}

.price-rows { display: flex; flex-direction: column; border-top: 1px solid var(--line); }

.price-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding-block: 14px;
  border-bottom: 1px solid var(--line);
  font-variant-numeric: tabular-nums;
}

.price-row strong { font-size: 18px; }
.price-row span { color: var(--muted); font-size: 15px; }
.price-row b { font-size: 20px; white-space: nowrap; }

.fine-print { font-size: 14px; color: var(--muted); }

/* ---------- FAQ ---------- */

.faq { padding-block: 88px 40px; scroll-margin-top: 72px; }

.faq-list { display: flex; flex-direction: column; gap: 10px; max-width: 820px; }

.faq details {
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: 4px 24px;
}

.faq summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  min-height: 64px;
  font-weight: 700;
  font-size: 18px;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: "";
  flex: none;
  width: 12px;
  height: 12px;
  border-right: 2.5px solid var(--muted);
  border-bottom: 2.5px solid var(--muted);
  transform: rotate(45deg) translateY(-3px);
  transition: transform 0.2s ease;
}

.faq details[open] summary::after { transform: rotate(-135deg) translateY(-3px); }

.faq details p { color: var(--muted); padding-bottom: 20px; max-width: 680px; }

/* ---------- Final CTA ---------- */

.final { padding-block: 88px; }

.final-card {
  background: var(--ink);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 56px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 20px;
}

.final-card img { width: 84px; height: 84px; border-radius: 22%; }

.final-card h2 { font-size: clamp(34px, 4.6vw, 56px); }

.final-card p { color: rgba(255, 255, 255, 0.72); font-size: 18px; max-width: 520px; }

.final-card .btn-soon { background: #fff; color: var(--ink); }
.final-card .btn-soon:hover { color: var(--ink); }

/* ---------- Footer ---------- */

.site-footer { padding-block: 32px 48px; border-top: 1px solid var(--line); }

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-size: 15px;
  color: var(--muted);
}

.footer-links { display: flex; flex-wrap: wrap; gap: 20px; }
.footer-links a { color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: var(--accent-ink); }

/* ---------- Legal pages ---------- */

.doc { padding-block: 48px 88px; }

.doc .wrap { max-width: 780px; display: flex; flex-direction: column; gap: 18px; }

.doc h1 { font-size: clamp(38px, 5vw, 56px); }

.doc h2 { font-size: 26px; margin-top: 22px; letter-spacing: -0.015em; }

.doc p, .doc li { color: #3d322b; }

.doc ul { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 8px; }

.doc .updated { color: var(--muted); font-size: 15px; }

/* ---------- Responsive ---------- */

@media (max-width: 960px) {
  .hero .wrap,
  .feature,
  .plans { grid-template-columns: minmax(0, 1fr); }

  .hero { padding-block: 24px 48px; }
  .hero-panel { padding: 36px 24px 0; max-height: 540px; }
  .hero-panel img { width: min(100%, 300px); }

  .feature { gap: 28px; padding-block: 28px; }
  .feature.reverse .feature-media { order: 0; }
  .feature-media { padding: 36px 24px 0; max-height: 520px; }
  .feature-media img { width: min(100%, 300px); }

  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  :root { --gutter: 16px; }
  body { font-size: 16px; }
  .site-nav a:not(.btn) { display: none; }
  .lead { font-size: 18px; }
  .itinerary a { font-size: 16px; }
  .itinerary li > span:not(.stop) { display: none; }
  .tiles { grid-template-columns: minmax(0, 1fr); }
  .plan { padding: 24px; }
  .final-card { padding: 44px 22px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
