/* ══════════════════════════════════════════════════════════════
   Ногтевая студия «Миндаль» — Самара
   Фуксия #EA235A взята из их логотипа с цветком миндаля;
   тёмная сливовая база, миндально-кремовый текст, лепестковые формы
   ══════════════════════════════════════════════════════════════ */

@font-face {
  font-family: 'Tenor';
  src: url('assets/fonts/tenor-cyrillic.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Tenor';
  src: url('assets/fonts/tenor-latin.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+20AC, U+2122, U+2212;
}
@font-face {
  font-family: 'Manrope';
  src: url('assets/fonts/manrope-cyrillic.woff2') format('woff2');
  font-weight: 300 700; font-style: normal; font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Manrope';
  src: url('assets/fonts/manrope-latin.woff2') format('woff2');
  font-weight: 300 700; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+20AC, U+2122, U+2212;
}

:root {
  --safe-t: env(safe-area-inset-top, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-l: env(safe-area-inset-left, 0px);
  --safe-r: env(safe-area-inset-right, 0px);
  --bg: #F6EAE4;         /* тёплая пудра, а не белый лист */
  --bg-tint: #EFDCD5;    /* секции через одну */
  --surface: #FFFFFF;    /* карточки — они и должны быть светлее фона */
  --surface-2: #FBF1EE;  /* наведение */

  --ink: #2A121D;        /* основной текст — тёмная слива */
  --ink-2: #6B4A57;      /* вторичный */
  --ink-3: #9A7C88;      /* подписи */

  --fuchsia: #EA235A;    /* фирменный, из логотипа */
  --rose: #F6D9E2;       /* пудра: полосы, шкалы, заливки */
  --rose-ink: #C0245A;   /* розовый, который ещё читается как текст */
  --fuchsia-deep: #C31043;

  --line: rgba(42, 18, 29, 0.10);
  --line-strong: rgba(42, 18, 29, 0.17);

  --shadow-sm: 0 1px 2px rgba(42, 18, 29, 0.05), 0 4px 12px rgba(42, 18, 29, 0.05);
  --shadow-md: 0 2px 4px rgba(42, 18, 29, 0.05), 0 12px 28px rgba(42, 18, 29, 0.09);
  --shadow-lg: 0 4px 8px rgba(42, 18, 29, 0.05), 0 24px 48px rgba(42, 18, 29, 0.12);

  --bar-h: 72px;        /* нижняя панель на мобиле */
  --shell: 1220px;
  --pad: clamp(20px, 5vw, 44px);
  --sec-pad: clamp(64px, 8vw, 118px);
  --header-h: 76px;

  --r-lg: 22px;
  --r-md: 14px;
  --ease: cubic-bezier(0.2, 0, 0, 1);
  --spring: cubic-bezier(0.16, 1, 0.3, 1);

  /* Миндаль: форма ногтя — овал с приподнятой макушкой */
  --almond: 46% 46% 46% 46% / 62% 62% 38% 38%;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

[id] { scroll-margin-top: var(--header-h); }
.section[id] { scroll-margin-top: calc(var(--header-h) - var(--sec-pad) * 0.5); }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }

h1, h2, h3 {
  margin: 0;
  font-family: 'Tenor', Georgia, serif;
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: 0.005em;
  text-wrap: balance;
}
p { margin: 0; text-wrap: pretty; }

.num { font-variant-numeric: tabular-nums; }

a { color: inherit; }

.shell { width: 100%; max-width: var(--shell); margin: 0 auto; padding-inline: calc(var(--pad) + var(--safe-l)) calc(var(--pad) + var(--safe-r)); }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  padding: 12px 18px; background: var(--fuchsia); color: #fff;
}
.skip-link:focus { left: 0; }

:focus-visible { outline: 2px solid var(--rose-ink); outline-offset: 3px; border-radius: 4px; }

/* ─────────── кнопки ─────────── */

.btn {
  --btn-h: 54px;
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: var(--btn-h); padding: 0 30px;
  border: 0; border-radius: 999px;
  font-family: 'Manrope', sans-serif; font-size: 16px; font-weight: 600;
  letter-spacing: 0.01em; text-decoration: none; white-space: nowrap; cursor: pointer;
  transition-property: color, box-shadow, scale, background-color;
  transition-duration: 200ms; transition-timing-function: var(--ease);
}
.btn:active { scale: 0.96; }

.btn-primary { background: var(--fuchsia); color: #fff; box-shadow: 0 8px 26px rgba(234, 35, 90, 0.30); }
/* заливка наплывает снизу — как лак по ногтю */
.btn-primary::after {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: var(--fuchsia-deep);
  translate: 0 100%;
  transition: translate 320ms var(--ease);
}
.btn-primary:hover::after { translate: 0 0; }
.btn-primary:hover { box-shadow: 0 12px 34px rgba(234, 35, 90, 0.42); }

.btn-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-strong); }
.btn-ghost:hover { background: rgba(42, 18, 29, 0.05); box-shadow: inset 0 0 0 1px rgba(42, 18, 29, 0.28); }

.btn-sm { --btn-h: 44px; padding: 0 20px; font-size: 15px; }

/* ─────────── шапка ─────────── */

.site-header {
  position: sticky; top: 0; z-index: 60;
  padding-top: var(--safe-t);
  background: var(--bg);
  box-shadow: inset 0 -1px 0 var(--line);
  transition: translate 380ms var(--ease), box-shadow 240ms var(--ease);
}
.site-header.is-hidden { translate: 0 -100%; }
body.is-menu-open .site-header { box-shadow: inset 0 -1px 0 var(--line-strong); }
/* в меню своя кнопка записи — в шапке она только теснит крестик */
body.is-menu-open .header-actions .btn-primary { opacity: 0; pointer-events: none; transition: opacity 160ms var(--ease); }
.site-header.is-stuck { box-shadow: inset 0 -1px 0 var(--line-strong), 0 10px 30px rgba(42, 18, 29, 0.08); }

.header-inner { display: flex; align-items: center; gap: 26px; height: var(--header-h); }

.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; flex-shrink: 0; }
/* знак контурный: мельче 36px линии съедаются, поэтому крупнее и с оптическим
   сдвигом — бутон визуально тяжелее правой части, иначе строка кажется съехавшей */
