/* ============================================================
   Алёна · сайт о путешествиях
   Дизайн-система. Все цвета и размеры — в переменных ниже:
   поменяешь тут — поменяется на всём сайте.
   ============================================================ */

:root {
  /* цвета */
  --teal:        #0E7C6B;
  --teal-dark:   #0A5F52;
  --teal-soft:   #E6F1EE;
  --paper:       #F6F4F0;
  --white:       #FFFFFF;
  --ink:         #1B2321;
  --muted:       #5C6663;
  --line:        #E3DFD8;

  /* шрифты */
  --font-display: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-text:    "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-hand:    "Caveat", "Segoe Script", cursive;

  /* геометрия */
  --radius:   14px;
  --radius-s: 10px;
  --shadow:      0 18px 40px rgba(27, 35, 33, .10);
  --shadow-soft: 0 8px 24px rgba(27, 35, 33, .08);
  --shadow-lift: 0 26px 60px rgba(27, 35, 33, .18);

  /* ритм */
  --gap:      clamp(20px, 3vw, 36px);
  --section-y: clamp(64px, 9vw, 128px);
  --page-x:   clamp(20px, 5vw, 64px);
  --maxw:     1240px;

  --ease: cubic-bezier(.22, .61, .36, 1);
  color-scheme: light;
}

/* ---------- база ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: clamp(16px, 1.05vw, 18px);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
  /* важно: гасит атрибуты width/height в разметке,
     иначе они ломают заданные в CSS пропорции */
  height: auto;
}

a { color: inherit; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -.01em;
  margin: 0;
}

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

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

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

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

/* ---------- кнопки ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border: 1px solid transparent;
  border-radius: 999px;
  font: 600 .95rem/1 var(--font-text);
  text-decoration: none;
  cursor: pointer;
  transition: background .25s var(--ease), color .25s var(--ease),
              border-color .25s var(--ease), transform .25s var(--ease);
}
.btn:hover { transform: translateY(-2px); }

.btn--primary { background: var(--teal); color: #fff; }
.btn--primary:hover { background: var(--teal-dark); }

.btn--ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, .65);
  backdrop-filter: blur(6px);
}
.btn--ghost:hover { background: rgba(255, 255, 255, .16); border-color: #fff; }

.btn--outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--outline:hover { background: var(--ink); color: #fff; }

.btn--light { background: #fff; color: var(--teal-dark); }
.btn--light:hover { background: #F0F6F4; }

/* ============================================================
   ШАПКА
   ============================================================ */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  transition: background .3s var(--ease), box-shadow .3s var(--ease);
}
.site-header::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(12, 20, 18, .55), transparent);
  pointer-events: none;
  transition: opacity .3s var(--ease);
}
.header-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 78px;
}
/* логотип-имя — как на YouTube-канале: жирный гротеск капсом + слоган */
.brand {
  font-family: var(--font-text);
  font-weight: 800;
  font-size: clamp(.84rem, 1.1vw, 1rem);
  letter-spacing: .11em;
  text-transform: uppercase;
  line-height: 1.15;
  text-decoration: none;
  color: #fff;
  transition: color .3s var(--ease);
  white-space: nowrap;
}
.brand span {
  display: block;
  margin-top: 4px;
  font-weight: 500;
  font-size: .68rem;
  letter-spacing: .06em;
  text-transform: none;
  color: rgba(255, 255, 255, .78);
  transition: color .3s var(--ease);
}

.nav { display: flex; align-items: center; gap: clamp(18px, 2.4vw, 34px); }
.nav a {
  color: #fff;
  text-decoration: none;
  font-size: .93rem;
  font-weight: 500;
  position: relative;
  padding: 6px 0;
  transition: color .3s var(--ease), opacity .25s var(--ease);
}
.nav a::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 1.5px; background: currentColor;
  transform: scaleX(0); transform-origin: left;
  transition: transform .3s var(--ease);
}
.nav a:hover::after { transform: scaleX(1); }

/* состояние после прокрутки — светлая шапка */
.site-header.is-solid {
  background: rgba(246, 244, 240, .92);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--line), 0 10px 30px rgba(27, 35, 33, .06);
}
.site-header.is-solid::after { opacity: 0; }
.site-header.is-solid .brand,
.site-header.is-solid .nav a { color: var(--ink); }
.site-header.is-solid .brand span { color: var(--muted); }
.site-header.is-solid .burger span { background: var(--ink); }

