:root {
  --brand-sky-900: #0e2f46;
  --brand-sky-700: #1b4f72;
  --brand-sky-500: #3e7ba8;
  --brand-sky-200: #b8d8ec;
  --brand-sky-100: #dcebf5;
  --brand-sky-050: #ebf5fb;

  --brand-leaf-900: #1a4d1d;
  --brand-leaf-700: #256b29;
  --brand-leaf-500: #5ba058;
  --brand-leaf-200: #c8e0c5;
  --brand-leaf-100: #ddecdb;
  --brand-leaf-050: #f1f8e9;

  --accent-sail: #f5ebd5;
  --accent-sand: #e9d6a8;
  --accent-buoy: #d9633b;

  --sunset-700: #c0492c;
  --sunset-500: #e07a4f;
  --sunset-100: #fbe6d7;

  --ink-900: #0f1b24;
  --ink-700: #2a3845;
  --ink-500: #4f5f6d;
  --ink-400: #627180;
  --ink-300: #9aa7b3;
  --ink-200: #d6dee5;
  --ink-100: #ecf1f5;
  --ink-050: #f6f8fb;
  --paper: #ffffff;

  --font-display: 'Lora', Georgia, serif;
  --font-text: 'Montserrat', 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'Courier New', monospace;

  --primary: var(--brand-sky-700);
  --primary-hover: var(--brand-sky-900);
  --secondary: var(--brand-leaf-700);

  --shadow-2: 0 2px 8px rgba(15, 27, 36, 0.06), 0 1px 2px rgba(15, 27, 36, 0.04);
  --shadow-3: 0 8px 24px rgba(15, 27, 36, 0.08), 0 2px 6px rgba(15, 27, 36, 0.04);
  --shadow-4: 0 20px 48px rgba(15, 27, 36, 0.10), 0 6px 14px rgba(15, 27, 36, 0.05);
}

/* Google Fonts moved to <link> in index.html for non-blocking load */

@font-face {
  font-family: "Montserrat";
  src: url("/assets/fonts/Montserrat-VariableFont_wght.woff2") format("woff2"),
       url("/assets/fonts/Montserrat-VariableFont_wght.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Montserrat";
  src: url("/assets/fonts/Montserrat-Italic-VariableFont_wght.woff2") format("woff2"),
       url("/assets/fonts/Montserrat-Italic-VariableFont_wght.ttf") format("truetype");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

/* Отступ при переходе по якорям, чтобы sticky-хедер не перекрывал заголовок секции */
html {
  scroll-padding-top: 96px;
  scroll-behavior: smooth; /* плавная прокрутка по якорям; гасится при reduce-motion ниже */
}

@media (max-width: 768px) {
  html {
    scroll-padding-top: 72px;
  }
}

body {
  font-family: "Montserrat", "Segoe UI", sans-serif;
  color: var(--ink-900);
  background: #ffffff;
  line-height: 1.55;
}

.container {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: #ffffff;
  border-bottom: 1px solid var(--ink-200);
  backdrop-filter: blur(8px);
  transition: box-shadow 0.28s ease, background-color 0.28s ease,
              border-color 0.28s ease;
}
/* При прокрутке хедер мягко «отрывается» от контента — тень вместо жёсткой линии */
.site-header.is-scrolled {
  border-bottom-color: transparent;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 6px 22px rgba(15, 27, 36, 0.09);
}

.header-inner {
  min-height: 86px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 24px;
  align-items: center;
}

.brand img {
  height: 70px;
  display: block;
}

.main-nav {
  display: flex;
  gap: 18px;
  justify-content: center;
  flex-wrap: wrap;
}

.main-nav a,
.phone-link {
  text-decoration: none;
  color: var(--ink-700);
  font-size: 16px;
  font-weight: 600;
}

/* Анимированное подчёркивание навигации + подсветка активного раздела (scroll-spy) */
.main-nav a {
  position: relative;
  padding-bottom: 3px;
  transition: color 0.2s ease;
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  border-radius: 2px;
  background: var(--brand-sky-700);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.28s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.main-nav a:hover {
  color: var(--brand-sky-900);
}
.main-nav a:hover::after,
.main-nav a.is-active::after {
  transform: scaleX(1);
}
.main-nav a.is-active {
  color: var(--brand-sky-900);
}
.phone-link {
  transition: color 0.2s ease;
}
.phone-link:hover {
  color: var(--brand-sky-700);
}

.header-actions {
  display: flex;
  gap: 14px;
  align-items: center;
}

.hero {
  padding-top: 48px;
}

.hero-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  align-items: start;
}

.eyebrow {
  margin: 0;
  font-size: 14px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand-leaf-700);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.eyebrow::before {
  display: none;
}

.hero__content h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(36px, 4.5vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.03em;
  margin: 16px 0 20px;
}

.hero__content p {
  margin: 0;
  color: var(--ink-700);
  font-size: 18px;
  max-width: 640px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  margin-top: 28px;
  flex-wrap: wrap;
}

.hero-stats {
  margin-top: 34px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  border-top: 1px solid var(--ink-200);
  padding-top: 18px;
}

.hero-stats > div + div {
  border-left: 1px solid var(--ink-200);
  padding-left: 14px;
}

.hero-stats strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(28px, 2.4vw, 34px);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--ink-900);
}

.hero-stats span {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  line-height: 1.3;
  color: var(--ink-500);
}

.hero-weather {
  margin-top: 12px;
  background: var(--paper);
  border: 1px solid var(--ink-100);
  border-radius: 16px;
  padding: 10px 14px;
}

.hero-weather__days {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
}

.hero-weather__loading {
  grid-column: 1 / -1;
  font-size: 13px;
  color: var(--ink-400);
  text-align: center;
  padding: 4px 0;
}

.hero-weather__day {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  text-align: center;
  padding: 8px 4px;
  border-radius: 10px;
  transition: background 0.15s;
}

.hero-weather__day:first-child {
  background: var(--brand-sky-050, #eef6fb);
}

.hero-weather__name {
  font-size: 11px;
  font-weight: 600;
  color: var(--ink-500);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.hero-weather__icon {
  font-size: 20px;
  line-height: 1;
}

.hero-weather__temp {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-900);
}

.hero-weather__wind {
  font-size: 11px;
  color: var(--ink-400);
}

.video-card {
  position: relative;
  border-radius: 26px;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--brand-sky-700) 20%, var(--ink-200));
  box-shadow: 0 24px 64px rgba(14, 47, 70, 0.22);
  background: linear-gradient(180deg, #dcebf5 0%, #1b4f72 100%);
}

.video-card video {
  width: 100%;
  min-height: 460px;
  display: block;
  object-fit: cover;
  background: transparent;
}

.video-badge {
  position: absolute;
  left: 14px;
  top: 14px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--brand-sky-900);
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  font-weight: 700;
}

.video-note {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 12px;
  color: #fff;
  font-size: 12px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
}

.video-controls {
  position: absolute;
  right: 14px;
  bottom: 14px;
  display: flex;
  gap: 8px;
}

.video-ctrl {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  color: #fff;
  background: rgba(14, 47, 70, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: background 0.2s ease, transform 0.15s ease;
}

.video-ctrl:hover {
  background: rgba(14, 47, 70, 0.78);
}

.video-ctrl:active {
  transform: scale(0.94);
}

.video-ctrl__icon {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.video-ctrl__icon[hidden] {
  display: none;
}

.section {
  padding: 56px 0;
}

.section h2 {
  font-family: var(--font-display);
  font-weight: 400;
  margin: 0 0 16px;
  font-size: clamp(28px, 3vw, 48px);
  line-height: 1.08;
  letter-spacing: -0.025em;
}

.section h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(20px, 2vw, 28px);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.grid {
  display: grid;
  gap: 14px;
}

.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.card {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--ink-200);
  border-radius: 16px;
  padding: 18px;
  box-shadow: var(--shadow-2);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.card::after {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, var(--brand-sky-500), var(--brand-leaf-500));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.32s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-4);
  border-color: var(--brand-sky-200);
}

.card:hover::after {
  transform: scaleX(1);
}

/* «О лагере» — editorial-нумерация карточек */
#about .grid-4 {
  counter-reset: about-card;
}

#about .card {
  counter-increment: about-card;
  padding-top: 48px;
}

#about .card::before {
  content: counter(about-card, decimal-leading-zero);
  position: absolute;
  top: 18px;
  left: 18px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--brand-sky-500);
}

#about .card h3 {
  margin-top: 0;
  margin-bottom: 8px;
}

#about .card p {
  margin: 0;
  color: var(--ink-500);
}

@media (prefers-reduced-motion: reduce) {
  .card { transition: none; }
  .card:hover { transform: none; }
  .card::after { transition: none; }
}

/* ── Fleet ──────────────────────────────────────────────────── */
.va-fleet__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 48px;
}

/* Интерактивная сцена флота: лодки-слои поверх фото, hover подсвечивает лодку */
.fleet-scene {
  position: relative;
  height: min(40vw, 400px);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(14, 47, 70, 0.16);
}

/* Слой с фоном и лодками держит пропорции исходного фото и прижат к низу —
   так срезается пустое небо сверху, а позиции лодок (в % от слоя) не разъезжаются */
.fleet-scene__canvas {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  aspect-ratio: 1920 / 1078;
}

.fleet-scene__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.fleet-scene__dim {
  position: absolute;
  inset: 0;
  background: rgba(10, 30, 46, 0);
  transition: background 0.35s ease;
  pointer-events: none;
}

.fleet-scene.is-focus .fleet-scene__dim { background: rgba(10, 30, 46, 0.45); }

.fleet-scene__boat {
  position: absolute;
  margin: 0;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  transition: filter 0.35s ease, transform 0.35s ease;
  /* Постоянная обводка по контуру — подсказывает, что катамаран кликабелен */
  filter: drop-shadow(0 0 2px rgba(255, 255, 255, 0.9)) drop-shadow(0 0 12px rgba(150, 215, 255, 0.65));
}

.fleet-scene__boat img {
  width: 100%;
  height: auto;
  display: block;
  pointer-events: none;
}

.fleet-scene.is-focus .fleet-scene__boat:not(.is-on) { filter: brightness(0.5); }

.fleet-scene__boat.is-on {
  filter: drop-shadow(0 0 14px rgba(255, 255, 255, 0.85)) drop-shadow(0 10px 18px rgba(10, 30, 46, 0.4));
  animation: fleet-boat-float 3.2s ease-in-out infinite;
  z-index: 3;
}

@keyframes fleet-boat-float {
  0%, 100% { transform: translateY(0) rotate(-0.6deg); }
  50% { transform: translateY(-1.2%) rotate(0.8deg); }
}

