:root {
  --bg: #ffffff;
  --bg-elevated: #fffcfa;
  --text: #3c3535;
  --text-soft: #3c3535;
  --muted: #7b7d83;
  --card: #ffffff;
  --border: rgba(60, 53, 53, 0.12);
  --gold: #b0966d;
  --gold-hover: #a0865f;
  --gold-light: #c0ab8a;
  --cream: #fffcfa;
  --heading-accent: #ad8063;
  --nav-active-text: #4f3e23;
  --hero-text: #ffffff;
  --sand-bg: #f6f1ed;
  --surface-muted: #f8f1ee;
  --surface-card: #fefcfb;
  --surface-form: #ffffff;
  --table-border: #d5d5d5;
  /* Playfair Display (Google) + Vela Sans (public/fonts) */
  --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body: 'Vela Sans', system-ui, -apple-system, sans-serif;
  --page-gutter: 12px;
  --hero-radius: 24px;
  --hero-height: 1004px;
  --container: 1332px;
  --shadow: 0 20px 50px rgba(44, 46, 51, 0.12);
}

:root[data-theme="dark"] {
  --bg: #13110e;
  --bg-elevated: #1a1712;
  --text: #f5f2ed;
  --text-soft: #d2d5dd;
  --muted: #7b7d83;
  --card: #0f0e0b;
  --border: rgba(245, 242, 237, 0.1);
  --cream: #2a2620;
  --sand-bg: #1d1a19;
  --surface-muted: #1f1c18;
  --surface-card: #1f1c18;
  --surface-form: #0f0e0b;
  --table-border: rgba(245, 242, 237, 0.14);
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
  /* полноширинные ленты (100vw) не должны давать горизонтальный скролл */
  overflow-x: clip;
}

body.modal-open,
body.nav-open {
  overflow: hidden;
}

img {
  max-width: 100%;
  height: auto;
}

.container {
  width: min(var(--container), 100% - var(--page-gutter) * 2);
  margin-inline: auto;
}

/* ——— Navigation (Figma: 1224:5821) ——— */

.nav {
  z-index: 100;
}

/* Шапка внутри hero-карточки */
.nav--hero {
  position: relative;
  flex-shrink: 0;
  width: 100%;
}

.nav--hero.nav--sticky {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  padding: 10px var(--page-gutter);
  background: color-mix(in srgb, var(--bg) 96%, transparent);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
}

.nav--hero.nav--sticky + .hero__content {
  padding-top: 72px;
}

.nav--hero.nav--sticky .nav-inner {
  max-width: var(--container);
  margin-inline: auto;
}

.nav--hero.nav--sticky .nav-logo__img {
  filter: brightness(0) saturate(100%);
}

:root[data-theme="dark"] .nav--hero.nav--sticky .nav-logo__img {
  filter: none;
}

.nav--hero.nav--sticky .nav-cluster {
  background: color-mix(in srgb, var(--text) 8%, transparent);
}

.nav--hero.nav--sticky .nav-menu a:not([data-active="true"]) {
  color: var(--text);
}

/* на светлом фоне липкой шапки белая пилюля без тени сливается с капсулой */
.nav--hero.nav--sticky .nav-menu__pill,
.nav--page .nav-menu__pill {
  border: 1px solid rgba(60, 53, 53, 0.08);
  box-shadow: 0 2px 12px rgba(60, 53, 53, 0.16);
}

:root[data-theme="dark"] .nav--hero.nav--sticky .nav-menu__pill,
:root[data-theme="dark"] .nav--page .nav-menu__pill {
  border-color: transparent;
  box-shadow: none;
}

.nav--hero.nav--sticky .nav-menu:not(.nav-menu--animated) a[data-active="true"],
.nav--page .nav-menu:not(.nav-menu--animated) a[data-active="true"] {
  box-shadow: 0 2px 12px rgba(60, 53, 53, 0.16);
}

.nav--hero.nav--sticky .nav-burger {
  border-color: var(--border);
  background: color-mix(in srgb, var(--text) 6%, transparent);
}

.nav--hero.nav--sticky .nav-burger span {
  background: var(--text);
}

.nav--hero.nav--sticky .nav-theme {
  border-color: var(--border);
}

:root[data-theme="light"] .nav--hero.nav--sticky .nav-theme__side--moon img {
  filter: brightness(0) saturate(100%);
}

/* в тёмной теме иконки тумблера остаются белыми — фильтр не нужен */

.nav--hero.nav--sticky .nav-phone {
  background: var(--gold);
}

.nav--hero.nav--sticky .nav-phone img {
  filter: none;
}

