/* Julia Safari — живой полевой дневник: много фото, песок, акация, львиный янтарь, закат */

:root {
  --sand: #F6EFE4;
  --sand-2: #EDE2CF;
  --ink: #1B2A1E;
  --bush: #1E3A2A;
  --bush-2: #2B4D38;
  --lion: #F2A93B;
  --lion-hover: #F8BC5A;
  --sunset: #E5602A;
  --earth: #A4462A;
  --muted: #55604F;
  --cream: #FFF8EC;
  --rule: rgba(27, 42, 30, 0.14);
  --shade: rgba(14, 22, 15, 0.82);

  --sans: "Geologica", system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Literata", Georgia, "Times New Roman", serif;
  --hand: "Caveat", "Segoe Print", "Comic Sans MS", cursive;

  --gutter: clamp(16px, 4vw, 56px);
  --max: 1280px;
  --band-pad: clamp(72px, 9vw, 128px);
  --header-h: 68px;
  --radius: 22px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--sand);
  color: var(--ink);
  font: 400 1.125rem/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; }

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

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

h2 { font-size: clamp(2.25rem, 5vw, 3.75rem); font-weight: 800; letter-spacing: -0.035em; }

p { margin: 0 0 1em; max-width: 62ch; }

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

.skip {
  position: absolute;
  left: -9999px;
  top: 8px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--lion);
  color: var(--ink);
}
.skip:focus { left: 16px; }

.wrap { max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.band { padding-block: var(--band-pad); }

.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }

/* Кнопки и ссылки */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 30px;
  border: 0;
  border-radius: 999px;
  background: var(--lion);
  color: var(--ink);
  font: 650 1.0625rem/1.1 var(--sans);
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, transform 0.15s ease;
}
.btn:hover { background: var(--lion-hover); }
.btn:active { transform: scale(0.97); }
.btn:disabled { opacity: 0.6; cursor: progress; }
.btn-small { min-height: 42px; padding: 0 18px; font-size: 0.9375rem; }
.btn-ink { background: var(--ink); color: var(--cream); }
.btn-ink:hover { background: var(--bush-2); }

.link {
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-decoration-color: var(--lion);
  text-underline-offset: 0.22em;
}
.link:hover { text-decoration-color: currentColor; }
.link-ink { text-decoration-color: var(--ink); }
.link-light { color: var(--cream); }

/* Шапка: прозрачная над фото, песочная после прокрутки */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: var(--header-h);
  padding: 12px var(--gutter);
  color: var(--cream);
  transition: background-color 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}
.site-header.is-scrolled {
  background: rgba(246, 239, 228, 0.94);
  color: var(--ink);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 var(--rule);
}
.site-header--solid { position: sticky; }

.wordmark {
  margin: 0 auto 0 0;
  font-weight: 800;
  font-size: 1.3rem;
  letter-spacing: -0.03em;
  text-decoration: none;
}

.site-nav { display: flex; gap: 24px; }
.site-nav a { font-size: 0.9375rem; font-weight: 500; text-decoration: none; }
.site-nav a:hover { text-decoration: underline; text-decoration-color: var(--lion); text-decoration-thickness: 2px; text-underline-offset: 0.3em; }

/* Первый экран: три страны — три фото */

.hero {
  position: relative;
  height: 100svh;
  min-height: 620px;
  max-height: 1100px;
  overflow: hidden;
  background: var(--bush);
  color: var(--cream);
}

.hero-panels { position: absolute; inset: 0; display: flex; gap: 3px; }

.hero-panel {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  overflow: hidden;
  transition: flex-grow 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.hero-panel img { width: 100%; height: 100%; object-fit: cover; }

.hero-label {
  position: absolute;
  top: calc(var(--header-h) + 20px);
  left: clamp(14px, 2vw, 28px);
  z-index: 2;
  font: 700 clamp(1.5rem, 2.6vw, 2.5rem)/1 var(--hand);
  color: var(--cream);
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.45);
}
.hero-label::after {
  content: "";
  display: block;
  width: 70%;
  height: 3px;
  margin-top: 4px;
  border-radius: 3px;
  background: var(--lion);
  transform: scaleX(0.4);
  transform-origin: left;
  transition: transform 0.4s ease;
}
.hero-panel:hover .hero-label::after,
.hero-panel:focus-visible .hero-label::after { transform: scaleX(1); }
.hero-panel:focus-visible { outline: 3px solid var(--lion); outline-offset: -6px; }

