/* =========================================================
   Витамин Д — турагентство. Стили сайта.
   Палитра и шрифты — строго по брендбуку v1.0 (2026).
   ========================================================= */

:root {
  /* Палитра бренда — новые оттенки не добавляются */
  --air: #FEFEFE;      /* Воздух */
  --cocoa: #502D2B;    /* Какао */
  --olive: #93A239;    /* Олива */
  --green: #B8CC53;    /* Молодая зелень */
  --orange: #F09E20;   /* Солнечный апельсин */
  --sun: #F6D609;      /* Свет солнца */

  /* Производные от какао (прозрачность, не новые цвета) */
  --muted: rgba(80, 45, 43, 0.78);
  --line: rgba(80, 45, 43, 0.16);
  --line-soft: rgba(80, 45, 43, 0.12);

  /* Акцент кнопок: можно заменить на var(--sun) или var(--green) */
  --accent: var(--orange);

  --font: 'PT Sans', system-ui, sans-serif;
  --font-head: 'PT Sans Narrow', 'PT Sans', sans-serif;

  --container: 1240px;
  --gutter: 24px;
  --radius-l: 36px;
  --radius-m: 26px;
  --radius-s: 18px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.5;
  color: var(--cocoa);
  background: var(--air);
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--cocoa); }
a:hover { color: var(--olive); }

svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

:focus-visible { outline: 3px solid var(--olive); outline-offset: 3px; }

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

/* ---------- Типографика ---------- */
.h2 {
  margin: 0;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(38px, 4.5vw, 56px);
  line-height: 1;
}
.muted { color: var(--muted); }
.small { font-size: 15px; }
.lead-s { font-size: 18px; margin: 10px 0 0; }
.caption {
  margin: 0 0 4px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
}
.strong { font-weight: 700; }

/* ---------- Точки (фирменный элемент) ---------- */
.dot { width: 12px; height: 12px; border-radius: 50%; display: inline-block; flex-shrink: 0; }
.dot--green  { background: var(--green); }
.dot--orange { background: var(--orange); }
.dot--sun    { background: var(--sun); }
.dot--olive  { background: var(--olive); }
.dot--cocoa  { background: var(--cocoa); }

/* ---------- Паттерн ---------- */
.pattern {
  background: var(--air) url(../img/pattern.jpg) center / 520px;
}
.pattern-t {
  background: var(--bg, var(--green)) url(../img/pattern.png) 30% 40% / 420px;
}

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 26px;
  border: 0;
  border-radius: 14px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: .04em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--cocoa);
  cursor: pointer;
  transition: filter .15s, transform .15s;
}
.btn:hover { color: var(--cocoa); filter: brightness(1.05); transform: translateY(-1px); }
.btn--accent { background: var(--accent); }
.btn--lg { min-height: 58px; font-size: 20px; }

.pill {
  font: inherit;
  font-weight: 700;
  font-size: 15px;
  min-height: 44px;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1.5px solid rgba(80, 45, 43, .2);
  background: transparent;
  color: var(--cocoa);
  cursor: pointer;
}
.pill.is-active { background: var(--cocoa); border-color: var(--cocoa); color: var(--air); }

.icon-btn, .round-btn {
  width: 48px; height: 48px;
  border-radius: 50%;
  border: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}
.icon-btn--green, .round-btn { background: var(--green); color: var(--cocoa); }
.icon-btn--cocoa { background: var(--cocoa); color: var(--air); }
.round-btn:hover { color: var(--cocoa); background: var(--olive); }

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; font-weight: 700; text-decoration: none;
}

/* ---------- Шапка ---------- */
.header {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  padding-top: 24px;
}
.header__logo img { width: 160px; height: auto; } /* мин. 160 px по брендбуку */
.header__mobile { display: none; gap: 8px; padding-top: 16px; }

.nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 32px;
  padding-top: 40px;
}
.nav a:not(.btn) { font-weight: 700; text-decoration: none; }
.nav__phone { display: inline-flex; align-items: center; gap: 8px; }
.nav__phone svg { color: var(--olive); }

/* ---------- Первый экран ---------- */
.hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr));
  gap: 48px;
  align-items: center;
  padding-top: 32px;
}
.hero__text { display: flex; flex-direction: column; gap: 24px; }
.hero__title {
  margin: 0;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(52px, 7vw, 92px);
  line-height: .95;
  letter-spacing: -.01em;
}
.hero__lead { margin: 0; font-size: 21px; line-height: 1.45; max-width: 30ch; }
.hero__points {
  margin: 8px 0 0; padding: 0; list-style: none;
  display: flex; flex-wrap: wrap; gap: 10px 28px; font-weight: 700;
}
.hero__points li { display: flex; align-items: center; gap: 10px; }
.hero__art {
  position: relative;
  height: 440px;
  border-radius: var(--radius-l);
  border: 2px solid var(--green);
  overflow: hidden;
}
.hero__badge {
  position: absolute; right: 28px; bottom: 28px;
  width: 168px; height: 168px; padding: 20px;
  border-radius: 50%;
  background: var(--sun);
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  font-family: var(--font-head); font-weight: 700; font-size: 20px;
  line-height: 1.1; letter-spacing: .03em; text-transform: uppercase;
}