.fleet-scene__card {
  position: absolute;
  width: 250px;
  max-width: 44%;
  background: var(--paper, #fff);
  border-radius: 14px;
  padding: 14px 16px;
  box-shadow: 0 10px 30px rgba(10, 30, 46, 0.28);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
  z-index: 4;
}

.fleet-scene__card.is-show { opacity: 1; transform: translateY(0); }
.fleet-scene__card h3 { margin: 0 0 4px; font-size: 17px; color: var(--ink-900); }
.fleet-scene__card p { margin: 0 0 6px; font-size: 13px; color: var(--ink-500); line-height: 1.45; }
.fleet-scene__card p:last-child { margin-bottom: 0; }
.fleet-scene__fact { color: var(--brand-sky-700); font-weight: 600; }

.fleet-scene__card--briz { left: 2.5%; top: 8%; }
.fleet-scene__card--veter { left: 30%; top: 6%; }
.fleet-scene__card--vitamin { left: 56%; top: 5%; }

.fleet-scene__hint {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 10px;
  margin: 0;
  text-align: center;
  font-size: 13px;
  color: #fff;
  text-shadow: 0 1px 6px rgba(10, 30, 46, 0.7);
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.fleet-scene.is-focus .fleet-scene__hint { opacity: 0; }

@media (max-width: 720px) {
  /* На мобиле кадрирование не нужно — показываем фото целиком */
  .fleet-scene { border-radius: 14px; height: auto; aspect-ratio: 1920 / 1078; }
  .fleet-scene__canvas { top: 0; bottom: auto; transform: none; }
  .fleet-scene__card,
  .fleet-scene__card--briz,
  .fleet-scene__card--veter,
  .fleet-scene__card--vitamin {
    left: 8px;
    right: 8px;
    top: auto;
    bottom: 8px;
    width: auto;
    max-width: none;
    padding: 10px 12px;
  }
  .fleet-scene__card h3 { font-size: 14px; }
  .fleet-scene__card p { font-size: 12px; }
  .fleet-scene__hint { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .fleet-scene__boat.is-on { animation: none; }
  .fleet-scene__boat, .fleet-scene__dim, .fleet-scene__card { transition: none; }
}

.events-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.event-highlight .meta {
  margin: 0;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--brand-leaf-700);
}

.events-list {
  display: grid;
  gap: 8px;
}

.event-row {
  display: grid;
  grid-template-columns: 95px 1fr;
  gap: 10px;
  border-bottom: 1px solid var(--ink-200);
  padding-bottom: 8px;
}

.event-row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.media {
  min-height: 110px;
  display: grid;
  place-items: center;
  color: var(--ink-500);
}

.section__title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

/* Blue accent section — adds mid-page contrast (e.g. mini-price).
   `.section.section--sky` keeps specificity above the mobile `.section` override. */
.section.section--sky {
  background: var(--brand-sky-700);
  color: #fff;
  border-radius: 24px;
  padding: 48px clamp(20px, 4vw, 56px);
  margin-top: 24px;
  margin-bottom: 24px;
}

.section--sky h2 {
  color: #fff;
  text-align: center;
}

.section--sky small {
  display: block;
  text-align: center;
  margin-top: 16px;
  color: rgba(255, 255, 255, 0.72);
}

/* Keep the white price-table card readable on the blue background */
.section--sky .table-wrap { color: var(--ink-900); }
.section--sky th { color: var(--ink-700); }

.pricing-cta {
  display: flex;
  justify-content: center;
  margin-top: 24px;
}

/* Open air на Острове — баннер-воронка в Telegram-бот @Ostrave_bot */
.party { text-align: center; }

.party__card {
  background: linear-gradient(160deg, var(--brand-sky-900), var(--brand-sky-700));
  color: #fff;
  border-radius: 24px;
  padding: 48px clamp(20px, 4vw, 56px);
  max-width: 760px;
  margin: 0 auto;
}

.party__eyebrow { color: var(--accent-sand); letter-spacing: 0.08em; }
.party__title { color: #fff; margin: 8px 0 0; }

.party__lead {
  color: rgba(255, 255, 255, 0.85);
  max-width: 52ch;
  margin: 14px auto 0;
  line-height: 1.65;
}

.party__perks {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 24px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 15px;
}

.party__perks li { white-space: nowrap; }

.party__tickets {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
  margin: 28px 0 0;
}

.party__ticket {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 14px;
  padding: 14px 22px;
  min-width: 150px;
}

.party__ticket-name {
  display: block;
  font-size: 13px;
  color: var(--accent-sand);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.party__ticket-price {
  display: block;
  font-size: 24px;
  font-weight: 700;
  margin-top: 4px;
}

.party__cta { margin-top: 28px; }

.party__note {
  margin: 16px 0 0;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
}

.table-wrap {
  overflow: auto;
  border-radius: 14px;
  border: 1px solid var(--ink-200);
  background: var(--paper);
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--ink-200);
  text-align: left;
  font-size: 14px;
}

th {
  background: var(--brand-sky-050);
}

/* Mini-price — читаемость и акцент на ценах */
#pricing .table-wrap {
  box-shadow: var(--shadow-3);
}

#pricing table {
  font-variant-numeric: tabular-nums;
}

#pricing thead th {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-500);
  padding-top: 14px;
  padding-bottom: 14px;
}

#pricing thead th:nth-child(2),
#pricing thead th:nth-child(3) {
  text-align: right;
}

#pricing tbody td {
  padding-top: 13px;
  padding-bottom: 13px;
  transition: background 0.15s ease;
}

#pricing tbody td:first-child {
  font-weight: 600;
  color: var(--ink-900);
}

#pricing tbody td:nth-child(2),
#pricing tbody td:nth-child(3) {
  text-align: right;
  font-weight: 700;
  color: var(--brand-sky-700);
  white-space: nowrap;
}

#pricing tbody tr:nth-child(even) td {
  background: color-mix(in srgb, var(--brand-sky-050) 55%, #fff);
}

#pricing tbody tr:hover td {
  background: var(--brand-sky-100);
}

#pricing tbody tr:last-child td {
  border-bottom: none;
}

.btn {
  border: 0;
  border-radius: 999px;
  padding: 12px 22px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  transition: background-color 0.2s ease, color 0.2s ease,
              transform 0.12s ease, box-shadow 0.25s ease;
}

/* Лёгкий подъём при наведении (только на устройствах с курсором, без «залипания» на тач)
   и тактильное «нажатие» — делают главный CTA отзывчивым и приятным. */
@media (hover: hover) {
  .btn:hover {
    transform: translateY(-1px);
  }
}
.btn:active {
  transform: translateY(0) scale(0.985);
}
.btn:focus-visible {
  outline: 3px solid var(--brand-sky-200);
  outline-offset: 3px;
}

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

.btn-primary:hover {
  background: var(--primary-hover);
  box-shadow: 0 6px 18px rgba(27, 79, 114, 0.28);
}
.btn-primary:active {
  box-shadow: 0 2px 8px rgba(27, 79, 114, 0.22);
}

.btn-primary.js-open-wizard {
  background: var(--brand-leaf-700);
}

.btn-primary.js-open-wizard:hover {
  background: var(--brand-leaf-900);
}

/* Опросник в зелёном цвете: переопределяем акцентные токены внутри модалки,
   чтобы прогресс-бар, календарь, степперы, тоглы, фокус и кнопки стали зелёными,
   не затрагивая синий акцент на остальном сайте. */
#wizardModal {
  --primary: var(--brand-leaf-700);
  --primary-hover: var(--brand-leaf-900);
  --brand-sky-900: var(--brand-leaf-900);
  --brand-sky-700: var(--brand-leaf-700);
  --brand-sky-500: var(--brand-leaf-500);
  --brand-sky-200: var(--brand-leaf-200);
  --brand-sky-100: var(--brand-leaf-100);
  --brand-sky-050: var(--brand-leaf-050);
}

#wizardModal .btn-outline {
  color: var(--primary);
  border-color: var(--primary);
}

#wizardModal .btn-outline:hover {
  background: var(--brand-leaf-050);
  border-color: var(--primary-hover);
  color: var(--primary-hover);
}

.btn-outline {
  background: transparent;
  color: var(--brand-leaf-700);
  border: 1px solid var(--brand-leaf-700);
}

.btn-outline:hover {
  background: var(--brand-leaf-050);
  border-color: var(--brand-leaf-900);
  color: var(--brand-leaf-900);
}

label {
  display: grid;
  gap: 6px;
  font-size: 14px;
  color: var(--ink-500);
}

input,
select,
textarea {
  width: 100%;
  padding: 9px 10px;
  border: 1px solid var(--ink-200);
  border-radius: 10px;
  font-size: 14px;
  color: var(--ink-900);
  font-family: inherit;
}

/* ── Calculator v2 (with range calendar) ─────────────────────── */
.calc-v2 {
  display: grid;
  grid-template-columns: 210px 1fr;
  gap: 20px;
  align-items: start;
  margin-bottom: 4px;
}

.calc-v2--card {
  max-width: 680px;
  margin-inline: auto;
  padding: 24px;
  background: var(--ink-050);
  border: 1px solid var(--ink-200);
  border-radius: 14px;
}

