/*!
 * Ореховая роща — main.css
 * Дочерняя тема Hello Elementor
 * Стили загружаются ПОСЛЕ Elementor Kit, имеют повышенную специфичность
 * через wrapper-класс .rosha-homepage на странице.
 */

/* Базовые CSS-переменные — наследуются везде */
:root {
  --bone: #f3eee4;
  --cream: #ebe3d3;
  --cream-deep: #e0d5bf;
  --ink: #1a1f1a;
  --forest: #2d3a2a;
  --moss: #6b7a5a;
  --walnut: #5b4530;
  --walnut-light: #8a6a4a;
  --line: rgba(26, 31, 26, 0.18);
  --line-soft: rgba(26, 31, 26, 0.08);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  background: var(--bone);
  color: var(--ink);
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

.serif {
  font-family: 'Fraunces', serif;
  font-weight: 300;
  letter-spacing: -0.02em;
}

/* Плейсхолдер под фото/видео — видно где что ляжет */
.photo-slot {
  position: relative;
  background:
    repeating-linear-gradient(45deg, transparent 0, transparent 14px, rgba(91, 69, 48, 0.04) 14px, rgba(91, 69, 48, 0.04) 15px),
    linear-gradient(135deg, #d4c9b2 0%, #b8a98a 50%, #8a7a5c 100%);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.photo-slot::before {
  content: '';
  position: absolute;
  inset: 12px;
  border: 1px dashed rgba(255, 255, 255, 0.35);
  border-radius: 2px;
  pointer-events: none;
}

.photo-slot-label {
  position: relative;
  z-index: 2;
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.9);
  text-align: center;
  padding: 20px;
  letter-spacing: 0.02em;
}

.photo-slot-label small {
  display: block;
  font-family: 'Inter', sans-serif;
  font-style: normal;
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  margin-bottom: 10px;
  opacity: 0.7;
}

.photo-slot-label b {
  font-weight: 300;
  font-size: 22px;
  display: block;
}

/* === NAV === */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  padding: 18px 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 100;
  color: var(--ink);
  background: var(--bone);
  border-bottom: 1px solid var(--line-soft);
  transition: color 0.4s ease, background 0.4s ease, border-color 0.4s ease;
}

.nav.is-on-dark {
  color: #f3eee4;
  background: var(--ink);
  border-bottom-color: rgba(243, 238, 228, 0.08);
}

.nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: inherit;
}

.nav-logo-img {
  height: 72px;
  width: auto;
  display: block;
  transition: filter 0.4s ease, opacity 0.3s;
}

.nav.is-on-dark .nav-logo-img {
  filter: brightness(0) invert(1);
}

.nav-logo:hover .nav-logo-img { opacity: 0.75; }

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 400;
}

.nav-links a {
  color: inherit;
  text-decoration: none;
  transition: opacity 0.3s;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: currentColor;
  transition: width 0.4s;
}

.nav-links a:hover::after { width: 100%; }

.nav-cta {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 10px 20px;
  border: 1px solid currentColor;
  border-radius: 999px;
  text-decoration: none;
  color: inherit;
  transition: all 0.3s;
}

.nav.is-on-dark .nav-cta:hover {
  background: var(--bone);
  color: var(--ink);
}

.nav:not(.is-on-dark) .nav-cta:hover {
  background: var(--ink);
  color: var(--bone);
}

/* === HERO === */
.hero {
  min-height: 100vh;
  padding: 140px 48px 60px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  background:
    radial-gradient(ellipse at 80% 20%, rgba(107, 122, 90, 0.10) 0%, transparent 50%),
    var(--bone);
}

.hero-left {
  display: flex;
  flex-direction: column;
  gap: 40px;
  position: relative;
  z-index: 2;
}

.hero-kicker {
  font-size: 11px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--moss);
  display: flex;
  align-items: center;
  gap: 14px;
}

.hero-kicker::before {
  content: '';
  width: 36px;
  height: 1px;
  background: var(--moss);
}

.hero-title {
  font-family: 'Fraunces', serif;
  font-weight: 300;
  font-size: clamp(64px, 8.5vw, 132px);
  line-height: 0.9;
  letter-spacing: -0.035em;
  color: var(--ink);
}

.hero-title em {
  font-style: italic;
  font-weight: 300;
  color: var(--walnut);
}

.hero-lede {
  font-family: 'Fraunces', serif;
  font-size: 21px;
  line-height: 1.45;
  font-weight: 300;
  color: var(--forest);
  max-width: 460px;
}

.hero-meta {
  display: flex;
  gap: 40px;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--moss);
  padding-top: 24px;
  border-top: 1px solid var(--line-soft);
}

.hero-meta > div span {
  display: block;
  font-size: 10px;
  opacity: 0.55;
  margin-bottom: 6px;
  letter-spacing: 0.15em;
}

.hero-ctas {
  display: flex;
  gap: 14px;
}

.btn {
  padding: 16px 28px;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 999px;
  transition: all 0.3s;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  border: none;
  font-family: inherit;
  font-weight: 400;
}

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

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

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}

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

.btn-arrow { transition: transform 0.3s; }
.btn:hover .btn-arrow { transform: translateX(4px); }

/* Hero photo slot */
.hero-photo {
  height: calc(100vh - 180px);
  min-height: 480px;
  border-radius: 3px;
  position: relative;
  overflow: hidden;
  background: var(--cream);
}

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

.hero-photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(26, 31, 26, 0.25) 100%);
  pointer-events: none;
  border-radius: 3px;
}

.hero-photo-overlay {
  position: absolute;
  bottom: 24px;
  left: 24px;
  right: 24px;
  z-index: 3;
  display: flex;
  justify-content: space-between;
  align-items: end;
  color: rgba(255, 255, 255, 0.95);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.hero-photo-playbtn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s;
}

.hero-photo-playbtn:hover {
  background: rgba(255, 255, 255, 0.28);
  transform: scale(1.08);
}

/* растущая ветка для мобилки и декора */
.branch-decor {
  position: absolute;
  pointer-events: none;
}

/* === STORY TEASER === */
.story-teaser {
  padding: 140px 48px;
  position: relative;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, transparent 0%, rgba(91, 69, 48, 0.035) 100%);
}

.story-teaser-inner {
  max-width: 1080px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 2.2fr;
  gap: 80px;
  align-items: center;
}

.story-label {
  font-size: 11px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--walnut);
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  align-self: start;
  padding-top: 10px;
}

.story-body { position: relative; }

.story-year {
  font-family: 'Fraunces', serif;
  font-weight: 300;
  font-size: 14px;
  letter-spacing: 0.35em;
  color: var(--walnut-light);
  margin-bottom: 28px;
}

.story-quote {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-weight: 300;
  font-size: clamp(26px, 3.2vw, 42px);
  line-height: 1.28;
  letter-spacing: -0.005em;
  color: var(--ink);
  margin-bottom: 44px;
}

.story-quote em {
  font-style: normal;
  color: var(--walnut);
}

.story-footnote {
  font-size: 14px;
  color: var(--forest);
  max-width: 500px;
  line-height: 1.65;
  padding-left: 20px;
  border-left: 1px solid var(--walnut-light);
  opacity: 0.85;
}

.story-footnote a {
  color: var(--walnut);
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 1px;
  margin-left: 8px;
  white-space: nowrap;
}

/* === WHY === */
.why {
  padding: 140px 48px 120px;
  position: relative;
}

.section-header {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 60px;
  margin-bottom: 70px;
  align-items: end;
}

.section-num {
  font-family: 'Fraunces', serif;
  font-weight: 300;
  font-size: 13px;
  color: var(--walnut);
  letter-spacing: 0.1em;
  font-style: italic;
}

.section-num::before {
  content: '';
  display: inline-block;
  width: 30px;
  height: 1px;
  background: var(--walnut);
  margin-right: 14px;
  vertical-align: middle;
}

.section-title {
  font-family: 'Fraunces', serif;
  font-weight: 300;
  font-size: clamp(46px, 5.5vw, 82px);
  line-height: 0.96;
  letter-spacing: -0.025em;
}

.section-title em {
  font-style: italic;
  color: var(--walnut);
}

.section-subtitle {
  font-family: 'Fraunces', serif;
  font-weight: 300;
  font-size: 19px;
  line-height: 1.5;
  color: var(--forest);
  max-width: 560px;
  margin-top: 20px;
  opacity: 0.85;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
}

.why-item {
  padding: 48px 40px 48px 0;
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
  position: relative;
  transition: background 0.4s;
}

.why-item:nth-child(3n) { border-right: none; }
.why-item:nth-child(-n+3) { padding-top: 48px; }

.why-item:hover { background: rgba(91, 69, 48, 0.03); }

.why-item-num {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-size: 13px;
  color: var(--walnut-light);
  letter-spacing: 0.08em;
  margin-bottom: 20px;
  padding-left: 40px;
}

.why-item-title {
  font-family: 'Fraunces', serif;
  font-weight: 300;
  font-size: 30px;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  padding-left: 40px;
}

.why-item-title em {
  font-style: italic;
  color: var(--walnut);
}

.why-item-desc {
  font-size: 14px;
  line-height: 1.65;
  color: var(--forest);
  padding-left: 40px;
  opacity: 0.82;
  padding-right: 20px;
}

/* === EVENTS === */
.events {
  padding: 160px 48px;
  background: var(--ink);
  color: var(--bone);
  position: relative;
  overflow: hidden;
}

.events::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 75% 30%, rgba(107, 122, 90, 0.14) 0%, transparent 50%),
    radial-gradient(ellipse at 20% 75%, rgba(138, 106, 74, 0.09) 0%, transparent 60%);
  pointer-events: none;
}

.events-inner {
  max-width: 1280px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.events-kicker {
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--walnut-light);
  margin-bottom: 30px;
}

.events-title {
  font-family: 'Fraunces', serif;
  font-weight: 300;
  font-size: clamp(52px, 6.5vw, 102px);
  line-height: 0.95;
  letter-spacing: -0.028em;
  margin-bottom: 70px;
  max-width: 980px;
}

.events-title em {
  font-style: italic;
  color: var(--bone);
  opacity: 0.5;
}

.events-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
  padding-top: 40px;
  border-top: 1px solid rgba(243, 238, 228, 0.15);
}

.events-lede {
  font-family: 'Fraunces', serif;
  font-weight: 300;
  font-size: 21px;
  line-height: 1.5;
  opacity: 0.88;
}

.events-lede em {
  font-style: italic;
  color: var(--walnut-light);
  opacity: 1;
}

.events-formats-label {
  font-size: 11px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  opacity: 0.5;
  margin-bottom: 16px;
}

.events-formats ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 36px;
}

.events-formats li {
  padding: 10px 18px;
  border: 1px solid rgba(243, 238, 228, 0.25);
  border-radius: 999px;
  font-size: 13px;
  transition: all 0.3s;
  cursor: default;
}

.events-formats li:hover {
  background: var(--bone);
  color: var(--ink);
  border-color: var(--bone);
}

