/* ===========================================================================
   Климовка — единая дизайн-система (тёплый альпийский стиль)
   Consolidated CSS for all pages: index.html + 8 subpages.
   =========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,400;0,9..144,500;0,9..144,600;0,9..144,700;1,9..144,500&family=Nunito+Sans:ital,opsz,wght@0,6..12,400;0,6..12,600;0,6..12,700;1,6..12,500&family=Cabin+Sketch:wght@700&family=Underdog&display=swap');

/* ===========================================================================
   1. DESIGN TOKENS
   =========================================================================== */
:root {
  --cream: #F7F0E4;
  --cream-deep: #EFE5D3;
  --pine: #1E3A2B;
  --pine-soft: #2F5240;
  --terracotta: #C25E3C;
  --terracotta-hover: #A94B2D;
  --amber: #E0A458;
  --bark: #5C3A21;
  --text-dark: #2A2520;
  --text-muted: #6E6052;

  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Nunito Sans', system-ui, sans-serif;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow-soft: 0 18px 40px -22px rgba(60, 40, 20, 0.45);
  --shadow-lift: 0 30px 55px -25px rgba(60, 40, 20, 0.55);
}

/* ===========================================================================
   2. RESET / TYPOGRAPHY
   =========================================================================== */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body); color: var(--text-dark); line-height: 1.7;
  overflow-x: hidden; background: var(--cream);
  -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font-family: inherit; }

/* Зернистая текстура поверх всего */
body::after {
  content: ''; position: fixed; inset: 0; z-index: 9998; pointer-events: none;
  opacity: 0.04; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

h1, h2, h3, h4 {
  font-family: var(--font-display); font-weight: 600; line-height: 1.15;
  color: var(--pine); letter-spacing: -0.4px;
}

/* ===========================================================================
   3. LAYOUT UTILITIES
   =========================================================================== */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; position: relative; z-index: 2; }
.section { padding: 100px 0; position: relative; }
.bg-white { background-color: var(--cream); }
.bg-deep { background-color: var(--cream-deep); }
.bg-gray { background: var(--cream-deep); }
.bg-dark { background: var(--pine); color: var(--cream); }
.text-center { text-align: center; }

/* ===========================================================================
   4. SHARED COMPONENTS — Buttons, Eyebrow, Section headers
   =========================================================================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 16px 34px; border-radius: 50px; font-family: var(--font-body);
  font-weight: 700; font-size: 15px; letter-spacing: 0.2px;
  cursor: pointer; transition: all 0.3s ease; border: none;
}
.btn-primary { background: var(--terracotta); color: #fff; box-shadow: 0 8px 22px -8px rgba(194, 94, 60, 0.65); }
.btn-primary:hover { background: var(--terracotta-hover); transform: translateY(-2px); box-shadow: 0 16px 30px -10px rgba(194, 94, 60, 0.7); }
.btn-outline { background: transparent; border: 2px solid var(--pine); color: var(--pine); }
.btn-outline:hover { background: var(--pine); color: #fff; transform: translateY(-2px); }
.btn-outline-white { border: 2px solid rgba(255,255,255,0.7); color: #fff; background: rgba(255,255,255,0.08); backdrop-filter: blur(4px); }
.btn-outline-white:hover { background: #fff; color: var(--text-dark); border-color: #fff; }
.btn-full { width: 100%; }

/* Eyebrow / Section heads */
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--font-body); font-weight: 700; font-size: 13px;
  letter-spacing: 2.5px; text-transform: uppercase; color: var(--terracotta);
  margin-bottom: 16px;
}
.eyebrow::before, .eyebrow::after {
  content: ''; width: 26px; height: 2px; background: currentColor;
  opacity: 0.45; border-radius: 2px;
}
.eyebrow.is-left::before { display: none; }
.eyebrow.on-dark { color: var(--amber); }