.hero-panel--wide { flex-grow: 1.8; }

@media (hover: hover) {
  .hero-panel:hover { flex-grow: 1.8; }
  .hero-panel--wide:hover { flex-grow: 2.1; }
}

.hero-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(to bottom,
    rgba(14, 22, 15, 0.55) 0%,
    rgba(14, 22, 15, 0) 22%,
    rgba(14, 22, 15, 0) 42%,
    rgba(14, 22, 15, 0.85) 100%);
}

.hero-content {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  padding: 0 var(--gutter) clamp(40px, 7vh, 88px);
  pointer-events: none;
}
.hero-content a { pointer-events: auto; }

.hero h1 {
  margin-bottom: 0.3em;
  font-size: clamp(2.6rem, 7vw, 6.75rem);
  font-weight: 800;
  line-height: 0.94;
  letter-spacing: -0.045em;
  text-shadow: 0 2px 30px rgba(0, 0, 0, 0.25);
}
.hero h1 span { display: block; }

.lede {
  max-width: 40ch;
  margin-bottom: 28px;
  color: rgba(255, 248, 236, 0.92);
  font-size: clamp(1.0625rem, 1.4vw, 1.3125rem);
  line-height: 1.5;
}

@media (prefers-reduced-motion: no-preference) {
  .hero-panel { animation: panel-in 1.1s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
  .hero-panel:nth-child(2) { animation-delay: 0.12s; }
  .hero-panel:nth-child(3) { animation-delay: 0.24s; }
  .hero-panel img { animation: drift 20s ease-in-out infinite alternate; }
  .hero-panel:nth-child(2) img { animation-delay: -7s; }
  .hero-panel:nth-child(3) img { animation-delay: -13s; }
  .hero h1 span { animation: rise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
  .hero h1 span:nth-child(1) { animation-delay: 0.45s; }
  .hero h1 span:nth-child(2) { animation-delay: 0.55s; }
  .hero h1 span:nth-child(3) { animation-delay: 0.65s; }
  .hero .lede,
  .hero .actions { animation: fade 0.8s ease 0.9s both; }
}

@keyframes panel-in { from { opacity: 0; transform: translateY(6%); } }
@keyframes drift { from { transform: scale(1); } to { transform: scale(1.09); } }
@keyframes rise { from { opacity: 0; transform: translateY(0.4em); } }
@keyframes fade { from { opacity: 0; } }

/* Полароиды */

.polaroid {
  position: relative;
  margin: 0;
  padding: 12px 12px 0;
  border-radius: 3px;
  background: #fff;
  box-shadow: 0 18px 40px rgba(27, 42, 30, 0.2), 0 2px 6px rgba(27, 42, 30, 0.08);
}
.polaroid::before {
  content: "";
  position: absolute;
  top: -12px;
  left: 50%;
  width: 88px;
  height: 26px;
  background: rgba(242, 169, 59, 0.6);
  transform: translateX(-50%) rotate(-4deg);
}
.polaroid img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.polaroid figcaption {
  padding: 12px 4px 14px;
  font: 600 1.625rem/1 var(--hand);
  color: var(--ink);
  text-align: center;
}

/* Обо мне */

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(48px, 7vw, 112px);
  align-items: center;
}

.polaroids { position: relative; min-height: clamp(380px, 38vw, 500px); }
.polaroid--back { position: absolute; top: 0; left: 0; width: 52%; transform: rotate(-6deg); }
.polaroid--back img { aspect-ratio: 4 / 5; }
.polaroid--front { position: absolute; right: -2%; bottom: 0; width: 50%; transform: rotate(4deg); }

.about-text h2 { max-width: 15ch; margin-bottom: 0.55em; }
.about-text p { font-family: var(--serif); font-size: 1.25rem; line-height: 1.7; max-width: 54ch; }

/* Бегущая лента фото */

.strip { overflow: hidden; padding-bottom: 8px; }
.strip-track { display: flex; width: max-content; animation: marquee 70s linear infinite; }
.strip:hover .strip-track { animation-play-state: paused; }

.shot {
  position: relative;
  flex: none;
  height: clamp(200px, 22vw, 300px);
  aspect-ratio: 4 / 5;
  margin: 0 14px 0 0;
  overflow: hidden;
  border-radius: 18px;
  background: var(--sand-2);
}
.shot--wide { aspect-ratio: 3 / 2; }
.shot:nth-child(odd) { transform: rotate(-1.2deg); }
.shot:nth-child(even) { transform: rotate(1deg) translateY(10px); }
.shot img { width: 100%; height: 100%; object-fit: cover; }
.shot::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(14, 22, 15, 0.6), rgba(14, 22, 15, 0) 45%);
}
.shot figcaption {
  position: absolute;
  z-index: 1;
  left: 16px;
  right: 16px;
  bottom: 12px;
  font: 700 1.5rem/1.05 var(--hand);
  color: var(--cream);
}

