/* =========================================================
   GRAND YEAH TOURS — стили сайта
   Самое полезное — в самом верху: цвета и шрифты.
   Поменяешь цвет здесь — он поменяется на всём сайте.
   ========================================================= */

:root {
  /* --- ЦВЕТА БРЕНДА --- */
  --ink: #1A2118;      /* почти чёрный, лесной — тёмные блоки и основной текст */
  --forest: #243020;   /* тёмно-зелёный */
  --moss: #525E2C;     /* мох / олива — блок «Grand tours. Grand yeah» */
  --sage: #BFC7A9;     /* светлый шалфей */
  --cream: #F3ECD8;    /* кремовый — текст на тёмном фоне, логотип */
  --paper: #F6F1E3;    /* светлый фон страницы */
  --card: #FFFBF1;     /* фон карточек туров */
  --trail: #E3DC6E;    /* жёлтый «маршрут» — кнопки, акценты, блок брони */
  --rust: #9C4426;     /* терракота — второй акцент */
  --muted: #5B6455;    /* приглушённый текст на светлом фоне */

  /* --- ШРИФТЫ --- */
  --font-sans: "Bricolage Grotesque", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-serif: "Instrument Serif", Georgia, serif;

  /* --- служебное, можно не трогать --- */
  --radius: 18px;
  --gutter: clamp(16px, 4vw, 40px);
  --max: 1240px;
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}


/* ---------- Основа ---------- */

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: clamp(16px, 0.4vw + 15px, 18px);
  line-height: 1.55;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p { margin: 0; }
h1, h2, h3, h4 { margin: 0; font-weight: 750; line-height: 1; letter-spacing: -0.02em; }

/* Слова курсивом с засечками внутри заголовков: <em>yeah</em> */
h1 em, h2 em, h3 em, .logo__yeah {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.01em;
}

:focus-visible { outline: 2.5px solid currentColor; outline-offset: 3px; border-radius: 4px; }

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

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  background: var(--trail);
  color: var(--ink);
  padding: 10px 16px;
  border-radius: 999px;
}
.skip-link:focus { top: 12px; }

/* Плёночное зерно поверх фото, как в мудборде */
.grain { position: relative; isolation: isolate; }
.grain::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--grain);
  background-size: 220px;
  opacity: 0.2;
  mix-blend-mode: overlay;
  pointer-events: none;
  z-index: 2;
}


/* ---------- Кнопки ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  padding: 0.95em 1.5em;
  border: 1.5px solid transparent;
  border-radius: 999px;
  font: 650 16px/1 var(--font-sans);
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn svg { width: 1.2em; height: 1.2em; flex: none; }

.btn--trail { background: var(--trail); color: var(--ink); }
.btn--trail:hover { background: #EEE78C; }
.btn--ghost { border-color: currentColor; color: var(--cream); }
.btn--ghost:hover { background: var(--cream); color: var(--ink); }
.btn--ink { background: var(--ink); color: var(--cream); }
.btn--ink:hover { background: var(--forest); }
.btn--outline { border-color: var(--ink); color: var(--ink); }
.btn--outline:hover { background: var(--ink); color: var(--cream); }
.btn--sm { padding: 0.8em 1.2em; font-size: 14px; }


/* ---------- 1. Шапка ---------- */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  padding-block: 18px;
  color: var(--cream);
  transition: background-color 0.3s ease, padding 0.3s ease;
}
.site-header.is-scrolled {
  padding-block: 10px;
  background: rgba(26, 33, 24, 0.88);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-nav { display: flex; gap: 28px; font-size: 15px; }
.site-nav a { text-decoration: none; opacity: 0.85; }
.site-nav a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 5px; }

@media (max-width: 760px) {
  .site-nav { display: none; }
}

/* Логотип: «grand yeah tours» — yeah курсивом с засечками */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--cream);
  text-decoration: none;
}
.logo__word {
  font-size: 25px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.035em;
  white-space: nowrap;
}
.logo__yeah { font-size: 1.12em; }


/* ---------- 2. Первый экран ---------- */

.hero {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 100vh;
  min-height: 100svh;
  padding: 130px 0 clamp(40px, 6vw, 80px);
  overflow: hidden;
  color: var(--cream);
  background: var(--ink);
}
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(26, 33, 24, 0.7) 0%, rgba(26, 33, 24, 0.35) 45%, rgba(26, 33, 24, 0) 75%),
    linear-gradient(180deg,
      rgba(26, 33, 24, 0.55) 0%,
      rgba(26, 33, 24, 0.1) 30%,
      rgba(26, 33, 24, 0.3) 58%,
      rgba(26, 33, 24, 0.9) 100%);
}

