/* ==========================================================================
   Паспорт туриста Сочи — design system
   Theme A: "Тёмная Ривьера" — deep sea-ink, brass, editorial typography
   Theme B: "Светлая Ривьера" — sand paper, terracotta, airy cards
   ========================================================================== */

/* ------------------------------------------------------------------ tokens */

:root {
  --font-display: "Playfair Display", "Cormorant Garamond", Georgia, serif;
  --font-body: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --step--1: clamp(0.82rem, 0.79rem + 0.14vw, 0.9rem);
  --step-0: clamp(1rem, 0.96rem + 0.2vw, 1.08rem);
  --step-1: clamp(1.2rem, 1.1rem + 0.5vw, 1.45rem);
  --step-2: clamp(1.5rem, 1.3rem + 1vw, 2rem);
  --step-3: clamp(1.9rem, 1.5rem + 1.9vw, 2.9rem);
  --step-4: clamp(2.4rem, 1.7rem + 3.4vw, 4.4rem);
  --step-5: clamp(3rem, 1.8rem + 5.6vw, 6.2rem);

  --space-2xs: 0.4rem;
  --space-xs: 0.7rem;
  --space-s: 1rem;
  --space-m: 1.6rem;
  --space-l: 2.6rem;
  --space-xl: 4rem;
  --space-2xl: clamp(4rem, 3rem + 6vw, 8rem);

  --wrap: 1240px;
  --wrap-narrow: 760px;
  --radius-s: 6px;
  --radius-m: 14px;
  --radius-l: 26px;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --dur: 0.55s;
}

/* theme A — dark premium (default) */
:root,
[data-theme="A"] {
  color-scheme: dark;
  --bg: #0c1a1c;
  --bg-2: #0f2124;
  --bg-3: #142b2e;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-solid: #12262a;
  --line: rgba(212, 175, 55, 0.18);
  --line-strong: rgba(212, 175, 55, 0.42);
  --text: #f0ece2;
  --text-soft: #c3bcae;
  --text-muted: #8d938f;
  --accent: #d4af37;
  --accent-soft: #f0d98a;
  --accent-ink: #16211f;
  --accent-2: #6fb3a8;
  --shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.75);
  --shadow-soft: 0 12px 30px -14px rgba(0, 0, 0, 0.6);
  --veil: linear-gradient(180deg, rgba(12, 26, 28, 0.15) 0%, rgba(12, 26, 28, 0.72) 52%, #0c1a1c 100%);
  --scrim: linear-gradient(90deg, rgba(12, 26, 28, 0.94) 0%, rgba(12, 26, 28, 0.55) 55%, rgba(12, 26, 28, 0.1) 100%);
  --header-bg: rgba(12, 26, 28, 0.72);
  --radius-card: var(--radius-m);
}

/* theme B — light resort */
[data-theme="B"] {
  color-scheme: light;
  --bg: #fbf8f3;
  --bg-2: #f4eee4;
  --bg-3: #ece4d6;
  --surface: #ffffff;
  --surface-solid: #ffffff;
  --line: rgba(28, 38, 44, 0.1);
  --line-strong: rgba(191, 92, 61, 0.4);
  --text: #1d2a2f;
  --text-soft: #55646b;
  --text-muted: #7d8a90;
  --accent: #bf5c3d;
  --accent-soft: #e0876a;
  --accent-ink: #ffffff;
  --accent-2: #1f6f6b;
  --shadow: 0 24px 44px -22px rgba(29, 42, 47, 0.28);
  --shadow-soft: 0 10px 24px -16px rgba(29, 42, 47, 0.24);
  --veil: linear-gradient(180deg, rgba(20, 30, 34, 0.1) 0%, rgba(20, 30, 34, 0.45) 55%, rgba(20, 30, 34, 0.8) 100%);
  --scrim: linear-gradient(90deg, rgba(251, 248, 243, 0.96) 0%, rgba(251, 248, 243, 0.6) 58%, rgba(251, 248, 243, 0) 100%);
  --header-bg: rgba(251, 248, 243, 0.85);
  --radius-card: var(--radius-l);
}

/* ------------------------------------------------------------------- reset */

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

* {
  margin: 0;
}

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--step-0);
  font-weight: 400;
  line-height: 1.65;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