.brand-mark { width: 38px; height: 38px; flex-shrink: 0; object-fit: contain; translate: 0 -1px; }
.brand { gap: 9px; }
@media (max-width: 700px) { .brand-mark { width: 34px; height: 34px; } }
.brand-name { font-family: 'Tenor', serif; font-size: 21px; letter-spacing: 0.22em; }

.nav { display: flex; gap: 26px; margin-inline-start: auto; }
.nav a {
  position: relative; padding: 10px 0;
  font-size: 15px; color: var(--ink-2); text-decoration: none;
  transition: color 160ms var(--ease);
}
.nav a::after {
  content: ''; position: absolute; left: 0; right: 100%; bottom: 4px; height: 1px;
  background: var(--fuchsia); transition: right 240ms var(--ease);
}
.nav a:hover { color: var(--ink); }
.nav a:hover::after { right: 0; }
.nav a.is-current { color: var(--ink); }
.nav a.is-current::after { right: 0; background: var(--rose); }

.header-actions { display: flex; align-items: center; gap: 14px; margin-inline-start: auto; }
.nav + .header-actions { margin-inline-start: 0; }

.phone { font-size: 16px; font-weight: 600; text-decoration: none; font-variant-numeric: tabular-nums; }
.phone:hover { color: var(--rose-ink); }

.burger {
  display: none; width: 44px; height: 44px; padding: 0;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
  background: transparent; border: 0; cursor: pointer;
}
.burger span { display: block; width: 22px; height: 1.5px; background: var(--ink); transition: transform 220ms var(--ease), opacity 160ms var(--ease); }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Меню разворачивается на весь экран и проявляется по пунктам — резкий показ
   через [hidden] выглядел как перерисовка страницы */
.mobile-nav {
  position: fixed; inset: calc(var(--header-h) + var(--safe-t)) 0 0; z-index: 58;
  display: grid; align-content: start;
  padding: 22px calc(var(--pad) + var(--safe-l)) calc(32px + var(--safe-b)) calc(var(--pad) + var(--safe-r));
  background: var(--bg);
  overflow-y: auto;
  opacity: 0; visibility: hidden; translate: 0 -10px;
  transition: opacity 240ms var(--ease), translate 320ms var(--ease), visibility 0s 320ms;
}
body.is-menu-open .mobile-nav {
  opacity: 1; visibility: visible; translate: 0 0;
  transition: opacity 240ms var(--ease), translate 380ms var(--spring), visibility 0s;
}

.mobile-links { display: grid; max-width: 520px; }
.mobile-foot { max-width: 520px; }
.mobile-nav a {
  font-family: 'Tenor', serif; font-size: 27px; padding: 15px 0;
  text-decoration: none; box-shadow: inset 0 -1px 0 var(--line);
  opacity: 0; translate: 0 14px;
}
body.is-menu-open .mobile-nav a {
  opacity: 1; translate: 0 0;
  transition: opacity 320ms var(--ease), translate 420ms var(--spring);
  transition-delay: calc(var(--i, 1) * 38ms + 40ms);
}

.mobile-foot { display: grid; gap: 10px; margin-top: 28px; opacity: 0; translate: 0 14px; }
body.is-menu-open .mobile-foot {
  opacity: 1; translate: 0 0;
  transition: opacity 320ms var(--ease), translate 420ms var(--spring);
  transition-delay: calc(var(--i, 8) * 38ms + 40ms);
}
.mobile-foot .mobile-phone { font-family: 'Tenor', serif; font-size: 26px; text-decoration: none; box-shadow: none; padding: 0; justify-self: start; }
.mobile-foot p { font-size: 14.5px; color: var(--ink-3); }
.mobile-foot .btn { margin-top: 8px; width: 100%; }
body.is-menu-open .mobile-bar { opacity: 0; pointer-events: none; transition: opacity 200ms var(--ease); }
@media (prefers-reduced-motion: reduce) {
  .mobile-nav, .mobile-nav a, .mobile-foot { transition: none; translate: none; }
}

