/* АНРО — стили публичной части.
   Тема ([data-theme] на <html>) задаёт цвета и шрифт заголовков, остальное общее. */

@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-display: swap;
  font-weight: 400 900;
  src: url('../fonts/playfair-display-cyrillic-wght-normal.woff2') format('woff2-variations');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-display: swap;
  font-weight: 400 900;
  src: url('../fonts/playfair-display-latin-wght-normal.woff2') format('woff2-variations');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Playfair Display';
  font-style: italic;
  font-display: swap;
  font-weight: 400 900;
  src: url('../fonts/playfair-display-cyrillic-wght-italic.woff2') format('woff2-variations');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Playfair Display';
  font-style: italic;
  font-display: swap;
  font-weight: 400 900;
  src: url('../fonts/playfair-display-latin-wght-italic.woff2') format('woff2-variations');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Unbounded';
  font-style: normal;
  font-display: swap;
  font-weight: 200 900;
  src: url('../fonts/unbounded-cyrillic-wght-normal.woff2') format('woff2-variations');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Unbounded';
  font-style: normal;
  font-display: swap;
  font-weight: 200 900;
  src: url('../fonts/unbounded-latin-wght-normal.woff2') format('woff2-variations');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url('../fonts/manrope-cyrillic-wght-normal.woff2') format('woff2-variations');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url('../fonts/manrope-latin-wght-normal.woff2') format('woff2-variations');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Темы ---------- */

:root,
[data-theme='teplo'] {
  --bg: #f7f1e6;
  --surface: #fffdf8;
  --surface-2: #efe5d3;
  --text: #2b2119;
  --muted: #6b5c4e;
  --line: #e2d4bf;
  --primary: #2f4a3a;
  --primary-2: #3d5e4a;
  --on-primary: #fffdf8;
  --on-primary-muted: #c7d4ca;
  --accent: #b5532a;
  --accent-hover: #9a4421;
  --accent-bright: #e9a23b;
  --accent-soft: #f6e5d4;
  --on-accent: #ffffff;
  --link: #2f5b44;
  --star: #e9a23b;
  --lm-back: #8aa596;
  --lm-front: #2f4a3a;
  --lm-snow: #fffdf8;
  --lm-sun: #e9a23b;
  --lm-water: #2f4a3a;
  --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --display-weight: 700;
  --display-tracking: -0.01em;
  --eyebrow-font: 'Playfair Display', Georgia, serif;
  --eyebrow-style: italic;
  --eyebrow-transform: none;
  --eyebrow-size: 1.0625rem;
  --eyebrow-tracking: 0;
  --radius: 22px;
  --grain: 0.05;
}

[data-theme='priroda'] {
  --bg: #f3f6f2;
  --surface: #ffffff;
  --surface-2: #e4ede6;
  --text: #102219;
  --muted: #4f6357;
  --line: #d2dfd6;
  --primary: #12395a;
  --primary-2: #184b75;
  --on-primary: #ffffff;
  --on-primary-muted: #bcd0df;
  --accent: #1f7a52;
  --accent-hover: #186342;
  --accent-bright: #f2c14e;
  --accent-soft: #e0f0e6;
  --on-accent: #ffffff;
  --link: #11598f;
  --star: #e3a92a;
  --lm-back: #7fa6c4;
  --lm-front: #1d5c45;
  --lm-snow: #ffffff;
  --lm-sun: #f2c14e;
  --lm-water: #12395a;
  --font-display: 'Manrope', system-ui, sans-serif;
  --display-weight: 800;
  --display-tracking: -0.025em;
  --eyebrow-font: 'Manrope', system-ui, sans-serif;
  --eyebrow-style: normal;
  --eyebrow-transform: uppercase;
  --eyebrow-size: 0.8125rem;
  --eyebrow-tracking: 0.12em;
  --radius: 26px;
  --grain: 0;
}

[data-theme='lava'] {
  --bg: #f6f8fb;
  --surface: #ffffff;
  --surface-2: #e9eff5;
  --text: #0c1e31;
  --muted: #55667a;
  --line: #d9e1ea;
  --primary: #0b2f4e;
  --primary-2: #123f66;
  --on-primary: #ffffff;
  --on-primary-muted: #b9cbdc;
  --accent: #d4420c;
  --accent-hover: #b8380a;
  --accent-bright: #ff5a1f;
  --accent-soft: #fff0e8;
  --on-accent: #ffffff;
  --link: #0d5a96;
  --star: #ff8a3d;
  --lm-back: #5f7fa0;
  --lm-front: #0b2f4e;
  --lm-snow: #ffffff;
  --lm-sun: #ff5a1f;
  --lm-water: #0b2f4e;
  --font-display: 'Unbounded', 'Arial Black', system-ui, sans-serif;
  --display-weight: 700;
  --display-tracking: -0.01em;
  --eyebrow-font: 'Unbounded', system-ui, sans-serif;
  --eyebrow-style: normal;
  --eyebrow-transform: uppercase;
  --eyebrow-size: 0.75rem;
  --eyebrow-tracking: 0.12em;
  --radius: 16px;
  --grain: 0;
}

/* ---------- Времена года ---------- */

[data-theme='zima'] {
  --bg: #f1f5f9;
  --surface: #ffffff;
  --surface-2: #e2ebf3;
  --text: #12212f;
  --muted: #4e6173;
  --line: #d2deea;
  --primary: #1d3b5a;
  --primary-2: #28507a;
  --on-primary: #ffffff;
  --on-primary-muted: #c1d3e4;
  --accent: #b23a48;
  --accent-hover: #962f3c;
  --accent-bright: #a9d6f5;
  --accent-soft: #f6e3e6;
  --on-accent: #ffffff;
  --link: #1f5689;
  --star: #e8a93a;
  --lm-back: #9db8d0;
  --lm-front: #1d3b5a;
  --lm-snow: #ffffff;
  --lm-sun: #f2c66d;
  --lm-water: #1d3b5a;
  --ridge-snow: #ffffff;
  --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --display-weight: 700;
  --display-tracking: -0.01em;
  --eyebrow-font: 'Playfair Display', Georgia, serif;
  --eyebrow-style: italic;
  --eyebrow-transform: none;
  --eyebrow-size: 1.0625rem;
  --eyebrow-tracking: 0;
  --radius: 22px;
  --grain: 0;
}

