/* Modern editorial layer for Russian Rancho. Loaded after the legacy stylesheet. */
:root {
  --color-bg: #f5efe5;
  --color-bg-alt: #fffdf8;
  --color-primary: #8b1d2c;
  --color-primary-soft: rgba(139, 29, 44, 0.1);
  --color-primary-dark: #701522;
  --color-accent: #c9824f;
  --color-text: #1f2d28;
  --color-text-soft: #626d67;
  --color-border: rgba(34, 72, 60, 0.14);
  --color-forest: #173f35;
  --color-forest-dark: #0d2d26;
  --color-sage: #dfe8dd;
  --color-paper: #fffdf8;
  --color-cream: #f5efe5;
  --radius-card: 28px;
  --shadow-soft: 0 24px 70px rgba(22, 54, 45, 0.12);
  --shadow-card: 0 16px 44px rgba(22, 54, 45, 0.08);
  --transition-fast: 220ms cubic-bezier(0.2, 0.75, 0.3, 1);
  --transition-slow: 650ms cubic-bezier(0.2, 0.75, 0.3, 1);
  --container-width: 1240px;
  --nav-height: 82px;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-height) + 20px);
}

body {
  overflow-x: hidden;
  background:
    radial-gradient(circle at 10% 8%, rgba(201, 130, 79, 0.1), transparent 28rem),
    linear-gradient(180deg, #f8f3eb 0%, var(--color-cream) 45%, #f1eadf 100%);
  color: var(--color-text);
  font-family: "Manrope", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.7;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image: radial-gradient(rgba(23, 63, 53, 0.055) 0.7px, transparent 0.7px);
  background-size: 18px 18px;
  content: "";
  pointer-events: none;
}

::selection {
  background: rgba(139, 29, 44, 0.2);
}

h1,
h2,
h3,
.logo-main,
.trust-number {
  font-family: "Manrope", system-ui, sans-serif;
  font-weight: 300;
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

a,
button,
input,
select,
textarea,
summary {
  -webkit-tap-highlight-color: transparent;
}

:where(a, button, input, select, textarea, summary):focus-visible {
  outline: 3px solid rgba(201, 130, 79, 0.85);
  outline-offset: 3px;
}

.container {
  padding-inline: clamp(20px, 4vw, 48px);
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 16px;
  z-index: 200;
  padding: 11px 16px;
  border-radius: 999px;
  background: var(--color-paper);
  color: var(--color-forest-dark);
  box-shadow: var(--shadow-soft);
  font-weight: 700;
  transform: translateY(-160%);
  transition: transform var(--transition-fast);
}

.skip-link:focus {
  transform: translateY(0);
}

/* Header and navigation */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  border-bottom: 1px solid transparent;
  background: rgba(248, 243, 235, 0.78);
  box-shadow: 0 10px 40px transparent;
  backdrop-filter: blur(18px) saturate(1.2);
  transition:
    background var(--transition-fast),
    border-color var(--transition-fast),
    box-shadow var(--transition-fast),
    transform var(--transition-fast);
}

.site-header.is-scrolled {
  border-color: rgba(23, 63, 53, 0.1);
  background: rgba(255, 253, 248, 0.92);
  box-shadow: 0 12px 40px rgba(22, 54, 45, 0.08);
}

body:has(main > .hero:first-child) .site-header:not(.is-scrolled):not(.nav-open) {
  border-color: transparent;
  background: linear-gradient(180deg, rgba(6, 22, 18, 0.48), rgba(6, 22, 18, 0));
  box-shadow: none;
  backdrop-filter: none;
}

body:has(main > .hero:first-child) .site-header:not(.is-scrolled):not(.nav-open) .logo-main,
body:has(main > .hero:first-child) .site-header:not(.is-scrolled):not(.nav-open) .logo-sub,
body:has(main > .hero:first-child) .site-header:not(.is-scrolled):not(.nav-open) .main-nav > a,
body:has(main > .hero:first-child) .site-header:not(.is-scrolled):not(.nav-open) .nav-more > summary {
  color: #fff;
}

body:has(main > .hero:first-child) .site-header:not(.is-scrolled):not(.nav-open) .logo-mark {
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
}

body:has(main > .hero:first-child) .site-header:not(.is-scrolled):not(.nav-open) .nav-toggle {
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(8, 30, 24, 0.2);
}

body:has(main > .hero:first-child) .site-header:not(.is-scrolled):not(.nav-open) .nav-toggle span {
  background: #fff;
}

.header-inner {
  position: relative;
  height: var(--nav-height);
}

.logo {
  min-width: 228px;
  flex-direction: row;
  align-items: center;
  gap: 11px;
}

.logo-mark {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.48);
  border-radius: 50% 50% 48% 52% / 56% 44% 56% 44%;
  background: var(--color-forest);
  color: #fff;
  box-shadow: 0 8px 18px rgba(23, 63, 53, 0.18);
  font-family: "Lora", Georgia, serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: -0.04em;
  transform: rotate(-4deg);
  animation: logo-organic 9s ease-in-out infinite alternate;
}