/* Обычная шапка на текстовых страницах */
.nav--page {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 12px var(--page-gutter);
  background: color-mix(in srgb, var(--bg) 96%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.nav--page .nav-logo__img {
  filter: brightness(0) saturate(100%);
}

:root[data-theme="dark"] .nav--page .nav-logo__img {
  filter: none;
}

.nav--page .nav-cluster {
  background: color-mix(in srgb, var(--text) 8%, transparent);
}

.nav--page .nav-menu a:not([data-active="true"]) {
  color: var(--text);
}

.nav--page .nav-theme {
  border-color: var(--border);
}

.nav-inner {
  display: grid;
  grid-template-columns: 171px minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  width: 100%;
  max-width: 1333px;
  min-height: 64px;
  margin-inline: auto;
}

.nav-logo {
  position: relative;
  z-index: 2;
  display: block;
  flex-shrink: 0;
  width: 171px;
  line-height: 0;
}

.nav-logo__img {
  display: block;
  width: 171px;
  height: 51px;
  max-width: none;
}

.nav-cluster {
  display: flex;
  align-items: center;
  justify-content: center;
  justify-self: center;
  width: max-content;
  max-width: 100%;
  min-width: 0;
  height: 64px;
  padding: 4px;
  border-radius: 60px;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.nav-menu {
  position: relative;
  display: flex;
  align-items: center;
  gap: 20px;
  min-width: 0;
  height: 100%;
  padding: 0;
  border-radius: 0;
  background: transparent;
  border: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: none;
}

/* Скользящий селектор активного пункта меню */
.nav-menu__pill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0;
  border-radius: 60px;
  background: #ffffff;
  opacity: 0;
  z-index: 0;
  pointer-events: none;
}

.nav-menu.nav-menu--animated .nav-menu__pill {
  transition: transform 0.3s cubic-bezier(0.22, 0.61, 0.36, 1), width 0.3s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.nav-menu.nav-menu--animated a {
  transition: color 0.3s ease, padding 0.3s cubic-bezier(0.22, 0.61, 0.36, 1), background 0.2s ease;
}

.nav-menu a {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  align-self: stretch;
  height: 100%;
  padding: 0;
  border-radius: 60px;
  color: var(--hero-text);
  text-decoration: none;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.48px;
  line-height: 1;
  white-space: nowrap;
  transition: background 0.2s ease, color 0.2s ease;
}

.nav-menu a[data-active="true"] {
  padding-inline: 24px;
  color: var(--nav-active-text);
}

.nav-menu:not(.nav-menu--animated) a[data-active="true"] {
  background: #ffffff;
}

.nav-menu a:first-of-type:not([data-active="true"]) {
  padding-left: 24px;
}

/* симметрично справа: неактивный крайний пункт не липнет к краю капсулы,
   активная пилюля на краю садится с инсетом 4px */
.nav-menu a:last-of-type:not([data-active="true"]) {
  padding-right: 28px;
}

.nav-controls {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
  justify-self: end;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

.nav-theme {
  position: relative;
  flex-shrink: 0;
  width: 65px;
  height: 36px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 50px;
  background: transparent;
  cursor: pointer;
}

.nav-theme__side {
  position: absolute;
  top: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 30px;
  transform: translateY(-50%);
  line-height: 0;
  transition: background 0.2s ease;
}

.nav-theme__side img {
  display: block;
}

.nav-theme__side--sun {
  left: 3px;
}

.nav-theme__side--moon {
  right: 2px;
}

:root[data-theme="light"] .nav-theme__side--sun {
  background: var(--gold);
}

:root[data-theme="light"] .nav-theme__side--moon {
  background: transparent;
}

:root[data-theme="dark"] .nav-theme__side--sun {
  background: transparent;
}

:root[data-theme="dark"] .nav-theme__side--moon {
  background: var(--gold);
}

.nav-phone {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  padding: 12px;
  border-radius: 40px;
  background: var(--gold);
  line-height: 0;
  text-decoration: none;
}

.nav-phone img {
  display: block;
  width: 24px;
  height: 24px;
}

.nav-burger {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.2);
  cursor: pointer;
}

.nav-burger span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  border-radius: 2px;
  background: #fff;
  transition: transform 0.25s ease;
}

.nav-mobile {
  position: fixed;
  inset: 0;
  z-index: 99;
  padding: 96px 24px 24px;
  background: var(--bg);
  overflow-y: auto;
}

/* backdrop-filter на шапке делает её containing block для fixed-меню —
   на время открытого меню отключаем, иначе оверлей не виден при скролле */
body.nav-open .nav--hero.nav--sticky,
body.nav-open .nav--page {
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  background: var(--bg);
}

/* при открытом меню строка шапки должна остаться над оверлеем,
   а логотип и бургер — стать контрастными на фоне страницы */
body.nav-open .nav-inner {
  position: relative;
  z-index: 100;
}

body.nav-open .nav-logo__img {
  filter: brightness(0) saturate(100%);
}

:root[data-theme="dark"] body.nav-open .nav-logo__img {
  filter: none;
}

body.nav-open .nav-burger {
  border-color: var(--border);
  background: color-mix(in srgb, var(--text) 6%, transparent);
}

body.nav-open .nav-burger span {
  background: var(--text);
}

body.nav-open .nav-theme {
  border-color: var(--border);
}

:root[data-theme="light"] body.nav-open .nav-theme__side--moon img {
  filter: brightness(0) saturate(100%);
}

/* бургер в открытом состоянии превращается в крестик
   (линии сходятся в центре: расстояние между ними 10px → сдвиг ±5px) */
body.nav-open .nav-burger span:first-child {
  transform: translateY(5px) rotate(45deg);
}

body.nav-open .nav-burger span:last-child {
  transform: translateY(-5px) rotate(-45deg);
}

.nav-mobile[hidden] {
  display: none;
}

.nav-mobile__links {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 24px;
}

.nav-mobile__links a {
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
}

.nav-mobile__links a[data-active="true"] {
  color: var(--gold);
}

/* ——— Buttons (Figma: button / 328:3687 / 1224:5829) ——— */

.btn {
  display: inline-flex;
  align-items: center;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  font-weight: 300;
  text-decoration: none;
  transition: background 0.2s ease;
}

.btn--cta {
  background: var(--gold);
  color: var(--hero-text);
  border-radius: 60px;
}

.btn--cta:hover {
  background: var(--gold-hover);
}

.btn--cta-header {
  gap: 12px;
  padding: 8px 8px 8px 28px;
  font-size: 14px;
  letter-spacing: 1.12px;
  line-height: 1;
}

.btn--cta-hero {
  gap: 28px;
  padding: 8px 8px 8px 48px;
  font-size: 14px;
  letter-spacing: 1.12px;
  line-height: 1;
}

.btn--cta-block {
  width: 100%;
  justify-content: space-between;
  padding: 8px 8px 8px 28px;
}

.btn__label {
  white-space: nowrap;
  text-box-trim: trim-both;
  text-box-edge: cap alphabetic;
}

.btn__circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding: 12px;
  border-radius: 40px;
}

.btn__circle--cream {
  background: var(--cream);
}

.btn__circle--white {
  padding: 19px 20px;
  border-radius: 40px;
  background: #ffffff;
}

.btn__arrow-icon {
  display: block;
  width: 24px;
  height: 24px;
}

/* ——— Hero (Figma: 1224:5817 / 1224:5818) ——— */

.main-home {
  padding: 10px 0 0;
  background: var(--bg);
}

.hero {
  position: relative;
  /* шапка (position:fixed) заперта в stacking-контексте hero-карточки —
     поднимаем весь hero, иначе контент секций рисуется поверх липкого меню */
  z-index: 100;
  margin: 0;
  padding: 0 var(--page-gutter) 10px;
}

.hero__card {
  position: relative;
  height: min(var(--hero-height), calc(100svh - 20px));
  min-height: 560px;
  border-radius: var(--hero-radius);
  overflow: hidden;
  isolation: isolate;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-color: #211b13;
  overflow: hidden;
}

.hero__media-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 42%;
  display: block;
}

