/* ============================================================
   CSS Variables
   ============================================================ */
:root {
  /* Spacing */
  --s1: 4px;  --s2: 8px;  --s3: 16px; --s4: 24px;
  --s5: 32px; --s6: 48px; --s7: 64px; --s8: 96px; --s9: 128px;

  /* Typography */
  --t-xs: 12px; --t-sm: 14px; --t-base: 16px; --t-md: 18px;
  --t-lg: 20px; --t-xl: 24px; --t-2xl: 32px;
  --t-3xl: 48px; --t-4xl: 64px; --t-hero: 88px;

  /* Border radius */
  --r-sm: 6px; --r-md: 12px; --r-lg: 20px; --r-pill: 999px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.05);
  --shadow-md: 0 4px 16px rgba(0,0,0,.10);
  --shadow-lg: 0 16px 48px rgba(0,0,0,.14);

  /* Transitions */
  --ease: cubic-bezier(.4,0,.2,1);
  --dur: 0.25s;

  /* Palette: Деревянный дом */
  --bg:        #FAF4E8;
  --bg-alt:    #F0E6CE;
  --text:      #2A2018;
  --text-muted:#7A6A58;
  --border:    #DDD0B8;
  --accent:    #5C8A4A;
  --accent-h:  #4A7038;
  --wood:      #9B6840;
  --wood-h:    #7D5230;
}

/* ============================================================
   Reset & Base
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  font-size: var(--t-base);
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}

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

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

ul { list-style: none; }

/* ============================================================
   Preloader
   ============================================================ */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #FAF4E8;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}
.preloader.hidden {
  opacity: 0;
  visibility: hidden;
}
.preloader__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.preloader__house {
  animation: housePulse 1.4s ease-in-out infinite;
}
.preloader__house svg {
  width: 80px;
  height: 80px;
  filter: drop-shadow(0 8px 24px rgba(92,138,74,0.25));
}
@keyframes housePulse {
  0%, 100% { transform: scale(1); }
  50%       { transform: scale(1.18); }
}
.preloader__title {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  font-weight: 700;
  color: #2A2018;
  letter-spacing: 0.02em;
  margin: 0;
}
.preloader__bar {
  width: 160px;
  height: 3px;
  background: #E8DDC8;
  border-radius: 2px;
  overflow: hidden;
}
.preloader__bar-fill {
  height: 100%;
  width: 0%;
  background: #5C8A4A;
  border-radius: 2px;
  animation: barFill 1.8s ease-out forwards;
}
@keyframes barFill {
  0%   { width: 0%; }
  60%  { width: 75%; }
  100% { width: 100%; }
}

/* ============================================================
   Container
   ============================================================ */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--s4);
}

@media (min-width: 768px) {
  .container { padding: 0 var(--s5); }
}

/* ============================================================
   Typography helpers
   ============================================================ */
.section-label {
  font-size: var(--t-sm);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--wood);
  margin-bottom: var(--s2);
}

.section-label.centered { text-align: center; }

.section-title {
  font-family: 'Playfair Display', serif;
  font-size: var(--t-2xl);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: var(--s5);
}

.section-title.centered { text-align: center; }

@media (min-width: 768px) {
  .section-title { font-size: var(--t-3xl); }
}

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s2);
  padding: 0 var(--s5);
  height: 52px;
  font-family: 'Inter', sans-serif;
  font-size: var(--t-md);
  font-weight: 600;
  border: none;
  border-radius: var(--r-md);
  cursor: pointer;
  transition: background var(--dur) var(--ease), transform 0.15s var(--ease), box-shadow var(--dur) var(--ease);
  white-space: nowrap;
}

.btn--primary {
  background: var(--accent);
  color: #fff;
}

.btn--primary:hover {
  background: var(--accent-h);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn--primary:active { transform: translateY(0); }

.btn--outline {
  background: transparent;
  color: var(--accent);
  border: 2px solid var(--accent);
}

.btn--outline:hover {
  background: var(--accent);
  color: #fff;
  transform: translateY(-2px);
}

.btn--lg { height: 56px; padding: 0 var(--s7); font-size: var(--t-lg); }

.btn--full { width: 100%; }

@media (max-width: 479px) {
  .btn { height: 48px; font-size: var(--t-base); }
  .btn--lg { height: 52px; }
}

/* ============================================================
   Reveal animations
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ============================================================
   Navigation
   ============================================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: var(--s3) 0;
  background: rgba(250, 244, 232, 0.55);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.2);
  transition: background var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.nav.is-scrolled {
  background: rgba(250, 244, 232, 0.75);
  box-shadow: var(--shadow-sm);
}

.nav.is-hero {
  background: rgba(20, 14, 6, 0.25);
  border-bottom-color: rgba(255,255,255,0.1);
}

.nav.is-hero.is-scrolled {
  background: rgba(20, 14, 6, 0.45);
}

.nav.is-scrolled .nav__logo { color: var(--text); }
.nav.is-scrolled .nav__links a { color: var(--text); }
.nav.is-scrolled .nav__burger span { background: var(--text); }

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s4);
}

.nav__logo {
  font-family: 'Playfair Display', serif;
  font-size: var(--t-lg);
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
}

.nav.is-hero .nav__logo { color: #fff; }

.nav__links {
  display: none;
  gap: var(--s5);
}

.nav__links a {
  font-size: var(--t-sm);
  font-weight: 500;
  color: var(--text);
  opacity: 0.8;
  transition: opacity var(--dur);
}

.nav__links a:hover { opacity: 1; }

.nav.is-hero .nav__links a { color: #fff; }

.nav__burger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--s2);
}

.nav__burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform var(--dur) var(--ease), opacity var(--dur);
}

.nav.is-hero .nav__burger span { background: #fff; }

.nav__burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__burger.is-open span:nth-child(2) { opacity: 0; }
.nav__burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.nav__burger.is-open span { background: #fff; }

/* Бургер поверх оверлея */
.nav__burger {
  position: relative;
  z-index: 200;
}

/* ============================================================
   Мобильное меню — отдельный полноэкранный оверлей
   ============================================================ */
.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  height: 100dvh;
  background: #1a130a;
  z-index: 150;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: var(--s7) var(--s6);
}