.logo-mark img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
}

.logo-copy {
  display: grid;
  gap: 1px;
}

.logo-main {
  color: var(--color-forest-dark);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.06em;
}

.logo-sub {
  color: var(--color-text-soft);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.main-nav {
  gap: 2px;
  font-size: 13px;
  font-weight: 600;
}

.main-nav > a,
.nav-more > summary {
  min-height: 44px;
  padding: 11px 10px;
  border-radius: 999px;
  color: #44524c;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  transition: color var(--transition-fast), background var(--transition-fast), transform var(--transition-fast);
}

.main-nav > a:hover,
.nav-more > summary:hover,
.main-nav > a[aria-current="page"] {
  background: rgba(23, 63, 53, 0.08);
  color: var(--color-forest-dark);
  transform: none;
}

.main-nav > a[aria-current="page"] {
  box-shadow: inset 0 -2px var(--color-accent);
}

.nav-more {
  position: relative;
}

.nav-more > summary {
  list-style: none;
}

.nav-more > summary::-webkit-details-marker {
  display: none;
}

.nav-more > summary::after {
  width: 6px;
  height: 6px;
  margin: -3px 0 0 8px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  content: "";
  transform: rotate(45deg);
  transition: transform var(--transition-fast);
}

.nav-more[open] > summary::after {
  margin-top: 3px;
  transform: rotate(225deg);
}

.nav-more-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  display: grid;
  min-width: 220px;
  padding: 10px;
  border: 1px solid rgba(23, 63, 53, 0.1);
  border-radius: 20px;
  background: rgba(255, 253, 248, 0.98);
  box-shadow: var(--shadow-soft);
}

.nav-more-menu a {
  min-height: 44px;
  padding: 10px 12px;
  border-radius: 12px;
  color: #44524c;
}

.nav-more-menu a:hover,
.nav-more-menu a[aria-current="page"] {
  background: rgba(23, 63, 53, 0.08);
  color: var(--color-forest-dark);
}

.nav-cta {
  min-height: 46px;
  margin-left: 8px;
  padding: 11px 18px;
  border: 0;
  border-radius: 999px;
  background: var(--color-forest);
  box-shadow: 0 10px 28px rgba(23, 63, 53, 0.2);
  color: #fff;
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  transition: background var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
}

.nav-cta:hover {
  background: var(--color-forest-dark);
  box-shadow: 0 14px 32px rgba(23, 63, 53, 0.28);
  transform: translateY(-2px);
}

.nav-toggle {
  width: 46px;
  height: 46px;
  border: 1px solid rgba(23, 63, 53, 0.12);
  border-radius: 50%;
  background: rgba(255, 253, 248, 0.8);
  gap: 5px;
}

.nav-toggle span {
  width: 18px;
  height: 1.5px;
  background: var(--color-forest-dark);
  transition: transform var(--transition-fast), opacity var(--transition-fast);
}

