:root {
  color-scheme: light dark;
  --ink: #101010;
  --muted: #686868;
  --paper: #f3f3f1;
  --paper-strong: #ffffff;
  --line: rgba(16, 16, 16, 0.14);
  --dark: #101010;
  --dark-2: #191919;
  --dark-line: rgba(255, 255, 255, 0.14);
  --light: #f7f7f4;
  --steel: #d7d9d8;
  --red: #d82121;
  --red-dark: #a80f0f;
  --cyan: #5fd6c9;
  --mint: #5fd6c9;
  --radius: 8px;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.18);
  --focus: 0 0 0 3px rgba(95, 214, 201, 0.24);
}

:root[data-theme="day"],
:root[data-theme="contrast"] {
  --paper: #eceff1;
  --paper-strong: #ffffff;
  --line: rgba(16, 16, 16, 0.18);
  --dark: #070707;
  --dark-2: #121212;
  --red: #f1322c;
  --red-dark: #ba1612;
  --cyan: #44e6da;
  --mint: #44e6da;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.22);
}

:root[data-theme="day"] body,
:root[data-theme="contrast"] body {
  background: #eceff1;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 112px;
}

body {
  margin: 0;
  font-family:
    "Segoe UI Variable", "Segoe UI", Inter, Manrope, system-ui, -apple-system, BlinkMacSystemFont, Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  letter-spacing: 0;
  font-kerning: normal;
  font-feature-settings: "kern" 1, "liga" 1;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

body.is-locked {
  overflow: hidden;
}

button,
input,
select,
textarea {
  font: inherit;
  letter-spacing: 0;
  font-size: 16px;
}

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

:focus-visible {
  outline: none;
  box-shadow: var(--focus);
}

img {
  display: block;
  width: 100%;
  height: auto;
}

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

::selection {
  color: var(--light);
  background: var(--red);
}

.site-header {
  position: fixed;
  z-index: 50;
  top: 14px;
  left: 50%;
  display: grid;
  width: min(1180px, calc(100% - 28px));
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 10px 12px;
  color: var(--light);
  background: rgba(16, 16, 16, 0.48);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  transform: translateX(-50%);
  backdrop-filter: blur(18px);
  transition:
    background 220ms ease,
    border-color 220ms ease,
    box-shadow 220ms ease;
}

.site-header.is-scrolled {
  background: rgba(16, 16, 16, 0.88);
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: var(--shadow);
}

:root[data-theme="day"] .site-header,
:root[data-theme="contrast"] .site-header {
  color: var(--ink);
  background: rgba(247, 247, 244, 0.88);
  border-color: rgba(16, 16, 16, 0.16);
  box-shadow: 0 18px 46px rgba(16, 16, 16, 0.16);
}

:root[data-theme="day"] .site-header.is-scrolled,
:root[data-theme="contrast"] .site-header.is-scrolled {
  background: rgba(247, 247, 244, 0.96);
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  gap: 10px;
}

.brand-mark {
  display: grid;
  width: 44px;
  height: 38px;
  place-items: center;
  color: var(--light);
  background: var(--red);
  border-radius: 4px;
  font-weight: 900;
  line-height: 1;
}

.brand-text {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.82rem;
  text-transform: uppercase;
}

:root[data-theme="day"] .brand-text,
:root[data-theme="contrast"] .brand-text {
  color: rgba(16, 16, 16, 0.72);
}

.nav {
  display: flex;
  justify-content: center;
  min-width: 0;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
}

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

.nav a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 13px;
  color: rgba(255, 255, 255, 0.76);
  border-radius: 4px;
  font-size: 0.92rem;
  white-space: nowrap;
  transition:
    color 180ms ease,
    background 180ms ease;
}

.nav a:hover,
.nav a:focus-visible {
  color: var(--light);
  background: rgba(255, 255, 255, 0.1);
}

:root[data-theme="day"] .nav a,
:root[data-theme="contrast"] .nav a {
  color: rgba(16, 16, 16, 0.72);
}

:root[data-theme="day"] .nav a:hover,
:root[data-theme="day"] .nav a:focus-visible,
:root[data-theme="contrast"] .nav a:hover,
:root[data-theme="contrast"] .nav a:focus-visible {
  color: var(--ink);
  background: rgba(16, 16, 16, 0.07);
}

.nav a.is-active {
  color: var(--light);
  background: rgba(95, 214, 201, 0.14);
  box-shadow: inset 0 -2px 0 var(--cyan);
}

:root[data-theme="day"] .nav a.is-active,
:root[data-theme="contrast"] .nav a.is-active {
  color: var(--ink);
  background: rgba(216, 33, 33, 0.08);
  box-shadow: inset 0 -2px 0 var(--red);
}

.header-call {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 38px;
  padding: 0 12px;
  color: var(--light);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 4px;
  white-space: nowrap;
}

:root[data-theme="day"] .header-call,
:root[data-theme="contrast"] .header-call {
  color: var(--ink);
  border-color: rgba(16, 16, 16, 0.16);
}

.header-actions {
  display: inline-flex;
  align-items: center;
  justify-self: end;
  gap: 8px;
}

.theme-toggle {
  display: inline-grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: var(--light);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 5px;
  cursor: pointer;
  font-weight: 950;
  line-height: 1;
  transition:
    background 180ms ease,
    border-color 180ms ease,
    transform 180ms ease;
}

:root[data-theme="day"] .theme-toggle,
:root[data-theme="contrast"] .theme-toggle {
  color: var(--ink);
  background: rgba(16, 16, 16, 0.06);
  border-color: rgba(16, 16, 16, 0.16);
}

.theme-toggle:hover,
.theme-toggle:focus-visible {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(95, 214, 201, 0.44);
  transform: translateY(-1px);
}

.header-login {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 14px;
  color: var(--ink);
  background: var(--light);
  border: 0;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 900;
  white-space: nowrap;
  transition:
    background 180ms ease,
    color 180ms ease,
    transform 180ms ease;
}

.header-login:hover,
.header-login:focus-visible {
  transform: translateY(-1px);
}

.has-auth-session .header-login {
  background: var(--cyan);
}

.call-icon {
  width: 9px;
  height: 9px;
  background: var(--cyan);
  border-radius: 999px;
  box-shadow: 0 0 0 6px rgba(95, 214, 201, 0.12);
}

.section,
.intro-band {
  padding: 98px 24px;
}

section[id] {
  scroll-margin-top: 118px;
}

.section-dark {
  color: var(--light);
  background: var(--dark);
}

:root[data-theme="day"] .section-dark,
:root[data-theme="contrast"] .section-dark {
  color: var(--ink);
  background: #f4f5f2;
}

.section-head {
  width: min(840px, 100%);
  margin: 0 auto 44px;
  text-align: center;
}

.section-head p {
  width: min(720px, 100%);
  margin-right: auto;
  margin-left: auto;
}

.section-head.compact {
  margin: 0;
  text-align: left;
}

.section-head.compact p {
  margin-left: 0;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--red);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.section-dark .eyebrow,
.hero .eyebrow {
  color: var(--cyan);
}

h1,
h2,
h3 {
  text-wrap: balance;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 22px;
  font-size: 6.35rem;
  line-height: 0.9;
  font-weight: 950;
}

.hero h1 {
  text-shadow: 0 18px 46px rgba(0, 0, 0, 0.58);
}

:root[data-theme="day"] .hero h1,
:root[data-theme="contrast"] .hero h1 {
  text-shadow: 0 16px 44px rgba(255, 255, 255, 0.8);
}

h2 {
  margin-bottom: 18px;
  font-size: 2.95rem;
  line-height: 1.07;
  font-weight: 900;
}

h3 {
  font-size: 1.38rem;
  line-height: 1.2;
}