.mobile-menu.is-open {
  display: flex;
  animation: fadeInMenu 0.2s ease;
}

@keyframes fadeInMenu {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.mobile-menu__close {
  position: absolute;
  top: var(--s4);
  right: var(--s4);
  width: 44px;
  height: 44px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: rgba(255,255,255,0.8);
  transition: background var(--dur);
}

.mobile-menu__close:hover { background: rgba(255,255,255,0.2); color: #fff; }

.mobile-menu__nav {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.mobile-menu__nav a {
  font-size: var(--t-2xl);
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  color: rgba(255,255,255,0.88);
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  width: 100%;
  text-decoration: none;
  letter-spacing: -0.01em;
  transition: color var(--dur), padding-left var(--dur);
}

.mobile-menu__nav a:last-child { border-bottom: none; }

.mobile-menu__nav a:active { color: #fff; padding-left: 6px; }

.nav__cta {
  display: none;
  padding: 0 var(--s4);
  height: 38px;
  border-radius: var(--r-pill);
  font-size: var(--t-sm);
  font-weight: 600;
  background: var(--accent);
  color: #fff;
  white-space: nowrap;
  transition: background var(--dur) var(--ease), transform 0.15s var(--ease);
}

.nav__cta:hover {
  background: var(--accent-dark);
  transform: translateY(-1px);
}

.nav.is-hero .nav__cta {
  background: rgba(255,255,255,0.18);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,0.35);
}

.nav.is-hero .nav__cta:hover { background: rgba(255,255,255,0.28); }

@media (min-width: 768px) {
  .nav__links { display: flex; }
  .nav__burger { display: none; }
  .nav__cta { display: flex; align-items: center; }
}

/* ============================================================
   Hero
   ============================================================ */
.hero {
  position: relative;
  height: 100svh;
  min-height: 560px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.4) 0%,
    rgba(0,0,0,0.3) 50%,
    rgba(0,0,0,0.55) 100%
  );
}

.hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #fff;
  padding: var(--s9) 0;
}

.hero__label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--s3);
  font-size: var(--t-xs);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.75;
  margin-bottom: var(--s4);
}

.hero__label::before,
.hero__label::after {
  content: '';
  display: block;
  width: 40px;
  height: 1px;
  background: rgba(255,255,255,0.5);
}

.hero__title {
  font-family: 'Playfair Display', serif;
  font-size: var(--t-4xl);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: var(--s3);
}

.hero__subtitle {
  font-style: italic;
  font-family: 'Playfair Display', serif;
  font-size: var(--t-md);
  opacity: 0.8;
  margin-bottom: var(--s6);
  max-width: 340px;
  margin-left: auto;
  margin-right: auto;
  font-weight: 400;
}

.hero__cta {
  display: inline-block;
  padding: 16px 48px;
  border: 1.5px solid rgba(255,255,255,0.7);
  border-radius: var(--r-sm);
  background: rgba(0,0,0,0.08);
  color: #fff;
  font-size: var(--t-sm);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  transition: border-color var(--dur) var(--ease);
}

.hero__cta:hover {
  border-color: #fff;
}

.hero__scroll {
  position: absolute;
  bottom: var(--s5);
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: rgba(255,255,255,0.7);
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

@media (max-width: 767px) {
  .hero__title { font-size: var(--t-2xl); }
  .hero__cta { padding: 16px 32px; font-size: var(--t-xs); }
  .hero__label::before,
  .hero__label::after { width: 24px; }
}

@media (min-width: 768px) {
  .hero__title { font-size: var(--t-hero); }
}

/* ============================================================
   About
   ============================================================ */
.about {
  position: relative;
  padding: var(--s9) 0;
  overflow: hidden;
}

.about__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

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

.about__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    to right,
    rgba(10, 10, 10, 0.82) 0%,
    rgba(10, 10, 10, 0.55) 60%,
    rgba(10, 10, 10, 0.10) 100%
  );
}

.about .container {
  position: relative;
  z-index: 2;
}

.about__text {
  max-width: 520px;
}

.about__text .section-label { color: rgba(255,255,255,0.6); }

.about__text .section-title {
  color: #fff;
  margin-bottom: var(--s4);
}

.about__desc {
  color: rgba(255,255,255,0.75);
  margin-bottom: var(--s4);
  font-size: var(--t-md);
}

.about__text .btn { margin-top: var(--s2); }

.about__photo {
  height: 100%;
  min-height: 420px;
  border-radius: var(--r-lg);
  overflow: hidden;
}

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

.gallery-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-rows: 200px 160px;
  gap: var(--s2);
  border-radius: var(--r-lg);
  overflow: hidden;
}

.gallery-item { overflow: hidden; border-radius: var(--r-sm); }

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}

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

.gallery-item--big {
  grid-column: 1 / 3;
  grid-row: 1 / 3;
}

@media (min-width: 768px) {
  .about__grid { grid-template-columns: 1fr 1fr; }
  .gallery-grid { grid-auto-rows: 180px; }
}