.site-header.nav-open .nav-toggle span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}

.site-header.nav-open .nav-toggle span:nth-child(2) {
  opacity: 0;
}

.site-header.nav-open .nav-toggle span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* Hero */
.hero {
  min-height: min(860px, 100svh);
  padding: calc(var(--nav-height) + 88px) 0 100px;
  color: #fff;
  isolation: isolate;
}

.hero-media,
.hero-ribbon {
  background: var(--color-forest-dark);
}

.hero-video {
  filter: brightness(0.68) saturate(1.03) contrast(1.05);
  transform: scale(1.01);
  animation: hero-camera 24s ease-in-out infinite alternate;
}

.hero-media::before {
  background-image: url("assets/для-пар/zakat-na-rancho-stol-u-vody.c8b703a4a262.png");
  background-position: center;
  filter: saturate(0.9) contrast(1.05);
  opacity: 0.72;
}

.hero-media::after,
.hero-ribbon::after {
  background:
    linear-gradient(90deg, rgba(7, 26, 21, 0.82) 0%, rgba(7, 26, 21, 0.42) 54%, rgba(7, 26, 21, 0.16) 100%),
    linear-gradient(0deg, rgba(7, 26, 21, 0.32), transparent 46%);
  animation: hero-light 12s ease-in-out infinite alternate;
}

.hero-wordmark {
  position: absolute;
  right: -2vw;
  bottom: -0.08em;
  z-index: 1;
  width: max-content;
  margin: 0;
  color: rgba(255, 255, 255, 0.1);
  font-family: "Manrope", system-ui, sans-serif;
  font-size: clamp(76px, 13vw, 210px);
  font-weight: 300;
  letter-spacing: -0.065em;
  line-height: 0.8;
  pointer-events: none;
  text-transform: uppercase;
  transform: translate3d(0, 0, 0);
  white-space: nowrap;
  animation: wordmark-drift 18s ease-in-out infinite alternate;
}

.hero-content {
  z-index: 2;
  max-width: 820px;
  padding-top: 28px;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.15em;
}

.hero-kicker::before {
  width: 28px;
  height: 1px;
  background: var(--color-accent);
  content: "";
}

.hero h1 {
  max-width: 780px;
  margin: 24px 0 22px;
  color: #fff;
  font-size: clamp(48px, 7.4vw, 92px);
  font-family: "Manrope", system-ui, sans-serif;
  font-weight: 300;
  letter-spacing: -0.045em;
  line-height: 1.02;
}

.hero-subtitle {
  max-width: 660px;
  margin: 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.6;
}

.hero-actions {
  gap: 12px;
  margin: 34px 0 12px;
}

.btn {
  min-height: 50px;
  padding: 13px 22px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
}

.btn-primary {
  background: var(--color-primary);
  box-shadow: 0 16px 36px rgba(112, 21, 34, 0.34);
}

.btn-primary:hover {
  background: var(--color-primary-dark);
  box-shadow: 0 20px 42px rgba(112, 21, 34, 0.4);
  transform: translateY(-2px);
}

.btn-secondary,
.btn-outline,
.btn-ghost {
  border-color: rgba(23, 63, 53, 0.18);
  background: rgba(255, 253, 248, 0.88);
  color: var(--color-forest-dark);
  box-shadow: none;
}

.hero .btn-outline,
.hero .btn-ghost {
  border-color: rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.09);
  color: #fff;
  backdrop-filter: blur(10px);
}

.hero .btn-outline:hover,
.hero .btn-ghost:hover {
  border-color: rgba(255, 255, 255, 0.58);
  background: rgba(255, 255, 255, 0.16);
}

.hero-extra {
  gap: 10px;
  margin-top: 28px;
}

.hero-pill {
  display: grid;
  gap: 0;
  min-width: 210px;
  padding: 12px 16px;
  border-color: rgba(255, 255, 255, 0.18);
  border-radius: 16px;
  background: rgba(9, 33, 27, 0.28);
  color: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(8px);
}

