/* ==========================================================================
   Perfección Aestetic — landing styles
   Palette and metrics follow the original Claude Design canvas 1:1.
   ========================================================================== */

/* --- tokens ------------------------------------------------------------- */
:root {
  /* surfaces */
  --brown-950: #1E120D;   /* footer */
  --brown-900: #2A1A14;   /* header, hero, dark sections */
  --brown-800: #3A2418;   /* stats band */
  --cream:     #F3EBE4;   /* light sections */
  --cream-100: #FBF7F3;   /* faq items */
  --cream-200: #F7F1EA;   /* light text on dark */
  --white:     #FFFFFF;

  /* accents */
  --accent:      #8A5A3C; /* links, prices, eyebrows */
  --accent-dark: #5B3623;
  --gold:        #C9A98C;
  --gold-light:  #E0C9AE;
  --gold-dark:   #BE9A78;
  --gold-pale:   #E7CFA7;
  --star:        #F4B400;

  /* text */
  --text:        #2A1A14;
  --text-strong: #3A2E27;
  --text-body:   #4F4038;
  --text-soft:   #4A3A31;
  --text-muted:  #6E5F55;
  --text-lead:   #5B4A40;

  /* on dark */
  --on-dark:      #F3EBE4;
  --on-dark-soft: rgba(243, 235, 228, 0.78);
  --on-dark-dim:  rgba(243, 235, 228, 0.6);
  --on-dark-warm: #F0E2D2;

  /* lines */
  --line-accent: rgba(138, 90, 60, 0.25);
  --line-gold:   rgba(201, 169, 140, 0.4);

  /* metrics */
  --wrap: 1240px;
  --pad-x: 44px;
  --pad-y: 130px;
  --shadow-btn: inset 0 1px 0 rgba(255, 255, 255, 0.5), 0 8px 22px rgba(42, 26, 20, 0.22);
  --gradient-gold: linear-gradient(180deg, var(--gold-light) 0%, var(--gold) 55%, var(--gold-dark) 100%);
}

/* --- base --------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--text);
  font: 400 16px/normal Lato, "Helvetica Neue", Arial, sans-serif;  /* the design leaves line-height to each element */
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;   /* not hidden: that would break position:sticky */
}

img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-dark); }
h1, h2, h3 { margin: 0; font-weight: 500; }
p { margin: 0; text-wrap: pretty; }
svg { flex: none; }

/* --- layout helpers ----------------------------------------------------- */
.wrap { max-width: var(--wrap); margin: 0 auto; }
.wrap--narrow { max-width: 960px; }

.section { padding: var(--pad-y) var(--pad-x); }
.section--cream { background: var(--cream); }
.section--white { background: var(--white); }
.section--dark  { background: var(--brown-900); color: var(--on-dark); }

/* dark sections that sit on a photograph */
.section--photo { background-size: cover; background-position: center; }
/* the drift shifts the image ±26px, so each backdrop is scaled slightly over
   its box — otherwise an edge would show at the extremes */
[data-parallax] { background-size: auto 118%, cover; will-change: background-position; }
.topband[data-parallax] { background-size: cover, auto 118%; }
.section--photo.section--contacto {
  background-image: linear-gradient(rgba(20, 10, 6, 0.74), rgba(20, 10, 6, 0.84)), url("../img/bg-contacto.jpg");
}

.section__head { max-width: 700px; margin: 0 auto 66px; text-align: center; }
.section__eyebrow {
  color: var(--accent);
  font-size: 11px; font-weight: 600; letter-spacing: 0.3em; text-transform: uppercase;
}
.section--dark .section__eyebrow { color: var(--gold); }
.section__title {
  margin-top: 16px;
  font-size: 35px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase;
}
.section__head--tight { margin-bottom: 46px; }
.section__head--tight .section__title { margin-top: 0; }
.section__rule { width: 60px; height: 1px; margin: 18px auto 0; background: var(--gold); }
.section__lead {
  margin-top: 20px;
  color: var(--text-lead); font-size: 16.5px; font-weight: 300; line-height: 1.8;
}
.section--dark .section__lead { color: rgba(243, 235, 228, 0.72); }

/* --- buttons ------------------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 17px 34px;
  font-size: 12px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase;
  border: 1px solid transparent;
  cursor: pointer;
  transition: filter .18s ease, transform .18s ease, background .18s ease, color .18s ease, box-shadow .18s ease;
}
.btn--gold {
  background: var(--gradient-gold);
  color: var(--brown-900);
  border-color: rgba(138, 90, 60, 0.55);
  box-shadow: var(--shadow-btn);
}
.btn--gold:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
  color: var(--brown-900);
}
.btn--ghost {
  background: rgba(243, 235, 228, 0.1);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
  color: var(--cream-200);
  border-color: rgba(243, 235, 228, 0.55);
}
.btn--ghost:hover {
  background: rgba(243, 235, 228, 0.2);
  transform: translateY(-1px);
  color: var(--cream-200);
}
.btn--outline {
  padding: 12px 24px;
  background: rgba(201, 169, 140, 0.12);
  color: var(--cream-200);
  border-color: var(--gold);
  gap: 8px;
  letter-spacing: 0.18em;
}
.btn--outline:hover { background: var(--gold); color: var(--brown-900); }
.btn--sm {
  padding: 12px 22px;
  font-size: 11px; letter-spacing: 0.18em;
  gap: 8px;
}
.btn-link {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 11px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase;
}

/* --- top band: header + hero + stats on one backdrop -------------------- */
.topband {
  background-color: var(--brown-900);
  background-image: linear-gradient(rgba(26, 14, 8, 0.8), rgba(26, 14, 8, 0.88)), url("../img/bg-hero.jpg");
  background-size: cover;
  background-position: center;
}
.hero-frame { padding: 0 var(--pad-x) 32px; }

/* --- header ------------------------------------------------------------- */
.site-header {
  /* Not sticky: it is transparent and sits on the hero backdrop, so pinning it
     would drag unreadable text over the hero. Same behaviour as the design. */
  position: relative; z-index: 50;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 14px 24px;
  padding: 22px var(--pad-x);
  background: transparent;      /* the band behind it supplies the colour */
  color: var(--on-dark);
}
.brand { display: flex; align-items: center; gap: 14px; flex: none; }
.brand__logo {
  width: 56px; height: 56px; flex: none;
  object-fit: cover; border-radius: 50%;
  border: 1px solid rgba(201, 169, 140, 0.55);
}
.brand__name { font-size: 14px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; }
.brand__tagline {
  color: var(--gold);
  font-size: 9px; font-weight: 500; letter-spacing: 0.26em; text-transform: uppercase;
}
.nav {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end;
  gap: 12px 22px; flex: 1;
  font-size: 11.5px; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase;
}
.nav__link { color: rgba(243, 235, 228, 0.8); transition: color .18s ease; }
.nav__link:hover { color: var(--white); }