.burger {
  display: none;
  width: 44px; height: 44px;
  border: 0; background: transparent; cursor: pointer;
  padding: 0; position: relative;
}
.burger span {
  position: absolute; left: 10px; right: 10px; height: 2px;
  background: #fff; border-radius: 2px;
  transition: transform .3s var(--ease), opacity .2s var(--ease), background .3s var(--ease);
}
.burger span:nth-child(1) { top: 15px; }
.burger span:nth-child(2) { top: 21px; }
.burger span:nth-child(3) { top: 27px; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ============================================================
   ОБЛОЖКА
   ============================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  padding-block: 140px clamp(56px, 8vw, 96px);
  overflow: hidden;
  isolation: isolate;
}
.hero__bg {
  position: absolute; inset: 0; z-index: -2;
}
.hero__bg img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; }
.hero__bg::after {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(to top, rgba(8, 20, 18, .88) 0%, rgba(8, 20, 18, .46) 46%, rgba(8, 20, 18, .16) 74%, rgba(8, 20, 18, .38) 100%),
    linear-gradient(to right, rgba(8, 20, 18, .62) 0%, rgba(8, 20, 18, .22) 46%, transparent 72%);
}
.hero__inner {
  position: relative;
  color: #fff;
  width: 100%;
}
.hero__copy { max-width: min(100%, 940px); }
.hero__eyebrow {
  font-size: .78rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .82);
  margin: 0 0 18px;
}
.hero__title {
  font-size: clamp(2.9rem, 9.6vw, 8.5rem);
  line-height: .92;
  letter-spacing: -.02em;
  color: #fff;
  margin: 0 0 22px;
  text-shadow: 0 8px 40px rgba(0, 0, 0, .28);
}
.hero__lead {
  max-width: 46ch;
  font-size: clamp(1rem, 1.3vw, 1.18rem);
  color: rgba(255, 255, 255, .92);
  margin-bottom: 30px;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }
/* .polaroid описан ниже, поэтому здесь нужен более точный селектор */
.hero .hero__polaroid {
  position: absolute;
  right: 0;
  bottom: 4px;
  width: clamp(150px, 16vw, 226px);
}
.hero__note {
  position: absolute;
  right: var(--page-x); top: 118px;
  font-size: .74rem; letter-spacing: .2em; text-transform: uppercase;
  color: rgba(255, 255, 255, .88);
}

/* ============================================================
   ПОЛАРОИД — ключевой приём из референса
   ============================================================ */
.polaroid {
  margin: 0;                /* браузер по умолчанию даёт figure отступы по 40px */
  background: var(--white);
  padding: 12px 12px 46px;
  border-radius: 3px;
  box-shadow: var(--shadow-lift);
  transform: rotate(var(--tilt, -3deg));
  transition: transform .45s var(--ease), box-shadow .45s var(--ease);
  position: relative;
}
.polaroid img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  background: #E9E6E0;
}
.polaroid figcaption {
  position: absolute;
  left: 12px; right: 12px; bottom: 10px;
  font-family: var(--font-hand);
  font-size: 1.3rem;
  line-height: 1.15;
  color: #2A3330;
  text-align: center;
}
.polaroid figcaption small {
  display: block;
  white-space: nowrap;
  font-family: var(--font-text);
  font-size: .62rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: -2px;
}

/* ============================================================
   СЕКЦИИ
   ============================================================ */
.section { padding-block: var(--section-y); }
.section--tight { padding-block: clamp(48px, 6vw, 88px); }

.section__eyebrow {
  font-size: .74rem;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--teal);
  margin: 0 0 14px;
  font-weight: 600;
}
.section__title { font-size: clamp(2rem, 4.4vw, 3.4rem); margin-bottom: 18px; }
.section__lead { max-width: 58ch; color: var(--muted); font-size: 1.05rem; }
.section__lead b { color: var(--ink); font-weight: 700; }