.hero-pill strong {
  color: #fff;
  font-size: 13px;
}

.hero-pill span {
  font-size: 11px;
}

.hero-scroll {
  position: absolute;
  right: clamp(20px, 4vw, 56px);
  bottom: 30px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero-scroll i {
  position: relative;
  display: block;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.36);
  border-radius: 50%;
}

.hero-scroll i::after {
  position: absolute;
  top: 10px;
  left: 12px;
  width: 7px;
  height: 7px;
  border-right: 1px solid #fff;
  border-bottom: 1px solid #fff;
  content: "";
  transform: rotate(45deg);
}

/* Page heroes */
.hero-page {
  min-height: 570px;
  padding: calc(var(--nav-height) + 76px) 0 82px;
}

.hero-page::before {
  position: absolute;
  right: -2vw;
  bottom: -0.06em;
  z-index: 1;
  width: max-content;
  color: rgba(255, 255, 255, 0.075);
  content: "Русское Ранчо";
  font-family: "Manrope", system-ui, sans-serif;
  font-size: clamp(68px, 11vw, 170px);
  font-weight: 300;
  letter-spacing: -0.065em;
  line-height: 0.8;
  pointer-events: none;
  text-transform: uppercase;
  white-space: nowrap;
  animation: wordmark-drift 18s ease-in-out infinite alternate-reverse;
}

.hero-page h1 {
  max-width: 720px;
  font-size: clamp(44px, 6vw, 74px);
}

.hero-page .hero-media::before {
  inset: -4%;
  animation: still-camera 26s ease-in-out infinite alternate;
}

.hero-media-families::before {
  background-image: url("assets/для-семей/XEb6oywvgZWq9NQo9J0FLZkL4aFNlQ_sMs4az7yXoGt156_g3bo1fRjVSSILd_rz56D6CJdu3lu4aVsaU50pRXzY.opt.ea62c654d951.jpg");
}

.hero-media-kids::before {
  background-image: url("assets/галерея/дети/photo_2026-03-15_13-02-06.opt.91f4bb8a6ea0.jpg");
}

.hero-media-groups::before {
  background-image: url("assets/для-групп/groups-excursion.7cef6d35bb00.png");
}

.hero-media-events::before {
  background-image: url("assets/галерея/мероприятия/photo_2026-03-15_13-13-04.opt.541698a021bc.jpg");
}

.hero-media-prices::before,
.hero-media-about::before {
  background-image: url("assets/для-пар/zakat-na-rancho-stol-u-vody.c8b703a4a262.png");
}

.hero-media-gallery::before {
  background-image: url("assets/галерея/животные/photo_2026-03-15_12-59-43.opt.8ecfcc1c7b20.jpg");
}

.hero-ribbon-track img {
  filter: saturate(0.86) brightness(0.72);
}

/* Sections and editorial rhythm */
.section {
  padding: clamp(72px, 8vw, 112px) 0;
}

.section-light {
  background: rgba(255, 253, 248, 0.7);
}

.section-header {
  margin-bottom: 34px;
}

.section-header h2,
.section-text h2,
.wheat-content h2 {
  color: var(--color-forest-dark);
  font-size: clamp(32px, 4vw, 50px);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.12;
}

.section-header p,
.section-text p {
  max-width: 660px;
  color: var(--color-text-soft);
  font-size: 16px;
}

.section-kicker,
.wheat-kicker {
  color: var(--color-primary);
  font-family: "Manrope", sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.section-actions {
  gap: 12px;
  margin-top: 24px;
}

/* A day at the ranch */
.experience-section {
  position: relative;
  overflow: hidden;
  background: var(--color-paper);
}

.experience-section::before {
  position: absolute;
  top: -180px;
  right: -120px;
  width: 430px;
  height: 430px;
  border: 1px solid rgba(23, 63, 53, 0.08);
  border-radius: 46% 54% 52% 48%;
  content: "";
  transform: rotate(18deg);
  animation: organic-orbit 34s linear infinite;
}

.experience-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(260px, 0.75fr);
  gap: 40px;
  align-items: end;
}