p {
  color: var(--muted);
  line-height: 1.66;
  text-wrap: pretty;
}

.section-dark p,
.hero p {
  color: rgba(247, 247, 244, 0.72);
}

:root[data-theme="day"] .section-dark p,
:root[data-theme="day"] .hero p,
:root[data-theme="contrast"] .section-dark p,
:root[data-theme="contrast"] .hero p {
  color: rgba(16, 16, 16, 0.72);
}

.hero {
  position: relative;
  --hero-x: 0;
  --hero-y: 0;
  --hero-shift: 0px;
  min-height: 94svh;
  padding: 132px 24px 28px;
  overflow: hidden;
  isolation: isolate;
}

.hero::after {
  position: absolute;
  inset: auto 0 0;
  height: 44%;
  content: "";
  background: linear-gradient(180deg, rgba(16, 16, 16, 0), var(--dark));
  z-index: -1;
}

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

.hero-bg img {
  height: 100%;
  object-fit: cover;
  transform: translate3d(calc(var(--hero-x) * -12px), calc(var(--hero-y) * -10px + var(--hero-shift) * 0.4), 0) scale(1.055);
  filter: saturate(0.92) contrast(1.05);
  transition: transform 180ms ease-out;
}

.hero-bg::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    radial-gradient(circle at calc(50% + var(--hero-x) * 28%) calc(45% + var(--hero-y) * 20%), rgba(95, 214, 201, 0.24), transparent 32%),
    linear-gradient(90deg, rgba(16, 16, 16, 0.92), rgba(16, 16, 16, 0.34) 52%, rgba(16, 16, 16, 0.68)),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.06) 0 1px, transparent 1px 7px);
}

:root[data-theme="day"] .hero,
:root[data-theme="contrast"] .hero {
  color: var(--ink);
}

:root[data-theme="day"] .hero-bg img,
:root[data-theme="contrast"] .hero-bg img {
  filter: saturate(1.02) contrast(0.98) brightness(1.08);
}

:root[data-theme="day"] .hero-bg::after,
:root[data-theme="contrast"] .hero-bg::after {
  background:
    radial-gradient(circle at calc(50% + var(--hero-x) * 28%) calc(45% + var(--hero-y) * 20%), rgba(255, 255, 255, 0.52), transparent 34%),
    linear-gradient(90deg, rgba(247, 247, 244, 0.92), rgba(247, 247, 244, 0.48) 52%, rgba(16, 16, 16, 0.22)),
    repeating-linear-gradient(0deg, rgba(16, 16, 16, 0.06) 0 1px, transparent 1px 7px);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 318px);
  align-items: center;
  width: min(1180px, 100%);
  min-height: min(620px, calc(100svh - 220px));
  margin: 0 auto 34px;
  gap: 48px;
}

.hero-copy {
  position: relative;
  z-index: 1;
  max-width: 770px;
}

.hero-copy::before {
  position: absolute;
  inset: -28px -30px -24px -26px;
  z-index: -1;
  content: "";
  background: radial-gradient(ellipse at 26% 46%, rgba(0, 0, 0, 0.56), rgba(0, 0, 0, 0.18) 48%, transparent 72%);
  pointer-events: none;
}

:root[data-theme="day"] .hero-copy::before,
:root[data-theme="contrast"] .hero-copy::before {
  background: radial-gradient(ellipse at 26% 46%, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.34) 48%, transparent 74%);
}

.hero .hero-lead {
  max-width: 660px;
  margin-bottom: 22px;
  color: rgba(247, 247, 244, 0.9);
  font-size: 1.24rem;
  line-height: 1.56;
  text-wrap: pretty;
}

:root[data-theme="day"] .hero .hero-lead,
:root[data-theme="contrast"] .hero .hero-lead {
  color: rgba(16, 16, 16, 0.84);
}

.hero-summary {
  display: flex;
  flex-wrap: wrap;
  max-width: 760px;
  gap: 8px;
  margin: 0 0 30px;
}

.hero-summary span {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 12px;
  color: rgba(247, 247, 244, 0.88);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 5px;
  font-size: 0.9rem;
  font-weight: 850;
}

:root[data-theme="day"] .hero-summary span,
:root[data-theme="contrast"] .hero-summary span {
  color: rgba(16, 16, 16, 0.84);
  background: rgba(255, 255, 255, 0.62);
  border-color: rgba(16, 16, 16, 0.16);
}

.hero-actions,
.cabinet-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  gap: 12px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease,
    color 180ms ease;
}

.button span {
  position: relative;
  z-index: 1;
}

.button::before {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.18), transparent);
  transform: translateX(-110%);
  transition: transform 320ms ease;
}

.button:hover::before,
.button:focus-visible::before {
  transform: translateX(0);
}

.button-primary {
  color: var(--light);
  background: var(--red);
  box-shadow: 0 14px 36px rgba(216, 33, 33, 0.26);
}

.button-primary:hover,
.button-primary:focus-visible {
  background: var(--red-dark);
}

.button-ghost {
  color: inherit;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.18);
}

.prices .button-ghost,
.gallery-section .button-ghost {
  color: var(--ink);
  background: rgba(16, 16, 16, 0.04);
  border-color: var(--line);
}

.hero-status-card {
  position: relative;
  display: grid;
  width: min(318px, 100%);
  justify-self: end;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
  padding: 13px;
  color: var(--light);
  background: rgba(8, 8, 8, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-left: 3px solid var(--red);
  border-radius: var(--radius);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(16px);
}

.hero [data-reveal] {
  opacity: 1;
  transform: none;
}

.hero-status-card::after {
  position: absolute;
  right: 12px;
  bottom: 12px;
  width: 74px;
  height: 1px;
  content: "";
  background: linear-gradient(90deg, var(--red), rgba(95, 214, 201, 0.86));
}

.hero-status-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  background: var(--red);
  border-radius: 5px;
  font-weight: 950;
  line-height: 1;
}

.hero-status-main {
  min-width: 0;
}

.hero-status-kicker {
  display: block;
  margin-bottom: 6px;
  color: rgba(247, 247, 244, 0.56);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.hero-status-line {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 8px;
}

.hero-status-line strong {
  overflow: hidden;
  font-size: 1.05rem;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.status-dot {
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  background: #8b8b8b;
  border-radius: 999px;
}

.status-dot.is-open {
  background: var(--cyan);
  box-shadow: 0 0 0 6px rgba(95, 214, 201, 0.13);
}

.status-dot.is-closed {
  background: var(--red);
  box-shadow: 0 0 0 6px rgba(216, 33, 33, 0.14);
}

.hero-hours {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
  margin-top: 2px;
}

.hero-hours div {
  min-width: 0;
  padding: 9px 10px;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
}

.hero-hours div.is-current {
  background: rgba(95, 214, 201, 0.1);
  border-color: rgba(95, 214, 201, 0.28);
}

.hero-hours span,
.hero-hours strong {
  display: block;
}

.hero-hours span {
  margin-bottom: 5px;
  color: rgba(247, 247, 244, 0.52);
  font-size: 0.7rem;
  font-weight: 900;
  text-transform: uppercase;
}

.hero-hours strong {
  font-size: 0.91rem;
  white-space: nowrap;
}

.hero-status-address {
  display: inline-flex;
  grid-column: 1 / -1;
  width: fit-content;
  max-width: 100%;
  margin-top: 2px;
  color: rgba(247, 247, 244, 0.72);
  border-bottom: 1px solid rgba(247, 247, 244, 0.24);
  font-size: 0.83rem;
  font-weight: 800;
}

.hero-status-address:hover,
.hero-status-address:focus-visible {
  color: var(--light);
  border-color: var(--red);
}

.hero-load {
  display: grid;
  grid-column: 1 / -1;
  gap: 8px;
  margin-top: 8px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 6px;
}

.hero-load-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.hero-load-top span,
.hero-load small {
  color: rgba(247, 247, 244, 0.58);
  font-size: 0.74rem;
  font-weight: 850;
}

.hero-load-top span {
  text-transform: uppercase;
}

.hero-load-top strong {
  color: var(--light);
  font-size: 0.92rem;
  text-transform: uppercase;
}

.load-meter {
  height: 7px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 999px;
}

.load-meter span {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--cyan), #ffd36b, var(--red));
  border-radius: inherit;
  transition: width 500ms ease;
}

.hero-strip {
  position: relative;
  width: min(1180px, 100%);
  margin: 0 auto;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.14);
  background:
    linear-gradient(90deg, rgba(16, 16, 16, 0.9), rgba(16, 16, 16, 0.54)),
    rgba(16, 16, 16, 0.72);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.18);
}