h1 {
  font-size: var(--step-4);
}
h2 {
  font-size: var(--step-3);
}
h3 {
  font-size: var(--step-1);
}

p {
  text-wrap: pretty;
}

::selection {
  background: var(--accent);
  color: var(--accent-ink);
}

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

/* ---------------------------------------------------------------- utilities */

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 2.4rem);
}

.wrap--narrow {
  max-width: var(--wrap-narrow);
}

.section {
  padding-block: var(--space-2xl);
}

.section--tight {
  padding-block: var(--space-xl);
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent);
}

/* Icons inside text runs must never inherit the block width.
   An <svg> without width/height defaults to 300×150, so a single missing rule
   turns a small glyph into a block-filling monster. Anything rendered inside the
   page content is therefore pinned to the text size; decorative icons get an
   explicit size where they need one. */
.contact-row svg,
.kicker svg,
.fact svg,
.checklist svg,
.breadcrumbs svg,
.guide-actions svg,
p svg,
li svg,
dd svg {
  width: 1.05em;
  min-width: 1.05em;
  max-width: 1.05em;
  height: 1.05em;
  flex-shrink: 0;
}

/* Contact links under a partner or guide description. */
.contact-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.4rem;
}

.contact-row a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.95rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: var(--step--1);
  color: var(--text-soft);
  transition: border-color var(--dur) var(--ease), color var(--dur) var(--ease), transform var(--dur) var(--ease);
}

.contact-row a:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

.kicker::before {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--accent);
  opacity: 0.6;
}

.kicker--bare::before {
  display: none;
}

.lead {
  font-size: var(--step-1);
  color: var(--text-soft);
  max-width: 62ch;
}

.muted {
  color: var(--text-muted);
}

.small {
  font-size: var(--step--1);
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-m);
  flex-wrap: wrap;
  margin-bottom: var(--space-l);
}

.section-head h2 {
  margin-top: 0.5rem;
}

.section-head__link {
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 0.2rem;
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.section-head__link:hover {
  color: var(--accent-soft);
  border-color: var(--accent);
}

.rule {
  height: 1px;
  border: 0;
  background: linear-gradient(90deg, transparent, var(--line-strong) 18%, var(--line-strong) 82%, transparent);
  margin-block: var(--space-l);
}

.ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  color: var(--accent);
  opacity: 0.75;
  margin-block: var(--space-xl);
}

.ornament::before,
.ornament::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-strong));
}

.ornament::after {
  background: linear-gradient(270deg, transparent, var(--line-strong));
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: var(--accent-ink);
  padding: 0.75rem 1.25rem;
  z-index: 100;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

/* ------------------------------------------------------------------ buttons */

.btn {
  --btn-bg: var(--accent);
  --btn-fg: var(--accent-ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.95rem 1.7rem;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-size: var(--step--1);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), background var(--dur) var(--ease),
    color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px -14px color-mix(in srgb, var(--accent) 70%, transparent);
}

.btn:active {
  transform: translateY(0);
}

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--text);
  border-color: var(--line-strong);
}

.btn--ghost:hover {
  --btn-fg: var(--accent);
  border-color: var(--accent);
  box-shadow: none;
}

.btn--quiet {
  --btn-bg: var(--surface);
  --btn-fg: var(--text);
  border-color: var(--line);
}

.btn--quiet:hover {
  --btn-fg: var(--accent);
}

.btn--danger {
  --btn-bg: transparent;
  --btn-fg: #e2775f;
  border-color: rgba(226, 119, 95, 0.4);
}

.btn--danger:hover {
  --btn-bg: rgba(226, 119, 95, 0.12);
  box-shadow: none;
}

.btn--small {
  padding: 0.55rem 1rem;
  font-size: 0.7rem;
}

.btn--block {
  width: 100%;
}

.btn[disabled] {
  opacity: 0.45;
  pointer-events: none;
}

/* ------------------------------------------------------------------- header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--header-bg);
  backdrop-filter: blur(18px) saturate(140%);
  border-bottom: 1px solid var(--line);
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: var(--space-m);
  min-height: 76px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-shrink: 0;
}

.brand__mark {
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  border-radius: 50%;
  /* The artwork is a navy disc: a hairline ring keeps it from floating on the
     dark theme, and a soft glow matches the brass accents. */
  box-shadow: 0 0 0 1px var(--line-strong), 0 6px 18px -10px rgba(0, 0, 0, 0.7);
}