@media (min-width: 1024px) {
  .gallery-grid { grid-auto-rows: 200px; }
}

/* ============================================================
   Amenities
   ============================================================ */
.amenities {
  position: relative;
  padding: var(--s9) 0;
  background: var(--bg-alt);
  overflow: hidden;
}

.birds-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.amenities .container {
  position: relative;
  z-index: 1;
}

.amenities__layout {
  display: grid;
  gap: var(--s7);
  align-items: center;
}

@media (min-width: 900px) {
  .amenities__layout { grid-template-columns: 1fr 1fr; gap: var(--s7); align-items: center; }
}

/* Список */
.amenities__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--s4);
}

.amenities__item {
  display: flex;
  align-items: flex-start;
  gap: var(--s4);
}

.amenities__icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  line-height: 1;
  box-shadow: var(--shadow-sm);
}

.amenities__item div {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.amenities__item strong {
  font-size: var(--t-md);
  font-weight: 600;
  color: var(--text);
  font-family: 'Playfair Display', serif;
}

.amenities__item span {
  font-size: var(--t-sm);
  color: var(--text-muted);
  line-height: 1.5;
}

/* Слайдер */
.amenities__slider {
  display: flex;
  flex-direction: column;
  gap: var(--s3);
}

.amenities__slider-inner {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.slider__track {
  display: flex;
  height: 100%;
  transition: transform 0.5s var(--ease);
}

.slider__slide {
  min-width: 100%;
  height: 100%;
}

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


.slider__btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.9);
  border: none;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 4;
  transition: background var(--dur) var(--ease);
  box-shadow: var(--shadow-sm);
}

.slider__btn:hover { background: #fff; }
.slider__btn--prev { left: var(--s3); }
.slider__btn--next { right: var(--s3); }

.slider__dots {
  display: flex;
  justify-content: center;
  gap: 6px;
}

.slider__hint {
  text-align: center;
  font-size: var(--t-xs);
  color: var(--text-muted);
  margin-top: var(--s2);
}

.slider__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(42,32,24,0.25);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background var(--dur) var(--ease);
}

.slider__dot--active { background: var(--text); }

@media (min-width: 768px) {
  .amenities__grid { grid-template-columns: repeat(3, 1fr); gap: var(--s5); }
}

@media (min-width: 1024px) {
  .amenities__grid { grid-template-columns: repeat(4, 1fr); }
}

/* ============================================================
   Price
   ============================================================ */
.price {
  padding: var(--s9) 0;
  background-image: url('img/parallax/IMG_5778.webp');
  background-attachment: fixed;
  background-size: cover;
  background-position: center 30%;
  position: relative;
  overflow: hidden;
  opacity: 0;
  transition: opacity 0.4s ease;
}

@media (max-width: 767px) {
  .price {
    background-attachment: scroll;
    background-size: 100% auto;
    background-position: center top;
  }
}

.price.bg-loaded {
  opacity: 1;
}


.price::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(42, 32, 18, 0.52);
  z-index: 0;
}

.price > .container {
  position: relative;
  z-index: 1;
}

.price__grid {
  display: grid;
  gap: var(--s4);
  margin-bottom: var(--s8);
}

@media (max-width: 767px) {
  .price__grid { grid-template-columns: 1fr; }
  .price__col { flex-direction: column; }
}

@media (min-width: 768px) {
  .price__grid { grid-template-columns: repeat(3, 1fr); align-items: stretch; }
}

.price-card {
  background: var(--bg-alt);
  border: 1.5px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--s5);
  display: flex;
  flex-direction: column;
  gap: var(--s3);
  position: relative;
  overflow: hidden;
  transition: box-shadow var(--dur) var(--ease), transform var(--dur) var(--ease);
}

.price-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--border);
  border-radius: var(--r-lg) var(--r-lg) 0 0;
}

.price-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.price-card--featured {
  background: var(--bg-alt);
  border: 2px solid var(--accent);
  transform: scale(1.04);
  box-shadow: 0 6px 24px rgba(92, 138, 74, 0.15);
}

.price-card--featured::before {
  background: var(--text);
  height: 4px;
}

.price-card--featured:hover {
  transform: scale(1.04) translateY(-3px);
}

@media (max-width: 767px) {
  .price-card--featured {
    transform: none;
    box-shadow: 0 6px 24px rgba(92, 138, 74, 0.15);
  }
  .price-card--featured:hover {
    transform: translateY(-3px);
  }
}

.price-card__tag {
  display: inline-block;
  font-size: var(--t-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--accent);
  color: #fff;
  padding: 3px var(--s3);
  border-radius: var(--r-pill);
  align-self: flex-start;
}

.price-card--featured .price-card__tag { background: var(--accent); color: #fff; }
.price-card--featured::before { background: var(--accent); }

.price-card__label {
  font-size: var(--t-sm);
  color: var(--text-muted);
}

.price-card--featured .price-card__label { color: var(--text-muted); }

.price-card__from {
  font-size: var(--t-xs);
  color: var(--text-muted);
  margin-bottom: -8px;
}

.price-card--featured .price-card__from { color: var(--text-muted); }

.price-card__num {
  font-family: 'Playfair Display', serif;
  font-size: var(--t-2xl);
  font-weight: 700;
  color: var(--text);
  line-height: 1;
}

.price-card--featured .price-card__num { color: var(--text); }

.price-card__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--s2);
  border-top: 1px solid var(--border);
  padding-top: var(--s3);
}

.price-card--featured .price-card__list { border-color: var(--border); }

