/* ==========================================================================
   GRACE v1 — ВОССТАНОВЛЕННАЯ ПЕРВАЯ ВЕРСИЯ
   Тёмный hero с фото на всю высоту, мозаика-«тетрис», светлая тёплая база,
   фиолетово-сливовый акцент... нет — здесь тёплое золото на шампань-фоне.
   Шрифты: Playfair Display (заголовки) + Inter (текст).
   ========================================================================== */

:root {
  /* Фон */
  --bg:            #F7F3EC;
  --bg-alt:        #F1EAE0;
  --surface:       #FFFFFF;

  /* Акценты — построены вокруг #F5C15B.
     Акцент светлый, поэтому разделён на заливку и текстовый вариант:
     текстом на светлом фоне он нечитаем (1.5:1). */
  --accent:        #F5C15B;   /* заливка: кнопки, бейджи, декор */
  --accent-hi:     #FFD27A;   /* ховер заливки */
  --accent-lo:     #E0A93C;   /* границы, активные состояния */
  --accent-text:   #8A6A22;   /* акцент как текст — 4.56:1 */
  --accent-deep:   #6E5520;   /* футер и тёмные плашки */
  --on-accent:     #2A1F08;   /* текст на акценте — 9.8:1 */

  /* Совместимость: старые имена ведут на новую палитру */
  --gold:          var(--accent-text);
  --gold-dark:     var(--accent-deep);
  --gold-line:     #EAD9A8;
  --gold-soft:     #FDF3DC;

  /* Текст */
  --ink:           #2A2724;
  --ink-2:         #6B6259;
  --on-gold:       #FFF8EC;

  --radius:        18px;
  --radius-sm:     12px;
  --header-h:      76px;
  --shadow:        0 10px 30px rgba(62, 47, 18, .07);
  --shadow-lg:     0 18px 50px rgba(62, 47, 18, .13);
  --maxw:          1200px;

  --font:      "Inter", "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto,
               "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --font-head: "Playfair Display", "PT Serif", "Times New Roman", Georgia, serif;

  /* Шкала */
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px;
  --s6: 32px; --s7: 48px; --s8: 64px; --s9: 96px;

  --t1: 140ms; --t2: 240ms; --t3: 480ms;
  --ease: cubic-bezier(.2,.7,.3,1);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + var(--s4));
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  font-kerning: normal;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; display: block; }
a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--gold-dark); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

/* Атрибут hidden обязан побеждать любой display из классов. */
[hidden] { display: none !important; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 600;
  margin: 0;
  letter-spacing: -.005em;
  line-height: 1.14;
  text-wrap: balance;
}
h1 { font-size: clamp(34px, 5vw, 60px); line-height: 1.08; }
h2 { font-size: clamp(27px, 3.5vw, 42px); }
h3 { font-size: clamp(21px, 2.1vw, 26px); }

p { margin: 0 0 1em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

.section { padding: var(--s9) 0; }
.section--alt { background: var(--bg-alt); }

.section__head { max-width: 720px; margin-bottom: var(--s7); }

.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: var(--s3);
}

.lead { color: var(--ink-2); margin: var(--s4) 0 0; font-size: 17px; max-width: 46ch; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--s5); }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 9px;
  min-height: 48px;
  padding: 0 var(--s5);
  border: 1.5px solid transparent;
  border-radius: 999px;
  font-family: var(--font);
  font-size: 15px; font-weight: 600;
  cursor: pointer; white-space: nowrap;
  transition: transform var(--t1) var(--ease), background var(--t1) var(--ease),
              color var(--t1) var(--ease), border-color var(--t1) var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn--gold { background: var(--accent); color: var(--on-accent); }