.hero__gradient {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 79.3%;
  z-index: 1;
  background: linear-gradient(180deg, rgba(30, 16, 8, 0.2) 0%, rgba(33, 27, 19, 0) 100%);
  pointer-events: none;
}

.hero__body {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  padding: 24px 40px 80px;
}

.hero__content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding-top: 64px;
  gap: 28px;
  width: 100%;
  text-align: center;
  color: var(--hero-text);
}

.hero__title {
  margin: 0;
  width: 100%;
  font-family: var(--font-display);
  font-size: clamp(2rem, 5.28vw, 76px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0;
  text-wrap: balance;
}

@media (min-width: 1200px) {
  .hero__title {
    font-size: 76px;
  }
}

.hero__subtitle {
  margin: 0;
  width: 100%;
  font-size: clamp(1rem, 1.39vw, 20px);
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0;
}

@media (min-width: 1200px) {
  .hero__subtitle {
    font-size: 20px;
  }
}

.hero__footer {
  display: flex;
  justify-content: center;
}

/* ——— Sections ——— */

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

.section {
  padding: clamp(64px, 8.34vw, 120px) 0;
}

.section--alt {
  background: var(--bg-elevated);
}

.section--sand {
  background: var(--sand-bg);
}

.section--intro {
  background: var(--bg);
}

.section-head {
  max-width: 1126px;
  margin-bottom: clamp(32px, 4vw, 52px);
}

.section-head--center {
  margin-inline: auto;
  text-align: center;
}

.section-head__eyebrow {
  margin: 0 0 16px;
  font-size: 16px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--text);
}

.section-head__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 72px);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: 0;
}

.section-head__title--split {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.section-head__title-accent {
  color: var(--heading-accent);
}

.section-head__title-rest {
  color: var(--text);
}

.section-head__lead {
  margin: 24px 0 0;
  max-width: 720px;
  font-size: clamp(1rem, 1.39vw, 20px);
  font-weight: 400;
  line-height: 1.5;
  color: var(--heading-accent);
}

.section-head--center .section-head__lead {
  margin-inline: auto;
}

.section-head__highlights {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 40px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.section-head__highlight {
  position: relative;
  padding-left: 24px;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--gold);
}

.section-head__highlight::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--gold);
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='white' d='M6.5 11.5L3 8l1-1 2.5 2.5L12 4l1 1z'/%3E%3C/svg%3E") center / 10px no-repeat;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='white' d='M6.5 11.5L3 8l1-1 2.5 2.5L12 4l1 1z'/%3E%3C/svg%3E") center / 10px no-repeat;
}

.section-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin-top: clamp(32px, 4vw, 48px);
}

.section-body {
  font-size: clamp(1rem, 1.11vw, 16px);
  font-weight: 300;
  line-height: 1.6;
}

.section-body p {
  margin: 0 0 1em;
}

.section-body p:last-child {
  margin-bottom: 0;
}

/* Intro */
.intro__top {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 24px;
  align-items: start;
  margin-bottom: 64px;
}

.intro__brand {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.intro__brand-sub {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 42px);
  letter-spacing: 0.2em;
  color: var(--heading-accent);
}

.intro__brand-name {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 120px);
  font-weight: 600;
  letter-spacing: 0.04em;
  background: linear-gradient(255deg, #b0966d 4%, #ad8063 97%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.intro__text {
  margin: 0;
  padding-top: 117px;
  font-size: 20px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--text-soft);
}

.intro__features-wrap {
  position: relative;
  width: 100%;
  margin-bottom: 40px;
}

.intro__features {
  display: flex;
  justify-content: space-between;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.intro-feature {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 20px;
  text-align: center;
}

.intro-feature__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--gold);
  color: #fff;
  font-size: 14px;
}

.intro-feature__title {
  display: block;
  margin-bottom: 4px;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.5;
  color: var(--heading-accent);
}

.intro-feature__text {
  margin: 0;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.4;
  color: var(--text-soft);
}

.intro__rating {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  margin-inline: auto;
  padding: 24px 52px;
  border-radius: 40px;
  background: var(--surface-muted);
  width: fit-content;
  max-width: 100%;
}

.intro__rating-value {
  display: flex;
  align-items: center;
  gap: 12px;
}

.intro__rating-num {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 64px);
  font-weight: 500;
  line-height: 1.2;
  color: var(--text);
}

.intro__rating-star {
  line-height: 0;
}

.intro__rating-star img,
.intro-feature__icon img {
  display: block;
}

.intro__rating-note {
  margin: 0;
  font-size: 16px;
  line-height: 1.4;
  color: var(--text);
}

/* Tabs pill (Figma: 596:123006, высота 64, паддинг 4/24/4/4, gap 20) */
.tabs-pill {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 20px;
  margin: 0 auto;
  padding: 4px;
  max-width: max-content;
  min-height: 64px;
  border-radius: 60px;
  background: var(--gold);
}

/* крайние неактивные пункты не должны прилипать к краям капсулы;
   активная пилюля на краю садится с инсетом 4px */
.tabs-pill__item:first-of-type:not(.is-active) {
  padding-left: 24px;
}

.tabs-pill__item:last-of-type:not(.is-active) {
  padding-right: 24px;
}

.tabs-pill__selector {
  position: absolute;
  top: 4px;
  left: 0;
  height: calc(100% - 8px);
  width: 0;
  border-radius: 60px;
  background: #fffcfa;
  opacity: 0;
  pointer-events: none;
}