@keyframes marquee { to { transform: translateX(-50%); } }

/* Направления */

.where h2 { font-size: clamp(2.5rem, 6vw, 4.5rem); }

.dest { margin-top: clamp(56px, 7vw, 104px); }
.dest:first-of-type { margin-top: clamp(36px, 4vw, 56px); }

.dest-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px 48px;
  margin-bottom: 24px;
}
.dest h3 {
  font-size: clamp(3rem, 8vw, 6.5rem);
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: -0.05em;
}
.dest-tag { margin: 0.2em 0 0; font: 700 clamp(1.5rem, 2.4vw, 2rem)/1.1 var(--hand); color: var(--earth); }
.dest-side { max-width: 420px; }
.dest-side p { color: var(--muted); }

.mosaic {
  display: grid;
  grid-template-columns: 1.7fr 1fr 1fr;
  grid-template-rows: repeat(2, clamp(210px, 19vw, 280px));
  grid-template-areas: "a b c" "a d d";
  gap: 12px;
}

.tile { position: relative; margin: 0; overflow: hidden; border-radius: var(--radius); background: var(--sand-2); }
.tile--big { grid-area: a; }
.tile:nth-child(2) { grid-area: b; }
.tile:nth-child(3) { grid-area: c; }
.tile--wide { grid-area: d; }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1); }
.tile:hover img { transform: scale(1.05); }
.tile::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(to top, var(--shade), rgba(14, 22, 15, 0) 58%);
}
.tile figcaption {
  position: absolute;
  z-index: 1;
  left: 20px;
  right: 20px;
  bottom: 18px;
  max-width: 44ch;
  color: rgba(255, 248, 236, 0.9);
  font-size: 0.9375rem;
  line-height: 1.4;
}
.tile figcaption b { display: block; margin-bottom: 4px; color: var(--cream); font-size: 1.375rem; font-weight: 750; letter-spacing: -0.01em; }
.tile--big figcaption b { font-size: 2rem; }

/* Как я работаю */

.how { background: var(--bush); color: var(--cream); }
.how :focus-visible { outline-color: var(--lion); }

.how-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}
.how-photo { position: sticky; top: calc(var(--header-h) + 24px); }
.how-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 60%; border-radius: var(--radius); }
.how h2 { margin-bottom: 40px; color: var(--cream); }

.principles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 40px; }
.principles > div { padding-top: 18px; border-top: 2px solid var(--lion); }
.principles h3 { margin-bottom: 0.5em; font-size: 1.375rem; line-height: 1.2; color: var(--lion); }
.principles p { margin: 0; color: rgba(255, 248, 236, 0.82); }

.team {
  max-width: 36ch;
  margin: clamp(56px, 7vw, 96px) auto 0;
  font: 600 clamp(1.75rem, 3vw, 2.5rem)/1.2 var(--hand);
  color: var(--lion-hover);
  text-align: center;
}