.brand__text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  line-height: 1.2;
  min-width: 0;
}

.brand__name {
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.brand__tag {
  font-size: 0.6rem;
  line-height: 1.3;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.site-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: clamp(0.6rem, 1.6vw, 1.5rem);
  font-size: var(--step--1);
}

.site-nav > a,
.site-nav__toggle {
  position: relative;
  padding: 0.4rem 0;
  color: var(--text-soft);
  background: none;
  border: 0;
  cursor: pointer;
  transition: color var(--dur) var(--ease);
}

.site-nav > a::after,
.site-nav__toggle::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur) var(--ease);
}

.site-nav > a:hover,
.site-nav > a[aria-current="page"],
.site-nav__toggle:hover {
  color: var(--text);
}

.site-nav > a:hover::after,
.site-nav > a[aria-current="page"]::after,
.site-nav__item:hover .site-nav__toggle::after,
.site-nav__item:focus-within .site-nav__toggle::after {
  transform: scaleX(1);
}

.site-nav__item {
  position: relative;
}

.site-nav__menu {
  position: absolute;
  top: calc(100% + 0.75rem);
  left: 50%;
  translate: -50% 0;
  min-width: 260px;
  padding: 0.6rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  background: var(--surface-solid);
  box-shadow: var(--shadow);
  display: grid;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease), visibility var(--dur);
}

[data-theme="A"] .site-nav__menu {
  background: var(--bg-3);
}

.site-nav__item:hover .site-nav__menu,
.site-nav__item:focus-within .site-nav__menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.site-nav__menu a {
  padding: 0.6rem 0.8rem;
  border-radius: var(--radius-s);
  color: var(--text-soft);
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}

.site-nav__menu a:hover {
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  color: var(--text);
}

.header-cta {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.nav-burger {
  display: none;
  margin-left: auto;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.nav-burger span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--text);
  position: relative;
}

.nav-burger span::before,
.nav-burger span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 1.5px;
  background: var(--text);
}

.nav-burger span::before {
  top: -5px;
}
.nav-burger span::after {
  top: 5px;
}

/* --------------------------------------------------------------------- hero */

.hero {
  position: relative;
  min-height: min(88vh, 860px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  isolation: isolate;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: hero-drift 26s var(--ease) forwards;
}

@keyframes hero-drift {
  from {
    transform: scale(1.08);
  }
  to {
    transform: scale(1);
  }
}

.hero__veil {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--veil);
}

.hero__scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--scrim);
}

.hero__copy {
  padding-block: var(--space-2xl) var(--space-xl);
  display: grid;
  gap: var(--space-s);
  max-width: min(860px, 100%);
}

.hero__note {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.36em;
  text-transform: uppercase;
  color: var(--accent);
}

.hero__note::after {
  content: "";
  flex: 1;
  max-width: 120px;
  height: 1px;
  background: linear-gradient(90deg, var(--accent), transparent);
}

.hero h1 {
  font-size: var(--step-5);
  line-height: 0.98;
}

.hero__lead {
  font-size: var(--step-1);
  color: var(--text-soft);
  max-width: 56ch;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: var(--space-xs);
}

.hero__facts {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-m);
  margin-top: var(--space-s);
  padding-top: var(--space-s);
  border-top: 1px solid var(--line);
}

.hero__fact {
  display: grid;
  gap: 0.15rem;
}

.hero__fact b {
  font-family: var(--font-display);
  font-size: var(--step-2);
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}

.hero__fact span {
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ------------------------------------------------------------- theme B hero */

.theme-b-hero {
  position: relative;
  padding-block: clamp(3rem, 8vw, 6rem) var(--space-2xl);
  background: linear-gradient(180deg, var(--bg-2), var(--bg));
  overflow: hidden;
}

.theme-b-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.theme-b-hero__copy {
  display: grid;
  gap: var(--space-s);
}

.theme-b-hero h1 {
  font-size: var(--step-5);
  line-height: 0.98;
}

.theme-b-hero__collage {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 1rem;
}

.theme-b-hero__collage figure {
  overflow: hidden;
  border-radius: var(--radius-l);
  box-shadow: var(--shadow);
  background: var(--bg-3);
}

.theme-b-hero__collage figure:nth-child(1) {
  grid-row: span 2;
  aspect-ratio: 3 / 4.4;
}

.theme-b-hero__collage figure:nth-child(2),
.theme-b-hero__collage figure:nth-child(3) {
  aspect-ratio: 4 / 3;
}

.theme-b-hero__collage img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease);
}