.price-card__list li {
  font-size: var(--t-sm);
  color: var(--text-muted);
  padding-left: var(--s4);
  position: relative;
}

.price-card__list li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

.price-card--featured .price-card__list li { color: var(--text-muted); }
.price-card--featured .price-card__list li::before { color: var(--accent); }

.price-card__extras {
  display: flex;
  flex-direction: column;
  gap: 4px;
  border-top: 1px solid var(--border);
  padding-top: var(--s3);
  margin-top: var(--s1);
}

.price-card__extras-row {
  display: flex;
  justify-content: space-between;
  font-size: var(--t-sm);
  color: var(--text-muted);
}

.price-card__extras-row span:last-child {
  font-weight: 600;
  color: var(--text);
}

.price-card__discount {
  background: rgba(0,0,0,0.05);
  border-radius: var(--r-sm);
  padding: var(--s3);
  margin-top: var(--s1);
}

.price-card--featured .price-card__discount { background: rgba(42,32,24,0.06); }

.price-card__discount-title {
  font-size: var(--t-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: var(--s2);
}

.price-card--featured .price-card__discount-title { color: var(--text-muted); }

.price-card__discount-rows {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px var(--s3);
}

.price-card__discount-rows span {
  font-size: var(--t-sm);
  color: var(--text-muted);
}

.price-card__discount-rows span:nth-child(even) {
  font-weight: 700;
  color: var(--accent);
  text-align: right;
}

.price-card--featured .price-card__discount-rows span { color: var(--text-muted); }
.price-card--featured .price-card__discount-rows span:nth-child(even) { color: var(--accent); }

/* Доплаты */
@keyframes price-extras-pulse {
  0%, 100% { transform: scale(1); }
  50%       { transform: scale(1.018); }
}

.price__col {
  display: flex;
  flex-direction: column;
  gap: var(--s4);
  align-self: stretch;
}

.price__col .price-card {
  flex: 1;
}

.price__extras {
  display: flex;
  flex-direction: column;
  gap: var(--s2);
  animation: price-extras-pulse 4s ease-in-out infinite;
}

@media (min-width: 768px) {
  .price__grid > .price-card:nth-child(2) { grid-column: 2; }
  .price__grid > .price-card:nth-child(3) { grid-column: 3; }
}

.price__extras-item {
  display: flex;
  align-items: center;
  gap: var(--s3);
  background: var(--bg-alt);
  border: 1.5px solid var(--border);
  border-radius: var(--r-md);
  padding: var(--s3) var(--s4);
}

.price__extras-item:nth-child(1) { border-top: 3px solid #e8a87c; }
.price__extras-item:nth-child(2) { border-top: 3px solid var(--accent); }
.price__extras-item:nth-child(3) { border-top: 3px solid #9b6840; }

.price__extras-emoji { font-size: 1.4rem; flex-shrink: 0; }

.price__extras-name {
  font-size: var(--t-sm);
  color: var(--text-muted);
  flex: 1;
}

.price__extras-val {
  font-size: var(--t-md);
  font-weight: 700;
  color: var(--wood);
  margin-left: auto;
}

.price__extras-val--free {
  color: var(--accent);
}

/* Общая заметка */
.price__notice {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--s3);
  margin-bottom: var(--s6);
  padding: var(--s4) var(--s4);
  background: rgba(255, 255, 255, 0.10);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--r-lg);
  font-size: var(--t-md);
  font-weight: 500;
  color: #fff;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0,0,0,0.12);
}

.price__notice-icon { font-size: 1.4rem; flex-shrink: 0; }

.highlight-green {
  background: rgba(92, 138, 74, 0.38);
  color: inherit;
  border-radius: 3px;
  padding: 0 4px;
}

/* Калькулятор */
.price-calc {
  background: linear-gradient(145deg, #f5ead4 0%, var(--bg-alt) 60%, #eedfc4 100%);
  border: 2px solid var(--wood);
  border-radius: var(--r-lg);
  padding: var(--s7);
  margin-bottom: var(--s5);
  display: flex;
  flex-direction: column;
  gap: var(--s5);
  box-shadow: 0 2px 0 #c49a6c, var(--shadow-md);
  position: relative;
  overflow: hidden;
}

@media (max-width: 767px) {
  .price-calc {
    padding: var(--s4);
  }
  .price-calc__result-num {
    font-size: var(--t-2xl);
  }
  .price-calc .btn {
    align-self: stretch;
  }
}

.price-calc::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--wood) 0%, #e8a87c 50%, var(--wood) 100%);
  border-radius: var(--r-lg) var(--r-lg) 0 0;
}

.price-calc__title {
  font-family: 'Playfair Display', serif;
  font-size: var(--t-xl);
  font-weight: 700;
  color: var(--text);
}

.price-calc__fields {
  display: grid;
  gap: var(--s4);
}

@media (min-width: 768px) {
  .price-calc__fields { grid-template-columns: 1fr 1fr; }
  .price-calc__field--check { align-self: end; padding-bottom: 6px; }
}

.price-calc__label {
  display: block;
  font-size: var(--t-sm);
  color: var(--text-muted);
  margin-bottom: var(--s2);
}

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

.price-calc__select {
  width: 100%;
  padding: 10px var(--s3);
  border: 1.5px solid var(--border);
  border-radius: var(--r-md);
  background: var(--bg);
  font-family: inherit;
  font-size: var(--t-md);
  color: var(--text);
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M6 9l6 6 6-6' stroke='%232A2018' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}

/* Режим-переключатель */
.price-calc__mode {
  display: flex;
  gap: var(--s2);
}

.calc-mode-btn {
  padding: 6px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--r-pill);
  background: transparent;
  font-family: inherit;
  font-size: 13px;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
}