/* Сафари-баллы */

.score { background: var(--lion); }

.score-head {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 24px 64px;
  align-items: end;
  margin-bottom: clamp(32px, 4vw, 48px);
}
.score h2 { font-size: clamp(3rem, 8vw, 6.5rem); line-height: 0.9; letter-spacing: -0.05em; }
.score-intro p { margin: 0 0 0.75em; font-size: 1.125rem; }
.score-intro p:last-child { margin: 0; }

.cards {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.card {
  position: relative;
  display: block;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 18px;
  background: var(--bush);
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.card input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.card:hover img { transform: scale(1.06); }
.card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(to top, var(--shade), rgba(14, 22, 15, 0) 55%);
}
.card-name {
  position: absolute;
  z-index: 2;
  left: 14px;
  right: 14px;
  bottom: 12px;
  color: var(--cream);
  font-size: 1.0625rem;
  font-weight: 650;
  line-height: 1.2;
}
.card-name small { display: block; margin-top: 3px; font: 700 1.1875rem/1.05 var(--hand); color: var(--lion-hover); }
.card-pts {
  position: absolute;
  z-index: 2;
  top: 12px;
  right: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 50px;
  height: 50px;
  padding: 0 8px;
  border-radius: 999px;
  background: var(--cream);
  color: var(--ink);
  font-size: 1.0625rem;
  font-weight: 800;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.3s cubic-bezier(0.3, 1.6, 0.5, 1);
}
.card-pts::before { content: "+"; }

.card.is-on { box-shadow: 0 0 0 4px var(--ink), 0 16px 32px rgba(27, 42, 30, 0.3); transform: translateY(-4px) rotate(-1.2deg); }
.card.is-on:nth-child(even) { transform: translateY(-4px) rotate(1.2deg); }
.card.is-on .card-pts { background: var(--sunset); color: #fff; transform: rotate(-10deg) scale(1.12); }
.card.is-on::before {
  content: "Хочу!";
  position: absolute;
  z-index: 3;
  top: 14px;
  left: 12px;
  padding: 2px 10px 5px;
  border-radius: 8px;
  background: var(--ink);
  color: var(--lion);
  font: 700 1.5rem/1 var(--hand);
  transform: rotate(-7deg);
}
.card:has(input:focus-visible) { outline: 3px solid var(--ink); outline-offset: 3px; }

.score-bar {
  position: sticky;
  bottom: 16px;
  z-index: 5;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 28px;
  margin-top: 28px;
  padding: 12px 12px 12px 30px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--cream);
  box-shadow: 0 14px 34px rgba(27, 42, 30, 0.32);
}
.score-total { display: flex; align-items: baseline; gap: 8px; margin: 0; }
.score-total output {
  font-size: 2.75rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}
.score-total output.is-bumped { animation: bump 0.35s ease; }
.score-total span { color: rgba(255, 248, 236, 0.7); }
.verdict { flex: 1 1 240px; margin: 0; font: 700 1.5rem/1.15 var(--hand); color: var(--lion-hover); }
.score-bar .btn { flex: none; }

@keyframes bump { 40% { transform: scale(1.15); } }

/* Истории */

.stories-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px 48px;
}
.stories-head h2 { margin-bottom: 0.4em; }
.stories-head p { max-width: 50ch; margin: 0; color: var(--muted); }

.entries {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 44px 28px;
  margin-top: clamp(36px, 5vw, 56px);
}