/* --- hero --------------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  min-height: 92vh;
  padding: 120px var(--pad-x);
  background: var(--brown-900);
  color: var(--on-dark);
  text-align: center;
}
.hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 62%; }
/* the clip plays everywhere; the still stays as the fallback behind it */
.hero__bg--photo { display: none; }
.hero__veil { position: absolute; inset: 0; pointer-events: none; }
.hero__veil--top {
  background: linear-gradient(180deg, rgba(30, 18, 13, 0.5) 0%, rgba(42, 26, 20, 0.3) 45%, rgba(30, 18, 13, 0.66) 100%);
}
.hero__veil--copy {
  background: linear-gradient(180deg, rgba(26, 15, 10, 0.12) 0%, rgba(26, 15, 10, 0.42) 26%,
    rgba(26, 15, 10, 0.56) 48%, rgba(26, 15, 10, 0.5) 68%, rgba(26, 15, 10, 0.2) 88%, rgba(26, 15, 10, 0.08) 100%);
}
.hero__frame { position: absolute; inset: 18px; border: 1px solid rgba(243, 235, 228, 0.28); pointer-events: none; }
.hero__inner { position: relative; max-width: 940px; margin: 0 auto; }
.hero__title {
  overflow-wrap: break-word;
  color: var(--white);
  font-size: clamp(38px, 5.4vw, 80px); font-weight: 400;
  letter-spacing: 0.1em; line-height: 1.02; text-transform: uppercase;
}
.hero__eyebrow {
  display: flex; align-items: center; justify-content: center; gap: 18px;
  margin-top: 22px;
}
.hero__eyebrow span:not(.hero__dash) {
  color: var(--on-dark-warm);
  font-size: 12.5px; font-weight: 600; letter-spacing: 0.32em; text-transform: uppercase;
}
.hero__dash { width: 70px; height: 1px; background: rgba(201, 169, 140, 0.7); }
.hero__text {
  max-width: 620px; margin: 30px auto 0;
  color: var(--cream-200); font-size: 18px; line-height: 1.75;
}
.hero__actions {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px;
  margin-top: 38px;
}
.hero__note {
  margin-top: 26px;
  color: var(--on-dark-warm);
  font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase;
}

/* --- stats -------------------------------------------------------------- */
.stats {
  padding: 0 var(--pad-x);
  color: var(--on-dark);
}
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); max-width: var(--wrap); margin: 0 auto; }
.stat {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  padding: 52px 26px;
  text-align: center;
}
.stat { border-right: 1px solid rgba(201, 169, 140, 0.22); }
.stat:last-child { border-right: none; }
.stat__value {
  display: flex; align-items: baseline; gap: 8px;
  color: var(--cream-200); font-size: 54px; font-weight: 300; line-height: 1;
}
.stat__value small { color: rgba(243, 235, 228, 0.55); font-size: 15px; }
.stat__stars { color: var(--star); font-size: 15px; letter-spacing: 0.12em; line-height: 20px; }
.stat__note { color: var(--gold); font-size: 13px; line-height: 20px; }
.stat__rule { width: 34px; height: 1px; background: rgba(201, 169, 140, 0.6); }
.stat__label {
  color: var(--on-dark-soft);
  font-size: 10.5px; letter-spacing: 0.22em; text-transform: uppercase;
}

/* --- treatments --------------------------------------------------------- */
/* category filter: same tab idiom as the gallery, tuned for the light section */
.cat-tabs {
  position: sticky; top: 0; z-index: 40;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 10px;
  margin: -28px auto 30px;
  padding: 14px 0;
}
/* Pinned, the bar spans the whole viewport: the links stay in the content
   column while a pseudo-element carries the background edge to edge. */
.cat-tabs::before {
  content: "";
  position: absolute; top: 0; bottom: 0; left: calc(-50vw + 50%);
  width: 100vw; z-index: -1;
  background: rgba(243, 235, 228, 0.94);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 26px rgba(42, 26, 20, 0.08);
  border-bottom: 1px solid rgba(138, 90, 60, 0.12);
  opacity: 0;
  transition: opacity .25s ease;
}
.cat-tabs.is-pinned::before { opacity: 1; }
.cat-tab {
  display: inline-flex; align-items: center;
  padding: 12px 22px;
  background: transparent;
  border: 1px solid var(--line-accent);
  color: var(--text-body);
  font: 600 10.5px Lato, sans-serif; letter-spacing: 0.18em; text-transform: uppercase;
  cursor: pointer;
  transition: background .18s ease, color .18s ease, border-color .18s ease;
}
.cat-tab:hover { border-color: var(--gold); color: var(--accent); }
.cat-tab.is-active {
  background: var(--brown-900);
  border-color: var(--brown-900);
  color: var(--cream-200);
}
.cat[hidden] { display: none; }

/* --- категория слева, аккордеон процедур справа -------------------------
   46 процедур карточками с фото давали 35 000px на телефоне. Свёрнутая строка
   несёт название, одну строку описания и цену; фото и подробности приезжают
   по клику — так весь список категории виден разом. */
.treatments { display: flex; flex-direction: column; gap: 70px; }
.cat { display: grid; grid-template-columns: 0.78fr 1.22fr; gap: 44px; align-items: start; scroll-margin-top: 28px; }
.cat[hidden] { display: none; }

/* Карточка категории липкая: список длинный (16 позиций в «Armonización
   facial»), и без этого к середине списка непонятно, что вообще листаешь. */