.calc-mode-btn.is-active {
  border-color: var(--wood);
  background: var(--wood);
  color: #fff;
  font-weight: 600;
}

/* Строка выбора дат */
.price-calc__dates-row {
  position: relative;
}

.calc-dates-trigger {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 9px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--r-md);
  background: var(--bg);
  font-family: inherit;
  font-size: 13px;
  color: var(--text-muted);
  cursor: pointer;
  text-align: left;
  transition: border-color 0.15s;
}

.calc-dates-trigger:hover,
.calc-dates-trigger.is-open {
  border-color: var(--wood);
  color: var(--text);
}

/* Попап-датапикер */
.calc-dp-popup {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 100;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--r-md);
  padding: var(--s3);
  box-shadow: var(--shadow-md);
  width: 260px;
}

.calc-dp-popup.is-open { display: block; }

.calc-dp__nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--s2);
}

.calc-dp__month {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}

.calc-dp__arrow {
  background: none;
  border: none;
  font-size: 20px;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0 4px;
  line-height: 1;
}

.calc-dp__arrow:hover { color: var(--wood); }

.calc-dp__weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  font-size: 10px;
  color: var(--text-muted);
  margin-bottom: 3px;
}

.calc-dp__days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
}

.cdp-day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  border-radius: var(--r-sm);
  cursor: pointer;
  color: var(--text);
  transition: background 0.1s;
}

.cdp-day:hover:not(.cdp-day--past):not(.cdp-day--empty) {
  background: rgba(155,104,64,0.12);
}

.cdp-day--past,
.cdp-day--empty {
  color: var(--border);
  cursor: default;
  pointer-events: none;
}