/* ─────────── лепестки в фоне ─────────── */

.petals {
  position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden;
  translate: var(--mx, 0px) var(--my, 0px);
  transition: translate 900ms cubic-bezier(0.16, 1, 0.3, 1);
}
.petals span {
  position: absolute; top: -8vh;
  width: 16px; height: 22px;
  background: #F0B3C8;
  border-radius: var(--almond);
  opacity: 0.5;
  animation: petal-fall linear infinite;
}
@keyframes petal-fall {
  0%   { transform: translate3d(0, -10vh, 0) rotate(0deg); }
  100% { transform: translate3d(6vw, 110vh, 0) rotate(320deg); }
}
@media (prefers-reduced-motion: reduce) { .petals { display: none; } }

main, .site-footer { position: relative; z-index: 1; }

/* ─────────── hero ─────────── */

.hero { padding: clamp(34px, 5vw, 74px) 0 clamp(30px, 4vw, 56px); position: relative; }
.hero-inner { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.78fr); gap: clamp(30px, 5vw, 70px); align-items: center; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12.5px; font-weight: 600; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--rose-ink);
  margin-bottom: 22px;
}
.eyebrow::before { content: ''; width: 26px; height: 1px; background: var(--fuchsia); }

.hero h1 { font-size: clamp(34px, 4.6vw, 58px); margin-bottom: 24px; }
.hero h1 em { font-style: normal; color: var(--rose-ink); }
.hero h1 .line { display: block; overflow: hidden; }
.hero h1 .line > span { display: block; translate: 0 105%; transition: translate 950ms var(--spring); }
.hero h1.is-in .line > span { translate: 0 0; }
.hero h1 .line:nth-child(2) > span { transition-delay: 120ms; }

.hero-lead { font-size: clamp(16.5px, 1.5vw, 19px); color: var(--ink-2); max-width: 52ch; margin-bottom: 32px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 40px; }

.hero-stats { display: flex; flex-wrap: wrap; gap: 36px; margin: 0; }
.hero-stats dt { font-size: 12.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 7px; }
.hero-stats dd { margin: 0; display: flex; align-items: baseline; gap: 9px; }
.hero-stats dd b { font-family: 'Tenor', serif; font-size: 34px; line-height: 1; }
.hero-stats dd span { font-size: 13.5px; color: var(--ink-3); }

/* Фото в форме ногтя: контур лежит в SVG-clipPath, чтобы остриё было острым,
   а не яйцом, как выходило на border-radius. Подложка на 1px больше — она и есть кант. */