.hero__content { text-shadow: 0 1px 14px rgba(10, 14, 9, 0.35); }
.hero__content .btn { text-shadow: none; }

.hero__title {
  margin-bottom: 26px;
  font-size: clamp(68px, 12.5vw, 196px);
  font-weight: 800;
  line-height: 0.86;
  letter-spacing: -0.05em;
}
.hero__lead {
  max-width: 38ch;
  font-size: clamp(18px, 1.5vw, 21px);
  color: rgba(243, 236, 216, 0.92);
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

/* Плавное появление первого экрана */
@media (prefers-reduced-motion: no-preference) {
  .hero__content > * { animation: rise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
  .hero__content > :nth-child(2) { animation-delay: 0.1s; }
  .hero__content > :nth-child(3) { animation-delay: 0.2s; }
}
@keyframes rise {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: none; }
}


/* ---------- 3. О компании ---------- */

.about { padding-block: clamp(88px, 12vw, 160px); }
.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 7vw, 110px);
  align-items: center;
}
.about h2 {
  margin-bottom: 30px;
  font-size: clamp(42px, 5.6vw, 82px);
  line-height: 0.95;
  letter-spacing: -0.04em;
}
.about__text p { max-width: 54ch; font-size: clamp(17px, 1.2vw, 19px); }
.about__text p + p { margin-top: 1em; }

/* Коллаж из полароидов: фото внахлёст, нижнее выходит за блок вниз */
.about { position: relative; z-index: 3; }
.polaroids {
  position: relative;
  width: 100%;
  aspect-ratio: 100 / 175;
  margin-bottom: calc(-1 * clamp(88px, 12vw, 160px) - 70px);
  filter: drop-shadow(0 10px 22px rgba(26, 33, 24, 0.28));
}
.polaroid {
  position: absolute;
  width: 42%;
  height: auto;
  /* срезаем тёмную полоску от сканера вдоль нижнего края (она идёт чуть наискосок) */
  clip-path: polygon(0 0, 100% 0, 100% 97%, 0 98.75%);
  transition: transform 0.4s cubic-bezier(0.2, 0.7, 0.2, 1);
}
/* left / top — положение, rotate — наклон */
/* Основная линия сверху вниз */
.polaroid--golden-gate    { left: 33%; top: 0;     transform: rotate(10deg); }
.polaroid--sequoia        { left: 22%; top: 16.6%; transform: rotate(-6deg); }   /* на переднем плане */
.polaroid--santa-monica   { left: 32%; top: 33.1%; transform: rotate(8deg); }
.polaroid--van            { left: 20%; top: 50.3%; transform: rotate(16deg); }
.polaroid--big-sur        { left: 30%; top: 68.6%; transform: rotate(5deg); }    /* выходит за блок вниз */
/* По бокам */
.polaroid--joshua-night   { left: -4%; top: 25.1%; transform: rotate(-12deg); }
.polaroid--sunset-friends { left: 60%; top: 17.1%; transform: rotate(11deg); }
.polaroid--joshua-road    { left: 61%; top: 54.9%; transform: rotate(-9deg); }
.polaroid:hover { transform: rotate(0deg) scale(1.04); z-index: 5; }

@media (max-width: 900px) {
  .about__grid { grid-template-columns: 1fr; }
  .about__photo { max-width: 420px; }
}


/* ---------- 4. Grand tours. Grand yeah ---------- */

.grand {
  overflow: hidden;
  padding-top: clamp(88px, 12vw, 150px);
  background: var(--moss);
  color: var(--cream);
}
.grand__inner { position: relative; }

.grand__title {
  font-size: clamp(58px, 10vw, 164px);
  font-weight: 800;
  line-height: 0.88;
  letter-spacing: -0.05em;
}
.grand__lead { max-width: 40ch; margin-top: 26px; font-size: clamp(17px, 1.3vw, 20px); opacity: 0.88; }

.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(28px, 4vw, 56px);
  margin-top: clamp(56px, 8vw, 100px);
  padding-bottom: clamp(72px, 9vw, 120px);
}
.pillar { padding-top: 22px; border-top: 2px solid var(--trail); }
.pillar h3 { margin-bottom: 12px; font-size: clamp(26px, 2.4vw, 34px); letter-spacing: -0.03em; }
.pillar p { opacity: 0.88; }

@media (max-width: 860px) {
  .pillars { grid-template-columns: 1fr; }
}