.entry { position: relative; }
.entry img {
  width: 100%;
  aspect-ratio: 4 / 3;
  margin-bottom: 16px;
  object-fit: cover;
  border-radius: 18px;
  transition: transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.entry:hover img { transform: rotate(-1.5deg) scale(1.02); }
.entry time { font-size: 0.9375rem; font-weight: 500; color: var(--earth); }
.entry h3 {
  margin: 0.3em 0 0.45em;
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: 0;
}
.entry h3 a { text-decoration: none; }
.entry h3 a::after { content: ""; position: absolute; inset: 0; }
.entry:hover h3 a { text-decoration: underline; text-decoration-color: var(--lion); text-decoration-thickness: 2px; text-underline-offset: 0.18em; }
.entry p { margin: 0; font-family: var(--serif); color: var(--muted); line-height: 1.6; }

/* Отзыв на фоне заката */

.review {
  position: relative;
  overflow: hidden;
  padding-block: clamp(110px, 14vw, 200px);
  background: var(--bush);
  color: var(--cream);
}
.review-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 32% 50%; }
.review::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(14, 22, 15, 0.8), rgba(14, 22, 15, 0.35));
}
.review .wrap { position: relative; z-index: 1; }
.review figure { margin: 0; }
.review blockquote { margin: 0; }
.review blockquote p {
  max-width: 30ch;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.625rem, 3.4vw, 2.75rem);
  font-weight: 450;
  line-height: 1.3;
  text-indent: -0.45em;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}
.review blockquote p::before { content: "«"; }
.review blockquote p::after { content: "»"; }
.review figcaption { margin-top: 28px; font: 700 1.625rem/1.2 var(--hand); color: var(--lion-hover); }
.review figcaption .link { margin-left: 10px; font: 600 1rem/1 var(--sans); }

/* Как всё устроено */

.process { background: var(--sand-2); }

.steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px;
  margin: clamp(40px, 5vw, 64px) 0 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}
.steps::before {
  content: "";
  position: absolute;
  top: 32px;
  left: 32px;
  right: 18%;
  border-top: 3px dashed rgba(27, 42, 30, 0.3);
}
.steps li { position: relative; counter-increment: step; }
.steps li::before {
  content: counter(step);
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin-bottom: 20px;
  border-radius: 50%;
  background: var(--lion);
  color: var(--ink);
  font: 700 2.25rem/1 var(--hand);
  box-shadow: 0 0 0 8px var(--sand-2);
}
.steps li:last-child::before { background: var(--sunset); color: #fff; }
.steps h3 { margin-bottom: 0.45em; font-size: 1.3125rem; line-height: 1.25; }
.steps p { margin: 0; color: var(--muted); }

/* Занзибар */

.zanzibar-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(48px, 6vw, 96px);
  align-items: center;
}
.zanzibar-photos { position: relative; padding-bottom: 64px; }
.zanzibar-main { width: 86%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); }
.polaroid--small { position: absolute; right: 0; bottom: 0; width: 46%; transform: rotate(5deg); }
.zanzibar h2 { max-width: 13ch; margin-bottom: 0.5em; }
.zanzibar-intro { color: var(--muted); font-size: 1.125rem; }

.guide { margin: 0 0 32px; padding: 0; list-style: none; }
.guide a {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 24px;
  padding: 14px 0;
  border-bottom: 1px solid var(--rule);
  text-decoration: none;
}
.guide span { font-weight: 600; font-size: 1.125rem; }
.guide small { color: var(--muted); font-size: 0.9375rem; }
.guide a:hover span { text-decoration: underline; text-decoration-color: var(--lion); text-decoration-thickness: 2px; text-underline-offset: 0.2em; }

/* Вопросы */

.faq { background: var(--sand-2); }
.faq-grid {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: clamp(40px, 6vw, 96px);
}
.faq h2 { max-width: 10ch; }
.polaroid--faq { width: 78%; max-width: 300px; margin-top: 48px; transform: rotate(-3deg); }
.polaroid--faq img { aspect-ratio: 4 / 5; }

.faq details { border-top: 1px solid var(--rule); }
.faq details:last-child { border-bottom: 1px solid var(--rule); }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 0;
  font-weight: 650;
  font-size: 1.25rem;
  line-height: 1.3;
  list-style: none;
  cursor: pointer;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  flex: none;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--lion);
  color: var(--ink);
  font-size: 1.5rem;
  font-weight: 500;
  line-height: 1;
  transition: transform 0.25s ease, background-color 0.25s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); background: var(--ink); color: var(--cream); }
.faq .answer { padding-bottom: 24px; }
.faq .answer p { color: var(--muted); }
.faq .answer p:last-child { margin-bottom: 0; }

/* Заявка на фоне заката */