.tabs-pill.tabs-pill--animated .tabs-pill__selector {
  transition: transform 0.3s cubic-bezier(0.22, 0.61, 0.36, 1), width 0.3s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.tabs-pill.tabs-pill--animated .tabs-pill__item {
  transition: color 0.3s ease, padding 0.3s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.tabs-pill__item {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 0;
  border: none;
  border-radius: 60px;
  background: transparent;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.56px;
  color: #fff;
  cursor: pointer;
  white-space: nowrap;
}

.tabs-pill__item.is-active {
  padding: 16px 24px;
  color: var(--nav-active-text);
}

.tabs-pill:not(.tabs-pill--animated) .tabs-pill__item.is-active {
  background: #fffcfa;
}

/* Панели табов «О теплоходе» */
.section--about .section-head {
  margin-bottom: 40px;
}

.tabs-pill + .about-panels,
.about-panels {
  margin-top: 52px;
}

.about-panel:not(.is-active) {
  display: none;
}

.about-panel.is-active {
  animation: aboutPanelFade 0.3s ease-out;
}

@keyframes aboutPanelFade {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* About ship gallery — коллаж шире контейнера, центрирован, края обрезаются */
.about-gallery-wrap {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-bottom: 28px;
  display: flex;
  justify-content: center;
  overflow: hidden;
}

.about-gallery {
  display: flex;
  flex: none;
  gap: 20px;
  align-items: flex-start;
}

.about-gallery__item {
  flex: 0 0 auto;
  overflow: hidden;
  border-radius: 16px;
  height: 352px;
  width: 470px;
}

.about-gallery__item--slot-2 {
  height: 358px;
  margin-top: 40px;
}

.about-gallery__item--slot-3 {
  width: 592px;
  height: 444px;
}

.about-gallery__item--slot-5 {
  width: 226px;
  height: 358px;
  margin-top: 40px;
}

.about-gallery__item--slot-6 {
  width: 226px;
  height: 358px;
}

.about-gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.about-ship__subtitle {
  margin: 0 0 24px;
  text-align: center;
  font-size: 24px;
  font-weight: 500;
  line-height: 1.5;
  color: var(--text);
}

/* мелкое примечание под подписью таба (Кухня, Безопасность) */
.about-ship__note {
  margin: -12px 0 24px;
  text-align: center;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text);
}

.spec-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  max-width: 592px;
  margin-inline: auto;
}

.spec-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 20px;
  border: 1px solid var(--gold);
  border-radius: 60px;
  font-size: 16px;
  letter-spacing: 0.64px;
  color: var(--gold);
  white-space: nowrap;
}

.spec-pill img {
  display: block;
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

/* Events layout (Figma: картинка 840x769 + список 472) */
.events-layout {
  display: grid;
  grid-template-columns: minmax(0, 840fr) minmax(0, 472fr);
  gap: 20px;
  align-items: stretch;
}

.events-layout__media {
  position: relative;
  overflow: hidden;
  border-radius: 40px;
  height: 769px;
}

.events-layout__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0;
  transition: opacity 0.45s ease;
}

.events-layout__img.is-active {
  opacity: 1;
}

.events-list {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 4px;
  height: 100%;
}

.events-list__item {
  display: flex;
  gap: 12px;
  padding: 12px;
  border-radius: 24px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.events-list__item.is-active {
  background: var(--surface-muted);
}

.events-list__icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--surface-muted);
  color: var(--gold);
  font-size: 12px;
}

.events-list__icon img {
  display: block;
}

/* аккордеон с фото внутри пункта — только на мобильном */
.events-item__media {
  display: none;
}

.events-list__item.is-active .events-list__icon {
  background: var(--gold);
  color: #fff;
}

/* в активном пункте золотая иконка становится белой на золотом круге */
.events-list__item.is-active .events-list__icon img {
  filter: brightness(0) invert(1);
}

.events-list__title {
  margin: 0 0 4px;
  font-size: 20px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--text);
}

.events-list__item.is-active .events-list__title {
  color: var(--gold);
}

.events-list__text {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text);
}

.events-list__price {
  margin: 8px 0 0;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.6;
  color: var(--gold);
  text-align: right;
}

/* Organization steps — драг-карусель (Figma: карточки 471x470, gap 20) */
.org-carousel {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  overflow: hidden;
}

.org-steps {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  padding-inline: max(var(--page-gutter), calc((100vw - var(--container)) / 2));
  /* иначе снап прилипает к краю вьюпорта, игнорируя паддинг */
  scroll-padding-inline: max(var(--page-gutter), calc((100vw - var(--container)) / 2));
  scrollbar-width: none;
  cursor: grab;
}

.org-steps::-webkit-scrollbar {
  display: none;
}

.org-steps.is-dragging {
  cursor: grabbing;
  scroll-snap-type: none;
  user-select: none;
}

/* Карточки остаются светлыми в обеих темах (по макету) */
.org-step {
  position: relative;
  display: flex;
  flex-direction: column;
  flex: 0 0 471px;
  height: 471px;
  padding: 28px;
  border-radius: 24px;
  background: #fffcfa;
  overflow: hidden;
  scroll-snap-align: start;
}

.org-step__sketch {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  z-index: 0;
  pointer-events: none;
}

/* скетч/фото по умолчанию может занимать всю карточку (квадратные оригиналы) */
.org-step__sketch--cover {
  top: 0;
  height: 100%;
  object-fit: cover;
}

.org-step__media {
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.org-step.is-media .org-step__media {
  opacity: 1;
}

.org-step__media img,
.org-step__media video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.org-step__video {
  opacity: 0;
  transition: opacity 0.4s ease;
}

.org-step__video.is-playing {
  opacity: 1;
}

.org-step__body {
  position: relative;
  z-index: 2;
}

.org-step__num {
  display: inline-block;
  margin-bottom: 14px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--gold);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--gold);
  transition: color 0.4s ease, border-color 0.4s ease;
}

.org-step__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: 0.02em;
  color: #3c3535;
  max-width: 360px;
  transition: color 0.4s ease;
}

.org-step.is-media .org-step__num {
  color: #fff;
  border-color: #fff;
}

.org-step.is-media .org-step__title {
  color: #fff;
}

/* у карточек со светлым медиа (скетч-видео) текст остаётся тёмным */
.org-step--media-dark.is-media .org-step__num {
  color: var(--gold);
  border-color: var(--gold);
}

.org-step--media-dark.is-media .org-step__title {
  color: #3c3535;
}

/* описание и стрелка появляются в ховер-состоянии (по макету) */
.org-step__desc {
  margin: 12px 0 0;
  max-width: 360px;
  font-size: 14px;
  line-height: 1.5;
  color: #3c3535;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.35s ease, transform 0.35s ease, color 0.4s ease;
}

.org-step__arrow {
  display: block;
  margin-top: 16px;
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity 0.35s ease 0.08s, transform 0.35s ease 0.08s;
}