.cat__card {
  position: sticky; top: 96px;
  overflow: hidden;
  background: var(--brown-900);
  min-height: 420px;
  display: flex; align-items: flex-end;
}
.cat__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.62; }
.cat__over {
  position: relative;
  padding: 34px 32px 32px;
  color: var(--on-dark);
  background: linear-gradient(rgba(26, 14, 8, 0) 0%, rgba(26, 14, 8, 0.72) 46%, rgba(26, 14, 8, 0.9) 100%);
  width: 100%;
}
.cat__count { font-size: 10px; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold); }
.cat__title { margin-top: 8px; font-size: 23px; font-weight: 400; letter-spacing: 0.14em; text-transform: uppercase; }
.cat__rule { width: 44px; height: 1px; margin: 14px 0 0; background: var(--gold); }
.cat__note { margin-top: 12px; color: var(--on-dark-soft); font-size: 14.5px; font-weight: 300; line-height: 1.6; }

.cat__list { min-width: 0; }
.tr { border-bottom: 1px solid var(--line-accent); scroll-margin-top: 96px; }
.tr:first-child { border-top: 1px solid var(--line-accent); }
.tr__head { margin: 0; font: inherit; }
.tr__btn {
  display: grid; grid-template-columns: 1fr auto auto auto; align-items: center; gap: 8px 20px;
  width: 100%; padding: 20px 4px;
  background: none; border: none; cursor: pointer; text-align: left;
  font-family: inherit; color: inherit;
}
.tr__main { min-width: 0; }
.tr__name { display: block; font-size: 15px; font-weight: 600; letter-spacing: 0.13em; text-transform: uppercase; }
.tr__short { display: block; margin-top: 5px; color: var(--text-muted); font-size: 14.5px; font-weight: 300; }
.tr__price { color: var(--accent); font-size: 20px; font-weight: 300; white-space: nowrap; }
.tr__more { color: var(--text-muted); font-size: 10px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; }
/* Знак «+ / −» — две палочки, а не символ. Вращать символьный «+» бессмысленно:
   он симметричен, поворот на 180° неотличим от исходного, а подмена глифа на
   полпути читается как сбой. Здесь вертикальная палочка доворачивается в
   горизонтальную, и «плюс» превращается в «минус» одним понятным движением. */
.tr__sign {
  position: relative;
  width: 30px; height: 30px;
  border: 1px solid var(--line-accent); color: var(--accent);
  transition: border-color .18s ease;
}
.tr__sign::before,
.tr__sign::after {
  content: "";
  position: absolute; top: 50%; left: 50%;
  width: 11px; height: 1px; margin: -1px 0 0 -5.5px;
  background: currentColor;
  transition: transform .3s cubic-bezier(.4, 0, .2, 1);
}
.tr__sign::after { transform: rotate(90deg); }
.tr.is-open .tr__sign::after { transform: rotate(0deg); }
.tr__btn:hover .tr__sign { border-color: var(--gold); }
.tr__btn:hover .tr__name { color: var(--accent); }
.tr.is-open { background: var(--white); }
.tr.is-open .tr__btn { padding-left: 22px; padding-right: 22px; }

/* Раскрытие анимируем через grid-template-rows 0fr → 1fr: единственный способ
   плавно доехать до «высоты по содержимому», не измеряя её в JS и не подбирая
   max-height на глаз (у строк она разная — от трёх строк текста до снимка 320px). */
.tr__wrap {
  display: grid; grid-template-rows: 0fr;
  transition: grid-template-rows .34s cubic-bezier(.4, 0, .2, 1);
}
.tr.is-open .tr__wrap { grid-template-rows: 1fr; }
.tr__panel {
  min-height: 0; overflow: hidden;
  display: grid; grid-template-columns: 0.8fr 1fr; gap: 30px;
  /* Нижний отступ схлопывается вместе с высотой: трек 0fr обнуляет только
     контент, а padding остаётся в боксе — 28px × 46 строк давали лишние 800px
     в свёрнутом виде. */
  padding: 0 22px;
  /* visibility убирает свёрнутую панель из таб-порядка и из скринридера —
     одного overflow: hidden для этого мало: ссылки внутри остались бы фокусируемыми. */
  visibility: hidden; opacity: 0;
  transition: visibility 0s linear .34s, opacity .2s ease,
              padding-bottom .34s cubic-bezier(.4, 0, .2, 1);
}
.tr.is-open .tr__panel {
  visibility: visible; opacity: 1; padding-bottom: 28px;
  transition: visibility 0s, opacity .28s ease .06s,
              padding-bottom .34s cubic-bezier(.4, 0, .2, 1);
}
/* Снимок слева, текст справа. Порядок задаём стилем, а не разметкой: в DOM текст
   идёт первым, и на телефоне (одна колонка) он остаётся выше картинки — там важнее
   быстрее дойти до описания и кнопки, чем увидеть фото. */