.theme-b-hero__collage figure:hover img {
  transform: scale(1.05);
}

.theme-b-hero__badge {
  position: absolute;
  left: -1.2rem;
  bottom: 1.6rem;
  padding: 1rem 1.35rem;
  border-radius: var(--radius-m);
  background: var(--accent);
  color: var(--accent-ink);
  box-shadow: var(--shadow);
  display: grid;
  gap: 0.1rem;
  max-width: 220px;
}

.theme-b-hero__badge b {
  font-family: var(--font-display);
  font-size: 1.5rem;
  line-height: 1;
}

.theme-b-hero__badge span {
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.85;
}

/* -------------------------------------------------------------------- cards */

.grid {
  display: grid;
  gap: clamp(1rem, 2.2vw, 1.8rem);
}

.grid--2 {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr));
}

.grid--3 {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 310px), 1fr));
}

.grid--4 {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr));
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--surface);
  overflow: hidden;
  transition: transform var(--dur) var(--ease), border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

[data-theme="B"] .card {
  box-shadow: var(--shadow-soft);
  border-color: transparent;
}

.card:hover {
  transform: translateY(-5px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow);
}

[data-theme="B"] .card:hover {
  border-color: transparent;
}

.card__media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--bg-3);
}

.card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.1s var(--ease);
}

.card:hover .card__media img {
  transform: scale(1.06);
}

.card__media--empty {
  display: grid;
  place-items: center;
  color: var(--text-muted);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.card__badge {
  position: absolute;
  top: 0.9rem;
  left: 0.9rem;
  padding: 0.42rem 0.8rem;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  box-shadow: 0 8px 18px -10px rgba(0, 0, 0, 0.6);
}

.card__district {
  position: absolute;
  top: 0.9rem;
  right: 0.9rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: rgba(10, 18, 20, 0.62);
  backdrop-filter: blur(8px);
  color: #fff;
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.card__body {
  display: grid;
  gap: 0.5rem;
  padding: 1.15rem 1.25rem 1.35rem;
  flex: 1;
}

.card__title {
  font-family: var(--font-display);
  font-size: var(--step-1);
  font-weight: 600;
  line-height: 1.15;
}

.card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.9rem;
  font-size: var(--step--1);
  color: var(--text-muted);
  line-height: 1.35;
}

.card__meta span {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card__text {
  font-size: var(--step--1);
  color: var(--text-soft);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card__perk {
  margin-top: auto;
  padding-top: 0.85rem;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: var(--step--1);
  font-weight: 700;
  color: var(--accent);
}

.card__perk svg {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
}

.card--row {
  flex-direction: row;
}

.card--row .card__media {
  width: 38%;
  aspect-ratio: auto;
  min-height: 190px;
}

/* -------------------------------------------------------------- value props */

.props {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: clamp(1.2rem, 3vw, 2.6rem);
}

.prop {
  display: grid;
  gap: 0.6rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--line);
}

.prop__num {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.2em;
}

.prop h3 {
  font-size: var(--step-1);
}

.prop p {
  color: var(--text-soft);
  font-size: var(--step--1);
}

/* --------------------------------------------------------------- split band */

.band {
  position: relative;
  border-block: 1px solid var(--line);
  background: var(--bg-2);
}

.band--accent {
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 14%, var(--bg-2)), var(--bg-2));
}

.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.split__media {
  border-radius: var(--radius-l);
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 4 / 3;
}

.split__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.split__copy {
  display: grid;
  gap: var(--space-s);
}

.checklist {
  display: grid;
  gap: 0.55rem;
  padding: 0;
  list-style: none;
  font-size: var(--step--1);
  color: var(--text-soft);
}

.checklist li {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
}

.checklist li::before {
  content: "";
  flex-shrink: 0;
  width: 7px;
  height: 7px;
  margin-top: 0.5rem;
  rotate: 45deg;
  background: var(--accent);
}

.price-tag {
  display: inline-flex;
  align-items: baseline;
  gap: 0.6rem;
}