.events-cta {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  padding: 20px 32px;
  background: var(--bone);
  color: var(--ink);
  text-decoration: none;
  border-radius: 999px;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: all 0.3s;
}

.events-cta:hover {
  background: var(--walnut-light);
  color: var(--bone);
}

/* === ACTIVITIES (редакторский индекс вместо вкладок) === */
.activities {
  padding: 140px 48px;
  position: relative;
}

.activities-shell {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 80px;
  margin-top: 60px;
  align-items: start;
}

/* Index — левая колонка */
.activities-index {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
}

.activities-row {
  display: grid;
  grid-template-columns: 60px 1fr auto;
  gap: 24px;
  padding: 28px 4px;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  transition: padding 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  align-items: baseline;
  position: relative;
}

.activities-row::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--walnut);
  opacity: 0;
  transition: opacity 0.3s;
}

.activities-row:hover,
.activities-row.active {
  padding-left: 20px;
}

.activities-row:hover::before,
.activities-row.active::before { opacity: 1; }

.activities-row-num {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-size: 13px;
  color: var(--walnut-light);
  letter-spacing: 0.08em;
  padding-top: 6px;
}

.activities-row-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.activities-row-title {
  font-family: 'Fraunces', serif;
  font-weight: 300;
  font-size: 38px;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--ink);
  transition: font-style 0.3s;
}

.activities-row:hover .activities-row-title,
.activities-row.active .activities-row-title {
  font-style: italic;
  color: var(--walnut);
}

.activities-row-desc {
  font-size: 13px;
  color: var(--forest);
  opacity: 0.75;
  line-height: 1.5;
}

.activities-row-arrow {
  font-family: 'Fraunces', serif;
  font-size: 20px;
  color: var(--walnut);
  transition: transform 0.3s;
  padding-top: 8px;
}

.activities-row:hover .activities-row-arrow,
.activities-row.active .activities-row-arrow {
  transform: translateX(8px);
}

/* Аккордеон — расширяющаяся панель с деталями */
.activities-row-expand {
  grid-column: 2 / -1;
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height 0.5s cubic-bezier(0.22, 1, 0.36, 1),
              opacity 0.3s ease,
              padding 0.4s;
  padding: 0;
}

.activities-row.is-open .activities-row-expand {
  max-height: 400px;
  opacity: 1;
  padding: 18px 0 8px;
}

.activities-row.is-open .activities-row-arrow {
  transform: rotate(90deg);
}

.activities-expand-list {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 32px;
  margin-bottom: 20px;
}

.activities-expand-list li {
  font-size: 13px;
  line-height: 1.5;
  color: var(--forest);
  padding-left: 18px;
  position: relative;
  opacity: 0.88;
}

.activities-expand-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 8px;
  height: 1px;
  background: var(--walnut);
}

.activities-expand-cta {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-size: 15px;
  color: var(--walnut);
  text-decoration: none;
  border-bottom: 1px solid var(--walnut);
  padding-bottom: 3px;
  display: inline-block;
  transition: all 0.3s;
}

.activities-expand-cta:hover {
  color: var(--ink);
  border-color: var(--ink);
}

/* Preview — правая колонка */
.activities-preview {
  position: sticky;
  top: 100px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.activities-preview-photo {
  aspect-ratio: 4/5;
  border-radius: 3px;
  position: relative;
  overflow: hidden;
  background: var(--cream);
  transition: opacity 0.3s;
}

.activities-preview-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity 0.25s;
}

.activities-preview-chips {
  position: absolute;
  bottom: 20px;
  left: 20px;
  z-index: 3;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.activities-preview-chip {
  padding: 9px 16px;
  background: rgba(243, 238, 228, 0.92);
  backdrop-filter: blur(8px);
  border-radius: 999px;
  font-size: 12px;
  color: var(--ink);
}

.activities-preview-caption {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 20px;
  padding: 0 4px;
}

.activities-preview-caption-title {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-size: 17px;
  color: var(--forest);
  line-height: 1.4;
}

.activities-preview-caption-meta {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--moss);
  white-space: nowrap;
  padding-top: 4px;
}

/* === SCENARIOS === */
.scenarios {
  padding: 140px 48px;
  background: var(--cream);
  position: relative;
}

.scenarios-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 2px;
  background: var(--line);
  margin-top: 60px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.scenario {
  background: var(--cream);
  padding: 56px 36px 44px;
  position: relative;
  min-height: 420px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  transition: background 0.5s;
}

.scenario:hover { background: var(--cream-deep); }

.scenario-icon {
  width: 36px;
  height: 36px;
  margin-bottom: 28px;
}

.scenario-num {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--walnut);
  margin-bottom: 14px;
}

.scenario-title {
  font-family: 'Fraunces', serif;
  font-weight: 300;
  font-style: italic;
  font-size: 44px;
  line-height: 1;
  letter-spacing: -0.02em;
  margin-bottom: 22px;
  color: var(--ink);
}

.scenario-desc {
  font-size: 14px;
  line-height: 1.65;
  color: var(--forest);
  opacity: 0.85;
  margin-bottom: 28px;
}

.scenario-details {
  display: flex;
  justify-content: space-between;
  align-items: end;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--moss);
}

.scenario-arrow {
  font-family: 'Fraunces', serif;
  font-size: 22px;
  transition: transform 0.3s;
}

.scenario:hover .scenario-arrow { transform: translateX(6px); }

/* === MAP === */
.map {
  padding: 140px 48px;
  position: relative;
}

.map-inner {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 80px;
  align-items: center;
  max-width: 1400px;
  margin: 0 auto;
}

.map-visual {
  position: relative;
  aspect-ratio: 4/3;
  background: var(--bone);
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
}

.map-visual svg {
  width: 100%;
  height: 100%;
}

/* Карта — Яндекс */
.map-yandex {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  border-radius: 4px;
  border: 1px solid var(--line);
  background: var(--bone);
}

.map-yandex-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  /* лёгкий фильтр чтобы карта была в тон палитры */
  filter: grayscale(25%) sepia(6%) saturate(85%);
}

.map-yandex-label {
  position: absolute;
  left: 8px;
  color: #1a1f1a;
  font-size: 11px;
  z-index: 1;
  opacity: 0;
  pointer-events: none;
}

.map-yandex-label.top { top: 0; }
.map-yandex-label:not(.top) { top: 14px; }

.map-yandex-cta {
  position: absolute;
  bottom: 16px;
  right: 16px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  background: var(--bone);
  color: var(--ink);
  text-decoration: none;
  border-radius: 999px;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: all 0.3s;
  box-shadow: 0 4px 18px -4px rgba(26, 31, 26, 0.25);
}

.map-yandex-cta:hover {
  background: var(--ink);
  color: var(--bone);
  transform: translateY(-2px);
}

.map-yandex-cta span {
  font-family: 'Fraunces', serif;
  font-size: 16px;
  transition: transform 0.3s;
}

.map-yandex-cta:hover span { transform: translateX(4px); }

.map-legend {
  margin-top: 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 32px;
  font-size: 13px;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--forest);
}

.legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--walnut);
  flex-shrink: 0;
}

.legend-dot.moss { background: var(--moss); }
.legend-dot.forest { background: var(--forest); }
.legend-dot.walnut-light { background: var(--walnut-light); }

/* Блок информации рядом с картой */
.map-info {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
}

.map-info-row {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 24px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
}

.map-info-row:last-child { border-bottom: none; }

.map-info-label {
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--walnut);
}

.map-info-value {
  font-family: 'Fraunces', serif;
  font-weight: 300;
  font-size: 17px;
  color: var(--ink);
  line-height: 1.4;
}

.map-info-dim {
  font-style: italic;
  color: var(--moss);
  opacity: 0.75;
  font-size: 15px;
}

/* === AFISHA === */
.afisha {
  padding: 140px 48px;
  background: var(--cream);
  position: relative;
}

.afisha-list {
  margin-top: 60px;
  border-top: 1px solid var(--line);
}

.afisha-item {
  display: grid;
  grid-template-columns: 110px 1fr auto auto;
  gap: 40px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
  align-items: center;
  text-decoration: none;
  color: inherit;
  transition: padding 0.3s;
}

.afisha-item:hover { padding-left: 20px; }

.afisha-date-day {
  font-family: 'Fraunces', serif;
  font-weight: 300;
  font-size: 38px;
  line-height: 1;
  letter-spacing: -0.02em;
}

.afisha-date-month {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--walnut);
  margin-top: 4px;
}

.afisha-title {
  font-family: 'Fraunces', serif;
  font-weight: 300;
  font-size: 28px;
  letter-spacing: -0.01em;
}

.afisha-title em {
  font-style: italic;
  color: var(--walnut);
}

.afisha-type {
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--moss);
}

.afisha-arrow {
  font-family: 'Fraunces', serif;
  font-size: 22px;
  color: var(--walnut);
  transition: transform 0.3s;
}

.afisha-item:hover .afisha-arrow { transform: translateX(6px); }

/* === ECO (новый блок) === */
.eco {
  padding: 140px 48px;
  position: relative;
}

.eco-lede {
  font-family: 'Fraunces', serif;
  font-weight: 300;
  font-size: clamp(22px, 2.2vw, 30px);
  line-height: 1.45;
  color: var(--forest);
  max-width: 780px;
  margin-top: 30px;
  margin-bottom: 80px;
  letter-spacing: -0.01em;
}

.eco-lede em {
  font-style: italic;
  color: var(--walnut);
}

.eco-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 80px;
}

.eco-card {
  display: flex;
  flex-direction: column;
  background: var(--bone);
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
  transition: all 0.4s;
  text-decoration: none;
  color: inherit;
}

.eco-card:hover {
  transform: translateY(-4px);
  border-color: var(--walnut);
  box-shadow: 0 20px 50px -20px rgba(26, 31, 26, 0.2);
}

.eco-card-photo {
  aspect-ratio: 16/10;
  position: relative;
}

.eco-card-photo .photo-slot-label b { font-size: 18px; }

.eco-card-body {
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1;
}

.eco-card-kicker {
  font-size: 11px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--walnut);
}

.eco-card-title {
  font-family: 'Fraunces', serif;
  font-weight: 300;
  font-size: 28px;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.eco-card-title em {
  font-style: italic;
  color: var(--walnut);
}

.eco-card-desc {
  font-size: 14px;
  line-height: 1.6;
  color: var(--forest);
  opacity: 0.85;
  flex: 1;
}

.eco-card-cta {
  margin-top: 10px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
  transition: color 0.3s;
}

.eco-card:hover .eco-card-cta { color: var(--walnut); }

.eco-card-cta-arrow {
  font-family: 'Fraunces', serif;
  font-size: 18px;
  transition: transform 0.3s;
}

.eco-card:hover .eco-card-cta-arrow { transform: translateX(6px); }

/* Eco counters */
.eco-counters {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  padding-top: 50px;
  border-top: 1px solid var(--line);
}

.eco-counter {
  padding: 20px 30px 20px 0;
  border-right: 1px solid var(--line);
}

.eco-counter:last-child { border-right: none; }

.eco-counter-value {
  font-family: 'Fraunces', serif;
  font-weight: 300;
  font-size: clamp(44px, 5vw, 68px);
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin-bottom: 10px;
}

.eco-counter-value em {
  font-style: italic;
  color: var(--walnut);
}

.eco-counter-label {
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--moss);
  line-height: 1.4;
}