.section-title { font-size: clamp(30px, 4vw, 44px); text-align: center; margin-bottom: 18px; }
.section-subtitle { text-align: center; max-width: 660px; margin: 0 auto 48px auto; color: var(--text-muted); font-size: 17px; }
.section-title.text-white { color: #fff; }
.section-head { text-align: center; }
.section-head.left-align { text-align: left; }

/* Filter button (shared chrome) */
.filter-btn {
  background: transparent; border: 1.5px solid rgba(92,58,33,0.3); color: var(--text-muted);
  padding: 10px 24px; border-radius: 50px; cursor: pointer;
  font-family: var(--font-body); font-weight: 700; font-size: 13px; transition: 0.3s;
}
.filter-btn.active, .filter-btn:hover { background: var(--pine); color: #fff; border-color: var(--pine); }

/* ===========================================================================
   5. CHROME — Top bar, Header, Nav, Logo, Footer
   =========================================================================== */

/* ---- Top bar (used by every page) ---- */
.top-bar {
  background: rgba(20, 36, 28, 0.95); color: rgba(255,255,255,0.65);
  font-size: 11px; padding: 7px 0; font-family: var(--font-body); font-weight: 700;
}
.top-bar .container { display: flex; justify-content: space-between; align-items: center; }
.top-bar a, .top-bar button {
  color: inherit; font-weight: 700; background: none; border: none; cursor: pointer;
  text-transform: uppercase; letter-spacing: 0.8px; transition: 0.3s;
  font-family: inherit; font-size: inherit;
}
.top-bar a:hover, .top-bar button:hover { color: var(--amber); }
.top-bar a.active, .top-bar button.active { color: #fff; border-bottom: 1px solid var(--amber); padding-bottom: 1px; }

/* Homepage top-bar is positioned over the hero */
.header + .top-bar,
body > .top-bar:first-of-type {}

/* For homepage the top-bar is absolute; for subpages, static (default) */
body > .top-bar { /* default static for subpages */ }

/* Homepage uses absolute positioning so it sits over the hero */
.lang-switcher { display: flex; gap: 15px; }
.lang-switcher a { text-transform: uppercase; letter-spacing: 0.8px; }
.lang-switcher a.active, .lang-switcher a:hover { color: #fff; }
.season-toggle { display: flex; gap: 16px; }
.season-btn {
  background: transparent; border: 1px solid rgba(255,255,255,0.25); color: rgba(255,255,255,0.7);
  padding: 4px 14px; border-radius: 50px; cursor: pointer;
  font-size: 11px; font-weight: 700; transition: 0.3s;
}
/* Селект сезона для мобильного топ-бара (инжектится из app.js) */
.season-select {
  display: none;
  background: rgba(255,255,255,0.08);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.28);
  border-radius: 50px;
  padding: 4px 26px 4px 14px;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  cursor: pointer;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='9' height='6' viewBox='0 0 9 6'%3E%3Cpath fill='%23E0A458' d='M0 0h9L4.5 6z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 11px center;
  transition: background-color 0.2s;
}
.season-select:hover { background-color: rgba(255,255,255,0.16); }
.season-select:focus { outline: none; border-color: var(--amber); }
.season-select option { color: #2A2520; background: #fff; }
.season-btn.active { background: var(--amber); border-color: var(--amber); color: var(--pine); }

/* ---- Header — homepage variant (.header) ---- */
.header {
  position: absolute; top: 32px; left: 0; right: 0; z-index: 100;
  padding: 22px 0; border-bottom: 1px solid rgba(255,255,255,0.18);
  transition: all 0.3s ease;
}
.header.sticky {
  position: fixed; top: 0; padding: 12px 0;
  background: rgba(20, 36, 28, 0.97); border-bottom: none;
  box-shadow: 0 8px 30px rgba(0,0,0,0.25);
}
.header.sticky .logo-board { transform: rotate(0deg) scale(0.92); }
.header-inner { display: flex; justify-content: space-between; align-items: center; color: #fff; }

/* Homepage top-bar overlay (absolute over hero) */
.header ~ .top-bar,
body > .top-bar.is-absolute { position: absolute; top: 0; left: 0; width: 100%; z-index: 200; }

/* When the homepage hero is present, the top-bar overlays the hero — apply absolute positioning */
body:has(.header) > .top-bar {
  position: absolute; top: 0; left: 0; width: 100%; z-index: 200;
}

/* ---- Header — subpages variant (bare <header>) ---- */
header {
  background: var(--pine); position: sticky; top: 0; z-index: 100;
  box-shadow: 0 6px 24px rgba(20,30,22,0.2);
}
/* If a page has the homepage .header, the bare-header rules above can still partly apply — but .header overrides since it's more specific in HTML; the homepage uses <header class="header"> */
.nav-container { display: flex; justify-content: space-between; align-items: center; height: 84px; }

/* Subpage header scrolled state */
header.scrolled .logo-board { transform: rotate(0) scale(0.92); }

/* ---- Nav — homepage variant (.nav) ---- */
.nav { display: flex; gap: 34px; }
.nav a {
  font-family: var(--font-body); font-weight: 700; font-size: 15px;
  color: rgba(255,255,255,0.92); position: relative;
}
.nav a::after {
  content: ''; position: absolute; left: 0; bottom: -6px; width: 0; height: 2px;
  background: var(--amber); border-radius: 2px; transition: width 0.3s ease;
}
.nav a:hover { color: #fff; }
.nav a:hover::after { width: 100%; }
.header-right { display: flex; align-items: center; gap: 20px; }

/* ---- Nav — subpages variant (.nav-links) ---- */
.nav-links { display: flex; gap: 32px; }
.nav-links a {
  font-weight: 700; font-size: 15px; color: rgba(255,255,255,0.9); position: relative;
}
.nav-links a::after {
  content: ''; position: absolute; left: 0; bottom: -6px; width: 0; height: 2px;
  background: var(--amber); border-radius: 2px; transition: width 0.3s ease;
}
.nav-links a:hover { color: #fff; }
.nav-links a:hover::after { width: 100%; }
.nav-links a.active { color: #fff; }
.nav-links a.active::after { width: 100%; }

/* ---- Wooden logo-board (used by every page) ---- */
.logo-board {
  position: relative;
  background-color: #4d2f17;
  background-image:
    radial-gradient(circle 3.5px at 13px 12px,            #c6cbd4 0%, #6c7079 60%, #2d313a 92%, transparent 100%),
    radial-gradient(circle 3.5px at calc(100% - 13px) 12px, #c6cbd4 0%, #6c7079 60%, #2d313a 92%, transparent 100%),
    radial-gradient(circle 3.5px at 13px calc(100% - 12px), #c6cbd4 0%, #6c7079 60%, #2d313a 92%, transparent 100%),
    radial-gradient(circle 3.5px at calc(100% - 13px) calc(100% - 12px), #c6cbd4 0%, #6c7079 60%, #2d313a 92%, transparent 100%),
    repeating-linear-gradient(1deg,
      rgba(18,9,3,0) 0px, rgba(18,9,3,0) 2.5px,
      rgba(18,9,3,0.6) 3.5px, rgba(18,9,3,0) 4.5px,
      rgba(18,9,3,0) 6px),
    repeating-linear-gradient(-1.2deg,
      rgba(168,108,58,0) 0px, rgba(168,108,58,0) 8px,
      rgba(168,108,58,0.28) 10px, rgba(168,108,58,0) 12px,
      rgba(168,108,58,0) 17px),
    linear-gradient(180deg, #8a5530 0%, #5a3518 55%, #46280f 100%);
  background-repeat: no-repeat, no-repeat, no-repeat, no-repeat, repeat, repeat, no-repeat;
  border-top: 3px solid #a3683a; border-bottom: 4px solid #2c1707;
  border-left: 3px solid #6b431f; border-right: 3px solid #3a2110;
  border-radius: 8px 15px 12px 20px / 15px 8px 20px 12px;
  padding: 9px 20px; text-align: left;
  box-shadow: inset 0 1px 1px rgba(255,225,190,0.18), inset 0 0 16px rgba(40,18,6,0.55), 2px 6px 14px rgba(40,20,8,0.55);
  display: inline-flex; flex-direction: row; align-items: center; gap: 12px;
  transform: rotate(-3deg); transition: 0.3s; overflow: hidden;
}
.logo-board:hover { transform: rotate(0deg) scale(1.03); }
.logo-emblem {
  width: 32px; height: 32px; flex-shrink: 0; position: relative; z-index: 2;
  filter: drop-shadow(0 1px 0 rgba(255,255,255,0.18)) drop-shadow(0 -1px 1px rgba(0,0,0,0.7));
}
.logo-emblem svg { width: 100%; height: 100%; display: block; }
.logo-text { display: flex; flex-direction: column; line-height: 1; }
.logo-board .logo-title {
  font-family: 'Underdog', 'Cabin Sketch', cursive; color: #ecd4af; font-size: 23px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1px; line-height: 1; position: relative; z-index: 2;
  text-shadow: 0 1px 0 rgba(255,240,210,0.18), 0 -1px 2px rgba(0,0,0,0.95), 1px 1px 3px rgba(0,0,0,0.8);
}
.logo-board .logo-subtitle {
  font-family: var(--font-body); color: rgba(255,255,255,0.85); font-size: 8px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1.5px; margin-top: 5px; position: relative; z-index: 2;
  text-shadow: 0 -1px 1px rgba(0,0,0,0.9);
}

/* Plain .logo — homepage white in header; subpages pine in header but white in footer */
.logo { font-family: var(--font-display); font-size: 26px; font-weight: 700; letter-spacing: 0.5px; color: var(--pine); }
.header .logo,
.footer .logo { color: #fff; }
.dark-nature-section .logo { color: #fff; }

/* ---- Footer — homepage variant (.footer) ---- */
.footer { background-color: var(--pine); color: rgba(255,255,255,0.7); padding: 90px 0 32px 0; position: relative; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 44px; margin-bottom: 60px; }
.footer-col h4 { color: #fff; margin-bottom: 24px; font-size: 19px; }
.footer-col ul li { margin-bottom: 13px; font-size: 14.5px; }
.footer-col ul li a:hover { color: var(--amber); }
.footer-col .logo { display: inline-block; margin-bottom: 16px; }
.footer-intro { font-size: 15px; margin-top: 14px; color: rgba(255,255,255,0.78); line-height: 1.7; }
.footer-bottom { text-align: center; border-top: 1px solid rgba(255,255,255,0.12); padding-top: 32px; font-size: 13.5px; }

/* ---- Footer — subpages variant (bare <footer>) ---- */
footer { background: var(--pine); color: rgba(255,255,255,0.7); padding: 80px 0 30px 0; }

/* ===========================================================================
   6. HOMEPAGE COMPONENTS
   =========================================================================== */

/* Hero */
.hero { position: relative; height: 100vh; min-height: 700px; display: flex; align-items: center; justify-content: center; text-align: center; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; transition: opacity 1s ease; opacity: 0; z-index: 1; }
.hero-bg.active { opacity: 1; animation: kenburns 20s ease-out forwards; }
@keyframes kenburns { from { transform: scale(1.09); } to { transform: scale(1); } }
.hero-overlay { position: absolute; inset: 0; z-index: 5; background: linear-gradient(to bottom, rgba(18,30,22,0.45) 0%, rgba(28,18,12,0.55) 55%, rgba(20,14,10,0.78) 100%); }

.hero-content { position: relative; z-index: 10; color: #fff; max-width: 900px; padding: 0 24px; margin-top: 50px; }
.hero-content > * { opacity: 0; animation: fadeUp 0.95s cubic-bezier(.2,.7,.2,1) forwards; }
.hero-subtitle { animation-delay: 0.1s; }
.hero-title { animation-delay: 0.25s; }
.hero-desc { animation-delay: 0.4s; }
.hero-buttons { animation-delay: 0.55s; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }

.hero-subtitle {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--font-body); font-size: 13px; font-weight: 700; letter-spacing: 2.8px;
  margin-bottom: 22px; text-transform: uppercase; color: var(--amber);
}
.hero-subtitle::before, .hero-subtitle::after { content: ''; width: 28px; height: 2px; background: currentColor; opacity: 0.6; border-radius: 2px; }
.hero-title { font-size: clamp(40px, 6vw, 68px); line-height: 1.08; margin-bottom: 26px; color: #fff; text-shadow: 0 2px 18px rgba(0,0,0,0.35); font-weight: 600; }
.hero-title em { font-style: italic; color: var(--amber); }
.hero-desc { font-size: 18px; max-width: 700px; margin: 0 auto 42px; font-weight: 400; text-shadow: 0 2px 8px rgba(0,0,0,0.5); line-height: 1.6; color: rgba(255,255,255,0.92); }
.hero-buttons { display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; }

/* Scroll hint */
.scroll-hint { position: absolute; bottom: 34px; left: 0; right: 0; margin-inline: auto; width: max-content; z-index: 10; color: rgba(255,255,255,0.7); font-size: 11px; letter-spacing: 2px; text-transform: uppercase; font-weight: 700; display: flex; flex-direction: column; align-items: center; gap: 10px; animation: fadeUp 1s 0.8s both; }
.scroll-hint span.mouse { width: 22px; height: 36px; border: 2px solid rgba(255,255,255,0.5); border-radius: 12px; position: relative; }
.scroll-hint span.mouse::after { content: ''; position: absolute; top: 6px; left: 50%; transform: translateX(-50%); width: 3px; height: 7px; background: rgba(255,255,255,0.8); border-radius: 2px; animation: scrollDot 1.6s ease-in-out infinite; }
@keyframes scrollDot { 0% { opacity: 0; transform: translate(-50%, 0); } 40% { opacity: 1; } 80% { opacity: 0; transform: translate(-50%, 12px); } 100% { opacity: 0; } }

/* Seasonal hero copy switcher */
.s-text { display: none; }
body[data-season="winter"] .s-win { display: inline; }
body[data-season="spring"] .s-spr { display: inline; }
body[data-season="summer"] .s-sum { display: inline; }
body[data-season="autumn"] .s-aut { display: inline; }

/* UTP grid (homepage) */
.utp-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.utp-card {
  position: relative; aspect-ratio: 0.82; background-size: cover; background-position: center;
  border-radius: var(--radius); overflow: hidden; color: #fff;
  display: flex; align-items: flex-end; text-align: left; padding: 26px 22px;
  box-shadow: var(--shadow-soft); transition: 0.4s;
}
.utp-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lift); }
.utp-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(20,14,10,0.88) 0%, rgba(20,14,10,0) 62%); transition: 0.4s; }
.utp-card:hover .utp-overlay { background: linear-gradient(to top, rgba(20,14,10,0.95) 0%, rgba(20,14,10,0.2) 100%); }
.utp-content { position: relative; z-index: 2; width: 100%; transition: transform 0.4s ease; }
.utp-card:hover .utp-content { transform: translateY(-4px); }
.utp-content h3 { font-size: 21px; margin-bottom: 8px; color: #fff; display: flex; align-items: center; gap: 6px; }
.utp-content .arrow { color: var(--amber); font-size: 18px; transition: transform 0.3s ease; }
.utp-card:hover .arrow { transform: translateX(4px); }
.utp-content p { font-size: 13.5px; line-height: 1.5; color: rgba(255,255,255,0.85); font-weight: 400; font-family: var(--font-body); }

/* Houses grid (homepage vertical card) */
.house-filters { display: flex; justify-content: center; gap: 10px; margin-bottom: 44px; flex-wrap: wrap; }

.houses-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin-bottom: 46px; }
.houses-grid .house-card {
  background: #fff; border: 1px solid rgba(92,58,33,0.12); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column; transition: 0.4s; box-shadow: var(--shadow-soft);
}
.houses-grid .house-card:hover { box-shadow: var(--shadow-lift); transform: translateY(-5px); }
.houses-grid .house-img { height: 240px; background-size: cover; background-position: center; position: relative; }
.houses-grid .house-img::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(20,14,10,0.15), transparent 40%); }

/* Компактный слайдер фото внутри карточки на главной */
.houses-grid .house-gallery { width: 100%; }
.houses-grid .cabin-carousel { margin: 0; width: 100%; }
.houses-grid .cabin-carousel .cc-stage { height: 240px; border-radius: 0; box-shadow: none; }
.houses-grid .cabin-carousel .cc-thumbs { display: none; }
.houses-grid .cabin-carousel .cc-arrow { width: 32px; height: 50px; }
.houses-grid .cabin-carousel .cc-arrow::before { width: 11px; height: 11px; border-top-width: 2px; border-right-width: 2px; }
.houses-grid .cabin-carousel .cc-prev { left: 6px; }
.houses-grid .cabin-carousel .cc-prev::before { margin-right: -5px; }
.houses-grid .cabin-carousel .cc-next { right: 6px; }
.houses-grid .cabin-carousel .cc-next::before { margin-left: -5px; }
.houses-grid .cabin-carousel .cc-counter { display: none; }

.houses-grid .house-info { padding: 30px; flex-grow: 1; display: flex; flex-direction: column; }
.houses-grid .house-info h3 { font-size: 23px; margin-bottom: 16px; }
.houses-grid .house-features { margin-bottom: 26px; font-size: 14.5px; color: var(--text-muted); flex-grow: 1; }
.houses-grid .house-features li { margin-bottom: 10px; padding-bottom: 10px; border-bottom: 1px dashed rgba(92,58,33,0.18); display: flex; align-items: flex-start; gap: 10px; }
.houses-grid .house-features li:last-child { border-bottom: none; }
.houses-grid .house-features li::before { content: '🌲'; font-size: 12px; line-height: 1.5; }
.houses-grid .house-bottom { margin-top: auto; }
.houses-grid .house-price { font-size: 27px; font-weight: 700; color: var(--terracotta); margin-bottom: 20px; font-family: var(--font-display); }
.houses-grid .house-price span { font-size: 14px; color: var(--text-muted); font-weight: 600; font-family: var(--font-body); }

/* Dark nature section (homepage) */
.dark-nature-section {
  position: relative; padding: 160px 0; color: #fff;
  margin: -90px 0; z-index: 3;
}
.section:has(+ .dark-nature-section) { padding-bottom: 150px; }
.dark-nature-section + .section { padding-top: 150px; }
.dark-nature-section .section-bg { position: absolute; inset: 0; background-size: cover; background-position: center; background-attachment: fixed; }
.dark-nature-section .section-overlay { position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(20,40,30,0.92), rgba(15,28,21,0.94)); }
.dark-nature-section::before, .dark-nature-section::after {
  content: ''; position: absolute; left: 0; right: 0; height: 64px; z-index: 10;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 60' preserveAspectRatio='none'%3E%3Cpath d='M0,0 L1440,0 L1440,30 C1180,58 980,6 720,30 C470,53 270,4 0,30 Z' fill='%23F7F0E4'/%3E%3C/svg%3E") no-repeat center / 100% 100%;
}
.dark-nature-section::before { top: -1px; }
.dark-nature-section::after { bottom: -1px; transform: scaleY(-1); }
/* Подгоняем цвет волны под следующую/предыдущую секцию */
.dark-nature-section:has(+ .bg-deep)::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 60' preserveAspectRatio='none'%3E%3Cpath d='M0,0 L1440,0 L1440,30 C1180,58 980,6 720,30 C470,53 270,4 0,30 Z' fill='%23EFE5D3'/%3E%3C/svg%3E");
}
.bg-deep + .dark-nature-section::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 60' preserveAspectRatio='none'%3E%3Cpath d='M0,0 L1440,0 L1440,30 C1180,58 980,6 720,30 C470,53 270,4 0,30 Z' fill='%23EFE5D3'/%3E%3C/svg%3E");
}

.services-filters { display: flex; justify-content: center; gap: 10px; margin-bottom: 46px; flex-wrap: wrap; }
.service-filter-btn {
  background: transparent; border: 1.5px solid rgba(255,255,255,0.22); color: rgba(255,255,255,0.65);
  padding: 8px 20px; border-radius: 50px; cursor: pointer;
  font-family: var(--font-body); font-weight: 700; font-size: 12px; transition: 0.3s;
}
.service-filter-btn:hover { background: rgba(255,255,255,0.07); color: #fff; border-color: rgba(255,255,255,0.5); }
.service-filter-btn.active { background: var(--amber); border-color: var(--amber); color: var(--pine); }

.services-grid-proto { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.service-item-proto {
  display: flex; background: var(--cream); border-radius: var(--radius); overflow: hidden;
  height: 250px; color: var(--text-dark); transition: 0.4s; box-shadow: var(--shadow-soft);
}
.service-item-proto:hover { transform: translateY(-5px); box-shadow: 0 30px 55px -20px rgba(0,0,0,0.55); }
.service-img-proto { width: 45%; background-size: cover; background-position: center; }
.service-text-proto { width: 55%; padding: 32px; display: flex; flex-direction: column; justify-content: center; }
.service-text-proto h3 { font-size: 23px; margin-bottom: 12px; }
.service-text-proto p { font-size: 14.5px; color: var(--text-muted); margin-bottom: 20px; line-height: 1.6; }
.service-link { font-weight: 700; color: var(--terracotta); font-size: 14px; font-family: var(--font-body); display: inline-flex; align-items: center; gap: 6px; transition: gap 0.3s ease; }
.service-link:hover { color: var(--pine); gap: 11px; }

/* About flex (homepage) */
.about-flex { display: flex; gap: 64px; align-items: center; }
.about-img { flex: 1; height: 470px; border-radius: var(--radius); background-size: cover; background-position: center; box-shadow: -18px 18px 0 #E6D8C2; }
.about-text { flex: 1; }
.about-text p { margin-bottom: 16px; color: var(--text-muted); font-size: 16.5px; }
.about-text p strong { color: var(--pine); }

/* Reveal on scroll */
.js .reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.8s ease, transform 0.8s cubic-bezier(.2,.7,.2,1); }
.js .reveal.in { opacity: 1; transform: none; }
.js [data-d="1"] { transition-delay: 0.1s; }
.js [data-d="2"] { transition-delay: 0.2s; }
.js [data-d="3"] { transition-delay: 0.3s; }

/* ===========================================================================
   7. SUBPAGE COMPONENTS
   =========================================================================== */

/* ---- Page hero (baths, ecofarm, contact, onas) ---- */
.page-header { text-align: center; padding: 80px 0 60px 0; border-bottom: 1px dashed rgba(92,58,33,0.18); }
.page-header h1 { margin-bottom: 14px; }
.page-header p { max-width: 640px; margin: 14px auto 0; font-size: 17px; color: var(--text-muted); }

/* baths page-header has hero-visual image; ecofarm reuses .hero-visual too */
.hero-visual { width: 100%; height: 400px; object-fit: cover; border-radius: var(--radius); margin-top: 40px; box-shadow: var(--shadow-soft); }

/* ---- BATHS PAGE ---- */
.bath-list { display: flex; flex-direction: column; gap: 40px; max-width: 1000px; margin: 0 auto; }
.bath-card { display: flex; background: #fff; border: 1px solid rgba(92,58,33,0.12); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-soft); transition: all 0.3s ease; }
.bath-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }

.bath-gallery { width: 45%; border-right: 1px solid rgba(92,58,33,0.12); position: relative; }
.bath-gallery img { width: 100%; height: 100%; object-fit: cover; min-height: 350px; }

.bath-badge { position: absolute; top: 20px; left: 20px; background: var(--pine); color: #fff; padding: 6px 14px; border-radius: var(--radius-sm); font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; }

.bath-info { width: 55%; padding: 40px; display: flex; flex-direction: column; justify-content: center; }
.bath-info h3 { margin-bottom: 14px; line-height: 1.25; }
.bath-info p { line-height: 1.6; margin-bottom: 4px; }

.bath-features { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; margin: 24px 0 30px 0; padding-bottom: 30px; border-bottom: 1px dashed rgba(92,58,33,0.18); }
.bath-features li { font-size: 0.95rem; color: var(--text-muted); display: flex; align-items: center; gap: 8px; }
.bath-features li::before { content: '✓'; font-weight: bold; color: var(--terracotta); }

/* ---- Tags (shared by baths/catalog/ecofarm) ---- */
.tags-wrap { display: flex; gap: 8px; margin-bottom: 15px; flex-wrap: wrap; }
.tag { background: var(--cream-deep); padding: 4px 10px; border-radius: var(--radius-sm); font-size: 0.75rem; font-weight: 700; color: var(--text-muted); text-transform: uppercase; }
.tag-highlight { background: var(--terracotta); color: #fff; }
/* Ecofarm centers tags inside card */
.animals-grid .tags-wrap { justify-content: center; }
/* Ecofarm uses pill-shaped tags */
.animals-grid .tag { border-radius: 50px; padding: 5px 12px; font-size: 11px; letter-spacing: 0.5px; }
/* Catalog uses pill-shaped tags too */
.catalog-list .tag { border-radius: 50px; padding: 5px 12px; font-size: 0.72rem; letter-spacing: 0.4px; }

/* ---- Price / Spa block (baths) ---- */
.price-action { display: flex; justify-content: space-between; align-items: center; margin-top: auto; }
.price-amount { font-family: var(--font-display); font-size: 2rem; font-weight: 700; color: var(--terracotta); line-height: 1; }
.price-amount span { font-family: var(--font-body); font-size: 1rem; font-weight: 500; color: var(--text-muted); }

.spa-block { display: flex; gap: 60px; align-items: center; background: var(--pine); border-radius: var(--radius); padding: 60px; color: #fff; box-shadow: var(--shadow-soft); }
.spa-block h2, .spa-block h3, .spa-block p { color: #fff; text-align: left; }
.spa-block h2 { margin-bottom: 20px; }
.spa-block p { color: rgba(255,255,255,0.8); }
.spa-img { width: 45%; height: 350px; object-fit: cover; border-radius: var(--radius); border: 4px solid var(--pine-soft); }
.spa-content { width: 55%; }

.spa-benefits { margin: 30px 0; }
.spa-benefits li { margin-bottom: 12px; display: flex; align-items: center; gap: 10px; font-size: 1.05rem; color: rgba(255,255,255,0.85); }
.spa-benefits li::before { content: '🌿'; font-size: 1.2rem; }

/* ---- Info grid (baths) ---- */
.info-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin-top: 50px; }
.info-card { background: #fff; padding: 30px; border-radius: var(--radius); text-align: center; border: 1px solid rgba(92,58,33,0.12); box-shadow: var(--shadow-soft); transition: all 0.3s ease; }
.info-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.info-icon {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: var(--cream-deep);
  color: var(--terracotta);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
  transition: transform 0.3s ease, background 0.3s ease;
}
.info-icon svg { width: 36px; height: 36px; }
.info-card:hover .info-icon {
  background: var(--terracotta);
  color: #fff;
  transform: scale(1.05) rotate(-3deg);
}

/* ---- CATALOG PAGE ---- */
/* Booking widget */
.booking-widget-wrapper { margin-top: -34px; position: relative; z-index: 10; padding: 0 24px; }
.booking-widget { background: #fff; border-radius: var(--radius); padding: 22px; display: flex; gap: 16px; align-items: center; box-shadow: var(--shadow-soft); border: 1px solid rgba(92,58,33,0.12); max-width: 900px; margin: 0 auto; }
.booking-field { flex: 1; display: flex; flex-direction: column; }
.booking-field label { font-size: 0.78rem; font-weight: 700; color: var(--text-muted); margin-bottom: 6px; text-transform: uppercase; letter-spacing: 0.4px; }
.booking-field input, .booking-field select { padding: 12px 14px; border: 1.5px solid rgba(92,58,33,0.25); border-radius: var(--radius-sm); font-size: 1rem; color: var(--text-dark); outline: none; background: #fff; transition: 0.25s; }
.booking-field input:focus, .booking-field select:focus { border-color: var(--terracotta); box-shadow: 0 0 0 3px rgba(194,94,60,0.12); }

/* Catalog filters / list */
.catalog-filters { display: flex; justify-content: center; gap: 10px; margin: 46px 0; flex-wrap: wrap; }
.catalog-list { display: flex; flex-direction: column; gap: 40px; max-width: 1000px; margin: 0 auto; }
.catalog-list .house-card { display: flex; background: #fff; border: 1px solid rgba(92,58,33,0.12); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-soft); transition: all 0.3s ease; }
.catalog-list .house-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }

/* Catalog gallery */
.catalog-list .house-gallery { width: 40%; padding: 20px; border-right: 1px dashed rgba(92,58,33,0.18); display: flex; flex-direction: column; gap: 10px; }
.catalog-list .gallery-main { width: 100%; height: 220px; object-fit: cover; border-radius: var(--radius-sm); }

/* Компактный слайдер внутри карточки каталога */
.catalog-list .cabin-carousel { margin: 0; width: 100%; }
.catalog-list .cabin-carousel .cc-stage { height: 220px; border-radius: var(--radius-sm); box-shadow: none; }
.catalog-list .cabin-carousel .cc-thumbs { display: none; }
.catalog-list .cabin-carousel .cc-arrow { width: 32px; height: 50px; }
.catalog-list .cabin-carousel .cc-arrow::before { width: 11px; height: 11px; border-top-width: 2px; border-right-width: 2px; }
.catalog-list .cabin-carousel .cc-prev { left: 6px; }
.catalog-list .cabin-carousel .cc-prev::before { margin-right: -5px; }
.catalog-list .cabin-carousel .cc-next { right: 6px; }
.catalog-list .cabin-carousel .cc-next::before { margin-left: -5px; }
.catalog-list .cabin-carousel .cc-counter { display: none; }
.catalog-list .gallery-thumbs { display: flex; gap: 10px; height: 70px; }
.catalog-list .gallery-thumbs img { flex: 1; width: 100%; object-fit: cover; border-radius: var(--radius-sm); cursor: pointer; transition: 0.25s; }
.catalog-list .gallery-thumbs img:hover { transform: scale(1.04); }

.catalog-list .house-info { width: 60%; padding: 30px; display: flex; flex-direction: column; }

.amenities-list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 25px; padding-bottom: 25px; border-bottom: 1px dashed rgba(92,58,33,0.18); }
.amenities-list li { font-size: 0.92rem; color: var(--text-muted); display: flex; align-items: center; gap: 8px; }
.amenities-list li::before { content: '✓'; font-weight: bold; color: var(--terracotta); }

/* Catalog price-action uses different alignment than baths */
.catalog-list .price-action { align-items: flex-end; }
.price-block { display: flex; flex-direction: column; }
.price-block .label { font-size: 0.8rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; font-weight: 700; }
.price-block .amount { font-family: var(--font-display); font-size: 1.85rem; font-weight: 700; color: var(--terracotta); line-height: 1.1; }
.price-block .amount span { font-family: var(--font-body); font-size: 1rem; font-weight: 600; color: var(--text-muted); }

/* ---- CONTACT PAGE ---- */
.contacts-layout { display: flex; gap: 60px; align-items: flex-start; margin-top: 40px; }
.contacts-info { flex: 1; }
.info-block { margin-bottom: 36px; padding-bottom: 28px; border-bottom: 1px dashed rgba(92,58,33,0.18); }
.info-block:last-child { border-bottom: none; }
.info-block h4 { color: var(--text-muted); text-transform: uppercase; font-family: var(--font-body); font-size: 12px; font-weight: 700; letter-spacing: 0.8px; margin-bottom: 12px; }
.info-block p { font-family: var(--font-display); font-size: 1.35rem; color: var(--pine); font-weight: 600; margin-bottom: 6px; line-height: 1.3; }
.info-block a { color: var(--terracotta); text-decoration: none; border-bottom: 1.5px solid rgba(194,94,60,0.35); transition: 0.3s; }
.info-block a:hover { color: var(--terracotta-hover); border-bottom-color: var(--terracotta-hover); }

.social-links { display: flex; gap: 14px; margin-top: 22px; }
.social-btn { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 50%; border: 1.5px solid rgba(92,58,33,0.25); color: var(--pine); background: #fff; transition: all 0.3s ease; }
.social-btn svg { width: 22px; height: 22px; display: block; }
.social-btn:hover { border-color: var(--terracotta); background: var(--terracotta); color: #fff; transform: translateY(-3px); box-shadow: var(--shadow-soft); }

.contacts-form-wrap { width: 460px; background: #fff; padding: 42px; border-radius: var(--radius); border: 1px solid rgba(92,58,33,0.12); box-shadow: var(--shadow-soft); }
.contacts-form-wrap h3 { font-family: var(--font-display); color: var(--pine); font-size: 1.6rem; font-weight: 600; }
.form-group { margin-bottom: 22px; }
.form-group label { display: block; font-family: var(--font-body); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.8px; color: var(--text-muted); margin-bottom: 9px; }
.form-control { width: 100%; padding: 13px 16px; border: 1.5px solid rgba(92,58,33,0.25); border-radius: var(--radius-sm); font-family: var(--font-body); font-size: 15px; color: var(--text-dark); background: #fff; outline: none; transition: all 0.25s ease; }
.form-control::placeholder { color: rgba(110,96,82,0.65); }
.form-control:focus { border-color: var(--terracotta); box-shadow: 0 0 0 4px rgba(194,94,60,0.12); background: #fff; }
textarea.form-control { resize: vertical; min-height: 130px; line-height: 1.6; }

.map-section { margin-top: 70px; }
.map-section h2 { text-align: left; margin-bottom: 30px; }
.map-wrapper { width: 100%; height: 520px; background: var(--cream-deep); border-radius: var(--radius); overflow: hidden; position: relative; border: 1px solid rgba(92,58,33,0.12); box-shadow: var(--shadow-soft); }
.map-img { width: 100%; height: 100%; object-fit: cover; filter: none; }
.map-iframe { width: 100%; height: 100%; border: 0; display: block; }

.map-overlay-box { position: absolute; top: 30px; left: 30px; background: #fff; padding: 32px; border-radius: var(--radius); max-width: 410px; box-shadow: var(--shadow-lift); border: 1px solid rgba(92,58,33,0.12); }
.map-overlay-box h3 { margin-bottom: 16px; font-family: var(--font-display); font-size: 1.4rem; font-weight: 600; color: var(--pine); }
.map-overlay-box p { font-size: 14.5px; margin-bottom: 12px; color: var(--text-muted); line-height: 1.65; }
.map-overlay-box p strong { color: var(--pine); font-weight: 700; }
.map-overlay-box a { color: var(--terracotta); font-weight: 700; border-bottom: 1.5px solid rgba(194,94,60,0.4); transition: 0.3s; }
.map-overlay-box a:hover { color: var(--terracotta-hover); border-bottom-color: var(--terracotta-hover); }

/* ---- ECOFARM PAGE ---- */
/* page-header has hero-visual; ecofarm adjusts page-header dimensions */
.animals-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: 48px; }
.animals-grid.is-twocol { grid-template-columns: repeat(2, 1fr); }
.animal-card { background: #fff; border: 1px solid rgba(92,58,33,0.12); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; text-align: center; transition: transform 0.35s ease, box-shadow 0.35s ease; box-shadow: var(--shadow-soft); }
.animal-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lift); }
.animal-img { width: 100%; height: 250px; object-fit: cover; border-bottom: 1px solid rgba(92,58,33,0.12); filter: none; transition: transform 0.5s ease; }
.animal-card:hover .animal-img { transform: scale(1.04); }
.animal-info { padding: 26px 24px 28px; display: flex; flex-direction: column; flex-grow: 1; }
.animal-info h3 { color: var(--pine); margin-bottom: 0.6rem; }
.animal-info p { color: var(--text-muted); }

.gemma-block { display: flex; gap: 60px; align-items: center; background: #fff; border: 1px solid rgba(92,58,33,0.12); border-radius: var(--radius); padding: 54px; box-shadow: var(--shadow-soft); }
.gemma-text { width: 55%; }
.gemma-text h2 { text-align: left; margin-bottom: 1.1rem; }
.gemma-text h4 { color: var(--terracotta) !important; font-family: var(--font-body); font-weight: 700; text-transform: uppercase; letter-spacing: 1.4px; font-size: 12.5px; margin-bottom: 0.7rem; }
.gemma-text p { margin-bottom: 1rem; }
.gemma-text p strong { color: var(--text-dark); }
.gemma-text p em { color: var(--bark); font-style: italic; }
.gemma-img { width: 45%; height: 360px; object-fit: cover; border-radius: var(--radius); filter: none; box-shadow: var(--shadow-soft); }

.rules-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; margin-top: 54px; max-width: 900px; margin-left: auto; margin-right: auto; }
.rule-card { background: #fff; padding: 30px; border-radius: var(--radius); display: flex; gap: 20px; align-items: flex-start; border: 1px solid rgba(92,58,33,0.12); box-shadow: var(--shadow-soft); transition: transform 0.3s ease, box-shadow 0.3s ease; }
.rule-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.rule-icon { flex-shrink: 0; width: 62px; height: 62px; display: inline-flex; align-items: center; justify-content: center; background: var(--cream-deep); border-radius: 50%; color: var(--terracotta); transition: background 0.3s ease, color 0.3s ease, transform 0.3s ease; }
.rule-icon svg { width: 30px; height: 30px; }
.rule-card:hover .rule-icon { background: var(--terracotta); color: #fff; transform: scale(1.05) rotate(-3deg); }
.rule-text h4 { color: var(--pine); margin-bottom: 8px; font-size: 1.1rem; }
.rule-text p { font-size: 0.97rem; margin-bottom: 0; color: var(--text-muted); }
.rule-text p strong { color: var(--terracotta); }

/* ---- ONAS (ABOUT) PAGE ---- */
.story-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.story-content p { margin-bottom: 20px; }
.story-image-wrapper { position: relative; }
.story-image { width: 100%; border-radius: var(--radius); object-fit: cover; height: 500px; box-shadow: var(--shadow-soft); }

.year-badge { position: absolute; top: -20px; left: -20px; background: var(--pine); color: #fff; width: 100px; height: 100px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-size: 1.5rem; font-weight: 600; border: 6px solid var(--cream); box-shadow: var(--shadow-soft); }

.story-grid-reverse { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.story-grid-reverse .story-image-wrapper { order: -1; }

.press-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin-top: 40px; }
.press-card { background: #fff; border: 1px solid rgba(92,58,33,0.12); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: transform 0.3s ease, box-shadow 0.3s ease; box-shadow: var(--shadow-soft); }
.press-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lift); }
.press-img-wrap { height: 200px; position: relative; }
.press-img { width: 100%; height: 100%; object-fit: cover; }
.play-icon { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); background: rgba(30,58,43,0.85); color: #fff; width: 60px; height: 60px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; }
.press-info { padding: 25px; display: flex; flex-direction: column; flex-grow: 1; }
.press-source { font-size: 0.8rem; font-weight: 700; color: var(--terracotta); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 10px; }
.press-title { font-size: 1.2rem; margin-bottom: 15px; color: var(--pine); }
.press-link { margin-top: auto; font-weight: 700; color: var(--terracotta); display: flex; align-items: center; gap: 5px; }
.press-link:hover { color: var(--pine); }

/* ---- ARTICLE PAGE (отдельная страница статьи прессы) ---- */
.article-wrap { max-width: 880px; margin: 0 auto; }
.article-meta { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; color: var(--text-muted); font-size: 0.92rem; margin: 6px 0 28px; }
.article-meta .source { font-weight: 700; color: var(--terracotta); text-transform: uppercase; letter-spacing: 0.5px; font-size: 0.82rem; }
.article-meta .dot { opacity: 0.4; }
.article-body p { font-size: 1.05rem; line-height: 1.8; margin-bottom: 20px; text-align: justify; }
.article-body p em { color: var(--text-muted); }
.article-gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin: 32px 0; }
.article-gallery img { width: 100%; height: auto; border-radius: var(--radius-sm); box-shadow: var(--shadow-soft); display: block; }
.article-gallery.portrait-4 { grid-template-columns: repeat(4, 1fr); }
.article-video { position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden; border-radius: var(--radius); margin: 8px 0 32px; box-shadow: var(--shadow-soft); }
.article-video iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0; }
.article-back { display: inline-flex; align-items: center; gap: 8px; margin-top: 30px; font-weight: 700; color: var(--terracotta); }
.article-back:hover { color: var(--pine); }

/* ---- ЗАГЛУШКА "В РАЗРАБОТКЕ" ---- */
.coming-soon { text-align: center; padding: 80px 24px 100px; max-width: 640px; margin: 0 auto; }
.coming-soon .icon { width: 96px; height: 96px; margin: 0 auto 28px; border-radius: 50%; background: linear-gradient(135deg, var(--cream-warm), #ecd4af); display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-soft); }
.coming-soon .icon svg { width: 48px; height: 48px; color: var(--terracotta); }
.coming-soon h1 { margin-bottom: 18px; }
.coming-soon p { color: var(--text-muted); font-size: 1.08rem; line-height: 1.7; margin-bottom: 28px; }
.coming-soon .cta-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 30px; }
@media (max-width: 720px) {
  .article-gallery, .article-gallery.portrait-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .article-gallery, .article-gallery.portrait-4 { grid-template-columns: 1fr; }
}

/* ---- QUEST PAGE (Premium / Lead booking) ---- */
.breadcrumbs { padding: 22px 0; font-size: 0.92rem; color: var(--text-muted); }
.breadcrumbs a { color: var(--pine); font-weight: 600; text-decoration: none; border-bottom: 1px dashed rgba(92,58,33,0.35); transition: 0.3s; }
.breadcrumbs a:hover { color: var(--terracotta); border-bottom-color: var(--terracotta); }
.breadcrumbs span { margin: 0 10px; color: rgba(92,58,33,0.4); }

.premium-hero { position: relative; height: 500px; border-radius: var(--radius); overflow: hidden; margin-bottom: 44px; display: flex; align-items: flex-end; padding: 44px; background-color: var(--cream-deep); box-shadow: var(--shadow-soft); }
.premium-hero img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; filter: none; z-index: 1; }
.premium-hero::after { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(to top, rgba(30,58,43,0.88) 0%, rgba(30,58,43,0.35) 55%, rgba(30,58,43,0) 100%); z-index: 2; }
.premium-hero-content { position: relative; z-index: 3; color: #fff; max-width: 820px; }
.premium-hero-content h1 { color: #fff; font-family: var(--font-display); font-size: clamp(34px, 4.4vw, 52px); margin-bottom: 14px; letter-spacing: -0.4px; }
.premium-hero-content p { color: rgba(255,240,220,0.92); font-size: 1.18rem; margin-bottom: 0; line-height: 1.55; }

.hero-tags { display: flex; gap: 10px; margin-bottom: 22px; flex-wrap: wrap; }
.hero-tag { background: rgba(255,255,255,0.18); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); padding: 7px 16px; border-radius: 50px; font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: #fff; border: 1px solid rgba(255,255,255,0.4); }

/* House layout split (used by quest + single-house) */
.house-layout { display: flex; gap: 54px; align-items: flex-start; }
.house-details { flex: 1; min-width: 0; }

.highlight-box { background: var(--cream-deep); border-left: 4px solid var(--terracotta); padding: 26px 28px; margin: 32px 0; font-family: var(--font-display); font-size: 1.16rem; color: var(--pine); font-weight: 500; border-radius: var(--radius-sm); line-height: 1.5; box-shadow: var(--shadow-soft); }

.content-gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin: 32px 0; }
.content-gallery img { width: 100%; height: 250px; object-fit: cover; border-radius: var(--radius); filter: none; transition: transform 0.4s ease, box-shadow 0.4s ease; box-shadow: var(--shadow-soft); }
.content-gallery img:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); filter: none; }

/* Amenities grid — used by quest (rounded checks) and single-house (variant) */
.amenities-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 20px; margin-bottom: 32px; }
.amenities-grid li { display: flex; align-items: center; gap: 12px; font-size: 1rem; color: var(--text-dark); font-weight: 500; padding: 6px 0; border-bottom: 1px dashed rgba(92,58,33,0.18); }
.amenities-grid li::before { content: '✓'; font-weight: 700; color: #fff; background: var(--terracotta); width: 24px; height: 24px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 0.78rem; flex-shrink: 0; box-shadow: 0 4px 10px -4px rgba(194,94,60,0.6); }

/* Lead booking (quest) */
.lead-booking { width: 400px; position: sticky; top: 108px; background: #fff; border: 1px solid rgba(92,58,33,0.12); border-radius: var(--radius); padding: 36px; box-shadow: var(--shadow-lift); }
.lead-booking h3 { font-family: var(--font-display); font-size: 1.6rem; margin-bottom: 10px; line-height: 1.2; color: var(--pine); }
.lead-booking p { font-size: 0.95rem; margin-bottom: 26px; color: var(--text-muted); }
.lead-booking .form-group { margin-bottom: 18px; }
.lead-booking .form-group label { display: block; font-size: 0.74rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.8px; color: var(--pine); margin-bottom: 7px; }

/* Food / banquet section (quest) */
.food-section { display: flex; align-items: center; gap: 54px; margin-top: 68px; padding-top: 60px; border-top: 1px dashed rgba(92,58,33,0.2); }
.food-img { flex: 1; height: 400px; object-fit: cover; border-radius: var(--radius); filter: none; box-shadow: var(--shadow-soft); transition: transform 0.4s ease, box-shadow 0.4s ease; }
.food-img:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.food-text { flex: 1; }
.food-text h4 { color: var(--terracotta) !important; text-transform: uppercase; letter-spacing: 1.4px; font-family: var(--font-body); font-weight: 700; font-size: 0.82rem; margin-bottom: 0.8rem; }
.food-list { margin-top: 22px; }
.food-list li { margin-bottom: 14px; display: flex; align-items: center; gap: 14px; font-weight: 600; color: var(--text-dark); font-size: 1.02rem; }
.food-list li::before { content: ''; display: inline-block; width: 8px; height: 8px; background: var(--terracotta); border-radius: 50%; flex-shrink: 0; box-shadow: 0 0 0 4px rgba(194,94,60,0.18); }

/* ---- SINGLE-HOUSE PAGE ---- */
/* === Cabin carousel — листалка фото домика на single-house === */
.cabin-carousel { margin: 8px 0 50px; }
.cc-stage {
  position: relative;
  width: 100%;
  height: 480px;
  border-radius: var(--radius);
  overflow: hidden;
  background: #1a1410;
  box-shadow: var(--shadow-soft);
}
.cc-track {
  display: flex;
  height: 100%;
  transition: transform 0.55s cubic-bezier(0.4, 0.6, 0.2, 1);
  will-change: transform;
}
.cc-track img {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  object-fit: cover;
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
}
/* Тонкие стрелки-шевроны без фона */
.cc-arrow {
  position: absolute;
  top: 50%;
  width: 40px;
  height: 64px;
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  cursor: pointer;
  z-index: 5;
  font-size: 0; /* скрываем текстовый «‹/›» в HTML — рисуем шеврон через ::before */
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.55));
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.cc-arrow::before {
  content: '';
  display: block;
  width: 14px;
  height: 14px;
  border-top: 2.5px solid currentColor;
  border-right: 2.5px solid currentColor;
}
.cc-prev { left: 14px; transform: translateY(-50%); }
.cc-prev::before { transform: rotate(-135deg); margin-right: -6px; }
.cc-next { right: 14px; transform: translateY(-50%); }
.cc-next::before { transform: rotate(45deg); margin-left: -6px; }
.cc-arrow:hover { transform: translateY(-50%) scale(1.18); }
.cc-arrow:active { opacity: 0.75; }
.cc-counter {
  position: absolute;
  bottom: 18px;
  right: 18px;
  background: rgba(20, 14, 10, 0.55);
  color: #fff;
  padding: 7px 16px;
  border-radius: 50px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.5px;
  z-index: 5;
  backdrop-filter: blur(6px);
}
.cc-thumbs {
  display: flex;
  gap: 10px;
  margin-top: 12px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: thin;
}
.cc-thumbs::-webkit-scrollbar { height: 6px; }
.cc-thumbs::-webkit-scrollbar-thumb { background: rgba(92, 58, 33, 0.25); border-radius: 4px; }
.cc-thumb {
  flex: 0 0 112px;
  height: 78px;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  background: none;
  padding: 0;
  cursor: pointer;
  overflow: hidden;
  opacity: 0.65;
  transition: opacity 0.2s, border-color 0.2s, transform 0.2s;
}
.cc-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cc-thumb:hover { opacity: 1; }
.cc-thumb.active {
  opacity: 1;
  border-color: var(--terracotta);
  transform: scale(1.03);
  box-shadow: 0 4px 14px -4px rgba(194, 94, 60, 0.6);
}

@media (max-width: 768px) {
  .cc-stage { height: 340px; }
  .cc-arrow { width: 42px; height: 42px; font-size: 24px; }
  .cc-prev { left: 10px; }
  .cc-next { right: 10px; }
  .cc-counter { bottom: 12px; right: 12px; padding: 5px 12px; font-size: 12px; }
  .cc-thumb { flex: 0 0 86px; height: 60px; }
}
@media (max-width: 480px) {
  .cc-stage { height: 260px; }
}

.gallery-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 16px; height: 480px; margin: 8px 0 50px 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-soft); }
.gallery-grid .gallery-main { width: 100%; height: 100%; object-fit: cover; filter: none; cursor: pointer; transition: transform 0.6s ease, filter 0.3s ease; border-radius: 0; }
.gallery-grid .gallery-main:hover { filter: none; transform: scale(1.03); }
.gallery-side { display: grid; grid-template-rows: 1fr 1fr; gap: 16px; }
.gallery-side img { width: 100%; height: 100%; object-fit: cover; filter: none; cursor: pointer; transition: transform 0.5s ease, filter 0.3s ease; border-radius: 0; }
.gallery-side img:hover { filter: none; transform: scale(1.04); }

.house-meta { display: flex; flex-wrap: wrap; gap: 10px; color: var(--pine); font-weight: 700; font-size: 14px; margin-bottom: 30px; padding-bottom: 28px; border-bottom: 1px dashed rgba(92,58,33,0.25); }
.house-meta span { display: inline-flex; align-items: center; gap: 8px; background: var(--cream-deep); color: var(--pine); padding: 8px 18px; border-radius: 50px; letter-spacing: 0.2px; }
.house-meta span::before { content: '🌲'; font-size: 14px; color: var(--terracotta); line-height: 1; }
.house-meta span:first-child::before { display: inline-block; }

/* Single-house amenities-grid variant — pine-coloured check, no terracotta circle */
.house-details h2 { margin-top: 38px; margin-bottom: 18px; }
.house-details h2:first-of-type { margin-top: 18px; }
.house-details .amenities-grid { gap: 6px 24px; }
.house-details .amenities-grid li { font-size: 1.02rem; padding: 12px 4px; }
.house-details .amenities-grid li::before { content: '✓'; font-weight: 800; color: var(--pine); background: var(--cream-deep); width: 24px; height: 24px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 13px; flex-shrink: 0; box-shadow: none; }

.beds-box { border: 1px solid rgba(92,58,33,0.15); padding: 26px 28px; border-radius: var(--radius); display: inline-block; margin-bottom: 32px; background: #fff; width: 100%; max-width: 520px; box-shadow: var(--shadow-soft); }
.beds-box h4 { margin-bottom: 10px; font-size: 1.15rem; display: flex; align-items: center; gap: 12px; color: var(--pine); }
.beds-box h4::before { content: ''; display: inline-block; width: 22px; height: 14px; border: 2px solid var(--terracotta); border-radius: 3px; border-top-width: 7px; background: var(--cream-deep); }
.beds-box p { margin-bottom: 0; font-size: 0.98rem; color: var(--text-muted); }

.house-details strong { color: var(--pine); font-weight: 700; }
.house-details em { color: var(--bark); font-style: italic; }

.house-booking { width: 380px; position: sticky; top: 104px; background: #fff; border: 1px solid rgba(92,58,33,0.12); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow-lift); }
/* Когда в правую колонку встроен iframe — расширяем и убираем внутренние отступы */
.house-booking-embed { width: 460px; padding: 0; overflow: hidden; }
.booking-price { margin-bottom: 22px; padding-bottom: 20px; border-bottom: 1px dashed rgba(92,58,33,0.2); }
.booking-price .amount { font-family: var(--font-display); font-size: 2.3rem; font-weight: 700; color: var(--terracotta); line-height: 1; letter-spacing: -0.5px; }
.booking-price .amount span { font-family: var(--font-body); font-size: 0.95rem; font-weight: 600; color: var(--text-muted); }
.booking-price .weekend { font-size: 0.9rem; color: var(--text-muted); margin-top: 10px; display: block; }
.booking-price .weekend strong { color: var(--pine); font-family: var(--font-display); font-weight: 600; }

.booking-form { border: 1.5px solid rgba(92,58,33,0.2); border-radius: var(--radius-sm); overflow: hidden; margin-bottom: 22px; background: #fff; }
.booking-row { display: flex; border-bottom: 1.5px solid rgba(92,58,33,0.18); }
.booking-row:last-child { border-bottom: none; }
.booking-input { flex: 1; padding: 13px 16px; display: flex; flex-direction: column; border-right: 1.5px solid rgba(92,58,33,0.18); transition: background 0.3s ease; }
.booking-input:last-child { border-right: none; }
.booking-input:focus-within { background: var(--cream); }
.booking-input label { font-size: 0.7rem; font-weight: 800; text-transform: uppercase; color: var(--pine); margin-bottom: 6px; letter-spacing: 0.8px; }
.booking-input input, .booking-input select { border: none; font-size: 0.95rem; color: var(--text-dark); outline: none; background: transparent; padding: 0; width: 100%; cursor: pointer; font-weight: 600; }
.booking-input input:focus, .booking-input select:focus { color: var(--terracotta); }

.booking-total { display: flex; justify-content: space-between; margin-top: 22px; padding-top: 22px; border-top: 1px dashed rgba(92,58,33,0.25); font-weight: 700; font-size: 1.15rem; color: var(--pine); font-family: var(--font-display); }

/* ---- WINDOW (MODAL) PAGE ---- */
/* window.html .hero is a non-fullscreen flex hero (overrides homepage .hero via parent .container.hero scope) */
.container.hero {
  display: flex; align-items: center; gap: 50px; padding: 60px 0;
  height: auto; min-height: 0; text-align: left; overflow: visible;
}
.container.hero .hero-content {
  flex: 1; max-width: none; padding: 0; margin-top: 0;
  color: var(--text-dark); position: static;
}
.container.hero .hero-content > * { opacity: 1; animation: none; }
.container.hero .hero-content h1 { margin-bottom: 1rem; color: var(--pine); text-shadow: none; }
.container.hero .hero-visual {
  flex: 1; height: 400px; border-radius: var(--radius); object-fit: cover;
  filter: none; box-shadow: var(--shadow-soft); margin-top: 0;
}

/* Modal */
.modal-overlay {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(20,36,28,0.65); backdrop-filter: blur(6px);
  display: none; justify-content: center; align-items: center; z-index: 1000;
  opacity: 0; transition: opacity 0.3s ease;
}
.modal-box {
  background: #fff; width: 100%; max-width: 500px; border-radius: var(--radius);
  padding: 40px; position: relative; max-height: 90vh; overflow-y: auto;
  transform: translateY(20px); transition: transform 0.3s ease;
  box-shadow: var(--shadow-lift);
  border: 1px solid rgba(92,58,33,0.12);
}
.modal-close {
  position: absolute; top: 18px; right: 22px; font-size: 1.6rem;
  cursor: pointer; color: var(--text-muted); line-height: 1; transition: 0.3s;
}
.modal-close:hover { color: var(--terracotta); transform: rotate(90deg); }

.modal-step h4 { margin-bottom: 16px; font-size: 1.15rem; border-bottom: 1px dashed rgba(92,58,33,0.18); padding-bottom: 12px; color: var(--pine); }

.house-options { display: flex; flex-direction: column; gap: 12px; margin-bottom: 25px; }
.house-opt {
  border: 1.5px solid rgba(92,58,33,0.15); background: var(--cream);
  padding: 16px 18px; border-radius: var(--radius-sm); cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; transition: all 0.25s ease;
}
.house-opt:hover { border-color: var(--amber); background: var(--cream-deep); transform: translateY(-1px); box-shadow: var(--shadow-soft); }
.house-opt.selected { border-color: var(--terracotta); background: #fff; box-shadow: 0 0 0 3px rgba(194,94,60,0.15), var(--shadow-soft); }
.house-opt-title { font-family: var(--font-display); font-weight: 600; color: var(--pine); font-size: 1.05rem; }
.house-opt-price { font-size: 0.92rem; color: var(--text-muted); font-weight: 700; }

.date-inputs { display: flex; gap: 15px; margin-bottom: 25px; }
.date-field { flex: 1; }
.date-field label { display: block; font-size: 0.78rem; font-weight: 700; color: var(--text-muted); margin-bottom: 6px; text-transform: uppercase; letter-spacing: 0.6px; }
.date-field input { width: 100%; padding: 12px 14px; background: #fff; border: 1.5px solid rgba(92,58,33,0.25); border-radius: var(--radius-sm); font-size: 1rem; outline: none; color: var(--text-dark); transition: 0.3s; }
.date-field input:focus { border-color: var(--terracotta); box-shadow: 0 0 0 3px rgba(194,94,60,0.12); }

.modal-total { background: var(--cream-deep); padding: 22px; border-radius: var(--radius-sm); margin-bottom: 20px; text-align: center; border: 1px dashed rgba(92,58,33,0.2); }
.modal-total-text { font-size: 0.9rem; color: var(--text-muted); font-weight: 600; }
.modal-total-sum { font-family: var(--font-display); font-size: 2.1rem; font-weight: 700; color: var(--terracotta); line-height: 1.2; margin-top: 6px; letter-spacing: -0.5px; }

/* ===========================================================================
   8. ACCESSIBILITY — reduced motion
   =========================================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001s !important; animation-delay: 0s !important; transition-duration: 0.001s !important; }
  .hero-content > * { opacity: 1; }
}

/* ===========================================================================
   9. RESPONSIVE BREAKPOINTS (combined)
   =========================================================================== */

@media (max-width: 992px) {
  /* Homepage */
  .about-flex { flex-direction: column; }
  .about-img { width: 100%; box-shadow: none; margin-bottom: 30px; height: 360px; }
  .about-text { text-align: center; }
  .section-head.left-align { text-align: center; }
  .section-title.left-align { text-align: center !important; }
  .eyebrow.is-left::before { display: inline-block; }
  .utp-grid { grid-template-columns: repeat(2, 1fr); }
  .houses-grid { grid-template-columns: repeat(2, 1fr); }
  .services-grid-proto { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .nav, .nav-links { display: none; }

  /* Baths */
  .bath-card { flex-direction: column; }
  .bath-gallery { width: 100%; border-right: none; height: 240px; max-height: 280px; }
  .bath-gallery img { min-height: 0; height: 100%; }
  .bath-info { width: 100%; padding: 24px; }
  .bath-info h3 { font-size: 1.35rem; margin-bottom: 14px; }
  .bath-info .tags-wrap { margin-bottom: 12px; }
  .bath-info .price-action { flex-direction: column; align-items: stretch; gap: 12px; }
  .bath-info .price-action .btn { width: 100%; }
  .spa-block { flex-direction: column; padding: 40px; }
  .spa-img, .spa-content { width: 100%; }
  .info-grid { grid-template-columns: 1fr; }

  /* Ecofarm */
  .animals-grid { grid-template-columns: repeat(2, 1fr); }
  .gemma-block { flex-direction: column; padding: 32px; gap: 32px; }
  .gemma-text, .gemma-img { width: 100%; }
  .gemma-text h2 { text-align: center; }
  .hero-visual { height: 340px; }

  /* Contact */
  .contacts-layout { flex-direction: column; }
  .contacts-form-wrap { width: 100%; }

  /* Onas */
  .story-grid, .story-grid-reverse { grid-template-columns: 1fr; gap: 40px; }
  .story-grid-reverse .story-image-wrapper { order: 0; }
  .story-image { height: 400px; }
  .press-grid { grid-template-columns: repeat(2, 1fr); }

  /* Quest + single-house */
  .house-layout, .food-section { flex-direction: column; }
  .lead-booking, .house-booking { width: 100%; position: relative; top: 0; margin-top: 20px; }
  .premium-hero-content h1 { font-size: 2.2rem; }
  .gallery-grid { height: 380px; }
}

@media (max-width: 900px) {
  /* Catalog */
  .booking-widget { flex-direction: column; padding: 20px; gap: 14px; align-items: stretch; }
  .booking-widget .booking-field { width: 100%; }
  .booking-widget .booking-field input,
  .booking-widget .booking-field select { width: 100%; box-sizing: border-box; }
  .booking-widget .btn { width: 100%; margin-top: 6px !important; }
  .booking-field { width: 100%; }
  .catalog-list .house-card { flex-direction: column; }
  .catalog-list .house-gallery { width: 100%; border-right: none; border-bottom: 1px dashed rgba(92,58,33,0.18); }
  .catalog-list .house-info { width: 100%; }
  .catalog-list .price-action { flex-direction: column; align-items: flex-start; gap: 20px; }
  .catalog-list .price-action .btn { width: 100%; }
}

@media (max-width: 768px) {
  /* Homepage */
  .section { padding: 70px 0; }
  .dark-nature-section { padding: 110px 0; }
  .hero-desc { font-size: 15.5px; }
  .hero-buttons { flex-direction: column; gap: 14px; }
  .utp-grid, .houses-grid { grid-template-columns: 1fr; }
  /* Footer: 2 cols on mobile; logo+contacts span full width, nav+entertainment side-by-side */
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-col:first-child { grid-column: 1 / -1; }
  .footer-col:last-child { grid-column: 1 / -1; }
  .utp-card { aspect-ratio: 1.4; }
  .service-item-proto { flex-direction: column; height: auto; }
  .service-img-proto { width: 100%; height: 200px; }
  .service-text-proto { width: 100%; padding: 26px; }
  .top-bar { font-size: 10px; }
  .season-toggle { display: none; }
  .season-select { display: inline-block; }

  /* Top-bar остаётся в одну строку (язык слева, селект сезона справа) */
  .top-bar .container { gap: 12px; }

  /* Baths */
  .price-action { flex-direction: column; align-items: flex-start; gap: 20px; }
  .price-action .btn { width: 100%; }
  .bath-features { grid-template-columns: 1fr; }

  /* Catalog */
  .amenities-list { grid-template-columns: 1fr; }

  /* Contact */
  .map-overlay-box { position: relative; top: 0; left: 0; max-width: 100%; border-radius: 0; border: none; border-bottom: 1px dashed rgba(92,58,33,0.2); box-shadow: none; }
  .map-wrapper { height: auto; border-radius: 0; border-left: none; border-right: none; }

  /* Ecofarm */
  .animals-grid,
  .animals-grid.is-twocol { grid-template-columns: 1fr; }
  .rules-grid { grid-template-columns: 1fr; }

  /* Onas */
  .press-grid { grid-template-columns: 1fr; }
  .year-badge { width: 80px; height: 80px; font-size: 1.2rem; top: -10px; left: -10px; }

  /* Quest */
  .content-gallery { grid-template-columns: 1fr; }
  .amenities-grid { grid-template-columns: 1fr; }
  .premium-hero { height: 420px; padding: 26px; }
  .food-img { height: 300px; }

  /* Single-house */
  .gallery-grid { grid-template-columns: 1fr; grid-template-rows: 260px 110px; height: auto; }
  .gallery-side { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr; }
  .house-meta { flex-wrap: wrap; gap: 8px; font-size: 13px; }

  /* Window (modal page) */
  .container.hero { flex-direction: column; padding: 40px 0; gap: 30px; }
  .container.hero .hero-visual { width: 100%; height: 280px; }
  .modal-box { padding: 30px 24px; }
  .date-inputs { flex-direction: column; gap: 12px; }
}

/* Mobile: shrink logo on narrow viewports */
@media (max-width: 600px) {
  .logo-board { font-size: 17px; padding: 7px 14px; gap: 9px; transform: rotate(-2deg); }
  .logo-board .logo-title { font-size: 17px; }
  .logo-board .logo-subtitle { font-size: 7px; letter-spacing: 1px; margin-top: 4px; }
  .logo-emblem { width: 26px; height: 26px; }
  .nav-container { height: 60px; }
  .header.sticky { padding: 8px 0; }
}
@media (max-width: 380px) {
  .logo-board .logo-subtitle { display: none; }
}

/* === Mobile menu (burger) === */
.burger {
  display: none;
  width: 42px;
  height: 42px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 12px;
  cursor: pointer;
  position: relative;
  padding: 0;
  flex-shrink: 0;
  transition: background 0.25s;
}
.burger:hover { background: rgba(255, 255, 255, 0.16); }
.burger span {
  position: absolute;
  left: 11px;
  right: 11px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease, top 0.3s ease;
}
.burger span:nth-child(1) { top: 14px; }
.burger span:nth-child(2) { top: 20px; }
.burger span:nth-child(3) { top: 26px; }
.burger.is-open span:nth-child(1) { top: 20px; transform: rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { top: 20px; transform: rotate(-45deg); }

.mobile-menu {
  position: fixed;
  inset: 0;
  background: linear-gradient(180deg, rgba(20, 36, 28, 0.985) 0%, rgba(15, 28, 21, 0.99) 100%);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  padding: 100px 32px 50px;
  transform: translateY(-100%);
  transition: transform 0.42s cubic-bezier(0.4, 0.6, 0.2, 1);
  overflow-y: auto;
  visibility: hidden;
}
.mobile-menu.is-open { transform: translateY(0); visibility: visible; }
.mobile-menu .mm-close {
  position: absolute;
  top: 22px;
  right: 22px;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transition: background 0.25s;
  z-index: 1;
}
.mobile-menu .mm-close:hover { background: rgba(255, 255, 255, 0.16); }
body.mm-open .burger { visibility: hidden; }
.mobile-menu .mm-section-title {
  margin: 22px 0 12px;
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 2.5px;
  color: var(--amber);
  text-transform: uppercase;
  font-weight: 700;
}
.mobile-menu .mm-section-title:first-child { margin-top: 0; }
.mobile-menu a {
  display: block;
  color: rgba(255, 255, 255, 0.92);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 21px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  letter-spacing: 0.2px;
}
.mobile-menu a:active,
.mobile-menu a:hover { color: var(--amber); }
.mobile-menu .mm-seasons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 6px;
}
.mobile-menu .mm-seasons button {
  padding: 13px 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  border-radius: 50px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.25s;
}
.mobile-menu .mm-seasons button:hover { background: rgba(255, 255, 255, 0.13); }
.mobile-menu .mm-seasons button.active {
  background: var(--amber);
  border-color: var(--amber);
  color: var(--pine);
}
.mobile-menu .mm-cta {
  margin-top: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--terracotta);
  color: #fff !important;
  padding: 16px 28px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  border: none;
  box-shadow: 0 8px 22px -8px rgba(194, 94, 60, 0.65);
}
.mobile-menu .mm-cta:hover { background: var(--terracotta-hover); }
body.mm-open { overflow: hidden; }

/* На мобайле: показываем бургер, прячем десктопную кнопку «Забронировать» (она в меню) */
@media (max-width: 992px) {
  .burger { display: block; }
  .header-right,
  .nav-container > .btn { display: none; }
}