.experience-heading h2,
.experience-heading p {
  margin-bottom: 0;
}

.experience-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  grid-template-rows: repeat(2, minmax(250px, 1fr));
  gap: 18px;
  min-height: 670px;
}

.experience-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 250px;
  border-radius: 30px;
  background: var(--color-forest);
  color: #fff;
  box-shadow: var(--shadow-card);
}

.experience-card-large {
  grid-row: 1 / 3;
}

.experience-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 900ms cubic-bezier(0.2, 0.75, 0.3, 1), filter var(--transition-slow);
  animation: image-breathe 16s ease-in-out infinite alternate;
}

.experience-card:nth-child(2) img {
  animation-duration: 20s;
  animation-direction: alternate-reverse;
}

.experience-card:nth-child(3) img {
  animation-duration: 18s;
}

.experience-card-large img {
  object-position: 50% 45%;
}

.experience-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, transparent 34%, rgba(5, 24, 19, 0.84) 100%);
}

.experience-copy {
  position: absolute;
  inset: auto 28px 26px;
  z-index: 2;
  display: grid;
  gap: 4px;
}

.experience-time {
  color: rgba(255, 255, 255, 0.72);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.experience-copy strong {
  font-family: "Manrope", system-ui, sans-serif;
  font-size: clamp(22px, 2.5vw, 34px);
  font-weight: 500;
  line-height: 1.15;
}

.experience-copy small {
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
}

.experience-arrow {
  position: absolute;
  top: 22px;
  right: 22px;
  z-index: 2;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 50%;
  background: rgba(8, 30, 24, 0.16);
  font-size: 18px;
  backdrop-filter: blur(8px);
  transition: background var(--transition-fast), transform var(--transition-fast);
}

.experience-card:hover img {
  filter: saturate(1.06);
  transform: scale(1.045);
}

.experience-card:hover .experience-arrow {
  background: rgba(255, 255, 255, 0.18);
  transform: translate(2px, -2px);
}

/* Cards */
.format-card,
.program-card,
.property-card,
.reason,
.trust-card,
.mention-card,
.placeholder-card,
.event-item,
.stay-unit-card {
  border-color: var(--color-border);
  background: rgba(255, 253, 248, 0.92);
  box-shadow: var(--shadow-card);
}

.format-card,
.program-card,
.property-card,
.trust-card,
.mention-card,
.placeholder-card {
  border-radius: var(--radius-card);
}

.format-card {
  min-height: 250px;
  padding: 26px 24px;
  display: flex;
  flex-direction: column;
}

.format-card::after {
  display: grid;
  width: 40px;
  height: 40px;
  margin-top: auto;
  place-items: center;
  border: 1px solid var(--color-border);
  border-radius: 50%;
  color: var(--color-forest);
  content: "↗";
  font-size: 16px;
}

.format-card:hover {
  border-color: rgba(23, 63, 53, 0.26);
  box-shadow: var(--shadow-soft);
  transform: translateY(-7px);
}

.format-label,
.program-tag,
.placeholder-label,
.mention-source {
  width: fit-content;
  color: var(--color-primary-dark);
  font-weight: 700;
}

.format-card h3,
.program-card h3,
.property-card h3,
.placeholder-card h3,
.mention-card h3,
.reason h3,
.trust-card h3 {
  color: var(--color-forest-dark);
  font-family: "Manrope", system-ui, sans-serif;
  font-weight: 400;
}

.format-card h3 {
  margin-top: 8px;
  font-size: 23px;
}

.format-card p {
  font-size: 14px;
}

.format-link {
  display: none;
}

.program-card,
.property-card {
  padding: 18px;
  gap: 12px;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast), transform var(--transition-fast);
}