/* имя канала внутри описания — ссылка, но не кричащая */
.section__lead a {
  color: var(--ink);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: var(--teal);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
  transition: color .25s var(--ease);
}
.section__lead a:hover { color: var(--teal); }
.section__head { margin-bottom: clamp(36px, 5vw, 64px); }
.section__head--center { text-align: center; margin-inline: auto; }
.section__head--center .section__lead { margin-inline: auto; }

/* ---------- обо мне ---------- */
.about__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(32px, 6vw, 88px);
  align-items: center;
}
.about__text p + p { margin-top: 1.1em; }
.about__facts {
  display: flex; flex-wrap: wrap; gap: 10px;
  margin-top: 28px; padding: 0; list-style: none;
}
.about__facts li {
  background: var(--teal-soft);
  color: var(--teal-dark);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: .86rem;
  font-weight: 600;
}
.about__photos {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(14px, 1.6vw, 22px);
  align-items: start;
}
.about__photos .polaroid:nth-child(1) { --tilt: -5deg; }
.about__photos .polaroid:nth-child(2) { --tilt: 4deg; margin-top: clamp(22px, 3vw, 44px); }
.about__photos .polaroid:nth-child(3) {
  --tilt: -2deg;
  grid-column: 1 / -1;
  justify-self: center;
  width: 62%;
  z-index: 2;
}

/* ---------- где я была ---------- */
.places__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: clamp(18px, 2.6vw, 34px) clamp(14px, 2vw, 26px);
}
.places__grid .polaroid:nth-child(6n+1) { --tilt: -4deg; }
.places__grid .polaroid:nth-child(6n+2) { --tilt: 3deg; }
.places__grid .polaroid:nth-child(6n+3) { --tilt: -2deg; }
.places__grid .polaroid:nth-child(6n+4) { --tilt: 4.5deg; }
.places__grid .polaroid:nth-child(6n+5) { --tilt: -3.5deg; }
.places__grid .polaroid:nth-child(6n+6) { --tilt: 2.5deg; }
.places__grid .polaroid:nth-child(even) { margin-top: clamp(10px, 2vw, 28px); }

.places__count {
  display: flex; flex-wrap: wrap; gap: 34px;
  margin-top: clamp(40px, 5vw, 64px);
  padding-top: 32px;
  border-top: 1px solid var(--line);
}
.places__count div { min-width: 120px; }
.places__count b {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.4vw, 2.9rem);
  color: var(--teal);
  line-height: 1;
}
.places__count span { font-size: .84rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }

/* ---------- влоги ---------- */
.vlogs { background: var(--white); }
.vlogs__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: clamp(22px, 2.6vw, 34px);
}
.vlog-card {
  background: var(--paper);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
  display: flex; flex-direction: column;
}
.vlog-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }

.vlog-card__media {
  position: relative;
  aspect-ratio: 16 / 10;
  background: #D9D5CE;
  border: 0; padding: 0; margin: 0;
  width: 100%;
  cursor: pointer;
  overflow: hidden;
  display: block;
}
.vlog-card__media img {
  width: 100%; height: 100%; object-fit: cover; object-position: 50% 32%;
  transition: transform .6s var(--ease), filter .4s var(--ease);
}
.vlog-card:hover .vlog-card__media img { transform: scale(1.05); }
.vlog-card__media::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(10, 22, 20, .45), transparent 55%);
}
.vlog-card__play {
  position: absolute; inset: 0; margin: auto;
  width: 64px; height: 64px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .92);
  display: grid; place-items: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .28);
  transition: transform .3s var(--ease), background .3s var(--ease);
  z-index: 1;
}
.vlog-card__play svg { width: 22px; height: 22px; fill: var(--teal-dark); margin-left: 3px; }
.vlog-card__media:hover .vlog-card__play { transform: scale(1.1); background: #fff; }

.vlog-card__badge {
  position: absolute; top: 14px; left: 14px; z-index: 2;
  background: rgba(255, 255, 255, .92);
  color: var(--teal-dark);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: .74rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
}
.vlog-card__body { padding: 22px 24px 26px; flex: 1; display: flex; flex-direction: column; }
.vlog-card__title { font-size: 1.32rem; margin-bottom: 8px; }
.vlog-card__meta {
  margin-top: auto;
  font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted);
  display: flex; gap: 14px; flex-wrap: wrap; padding-top: 14px;
}
.vlog-card__text { color: var(--muted); font-size: .95rem; }