.eco-counter-placeholder {
  opacity: 0.4;
  font-style: italic;
  font-family: 'Fraunces', serif;
  font-size: 11px;
  letter-spacing: 0;
  text-transform: none;
  margin-top: 6px;
}

/* === GALLERY (новый блок) === */
.gallery {
  padding: 140px 48px;
  background: var(--cream);
  position: relative;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: 120px;
  gap: 12px;
  margin-top: 60px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 3px;
  cursor: pointer;
  transition: transform 0.4s;
}

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

.gallery-item.is-1x1 { grid-column: span 2; grid-row: span 2; }
.gallery-item.is-2x1 { grid-column: span 2; grid-row: span 1; }
.gallery-item.is-1x2 { grid-column: span 2; grid-row: span 2; }
.gallery-item.is-tall { grid-column: span 2; grid-row: span 3; }
.gallery-item.is-wide { grid-column: span 3; grid-row: span 2; }
.gallery-item.is-small { grid-column: span 1; grid-row: span 2; }

.gallery-item .photo-slot-label b { font-size: 14px; }
.gallery-item .photo-slot-label small { font-size: 9px; }
.gallery-item .photo-slot-label > div:last-child { display: none; }

.gallery-footer {
  margin-top: 50px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.gallery-caption {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-size: 15px;
  color: var(--forest);
  opacity: 0.7;
}

.gallery-cta {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-size: 18px;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--walnut);
  padding-bottom: 4px;
  transition: all 0.3s;
}

.gallery-cta:hover {
  color: var(--walnut);
  padding-right: 8px;
}

/* ================================================
   FOOTER — переделан полностью
   ================================================ */
.footer {
  background: var(--ink);
  color: var(--bone);
  position: relative;
  overflow: hidden;
}

.footer-top {
  padding: 120px 48px 80px;
  position: relative;
  border-bottom: 1px solid rgba(243, 238, 228, 0.12);
}

.footer-top-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 100px;
  align-items: end;
}

.footer-quote {
  font-family: 'Fraunces', serif;
  font-weight: 300;
  font-style: italic;
  font-size: clamp(32px, 3.6vw, 58px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--bone);
}

.footer-quote em {
  font-style: normal;
  color: var(--walnut-light);
}

.footer-quote-attr {
  font-family: 'Inter', sans-serif;
  font-style: normal;
  display: block;
  font-size: 11px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(243, 238, 228, 0.5);
  margin-top: 30px;
}

/* newsletter */
.footer-newsletter {
  padding: 40px 36px;
  background: rgba(243, 238, 228, 0.05);
  border: 1px solid rgba(243, 238, 228, 0.12);
  border-radius: 4px;
}

.footer-newsletter-label {
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--walnut-light);
  margin-bottom: 12px;
}

.footer-newsletter h3 {
  font-family: 'Fraunces', serif;
  font-weight: 300;
  font-size: 22px;
  line-height: 1.3;
  margin-bottom: 6px;
}

.footer-newsletter p {
  font-size: 13px;
  color: rgba(243, 238, 228, 0.65);
  margin-bottom: 24px;
  line-height: 1.5;
}

.footer-newsletter-form {
  display: flex;
  border-bottom: 1px solid rgba(243, 238, 228, 0.3);
  padding-bottom: 4px;
}

.footer-newsletter-form input {
  background: transparent;
  border: none;
  color: var(--bone);
  font-family: inherit;
  font-size: 15px;
  padding: 10px 0;
  flex: 1;
  outline: none;
  font-weight: 300;
}

.footer-newsletter-form input::placeholder {
  color: rgba(243, 238, 228, 0.4);
}

.footer-newsletter-form button {
  background: transparent;
  border: none;
  color: var(--bone);
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-size: 15px;
  cursor: pointer;
  padding: 10px 4px 10px 20px;
  transition: color 0.3s;
}

.footer-newsletter-form button:hover { color: var(--walnut-light); }

/* Live panel — время в роще, погода, фаза луны */
.footer-live {
  padding: 36px 48px;
  border-bottom: 1px solid rgba(243, 238, 228, 0.12);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
}

.footer-live-title {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-size: 14px;
  color: rgba(243, 238, 228, 0.5);
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--walnut-light);
}

.footer-live-items {
  display: flex;
  gap: 48px;
  align-items: center;
  flex-wrap: wrap;
}

.footer-live-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.footer-live-item-label {
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(243, 238, 228, 0.45);
}

.footer-live-item-value {
  font-family: 'Fraunces', serif;
  font-size: 17px;
  color: var(--bone);
}

/* Main columns */
.footer-main {
  padding: 70px 48px;
  border-bottom: 1px solid rgba(243, 238, 228, 0.12);
}

.footer-main-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 60px;
}

.footer-col-title {
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--walnut-light);
  margin-bottom: 20px;
}

.footer-logo-img {
  height: 110px;
  width: auto;
  display: block;
  margin-bottom: 24px;
  filter: brightness(0) invert(1);
  opacity: 0.95;
}