/* Микро-интерактив перед калькулятором */
.quick-start {
  max-width: 680px;
  margin-inline: auto;
  padding: 24px;
  background: var(--ink-050);
  border: 1px solid var(--ink-200);
  border-radius: 14px;
  text-align: center;
}
.quick-start__title {
  margin: 6px 0 18px;
}
.quick-start__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  text-align: left;
}
.quick-start__label {
  display: block;
  font-weight: 600;
  margin-bottom: 10px;
}
.quick-start__counters {
  display: flex;
  gap: 12px;
}
.quick-start__counters label {
  flex: 1;
  font-size: 13px;
}
.qs-counter {
  display: block;
}
.quick-start__sublabel {
  display: block;
  font-size: 13px;
  line-height: 1.4;
  margin-bottom: 6px;
  color: var(--ink-700, #5b6470);
}
.qs-stepper {
  display: flex;
  align-items: stretch;
  height: 44px;
  border: 1px solid var(--ink-200);
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
}
.qs-stepper:focus-within {
  border-color: var(--brand-sky-700, #2aabee);
}
.qs-stepper__btn {
  flex: 0 0 40px;
  border: none;
  background: #fff;
  color: var(--brand-sky-700, #2aabee);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s ease;
}
.qs-stepper__btn:hover {
  background: var(--ink-050);
}
.qs-stepper input {
  width: 100%;
  min-width: 0;
  border: none;
  margin: 0;
  text-align: center;
  font: inherit;
  font-size: 16px;
  -moz-appearance: textfield;
  appearance: textfield;
}
.qs-stepper input::-webkit-outer-spin-button,
.qs-stepper input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.qs-stepper input:focus {
  outline: none;
}
.quick-start__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.quick-start__field .quick-start__chips .quick-start__chip {
  min-height: 44px;
}
.quick-start__chip {
  padding: 9px 14px;
  border: 1px solid var(--ink-200);
  border-radius: 999px;
  background: #fff;
  color: var(--ink-900);
  font: inherit;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.quick-start__chip:hover {
  border-color: var(--brand-sky-700, #2aabee);
}
.quick-start__chip.is-active {
  background: var(--brand-sky-700, #2aabee);
  border-color: var(--brand-sky-700, #2aabee);
  color: #fff;
}
.quick-start__go {
  margin-top: 22px;
}
@media (max-width: 640px) {
  .quick-start { padding: 16px; }
  .quick-start__row { grid-template-columns: 1fr; gap: 18px; }
}

/* Center the calculator composition so the right side reads as intentional space */
#calculator h2 { text-align: center; }

#quickCalcResult,
#calcLead {
  max-width: 680px;
  margin-inline: auto;
}

@media (max-width: 640px) {
  .calc-v2 { grid-template-columns: 1fr; }
  .calc-v2--card { padding: 16px; }

  /* Разрешаем колонкам и календарю сжиматься до доступной ширины
     (иначе min-width:auto у grid/flex-элементов даёт горизонтальное
     переполнение на узких экранах ~360px) */
  .calc-v2__left,
  .calc-v2__right,
  .range-cal,
  .rc-grid,
  .rc-weekdays,
  .calc-v2__left .stepper {
    min-width: 0;
  }
}

.calc-v2__left {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.calc-v2__left label {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-600);
  letter-spacing: .02em;
  text-transform: uppercase;
}

.calc-v2__left .stepper {
  width: 100%;
}

.calc-v2__left .stepper__btn {
  width: 44px;
  font-size: 20px;
}

.calc-v2__left .stepper input[type="number"] {
  font-size: 18px;
  font-weight: 600;
  padding: 9px 4px;
}

.calc-v2__submit {
  grid-column: 1 / -1;
  width: 100%;
  max-width: 320px;
  margin-top: 4px;
  justify-self: center;
}

.calc-v2__submit:disabled {
  opacity: .5;
  cursor: not-allowed;
}

/* Подсказка про расчёт суток от времени приезда (калькулятор и опросник) */
.time-hint {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  line-height: 1.45;
  color: var(--ink-500);
}

/* ── Lead capture form (after calculator result) ─────────────── */
.calc-lead {
  margin-top: 16px;
  padding: 16px 20px;
  background: var(--brand-sky-050);
  border: 1px solid var(--brand-sky-200);
  border-radius: 12px;
}

.calc-lead > p {
  margin: 0 0 12px;
  font-size: 14px;
  color: var(--ink-700);
}

.calc-lead__form {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.calc-lead__form input {
  flex: 1;
  min-width: 160px;
}

.calc-lead__form button { flex-shrink: 0; }

/* ── Range Calendar ───────────────────────────────────────────── */
.range-cal { user-select: none; }

.rc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.rc-month {
  font-weight: 600;
  font-size: 15px;
  color: var(--ink-900);
  text-transform: capitalize;
}

.rc-nav {
  width: 32px;
  height: 32px;
  border: none;
  background: var(--ink-050);
  border-radius: 6px;
  color: var(--primary);
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}

.rc-nav:hover:not(:disabled) { background: var(--brand-sky-100); }
.rc-nav:disabled { opacity: 0.35; cursor: not-allowed; }

.rc-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  margin-bottom: 4px;
}

.rc-wd {
  text-align: center;
  font-size: 11px;
  font-weight: 600;
  color: var(--ink-400);
  padding: 4px 0;
  letter-spacing: 0.02em;
}

.rc-wd--we { color: var(--brand-sky-500); }

.rc-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 1px;
}

.rc-day {
  position: relative;
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 13px;
  color: var(--ink-900);
  border-radius: 6px;
  transition: background 0.1s;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 0;
}

.rc-day--empty { pointer-events: none; }

.rc-day--past { color: var(--ink-300); cursor: not-allowed; }

.rc-day--today:not(.rc-day--start):not(.rc-day--end) {
  font-weight: 700;
  color: var(--primary);
}

.rc-day--today:not(.rc-day--start):not(.rc-day--end)::after {
  content: '';
  position: absolute;
  bottom: 3px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 4px;
  background: currentColor;
  border-radius: 50%;
}

.rc-day--we:not(.rc-day--past):not(.rc-day--start):not(.rc-day--end):not(.rc-day--range) {
  color: var(--brand-sky-700);
}

.rc-day:hover:not(.rc-day--past):not(.rc-day--empty):not(.rc-day--start):not(.rc-day--end) {
  background: var(--brand-sky-100);
}

.rc-day--range {
  background: var(--brand-sky-100);
  border-radius: 0;
  color: var(--brand-sky-900);
}

.rc-day--start,
.rc-day--end {
  background: var(--primary);
  color: #fff;
  font-weight: 600;
}

.rc-day--start { border-radius: 6px 0 0 6px; }
.rc-day--end   { border-radius: 0 6px 6px 0; }
.rc-day--start.rc-day--end { border-radius: 6px; }

.range-cal__summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
  padding: 8px 14px;
  background: var(--brand-sky-050);
  border: 1px solid var(--brand-sky-200);
  border-radius: 8px;
  font-size: 13px;
  color: var(--ink-700);
}

.range-cal__summary strong { color: var(--primary); }

.rc-reset {
  border: none;
  background: transparent;
  color: var(--ink-400);
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
  padding: 0 2px;
}

.rc-reset:hover { color: var(--accent-buoy); }

.rc-hint {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  font-size: 11px;
  color: var(--ink-400);
}

.rc-hint__dot--we {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand-sky-500);
  flex-shrink: 0;
}

.result {
  margin-top: 14px;
  background: #edf5ff;
  border: 1px solid #c4d9f4;
  border-radius: 10px;
  padding: 12px;
}

.faq details {
  background: var(--paper);
  border: 1px solid var(--ink-200);
  border-radius: 12px;
  padding: 12px;
  margin-bottom: 10px;
}

.footer {
  background: var(--brand-sky-900);
  color: #fff;
}

.footer-friends {
  padding: 40px 36px 8px;
  display: grid;
  justify-items: center;
  gap: 22px;
  text-align: center;
}

.footer-friends__title {
  color: var(--brand-sky-200);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  font-weight: 700;
}

.footer-friends .friends-grid {
  width: 100%;
  max-width: 880px;
}

.footer-friends .friend-card {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(184, 216, 236, 0.24);
  box-shadow: none;
  padding: 18px;
}

.footer-friends .friend-card:hover {
  border-color: rgba(184, 216, 236, 0.6);
  background: rgba(255, 255, 255, 0.09);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
}

.footer-friends .friend-card__abbr {
  color: #fff;
}

.footer-friends .friend-card__name {
  color: var(--brand-sky-200);
}

.footer-friends .friend-card__logo {
  margin-inline: auto;
  object-position: center;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
}

.footer-top--simple {
  grid-template-columns: 1fr;
}

.footer-contacts {
  padding: 48px 36px;
  display: grid;
  justify-items: center;
  gap: 18px;
  text-align: center;
}

.footer-contacts__cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 240px));
  justify-content: center;
  gap: 14px;
  width: 100%;
  max-width: 520px;
  text-align: left;
}

/* ── Каналы связи в футере: мессенджеры + соцсети ─────────────────────────── */
.footer-channels {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 26px 48px;
  width: 100%;
}
.footer-channels__group {
  display: grid;
  justify-items: center;
  gap: 12px;
}
.footer-channels__title {
  color: var(--brand-sky-200);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}