.hero-strip::before,
.hero-strip::after {
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 2;
  width: 82px;
  content: "";
  pointer-events: none;
}

.hero-strip::before {
  left: 0;
  background: linear-gradient(90deg, rgba(16, 16, 16, 0.92), rgba(16, 16, 16, 0));
}

.hero-strip::after {
  right: 0;
  background: linear-gradient(270deg, rgba(16, 16, 16, 0.92), rgba(16, 16, 16, 0));
}

.strip-track {
  display: flex;
  width: max-content;
  gap: 10px;
  padding: 10px;
  animation: filmstrip 34s linear infinite;
}

.strip-track img {
  flex: 0 0 auto;
  width: clamp(150px, 15vw, 210px);
  height: 112px;
  object-fit: cover;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.04)),
    rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  opacity: 0.78;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.strip-track img:hover {
  opacity: 1;
  transform: translateY(-2px);
}

.intro-band {
  background: var(--paper-strong);
  border-bottom: 1px solid var(--line);
}

.intro-grid {
  display: grid;
  width: min(1180px, 100%);
  margin: 0 auto;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: 42px;
  align-items: center;
}

.intro-grid p {
  margin: 0;
  color: var(--ink);
  font-size: 1.42rem;
  line-height: 1.48;
}

.intro-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.intro-facts span {
  display: flex;
  align-items: center;
  min-height: 56px;
  padding: 0 14px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 6px;
  font-weight: 800;
}

.story,
.zones,
.audience,
.location,
.process,
.prices,
.gallery-section,
.rules {
  background:
    linear-gradient(90deg, rgba(16, 16, 16, 0.035) 1px, transparent 1px) 0 0 / 64px 64px,
    var(--paper);
}

.intro-band,
.story,
.zones,
.audience,
.programs,
.process,
.prices,
.gallery-section,
.rules,
.contacts {
  content-visibility: auto;
  contain-intrinsic-size: 760px;
}

.story-layout,
.rules-layout,
.contact-layout,
.cabinet-grid {
  display: grid;
  width: min(1180px, 100%);
  margin: 0 auto;
  grid-template-columns: minmax(0, 0.86fr) minmax(340px, 1fr);
  gap: 52px;
  align-items: center;
}

