/* Мобильные бани, первый экран. Только flex, единицы px и %. Правки: сначала токены. */
@font-face{font-family:"Onest";font-weight:100 900;font-display:swap;src:url("fonts/onest-cyrillic.woff2") format("woff2");unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}
@font-face{font-family:"Onest";font-weight:100 900;font-display:swap;src:url("fonts/onest-latin.woff2") format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+20AC,U+2122,U+2212}

/* Акцент в H1: Cormorant Garamond Italic (вариативный 300..700), кириллица */
@font-face{font-family:"Cormorant Garamond";font-style:italic;font-weight:300 700;font-display:swap;src:url("fonts/cormorant-italic-cyrillic.woff2") format("woff2");unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}
@font-face{font-family:"Cormorant Garamond";font-style:italic;font-weight:300 700;font-display:swap;src:url("fonts/cormorant-italic-latin.woff2") format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+20AC,U+2122,U+2212}

:root{
  --juniper-dark:#3a2414;   /* тёмный можжевельник, шапка */
  --steam-brown:#6b4423;    /* парная, средний тон */
  --ochre:#d9993a;          /* охра, кнопка и акцент */
  --ochre-hover:#e8ad52;
  --birch-cream:#f6e9d3;    /* текст на тёмном */
  --birch-muted:#e0cfb3;    /* вторичный текст, контраст выше 4.5:1 */
  --ink:#2b1a0c;            /* текст на охре */
  --line:rgba(246,233,211,.22);
  --font:"Onest",Arial,sans-serif;
  --serif:"Cormorant Garamond",Georgia,serif;
  --shade:rgba(30,18,9,.82);    /* тень парной, затемнение под текстом */
  --glow:rgba(255,184,96,.24);  /* тёплый свет за баней */
  --steam:rgba(246,233,211,.5); /* пар */
  --tg:#37aee2;--vk:#4c75a3;--max-a:#4bc3ff;--max-b:#4466fe;--max-c:#8937df; /* цвета мессенджеров при наведении */
  --header-h:76px;
  --wrap:1240px;
  --pad:24px;
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto}*{transition:none!important}}
body{margin:0;overflow-x:hidden;font-family:var(--font);color:var(--birch-cream);background:var(--juniper-dark);font-size:18px;line-height:28px}
a{color:inherit;text-decoration:none}
a:focus-visible{outline:3px solid var(--ochre);outline-offset:3px;border-radius:4px}
svg{flex:none;fill:currentColor}

/* Фиксированное меню: прозрачный фон, размытие на всю ширину */
.topbar{position:fixed;top:0;left:0;width:100%;z-index:10;background:transparent;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);border-bottom:1px solid var(--line)}
.topbar.over-catalog{color:var(--ink)}
.topbar.over-catalog .menu a,.topbar.over-catalog .contact-mail,.topbar.over-catalog .social-vk{color:var(--ink)}
.topbar.over-catalog .logo-2,.topbar.over-catalog .logo-mark,.topbar.over-catalog a:focus-visible{color:var(--accent);outline-color:var(--accent)}
.layout-shell{width:calc(100% - 200px);margin:0 auto}
.topbar-in{display:flex;align-items:center;justify-content:space-between;height:var(--header-h)}
.logo{display:flex;align-items:center}
.logo-mark{width:48px;height:48px;color:var(--ochre);margin-right:12px}
.logo-text{display:flex;flex-direction:column;font-weight:800;text-transform:uppercase;letter-spacing:1px}
.logo-1{font-size:16px;line-height:18px}
.logo-2{font-size:16px;line-height:18px;color:var(--ochre)}

.menu{display:flex;align-items:center}
.menu a{font-size:16px;line-height:24px;font-weight:500;padding:8px 14px;border-radius:6px;color:var(--birch-cream)}
.menu a:hover{color:var(--ochre-hover)}

.contacts{display:flex;align-items:center}
/* Телефон крупно, почта под ним по правому краю телефона */
.contact-stack{display:flex;flex-direction:column;align-items:flex-end;margin-left:18px;white-space:nowrap}
.contact-phone{font-size:20px;line-height:26px;font-weight:700;letter-spacing:.2px}
.contact-mail{font-size:14px;line-height:20px;font-weight:500;color:var(--birch-muted)}
.contact-phone:hover,.contact-mail:hover{color:var(--ochre-hover)}