.btn--gold:hover { background: var(--accent-hi); color: var(--on-accent); }
.btn--wa { background: #1FA855; color: #fff; }
.btn--wa:hover { background: #178c46; color: #fff; }
.btn--tg { background: #2AABEE; color: #fff; }
.btn--tg:hover { background: #1d92d1; color: #fff; }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--gold-line); }
.btn--ghost:hover { border-color: var(--gold); color: var(--gold-dark); background: #fff; }
.btn--ghost-light {
  background: rgba(255,248,236,.1); color: #FFF8EC;
  border-color: rgba(255,248,236,.4);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.btn--ghost-light:hover { background: rgba(255,248,236,.2); border-color: var(--gold-line); color: #FFF8EC; }
.btn--lg { min-height: 54px; padding: 0 var(--s6); font-size: 16px; }
.btn--wide { width: 100%; }
.btn__icon { width: 19px; height: 19px; flex: none; }

/* ---------- Шапка ----------
   Всегда зафиксирована — и на десктопе, и на мобильных.
   Раньше на мобильных position менялся на relative, и шапка уезжала при скролле. */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  /* Прозрачная шапка: первый экран — тёмное фото, поэтому шапка
     сливается с ним, а текст переключается на светлый.
     Как только #top прокручен, шапка получает заливку и тёмную
     типографику (класс .is-solid ставит скрипт).
     Разделитель сделан ВНУТРЕННЕЙ тенью, а не border: border
     добавлял 1px к высоте шапки, из-за чего при скролле в самом
     верху между шапкой и первым экраном появлялась щель в 1px. */
  background: transparent;
  height: var(--header-h);
  box-shadow: inset 0 -1px 0 transparent;
  transition: background var(--t2) var(--ease),
              box-shadow var(--t2) var(--ease);
}
/* Открытое меню выглядит так же, как шапка после скролла:
   с заливкой и тёмной типографикой. Иначе светлый логотип
   оказывался на светлой панели меню (контраст ~1.1:1). */
.header.is-solid,
.header.open {
  background: rgba(247,243,236,.94);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  backdrop-filter: saturate(180%) blur(14px);
  box-shadow: inset 0 -1px 0 var(--gold-line), 0 1px 2px rgba(0,0,0,.04);
}
.header__inner {
  display: flex; align-items: center; gap: var(--s5);
  height: var(--header-h);   /* ровно высота шапки: без неожиданного роста */
}

/* --- Типографика шапки: тёмная на залитой, светлая на прозрачной --- */
.logo__name,
.nav a,
.header__tel {
  transition: color var(--t2) var(--ease), border-color var(--t2) var(--ease);
}
.logo__sub { transition: color var(--t2) var(--ease); }

/* Светлый вариант — поверх фото */
.header:not(.is-solid):not(.open) .logo__name { color: #FFF8EC; }
.header:not(.is-solid):not(.open) .logo__sub { color: var(--accent); }
.header:not(.is-solid):not(.open) .nav a { color: #F3E9D7; }
.header:not(.is-solid):not(.open) .nav a:hover { color: #FFF8EC; border-bottom-color: var(--accent); }
.header:not(.is-solid):not(.open) .burger { border-color: rgba(255,248,236,.4); background: rgba(255,248,236,.1); }
.header:not(.is-solid):not(.open) .burger span { background: #FFF8EC; }
.header:not(.is-solid):not(.open) .header__tel { color: #F3E9D7; }

.logo { display: flex; flex-direction: column; line-height: 1; }
.logo__name {
  font-family: var(--font-head); font-size: 29px; font-weight: 600;
  letter-spacing: .13em; color: var(--ink);
}
.logo__sub {
  font-size: 9.5px; letter-spacing: .26em; text-transform: uppercase;
  /* --gold на светлой шапке даёт лишь 3.25:1 — для кегля 9.5px мало.
     --gold-dark = 6.36:1, читается надёжно. */
  color: var(--gold-dark); margin-top: 4px;
}
.nav { margin-left: auto; display: flex; gap: 26px; }
.nav a {
  color: var(--ink); font-size: 15px; font-weight: 500;
  padding: 6px 0; border-bottom: 1.5px solid transparent;
}
.nav a:hover { color: var(--gold-dark); border-bottom-color: var(--gold); }
.header__cta {
  font-family: var(--font); font-size: 14.5px; font-weight: 600;
  min-height: 44px; padding: 0 var(--s5);
  border: none; border-radius: 999px;
  background: var(--accent); color: var(--on-accent);
  cursor: pointer; white-space: nowrap;
  transition: background var(--t1) var(--ease);
}
.header__cta:hover { background: var(--accent-hi); }
.burger {
  display: none; margin-left: auto; width: 44px; height: 44px;
  border: 1px solid var(--gold-line); border-radius: 10px;
  background: #fff; cursor: pointer; padding: 0;
  transition: border-color var(--t2) var(--ease), background var(--t2) var(--ease);
}
.burger span {
  display: block; width: 20px; height: 2px; background: var(--ink);
  margin: 4px auto;
  transition: background var(--t2) var(--ease);
}

.nav-overlay {
  position: fixed; inset: 0; z-index: 45;
  background: rgba(20,15,7,.55);
  -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
  opacity: 0; transition: opacity var(--t2) var(--ease);
}
.nav-overlay.is-visible { opacity: 1; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  /* Подтягиваем первый экран ПОД шапку: шапка sticky и занимает место
     в потоке, поэтому без отрицательного отступа фото начиналось бы
     ниже неё. Высота возвращается через 100svh. */
  margin-top: calc(var(--header-h) * -1);
  /* height, а не min-height: первый экран ровно в размер окна,
     иначе содержимое растягивает его и полоса уезжает за границу. */
  height: 100svh;
  min-height: 0;
  background: #2E2415;
  overflow: hidden;
  /* Высота полосы фактов: по ней строится единый градиент #top,
     чтобы затемнение начиналось ровно на её верхней границе. */
  --strip-h: 86px;
}

/* Затемняющий слой поверх фото: один непрерывный градиент по всей высоте #top.
   Полоса фактов занимает нижние --strip-h, и ровно на её верхней границе
   затемнение доходит до тёмного тона, а к низу уходит в чёрный. */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  /* Затемнение доходит до чёрного на нижней границе полосы фактов,
     а зазор под ней остаётся ровным чёрным. */
  background: linear-gradient(to bottom,
    /* верх: фото видно, лёгкое затемнение для читаемости заголовка */
    rgba(38,29,16,.72) 0%,
    rgba(38,29,16,.34) 34%,
    rgba(38,29,16,.60) 62%,
    /* подход к полосе фактов — плавное сгущение */
    rgba(38,29,16,.82) calc(100% - var(--strip-h) * 1.6),
    rgba(33,25,13,.94) calc(100% - var(--strip-h)),
    /* внутри полосы: тёмный тон переходит в чёрный */
    rgba(20,15,7,.99) calc(100% - var(--strip-h) * .45),
    #000 100%,
    #000 100%);
}
.hero__bg {
  /* Растянут на весь первый экран, включая полосу под шапкой.
     z-index не задаём: остаётся ниже ::after, но выше фона .hero. */
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center 35%; opacity: .5;
}
.hero__veil {
  position: absolute; inset: 0;
  z-index: 1;
  /* Основное затемнение перенесено на .hero::after — единый градиент
     на весь #top. Здесь остаётся только мягкий радиальный акцент,
     который подсвечивает левую часть и добавляет глубины. */
  background: radial-gradient(120% 78% at 18% 42%, rgba(30,22,10,.5) 0%, transparent 62%);
}
.hero__inner {
  position: relative;
  z-index: 2;                 /* выше слоя затемнения .hero::after */
  flex: 1 1 auto;             /* занимает всё свободное место над полосой */
  display: flex; flex-direction: column; justify-content: center;
  /* Блок смещён вниз: верхний отступ заметно больше нижнего.
     К нему добавлена высота шапки — она теперь лежит ПОВЕРХ первого
     экрана, и без этой добавки текст заезжал бы под неё. */
  padding: calc(var(--header-h) + clamp(8px, 2.6vh, 48px)) var(--s6) clamp(12px, 1.8vh, 28px);
  /* Блок достаточно широкий, чтобы крупный «Grace» помещался
     справа от «Салон / красоты» без выхода за границы */
  max-width: 1240px;
  margin: 0 auto;
  width: 100%;
}
.hero__eyebrow {
  display: block;
  font-size: 12px; font-weight: 600;
  letter-spacing: .2em; text-transform: uppercase;
  color: var(--gold-line);
  margin-bottom: clamp(14px, 2.4vh, 22px);
}
/* Заголовок в две колонки:
     слева  — «Салон» и «красоты» друг под другом,
     справа — «Grace», по центру высоты левой колонки.
   Две колонки дают большой запас по ширине, поэтому кегль крупный. */
.hero__title {
  font-size: clamp(38px, min(8.6vw, 17vh), 116px);
  line-height: .98; letter-spacing: -.02em;
  color: #FFF8EC; margin: 0 0 clamp(42px, 7.2vh, 78px);
  text-shadow: 0 3px 24px rgba(20,14,6,.4);
  display: grid;
  /* Первая колонка — по содержимому, вторая занимает остаток ширины,
     поэтому «Grace» можно прижать к правому краю блока. */
  grid-template-columns: auto 1fr;
  align-items: center;       /* «Grace» по центру высоты левой колонки */
  column-gap: clamp(12px, 1.8vw, 28px);
}
.hero__title-line {
  /* Две строки: «Салон» / «красоты».
     Кегль меньше базового: левая часть должна быть скромнее
     крупного «Grace», который задан в em от .hero__title. */
  display: block;
  text-align: left;
  font-size: .68em;
}
.hero__title em {
  font-style: italic; font-weight: 500; color: var(--gold-line);
  align-self: center;
  display: block;
  /* «Grace» крупнее левой колонки и прижат к правому краю.
     Прижим — через justify-self: слово стоит у самой правой границы
     блока, а не по центру своей колонки.
     Кегль задан в em без vw: тогда отношение к левой части (.78em)
     постоянно и одинаково на всех экранах — 1.3/.78 = 1.67x.
     Ранее в формуле был 12.5vw, из-за него на широких экранах
     отношение уплывало до 2.65x. */
  justify-self: end;
  text-align: right;
  font-size: 1.8em;
  line-height: .88;
  white-space: nowrap;
}
.hero__lead {
  /* Курсив: берём Playfair Display italic — он подключён локально.
     У Inter курсива в наборе нет, поэтому font-style: italic на нём
     дал бы синтетический наклон вместо настоящего курсива. */
  font-family: var(--font-head);
  font-style: italic;
  font-size: clamp(15px, 1.5vw, 18px); line-height: 1.55;
  color: #EFE5D2; max-width: 30em;
  margin: 0 0 clamp(20px, 3.4vh, 34px);
  text-shadow: 0 1px 8px rgba(20,14,6,.5);
}
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--s3); }
.hero__note {
  display: flex; align-items: center; gap: 9px;
  margin-top: clamp(18px, 3.4vh, 40px);
  color: rgba(234,223,200,.78); font-size: 13.5px; line-height: 1.4;
}
.hero__note svg { width: 16px; height: 16px; flex: none; color: var(--gold-line); }

.hero__strip {
  position: relative;
  z-index: 2;                 /* выше слоя затемнения .hero::after */
  flex: none;
  /* Полоса фактов прозрачная: затемнение живёт на самом #top
     и начинается ровно там, где начинается эта полоса. */
  background: none;
  border: 0;
}

/* Нижний край #top: полоса воздуха между фактами и краем экрана.
   Светлая (фон страницы), поэтому отступ реально виден. */
.hero__foot {
  /* Полоса воздуха под фактами. Прозрачная — сквозь неё видно фото,
     поэтому снимок доходит до самого низа экрана. */
  position: relative;
  z-index: 2;
  flex: none;
  height: 40px;
  background: none;
  pointer-events: none;
}
.hero__strip-inner {
  display: grid; grid-template-columns: repeat(5, 1fr);
  padding: clamp(16px, 2.6vh, 26px) 0;
}
.hfact {
  display: flex; flex-direction: column; gap: 3px;
  padding: 0 22px;
  border: 0;
  min-width: 0;
}
.hfact b {
  font-family: var(--font-head);
  font-size: clamp(24px, 2.4vw, 34px); font-weight: 600; line-height: 1;
  color: #FFF8EC; letter-spacing: -.01em;
}
.hfact span { font-size: 12.5px; line-height: 1.35; color: rgba(234,223,200,.72); }

/* ---------- Услуги ---------- */
.svc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 26px; }
.svc {
  background: var(--surface);
  border: 1px solid var(--gold-line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform var(--t2) var(--ease), box-shadow var(--t2) var(--ease);
}
.svc:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.svc__media { position: relative; aspect-ratio: 4/3; background: var(--gold-soft); overflow: hidden; }
.svc__media img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--t3) var(--ease); }
.svc:hover .svc__media img { transform: scale(1.05); }
.svc__body { padding: var(--s5); display: flex; flex-direction: column; flex: 1; }
.svc__body h3 { margin-bottom: var(--s3); }
.svc__text { color: var(--ink-2); font-size: 15px; margin: 0 0 var(--s4); }
.svc__list { list-style: none; margin: 0 0 var(--s5); padding: 0; font-size: 14.5px; color: var(--ink-2); }
.svc__list li { padding: 5px 0 5px 18px; position: relative; }
.svc__list li::before {
  content: ""; position: absolute; left: 0; top: 13px;
  width: 6px; height: 6px; border-radius: 50%; background: var(--gold-line);
}
.svc__foot {
  margin-top: auto; padding-top: var(--s4);
  border-top: 1px dashed var(--gold-line);
  display: flex; align-items: baseline; justify-content: space-between; gap: var(--s3);
}
.svc__price { font-family: var(--font-head); font-size: 25px; color: var(--gold-dark); }
.svc__price small { font-family: var(--font); font-size: 13px; color: var(--ink-2); }
.svc__more { font-size: 14.5px; font-weight: 600; }

/* --- Карточка подбора услуги --- */
.svc--help {
  background: linear-gradient(160deg, #3A2E1B 0%, #241B0E 100%);
  border-color: transparent;
}
.svc--help .svc__body { justify-content: center; padding: 34px 30px; }
.svc--help h3 { color: #FFF8EC; font-size: clamp(25px, 2.5vw, 33px); line-height: 1.1; margin-bottom: var(--s3); }
.svc--help .svc__text { color: rgba(234,223,200,.82); font-size: 15px; margin-bottom: var(--s5); }
.svc--help .btn--gold { background: var(--accent); color: var(--on-accent); }
.svc--help .btn--gold:hover { background: var(--accent-hi); }
.svc__help-note { margin: var(--s4) 0 0; font-size: 13px; line-height: 1.45; color: rgba(234,223,200,.6); }

/* ---------- Прайс ---------- */
.price-groups { display: grid; gap: var(--s4); }
.pgroup {
  background: var(--surface);
  border: 1px solid var(--gold-line);
  border-radius: var(--radius);
  overflow: hidden;
  scroll-margin-top: calc(var(--header-h) + 20px);
  transition: border-color var(--t2) var(--ease), box-shadow var(--t2) var(--ease);
}
.pgroup.is-highlight {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(168,129,47,.18), var(--shadow-lg);
}
.pgroup.is-highlight > summary { background: var(--gold-soft); }
.pgroup > summary {
  list-style: none; cursor: pointer;
  padding: var(--s5) 26px;
  display: flex; align-items: center; gap: var(--s4);
  font-family: var(--font-head);
  font-size: clamp(20px, 2.1vw, 26px); font-weight: 600;
}
.pgroup > summary::-webkit-details-marker { display: none; }
.pgroup > summary::after {
  content: ""; margin-left: auto;
  width: 10px; height: 10px;
  border-right: 2px solid var(--gold);
  border-bottom: 2px solid var(--gold);
  transform: rotate(45deg);
  transition: transform var(--t2) var(--ease);
  flex: none;
}
.pgroup[open] > summary::after { transform: rotate(-135deg); }
.pgroup > summary:hover { background: var(--gold-soft); }
.pgroup__count {
  font-family: var(--font); font-size: 12px; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--gold-dark); background: var(--gold-soft);
  border-radius: 999px; padding: 5px 12px;
}
.pgroup__body { padding: 4px 26px 26px; }
.psub { margin-top: var(--s5); }
.psub:first-child { margin-top: 0; }
.psub__title {
  font-size: 12px; font-weight: 700; letter-spacing: .15em;
  text-transform: uppercase; color: var(--gold);
  padding-bottom: 9px; margin-bottom: 4px;
  border-bottom: 1px solid var(--gold-line);
}
.prow {
  display: flex; align-items: baseline; gap: var(--s3);
  padding: 11px 0;
  border-bottom: 1px dashed rgba(223,207,168,.75);
}
.prow:last-child { border-bottom: none; }
.prow__name { flex: 1 1 auto; }
.prow__note { display: block; font-size: 13.5px; color: var(--ink-2); margin-top: 3px; }
.prow__price { font-weight: 700; color: var(--gold-dark); white-space: nowrap; font-variant-numeric: tabular-nums; }
.badge-new {
  display: inline-block; font-size: 10px; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  background: var(--accent); color: var(--on-accent);
  border-radius: 5px; padding: 3px 7px;
  margin-left: 8px; vertical-align: 2px;
}

/* ---------- Мозаика-«тетрис» ---------- */
.mosaic {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: 150px;
  grid-auto-flow: dense;
  gap: 14px;
}
.tile {
  position: relative; overflow: hidden;
  border-radius: var(--radius-sm);
  background: var(--gold-soft); display: block;
}
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--t3) var(--ease); }
.tile:hover img { transform: scale(1.06); }
.tile--xl { grid-column: span 3; grid-row: span 3; }
.tile--lg { grid-column: span 3; grid-row: span 2; }
.tile--md { grid-column: span 2; grid-row: span 2; }
.tile--sm { grid-column: span 2; grid-row: span 1; }
.tile--sq { grid-column: span 1; grid-row: span 2; }
.tile__cap {
  position: absolute; left: var(--s3); bottom: var(--s3);
  max-width: calc(100% - 24px);
  padding: 7px 14px; border-radius: 999px;
  background: rgba(30,23,13,.62);
  -webkit-backdrop-filter: blur(8px) saturate(1.2); backdrop-filter: blur(8px) saturate(1.2);
  color: #FFF8EC; font-size: 13px; font-weight: 600; line-height: 1.3;
  text-shadow: 0 1px 2px rgba(0,0,0,.35);
  border: 1px solid rgba(255,248,236,.16);
  pointer-events: none;
}
@media (hover: hover) {
  .tile__cap { opacity: .92; transition: opacity var(--t2) var(--ease), transform var(--t2) var(--ease); }
  .tile:hover .tile__cap { opacity: 1; transform: translateY(-2px); }
}
.gallery__more { margin-top: var(--s6); text-align: center; }

/* ---------- Контакты ---------- */
.contacts { display: grid; grid-template-columns: 1fr 1.15fr; gap: 34px; align-items: start; }
.ccard {
  background: var(--surface);
  border: 1px solid var(--gold-line);
  border-radius: var(--radius);
  padding: 30px;
}
.ccard + .ccard { margin-top: var(--s4); }
.crow {
  display: flex; gap: 15px; align-items: flex-start;
  padding: 15px 0;
  border-bottom: 1px dashed rgba(223,207,168,.75);
}
.crow:last-child { border-bottom: none; padding-bottom: 0; }
.crow:first-child { padding-top: 0; }
.crow__ico {
  flex: none; width: 42px; height: 42px; border-radius: 11px;
  background: var(--gold-soft); display: grid; place-items: center;
  color: var(--gold-dark);
}
.crow__ico svg { width: 20px; height: 20px; }
.crow__label {
  font-size: 11.5px; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--gold); margin-bottom: 5px;
}
.crow__value { font-size: 17px; font-weight: 600; }
.crow__value a { color: var(--ink); }
.crow__value a:hover { color: var(--gold-dark); }
.crow__hint { font-size: 13.5px; color: var(--ink-2); margin-top: 3px; }
.social-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }

.map {
  position: relative; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--gold-line); background: var(--surface);
  min-height: 420px; height: 100%;
}
.map iframe { position: relative; z-index: 1; width: 100%; height: 100%; min-height: 420px; border: 0; display: block; }
.map__fallback {
  position: absolute; inset: 0; z-index: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 10px; text-align: center; padding: var(--s6);
  background: linear-gradient(160deg, var(--gold-soft) 0%, var(--bg-alt) 100%);
}
.map__fallback b { font-family: var(--font-head); font-size: 21px; color: var(--ink); }
.map__fallback span { font-size: 14.5px; color: var(--ink-2); max-width: 30em; }

/* ---------- Подвал ---------- */
.footer { background: var(--gold-dark); color: var(--on-gold); padding: var(--s7) 0 var(--s5); }
.footer a { color: var(--on-gold); opacity: .9; }
.footer a:hover { opacity: 1; color: #fff; }
.footer__grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: var(--s6);
  padding-bottom: var(--s6); border-bottom: 1px solid rgba(255,248,236,.22);
}
.footer .logo__name { color: var(--on-gold); }
.footer .logo__sub { color: var(--gold-line); }
.footer h4 {
  font-family: var(--font); font-size: 12px; font-weight: 700;
  letter-spacing: .15em; text-transform: uppercase;
  color: var(--gold-line); margin-bottom: var(--s3);
}
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { padding: 5px 0; font-size: 15px; }
.footer__about { color: #EADFC8; font-size: 14.5px; margin: var(--s4) 0 0; max-width: 34em; }
.footer__bottom {
  padding-top: var(--s5);
  display: flex; flex-wrap: wrap; gap: var(--s3); justify-content: space-between;
  font-size: 13.5px; color: #E3D6BC;   /* 4.90:1 на фоне подвала — AA */
}

/* ---------- Модальное окно ----------
   Одно и то же на всех страницах. Окно никогда не выходит за пределы экрана:
   размеры в vh/dvh, контент адаптивный. */
.modal {
  position: fixed; inset: 0; z-index: 200;
  display: grid; place-items: center;
  padding: var(--s4);
}
.modal__overlay {
  position: absolute; inset: 0;
  background: rgba(28,22,13,.62);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  opacity: 0; transition: opacity var(--t2) var(--ease);
}
.modal.is-open .modal__overlay { opacity: 1; }

.modal__box {
  position: relative;
  display: flex; flex-direction: column;
  width: 100%;
  max-width: min(520px, 100%);
  /* Никогда не выше экрана: dvh учитывает адресную строку на мобильных */
  max-height: min(92dvh, 100%);
  overflow: hidden;                 /* прокрутка — только у тела */
  background: var(--bg);
  border-radius: 24px;
  border: 0;                        /* без верхней золотой полосы */
  box-shadow: 0 40px 90px rgba(20,14,6,.5);
  opacity: 0; transform: translateY(18px) scale(.97);
  transition: opacity var(--t2) var(--ease), transform var(--t2) var(--ease);
}
.modal.is-open .modal__box { opacity: 1; transform: none; }

.modal__close {
  position: absolute; top: var(--s3); right: var(--s3); z-index: 2;
  width: clamp(30px, 8vw, 38px); height: clamp(30px, 8vw, 38px);
  border: none; border-radius: 50%;
  background: rgba(42,39,36,.06); color: var(--ink);
  cursor: pointer; display: grid; place-items: center;
  transition: background var(--t2) var(--ease), transform var(--t2) var(--ease);
}
.modal__close:hover { background: rgba(42,39,36,.12); transform: rotate(90deg); }
.modal__close svg { width: clamp(14px, 4vw, 18px); height: clamp(14px, 4vw, 18px); }

/* Шапка окна — фиксированная, не сжимается */
.modal__head {
  flex: none;
  padding: clamp(18px, 3.2vh, 30px) var(--s6) clamp(12px, 2.2vh, 22px);
  background: linear-gradient(180deg, var(--gold-soft) 0%, var(--bg) 100%);
  border-radius: 24px 24px 0 0;
}
.modal__eyebrow {
  display: inline-block;
  font-size: clamp(10px, 2.6vw, 11px); font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--gold-dark); margin-bottom: clamp(4px, 1vh, 10px);
}
.modal__head h3 {
  margin: 0 0 var(--s2);
  font-size: clamp(19px, 5vw, 30px);
  padding-right: clamp(34px, 10vw, 42px);
  line-height: 1.15;
}
.modal__sub {
  color: var(--ink-2);
  font-size: clamp(13px, 3.4vw, 15px);
  margin: 0; line-height: 1.45;
}
/* Тело окна: занимает остаток высоты, при нехватке места прокручивается только оно */
.modal__grid {
  flex: 1 1 auto;
  min-height: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(8px, 1.6vh, 12px);
  padding: clamp(12px, 2.2vh, 22px) var(--s6) 0;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.copt {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: clamp(6px, 1.2vh, 10px);
  padding: clamp(10px, 2vh, 20px) clamp(8px, 2vw, 14px);
  border: 1px solid var(--gold-line); border-radius: 16px;
  background: var(--surface); color: var(--ink); text-align: center;
  transition: transform var(--t1) var(--ease), border-color var(--t1) var(--ease), box-shadow var(--t1) var(--ease);
}
.copt:hover { transform: translateY(-3px); border-color: var(--gold); box-shadow: var(--shadow); color: var(--ink); }
.copt__ico {
  width: clamp(34px, 9vw, 48px); height: clamp(34px, 9vw, 48px);
  border-radius: 14px; display: grid; place-items: center; color: #fff;
  flex: none;
}
.copt__ico svg { width: clamp(18px, 5vw, 25px); height: clamp(18px, 5vw, 25px); fill: currentColor; }
.copt--wa .copt__ico { background: #1FA855; }
.copt--tg .copt__ico { background: #2AABEE; }
.copt__body { display: block; min-width: 0; }
.copt__name { display: block; font-weight: 700; font-size: clamp(14px, 3.8vw, 15.5px); }
.copt__value { display: block; font-size: clamp(11.5px, 3vw, 13px); color: var(--ink-2); margin-top: 2px; }

.modal__phones {
  flex: none;
  padding: clamp(10px, 1.8vh, 20px) var(--s6) 0;
  display: grid; gap: clamp(4px, 1vh, 8px);
}
.modal__phones-label {
  font-size: clamp(10px, 2.6vw, 11.5px); font-weight: 700; letter-spacing: .13em;
  text-transform: uppercase; color: var(--gold); margin-bottom: 2px;
}
.cphone {
  display: flex; align-items: center; gap: clamp(8px, 2vw, 12px);
  padding: clamp(8px, 1.6vh, 13px) clamp(10px, 2.6vw, 16px);
  border-radius: 13px;
  background: var(--surface); border: 1px solid var(--gold-line);
  color: var(--ink); font-weight: 700;
  font-size: clamp(14px, 4vw, 16.5px);
  font-variant-numeric: tabular-nums;
  transition: border-color var(--t1) var(--ease), background var(--t1) var(--ease);
}
.cphone:hover { border-color: var(--gold); background: var(--gold-soft); color: var(--gold-dark); }
.cphone__ico {
  flex: none;
  width: clamp(26px, 7vw, 34px); height: clamp(26px, 7vw, 34px);
  border-radius: 10px;
  background: var(--gold-soft); color: var(--gold-dark);
  display: grid; place-items: center;
}
.cphone__ico svg { width: clamp(13px, 3.6vw, 17px); height: clamp(13px, 3.6vw, 17px); }
.modal__foot {
  flex: none;
  margin-top: clamp(8px, 1.6vh, 22px);
  padding: clamp(8px, 1.6vh, 16px) var(--s6) clamp(10px, 2vh, 22px);
  border-top: 1px solid var(--gold-line);
  display: flex; align-items: flex-start; gap: 9px;
  font-size: clamp(11.5px, 3vw, 13.5px); color: var(--ink-2); line-height: 1.4;
}
.modal__foot-ico { width: clamp(14px, 3.8vw, 17px); height: clamp(14px, 3.8vw, 17px); flex: none; margin-top: 1px; color: var(--gold); }
body.modal-open { overflow: hidden; }

/* Плавающая кнопка */
.fab {
  position: fixed; right: 22px; bottom: 22px; z-index: 60;
  width: 62px; height: 62px;
  border: none; border-radius: 50%;
  background: var(--accent);
  display: grid; place-items: center; cursor: pointer;
  box-shadow: 0 12px 30px rgba(138,106,34,.34);
  transition: transform var(--t2) var(--ease), background var(--t2) var(--ease),
              opacity var(--t2) var(--ease), visibility var(--t2);
}
.fab:hover { transform: scale(1.07); background: var(--accent-hi); }
.fab svg { width: 27px; height: 27px; fill: none; stroke: var(--on-accent); stroke-width: 1.8; }
/* Пока виден первый экран (#top), кнопка скрыта: там уже есть «Записаться».
   Появляется, как только #top ушёл за верхнюю границу окна. */
.fab.is-hidden {
  opacity: 0;
  visibility: hidden;
  transform: scale(.8) translateY(8px);
  pointer-events: none;
}
.fab:not(.is-hidden) { opacity: 1; visibility: visible; }

.img-fallback {
  width: 100%; height: 100%;
  display: grid; place-items: center; text-align: center; padding: 18px;
  background: repeating-linear-gradient(45deg, var(--gold-soft) 0 14px, #EFE3C6 14px 28px);
  color: #8A6E27; font-size: 13px; font-weight: 600;
}

/* ---------- Появление блоков при скролле ----------
   Как в v9: мягкий подъём и проявление, срабатывает один раз.
   Класс .reveal вешается разметкой, .is-in добавляет скрипт. */
.reveal {
  opacity: 0;
  transform: translateY(28px);
}
.reveal.is-in {
  opacity: 1;
  transform: none;
  transition: opacity 700ms var(--ease), transform 700ms var(--ease);
}
/* Последовательное появление карточек внутри сетки */
.reveal:nth-child(2) { transition-delay: 60ms; }
.reveal:nth-child(3) { transition-delay: 120ms; }
.reveal:nth-child(4) { transition-delay: 180ms; }
.reveal:nth-child(5) { transition-delay: 240ms; }
.reveal:nth-child(6) { transition-delay: 300ms; }

/* ---------- Адаптив ---------- */
@media (max-width: 980px) {
  .contacts { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .mosaic { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 140px; }
  .tile--xl { grid-column: span 2; grid-row: span 2; }
  .tile--lg { grid-column: span 2; grid-row: span 2; }
  .tile--md { grid-column: span 2; grid-row: span 2; }
  .tile--sm { grid-column: span 2; grid-row: span 1; }
  .tile--sq { grid-column: span 1; grid-row: span 2; }
}

@media (max-width: 760px) {
  /* Открытое меню: тёмная типографика на залитой шапке */
  .header.open .logo__name { color: var(--ink); }
  /* --gold даёт лишь 3.25 на светлом фоне — для мелкой подписи мало,
     берём тёмное продолжение акцента */
  .header.open .logo__sub { color: var(--gold-dark); }
  .header.open .nav a { color: var(--ink); }
  .header.open .nav a:hover { color: var(--gold-dark); border-bottom-color: var(--gold); }
  .header.open .burger { border-color: var(--gold-line); background: #fff; }
  .header.open .burger span { background: var(--ink); }
  /* На мобильных — одна колонка по центру:
     «Салон красоты» в одну строку, под ним крупный «Grace». */
  .hero__title {
    grid-template-columns: 1fr;
    justify-items: center;      /* обе части по центру */
    align-items: start;
    column-gap: 0;
    text-align: center;
  }
  /* <br> скрыт: «Салон красоты» в одну строку.
     Пробел между словами есть в разметке. */
  .hero__title br { display: none; }
  .hero__title-line { text-align: center; }
  .hero__title em {
    justify-self: center;
    text-align: center;
    line-height: .92;
    margin-top: .04em;
    /* «Grace» заметно крупнее: 2em против .78em у левой части
       даёт отношение 2.56x — почти вдвое больше прежнего 1.67x. */
    font-size: 2.8em;
    white-space: nowrap;
  }
  /* 40px между последним рядом фактов и нижней границей экрана */
  body { font-size: 16px; }
  .section { padding: var(--s8) 0; }
  .nav { display: none; }
  .burger { display: block; }

  /* ---------- Затемнение на мобильных ----------
     Полоса фактов прозрачная, поэтому градиент выходит на свой тон
     ровно у её верхней границы и держится одинаковым по всей полосе. */
  .hero::after {
    background: linear-gradient(to bottom,
      rgba(38,29,16,.72) 0%,
      rgba(38,29,16,.34) 34%,
      rgba(38,29,16,.58) 60%,
      rgba(30,23,12,.92) calc(100% - var(--strip-h)),
      rgba(30,23,12,.92) 100%,
      #000 100%,
      #000 100%);
  }
  /* Шапка остаётся зафиксированной и на мобильных */
  .header { position: sticky; top: 0; }
  .header__inner { gap: var(--s4); }
  :root { --header-h: 64px; }
  .header.open .nav {
    display: flex; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; gap: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--gold-line);
    box-shadow: var(--shadow-lg);
    padding: var(--s2) var(--s5) 18px; z-index: 99;
  }
  .header.open .nav a { padding: var(--s4) 0; border-bottom: 1px solid var(--gold-line); font-size: 17px; }
  .header.open .nav a:last-child { border-bottom: none; }

  /* ---------- Hero на мобильных ----------
     Первый экран вместе с полосой фактов должен умещаться в высоту
     видимой области, иначе появляется прокрутка прямо в #top.
     Поэтому: никаких min-height у .hero, вся высота распределяется
     через grid, а полоса фактов идёт плотнее. */
  .hero {
    /* height: 100svh наследуется из базового правила — содержимое
       не должно растягивать первый экран выше окна.
       Здесь только высота полосы фактов (3 ряда вместо 1). */
    --strip-h: 179px;
  }
  .hero__inner {
    /* padding: 56px сверху (текст опущен), 32px по бокам, 24px снизу */
    padding: calc(var(--header-h) + var(--s2)) var(--s6) var(--s5);
    max-width: none;
    min-height: 0;
    /* Текст по центру колонки: свободное место делится поровну
       сверху и снизу. Верхний отступ при этом не меньше высоты
       шапки, поэтому под неё текст не заезжает. */
    justify-content: center;
  }
  .hero__title { font-size: clamp(32px, 10vw, 46px); margin-bottom: clamp(60px, 13.5vh, 132px); }
  .hero__eyebrow { margin-bottom: 12px; font-size: 11px; letter-spacing: .16em; }
  .hero__lead { margin-bottom: 60px; font-size: 15px; line-height: 1.5; }
  .hero__note { margin-top: 18px; font-size: 12px; line-height: 1.4; align-items: flex-start; }
  .hero__actions { flex-direction: column; gap: 8px; }
  .hero__actions .btn { width: 100%; min-height: 48px; }

  /* Полоса фактов: 5 фактов в 2 колонки = 3 ряда, компактно.
     Снизу 40px — полоса не прилипает к нижней границе экрана. */
  .hero__strip-inner {
    grid-template-columns: 1fr 1fr;
    gap: 0;
    padding-left: var(--s6);
    padding-right: var(--s6);
    padding-top: var(--s2);
  }
  .hfact { padding: 10px 0; border: 0; }
  .hfact:nth-child(odd) { padding-right: 12px; }
  .hfact:nth-child(even) { padding-left: 12px; }
  .hfact:last-child { grid-column: 1 / -1; }
  .hfact b { font-size: 22px; }
  .hfact span { font-size: 11.5px; line-height: 1.3; }

  .footer__grid { grid-template-columns: 1fr; gap: var(--s5); }
  .mosaic { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 130px; gap: 10px; }
  .tile--xl { grid-column: span 2; grid-row: span 2; }
  .tile--lg { grid-column: span 2; grid-row: span 2; }
  .tile--md { grid-column: span 2; grid-row: span 1; }
  .tile--sm { grid-column: span 1; grid-row: span 1; }
  .tile--sq { grid-column: span 1; grid-row: span 1; }
  .tile__cap { left: var(--s2); bottom: var(--s2); font-size: 12px; padding: 6px 11px; }

  .pgroup > summary { padding: 18px; }
  .pgroup__body { padding: 2px 18px 20px; }
  .prow { flex-wrap: wrap; gap: 4px 12px; }
  .ccard { padding: 22px; }
  .modal__box { padding: 26px 20px 22px; border-radius: 20px; }
  .modal__grid { grid-template-columns: 1fr; }
  .copt { flex-direction: row; text-align: left; }
  .footer__copy { flex-direction: column; align-items: center; text-align: center; gap: 3px; font-size: 12.5px; }
}

/* ---------- Малые экраны ----------
   Отдельный брейкпоинт: на узких телефонах двухколоночная полоса фактов
   и крупные кегли ломают композицию. */
@media (max-width: 480px) {
  /* Отступы по бокам сохраняем, вертикальные поджимаем,
     чтобы #top целиком умещался в экран. */
  .hero__inner { padding: calc(var(--header-h) + var(--s2)) var(--s5) var(--s4); justify-content: center; }
  .hero__title { font-size: clamp(28px, 9.5vw, 38px); line-height: 1.05; margin-bottom: var(--s6); }
  .hero__eyebrow { margin-bottom: 10px; font-size: 10.5px; }
  .hero__lead { font-size: 14.5px; margin-bottom: 52px; line-height: 1.45; }
  .hero__note { font-size: 11.5px; margin-top: 14px; }

  /* Полоса фактов остаётся в 2 колонки — 3 ряда вместо 5,
     иначе она не помещается на экран. */
  .hero__strip-inner {
    grid-template-columns: 1fr 1fr;
    padding-left: var(--s5);
    padding-right: var(--s5);
    padding-top: var(--s2);
  }
  .hero { --strip-h: 155px; }
  .hfact { padding: 8px 0; }
  .hfact b { font-size: 19px; }
  .hfact span { font-size: 11px; }

  .section { padding: var(--s7) 0; }
  .section__head { margin-bottom: var(--s6); }
  .svc__body { padding: var(--s4); }
  .ccard { padding: var(--s4); }
  .crow { gap: var(--s3); }
  .crow__ico { width: 36px; height: 36px; }
  .crow__value { font-size: 16px; }
  .social-row .btn { width: 100%; }
}

/* ---------- Очень узкие и невысокие экраны ----------
   iPhone SE (320×568) и подобные: поджимаем ещё сильнее,
   чтобы #top уместился без прокрутки. */
@media (max-width: 420px), (max-height: 640px) and (max-width: 480px) {
  .hero { --strip-h: 84px; }   /* полоса здесь компактнее */
  /* На самых низких экранах всё поджато, иначе #top не влезает.
     Верхний отступ = только высота шапки, без добавки. */
  .hero__inner { padding: var(--header-h) var(--s5) var(--s3); justify-content: center; }
  .hero__foot { height: 24px; }
  .hero__eyebrow { display: none; }   /* второстепенная строка */
  /* Отступ до описания сохранён, но соразмерен низкому экрану */
  .hero__title { font-size: clamp(24px, 8.4vw, 32px); margin-bottom: var(--s7); }
  .hero__lead { font-size: 13px; margin-bottom: 40px; line-height: 1.35; }
  .hero__note { margin-top: 4px; font-size: 10px; }
  .hero__actions { gap: 4px; }
  .hero__actions .btn { min-height: 38px; font-size: 13.5px; }

  .hero__strip-inner {
    padding-left: var(--s5);
    padding-right: var(--s5);
    padding-top: 0;
  }
  .hfact { padding: 2px 0; }
  .hfact b { font-size: 15px; }
  .hfact span { font-size: 9px; line-height: 1.1; }
}

@media (max-width: 420px) {
  .wrap { padding: 0 var(--s4); }
  .btn { width: 100%; }
  .mosaic { grid-auto-rows: 112px; gap: var(--s2); }
}

/* ---------- Тач-устройства: гасим «залипшие» hover-состояния ----------
   На сенсорных экранах :hover срабатывает после тапа и остаётся висеть
   до следующего касания. Ограничиваем hover устройствами с курсором,
   а для тач-экранов задаём явную обратную связь через :active. */
@media (hover: none), (pointer: coarse) {
  .svc:hover { transform: none; box-shadow: none; }
  .svc:hover .svc__media img { transform: none; }
  .tile:hover img { transform: none; }
  .tile:hover .tile__cap { opacity: .92; transform: none; }
  .tile__cap { opacity: 1; }
  .btn:hover { transform: none; }
  .btn--gold:hover { background: var(--accent); color: var(--on-accent); }
  .btn--ghost:hover { border-color: var(--gold-line); color: var(--ink); background: transparent; }
  .btn--ghost-light:hover { background: rgba(255,248,236,.1); border-color: rgba(255,248,236,.4); }
  .btn--wa:hover { background: #1FA855; }
  .btn--tg:hover { background: #2AABEE; }
  .header__cta:hover { background: var(--accent); }
  .nav a:hover { color: var(--ink); border-bottom-color: transparent; }
  .footer a:hover { opacity: .9; color: var(--on-gold); }
  .modal__close:hover { background: rgba(42,39,36,.06); transform: none; }
  .copt:hover { transform: none; border-color: var(--gold-line); box-shadow: none; }
  .cphone:hover { border-color: var(--gold-line); background: var(--surface); color: var(--ink); }
  .pgroup > summary:hover { background: transparent; }
  .fab:hover { transform: none; background: var(--accent); }
  .map__fallback .btn:hover { background: var(--accent); }
  a:hover { color: inherit; }
  .crow__value a:hover { color: var(--ink); }

  /* Взамен — реакция на нажатие */
  .btn:active { transform: scale(.98); }
  .svc:active { transform: scale(.995); }
  .copt:active { border-color: var(--gold); }
  .cphone:active { border-color: var(--gold); background: var(--gold-soft); }
  .tile:active img { transform: scale(1.02); }
}

/* ---------- Модальное окно на малых экранах ----------
   Раньше карточка была выше экрана и появлялся внутренний скролл.
   Теперь окно всегда умещается: контент сжимается, а не прокручивается. */
/* ---------- Модальное окно на узких экранах ----------
   Базовые правила уже адаптивны; здесь только уменьшаем поля
   и занимаем почти всю ширину. Ничего не обрезается и не прокручивается. */
@media (max-width: 560px) {
  .modal { padding: var(--s2); }
  .modal__box { max-width: 100%; max-height: 94dvh; border-radius: 20px; }
  .modal__head {
    padding: 16px var(--s4) 10px;
    border-radius: 20px 20px 0 0;
  }
  .modal__grid { padding: 10px var(--s4) 0; }
  .modal__phones { padding: 10px var(--s4) 0; }
  .modal__foot { padding: 10px var(--s4) 14px; margin-top: 10px; }
}

/* ---------- Горизонтальная ориентация ----------
   По высоте мало места, поэтому раскладываем в две колонки:
   слева заголовок, справа способы связи. Высота полосы ~2 строки. */
@media (orientation: landscape) and (max-height: 560px) {
  .modal { padding: var(--s2); }
  .modal__box {
    max-width: min(760px, 100%);
    max-height: 96dvh;
    border-radius: 18px;
    display: grid;
    grid-template-columns: minmax(180px, 34%) 1fr;
    grid-template-rows: auto 1fr auto;
    align-items: start;
  }
  /* Заголовок — в левой колонке на всю высоту */
  .modal__head {
    grid-column: 1;
    grid-row: 1 / -1;
    height: 100%;
    display: flex; flex-direction: column; justify-content: center;
    padding: 16px 14px 16px 18px;
    border-radius: 18px 0 0 18px;
    background: linear-gradient(120deg, var(--gold-soft) 0%, var(--bg) 100%);
  }
  .modal__head h3 { font-size: 20px; padding-right: 0; margin-bottom: 6px; }
  .modal__sub { font-size: 12.5px; line-height: 1.35; }

  /* Способы связи — две колонки в правой части, в одну строку */
  .modal__grid {
    grid-column: 2;
    grid-row: 1;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 14px 16px 0;
    overflow: visible;
  }
  .copt { flex-direction: row; gap: 8px; padding: 9px 10px; text-align: left; }
  .copt__ico { width: 30px; height: 30px; border-radius: 9px; }
  .copt__ico svg { width: 16px; height: 16px; }
  .copt__name { font-size: 13.5px; }
  .copt__value { display: none; }

  /* Телефоны — в одну строку под способами связи */
  .modal__phones {
    grid-column: 2;
    grid-row: 2;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 8px 16px 0;
    align-content: start;
  }
  .modal__phones-label { grid-column: 1 / -1; margin-bottom: 0; font-size: 10px; }
  .cphone { padding: 8px 10px; font-size: 14px; gap: 8px; }
  .cphone__ico { width: 26px; height: 26px; }
  .cphone__ico svg { width: 13px; height: 13px; }

  .modal__foot {
    grid-column: 2;
    grid-row: 3;
    margin-top: 0;
    padding: 8px 16px 14px;
    font-size: 11.5px;
    border-top: 0;
  }
  .modal__close { top: 8px; right: 8px; width: 30px; height: 30px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}

/* ==========================================================================
   #top В ГОРИЗОНТАЛЬНОМ РЕЖИМЕ (телефон повёрнут)
   --------------------------------------------------------------------------
   Экран широкий и низкий (например 844x390). Прежняя раскладка в две
   колонки зажимала текст и неудачно обрезала фото. Здесь используем
   главное преимущество горизонтали — ширину:

     • фото фоном на всю ширину, панорамно
     • текст одной группой по центру, компактно
     • факты строкой снизу, 5 в ряд
     • отступ 40px под полосой, как в портрете
   ========================================================================== */
@media (orientation: landscape) and (max-height: 560px) and (max-width: 1100px) {

  .hero {
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100svh;
    min-height: 0;
    overflow: hidden;
    --strip-h: 78px;
  }

  /* Фото — панорама на всю ширину, кадрируем по центру кадра */
  .hero__bg {
    width: 100%;
    left: 0;
    object-position: center 42%;
    opacity: .62;
  }

  /* Затемнение: сверху плотнее (под заголовком), к низу ровный тёмный
     тон под полосой фактов. Горизонтальной составляющей не нужно —
     текст теперь по центру, а не в левой колонке. */
  .hero::after {
    background: linear-gradient(to bottom,
      rgba(38,29,16,.86) 0%,
      rgba(38,29,16,.62) 26%,
      rgba(38,29,16,.44) 52%,
      rgba(33,25,13,.80) calc(100% - var(--strip-h)),
      rgba(20,15,7,.97) calc(100% - var(--strip-h) * .45),
      #000 100%);
  }

  /* --- Текст: одна группа по центру, широко --- */
  .hero__inner {
    flex: 1 1 auto;
    justify-content: center;
    align-items: center;
    text-align: center;
    max-width: 760px;
    width: 100%;
    margin: 0 auto;
    min-height: 0;
    overflow: hidden;
    padding: 1.6vh var(--s6) 1.2vh;
  }

  .hero__eyebrow {
    margin-bottom: .7vh;
    font-size: clamp(9px, 2vh, 11px);
    letter-spacing: .14em;
  }

  /* Заголовок в одну строку: в горизонтали места по ширине хватает */
  .hero__title {
    font-size: clamp(22px, 7vh, 42px);
    line-height: 1;
    margin-bottom: 3vh;
    white-space: nowrap;
  }
  /* <br> скрыт, чтобы «Салон красоты» шло в одну строку.
     Пробел между словами обеспечен разметкой: «Салон<br> красоты» —
     поэтому склеивания в «Салонкрасоты» не происходит. */
  .hero__title br { display: none; }
  /* «Grace» заметно крупнее левой части: в горизонтали ширина большая,
     поэтому кегль можно поднять сильнее, чем в вертикали. */
  .hero__title em { font-size: 2.2em; }

  .hero__lead {
    font-size: clamp(11.5px, 3vh, 15px);
    line-height: 1.35;
    margin: 0 auto 4vh;
    max-width: 62ch;
  }

  /* Кнопки в строку по центру */
  .hero__actions {
    flex-direction: row;
    justify-content: center;
    gap: 10px;
    margin: 0;
  }
  .hero__actions .btn {
    width: auto;
    min-height: clamp(34px, 9vh, 46px);
    padding: 0 clamp(16px, 3vw, 28px);
    font-size: clamp(12.5px, 3.2vh, 15px);
  }

  .hero__note {
    margin-top: 1.3vh;
    font-size: clamp(10px, 2.6vh, 12px);
    line-height: 1.3;
    justify-content: center;
  }
  .hero__note svg { width: 14px; height: 14px; }

  /* --- Полоса фактов: строка снизу во всю ширину, 40px под ней --- */
  .hero__strip { flex: none; }

  .hero__strip-inner {
    grid-template-columns: repeat(5, 1fr);
    gap: 0;
    text-align: center;
    padding: 0 clamp(20px, 4vw, 48px) 40px;
  }

  .hfact {
    flex-direction: column;
    align-items: center;
    gap: 0;
    padding: 0;
    border: 0;
  }
  .hfact:nth-child(odd), .hfact:nth-child(even) { padding: 0; }
  .hfact:last-child { grid-column: auto; }
  .hfact b { font-size: clamp(16px, 5vh, 24px); line-height: 1.05; }
  .hfact span { font-size: clamp(9px, 2.3vh, 11.5px); line-height: 1.2; }


  /* --------------------------------------------------------------------------
     Остальные секции в горизонтальном режиме.
     Высота экрана 320-430px, поэтому вертикальные отступы секций сильно
     уменьшены, а многоколоночные сетки перестроены так, чтобы использовать
     ширину, а не высоту.
     -------------------------------------------------------------------------- */

  /* Секции: отступы соразмерны низкому экрану */
  .section { padding: clamp(24px, 7vh, 48px) 0; }
  .section__head { margin-bottom: clamp(16px, 4.5vh, 28px); max-width: none; }
  .section__head h2 { font-size: clamp(20px, 5.4vh, 28px); }
  .eyebrow { margin-bottom: 6px; font-size: 10px; }
  .lead { font-size: clamp(12.5px, 3.1vh, 15px); margin-top: 8px; max-width: 62ch; }

  /* Услуги: 3 колонки в ряд — используем ширину */
  .svc-grid { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; }
  .svc__media { aspect-ratio: 16/9; }
  .svc__body { padding: 14px 16px 16px; }
  .svc__body h3 { font-size: clamp(15px, 3.8vh, 19px); margin-bottom: 6px; }
  .svc__text { font-size: 12.5px; margin-bottom: 8px; }
  .svc__list { font-size: 12.5px; margin-bottom: 12px; }
  .svc__list li { padding: 2px 0 2px 16px; }
  .svc__list li::before { top: 9px; width: 5px; height: 5px; }
  .svc__foot { padding-top: 10px; }
  .svc__price { font-size: clamp(18px, 4.4vh, 22px); }
  .svc__price small { font-size: 11.5px; }
  .svc__more { font-size: 12.5px; }

  /* Карточка подбора: компактнее */
  .svc--help .svc__body { padding: 18px 16px; }
  .svc--help h3 { font-size: clamp(18px, 4.6vh, 24px); }
  .svc--help .svc__text { font-size: 12.5px; margin-bottom: 12px; }
  .svc__help-note { font-size: 11.5px; margin-top: 10px; }

  /* Прайс: группы в две колонки — меньше вертикальной прокрутки */
  .price-groups { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 10px; }
  .pgroup > summary { padding: 12px 16px; font-size: clamp(15px, 3.8vh, 19px); }
  .pgroup__count { font-size: 10.5px; padding: 3px 9px; }
  .pgroup__body { padding: 2px 16px 14px; }
  .psub { margin-top: 10px; }
  .prow { padding: 6px 0; font-size: 13px; }
  .prow__note { font-size: 11.5px; }

  /* Мозаика интерьера: 4 колонки, низкие плитки */
  .mosaic { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 84px; gap: 8px; }
  .tile--xl { grid-column: span 2; grid-row: span 2; }
  .tile--lg { grid-column: span 2; grid-row: span 2; }
  .tile--md { grid-column: span 2; grid-row: span 1; }
  .tile--sm { grid-column: span 2; grid-row: span 1; }
  .tile--sq { grid-column: span 1; grid-row: span 2; }
  .tile__cap { left: 8px; bottom: 8px; font-size: 11px; padding: 4px 9px; }
  .gallery__more { margin-top: 18px; }

  /* Контакты: две колонки, карта рядом — короткая страница */
  .contacts { grid-template-columns: 1fr 1fr; gap: 14px; }
  .ccard { padding: 16px; }
  .ccard + .ccard { margin-top: 12px; }
  .crow { padding: 10px 0; gap: 12px; }
  .crow__ico { width: 34px; height: 34px; border-radius: 9px; }
  .crow__ico svg { width: 17px; height: 17px; }
  .crow__label { font-size: 10.5px; margin-bottom: 3px; }
  .crow__value { font-size: 15px; }
  .crow__hint { font-size: 12px; }
  .map { min-height: 240px; }
  .map iframe { min-height: 240px; }
  .map__fallback { padding: 16px; gap: 8px; }
  .map__fallback b { font-size: 16px; }
  .map__fallback span { font-size: 12.5px; }

  /* Подвал: три колонки в один ряд, компактно */
  .footer { padding: clamp(20px, 6vh, 36px) 0 16px; }
  .footer__grid {
    grid-template-columns: 1.3fr 1fr 1fr;
    gap: 18px;
    padding-bottom: 14px;
  }
  .footer h4 { margin-bottom: 8px; font-size: 11px; }
  .footer li { padding: 3px 0; font-size: 13px; }
  .footer__about { font-size: 12.5px; margin-top: 8px; }
  .footer__bottom { padding-top: 12px; font-size: 12px; gap: 12px; }
  .footer .logo__name { font-size: 22px; }

  /* Кнопки и социальные ссылки */
  .social-row { gap: 8px; margin-top: 10px; }
  .btn { min-height: 40px; padding: 0 var(--s4); font-size: 13.5px; }
  .btn--lg { min-height: 44px; padding: 0 var(--s5); font-size: 14.5px; }

  /* Кнопка связи в углу — меньше, чтобы не закрывала контент */
  .fab { right: 14px; bottom: 14px; width: 50px; height: 50px; }
  .fab svg { width: 22px; height: 22px; }
}

/* ==========================================================
   ЮРИДИЧЕСКАЯ ИНФОРМАЦИЯ В ПОДВАЛЕ (v11)

   Основание: п. 2 Правил бытового обслуживания (ПП РФ № 1514),
   ст. 9 ЗоЗПП — реквизиты. ч. 2 ст. 13.15 КоАП — пометка о Meta.

   Порядок в .footer__bottom: реквизиты -> копирайт (в самом низу).
   ========================================================== */
.footer__bottom {
  flex-direction: column;
  align-items: flex-start;
  gap: var(--s3);
}
.footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 4px var(--s6);
  font-size: 12.5px;
  line-height: 1.6;
  color: #EADFC8;            /* 5.33:1 на фоне подвала — AA */
}
.footer__req { color: #FFF8EC; font-weight: 600; }
.footer__meta {
  flex: 1 1 100%;
  font-size: 11.5px;
  color: #E3D6BC;            /* 4.90:1 — AA */
}
/* Копирайт — последняя строка подвала, по центру */
.footer__copy {
  /* Единственная строка копирайта центрируется по горизонтали */
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  text-align: center;
  gap: 4px var(--s5);
  margin-top: var(--s2);
  padding-top: var(--s4);
  border-top: 1px solid rgba(255, 248, 236, .16);
  width: 100%;
  font-size: 13px;
  color: #E3D6BC;            /* 4.90:1 — AA */
}

/* ==========================================================
   ПРАВИЛА ОКАЗАНИЯ УСЛУГ (v11)

   Основание: ст. 10 ЗоЗПП. П. 19 Правил № 1514 — биопроба
   при окрашивании и химической завивке.

   Ширину НЕ ограничиваем: соседние блоки (.svc-grid,
   .price-groups, .contacts) идут во всю ширину .wrap.
   Читаемость держим колонками в две колонки на широком экране.
   ========================================================== */
.rules ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s5) var(--s7);
}
.rules li {
  position: relative;
  padding-left: var(--s6);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink-2);
}
.rules li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: .58em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}

/* ==========================================================
   ПОЯСНЕНИЕ К ЦЕНАМ (v11)

   Основание: ст. 10 ЗоЗПП — цена в рублях и за что именно.
   Ширина = ширина .wrap, как у прайса над ним.
   ========================================================== */
.price__note {
  margin: var(--s6) 0 0;
  padding-top: var(--s5);
  border-top: 1px solid var(--gold-line);
  font-size: 14px;
  line-height: 1.65;
  color: var(--ink-2);
}

/* ==========================================================
   АДАПТИВ v11
   ========================================================== */

/* Планшет: правила в одну колонку */
@media (max-width: 900px) {
  .rules ul { grid-template-columns: 1fr; gap: var(--s4); }
}

@media (max-width: 760px) {
  .footer__legal { flex-direction: column; gap: 3px; font-size: 12px; }
  .footer__meta { font-size: 11px; }
  .rules li { font-size: 15px; padding-left: var(--s5); }
  .price__note { font-size: 13.5px; }
}

@media (max-width: 480px) {
  .footer__legal { font-size: 11.5px; }
  .footer__meta { font-size: 10.5px; }
  .rules li { font-size: 14.5px; }
  .price__note { font-size: 13px; }
}

@media (max-width: 380px) {
  .footer__legal,
  .footer__copy { font-size: 11px; }
  .footer__meta { font-size: 10px; }
}

/* Ландшафт на телефоне: всё поджато по высоте */
@media (orientation: landscape) and (max-height: 560px) {
  .rules ul { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s3) var(--s5); }
  .rules li { font-size: 13.5px; }
  .price__note { font-size: 12.5px; margin-top: var(--s4); padding-top: var(--s4); }
  .footer__legal, .footer__copy { font-size: 11px; }
}