.program-card:hover,
.property-card:hover,
.trust-card:hover,
.mention-card:hover {
  border-color: rgba(23, 63, 53, 0.25);
  box-shadow: var(--shadow-soft);
  transform: translateY(-5px);
}

.program-card h3,
.property-card h3 {
  font-size: 21px;
}

.property-card-image,
.novelty-card-media,
.event-item-figure,
.section-image,
.object-photo,
.photo-card {
  border-color: transparent;
  border-radius: 22px;
}

.property-card-image {
  height: 230px;
}

.novelty-card-media {
  margin: -8px -8px 4px;
}

.novelty-card-video,
.novelty-card-image {
  aspect-ratio: 16 / 10;
}

.cards-grid,
.property-grid,
.trust-grid,
.mentions-grid,
.placeholder-grid {
  gap: 20px;
}

.cards-grid-5 {
  grid-template-columns: repeat(5, minmax(210px, 1fr));
  overflow-x: auto;
  padding: 6px 3px 26px;
  scroll-snap-type: x proximity;
  scrollbar-color: rgba(23, 63, 53, 0.28) transparent;
}

.cards-grid-5 > * {
  scroll-snap-align: start;
}

.event-item {
  border-radius: 22px;
  padding: 22px;
}

.events-walk-in-note {
  border: 0;
  border-radius: 16px;
  background: var(--color-sage);
  color: var(--color-forest-dark);
}

.trust-number {
  color: var(--color-primary);
  font-size: 32px;
  font-weight: 500;
}

/* Media sections */
.section-wheat {
  background: var(--color-forest-dark);
}

.wheat-banner,
.wheat-content {
  min-height: min(720px, 82svh);
}

.wheat-banner::after {
  background:
    linear-gradient(90deg, rgba(7, 26, 21, 0.76), rgba(7, 26, 21, 0.08)),
    linear-gradient(0deg, rgba(7, 26, 21, 0.42), transparent 50%);
}

.wheat-content {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 64px clamp(20px, 4vw, 48px);
}

.wheat-content h2 {
  max-width: 680px;
  color: #fff;
  font-size: clamp(40px, 6vw, 72px);
}

#nedvizhimost {
  min-height: 720px;
}

#nedvizhimost .section-header p {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.78);
}

#nedvizhimost .section-header h2 {
  color: #fff;
}

.nedvizhimost-video {
  filter: brightness(0.5) saturate(0.95);
}

.nedvizhimost-media::after {
  background: linear-gradient(90deg, rgba(8, 30, 24, 0.66), rgba(8, 30, 24, 0.22));
}

.section-split {
  gap: clamp(36px, 6vw, 78px);
}

.section-image {
  min-height: 420px;
  box-shadow: var(--shadow-soft);
}

.section-image img {
  min-height: 420px;
  object-fit: cover;
  transition: transform 800ms cubic-bezier(0.2, 0.75, 0.3, 1);
}

.section-image:hover img {
  transform: scale(1.035);
}

/* Gallery and lightbox */
.gallery-grid {
  gap: 16px;
}

.gallery-item {
  min-height: 190px;
  padding: 18px;
  border-radius: 24px;
  font-size: 15px;
}

.gallery-grid-photos {
  grid-auto-flow: dense;
  grid-auto-rows: 100px;
}

.gallery-grid-photos .photo-card {
  min-height: 0;
  aspect-ratio: auto;
  grid-row: span 3;
  box-shadow: var(--shadow-card);
  cursor: zoom-in;
}

.gallery-grid-photos .photo-card:nth-child(5n + 1) {
  grid-row: span 4;
}

.photo-card img,
.object-photo img {
  transition: filter var(--transition-slow), transform var(--transition-slow);
}

.photo-card:hover img,
.object-photo:hover img {
  filter: saturate(1.05);
  transform: scale(1.035);
}

.image-lightbox {
  width: min(1100px, calc(100vw - 32px));
  max-width: none;
  max-height: calc(100svh - 32px);
  padding: 0;
  border: 0;
  border-radius: 24px;
  background: #071a15;
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.5);
  overflow: hidden;
}