.price-tag b {
  font-family: var(--font-display);
  font-size: var(--step-3);
  color: var(--accent);
  line-height: 1;
}

/* --------------------------------------------------------------- stamps row */

.stamp-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: clamp(0.8rem, 2vw, 1.4rem);
}

.stamp {
  display: grid;
  justify-items: center;
  gap: 0.55rem;
  text-align: center;
  font-size: var(--step--1);
  color: var(--text-soft);
}

.stamp__seal {
  width: 100%;
  aspect-ratio: 1;
  max-width: 118px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1.5px dashed var(--line-strong);
  background: color-mix(in srgb, var(--accent) 8%, transparent);
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  overflow: hidden;
  transition: transform var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.stamp:hover .stamp__seal {
  transform: rotate(-6deg) scale(1.04);
  border-color: var(--accent);
}

.stamp__seal img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* -------------------------------------------------------------------- forms */

.form {
  display: grid;
  gap: var(--space-s);
}

.field {
  display: grid;
  gap: 0.4rem;
}

.field > span {
  font-size: var(--step--1);
  font-weight: 600;
  color: var(--text-soft);
}

.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
  background: color-mix(in srgb, var(--bg) 60%, transparent);
  color: var(--text);
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease);
}

[data-theme="B"] .field input,
[data-theme="B"] .field textarea,
[data-theme="B"] .field select {
  background: #fff;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: var(--accent);
  outline: none;
}

.field textarea {
  resize: vertical;
  min-height: 90px;
}

.field--check {
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 0.7rem;
  font-size: var(--step--1);
  color: var(--text-soft);
}

.field--check input {
  width: auto;
  margin-top: 0.35rem;
  accent-color: var(--accent);
}

.form-note {
  font-size: var(--step--1);
  color: var(--text-muted);
}

.notice {
  padding: 0.9rem 1.1rem;
  border-radius: var(--radius-s);
  border: 1px solid var(--line-strong);
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  font-size: var(--step--1);
}

.notice--error {
  border-color: rgba(226, 119, 95, 0.5);
  background: rgba(226, 119, 95, 0.12);
  color: #f0b4a4;
}

/* -------------------------------------------------------------------- prose */

.prose {
  max-width: 72ch;
  display: grid;
  gap: 1.05rem;
  font-size: var(--step-0);
  color: var(--text-soft);
}

.prose h2,
.prose h3,
.prose h4 {
  color: var(--text);
  margin-top: 1.2rem;
}

.prose h2 {
  font-size: var(--step-2);
}
.prose h3 {
  font-size: var(--step-1);
}

.prose strong {
  color: var(--text);
  font-weight: 700;
}

.prose a {
  color: var(--accent);
  border-bottom: 1px solid var(--line-strong);
}

.prose a:hover {
  border-color: var(--accent);
}

.prose ul,
.prose ol {
  display: grid;
  gap: 0.45rem;
  padding-left: 1.3rem;
}

.prose li::marker {
  color: var(--accent);
}

.prose blockquote {
  padding-left: 1.2rem;
  border-left: 2px solid var(--accent);
  font-family: var(--font-display);
  font-size: var(--step-1);
  color: var(--text);
}

.prose img,
.rich-image {
  border-radius: var(--radius-m);
  margin-block: 0.6rem;
}

/* -------------------------------------------------------------- page header */

.page-head {
  padding-block: clamp(2.4rem, 6vw, 5rem) var(--space-l);
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, var(--bg-2), var(--bg));
}

.page-head__inner {
  display: grid;
  gap: var(--space-s);
}

.page-head h1 {
  font-size: var(--step-4);
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: var(--step--1);
  color: var(--text-muted);
}

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

.breadcrumbs span::after {
  content: "/";
  margin-left: 0.5rem;
  opacity: 0.45;
}

/* ------------------------------------------------------------------ filters */

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-bottom: var(--space-l);
}

.chip {
  padding: 0.5rem 1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: var(--step--1);
  color: var(--text-soft);
  background: transparent;
  cursor: pointer;
  transition: all var(--dur) var(--ease);
}

.chip:hover {
  border-color: var(--line-strong);
  color: var(--text);
}

.chip[aria-pressed="true"],
.chip--active {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
  font-weight: 700;
}

.chip small {
  opacity: 0.6;
  margin-left: 0.35rem;
}

