/*
Theme Name: Sauna Ugra Redesign
Description: Современный редизайн сайта сауны «Югра»
Version: 2.0
*/

/* =========================================================
   ПЕРЕМЕННЫЕ
   ========================================================= */
:root {
  --bg:         #1a211c;
  --bg-soft:    #232b26;
  --bg-light:   #f4f6f2;
  --bg-light-2: #e9ede4;
  --card:       #ffffff;
  --text:       #1c2320;
  --text-dim:   #5c6660;
  --text-inv:   #f2f5f0;
  --accent:     #4fa834;
  --accent-2:   #7bcf56;
  --accent-3:   #a8e07f;
  --gold:       #d9a441;
  --border:     rgba(0,0,0,.08);
  --border-inv: rgba(255,255,255,.12);
  --radius:     18px;
  --radius-sm:  12px;
  --shadow:     0 20px 60px -20px rgba(0,0,0,.3);
  --shadow-sm:  0 6px 24px -10px rgba(0,0,0,.2);
  --container:  1240px;
  --transition: .35s cubic-bezier(.22,.61,.36,1);
  --font:       'Inter', 'Helvetica Neue', Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg-light);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: color var(--transition); }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3 { margin: 0; line-height: 1.15; font-weight: 800; letter-spacing: -.02em; }
p { margin: 0 0 1em; }
button { font: inherit; cursor: pointer; border: 0; background: none; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* =========================================================
   КНОПКИ
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
  white-space: nowrap;
  cursor: pointer;
}
.btn:hover { transform: translateY(-2px); }
.btn--accent {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  box-shadow: 0 10px 30px -10px rgba(79,168,52,.55);
}
.btn--accent:hover { box-shadow: 0 16px 40px -12px rgba(79,168,52,.75); }
.btn--ghost {
  background: transparent;
  color: inherit;
  border: 1.5px solid currentColor;
}
.btn--sm { padding: 10px 18px; font-size: 14px; }
.btn--lg { padding: 16px 34px; font-size: 16px; }

/* =========================================================
   ШАПКА
   ========================================================= */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  background: rgba(20,27,22,.75);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-inv);
  transition: background var(--transition);
}
.site-header.is-scrolled { background: rgba(20,27,22,.95); }
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 76px;
}
.logo img { width: 150px; height: auto; }

.main-nav ul { display: flex; gap: 28px; }
.main-nav a {
  color: var(--text-inv);
  font-weight: 500;
  font-size: 15px;
  position: relative;
  opacity: .85;
}
.main-nav a::after {
  content: '';
  position: absolute;
  left: 0; bottom: -6px;
  width: 0; height: 2px;
  background: var(--accent-2);
  transition: width var(--transition);
}
.main-nav a:hover { opacity: 1; }
.main-nav a:hover::after { width: 100%; }

.header-contacts { display: flex; align-items: center; gap: 18px; }
.header-phone {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-weight: 700;
  font-size: 16px;
  white-space: nowrap;
  transition: color var(--transition);
}
.header-phone:hover { color: var(--accent-2); }
.header-phone__icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  flex-shrink: 0;
  box-shadow: 0 4px 14px -4px rgba(79,168,52,.6);
  transition: transform var(--transition), box-shadow var(--transition);
}
.header-phone:hover .header-phone__icon {
  transform: scale(1.08);
  box-shadow: 0 6px 20px -4px rgba(79,168,52,.8);
}
.header-phone__icon svg { display: block; }
.header-social { display: flex; gap: 8px; }
.header-social img {
  width: 28px; height: 28px;
  border-radius: 50%;
  opacity: .8;
  transition: opacity var(--transition), transform var(--transition);
}
.header-social a:hover img { opacity: 1; transform: translateY(-2px); }