[data-theme='vesna'] {
  --bg: #f6f7f0;
  --surface: #ffffff;
  --surface-2: #e8efdc;
  --text: #1d2618;
  --muted: #55604c;
  --line: #d9e2cc;
  --primary: #3c5a2e;
  --primary-2: #4a6e39;
  --on-primary: #ffffff;
  --on-primary-muted: #cfdcc4;
  --accent: #c2477a;
  --accent-hover: #a63a67;
  --accent-bright: #f2b6cf;
  --accent-soft: #fae6ef;
  --on-accent: #ffffff;
  --link: #3c6a2a;
  --star: #e9a23b;
  --lm-back: #a7c08f;
  --lm-front: #3c5a2e;
  --lm-snow: #ffffff;
  --lm-sun: #f4c95d;
  --lm-water: #3c5a2e;
  --font-display: 'Manrope', system-ui, sans-serif;
  --display-weight: 800;
  --display-tracking: -0.025em;
  --eyebrow-font: 'Manrope', system-ui, sans-serif;
  --eyebrow-style: normal;
  --eyebrow-transform: uppercase;
  --eyebrow-size: 0.8125rem;
  --eyebrow-tracking: 0.12em;
  --radius: 26px;
  --grain: 0;
}

[data-theme='leto'] {
  --bg: #f3f8f6;
  --surface: #ffffff;
  --surface-2: #dfede8;
  --text: #10241f;
  --muted: #4a615a;
  --line: #cfe1db;
  --primary: #0f4c5c;
  --primary-2: #155f72;
  --on-primary: #ffffff;
  --on-primary-muted: #bcd8de;
  --accent: #c24a35;
  --accent-hover: #a63d2b;
  --accent-bright: #ffb347;
  --accent-soft: #fbe6e1;
  --on-accent: #ffffff;
  --link: #0f5f73;
  --star: #f0a531;
  --lm-back: #7fb3ae;
  --lm-front: #0f4c5c;
  --lm-snow: #ffffff;
  --lm-sun: #ffb347;
  --lm-water: #0f4c5c;
  --font-display: 'Manrope', system-ui, sans-serif;
  --display-weight: 800;
  --display-tracking: -0.025em;
  --eyebrow-font: 'Manrope', system-ui, sans-serif;
  --eyebrow-style: normal;
  --eyebrow-transform: uppercase;
  --eyebrow-size: 0.8125rem;
  --eyebrow-tracking: 0.12em;
  --radius: 26px;
  --grain: 0;
}

[data-theme='osen'] {
  --bg: #faf4ec;
  --surface: #fffbf5;
  --surface-2: #f1e3cf;
  --text: #2d1f14;
  --muted: #6c5746;
  --line: #e6d3bb;
  --primary: #5e2a1f;
  --primary-2: #73372a;
  --on-primary: #fffbf5;
  --on-primary-muted: #e6cbbf;
  --accent: #a8561a;
  --accent-hover: #8e4815;
  --accent-bright: #f0b43c;
  --accent-soft: #f7e6d3;
  --on-accent: #ffffff;
  --link: #8a4316;
  --star: #f0b43c;
  --lm-back: #c99a5b;
  --lm-front: #5e2a1f;
  --lm-snow: #fffbf5;
  --lm-sun: #f0b43c;
  --lm-water: #5e2a1f;
  --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --display-weight: 700;
  --display-tracking: -0.01em;
  --eyebrow-font: 'Playfair Display', Georgia, serif;
  --eyebrow-style: italic;
  --eyebrow-transform: none;
  --eyebrow-size: 1.0625rem;
  --eyebrow-tracking: 0;
  --radius: 22px;
  --grain: 0.05;
}

:root {
  --font-body: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --radius-sm: 14px;
  --shadow: 0 1px 2px rgba(40, 30, 20, 0.05), 0 10px 30px rgba(40, 30, 20, 0.07);
  --shadow-lg: 0 2px 6px rgba(40, 30, 20, 0.07), 0 24px 56px rgba(40, 30, 20, 0.14);
  --wrap: 1180px;
  --gutter: 16px;
  --header-h: 64px;
  --cta-h: 0px;
}

@media (min-width: 700px) {
  :root {
    --gutter: 28px;
    --header-h: 76px;
  }
}

/* ---------- База ---------- */

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

[hidden] {
  display: none !important;
}

/* Ни плавной прокрутки, ни scroll-padding для всей страницы: на телефоне
   браузер из-за них докручивает к нажатой кнопке, и страница «уезжает».
   Плавный переход по якорям делает скрипт, отступ под шапку — scroll-margin. */
html {
  -webkit-text-size-adjust: 100%;
  overflow-x: clip;
}

[id] {
  scroll-margin-top: calc(var(--header-h) + 12px);
}

/* Пока открыто окно, страница под ним не прокручивается. */
html.is-locked,
html.is-locked body {
  overflow: hidden;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-feature-settings: 'pnum' 1, 'lnum' 1;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

/* Лёгкое «зерно» бумаги в тёплой теме: фон не выглядит плоской заливкой. */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 100;
  opacity: var(--grain);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

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

img {
  height: auto;
  display: block;
}

a {
  color: var(--link);
  text-underline-offset: 0.18em;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  line-height: 1.12;
  letter-spacing: var(--display-tracking);
  margin: 0 0 0.5em;
  overflow-wrap: break-word;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2rem, 1.2rem + 3.4vw, 3.75rem);
}

h2 {
  font-size: clamp(1.6rem, 1.15rem + 1.8vw, 2.5rem);
}

h3 {
  font-size: 1.1875rem;
}

[data-theme='lava'] h1 {
  font-size: clamp(1.75rem, 1.1rem + 2.8vw, 3.2rem);
}

[data-theme='lava'] h2 {
  font-size: clamp(1.35rem, 1.05rem + 1.3vw, 2.1rem);
}

@media (max-width: 359px) {
  h1,
  h2 {
    hyphens: auto;
  }
}

p {
  margin: 0 0 1em;
}

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

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.skip {
  position: absolute;
  left: -9999px;
  top: 8px;
  z-index: 200;
  background: var(--surface);
  padding: 8px 14px;
  border-radius: 8px;
}

.skip:focus {
  left: 8px;
}

.i {
  width: 1.25em;
  height: 1.25em;
  flex: none;
}

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

.lead {
  font-size: 1.125rem;
  color: var(--muted);
  max-width: 44rem;
}

.eyebrow {
  font-family: var(--eyebrow-font);
  font-style: var(--eyebrow-style);
  font-size: var(--eyebrow-size);
  font-weight: 600;
  letter-spacing: var(--eyebrow-tracking);
  text-transform: var(--eyebrow-transform);
  color: var(--accent);
  margin: 0 0 0.6rem;
}

.empty {
  padding: 32px;
  background: var(--surface);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  text-align: center;
  color: var(--muted);
}