.footer-brand {
  font-family: 'Fraunces', serif;
  font-weight: 300;
  font-size: 36px;
  line-height: 1;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.footer-brand em {
  font-style: italic;
  color: var(--walnut-light);
}

.footer-brand-sub {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-size: 15px;
  color: rgba(243, 238, 228, 0.7);
  line-height: 1.5;
  margin-bottom: 28px;
  max-width: 320px;
}

.footer-address {
  font-size: 13px;
  line-height: 1.7;
  color: rgba(243, 238, 228, 0.7);
}

.footer-address strong {
  display: block;
  font-weight: 400;
  color: var(--bone);
  margin-bottom: 4px;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-col a {
  color: rgba(243, 238, 228, 0.7);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.3s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.footer-col a:hover { color: var(--bone); }

.footer-col a .arr,
.footer-col a::before {
  display: inline-block;
  content: '→';
  margin-right: 6px;
  opacity: 0;
  transition: all 0.3s;
  transform: translateX(-4px);
  color: var(--walnut-light);
}

.footer-col a:hover .arr,
.footer-col a:hover::before {
  opacity: 1;
  transform: translateX(0);
}

/* Если внутри есть .arr (наш fallback markup) — не показываем дубль через ::before */
.footer-col a:has(.arr)::before {
  display: none;
}

/* Hours & coords in footer */
.footer-hours {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 30px;
}

.footer-hours-row {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(243, 238, 228, 0.08);
  font-size: 13px;
  color: rgba(243, 238, 228, 0.78);
}

.footer-hours-row span:first-child {
  letter-spacing: 0.05em;
}

.footer-hours-row span:last-child {
  font-family: 'Fraunces', serif;
  font-size: 14px;
  color: var(--bone);
}

.footer-coords {
  font-family: 'Fraunces', serif;
  font-weight: 300;
  font-size: 20px;
  color: var(--walnut-light);
  letter-spacing: 0.02em;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer-coords-label {
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(243, 238, 228, 0.4);
}

/* Bottom bar */
.footer-bottom {
  padding: 28px 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: rgba(243, 238, 228, 0.5);
}

.footer-bottom-links {
  display: flex;
  gap: 28px;
}

.footer-bottom-links a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-bottom-links a:hover { color: var(--bone); }

/* Large background type in footer */
.footer-bgtype {
  position: absolute;
  bottom: -20px;
  left: 0;
  right: 0;
  text-align: center;
  font-family: 'Fraunces', serif;
  font-weight: 300;
  font-size: clamp(120px, 22vw, 340px);
  line-height: 0.85;
  letter-spacing: -0.04em;
  color: rgba(243, 238, 228, 0.03);
  pointer-events: none;
  white-space: nowrap;
  overflow: hidden;
}

/* ================================================
   RESPONSIVE
   ================================================ */
@media (max-width: 1200px) {
  .activities-shell { grid-template-columns: 200px 1fr 240px; gap: 32px; }
  .footer-main-inner { grid-template-columns: 1.5fr 1fr 1fr; }
  .footer-col-hours { grid-column: span 3; }
}

@media (max-width: 1024px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 40px;
    padding-top: 110px;
    min-height: auto;
  }
  .hero-photo { height: 60vh; min-height: 380px; }
  .why-grid { grid-template-columns: 1fr 1fr; }
  .why-item:nth-child(3n) { border-right: 1px solid var(--line); }
  .why-item:nth-child(2n) { border-right: none; }
  .scenarios-wrapper { grid-template-columns: 1fr; }
  .map-inner { grid-template-columns: 1fr; gap: 50px; }
  .story-teaser-inner { grid-template-columns: 1fr; gap: 30px; }
  .story-label { writing-mode: horizontal-tb; transform: none; }
  .events-split { grid-template-columns: 1fr; gap: 40px; }
  .activities-shell { grid-template-columns: 1fr; gap: 32px; }
  .activities-preview { position: relative; top: auto; order: -1; }
  .activities-preview-photo { aspect-ratio: 4/3; }
  .activities-row-title { font-size: 30px; }
  .footer-top-inner { grid-template-columns: 1fr; gap: 50px; }
  .footer-main-inner { grid-template-columns: 1fr 1fr; gap: 40px; }
  .section-header { grid-template-columns: 1fr; gap: 20px; }
  .eco-grid { grid-template-columns: 1fr; gap: 20px; }
  .eco-counters { grid-template-columns: 1fr 1fr; }
  .eco-counter:nth-child(2n) { border-right: none; }
  .eco-counter { padding-bottom: 28px; margin-bottom: 28px; border-bottom: 1px solid var(--line); }
  .eco-counter:nth-last-child(-n+2) { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
  .gallery-grid { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 100px; }
  .gallery-item.is-wide { grid-column: span 2; }
  .gallery-item.is-tall { grid-column: span 2; }
}

/* Мобильный/узкий футер — одна колонка, текст не рвётся, email не вылезает.
   Расширяем брейкпоинт до 900px чтобы захватить планшеты в портрете и узкие экраны. */
@media (max-width: 900px) {
  .footer-main { padding: 60px 24px !important; }
  .footer-main-inner {
    grid-template-columns: 1fr !important;
    gap: 36px !important;
    max-width: 100% !important;
  }
  .footer-col,
.footer-col-hours {
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    grid-column: auto !important;
  }
  .footer-brand-sub,
.footer-address {
    max-width: none !important;
    width: 100% !important;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }
  .footer-col a {
    word-break: break-word;
    overflow-wrap: anywhere;
  }
  .footer-quote { font-size: clamp(28px, 7vw, 42px); }
  .footer-newsletter { padding: 32px 24px; }
}

@media (max-width: 640px) {
  .nav { padding: 14px 20px; }
  .nav-logo-img { height: 56px; }
  .nav-links { display: none; }
  .nav-cta { padding: 8px 14px; font-size: 11px; }

  .hero { padding: 120px 20px 50px; }
  .hero-left { gap: 28px; }
  .hero-meta { flex-direction: column; gap: 16px; }
  .hero-ctas { flex-direction: column; gap: 10px; }
  .hero-ctas .btn { justify-content: center; }
  .hero-photo { height: 50vh; min-height: 320px; }

  .story-teaser,
.why,
.scenarios,
.afisha,
.map,
.events,
.activities,
.eco,
.gallery { padding-left: 20px; padding-right: 20px; padding-top: 90px; padding-bottom: 90px; }
  .events { padding-top: 100px; padding-bottom: 100px; }

  .why-grid { grid-template-columns: 1fr; }
  .why-item { border-right: none !important; padding: 36px 0 36px 0; }
  .why-item:nth-child(-n+3) { padding-top: 36px; }
  .why-item-num,
.why-item-title,
.why-item-desc { padding-left: 0; }

  .afisha-item { grid-template-columns: 1fr; gap: 12px; padding: 24px 0; }
  .afisha-item:hover { padding-left: 0; }
  .afisha-date { display: flex; gap: 12px; align-items: baseline; }

  .activities-row { grid-template-columns: 50px 1fr auto; gap: 16px; padding: 22px 0; }
  .activities-row-title { font-size: 26px; }
  .activities-row:hover,
.activities-row.active { padding-left: 0; }

  .map-info-row { grid-template-columns: 1fr; gap: 6px; padding: 16px 0; }
  .map-yandex-cta { bottom: 12px; right: 12px; padding: 10px 16px; font-size: 10px; }

  .eco-card-body { padding: 24px; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 90px; gap: 8px; }
  .gallery-item,
.gallery-item.is-1x1,
.gallery-item.is-2x1,
.gallery-item.is-wide,
.gallery-item.is-tall,
.gallery-item.is-small { grid-column: span 1; grid-row: span 2; }
  .gallery-item.is-wide,
.gallery-item.is-1x1 { grid-column: span 2; }
  .gallery-footer { flex-direction: column; align-items: flex-start; }

  .footer-top,
.footer-main,
.footer-bottom,
.footer-live { padding-left: 20px; padding-right: 20px; }
  .footer-top { padding-top: 80px; padding-bottom: 60px; }
  .footer-main-inner { grid-template-columns: 1fr; gap: 40px; }
  .footer-logo-img { height: 80px; }
  .footer-live { flex-direction: column; align-items: flex-start; gap: 20px; }
  .footer-live-items { gap: 28px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* Mobile branch animation */
@media (max-width: 1024px) {
  .mobile-branch {
    display: block;
    position: absolute;
    top: 80px;
    left: -20px;
    width: 180px;
    height: 600px;
    pointer-events: none;
    z-index: 1;
    opacity: 0.35;
  }
}
@media (min-width: 1025px) {
  .mobile-branch { display: none; }
}

/* Animations */
@keyframes growLine {
  from { stroke-dashoffset: 1500; }
  to { stroke-dashoffset: 0; }
}

.grow-path {
  stroke-dasharray: 1500;
  animation: growLine 4s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-left > * {
  animation: fadeUp 1.1s cubic-bezier(0.22, 1, 0.36, 1) backwards;
}

.hero-left > *:nth-child(1) { animation-delay: 0.1s; }
.hero-left > *:nth-child(2) { animation-delay: 0.2s; }
.hero-left > *:nth-child(3) { animation-delay: 0.4s; }
.hero-left > *:nth-child(4) { animation-delay: 0.5s; }
.hero-left > *:nth-child(5) { animation-delay: 0.6s; }

.hero-photo { animation: fadeUp 1.3s 0.3s cubic-bezier(0.22, 1, 0.36, 1) backwards; }

/* ============================================================
   ЗАЩИТА ОТ ELEMENTOR KIT
   Повышенная специфичность через body. — чтобы наши значения
   не сбивались стилями из импортированного Kit.
   ============================================================ */

body .hero-title,
body .section-title,
body .events-title,
body .scenario-title,
body .story-quote,
body .footer-quote,
body .activities-row-title,
body .afisha-title,
body .hero-lede,
body .section-subtitle {
    font-family: 'Fraunces', serif;
    letter-spacing: -0.025em;
}

body .section-title em,
body .hero-title em,
body .events-title em,
body .scenario-title,
body .story-quote em,
body .footer-quote em,
body .activities-row.active .activities-row-title,
body .afisha-title em {
    font-style: italic;
}

/* ============================================================
   УНИВЕРСАЛЬНАЯ ЗАЩИТА ЦВЕТОВ НА ТЁМНЫХ СЕКЦИЯХ
   Elementor Kit задаёт глобальные цвета h1-h6 с !important.
   Перебиваем одним махом для всех тёмных блоков.
   ============================================================ */

/* Все заголовки на тёмных секциях — белый (bone) */
body .events h1,
body .events h2,
body .events h3,
body .events h4,
body .events h5,
body .events h6,
body .events p,
body .events-title,
body .events-lede,
body .events-kicker,
body .events-formats-label,
body .footer h1,
body .footer h2,
body .footer h3,
body .footer h4,
body .footer h5,
body .footer h6,
body .footer p,
body .footer-quote,
body .footer-newsletter h3,
body .footer-newsletter p,
body .footer-col-title,
body .footer-brand,
body .footer-brand-sub,
body .footer-address,
body .footer-hours-row,
body .footer-coords,
body .footer-live-item-label,
body .footer-live-item-value,
body .footer-live-title {
    color: var(--bone) !important;
}

/* Italic-акценты (em) на тёмных секциях — walnut-light */
body .events em,
body .footer-quote em,
body .footer em {
    color: var(--walnut-light) !important;
}

/* Исключения — em в events-title должен быть приглушённым bone */
body .events-title em {
    color: var(--bone) !important;
    opacity: 0.5;
}

/* Ссылки в футере — полупрозрачный bone */
body .footer a,
body .footer-col a,
body .footer-bottom-links a,
body .footer-newsletter-form input,
body .footer-newsletter-form button {
    color: var(--bone) !important;
}

body .footer-col a,
body .footer-bottom-links a {
    opacity: 0.7;
}

body .footer-col a:hover,
body .footer-bottom-links a:hover {
    opacity: 1;
}

/* Приглушённые вспомогательные тексты в футере */
body .footer-col-title,
body .footer-newsletter-label,
body .footer-live-item-label,
body .events-kicker,
body .events-formats-label {
    color: var(--walnut-light) !important;
}

body .footer-quote-attr,
body .footer-brand-sub,
body .footer-newsletter p,
body .footer-address,
body .footer-live-title,
body .footer-bottom {
    opacity: 0.75;
}

/* Сброс типографики, которую Elementor Kit может применять к ссылкам */
body .nav a,
body .nav-logo,
body .btn,
body .afisha-item,
body .activities-row,
body .activities-expand-cta,
body .events-cta,
body .footer-col a,
body .footer-bottom-links a,
body .story-footnote a,
body .map-yandex-cta,
body .gallery-cta {
    text-decoration: none;
}

body .btn,
body .events-cta,
body .map-yandex-cta,
body .activities-expand-cta,
body .gallery-cta,
body .nav-cta {
    font-family: inherit;
}

/* Кнопки основного CTA — гарантируем цвета */
body .btn-primary {
    background: var(--ink);
    color: var(--bone);
}

body .btn-ghost {
    background: transparent;
    color: var(--ink);
    border: 1px solid var(--line);
}

/* Списки внутри наших секций — убираем Elementor-стили */
body .why-grid ul,
body .events-formats ul,
body .activities-expand-list,
body .footer-col ul,
body .footer-main-inner ul {
    list-style: none;
    padding-left: 0;
}

/* Img в секциях — защита от Elementor Kit (не задевает логотипы!) */
body .hero-photo-img,
body .activities-preview-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Логотипы — защита от глобального img { height: auto } из Elementor Kit.
   Специфичность выше 0,0,2,0 чтобы перебить любые глобальные img-правила. */
body .nav-logo .nav-logo-img,
body.rosha-home .nav-logo-img,
body .nav .nav-logo-img {
    height: 72px;
    width: auto;
    max-width: none;
    display: block;
}

body .footer .footer-logo-img,
body .footer-main .footer-logo-img,
body.rosha-home .footer-logo-img {
    height: 110px;
    width: auto;
    max-width: none;
    display: block;
}

/* Мобильные размеры лого с той же специфичностью */
@media (max-width: 640px) {
    body .nav-logo .nav-logo-img,
body.rosha-home .nav-logo-img,
body .nav .nav-logo-img {
        height: 56px;
    }
    body .footer .footer-logo-img,
body .footer-main .footer-logo-img,
body.rosha-home .footer-logo-img {
        height: 80px;
    }
}

/* Override для lightmode Hello Elementor (иначе может серый фон) */
body.rosha-home,
body .rosha-homepage {
    background: var(--bone);
}

/* ============================================================
   ВНУТРЕННИЕ СТРАНИЦЫ
   ============================================================ */

/* === Page Header (общая шапка для внутренних страниц) === */
.page-header {
  padding: 180px 48px 100px;
  background:
    radial-gradient(ellipse at 80% 20%, rgba(107, 122, 90, 0.10) 0%, transparent 50%),
    var(--bone);
  border-bottom: 1px solid var(--line);
}

.page-header-inner {
  max-width: 1280px;
  margin: 0 auto;
}

.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--moss);
  margin-bottom: 50px;
}

.breadcrumbs a {
  color: var(--walnut);
  text-decoration: none;
  transition: color 0.3s;
}

.breadcrumbs a:hover { color: var(--ink); }

.breadcrumbs-sep {
  opacity: 0.5;
  font-size: 11px;
}

.breadcrumbs-current {
  color: var(--forest);
  opacity: 0.8;
}

.page-header-kicker {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-size: 14px;
  color: var(--walnut);
  margin-bottom: 24px;
}

.page-header-title {
  font-family: 'Fraunces', serif;
  font-weight: 300;
  font-size: clamp(48px, 7vw, 112px);
  line-height: 0.92;
  letter-spacing: -0.03em;
  color: var(--ink);
  max-width: 1100px;
}

.page-header-title em {
  font-style: italic;
  color: var(--walnut);
}

.page-header-subtitle {
  font-family: 'Fraunces', serif;
  font-weight: 300;
  font-size: clamp(18px, 1.6vw, 22px);
  line-height: 1.5;
  color: var(--forest);
  max-width: 720px;
  margin-top: 28px;
  opacity: 0.85;
}

/* === Single event === */
.single-event { background: var(--bone); }

.event-detail {
  padding: 100px 48px;
}

.event-detail-grid {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 80px;
  max-width: 1280px;
  margin: 0 auto;
  align-items: start;
}

.event-detail-side { position: sticky; top: 100px; }

.event-detail-photo {
  aspect-ratio: 4/5;
  border-radius: 4px;
  overflow: hidden;
  background: var(--cream);
  margin-bottom: 32px;
}

.event-detail-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.event-detail-photo-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    repeating-linear-gradient(45deg, transparent 0, transparent 14px, rgba(91, 69, 48, 0.04) 14px, rgba(91, 69, 48, 0.04) 15px),
    var(--cream);
  color: var(--walnut);
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-size: 22px;
}

.event-detail-info {
  display: flex;
  flex-direction: column;
  margin-bottom: 32px;
  border-top: 1px solid var(--line);
}

.event-detail-info-row {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 20px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
}

.event-detail-info-label {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--walnut);
}

.event-detail-info-value {
  font-family: 'Fraunces', serif;
  font-weight: 300;
  font-size: 18px;
  color: var(--ink);
  line-height: 1.4;
}

.event-detail-info-value small {
  display: block;
  font-size: 13px;
  color: var(--moss);
  font-style: italic;
  margin-top: 4px;
}

.event-detail-past-badge {
  padding: 16px 20px;
  border: 1px dashed var(--line);
  border-radius: 4px;
  text-align: center;
  font-family: 'Fraunces', serif;
  color: var(--moss);
  font-size: 16px;
}

.btn-block {
  display: flex !important;
  width: 100%;
  justify-content: center;
}

.event-detail-content { padding-top: 4px; }

.event-detail-lede {
  font-family: 'Fraunces', serif;
  font-weight: 300;
  font-size: clamp(22px, 2.2vw, 30px);
  line-height: 1.4;
  letter-spacing: -0.01em;
  color: var(--forest);
  margin-bottom: 44px;
  padding-bottom: 44px;
  border-bottom: 1px solid var(--line);
}

.event-detail-body {
  font-size: 17px;
  line-height: 1.7;
  color: var(--forest);
  max-width: 680px;
}

.event-detail-body p { margin-bottom: 24px; }

.event-detail-body h2,
.event-detail-body h3 {
  font-family: 'Fraunces', serif;
  font-weight: 300;
  letter-spacing: -0.02em;
  margin-top: 48px;
  margin-bottom: 20px;
  color: var(--ink);
}

.event-detail-body h2 { font-size: 32px; }
.event-detail-body h3 { font-size: 24px; }

.event-detail-body ul,
.event-detail-body ol {
  margin: 24px 0 24px 20px;
}

.event-detail-body li { margin-bottom: 8px; }

.event-detail-share {
  margin-top: 60px;
  padding-top: 36px;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  align-items: center;
  font-size: 13px;
  color: var(--moss);
}

.event-detail-share span {
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.event-detail-share a {
  color: var(--walnut);
  text-decoration: none;
  border-bottom: 1px solid var(--walnut);
  padding-bottom: 2px;
  transition: all 0.3s;
}

.event-detail-share a:hover {
  color: var(--ink);
  border-color: var(--ink);
}

.event-related {
  padding: 80px 48px 120px;
  background: var(--cream);
}

.event-related .section-header {
  max-width: 1280px;
  margin: 0 auto 40px;
}

.event-related .afisha-list {
  max-width: 1280px;
  margin: 0 auto;
}

.event-related-cta {
  text-align: center;
  margin-top: 50px;
}

/* === Archive event === */
.archive-event { background: var(--bone); }

.archive-event-content {
  max-width: 1280px;
  margin: 0 auto;
  padding: 60px 48px 120px;
}

.archive-event-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 40px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.archive-event-filter {
  padding: 10px 20px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--forest);
  text-decoration: none;
  transition: all 0.3s;
}

.archive-event-filter:hover {
  border-color: var(--walnut);
  color: var(--walnut);
}

.archive-event-filter.is-active {
  background: var(--ink);
  color: var(--bone);
  border-color: var(--ink);
}

.afisha-list-archive .afisha-item.is-past {
  opacity: 0.5;
}

.afisha-list-archive .afisha-item.is-past:hover { opacity: 0.85; }

.afisha-empty {
  padding: 80px 0;
  text-align: center;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.afisha-empty-title {
  font-family: 'Fraunces', serif;
  font-size: clamp(32px, 4vw, 48px);
  margin-bottom: 16px;
  font-weight: 300;
}

.afisha-empty-title em {
  font-style: italic;
  color: var(--walnut);
}

.afisha-empty-desc {
  font-size: 16px;
  color: var(--moss);
  max-width: 480px;
  margin: 0 auto;
}

/* === Contacts page === */
.page-contacts { background: var(--bone); }

.contacts-content {
  max-width: 1400px;
  margin: 0 auto;
  padding: 80px 48px 120px;
}

.contacts-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 60px;
  align-items: start;
}

.contacts-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.contact-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 28px 24px;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 4px;
  text-decoration: none;
  color: inherit;
  transition: all 0.3s;
  min-height: 150px;
}

.contact-card:hover:not(.contact-card-static) {
  background: var(--cream-deep);
  border-color: var(--walnut);
  transform: translateY(-2px);
}

.contact-card-static { cursor: default; }

.contact-card-label {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--walnut);
}

.contact-card-value {
  font-family: 'Fraunces', serif;
  font-weight: 300;
  font-size: 22px;
  letter-spacing: -0.01em;
  color: var(--ink);
  line-height: 1.3;
  flex: 1;
}

.contact-card-value small {
  display: block;
  font-size: 13px;
  color: var(--moss);
  margin-top: 6px;
  font-style: italic;
}

.contact-card-hint {
  font-size: 12px;
  color: var(--moss);
  font-style: italic;
}

.contact-card-accent {
  background: var(--ink);
  border-color: var(--ink);
}

.contact-card-accent .contact-card-label,
.contact-card-accent .contact-card-value,
.contact-card-accent .contact-card-hint {
  color: var(--bone);
}

.contact-card-accent .contact-card-label { color: var(--walnut-light); }
.contact-card-accent:hover {
  background: var(--forest);
  border-color: var(--forest);
}

.contacts-map {
  position: sticky;
  top: 100px;
  aspect-ratio: 4/5;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--cream);
}