.footer-channels__row {
  display: flex;
  gap: 16px;
}
.chan {
  display: grid;
  justify-items: center;
  gap: 7px;
  width: 56px;
  text-decoration: none;
}
.chan__ic {
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #fff;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.28);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.chan:hover .chan__ic {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.4);
}
.chan:focus-visible { outline: none; }
.chan:focus-visible .chan__ic { outline: 3px solid var(--brand-sky-200); outline-offset: 3px; }
.chan__ic svg { fill: currentColor; }
.chan__name {
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.chan--max .chan__ic  { background: linear-gradient(135deg, #4a90e2, #9b59d6); }
.chan--vk .chan__ic   { background: #0077ff; }
.chan--wa .chan__ic   { background: #25d366; }
.chan--tg .chan__ic   { background: #2aabee; }
.chan--inst .chan__ic { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285aeb 90%); }
.chan--mail .chan__ic { background: var(--brand-sky-700); }
.chan--wa .chan__ic svg   { width: 24px; height: 24px; }
.chan--mail .chan__ic svg { width: 26px; height: 26px; }
.chan--max .chan__ic svg  { width: 26px; height: 26px; }
.chan--vk .chan__ic svg   { width: 29px; height: 29px; }
.chan--tg .chan__ic svg   { width: 30px; height: 30px; }
.chan--inst .chan__ic svg { width: 25px; height: 25px; }

/* FAQ contact CTA (light background — переопределяем белый цвет подписи) */
.faq-cta {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--brand-sky-200, #d4e6f5);
}
.faq-cta__title {
  margin: 0 0 14px;
  font-weight: 600;
  color: var(--ink-900, #1a2b3c);
}
.faq-cta__row {
  display: flex;
  gap: 24px;
}
.faq-cta .chan {
  width: auto;
  grid-auto-flow: column;
  align-items: center;
  gap: 10px;
}
.faq-cta .chan__name {
  color: var(--ink-900, #1a2b3c);
  font-size: 14px;
  letter-spacing: 0;
}

.footer-meta-note {
  color: var(--brand-sky-200);
  opacity: 0.65;
  font-size: 11px;
  line-height: 1.45;
  max-width: 540px;
  margin: -2px auto 0;
  text-align: center;
}

.footer-logo {
  max-width: 280px;
  width: 100%;
  margin-bottom: 12px;
  filter: brightness(0) invert(1);
}

.contact-card {
  border: 1px solid rgba(184, 216, 236, 0.24);
  border-radius: 12px;
  padding: 12px;
  display: grid;
  gap: 6px;
  background: rgba(255, 255, 255, 0.04);
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.contact-card:hover {
  transform: translateY(-3px);
  border-color: rgba(184, 216, 236, 0.6);
  background: rgba(255, 255, 255, 0.09);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
}

.contact-card:hover .contact-card__icon {
  transform: scale(1.12);
}

.contact-card:hover a {
  color: var(--brand-sky-200);
}

.contact-card span {
  color: var(--brand-sky-200);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  display: flex;
  align-items: center;
  gap: 7px;
}

.contact-card__icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.contact-card a {
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  overflow-wrap: anywhere;
  word-break: break-word;
  transition: color 0.2s ease;
}

.footer-bottom {
  border-top: 1px solid rgba(184, 216, 236, 0.2);
  padding: 14px 20px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  color: var(--brand-sky-200);
  font-size: 12px;
}

.footer-bottom a {
  color: var(--brand-sky-200);
  text-decoration: none;
}

.footer-bottom a:hover {
  color: #fff;
}

.modal {
  position: fixed;
  inset: 0;
  background: rgba(10, 20, 45, 0.55);
  display: grid;
  place-items: center;
  padding: 20px;
  /* Выше карты Leaflet (её слои/контролы доходят до ~1000) и в одной лиге
     с остальными оверлеями (tent-modal 9980, lightbox 9990). */
  z-index: 9970;
}

.modal__dialog {
  width: min(760px, 100%);
  max-height: 90vh;
  overflow: auto;
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  position: relative;
}

.modal__close {
  position: absolute;
  right: 12px;
  top: 10px;
  border: 0;
  background: transparent;
  font-size: 24px;
  cursor: pointer;
}

.modal__dialog--compact {
  width: min(560px, 100%);
  padding: 28px 24px 20px;
}

.calc-lead--popup {
  margin-top: 0;
  border: none;
  padding: 0;
  background: transparent;
}

.calc-lead--popup .calc-lead__form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.calc-lead--popup .calc-lead__form button {
  grid-column: 1 / -1;
  justify-self: center;
  background: var(--brand-leaf-700);
  border-color: var(--brand-leaf-700);
}

.calc-lead--popup .calc-lead__form button:hover {
  background: var(--brand-leaf-900);
  border-color: var(--brand-leaf-900);
}

.progress {
  height: 6px;
  background: #e4edf9;
  border-radius: 99px;
}

#progressBar {
  height: 100%;
  width: 0;
  background: var(--primary);
  border-radius: 99px;
  transition: width 0.2s ease;
}

.wizard-actions {
  margin-top: 16px;
  display: flex;
  gap: 10px;
}

/* ── Progress bar + step counter ─────────────────────────────── */
.progress-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.progress-wrap .progress {
  flex: 1;
  margin-bottom: 0;
}

.step-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-500);
  white-space: nowrap;
  min-width: 72px;
  text-align: right;
}

/* ── Step slide animation ─────────────────────────────────────── */
@keyframes stepSlideRight {
  from { opacity: 0; transform: translateX(24px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes stepSlideLeft {
  from { opacity: 0; transform: translateX(-24px); }
  to   { opacity: 1; transform: translateX(0); }
}

.step--slide-right {
  animation: stepSlideRight 0.22s ease both;
}

.step--slide-left {
  animation: stepSlideLeft 0.22s ease both;
}

/* ── Additional services grid (step 4) ───────────────────────── */
.step-hint {
  font-size: 13px;
  color: var(--ink-500);
  margin: 0 0 12px;
}

.step3-checks {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
  padding: 12px 14px;
  background: var(--ink-050);
  border: 1px solid var(--ink-200);
  border-radius: 10px;
}

.service-grid {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.service-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s;
}

.service-row:hover {
  background: var(--brand-sky-050);
}

.service-row__info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}

.service-row__name {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-900);
}

.service-row__hint {
  font-size: 12px;
  color: var(--ink-500);
}

.service-row .stepper {
  width: 132px;
  flex-shrink: 0;
}

/* Не даём дефолтной ширине number-инпута распирать степпер —
   инпут гибко заполняет фиксированную ширину степпера */
.service-row .stepper input[type="number"] {
  width: 44px;
  min-width: 0;
  flex: 1 1 44px;
}

/* ── Stepper: custom +/− number input ───────────────────────── */

/* Hide native browser spinners everywhere in the wizard */
#applicationForm input[type="number"]::-webkit-inner-spin-button,
#applicationForm input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
#applicationForm input[type="number"] {
  -moz-appearance: textfield;
}

.stepper {
  display: inline-flex;
  align-items: stretch;
  border: 1px solid var(--ink-200);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  width: 100%; /* fill label grid cell by default */
}

.stepper__btn {
  flex-shrink: 0;
  width: 36px;
  border: none;
  background: var(--ink-050);
  color: var(--primary);
  font-size: 18px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  user-select: none;
}

.stepper__btn:hover {
  background: var(--brand-sky-100);
  color: var(--brand-sky-900);
}

.stepper__btn:active {
  background: var(--brand-sky-200);
}

.stepper input[type="number"] {
  flex: 1;
  min-width: 40px;
  width: auto; /* override global input 100% */
  border: none;
  border-left: 1px solid var(--ink-200);
  border-right: 1px solid var(--ink-200);
  border-radius: 0;
  text-align: center;
  padding: 7px 4px;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-900);
  background: #fff;
}

.stepper input[type="number"]:focus {
  outline: none;
  background: var(--brand-sky-050);
}

/* ── Live quote bar ──────────────────────────────────────────── */
.live-quote {
  /* Липнет к низу прокручиваемой модалки — предварительная цена всегда
     на виду по мере заполнения опросника (усиление ценности). */
  position: sticky;
  bottom: -20px; /* -20px компенсирует нижний padding диалога → бар вплотную к низу */
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  /* отрицательные поля компенсируют padding:20px диалога → бар во всю ширину */
  margin: 12px -20px -20px;
  padding: 12px 16px;
  background: var(--brand-sky-050);
  border-top: 1px solid var(--brand-sky-200);
  border-radius: 0 0 12px 12px;
  box-shadow: 0 -6px 16px rgba(15, 27, 36, 0.08);
  font-size: 14px;
  color: var(--ink-700);
}

.live-quote__label {
  color: var(--ink-500);
}

.live-quote strong {
  font-size: 16px;
  color: var(--primary);
}

/* ── Success screen ──────────────────────────────────────────── */
.wizard-success {
  text-align: center;
  padding: 32px 16px 24px;
}

.wizard-success__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--brand-leaf-100);
  color: var(--brand-leaf-700);
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 16px;
}

.wizard-success h3 {
  margin: 0 0 10px;
  font-size: 20px;
  color: var(--ink-900);
}

.wizard-success p {
  color: var(--ink-500);
  margin: 0 0 24px;
}

/* ── Form message ────────────────────────────────────────────── */
.form-message {
  min-height: 20px;
  font-size: 13px;
  color: var(--accent-buoy);
  margin: 6px 0 0;
}

/* ── Wizard: short track, optional step, inline errors ───────── */
.wizard-skip-link {
  display: block;
  width: 100%;
  margin-top: 16px;
  padding: 8px 0;
  border: 0;
  background: transparent;
  color: var(--primary);
  font-size: 13px;
  font-weight: 500;
  text-align: center;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.wizard-skip-link:hover {
  color: var(--brand-sky-900);
}

.step-optional {
  font-weight: 400;
  font-size: 14px;
  color: var(--ink-500);
}

.step-subhead {
  margin: 20px 0 10px;
  font-size: 15px;
  color: var(--ink-900);
}

.suggest-tents {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
}

.btn-sm {
  padding: 7px 14px;
  font-size: 13px;
}

.suggest-tents .step-hint {
  margin: 0;
}

#applicationForm input.is-error,
#applicationForm textarea.is-error {
  border-color: var(--accent-buoy);
  background: #fff6f6;
}

#applicationForm .stepper:has(input.is-error) {
  border-color: var(--accent-buoy);
}

.row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.row input {
  width: auto;
}

/* ── Canopy toggle card ────────────────────────────────────────────── */
.canopy-toggle {
  display: block;
  margin-top: 16px;
  cursor: pointer;
}

.canopy-toggle input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

.canopy-toggle__content {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 16px;
  border: 2px solid var(--ink-200);
  border-radius: 12px;
  background: var(--ink-050);
  transition: border-color 0.18s, background 0.18s, box-shadow 0.18s;
  user-select: none;
}

.canopy-toggle:hover .canopy-toggle__content {
  border-color: var(--brand-sky-500);
  background: var(--brand-sky-050);
}

.canopy-toggle input:checked ~ .canopy-toggle__content {
  border-color: var(--brand-sky-700);
  background: var(--brand-sky-100);
  box-shadow: 0 0 0 1px var(--brand-sky-700);
}

.canopy-toggle__icon {
  font-size: 26px;
  line-height: 1;
  flex-shrink: 0;
}

.canopy-toggle__text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.canopy-toggle__text strong {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-900);
}

.canopy-toggle__text span {
  font-size: 12px;
  color: var(--ink-500);
  line-height: 1.4;
}

.canopy-toggle__check {
  width: 22px;
  height: 22px;
  border: 2px solid var(--ink-300);
  border-radius: 6px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, border-color 0.15s;
  background: #fff;
}

.canopy-toggle__check::after {
  content: '';
  width: 5px;
  height: 9px;
  border: 2px solid transparent;
  border-left: none;
  border-top: none;
  transform: rotate(45deg) translateY(-1px);
  transition: border-color 0.15s;
}

.canopy-toggle input:checked ~ .canopy-toggle__content .canopy-toggle__check {
  background: var(--brand-sky-700);
  border-color: var(--brand-sky-700);
}

.canopy-toggle input:checked ~ .canopy-toggle__content .canopy-toggle__check::after {
  border-color: #fff;
}

/* ── Карточки шатров (замена выпадающего списка) ─────────────────────────── */
.field-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-700);
  margin-bottom: 8px;
}

.canopy-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.canopy-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 14px 12px;
  border: 2px solid var(--ink-200);
  border-radius: 12px;
  background: var(--ink-050);
  cursor: pointer;
  text-align: left;
  transition: border-color 0.18s, background 0.18s, box-shadow 0.18s;
}

.canopy-card:hover {
  border-color: var(--brand-sky-500);
  background: var(--brand-sky-050);
}

.canopy-card:focus-visible {
  outline: 2px solid var(--brand-sky-700);
  outline-offset: 2px;
}

.canopy-card.is-selected {
  border-color: var(--brand-sky-700);
  background: var(--brand-sky-100);
  box-shadow: 0 0 0 1px var(--brand-sky-700);
}

.canopy-card__check {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 20px;
  height: 20px;
  border: 2px solid var(--ink-300);
  border-radius: 50%;
  background: #fff;
  transition: background 0.15s, border-color 0.15s;
}

.canopy-card__check::after {
  content: '';
  position: absolute;
  inset: 0;
  margin: auto;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fff;
  transform: scale(0);
  transition: transform 0.15s;
}

.canopy-card.is-selected .canopy-card__check {
  background: var(--brand-sky-700);
  border-color: var(--brand-sky-700);
}

.canopy-card.is-selected .canopy-card__check::after {
  transform: scale(1);
}

.canopy-card__name {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-900);
  padding-right: 28px;
}

.canopy-card__meta {
  font-size: 12px;
  color: var(--ink-500);
  line-height: 1.4;
}

.canopy-card__more {
  align-self: flex-start;
  margin-top: 6px;
  padding: 0;
  border: none;
  background: none;
  color: var(--brand-sky-700);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.canopy-card__more:hover { color: var(--brand-sky-900); }

@media (max-width: 480px) {
  .canopy-cards { grid-template-columns: 1fr; }
}

/* ── Модалка подробностей о шатре ────────────────────────────────────────── */
.tent-modal {
  position: fixed;
  inset: 0;
  background: rgba(10, 20, 45, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 9980;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.tent-modal.is-open {
  opacity: 1;
  pointer-events: all;
}

.tent-modal__box {
  position: relative;
  width: min(560px, 100%);
  max-height: 88vh;
  overflow: auto;
  background: var(--paper);
  border-radius: 16px;
  box-shadow: var(--shadow-4);
  padding: 24px;
}

.tent-modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  border: none;
  border-radius: 50%;
  background: var(--ink-100);
  color: var(--ink-700);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s;
}

.tent-modal__close:hover { background: var(--ink-200); }

.tent-modal__title {
  margin: 0 36px 14px 0;
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--brand-sky-900);
}

.tent-modal__gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 8px;
  margin-bottom: 16px;
}