.tr__figure { order: -1; }
.tr__text { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.tr__desc { color: var(--text-body); font-size: 15.5px; font-weight: 300; line-height: 1.8; }
.tr__prices { display: flex; flex-direction: column; gap: 8px; align-self: stretch; }
/* Строка цены: подпись слева, сумма прижата вправо. Правила жили в блоке
   карточек и уехали вместе с ним — без них «Precio» и «Consultar» слипались. */
.price {
  display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: 4px 16px;
  color: var(--text-strong); font-size: 15px;
}
.price + .price { border-top: 1px solid rgba(138, 90, 60, 0.16); padding-top: 8px; }
.price__value { color: var(--accent); font-size: 22px; line-height: 1; text-align: right; white-space: nowrap; }
.tr__duration { color: var(--text-muted); font-size: 11px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; }
.tr__figure { margin: 0; }
.tr__img { width: 100%; height: 100%; max-height: 320px; object-fit: cover; display: block; }
.tr__caption {
  margin-top: 10px; text-align: center;
  color: var(--text-muted); font-size: 10px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase;
}

/* --- окно-подтверждение перед уходом в WhatsApp -------------------------
   Класс, а не [hidden]: нужна анимация и открытия, и закрытия, а display:none
   обрывает переход. visibility убирает закрытое окно из таб-порядка — тот же
   приём, что у .tr__panel. */
.wa-ask {
  position: fixed; inset: 0; z-index: 300;   /* выше .services (200) и .toolbar (60) */
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  background: rgba(14, 7, 4, 0.62);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  visibility: hidden; opacity: 0;
  transition: opacity .22s ease, visibility 0s linear .22s;
}
.wa-ask.is-open { visibility: visible; opacity: 1; transition: opacity .22s ease, visibility 0s; }
.wa-ask__card {
  width: min(420px, 100%);
  padding: 28px 26px 24px;
  background: var(--white);
  border: 1px solid var(--line-accent);
  text-align: center;
  transform: translateY(12px) scale(.98);
  transition: transform .24s cubic-bezier(.22, .61, .36, 1);
}
.wa-ask.is-open .wa-ask__card { transform: none; }
.wa-ask__for {
  margin-bottom: 10px;
  color: var(--accent);
  font-size: 10.5px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase;
}
.wa-ask__for[hidden] { display: none; }
.wa-ask__title { font-size: 19px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; }
.wa-ask__text { margin-top: 14px; color: var(--text-body); font-size: 15px; font-weight: 300; line-height: 1.7; }
.wa-ask__note { margin-top: 10px; color: var(--text-muted); font-size: 12.5px; font-weight: 300; line-height: 1.5; }
.wa-ask__actions { display: flex; gap: 10px; margin-top: 22px; }
.wa-ask__actions > * { flex: 1 1 0; }
/* .btn--outline рассчитан на тёмный фон: его color: var(--cream-200) на белой
   карточке давал почти невидимый текст. Отказ должен читаться — но оставаться
   явно второстепенным рядом с золотой кнопкой. */
.wa-ask__no {
  background: transparent;
  border-color: var(--line-accent);
  color: var(--text-muted);
}
.wa-ask__no:hover { background: rgba(138, 90, 60, 0.07); border-color: var(--accent); color: var(--text); }

/* --- visit steps -------------------------------------------------------- */
.visit { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 70px; align-items: start; max-width: 1180px; }
.visit__intro { position: sticky; top: 40px; align-self: start; }
.visit__intro .section__head { margin: 0; max-width: none; text-align: left; }
.visit__intro .section__rule { margin-left: 0; }
.steps { display: flex; flex-direction: column; }
.step {
  display: grid; grid-template-columns: 64px 1fr; gap: 24px; align-items: start;
  padding: 26px 0;
}
.step + .step { border-top: 1px solid rgba(138, 90, 60, 0.2); }
.step__num {
  color: var(--gold);
  font-size: 44px; font-weight: 300; letter-spacing: 0.1em; line-height: 1;
}
.step__title { font-size: 23px; font-weight: 500; }
.step__text { color: var(--text-body); font-size: 15.5px; font-weight: 300; line-height: 1.8; }

/* --- about -------------------------------------------------------------- */
.about { display: grid; grid-template-columns: 1fr 1fr; align-items: stretch; background: var(--white); }
.about__body {
  padding: var(--pad-y) 64px var(--pad-y) 100px;
  background-color: var(--white);
  background-image: linear-gradient(rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.8)), url("../img/bg-visita.jpg");
  background-size: cover; background-position: center;
  text-align: center;
}
.about__actions { display: flex; justify-content: center; margin-top: 32px; }
.about__text {
  margin-top: 22px;
  color: var(--text-soft); font-size: 16.5px; font-weight: 300; line-height: 1.85;
}
.about__img { width: 100%; height: 100%; min-height: 480px; object-fit: cover; }

/* Карусель «изнутри»: кадры лежат стопкой и переливаются друг в друга.
   Именно кросс-фейд, а не лента: ячейка занимает половину секции и тянется
   по высоте текста, а кадры разного формата — при горизонтальной ленте
   пришлось бы фиксировать высоту и терять «стык в стык» с левой колонкой. */
.about__slider { min-height: 480px; }
.slider { position: relative; overflow: hidden; }
.slider__track { position: absolute; inset: 0; }
.slider__slide {
  position: absolute; inset: 0;
  opacity: 0; visibility: hidden;
  transition: opacity .7s ease, visibility 0s linear .7s;
}
.slider__slide.is-current { opacity: 1; visibility: visible; transition: opacity .7s ease; }
.slider__slide .about__img { min-height: 0; }

.slider__nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  width: 44px; height: 44px;
  background: rgba(42, 26, 20, 0.34);
  border: 1px solid rgba(201, 169, 140, 0.5);
  color: var(--on-dark);
  font-size: 15px;
  cursor: pointer;
  opacity: 0;
  transition: background .18s ease, opacity .18s ease;
}
.slider__nav--prev { left: 18px; }
.slider__nav--next { right: 18px; }
.slider__nav:hover { background: rgba(42, 26, 20, 0.55); }
/* Стрелки проявляются на наведении — на широком экране они закрывают кадр.
   Клавиатуре и тачу они нужны всегда, поэтому :focus-visible и мобильный
   брейкпоинт ниже возвращают их принудительно. */
.slider:hover .slider__nav,
.slider__nav:focus-visible { opacity: 1; }

.slider__dots {
  position: absolute; left: 0; right: 0; bottom: 18px; z-index: 2;
  display: flex; justify-content: center; gap: 9px;
}
.slider__dot {
  width: 8px; height: 8px; padding: 0;
  background: rgba(243, 235, 228, 0.45);
  border: 1px solid rgba(243, 235, 228, 0.65);
  border-radius: 50%;
  cursor: pointer;
  transition: background .2s ease, transform .2s ease;
}
.slider__dot.is-current { background: var(--gold); border-color: var(--gold-light); transform: scale(1.35); }
.slider__dot:hover { background: var(--gold-light); }

/* --- reviews ------------------------------------------------------------ */
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.wrap--reviews { max-width: 1100px; }

/* rating: a full-width strip above the reviews, not a centred card */
.rating {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px;
  margin-bottom: 26px;
  padding: 32px 38px;
  background: var(--white);
  border: 1px solid var(--line-accent);
}
.rating__main { display: flex; align-items: center; gap: 26px; min-width: 0; }
.rating__score { flex: none; text-align: center; }
.rating__value { font-size: 46px; font-weight: 300; line-height: 1; }
.rating__stars { margin-top: 8px; color: var(--star); font-size: 15px; letter-spacing: 0.14em; }
.rating__sep { width: 1px; height: 64px; flex: none; background: var(--line-accent); }
.rating__meta { min-width: 0; }
.rating__source {
  display: flex; align-items: center; gap: 10px;
  color: var(--text-strong); font-size: 14px; font-weight: 600; letter-spacing: 0.04em;
}
.rating__badge {
  display: flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; flex: none;
  border: 1px solid var(--line-gold); border-radius: 50%;
  color: var(--accent); font-size: 13px; font-weight: 700;
}
.rating__note { margin-top: 8px; color: var(--text-muted); font-size: 14.5px; font-weight: 300; line-height: 1.6; }