/* ---------- Поиск ---------- */
.search-wrap { padding-top: 40px; }
.card-elevated {
  background: var(--air);
  border-radius: 28px;
  box-shadow: 0 24px 64px rgba(80, 45, 43, .14), 0 0 0 1px rgba(80, 45, 43, .06);
}
.search { padding: 28px; display: flex; flex-direction: column; gap: 20px; }
.search p { margin: 0; }
.search__head {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 24px;
}
.search__tabs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.search__title {
  margin: 0 16px 0 0;
  font-family: var(--font-head); font-weight: 700; font-size: 30px; line-height: 1.1;
}
.search__fallback {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 12px;
}
.field {
  font: inherit; color: inherit; text-align: left;
  background: var(--air);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-s);
  padding: 14px 18px;
  min-height: 76px;
  display: flex; flex-direction: column; gap: 2px;
  cursor: pointer;
  transition: border-color .15s;
}
.field:hover { border-color: var(--olive); }
.field__label {
  display: flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--muted);
}
.field__label svg { width: 16px; height: 16px; color: var(--olive); }
.field__value { font-size: 19px; font-weight: 700; }
.btn--search { min-height: 76px; border-radius: var(--radius-s); font-size: 20px; }

/* ---------- Секции ---------- */
.section { padding-top: 96px; }
.section__head {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end;
  gap: 16px; margin-bottom: 32px;
}

/* ---------- Горящие туры ---------- */
.tours {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}
.tour {
  border-radius: var(--radius-m);
  border: 1.5px solid var(--line-soft);
  overflow: hidden;
  display: flex; flex-direction: column;
  background: var(--air);
  transition: transform .2s;
}
.tour:hover { transform: translateY(-4px); }
.tour__img { position: relative; height: 190px; }
.tour__tag {
  position: absolute; left: 16px; top: 16px;
  background: var(--air); font-weight: 700; font-size: 14px;
  padding: 6px 14px; border-radius: 999px;
}
.tour__body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 6px; flex-grow: 1; }
.tour__body p { margin: 0; }
.tour__resort {
  font-size: 14px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted);
}
.tour__hotel { margin: 0; font-family: var(--font-head); font-weight: 700; font-size: 24px; line-height: 1.15; }
.tour__foot {
  margin-top: auto; padding-top: 16px;
  display: flex; justify-content: space-between; align-items: flex-end; gap: 12px;
}
.tour__price { line-height: 1.1; display: flex; flex-direction: column; }
.tour__price span { font-family: var(--font-head); font-weight: 700; font-size: 28px; }
.tour__price small { font-size: 14px; color: var(--muted); }

/* ---------- Как мы работаем ---------- */
.how { margin-top: 112px; background: var(--green); padding: 88px 0; }
.how .section__head { margin-bottom: 40px; }
.how__title { max-width: 14ch; }
.how__lead { margin: 0; font-size: 19px; max-width: 36ch; }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.step {
  background: var(--air); border-radius: var(--radius-m); padding: 28px;
  display: flex; flex-direction: column; gap: 12px;
}
.step h3 { margin: 0; font-size: 21px; line-height: 1.25; }
.step p { margin: 0; font-size: 16px; }
.step__num {
  font-family: var(--font-head); font-weight: 700; font-size: 44px; line-height: 1;
  display: flex; align-items: center; gap: 10px;
}
.step__num .dot { width: 14px; height: 14px; }

/* ---------- Заявка ---------- */
#contacts { padding-top: 112px; }
.cta {
  background: var(--cocoa); color: var(--air);
  border-radius: var(--radius-l); overflow: hidden;
  display: flex; flex-wrap: wrap;
}
.cta a { color: var(--air); }
.cta a:hover { color: var(--green); }
.cta__body {
  flex: 999 1 520px; min-width: 0;
  padding: clamp(28px, 5vw, 64px);
  display: flex; flex-direction: column; gap: 20px;
}
.cta__title { font-size: clamp(34px, 4.2vw, 52px); line-height: 1.02; }
.cta__lead { margin: 0; font-size: 19px; max-width: 40ch; }
.cta__messengers {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin-top: 8px;
}
.messenger {
  display: flex; align-items: center; gap: 14px;
  min-height: 72px; padding: 12px 18px;
  background: var(--air); color: var(--cocoa);
  border-radius: 18px; text-decoration: none;
  transition: transform .15s, box-shadow .15s;
}
.cta a.messenger { color: var(--cocoa); }
.messenger:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0, 0, 0, .18); }
.cta a.messenger:hover { color: var(--cocoa); }
.messenger__icon {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--green); color: var(--cocoa);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.messenger__text { display: flex; flex-direction: column; line-height: 1.2; }
.messenger__name { font-family: var(--font-head); font-weight: 700; font-size: 22px; }
.messenger__hint { font-size: 14px; color: var(--muted); }
.cta__call { margin: 0; font-size: 17px; }
.cta__call a { font-weight: 700; white-space: nowrap; }
.cta__art { flex: 1 1 320px; min-height: 320px; }