/* ---------- Кнопки ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  min-height: 48px;
  padding: 0 1.3em;
  border: 1.5px solid transparent;
  border-radius: 999px;
  font: 700 1rem/1.1 var(--font-body);
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s, color 0.15s, border-color 0.15s, transform 0.1s, box-shadow 0.15s;
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
}

.btn > span {
  overflow: hidden;
  text-overflow: ellipsis;
}

/* «Позвонить» и номер — в две строки, номер никогда не рвётся. */
.btn-2l {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.2;
  text-align: left;
}

.btn-2l small {
  font-size: 0.9375rem;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0.92;
}

.btn:has(.btn-2l) {
  padding-top: 8px;
  padding-bottom: 8px;
}

.i-fill {
  stroke: none;
}

.btn:active {
  transform: translateY(1px);
}

.btn-lg {
  min-height: 56px;
  padding: 0 1.6em;
  font-size: 1.0625rem;
}

.btn-small {
  min-height: 38px;
  padding: 0 1em;
  font-size: 0.9375rem;
}

.btn-block {
  width: 100%;
  min-width: 0;
  white-space: normal;
  text-align: center;
  line-height: 1.2;
}

.btn-accent {
  background: var(--accent);
  color: var(--on-accent);
  box-shadow: 0 6px 18px color-mix(in srgb, var(--accent) 30%, transparent);
}

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

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

.btn-primary:hover {
  background: var(--primary-2);
}

.btn-secondary {
  background: var(--surface);
  color: var(--primary);
  border-color: var(--primary);
}

.btn-secondary:hover {
  background: var(--surface-2);
}

.btn-ghost {
  background: transparent;
  color: var(--primary);
  border-color: var(--line);
}

.btn-ghost:hover {
  border-color: var(--primary);
}

.btn-link {
  background: none;
  border: 0;
  color: var(--link);
  padding: 0;
  min-height: 40px;
  font-weight: 600;
}

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: var(--surface-2);
  color: var(--text);
  cursor: pointer;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  font-weight: 700;
  color: var(--link);
  text-decoration: none;
}

.link-arrow:hover {
  text-decoration: underline;
}

/* ---------- Логотип ---------- */

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--primary);
  text-decoration: none;
  min-width: 0;
}

.logo-mark {
  width: 44px;
  height: 44px;
  flex: none;
}

.lm-sun {
  fill: var(--lm-sun);
}

.lm-back {
  fill: var(--lm-back);
}

.lm-front {
  fill: var(--lm-front);
}

.lm-snow {
  fill: var(--lm-snow);
}

.lm-water {
  fill: none;
  stroke: var(--lm-water);
  stroke-width: 2.4;
  stroke-linecap: round;
}

.lm-water-2 {
  opacity: 0.45;
}

.logo-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.logo-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: 0.08em;
  line-height: 1;
}

[data-theme='lava'] .logo-name {
  font-size: 1.375rem;
}

.logo-sub {
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* На тёмном фоне знак светлый. */
.on-dark {
  --lm-back: rgba(255, 255, 255, 0.45);
  --lm-front: rgba(255, 255, 255, 0.82);
  --lm-snow: #ffffff;
  --lm-water: rgba(255, 255, 255, 0.82);
}

.logo.on-dark {
  color: #fff;
}

.logo.on-dark .logo-sub {
  color: var(--on-primary-muted);
  white-space: normal;
}

/* ---------- Шапка ---------- */

.header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}

.header-in {
  display: flex;
  align-items: center;
  gap: 20px;
  height: var(--header-h);
}

.nav {
  display: none;
  gap: 4px;
  margin-left: auto;
}

.nav a {
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9375rem;
}

.nav a:hover {
  background: var(--surface-2);
}

.header-phone {
  margin-left: auto;
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--on-accent);
  text-decoration: none;
  white-space: nowrap;
  font-weight: 800;
}

.header-phone span {
  display: none;
}

@media (min-width: 560px) {
  .header-phone {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: auto;
    padding: 0 18px;
    border-radius: 999px;
  }
  .header-phone span {
    display: inline;
  }
}

@media (min-width: 980px) {
  .nav {
    display: flex;
  }
  .header-phone {
    margin-left: 8px;
  }
}

/* ---------- Первый экран ---------- */

.hero {
  position: relative;
  padding: 20px 0 56px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 28px;
  align-items: center;
}

@media (min-width: 900px) {
  .hero {
    padding: 48px 0 80px;
  }
  .hero-grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    gap: 56px;
  }
}

.hero-text h1 {
  margin-bottom: 0.35em;
}

.hero-lead {
  font-size: clamp(1.0625rem, 1rem + 0.35vw, 1.25rem);
  color: var(--muted);
  max-width: 34em;
  margin-bottom: 1.6em;
}

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

@media (max-width: 459px) {
  .hero-actions .btn {
    width: 100%;
  }
}

.rating-chip {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 10px;
  margin-bottom: 18px;
  padding: 7px 14px 7px 12px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--text);
  text-decoration: none;
  font-size: 0.9375rem;
  box-shadow: var(--shadow);
}

.rating-chip b {
  font-size: 1.0625rem;
}

.stars {
  display: inline-flex;
  gap: 1px;
  color: var(--star);
}

.stars .i {
  width: 1.05em;
  height: 1.05em;
  fill: currentColor;
  stroke: none;
}

/* Коллаж: главное фото в «окне-арке» и два маленьких. */
.hero-media {
  position: relative;
  order: -1;
  max-width: 560px;
  width: 100%;
  margin: 0 auto;
  padding: 0 9% 8% 0;
}

@media (min-width: 900px) {
  .hero-media {
    order: 0;
    padding: 0 10% 10% 0;
  }
}

.hero-sun {
  position: absolute;
  right: 3%;
  top: -3%;
  width: 34%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--accent-bright);
  opacity: 0.85;
}

.hero-arch {
  position: relative;
  aspect-ratio: 4 / 4.6;
  border-radius: 999px 999px var(--radius) var(--radius);
  overflow: hidden;
  background: var(--surface-2);
  box-shadow: var(--shadow-lg);
}

@media (max-width: 899px) {
  .hero-arch {
    aspect-ratio: 4 / 3.7;
  }
}

.hero-arch img,
.hero-small img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-arch-empty {
  display: grid;
  place-items: center;
  height: 100%;
  background: linear-gradient(170deg, var(--surface-2), color-mix(in srgb, var(--primary) 25%, var(--surface-2)));
}

.hero-arch-empty svg {
  width: 60%;
  height: auto;
}

.hero-small {
  position: absolute;
  width: 38%;
  aspect-ratio: 1;
  border-radius: var(--radius);
  overflow: hidden;
  border: 5px solid var(--bg);
  box-shadow: var(--shadow-lg);
  background: var(--surface-2);
}

.hero-small-1 {
  right: 0;
  bottom: 0;
}

.hero-small-2 {
  right: 3%;
  top: 30%;
  width: 24%;
  border-radius: 50%;
}