.review {
  display: flex; flex-direction: column; gap: 14px;
  margin: 0;
  padding: 32px 30px;
  background: var(--white);
  border: 1px solid var(--line-accent);
}
.review__head { display: flex; align-items: center; gap: 14px; }
.review__avatar {
  display: flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; flex: none;
  background: var(--cream); border-radius: 50%;
  color: var(--star); font-size: 15px;
}
.review__author { color: var(--text-strong); font-size: 14px; font-weight: 700; }
.review__meta { color: var(--text-muted); font-size: 12px; }
.review__stars { color: var(--star); font-size: 15px; letter-spacing: 0.14em; }
.review__text { color: var(--text-strong); font-size: 16px; font-weight: 300; line-height: 1.75; }
.review__link {
  margin-top: auto;
  font-size: 10.5px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase;
}

/* --- faq ---------------------------------------------------------------- */
.faq { display: flex; flex-direction: column; gap: 12px; }
.faq__item {
  background: var(--cream-100);
  border: 1px solid rgba(138, 90, 60, 0.2);
  border-left: 3px solid rgba(201, 169, 140, 0.55);
  transition: box-shadow .2s ease, border-color .2s ease;
}
.faq__item:hover { box-shadow: 0 10px 26px rgba(42, 26, 20, 0.09); }
.faq__item.is-open { border-left-color: var(--accent); }
.faq__q {
  width: 100%;
  display: flex; align-items: center; gap: 18px;
  padding: 22px 26px;
  background: none; border: none;
  font: 400 17px Lato, sans-serif; color: var(--text);
  text-align: left; cursor: pointer;
}
.faq__q span:first-child { flex: 1; min-width: 0; }
.faq__sign {
  display: flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; flex: none;
  border: 1px solid var(--line-gold); border-radius: 50%;
  color: var(--accent); font-size: 17px; font-weight: 300;
}
.faq__a {
  padding: 0 70px 24px 26px;
  color: var(--text-soft); font-size: 16.5px; font-weight: 300; line-height: 1.85;
}
.faq__cta {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px;
  margin-top: 40px;
  padding: 32px 36px;
  background: var(--brown-900);
  border: 1px solid rgba(201, 169, 140, 0.35);
  color: var(--on-dark);
}
.faq__cta-title { color: var(--cream-200); font-size: 19px; }
.faq__cta-text { margin-top: 5px; color: rgba(243, 235, 228, 0.72); font-size: 14.5px; }

/* --- contact ------------------------------------------------------------ */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 34px; }
.contact__card {
  position: relative;
  overflow: hidden;
  display: flex; flex-direction: column;
  padding: 48px 46px;
  background: rgba(255, 248, 242, 0.04);
  -webkit-backdrop-filter: blur(22px) saturate(1.5);
  backdrop-filter: blur(22px) saturate(1.5);
  border: 1px solid rgba(255, 248, 242, 0.24);
  animation: glass-breathe 14s ease-in-out infinite;
}
/* a soft highlight drifting under the glass — the blur itself stays static,
   animating backdrop-filter would repaint the whole card every frame */
.contact__card::before {
  content: "";
  position: absolute; inset: -45%;
  background: radial-gradient(closest-side, rgba(255, 248, 242, 0.20), rgba(255, 248, 242, 0.05) 55%, transparent 75%);
  animation: glass-drift 18s ease-in-out infinite alternate;
  pointer-events: none;
}
.contact__card > * { position: relative; z-index: 1; }

@keyframes glass-breathe {
  0%, 100% { background: rgba(255, 248, 242, 0.035); border-color: rgba(255, 248, 242, 0.20); }
  50%      { background: rgba(255, 248, 242, 0.085); border-color: rgba(255, 248, 242, 0.30); }
}
@keyframes glass-drift {
  0%   { transform: translate3d(-14%, -10%, 0) scale(1);    opacity: .5; }
  50%  { transform: translate3d(10%, 8%, 0)   scale(1.18);  opacity: .95; }
  100% { transform: translate3d(-4%, 12%, 0)  scale(1.06);  opacity: .6; }
}
.contact__title {
  margin: 16px 0 30px;
  font-size: 33px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase;
}
.contact__list { display: flex; flex-direction: column; gap: 20px; }
.contact-item { display: flex; align-items: flex-start; gap: 18px; }
.contact-item__icon {
  display: flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; flex: none;
  color: var(--gold);
  border: 1px solid rgba(201, 169, 140, 0.5); border-radius: 50%;
}
.contact-item__label {
  color: var(--on-dark-dim);
  font-size: 10.5px; letter-spacing: 0.22em; text-transform: uppercase;
}
.contact-item__value { font-size: 22px; font-weight: 300; line-height: 1.5; }
.contact-item__value a { color: var(--on-dark); font-size: 26px; }
.contact-item__value a:hover { color: var(--gold); }
.contact__cta { display: flex; margin-top: 32px; }
.contact__directions { margin-top: 16px; color: var(--gold-pale); }
.contact__directions:hover { color: var(--gold); }
.contact__map {
  min-height: 420px;
  border: 1px solid rgba(201, 169, 140, 0.32);
  filter: grayscale(0.2) contrast(1.05);
}
.contact__map iframe { display: block; width: 100%; height: 100%; min-height: 420px; border: 0; }

/* --- footer ------------------------------------------------------------- */
.site-footer {
  padding: 54px var(--pad-x);
  background: var(--brown-950);
  color: var(--on-dark);
  text-align: center;
}
.site-footer__name { font-size: 14px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; }
.site-footer__tagline {
  margin-top: 6px;
  color: var(--gold);
  font-size: 9.5px; font-weight: 500; letter-spacing: 0.26em; text-transform: uppercase;
}
.site-footer__contacts { margin-top: 20px; color: rgba(243, 235, 228, 0.7); font-size: 13.5px; font-weight: 300; }
.site-footer__contacts a { color: inherit; }
.site-footer__contacts a:hover { color: var(--gold); }
.site-footer__legal { margin-top: 14px; color: rgba(243, 235, 228, 0.42); font-size: 12px; }

/* --- bottom toolbar ------------------------------------------------------
   On desktop the wrapper does nothing and the WhatsApp pill floats; on phones
   it becomes one white bar holding both actions. */
.toolbar { display: contents; }