.lead {
  position: relative;
  overflow: hidden;
  padding-block: var(--band-pad);
  background: var(--bush);
  color: var(--cream);
}
.lead-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; }
.lead::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(14, 22, 15, 0.6), rgba(14, 22, 15, 0.15) 55%, rgba(14, 22, 15, 0.35));
}
.lead .wrap { position: relative; z-index: 1; }

.lead-grid {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: 48px;
  align-items: center;
}
.lead-note { margin: 0 0 0.15em; font: 700 clamp(4rem, 9vw, 7.5rem)/0.9 var(--hand); color: var(--lion-hover); }
.lead-copy p:not(.lead-note) { max-width: 30ch; font-size: 1.3125rem; text-shadow: 0 1px 14px rgba(0, 0, 0, 0.4); }

.lead-card {
  padding: clamp(24px, 3.4vw, 44px);
  border-radius: 28px;
  background: var(--sand);
  color: var(--ink);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.38);
}
.lead-card :focus-visible { outline-color: var(--earth); }
.lead-card h2 { margin-bottom: 0.4em; font-size: clamp(2rem, 3.6vw, 2.75rem); }
.lead-intro { color: var(--muted); }

.picked { margin: 0 0 22px; padding: 14px 16px; border-radius: 14px; background: var(--sand-2); }
.picked p { margin: 0; }
.picked p + p { margin-top: 8px; }
.picked b { font-weight: 650; color: var(--earth); }
.picked-clear {
  margin-left: 6px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--muted);
  font-size: 0.9375rem;
  text-decoration: underline;
  text-underline-offset: 0.2em;
  cursor: pointer;
}
.picked-clear:hover { color: var(--ink); }