/* -------------------------------------------------------------------- table */

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--step--1);
}

th,
td {
  text-align: left;
  padding: 0.8rem 1rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

th {
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 700;
}

tbody tr:hover {
  background: color-mix(in srgb, var(--accent) 6%, transparent);
}

/* -------------------------------------------------------------------- facts */

.facts {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.fact {
  display: grid;
  grid-template-columns: minmax(120px, 0.32fr) 1fr;
  gap: var(--space-s);
  padding-block: 0.9rem;
  border-bottom: 1px solid var(--line);
  font-size: var(--step--1);
}

.fact dt {
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

.fact dd {
  margin: 0;
  color: var(--text);
}

/* --------------------------------------------------------------------- news */

.news-card {
  display: grid;
  gap: 0.55rem;
  padding: 1.3rem 1.4rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--surface);
  transition: transform var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.news-card:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
}

.news-card time {
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}

.news-card h3 {
  font-size: var(--step-1);
}

/* ---------------------------------------------------------------- cta band */

.cta {
  position: relative;
  padding-block: var(--space-2xl);
  border-block: 1px solid var(--line);
  background: linear-gradient(135deg, var(--bg-3), var(--bg-2));
  overflow: hidden;
}

.cta__inner {
  display: grid;
  gap: var(--space-s);
  justify-items: center;
  text-align: center;
  max-width: 720px;
  margin-inline: auto;
}

.cta h2 {
  font-size: var(--step-3);
}

/* ------------------------------------------------------------------- footer */

.site-footer {
  padding-block: var(--space-xl) var(--space-m);
  background: var(--bg-2);
  border-top: 1px solid var(--line);
  font-size: var(--step--1);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: var(--space-l);
}

.footer-col h3 {
  font-family: var(--font-body);
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.9rem;
  font-weight: 700;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}

.footer-col a {
  color: var(--text-soft);
}

.footer-col a:hover {
  color: var(--accent);
}

.footer-col__note {
  margin-top: 1rem;
  font-size: 0.78rem;
  color: var(--text-muted);
}

/**
 * Accent panel: the bordered callout used for a partner's discount, the "what's
 * included" list on the order page and the bonus on the guide. Kept separate from
 * .footer-partner, which is the full-width invitation band in the footer.
 */
.accent-panel {
  padding: 1.3rem 1.5rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-m);
  background: color-mix(in srgb, var(--accent) 7%, transparent);
  display: grid;
  gap: 0.7rem;
  justify-items: start;
  /* These panels also sit in narrow side columns, so nothing may overflow. */
  min-width: 0;
}

.accent-panel > * {
  max-width: 100%;
  min-width: 0;
}

.accent-panel .btn {
  margin-top: 0.2rem;
}

/* The order page's partner invitation: a compact, self-contained card. */
.accent-panel--invite {
  gap: 0.5rem;
}

.accent-panel--invite .accent-panel__title {
  font-family: var(--font-display);
  font-size: var(--step-1);
  line-height: 1.15;
}

.accent-panel--invite .accent-panel__text {
  font-size: var(--step--1);
  color: var(--text-muted);
}

.accent-panel--invite .accent-panel__mail {
  font-size: var(--step--1);
  word-break: break-word;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem var(--space-m);
  justify-content: space-between;
  align-items: center;
  margin-top: var(--space-l);
  padding-top: var(--space-s);
  border-top: 1px solid var(--line);
  color: var(--text-muted);
  font-size: 0.78rem;
}

/* Partner invitation: a full-width band, not a box squeezed into a column.
   It gets the brass accent and a soft glow so it reads as an invitation rather
   than as another footer list. */
.footer-partner {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-m);
  margin-top: var(--space-l);
  padding: clamp(1.3rem, 3vw, 2rem) clamp(1.3rem, 3vw, 2.2rem);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-l);
  background:
    radial-gradient(120% 160% at 0% 0%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 62%),
    var(--bg-3);
  overflow: hidden;
}

.footer-partner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 62%, color-mix(in srgb, var(--accent) 8%, transparent));
  pointer-events: none;
}

.footer-partner__copy {
  display: grid;
  gap: 0.4rem;
  max-width: 62ch;
  position: relative;
}

.footer-partner__kicker {
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent);
}