.org-step.is-media .org-step__desc,
.org-step.is-media .org-step__arrow {
  opacity: 1;
  transform: none;
}

.org-step.is-media:not(.org-step--media-dark) .org-step__desc {
  color: #fff;
}

.org-step.is-media:not(.org-step--media-dark) .org-step__arrow {
  filter: brightness(0) invert(1);
}

.org-steps__dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 40px;
}

.org-steps__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold-light);
}

.org-steps__dot.is-active {
  width: 48px;
  border-radius: 10px;
  background: var(--gold-light);
}

/* Pricing table */
.pricing-table {
  max-width: 1086px;
  margin-inline: auto;
}

.pricing-table__head,
.pricing-table__row {
  display: grid;
  grid-template-columns: 1fr 248px 160px;
  gap: 72px;
  align-items: center;
  padding: 12px 16px;
}

.pricing-table__head {
  border-bottom: 1px solid var(--heading-accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--heading-accent);
}

.pricing-table__row {
  border-bottom: 1px solid var(--table-border);
  padding-top: 10px;
  padding-bottom: 10px;
}

.pricing-table__format strong {
  display: block;
  font-size: 20px;
  font-weight: 400;
  line-height: 1.5;
}

.pricing-table__format span {
  display: block;
  margin-top: 4px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text);
}

.pricing-table__price {
  font-size: 16px;
  line-height: 1.4;
}

.pricing-table__note {
  margin: 0;
  font-size: 14px;
  font-weight: 300;
  text-align: center;
  color: var(--text);
}

.pricing-table__note strong,
.pricing-table__note b {
  font-weight: 500;
  color: var(--heading-accent);
}

/* Gallery carousel (Figma: лента 692px, фото разных размеров, full-bleed) */
.gallery-carousel__viewport {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  overflow: hidden;
}

.gallery-carousel__track {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  height: 618px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  cursor: grab;
}

.gallery-carousel__track::-webkit-scrollbar {
  display: none;
}

.gallery-carousel__track.is-dragging {
  cursor: grabbing;
  scroll-snap-type: none;
  user-select: none;
}

.gallery-carousel__slide {
  flex: 0 0 auto;
  margin: 0;
  overflow: hidden;
  border-radius: 16px;
  scroll-snap-align: start;
}

/* цикл из пяти размеров, как в макете (226/301/594/348/519) */
.gallery-carousel__slide--v1 {
  width: 226px;
  height: 401px;
  align-self: center;
}

.gallery-carousel__slide--v2 {
  width: 301px;
  height: 402px;
  align-self: flex-end;
}

.gallery-carousel__slide--v3 {
  width: 594px;
  height: 444px;
  align-self: center;
}

.gallery-carousel__slide--v4 {
  width: 348px;
  height: 618px;
}

.gallery-carousel__slide--v5 {
  width: 519px;
  height: 402px;
  align-self: flex-end;
}

.gallery-carousel__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  cursor: zoom-in;
}

.gallery-carousel__nav {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 44px;
}

.gallery-carousel__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border: none;
  border-radius: 50%;
  background: var(--gold);
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.gallery-carousel__btn:hover {
  background: var(--gold-hover);
}

/* Лайтбокс галереи */
.gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  background: rgba(15, 12, 8, 0.85);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

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

.gallery-lightbox img {
  max-width: 92vw;
  max-height: 88vh;
  border-radius: 16px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}

.gallery-lightbox__close {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 48px;
  height: 48px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

/* Catering (Figma: айброу → меню 270px → заголовок → кнопка) */
.section-head__eyebrow--center {
  text-align: center;
}

.section-head__title--center {
  text-align: center;
  margin-inline: auto;
}

.catering-hero {
  display: flex;
  justify-content: center;
  margin: 40px 0 52px;
}

.catering-hero__img {
  width: 270px;
  height: 240px;
  object-fit: contain;
  border-radius: 8px;
}

.section--catering .section-cta {
  margin-top: 40px;
}

/* Booking / contacts */
.booking-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 20px;
  align-items: stretch;
}

.booking-grid__media {
  overflow: hidden;
  border-radius: 40px;
  min-height: 480px;
}

.booking-grid__img {
  width: 100%;
  height: 100%;
  min-height: 480px;
  object-fit: cover;
  display: block;
}

/* Карточка формы остаётся светлой в обеих темах (по макету) */
.booking-card {
  padding: 60px;
  border-radius: 40px;
  background: #fffcfa;
}

.booking-card__title {
  margin: 0 0 24px;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 44px);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.03em;
  color: #3c3535;
}

.booking-card__lead {
  margin: 0 0 28px;
  font-size: 16px;
  line-height: 1.4;
  color: var(--heading-accent);
}

.booking-card__contacts {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 24px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
  font-size: 16px;
}

.booking-card__contacts a {
  color: var(--gold);
  text-decoration: none;
}

.lead-form--booking .lead-form__input,
.lead-form--booking .lead-form__textarea {
  width: 100%;
  padding: 16px 20px;
  border: 1px solid rgba(60, 53, 53, 0.18);
  border-radius: 16px;
  font-family: inherit;
  font-size: 16px;
  color: #3c3535;
  background: #ffffff;
}

.lead-form--booking .lead-form__consent {
  color: #3c3535;
}

.lead-form--booking .btn--submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-top: 8px;
  padding: 16px 48px;
  border: none;
  border-radius: 60px;
  background: var(--gold);
  color: #fff;
  font-family: inherit;
  font-size: 14px;
  font-weight: 300;
  letter-spacing: 0.08em;
  cursor: pointer;
}

/* About (legacy grid) */
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(24px, 4vw, 48px);
  align-items: center;
}

.about-media {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  aspect-ratio: 4 / 5;
  background: #211b13;
}

.about-media__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.about-features {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 32px;
}

.about-feature {
  padding: 20px 24px;
  border-radius: 20px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
}

.about-feature__value {
  display: block;
  margin-bottom: 4px;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.5vw, 28px);
  line-height: 1.1;
  color: var(--gold);
}

.about-feature__label {
  display: block;
  font-size: 12px;
  font-weight: 300;
  letter-spacing: 0.48px;
  text-transform: uppercase;
  color: var(--muted);
}