.nav-toggle {
  display: none;
  width: 42px; height: 42px;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  border-radius: 10px;
}
.nav-toggle span {
  height: 2px; background: #fff; border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  overflow: hidden;
}
.hero__bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.05);
  animation: heroZoom 20s ease-out forwards;
}
@keyframes heroZoom { to { transform: scale(1); } }
.hero__overlay {
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 50% 30%, rgba(20,27,22,.3), rgba(20,27,22,.88) 80%),
    linear-gradient(180deg, rgba(20,27,22,.55), rgba(20,27,22,.8));
}
.hero__content {
  position: relative;
  z-index: 1;
  padding-top: 100px;
  padding-bottom: 60px;
}
.hero__title {
  font-size: clamp(38px, 6vw, 80px);
  text-transform: uppercase;
  letter-spacing: -.03em;
  margin-bottom: 20px;
  text-shadow: 0 4px 30px rgba(0,0,0,.5);
}
.hero__title span {
  background: linear-gradient(135deg, var(--accent-2), var(--gold));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero__subtitle {
  font-size: clamp(16px, 2vw, 22px);
  opacity: .9;
  margin-bottom: 36px;
}
.hero__actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 48px;
}
.hero__features {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
.hero__features li {
  padding: 8px 18px;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  border: 1px solid var(--border-inv);
  font-size: 14px;
  letter-spacing: .04em;
  text-transform: uppercase;
  opacity: .85;
}

/* =========================================================
   СЕКЦИИ — светлее фон
   ========================================================= */
.section { padding: 100px 0; position: relative; }

.section--light {
  background: linear-gradient(180deg, #f7f9f5 0%, #eef2ea 100%);
  color: var(--text);
}

.section--dark {
  background:
    radial-gradient(circle at 15% 10%, rgba(79,168,52,.12), transparent 45%),
    radial-gradient(circle at 85% 90%, rgba(123,207,86,.08), transparent 45%),
    linear-gradient(180deg, #232b26 0%, #1a211c 100%);
  color: var(--text-inv);
}
.section--dark .section__subtitle { color: rgba(242,245,240,.65); }

.section--parallax {
  min-height: 480px;
  display: flex;
  align-items: center;
  color: #fff;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  position: relative;
}
.section--parallax::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(30,40,30,.75), rgba(20,30,22,.55));
}
.section--parallax .container { position: relative; z-index: 2; }

.section__title {
  font-size: clamp(30px, 4vw, 52px);
  text-align: center;
  margin-bottom: 12px;
}
.section__subtitle {
  text-align: center;
  font-size: 17px;
  color: var(--text-dim);
  margin-bottom: 56px;
}
.section--dark .section__subtitle { color: rgba(242,245,240,.6); }
.section__cta { text-align: center; margin-top: 56px; }

/* =========================================================
   УСЛУГИ / САУНА
   ========================================================= */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.service-card {
  background: rgba(255,255,255,.04);
  border: 1px solid var(--border-inv);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition),
              border-color var(--transition), background var(--transition);
}
.service-card:hover {
  transform: translateY(-6px);
  border-color: rgba(123,207,86,.45);
  background: rgba(255,255,255,.07);
  box-shadow: 0 20px 40px -20px rgba(0,0,0,.5);
}
.service-card img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform .6s cubic-bezier(.22,.61,.36,1);
}
.service-card:hover img { transform: scale(1.03); }

/* =========================================================
   ГАЛЕРЕЯ
   ========================================================= */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
}

.gallery-item {
  padding: 0;
  border: 0;
  background: #e9ede4; /* Легкий серый фон на случай, если картинка грузится */
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: zoom-in;
  position: relative;
  width: 100%;
  /* Убираем aspect-ratio, задаем фиксированную высоту */
  height: 220px; 
  display: block;
  transition: transform var(--transition), box-shadow var(--transition);
}

.gallery-item::after {
  content: '🔍';
  position: absolute; inset: 0;
  display: grid; place-items: center;
  background: rgba(20,27,22,.5);
  color: #fff;
  font-size: 22px;
  opacity: 0;
  transition: opacity var(--transition);
  pointer-events: none;
}

.gallery-item:hover { transform: translateY(-3px); box-shadow: 0 16px 40px -16px rgba(0,0,0,.4); }
.gallery-item:hover::after { opacity: 1; }

.gallery-item img {
  width: 100%;
  height: 100%;
  /* Заставляем картинку заполнить блок, сохраняя пропорции */
  object-fit: cover; 
  display: block;
  transition: transform .6s cubic-bezier(.22,.61,.36,1);
}

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

/* Адаптив для мобильных: 2 колонки и уменьшенная высота */
@media (max-width: 560px) {
  .gallery-grid { 
    grid-template-columns: repeat(2, 1fr); 
    gap: 10px; 
  }
  .gallery-item {
    height: 140px; /* Чуть уменьшаем высоту, чтобы смотрелось аккуратно */
  }
}

/* =========================================================
   БИЛЬЯРД / КАРАОКЕ
   ========================================================= */
.feature {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}
.feature__title {
  font-size: clamp(34px, 5vw, 64px);
  text-transform: uppercase;
  margin-bottom: 20px;
  letter-spacing: -.02em;
}
.feature__text {
  font-size: clamp(17px, 2.2vw, 22px);
  opacity: .92;
  letter-spacing: .02em;
}