.cdp-day--today { font-weight: 700; color: var(--wood); }
.cdp-day--sel   { background: var(--wood); color: #fff; }
.cdp-day--start { background: var(--wood); color: #fff; border-radius: var(--r-sm) 0 0 var(--r-sm); }
.cdp-day--end   { background: var(--wood); color: #fff; border-radius: 0 var(--r-sm) var(--r-sm) 0; }
.cdp-day--range { background: rgba(155,104,64,0.13); border-radius: 0; }

.calc-dp__hint {
  margin-top: 6px;
  font-size: 11px;
  color: var(--text-muted);
  text-align: center;
}

.price-calc__range {
  width: 100%;
  accent-color: var(--wood);
  cursor: pointer;
  height: 4px;
}

.price-calc__check {
  display: flex;
  align-items: center;
  gap: var(--s2);
  font-size: var(--t-sm);
  color: var(--text-muted);
  cursor: pointer;
}

.price-calc__check input { accent-color: var(--accent); width: 16px; height: 16px; }

.price-calc__result {
  display: flex;
  align-items: baseline;
  gap: var(--s3);
  flex-wrap: wrap;
  border-top: 1.5px solid rgba(155,104,64,0.25);
  padding-top: var(--s4);
}

.price-calc__result-label {
  font-size: var(--t-md);
  color: var(--text-muted);
}

.price-calc__result-num {
  font-family: 'Playfair Display', serif;
  font-size: var(--t-2xl);
  font-weight: 700;
  color: var(--text);
  line-height: 1;
  transition: color 0.15s var(--ease), transform 0.15s var(--ease);
}

.price-calc__result-num.is-updating {
  color: var(--wood);
  transform: scale(1.04);
}

.price-calc__result-note {
  font-size: var(--t-sm);
  color: var(--accent);
  font-weight: 600;
  background: rgba(92,138,74,0.1);
  padding: 2px 10px;
  border-radius: var(--r-pill);
}

@keyframes calc-pulse {
  0%   { box-shadow: 0 2px 0 #c49a6c, var(--shadow-md); }
  50%  { box-shadow: 0 2px 0 #c49a6c, 0 0 0 6px rgba(155,104,64,0.12), var(--shadow-md); }
  100% { box-shadow: 0 2px 0 #c49a6c, var(--shadow-md); }
}

.price-calc.is-active {
  animation: calc-pulse 0.4s var(--ease);
}

.price-calc .btn { align-self: flex-start; }

/* Индивидуальный вариант */
.price__custom {
  text-align: center;
  font-size: var(--t-sm);
  color: rgba(255,255,255,0.85);
  background: rgba(255,255,255,0.10);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: var(--r-md);
  padding: 14px var(--s4);
}

.price__custom a {
  color: #c8e6b8;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Цвета поверх параллакс-фото */
.price .section-label,
.price .section-title {
  color: #fff;
}
.price .section-label {
  color: rgba(255,255,255,0.7);
}

/* ============================================================
   Reviews
   ============================================================ */
.reviews {
  padding: var(--s8) 0;
  background: var(--bg-alt);
}

/* Виджет десктоп / слайдер мобиль */
.reviews__widget--desktop { display: block; }
.yrev-slider--mobile      { display: none !important; }

@media (max-width: 767px) {
  .reviews__widget--desktop { display: none; }
  .yrev-slider--mobile      { display: flex !important; }
}

/* Яндекс-слайдер отзывов */
.yrev-slider {
  display: flex;
  flex-direction: column;
  gap: var(--s4);
  margin-bottom: var(--s5);
}

.yrev-slider__track {
  display: grid;
  grid-template-columns: 1fr;
}

.yrev-card {
  display: none;
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 16px;
  padding: var(--s5);
  box-shadow: 0 2px 12px rgba(0,0,0,0.07);
  flex-direction: column;
  gap: var(--s3);
}

.yrev-card.is-active {
  display: flex;
}

.yrev-card__head {
  display: flex;
  align-items: center;
  gap: var(--s3);
}

.yrev-card__avatar {
  font-size: 2.4rem;
  line-height: 1;
  width: 48px;
  height: 48px;
  background: #f5f5f5;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.yrev-card__meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}

.yrev-card__name {
  font-size: var(--t-base);
  font-weight: 600;
  color: #21201f;
  line-height: 1.2;
}

.yrev-card__level {
  font-size: var(--t-xs);
  color: #9e9e9e;
}

.yrev-card__logo svg {
  width: 20px;
  height: 20px;
}

.yrev-card__stars {
  font-size: 1.1rem;
  color: #ffd000;
  letter-spacing: 1px;
  margin-top: -4px;
}

.yrev-card__date {
  font-size: var(--t-xs);
  color: #9e9e9e;
  margin-top: -8px;
}

.yrev-card__text {
  font-size: var(--t-sm);
  color: #3d3d3d;
  line-height: 1.65;
}

.yrev-card__text strong {
  color: #21201f;
  font-weight: 600;
}

.yrev-slider__nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--s4);
}

.yrev-slider__btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  background: var(--bg);
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background var(--dur), border-color var(--dur);
  flex-shrink: 0;
}

.yrev-slider__btn:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.yrev-slider__dots {
  display: flex;
  gap: 6px;
}

.yrev-slider__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(42,32,24,0.2);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background var(--dur), transform var(--dur);
}

.yrev-slider__dot.is-active {
  background: var(--accent);
  transform: scale(1.3);
}

.reviews__widget {
  margin-bottom: var(--s5);
  border-radius: var(--r-lg);
  overflow: hidden;
}

.reviews__widget iframe {
  width: 100%;
  height: 400px;
  border: none;
}

.reviews__widget-placeholder {
  background: var(--bg);
  border: 2px dashed var(--border);
  border-radius: var(--r-lg);
  padding: var(--s7);
  text-align: center;
  color: var(--text-muted);
  font-size: var(--t-sm);
  line-height: 1.8;
}

.reviews__cta { text-align: center; }

.reviews__grid {
  display: grid;
  gap: var(--s7);
}

.reviews__right .section-label {
  margin-bottom: var(--s4);
}

@media (min-width: 768px) {
  .reviews__grid { grid-template-columns: 1fr 1fr; align-items: start; }
  .reviews__cta { text-align: left; }
}

/* Guests carousel */
.guests-carousel {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--bg);
  box-shadow: var(--shadow-md);
}

.guests-carousel__track {
  display: flex;
  transition: transform 0.45s var(--ease);
  will-change: transform;
}

.guests-carousel__slide {
  flex: 0 0 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

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

.guests-carousel__btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  background: rgba(255,255,255,0.85);
  border: none;
  border-radius: 50%;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  box-shadow: var(--shadow-sm);
  transition: background var(--dur), transform var(--dur);
  z-index: 2;
}

.guests-carousel__btn:hover {
  background: #fff;
  transform: translateY(-50%) scale(1.08);
}

.guests-carousel__btn--prev { left: var(--s3); }
.guests-carousel__btn--next { right: var(--s3); }

.guests-carousel__dots {
  position: absolute;
  bottom: var(--s3);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: var(--s2);
}

.guests-carousel__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background var(--dur), transform var(--dur);
}

.guests-carousel__dot.is-active {
  background: #fff;
  transform: scale(1.3);
}

/* ============================================================
   Booking
   ============================================================ */
.booking {
  padding: var(--s8) 0;
  background: var(--bg);
}

.booking__inner {
  display: grid;
  gap: var(--s6);
}

/* Calendar */
.calendar {
  background: var(--bg-alt);
  border-radius: var(--r-lg);
  padding: var(--s5);
  box-shadow: var(--shadow-sm);
}

.calendar__nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--s4);
}

.calendar__btn {
  background: none;
  border: none;
  font-size: 28px;
  color: var(--text);
  cursor: pointer;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-sm);
  transition: background var(--dur);
}

.calendar__btn:hover { background: var(--border); }

.calendar__month {
  font-family: 'Playfair Display', serif;
  font-size: var(--t-lg);
  font-weight: 700;
  text-transform: capitalize;
}

.calendar__weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  margin-bottom: var(--s2);
}

.calendar__weekdays span {
  text-align: center;
  font-size: var(--t-xs);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: var(--s2) 0;
}

.calendar__days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
}

.cal-day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--t-sm);
  border-radius: var(--r-sm);
  cursor: pointer;
  transition: background var(--dur), color var(--dur);
  user-select: none;
}

.cal-day:hover:not(.cal-day--empty):not(.cal-day--past) {
  background: var(--accent);
  color: #fff;
}

.cal-day--empty { cursor: default; }

.cal-day--past {
  color: var(--border);
  cursor: not-allowed;
}

.cal-day--today { font-weight: 700; color: var(--wood); }

.cal-day--selected {
  background: var(--accent);
  color: #fff;
  font-weight: 600;
}

.cal-day--in-range {
  background: rgba(92, 138, 74, 0.15);
  border-radius: 0;
}

.cal-day--range-start {
  background: var(--accent);
  color: #fff;
  border-radius: var(--r-sm) 0 0 var(--r-sm);
}

.cal-day--range-end {
  background: var(--accent);
  color: #fff;
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
}

.calendar__hint {
  margin-top: var(--s3);
  text-align: center;
  font-size: var(--t-sm);
  color: var(--text-muted);
}

