/* Сидоровские бани — основной стиль */

/* ---------- Шрифты (самохостинг, только нужные начертания) ---------- */
@font-face{font-family:"Alegreya";font-style:normal;font-weight:700;font-display:swap;src:url(../fonts/alegreya-700.woff2) format("woff2")}
@font-face{font-family:"Alegreya";font-style:normal;font-weight:500;font-display:swap;src:url(../fonts/alegreya-500.woff2) format("woff2")}
@font-face{font-family:"Alegreya Sans";font-style:normal;font-weight:400;font-display:swap;src:url(../fonts/alegreya-sans-400.woff2) format("woff2")}
@font-face{font-family:"Alegreya Sans";font-style:normal;font-weight:700;font-display:swap;src:url(../fonts/alegreya-sans-700.woff2) format("woff2")}

/* ---------- Токены ---------- */
:root{
  --bark:#EFF1EB;      /* берёста — фон страницы */
  --paper:#FAFBF7;     /* светлая поверхность */
  --spruce:#1C3A2E;    /* ельник — тёмные секции, шапка */
  --spruce-2:#28503F;
  --moss:#6F8B6A;
  --wood:#2A2019;      /* основной текст */
  --muted:#5F584F;
  --line:#D3D7CC;
  --ember:#A65E17;     /* жар — единственный акцент (кнопки) */
  --ember-hi:#E2A04A;  /* акцент на тёмном фоне */
  --steam:#E3E8E0;

  --serif:"Alegreya",Georgia,"Times New Roman",serif;
  --sans:"Alegreya Sans","Segoe UI",Roboto,Arial,sans-serif;

  --wrap:1160px;
  --gutter:clamp(16px,4vw,40px);
  --radius:6px;
  --header-h:68px;
}

/* ---------- База ---------- */
*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;scroll-behavior:smooth;scroll-padding-top:calc(var(--header-h) + 8px)}
@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto}*{animation:none!important;transition:none!important}}
body{margin:0;background:var(--bark);color:var(--wood);font:400 1.125rem/1.55 var(--sans);text-rendering:optimizeLegibility}
img{max-width:100%;height:auto;display:block}
a{color:inherit}
h1,h2,h3{font-family:var(--serif);font-weight:700;line-height:1.1;margin:0;letter-spacing:-.005em}
p{margin:0 0 1em}
ul{margin:0;padding:0;list-style:none}
button{font:inherit;color:inherit;cursor:pointer}
:focus-visible{outline:3px solid var(--ember-hi);outline-offset:3px;border-radius:2px}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.skip{position:absolute;left:12px;top:-60px;z-index:100;background:var(--paper);padding:10px 14px;border-radius:var(--radius)}
.skip:focus{top:12px}
.wrap{max-width:var(--wrap);margin:0 auto;padding:0 var(--gutter)}
.ico{width:1.15em;height:1.15em;flex:none;fill:currentColor}

