:root {
  --bg: #fbf7f3;
  --bg-tint: #f3e9e1;
  --surface: #fff;
  --text: #2b2220;
  --muted: #6f605a;
  --line: #e6d9cf;
  --accent: #b5715a;
  --accent-dark: #8e5240;
  --dark: #2b2220;
  --map-bg: #efe4da;
  --map-road: #fbf7f3;
  --map-block: #e3d3c6;
  --radius: 20px;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Manrope", system-ui, sans-serif;

  /* Кривые движения */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);

  /* Мягкие тени вместо жёстких рамок */
  --shadow-sm: 0 1px 2px rgba(89, 50, 36, .06), 0 2px 8px rgba(89, 50, 36, .05);
  --shadow-lg: 0 2px 6px rgba(89, 50, 36, .05), 0 24px 60px rgba(89, 50, 36, .10);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
  -webkit-tap-highlight-color: transparent;
  -webkit-text-size-adjust: 100%;
}
body { font-family: var(--sans); color: var(--text); background: var(--bg); line-height: 1.6; font-size: 16px; overflow-x: hidden; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.1; text-wrap: balance; }
h2 { font-size: clamp(34px, 5vw, 52px); letter-spacing: -.01em; }
h4 { font-size: 17px; font-weight: 600; }
p { text-wrap: pretty; }

button, a, [role="button"], .tab, .gallery__item { touch-action: manipulation; }
button, .btn, .tab, .socials a, .master__book { user-select: none; -webkit-user-select: none; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }

.eyebrow { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); font-weight: 600; margin-bottom: 14px; }
.eyebrow--light { color: #e2b3a2; }

/* Кнопки: отклик на нажатие на любом устройстве, hover — только с мышью */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 16px 30px; border-radius: 100px; background: var(--accent); color: #fff;
  font: 600 15px var(--sans); border: 1px solid var(--accent); cursor: pointer;
  transition: transform 160ms var(--ease-out), background-color 200ms ease, border-color 200ms ease, color 200ms ease;
}
.btn:active { transform: scale(0.97); }
.btn--ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn--small { padding: 11px 22px; font-size: 14px; }
.btn--full { width: 100%; }
.btn:disabled { opacity: .6; cursor: default; }

/* Шапка */
.header { position: fixed; inset: 0 0 auto; z-index: 50; padding-top: env(safe-area-inset-top); transition: background-color 250ms ease, box-shadow 250ms ease; }
.header.is-scrolled { background: rgba(251, 247, 243, .88); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); box-shadow: 0 1px 0 var(--line); }
.header__inner { display: flex; align-items: center; gap: 32px; height: 76px; }
.logo { font-family: var(--serif); font-size: 28px; font-weight: 600; letter-spacing: .08em; display: flex; flex-direction: column; line-height: 1; }
.logo span { font-family: var(--sans); font-size: 9px; letter-spacing: .3em; text-transform: uppercase; color: var(--muted); margin-top: 4px; }
.logo--light span { color: #b9a59d; }
.nav { display: flex; gap: 28px; margin-left: auto; font-size: 15px; }
.nav a { position: relative; padding: 4px 0; transition: color 200ms ease; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--accent); transform: scaleX(0); transform-origin: right; transition: transform 250ms var(--ease-out); }
.nav a.is-current { color: var(--accent); }
.nav a.is-current::after { transform: scaleX(1); }
.header__phone { font-weight: 600; font-size: 15px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.burger { display: none; width: 44px; height: 44px; border: 0; background: none; cursor: pointer; position: relative; }
.burger span { position: absolute; left: 11px; right: 11px; height: 1.5px; background: var(--text); transition: transform 250ms var(--ease-out); }
.burger span:first-child { top: 18px; }
.burger span:last-child { top: 25px; }
.burger.is-open span:first-child { transform: translateY(3.5px) rotate(45deg); }
.burger.is-open span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

/* Первый экран */
.hero { padding: 150px 0 90px; position: relative; }
.hero__inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 60px; align-items: center; }
.hero h1 { font-size: clamp(44px, 7vw, 84px); margin-bottom: 26px; letter-spacing: -.02em; }
.hero h1 em { color: var(--accent); font-style: italic; font-weight: 500; }
.hero__lead { font-size: 18px; color: var(--muted); max-width: 520px; margin-bottom: 36px; }
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 56px; }
.hero__stats { list-style: none; display: flex; gap: 44px; flex-wrap: wrap; }
.hero__stats strong { display: block; font-family: var(--serif); font-size: 40px; line-height: 1; font-variant-numeric: lining-nums; }
.hero__stats span { font-size: 14px; color: var(--muted); }