/* Мессенджеры: кремовые круги, знак цвета шапки; при наведении фирменный цвет */
.socials{display:flex;margin-left:16px}
.social{display:flex;align-items:center;justify-content:center;width:40px;height:40px;margin-left:8px;border-radius:50%;background:var(--birch-cream);color:var(--juniper-dark);transition:background-color .2s,color .2s,transform .2s}
.social svg{width:20px;height:20px}
.social-tg svg{margin-right:2px}
.social-max svg{width:22px;height:22px}
.social-vk{background:transparent;color:var(--birch-cream)}
.social-vk svg{width:44px;height:44px}
.social:hover{transform:translateY(-2px);color:#fff}
.social-tg:hover{background:var(--tg)}
.social-max:hover{background:linear-gradient(135deg,var(--max-a) 0%,var(--max-b) 50%,var(--max-c) 100%)}
.social-vk:hover{background:transparent;color:var(--vk)}

/* Первый экран: фон парной WebP, слева тень под текст, снизу переход во второй экран */
.hero{position:relative;display:flex;width:100%;min-height:900px;padding-top:var(--header-h);overflow:hidden;background:linear-gradient(90deg,var(--shade) 0%,rgba(30,18,9,.55) 42%,rgba(30,18,9,0) 72%),linear-gradient(0deg,var(--juniper-dark) 0%,rgba(58,36,20,0) 22%),var(--steam-brown) url("img/hero-bg-pc.webp") 50% 50%/cover no-repeat}
.hero::before{content:"";position:absolute;top:0;left:40%;width:60%;height:100%;z-index:0;pointer-events:none;background:linear-gradient(90deg,var(--coal-clear) 0%,var(--coal) 100%)}
.hero-in{display:flex;align-items:center;padding:24px 0}
.hero-text{display:flex;flex-direction:column;align-items:flex-start;flex:none;width:48%;position:relative;z-index:2}
/* H1 столбиком: первые 4 слова по строке, акцент курсивом с засечками */
h1,.catalog-title{display:flex;flex-direction:column;align-items:flex-start;margin:0;font-family:var(--font);font-weight:800;font-size:92px;line-height:82px;letter-spacing:-2px}
h1 span{display:flex}
h1 em{display:flex;margin-top:8px;font-family:var(--serif);font-style:italic;font-weight:600;font-size:66px;line-height:62px;letter-spacing:0;color:var(--ochre-hover);padding:0 6px 8px 0}
.lead{margin:20px 0 0;font-size:21px;line-height:32px;color:var(--birch-muted);max-width:520px}
.actions{display:flex;flex-wrap:wrap;margin-top:24px}
.btn{display:flex;align-items:center;justify-content:center;min-height:56px;padding:0 32px;font-size:18px;font-weight:700;border-radius:8px;margin:0 12px 12px 0;transition:background-color .2s,transform .2s,box-shadow .2s}
.btn-main{background:var(--ochre);color:var(--ink);box-shadow:0 8px 28px rgba(217,153,58,.35)}
.btn-main:hover{background:var(--ochre-hover);transform:translateY(-2px)}
.btn-ghost{border:2px solid var(--birch-cream);color:var(--birch-cream)}
.btn-ghost:hover{border-color:var(--ochre-hover);color:var(--ochre-hover)}

/* Три шага строкой, номера курсивом с засечками */
.steps{display:flex;flex-wrap:wrap;margin:16px 0 0;padding:16px 0 0;list-style:none;border-top:1px solid var(--line);width:100%;max-width:520px}
.steps li{display:flex;align-items:baseline;margin-right:28px;font-size:16px;line-height:24px;font-weight:600}
.step-n{font-family:var(--serif);font-style:italic;font-size:26px;line-height:24px;color:var(--ochre);margin-right:8px}


/* Баня справа: треть ширины уходит за правый край, за счёт этого картинка крупнее */
.bath{position:absolute;right:0;top:50%;transform:translateY(-50%);display:flex;flex-direction:column;align-items:center;flex:none;width:78%;max-width:1504px;margin-left:auto;margin-right:-26%;margin-top:80px;z-index:1;background:radial-gradient(ellipse 44% 7% at 50% 94%,rgba(20,10,4,.6) 0%,rgba(20,10,4,0) 100%),radial-gradient(ellipse 50% 50% at 50% 55%,var(--glow) 0%,rgba(255,184,96,0) 100%)}
.bath-frames{display:flex;width:100%}
.bath-img{display:flex;width:100%;max-width:1504px;height:auto;max-height:717px}
.bath-img[hidden]{display:none}

/* Пар над крышей: три струйки, медленно, мягко */
.steam{display:flex;justify-content:center;width:40%;height:0;padding-bottom:16%;margin-bottom:-12%;margin-left:-6%;position:relative;z-index:2;pointer-events:none}
.wisp{width:12%;height:auto;color:var(--steam);filter:blur(5px);opacity:0;animation:steam 7s ease-in-out infinite}
.wisp-1{margin-right:6%}
.wisp-2{animation-delay:2.3s;margin-top:-4%}
.wisp-3{animation-delay:4.6s;margin-left:6%}
@keyframes steam{0%{transform:translateY(40%) scaleX(.7);opacity:0}35%{opacity:.7}100%{transform:translateY(-25%) scaleX(1.25);opacity:0}}

/* Второй экран: 6 анонсов каталога, по 2 в строку. Контейнер: ширина экрана минус 100px слева и справа, от 1800px не шире 1600px */
.screen-2{display:flex;width:100%;padding:120px 0;background:var(--bg);color:var(--ink)}
.catalog-in{display:flex;flex-direction:column;align-items:flex-start}
.catalog-heading{display:flex;flex-direction:column;justify-content:center;flex:none;width:100%;margin-bottom:40px}
.catalog-title{line-height:100%;max-width:100%}
.screen-2 .catalog-more{align-self:center;width:auto;max-width:100%;margin:0;box-shadow:none}
.screen-2 a:focus-visible{outline-color:var(--accent)}
.cards{display:flex;flex-direction:column;width:100%;margin:0}
.cards.has-columns{flex-direction:row;justify-content:space-between;align-items:flex-start}
.catalog-column{display:flex;flex-direction:column;width:calc(50% - 20px)}
.cards.has-columns .catalog-heading{height:var(--catalog-offset,240px);margin-bottom:0}
.card{display:flex;flex-direction:column;width:100%;margin-bottom:64px}
.card-pic{position:relative;display:flex;align-items:center;justify-content:center;width:100%;padding:8% 6%;border-radius:8px;background:var(--surface)}
.card-price{position:absolute;top:20px;right:20px;display:flex;align-items:baseline;padding:12px 16px;border-radius:6px;background:var(--ink-field);color:var(--on-ink);font-variant-numeric:tabular-nums;white-space:nowrap}
.card-price small{font-size:16px;line-height:24px;margin-right:8px}
.card-price strong{font-size:36px;line-height:40px;font-weight:700}
.card-pic img{display:flex;width:100%;height:auto}
.card-title{margin:24px 0 0;font-size:28px;line-height:34px;font-weight:700}
.card-note{margin:8px 0 0;font-size:16px;line-height:24px;color:var(--muted)}
@media (min-width:1800px){.layout-shell{max-width:1600px}}

@media (prefers-reduced-motion:reduce){.wisp{animation:none}.wisp{opacity:.35}}

@media (max-width:1240px){
  h1,.catalog-title{font-size:80px;line-height:78px}
  h1 em{font-size:56px;line-height:54px}
}
@media (max-width:1100px){
  .menu a{padding:8px 10px}
}
@media (max-width:1200px){
  :root{--header-h:112px}
  .topbar-in{flex-wrap:wrap;align-content:center;height:var(--header-h);padding-top:6px;padding-bottom:6px}
  .logo{order:1}
  .contacts{order:2}
  .menu{order:3;width:100%;overflow-x:auto;margin-top:2px}
  .menu a{flex:none;font-size:15px}
  .contact-stack{margin-left:0}
  .contact-phone{font-size:16px;line-height:20px}
  .contact-mail{font-size:12px;line-height:16px}
  .screen-2{padding:64px 0}
}
@media (max-width:900px){
  .layout-shell{width:calc(100% - 2 * var(--pad))}
  .hero{min-height:760px;background:linear-gradient(180deg,var(--shade) 0%,rgba(30,18,9,.6) 45%,rgba(30,18,9,.1) 75%),linear-gradient(0deg,var(--juniper-dark) 0%,rgba(58,36,20,0) 20%),var(--steam-brown) url("img/hero-bg-mobile.webp") 50% 50%/cover no-repeat}
  .hero-in{flex-direction:column;align-items:flex-start;padding:32px 0 24px}
  .hero-text{width:100%;max-width:720px;padding:0}
  h1,.catalog-title{font-size:76px;line-height:74px}
  h1 em{font-size:54px;line-height:52px}
  .bath{position:relative;right:auto;top:auto;transform:none;width:140%;margin:8px -47% 0 7%}
}
/* Телефон: поля 16..24px вместо 100px, анонсы по одному в строку */
@media (max-width:768px){
  .card-price{top:16px;right:16px;padding:10px 14px}
  .card-price strong{font-size:30px;line-height:36px}
  .card{width:100%;margin-bottom:40px}
  .card-title{margin-top:16px;font-size:22px;line-height:28px}
}
@media (max-width:480px){
  :root{--pad:16px}
  .logo-mark{width:40px;height:40px}
  .social{width:36px;height:36px;margin-left:6px}
  .social svg{width:18px;height:18px}
  .social-vk svg{width:40px;height:40px}
  .logo-text{display:none}
  h1,.catalog-title{font-size:58px;line-height:56px;letter-spacing:-1px}
  h1 em{font-size:40px;line-height:40px;margin-top:10px}
  .lead{font-size:18px;line-height:28px;margin-top:16px}
  .actions{margin-top:24px}
  .btn{width:100%;margin-right:0}
  .steps{margin-top:16px;padding-top:14px}
  .steps li{margin-right:18px;font-size:15px}
}