/* ---------- Подвал ---------- */
.footer { padding-top: 80px; padding-bottom: 40px; display: flex; flex-direction: column; gap: 40px; }
.footer__top { display: flex; flex-wrap: wrap; gap: 40px 64px; align-items: flex-start; }
.footer__top img { width: 160px; height: auto; }
.footer__cols {
  flex: 1 1 560px;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 32px;
}
.footer__cols > div { display: flex; flex-direction: column; gap: 8px; }
.footer__cols p { margin: 0; }
.footer__cols a { text-decoration: none; }

.socials { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.socials__title { font-family: var(--font-head); font-weight: 700; font-size: 26px; margin-right: 12px; }
.social {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 48px; padding: 0 22px;
  border-radius: 999px; background: var(--green);
  font-weight: 700; text-decoration: none;
}
.social .dot { width: 10px; height: 10px; }
.social:hover { color: var(--cocoa); background: var(--olive); }

.footer__bottom {
  border-top: 1.5px solid var(--green); padding-top: 20px;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
  font-size: 14px; color: var(--muted);
}
.footer__bottom a { color: var(--muted); }

/* =========================================================
   Телефон
   ========================================================= */
@media (max-width: 860px) {
  :root { --gutter: 20px; }
  body { font-size: 16px; }

  .header { padding-top: 16px; flex-wrap: nowrap; }
  .header__mobile { display: flex; }
  .nav {
    display: none;
    position: absolute; z-index: 10;
    top: 80px; right: var(--gutter); left: var(--gutter);
    flex-direction: column; align-items: stretch; gap: 4px;
    padding: 16px;
    background: var(--air);
    border-radius: 22px;
    box-shadow: 0 18px 48px rgba(80, 45, 43, .18), 0 0 0 1px rgba(80, 45, 43, .06);
  }
  .nav.is-open { display: flex; }
  .nav a:not(.btn) { padding: 12px 8px; }
  .nav .btn { margin-top: 8px; }

  .hero { gap: 16px; padding-top: 20px; }
  .hero__text { gap: 16px; }
  .hero__title { font-size: 52px; }
  .hero__lead { font-size: 18px; }
  .hero__points { display: none; }
  .hero__art { height: 150px; border-radius: var(--radius-m); background-size: 360px; }
  .hero__badge { display: none; }

  .search-wrap { padding-inline: 12px; padding-top: 0; margin-top: -48px; position: relative; }
  .search { padding: 20px; gap: 14px; border-radius: var(--radius-m); }
  .search__head p { display: none; }
  .search__title { font-size: 28px; width: 100%; margin: 0 0 6px; }
  .search__fallback { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .field { min-height: 68px; padding: 12px 14px; border-radius: 16px; }
  .field__label { font-size: 12px; }
  .field__label svg { display: none; }
  .field__value { font-size: 17px; }
  .field--wide-m, .btn--search { grid-column: 1 / -1; }
  .btn--search { min-height: 60px; }

  .section { padding-top: 64px; }
  .section__head { margin-bottom: 20px; }
  .section__head .link-arrow { display: none; }

  .tours {
    display: flex; overflow-x: auto; gap: 14px;
    margin-inline: calc(var(--gutter) * -1); padding: 0 var(--gutter) 8px;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--gutter);
  }
  .tour { flex: 0 0 280px; scroll-snap-align: start; }
  .tour__img { height: 160px; }

  .how { margin-top: 64px; padding: 56px 0; }
  .how .section__head { margin-bottom: 24px; }
  .how__lead { display: none; }
  .steps { gap: 10px; }
  .step { padding: 18px 20px; border-radius: 20px; display: grid; grid-template-columns: auto 1fr; gap: 4px 16px; }
  .step__num { font-size: 30px; grid-row: span 2; }
  .step__num .dot { display: none; }
  .step h3 { font-size: 18px; }
  .step p { font-size: 15px; }

  #contacts { padding: 56px 12px 0; }
  .cta { flex-direction: column-reverse; border-radius: 28px; }
  .cta__art { min-height: 120px; flex: 0 0 120px; background-size: 360px; }
  .cta__body { padding: 28px 20px; gap: 14px; }
  .cta__lead { font-size: 16px; }

  .footer { padding-top: 40px; padding-bottom: 32px; gap: 24px; }
  .footer__top > img { display: none; }
  .socials__title { width: 100%; font-size: 22px; }
  .social { padding: 0 16px; min-height: 44px; }
}