/* Events cards */
.events-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.event-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 100%;
  padding: 28px 24px;
  border-radius: 24px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.event-card:hover {
  border-color: color-mix(in srgb, var(--gold) 35%, var(--border));
  transform: translateY(-2px);
}

.event-card__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2vw, 24px);
  font-weight: 400;
  line-height: 1.2;
}

.event-card__text {
  margin: 0;
  flex: 1;
  font-size: 14px;
  font-weight: 300;
  line-height: 1.55;
  color: var(--muted);
}

/* Steps */
.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  counter-reset: step;
}

.step-card {
  position: relative;
  padding: 28px 24px 24px;
  border-radius: 24px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
}

.step-card::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  display: block;
  margin-bottom: 16px;
  font-family: var(--font-display);
  font-size: 32px;
  line-height: 1;
  color: var(--gold);
}

.step-card__title {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.3;
}

.step-card__text {
  margin: 0;
  font-size: 14px;
  font-weight: 300;
  line-height: 1.55;
  color: var(--muted);
}

/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.gallery-item {
  margin: 0;
  overflow: hidden;
  border-radius: 16px;
  aspect-ratio: 1;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
}

.gallery-item--wide {
  grid-column: span 2;
  aspect-ratio: 2 / 1;
}

.gallery-item__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

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

.gallery-empty {
  padding: 48px 24px;
  border-radius: 24px;
  background: var(--bg-elevated);
  border: 1px dashed var(--border);
  text-align: center;
}

/* Catering */
.catering-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.catering-card {
  padding: 28px 24px;
  border-radius: 24px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
}

.catering-card__title {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 400;
  line-height: 1.2;
}

.catering-card__text {
  margin: 0;
  font-size: 14px;
  font-weight: 300;
  line-height: 1.55;
  color: var(--muted);
}

/* Contacts */
.contacts-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(24px, 4vw, 48px);
  align-items: start;
}

.contacts-info {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contacts-list {
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.contacts-list__label {
  display: block;
  margin-bottom: 4px;
  font-size: 12px;
  font-weight: 300;
  letter-spacing: 0.48px;
  text-transform: uppercase;
  color: var(--muted);
}

.contacts-list__value {
  font-size: 18px;
  font-weight: 400;
  line-height: 1.4;
}

.contacts-list a {
  color: inherit;
  text-decoration: none;
}

.contacts-list a:hover {
  color: var(--gold);
}

.contacts-form {
  padding: clamp(24px, 3vw, 32px);
  border-radius: 24px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
}

.contacts-form__title {
  margin: 0 0 20px;
  font-size: 20px;
  font-weight: 500;
  line-height: 1.3;
}

/* Forms */
.lead-form {
  display: grid;
  gap: 12px;
}

.lead-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.lead-form__select {
  appearance: none;
  background-image: url("/images/figma/chevron-down.svg");
  background-repeat: no-repeat;
  background-position: right 18px center;
  background-size: 16px;
}

.lead-form__input--date {
  background-image: url("/images/figma/calendar.svg");
  background-repeat: no-repeat;
  background-position: right 18px center;
  background-size: 20px;
}

.lead-form__select:invalid,
.lead-form__input::placeholder,
.lead-form__textarea::placeholder {
  color: var(--muted);
}

.lead-form__consent {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 6px 0 2px;
  font-size: 15px;
  color: var(--text);
  cursor: pointer;
}

.lead-form__consent input {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  accent-color: var(--gold);
}

.lead-form__actions {
  display: flex;
  justify-content: center;
  margin-top: 10px;
}

.lead-form__field {
  display: grid;
  gap: 8px;
}

.lead-form__label {
  font-size: 12px;
  font-weight: 300;
  letter-spacing: 0.48px;
  text-transform: uppercase;
  color: var(--muted);
}

.lead-form__input,
.lead-form__textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--bg);
  color: var(--text);
  font: inherit;
  font-size: 16px;
  font-weight: 300;
  transition: border-color 0.2s ease;
}

.lead-form__input:focus,
.lead-form__textarea:focus {
  outline: none;
  border-color: color-mix(in srgb, var(--gold) 50%, var(--border));
}

.lead-form__textarea {
  min-height: 120px;
  resize: vertical;
}

.btn--submit {
  justify-content: center;
  width: 100%;
  margin-top: 4px;
  padding: 16px 24px;
  border-radius: 60px;
  background: linear-gradient(90deg, #9a8260 0%, #b0966d 52%, #c0ab8a 100%);
  color: var(--hero-text);
  font-size: 14px;
  letter-spacing: 1.12px;
}

.btn--submit:hover {
  background: linear-gradient(90deg, #8f7756 0%, #a0865f 52%, #b09a78 100%);
}

.btn--cta-footer {
  gap: 12px;
  padding: 8px 8px 8px 28px;
  font-size: 14px;
  letter-spacing: 1.12px;
}

/* Footer (Figma: тёмный #2B2B2B, карточка «Контакты» 595x717 + карта 717x717) */
.site-footer {
  padding: 80px 54px 24px;
  background: #2b2b2b;
}

.site-footer__cards {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.footer-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 595px;
  height: 717px;
  padding: 64px 40px 32px;
  border-radius: 24px;
  background: #fffcfa;
  text-align: center;
}

.footer-card__title {
  margin: 0 0 40px;
  font-family: var(--font-display);
  font-size: 64px;
  font-weight: 400;
  line-height: 1.1;
  color: #3c3535;
}

.footer-card__socials {
  display: flex;
  gap: 11px;
  margin-bottom: 48px;
}

/* SVG-глифы белые — рисуем золотой кружок фоном */
.footer-card__socials a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--gold);
  transition: background 0.2s ease;
}

.footer-card__socials a:hover {
  background: var(--gold-hover);
}

.footer-card__socials img {
  display: block;
  width: 22px;
  height: 22px;
}

.footer-card__pier {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.footer-card__anchor {
  display: block;
  margin-bottom: 14px;
}

.footer-card__pier-label {
  margin: 0 0 28px;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--gold);
}

.footer-card__address {
  margin: 0 0 24px;
  font-size: 18px;
  line-height: 1.5;
  color: #3c3535;
}

.footer-card__phone {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  color: var(--gold);
  text-decoration: none;
}

.footer-card__bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  width: 100%;
  margin-top: auto;
}

.footer-card__logo {
  display: block;
  line-height: 0;
}