.footer-partner__title {
  font-family: var(--font-display);
  font-size: var(--step-2);
  font-weight: 600;
  line-height: 1.12;
}

.footer-partner__text {
  font-size: var(--step--1);
  color: var(--text-soft);
  max-width: 58ch;
}

.footer-partner__action {
  display: grid;
  gap: 0.5rem;
  justify-items: start;
  position: relative;
}

.footer-partner__hint {
  font-size: 0.78rem;
  color: var(--text-muted);
}

@media (max-width: 720px) {
  .footer-partner {
    flex-direction: column;
    align-items: stretch;
  }
  .footer-partner__action {
    justify-items: stretch;
  }
  .footer-partner__action .btn {
    width: 100%;
  }
  .footer-partner__hint {
    text-align: center;
  }
}

.socials {
  display: flex;
  gap: 0.6rem;
}

.socials a {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 999px;
  transition: all var(--dur) var(--ease);
}

.socials a:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

.socials svg {
  width: 17px;
  height: 17px;
}

/* --------------------------------------------------------------------- misc */

.map-frame {
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  overflow: hidden;
  background: var(--bg-3);
}

.map-frame iframe {
  width: 100%;
  height: clamp(260px, 42vh, 440px);
  border: 0;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr));
  gap: 0.7rem;
}

.gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-s);
  cursor: zoom-in;
  transition: transform var(--dur) var(--ease);
}

.gallery img:hover {
  transform: scale(1.02);
}

.video-embed {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-m);
  overflow: hidden;
  border: 1px solid var(--line);
}

.video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

.to-top {
  position: fixed;
  right: 1.2rem;
  bottom: 1.2rem;
  z-index: 40;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--surface-solid);
  color: var(--accent);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
}

.to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.to-top:hover {
  transform: translateY(-3px);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* ---------------------------------------------------------------- author card */

.author-card {
  position: sticky;
  top: 100px;
  display: grid;
  gap: 0.7rem;
  justify-items: start;
  padding: 1.4rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-l);
  background: color-mix(in srgb, var(--accent) 6%, transparent);
}

.author-card__photo {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 50% 22%;
  border-radius: var(--radius-m);
  margin-bottom: 0.3rem;
}

.author-card__name {
  font-family: var(--font-display);
  font-size: var(--step-1);
  font-weight: 700;
  line-height: 1.15;
}

.author-card__role {
  font-size: var(--step--1);
  color: var(--accent);
  letter-spacing: 0.04em;
}

.author-card__quote {
  margin: 0;
  padding-left: 1rem;
  border-left: 2px solid var(--line-strong);
  font-size: var(--step--1);
  color: var(--text-soft);
  line-height: 1.6;
}

@media (max-width: 900px) {
  .author-card {
    position: static;
  }
  .author-card__photo {
    aspect-ratio: 1;
    object-position: 50% 18%;
  }
}

/* ------------------------------------------------------------------ safety net
   An <svg> without explicit dimensions falls back to 300×150, so one forgotten
   rule turns a small glyph into a block-filling monster. Everything inline is
   capped at 2em here; the few places that genuinely need a bigger mark (the logo,
   the burger) or an image-like element (cover art, the map) opt out explicitly. */
svg {
  width: 1em;
  height: 1em;
  max-width: 2em;
  max-height: 2em;
}

/* Places where a glyph is genuinely a fixed-size mark rather than text-sized. */
.socials a svg {
  width: 16px;
  height: 16px;
}

.nav-drawer__close svg {
  width: 18px;
  height: 18px;
}

.to-top svg {
  width: 18px;
  height: 18px;
}

.gallery-item button svg {
  width: 13px;
  height: 13px;
}

.brand__mark svg,
.socials svg,
.contact-row svg,
.nav-burger svg,
.nav-drawer__close svg,
.to-top svg,
.card__perk svg,
.guide-actions svg,
.gallery-item svg,
figure svg {
  max-width: none;
  max-height: none;
}

/* Cover art and map tiles are pictures, not glyphs. */
img,
iframe,
video,
canvas {
  max-width: 100%;
}

/* ----------------------------------------------------- QR-код: гайд по Сочи */

.guide-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: center;
  margin-top: 0.6rem;
}

.guide-actions .chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.guide-actions svg {
  width: 15px;
  height: 15px;
}