/* Бегущая строка */
.marquee {
  overflow: hidden;
  padding-block: 20px;
  background: var(--ink);
  color: var(--cream);
  font-size: clamp(20px, 2vw, 26px);
  font-weight: 650;
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.marquee__track { display: flex; width: max-content; animation: marquee 70s linear infinite; }
.marquee__track p { display: flex; }
.marquee__track p { align-items: center; }
.marquee__track span { padding-inline: 18px; }
.marquee__icon { width: 1.5em; height: 1.5em; flex: none; color: var(--trail); }
@keyframes marquee { to { transform: translateX(-50%); } }


/* ---------- 5. Туры ---------- */

.tours { padding-block: clamp(88px, 12vw, 150px); }

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px 48px;
  margin-bottom: clamp(48px, 6vw, 80px);
}
.section-head h2 {
  font-size: clamp(46px, 6.5vw, 100px);
  line-height: 0.9;
  letter-spacing: -0.045em;
}
.section-head > p { max-width: 42ch; font-size: clamp(17px, 1.2vw, 19px); }

/* Группы туров: Day trips / Road trips */
.tour-group + .tour-group { margin-top: clamp(64px, 8vw, 110px); }
.tour-group__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 32px;
  margin-bottom: clamp(20px, 3vw, 32px);
  padding-top: 18px;
  border-top: 2px solid var(--ink);
}
.tour-group__head h3 { font-size: clamp(30px, 3vw, 44px); letter-spacing: -0.035em; }
.tour-group__head p { color: var(--muted); }

/* Сетка карточек */
.tour-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: start;
  gap: clamp(16px, 2vw, 28px);
}
.tour-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(26, 33, 24, 0.12);
  border-radius: var(--radius);
  background: var(--card);
}
.tour-card__media { position: relative; overflow: hidden; aspect-ratio: 4 / 3; background: var(--sage); }
.tour-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.tour-card:hover .tour-card__media img { transform: scale(1.04); }
.tour-card__days {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--cream);
  color: var(--ink);
  font-size: 14px;
  font-weight: 650;
  line-height: 1.2;
}
.tour-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 10px;
  padding: 22px 22px 24px;
}
.tour-card__from { font-size: 15px; font-weight: 600; color: var(--rust); }
.tour-card h4 { font-size: 27px; line-height: 1.02; letter-spacing: -0.035em; }
.tour-card .desc { font-size: 15.5px; color: #3D4738; }
.tour-card .btn { align-self: flex-start; margin-top: 6px; }

/* Одинаковая высота закрытых карточек: место под 2 строки заголовка и 4 строки описания */
@media (min-width: 641px) {
  .tour-card h4 { min-height: 2.04em; }
  .tour-card .desc { min-height: 6.2em; }

  /* Широкая карточка — первая в группе */
  .tour-card--wide { grid-column: span 2; }
  .tour-card--wide .tour-card__media { aspect-ratio: 2 / 1; }
}
@media (min-width: 1001px) {
  .tour-card--wide .tour-card__media { aspect-ratio: 11 / 4; }
}

/* Раскрывающийся маршрут */
.route { margin-top: auto; padding-top: 12px; border-top: 1px solid rgba(26, 33, 24, 0.12); }
.route summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  list-style: none;
  font-size: 15px;
  font-weight: 650;
}
.route summary::-webkit-details-marker { display: none; }
.route summary::after { content: "+"; font-size: 22px; font-weight: 400; line-height: 1; transition: transform 0.2s ease; }
.route[open] summary::after { transform: rotate(45deg); }
.route__day { margin: 14px 0 2px; font-size: 14.5px; font-weight: 700; color: var(--rust); }
.route ul { margin: 8px 0 0; padding: 0; list-style: none; font-size: 15px; }
.route li { position: relative; padding-left: 16px; }
.route li::before {
  content: "";
  position: absolute;
  top: 0.62em;
  left: 2px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--rust);
}
.route li + li { margin-top: 3px; }

@media (max-width: 1000px) {
  .tour-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .tour-grid { grid-template-columns: 1fr; }
}


/* ---------- 6. Как проходит тур ---------- */

.process {
  overflow: hidden;
  padding-block: clamp(88px, 12vw, 150px);
  background: var(--ink);
  color: var(--cream);
}
.process__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.1);
  opacity: 0.2;
}
.process__grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(48px, 7vw, 110px);
}
.process__head { position: sticky; top: 110px; align-self: start; }
.process h2 {
  margin-bottom: 22px;
  font-size: clamp(46px, 6vw, 92px);
  line-height: 0.9;
  letter-spacing: -0.045em;
}
.process__lead { max-width: 34ch; margin-bottom: 30px; font-size: clamp(17px, 1.3vw, 20px); opacity: 0.88; }

/* Маршрут-линия со «станциями» */
.steps { position: relative; margin: 0; padding: 0; list-style: none; }
.step { position: relative; padding: 0 0 clamp(30px, 4vw, 46px) 52px; }