/* Form */
.booking__form {
  display: flex;
  flex-direction: column;
  gap: var(--s4);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--s1);
}

.form-label {
  font-size: var(--t-sm);
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.03em;
}

.form-input {
  height: 52px;
  padding: 0 var(--s4);
  border: 2px solid var(--border);
  border-radius: var(--r-md);
  background: var(--bg-alt);
  font-size: var(--t-base);
  font-family: 'Inter', sans-serif;
  color: var(--text);
  transition: border-color var(--dur), box-shadow var(--dur);
  appearance: none;
  -webkit-appearance: none;
}

.form-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(92,138,74,0.15);
}

.form-input.is-error {
  border-color: #d94f4f;
  box-shadow: 0 0 0 3px rgba(217,79,79,0.12);
}

.form-error-msg {
  font-size: var(--t-xs);
  color: #d94f4f;
  margin-top: 2px;
  display: none;
}

.form-group.has-error .form-error-msg {
  display: block;
}

.form-dates {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s3);
  background: var(--bg-alt);
  border: 2px solid var(--border);
  border-radius: var(--r-md);
  padding: var(--s3) var(--s4);
}

.form-date-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.form-date-label {
  font-size: var(--t-xs);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.form-date-val {
  font-size: var(--t-base);
  font-weight: 500;
  color: var(--text);
}

.form-privacy {
  font-size: var(--t-xs);
  color: var(--text-muted);
  text-align: center;
  line-height: 1.5;
}

.form-group--checkbox {
  margin-bottom: var(--s2);
}

.form-checkbox {
  display: flex;
  align-items: flex-start;
  gap: var(--s2);
  cursor: pointer;
  font-size: var(--t-xs);
  color: var(--text-muted);
  line-height: 1.5;
}

.form-checkbox input[type="checkbox"] {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--accent);
  cursor: pointer;
}

.form-checkbox a {
  color: var(--accent);
  text-decoration: underline;
}

.form-group--checkbox .form-error-msg {
  display: none;
  margin-top: var(--s1);
  font-size: var(--t-xs);
  color: #e53935;
}

.form-group--checkbox.error .form-error-msg {
  display: block;
}

.success-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.success-overlay.is-visible {
  opacity: 1;
  pointer-events: all;
}

.success-popup {
  background: var(--bg);
  border-radius: 24px;
  padding: var(--s8) var(--s7);
  text-align: center;
  max-width: 380px;
  width: calc(100% - var(--s6));
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.18);
  transform: translateY(24px) scale(0.97);
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease;
  opacity: 0;
}

.success-overlay.is-visible .success-popup {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.success-popup__ring {
  width: 72px;
  height: 72px;
  margin: 0 auto var(--s5);
  color: var(--accent);
}

.success-popup__ring svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.success-popup__circle {
  stroke-dasharray: 157;
  stroke-dashoffset: 157;
  transition: stroke-dashoffset 0.5s ease 0.2s;
}

.success-popup__check {
  stroke-dasharray: 36;
  stroke-dashoffset: 36;
  transition: stroke-dashoffset 0.4s ease 0.65s;
}

.success-overlay.is-visible .success-popup__circle,
.success-overlay.is-visible .success-popup__check {
  stroke-dashoffset: 0;
}

.success-popup__title {
  font-family: 'Playfair Display', serif;
  font-size: var(--t-xl);
  line-height: 1.25;
  margin-bottom: var(--s3);
  color: var(--text);
}

.success-popup__text {
  font-size: var(--t-base);
  color: var(--text-muted);
  margin-bottom: var(--s6);
}

.success-popup__close {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-size: var(--t-base);
  font-weight: 600;
  padding: 14px 36px;
  border: none;
  border-radius: 100px;
  cursor: pointer;
  transition: opacity 0.2s;
}

.success-popup__close:hover {
  opacity: 0.85;
}

@media (min-width: 768px) {
  .booking__inner { grid-template-columns: 1fr 1fr; align-items: start; }
}

/* ============================================================
   Contacts
   ============================================================ */
.contacts {
  padding: var(--s9) 0;
  background-image: url('img/parallax/photo_2024-05-11_20-57-41.webp');
  background-attachment: fixed;
  background-size: cover;
  background-position: center 40%;
  position: relative;
  opacity: 0;
  transition: opacity 0.4s ease;
}

@media (max-width: 767px) {
  .contacts {
    background-attachment: scroll;
    background-size: cover;
    background-position: center center;
  }
}

.contacts.bg-loaded {
  opacity: 1;
}


.contacts::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(20, 14, 6, 0.58);
  z-index: 0;
}

.contacts > .container {
  position: relative;
  z-index: 1;
}

.contacts .section-label { color: rgba(255,255,255,0.6); }
.contacts .section-title { color: #fff; }
.contacts__hint { color: rgba(255,255,255,0.55); }

.contacts__card {
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-color: rgba(255,255,255,0.18);
}

.contacts__card:hover { border-color: rgba(255,255,255,0.45); }
.contacts__card--phone:hover { border-color: rgba(92,138,74,0.7); }
.contacts__card--vk:hover { border-color: rgba(0,119,255,0.7); }

.contacts__card-label { color: rgba(255,255,255,0.5); }
.contacts__card-value { color: #fff; }

.contacts__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--s5);
  max-width: 640px;
  margin: 0 auto;
}

.contacts__cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s4);
  width: 100%;
}