.tent-modal__gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 10px;
  cursor: zoom-in;
  transition: transform 0.15s;
}

.tent-modal__gallery img:hover { transform: scale(1.02); }

.tent-modal__placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 150px;
  margin-bottom: 16px;
  border: 1px dashed var(--ink-200);
  border-radius: 12px;
  background: var(--ink-050);
  color: var(--ink-400);
  font-size: 13px;
}

.tent-modal__placeholder-icon { font-size: 32px; }

.tent-modal__specs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin: 0 0 14px;
}

.tent-modal__specs > div {
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--brand-sky-050);
}

.tent-modal__specs dt {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ink-500);
  margin-bottom: 2px;
}

.tent-modal__specs dd {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-900);
}

.tent-modal__note {
  margin: 0;
  font-size: 14px;
  color: var(--ink-700);
  line-height: 1.5;
}

.honeypot {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 1px;
  width: 1px;
}

.turnstile-placeholder {
  margin-top: 8px;
  color: var(--ink-500);
  font-size: 13px;
}

.privacy-consent {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 16px;
  font-size: 14px;
  cursor: pointer;
}
.privacy-consent input[type="checkbox"] {
  margin-top: 3px;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}
.privacy-consent a {
  color: var(--brand-sky-600);
  text-decoration: underline;
}

.hidden {
  display: none !important;
}

/* ============================================================
   Hero ticker strip
   ============================================================ */
.hero-ticker {
  padding: 20px 0;
  border-top: 1px solid var(--ink-200);
  border-bottom: 1px solid var(--ink-200);
  overflow: hidden;
  white-space: nowrap;
}

.hero-ticker__inner {
  display: inline-flex;
  gap: 48px;
  animation: ticker 24s linear infinite;
}

.hero-ticker__item {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 26px;
  letter-spacing: -0.02em;
  color: var(--ink-900);
  flex-shrink: 0;
}

.hero-ticker__item--dot {
  color: var(--brand-leaf-700);
  font-size: 18px;
}

@keyframes ticker {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ============================================================
   Section layout improvements
   ============================================================ */
.section-head {
  margin-bottom: 48px;
}

.section-head .eyebrow {
  margin-bottom: 16px;
}

.section-head--row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

/* ============================================================
   Events — filter tabs, timeline, cards
   ============================================================ */
.events-filters {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.filter-tabs {
  display: flex;
  gap: 4px;
  padding: 4px;
  background: var(--paper);
  border-radius: 999px;
  border: 1px solid var(--ink-200);
}

.filter-tab {
  padding: 10px 18px;
  font-size: 13px;
  font-weight: 500;
  font-family: var(--font-text);
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  background: transparent;
  color: var(--ink-500);
  transition: background 200ms, color 200ms;
  min-height: 44px;
}

.filter-tab.is-active {
  background: var(--brand-sky-700);
  color: #fff;
}

.events-timeline {
  background: var(--paper);
  border: 1px solid var(--ink-200);
  border-radius: 16px;
  padding: 28px 32px;
  margin-top: 24px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.timeline-label {
  flex: 0 0 auto;
}

.timeline-label .tl-caption {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-400);
}

.timeline-label .tl-date {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 500;
  color: var(--ink-900);
  letter-spacing: -0.01em;
}

.timeline-track {
  flex: 1;
  position: relative;
  padding: 20px 0;
}

.timeline-track__bar {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 2px;
  background: var(--ink-200);
  transform: translateY(-50%);
}

.timeline-track__progress {
  position: absolute;
  left: 0;
  top: 50%;
  height: 2px;
  width: 38%;
  background: linear-gradient(90deg, var(--brand-leaf-700), var(--brand-sky-700));
  transform: translateY(-50%);
  border-radius: 2px;
}

.timeline-track__now {
  position: absolute;
  left: 38%;
  top: 50%;
  /* центрируем по горизонтали; точку сажаем ровно на полосу */
  transform: translate(-50%, -50%);
  z-index: 3;
}

/* Метку выносим из потока вверх, чтобы точка осталась на полосе,
   а не съезжала в строку с названиями месяцев */
.timeline-track__now-label {
  position: absolute;
  bottom: calc(100% + 5px);
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 600;
  color: var(--brand-sky-700);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.timeline-track__now-dot {
  display: block;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--brand-sky-700);
  border: 3px solid #fff;
  box-shadow: 0 0 0 1px var(--brand-sky-700);
}

.timeline-months {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
}

.timeline-month {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.timeline-month__roman {
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--ink-400);
  letter-spacing: 0.1em;
}

.timeline-month__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--ink-200);
}

.timeline-month__dot.is-past {
  border-color: var(--brand-leaf-700);
}

.timeline-month__name {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 500;
  color: var(--ink-900);
}

.timeline-month__events {
  display: flex;
  gap: 3px;
}

.timeline-month__ev-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--brand-sky-200);
}

.timeline-month__ev-dot.has-event {
  background: var(--brand-sky-700);
  opacity: 0.7;
}

.events-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 24px;
  margin-top: 24px;
}

.event-featured {
  background: var(--paper);
  border-radius: 16px;
  border: 1px solid var(--ink-200);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.event-featured__visual {
  height: 280px;
  background: linear-gradient(180deg, var(--brand-sky-100) 0%, var(--brand-sky-200) 35%, var(--brand-sky-500) 75%, var(--brand-sky-700) 100%);
  position: relative;
}

.event-featured__visual[style*="background-image"]::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.05) 0%, rgba(0,0,0,0.45) 100%);
  pointer-events: none;
}

.event-featured__badge {
  position: absolute;
  z-index: 1;
  top: 18px;
  left: 18px;
  background: rgba(255,255,255,0.92);
  color: var(--brand-sky-700);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.event-featured__badge::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--sunset-700);
}

.event-featured__date-block {
  position: absolute;
  z-index: 1;
  bottom: 18px;
  left: 18px;
  color: #fff;
  display: flex;
  align-items: flex-end;
  gap: 10px;
}

.event-featured__day {
  font-family: var(--font-display);
  font-size: 72px;
  font-weight: 500;
  line-height: 0.9;
  letter-spacing: -0.03em;
}

.event-featured__month-name {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 22px;
  line-height: 1;
}

.event-featured__dow {
  font-family: var(--font-mono);
  font-size: 10px;
  opacity: 0.8;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-top: 4px;
}

.event-featured__crew {
  position: absolute;
  z-index: 1;
  bottom: 18px;
  right: 18px;
  background: rgba(15,27,36,0.45);
  backdrop-filter: blur(6px);
  color: #fff;
  font-size: 11px;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 999px;
}

.event-featured__body {
  padding: 28px 32px 32px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.event-featured__kind {
  font-family: var(--font-text);
  font-size: 13px;
  color: var(--brand-sky-700);
  letter-spacing: 0.01em;
  text-transform: none;
  font-weight: 500;
  line-height: 1.5;
}

.event-featured__title {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--ink-900);
  margin: 10px 0 14px;
}

.event-featured__desc {
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink-700);
}

.event-featured__footer {
  margin-top: auto;
  padding-top: 24px;
  border-top: 1px solid var(--ink-200);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.event-featured__fee-label {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--ink-400);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.event-featured__fee {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 500;
  color: var(--ink-900);
  letter-spacing: -0.01em;
}

.event-featured__actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.event-list-card {
  background: var(--paper);
  border-radius: 16px;
  border: 1px solid var(--ink-200);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.event-list-card__header {
  padding: 18px 24px;
  border-bottom: 1px solid var(--ink-200);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}

.event-list-card__title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 500;
  color: var(--ink-900);
}

.event-list-card__count {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-400);
  margin-left: 10px;
}

.event-list-card__link {
  font-size: 13px;
  font-weight: 500;
  color: var(--brand-sky-700);
  text-decoration: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  font-family: inherit;
}

.event-item {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 16px;
  padding: 18px 24px;
  align-items: center;
  border-top: 1px solid var(--ink-200);
  cursor: pointer;
  transition: background 200ms;
}

.event-item:first-child {
  border-top: 0;
}

.event-item:hover {
  background: var(--ink-050);
}

.event-item__date-num {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--ink-900);
}

.event-item__date-meta {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--ink-400);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-top: 2px;
}

.event-item__tags {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.event-tag {
  display: inline-block;
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.event-tag--regatta {
  background: var(--brand-sky-100);
  color: var(--brand-sky-900);
}

.event-tag--school {
  background: var(--brand-leaf-100);
  color: var(--brand-leaf-900);
}

.event-tag--promo {
  background: var(--sunset-100);
  color: #8a4520;
}

.event-tag--corp {
  background: var(--ink-100);
  color: var(--ink-700);
}

.event-tag--season {
  background: var(--brand-leaf-100);
  color: var(--brand-leaf-900);
}

.event-item__spots {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-400);
}

.event-item__name {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-900);
  line-height: 1.3;
}

.event-item__sub {
  font-size: 12px;
  color: var(--ink-400);
  margin-top: 2px;
}

.event-item__arrow {
  color: var(--brand-sky-700);
  font-size: 16px;
  opacity: 0.6;
}

.event-list-card__footer {
  padding: 18px 24px;
  background: var(--ink-050);
  border-top: 1px solid var(--ink-200);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.event-list-card__footer p {
  font-size: 13px;
  color: var(--ink-700);
  line-height: 1.45;
  margin: 0;
  max-width: 280px;
}

/* ============================================================
   Editorial quote section — full-width photo with text overlay
   ============================================================ */
.editorial {
  position: relative;
  min-height: 560px;
  overflow: hidden;
}

.editorial__photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Two legibility gradients — matches design prototype */
.editorial__wash-left {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(95deg, rgba(20,12,8,0.62) 0%, rgba(20,12,8,0.35) 40%, rgba(20,12,8,0) 70%);
}

.editorial__wash-bottom {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(20,12,8,0) 55%, rgba(20,12,8,0.45) 100%);
}

.editorial__content {
  position: relative;
  padding: 80px 72px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 80px;
  align-items: flex-end;
  min-height: 560px;
  box-sizing: border-box;
}

.editorial__body {
  color: #F5EBD5; /* cream */
  max-width: 560px;
}