.hero-tag {
  position: absolute;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  max-width: calc(100% - 28px);
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--text);
  font-size: 0.875rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Линия хребта: два вулкана силуэтом на границе разделов. */
.ridge {
  display: block;
  width: 100%;
  height: clamp(44px, 7vw, 110px);
  color: var(--primary);
  margin-bottom: -1px;
}

.ridge path {
  fill: currentColor;
}

.ridge .ridge-snow {
  fill: var(--ridge-snow, transparent);
}

/* ---------- Анимация первого экрана ----------
   Тёплый дом — тёплые огоньки, как гирлянда на веранде; Природа — чайки;
   Океан и лава — искры. Зима — снег, весна — лепестки черёмухи, лето — пух
   иван-чая, осень — листья каменной берёзы и рябины. Только на первом
   экране, выключается в кабинете и не показывается тем, кто отключил анимацию. */

/* Частицы движутся в пределах одного экрана: на телефоне первый блок выше
   экрана, и иначе частица полпути летела бы там, где её не видно.
   Внизу частицы плавно тают, а не обрываются. */
.fall {
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100%;
  height: min(100%, 100svh);
  z-index: 2;
  overflow: hidden;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(#000 75%, transparent);
  mask-image: linear-gradient(#000 75%, transparent);
}

/* Каждая <i> — вертикальная «дорожка» во всю высоту блока: сдвиг на 100%
   её высоты проносит частицу сверху донизу при любой высоте экрана. */
.fall i {
  position: absolute;
  top: 0;
  left: var(--x);
  width: 1px;
  height: 100%;
  animation: fall-down var(--d) linear var(--delay) infinite;
}

.fall i::before {
  content: '';
  position: absolute;
  bottom: 100%;
  left: 0;
  width: var(--s);
  height: var(--s);
  animation: fall-sway var(--sw) ease-in-out var(--delay) infinite alternate;
}

@keyframes fall-down {
  to {
    transform: translateY(calc(100% + 60px));
  }
}

@keyframes fall-sway {
  from {
    transform: translateX(calc(-1 * var(--amp, 16px))) rotate(0deg);
  }
  to {
    transform: translateX(var(--amp, 16px)) rotate(var(--rot, 0deg));
  }
}

/* Стартовые положения (--delay = −доля пути × длительность) разложены
   равномерно: и для всех 14 частиц, и для 10, что видны на телефоне, —
   иначе они падают кучей, а потом наступает пустая пауза. */
.fall i:nth-child(1) { --x: 4%; --d: 13s; --delay: -0.6s; --s: 8px; --sw: 3.1s; }
.fall i:nth-child(2) { --x: 12%; --d: 17s; --delay: -10.2s; --s: 6px; --sw: 2.7s; }
.fall i:nth-child(3) { --x: 19%; --d: 11s; --delay: -5.5s; --s: 10px; --sw: 3.6s; }
.fall i:nth-child(4) { --x: 27%; --d: 15s; --delay: -12.8s; --s: 7px; --sw: 2.9s; }
.fall i:nth-child(5) { --x: 35%; --d: 12s; --delay: -3.6s; --s: 9px; --sw: 3.3s; }
.fall i:nth-child(6) { --x: 43%; --d: 18s; --delay: -16.2s; --s: 6px; --sw: 2.5s; }
.fall i:nth-child(7) { --x: 51%; --d: 14s; --delay: -2.8s; --s: 11px; --sw: 3.8s; }
.fall i:nth-child(8) { --x: 59%; --d: 16s; --delay: -11.2s; --s: 7px; --sw: 3s; }
.fall i:nth-child(9) { --x: 66%; --d: 12s; --delay: -8.4s; --s: 9px; --sw: 2.8s; }
.fall i:nth-child(10) { --x: 73%; --d: 19s; --delay: -6.6s; --s: 6px; --sw: 3.4s; }
.fall i:nth-child(11) { --x: 80%; --d: 13s; --delay: -1.6s; --s: 10px; --sw: 3.2s; }
.fall i:nth-child(12) { --x: 86%; --d: 15s; --delay: -6.4s; --s: 8px; --sw: 2.6s; }
.fall i:nth-child(13) { --x: 92%; --d: 11s; --delay: -8.6s; --s: 7px; --sw: 3.5s; }
.fall i:nth-child(14) { --x: 97%; --d: 17s; --delay: -16.5s; --s: 9px; --sw: 2.9s; }

@media (max-width: 699px) {
  .fall i:nth-child(n + 11) {
    display: none;
  }
}

/* Зима: снежинки. */
[data-theme='zima'] .fall i::before {
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 2px rgba(29, 59, 90, 0.45);
}

/* Весна: лепестки черёмухи — белые с розоватым, кружатся. */
[data-theme='vesna'] .fall i {
  --rot: 260deg;
  --amp: 26px;
}

[data-theme='vesna'] .fall i::before {
  width: calc(var(--s) + 7px);
  height: calc(var(--s) + 7px);
  background: #fdeef4;
  filter: drop-shadow(0 1px 1px rgba(150, 60, 95, 0.45));
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M10 4 Q12 1 15 2 C19 5 16 13 10 18 C4 13 1 5 5 2 Q8 1 10 4Z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M10 4 Q12 1 15 2 C19 5 16 13 10 18 C4 13 1 5 5 2 Q8 1 10 4Z'/%3E%3C/svg%3E") center / contain no-repeat;
}

[data-theme='vesna'] .fall i:nth-child(2n + 1)::before {
  background: #f5c9da;
}

/* Лето: пух иван-чая — крупный, мягкий и медленный. */
[data-theme='leto'] .fall i {
  --amp: 40px;
  animation-duration: calc(var(--d) * 1.6);
  animation-delay: calc(var(--delay) * 1.6);
}

[data-theme='leto'] .fall i::before {
  width: calc(var(--s) + 8px);
  height: calc(var(--s) + 8px);
  border-radius: 50%;
  background: radial-gradient(circle, #fff 0 22%, rgba(255, 255, 255, 0.75) 38%, rgba(255, 255, 255, 0) 70%);
  filter: drop-shadow(0 0 1px rgba(15, 76, 92, 0.35));
}

/* Осень: листья каменной берёзы и рябины, кружатся. */
[data-theme='osen'] .fall i {
  --rot: 340deg;
  --amp: 30px;
}

[data-theme='osen'] .fall i::before {
  width: calc(var(--s) + 13px);
  height: calc(var(--s) + 13px);
  background: #f0b43c;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M10 1 C15 5 17 11 10.6 17.5 L10.6 19.5 L9.4 19.5 L9.4 17.5 C3 11 5 5 10 1Z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M10 1 C15 5 17 11 10.6 17.5 L10.6 19.5 L9.4 19.5 L9.4 17.5 C3 11 5 5 10 1Z'/%3E%3C/svg%3E") center / contain no-repeat;
}

[data-theme='osen'] .fall i:nth-child(3n + 2)::before {
  background: #d9772b;
}

[data-theme='osen'] .fall i:nth-child(3n)::before {
  background: #b5432a;
}

/* Тёплый дом: тёплые огоньки медленно поднимаются и мерцают. */
@keyframes fall-glow {
  from {
    opacity: 0.25;
  }
  to {
    opacity: 1;
  }
}

[data-theme='teplo'] .fall i {
  --amp: 22px;
  animation-direction: reverse;
  animation-duration: calc(var(--d) * 1.3);
  animation-delay: calc(var(--delay) * 1.3);
}

[data-theme='teplo'] .fall i::before {
  width: calc(var(--s) + 1px);
  height: calc(var(--s) + 1px);
  border-radius: 50%;
  background: radial-gradient(circle, #fff3c9 0 25%, #f7b23e 60%);
  box-shadow:
    0 0 8px 3px rgba(247, 168, 50, 0.75),
    0 0 22px 8px rgba(233, 140, 40, 0.3);
  animation:
    fall-sway var(--sw) ease-in-out var(--delay) infinite alternate,
    fall-glow calc(var(--sw) * 0.6) ease-in-out var(--delay) infinite alternate;
}

/* Океан и лава: искры поднимаются и гаснут. */
@keyframes fall-ember {
  from {
    opacity: 1;
  }
  to {
    opacity: 0.35;
  }
}

[data-theme='lava'] .fall {
  -webkit-mask-image: linear-gradient(transparent, #000 25%, #000 65%, transparent);
  mask-image: linear-gradient(transparent, #000 25%, #000 65%, transparent);
}

[data-theme='lava'] .fall i {
  --amp: 12px;
  animation-direction: reverse;
  animation-duration: calc(var(--d) * 0.8);
  animation-delay: calc(var(--delay) * 0.8);
}

[data-theme='lava'] .fall i::before {
  width: calc(var(--s) - 1px);
  height: calc(var(--s) - 1px);
  border-radius: 50%;
  background: #ff8a3d;
  box-shadow: 0 0 6px 2px rgba(255, 90, 31, 0.75);
  animation:
    fall-sway var(--sw) ease-in-out var(--delay) infinite alternate,
    fall-ember calc(var(--sw) * 0.45) ease-in-out var(--delay) infinite alternate;
}

/* Природа: над первым экраном пролетают чайки, взмахивая крыльями. */
@keyframes fall-across {
  to {
    transform: translateX(calc(100% + 120px));
  }
}

@keyframes fall-flap {
  from {
    transform: translateY(0) scaleY(1);
  }
  to {
    transform: translateY(-3px) scaleY(0.45);
  }
}

[data-theme='priroda'] .fall i {
  top: var(--gy);
  left: 0;
  width: 100%;
  height: 1px;
  animation-name: fall-across;
  animation-duration: calc(var(--d) * 2.2);
  animation-delay: calc(var(--delay) * 2.2);
}

[data-theme='priroda'] .fall i:nth-child(2n) {
  animation-direction: reverse;
}

[data-theme='priroda'] .fall i:nth-child(n + 7) {
  display: none;
}

[data-theme='priroda'] .fall i:nth-child(1) { --gy: 7%; }
[data-theme='priroda'] .fall i:nth-child(2) { --gy: 15%; }
[data-theme='priroda'] .fall i:nth-child(3) { --gy: 23%; }
[data-theme='priroda'] .fall i:nth-child(4) { --gy: 11%; }
[data-theme='priroda'] .fall i:nth-child(5) { --gy: 30%; }
[data-theme='priroda'] .fall i:nth-child(6) { --gy: 19%; }

@media (max-width: 699px) {
  [data-theme='priroda'] .fall i:nth-child(n + 5) {
    display: none;
  }
}

[data-theme='priroda'] .fall i::before {
  bottom: auto;
  top: 0;
  left: auto;
  right: 100%;
  width: calc(var(--s) * 3.4);
  height: calc(var(--s) * 1.4);
  background: var(--primary);
  opacity: 0.85;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 10'%3E%3Cpath d='M1.5 7 Q6 1.5 12 7 Q18 1.5 22.5 7' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 10'%3E%3Cpath d='M1.5 7 Q6 1.5 12 7 Q18 1.5 22.5 7' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  animation: fall-flap calc(var(--sw) / 5) ease-in-out var(--delay) infinite alternate;
}

/* ---------- Преимущества ---------- */

.advantages {
  background: var(--primary);
  color: var(--on-primary);
}

.adv-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  padding-top: 8px;
  padding-bottom: 48px;
}

@media (min-width: 640px) {
  .adv-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 32px;
  }
}

@media (min-width: 1040px) {
  .adv-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.adv {
  padding: 18px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.adv-title {
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  font-size: clamp(1.75rem, 1.4rem + 1.2vw, 2.4rem);
  line-height: 1.05;
  color: var(--accent-bright);
  margin: 0 0 8px;
  letter-spacing: var(--display-tracking);
}

[data-theme='lava'] .adv-title {
  font-size: clamp(1.4rem, 1.15rem + 0.9vw, 1.9rem);
}

.adv p {
  margin: 0;
  color: var(--on-primary-muted);
  font-size: 0.9688rem;
  line-height: 1.5;
}

/* ---------- Секции ---------- */

.section {
  padding: 56px 0;
}

.section-tight {
  padding-top: 8px;
}

.section-tint {
  background: var(--surface-2);
}

.anchor {
  height: 0;
}

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

.section-head h2 {
  margin: 0;
}

/* Волнистый росчерк под заголовком раздела. */
.swash::after {
  content: '';
  display: block;
  width: 96px;
  height: 12px;
  margin-top: 12px;
  background: var(--accent-bright);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 96 12'%3E%3Cpath d='M2 7 Q 14 1 26 7 T 50 7 T 74 7 T 94 6' fill='none' stroke='black' stroke-width='3.2' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center / contain;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 96 12'%3E%3Cpath d='M2 7 Q 14 1 26 7 T 50 7 T 74 7 T 94 6' fill='none' stroke='black' stroke-width='3.2' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center / contain;
}

@media (min-width: 900px) {
  .section {
    padding: 88px 0;
  }
}

/* ---------- Карточки объектов ---------- */

.cards {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 28px;
}

@media (min-width: 700px) {
  .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 36px 24px;
  }
}

@media (min-width: 1100px) {
  .cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.card-media {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface-2);
  box-shadow: var(--shadow);
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.card-noimg {
  display: grid;
  place-items: center;
  height: 100%;
  color: var(--muted);
}

.card-noimg .i {
  width: 48px;
  height: 48px;
  opacity: 0.4;
}

.card-badge {
  position: absolute;
  left: 12px;
  top: 12px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--primary);
  font-size: 0.8125rem;
  font-weight: 700;
}

.card-price {
  position: absolute;
  left: 12px;
  bottom: 12px;
  max-width: calc(100% - 90px);
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  font-size: 0.875rem;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-price b {
  font-size: 1.0625rem;
}

.card-rating {
  position: absolute;
  right: 12px;
  top: 12px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--text);
  font-size: 0.8125rem;
  font-weight: 800;
}

.card-rating .i {
  width: 1em;
  height: 1em;
  color: var(--star);
  fill: currentColor;
  stroke: none;
}

.object-rating {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 8px;
  margin: 0 0 16px;
  color: var(--text);
  text-decoration: none;
  font-size: 0.9375rem;
}

.object-rating b {
  font-size: 1.0625rem;
}

.object-rating > span:not(.stars) {
  color: var(--muted);
}

a.object-rating:hover > span:not(.stars) {
  color: var(--link);
  text-decoration: underline;
}

.card-photos {
  position: absolute;
  right: 12px;
  bottom: 12px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 700;
}

.card-photos .i {
  width: 1.1em;
  height: 1.1em;
}

.card-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 0 4px;
}

.card-title {
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: var(--display-weight);
  letter-spacing: var(--display-tracking);
  line-height: 1.2;
  margin: 0;
}

[data-theme='lava'] .card-title {
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 1.1875rem;
  letter-spacing: 0;
}

.card-link {
  color: var(--text);
  text-decoration: none;
}

.card-link:hover {
  color: var(--accent);
}

/* Вся карточка кликабельна, а ссылка внутри одна — для читалок экрана. */
.card-link::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
}

.card-place {
  display: flex;
  gap: 6px;
  margin: 0;
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.4;
}

.card-place .i {
  width: 1.05em;
  height: 1.05em;
  margin-top: 0.15em;
}

.card-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  margin: 2px 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.9375rem;
}

.card-facts li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.card-facts .i {
  color: var(--accent);
}

.price {
  font-size: 0.9375rem;
  color: var(--muted);
}

.price b {
  font-weight: 800;
  color: var(--text);
}

.price-ask {
  font-weight: 700;
  color: var(--text);
}

/* ---------- Как забронировать ---------- */

.steps {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

@media (min-width: 800px) {
  .steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
  }
}

.step {
  position: relative;
  padding: 26px 24px 24px;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  counter-increment: step;
}

.step::before {
  content: counter(step);
  display: block;
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  font-size: 3.25rem;
  line-height: 1;
  color: var(--accent-bright);
  margin-bottom: 12px;
}

.step h3 {
  font-size: 1.25rem;
  margin-bottom: 6px;
}

[data-theme='lava'] .step h3 {
  font-size: 1.0625rem;
}

.step p {
  margin: 0;
  color: var(--muted);
}

/* ---------- Отзывы ---------- */

.reviews-in {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 28px;
}

@media (min-width: 960px) {
  .reviews-in {
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 48px;
    align-items: start;
  }
}

.rating-big {
  display: grid;
  justify-items: start;
  gap: 6px;
}

.rating-big h2 {
  font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.25rem);
}

.rating-big b {
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  font-size: clamp(3.5rem, 2.6rem + 3vw, 5.5rem);
  line-height: 1;
  color: var(--primary);
}

.rating-big .stars {
  font-size: 1.5rem;
}

.rating-big a {
  margin-top: 8px;
}

/* Отзывы разной длины — раскладка «колонками», без дыр в сетке. */
.reviews {
  margin: 0;
  padding: 0;
  list-style: none;
  column-gap: 16px;
}

.reviews li {
  break-inside: avoid;
  margin-bottom: 16px;
}

@media (min-width: 700px) {
  .reviews {
    columns: 2;
  }
}

.review {
  position: relative;
  margin: 0;
  padding: 26px 24px 22px;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.review::before {
  content: '“';
  position: absolute;
  right: 20px;
  top: 0;
  font-family: Georgia, serif;
  font-size: 5.5rem;
  line-height: 1;
  color: var(--accent-soft);
}

.review blockquote {
  position: relative;
  margin: 10px 0 14px;
  font-size: 1.0625rem;
  line-height: 1.55;
}

[data-theme='teplo'] .review blockquote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.1875rem;
}

.review figcaption {
  font-weight: 700;
  color: var(--muted);
  font-size: 0.9375rem;
}

/* ---------- Панели «командировочным» и «как добраться» ---------- */

.duo {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
}

@media (min-width: 860px) {
  .duo {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
  }
}

.panel {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}

.panel h2 {
  font-size: clamp(1.4rem, 1.15rem + 0.9vw, 1.85rem);
}

[data-theme='lava'] .panel h2 {
  font-size: clamp(1.2rem, 1.05rem + 0.6vw, 1.5rem);
}

.panel-icon {
  display: inline-grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  margin-bottom: 16px;
}

.panel-icon .i {
  width: 28px;
  height: 28px;
}

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

.prose ul {
  padding-left: 1.2em;
}

.prose-lg {
  font-size: 1.125rem;
}

.prose-doc {
  max-width: 50rem;
}

.prose-doc h2 {
  font-family: var(--font-body);
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: 0;
  margin-top: 1.6em;
}

/* ---------- О нас ---------- */

.about-in {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 32px;
  align-items: center;
}

@media (min-width: 860px) {
  .about-in {
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 72px;
  }
}

.about-sign {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--accent);
  font-size: 1.375rem;
  margin: 18px 0 0;
}