.almond-frame {
  position: relative; isolation: isolate;
  padding: 1px; background: rgba(42, 18, 29, 0.10);
  clip-path: url(#almondClip);
  filter: drop-shadow(0 22px 34px rgba(42, 18, 29, 0.18));
}
.almond-frame img {
  width: 100%; aspect-ratio: 2 / 3; object-fit: cover; object-position: center 45%;
  clip-path: url(#almondClip);
}
/* блик по левой скуле — как свет лампы на глянце */
.almond-frame::after {
  content: ''; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: linear-gradient(104deg, rgba(255, 255, 255, 0.22) 0%, rgba(255, 255, 255, 0.04) 18%, transparent 42%);
  clip-path: url(#almondClip);
}
/* Интерьеру форма ногтя не идёт — кадр обрезается до неузнаваемости, поэтому обычная рамка */
.photo-frame { position: relative; border-radius: var(--r-lg); overflow: hidden; }
.photo-frame img {
  width: 100%; aspect-ratio: 4 / 5; object-fit: cover;
  outline: 1px solid rgba(42, 18, 29, 0.09); outline-offset: -1px;
}

.almond-glow {
  position: absolute; inset: -12% 0; z-index: -1; pointer-events: none;
  background: radial-gradient(58% 46% at 50% 42%, rgba(234, 35, 90, 0.20), transparent 70%);
  filter: blur(38px);
}
.hero-media, .split-media { position: relative; }
.hero-media figcaption { margin-top: 22px; text-align: center; font-size: 13px; color: var(--ink-3); }

/* ─────────── бегущая лента работ ─────────── */

.ticker-strip {
  overflow: hidden; padding: 14px 0;
  background: var(--fuchsia);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.16), inset 0 -1px 0 rgba(0,0,0,.2);
}
.ticker-track { display: flex; width: max-content; animation: ticker 38s linear infinite; }
.ticker-group { display: flex; align-items: center; gap: 34px; padding-inline-end: 34px; }
.ticker-track span { font-size: 13.5px; letter-spacing: 0.16em; text-transform: uppercase; color: #fff; white-space: nowrap; }
.ticker-track i { width: 6px; height: 8px; background: #fff; clip-path: url(#almondClip); flex-shrink: 0; align-self: center; opacity: .8; }
.ticker-strip:hover .ticker-track { animation-play-state: paused; }
@keyframes ticker { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ticker-track { animation: none; } }

/* ─────────── секции ─────────── */

.section { padding: var(--sec-pad) 0; }
.section-tint { background: var(--bg-tint); }

.section-head { max-width: 740px; margin-bottom: clamp(34px, 5vw, 58px); }
.section-head h2 { position: relative; display: inline-block; font-size: clamp(28px, 3.6vw, 46px); padding-bottom: 14px; }
.section-head h2::after {
  content: ''; position: absolute; left: 0; bottom: 0; height: 2px; width: 100%;
  background: var(--fuchsia); border-radius: 1px;
  transform-origin: left center; scale: 0 1;
  transition: scale 720ms var(--spring) 120ms;
}
.section-head.is-in h2::after, .reveal.is-in .section-head h2::after { scale: 1 1; }
.section-lead { margin-top: 20px; color: var(--ink-2); font-size: clamp(16px, 1.4vw, 18px); }

.note { margin-top: 26px; font-size: 14.5px; color: var(--ink-3); }
.note a { color: var(--rose-ink); text-underline-offset: 3px; }

/* ─────────── услуги ─────────── */

/* Колонки заданы вручную под число карточек: auto-fit оставлял в ряду одиночку. */
.services { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 1000px) { .services { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .services { grid-template-columns: 1fr; } }
.service {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column;
  padding: 28px 26px 24px;
  background: var(--surface);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  transition: translate 260ms var(--ease), box-shadow 260ms var(--ease);
}
.service:hover { translate: 0 -4px; box-shadow: var(--shadow-lg); }
/* лепесток проступает в углу */
.service::before {
  content: ''; position: absolute; right: -34px; top: -34px;
  width: 110px; height: 140px;
  background: var(--fuchsia);
  clip-path: url(#almondClip);
  opacity: 0; rotate: 18deg;
  transition: opacity 420ms var(--ease), rotate 500ms var(--ease);
}
.service:hover::before { opacity: 0.12; rotate: 0deg; }
.service h3 { font-size: 23px; margin-bottom: 12px; }
.service p { color: var(--ink-2); font-size: 15.5px; }
.service-price {
  margin-top: auto; padding-top: 20px;
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  font-size: 14px; color: var(--ink-3);
  box-shadow: inset 0 1px 0 var(--line);
}
.service-price b { font-family: 'Tenor', serif; font-size: 22px; color: var(--ink); }

/* ─────────── лента работ ─────────── */

.works-rail {
  display: flex; gap: 16px;
  overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory;
  padding-bottom: 14px;
  scrollbar-width: thin; scrollbar-color: var(--fuchsia) transparent;
}
.works-rail::-webkit-scrollbar { height: 6px; }
.works-rail::-webkit-scrollbar-thumb { background: var(--fuchsia); border-radius: 3px; }
.works-rail figure {
  flex: 0 0 clamp(210px, 24vw, 290px);
  opacity: 0; translate: 0 22px;
  transition: opacity 620ms var(--ease), translate 620ms var(--ease);
  transition-delay: calc(var(--i, 0) * 70ms);
  margin: 0; scroll-snap-align: start;
  position: relative; overflow: hidden;
  border-radius: var(--r-lg);
}
.works-rail img {
  width: 100%; aspect-ratio: 4 / 5; object-fit: cover;
  transition: scale 800ms var(--ease);
}
.works-rail.is-in figure { opacity: 1; translate: 0 0; }
.works-rail figure:hover img { scale: 1.07; }
.works-rail figure::after {
  content: ''; position: absolute; inset: 0;
  box-shadow: var(--shadow-sm);
  border-radius: var(--r-lg);
  pointer-events: none;
}
.rail-hint { margin-top: 14px; font-size: 13.5px; color: var(--ink-3); }

/* ─────────── как проходит визит ─────────── */

.section-visit { background: linear-gradient(180deg, var(--bg), var(--bg-tint) 52%, var(--bg)); }
.steps {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 30px;
}
.steps li { position: relative; padding-top: 28px; box-shadow: inset 0 1px 0 var(--line-strong); }
.steps li::before {
  content: ''; position: absolute; top: -6px; left: 0;
  width: 9px; height: 12px; background: var(--fuchsia);
  clip-path: url(#almondClip);
}
.step-num { font-size: 12.5px; font-weight: 600; letter-spacing: 0.2em; color: var(--rose-ink); }
.steps h3 { font-size: 23px; margin: 12px 0 12px; }
.steps p { color: var(--ink-2); font-size: 15.5px; }

@media (max-width: 1060px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 24px; } }
@media (max-width: 620px) { .steps { grid-template-columns: 1fr; } }

/* ─────────── мастера ─────────── */

.masters { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 1100px) { .masters { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .masters { grid-template-columns: 1fr; } }
.master {
  display: flex; flex-direction: column;
  padding: 26px 24px;
  background: var(--surface); border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  transition: translate 260ms var(--ease), box-shadow 260ms var(--ease);
}
.master:hover { translate: 0 -3px; box-shadow: var(--shadow-lg); }
.master h3 { font-size: 24px; }
.master-role { margin: 8px 0 16px; min-height: 2.6em; font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--rose-ink); }
.master blockquote { margin: 0; padding-left: 18px; border-left: 1px solid var(--fuchsia); color: var(--ink-2); font-size: 15.5px; }
.master-src { margin-top: auto; padding-top: 16px; font-size: 12.5px; color: var(--ink-3); }

/* ─────────── прайс ─────────── */

.prices { display: grid; gap: 10px; }
.price-group {
  background: var(--surface); border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm); overflow: hidden;
}
.price-group summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 22px 26px; min-height: 44px; cursor: pointer; list-style: none;
  font-family: 'Tenor', serif; font-size: clamp(18px, 2vw, 22px);
  transition: background-color 200ms var(--ease);
}
.price-group summary::-webkit-details-marker { display: none; }
.price-group summary:hover { background: rgba(234, 35, 90, 0.08); }
.price-count { display: inline-flex; align-items: center; gap: 12px; font-family: 'Manrope', sans-serif; font-size: 13.5px; color: var(--ink-3); white-space: nowrap; }
.price-count::after {
  content: ''; width: 9px; height: 9px;
  border-right: 1.5px solid var(--fuchsia); border-bottom: 1.5px solid var(--fuchsia);
  rotate: 45deg; translate: 0 -2px;
  transition: rotate 240ms var(--ease), translate 240ms var(--ease);
}
.price-group[open] .price-count::after { rotate: 225deg; translate: 0 2px; }
.price-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 320ms var(--ease); }
.price-group[open] .price-body { grid-template-rows: 1fr; }
.price-body > div { overflow: hidden; }

.price-table { width: 100%; border-collapse: collapse; }
.price-table td { padding: 12px 26px; font-size: 15.5px; color: var(--ink-2); box-shadow: inset 0 1px 0 var(--line); }
.price-table td:last-child { text-align: right; white-space: nowrap; color: var(--ink); font-weight: 600; }
.price-table tr:hover td { background: rgba(234, 35, 90, 0.07); }

/* ─────────── отзывы ─────────── */

.reviews-slider { position: relative; }
.reviews-track {
  display: flex; align-items: stretch; gap: 16px;
  overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory;
  scrollbar-width: none;
  /* поля под тень карточек: контейнер с overflow срезал бы её */
  padding: 10px 0 18px;
  cursor: grab;
}
.reviews-track::-webkit-scrollbar { display: none; }
.reviews-track.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.reviews-track:focus-visible { outline-offset: 6px; }

.review {
  flex: 0 0 calc((100% - 32px) / 3); scroll-snap-align: start;
  display: flex; flex-direction: column;
  margin: 0; padding: 28px 26px;
  background: var(--surface); border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 240ms var(--ease);
}
.review:hover { box-shadow: var(--shadow-md); }
.review p { flex: 1; }

.slider-foot { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 24px; }
.slider-dots { display: flex; gap: 7px; }
.slider-dots button {
  position: relative; width: 26px; height: 4px; padding: 0;
  border: 0; border-radius: 2px; background: rgba(42, 18, 29, 0.14);
  cursor: pointer; transition: background-color 200ms var(--ease), width 260ms var(--ease);
}
/* сама точка тонкая, но нажимается по всей высоте строки */
.slider-dots button::after { content: ''; position: absolute; inset: -18px -4px; }
.slider-dots button:hover { background: rgba(42, 18, 29, 0.28); }
.slider-dots button[aria-current="true"] { width: 40px; background: var(--fuchsia); }
.slider-count { font-size: 13.5px; color: var(--ink-3); }
.slider-count b { color: var(--ink); }
.review .stars { display: flex; gap: 3px; margin-bottom: 14px; }
.review .stars i { width: 9px; height: 12px; background: var(--fuchsia); clip-path: url(#almondClip); }
.review p { color: var(--ink-2); font-size: 15.5px; }
.review footer { margin-top: 16px; padding-top: 14px; box-shadow: inset 0 1px 0 var(--line); display: grid; gap: 2px; }
.review footer b { font-weight: 600; font-size: 15px; }
.review footer span { font-size: 12.5px; color: var(--ink-3); }

/* ─────────── сплит ─────────── */

.split { display: grid; grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr); gap: clamp(28px, 5vw, 66px); align-items: center; }
.split-reverse .split-media { order: 2; }
.split-media { margin: 0; width: 100%; max-width: 380px; justify-self: center; }
.split-media:has(.photo-frame) { max-width: 520px; }
.split-copy h2 { font-size: clamp(26px, 3.2vw, 40px); margin-bottom: 20px; }
.split-copy > p { color: var(--ink-2); margin-bottom: 18px; }

.ticks { list-style: none; margin: 0 0 24px; padding: 0; display: grid; gap: 11px; }
.ticks li { position: relative; padding-left: 26px; color: var(--ink-2); font-size: 16px; }
.ticks li::before {
  content: ''; position: absolute; left: 0; top: 7px;
  width: 9px; height: 12px; background: var(--fuchsia); clip-path: url(#almondClip);
}

.callout { padding: 18px 20px; background: rgba(234, 35, 90, 0.10); border-radius: var(--r-md); font-size: 15.5px; }

/* Цитата гостя — не то же самое, что информационная плашка, поэтому и выглядит иначе */
.pull-quote { margin: 0; padding-left: 26px; position: relative; }
.pull-quote::before {
  content: '\201C'; position: absolute; left: -4px; top: -14px;
  font-family: 'Tenor', serif; font-size: 54px; line-height: 1; color: var(--fuchsia);
}
.pull-quote p { font-family: 'Tenor', serif; font-size: clamp(19px, 2vw, 23px); line-height: 1.35; }
.pull-quote footer { margin-top: 12px; font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); }

/* ─────────── контакты ─────────── */

.contacts-grid { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: clamp(24px, 4vw, 48px); align-items: stretch; }

.contact-lead { color: var(--ink-2); margin-bottom: 22px; }
.contact-main {
  display: grid; gap: 5px; margin-bottom: 16px; padding: 20px 24px;
  background: var(--surface); border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  transition: translate 220ms var(--ease), box-shadow 220ms var(--ease);
}
.contact-main:hover { translate: 0 -2px; box-shadow: inset 0 0 0 1px var(--fuchsia), var(--shadow-md); }
.contact-main-label { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); }
.contact-main-value { font-family: 'Tenor', serif; font-size: clamp(25px, 2.7vw, 33px); }

.messengers { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 26px; }

.facts { display: grid; gap: 1px; margin: 0 0 26px; background: var(--line); border-radius: var(--r-md); overflow: hidden; }
.facts > div { background: var(--surface); padding: 15px 20px; }
.facts dt { font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 4px; }
.facts dd { margin: 0; font-size: 15.5px; color: var(--ink-2); }
.facts dd b { color: var(--ink); }

.map { border-radius: var(--r-lg); overflow: hidden; box-shadow: inset 0 0 0 1px var(--line); min-height: 480px; }
.map iframe { display: block; border: 0; width: 100%; height: 100%; min-height: 480px; filter: grayscale(0.15) contrast(1.02); }

/* ─────────── подвал ─────────── */

.site-footer { background: var(--bg-tint); padding: clamp(44px, 6vw, 74px) 0 26px; box-shadow: inset 0 1px 0 var(--line); }
.footer-inner { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 32px; }
.footer-brand .brand { margin-bottom: 16px; }
.footer-brand p { color: var(--ink-3); font-size: 15px; max-width: 34ch; }
.footer-col { display: grid; gap: 10px; align-content: start; }
.footer-col h4 { margin: 0 0 4px; font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); }
.footer-col a, .footer-col span { font-size: 15px; color: var(--ink-2); text-decoration: none; }
.footer-col a:hover { color: var(--rose-ink); }
.footer-bottom {
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between;
  margin-top: 44px; padding-top: 22px; box-shadow: inset 0 1px 0 var(--line);
  font-size: 13px; color: var(--ink-3);
}

/* ─────────── мобильная панель ─────────── */

.mobile-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 55;
  display: none; gap: 10px;
  padding: 10px calc(var(--pad) + var(--safe-l)) calc(10px + var(--safe-b)) calc(var(--pad) + var(--safe-r));
  background: var(--bg);
  box-shadow: 0 -8px 24px rgba(42, 18, 29, 0.10), 0 -1px 0 var(--line);
}
.mobile-bar .btn { flex: 1; }

/* ─────────── индикатор прочитанного ─────────── */

.progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 80; pointer-events: none; }
.progress i { display: block; height: 100%; width: var(--p, 0%); background: var(--fuchsia); transition: width 90ms linear; }