.editorial__quote {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(26px, 3vw, 42px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0 0 24px;
  color: #F5EBD5;
  text-shadow: 0 4px 28px rgba(20,12,8,0.45);
}

.editorial__quote em {
  font-style: italic;
  color: #F4C57A;
}

.editorial__text {
  font-size: 16px;
  line-height: 1.65;
  color: rgba(245,235,213,0.78);
  margin: 0 0 36px;
  text-shadow: 0 2px 12px rgba(20,12,8,0.4);
}

.editorial__items {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

.editorial__item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: rgba(245,235,213,0.78);
}

.editorial__item::before {
  content: '';
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #F4C57A;
  box-shadow: 0 0 10px #F4C57A;
  flex: 0 0 auto;
}

.editorial__actions {
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
}


.btn-cream {
  background: #F5EBD5;
  color: #3A2614;
  border: 1px solid #F5EBD5;
}

.btn-cream:hover {
  background: #ede0c5;
}

.btn-cream.js-open-wizard {
  background: var(--brand-leaf-700);
  color: #fff;
  border-color: var(--brand-leaf-700);
}

.btn-cream.js-open-wizard:hover {
  background: var(--brand-leaf-900);
  border-color: var(--brand-leaf-900);
}

.btn-ghost-cream {
  background: transparent;
  color: #F5EBD5;
  border: 1px solid rgba(245,235,213,0.55);
}

/* ============================================================
   Testimonials
   ============================================================ */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 48px;
}

.testimonial-card {
  background: var(--ink-050);
  border-radius: 20px;
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  min-height: 280px;
}

.testimonial-card__quote-mark {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 72px;
  line-height: 0.7;
  color: var(--brand-leaf-700);
  margin-bottom: 12px;
}

.testimonial-card__text {
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-900);
  flex: 1;
  margin: 0;
}

.testimonial-card__author {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--ink-200);
}

.testimonial-card__avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  flex: 0 0 auto;
}

.testimonial-card__avatar--blue {
  background: var(--brand-sky-100);
  color: var(--brand-sky-900);
}

.testimonial-card__avatar--green {
  background: var(--brand-leaf-100);
  color: var(--brand-leaf-900);
}

.testimonial-card__avatar--sun {
  background: var(--sunset-100);
  color: #8a4520;
}

.testimonial-card__name {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-900);
}

.testimonial-card__sub {
  font-size: 12px;
  color: var(--ink-400);
  margin-top: 2px;
}

.testimonials-stat {
  display: flex;
  align-items: flex-end;
  gap: 36px;
  margin-bottom: 8px;
}

/* Center the reviews composition (avoids the empty gap on the right) */
#reviews { text-align: center; }
#reviews .testimonials-stat { justify-content: center; }
#reviews .yandex-reviews-wrap { margin-inline: auto; }

.testimonials-stat__num {
  font-family: var(--font-display);
  font-size: 72px;
  font-weight: 300;
  color: var(--ink-900);
  line-height: 1;
  letter-spacing: -0.03em;
}

.testimonials-stat__caption {
  font-size: 16px;
  color: var(--ink-400);
  padding-bottom: 10px;
  max-width: 260px;
  line-height: 1.45;
}

/* ============================================================
   Review Photos Grid (from /api/reviews)
   ============================================================ */
.review-photos {
  margin-top: 48px;
}

.review-photos__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.review-photo-item {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 12px;
  background: var(--ink-100);
  cursor: pointer;
}

.review-photo-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.review-photo-item:hover img {
  transform: scale(1.05);
}

.review-photo-item__author {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px 12px 10px;
  background: linear-gradient(transparent, rgba(0,0,0,0.55));
  color: #fff;
  font-size: 12px;
  font-weight: 500;
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
}

.review-photo-item:hover .review-photo-item__author {
  opacity: 1;
}

.review-photos__more {
  display: inline-block;
  margin-top: 20px;
  font-size: 14px;
  color: var(--brand-sky-700, #1565c0);
  text-decoration: none;
  font-weight: 500;
}

.review-photos__more:hover {
  text-decoration: underline;
}

/* ============================================================
   Gallery Section
   ============================================================ */
.gallery-section {
  margin-bottom: 0;
}

.gallery-filters {
  margin-top: 20px;
}

.gallery-filters:not([hidden]) + .gallery-grid {
  margin-top: 16px;
}

.gallery-grid {
  columns: 3;
  column-gap: 8px;
  margin-top: 32px;
}

.gallery-grid:empty {
  display: none;
}

.gallery-section:has(.gallery-grid:empty) {
  display: none;
}

.gallery-item {
  break-inside: avoid;
  margin-bottom: 8px;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  position: relative;
  background: var(--ink-100);
}

.gallery-item img {
  width: 100%;
  display: block;
  transition: transform 0.35s ease;
}

.gallery-item:hover img {
  transform: scale(1.04);
}

.gallery-item__caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 24px 12px 10px;
  background: linear-gradient(transparent, rgba(0,0,0,0.55));
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
}

.gallery-item:hover .gallery-item__caption {
  opacity: 1;
}

/* ============================================================
   Видео-лента (reels-style)
   ============================================================ */
.video-grid {
  display: flex;
  gap: 14px;
  margin-top: 32px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 8px;
  -webkit-overflow-scrolling: touch;
}
#videoGrid .video-card {
  position: relative;
  flex: 0 0 auto;
  width: 260px;
  aspect-ratio: 9 / 16;
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  background: var(--ink-100);
  scroll-snap-align: start;
}
#videoGrid .video-card video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.video-card__play {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 60px;
  height: 60px;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.45);
  cursor: pointer;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.video-card__play::before {
  content: "";
  position: absolute;
  top: 50%; left: 54%;
  transform: translate(-50%, -50%);
  border-style: solid;
  border-width: 11px 0 11px 18px;
  border-color: transparent transparent transparent #fff;
}
.video-card:hover .video-card__play {
  transform: scale(1.08);
}
.video-card.is-playing .video-card__play {
  opacity: 0;
  pointer-events: none;
}
.video-card__caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 26px 12px 12px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.6));
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  pointer-events: none;
}
@media (max-width: 640px) {
  #videoGrid .video-card { width: 70vw; max-width: 280px; }
}

/* ============================================================
   Lightbox
   ============================================================ */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9990;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.lightbox.is-open {
  opacity: 1;
  pointer-events: all;
}

.lightbox__img-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 90vw;
  max-height: 85vh;
}

.lightbox__img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 8px;
  display: block;
  user-select: none;
}

.lightbox__caption {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.75);
  font-size: 14px;
  text-align: center;
  max-width: 600px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin: 0;
}

.lightbox__close {
  position: absolute;
  top: 16px; right: 20px;
  background: none;
  border: none;
  color: #fff;
  font-size: 28px;
  cursor: pointer;
  opacity: 0.65;
  line-height: 1;
  padding: 4px 8px;
  transition: opacity 0.15s;
}

.lightbox__close:hover { opacity: 1; }

.lightbox__prev,
.lightbox__next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 32px;
  cursor: pointer;
  padding: 6px 16px;
  border-radius: 8px;
  line-height: 1;
  transition: background 0.15s;
}

.lightbox__prev { left: 16px; }
.lightbox__next { right: 16px; }

.lightbox__prev:hover,
.lightbox__next:hover {
  background: rgba(255, 255, 255, 0.25);
}

@media (max-width: 600px) {
  .gallery-grid { columns: 2; }
  .lightbox__prev { left: 8px; }
  .lightbox__next { right: 8px; }
  .lightbox__caption { display: none; }
}

@media (max-width: 600px) {
  .review-photos__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .events-timeline {
    padding: 14px 12px;
    gap: 8px;
  }
  .timeline-label {
    display: none;
  }
  .timeline-month__name {
    font-size: 13px;
  }
  .timeline-month__roman {
    font-size: 8px;
  }

  /* На узких экранах текстовую метку «сейчас» скрываем (полоса + точка
     уже показывают текущий момент), а точку слегка уменьшаем и поднимаем,
     чтобы она не наезжала на название месяца */
  .timeline-track__now-label {
    display: none;
  }
  .timeline-track__now-dot {
    width: 12px;
    height: 12px;
  }
  .timeline-track__now {
    transform: translate(-50%, -70%);
  }

  .event-featured__footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .event-featured__actions {
    width: 100%;
  }

  .event-featured__actions .btn {
    flex: 1;
  }

  .event-list-card__footer {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .event-list-card__footer .btn {
    text-align: center;
  }
}

/* ============================================================
   Yandex Reviews Widget
   ============================================================ */
.yandex-reviews-wrap {
  position: relative;
  width: 100%;
  max-width: 600px;
  height: 800px;
  margin-top: 48px;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid var(--ink-200);
}

.yandex-reviews-iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

.yandex-reviews-link {
  position: absolute;
  bottom: 8px;
  left: 0;
  width: 100%;
  text-align: center;
  font-size: 11px;
  color: var(--ink-500);
  text-decoration: none;
  padding: 0 16px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: block;
  box-sizing: border-box;
}

.yandex-reviews-link:hover {
  color: var(--ink-700);
}

/* ============================================================
   Friends section
   ============================================================ */
.friends-section {
  padding: 64px 0;
  border-top: 1px solid var(--ink-200);
}

.friends-section > div {
  display: grid;
  grid-template-columns: 1fr 3fr;
  gap: 64px;
  align-items: center;
}

.faq-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: start;
}

.faq-layout > div:first-child {
  margin-bottom: 4px;
}

/* ============================================================
   Виджет погоды (Видогощи)
   ============================================================ */
.weather-widget {
  background: linear-gradient(160deg, var(--brand-sky-050), var(--paper));
  border: 1px solid var(--ink-200);
  border-radius: 18px;
  padding: 20px 22px;
  box-shadow: var(--shadow-2);
}

.weather-widget__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.weather-widget__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink-900);
}

.weather-widget__sub {
  margin: 2px 0 0;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-400);
}

.weather-widget__now {
  flex: 0 0 auto;
  font-size: 16px;
  font-weight: 600;
  color: var(--brand-sky-700);
  white-space: nowrap;
}

.weather-widget__days {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 10px;
}

.weather-widget__loading {
  grid-column: 1 / -1;
  padding: 8px 0;
  font-size: 14px;
  color: var(--ink-400);
}

.weather-day {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
  padding: 16px 8px;
  border: 1px solid var(--ink-100);
  border-radius: 14px;
  background: var(--paper);
}

.weather-day__name {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-700);
}

.weather-day__icon {
  font-size: 26px;
  line-height: 1;
}

.weather-day__desc {
  font-size: 12px;
  color: var(--ink-500);
}

.weather-day__temp {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  margin-top: 2px;
  font-size: 14px;
  color: var(--ink-900);
}

.weather-day__temp b {
  font-weight: 700;
  font-size: 16px;
}

.weather-day__min {
  color: var(--ink-400);
  font-size: 13px;
}

.weather-day__wind {
  font-size: 12px;
  color: var(--ink-500);
  margin-top: 2px;
}

/* FAQ: вопросы + контакт под ними */
.faq-main {
  display: flex;
  flex-direction: column;
}

.faq-contact {
  margin: 20px 0 0;
  font-size: 15px;
  color: var(--ink-500);
  line-height: 1.65;
}