[data-theme='lava'] .about-sign {
  font-style: normal;
  font-size: 1.0625rem;
}

.about-card {
  display: grid;
  justify-items: center;
  gap: 10px;
  max-width: 300px;
  width: 100%;
  margin: 0 auto;
  padding: 40px 28px 32px;
  border-radius: 999px 999px var(--radius) var(--radius);
  background: var(--primary);
  color: var(--on-primary);
  text-align: center;
}

.about-logo {
  width: 132px;
  height: 132px;
}

.about-card b {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2.25rem;
  letter-spacing: 0.1em;
  line-height: 1;
}

.about-card span {
  color: var(--on-primary-muted);
  font-size: 0.9375rem;
}

/* ---------- Карта ---------- */

.map {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface-2);
  aspect-ratio: 4 / 3;
  box-shadow: var(--shadow);
}

@media (min-width: 700px) {
  .map {
    aspect-ratio: 21 / 9;
  }
}

.map iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.map-object {
  aspect-ratio: 4 / 3;
  margin-bottom: 14px;
}

@media (min-width: 700px) {
  .map-object {
    aspect-ratio: 16 / 9;
  }
}

/* ---------- Контакты ---------- */

.contacts {
  background: var(--primary);
  color: var(--on-primary);
  padding-top: 24px;
}