/* Точка у каждого шага; у первого — закрашенная (старт) */
.step::before {
  content: "";
  position: absolute;
  z-index: 1;
  top: 6px;
  left: 3px;
  width: 16px;
  height: 16px;
  border: 2.5px solid var(--trail);
  border-radius: 50%;
  background: var(--ink);
}
.step:first-child::before { background: var(--trail); }

/* Волнистая линия от каждой точки до следующей (у финиша линии нет) */
.step:not(.step--finish)::after {
  content: "";
  position: absolute;
  top: 14px;
  bottom: -14px;
  left: 4px;
  z-index: 0;
  width: 14px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='80' viewBox='0 0 14 80'%3E%3Cpath d='M7 0C11 13 11 27 7 40S3 67 7 80' fill='none' stroke='%23E3DC6E' stroke-width='2.4'/%3E%3C/svg%3E") repeat-y center top / 14px 80px;
}

.step h3 { margin-bottom: 8px; font-size: clamp(26px, 2.4vw, 34px); letter-spacing: -0.03em; }
.step p { max-width: 46ch; opacity: 0.85; }

/* Финиш — клетчатый флажок вместо кружка */
.step--finish { padding-bottom: 0; }
.step--finish::before {
  width: 22px;
  height: 22px;
  top: 3px;
  left: 0;
  border: 0;
  border-radius: 2px;
  background: repeating-conic-gradient(var(--trail) 0 25%, var(--ink) 0 50%) 0 0 / 11px 11px;
}

@media (max-width: 900px) {
  .process__grid { grid-template-columns: 1fr; }
  .process__head { position: static; }
}



/* ---------- 7. FAQ ---------- */

.faq { padding-block: clamp(88px, 12vw, 150px); }
.faq__grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(40px, 7vw, 110px);
  align-items: start;
}
.faq__head { position: sticky; top: 110px; }
.faq__head h2 {
  margin-bottom: 20px;
  font-size: clamp(46px, 6vw, 92px);
  line-height: 0.9;
  letter-spacing: -0.045em;
}
.faq__head p { max-width: 30ch; margin-bottom: 28px; font-size: clamp(17px, 1.3vw, 20px); color: var(--muted); }

.faq__list { border-top: 2px solid var(--ink); }
.faq__item { border-bottom: 1px solid rgba(26, 33, 24, 0.18); }
.faq__item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 0;
  cursor: pointer;
  list-style: none;
  font-size: clamp(19px, 1.6vw, 24px);
  font-weight: 650;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "+";
  flex: none;
  font-size: 28px;
  font-weight: 400;
  line-height: 1;
  transition: transform 0.2s ease;
}
.faq__item[open] summary::after { transform: rotate(45deg); }
.faq__item p { max-width: 60ch; padding: 0 0 24px; color: #3D4738; }

@media (max-width: 900px) {
  .faq__grid { grid-template-columns: 1fr; }
  .faq__head { position: static; }
}

/* ---------- 8. Забронировать ---------- */

.cta {
  overflow: hidden;
  padding-block: clamp(96px, 12vw, 170px);
  background: var(--trail);
  color: var(--ink);
  text-align: center;
}
.cta h2 {
  font-size: clamp(56px, 9vw, 150px);
  font-weight: 800;
  line-height: 0.88;
  letter-spacing: -0.05em;
}
.cta__text { max-width: 46ch; margin: 26px auto 36px; font-size: clamp(17px, 1.4vw, 20px); }
.cta__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.cta__actions [hidden] { display: none; }


/* ---------- 9. Подвал ---------- */

.site-footer {
  padding-block: 56px 36px;
  background: var(--ink);
  color: var(--cream);
  font-size: 15px;
}
.site-footer__top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(243, 236, 216, 0.15);
}
.site-footer__tagline { max-width: 36ch; margin-top: 14px; opacity: 0.7; }
.site-footer__nav { display: flex; flex-wrap: wrap; gap: 12px 28px; }
.site-footer__nav a { text-decoration: none; opacity: 0.85; }
.site-footer__nav a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 5px; }
.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px 32px;
  padding-top: 24px;
  font-size: 14px;
  opacity: 0.75;
}
.credits { max-width: 640px; }
.credits summary { cursor: pointer; }
.credits ul { margin: 12px 0 0; padding-left: 1.2em; line-height: 1.7; }


/* ---------- Появление блоков при прокрутке ---------- */

.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.js .reveal.is-visible { opacity: 1; transform: none; }


/* ---------- Для тех, у кого в системе отключена анимация ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee__track { animation: none; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .btn:hover, .tour-card:hover .tour-card__media img { transform: none; }
}