.image-lightbox::backdrop {
  background: rgba(3, 12, 9, 0.88);
  backdrop-filter: blur(12px);
}

.image-lightbox img {
  width: 100%;
  max-height: calc(100svh - 32px);
  object-fit: contain;
}

.image-lightbox-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 1;
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  background: rgba(8, 30, 24, 0.6);
  color: #fff;
  cursor: pointer;
  font-size: 24px;
  backdrop-filter: blur(8px);
}

/* Forms and modal */
.booking-form input,
.booking-form select,
.booking-form textarea {
  min-height: 50px;
  border-color: rgba(23, 63, 53, 0.16);
  border-radius: 13px;
  background: rgba(255, 253, 248, 0.82);
}

.booking-form input:focus,
.booking-form select:focus,
.booking-form textarea:focus {
  border-color: var(--color-forest);
  box-shadow: 0 0 0 3px rgba(23, 63, 53, 0.1);
}

.modal-backdrop {
  background: rgba(5, 20, 16, 0.7);
  backdrop-filter: blur(10px);
}

.modal-panel {
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 28px;
  background: var(--color-paper);
  box-shadow: 0 30px 100px rgba(5, 20, 16, 0.35);
}

.modal-title {
  color: var(--color-forest-dark);
  font-family: "Manrope", system-ui, sans-serif;
  font-weight: 300;
}

.modal-close {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(23, 63, 53, 0.07);
}

/* Footer */
.site-footer {
  padding: 54px 0;
  border: 0;
  background: var(--color-forest-dark);
  color: rgba(255, 255, 255, 0.68);
}

.footer-inner {
  align-items: flex-start;
  gap: 32px;
}

.footer-brand .logo-main {
  color: #fff;
  font-size: 17px;
}

.footer-brand .logo-sub {
  color: rgba(255, 255, 255, 0.55);
}

.footer-links {
  max-width: 560px;
  gap: 4px 14px;
}

.footer-links a,
.footer-meta a {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  color: rgba(255, 255, 255, 0.72);
}

.footer-links a:hover,
.footer-meta a:hover {
  background: transparent;
  color: #fff;
}

.motion-paused *,
.motion-paused *::before,
.motion-paused *::after {
  animation-play-state: paused !important;
}

main > .section:first-child:not(.hero) {
  padding-top: calc(var(--nav-height) + 64px);
}

@keyframes hero-camera {
  0% {
    transform: scale(1.02) translate3d(0, 0, 0);
  }
  100% {
    transform: scale(1.085) translate3d(-1.4%, -0.8%, 0);
  }
}

@keyframes hero-light {
  0% {
    opacity: 0.9;
    transform: translate3d(-1%, 0, 0) scale(1.03);
  }
  100% {
    opacity: 1;
    transform: translate3d(1%, 0, 0) scale(1.03);
  }
}

@keyframes still-camera {
  0% {
    transform: scale(1.02) translate3d(-0.6%, 0, 0);
  }
  100% {
    transform: scale(1.1) translate3d(1.1%, -0.8%, 0);
  }
}

@keyframes wordmark-drift {
  0% {
    opacity: 0.68;
    transform: translate3d(0, 0, 0);
  }
  100% {
    opacity: 1;
    transform: translate3d(-3vw, -4px, 0);
  }
}

@keyframes image-breathe {
  0% {
    transform: scale(1.005) translate3d(0, 0, 0);
  }
  100% {
    transform: scale(1.07) translate3d(-0.8%, -0.6%, 0);
  }
}

@keyframes organic-orbit {
  to {
    transform: rotate(378deg);
  }
}

@keyframes logo-organic {
  0% {
    border-radius: 50% 50% 48% 52% / 56% 44% 56% 44%;
    transform: rotate(-4deg);
  }
  100% {
    border-radius: 58% 42% 54% 46% / 44% 55% 45% 56%;
    transform: rotate(3deg);
  }
}