.field { margin-bottom: 16px; }
.field label { display: block; margin-bottom: 7px; font-weight: 600; }
.field input {
  width: 100%;
  min-height: 56px;
  padding: 0 18px;
  border: 2px solid var(--rule);
  border-radius: 14px;
  background: #fff;
  color: var(--ink);
  font: 400 1.125rem/1 var(--sans);
  transition: border-color 0.15s ease;
}
.field input:focus { border-color: var(--lion); outline: none; }
.field input:focus-visible { outline: 3px solid var(--lion); outline-offset: 1px; }
.field input::placeholder { color: #9AA092; }
.field input[aria-invalid="true"] { border-color: #C2412D; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.consent {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  margin: 4px 0 18px;
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.45;
  cursor: pointer;
}
.consent a { color: var(--ink); text-underline-offset: 0.2em; }
.consent input {
  appearance: none;
  -webkit-appearance: none;
  display: grid;
  place-content: center;
  width: 24px;
  height: 24px;
  margin: 0;
  border: 2px solid var(--ink);
  border-radius: 6px;
  background: #fff;
  cursor: pointer;
}
.consent input::after {
  content: "";
  width: 12px;
  height: 7px;
  border-left: 3px solid var(--lion);
  border-bottom: 3px solid var(--lion);
  transform: rotate(-45deg) translate(1px, -1px) scale(0);
  transition: transform 0.12s ease;
}
.consent input:checked { background: var(--ink); }
.consent input:checked::after { transform: rotate(-45deg) translate(1px, -1px) scale(1); }
.consent input[aria-invalid="true"] { border-color: #C2412D; }

.form-error { margin: 0 0 14px; color: #B3261E; font-weight: 500; }
#lead-form .btn { width: 100%; }

.lead-done { outline: none; }
.lead-done p { color: var(--muted); font-size: 1.125rem; }
.lead-done b { color: var(--earth); white-space: nowrap; }

/* Подвал */

.site-footer { padding-block: 56px; background: var(--bush); color: rgba(255, 248, 236, 0.75); }
.site-footer :focus-visible { outline-color: var(--lion); }
.footer-grid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 28px 64px; }
.site-footer p { margin: 0; }
.site-footer .wordmark { margin-bottom: 6px; color: var(--cream); }
.footer-links { display: flex; flex-wrap: wrap; gap: 12px 28px; max-width: 760px; margin: 0; padding: 0; list-style: none; }
.footer-links a { color: var(--cream); text-decoration: underline; text-decoration-color: var(--lion); text-decoration-thickness: 2px; text-underline-offset: 0.22em; }

/* Юридические страницы */

.doc { max-width: 760px; padding-block: clamp(48px, 7vw, 96px); }
.doc h1 { margin-bottom: 0.4em; font-size: clamp(2rem, 4.5vw, 3rem); font-weight: 800; letter-spacing: -0.03em; }
.doc h2 { margin: 2em 0 0.6em; font-size: 1.5rem; font-weight: 700; letter-spacing: -0.01em; }
.doc p,
.doc li { max-width: 68ch; }
.doc ul { padding-left: 1.2em; }
.doc li + li { margin-top: 0.35em; }
.doc-date { color: var(--muted); }
.doc .todo { padding: 0 4px; border-radius: 3px; background: var(--lion-hover); color: var(--ink); }

/* Плавающая кнопка на телефоне */

.sticky-cta { display: none; }

/* Адаптив */

@media (max-width: 1000px) {
  .site-nav { display: none; }
  .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 32px; }
  .steps::before { display: none; }
  .principles { grid-template-columns: 1fr; }
}

@media (max-width: 820px) {
  .hero { min-height: 560px; }
  .hero-label { top: calc(var(--header-h) + 12px); font-size: 1.375rem; }
  .hero-label::after { display: none; }

  .about-grid,
  .how-grid,
  .score-head,
  .zanzibar-grid,
  .faq-grid,
  .lead-grid { grid-template-columns: 1fr; }

  .polaroids { min-height: 0; aspect-ratio: 1 / 0.92; max-width: 440px; }

  .mosaic,
  .entries {
    display: flex;
    gap: 12px;
    margin-inline: calc(-1 * var(--gutter));
    padding-inline: var(--gutter);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--gutter);
    scrollbar-width: none;
  }
  .mosaic::-webkit-scrollbar,
  .entries::-webkit-scrollbar { display: none; }
  .tile { flex: 0 0 84%; height: 420px; scroll-snap-align: start; }
  .entry { flex: 0 0 80%; scroll-snap-align: start; }

  .how-photo { position: static; }
  .how-photo img { aspect-ratio: 3 / 2; }

  .score-bar { gap: 2px 12px; border-radius: 22px; padding: 10px 12px 12px 18px; }
  .score-total output { font-size: 2.125rem; }
  .verdict { order: 3; flex-basis: 100%; font-size: 1.1875rem; }
  .score-bar .btn { flex: 1 1 auto; min-height: 44px; padding: 0 16px; font-size: 0.9375rem; }

  .zanzibar-photos { max-width: 520px; }
  .polaroid--faq { display: none; }
  .faq h2,
  .zanzibar h2 { max-width: none; }

  .steps { grid-template-columns: 1fr; gap: 28px; }
  .steps::before { display: block; top: 32px; bottom: 32px; left: 31px; right: auto; border-top: 0; border-left: 3px dashed rgba(27, 42, 30, 0.3); }
  .steps li { display: grid; grid-template-columns: 64px minmax(0, 1fr); column-gap: 20px; }
  .steps li::before { grid-row: span 2; margin-bottom: 0; }

  .sticky-cta {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: 16px;
    z-index: 60;
    display: flex;
    box-shadow: 0 8px 24px rgba(27, 42, 30, 0.3);
    transition: transform 0.25s ease, opacity 0.25s ease;
  }
  .sticky-cta.is-hidden { transform: translateY(140%); opacity: 0; pointer-events: none; }
  .site-footer { padding-bottom: 104px; }
}

@media (max-width: 560px) {
  .site-header { gap: 12px; }
  .site-header .btn-small { padding: 0 14px; font-size: 0.875rem; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .card-name { font-size: 0.9375rem; }
  .card-pts { min-width: 42px; height: 42px; font-size: 0.9375rem; }
  .stories-head .btn { width: 100%; }
  .tile figcaption b,
  .tile--big figcaption b { font-size: 1.5rem; }
}

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