/* Первый экран: один согласованный вход при загрузке */
.hero__text > *, .hero__visual > * { animation: heroIn 700ms var(--ease-out) both; }
.hero__text > :nth-child(1) { animation-delay: 0ms; }
.hero__text > :nth-child(2) { animation-delay: 60ms; }
.hero__text > :nth-child(3) { animation-delay: 110ms; }
.hero__text > :nth-child(4) { animation-delay: 150ms; }
.hero__text > :nth-child(5) { animation-delay: 190ms; }
.hero__visual > .arch--main { animation-name: heroImg; animation-duration: 900ms; }
.hero__visual > .arch--small { animation-delay: 250ms; }
.hero__visual > .hero__badge { animation-delay: 350ms; }
@keyframes heroIn { from { opacity: 0; transform: translateY(14px); } }
@keyframes heroImg { from { opacity: 0; transform: scale(.97); } }

.hero__visual { position: relative; height: 560px; }
.arch { position: absolute; border-radius: 999px 999px 24px 24px; overflow: hidden; background: var(--bg-tint); }
.arch img { width: 100%; height: 100%; object-fit: cover; }
.arch--main { inset: 0 40px 0 60px; box-shadow: var(--shadow-lg); }
.arch--small { width: 140px; height: 190px; right: 0; bottom: 60px; border: 6px solid var(--bg); box-shadow: var(--shadow-lg); }
.hero__badge { position: absolute; left: 0; bottom: 70px; background: var(--surface); border-radius: 18px; padding: 18px 22px; box-shadow: var(--shadow-lg); display: flex; flex-direction: column; font-size: 13px; color: var(--muted); }
.hero__badge-num { font-family: var(--serif); font-size: 36px; color: var(--accent); line-height: 1; font-weight: 600; }