.guide-promo {
  display: grid;
  gap: 0.6rem;
  justify-items: start;
  padding: 1.2rem 1.4rem;
  margin-bottom: var(--space-m);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-m);
  background: color-mix(in srgb, var(--accent) 9%, transparent);
}

/* This block is a grid, and a grid item stretches its children horizontally;
   the icon inside the kicker therefore has to be pinned or it fills the row. */
.guide-promo .kicker {
  min-width: 0;
  flex-wrap: wrap;
  white-space: normal;
}

.guide-promo .kicker svg {
  width: 16px;
  min-width: 16px;
  max-width: 16px;
  height: 16px;
}

.guide-intro {
  margin-bottom: var(--space-l);
}

.guide-intro .prose {
  max-width: 74ch;
}

.guide-group {
  margin-bottom: var(--space-l);
  scroll-margin-top: 90px;
}

.guide-group > h2 {
  display: flex;
  align-items: baseline;
  gap: 0.8rem;
  font-size: var(--step-2);
  margin-bottom: 1rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--line);
}

.guide-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
  gap: 0.7rem;
}

.guide-card {
  display: flex;
  gap: 0.85rem;
  align-items: center;
  padding: 0.7rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  background: var(--surface);
  transition: transform var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.guide-card:hover {
  transform: translateY(-3px);
  border-color: var(--line-strong);
}

.guide-card__media {
  flex-shrink: 0;
  width: 74px;
  height: 74px;
  border-radius: 10px;
  overflow: hidden;
  background: var(--bg-3);
}

.guide-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.guide-card__body {
  display: grid;
  gap: 0.2rem;
  min-width: 0;
}

.guide-card__kind {
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
}

.guide-card__title {
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 600;
  line-height: 1.15;
}

.guide-card__text {
  font-size: var(--step--1);
  color: var(--text-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.guide-foot {
  margin-top: var(--space-xl);
  padding-top: var(--space-s);
  border-top: 1px solid var(--line);
  display: grid;
  gap: 0.3rem;
}

/* On a phone in the mountains the guide is read one-handed: bigger taps. */
@media (max-width: 620px) {
  .guide-card {
    padding: 0.6rem;
  }
  .guide-card__media {
    width: 60px;
    height: 60px;
  }
  .guide-list {
    grid-template-columns: 1fr;
  }
}

/* ------------------------------------------------------------------ responsive */

@media (max-width: 1020px) {
  .theme-b-hero__grid {
    grid-template-columns: 1fr;
  }
  .theme-b-hero__badge {
    left: 1rem;
  }
}

@media (max-width: 900px) {
  .site-nav {
    display: none;
  }
  .nav-burger {
    display: flex;
  }
  /* The drawer carries the call to action on small screens, so the header keeps
     only the logo, the name and the burger — that is what keeps it on one line. */
  .header-cta {
    display: none;
  }
  .card--row {
    flex-direction: column;
  }
  .card--row .card__media {
    width: 100%;
    aspect-ratio: 16 / 10;
  }
}

@media (max-width: 480px) {
  .brand__tag {
    display: none;
  }
  .brand__mark {
    width: 40px;
    height: 40px;
  }
  .site-header__inner {
    min-height: 66px;
    gap: 0.6rem;
  }
}

@media (max-width: 720px) {
  .hero {
    min-height: 78vh;
  }
  .hero__facts {
    gap: var(--space-s);
  }
  .fact {
    grid-template-columns: 1fr;
    gap: 0.2rem;
  }
  .section-head {
    align-items: flex-start;
  }
}

/* mobile navigation drawer */
.nav-drawer {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: var(--bg);
  padding: var(--space-m) 0;
  display: grid;
  align-content: start;
  gap: 0.2rem;
  overflow-y: auto;
  transform: translateY(-102%);
  transition: transform 0.5s var(--ease);
}

.nav-drawer[data-open="true"] {
  transform: none;
}

.nav-drawer__inner {
  display: grid;
  gap: 0.2rem;
}

.nav-drawer a,
.nav-drawer button {
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-display);
  font-size: var(--step-1);
  text-align: left;
  background: none;
  border-left: 0;
  border-right: 0;
  border-top: 0;
  cursor: pointer;
  color: var(--text);
}

.nav-drawer__close {
  justify-self: end;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: none;
  cursor: pointer;
  color: var(--text);
  margin-bottom: var(--space-s);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}