/* карточка «скоро» — пока нет ссылки на видео */
.vlog-card--soon .vlog-card__media { cursor: default; }
.vlog-card--soon .vlog-card__media img { filter: saturate(.55) brightness(.9); }
.vlog-card--soon .vlog-card__play { display: none; }

.vlogs__footer { margin-top: clamp(36px, 4vw, 56px); text-align: center; }

/* встроенный плеер после клика */
.vlog-card__media iframe {
  position: absolute; inset: 0;
  width: 100%; height: 100%; border: 0; z-index: 3;
}



/* ---------- чек-лист маршрута ---------- */
.checklist { background: var(--white); }

.checklist__facts {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(20px, 4vw, 64px);
  list-style: none;
  margin: 0 0 clamp(40px, 5vw, 64px);
  padding: 0 0 clamp(32px, 4vw, 44px);
  border-bottom: 1px solid var(--line);
  text-align: center;
}
.checklist__facts b {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2vw, 1.5rem);
  color: var(--teal);
  line-height: 1.2;
}
.checklist__facts span {
  font-size: .78rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}

.tabs__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: clamp(16px, 2vw, 26px);
}

.tab-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(20px, 2.2vw, 28px);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.tab-card:hover {
  transform: translateY(-4px);
  border-color: transparent;
  box-shadow: var(--shadow-soft);
}

.tab-card__num {
  display: block;
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--teal);
  letter-spacing: .06em;
  margin-bottom: 10px;
}

.tab-card__title { font-size: 1.15rem; margin-bottom: 8px; }

.tab-card__text {
  font-size: .92rem;
  line-height: 1.6;
  color: var(--muted);
}

.pullquote {
  margin: clamp(44px, 5vw, 72px) auto 0;
  max-width: 46ch;
  text-align: center;
}
.pullquote blockquote {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.4vw, 1.75rem);
  line-height: 1.35;
  color: var(--ink);
}
.pullquote::before {
  content: "";
  display: block;
  width: 46px; height: 2px;
  background: var(--teal);
  margin: 0 auto 26px;
}

/* ---------- статьи ---------- */
.articles__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: clamp(22px, 2.6vw, 34px);
}

.article-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  text-decoration: none;
  color: inherit;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.article-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }

.article-card__media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #D9D5CE;
}
.article-card__media img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: 50% 40%;
  transition: transform .6s var(--ease);
}
.article-card:hover .article-card__media img { transform: scale(1.05); }

.article-card__source {
  position: absolute; top: 14px; left: 14px;
  background: rgba(255, 255, 255, .92);
  color: var(--teal-dark);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: .72rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
}

.article-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 22px 24px 26px;
}

.article-card__title {
  display: block;
  font-family: var(--font-display);
  font-size: 1.32rem;
  line-height: 1.2;
  margin-bottom: 8px;
}

.article-card__text {
  display: block;
  color: var(--muted);
  font-size: .95rem;
  line-height: 1.6;
}

.article-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 16px;
  font-size: .82rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
}
.article-card__meta svg {
  flex: none;
  width: 18px; height: 18px;
  stroke: var(--teal);
  transition: transform .3s var(--ease);
}
.article-card:hover .article-card__meta svg { transform: translate(3px, -3px); }