.contacts__card {
  display: flex;
  align-items: center;
  gap: var(--s4);
  padding: var(--s5) var(--s5);
  border-radius: var(--r-lg);
  text-decoration: none;
  border: 1.5px solid var(--border);
  background: var(--bg);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), border-color 0.2s var(--ease);
  box-shadow: var(--shadow-sm);
}

.contacts__card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.contacts__card-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contacts__card-icon svg {
  width: 24px;
  height: 24px;
}

.contacts__card--phone .contacts__card-icon {
  background: rgba(92, 138, 74, 0.12);
  color: var(--accent);
}

.contacts__card--phone:hover { border-color: var(--accent); }

.contacts__card--vk .contacts__card-icon {
  background: rgba(0, 119, 255, 0.1);
  color: #0077FF;
}

.contacts__card--vk:hover { border-color: #0077FF; }

.contacts__card-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.contacts__card-label {
  font-size: var(--t-xs);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.contacts__card-value {
  font-size: var(--t-base);
  font-weight: 600;
  color: var(--text);
}

.contacts__hint {
  font-size: var(--t-sm);
  color: var(--text-muted);
  text-align: center;
}

@media (max-width: 600px) {
  .contacts__cards { grid-template-columns: 1fr; }
}

/* ============================================================
   Footer
   ============================================================ */
/* Lightbox
   ============================================================ */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0,0,0,0.92);
  align-items: center;
  justify-content: center;
}

.lightbox.is-open { display: flex; }

.lightbox__img-wrap {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 80px;
}

@media (max-width: 767px) {
  .lightbox__img-wrap {
    padding: 60px 16px;
  }
}

.lightbox__img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 4px;
  user-select: none;
  transition: opacity 0.2s ease;
}

.lightbox__img.is-loading { opacity: 0; }

.lightbox__btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.12);
  border: none;
  border-radius: 50%;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #fff;
  z-index: 2;
  transition: background 0.2s ease;
  flex-shrink: 0;
}

.lightbox__btn:hover { background: rgba(255,255,255,0.25); }
.lightbox__btn--prev { left: 16px; }
.lightbox__btn--next { right: 16px; }

.lightbox__close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(255,255,255,0.12);
  border: none;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #fff;
  z-index: 2;
  transition: background 0.2s ease;
}

.lightbox__close:hover { background: rgba(255,255,255,0.25); }

.lightbox__counter {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.6);
  font-size: var(--t-sm);
  letter-spacing: 0.05em;
}

/* Map
   ============================================================ */
.map { padding: var(--s9) 0; }

.map__widget {
  margin-top: var(--s6);
  overflow: hidden;
  border-radius: var(--r-lg);
}

.map__widget iframe {
  display: block;
  width: 100%;
  height: 420px;
  border: none;
  border-radius: var(--r-lg);
}

.map__placeholder {
  background: var(--bg);
  border: 2px dashed var(--border);
  border-radius: var(--r-lg);
  padding: var(--s7);
  text-align: center;
  color: var(--text-muted);
  font-size: var(--t-sm);
  line-height: 1.8;
  height: 400px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* Footer
   ============================================================ */
.footer {
  padding: var(--s5) 0;
  background: var(--text);
  color: rgba(255,255,255,0.5);
}

.footer__socials {
  display: flex;
  justify-content: center;
  gap: var(--s5);
  margin-bottom: var(--s4);
  flex-wrap: wrap;
}

.footer__socials a {
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  font-size: var(--t-sm);
  transition: color var(--dur) var(--ease);
}

.footer__socials a:hover { color: #fff; }

.footer__copy {
  text-align: center;
  font-size: var(--t-sm);
}

.footer__cookies {
  text-align: center;
  font-size: var(--t-xs);
  opacity: 0.5;
  margin-top: var(--s1);
}

.footer__cookies a {
  color: inherit;
  text-decoration: underline;
}

.footer__dev {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  margin-bottom: var(--s4);
}

.footer__dev span {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
}

.footer__dev a {
  font-family: 'Unbounded', sans-serif;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 0.03em;
  background: linear-gradient(
    90deg,
    var(--wood) 0%,
    var(--wood) 30%,
    #fff8ee 48%,
    var(--wood) 60%,
    var(--wood) 100%
  );
  background-size: 250% auto;
  background-position: 100% center;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmer-dev 8s ease-in-out infinite;
  animation-delay: 3s;
}

.footer__dev a:hover { -webkit-text-fill-color: transparent; }

@keyframes shimmer-dev {
  0%   { background-position: 150% center; }
  25%  { background-position: -50% center; }
  100% { background-position: -50% center; }
}

/* ============================================================
   Mobile extras block (под карточками тарифов)
   ============================================================ */
.price__extras--desktop { display: flex; }
.price__extras--mobile  { display: none; }

.price__extras-title {
  font-size: var(--t-sm);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  margin-bottom: var(--s2);
}

@media (max-width: 767px) {
  .price__extras--desktop { display: none; }
  .price__extras--mobile {
    display: flex;
    flex-direction: column;
    gap: var(--s2);
    margin-top: calc(-1 * var(--s4));
    margin-bottom: var(--s6);
  }
}

/* ============================================================
   Карта — мобильная высота
   ============================================================ */
@media (max-width: 767px) {
  .map__widget iframe {
    height: 380px;
  }
}

/* ============================================================
   Контакты мобиль: полупрозрачные карточки + яркий hint
   ============================================================ */
@media (max-width: 767px) {
  .contacts__card {
    background: var(--bg);
    border-color: var(--border);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .contacts__card-label { color: var(--text-muted); }
  .contacts__card-value { color: var(--text); }

  .contacts__hint {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    font-size: var(--t-base);
  }
}