.footer-card__logo img {
  display: block;
  width: 160px;
  height: auto;
}

.footer-card__theme {
  border-color: rgba(60, 53, 53, 0.25);
}

/* карточка футера всегда светлая: неактивная иконка тумблера — тёмная */
:root[data-theme="light"] .footer-card__theme .nav-theme__side--moon img,
:root[data-theme="dark"] .footer-card__theme .nav-theme__side--sun img {
  filter: brightness(0) saturate(100%);
  opacity: 0.65;
}

.footer-map {
  display: block;
  width: 717px;
  height: 717px;
  border-radius: 24px;
  overflow: hidden;
}

.footer-map img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.site-footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1332px;
  margin: 40px auto 0;
}

.site-footer__copy {
  margin: 0;
  font-size: 12px;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.55);
}

.site-footer__legal {
  display: flex;
  gap: 24px;
}

.site-footer__legal a {
  font-size: 12px;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.55);
  text-decoration: none;
}

.site-footer__legal a:hover {
  color: #fff;
}

/* Text pages */
.page-main {
  padding: clamp(32px, 5vw, 64px) 0 clamp(64px, 8vw, 96px);
}

.page-main__title {
  margin: 0 0 24px;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 44px);
  font-weight: 400;
  line-height: 1.15;
}

.page-main__content {
  max-width: 760px;
  padding: clamp(24px, 3vw, 32px);
  border-radius: 24px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  font-size: 16px;
  font-weight: 300;
  line-height: 1.65;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px;
}

.flash-banner {
  position: fixed;
  top: 16px;
  left: 0;
  right: 0;
  z-index: 200;
  pointer-events: none;
}

.flash-banner__inner {
  pointer-events: auto;
  text-align: center;
}

/* ——— Modal ——— */

.modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(44, 46, 51, 0.55);
}

:root[data-theme="dark"] .modal {
  background: rgba(0, 0, 0, 0.72);
}

.modal[data-open="true"] {
  display: flex;
}

.modal-panel {
  width: 100%;
  max-width: 520px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 400;
}

.modal-body {
  padding: 24px;
}

.modal-close {
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  border-radius: 50px;
  padding: 8px 16px;
  cursor: pointer;
  font-family: inherit;
  font-size: 14px;
  font-weight: 300;
}

/* ——— Tablet ——— */

@media (max-width: 1280px) and (min-width: 961px) {
  .nav-inner {
    gap: 16px;
  }

  .nav-cluster {
    gap: 12px;
  }

  .nav-menu {
    gap: 8px;
  }

  .nav-menu a {
    font-size: 11px;
    letter-spacing: 0.35px;
  }

  .nav-menu a[data-active="true"] {
    padding-inline: 14px;
  }

  .nav-menu a:first-child:not([data-active="true"]) {
    padding-left: 14px;
  }
}

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

  .about-grid,
  .contacts-grid {
    grid-template-columns: 1fr;
  }

  .about-media {
    aspect-ratio: 16 / 10;
  }

  .events-grid,
  .catering-grid {
    grid-template-columns: 1fr 1fr;
  }

  .steps {
    grid-template-columns: 1fr 1fr;
  }

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

  .gallery-item--wide {
    grid-column: span 2;
  }

  .site-footer__inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .site-footer__contacts {
    align-items: center;
  }
}

@media (max-width: 768px) {
  .btn--cta-header .btn__label {
    display: none;
  }

  .btn--cta-header {
    gap: 0;
    padding: 8px;
  }
}

/* ——— Mobile ——— */