/* ─────────── появление ─────────── */

.reveal { opacity: 0; translate: 0 18px; }
.reveal.is-in {
  opacity: 1; translate: 0 0;
  transition: opacity 680ms var(--ease), translate 680ms var(--ease);
  transition-delay: calc((var(--i, 1) - 1) * 85ms);
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; translate: none; }
  .reveal.is-in { transition: none; }
}

/* ─────────── адаптив ─────────── */

@media (max-width: 1060px) {
  .nav { display: none; }
  .burger { display: flex; }
  .phone { display: none; }
  .header-inner { gap: 14px; }
  .nav + .header-actions { margin-inline-start: auto; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-media { max-width: 400px; margin-inline: auto; }
  .split, .contacts-grid { grid-template-columns: 1fr; }
  .split-reverse .split-media { order: 0; }
  .split-media { max-width: 460px; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  body { font-size: 16px; padding-bottom: calc(var(--bar-h) + var(--safe-b)); }
  .header-actions .btn-primary { display: none; }
  .mobile-bar { display: flex; }
  .hero-stats { gap: 24px; }
  .price-table td { padding: 12px 18px; }
  .price-group summary { padding: 18px 18px; }
  body.is-menu-open { overflow: hidden; }
  .site-footer { padding-bottom: 30px; }
}

@media (max-width: 520px) {
  .footer-inner { grid-template-columns: 1fr; }
  .hero-cta .btn { width: 100%; }
}

/* ─────────── шкалы аспектов ─────────── */

.aspects { list-style: none; margin: 0; padding: 0; display: grid; gap: 1px; background: var(--line); border-radius: var(--r-lg); overflow: hidden; }
.aspects li.reveal { opacity: 1; translate: none; }
.aspects li {
  display: grid; grid-template-columns: minmax(0, 1fr) 190px 58px;
  gap: 8px 24px; align-items: center;
  padding: 18px 24px; background: var(--surface);
  transition: background-color 200ms var(--ease);
}
.aspects li:hover { background: var(--surface-2); }
.aspect-copy { display: grid; gap: 4px; }
.aspect-name { font-family: 'Tenor', serif; font-size: 19px; }
.aspect-why { font-size: 14.5px; color: var(--ink-3); line-height: 1.5; }
.aspect-bar { height: 6px; border-radius: 3px; background: rgba(42, 18, 29, 0.08); overflow: hidden; }
.aspect-bar i {
  display: block; height: 100%;
  background: linear-gradient(90deg, var(--fuchsia-deep), var(--fuchsia));
  border-radius: 3px;
  transform-origin: left center;
  scale: 0 1;
  transition: scale 900ms var(--spring);
}
.aspects li.is-in .aspect-bar i { scale: 1 1; }
.aspects b { font-family: 'Tenor', serif; font-size: 19px; text-align: right; }
.aspect-count { font-size: 13px; color: var(--ink-3); text-align: right; }

/* ─────────── управление лентой ─────────── */

.section-head-row { max-width: none; display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-end; justify-content: space-between; }
.section-head-row > div { max-width: 640px; }
.rail-controls { display: flex; gap: 8px; }
.rail-btn {
  width: 48px; height: 48px; border: 0; border-radius: 50%;
  background: transparent; color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--line-strong);
  font-size: 18px; cursor: pointer;
  transition-property: background-color, box-shadow, scale;
  transition-duration: 180ms; transition-timing-function: var(--ease);
}
.rail-btn:hover { background: var(--fuchsia); box-shadow: none; }
.rail-btn:active { scale: 0.94; }

@media (max-width: 1060px) {
  .review { flex: 0 0 calc((100% - 16px) / 2); }
}
@media (max-width: 700px) {
  .review { flex: 0 0 100%; }
  .slider-dots { display: none; }
  .slider-foot { justify-content: flex-start; }
}

@media (max-width: 860px) {
  .aspects li { grid-template-columns: minmax(0, 1fr) auto; gap: 10px 14px; padding: 16px 18px; }
  .aspect-bar { grid-column: 1 / -1; order: 3; }
  .aspects b { text-align: right; align-self: start; }
  .rail-controls { display: none; }
}

/* ─────────── филиалы ─────────── */

.branches { display: grid; gap: 14px; margin-bottom: 24px; }
.branch {
  display: grid; gap: 10px; justify-items: start;
  padding: 22px 24px;
  background: var(--surface); border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 240ms var(--ease);
}
.branch:hover { box-shadow: var(--shadow-md); }
.branch h3 { font-size: 22px; }
.branch-note { font-size: 14.5px; color: var(--ink-3); }
.branch-phone {
  font-family: 'Tenor', serif; font-size: clamp(22px, 2.3vw, 27px);
  text-decoration: none;
  transition: color 160ms var(--ease);
}
.branch-phone:hover { color: var(--rose-ink); }
.branch-rating { font-size: 14px; color: var(--ink-2); }
.branch-rating b { font-family: 'Tenor', serif; font-size: 17px; color: var(--rose-ink); }

/* ══════════════════════════════════════════════════════════════
   Мобильная доводка: один вертикальный ритм, симметричные пары,
   ничего не прячется под шторку айфона и под нижнюю панель
   ══════════════════════════════════════════════════════════════ */

@media (max-width: 700px) {
  :root { --sec-pad: 58px; --pad: 20px; }

  /* герой: фото и текст одной ширины, кнопки в одну колонку */
  .hero { padding-top: 26px; }
  .hero-inner { gap: 34px; }
  .hero h1 { font-size: clamp(31px, 8.4vw, 40px); margin-bottom: 18px; }
  .hero-lead { margin-bottom: 26px; }
  .hero-cta { display: grid; gap: 10px; margin-bottom: 32px; }
  .hero-cta .btn { width: 100%; }
  .hero-media { max-width: 300px; }

  /* три равные колонки: ряд 2+1 читался как забытая пустая ячейка */
  .hero-stats {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px;
    padding-top: 22px; box-shadow: inset 0 1px 0 var(--line);
  }
  .hero-stats > div { display: grid; justify-items: center; gap: 2px; text-align: center; }
  .hero-stats dt { font-size: 11px; letter-spacing: 0.1em; margin-bottom: 4px; }
  .hero-stats dd { display: grid; justify-items: center; gap: 1px; }
  .hero-stats dd b { font-size: 27px; }
  .hero-stats dd span { font-size: 12px; }

  /* герой собирается по одной оси — так он читается как афиша, а не как обрывки */
  .hero-copy { text-align: center; }
  .hero .eyebrow { margin-inline: auto; }
  .hero-lead { margin-inline: auto; }

  .section-head { text-align: center; margin-inline: auto; }
  .section-head h2 { display: inline-block; }
  .section-head-row { flex-direction: column; align-items: center; text-align: center; }
  .section-head-row > div { max-width: none; }
  .rail-hint, .note { text-align: center; }
  .slider-foot { justify-content: center; }

  /* мессенджеры: три равные кнопки вместо 2 + 1 */
  .messengers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .messengers .btn { flex: none; min-width: 0; padding: 0 8px; font-size: 13.5px; }

  .ticker-strip { padding: 11px 0; }
  .ticker-track span { font-size: 12px; letter-spacing: 0.13em; }
  .ticker-group { gap: 26px; padding-inline-end: 26px; }

  .section-head { margin-bottom: 28px; }
  .section-head h2 { padding-bottom: 11px; }
  .section-lead { margin-top: 14px; }

  /* карточки: одинаковые поля со всех сторон */
  .service, .master, .review, .branch { padding: 22px 20px; }
  .services, .masters { gap: 12px; }
  .price-group summary { padding: 17px 20px; }
  .price-table td { padding: 12px 20px; font-size: 15px; }

  .master-role { min-height: 0; margin-bottom: 12px; }

  /* лента работ: кадр встаёт ровно по центру экрана, по бокам одинаковые
     краешки соседних — иначе снап прижимает фото к левому краю */
  .works-rail {
    --card: 72vw;
    margin-inline: calc(var(--pad) * -1 - var(--safe-l)) calc(var(--pad) * -1 - var(--safe-r));
    padding-inline: calc((100vw - var(--card)) / 2);
    gap: 12px;
    scroll-padding-inline: 0;
  }
  .works-rail figure { flex: 0 0 var(--card); max-width: none; scroll-snap-align: center; }
  .rail-hint { margin-top: 14px; }


  .aspects li { padding: 15px 18px; }
  .aspect-name { font-size: 17px; }
  .aspect-why { font-size: 14px; }

  .steps { gap: 22px; }
  .steps li { padding-top: 22px; }

  .split { gap: 26px; }
  .split-media, .split-media:has(.photo-frame) { max-width: 300px; }
  .split-copy h2 { margin-bottom: 16px; }
  .pull-quote p { font-size: 19px; }

  /* отзывы: карточка занимает экран целиком, тень не срезается */
  .reviews-track {
    margin-inline: calc(var(--pad) * -1 - var(--safe-l)) calc(var(--pad) * -1 - var(--safe-r));
    padding-inline: calc(var(--pad) + var(--safe-l)) calc(var(--pad) + var(--safe-r));
    scroll-padding-inline-start: calc(var(--pad) + var(--safe-l));
  }
  .review { flex-basis: calc(100vw - var(--pad) * 2 - var(--safe-l) - var(--safe-r)); }
  .slider-foot { margin-top: 16px; }

  .map, .map iframe { min-height: 320px; }

  /* в карточке филиала кнопка на всю ширину — иначе она болтается слева */
  .branch { justify-items: stretch; }
  .branch .btn { width: 100%; }
  .branch h3, .branch-note, .branch-rating { text-align: left; }

  .site-footer { padding-bottom: 22px; text-align: center; }
  .footer-inner { gap: 26px; justify-items: center; }
  .footer-brand .brand { justify-content: center; }
  .footer-brand p { max-width: 32ch; margin-inline: auto; }
  .footer-col { justify-items: center; }
  .footer-bottom { margin-top: 30px; gap: 8px; justify-content: center; text-align: center; }

  /* нижняя панель: пальцу нужен размер, кнопкам — равные доли */
  .mobile-bar { height: calc(var(--bar-h) + var(--safe-b)); align-items: center; }
  .mobile-bar .btn { --btn-h: 48px; }
}

/* Совсем узкие экраны и айфоны со шторкой в альбомной ориентации */
@media (max-width: 380px) {
  .hero-stats { gap: 10px; }
  .hero-stats dd b { font-size: 25px; }
  .brand-name { font-size: 19px; letter-spacing: 0.18em; }
  .messengers .btn { font-size: 13px; padding: 0 6px; }
}

@media (orientation: landscape) and (max-height: 520px) {
  .mobile-nav { padding-top: 4px; }
  .mobile-nav a { font-size: 21px; padding: 10px 0; }
  .mobile-foot { margin-top: 16px; }
}