/* ---------- гайды ---------- */
.guides {
  background: var(--teal);
  color: #fff;
  border-radius: clamp(16px, 2vw, 28px);
  padding: clamp(40px, 5.5vw, 80px);
  position: relative;
  overflow: hidden;
}
.guides__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
  position: relative;
  z-index: 1;
}
.guides .section__eyebrow { color: rgba(255, 255, 255, .78); }
.guides h2 { color: #fff; font-size: clamp(1.9rem, 3.6vw, 3rem); margin-bottom: 16px; }
.guides p { color: rgba(255, 255, 255, .88); }
.guides__list { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 14px; }
.guides__list li {
  display: flex; gap: 14px; align-items: flex-start;
  font-size: .98rem; color: rgba(255, 255, 255, .92);
}
.guides__list svg { flex: none; width: 20px; height: 20px; margin-top: 3px; stroke: #fff; }

/* ---------- форма заявки ---------- */
.request {
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: var(--radius);
  padding: clamp(22px, 2.8vw, 32px);
  backdrop-filter: blur(6px);
}

.field { margin-bottom: 16px; }

.field label {
  display: block;
  font-size: .78rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .78);
  margin-bottom: 8px;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: var(--radius-s);
  border: 1px solid rgba(255, 255, 255, .35);
  background: rgba(255, 255, 255, .96);
  color: var(--ink);
  font: 500 1rem var(--font-text);
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}

.field textarea { resize: vertical; min-height: 96px; line-height: 1.5; }

.field input::placeholder,
.field textarea::placeholder { color: #8D9794; }

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: #fff;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, .35);
}

/* стрелка у выпадающего списка — своя, чтобы вид был одинаковым во всех браузерах */
.field select {
  appearance: none;
  cursor: pointer;
  padding-right: 48px;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231B2321' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 18px;
}

.request .btn {
  width: 100%;
  justify-content: center;
  margin-top: 6px;
  padding-block: 16px;
  font-size: 1rem;
}

.request__ok {
  display: none;
  background: rgba(255, 255, 255, .18);
  border-radius: var(--radius-s);
  padding: 16px 18px;
  font-size: .96rem;
  color: #fff;
}

.request__error {
  display: none;
  background: rgba(255, 233, 210, .22);
  border: 1px solid rgba(255, 255, 255, .35);
  border-radius: var(--radius-s);
  padding: 16px 18px;
  font-size: .94rem;
  color: #fff;
  margin-top: 14px;
}

.request__note {
  font-size: .78rem;
  color: rgba(255, 255, 255, .7);
  margin-top: 14px;
}

/* ---------- подвал ---------- */
.site-footer {
  background: var(--teal-dark);
  color: #fff;
  padding-block: clamp(52px, 6vw, 84px) 34px;
  margin-top: var(--section-y);
}
.footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) repeat(2, minmax(0, 1fr));
  gap: clamp(28px, 4vw, 56px);
}
.footer__brand {
  font-family: var(--font-text);
  font-weight: 800;
  font-size: clamp(1.15rem, 2.2vw, 1.6rem);
  letter-spacing: .1em;
  text-transform: uppercase;
  line-height: 1.2;
  margin-bottom: 6px;
}
.footer__tagline {
  font-size: .92rem;
  color: rgba(255, 255, 255, .72);
  margin-bottom: 16px;
}
.footer p { color: rgba(255, 255, 255, .8); font-size: .95rem; }
.footer__col h4 {
  font: 600 .78rem/1 var(--font-text);
  letter-spacing: .18em; text-transform: uppercase;
  color: rgba(255, 255, 255, .65);
  margin: 0 0 18px;
}
.footer__col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.footer__col a { color: rgba(255, 255, 255, .92); text-decoration: none; font-size: .96rem; transition: opacity .2s var(--ease); }
.footer__col a:hover { opacity: .7; text-decoration: underline; text-underline-offset: 4px; }

.social { display: flex; gap: 12px; margin-top: 6px; }
.social a {
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .3);
  transition: background .25s var(--ease), transform .25s var(--ease);
}
.social a:hover { background: rgba(255, 255, 255, .16); transform: translateY(-3px); }
.social svg { width: 19px; height: 19px; fill: #fff; }

.footer__bottom {
  margin-top: clamp(40px, 5vw, 64px);
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, .18);
  display: flex; flex-wrap: wrap; gap: 12px 28px;
  justify-content: space-between;
  font-size: .84rem;
  color: rgba(255, 255, 255, .68);
}