/* --- floating whatsapp -------------------------------------------------- */
.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 60;
  display: inline-flex; align-items: center; gap: 9px;
  padding: 13px 20px;
  background: var(--gradient-gold);
  color: var(--brown-900);
  font-size: 11px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase;
  border: 1px solid rgba(138, 90, 60, 0.55);
  box-shadow: var(--shadow-btn);
  transition: filter .18s ease, transform .18s ease;
}
.wa-float:hover { filter: brightness(1.05); transform: translateY(-1px); color: var(--brown-900); }

/* ==========================================================================
   Responsive — the canvas design was desktop-only; these are the breakpoints
   added for the static build.
   ========================================================================== */
@media (max-width: 1100px) {
  :root { --pad-y: 100px; }
  .about__body { padding: 100px 56px; }
  .visit { grid-template-columns: 1fr; gap: 40px; }
  .visit__intro .section__head { text-align: center; }
  .visit__intro .section__rule { margin-left: auto; }
}

@media (max-width: 900px) {
  :root { --pad-x: 22px; --pad-y: 76px; }
  .site-header { flex-wrap: nowrap; gap: 12px; }
  .nav { flex: none; gap: 0; }
  .nav__link { display: none; }        /* section anchors: the page is short enough to scroll */
  .btn--outline { padding: 11px 16px; font-size: 10px; }
  .hero { min-height: 0; padding: 96px var(--pad-x); }
  .stats__grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(even) { border-right: none; }
  .stat:nth-child(n+3) { border-top: 1px solid rgba(201, 169, 140, 0.22); }
  .about { grid-template-columns: 1fr; }
  .about__body { padding: 76px 26px; }
  .about__img { min-height: 320px; }
  /* Слайдеру даём больше высоты, чем одиночному кадру: пять из шести фотографий
     вертикальные, и в полосе 320px от интерьера остаётся горизонтальная щель. */
  .about__slider { min-height: 440px; }
  .slider__slide .about__img { min-height: 0; }
  /* На тач-экране наведения нет — стрелки должны быть видны сразу. */
  .slider__nav { opacity: 1; width: 38px; height: 38px; }
  .slider__nav--prev { left: 10px; }
  .slider__nav--next { right: 10px; }
  .reviews { grid-template-columns: 1fr; }
  .rating { flex-direction: column; align-items: flex-start; gap: 20px; padding: 26px 22px; }
  .rating__main { flex-wrap: wrap; gap: 18px; }
  .rating__sep { display: none; }
  .contact { grid-template-columns: 1fr; }
  .contact__card { padding: 34px 26px; }
  .contact__map, .contact__map iframe { min-height: 320px; }
}

@media (max-width: 640px) {
  :root { --pad-x: 18px; }
  /* Нижний лист: кнопка подтверждения должна попадать под большой палец.
     Лист намеренно перекрывает .toolbar — пока окно открыто, нижние кнопки
     не должны быть доступны. */
  .wa-ask { align-items: flex-end; padding: 0; }
  .wa-ask__card {
    width: 100%;
    padding: 24px 18px calc(20px + env(safe-area-inset-bottom));
    transform: translateY(100%);
  }
  .wa-ask__actions { flex-direction: column-reverse; }
  .cat-tabs { gap: 8px; margin-bottom: 40px; }
  .cat-tab { padding: 10px 14px; font-size: 9.5px; letter-spacing: 0.12em; }
  /* Между категориями оставляем зазор заметно больше, чем между карточками (26px),
     иначе три группы сливаются в один длинный список и нумерация категорий теряет смысл.
     70px были рассчитаны на три колонки — в одну это просто пустой экран. */
  .treatments { gap: 40px; }
  .cat__head { margin-bottom: 22px; }
  .hero__eyebrow { gap: 12px; }
  .hero__dash { width: 34px; }
  .hero__actions .btn { width: 100%; }
  .faq__q { padding: 18px 20px; font-size: 16px; }
  .faq__a { padding: 0 20px 20px; font-size: 15.5px; }
  .faq__cta { padding: 26px 22px; }
  .brand__logo { width: 44px; height: 44px; }
  .brand__name { font-size: 12px; letter-spacing: 0.14em; }
  .brand__tagline { font-size: 8px; }
  .contact-item__value { font-size: 19px; }
  .contact-item__value a { font-size: 22px; }
  .wa-float { right: 14px; bottom: 14px; padding: 12px 16px; font-size: 10px; }
}

@media (max-width: 480px) {
  .site-header { padding-left: 14px; padding-right: 14px; }
  .brand { min-width: 0; gap: 10px; }
  .brand__name { font-size: 10.5px; letter-spacing: 0.1em; }
  .brand__tagline { display: none; }
  .btn--outline { padding: 10px 12px; letter-spacing: 0.12em; }
}

@media (max-width: 380px) {
  /* very narrow phones: let the CTA drop to its own row rather than overflow */
  .site-header { flex-wrap: wrap; justify-content: center; text-align: center; }
  .nav { flex-basis: 100%; justify-content: center; }
}

@media (max-width: 420px) {
}

/* «Cuatro pasos» на телефоне: четыре шага должны читаться одним экраном, иначе
   смысл нумерации теряется — человек видит «шаг I» и не знает, сколько их всего.
   Ужимаем всё разом: отступы секции, интро, колонку с цифрой и кегли. Колонку
   оставляем одну: во вторую текст шага сворачивается в семь строк по 165px,
   что читается хуже, чем то, ради чего всё затевалось. */
@media (max-width: 640px) {
  #visita { padding-top: 30px; padding-bottom: 30px; }
  #visita .visit { gap: 18px; }
  #visita .section__head { margin-bottom: 0; }
  #visita .section__title { font-size: 19px; }
  #visita .section__lead { margin-top: 12px; font-size: 13.5px; line-height: 1.5; }
  #visita .section__rule { margin-top: 12px; }
  #visita .btn-link { margin-top: 14px; font-size: 10px; }
  .step { grid-template-columns: 32px 1fr; gap: 13px; padding: 9px 0; }
  .step__num { font-size: 24px; }
  .step__title { font-size: 16.5px; }
  /* Кегль текста шага здесь НЕ трогаем: блок мобильной типографики в конце файла
     (@media max-width: 900px) идёт позже и всё равно вернёт свои 14.5px. Секция
     влезает в экран и с ними, а 14.5px читается заметно лучше — оставляем как есть. */
  .step__text { margin-top: 3px; line-height: 1.5; }
}