/* ---------- Кнопки ---------- */
.btn{display:inline-flex;align-items:center;gap:.55em;min-height:48px;padding:.6em 1.25em;border-radius:999px;border:2px solid transparent;font:700 1.05rem/1 var(--sans);text-decoration:none;transition:background-color .15s,border-color .15s,color .15s}
.btn--ember{background:var(--ember);color:#fff}
.btn--ember:hover{background:#8E4F12}
.btn--ghost{border-color:rgba(255,255,255,.7);color:#fff}
.btn--ghost:hover{background:rgba(255,255,255,.12);border-color:#fff}
.btn--line{border-color:var(--spruce);color:var(--spruce)}
.btn--line:hover{background:var(--spruce);color:#fff}

/* ---------- Шапка ---------- */
.header{position:fixed;inset:0 0 auto;z-index:50;height:var(--header-h);color:#fff;transition:background-color .25s,box-shadow .25s}
.header.is-solid{background:var(--spruce);box-shadow:0 1px 0 rgba(255,255,255,.06)}
.header__in{height:100%;display:flex;align-items:center;gap:24px}
.brand{font:700 1.45rem/1 var(--serif);text-decoration:none;white-space:nowrap;margin-right:auto}
.nav ul{display:flex;gap:4px}
.nav a{display:block;padding:10px 12px;text-decoration:none;font-weight:700;font-size:1rem;border-radius:4px;opacity:.9}
.nav a:hover,.nav a[aria-current="true"]{opacity:1;background:rgba(255,255,255,.12)}
.header__tel{display:inline-flex;align-items:center;gap:8px;font-weight:700;text-decoration:none;white-space:nowrap;padding:8px 14px;border-radius:999px;border:1.5px solid rgba(255,255,255,.55)}
.header__tel:hover{background:rgba(255,255,255,.12)}
.burger{display:none;background:none;border:0;padding:10px;margin-right:-10px;color:#fff}
.burger svg{width:28px;height:28px}

@media (max-width:960px){
  .burger{display:block}
  .header__tel{display:none}
  .nav{position:fixed;inset:var(--header-h) 0 auto;background:var(--spruce);padding:8px var(--gutter) 20px;transform:translateY(-8px);opacity:0;visibility:hidden;transition:opacity .2s,transform .2s,visibility .2s;box-shadow:0 12px 24px rgba(0,0,0,.25)}
  .nav.is-open{opacity:1;transform:none;visibility:visible}
  .nav ul{flex-direction:column}
  .nav a{padding:14px 4px;font-size:1.2rem;border-bottom:1px solid rgba(255,255,255,.1);border-radius:0}
  .header.menu-open{background:var(--spruce)}
}

/* ---------- Первый экран ---------- */
.hero{position:relative;min-height:min(100svh,920px);display:flex;align-items:flex-end;color:#fff;background:#1a1712}
.hero__bg{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:50% 40%}
.hero::after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(10,16,12,.55) 0,rgba(10,16,12,0) 22%,rgba(10,16,12,.15) 45%,rgba(10,16,12,.82) 100%)}
.hero__in{position:relative;z-index:1;width:100%;padding-top:calc(var(--header-h) + 40px);padding-bottom:clamp(40px,9vh,96px)}
.hero h1{font-size:clamp(3rem,9vw,7.25rem);line-height:.95;max-width:9ch;text-wrap:balance}
.hero__lead{max-width:34rem;margin:22px 0 0;font-size:clamp(1.15rem,2vw,1.35rem);line-height:1.45;color:#EDEFE8}
.hero__price{margin:14px 0 0;font:500 1.25rem/1.3 var(--serif);color:var(--ember-hi)}
.hero__price b{font-weight:700;font-size:1.6em;font-variant-numeric:lining-nums}
.hero__cta{display:flex;flex-wrap:wrap;gap:12px;margin-top:28px}

/* ---------- Секции ---------- */
.section{padding:clamp(64px,10vw,120px) 0}
.section__head{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.2fr);gap:12px 48px;align-items:end;margin-bottom:clamp(32px,5vw,56px)}
.section__head h2{font-size:clamp(2.25rem,5vw,3.5rem)}
.section__head p{margin:0;color:var(--muted);max-width:36rem}
@media (max-width:760px){.section__head{grid-template-columns:1fr}}

/* ---------- Бани ---------- */
.baths{border-top:1px solid var(--line)}
.bath{display:grid;grid-template-columns:minmax(0,5fr) minmax(0,6fr);gap:clamp(20px,4vw,56px);padding:clamp(24px,3.5vw,40px) 0;border-bottom:1px solid var(--line);align-items:center}
.bath__media img{width:100%;aspect-ratio:2/1;object-fit:cover;border-radius:var(--radius);background:var(--steam)}
.bath__name{font-size:clamp(1.7rem,3vw,2.25rem);margin-bottom:10px}
.bath__text{color:var(--muted);max-width:38rem}
.tariff{display:flex;flex-wrap:wrap;gap:12px 40px;margin:18px 0 0}
.tariff__cell dt{font-size:.95rem;color:var(--muted)}
.tariff__cell dd{margin:2px 0 0}
.price{font-family:var(--serif);font-weight:500;white-space:nowrap;font-variant-numeric:lining-nums tabular-nums}
.tariff .price__num{font-size:clamp(2rem,3.4vw,2.6rem);font-weight:700;line-height:1;color:var(--spruce)}
.tariff .price{font-size:1.25rem}
.price__unit{color:var(--muted);font-weight:500}
.price__ask{font-style:italic;color:var(--muted)}
@media (max-width:760px){.bath{grid-template-columns:1fr}}

.offer{margin-top:clamp(40px,6vw,64px);display:grid;grid-template-columns:minmax(0,1.4fr) auto;gap:20px 40px;align-items:center;padding:clamp(24px,4vw,40px);border-radius:var(--radius);background:var(--steam)}
.offer h3{font-size:clamp(1.5rem,2.6vw,2rem);margin-bottom:10px}
.offer p{margin:0;color:var(--muted);max-width:44rem}
.offer p+p{margin-top:.6em;color:var(--wood);font-weight:700}
@media (max-width:760px){.offer{grid-template-columns:1fr}}

/* ---------- Прейскурант (услуги, меню) ---------- */
.pgrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,320px),1fr));gap:clamp(32px,4vw,48px) clamp(24px,4vw,48px)}
.pgroup__img{width:100%;aspect-ratio:2/1;object-fit:cover;border-radius:var(--radius);margin-bottom:16px;background:var(--steam)}
.pgroup__title{font-size:1.5rem;margin-bottom:8px}
.plist__row{display:flex;align-items:baseline;gap:8px;padding:7px 0}
.plist__name{flex:0 1 auto}
.plist__dots{flex:1 1 24px;min-width:24px;border-bottom:2px dotted currentColor;opacity:.35;transform:translateY(-5px)}
.plist .price{font-size:1.2rem;font-weight:700}
.plist .price__unit{font-size:.9em}

.section--dark{background:var(--spruce);color:#EEF1EA}
.section--dark .section__head p,.section--dark .price__unit{color:#B9C6BB}
.section--dark .pgroup__img{background:var(--spruce-2)}

/* ---------- Фото ---------- */
.filters{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:28px}
.filters button{border:1.5px solid var(--line);background:transparent;border-radius:999px;padding:8px 16px;font-weight:700;font-size:1rem;min-height:44px}
.filters button:hover{border-color:var(--spruce)}
.filters button[aria-pressed="true"]{background:var(--spruce);border-color:var(--spruce);color:#fff}
.gallery{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,260px),1fr));gap:10px}
.gallery a{display:block;border-radius:4px;overflow:hidden;background:var(--steam)}
.gallery img{width:100%;aspect-ratio:3/2;object-fit:cover;transition:transform .35s}
.gallery a:hover img{transform:scale(1.03)}
.gallery [hidden]{display:none}
.gallery__more{margin-top:28px;display:flex;justify-content:center}

/* ---------- Видео ---------- */
.videos{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,300px),1fr));gap:24px}
.video{display:block;text-decoration:none;color:inherit;background:none;border:0;padding:0;text-align:left;width:100%}
.video__pic{display:block;position:relative;border-radius:var(--radius);overflow:hidden;background:#000}
.video__pic img{width:100%;aspect-ratio:16/10;object-fit:cover;opacity:.85;transition:opacity .2s}
.video:hover .video__pic img{opacity:1}
.video__play{position:absolute;left:50%;top:50%;width:68px;height:68px;margin:-34px 0 0 -34px;border-radius:50%;background:rgba(255,255,255,.92);display:grid;place-items:center;color:var(--spruce)}
.video__play svg{width:28px;height:28px;margin-left:4px}
.video__title{display:block;font:700 1.25rem/1.25 var(--serif);margin-top:12px}

/* ---------- Контакты ---------- */
.contacts{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,240px),1fr));gap:28px 40px}
.contact dt{color:var(--muted);font-size:.95rem;margin-bottom:4px}
.contact dd{margin:0;font:700 1.35rem/1.3 var(--serif)}
.contact a{text-decoration-thickness:1px;text-underline-offset:4px}
.contact a:hover{color:var(--ember)}
.socials{display:flex;flex-wrap:wrap;gap:10px;margin-top:6px}
.socials a{display:inline-flex;align-items:center;gap:8px;font:700 1rem/1 var(--sans);padding:10px 14px;border:1.5px solid var(--line);border-radius:999px;text-decoration:none}
.socials a:hover{border-color:var(--spruce);color:inherit}

