
:root {
  --bg: #0b1020;
  --card: #0f172a;
  --muted: #94a3b8;
  --text: #e2e8f0;
  --brand: #10b981;
  --brand-2: #34d399;
  --danger: #ef4444;
  --shadow: 0 1px 0 rgba(0,0,0,.04), 0 10px 28px rgba(16,24,40,.26);
  --radius-xl: 18px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter, "Helvetica Neue", Arial, "Noto Sans", "Apple Color Emoji", "Segoe UI Emoji";
  background: radial-gradient(1200px 800px at 15% -10%, rgba(16,185,129,0.18), transparent 50%),
              radial-gradient(900px 700px at 110% -10%, rgba(52,211,153,0.25), transparent 55%),
              var(--bg);
  color: var(--text);
  line-height: 1.55;
}

a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { width: min(1100px, 92vw); margin: 0 auto; padding: 0; }

header.site-header {
  position: static; /* было sticky - убираем закрепление шапки при прокрутке*/
  /* top: 0;  <- можно удалить */
  /* z-index: 20; <- можно удалить */
  background: linear-gradient(180deg, rgba(11,16,32,0.92), rgba(11,16,32,0.72));
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}


.header-inner { display: flex; align-items: center; gap: 16px; padding: 12px 0; }
.logo { width: 40px; height: 40px; border-radius: 12px; background: conic-gradient(from 200deg, var(--brand), var(--brand-2)); display: grid; place-items: center; font-weight: 800; color: #052e16; box-shadow: var(--shadow); }
.title-wrap { display: grid; }
.title { font-size: clamp(18px, 3vw, 24px); margin: 0; letter-spacing: .2px; }
.subtitle { margin: 0; color: var(--muted); font-size: 14px; }

.hero { padding: 22px 0 10px; }
.searchbar { display: flex; gap: 10px; align-items: center; }
.searchbar input { flex: 1; padding: 12px 14px; border-radius: 12px; border: 1px solid rgba(148,163,184,.25); background: rgba(15,23,42,.7); color: var(--text); outline: none; }
.searchbar input::placeholder { color: #93a3b8; }
.searchbar button { padding: 12px 14px; border-radius: 12px; border: 0; cursor: pointer; font-weight: 600; background: linear-gradient(180deg, var(--brand), var(--brand-2)); color: #052e16; box-shadow: var(--shadow); }

/* Навигация по районам */
.district-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.district-nav a { padding: 8px 12px; border-radius: 999px; background: rgba(16,185,129,.12); border: 1px solid rgba(16,185,129,.28); color: #d1fae5; font-weight: 600; }
.district-nav a:hover { text-decoration: none; background: rgba(16,185,129,.18); }

/* Сетка карточек */
.grid { display: grid; gap: 16px; margin-top: 18px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }

.sauna-card { background: radial-gradient(400px 200px at 10% 0%, rgba(16,185,129,0.10), transparent 40%), var(--card); border: 1px solid rgba(255,255,255,0.06); border-radius: var(--radius-xl); overflow: hidden; box-shadow: var(--shadow); display: grid; grid-template-rows: auto 1fr auto; transition: transform .15s ease, border-color .2s ease; }
.sauna-card:hover { transform: translateY(-2px); border-color: rgba(52,211,153,0.35); }

.cover { position: relative; aspect-ratio: 16/9; background: #0b132b; overflow: hidden; }
.cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.price-badge { position: absolute; right: 10px; top: 10px; padding: 8px 10px; border-radius: 10px; background: rgba(5,46,22,.9); color: #a7f3d0; font-weight: 700; font-size: 14px; border: 1px solid rgba(52,211,153,.4); }

.content { padding: 14px 14px 8px; display: grid; gap: 8px; }
.name { font-size: 18px; font-weight: 800; margin: 0 0 2px; letter-spacing: .2px; }
.desc { color: var(--muted); margin: 0; font-size: 14px; }

.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.tag { padding: 6px 9px; border-radius: 999px; font-size: 12px; color: #c7f9e9; background: rgba(16,185,129,.14); border: 1px solid rgba(16,185,129,.28); }

.meta { display: grid; gap: 6px; padding: 0 14px 14px; }
.address { font-size: 14px; color: #cbd5e1; }
.district { font-size: 12px; color: #a7f3d0; opacity: .95; }

.actions { display: flex; gap: 10px; padding: 0 14px 16px 14px; }
.btn { appearance: none; border: 0; border-radius: 12px; padding: 10px 12px; cursor: pointer; font-weight: 700; background: rgba(16,185,129,.16); color: #d1fae5; border: 1px solid rgba(16,185,129,.28); }
.btn.primary { background: linear-gradient(180deg, var(--brand), var(--brand-2)); color: #052e16; }

footer { margin-top: 30px; color: var(--muted); font-size: 13px; text-align: center; }

@media (max-width: 640px) {
  .header-inner { padding: 10px 0; }
  .hero { padding-top: 14px; }
  .actions { flex-direction: column; }
}

/* Активный (текущий) район в меню: не кликабелен, визуально приглушён */
.district-nav a[aria-current="page"]{
  pointer-events: none;
  opacity: .6;
  filter: saturate(.7);
  border-style: dashed;
}

  /* === SEO-блок === */
  .seo{margin-top:28px;padding:18px 16px;border-radius:16px;background:rgba(15,23,42,.55);border:1px solid rgba(255,255,255,.06)}
  .seo h2{margin:0 0 8px;font-size:20px;letter-spacing:.2px}
  .seo p,.seo ul{color:var(--muted)}
  .seo ul{margin:8px 0 0;padding-left:18px}
  @media (max-width:640px){ .seo{padding:16px 14px} }


/* Ссылка на район внутри карточки */
.district a{
  color: #cbd5e1;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.district a:hover{ color: var(--text); }

/* Если это текущий район — делаем приглушённым и некликабельным */
.district[aria-current="page"]{
  opacity: .75;
  pointer-events: none;   /* на всякий случай, если где-то останется <a> */
}


/* Меню услуг */
.service-nav { display:flex; flex-wrap:wrap; gap:8px; margin:10px 0 0; }
.service-nav a { padding:8px 12px; border-radius:999px; background: rgba(52,211,153,.12);
  border:1px solid rgba(16,185,129,.28); color:#d1fae5; font-weight:600; text-decoration:none; }
.service-nav a:hover { background: rgba(52,211,153,.18); text-decoration:none; }
.service-nav a[aria-current="page"] { pointer-events:none; opacity:.6; filter:saturate(.7); border-style:dashed; }

/* Ссылки-метки услуг внутри карточки */
.tags .tag a { color:#c7f9e9; text-decoration:none; }
.tags .tag a:hover { text-decoration:underline; }
.tag.current { opacity:.75; border-style:dashed; }


/* Обложка-картинка как ссылка */
.cover a{ display:block; width:100%; height:100%; }
.cover a:focus-visible{ outline:2px solid var(--brand); outline-offset:2px; }


/* Выделение рекламных блоков */
.sauna-card.tier-vipplus{
  border-color: rgba(251,191,36,.55); /* gold-300 */
  box-shadow: 0 0 0 1px rgba(251,191,36,.25), var(--shadow);
  background:
    radial-gradient(500px 220px at 12% 0%, rgba(251,191,36,.18), transparent 45%),
    var(--card);
}
.sauna-card.tier-vip{
  border-color: rgba(245,158,11,.45); /* amber-400 */
  box-shadow: 0 0 0 1px rgba(245,158,11,.20), var(--shadow);
  background:
    radial-gradient(480px 200px at 12% 0%, rgba(245,158,11,.14), transparent 45%),
    var(--card);
}
/* бейдж уровня в углу обложки (для VIP+/VIP) */
.tier-badge{
  position:absolute; left:10px; top:10px;
  padding:6px 10px; border-radius:9px;
  font-weight:800; font-size:12px; letter-spacing:.3px;
  background: linear-gradient(180deg, #fde68a, #fbbf24);
  color:#3b2f08; border:1px solid rgba(251,191,36,.6);
}
.sauna-card.tier-vip .tier-badge{
  background: linear-gradient(180deg, #fcd34d, #f59e0b);
  border-color: rgba(245,158,11,.55);
}

/* Метки услуг внутри карточки остаются как были */


/* ===== Bars: контакты + карта ===== */
.contacts-card{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:16px;
  margin-top:18px;
  padding:16px;
  border-radius: var(--radius-xl);
  background: rgba(15,23,42,.55);
  border: 1px solid rgba(255,255,255,.06);
  box-shadow: var(--shadow);
}
.block-title{ margin:0 0 10px; font-size:20px; letter-spacing:.2px; }
.contacts-row{ margin:10px 0; }
.contacts-label{ color: var(--muted); font-size:14px; margin-bottom:6px; }
.phones{ list-style:none; padding:0; margin:0; display:flex; flex-wrap:wrap; gap:8px; }
.btn.phone{
  background: none;
  border: none;
  color: var(--brand);    /* оставим зелёный текст */
  font-weight: 700;       /* жирный шрифт */
  padding: 0;             /* уберём внутренние отступы */
}

.address-line{ font-size:16px; color:#e5e7eb; }

/* Карта */
.map-wrap{
  width:100%;
  aspect-ratio: 16/10;
  border-radius: 14px;
  overflow:hidden;
  border: 1px solid rgba(255,255,255,.06);
  box-shadow: var(--shadow);
}
.map-wrap iframe{ width:100%; height:100%; border:0; display:block; }




/* Галерея — masonry без ступенек */
.gallery { margin-top: 12px; }

/* вместо grid используем колонки */
.gallery-grid{
  column-width: 240px;      /* браузер сам подберёт кол-во колонок */
  column-gap: 6px;          /* горизонтальный зазор между колонками */
}

.gallery-item{
  break-inside: avoid;               /* не разрывать элементы */
  -webkit-column-break-inside: avoid;
  margin: 0 0 6px;                   /* вертикальный зазор между фото */
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.05);
  box-shadow: var(--shadow);
  background: #0b132b;
}

.gallery-item img{
  width: 100%;
  height: auto;   /* важнo: натуральная высота, чтобы не было пустот */
  display: block;
}

/* Адаптив: на узких экранах зазор чуть меньше */
@media (max-width: 900px){
  .gallery-grid{ column-width: 200px; column-gap: 5px; }
  .gallery-item{ margin-bottom: 5px; }
}
@media (max-width: 600px){
  .gallery-grid{ column-width: 160px; column-gap: 4px; }
  .gallery-item{ margin-bottom: 4px; }
}


/* === Локальное якорное меню === */
.local-nav {
  display: flex; gap: 8px; padding: 10px 0 14px;
  background: linear-gradient(180deg, rgba(11,16,32,.96), rgba(11,16,32,.78));
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid rgba(255,255,255,.06);
  margin-bottom: 10px;
}
.local-nav .lnk{
  padding: 8px 12px; border-radius: 999px;
  font-weight: 700; color:#d1fae5;
  background: rgba(16,185,129,.12);
  border:1px solid rgba(16,185,129,.28);
  text-decoration:none; white-space:nowrap;
}
.local-nav .lnk[aria-current="true"]{
  background: linear-gradient(180deg, var(--brand), var(--brand-2));
  color:#052e16; border-color: transparent;
}

/* Цены */
.prices{ margin-top:0px; padding:16px; border:1px solid rgba(255,255,255,.06); border-radius:14px; background: rgba(15,23,42,.55); }
.price-list{ list-style:none; padding:0; margin:8px 0 0; display:grid; gap:8px; }
.price-list li{ display:flex; justify-content:space-between; gap:12px; padding:10px 12px; border-radius:10px; background: rgba(255,255,255,.03); }
.price-list b{ font-weight:800; }
.muted{ color: var(--muted); margin-top:10px; }

.map-section{ margin-top:22px; }
@media (max-width:640px){
  .local-nav{ gap:6px; padding:8px 0 10px; }
  .local-nav .lnk{ padding:7px 10px; font-weight:700; }
}



/* Широкие кнопки действий */
.actions.actions--wide{ display:flex; gap:10px; margin-top:18px; }
.actions.actions--wide .btn{ flex:0 0 auto; }

@media (max-width: 900px){
  .contacts-card{ grid-template-columns: 1fr; }
  .map-wrap{ aspect-ratio: 16/12; }
}


/* === Позвонить: базовые стили (работают на всех ширинах) === */
.call-fab { display: none; }                    /* по умолчанию скрыта */
.call-sheet{
  position: fixed; inset: 0;                    /* всегда фиксированная маска */
  z-index: 999;
  background: rgba(0,0,0,.45);
  display: none;                                /* скрыта по умолчанию */
}
.call-sheet.open{ display: block; }             /* показываем при .open */

.call-sheet__card{
  position: absolute; left: 0; right: 0; bottom: 0;
  background: var(--card);
  border-radius: 16px 16px 0 0;
  border: 1px solid rgba(255,255,255,.06);
  box-shadow: 0 -8px 30px rgba(0,0,0,.35);
  padding: 14px 16px 18px;
  transform: translateY(100%);
  transition: transform .24s ease;
}
.call-sheet.open .call-sheet__card{ transform: translateY(0); }

.call-sheet__title{ margin: 2px 0 10px; font-size: 18px; }
.call-sheet__close{
  position:absolute; right:10px; top:10px;
  background: transparent; border:0; color: var(--text);
  font-size: 18px; cursor: pointer;
}
.call-list{ list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 8px; }
.call-list a{
  display:block; padding: 12px 14px; border-radius: 12px;
  border: 1px solid rgba(16,185,129,.28);
  background: rgba(16,185,129,.10);
  color:#d1fae5; font-weight: 800; text-decoration: none;
}


/* по умолчанию скрыта на ПК */
.call-fab { display: none; }

/* ширма поверх всего */
.call-sheet{ position: fixed; inset: 0; z-index: 999; background: rgba(0,0,0,.45); display:none; }
.call-sheet.open{ display:block; }

/* показываем на мобилке: кнопка на всю ширину + анимация бликов */
@media (max-width: 700px){
  /* чтобы контент не прятался под кнопкой */
  body{ padding-bottom: calc(70px + env(safe-area-inset-bottom, 0px)); }

  .call-fab{
    display: flex;
    position: fixed;
    left: 0; right: 0; bottom: 0;
    width: 100vw;                    /* во всю ширину экрана */
    min-height: 58px;
    padding: 0 18px;
    padding-bottom: max(0px, env(safe-area-inset-bottom, 0px));
    justify-content: center; align-items: center; gap: 10px;
    font-weight: 900; letter-spacing: .2px;
    background: linear-gradient(180deg, var(--brand), var(--brand-2));
    color:#052e16; border: 0; border-radius: 0;     /* без скруглений — края встык */
    box-shadow: 0 -6px 22px rgba(0,0,0,.28);
    z-index: 998;                                   /* ниже шторки */
    cursor: pointer; user-select: none;
    overflow: hidden;                                /* для бликов */
  }
  /* прячем кнопку, когда шторка открыта */
  .call-fab.is-hidden{ display: none !important; }

  /* БЛИК 1: диагональный пробег */
  .call-fab::after{
    content:"";
    position:absolute; inset:0;
    background: linear-gradient(110deg,
      transparent 0%,
      rgba(255,255,255,.22) 14%,
      rgba(255,255,255,.10) 18%,
      transparent 28%);
    transform: translateX(-100%);
    animation: fab-shimmer 2.4s linear infinite;
    pointer-events: none;
  }

  /* БЛИК 2: мягкий «пульс» */
  .call-fab::before{
    content:"";
    position:absolute; left:50%; top:0; width:160px; height:100%;
    transform: translateX(-50%);
    background: radial-gradient(120px 60px at 50% -10%,
      rgba(255,255,255,.22), rgba(255,255,255,0));
    opacity: .0;
    animation: fab-pulse 3.6s ease-in-out infinite;
    pointer-events: none;
  }

  @keyframes fab-shimmer{
    0%   { transform: translateX(-120%); }
    100% { transform: translateX(120%); }
  }
  @keyframes fab-pulse{
    0%, 70%, 100% { opacity: 0; }
    35%          { opacity: .35; }
  }

  /* шторка-карта карточка */
  .call-sheet__card{
    position: absolute; left: 0; right: 0; bottom: 0;
    background: var(--card);
    border-radius: 16px 16px 0 0;
    border: 1px solid rgba(255,255,255,.06);
    box-shadow: 0 -8px 30px rgba(0,0,0,.35);
    padding: 14px 16px 18px;
    transform: translateY(100%);
    transition: transform .24s ease;
  }
  .call-sheet.open .call-sheet__card{ transform: translateY(0); }

  .call-sheet__title{ margin: 2px 0 10px; font-size: 18px; }
  .call-sheet__close{
    position:absolute; right:10px; top:10px;
    background: transparent; border:0; color: var(--text);
    font-size: 18px; cursor: pointer;
  }
  .call-list{ list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 8px; }
  .call-list a{
    display:block; padding: 12px 14px; border-radius: 12px;
    border: 1px solid rgba(16,185,129,.28);
    background: rgba(16,185,129,.10);
    color:#d1fae5; font-weight: 800; text-decoration: none;
  }
}

/* уважение к настройке «уменьшение анимации» */
@media (prefers-reduced-motion: reduce){
  .call-fab::after, .call-fab::before { animation: none !important; }
}


  .price-table {
    border-collapse: collapse;
    margin: 20px auto;
    width: 70%;
    max-width: 100%;
    border: 2px solid #058054; /* зелёный кант */
  }

  .price-table th,
  .price-table td {
    border: 1px solid #058054;
    padding: 10px 14px;
    text-align: left;
  }

  .price-table th {
    background: #058054;
  }
  
  /* центрируем второй заголовок */
  .price-table th:nth-child(2) {
    text-align: center;
  }

  /* второй столбец всегда в 1 строку */
  .price-table td:last-child {
    white-space: nowrap;
    text-align: center;
    font-weight: 600;
  }

  /* адаптив */
  @media (max-width: 700px) {
    .price-table {
      width: 95%;
    }
  }
  

  a.k-link {
    color: inherit; /* цвет текста как у основного текста */
    text-decoration: underline;
    text-decoration-color: rgba(255, 255, 255, 0.3); /* светлое/полупрозрачное подчёркивание */
    text-decoration-thickness: 1px; /* тонкая линия */
  }

  a.k-link:hover {
    text-decoration-color: rgba(255, 255, 255, 0.6); /* при наведении чуть ярче */
  }


/* === Lightbox (просмотр фото) — стабильная версия === */
.no-scroll { overflow: hidden; }

/* слой-маска */
.lightbox{
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(0,0,0,.72);
  display: none;                 /* скрыто по умолчанию */
}
.lightbox.open{
  display: flex;                 /* центрируем содержимое */
  align-items: center;
  justify-content: center;
}

/* рабочая область для картинки */
.lb-stage{
  position: relative;
  width: min(96vw, 1400px);      /* ограничение ширины */
  height: min(90vh, 96vh);       /* и высоты */
  display: grid; place-items: center;
  padding: 0;                    /* без внутренних отступов */
  pointer-events: none;
}

/* картинка: строго вписать, не вылезать */
#lbImg{
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto; height: auto;
  object-fit: contain;           /* вписывание по ширине/высоте */
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,.35);
  image-rendering: auto;
}

/* подпись снизу по центру */
.lb-caption{
  position: fixed;
  left: 16px; right: 16px; bottom: 18px;
  text-align: center;
  color: #e5e7eb; font-size: 14px;
  text-shadow: 0 2px 6px rgba(0,0,0,.6);
  pointer-events: none;
}

/* --- Кнопки: всегда НАД картинкой и кликабельны --- */
.lb-btn{
  position: fixed;               /* фиксируем к краям окна */
  z-index: 1100;                 /* поверх всего контента */
  width: 44px; height: 44px; border-radius: 999px;
  border: 1px solid rgba(255,255,255,.35);
  background: rgba(15,23,42,.65);
  color: #fff; font-size: 22px; line-height: 1;
  display: grid; place-items: center;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(0,0,0,.35);
}

/* закрыть (в правом верхнем углу) */
.lb-close{
  top: 16px; right: 16px; font-size: 26px;
  border-color: rgba(255,255,255,.25);
}

/* стрелки слева/справа по центру экрана */
.lb-prev{ left: 20px;  top: 50%; transform: translateY(-50%); }
.lb-next{ right: 20px; top: 50%; transform: translateY(-50%); }

/* кнопка «развернуть на весь экран» (показываем по условию из JS) */
.lb-expand{
  right: 18px; bottom: 18px; font-size: 20px;
}
.lb-expand.hidden{ display: none; }

/* ховеры/фокус */
.lb-btn:hover{ background: rgba(15,23,42,.78); }
.lb-btn:focus-visible{ outline: 2px solid var(--brand); outline-offset: 2px; }

/* адаптив мелких экранов */
@media (max-width: 520px){
  .lb-btn{ width: 40px; height: 40px; font-size: 20px; }
  .lb-prev{ left: 10px; }
  .lb-next{ right: 10px; }
  .lb-close{ top: 10px; right: 10px; }
  .lb-expand{ right: 12px; bottom: 12px; width: 40px; height: 40px; font-size: 18px; }
  .lb-caption{ bottom: 12px; font-size: 13px; }
}