/* Полоса цифр на телефоне: сетка 2×2 держится до самых узких экранов —
   в один столбец четыре блока превращались в экран с лишним прокрутки, хотя
   это всего четыре числа и их смысл в том, чтобы охватываться одним взглядом.
   Отсюда и ужатые кегли: иначе в колонку 150px не влезают ни «4,6 / 5»,
   ни подпись «Clientes satisfechos». */
@media (max-width: 480px) {
  .stat { padding: 26px 10px; gap: 7px; }
  .stat__value { font-size: 32px; }
  .stat__value small { font-size: 12px; }
  .stat__stars { font-size: 13px; line-height: 16px; }
  .stat__note { font-size: 11.5px; line-height: 16px; }
  .stat__rule { width: 26px; }
  .stat__label { font-size: 9px; letter-spacing: 0.14em; }
}

/* --- motion --------------------------------------------------------------
   Elements fade up once when they first reach the viewport; the counters in
   the stats strip count up at the same moment. Both are switched off for
   anyone who asked for reduced motion. */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .7s cubic-bezier(.22,.61,.36,1), transform .7s cubic-bezier(.22,.61,.36,1);
  will-change: opacity, transform;
}
.reveal.is-visible { opacity: 1; transform: none; }

/* the floating button breathes so it stays noticeable without shouting */
@keyframes wa-pulse {
  0%   { box-shadow: var(--shadow-btn), 0 0 0 0 rgba(201, 169, 140, 0.5); }
  70%  { box-shadow: var(--shadow-btn), 0 0 0 14px rgba(201, 169, 140, 0); }
  100% { box-shadow: var(--shadow-btn), 0 0 0 0 rgba(201, 169, 140, 0); }
}
.wa-float { animation: wa-pulse 3s ease-out infinite; }
.wa-float:hover { animation-play-state: paused; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  /* Раскрытие строки — мгновенное, без разъезжающейся высоты. */
  .tr__wrap, .tr__panel, .tr__sign, .tr__sign::before, .tr__sign::after { transition: none; }
  /* .is-open обязателен: у него специфичность выше, и без него правило проигрывает. */
  .wa-ask, .wa-ask.is-open, .wa-ask__card, .wa-ask.is-open .wa-ask__card { transition: none; }
  .tr.is-open .tr__panel { transition: none; }
  .wa-float { animation: none; }
  .contact__card { animation: none; }
  .contact__card::before { animation: none; opacity: .6; }
  /* Кадр меняется мгновенно; автолистание при этом выключает сам JS —
     переключать кадры за спиной у человека, который просил меньше движения,
     нельзя, но пролистать руками он по-прежнему может. */
  .slider__slide { transition: none; }
  .slider__slide.is-current { transition: none; }
  html { scroll-behavior: auto; }
}

@media (max-width: 1100px) {
  .visit__intro { position: static; }
}

/* --- hero entrance -------------------------------------------------------
   The title resolves out of a blur while the lines under it rise in sequence —
   the slider idiom, without the slide. */
@keyframes hero-title-in {
  from { opacity: 0; transform: translateY(26px) scale(1.02); filter: blur(14px); letter-spacing: 0.2em; }
  60%  { opacity: 1; }
  to   { opacity: 1; transform: none; filter: blur(0); letter-spacing: 0.1em; }
}
@keyframes hero-rise {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: none; }
}

.hero__title {
  opacity: 0;
  animation: hero-title-in 1.25s cubic-bezier(.16,.84,.44,1) .15s forwards;
}
.hero__eyebrow,
.hero__text,
.hero__actions,
.hero__note {
  opacity: 0;
  animation: hero-rise .9s cubic-bezier(.22,.61,.36,1) forwards;
}
.hero__eyebrow { animation-delay: .55s; }
.hero__text    { animation-delay: .72s; }
.hero__actions { animation-delay: .89s; }
.hero__note    { animation-delay: 1.06s; }

@media (prefers-reduced-motion: reduce) {
  .hero__title, .hero__eyebrow, .hero__text, .hero__actions, .hero__note {
    opacity: 1; animation: none;
  }
}

/* --- footer social links -------------------------------------------------- */
.site-footer__social {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px;
  margin-top: 22px;
}
.site-footer__social a {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 18px;
  border: 1px solid rgba(201, 169, 140, 0.35);
  color: var(--on-dark-soft);
  font-size: 10.5px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
  transition: background .18s ease, color .18s ease, border-color .18s ease;
}
.site-footer__social a:hover { background: rgba(201, 169, 140, 0.16); border-color: var(--gold); color: var(--cream-200); }

/* --- touch targets --------------------------------------------------------
   Phones carry most of the traffic here, so every tappable thing gets at least
   a 44px target — the size a thumb actually hits. */
@media (max-width: 900px) {
  .btn { min-height: 48px; padding-top: 15px; padding-bottom: 15px; }
  .btn--sm { min-height: 46px; }
  .btn--outline { min-height: 44px; }
  .cat-tab { min-height: 44px; padding-top: 13px; padding-bottom: 13px; }
  .btn-link,
  .review__link,
  .contact__directions,
  .site-footer__contacts a,
  .contact-item__value a {
    display: inline-flex; align-items: center; min-height: 44px;
  }
  .faq__q { min-height: 56px; }
  .site-footer__social a { min-height: 46px; }
  .wa-float { padding: 14px 20px; font-size: 11px; }
  .nav .btn--outline { min-height: 42px; }
}

/* --- services drawer (phones) ---------------------------------------------
   The category bar is replaced on small screens by a pinned button that opens
   the full list of treatments. */
.services-toggle { display: none; }