@media (max-width: 768px) {
  :root {
    --page-gutter: 8px;
    --hero-height: 629px;
  }

  body {
    overflow-x: hidden;
  }

  .main-home {
    padding: 10px 0 0;
  }

  .section {
    padding: 40px 0;
  }

  .section-head__eyebrow {
    font-size: 14px;
    letter-spacing: 0.35em;
  }

  .section-head__title {
    font-size: clamp(1.75rem, 9vw, 40px);
  }

  .section-head__highlights {
    flex-direction: column;
    align-items: center;
    gap: 8px;
  }

  .nav-inner {
    grid-template-columns: 117px 1fr auto;
    gap: 8px;
    min-height: 48px;
  }

  .nav-logo {
    width: 117px;
  }

  .nav-logo__img {
    width: 117px;
    height: 35px;
  }

  .nav-cluster {
    display: none;
  }

  .nav-actions {
    display: none;
  }

  .btn--cta-header {
    display: none;
  }

  .nav-burger {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  .nav-phone {
    background: var(--gold-light);
  }

  /* фиксированная высота, чтобы hero__body растянулся и кнопка легла к низу */
  .hero__card {
    height: min(629px, calc(100svh - 20px));
    min-height: 520px;
  }

  .hero__body {
    padding: 28px 19px 120px;
  }

  .hero__content {
    gap: 12px;
    align-items: center;
    justify-content: flex-start;
    padding-top: 72px;
  }

  .hero__title {
    font-size: 36px;
    line-height: 1.1;
    letter-spacing: -0.02em;
    white-space: normal;
    text-wrap: balance;
  }

  .hero__subtitle {
    font-size: 14px;
    line-height: 1.6;
  }

  .hero__footer {
    position: absolute;
    left: 28px;
    right: 28px;
    bottom: 48px;
    width: auto;
  }

  .btn--cta-hero {
    width: 100%;
    max-width: none;
    justify-content: space-between;
    padding-left: 28px;
    gap: 16px;
  }

  .hero__media-img {
    object-position: center 42%;
  }

  .events-grid,
  .catering-grid,
  .steps {
    grid-template-columns: 1fr;
  }

  .about-features {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .gallery-item--wide {
    grid-column: auto;
    aspect-ratio: 16 / 10;
  }

  .intro__top {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 38px;
  }

  .intro__brand {
    align-items: center;
    text-align: center;
  }

  .intro__brand-sub {
    font-size: 18px;
    letter-spacing: 0.2em;
  }

  .intro__brand-name {
    font-size: 52px;
  }

  .intro__text {
    padding-top: 0;
    font-size: 14px;
    line-height: 1.6;
    text-align: center;
  }

  .intro__features-wrap::before,
  .intro__features-wrap::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 8px;
    width: 48px;
    z-index: 1;
    pointer-events: none;
  }

  .intro__features-wrap::before {
    left: 0;
    background: linear-gradient(90deg, var(--bg) 15%, transparent);
  }

  .intro__features-wrap::after {
    right: 0;
    background: linear-gradient(270deg, var(--bg) 15%, transparent);
  }

  .intro__features {
    display: flex;
    flex-wrap: nowrap;
    gap: 28px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 0 8px 8px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .intro__features::-webkit-scrollbar {
    display: none;
  }

  .intro-feature {
    flex: 0 0 min(220px, 78vw);
    scroll-snap-align: center;
    padding: 0;
  }

  .intro-feature__text {
    font-size: 14px;
    line-height: 1.6;
  }

  .intro__rating {
    flex-direction: row;
    justify-content: center;
    gap: 12px;
    width: 100%;
    padding: 32px;
    border-radius: 24px;
  }

  .intro__rating-num {
    font-size: 44px;
  }

  .intro__rating-note {
    font-size: 14px;
    line-height: 1.6;
    text-align: left;
  }

  .events-layout {
    grid-template-columns: 1fr;
  }

  .events-layout__img {
    min-height: 280px;
  }

  .org-steps {
    scroll-snap-type: x mandatory;
    gap: 12px;
  }

  .org-step {
    flex: 0 0 84vw;
    height: 420px;
    scroll-snap-align: center;
  }

  .pricing-table__head,
  .pricing-table__row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .pricing-table__head span:not(:first-child) {
    display: none;
  }

  .pricing-table__row .pricing-table__price::before {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #ad8063;
    display: block;
    margin-bottom: 4px;
  }

  .pricing-table__row .pricing-table__price:first-of-type::before {
    content: 'Будни';
  }

  .pricing-table__row .pricing-table__price:last-of-type::before {
    content: 'Праздники';
  }

  .booking-grid {
    grid-template-columns: 1fr;
  }

  .booking-card {
    padding: 32px 24px;
  }

  /* коллаж «О теплоходе»: скролл вместо обрезки */
  .about-gallery-wrap {
    justify-content: flex-start;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .about-gallery-wrap::-webkit-scrollbar {
    display: none;
  }

  .about-gallery {
    padding-inline: 8px;
  }

  /* коллаж: полноширинные кадры по одному, свайпом (как в моб. макете) */
  .about-gallery {
    gap: 8px;
    scroll-snap-type: x mandatory;
  }

  .about-gallery__item,
  .about-gallery__item--slot-1,
  .about-gallery__item--slot-2,
  .about-gallery__item--slot-3,
  .about-gallery__item--slot-4,
  .about-gallery__item--slot-5,
  .about-gallery__item--slot-6 {
    width: calc(100vw - 16px);
    height: 260px;
    margin-top: 0;
    scroll-snap-align: center;
  }

  /* табы: прокручиваемая строка без золотой подложки (как в моб. макете) */
  .tabs-pill {
    max-width: 100%;
    justify-content: flex-start;
    background: transparent;
    border-radius: 0;
    padding: 4px 8px;
    gap: 16px;
    min-height: 48px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .tabs-pill::-webkit-scrollbar {
    display: none;
  }

  .tabs-pill__item {
    color: var(--text);
    padding: 12px 0;
  }

  /* на мобильном капсулы нет — отступы крайних пунктов не нужны */
  .tabs-pill__item:first-of-type:not(.is-active) {
    padding-left: 0;
  }

  .tabs-pill__item:last-of-type:not(.is-active) {
    padding-right: 0;
  }

  .tabs-pill__item.is-active {
    padding: 12px 20px;
  }

  .tabs-pill__selector {
    box-shadow: 0 2px 10px rgba(60, 53, 53, 0.12);
    border: 1px solid rgba(60, 53, 53, 0.08);
  }

  /* галерея: лента ниже, фото меньше */
  .gallery-carousel__track {
    height: 380px;
  }

  .gallery-carousel__slide--v1 {
    width: 139px;
    height: 247px;
  }

  .gallery-carousel__slide--v2 {
    width: 185px;
    height: 247px;
  }

  .gallery-carousel__slide--v3 {
    width: 365px;
    height: 273px;
  }

  .gallery-carousel__slide--v4 {
    width: 214px;
    height: 380px;
  }

  .gallery-carousel__slide--v5 {
    width: 319px;
    height: 247px;
  }

  /* CTA-форма: ряды в одну колонку */
  .lead-form__row {
    grid-template-columns: 1fr;
  }

  /* мобильный макет: верхней картинки нет, фото раскрывается внутри пункта */
  .events-layout__media {
    display: none;
  }

  .events-list__item {
    flex-wrap: wrap;
  }

  .events-item__media {
    display: grid;
    flex: 1 1 100%;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.45s ease;
  }

  .events-item__media > div {
    overflow: hidden;
    min-height: 0;
  }

  .events-item__media img {
    display: block;
    width: 100%;
    height: 230px;
    object-fit: cover;
    border-radius: 16px;
    margin-top: 12px;
  }

  .events-list__item.is-active .events-item__media {
    grid-template-rows: 1fr;
  }

  /* футер: карточки в столбик */
  .site-footer {
    padding: 64px 16px 24px;
  }

  .site-footer__cards {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }

  .footer-card {
    width: 100%;
    height: auto;
    min-height: 0;
    padding: 48px 20px 24px;
  }

  .footer-card__title {
    font-size: 44px;
    margin-bottom: 28px;
  }

  .footer-card__bottom {
    margin-top: 40px;
  }

  .footer-map {
    width: 100%;
    height: 360px;
  }

  .site-footer__bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .btn--cta-footer .btn__label {
    display: none;
  }

  .btn--cta-footer {
    gap: 0;
    padding: 8px;
  }
}

@media (max-width: 480px) {
  .nav-actions {
    gap: 8px;
  }

  .nav-theme {
    width: 56px;
    height: 32px;
  }

  /* кружки тумблера меньше, чтобы не наезжали друг на друга */
  .nav-theme__side {
    width: 24px;
    height: 24px;
  }

  .nav-theme__side img {
    width: 15px;
    height: 15px;
  }

  .nav-theme__side--sun {
    left: 3px;
  }

  .nav-theme__side--moon {
    right: 3px;
  }
}