/* ---------- окно «заявка принята» ---------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 24px;
}
.modal[hidden] { display: none; }

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(12, 24, 22, .55);
  backdrop-filter: blur(4px);
  animation: modal-fade .3s var(--ease);
}

.modal__card {
  position: relative;
  width: min(100%, 420px);
  background: var(--paper);
  border-radius: clamp(16px, 2vw, 22px);
  padding: clamp(32px, 4vw, 44px) clamp(26px, 3.5vw, 40px) clamp(28px, 3.5vw, 36px);
  text-align: center;
  box-shadow: 0 40px 90px rgba(12, 24, 22, .35);
  animation: modal-pop .4s var(--ease);
}

.modal__check {
  width: 78px;
  height: 78px;
  margin: 0 auto 22px;
  display: block;
  stroke: var(--teal);
}
.modal__check circle {
  stroke-dasharray: 170;
  stroke-dashoffset: 170;
  animation: modal-draw .55s var(--ease) forwards;
}
.modal__check path {
  stroke-dasharray: 50;
  stroke-dashoffset: 50;
  animation: modal-draw .35s var(--ease) .4s forwards;
}

.modal__title {
  font-size: clamp(1.6rem, 3vw, 2rem);
  margin-bottom: 12px;
}

.modal__text {
  color: var(--muted);
  font-size: 1rem;
  margin-bottom: 26px;
}

.modal__btn { width: 100%; justify-content: center; padding-block: 15px; }

@keyframes modal-fade { from { opacity: 0 } to { opacity: 1 } }
@keyframes modal-pop {
  from { opacity: 0; transform: translateY(16px) scale(.96) }
  to   { opacity: 1; transform: none }
}
@keyframes modal-draw { to { stroke-dashoffset: 0 } }

/* когда окно открыто — страница под ним не прокручивается */
body.is-locked { overflow: hidden; }

/* ============================================================
   ПОЯВЛЕНИЕ ПРИ ПРОКРУТКЕ
   ============================================================ */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
  transition-delay: var(--delay, 0ms);
}
[data-reveal].is-visible { opacity: 1; transform: none; }

/* полароиды въезжают с поворотом */
.polaroid[data-reveal] { transform: translateY(30px) rotate(0deg) scale(.96); }
.polaroid[data-reveal].is-visible { transform: rotate(var(--tilt, -3deg)); }

/* Наведение. Вес селектора должен быть не меньше, чем у правила появления выше,
   иначе после прокрутки ховер перестаёт работать. */
.polaroid:hover,
.polaroid[data-reveal].is-visible:hover {
  transform: rotate(0deg) translateY(-10px) scale(1.05);
  box-shadow: 0 36px 72px rgba(27, 35, 33, .28);
  z-index: 4;
}

/* в стене поездок снимок увеличивается заметнее — его и правда видно ближе */
.places__grid .polaroid:hover,
.places__grid .polaroid[data-reveal].is-visible:hover {
  transform: rotate(0deg) translateY(-12px) scale(1.14);
}

/* на телефонах наведения нет — там подсказка про ховер не нужна */
@media (hover: none) {
  .hint-hover { display: none; }
}

/* ============================================================
   АДАПТИВ
   ============================================================ */
@media (max-width: 1024px) {
  .about__grid { grid-template-columns: 1fr; }
  .about__photos { max-width: 520px; }
  .guides__grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__brand-col { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  .burger { display: block; }
  .nav {
    position: fixed;
    inset: 0 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--paper);
    padding: 92px 24px 28px;
    box-shadow: 0 20px 40px rgba(27, 35, 33, .14);
    transform: translateY(-102%);
    transition: transform .4s var(--ease);
    z-index: -1;
  }
  .nav.is-open { transform: translateY(0); }
  .nav a { color: var(--ink); font-size: 1.15rem; padding: 15px 0; border-bottom: 1px solid var(--line); }
  .nav a:last-child { border-bottom: 0; }

  .hero { align-items: flex-end; min-height: 92svh; }
  .hero__inner { grid-template-columns: 1fr; }
  .hero__polaroid { display: none; }
  .hero__note { display: none; }
  .hero__title { font-size: clamp(2.8rem, 15vw, 5rem); }
  .hero__actions .btn { flex: 1 1 auto; justify-content: center; }

  .places__grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
  .polaroid { padding: 9px 9px 38px; }
  .polaroid figcaption { font-size: 1.1rem; }

  .footer__grid { grid-template-columns: 1fr; }
  .places__count { gap: 24px; }
  .places__count div { min-width: 45%; }
}

@media (max-width: 420px) {
  .places__grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
}

/* ---------- уважение к настройке «уменьшить движение» ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
  .polaroid[data-reveal] { transform: rotate(var(--tilt, -3deg)); }
}

@media print {
  .site-header, .hero__actions, .request { display: none; }
}