/* === Караоке — красивый фон === */
.section--karaoke {
  background-attachment: fixed;
}
.section--karaoke::before {
  background:
    linear-gradient(135deg, rgba(30,20,40,.7), rgba(20,30,22,.5)),
    radial-gradient(circle at 30% 40%, rgba(180,90,220,.25), transparent 55%),
    radial-gradient(circle at 70% 60%, rgba(79,168,52,.3), transparent 55%);
}
.karaoke-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 1;
  animation: karaokeFloat 12s ease-in-out infinite;
}
.karaoke-glow--1 {
  width: 380px; height: 380px;
  top: 10%; left: 5%;
  background: radial-gradient(circle, rgba(180,90,220,.55), transparent 70%);
}
.karaoke-glow--2 {
  width: 420px; height: 420px;
  bottom: 8%; right: 5%;
  background: radial-gradient(circle, rgba(123,207,86,.55), transparent 70%);
  animation-delay: -6s;
}
@keyframes karaokeFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%      { transform: translate(20px, -20px) scale(1.1); }
}
.feature__title--glow {
  background: linear-gradient(135deg, #f6e8ff, #a8e07f);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 30px rgba(180,120,220,.5));
}

/* =========================================================
   ОТЗЫВЫ
   ========================================================= */
.reviews-slider { overflow: hidden; position: relative; }
.reviews-track {
  display: flex;
  gap: 24px;
  transition: transform .55s cubic-bezier(.22,.61,.36,1);
}
.review {
  flex: 0 0 calc((100% - 24px) / 2);
  background: rgba(255,255,255,.06);
  border: 1px solid var(--border-inv);
  border-radius: var(--radius);
  padding: 32px;
  backdrop-filter: blur(6px);
  box-sizing: border-box;
  transition: background var(--transition), border-color var(--transition);
}
.review:hover {
  background: rgba(255,255,255,.09);
  border-color: rgba(123,207,86,.35);
}
.review__head { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.review__avatar {
  width: 48px; height: 48px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  font-weight: 700; font-size: 20px;
  color: #fff;
  flex-shrink: 0;
}
.review__name { display: block; font-size: 17px; }
.review__stars { color: var(--gold); font-size: 14px; letter-spacing: 2px; }
.review__text { color: rgba(242,245,240,.82); line-height: 1.7; margin: 0; }
.reviews-controls {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 28px;
}
.slider-btn {
  width: 48px; height: 48px;
  border-radius: 50%;
  border: 1.5px solid var(--border-inv);
  color: #fff;
  font-size: 24px;
  line-height: 1;
  display: grid; place-items: center;
  transition: background var(--transition), transform var(--transition);
}
.slider-btn:hover {
  background: var(--accent);
  border-color: var(--accent);
  transform: scale(1.05);
}

/* =========================================================
   КОНТАКТЫ
   ========================================================= */
.contacts-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 48px;
  align-items: start;
}
.contacts-info { display: flex; flex-direction: column; gap: 22px; align-items: flex-start; }
.contact-item__label {
  display: block;
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 4px;
}
.contact-item p { margin: 0; font-size: 18px; line-height: 1.5; }
.contact-item a { color: var(--text); font-weight: 600; }
.contact-item a:hover { color: var(--accent); }
.contacts-map {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  min-height: 420px;
}
.contacts-map iframe,
.contacts-map > * { width: 100%; }

/* =========================================================
   ПОДВАЛ
   ========================================================= */
.site-footer {
  background: #141b16;
  color: var(--text-inv);
  padding-top: 70px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 50px;
}
.footer-col h3 {
  font-size: 14px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: 18px;
}
.footer-col p { color: rgba(242,245,240,.65); margin: 0 0 8px; }
.footer-col a { color: rgba(242,245,240,.85); }
.footer-col a:hover { color: var(--accent-2); }
.footer-col ul { display: flex; flex-direction: column; gap: 8px; }
.footer-bottom {
  border-top: 1px solid var(--border-inv);
  padding: 22px 0;
  font-size: 14px;
  color: rgba(242,245,240,.5);
}

/* =========================================================
   ПЛАВАЮЩАЯ КНОПКА
   ========================================================= */
.call-fab {
  position: fixed;
  right: 20px; bottom: 20px;
  z-index: 90;
  width: 60px; height: 60px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  box-shadow: 0 12px 30px -8px rgba(79,168,52,.6);
  transition: transform var(--transition), box-shadow var(--transition);
  animation: fabPulse 2.5s ease-in-out infinite;
}
.call-fab:hover { transform: scale(1.08); }
@keyframes fabPulse {
  0%, 100% { box-shadow: 0 12px 30px -8px rgba(79,168,52,.6), 0 0 0 0 rgba(79,168,52,.5); }
  50%      { box-shadow: 0 12px 30px -8px rgba(79,168,52,.6), 0 0 0 14px rgba(79,168,52,0); }
}

/* =========================================================
   ЛАЙТБОКС
   ========================================================= */
.lightbox {
  position: fixed; inset: 0;
  background: rgba(10,14,11,.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1000;
  display: grid;
  grid-template-rows: 1fr auto;
  place-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition), visibility var(--transition);
}
.lightbox.is-open { opacity: 1; visibility: visible; }

.lightbox__stage {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  padding: 60px 80px;
}
.lightbox__stage img {
  max-width: 100%;
  max-height: 100%;
  border-radius: var(--radius-sm);
  box-shadow: 0 30px 80px -20px rgba(0,0,0,.8);
  transform: scale(.95);
  opacity: 0;
  transition: transform .45s cubic-bezier(.22,.61,.36,1), opacity .3s;
}
.lightbox.is-open .lightbox__stage img {
  transform: scale(1);
  opacity: 1;
}

.lightbox__close {
  position: absolute;
  top: 24px; right: 24px;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: rgba(255,255,255,.1);
  color: #fff;
  font-size: 28px;
  line-height: 1;
  display: grid; place-items: center;
  transition: background var(--transition), transform var(--transition);
  z-index: 2;
}
.lightbox__close:hover { background: rgba(255,255,255,.2); transform: rotate(90deg); }

.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 56px; height: 56px;
  border-radius: 50%;
  background: rgba(255,255,255,.1);
  color: #fff;
  font-size: 32px;
  line-height: 1;
  display: grid; place-items: center;
  transition: background var(--transition), transform var(--transition);
  z-index: 2;
}
.lightbox__nav:hover { background: var(--accent); transform: translateY(-50%) scale(1.1); }
.lightbox__nav--prev { left: 24px; }
.lightbox__nav--next { right: 24px; }