.contacts-map iframe {
  display: block;
  filter: grayscale(25%) sepia(6%) saturate(85%);
}

.contacts-extra {
  padding: 60px 48px 80px;
  background: var(--cream);
}

.contacts-extra-inner {
  max-width: 720px;
  margin: 0 auto;
  font-size: 17px;
  line-height: 1.7;
  color: var(--forest);
}

/* === Text page (Эко-дела, Правила и т.д.) === */
.page-text { background: var(--bone); }

.page-text-content {
  padding: 80px 48px;
}

.page-text-inner {
  max-width: 720px;
  margin: 0 auto;
  font-size: 17px;
  line-height: 1.75;
  color: var(--forest);
}

.page-text-inner > * + * { margin-top: 24px; }

.page-text-inner h2 {
  font-family: 'Fraunces', serif;
  font-weight: 300;
  font-size: clamp(28px, 3vw, 40px);
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-top: 56px;
}

.page-text-inner h2 em {
  font-style: italic;
  color: var(--walnut);
}

.page-text-inner h3 {
  font-family: 'Fraunces', serif;
  font-weight: 300;
  font-size: clamp(22px, 2.2vw, 28px);
  letter-spacing: -0.015em;
  color: var(--ink);
  margin-top: 40px;
}

.page-text-inner ul,
.page-text-inner ol {
  margin-left: 22px;
}

.page-text-inner li { margin-bottom: 8px; }

.page-text-inner a {
  color: var(--walnut);
  border-bottom: 1px solid var(--walnut);
  text-decoration: none;
  transition: all 0.3s;
}

.page-text-inner a:hover {
  color: var(--ink);
  border-color: var(--ink);
}

.page-text-inner blockquote {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-size: clamp(22px, 2.4vw, 28px);
  line-height: 1.4;
  color: var(--ink);
  border-left: 2px solid var(--walnut);
  padding: 8px 0 8px 28px;
  margin: 40px 0;
}

.page-text-inner img {
  max-width: 100%;
  height: auto;
  border-radius: 3px;
  margin: 32px 0;
}

.page-text-cta {
  padding: 100px 48px 120px;
  background: var(--cream);
  text-align: center;
}

.page-text-cta-inner { max-width: 680px; margin: 0 auto; }

.page-text-cta-title {
  font-family: 'Fraunces', serif;
  font-weight: 300;
  font-size: clamp(36px, 4vw, 56px);
  line-height: 1;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  color: var(--ink);
}

.page-text-cta-title em {
  font-style: italic;
  color: var(--walnut);
}

.page-text-cta p {
  font-family: 'Fraunces', serif;
  font-size: 18px;
  color: var(--forest);
}

/* === 404 === */
.page-404 {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 140px 48px 80px;
  background:
    radial-gradient(ellipse at 80% 20%, rgba(107, 122, 90, 0.10) 0%, transparent 50%),
    var(--bone);
}

.page-404-inner {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.page-404-num {
  font-family: 'Fraunces', serif;
  font-weight: 300;
  font-style: italic;
  font-size: clamp(140px, 18vw, 280px);
  line-height: 0.85;
  letter-spacing: -0.05em;
  color: var(--walnut);
  opacity: 0.4;
}

.page-404-title {
  font-family: 'Fraunces', serif;
  font-weight: 300;
  font-size: clamp(44px, 6vw, 88px);
  line-height: 0.95;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin-top: 20px;
  margin-bottom: 30px;
}

.page-404-title em {
  font-style: italic;
  color: var(--walnut);
}

.page-404-desc {
  font-family: 'Fraunces', serif;
  font-size: 19px;
  color: var(--forest);
  margin-bottom: 60px;
  opacity: 0.85;
}

.page-404-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-top: 1px solid var(--line);
  margin-bottom: 50px;
  text-align: left;
}

.page-404-link {
  padding: 24px 32px;
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
  text-decoration: none;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: background 0.3s;
}

.page-404-link:nth-child(2n) { border-right: none; }

.page-404-link:hover { background: rgba(91, 69, 48, 0.04); }

.page-404-link-num {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-size: 13px;
  color: var(--walnut);
}

.page-404-link-text {
  font-family: 'Fraunces', serif;
  font-size: 22px;
  letter-spacing: -0.01em;
}

.page-404-search form {
  display: flex;
  gap: 12px;
  max-width: 480px;
  margin: 0 auto;
  border-bottom: 1px solid var(--line);
  padding-bottom: 6px;
}

.page-404-search input {
  flex: 1;
  border: 0;
  background: transparent;
  font-size: 16px;
  padding: 12px 4px;
  font-family: inherit;
  outline: none;
  color: var(--ink);
}

.page-404-search button {
  background: transparent;
  border: 0;
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-size: 18px;
  color: var(--walnut);
  cursor: pointer;
  padding: 12px 8px;
}

/* === Search === */
.page-search { background: var(--bone); }

.search-content {
  max-width: 1080px;
  margin: 0 auto;
  padding: 60px 48px 120px;
}

.search-form-wrap { margin-bottom: 60px; }

.search-form-large {
  display: flex;
  gap: 16px;
  border-bottom: 2px solid var(--ink);
  padding-bottom: 8px;
}

.search-form-large input {
  flex: 1;
  border: 0;
  background: transparent;
  font-family: 'Fraunces', serif;
  font-size: clamp(24px, 3vw, 40px);
  font-weight: 300;
  letter-spacing: -0.02em;
  outline: none;
  color: var(--ink);
}