.footer{background:var(--spruce);color:#B9C6BB;padding:28px 0;font-size:1rem}
.footer .wrap{display:flex;flex-wrap:wrap;justify-content:space-between;gap:8px 24px}
.footer a{color:#EEF1EA}

/* ---------- Нижняя панель на телефоне ---------- */
.callbar{display:none}
@media (max-width:760px){
  .callbar{display:grid;grid-template-columns:1fr 1fr;gap:8px;position:fixed;inset:auto 0 0;z-index:40;padding:10px 12px calc(10px + env(safe-area-inset-bottom));background:rgba(28,58,46,.96);backdrop-filter:blur(6px);transform:translateY(110%);transition:transform .25s}
  .callbar.is-on{transform:none}
  .callbar .btn{justify-content:center;min-height:46px}
  .footer{padding-bottom:96px}
}

/* ---------- Лайтбокс / видео ---------- */
.lb{border:0;padding:0;margin:0;max-width:none;max-height:none;width:100vw;height:100dvh;background:rgba(8,12,10,.94);color:#fff}
.lb::backdrop{background:rgba(8,12,10,.94)}
.lb[open]{display:grid;grid-template-rows:auto 1fr auto}
.lb__bar{display:flex;justify-content:space-between;align-items:center;padding:10px 12px 0 20px;font-size:1rem;color:#C9D2CB}
.lb__stage{position:relative;display:grid;place-items:center;min-height:0;padding:8px 64px}
.lb__stage img{max-width:100%;max-height:100%;object-fit:contain;border-radius:2px;user-select:none}
.lb__stage iframe{width:min(100%,1100px);aspect-ratio:16/9;max-height:100%;border:0;background:#000}
.lb__btn{background:rgba(255,255,255,.08);border:0;border-radius:50%;width:48px;height:48px;display:grid;place-items:center;color:#fff}
.lb__btn:hover{background:rgba(255,255,255,.2)}
.lb__btn svg{width:24px;height:24px}
.lb__prev,.lb__next{position:absolute;top:50%;margin-top:-24px}
.lb__prev{left:8px}.lb__next{right:8px}
.lb--video .lb__prev,.lb--video .lb__next,.lb--video .lb__count{display:none}
@media (max-width:760px){.lb__stage{padding:8px}.lb__prev,.lb__next{top:auto;bottom:-56px}.lb[open]{grid-template-rows:auto 1fr 64px}}