@media (max-width: 768px) {
  .weather-widget__days {
    grid-auto-flow: column;
    grid-template-columns: none;
    grid-auto-columns: 96px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    /* Подсказка о возможности скролла: правый край мягко затухает,
       только когда контент действительно выходит за границу */
    -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent);
    mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent);
    padding-right: 4px;
  }
}

.friends-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.friend-card {
  padding: 28px;
  border-radius: 14px;
  border: 1px solid var(--ink-200);
  background: var(--paper);
  box-shadow: var(--shadow-2);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.friend-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-4);
  border-color: var(--brand-sky-200);
}

.friend-card__logo {
  display: block;
  height: 40px;
  width: auto;
  max-width: 70%;
  object-fit: contain;
  object-position: left center;
  margin-bottom: 14px;
  filter: grayscale(0.55);
  opacity: 0.82;
  transition: filter 0.25s ease, opacity 0.25s ease;
}

.friend-card:hover .friend-card__logo {
  filter: grayscale(0);
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  .friend-card,
  .friend-card__logo { transition: none; }
  .friend-card:hover { transform: none; }
}

.friend-card__abbr {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--ink-900);
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.friend-card__name {
  font-size: 13px;
  color: var(--ink-400);
  line-height: 1.5;
}

/* ============================================================
   FAQ improvements
   ============================================================ */
.faq details {
  background: var(--paper);
  border: 1px solid var(--ink-200);
  border-radius: 14px;
  padding: 0;
  margin-bottom: 10px;
  overflow: hidden;
}

.faq details summary {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--ink-900);
  cursor: pointer;
  padding: 24px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  list-style: none;
}

.faq details summary::-webkit-details-marker { display: none; }

.faq details summary::after {
  content: '+';
  font-family: var(--font-text);
  font-weight: 300;
  font-size: 24px;
  color: var(--ink-400);
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  border: 1px solid var(--ink-200);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transition: transform 0.25s, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.faq details[open] summary::after {
  transform: rotate(45deg);
  background: var(--brand-sky-700);
  border-color: var(--brand-sky-700);
  color: #fff;
}

.faq details p {
  margin: 0;
  padding: 0 28px 24px;
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink-700);
}

/* FAQ — состояния наведения и раскрытия */
.faq details {
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.faq details summary {
  transition: background 0.18s ease;
}

.faq details:hover {
  border-color: var(--brand-sky-200);
}

.faq details summary:hover {
  background: var(--brand-sky-050);
}

.faq details summary:hover::after {
  border-color: var(--brand-sky-500);
  color: var(--brand-sky-700);
}

.faq details[open] {
  border-color: var(--brand-sky-200);
  box-shadow: var(--shadow-2);
}

@media (prefers-reduced-motion: reduce) {
  .faq details,
  .faq details summary,
  .faq details summary::after { transition: none; }
}

/* ============================================================
   Pill / tag component
   ============================================================ */
.pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.pill--line {
  border: 1px solid var(--ink-200);
  color: var(--ink-700);
}

.pill--blue {
  background: var(--brand-sky-100);
  color: var(--brand-sky-900);
}

.pill--green {
  background: var(--brand-leaf-100);
  color: var(--brand-leaf-900);
}

/* ============================================================
   Hero stats — 4 items in design, update layout
   ============================================================ */
.hero-stats {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

@media (max-width: 1080px) {
  .hero-split,
  .events-wrap,
  .events-grid,
  .editorial,
  .testimonials-grid,
  .grid-4,
  .grid-3,
  .grid-2,
  .calc,
  .footer-top {
    grid-template-columns: 1fr;
  }

  .friends-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-stats > div + div {
    border-left: none;
    padding-left: 0;
  }

  .editorial__content {
    grid-template-columns: 1fr;
    padding: 48px 32px;
    gap: 32px;
  }


  .event-item {
    grid-template-columns: 48px 1fr auto;
  }

  .friends-section > div,
  .faq-layout {
    grid-template-columns: 1fr;
  }

  .hero-ticker__item {
    font-size: 20px;
  }

  .testimonials-stat {
    flex-direction: column;
    gap: 8px;
  }

  .testimonials-stat__num {
    font-size: 52px;
  }

  .video-card video {
    min-height: 240px;
  }

  .footer-contacts__cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .footer-contacts {
    padding: 36px 20px;
  }

  .footer-contacts__cards {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .contact-card {
    text-align: center;
  }

  .contact-card span {
    justify-content: center;
  }

  .friends-section {
    padding: 40px 0;
  }

  .friends-section > div {
    gap: 28px;
  }

  .friends-grid {
    gap: 12px;
  }

  .friend-card {
    padding: 18px;
  }
}

/* ============================================================
   Mobile burger navigation (≤768px)
   ============================================================ */
.nav-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  background: none;
  border: 1px solid var(--ink-200);
  border-radius: 8px;
  cursor: pointer;
  flex-shrink: 0;
}

.nav-burger__line {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink-700);
  border-radius: 2px;
  transition: transform 0.22s ease, opacity 0.22s ease;
}

.nav-burger[aria-expanded="true"] .nav-burger__line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-burger[aria-expanded="true"] .nav-burger__line:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.nav-burger[aria-expanded="true"] .nav-burger__line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(10, 20, 45, 0.35);
  z-index: 38;
}

.nav-backdrop.is-visible {
  display: block;
}

/* Компактный бургер-хедер: включаем уже на планшетах (≤1080px),
   чтобы убрать «высокий» трёхрядный хедер в промежуточном диапазоне.
   Номер телефона на планшетах остаётся текстом — иконка-only только ≤768. */
@media (max-width: 1080px) {
  .header-inner {
    grid-template-columns: auto 1fr auto !important;
    min-height: 64px !important;
    gap: 12px !important;
    padding: 0 !important;
  }

  .brand img {
    height: 54px;
  }

  .nav-burger {
    display: flex;
  }

  /* nav уходит в fixed-drawer и освобождает центральную колонку —
     прижимаем действия (телефон/CTA/бургер) к правому краю */
  .header-actions {
    margin-left: auto;
  }

  .main-nav {
    display: none;
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: #fff;
    padding: 8px 20px 20px;
    border-bottom: 1px solid var(--ink-200);
    box-shadow: var(--shadow-4);
    z-index: 39;
    gap: 0;
  }

  .main-nav.is-open {
    display: flex;
  }

  .main-nav a {
    font-size: 17px;
    padding: 13px 0;
    border-bottom: 1px solid var(--ink-100);
    color: var(--ink-900);
    justify-content: flex-start;
  }

  /* В мобильном drawer подчёркивание не нужно — есть разделители строк */
  .main-nav a::after {
    display: none;
  }
  .main-nav a.is-active {
    color: var(--brand-sky-700);
  }

  .main-nav a:last-child {
    border-bottom: none;
  }

  .header-actions .btn-primary {
    font-size: 13px;
    padding: 10px 16px;
  }
}

@media (max-width: 768px) {
  /* На телефонах телефон сворачивается в иконку ради места */
  .phone-link {
    font-size: 0 !important;
    width: 44px;
    height: 44px;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--ink-200);
    border-radius: 8px;
    flex-shrink: 0;
  }

  .phone-link::before {
    content: '\260E';
    font-size: 20px;
    color: var(--primary);
  }

  .section {
    padding: 40px 0;
  }

  .video-card video {
    min-height: 200px;
  }

  .hero-stats > div:nth-child(n+4) {
    display: none;
  }

  .yandex-reviews-wrap {
    height: 500px;
  }
}

/* ── План острова ─────────────────────────────────── */
.island-plan {
  padding: 60px 0 0;
}

.island-plan__layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  height: 580px;
  margin-top: 24px;
}

.island-plan__map {
  height: 100%;
  /* Изолируем стекинг-контекст карты: высокие z-index слоёв и контролов Leaflet
     не «вылезают» поверх модалок/формы заявки (особенно на мобильной версии). */
  isolation: isolate;
}

.island-plan__map .leaflet-control-zoom.leaflet-bar a {
  width: 36px;
  height: 36px;
  line-height: 36px;
  font-size: 24px;
  text-indent: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.island-plan__sidebar {
  display: flex;
  flex-direction: column;
  min-height: 0;
  background: var(--paper);
  border-left: 1px solid var(--ink-200);
}

.island-plan__info {
  padding: 18px 20px;
  border-bottom: 1px solid var(--ink-200);
  color: var(--ink-900);
}

.island-plan__info h3 {
  margin: 0 0 8px;
  font-size: 16px;
}

.island-plan__info p {
  margin: 0 0 12px;
  font-size: 13px;
  line-height: 1.45;
  color: var(--ink-700);
}

.island-plan__info-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 10px;
}

.island-plan__info-actions .btn {
  font-size: 13px;
}

.island-plan__legend {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 16px 20px;
  background: var(--paper);
}

.island-plan__legend-title {
  margin: 0 0 12px;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-500);
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 6px;
  cursor: pointer;
  border-radius: 6px;
  transition: background 0.15s;
}

.legend-item:hover {
  background: var(--ink-50);
}

.legend-badge {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}

.legend-name {
  font-size: 13px;
  color: var(--ink-800);
  line-height: 1.3;
}

.iplan-marker {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  border: 2px solid rgba(255,255,255,0.8);
  box-shadow: 0 2px 6px rgba(0,0,0,0.35);
}

.iplan-glyph {
  display: block;
}

.iplan-popup__title {
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 6px;
  color: var(--ink-900);
}

.iplan-popup__img {
  width: 100%;
  max-height: 150px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 8px;
  display: block;
  cursor: zoom-in;
}

/* Лайтбокс: увеличенный просмотр картинки из попапа карты */
.iplan-lightbox {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(8, 15, 22, 0.88);
  cursor: zoom-out;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.iplan-lightbox.is-open {
  opacity: 1;
  pointer-events: auto;
}

.iplan-lightbox__img {
  max-width: min(92vw, 1100px);
  max-height: 90vh;
  width: auto;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.55);
}

.iplan-lightbox__close {
  position: absolute;
  top: 18px;
  right: 24px;
  width: 42px;
  height: 42px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s ease;
}

.iplan-lightbox__close:hover {
  background: rgba(255, 255, 255, 0.28);
}

.iplan-popup__desc {
  font-size: 13px;
  line-height: 1.45;
  color: var(--ink-700);
}