.story-copy {
  padding: 30px;
  background: var(--paper-strong);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.story-copy p:last-child {
  margin-bottom: 0;
}

.story-points {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.story-points span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 11px;
  color: var(--ink);
  background: rgba(216, 33, 33, 0.08);
  border: 1px solid rgba(216, 33, 33, 0.18);
  border-radius: 999px;
  font-weight: 800;
}

.frame-media {
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.frame-media img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 500ms ease;
}

.frame-media:hover img {
  transform: scale(1.04);
}

.audience-grid,
.process-grid {
  display: grid;
  width: min(1180px, 100%);
  margin: 0 auto;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.audience-card,
.process-step {
  position: relative;
  min-height: 260px;
  padding: 24px 22px;
  overflow: hidden;
  background: var(--paper-strong);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition:
    transform 220ms ease,
    border-color 220ms ease,
    box-shadow 220ms ease;
}

.audience-card::before,
.process-step::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  content: "";
  background: var(--red);
  transform: scaleY(0.2);
  transform-origin: top;
  transition: transform 260ms ease;
}

.audience-card:hover,
.process-step:hover {
  border-color: rgba(216, 33, 33, 0.32);
  box-shadow: 0 18px 44px rgba(16, 16, 16, 0.1);
  transform: translateY(-3px);
}

.audience-card:hover::before,
.process-step:hover::before {
  transform: scaleY(1);
}

.audience-card span,
.process-step span {
  display: inline-grid;
  width: 38px;
  height: 38px;
  place-items: center;
  margin-bottom: 28px;
  color: var(--red);
  background: rgba(216, 33, 33, 0.08);
  border: 1px solid rgba(216, 33, 33, 0.18);
  border-radius: 6px;
  font-weight: 950;
}

.audience-card h3,
.process-step h3 {
  margin-bottom: 10px;
}

.audience-card p,
.process-step p {
  margin: 0;
  line-height: 1.58;
}

.process {
  background:
    linear-gradient(90deg, rgba(16, 16, 16, 0.035) 1px, transparent 1px) 0 0 / 64px 64px,
    linear-gradient(180deg, #ffffff, var(--paper));
}

.location-layout {
  display: grid;
  width: min(980px, 100%);
  margin: 0 auto;
  gap: 18px;
}

.location-map {
  display: grid;
  grid-template-rows: 420px auto;
  overflow: hidden;
  background: rgba(10, 10, 10, 0.74);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.location-facade {
  position: relative;
  overflow: hidden;
  margin: 0;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.location-facade img {
  aspect-ratio: 16 / 9;
  height: 100%;
  object-fit: cover;
}

.location-facade figcaption {
  position: absolute;
  left: 14px;
  bottom: 14px;
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  color: var(--light);
  background: rgba(16, 16, 16, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 5px;
  font-size: 0.86rem;
  font-weight: 800;
  backdrop-filter: blur(10px);
}

.zones-grid {
  display: grid;
  width: min(1180px, 100%);
  margin: 0 auto;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.zone-card {
  display: grid;
  min-height: 420px;
  grid-template-rows: 240px 1fr;
  overflow: hidden;
  background: var(--paper-strong);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.zone-card img {
  height: 100%;
  object-fit: cover;
  transition: transform 420ms ease;
}

.zone-card:hover img {
  transform: scale(1.035);
}

.zone-content {
  padding: 24px;
}

.zone-kicker {
  display: block;
  margin-bottom: 10px;
  color: var(--red);
  font-size: 0.8rem;
  font-weight: 900;
  text-transform: uppercase;
}

.zone-content p {
  margin-bottom: 18px;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip-row span,
.extras-row span {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 10px;
  color: var(--ink);
  background: rgba(16, 16, 16, 0.05);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 800;
}

.program-shell {
  width: min(1180px, 100%);
  margin: 0 auto;
}

.segmented {
  display: flex;
  flex-wrap: wrap;
  width: fit-content;
  max-width: 100%;
  gap: 4px;
  padding: 4px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
}

.segmented button {
  min-height: 38px;
  padding: 0 14px;
  color: rgba(255, 255, 255, 0.72);
  background: transparent;
  border: 0;
  border-radius: 5px;
  cursor: pointer;
  font-weight: 800;
  white-space: nowrap;
  transition:
    color 180ms ease,
    background 180ms ease,
    transform 180ms ease;
}

.segmented button:hover,
.segmented button:focus-visible {
  color: var(--light);
}

.segmented button.is-active {
  color: var(--ink);
  background: var(--light);
}

.program-view {
  display: grid;
  grid-template-columns: minmax(320px, 0.92fr) minmax(0, 1.08fr);
  gap: 26px;
  margin-top: 18px;
  padding: 18px;
  background: var(--dark-2);
  border: 1px solid var(--dark-line);
  border-radius: var(--radius);
}

:root[data-theme="day"] .program-view,
:root[data-theme="contrast"] .program-view {
  background: var(--paper-strong);
  border-color: var(--line);
  box-shadow: 0 18px 48px rgba(16, 16, 16, 0.08);
}

.program-view img {
  height: 440px;
  object-fit: cover;
  border-radius: 6px;
}

.program-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 18px;
}

.program-copy p {
  max-width: 560px;
}

.program-bullets {
  display: grid;
  gap: 10px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.program-bullets li {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  color: rgba(247, 247, 244, 0.84);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 5px;
}

:root[data-theme="day"] .program-bullets li,
:root[data-theme="contrast"] .program-bullets li {
  color: var(--ink);
  background: rgba(16, 16, 16, 0.045);
  border-color: var(--line);
}

.price-tools,
.gallery-tools {
  display: flex;
  justify-content: center;
  margin-bottom: 18px;
}

.price-segmented,
.gallery-filter {
  color: var(--ink);
  background: var(--paper-strong);
  border-color: var(--line);
}

.price-segmented button,
.gallery-filter button {
  color: var(--muted);
}

.price-segmented button:hover,
.price-segmented button:focus-visible,
.gallery-filter button:hover,
.gallery-filter button:focus-visible {
  color: var(--ink);
}

.price-segmented button.is-active,
.gallery-filter button.is-active {
  color: var(--light);
  background: var(--ink);
}

.price-grid {
  display: grid;
  width: min(980px, 100%);
  margin: 0 auto;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.price-card {
  position: relative;
  overflow: hidden;
  min-height: 276px;
  padding: 28px;
  background: var(--paper-strong);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition:
    transform 220ms ease,
    border-color 220ms ease,
    box-shadow 220ms ease;
}

.price-card::before {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  content: "";
  background: linear-gradient(90deg, var(--red), var(--cyan));
}

.price-card:hover {
  border-color: rgba(216, 33, 33, 0.34);
  box-shadow: 0 20px 56px rgba(16, 16, 16, 0.12);
  transform: translateY(-4px);
}

.price-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.price-card small {
  color: var(--red);
  font-weight: 900;
  text-transform: uppercase;
}

.price-save {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 9px;
  color: var(--ink);
  background: rgba(95, 214, 201, 0.2);
  border: 1px solid rgba(95, 214, 201, 0.34);
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 900;
  white-space: nowrap;
}

.price-value {
  margin: 20px 0 12px;
  font-size: 3rem;
  font-weight: 950;
  line-height: 1;
}

.price-meta {
  margin: -4px 0 16px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 850;
}

.price-card p {
  margin-bottom: 28px;
}

.price-card a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 12px;
  color: var(--light);
  background: var(--ink);
  border-radius: 5px;
  font-weight: 800;
}

.extras-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  width: min(980px, 100%);
  margin: 18px auto 0;
  gap: 8px;
}

.price-advisor {
  display: grid;
  width: min(1180px, 100%);
  margin: 22px auto 0;
  grid-template-columns: minmax(260px, 0.78fr) minmax(320px, 1fr) minmax(260px, 0.82fr);
  gap: 14px;
  align-items: stretch;
  padding: 16px;
  background:
    linear-gradient(135deg, rgba(216, 33, 33, 0.08), rgba(95, 214, 201, 0.08)),
    var(--paper-strong);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 18px 48px rgba(16, 16, 16, 0.08);
}

.advisor-copy,
.advisor-panel,
.advisor-result {
  min-width: 0;
  padding: 16px;
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(16, 16, 16, 0.08);
  border-radius: 6px;
}

.advisor-copy h3 {
  margin-bottom: 10px;
}

.advisor-copy p:last-child,
.advisor-result p {
  margin-bottom: 0;
}

.advisor-panel {
  display: grid;
  gap: 14px;
}

.advisor-goals {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.advisor-goals button {
  min-height: 42px;
  padding: 0 12px;
  color: var(--ink);
  background: rgba(16, 16, 16, 0.045);
  border: 1px solid var(--line);
  border-radius: 5px;
  cursor: pointer;
  font-weight: 900;
  transition:
    background 180ms ease,
    border-color 180ms ease,
    transform 180ms ease;
}

.advisor-goals button:hover,
.advisor-goals button:focus-visible {
  transform: translateY(-1px);
}

.advisor-goals button.is-active {
  color: var(--light);
  background: var(--ink);
  border-color: var(--ink);
}

.advisor-range {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 9px 12px;
  align-items: center;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 900;
  text-transform: uppercase;
}

.advisor-range strong {
  color: var(--ink);
  font-size: 1.2rem;
}

.advisor-range input {
  grid-column: 1 / -1;
  width: 100%;
  accent-color: var(--red);
  cursor: grab;
  touch-action: pan-x;
}

.advisor-range input:active {
  cursor: grabbing;
}

.advisor-range input[type="range"] {
  height: 28px;
  background: transparent;
  appearance: none;
}

.advisor-range input[type="range"]::-webkit-slider-runnable-track {
  height: 10px;
  background: linear-gradient(90deg, rgba(216, 33, 33, 0.92), rgba(95, 214, 201, 0.92));
  border-radius: 999px;
}

.advisor-range input[type="range"]::-webkit-slider-thumb {
  width: 26px;
  height: 26px;
  margin-top: -8px;
  background: var(--paper-strong);
  border: 4px solid var(--red);
  border-radius: 999px;
  box-shadow: 0 8px 22px rgba(16, 16, 16, 0.22);
  appearance: none;
}

.advisor-range input[type="range"]::-moz-range-track {
  height: 10px;
  background: linear-gradient(90deg, rgba(216, 33, 33, 0.92), rgba(95, 214, 201, 0.92));
  border-radius: 999px;
}

.advisor-range input[type="range"]::-moz-range-thumb {
  width: 18px;
  height: 18px;
  background: var(--paper-strong);
  border: 4px solid var(--red);
  border-radius: 999px;
  box-shadow: 0 8px 22px rgba(16, 16, 16, 0.22);
}

.advisor-result {
  display: grid;
  align-content: center;
  gap: 8px;
  color: var(--light);
  background:
    linear-gradient(135deg, rgba(16, 16, 16, 0.96), rgba(16, 16, 16, 0.84)),
    var(--dark);
  border-color: rgba(255, 255, 255, 0.12);
}

.advisor-result span {
  color: var(--cyan);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.advisor-result strong {
  font-size: 1.35rem;
  line-height: 1.15;
}

.advisor-result p,
.advisor-result small {
  color: rgba(247, 247, 244, 0.72);
}

.full-price-wrap {
  width: min(1180px, 100%);
  margin: 30px auto 0;
  padding: 22px;
  background: var(--paper-strong);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.full-price-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.full-price-head h3 {
  margin-bottom: 0;
}

.full-price-head a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 12px;
  color: var(--light);
  background: var(--ink);
  border-radius: 5px;
  font-weight: 800;
  white-space: nowrap;
}

.price-table-scroll {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.price-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
}

.price-table th,
.price-table td {
  padding: 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.price-table thead th {
  color: var(--light);
  background: var(--ink);
  font-size: 0.86rem;
  text-transform: uppercase;
}

.price-table tbody tr:last-child th,
.price-table tbody tr:last-child td {
  border-bottom: 0;
}

.price-table tbody th {
  width: 30%;
  background: rgba(16, 16, 16, 0.03);
}

.price-table tbody th strong,
.price-table tbody th span {
  display: block;
}

.price-table tbody th span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 600;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.service-card {
  display: grid;
  gap: 6px;
  min-height: 120px;
  padding: 14px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 6px;
}

.service-card span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.service-card strong {
  font-size: 1.3rem;
}

.service-card em {
  color: var(--muted);
  font-size: 0.86rem;
  font-style: normal;
}

.price-disclaimer {
  margin: 14px 0 0;
  font-size: 0.9rem;
}

.cabinet {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px) 0 0 / 70px 70px,
    var(--dark);
}

:root[data-theme="day"] .cabinet,
:root[data-theme="contrast"] .cabinet {
  background:
    linear-gradient(90deg, rgba(16, 16, 16, 0.04) 1px, transparent 1px) 0 0 / 70px 70px,
    #f4f5f2;
}

.cabinet-grid {
  grid-template-columns: minmax(0, 0.82fr) minmax(430px, 1.18fr);
}

.cabinet-copy p {
  max-width: 560px;
}

.login-state {
  margin: 12px 0 0;
  color: rgba(247, 247, 244, 0.66);
  font-size: 0.92rem;
  font-weight: 800;
}

.has-auth-session .login-state {
  color: var(--cyan);
}

.integration-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 24px 0;
}

.integration-grid div {
  min-height: 112px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
}

.integration-grid strong,
.integration-grid span {
  display: block;
}

.integration-grid strong {
  margin-bottom: 8px;
  color: var(--light);
  font-size: 1.1rem;
}

.integration-grid span {
  color: rgba(247, 247, 244, 0.62);
  line-height: 1.45;
}

.app-preview {
  padding: 18px;
  background: #f4f4f1;
  color: var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.app-preview p {
  color: var(--muted);
}

.app-topbar,
.member-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.app-topbar {
  margin-bottom: 14px;
}

.app-kicker,
.member-row span {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.switch {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  cursor: pointer;
  user-select: none;
}

.switch input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.switch span {
  position: relative;
  width: 48px;
  height: 28px;
  background: #d5d5d0;
  border-radius: 999px;
  transition: background 180ms ease;
}

.switch span::after {
  position: absolute;
  top: 4px;
  left: 4px;
  width: 20px;
  height: 20px;
  content: "";
  background: var(--paper-strong);
  border-radius: 999px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
  transition: transform 180ms ease;
}

.switch input:checked + span {
  background: var(--red);
}

.switch input:checked + span::after {
  transform: translateX(20px);
}

.switch em {
  color: var(--muted);
  font-size: 0.86rem;
  font-style: normal;
  font-weight: 800;
}

.sync-status {
  display: grid;
  gap: 5px;
  margin-bottom: 14px;
  padding: 14px;
  background: rgba(216, 33, 33, 0.08);
  border: 1px solid rgba(216, 33, 33, 0.16);
  border-radius: 6px;
}

.sync-status span,
.sync-status em {
  color: var(--muted);
  font-size: 0.82rem;
  font-style: normal;
  font-weight: 800;
  text-transform: uppercase;
}

.sync-status strong {
  font-size: 1.15rem;
}

.member-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-bottom: 14px;
  padding: 14px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.app-tabs {
  margin-bottom: 14px;
  background: #ffffff;
  border-color: var(--line);
}

.app-tabs button {
  color: var(--muted);
}

.app-tabs button.is-active {
  color: var(--light);
  background: var(--ink);
}

.account-view {
  min-height: 260px;
}

.workout-list,
.schedule-list,
.progress-list,
.rule-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.workout-item,
.schedule-item,
.progress-item {
  display: grid;
  gap: 6px;
  padding: 14px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.workout-title-row,
.schedule-top,
.progress-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.check-button {
  display: inline-grid;
  width: 32px;
  height: 32px;
  place-items: center;
  color: var(--muted);
  background: #f0f0ec;
  border: 1px solid var(--line);
  border-radius: 5px;
  cursor: pointer;
}

.check-button.is-done {
  color: var(--light);
  background: var(--red);
}

.schedule-load {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 9px;
  color: var(--ink);
  background: rgba(95, 214, 201, 0.2);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 900;
}

.progress-bar {
  height: 8px;
  overflow: hidden;
  background: #ecece6;
  border-radius: 999px;
}

.progress-bar span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--red), var(--cyan));
  border-radius: inherit;
}

.gallery-grid {
  display: grid;
  width: min(1180px, 100%);
  margin: 0 auto;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.gallery-item {
  position: relative;
  min-height: 230px;
  overflow: hidden;
  padding: 0;
  background: var(--dark);
  border: 0;
  border-radius: var(--radius);
  cursor: pointer;
}

.gallery-item:nth-child(3n + 1) {
  grid-row: span 2;
  min-height: 470px;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition:
    transform 420ms ease,
    opacity 220ms ease;
}

.gallery-item:hover img,
.gallery-item:focus-visible img {
  transform: scale(1.045);
  opacity: 0.82;
}

.gallery-item span {
  position: absolute;
  left: 10px;
  bottom: 10px;
  max-width: calc(100% - 20px);
  padding: 7px 9px;
  color: var(--light);
  background: rgba(16, 16, 16, 0.72);
  border-radius: 5px;
  font-size: 0.78rem;
  font-weight: 800;
}

.rules-layout {
  grid-template-columns: minmax(320px, 0.82fr) minmax(0, 1.18fr);
  align-items: start;
}

.doc-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.doc-links a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 12px;
  color: var(--light);
  background: var(--ink);
  border-radius: 5px;
  font-weight: 800;
}

.rule-list li {
  padding: 16px 18px;
  background: var(--paper-strong);
  border: 1px solid var(--line);
  border-radius: 6px;
  line-height: 1.5;
}

.contacts {
  background:
    linear-gradient(90deg, rgba(16, 16, 16, 0.3), rgba(16, 16, 16, 0.88)),
    url("photos/optimized/photo-25.jpg") center / cover;
}

:root[data-theme="day"] .contacts,
:root[data-theme="contrast"] .contacts {
  background:
    linear-gradient(90deg, rgba(247, 247, 244, 0.88), rgba(247, 247, 244, 0.74)),
    url("photos/optimized/photo-25.jpg") center / cover;
}

.contact-layout {
  grid-template-columns: minmax(0, 1fr) minmax(320px, 430px);
}

.contact-copy,
.location-map,
.lead-form {
  min-width: 0;
}

.contact-lines {
  display: grid;
  gap: 10px;
  margin: 28px 0;
}

.contact-lines a {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  color: var(--light);
  border-bottom: 1px solid rgba(255, 255, 255, 0.34);
  line-height: 1.5;
}

.hours-box {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hours-box span {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 12px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 5px;
  font-weight: 800;
}

.map-frame {
  position: relative;
  min-height: 380px;
  height: 420px;
  overflow: hidden;
  isolation: isolate;
  overscroll-behavior: contain;
  touch-action: pan-x pan-y;
  background:
    linear-gradient(135deg, rgba(95, 214, 201, 0.12), rgba(216, 33, 33, 0.08)),
    #f1eee6;
}

.map-static {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.9) contrast(0.98);
  transition: transform 600ms ease;
}

.yandex-map {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  opacity: 0;
  touch-action: pan-x pan-y;
  transition: opacity 260ms ease;
}

.yandex-map ymaps {
  max-width: none;
}

.yandex-map.is-loaded {
  opacity: 1;
}

.map-frame.is-loading .map-static {
  transform: scale(1.015);
}

.map-loader,
.map-error {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-content: center;
  gap: 8px;
  padding: 28px;
  color: var(--ink);
  text-align: center;
  background:
    linear-gradient(90deg, rgba(16, 16, 16, 0.045) 1px, transparent 1px) 0 0 / 42px 42px,
    linear-gradient(0deg, rgba(16, 16, 16, 0.045) 1px, transparent 1px) 0 0 / 42px 42px,
    rgba(241, 238, 230, 0.88);
  backdrop-filter: blur(3px);
  transition: opacity 220ms ease, visibility 220ms ease;
}

.map-loader span {
  color: var(--red);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.map-loader strong,
.map-error strong {
  font-size: clamp(1.35rem, 3vw, 2.25rem);
  line-height: 1;
}

.map-loader small {
  color: var(--muted);
  font-weight: 800;
}

.map-frame.is-loaded .map-loader {
  opacity: 0;
  visibility: hidden;
}

.map-error[hidden] {
  display: none;
}

.map-error a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 14px;
  color: var(--light);
  background: var(--red);
  border-radius: 5px;
  font-weight: 900;
}

.map-meta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 14px;
  color: var(--light);
  background: linear-gradient(135deg, rgba(18, 18, 18, 0.96), rgba(18, 18, 18, 0.82));
}

.map-meta strong,
.map-meta span {
  display: block;
}

.map-meta strong {
  font-size: 1rem;
}

.map-meta span {
  margin-top: 3px;
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.86rem;
  line-height: 1.35;
}

.map-route {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 13px;
  color: var(--dark);
  background: var(--mint);
  border-radius: 5px;
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.lead-form {
  display: grid;
  gap: 14px;
  padding: 20px;
  color: var(--ink);
  background: rgba(247, 247, 244, 0.96);
  border-radius: var(--radius);
}

.lead-form label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 900;
  text-transform: uppercase;
}

.lead-form input,
.lead-form select {
  width: 100%;
  min-height: 48px;
  padding: 0 12px;
  color: var(--ink);
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 5px;
  outline: none;
}

.lead-form input:focus,
.lead-form select:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(216, 33, 33, 0.12);
}

.form-note {
  min-height: 22px;
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.form-note.is-success {
  color: #187a48;
  font-weight: 800;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 24px;
  color: rgba(255, 255, 255, 0.66);
  background: #080808;
}

.footer a {
  color: var(--light);
  font-weight: 800;
}

.quick-actions {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 55;
  display: grid;
  gap: 5px;
  padding: 5px;
  background: rgba(16, 16, 16, 0.58);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(16px);
}

.quick-actions a {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: var(--light);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 950;
  transition:
    background 180ms ease,
    border-color 180ms ease,
    transform 180ms ease;
}

.quick-actions a:hover,
.quick-actions a:focus-visible {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.24);
  transform: translateY(-2px);
}

.quick-icon,
.quick-vk {
  display: grid;
  place-items: center;
}

.quick-icon svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.quick-vk {
  width: 25px;
  height: 18px;
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0;
}

.quick-action-phone:hover,
.quick-action-phone:focus-visible {
  color: var(--cyan);
}

.quick-action-vk:hover,
.quick-action-vk:focus-visible {
  color: #7fb7ff;
}

.quick-actions .quick-action-map {
  background: rgba(255, 255, 255, 0.1);
}

.quick-actions .quick-action-map:hover,
.quick-actions .quick-action-map:focus-visible {
  background: rgba(237, 28, 36, 0.12);
  border-color: rgba(237, 28, 36, 0.28);
}

.ya-map-pin {
  position: relative;
  display: grid;
  width: 22px;
  height: 27px;
  place-items: center;
  color: #ffffff;
  background: #ed1c24;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 14px 14px 14px 4px;
  box-shadow: 0 6px 14px rgba(237, 28, 36, 0.28);
  font-size: 0.76rem;
  font-weight: 950;
  transform: rotate(-45deg);
}

.ya-map-pin::after {
  position: absolute;
  inset: 5px;
  content: "";
  background: rgba(255, 255, 255, 0.18);
  border-radius: 999px;
}

.ya-map-pin > span {
  position: relative;
  z-index: 1;
  line-height: 1;
  transform: rotate(45deg);
}

:root[data-theme="day"] .quick-actions,
:root[data-theme="contrast"] .quick-actions {
  background: rgba(247, 247, 244, 0.76);
  border-color: rgba(16, 16, 16, 0.12);
  box-shadow: 0 18px 42px rgba(16, 16, 16, 0.16);
}

:root[data-theme="day"] .quick-actions a,
:root[data-theme="contrast"] .quick-actions a {
  color: var(--ink);
  background: rgba(16, 16, 16, 0.055);
}

:root[data-theme="day"] .quick-actions a:hover,
:root[data-theme="day"] .quick-actions a:focus-visible,
:root[data-theme="contrast"] .quick-actions a:hover,
:root[data-theme="contrast"] .quick-actions a:focus-visible {
  background: rgba(16, 16, 16, 0.1);
  border-color: rgba(16, 16, 16, 0.12);
}

.cabinet-page {
  background: var(--dark);
}

.stub-page {
  min-height: 100vh;
  color: var(--light);
  background:
    linear-gradient(90deg, rgba(16, 16, 16, 0.9), rgba(16, 16, 16, 0.58)),
    url("photos/optimized/photo-03.jpg") center / cover;
}

.stub-page::before {
  position: fixed;
  inset: 0;
  content: "";
  background:
    linear-gradient(90deg, rgba(16, 16, 16, 0.42) 1px, transparent 1px) 0 0 / 68px 68px,
    linear-gradient(180deg, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.34));
  pointer-events: none;
}

.stub-main {
  position: relative;
  display: grid;
  width: min(980px, calc(100% - 32px));
  min-height: 100vh;
  align-content: center;
  margin: 0 auto;
  padding: 36px 0;
}

.stub-brand {
  position: absolute;
  top: 24px;
  left: 0;
}

.stub-card {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  align-items: center;
  gap: 34px;
  padding: 28px;
  background: rgba(8, 8, 8, 0.74);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-left: 4px solid var(--red);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.stub-visual {
  position: relative;
  display: grid;
  aspect-ratio: 1;
  overflow: hidden;
  place-items: center;
  background:
    radial-gradient(circle at 68% 26%, rgba(95, 214, 201, 0.16), transparent 28%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.03)),
    rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.stub-visual::before {
  position: absolute;
  inset: 16px;
  content: "";
  background: repeating-linear-gradient(
    135deg,
    rgba(255, 255, 255, 0) 0 18px,
    rgba(255, 255, 255, 0.055) 18px 19px
  );
  mask-image: radial-gradient(circle at 50% 50%, #000 0 36%, transparent 72%);
  opacity: 0.8;
}

.stub-visual::after {
  position: absolute;
  right: 16px;
  bottom: 16px;
  width: 48px;
  height: 3px;
  content: "";
  background: linear-gradient(90deg, rgba(216, 33, 33, 0.95), rgba(95, 214, 201, 0.9));
  border-radius: 999px;
  opacity: 0.9;
}

.mountain-sticker {
  position: relative;
  width: 150px;
  height: 150px;
  overflow: hidden;
  background:
    radial-gradient(circle at 74% 24%, rgba(95, 214, 201, 0.24), transparent 24%),
    linear-gradient(160deg, rgba(247, 247, 244, 0.16), rgba(247, 247, 244, 0.04) 42%, rgba(8, 8, 8, 0.9)),
    #101010;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 18px 38px rgba(0, 0, 0, 0.28);
  transform: rotate(-4deg);
}

.mountain-sticker::before {
  position: absolute;
  inset: 11px;
  z-index: 5;
  content: "";
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  pointer-events: none;
}

.mountain-sticker::after {
  position: absolute;
  right: 14px;
  bottom: 38px;
  left: 14px;
  z-index: 3;
  height: 2px;
  content: "";
  background: linear-gradient(90deg, rgba(216, 33, 33, 0.88), rgba(95, 214, 201, 0.72));
  border-radius: 999px;
}

.mountain-sun {
  position: absolute;
  top: 20px;
  right: 22px;
  width: 26px;
  height: 26px;
  background: var(--cyan);
  border-radius: 999px;
  box-shadow: 0 0 0 8px rgba(95, 214, 201, 0.12);
}

.mountain-peak {
  position: absolute;
  bottom: 28px;
  left: 18px;
  width: 104px;
  height: 92px;
  background: #f7f7f4;
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
  filter: drop-shadow(0 14px 18px rgba(0, 0, 0, 0.22));
}

.mountain-peak::after {
  position: absolute;
  top: 0;
  left: 50%;
  width: 48px;
  height: 62px;
  content: "";
  background: #d7d9d8;
  clip-path: polygon(0 0, 100% 100%, 0 100%);
}

.mountain-peak-back {
  left: 8px;
  bottom: 34px;
  width: 76px;
  height: 70px;
  background: rgba(247, 247, 244, 0.46);
}

.mountain-peak-front {
  z-index: 1;
}

.mountain-sticker strong {
  position: absolute;
  z-index: 6;
  left: 16px;
  bottom: 12px;
  color: var(--light);
  font-size: 1.55rem;
  font-weight: 950;
  line-height: 1;
}

.stub-copy h1 {
  max-width: 620px;
  margin-bottom: 16px;
  font-size: 4.4rem;
  line-height: 0.94;
}

.stub-copy p {
  max-width: 620px;
  color: rgba(247, 247, 244, 0.72);
  font-size: 1.08rem;
}

.stub-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.stub-page .button-ghost {
  color: var(--light);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.16);
}

.cabinet-page-main {
  min-height: 100vh;
}

.cabinet-hero {
  min-height: 100vh;
  padding: 140px 24px 90px;
  background:
    linear-gradient(90deg, rgba(16, 16, 16, 0.76), rgba(16, 16, 16, 0.92)),
    url("photos/optimized/photo-03.jpg") center / cover;
}

.cabinet-page-grid {
  display: grid;
  width: min(1180px, 100%);
  margin: 0 auto;
  grid-template-columns: minmax(0, 0.92fr) minmax(430px, 1.08fr);
  gap: 52px;
  align-items: center;
}

.cabinet-page .cabinet-copy h1 {
  max-width: 720px;
  font-size: 5rem;
}

.cabinet-roadmap {
  padding: 90px 24px;
  color: var(--ink);
  background: var(--paper);
}

.roadmap-grid {
  display: grid;
  width: min(1180px, 100%);
  margin: 0 auto;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.roadmap-grid article {
  min-height: 240px;
  padding: 20px;
  background: var(--paper-strong);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.roadmap-grid span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 32px;
  margin-bottom: 22px;
  color: var(--light);
  background: var(--red);
  border-radius: 5px;
  font-weight: 900;
}

.login-modal {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.72);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.login-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.login-dialog {
  position: relative;
  width: min(460px, 100%);
  padding: 26px;
  color: var(--ink);
  background: var(--paper-strong);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transform: translateY(12px) scale(0.98);
  transition: transform 180ms ease;
}

.login-modal.is-open .login-dialog {
  transform: translateY(0) scale(1);
}

.login-dialog h2 {
  margin-bottom: 18px;
  font-size: 2.1rem;
}

.login-close {
  position: absolute;
  top: 12px;
  right: 12px;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 5px;
  cursor: pointer;
  font-size: 1.35rem;
}

.login-form {
  display: grid;
  gap: 13px;
}

.login-form label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 900;
  text-transform: uppercase;
}

.login-form input[type="text"],
.login-form input[type="password"] {
  width: 100%;
  min-height: 48px;
  padding: 0 12px;
  color: var(--ink);
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 5px;
  outline: none;
}

.login-form input:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(216, 33, 33, 0.12);
}

.login-remember {
  display: flex !important;
  grid-template-columns: none;
  align-items: center;
  gap: 9px !important;
  color: var(--ink) !important;
  font-size: 0.9rem !important;
  text-transform: none !important;
}

.login-remember input {
  width: 18px;
  height: 18px;
  accent-color: var(--red);
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 28px;
  background: rgba(0, 0, 0, 0.88);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

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

.lightbox img {
  width: min(980px, 100%);
  max-height: 78vh;
  object-fit: contain;
  border-radius: var(--radius);
}

.lightbox p {
  width: min(980px, 100%);
  margin: 12px 0 0;
  color: rgba(255, 255, 255, 0.78);
  text-align: center;
}

.lightbox-close {
  position: absolute;
  top: 18px;
  right: 18px;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  color: var(--light);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 5px;
  cursor: pointer;
  font-size: 1.5rem;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  display: grid;
  width: 48px;
  height: 58px;
  place-items: center;
  color: var(--light);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 6px;
  cursor: pointer;
  font-size: 2.2rem;
  line-height: 1;
  transform: translateY(-50%);
  transition:
    background 180ms ease,
    transform 180ms ease;
}

.lightbox-prev {
  left: max(18px, calc((100vw - 1080px) / 2));
}

.lightbox-next {
  right: max(18px, calc((100vw - 1080px) / 2));
}

.lightbox-nav:hover,
.lightbox-nav:focus-visible {
  background: rgba(216, 33, 33, 0.78);
  transform: translateY(-50%) scale(1.04);
}

[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 620ms ease,
    transform 620ms ease;
  transition-delay: var(--reveal-delay, 0ms);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

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

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: auto 1fr;
  }

  .header-call {
    display: none;
  }

  .header-actions {
    justify-self: end;
  }

  .nav {
    justify-content: flex-end;
  }

  h1 {
    font-size: 5rem;
  }

  h2 {
    font-size: 2.45rem;
  }

  .hero-grid,
  .intro-grid,
  .story-layout,
  .rules-layout,
  .contact-layout,
  .cabinet-grid,
  .program-view {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    min-height: auto;
    gap: 26px;
  }

  .hero-status-card {
    max-width: 460px;
    justify-self: start;
  }

  .zones-grid,
  .price-grid,
  .price-advisor,
  .audience-grid,
  .process-grid {
    grid-template-columns: 1fr;
  }

  .service-grid,
  .integration-grid,
  .roadmap-grid,
  .cabinet-page-grid,
  .audience-grid,
  .process-grid {
    grid-template-columns: 1fr 1fr;
  }

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

  .program-view img {
    height: 340px;
  }

  .price-advisor {
    width: min(980px, 100%);
  }

  .location-map {
    grid-template-rows: 330px auto;
  }

  .map-frame {
    min-height: 330px;
    height: 330px;
  }
}

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

  .site-header {
    top: 6px;
    width: calc(100% - 12px);
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 5px;
    padding: 7px;
  }

  .brand {
    grid-column: 1;
    grid-row: 1;
    justify-content: space-between;
  }

  .header-actions {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
  }

  .header-login {
    min-height: 34px;
    padding: 0 10px;
  }

  .theme-toggle {
    width: 34px;
    height: 34px;
  }

  .brand-text {
    display: none;
  }

  .nav {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: flex-start;
    flex-wrap: nowrap;
    gap: 3px;
    overflow-x: auto;
    padding-bottom: 1px;
    -webkit-overflow-scrolling: touch;
  }

  .nav a {
    flex: 0 0 auto;
    min-height: 30px;
    padding: 0 9px;
    background: rgba(255, 255, 255, 0.06);
    font-size: 0.78rem;
  }

  .section,
  .intro-band {
    padding: 64px 14px;
  }

  section[id] {
    scroll-margin-top: 122px;
  }

  .hero {
    min-height: auto;
    padding: 116px 14px 14px;
  }

  .hero-grid {
    gap: 16px;
    margin-bottom: 14px;
  }

  h1 {
    margin-bottom: 14px;
    font-size: 3rem;
    line-height: 0.92;
  }

  h2 {
    font-size: 1.85rem;
    line-height: 1.08;
  }

  .hero-lead,
  .intro-grid p {
    font-size: 0.98rem;
    line-height: 1.5;
  }

  .hero-lead {
    margin-bottom: 16px;
  }

  .hero-summary {
    gap: 6px;
    margin-bottom: 16px;
  }

  .hero-summary span {
    flex: 1 1 100%;
    min-height: 30px;
    padding: 0 10px;
    font-size: 0.82rem;
  }

  .button {
    width: 100%;
    min-height: 42px;
    padding: 0 14px;
  }

  .hero-actions,
  .cabinet-actions {
    width: 100%;
    gap: 8px;
  }

  .hero-status-card {
    width: 100%;
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 9px;
    padding: 10px;
  }

  .hero-status-mark {
    width: 38px;
    height: 38px;
  }

  .hero-status-line strong {
    font-size: 0.98rem;
  }

  .hero-hours {
    gap: 6px;
  }

  .hero-hours div {
    padding: 7px 8px;
  }

  .hero-hours strong {
    font-size: 0.8rem;
  }

  .hero-status-address {
    font-size: 0.78rem;
  }

  .hero-load {
    overflow: hidden;
  }

  .hero-load-top {
    align-items: flex-start;
    flex-direction: column;
    gap: 3px;
  }

  .hero-load-top strong {
    max-width: 100%;
    font-size: 0.84rem;
    white-space: normal;
  }

  .intro-facts,
  .member-row {
    grid-template-columns: 1fr;
  }

  .intro-facts span {
    min-height: 48px;
  }

  .story-copy,
  .zone-content,
  .audience-card,
  .process-step,
  .price-card,
  .app-preview,
  .location-map,
  .lead-form {
    padding: 18px;
  }

  .location-map {
    gap: 0;
    padding: 0;
    grid-template-rows: 270px auto;
  }

  .contacts {
    background:
      linear-gradient(180deg, rgba(16, 16, 16, 0.82), rgba(16, 16, 16, 0.94)),
      url("photos/optimized/photo-25.jpg") 60% center / cover;
  }

  .contact-lines {
    margin: 22px 0;
  }

  .contact-lines a {
    width: 100%;
    word-break: break-word;
  }

  .map-frame {
    min-height: 270px;
    height: 270px;
  }

  .map-meta {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .map-route {
    width: 100%;
  }

  .story-points span,
  .chip-row span,
  .extras-row span {
    min-height: 30px;
    font-size: 0.82rem;
  }

  .price-segmented {
    display: grid;
    width: 100%;
    grid-template-columns: 1fr 1fr;
  }

  .price-segmented button {
    width: 100%;
  }

  .program-shell > .segmented,
  .gallery-filter {
    flex-wrap: nowrap;
    justify-content: flex-start;
    width: 100%;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .program-shell > .segmented::-webkit-scrollbar,
  .gallery-filter::-webkit-scrollbar {
    display: none;
  }

  .program-shell > .segmented button,
  .gallery-filter button {
    flex: 0 0 auto;
  }

  .full-price-wrap {
    padding: 16px;
  }

  .full-price-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .price-table {
    min-width: 620px;
  }

  .price-advisor {
    gap: 10px;
    padding: 12px;
  }

  .advisor-copy,
  .advisor-panel,
  .advisor-result {
    padding: 14px;
  }

  .advisor-goals {
    grid-template-columns: 1fr;
  }

  .price-table th,
  .price-table td {
    padding: 11px;
  }

  .service-card {
    min-height: auto;
  }

  .audience-grid,
  .process-grid,
  .service-grid,
  .integration-grid,
  .roadmap-grid,
  .cabinet-page-grid {
    grid-template-columns: 1fr;
  }

  .audience-card,
  .process-step {
    min-height: auto;
  }

  .cabinet-hero {
    padding: 132px 14px 64px;
  }

  .stub-main {
    width: min(100% - 28px, 620px);
    padding: 90px 0 28px;
  }

  .stub-brand {
    top: 16px;
  }

  .stub-card {
    grid-template-columns: 1fr;
    gap: 22px;
    padding: 20px;
  }

  .stub-visual {
    width: 112px;
    justify-self: start;
  }

  .mountain-sticker {
    width: 86px;
    height: 86px;
    border-radius: 8px;
  }

  .mountain-sun {
    top: 12px;
    right: 13px;
    width: 16px;
    height: 16px;
    box-shadow: 0 0 0 5px rgba(95, 214, 201, 0.12);
  }

  .mountain-peak {
    left: 10px;
    bottom: 16px;
    width: 62px;
    height: 54px;
  }

  .mountain-peak-back {
    left: 5px;
    bottom: 20px;
    width: 46px;
    height: 42px;
  }

  .mountain-sticker strong {
    left: 9px;
    bottom: 7px;
    font-size: 1rem;
  }

  .stub-copy h1 {
    font-size: 2.7rem;
  }

  .stub-actions {
    width: 100%;
  }

  .cabinet-page .cabinet-copy h1 {
    font-size: 2.8rem;
    line-height: 0.96;
  }

  .gallery-filter {
    width: 100%;
  }

  .zone-card {
    min-height: auto;
    grid-template-rows: 190px 1fr;
  }

  .program-view {
    padding: 12px;
  }

  .program-view img {
    height: 260px;
  }

  .program-copy {
    padding: 6px;
  }

  .program-bullets li {
    min-height: 40px;
    padding: 10px 12px;
  }

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

  .gallery-item,
  .gallery-item:nth-child(3n + 1) {
    min-height: 250px;
    grid-row: auto;
  }

  .strip-track img {
    width: 116px;
    height: 68px;
  }

  .footer {
    flex-direction: column;
  }

  .quick-actions {
    right: 12px;
    bottom: 12px;
    grid-auto-flow: column;
  }

  .quick-actions a {
    width: 42px;
    height: 42px;
  }

  .lightbox-nav {
    top: auto;
    bottom: 18px;
    width: 44px;
    height: 44px;
    font-size: 1.8rem;
    transform: none;
  }

  .lightbox-prev {
    left: 18px;
  }

  .lightbox-next {
    right: 18px;
  }

  .lightbox-nav:hover,
  .lightbox-nav:focus-visible {
    transform: scale(1.04);
  }
}

@media (max-width: 420px) {
  .site-header {
    width: calc(100% - 12px);
  }

  .brand-mark {
    width: 38px;
    height: 32px;
  }

  .brand-text {
    font-size: 0.72rem;
  }

  .nav a {
    min-height: 30px;
    padding: 0 8px;
    font-size: 0.76rem;
  }

  .hero {
    padding-top: 112px;
  }

  h1 {
    font-size: 2.85rem;
  }

  h2 {
    font-size: 1.7rem;
  }

  h3 {
    font-size: 1.2rem;
  }

  .hero-status-card {
    grid-template-columns: 34px minmax(0, 1fr);
  }

  .hero-status-mark {
    width: 34px;
    height: 34px;
    font-size: 0.86rem;
  }

  .hero-hours {
    grid-template-columns: 1fr 1fr;
  }

  .location-map {
    grid-template-rows: 235px auto;
  }

  .map-frame {
    min-height: 235px;
    height: 235px;
  }

  .map-meta {
    padding: 12px;
  }

  .price-value {
    font-size: 2.35rem;
  }

  .gallery-item,
  .gallery-item:nth-child(3n + 1) {
    min-height: 220px;
  }
}

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

  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}