.contacts .eyebrow {
  color: var(--accent-bright);
}

.contacts .lead {
  color: var(--on-primary-muted);
}

.contacts-in {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 32px;
}

@media (min-width: 900px) {
  .contacts-in {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    align-items: center;
    gap: 64px;
  }
}

.contacts-hours,
.kam-time {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 8px;
  color: var(--on-primary);
}

.kam-time {
  color: var(--on-primary-muted);
}

.contacts-actions {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  padding: 24px clamp(16px, 4vw, 28px);
}

.contacts-phone {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 0.9rem + 2.6vw, 2.4rem);
  font-weight: var(--display-weight);
  color: #fff;
  text-decoration: none;
  margin-bottom: 20px;
  white-space: nowrap;
}

[data-theme='lava'] .contacts-phone {
  font-size: clamp(1.2rem, 0.75rem + 2.6vw, 2.25rem);
}

.contacts-phone-label {
  display: block;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--on-primary-muted);
  margin-bottom: 6px;
}

.contacts-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.contacts .btn-ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
}

.contacts .btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #fff;
}

@media (max-width: 459px) {
  .contacts-buttons .btn-accent {
    width: 100%;
  }
  .contacts-buttons .btn-ghost {
    flex: 1 1 40%;
  }
}

/* ---------- Подвал ---------- */

