/* ===== Подсознание — лаундж-бар и кальянная =====
   Тёплый монохромный акцент (золото) на тёмном дымном фоне, светлая тема —
   в противовес. Рамки/линии вместо теней, сверхжирные плотные заголовки. */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; }
img { max-width: 100%; height: auto; display: block; -webkit-user-drag: none; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p, dl, dd, blockquote, figure { margin: 0; }

:root{
  --font-head: "Arial Black", "Helvetica Neue", "Segoe UI", Arial, sans-serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", Consolas, "Liberation Mono", monospace;

  --radius: 6px;
  --gap: clamp(14px, 2.2vw, 22px);
  --pad: clamp(20px, 5vw, 48px);
  --max: 1200px;
}

/* ---- Тёмная тема (по умолчанию) ---- */
[data-theme="dark"]{
  --bg: #181310;
  --bg-alt: #1f1814;
  --surface: #241c17;
  --text: #f4ede4;
  --text-dim: #b8a99a;
  --line: rgba(214, 168, 110, .25);
  --line-strong: rgba(214, 168, 110, .45);
  --gold: #d6a86e;
  --gold-deep: #b8894f;
  --accent-text: #221807;
  --bar-bg: rgba(214, 168, 110, .16);
}

/* ---- Светлая тема ---- */
[data-theme="light"]{
  --bg: #f6efe5;
  --bg-alt: #efe4d3;
  --surface: #fffaf3;
  --text: #241a10;
  --text-dim: #6d5b47;
  --line: rgba(120, 80, 30, .2);
  --line-strong: rgba(120, 80, 30, .38);
  --gold: #a3702f;
  --gold-deep: #7c5320;
  --accent-text: #fffaf3;
  --bar-bg: rgba(120, 80, 30, .12);
}

html[data-theme] body {
  background: var(--bg);
  color: var(--text);
}

body{
  font-family: var(--font-body);
  line-height: 1.55;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

::selection{ background: var(--gold); color: var(--accent-text); }

.wrap{ max-width: var(--max); margin: 0 auto; padding-inline: var(--pad); }

.skip-link{
  position: absolute; left: -9999px; top: 0;
  background: var(--gold); color: var(--accent-text);
  padding: 12px 18px; z-index: 200; border-radius: 0 0 var(--radius) 0;
  font-weight: 700;
}
.skip-link:focus{ left: 0; }

.icon-sprite{ position: absolute; width: 0; height: 0; overflow: hidden; }
svg[aria-hidden="true"]:not(.brand__mark):not(.icon-sun):not(.icon-moon){
  width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.75;
  stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0;
}

:focus-visible{ outline: 2px solid var(--gold); outline-offset: 3px; }

.nowrap{ white-space: nowrap; }

/* ---- Контурные буквы: безопасный вариант с видимым запасным цветом ---- */
.text-outline{ color: var(--gold, #c9784f); }
[data-theme] .text-outline{
  color: transparent;
  -webkit-text-stroke: 2px var(--gold);
  text-stroke: 2px var(--gold);
}
@supports not (-webkit-text-stroke: 1px red){
  [data-theme] .text-outline{ color: var(--gold); text-stroke: none; -webkit-text-stroke: 0; }
}

/* ================= Header ================= */
.site-header{
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header__inner{
  display: flex; align-items: center; gap: clamp(10px, 3vw, 28px);
  height: 68px;
}
.brand{ display: flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; }
.brand__mark{ width: 34px; height: 34px; flex-shrink: 0; }
.brand__mark path{ stroke: var(--gold); fill: none; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.brand__text{ font-family: var(--font-head); font-weight: 900; font-size: 18px; line-height: 1; letter-spacing: -.01em; }
.brand__text small{ display: block; font-family: var(--font-mono); font-weight: 400; font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--text-dim); margin-top: 4px; }

.site-nav{ display: flex; gap: clamp(14px, 2vw, 26px); }
.site-nav a{ text-decoration: none; font-size: 14.5px; font-weight: 600; color: var(--text-dim); padding: 12px 2px; border-bottom: 2px solid transparent; transition: color .2s, border-color .2s; }
.site-nav a:hover, .site-nav a:focus-visible{ color: var(--text); border-color: var(--gold); }

.header__actions{ display: flex; align-items: center; gap: 8px; }
.nav-toggle{ display: none; }

.btn{
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-weight: 700; font-size: 14.5px; text-decoration: none;
  padding: 11px 18px; border-radius: var(--radius);
  border: 1.5px solid transparent; transition: transform .18s, border-color .2s, background .2s, color .2s;
  min-height: 44px;
}
.btn svg{ width: 18px; height: 18px; }
.btn--accent{ background: var(--gold); color: var(--accent-text); border-color: var(--gold); }
.btn--accent:hover{ background: var(--gold-deep); border-color: var(--gold-deep); }
.btn--line{ background: transparent; color: var(--text); border-color: var(--line-strong); }
.btn--line:hover{ border-color: var(--gold); color: var(--gold); }
.btn--ghost{ background: transparent; color: var(--text); }
.btn--icon-only{ padding: 10px; min-width: 44px; }
.btn--lg{ padding: 16px 26px; font-size: 16px; }

.header__phone svg{ width: 20px; height: 20px; }
#theme-toggle .icon-moon{ display: none; }
[data-theme="light"] #theme-toggle .icon-sun{ display: none; }
[data-theme="light"] #theme-toggle .icon-moon{ display: block; }

/* ================= Типографика заголовков ================= */
h1, h2, h3{ font-family: var(--font-head); font-weight: 900; line-height: .98; letter-spacing: -.01em; }
.overline{
  font-family: var(--font-mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--gold); font-weight: 600; margin-bottom: 10px;
}
.section-num{ font-family: var(--font-mono); font-size: 13px; color: var(--text-dim); margin-bottom: 6px; }
.section-title{ font-size: clamp(28px, 4.2vw, 44px); max-width: 20ch; }
.section-lede{ margin-top: 14px; max-width: 62ch; color: var(--text-dim); font-size: 17px; }

/* ================= Hero: фото-баннер сверху, текст под ним ================= */
.hero{ border-bottom: 1px solid var(--line); }
.hero__visual{
  position: relative;
  height: clamp(240px, 46vh, 460px);
  overflow: hidden;
}
.hero__visual img{ width: 100%; height: 100%; object-fit: cover; object-position: center 30%; filter: saturate(.85) contrast(1.05); }
.hero__visual::after{
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(0deg, var(--bg), transparent 45%);
}

.hero__body{
  background:
    radial-gradient(60% 70% at 90% 0%, color-mix(in srgb, var(--gold) 12%, transparent), transparent 70%),
    var(--bg);
  padding-block: clamp(30px, 5vw, 56px);
}
.hero__content{ display: flex; flex-direction: column; gap: clamp(16px, 2.2vw, 22px); max-width: 62ch; }
.hero__title{ font-size: clamp(32px, 5.6vw, 60px); }
.hero__lead{ font-size: 17px; color: var(--text-dim); max-width: 46ch; }
.hero__actions{ display: flex; flex-wrap: wrap; gap: 12px; margin-top: 4px; }

/* ---- Полоса фактов: три одинаковые плашки ---- */
.stats-row{
  margin-top: clamp(28px, 4vw, 40px);
  display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--gap);
  max-width: 46ch;
}
.stat-card{
  border: 1.5px solid var(--line); border-radius: var(--radius); background: var(--surface);
  padding: clamp(16px, 2.2vw, 22px);
  display: flex; flex-direction: column; gap: 6px; align-items: flex-start;
}
.stat-card__num{
  font-family: var(--font-head); font-weight: 900; font-variant-numeric: tabular-nums;
  font-size: clamp(30px, 4.4vw, 42px); color: var(--gold); line-height: 1;
}
.stat-card__label{ font-size: 13.5px; color: var(--text-dim); }
.stat-card__stars{ color: var(--gold); letter-spacing: 2px; font-size: 14px; margin-top: 2px; }

/* ================= Секции ================= */
.section{ padding-block: clamp(56px, 9vw, 108px); scroll-margin-top: 76px; }
.section--alt{ background: var(--bg-alt); border-block: 1px solid var(--line); }

/* ---- Что есть: ряд равных карточек, без дыр при любом числе ---- */
.feature-grid{
  margin-top: clamp(28px, 4vw, 44px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--gap);
}
.feature-card{
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(18px, 2.5vw, 26px);
  display: flex; flex-direction: column; gap: 10px;
  transition: border-color .2s, transform .2s;
}
.feature-card:hover{ border-color: var(--gold); transform: translateY(-3px); }
.feature-card__icon{ width: 26px; height: 26px; color: var(--gold); }
.feature-card h3{ font-family: var(--font-body); font-weight: 800; font-size: 17px; line-height: 1.2; }
.feature-card p{ color: var(--text-dim); font-size: 14.5px; }

/* ---- Оплата: строка, не плитка ---- */
.pay-strip{
  margin-top: var(--gap);
  display: flex; flex-wrap: wrap; gap: clamp(10px, 2vw, 18px);
  border: 1.5px solid var(--line); border-radius: var(--radius); background: var(--surface);
  padding: clamp(14px, 2vw, 18px) clamp(18px, 2.5vw, 26px);
}
.pay-strip__item{ display: flex; align-items: center; gap: 8px; font-size: 14.5px; color: var(--text-dim); }
.pay-strip__item svg{ width: 18px; height: 18px; color: var(--gold); }

/* ================= Отзывы ================= */
.reviews{
  margin-top: clamp(28px, 4vw, 44px);
  display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap);
  align-items: stretch;
}
.review{
  border: 1.5px solid var(--line); border-radius: var(--radius);
  padding: clamp(18px, 2.5vw, 24px);
  background: var(--surface);
  display: flex; flex-direction: column; gap: 12px;
}
.review__stars{ color: var(--gold); letter-spacing: 2px; font-size: 15px; }
.review p{ font-size: 15px; color: var(--text); }

/* ================= Галерея / лайтбокс ================= */
.gallery{
  margin-top: clamp(28px, 4vw, 44px);
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: var(--gap);
}
.gallery__item{
  padding: 0; overflow: hidden; border-radius: var(--radius);
  border: 1.5px solid var(--line); aspect-ratio: 4 / 5; cursor: zoom-in;
}
.gallery__item img{ width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.gallery__item:hover img{ transform: scale(1.04); }

.gallery__counter{
  border: 1.5px solid var(--line); border-radius: var(--radius); background: var(--surface);
  aspect-ratio: 4 / 5; display: flex; flex-direction: column; justify-content: center; gap: 8px;
  padding: clamp(18px, 2.5vw, 26px);
}
.gallery__counter-num{ font-family: var(--font-head); font-weight: 900; font-size: clamp(40px, 7vw, 60px); color: var(--gold); line-height: 1; }
.gallery__counter-label{ color: var(--text-dim); font-size: 14.5px; max-width: 18ch; }

.lightbox{
  position: fixed; inset: 0; z-index: 300;
  background: color-mix(in srgb, var(--bg) 92%, black 8%);
  display: flex; align-items: center; justify-content: center;
}
.lightbox[hidden]{ display: none; }
.lightbox__img{ max-width: min(92vw, 900px); max-height: 86vh; object-fit: contain; border-radius: var(--radius); border: 1px solid var(--line-strong); }
.lightbox__close, .lightbox__nav{
  position: absolute; border: 1.5px solid var(--line-strong); border-radius: 50%;
  width: 48px; height: 48px; display: grid; place-items: center; background: var(--surface); color: var(--text);
}
.lightbox__close{ top: 18px; right: 18px; }
.lightbox__nav--l{ left: 18px; top: 50%; translate: 0 -50%; }
.lightbox__nav--r{ right: 18px; top: 50%; translate: 0 -50%; }
.lightbox__close:hover, .lightbox__nav:hover{ border-color: var(--gold); }

/* ================= Часы ================= */
.hours-panel{
  margin-top: clamp(28px, 4vw, 44px);
  border: 1.5px solid var(--line); border-radius: var(--radius); background: var(--surface);
  padding: clamp(20px, 3vw, 30px);
  display: grid; gap: 22px;
  grid-template-columns: minmax(200px, 1fr) minmax(260px, 1.4fr);
}
.hours-panel__status{ display: flex; align-items: flex-start; gap: 14px; }
.hours-panel__status svg{ width: 30px; height: 30px; color: var(--gold); flex-shrink: 0; }
.hours-panel__now{ font-weight: 800; font-size: 19px; }
.hours-panel__today{ color: var(--text-dim); font-size: 14px; margin-top: 2px; }

.hours-bar{ position: relative; height: 14px; border-radius: 7px; background: var(--bar-bg); overflow: hidden; }
.hours-bar__fill{ position: absolute; top: 0; bottom: 0; background: var(--gold); border-radius: 7px; }
.hours-bar__now{ position: absolute; top: -3px; width: 3px; height: 20px; background: var(--text); border-radius: 2px; }
.hours-bar__scale{ display: flex; justify-content: space-between; margin-top: 6px; font-family: var(--font-mono); font-size: 11px; color: var(--text-dim); }
.hours-panel__timeline{ display: flex; flex-direction: column; justify-content: center; }

.hours-panel__toggle{
  grid-column: 1 / -1;
  display: flex; align-items: center; gap: 8px;
  font-weight: 700; font-size: 14px; color: var(--gold); border-top: 1px solid var(--line); padding-top: 14px;
  width: 100%; justify-content: space-between; min-height: 44px;
}
.hours-panel__toggle svg{ transition: transform .2s; }
.hours-panel__toggle[aria-expanded="true"] svg{ transform: rotate(180deg); }
.hours-full{ grid-column: 1 / -1; display: flex; flex-direction: column; gap: 8px; }
.hours-full[hidden]{ display: none; }
.hours-full li{ display: flex; justify-content: space-between; font-size: 14.5px; padding: 8px 0; border-bottom: 1px dashed var(--line); }
.hours-full li.is-today{ color: var(--gold); font-weight: 700; }
.hours-full li:last-child{ border-bottom: 0; }

/* ================= Контакты + карта ================= */
.contacts{
  margin-top: clamp(28px, 4vw, 44px);
  display: grid; grid-template-columns: minmax(280px, 1fr) minmax(0, 1.4fr); gap: var(--gap);
  align-items: start;
}
.contacts__card{ border: 1.5px solid var(--line); border-radius: var(--radius); background: var(--surface); padding: clamp(20px, 3vw, 30px); }
.contacts__list{ display: flex; flex-direction: column; gap: 16px; }
.contacts__list dt{ display: flex; align-items: center; gap: 8px; font-size: 12.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--text-dim); margin-bottom: 4px; }
.contacts__list dt svg{ width: 16px; height: 16px; color: var(--gold); }
.contacts__list dd{ font-size: 15.5px; overflow-wrap: anywhere; }
.contacts__list a{ text-decoration: none; }
.contacts__list a:hover{ color: var(--gold); }
.contacts__call{ width: 100%; margin-top: 22px; }

.map-wrap{ display: flex; flex-direction: column; gap: 8px; }
.map{ position: relative; border: 1.5px solid var(--line); border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; min-height: 340px; background: var(--surface); }
.map__viewport{ position: absolute; inset: 0; overflow: hidden; touch-action: none; cursor: grab; user-select: none; }
.map__viewport:active{ cursor: grabbing; }
.map__viewport img{ position: absolute; top: 0; left: 0; width: 256px; height: 256px; user-select: none; -webkit-user-drag: none; will-change: transform; }
[data-theme="dark"] .map__viewport img{ filter: invert(.92) hue-rotate(180deg) saturate(.6) brightness(.95); }
.map__pin{ position: absolute; top: 0; left: 0; width: 34px; height: 44px; z-index: 5; pointer-events: none; color: var(--gold); filter: drop-shadow(0 0 3px color-mix(in srgb, var(--bg) 60%, transparent)); }
.map__controls{ position: absolute; right: 12px; bottom: 12px; display: flex; flex-direction: column; gap: 8px; z-index: 6; }
.map__controls button{
  width: 44px; height: 44px; border-radius: 50%; background: var(--surface); border: 1.5px solid var(--line-strong);
  display: grid; place-items: center; color: var(--text);
}
.map__controls button:hover{ border-color: var(--gold); }
.map__caption{ font-size: 12.5px; color: var(--text-dim); }

/* ================= CTA ================= */
.cta{ padding-block: clamp(60px, 10vw, 120px); border-top: 1px solid var(--line); position: relative; overflow: clip;
  background:
    radial-gradient(60% 60% at 85% 10%, color-mix(in srgb, var(--gold) 16%, transparent), transparent 70%),
    var(--bg);
}
.cta__inner{ position: relative; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 22px; }
.cta__word{
  position: absolute; top: 50%; left: 50%; translate: -50% -50%;
  width: 100%; max-width: 100%;
  font-size: clamp(32px, 11vw, 130px); line-height: .9;
  white-space: normal; overflow-wrap: break-word; text-align: center;
  opacity: .5; z-index: 0;
  -webkit-text-stroke: 1.5px var(--line-strong);
}
.cta h2{ position: relative; z-index: 1; font-size: clamp(28px, 5vw, 46px); }
.cta .btn{ position: relative; z-index: 1; }

/* ================= Footer ================= */
.site-footer{ background: var(--bg-alt); border-top: 1px solid var(--line); padding-top: clamp(36px, 6vw, 56px); }
.footer__inner{
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: var(--gap);
  padding-bottom: 36px;
}
.footer__brand{ display: flex; gap: 12px; }
.footer__brand .brand__mark{ width: 30px; height: 30px; }
.footer__name{ font-family: var(--font-head); font-weight: 900; font-size: 17px; }
.footer__sub{ color: var(--text-dim); font-size: 13.5px; margin-top: 6px; max-width: 26ch; }
.footer__col{ display: flex; flex-direction: column; gap: 4px; font-size: 14px; }
.footer__head{ font-family: var(--font-mono); font-size: 11.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--text-dim); margin-bottom: 4px; }
.footer__col a, .footer__col span{ text-decoration: none; color: var(--text-dim); padding-block: 6px; display: inline-block; }
.footer__col a:hover{ color: var(--gold); }
.footer__bottom{
  border-top: 1px solid var(--line); padding-block: 18px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  font-size: 12.5px; color: var(--text-dim);
}
.footer__bottom a{ color: var(--text-dim); text-decoration: none; }
.footer__bottom a:hover{ color: var(--gold); }

/* ================= Reveal-анимация =================
   Скрытие только под классом, который вешает сам скрипт (reveal-armed),
   и только после того как элемент уже стоит в разметке видимым по умолчанию —
   ошибка в скрипте до этой точки не оставляет пустого полотна. */
.reveal.reveal-armed{ opacity: 0; transform: translateY(18px); }
.reveal.reveal-armed.is-visible{ opacity: 1; transform: none; transition: opacity .55s ease, transform .55s ease; }
@media (prefers-reduced-motion: reduce){
  .reveal.reveal-armed{ opacity: 1; transform: none; }
  html{ scroll-behavior: auto; }
  .gallery__item:hover img{ transform: none; }
}

/* ================= Адаптив ================= */
@media (max-width: 860px){
  .site-nav{
    position: fixed; inset: 68px 0 auto 0; background: var(--bg);
    border-bottom: 1px solid var(--line);
    flex-direction: column; padding: 14px var(--pad) 20px; gap: 4px;
    transform: translateY(-8px); opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s;
  }
  .site-nav.is-open{ transform: none; opacity: 1; pointer-events: auto; }
  .site-nav a{ padding: 12px 4px; border-bottom: 1px solid var(--line); }
  .nav-toggle{ display: inline-flex; }
  .reviews{ grid-template-columns: 1fr; }
  .contacts{ grid-template-columns: 1fr; }
  .hours-panel{ grid-template-columns: 1fr; }
  .footer__inner{ grid-template-columns: 1fr 1fr; }
  .footer__brand{ grid-column: 1 / -1; }
}

@media (max-width: 560px){
  .header__phone{ display: none; }
  .stats-row{ grid-template-columns: 1fr; }
  .hero__actions{ flex-direction: column; align-items: stretch; }
  .hero__actions .btn{ width: 100%; }
  .footer__inner{ grid-template-columns: 1fr; }
}