.search-form-large button {
  background: transparent;
  border: 0;
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-size: clamp(20px, 2vw, 28px);
  color: var(--walnut);
  cursor: pointer;
}

.search-results {
  border-top: 1px solid var(--line);
}

.search-result-item {
  display: grid;
  grid-template-columns: 120px 1fr auto;
  gap: 32px;
  padding: 32px 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
  align-items: start;
  transition: padding 0.3s;
}

.search-result-item:hover { padding-left: 16px; }

.search-result-type {
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--walnut);
  padding-top: 6px;
}

.search-result-title {
  font-family: 'Fraunces', serif;
  font-weight: 300;
  font-size: clamp(22px, 2.2vw, 30px);
  letter-spacing: -0.015em;
  margin-bottom: 8px;
  color: var(--ink);
}

.search-result-excerpt {
  font-size: 15px;
  line-height: 1.5;
  color: var(--moss);
  max-width: 720px;
}

.search-result-arrow {
  font-family: 'Fraunces', serif;
  font-size: 22px;
  color: var(--walnut);
  padding-top: 6px;
  transition: transform 0.3s;
}

.search-result-item:hover .search-result-arrow { transform: translateX(6px); }

.search-empty {
  padding: 80px 0;
  text-align: center;
}

.search-empty-title {
  font-family: 'Fraunces', serif;
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 300;
  margin-bottom: 16px;
}

.search-empty-title em {
  font-style: italic;
  color: var(--walnut);
}

.search-empty-desc {
  color: var(--moss);
  max-width: 520px;
  margin: 0 auto;
  font-size: 16px;
}

.search-pagination {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 60px;
  flex-wrap: wrap;
}

.search-pagination a,
.search-pagination span {
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 4px;
  font-size: 13px;
  text-decoration: none;
  color: var(--forest);
  transition: all 0.3s;
}

.search-pagination a:hover { border-color: var(--ink); color: var(--ink); }

.search-pagination .current {
  background: var(--ink);
  color: var(--bone);
  border-color: var(--ink);
}

/* === Адаптив для всех внутренних страниц === */
@media (max-width: 1024px) {
  .event-detail-grid { grid-template-columns: 1fr; gap: 40px; }
  .event-detail-side { position: static; }
  .contacts-grid { grid-template-columns: 1fr; gap: 40px; }
  .contacts-map { position: static; aspect-ratio: 4/3; }
  .page-header { padding: 140px 32px 80px; }

  .event-detail { padding: 80px 32px; }
  .event-related { padding: 70px 32px 100px; }
  .archive-event-content { padding: 50px 32px 100px; }
  .contacts-content { padding: 60px 32px 100px; }
  .contacts-extra { padding: 50px 32px 70px; }
  .page-text-content { padding: 60px 32px; }
  .page-text-cta { padding: 80px 32px 100px; }
  .page-404 { padding: 130px 32px 80px; }
  .search-content { padding: 50px 32px 100px; }

  .contacts-cards { gap: 12px; }
  .contact-card { min-height: 130px; padding: 24px 22px; }
}

@media (max-width: 640px) {
  .page-header { padding: 110px 20px 60px; }
  .breadcrumbs { margin-bottom: 32px; gap: 8px; font-size: 11px; }
  .event-detail { padding: 60px 20px; }
  .event-detail-photo { aspect-ratio: 4/3; }
  .event-detail-info-row { grid-template-columns: 1fr; gap: 6px; padding: 14px 0; }
  .event-related { padding: 60px 20px 80px; }
  .archive-event-content { padding: 40px 20px 80px; }
  .archive-event-filters { gap: 6px; }
  .archive-event-filter { padding: 8px 14px; font-size: 11px; }
  .contacts-content { padding: 60px 20px 80px; }
  .contacts-cards { grid-template-columns: 1fr; }
  .contact-card { min-height: 130px; padding: 22px 20px; }
  .contacts-extra { padding: 50px 20px 70px; }
  .page-text-content { padding: 50px 20px; }
  .page-text-cta { padding: 70px 20px 90px; }
  .page-404 { padding: 110px 20px 60px; }
  .page-404-links { grid-template-columns: 1fr; }
  .page-404-link { border-right: none; padding: 20px 24px; }
  .search-content { padding: 40px 20px 80px; }
  .search-result-item { grid-template-columns: 1fr; gap: 8px; padding: 24px 0; }
  .search-result-item:hover { padding-left: 0; }
}

/* ============================================================
   ФОРМА-МОДАЛКА + WHATSAPP FAB
   ============================================================ */

.rosha-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.rosha-modal[hidden] { display: none; }

.rosha-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(26, 31, 26, 0.7);
  backdrop-filter: blur(4px);
}