/* Место под нижнюю панель кнопок — внутри подвала, а не под ним:
   иначе на телефоне под тёмным подвалом остаётся светлая полоса. */
.footer {
  background: color-mix(in srgb, var(--primary) 86%, #000);
  color: var(--on-primary-muted);
  padding: 48px 0 calc(24px + env(safe-area-inset-bottom) + var(--cta-h));
  font-size: 0.9375rem;
}

.footer a {
  color: #fff;
  text-decoration: none;
}

.footer a:hover {
  text-decoration: underline;
}

.footer-in {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 28px;
}

@media (min-width: 800px) {
  .footer-in {
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1fr);
  }
}

.footer-nav {
  display: grid;
  gap: 8px;
  align-content: start;
}

.footer-phone {
  font-weight: 800;
  font-size: 1.125rem;
}

.footer-contacts p {
  margin: 6px 0 0;
}

.footer-legal {
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.8125rem;
}

/* ---------- Нижняя панель кнопок на телефоне ---------- */

.cta-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px max(12px, env(safe-area-inset-right)) calc(8px + env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left));
  background: color-mix(in srgb, var(--surface) 96%, transparent);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--line);
  box-shadow: 0 -6px 20px rgba(40, 30, 20, 0.08);
  transition: transform 0.25s;
}

/* Цена и кнопки ужимаются, но не вылезают за экран —
   даже при крупном шрифте в настройках телефона. */
.cta-price {
  flex: 0 1 auto;
  min-width: 0;
  overflow: hidden;
  font-size: 0.75rem;
  color: var(--muted);
  line-height: 1.15;
}

.cta-price b {
  display: block;
  font-size: 0.9375rem;
  color: var(--text);
  white-space: nowrap;
}

.cta-buttons {
  display: flex;
  gap: 8px;
  flex: 1 1 auto;
  min-width: 0;
}

.cta-buttons .btn {
  flex: 1 1 0;
  min-width: 0;
  min-height: 48px;
  padding: 0 8px;
  gap: 6px;
  font-size: 0.9375rem;
  box-shadow: none;
}

@media (max-width: 374px) {
  .cta-price-unit {
    display: none;
  }
}

.cta-no-icons .cta-buttons .btn .i,
.cta-no-price .cta-price {
  display: none;
}

body:has(.cta-bar) {
  --cta-h: calc(66px + env(safe-area-inset-bottom));
}

@media (min-width: 900px) {
  .cta-bar {
    display: none;
  }
  body:has(.cta-bar) {
    --cta-h: 0px;
  }
}

/* Пока виден блок контактов, панель не дублирует его кнопки. */
.cta-bar.is-hidden {
  transform: translateY(110%);
}

/* ---------- Окно «Написать» ---------- */

dialog {
  color: inherit;
  overscroll-behavior: contain;
}

.sheet {
  border: 0;
  padding: 0;
  margin: auto auto 0;
  width: 100%;
  max-width: 480px;
  border-radius: 24px 24px 0 0;
  background: var(--surface);
  box-shadow: var(--shadow-lg);
}

.sheet::backdrop {
  background: rgba(20, 15, 10, 0.5);
}

@media (min-width: 560px) {
  .sheet {
    margin: auto;
    border-radius: 24px;
  }
}

.sheet-body {
  padding: 20px 20px calc(20px + env(safe-area-inset-bottom));
}

.sheet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.sheet-head h2 {
  font-size: 1.375rem;
  margin: 0;
}

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

.sheet-note {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: -2px 0 14px;
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.45;
}

.sheet-note .i {
  margin-top: 0.15em;
  color: var(--accent);
}

.sheet-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 16px;
  background: var(--surface-2);
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.0625rem;
}

.sheet-item:hover {
  background: color-mix(in srgb, var(--surface-2) 70%, var(--line));
}

.sheet-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--primary);
  color: #fff;
}

.sheet-max .sheet-icon {
  background: linear-gradient(135deg, #3d7cff, #8a3dff);
}

.sheet-whatsapp .sheet-icon {
  background: #1fa855;
}

.sheet-telegram .sheet-icon {
  background: #2a9fd8;
}

.sheet-vk .sheet-icon {
  background: #0077ff;
}

.sheet-arrow {
  margin-left: auto;
  color: var(--muted);
}

/* ---------- Заголовок внутренних страниц ---------- */

.page-head {
  padding: 28px 0 24px;
}

.page-404 {
  padding: 80px 0;
}

.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 18px 0 14px;
  font-size: 0.875rem;
  color: var(--muted);
}

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

.draft-banner {
  background: #fff4cc;
  color: #5a4300;
  padding: 10px 0;
  font-weight: 600;
  font-size: 0.9375rem;
}

/* ---------- Страница объекта ---------- */

.object-head h1 {
  font-size: clamp(1.75rem, 1.2rem + 2.4vw, 3rem);
  max-width: 22em;
  margin-bottom: 0.35em;
}

[data-theme='lava'] .object-head h1 {
  font-size: clamp(1.55rem, 1.1rem + 2vw, 2.6rem);
}

.object-place {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: var(--muted);
  margin-bottom: 20px;
}