.lightbox__counter {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,.7);
  font-size: 14px;
  letter-spacing: .1em;
  background: rgba(0,0,0,.4);
  padding: 6px 16px;
  border-radius: 999px;
}

/* =========================================================
   АНИМАЦИЯ
   ========================================================= */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .8s var(--transition), transform .8s var(--transition);
}
.reveal.is-visible { opacity: 1; transform: none; }

/* =========================================================
   АДАПТИВ
   ========================================================= */
@media (min-width: 861px) { .call-fab { display: none; } }

@media (max-width: 1024px) {
  .contacts-grid { grid-template-columns: 1fr; }
  .review { flex: 0 0 100%; }
}

@media (max-width: 860px) {
  .main-nav {
    display: flex;
    position: absolute;
    top: 100%; /* Сразу под нижней границей header */
    left: 0;
    right: 0;
    flex-direction: column;
    background: #141b16;
    padding: 20px 24px 30px;
    border-top: 1px solid var(--border-inv);
    border-bottom: 1px solid var(--border-inv);
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: transform .3s var(--transition), opacity .3s var(--transition), visibility .3s;
    z-index: 10; /* Ниже шапки, но выше контента */
    box-shadow: 0 20px 40px -20px rgba(0,0,0,.6);
  }

  .main-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .main-nav ul {
    flex-direction: column;
    gap: 0;
  }
  .main-nav li { border-bottom: 1px solid rgba(255,255,255,.06); }
  .main-nav li:last-child { border-bottom: 0; }
  .main-nav a {
    display: block;
    padding: 16px 4px;
    font-size: 17px;
    opacity: 1;
  }
  .main-nav a::after { display: none; }

  /* Скрываем телефон и кнопку на мобильных */
  .header-contacts .header-phone,
  .header-contacts .btn { display: none; }
  .nav-toggle { display: flex; }




  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .section { padding: 70px 0; }
  .hero__features li { font-size: 12px; padding: 6px 12px; }
  .lightbox__nav { width: 44px; height: 44px; font-size: 24px; }
  .lightbox__nav--prev { left: 12px; }
  .lightbox__nav--next { right: 12px; }
  .lightbox__stage { padding: 60px 20px; }
}


/* =========================================================
   ШАПКА И МЕНЮ (десктоп)
   ========================================================= */
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 76px;
}

/* Меню занимает всё свободное место между логотипом и контактами */
.main-nav {
  display: flex;
  justify-content: center; /* Центрируем пункты по горизонтали */
  flex: 1;                 /* Растягиваем на свободное место */
}

.main-nav ul {
  display: flex;
  gap: 28px;
}

.main-nav a {
  color: var(--text-inv);
  font-weight: 500;
  font-size: 15px;
  position: relative;
  opacity: .85;
  transition: opacity var(--transition);
}
.main-nav a::after {
  content: '';
  position: absolute;
  left: 0; bottom: -6px;
  width: 0; height: 2px;
  background: var(--accent-2);
  transition: width var(--transition);
}
.main-nav a:hover { opacity: 1; }
.main-nav a:hover::after { width: 100%; }