.rosha-modal-window {
  position: relative;
  background: var(--bone);
  border-radius: 6px;
  max-width: 560px;
  width: 100%;
  max-height: 92vh;
  overflow-y: auto;
  padding: 50px 50px 40px;
  box-shadow: 0 25px 80px -10px rgba(0, 0, 0, 0.5);
  animation: roshaModalIn 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes roshaModalIn {
  from { opacity: 0; transform: translateY(20px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.rosha-modal-close {
  position: absolute;
  top: 14px;
  right: 18px;
  background: transparent;
  border: 0;
  font-size: 32px;
  color: var(--moss);
  cursor: pointer;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transition: color 0.3s, transform 0.3s;
  font-family: inherit;
}

.rosha-modal-close:hover {
  color: var(--ink);
  transform: rotate(90deg);
}

.rosha-modal-header { margin-bottom: 30px; }

.rosha-modal-kicker {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-size: 13px;
  color: var(--walnut);
  margin-bottom: 14px;
}

.rosha-modal-title {
  font-family: 'Fraunces', serif;
  font-weight: 300;
  font-size: clamp(28px, 3.5vw, 40px);
  line-height: 1;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin-bottom: 12px;
}

.rosha-modal-desc {
  font-size: 15px;
  line-height: 1.5;
  color: var(--forest);
  opacity: 0.85;
}

.rosha-form-row {
  margin-bottom: 18px;
  display: flex;
  flex-direction: column;
}

.rosha-form-row label {
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--walnut);
  margin-bottom: 8px;
}

.rosha-form-row label small {
  text-transform: none;
  letter-spacing: 0;
  font-size: 12px;
  font-style: italic;
  color: var(--moss);
  opacity: 0.7;
  margin-left: 4px;
}

.rosha-form-row input,
.rosha-form-row textarea {
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  font-family: inherit;
  font-size: 16px;
  color: var(--ink);
  padding: 10px 0;
  outline: none;
  transition: border-color 0.3s;
  resize: vertical;
}

.rosha-form-row input::placeholder,
.rosha-form-row textarea::placeholder {
  color: var(--moss);
  opacity: 0.55;
  font-style: italic;
}

.rosha-form-row input:focus,
.rosha-form-row textarea:focus {
  border-bottom-color: var(--ink);
}

.rosha-form-row input:invalid:not(:placeholder-shown) {
  border-bottom-color: #b94e4e;
}

.rosha-form-actions {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 30px;
  flex-wrap: wrap;
}

.rosha-form-submit {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  background: var(--ink);
  color: var(--bone);
  border: 0;
  border-radius: 999px;
  font-family: inherit;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s;
}

.rosha-form-submit:hover {
  background: var(--walnut);
  transform: translateY(-1px);
}

.rosha-form-submit:disabled {
  opacity: 0.5;
  cursor: wait;
}

.rosha-form-submit span {
  font-family: 'Fraunces', serif;
  font-size: 16px;
  font-style: italic;
}

.rosha-form-wa {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-size: 14px;
  color: var(--walnut);
  text-decoration: none;
  border-bottom: 1px solid var(--walnut);
  padding-bottom: 2px;
  transition: all 0.3s;
}

.rosha-form-wa:hover {
  color: var(--ink);
  border-bottom-color: var(--ink);
}

.rosha-form-status {
  margin-top: 18px;
  font-size: 13px;
  line-height: 1.5;
  padding: 10px 0;
}

.rosha-form-status.is-error { color: #b94e4e; }
.rosha-form-status.is-success {
  color: var(--forest);
  font-family: 'Fraunces', serif;
  font-size: 15px;
  font-style: italic;
}

.rosha-form-policy {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 11px;
  color: var(--moss);
  line-height: 1.5;
}

@media (max-width: 640px) {
  .rosha-modal-window { padding: 40px 24px 30px; }
  .rosha-form-actions { flex-direction: column; align-items: flex-start; gap: 14px; }
  .rosha-form-submit { width: 100%; justify-content: center; }
}

/* ============================================================
   ЗАЩИТА BUTTON-КНОПОК ОТ ELEMENTOR-СТИЛЕЙ
   <button> внутри тем на Hello Elementor получают розовый hover —
   принудительно фиксируем все наши кнопки, чтобы вели себя как <a>.
   ============================================================ */
body button.btn,
body button.nav-cta,
body button.events-cta,
body button[data-form-trigger] {
  font-family: inherit !important;
  cursor: pointer !important;
  -webkit-appearance: none !important;
  appearance: none !important;
  outline: none !important;
}

/* btn-primary — чёрный, при hover walnut */
body button.btn-primary,
body a.btn-primary {
  background: var(--ink) !important;
  color: var(--bone) !important;
  border: 0 !important;
}
body button.btn-primary:hover,
body a.btn-primary:hover,
body button.btn-primary:focus,
body a.btn-primary:focus {
  background: var(--walnut) !important;
  color: var(--bone) !important;
  border: 0 !important;
}

/* btn-ghost — прозрачный с бордером, при hover ink */
body button.btn-ghost,
body a.btn-ghost {
  background: transparent !important;
  color: var(--ink) !important;
  border: 1px solid var(--ink) !important;
}
body button.btn-ghost:hover,
body a.btn-ghost:hover,
body button.btn-ghost:focus,
body a.btn-ghost:focus {
  background: var(--ink) !important;
  color: var(--bone) !important;
}

/* btn-ghost на тёмной секции (final-cta) */

/* nav-cta в шапке */
body button.nav-cta,
body a.nav-cta {
  background: var(--ink) !important;
  color: var(--bone) !important;
  border: 0 !important;
}
body button.nav-cta:hover,
body a.nav-cta:hover {
  background: var(--walnut) !important;
  color: var(--bone) !important;
}

/* Шапка на тёмной секции */
body .nav.is-on-dark button.nav-cta,
body .nav.is-on-dark a.nav-cta {
  background: var(--bone) !important;
  color: var(--ink) !important;
}
body .nav.is-on-dark button.nav-cta:hover,
body .nav.is-on-dark a.nav-cta:hover {
  background: var(--walnut-light) !important;
  color: var(--ink) !important;
}

/* events-cta (на тёмной секции § 02) */
body button.events-cta,
body a.events-cta {
  background: var(--bone) !important;
  color: var(--ink) !important;
  border: 0 !important;
}
body button.events-cta:hover,
body a.events-cta:hover {
  background: var(--walnut-light) !important;
  color: var(--ink) !important;
}

/* form-submit в модалке */
body .rosha-form-submit {
  background: var(--ink) !important;
  color: var(--bone) !important;
  border: 0 !important;
}
body .rosha-form-submit:hover {
  background: var(--walnut) !important;
  color: var(--bone) !important;
}
body .rosha-form-submit:disabled {
  background: var(--moss) !important;
  cursor: wait !important;
}

/* Кнопки внутри гутенберг-контента (на страницах пространств) */
body .page-text-inner button.btn-primary,
body .page-text-inner a.btn-primary {
  background: var(--ink) !important;
  color: var(--bone) !important;
  border: 0 !important;
  text-decoration: none !important;
}
body .page-text-inner button.btn-primary:hover,
body .page-text-inner a.btn-primary:hover {
  background: var(--walnut) !important;
  color: var(--bone) !important;
}

/* ============================================================
   ГЛАВНАЯ V2 — НОВАЯ СТРУКТУРА
   ============================================================ */

/* === Hero V2 — короткий первый экран === */
.hero-v2 {
  padding: 140px 48px 80px;
  background: var(--bone);
  min-height: 70vh;
  display: flex;
  align-items: center;
}

.hero-v2-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 80px;
  align-items: center;
  width: 100%;
}

.hero-v2-title {
  font-family: 'Fraunces', serif;
  font-weight: 300;
  font-size: clamp(48px, 7vw, 96px);
  line-height: 0.95;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin-bottom: 28px;
}

.hero-v2-title em {
  font-style: italic;
  color: var(--walnut);
}

.hero-v2-lede {
  font-family: 'Fraunces', serif;
  font-weight: 300;
  font-size: clamp(18px, 1.6vw, 22px);
  line-height: 1.5;
  color: var(--forest);
  margin-bottom: 36px;
  max-width: 540px;
}

.hero-v2-ctas {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-v2-photo {
  aspect-ratio: 4/5;
  border-radius: 4px;
  overflow: hidden;
  background: var(--cream);
}

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

/* === Quick facts — быстрые плашки === */
.quick-facts {
  padding: 0 48px 60px;
  background: var(--bone);
}

.quick-facts-grid {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  border-top: 1px solid var(--line);
  padding-top: 36px;
}

.quick-fact {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px 22px;
  background: var(--cream);
  border-radius: 4px;
  text-decoration: none;
  color: inherit;
  transition: all 0.3s;
}

.quick-fact-label {
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--walnut);
}

.quick-fact-value {
  font-family: 'Fraunces', serif;
  font-weight: 300;
  font-size: 18px;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.quick-fact-link {
  background: var(--ink);
}

.quick-fact-link .quick-fact-label { color: var(--walnut-light); }
.quick-fact-link .quick-fact-value {
  color: var(--bone);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.quick-fact-link:hover {
  background: var(--forest);
  transform: translateY(-2px);
}

.quick-fact-arrow {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-size: 20px;
  color: var(--walnut-light);
}

/* === Things to do — 4 сценария === */
.things-to-do {
  padding: 100px 48px;
  background: var(--cream);
}

.things-to-do-header {
  max-width: 1280px;
  margin: 0 auto 60px;
}

.things-to-do-title {
  font-family: 'Fraunces', serif;
  font-weight: 300;
  font-size: clamp(40px, 5vw, 72px);
  line-height: 0.95;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.things-to-do-title em {
  font-style: italic;
  color: var(--walnut);
}

.things-to-do-subtitle {
  font-family: 'Fraunces', serif;
  font-weight: 300;
  font-size: clamp(17px, 1.4vw, 20px);
  color: var(--forest);
  margin-top: 16px;
  opacity: 0.85;
}

.things-to-do-grid {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.ttd-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  background: var(--bone);
  border-radius: 6px;
  transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  height: 100%;
}

.ttd-card-body {
  padding: 24px 22px 28px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.ttd-card-desc {
  font-size: 14px;
  line-height: 1.55;
  color: var(--moss);
  margin-bottom: 18px;
}

.ttd-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px -8px rgba(91, 69, 48, 0.25);
}

.ttd-card-photo {
  aspect-ratio: 4/5;
  overflow: hidden;
  background: var(--cream-deep);
  border-radius: 6px 6px 0 0;
}

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

.ttd-card:hover .ttd-card-img { transform: scale(1.05); }

.ttd-card-kicker {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-size: 13px;
  color: var(--walnut);
  margin-bottom: 12px;
}

.ttd-card-title {
  font-family: 'Fraunces', serif;
  font-weight: 300;
  font-size: clamp(22px, 1.8vw, 28px);
  line-height: 1.1;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin-bottom: 12px;
}

.ttd-card-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-size: 15px;
  color: var(--walnut);
  margin-top: auto;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

/* === Spaces — упрощённые карточки территории === */
.spaces {
  padding: 100px 48px;
  background: var(--bone);
}

.spaces-header {
  max-width: 1280px;
  margin: 0 auto 50px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: end;
}

.spaces-title {
  font-family: 'Fraunces', serif;
  font-weight: 300;
  font-size: clamp(40px, 5vw, 72px);
  line-height: 0.95;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.spaces-title em {
  font-style: italic;
  color: var(--walnut);
}

.spaces-subtitle {
  font-family: 'Fraunces', serif;
  font-weight: 300;
  font-size: clamp(17px, 1.4vw, 20px);
  color: var(--forest);
  opacity: 0.85;
  max-width: 420px;
}

.spaces-grid {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.space-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  background: var(--cream);
  border-radius: 6px;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.space-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 32px -8px rgba(91, 69, 48, 0.2);
}

.space-card-photo {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--cream-deep);
}

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

.space-card:hover .space-card-img { transform: scale(1.05); }

.space-card-chip {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 6px 12px;
  background: rgba(243, 238, 228, 0.92);
  backdrop-filter: blur(8px);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
  border-radius: 999px;
}

.space-card-body {
  padding: 22px 22px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.space-card-title {
  font-family: 'Fraunces', serif;
  font-weight: 300;
  font-size: clamp(22px, 1.8vw, 28px);
  letter-spacing: -0.015em;
  color: var(--ink);
}

.space-card-cta {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-size: 14px;
  color: var(--walnut);
  white-space: nowrap;
  transition: transform 0.3s;
}

.space-card:hover .space-card-cta { transform: translateX(4px); }

/* === Как добраться (howto) === */
.howto {
  padding: 100px 48px;
  background: var(--cream);
}

.howto-header {
  max-width: 1280px;
  margin: 0 auto 50px;
}

.howto-title {
  font-family: 'Fraunces', serif;
  font-weight: 300;
  font-size: clamp(40px, 5vw, 72px);
  line-height: 0.95;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.howto-title em {
  font-style: italic;
  color: var(--walnut);
}

.howto-grid {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 48px;
  align-items: start;
}

.howto-map {
  aspect-ratio: 4/3;
  border-radius: 6px;
  overflow: hidden;
  position: relative;
  background: var(--cream-deep);
  border: 1px solid var(--line);
}

.howto-map iframe {
  display: block;
  filter: grayscale(20%) sepia(4%);
}

.howto-info {
  display: flex;
  flex-direction: column;
}

.howto-info-row {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 20px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
}

.howto-info-row:first-child { padding-top: 0; }

.howto-info-label {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--walnut);
}

.howto-info-value {
  font-family: 'Fraunces', serif;
  font-weight: 300;
  font-size: 17px;
  line-height: 1.45;
  color: var(--ink);
}

.howto-info-value small {
  display: block;
  font-size: 14px;
  color: var(--moss);
  font-style: italic;
  margin-top: 4px;
}

.howto-info-value a {
  color: var(--walnut);
  text-decoration: none;
  border-bottom: 1px solid var(--walnut);
  padding-bottom: 1px;
}

/* === Final CTA V2 === */

.btn-ghost-light {
  color: var(--bone) !important;
  border-color: rgba(243, 238, 228, 0.4) !important;
  background: transparent !important;
}

.btn-ghost-light:hover {
  background: var(--bone) !important;
  color: var(--ink) !important;
  border-color: var(--bone) !important;
}

/* ============================================================
   АДАПТИВ V2
   ============================================================ */
@media (max-width: 1024px) {
  .hero-v2 { padding: 130px 32px 60px; }
  .hero-v2-inner { grid-template-columns: 1fr; gap: 50px; }
  .hero-v2-photo { aspect-ratio: 16/10; }

  .quick-facts { padding: 0 32px 50px; }
  .quick-facts-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }

  .things-to-do { padding: 80px 32px; }
  .things-to-do-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }

  .spaces { padding: 80px 32px; }
  .spaces-header { grid-template-columns: 1fr; gap: 16px; margin-bottom: 40px; }
  .spaces-grid { grid-template-columns: repeat(2, 1fr); gap: 18px; }

  .howto { padding: 80px 32px; }
  .howto-grid { grid-template-columns: 1fr; gap: 32px; }
  .howto-map { aspect-ratio: 16/10; }

  
}

@media (max-width: 640px) {
  .hero-v2 { padding: 110px 20px 50px; min-height: auto; }
  .hero-v2-inner { gap: 36px; }
  .hero-v2-title { margin-bottom: 20px; }
  .hero-v2-lede { margin-bottom: 28px; }
  .hero-v2-ctas { flex-direction: column; gap: 10px; }
  .hero-v2-ctas .btn { width: 100%; justify-content: center; }
  .hero-v2-photo { aspect-ratio: 4/3; }

  .quick-facts { padding: 0 20px 40px; }
  .quick-facts-grid { grid-template-columns: 1fr; gap: 10px; padding-top: 28px; }
  .quick-fact { padding: 16px 18px; }

  .things-to-do { padding: 70px 20px; }
  .things-to-do-header { margin-bottom: 36px; }
  .things-to-do-grid { grid-template-columns: 1fr; gap: 16px; }
  .ttd-card-photo { aspect-ratio: 16/10; }
  .ttd-card-body { padding: 20px; }

  .spaces { padding: 70px 20px; }
  .spaces-grid { grid-template-columns: 1fr; gap: 14px; }
  .space-card-photo { aspect-ratio: 16/10; }
  .space-card-body { padding: 18px 20px 20px; }

  .howto { padding: 70px 20px; }
  .howto-info-row { grid-template-columns: 1fr; gap: 6px; padding: 14px 0; }
  .howto-info-row:first-child { padding-top: 0; }

  
  
  
  
  
}

/* Afisha — кнопка «Вся афиша» */
.afisha-footer {
  max-width: 1280px;
  margin: 40px auto 0;
  display: flex;
  justify-content: center;
}
@media (max-width: 640px) {
  .afisha-footer { margin-top: 32px; }
  .afisha-footer .btn { width: 100%; justify-content: center; }
}

/* === Страница «Территория» — хаб === */
.rosha-territory-page .spaces-page {
  padding-top: 60px;
}

.page-text-cta {
  padding: 100px 48px;
  background: var(--cream);
  border-top: 1px solid var(--line);
}

.page-text-cta-inner {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.page-text-cta-title {
  font-family: 'Fraunces', serif;
  font-weight: 300;
  font-size: clamp(32px, 4vw, 56px);
  line-height: 1;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin-bottom: 18px;
}

.page-text-cta-title em {
  font-style: italic;
  color: var(--walnut);
}

.page-text-cta-desc {
  font-family: 'Fraunces', serif;
  font-weight: 300;
  font-size: clamp(17px, 1.3vw, 19px);
  color: var(--forest);
  margin-bottom: 36px;
  opacity: 0.85;
}

.page-text-cta-buttons {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

@media (max-width: 640px) {
  .page-text-cta { padding: 70px 20px; }
  .page-text-cta-title { margin-bottom: 14px; }
  .page-text-cta-desc { margin-bottom: 28px; }
  .page-text-cta-buttons { flex-direction: column; }
  .page-text-cta-buttons .btn { width: 100%; justify-content: center; }
}

/* Final CTA — кнопки контрастнее на тёмном фоне */

/* Button-карточка things-to-do — растягиваем на 100% ширины grid-ячейки */
body button.ttd-card {
  width: 100% !important;
  padding: 0 !important;
  font: inherit !important;
  text-align: left !important;
  background: var(--bone) !important;
  border: 0 !important;
  cursor: pointer !important;
  box-sizing: border-box !important;
  color: inherit !important;
  display: flex !important;
  flex-direction: column !important;
  height: 100% !important;
}
body button.ttd-card:hover {
  background: var(--bone) !important;
}
body button.ttd-card .ttd-card-body {
  width: 100%;
  box-sizing: border-box;
}

/* Final CTA — жёсткие стили текста против Elementor Kit */

/* Карточки things-to-do — принудительный перенос текста */
.ttd-card-title,
.ttd-card-desc,
.ttd-card-cta,
.ttd-card-kicker {
  word-wrap: break-word;
  overflow-wrap: break-word;
  word-break: normal;
  white-space: normal;
  max-width: 100%;
  min-width: 0;
}

/* Тело карточки — на полную ширину, без min-width */
.ttd-card-body {
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

/* Для button-карточки специальные стили — снимаем UA-overflow */
body button.ttd-card {
  min-width: 0 !important;
}
body button.ttd-card .ttd-card-body {
  min-width: 0 !important;
  width: 100% !important;
}

/* =====================================================================
   ЖЁСТКИЕ ФИКСЫ ПРОТИВ ELEMENTOR KIT
   ===================================================================== */

/* 1. Button.ttd-card — Elementor делает кнопки pill (border-radius:999px)
   из-за чего низ карточки получает огромное скругление. Принудительно 6px. */
body button.ttd-card,
html body button.ttd-card,
.rosha-homepage button.ttd-card {
  border-radius: 6px !important;
  overflow: visible !important;
  box-shadow: none !important;
}

/* 2. Модалка — крестик закрытия. Elementor рисует розовый hover на button.
   Жёстко убираем и делаем нормальные паддинги. */
body button.rosha-modal-close,
html body .rosha-modal button.rosha-modal-close {
  background: transparent !important;
  background-color: transparent !important;
  border: 0 !important;
  border-radius: 50% !important;
  box-shadow: none !important;
  color: var(--moss) !important;
  width: 44px !important;
  height: 44px !important;
  padding: 0 !important;
  top: 12px !important;
  right: 12px !important;
  font-size: 28px !important;
  line-height: 1 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  transition: all 0.25s !important;
}

body button.rosha-modal-close:hover,
body button.rosha-modal-close:focus,
html body .rosha-modal button.rosha-modal-close:hover,
html body .rosha-modal button.rosha-modal-close:focus {
  background: rgba(0, 0, 0, 0.06) !important;
  background-color: rgba(0, 0, 0, 0.06) !important;
  color: var(--ink) !important;
  border: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;
  transform: rotate(90deg) !important;
}

/* 3. CTA финал — текст. Тройная защита через тег + класс + !important */

/* =====================================================================
   ROSHA CTA — в стилистике сайта, с фоновой картинкой
   ===================================================================== */

.rosha-cta {
  position: relative;
  padding: 140px 48px;
  background-color: #1a1f1a;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  text-align: center;
  overflow: hidden;
  isolation: isolate;
}

.rosha-cta-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(26, 31, 26, 0.55) 0%, rgba(26, 31, 26, 0.75) 100%);
  pointer-events: none;
}

.rosha-cta-inner {
  position: relative;
  z-index: 2;
  max-width: 720px;
  margin: 0 auto;
}

.rosha-cta-kicker {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-size: 14px;
  letter-spacing: 0.02em;
  color: #e8c896;
  margin-bottom: 28px;
  opacity: 0.95;
}

.rosha-cta-title {
  font-family: 'Fraunces', serif;
  font-weight: 300;
  font-size: clamp(40px, 6vw, 78px);
  line-height: 1.02;
  letter-spacing: -0.025em;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  margin: 0 0 28px;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.55);
}

.rosha-cta-title em {
  font-style: italic;
  color: #e8c896 !important;
  -webkit-text-fill-color: #e8c896 !important;
  font-weight: 300;
}

.rosha-cta-lede {
  font-family: 'Fraunces', serif;
  font-weight: 300;
  font-style: italic;
  font-size: clamp(17px, 1.4vw, 21px);
  line-height: 1.5;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  margin: 0 0 44px;
  opacity: 0.9;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.5);
}

.rosha-cta-buttons {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.rosha-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 30px;
  border-radius: 999px;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  transition: all 0.35s ease;
  cursor: pointer;
  white-space: nowrap;
}

.rosha-cta-btn-primary {
  background: #f3eee4;
  color: #1a1f1a;
  border: 1px solid #f3eee4;
}
.rosha-cta-btn-primary:hover {
  background: #e8c896;
  color: #1a1f1a;
  border-color: #e8c896;
  transform: translateY(-2px);
}

.rosha-cta-btn-ghost {
  background: transparent;
  color: #f3eee4;
  border: 1px solid rgba(243, 238, 228, 0.45);
}
.rosha-cta-btn-ghost:hover {
  background: #f3eee4;
  color: #1a1f1a;
  border-color: #f3eee4;
  transform: translateY(-2px);
}

.rosha-cta-arrow {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-size: 16px;
  letter-spacing: 0;
}

@media (max-width: 1024px) {
  .rosha-cta { padding: 110px 32px; }
}

@media (max-width: 640px) {
  .rosha-cta { padding: 90px 20px; }
  .rosha-cta-kicker { margin-bottom: 20px; }
  .rosha-cta-title { margin-bottom: 20px; }
  .rosha-cta-lede { margin-bottom: 32px; }
  .rosha-cta-buttons { flex-direction: column; gap: 10px; }
  .rosha-cta-btn { width: 100%; justify-content: center; }
}

/* =====================================================================
   ФИКС МОБИЛЬНЫХ ЗАГОЛОВКОВ (iPhone/Safari)
   Слово "территории" в italic не помещалось — уменьшаем размер на узких
   экранах и принудительно разрешаем перенос длинных слов.
   ===================================================================== */
@media (max-width: 640px) {
  .spaces-title,
  .things-to-do-title,
  .howto-title,
  .hero-v2-title {
    font-size: clamp(28px, 8vw, 40px) !important;
    line-height: 1.05 !important;
    word-break: break-word !important;
    overflow-wrap: break-word !important;
    hyphens: none !important;
    max-width: 100%;
    text-align: left !important;
    text-align-last: left !important;
    text-justify: none !important;
    word-spacing: normal !important;
  }

  .spaces-title em,
  .things-to-do-title em,
  .howto-title em,
  .hero-v2-title em {
    display: inline !important;
    max-width: none !important;
    word-spacing: normal !important;
    letter-spacing: normal !important;
    text-align: left !important;
  }
}

/* Safari иногда увеличивает текст автоматически — отключаем */
html, body {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

/* =====================================================================
   FRAUNCES — статический шрифт без variable axes.
   Запрещаем браузеру делать synthetic italic (Safari иначе рендерит
   разреженный fake-italic если что-то не догрузилось).
   ===================================================================== */
body {
  font-synthesis: none;
  -webkit-font-synthesis: none;
}

h1, h2, h3,
.hero-v2-title, .spaces-title, .things-to-do-title, .howto-title,
.rosha-cta-title, .section-title, .page-header-title,
.hero-v2-title em, .spaces-title em, .things-to-do-title em,
.howto-title em, .rosha-cta-title em, .section-title em,
.page-header-title em {
  font-feature-settings: 'kern' 1;
  font-kerning: normal;
  letter-spacing: -0.025em;
  font-synthesis: none;
}

/* Italic em — явно ставим letter-spacing и font-style */
.hero-v2-title em,
.spaces-title em,
.things-to-do-title em,
.howto-title em,
.rosha-cta-title em,
.section-title em,
.page-header-title em {
  font-style: italic;
  letter-spacing: -0.015em;
}


/* ============================================================
   iOS Safari heading italic fix v2 — universal mobile
   ============================================================
   Гипотеза: variable-шрифт Fraunces italic в WebKit (Safari iOS) рендерится
   с увеличенными промежутками между буквами для <em>. @supports-гейтированный
   фикс v1 не помог, поэтому здесь:
   1) Применяется на ВСЕХ мобильных (без @supports), победит за счёт позиции в файле
   2) Принудительно inline-block + max-content, чтобы em не мог растягиваться
   3) Подмена font-family на нативный serif italic (Georgia / system) только для <em>
      на мобиле — это обходит баг рендеринга Fraunces italic в WebKit. На десктопе
      Fraunces italic остаётся, на мобильной 640px и ниже включается fallback.
   4) DIAGNOSTIC: тонкая полоска под em, чтобы убедиться что правила достигли клиента.
   --------------------- 2026-05-19 ---------------------
*/
@media (max-width: 1024px) {
  .spaces-title em,
  .things-to-do-title em,
  .howto-title em,
  .hero-v2-title em,
  .rosha-cta-title em,
  .section-title em,
  .page-header-title em {
    display: inline-block !important;
    max-width: max-content !important;
    width: auto !important;
    text-align: left !important;
    text-align-last: left !important;
    -webkit-text-align-last: left !important;
    text-justify: none !important;
    -webkit-text-justify: none !important;
    letter-spacing: 0 !important;
    word-spacing: normal !important;
    font-family: Georgia, "Times New Roman", serif !important;
    font-variation-settings: normal !important;
    -webkit-font-variation-settings: normal !important;
    font-feature-settings: normal !important;
    -webkit-font-feature-settings: normal !important;
    font-stretch: normal !important;
    font-synthesis: none !important;
    -webkit-font-smoothing: antialiased;
  }

  /* Force parent heading to not justify */
  .spaces-title,
  .things-to-do-title,
  .howto-title,
  .hero-v2-title,
  .rosha-cta-title,
  .section-title,
  .page-header-title {
    text-align: left !important;
    text-align-last: left !important;
    -webkit-text-align-last: left !important;
    text-justify: none !important;
    -webkit-text-justify: none !important;
    word-spacing: normal !important;
    letter-spacing: -0.01em !important;
  }
}