@media (max-width: 900px) {
  .cat-tabs { display: none; }
  /* Карточка категории уезжает наверх и становится невысокой шапкой: липкой
     ей быть незачем — на телефоне она и так прямо над своим списком. */
  .cat { grid-template-columns: 1fr; gap: 20px; }
  .cat__card { position: static; min-height: 190px; }
  .cat__over { padding: 22px 20px 20px; }
  .cat__title { font-size: 19px; }
  .cat__note { font-size: 13.5px; }
  /* Цена и «saber más» в одну строку с названием не помещаются: строка
     складывается в два уровня, кнопка «+» остаётся справа. */
  .tr__btn { grid-template-columns: 1fr auto; gap: 4px 14px; padding: 15px 2px; }
  .tr__main { grid-column: 1; }
  .tr__sign { grid-column: 2; grid-row: 1 / span 2; align-self: center; }
  .tr__price { grid-column: 1; font-size: 17px; }
  .tr__more { display: none; }
  .tr__name { font-size: 13.5px; letter-spacing: 0.11em; }
  .tr__short { font-size: 13.5px; margin-top: 3px; }
  .tr.is-open .tr__btn { padding-left: 14px; padding-right: 14px; }
  .tr__panel { grid-template-columns: 1fr; gap: 18px; padding: 0 14px; }
  .tr.is-open .tr__panel { padding-bottom: 22px; }
  .tr__figure { order: 0; }
  .tr__desc { font-size: 14.5px; line-height: 1.7; }
  .tr__img { max-height: 240px; }

  .services-toggle {
    position: fixed; left: 14px; bottom: 14px; z-index: 60;
    display: inline-flex; align-items: center; gap: 9px;
    min-height: 46px;
    padding: 13px 18px;
    background: var(--brown-900);
    border: 1px solid rgba(201, 169, 140, 0.5);
    color: var(--cream-200);
    font: 600 11px Lato, sans-serif; letter-spacing: 0.16em; text-transform: uppercase;
    box-shadow: 0 10px 24px rgba(20, 10, 6, 0.35);
    cursor: pointer;
  }

  .services { position: fixed; inset: 0; z-index: 200; }
  .services[hidden] { display: none; }
  .services::before {
    content: ""; position: absolute; inset: 0;
    background: rgba(14, 7, 4, 0.6);
    -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
    animation: services-fade .25s ease forwards;
  }
  .services__panel {
    position: absolute; inset: 0 22% 0 0;
    display: flex; flex-direction: column;
    padding: 22px 20px 26px;
    background: var(--brown-900);
    border-right: 1px solid rgba(201, 169, 140, 0.35);
    overflow-y: auto; overscroll-behavior: contain;
    animation: services-slide .28s cubic-bezier(.22,.61,.36,1) forwards;
  }
  .services__head {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(201, 169, 140, 0.25);
  }
  .services__title {
    color: var(--gold);
    font-size: 10.5px; font-weight: 600; letter-spacing: 0.24em; text-transform: uppercase;
  }
  .services__close {
    width: 40px; height: 40px; flex: none;
    background: none; border: 1px solid rgba(201, 169, 140, 0.35);
    color: var(--on-dark); font-size: 14px; cursor: pointer;
  }
  .services__list { display: flex; flex-direction: column; gap: 22px; padding: 22px 0; }
  .services__group { display: flex; flex-direction: column; }
  .services__group-title {
    margin-bottom: 8px;
    color: var(--gold);
    font-size: 11px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase;
  }
  .services__link {
    display: flex; align-items: center; min-height: 44px;
    color: var(--on-dark);
    font-size: 15.5px; font-weight: 300;
    border-bottom: 1px solid rgba(201, 169, 140, 0.14);
  }
  .services__link:active { color: var(--gold); }
  .services__cta { margin-top: auto; width: 100%; }
}

@keyframes services-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes services-slide { from { transform: translateX(-100%); } to { transform: none; } }

@media (prefers-reduced-motion: reduce) {
  .services__panel, .services::before { animation: none; }
}

/* ==========================================================================
   Mobile refinements — most of the traffic is phones, so this is the layout
   that matters. Two floating pills covered the hero copy; they become one
   fixed action bar instead.
   ========================================================================== */
@media (max-width: 900px) {
  body { padding-bottom: 76px; }          /* room for the fixed toolbar */

  .toolbar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    display: flex; align-items: center; gap: 10px;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    background: var(--white);
    border-top: 1px solid rgba(138, 90, 60, 0.18);
    box-shadow: 0 -8px 24px rgba(42, 26, 20, 0.12);
  }

  .toolbar .services-toggle,
  .toolbar .wa-float {
    position: static; inset: auto; width: auto; margin: 0;
    flex: 1 1 0; min-width: 0; min-height: 48px;   /* min-width:0 keeps both halves equal */
    padding: 12px 14px;
    display: inline-flex; align-items: center; justify-content: center; gap: 9px;
    font-size: 11px; letter-spacing: 0.14em;
    box-shadow: none;
    animation: none;
  }
  .toolbar .services-toggle {
    background: transparent;
    border: 1px solid rgba(138, 90, 60, 0.35);
    color: var(--text);
  }
  .toolbar .services-toggle:active { background: rgba(138, 90, 60, 0.08); }
  .toolbar .wa-float {
    background: var(--gradient-gold);
    border: 1px solid rgba(138, 90, 60, 0.5);
    color: var(--brown-900);
  }

  /* hero: smaller type, and the copy keeps clear of the inner frame */
  .hero { padding: 64px 30px 56px; }
  .hero__frame { inset: 12px; }
  .hero__inner { padding: 0 6px; }
  .hero__title { font-size: clamp(28px, 8.6vw, 40px); letter-spacing: 0.05em; line-height: 1.08; }
  .hero__eyebrow { margin-top: 14px; gap: 8px; }
  .hero__eyebrow span:not(.hero__dash) { font-size: 9.5px; letter-spacing: 0.18em; }
  .hero__dash { width: 22px; }
  .hero__text { margin-top: 16px; font-size: 14.5px; line-height: 1.6; }
  .hero__actions { margin-top: 22px; gap: 9px; }
  .hero__actions .btn { min-height: 46px; font-size: 10.5px; letter-spacing: 0.12em; padding: 13px 14px; }
  .hero__note { margin-top: 14px; font-size: 9.5px; letter-spacing: 0.12em; line-height: 1.55; }

  /* section headings were sized for a 1440px canvas */
  .section__title { font-size: 23px; letter-spacing: 0.08em; }
  .contact__title { font-size: 26px; }
  .cat__title { font-size: 19px; }
  .section__lead { font-size: 14.5px; line-height: 1.7; }
  .step__text { font-size: 14.5px; }
  .review__text { font-size: 15px; }
  .faq__q { font-size: 15px; }
  .faq__a { font-size: 14.5px; }
  .stat__value { font-size: 42px; }
  .rating__value { font-size: 38px; }
}

@media (max-width: 380px) {
  .services-toggle span,
  .wa-float span { font-size: 10px; letter-spacing: 0.1em; }
}