.iplan-popup__desc a { color: var(--blue, #2980b9); }

@media (max-width: 768px) {
  .island-plan__layout {
    grid-template-columns: 1fr;
    height: auto;
  }

  .island-plan__map {
    height: 340px;
  }

  /* Крупнее кнопки зума карты для тача */
  .island-plan__map .leaflet-control-zoom.leaflet-bar a {
    width: 40px;
    height: 40px;
    line-height: 40px;
  }

  .island-plan__sidebar {
    border-left: none;
    border-top: 1px solid var(--ink-200);
  }

  .island-plan__legend {
    max-height: 280px;
  }
}

/* ============================================================
   Sticky mobile CTA bar (≤768px)
   ============================================================ */
.mobile-cta {
  display: none;
}

@media (max-width: 768px) {
  .mobile-cta {
    display: flex;
    align-items: center;
    gap: 10px;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 45;
    padding: 10px 16px;
    padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px));
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid var(--ink-200);
    box-shadow: 0 -6px 24px rgba(15, 27, 36, 0.10);
    transform: translateY(130%);
    transition: transform 0.3s ease;
  }

  .mobile-cta.is-visible {
    transform: translateY(0);
  }

  .mobile-cta__btn {
    flex: 1;
    min-height: 48px;
    background: var(--brand-leaf-700);
  }

  .mobile-cta__btn:hover {
    background: var(--brand-leaf-900);
  }

  .mobile-cta__phone {
    flex: 0 0 auto;
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--ink-200);
    border-radius: 12px;
    color: var(--primary);
    background: #fff;
    text-decoration: none;
  }
}

/* ============================================================
   Доп. мобильные доработки: touch-таргеты и читаемость
   ============================================================ */
@media (max-width: 768px) {
  /* Крупнее зона тапа по дням календаря */
  .rc-day {
    padding: 14px 0;
  }

  /* Синий блок прайса: умереннее вертикальные отступы на мобиле */
  .section.section--sky {
    padding: 32px 20px;
  }

  /* Читаемее мелкий текст прогноза в hero */
  .hero-weather__name,
  .hero-weather__wind {
    font-size: 12px;
  }

  /* Достаточная зона тапа у ссылки-пропуска в опроснике */
  .wizard-skip-link {
    min-height: 44px;
  }

  /* FAQ: компактнее заголовки вопросов на узких экранах */
  .faq details summary {
    font-size: 17px;
    padding: 18px 18px;
    gap: 12px;
  }

  .faq details summary::after {
    width: 28px;
    height: 28px;
    font-size: 20px;
  }

  .faq details p {
    padding: 0 18px 20px;
  }
}

/* ============================================================
   Опросник/модалка: комфортные touch-таргеты на телефонах
   (ключевой путь заявки — все контролы ≥44px)
   ============================================================ */
@media (max-width: 768px) {
  .modal__close {
    width: 44px;
    height: 44px;
    right: 8px;
    top: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
  }

  /* Степперы количества: выше и шире для пальца */
  .stepper__btn {
    width: 44px;
  }

  .stepper input[type="number"] {
    padding-top: 12px;
    padding-bottom: 12px;
    font-size: 16px;
  }

  /* Стрелки переключения месяца в календаре */
  .rc-nav {
    width: 40px;
    height: 40px;
  }

  /* Чуть просторнее диалог по краям на узких экранах */
  .modal {
    padding: 14px;
  }
}

/* ============================================================
   Поля ввода на телефонах: 16px против iOS-зума + удобная высота
   ============================================================ */
@media (max-width: 768px) {
  /* iOS Safari зумит страницу при фокусе на инпут с font-size < 16px */
  input,
  select,
  textarea {
    font-size: 16px;
  }

  /* Комфортная высота полей ввода (текст/телефон/почта/дата/список) */
  input[type="text"],
  input[type="tel"],
  input[type="email"],
  input[type="date"],
  input[type="search"],
  select {
    min-height: 44px;
  }

  /* Крупнее чекбокс согласия — легче попасть пальцем */
  .privacy-consent input[type="checkbox"] {
    width: 22px;
    height: 22px;
  }

  /* Lead-попап: имя и телефон в одну колонку
     (поле телефона получает полную ширину, плейсхолдер не режется) */
  .calc-lead--popup .calc-lead__form {
    grid-template-columns: 1fr;
  }

  /* Hero: поднимаем видео-карточку выше текста на телефонах —
     постер виден сразу и ведёт hero визуалом (ключевая фишка клуба) */
  .hero-split {
    gap: 20px;
  }

  .hero-media {
    order: -1;
  }

  .hero {
    padding-top: 24px;
  }
}

/* ============================================================
   prefers-reduced-motion: гасим бесконечный тикер, бегущие
   и тяжёлые анимации для пользователей с непереносимостью движения
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  html {
    scroll-behavior: auto !important;
  }

  /* Бесконечная бегущая строка — полностью останавливаем */
  .hero-ticker__inner {
    animation: none !important;
  }
}

/* «Осталось N свободных мест» в калькуляторе и опроснике */
.calc-spots {
  margin: 8px 0;
  padding: 8px 12px;
  border-radius: 8px;
  background: var(--brand-leaf-050, #f1f8e9);
  color: var(--brand-leaf-900, #1a4d1d);
  border: 1px solid var(--brand-leaf-200, #c8e0c5);
  font-weight: 600;
}
.calc-spots strong { color: var(--brand-leaf-700, #256b29); }
.calc-spots--low {
  background: #fdece6;
  color: #8a2b12;
  border-color: #f0c2b2;
}
.calc-spots--low strong { color: var(--accent-buoy, #d9633b); }

/* ============================================================
   Плавающая кнопка WhatsApp (быстрый контакт, рост конверсии)
   ============================================================ */
/* ── Плавающий переходник на мессенджеры (MAX · VK · WA · TG) ─────────────── */
.msgr-rail {
  position: fixed;
  right: 20px;
  bottom: 24px;
  z-index: 46; /* выше sticky-бара (45), ниже модалок/опросника (9980+) */
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.msgr {
  position: relative;
  width: 52px;
  height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #fff;
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(15, 27, 36, 0.28);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.msgr:hover {
  transform: scale(1.08);
  box-shadow: 0 10px 24px rgba(15, 27, 36, 0.4);
}
.msgr:focus-visible {
  outline: 3px solid #0f1b24;
  outline-offset: 3px;
}
.msgr svg { fill: currentColor; }
.msgr--max { background: linear-gradient(135deg, #4a90e2, #9b59d6); }
.msgr--vk  { background: #0077ff; }
.msgr--wa  { background: #25d366; }
.msgr--tg  { background: #2aabee; }
/* Глифы в разных viewBox — нормализуем зрительный размер */
.msgr--wa svg  { width: 26px; height: 26px; }
.msgr--max svg { width: 28px; height: 28px; }
.msgr--vk svg  { width: 31px; height: 31px; }
.msgr--tg svg  { width: 33px; height: 33px; }

/* Подпись справа при наведении (десктоп) */
.msgr__label {
  position: absolute;
  right: 64px;
  white-space: nowrap;
  background: #0f1b24;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 6px 10px;
  border-radius: 8px;
  opacity: 0;
  transform: translateX(8px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.msgr:hover .msgr__label { opacity: 1; transform: translateX(0); }

@media (max-width: 768px) {
  .msgr-rail { right: 14px; bottom: 16px; gap: 10px; }
  .msgr { width: 46px; height: 46px; }
  .msgr--wa svg  { width: 23px; height: 23px; }
  .msgr--max svg { width: 25px; height: 25px; }
  .msgr--vk svg  { width: 27px; height: 27px; }
  .msgr--tg svg  { width: 29px; height: 29px; }
  .msgr__label { display: none; }
  /* Когда показывается нижний sticky-бар — приподнимаем переходник над ним */
  .mobile-cta.is-visible ~ .msgr-rail { bottom: 84px; }
}

@media (prefers-reduced-motion: reduce) {
  .msgr { transition: none; }
}

/* ============================================================
   Trust-бейдж под главным CTA в hero (соцдоказательство)
   ============================================================ */
.hero-trust {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 14px;
  padding: 7px 13px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--ink-200, rgba(15, 27, 36, 0.12));
  box-shadow: 0 2px 10px rgba(15, 27, 36, 0.06);
  color: inherit;
  text-decoration: none;
  font-size: 14px;
  line-height: 1.2;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.hero-trust:hover {
  background: #fff;
  border-color: rgba(15, 27, 36, 0.22);
  box-shadow: 0 4px 14px rgba(15, 27, 36, 0.10);
}
.hero-trust__stars {
  color: #ffb703;
  letter-spacing: 1px;
  font-size: 15px;
}
.hero-trust__text { opacity: 0.95; }
.hero-trust__text strong { font-weight: 700; }

@media (max-width: 768px) {
  .hero-trust { font-size: 13px; padding: 6px 11px; }
}

/* ============================================================
   Переход из калькулятора в опросник с предзаполнением
   ============================================================ */
.calc-lead__continue {
  width: 100%;
  margin-bottom: 12px;
}
.calc-lead__sep {
  margin: 0 0 10px;
  font-size: 14px;
  color: var(--ink-500, #5a6b78);
  text-align: center;
}

/* ============================================================
   Reassurance у кнопки отправки опросника (снятие тревоги)
   ============================================================ */
.wizard-reassure {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 12px 0 4px;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--brand-leaf-50, #eef6f0);
  color: var(--ink-600, #44535f);
  font-size: 13px;
  line-height: 1.45;
}
.wizard-reassure__icon {
  flex: 0 0 auto;
  margin-top: 1px;
  color: var(--brand-leaf-700, #2f7d4f);
}

/* ============================================================
   Плавное появление блоков при прокрутке (scroll-reveal)
   Класс .reveal-on на <html> ставится из JS только если движение
   разрешено (не reduce-motion) и есть IntersectionObserver.
   Без JS / у краулеров / при reduce-motion — контент виден сразу
   (классы не добавляются), поэтому SEO и доступность не страдают.
   ============================================================ */
.reveal-on .reveal {
  opacity: 0;
  transform: translate3d(0, 22px, 0);
  transition: opacity 0.7s cubic-bezier(0.22, 0.61, 0.36, 1),
              transform 0.7s cubic-bezier(0.22, 0.61, 0.36, 1);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}
.reveal-on .reveal.is-revealed {
  opacity: 1;
  transform: none;
  will-change: auto;
}

@media (prefers-reduced-motion: reduce) {
  /* Подстраховка: даже если класс как-то попадёт в DOM — без анимации и сдвига */
  .reveal-on .reveal {
    opacity: 1 !important;
    transform: none !important;
  }
  /* Кнопки: без «прыжка» при наведении/нажатии */
  .btn:hover,
  .btn:active {
    transform: none !important;
  }
}

/* ============================================================
   Одноразовое мягкое появление контента hero при загрузке.
   Чистый CSS, без JS. h1 НЕ трогаем — это LCP-элемент, он виден
   сразу. При reduce-motion блок не применяется (контент виден).
   ============================================================ */
@media (prefers-reduced-motion: no-preference) {
  .hero__content > *:not(h1) {
    animation: heroIntro 0.55s cubic-bezier(0.22, 0.61, 0.36, 1) both;
  }
  .hero__content > .eyebrow { animation-delay: 0.04s; }
  .hero__content > p { animation-delay: 0.12s; }
  .hero__content > .hero-actions { animation-delay: 0.2s; }
  .hero__content > .hero-trust { animation-delay: 0.28s; }
  .hero__content > .hero-stats { animation-delay: 0.36s; }
}
@keyframes heroIntro {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