.object-place .i {
  margin-top: 0.2em;
  color: var(--accent);
}

.object-place span {
  min-width: 0;
}

.object-place a {
  white-space: nowrap;
}

/* Галерея: на телефоне — лента с прокруткой пальцем, на компьютере — сетка. */
.gallery {
  position: relative;
  margin: 0 calc(-1 * var(--gutter));
}

.gallery-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
}

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

.gallery-item {
  flex: 0 0 100%;
  scroll-snap-align: center;
  aspect-ratio: 4 / 3;
  background: var(--surface-2);
  display: block;
}

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

.gallery-counter {
  position: absolute;
  right: calc(var(--gutter) + 4px);
  bottom: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 700;
}

.gallery-all {
  display: none;
}

.gallery-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  aspect-ratio: 21 / 9;
  border-radius: var(--radius);
  background: var(--surface-2);
  color: var(--muted);
}

@media (min-width: 700px) {
  .gallery {
    margin: 0;
  }
  .gallery-track {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    grid-template-rows: repeat(2, minmax(0, 1fr));
    gap: 8px;
    height: clamp(340px, 42vw, 540px);
    overflow: hidden;
    border-radius: var(--radius);
  }
  .gallery-item {
    aspect-ratio: auto;
    min-height: 0;
    overflow: hidden;
  }
  .gallery-item:first-child {
    grid-row: span 2;
  }
  .gallery-item:nth-child(n + 6) {
    display: none;
  }
  .gallery-item img {
    transition: transform 0.5s;
  }
  .gallery-item:hover img {
    transform: scale(1.03);
  }
  .gallery-counter {
    display: none;
  }
  .gallery-all {
    display: inline-flex;
    position: absolute;
    right: 16px;
    bottom: 16px;
    background: rgba(255, 255, 255, 0.94);
    color: var(--text);
    border-color: transparent;
  }
  .gallery-one .gallery-track,
  .gallery-track:has(> :only-child) {
    grid-template-columns: 1fr;
  }
  .gallery-track:has(> :nth-child(2):last-child) {
    grid-template-columns: 1fr 1fr;
  }
  .gallery-track:has(> :nth-child(2):last-child) .gallery-item:nth-child(2) {
    grid-row: span 2;
  }
  .gallery-track:has(> :nth-child(3):last-child) {
    grid-template-columns: 2fr 1fr;
  }
  .gallery-track:has(> :nth-child(4):last-child) {
    grid-template-columns: 2fr 1fr 1fr;
    grid-auto-flow: column;
  }
  .gallery-track:has(> :nth-child(4):last-child) .gallery-item:nth-child(4) {
    grid-row: span 2;
  }
}

.object-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 28px;
  padding-top: 28px;
  padding-bottom: 24px;
}

@media (min-width: 980px) {
  .object-layout {
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 56px;
  }
}

.object-aside {
  order: -1;
  min-width: 0;
}

.object-main {
  min-width: 0;
}

@media (min-width: 980px) {
  .object-aside {
    order: 0;
  }
  .book-card {
    position: sticky;
    top: calc(var(--header-h) + 20px);
  }
}

.book-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--line);
}

.book-price .price {
  font-size: 1rem;
}

.book-price .price b {
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  font-size: 2rem;
}

.book-note {
  color: var(--muted);
  font-size: 0.9375rem;
  margin: 6px 0 0;
}

.book-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  margin: 18px 0 14px;
}

.book-who {
  display: flex;
  gap: 8px;
  font-size: 0.875rem;
  color: var(--muted);
  margin: 0;
}

.book-who .i {
  margin-top: 0.15em;
}

.btn-share {
  margin-top: 6px;
}

.facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 8px;
  padding: 0;
  list-style: none;
}

.facts li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  padding: 10px 14px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  font-weight: 600;
  font-size: 0.9688rem;
}

.facts .i {
  color: var(--accent);
}

.block {
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}

.block:last-child {
  border-bottom: 0;
}

.block h2 {
  font-size: clamp(1.35rem, 1.15rem + 0.7vw, 1.75rem);
}

[data-theme='lava'] .block h2 {
  font-size: clamp(1.2rem, 1.05rem + 0.6vw, 1.5rem);
}

.amenities {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 560px) {
  .amenities {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.amenities li,
.terms li {
  display: flex;
  align-items: center;
  gap: 10px;
}

.amenities .i,
.terms .i {
  color: var(--accent);
}

.terms {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  margin: 0 0 14px;
  padding: 0;
  list-style: none;
  font-weight: 700;
}

.rules {
  margin: 0;
  padding-left: 1.2em;
}

.rules li + li {
  margin-top: 4px;
}

.videos {
  display: grid;
  gap: 16px;
}

.video {
  width: 100%;
  height: auto;
  max-height: 80svh;
  border-radius: var(--radius-sm);
  background: #000;
}

.video-embed {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: #000;
}

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

/* ---------- Просмотр фото ---------- */

.lightbox {
  width: 100vw;
  height: 100svh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgba(8, 6, 4, 0.96);
  color: #fff;
}

.lightbox[open] {
  display: grid;
  place-items: center;
}

.lightbox::backdrop {
  background: rgba(8, 6, 4, 0.96);
}

.lb-figure {
  margin: 0;
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  padding: 56px 0;
  touch-action: pan-y pinch-zoom;
}

.lb-figure img {
  max-width: 100%;
  max-height: calc(100svh - 120px);
  width: auto;
  height: auto;
  object-fit: contain;
  user-select: none;
}

.lb-figure figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(16px + env(safe-area-inset-bottom));
  text-align: center;
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.8);
}

.lb-btn {
  position: absolute;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  cursor: pointer;
  z-index: 2;
}

.lb-btn:hover {
  background: rgba(255, 255, 255, 0.24);
}

.lb-close {
  top: calc(12px + env(safe-area-inset-top));
  right: 12px;
}

.lb-prev,
.lb-next {
  top: 50%;
  transform: translateY(-50%);
}

.lb-prev {
  left: 12px;
}

.lb-next {
  right: 12px;
}

@media (max-width: 699px) {
  .lb-prev,
  .lb-next {
    display: none;
  }
}

/* ---------- Плашка про cookie ---------- */

.cookie {
  position: fixed;
  left: var(--gutter);
  right: var(--gutter);
  bottom: calc(var(--cta-h) + 12px);
  z-index: 45;
  max-width: 560px;
  margin: 0 auto;
  padding: 16px 18px;
  border-radius: 16px;
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--line);
  font-size: 0.9375rem;
}

.cookie p {
  margin: 0 0 12px;
}

.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
    scroll-behavior: auto !important;
  }
  .fall {
    display: none !important;
  }
}