@media (max-width: 1120px) {
  .logo {
    min-width: auto;
  }

  .logo-sub {
    display: none;
  }

  .main-nav {
    font-size: 12px;
  }

  .main-nav > a,
  .nav-more > summary {
    padding-inline: 8px;
  }

  .nav-cta {
    padding-inline: 14px;
  }
}

@media (max-width: 900px) {
  :root {
    --nav-height: 72px;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .main-nav {
    position: absolute;
    inset: calc(var(--nav-height) - 1px) 20px auto;
    display: grid;
    max-height: calc(100svh - var(--nav-height) - 20px);
    gap: 2px;
    padding: 14px;
    overflow-y: auto;
    border: 1px solid rgba(23, 63, 53, 0.1);
    border-radius: 22px;
    background: rgba(255, 253, 248, 0.98);
    box-shadow: var(--shadow-soft);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px) scale(0.98);
    transform-origin: top;
    transition: opacity var(--transition-fast), transform var(--transition-fast);
  }

  .site-header.nav-open .main-nav {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
  }

  .main-nav > a,
  .nav-more > summary {
    width: 100%;
    min-height: 46px;
    padding: 10px 12px;
  }

  .nav-more-menu {
    position: static;
    min-width: 0;
    margin: 2px 0 8px;
    padding: 4px 8px 4px 14px;
    border: 0;
    border-left: 1px solid rgba(23, 63, 53, 0.14);
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .nav-cta {
    width: 100%;
    margin: 8px 0 0;
  }

  .hero {
    min-height: 760px;
  }

  .experience-heading {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .experience-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 430px 320px;
    min-height: 0;
  }

  .experience-card-large {
    grid-column: 1 / 3;
    grid-row: auto;
  }

  .footer-inner {
    display: grid;
  }
}

@media (max-width: 720px) {
  body {
    font-size: 15px;
  }

  .logo-mark {
    width: 38px;
    height: 38px;
    flex-basis: 38px;
  }

  .hero {
    min-height: max(700px, 100svh);
    padding: calc(var(--nav-height) + 58px) 0 88px;
  }

  .hero h1 {
    font-size: clamp(42px, 12.5vw, 60px);
  }

  .hero-subtitle {
    font-size: 16px;
  }

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

  .hero-actions .btn:first-child {
    grid-column: 1 / -1;
  }

  .hero-pill {
    flex: 1 1 180px;
    min-width: 0;
  }

  .hero-scroll {
    display: none;
  }

  .hero-page {
    min-height: 560px;
  }

  .section {
    padding: 72px 0;
  }

  .experience-grid {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: none;
  }

  .experience-card,
  .experience-card-large {
    grid-column: auto;
    grid-row: auto;
    min-height: 360px;
  }

  .experience-card-large {
    min-height: 430px;
  }

  .property-card-image {
    height: 250px;
  }

  .section-image,
  .section-image img {
    min-height: 320px;
  }

  .wheat-banner,
  .wheat-content {
    min-height: 560px;
  }

  .gallery-grid-photos {
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: 84px;
  }
}

@media (max-width: 480px) {
  .container {
    padding-inline: 18px;
  }

  .logo-main {
    font-size: 13px;
  }

  .main-nav {
    inset-inline: 10px;
  }

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

  .hero-actions .btn:first-child {
    grid-column: auto;
  }

  .hero-extra {
    display: grid;
  }

  .section-header h2,
  .section-text h2 {
    font-size: 32px;
  }

  .experience-card,
  .experience-card-large {
    min-height: 330px;
    border-radius: 24px;
  }

  .experience-copy {
    inset: auto 20px 20px;
  }

  .cards-grid-5 {
    grid-template-columns: repeat(5, 82vw);
  }

  .gallery-grid-photos {
    grid-template-columns: 1fr;
    grid-auto-rows: 100px;
  }

  .gallery-grid-photos .photo-card,
  .gallery-grid-photos .photo-card:nth-child(5n + 1) {
    grid-row: span 3;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

}