/* Преимущества */
.features { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.features__grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.feature { padding: 40px 28px; border-right: 1px solid var(--line); }
.feature:first-child { padding-left: 0; }
.feature:last-child { border-right: 0; }
.feature__icon { font-size: 22px; color: var(--accent); }
.feature h3 { font-size: 24px; margin: 12px 0 8px; }
.feature p { font-size: 14px; color: var(--muted); }

/* Секции */
.section { padding: 110px 0; }
.section--tinted { background: var(--bg-tint); }
.section--dark { background: var(--dark); color: #f5ece6; }
.section__head { margin-bottom: 50px; }
.section__head--row { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; }
.link-arrow { color: var(--accent); font-weight: 600; }

/* Табы и прайс */
.tabs { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.tab { padding: 12px 24px; border-radius: 100px; border: 1px solid var(--line); background: transparent; font: 500 15px var(--sans); color: var(--text); cursor: pointer; transition: background-color 200ms ease, color 200ms ease, border-color 200ms ease, transform 160ms var(--ease-out); }
.tab:active { transform: scale(0.97); }
.tab.is-active { background: var(--text); color: #fff; border-color: var(--text); }
.price__hint { font-size: 13px; color: var(--muted); margin-bottom: 18px; }
.price { display: none; }
/* Табы переключают часто — только короткий fade, без сдвига */
.price.is-active { display: block; animation: fade 180ms ease-out; }
@keyframes fade { from { opacity: 0; } }

.service { border-bottom: 1px solid var(--line); }
.price__row { all: unset; box-sizing: border-box; width: calc(100% + 32px); display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 16px; margin: 0 -16px; border-radius: 14px; cursor: pointer; transition: background-color 200ms ease; }
.price__row:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.price__row:active { background: var(--bg-tint); }
.price__main { display: flex; flex-direction: column; gap: 2px; }
.price__title { font-size: 17px; font-weight: 600; }
.price__sub { font-size: 14px; color: var(--muted); }
.price__side { display: flex; align-items: center; gap: 18px; flex: none; }
.price__value { font-family: var(--serif); font-size: 26px; font-weight: 600; white-space: nowrap; font-variant-numeric: lining-nums; }
/* Плюс, который поворачивается в крестик */
.price__toggle { position: relative; width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line); flex: none; transition: transform 250ms var(--ease-out), background-color 200ms ease, border-color 200ms ease; }
.price__toggle::before, .price__toggle::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.5px; background: var(--text); transform: translate(-50%, -50%); }
.price__toggle::after { transform: translate(-50%, -50%) rotate(90deg); }
.service.is-open .price__toggle { transform: rotate(45deg); background: var(--text); border-color: var(--text); }
.service.is-open .price__toggle::before, .service.is-open .price__toggle::after { background: #fff; }

/* Раскрытие: высота через grid 0fr → 1fr, без замера в JS */
.service__details { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 300ms var(--ease-out); }
.service.is-open .service__details { grid-template-rows: 1fr; }
.service__inner { overflow: hidden; }
.service__body { display: grid; grid-template-columns: 1.6fr 1fr; gap: 40px; padding: 4px 0 28px; opacity: 0; transform: translateY(-4px); transition: opacity 200ms ease, transform 250ms var(--ease-out); }
.service.is-open .service__body { opacity: 1; transform: none; transition-delay: 60ms; }
.service__label { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); font-weight: 600; margin-bottom: 12px; }
.service__steps { list-style: none; counter-reset: step; display: grid; gap: 10px; }
.service__steps li { counter-increment: step; position: relative; padding-left: 38px; font-size: 15px; line-height: 1.5; }
.service__steps li::before { content: counter(step); position: absolute; left: 0; top: -1px; width: 26px; height: 26px; border-radius: 50%; background: var(--bg-tint); color: var(--accent-dark); font-size: 12px; font-weight: 700; display: grid; place-items: center; }
.service__meta { background: var(--surface); border-radius: 18px; padding: 22px; box-shadow: var(--shadow-sm); align-self: start; }
.service__meta dl { display: grid; gap: 2px; margin-bottom: 18px; }
.service__meta dt { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.service__meta dt:not(:first-child) { margin-top: 10px; }
.service__meta dd { font-size: 16px; font-weight: 600; }
.service__book { width: 100%; }

/* Мастера */
.masters { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.master__photo { aspect-ratio: 3 / 4; border-radius: 999px 999px var(--radius) var(--radius); margin-bottom: 20px; overflow: hidden; background: var(--bg-tint); }
.master__photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 500ms var(--ease-out); }
.master h3 { font-size: 26px; }
.master__role { color: var(--muted); font-size: 15px; }
.master__exp { font-size: 13px; color: var(--accent); font-weight: 600; margin-top: 6px; }
.master__book { display: inline-block; margin-top: 12px; font-size: 14px; font-weight: 600; padding: 8px 0; border-bottom: 1px solid var(--line); transition: border-color 200ms ease, color 200ms ease; }

/* Галерея */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 260px; gap: 18px; }
.gallery__item { border-radius: var(--radius); display: flex; align-items: flex-end; padding: 18px; cursor: zoom-in; position: relative; overflow: hidden; background: var(--bg-tint); }
.gallery__item img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 500ms var(--ease-out); }
.gallery__item--tall { grid-row: span 2; }
.gallery__item--wide { grid-column: span 2; }
.gallery__item figcaption { position: relative; z-index: 1; background: rgba(255, 255, 255, .92); padding: 8px 14px; border-radius: 100px; font-size: 13px; font-weight: 600; box-shadow: var(--shadow-sm); }

/* Лайтбокс */
.lightbox { margin: auto; border: 0; padding: 0; background: transparent; max-width: min(92vw, 900px); max-height: 90svh; overflow: visible; opacity: 0; transform: scale(.96); transition: opacity 220ms var(--ease-out), transform 220ms var(--ease-out), overlay 220ms allow-discrete, display 220ms allow-discrete; }
.lightbox[open] { opacity: 1; transform: none; }
@starting-style { .lightbox[open] { opacity: 0; transform: scale(.96); } }
.lightbox::backdrop { background: rgba(30, 22, 20, 0); transition: background-color 220ms ease, overlay 220ms allow-discrete, display 220ms allow-discrete; }
.lightbox[open]::backdrop { background: rgba(30, 22, 20, .82); }
@starting-style { .lightbox[open]::backdrop { background: rgba(30, 22, 20, 0); } }
.lightbox img { max-width: 100%; max-height: 80svh; border-radius: 16px; margin: 0 auto; }
.lightbox p { color: #f5ece6; text-align: center; margin-top: 14px; font-weight: 500; }
.lightbox__close { position: absolute; top: -14px; right: -14px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: #fff; font-size: 24px; line-height: 1; cursor: pointer; box-shadow: var(--shadow-lg); transition: transform 160ms var(--ease-out); }
.lightbox__close:active { transform: scale(.94); }

/* Отзывы */
.slider { overflow: hidden; touch-action: pan-y; }
.slider__track { display: flex; transition: transform 550ms var(--ease-in-out); }
.slider__track.is-dragging { transition: none; }
.review { flex: 0 0 100%; padding-right: 10%; }
.review p { font-family: var(--serif); font-size: clamp(24px, 3.4vw, 38px); line-height: 1.3; font-style: italic; margin-bottom: 26px; }
.review footer { color: #b9a59d; }
.review footer strong { color: #f5ece6; }
.slider__controls { display: flex; align-items: center; gap: 22px; margin-top: 44px; }
.slider__btn { width: 52px; height: 52px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .25); background: none; color: #fff; font-size: 18px; cursor: pointer; transition: background-color 200ms ease, border-color 200ms ease, transform 160ms var(--ease-out); }
.slider__btn:active { transform: scale(.94); }
.slider__dots { display: flex; gap: 8px; }
.slider__dots button { width: 8px; height: 8px; border-radius: 8px; border: 0; background: rgba(255, 255, 255, .3); cursor: pointer; transition: width 300ms var(--ease-out), background-color 300ms ease; position: relative; }
.slider__dots button::before { content: ""; position: absolute; inset: -12px -4px; } /* зона нажатия больше точки */
.slider__dots button.is-active { width: 28px; background: var(--accent); }

/* Запись */
.booking { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: start; }
.booking__info h2 { margin-bottom: 20px; }
.booking__info p { color: var(--muted); max-width: 440px; }
.booking__promo { margin-top: 28px; padding: 20px 24px; background: var(--bg-tint); border-radius: 16px; color: var(--text) !important; }
.booking__promo strong { color: var(--accent); font-size: 20px; }
.form { background: var(--surface); padding: 40px; border-radius: 28px; box-shadow: var(--shadow-lg); display: flex; flex-direction: column; gap: 18px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form__field { display: flex; flex-direction: column; gap: 6px; }
.form__field label { font-size: 13px; font-weight: 600; color: var(--muted); }
.form input, .form select { font: 16px var(--sans); color: var(--text); padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); outline: none; transition: border-color 200ms ease, box-shadow 200ms ease, background-color 200ms ease; width: 100%; min-width: 0; min-height: 52px; }
.form input:focus, .form select:focus { border-color: var(--accent); background: var(--surface); box-shadow: 0 0 0 4px rgba(181, 113, 90, .14); }
.form select.is-prefilled { animation: flash 900ms ease-out; }
@keyframes flash { from { box-shadow: 0 0 0 4px rgba(181, 113, 90, .35); border-color: var(--accent); } }
.form__field.has-error input, .form__field.has-error select { border-color: #c0392b; }
.form__error { color: #c0392b; font-size: 12px; }
.form__error:empty { display: none; }
.form__check { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--muted); cursor: pointer; }
.form__check input { width: 18px; height: 18px; min-height: 0; accent-color: var(--accent); flex: none; margin-top: 2px; padding: 0; }
.form__check.has-error { color: #c0392b; }
.form__success { background: #eef6ee; color: #2e6b3a; padding: 16px 20px; border-radius: 12px; display: flex; flex-direction: column; font-size: 14px; transition: opacity 250ms var(--ease-out), transform 250ms var(--ease-out); }
@starting-style { .form__success { opacity: 0; transform: translateY(6px); } }
.form__success[hidden] { display: none; }

/* Контакты */
.contacts { display: grid; grid-template-columns: 1fr 1.2fr; gap: 60px; align-items: center; }
.contacts h2 { margin-bottom: 32px; }
.contacts dl { display: grid; gap: 4px; }
.contacts dt { font-size: 13px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-top: 16px; }
.contacts dd { font-size: 18px; }
.socials { display: flex; gap: 10px; margin-top: 32px; flex-wrap: wrap; }
.socials a { padding: 10px 20px; border: 1px solid var(--text); border-radius: 100px; font-size: 14px; font-weight: 500; transition: background-color 200ms ease, color 200ms ease, transform 160ms var(--ease-out); }
.socials a:active { transform: scale(.97); }
.map { border-radius: 28px; overflow: hidden; aspect-ratio: 4 / 3; box-shadow: var(--shadow-sm); }
.map svg { width: 100%; height: 100%; display: block; }

.footer { background: var(--dark); color: #b9a59d; padding: 40px 0; font-size: 14px; }
.footer__inner { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.footer .logo { color: #f5ece6; }
.footer__credits { flex-basis: 100%; font-size: 12px; opacity: .7; }

/* Мобильная панель записи */
.mobile-cta { display: none; }

/* Появление при прокрутке: один вход на блок, короткий и быстрый */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 600ms var(--ease-out), transform 600ms var(--ease-out); transition-delay: var(--d, 0ms); }
.reveal.is-visible { opacity: 1; transform: none; }

/* Hover — только для мыши: на тачскрине он «залипает» после тапа */
@media (hover: hover) and (pointer: fine) {
  .btn:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
  .btn--ghost:hover { background: var(--text); color: #fff; border-color: var(--text); }
  .nav a:hover::after { transform: scaleX(1); transform-origin: left; }
  .tab:hover { border-color: var(--accent); }
  .tab.is-active:hover { border-color: var(--text); }
  .price__row:hover { background: var(--surface); }
  .price__row:hover .price__toggle { border-color: var(--accent); }
  .master:hover .master__photo img { transform: scale(1.04); }
  .master__book:hover { color: var(--accent); border-color: var(--accent); }
  .gallery__item:hover img { transform: scale(1.04); }
  .gallery__item figcaption { opacity: 0; transform: translateY(6px); transition: opacity 200ms ease, transform 250ms var(--ease-out); }
  .gallery__item:hover figcaption { opacity: 1; transform: none; }
  .slider__btn:hover { background: var(--accent); border-color: var(--accent); }
  .socials a:hover { background: var(--text); color: #fff; }
  .link-arrow:hover { text-decoration: underline; text-underline-offset: 4px; }
}

/* Адаптив */
@media (max-width: 1080px) {
  .header__phone { display: none; }
  .masters { grid-template-columns: repeat(2, 1fr); }
  .features__grid { grid-template-columns: repeat(2, 1fr); }
  .feature:nth-child(2) { border-right: 0; }
  .feature:nth-child(3) { padding-left: 0; }
  .feature:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}

@media (max-width: 860px) {
  .nav { position: fixed; inset: calc(76px + env(safe-area-inset-top)) 0 auto; flex-direction: column; gap: 0; background: var(--bg); padding: 10px 24px 24px; box-shadow: 0 20px 40px rgba(0, 0, 0, .08); transform: translateY(-8px); opacity: 0; visibility: hidden; transition: transform 250ms var(--ease-out), opacity 200ms ease, visibility 0s 250ms; z-index: -1; }
  .nav.is-open { transform: none; opacity: 1; visibility: visible; transition: transform 250ms var(--ease-out), opacity 200ms ease, visibility 0s; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 18px; }
  .nav a::after { display: none; }
  .header__cta { margin-left: auto; }
  .burger { display: block; }
  .header { background: rgba(251, 247, 243, .92); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
  .hero { padding: 120px 0 70px; }
  .hero__inner, .booking, .contacts { grid-template-columns: 1fr; gap: 50px; }
  .hero__visual { height: 440px; }
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 200px; }
  .section { padding: 80px 0; }
}

@media (max-width: 560px) {
  .container { padding: 0 16px; }
  .header__cta { display: none; }
  .burger { margin-left: auto; margin-right: -10px; }
  .hero { padding-top: 108px; }
  .hero__actions .btn { flex: 1 1 100%; }
  .hero__stats { gap: 26px; }
  .hero__stats strong { font-size: 32px; }
  .hero__visual { height: 380px; }
  .arch--main { inset: 0 24px 0 32px; }
  .arch--small { width: 96px; height: 134px; bottom: 36px; border-width: 4px; }
  .hero__badge { bottom: 28px; padding: 14px 18px; }
  .features__grid { grid-template-columns: 1fr; }
  .feature, .feature:nth-child(3) { padding: 26px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .feature:last-child { border-bottom: 0; }
  .tabs { flex-wrap: nowrap; overflow-x: auto; margin: 0 -16px 14px; padding: 0 16px 4px; scrollbar-width: none; overscroll-behavior-x: contain; }
  .tabs::-webkit-scrollbar { display: none; }
  .tab { flex: none; }
  .masters { gap: 24px 14px; }
  .master h3 { font-size: 21px; }
  .master__role { font-size: 13px; }
  .gallery { grid-template-columns: 1fr 1fr; grid-auto-rows: 160px; gap: 10px; }
  .gallery__item { padding: 10px; border-radius: 16px; }
  .gallery__item figcaption { font-size: 11px; padding: 6px 10px; }
  .price__row { align-items: flex-start; gap: 14px; }
  .price__side { flex-direction: column; align-items: flex-end; gap: 8px; }
  .price__value { font-size: 22px; }
  .service__body { grid-template-columns: 1fr; gap: 20px; }
  .form { padding: 26px 20px; }
  .form__row { grid-template-columns: 1fr; }
  .slider__controls { margin-top: 32px; }
  .lightbox__close { top: 8px; right: 8px; }

  /* Закреплённая панель записи — главное действие всегда под пальцем */
  .mobile-cta { display: flex; gap: 10px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: rgba(251, 247, 243, .92); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 -1px 0 var(--line); transition: transform 300ms var(--ease-drawer); }
  .mobile-cta.is-hidden { transform: translateY(100%); }
  .mobile-cta__btn { flex: 1; padding: 14px 20px; }
  .mobile-cta__phone { width: 50px; flex: none; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 100px; color: var(--text); background: var(--surface); transition: transform 160ms var(--ease-out); }
  .mobile-cta__phone:active { transform: scale(.94); }
  .footer { padding-bottom: calc(110px + env(safe-area-inset-bottom)); }
}

/* Меньше движения: убираем сдвиги, оставляем мягкие fade */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { transform: none; transition: opacity 300ms ease; }
  .hero__text > *, .hero__visual > * { animation-name: fade; animation-duration: 300ms; }
  .slider__track { transition-duration: 1ms; }
  .service__details, .service__body { transition: none; transform: none; }
  .master__photo img, .gallery__item img { transition: none; }
  .lightbox { transform: none; }
}
