/* BEAUTY2GO — цвета сняты с обложки и портретов команды в их группе ВК */
:root {
  --red: #AA070C;          /* их фон обложки ВК */
  --red-deep: #9D1517;     /* их фон портретов мастеров (YClients) */
  --red-dark: #7E0509;     /* своё: наведение на красных кнопках */
  --peach: #F0CCB4;        /* их кнопка «Выбери удобное время» */
  --peach-soft: #F8E6DA;   /* своё: светлая подложка из их персика */
  --ink: #2B2321;          /* их текст на кнопке */
  --black: #151112;        /* чёрное кружево на обложке — тёмные блоки */
  --bg: #FBF7F4;           /* своё: тёплый белый фон */
  --paper: #FFFFFF;
  --muted: #6E6260;        /* своё: второстепенный текст, 5.4:1 на фоне */
  --line: rgba(43, 35, 33, .14);
  --line-light: rgba(255, 255, 255, .28);

  --display: 'Alumni Sans', 'Arial Narrow', sans-serif;
  --sans: 'Wix Madefor Text', system-ui, sans-serif;

  --wrap: 1280px;
  --gutter: clamp(20px, 5vw, 64px);
  --r: 12px;
  --r-lg: 16px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/1.7 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; }
p { margin: 0; }
ul, ol, dl, dd { margin: 0; padding: 0; list-style: none; }
figure { margin: 0; }
.sprite { position: absolute; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.show-sm { display: none; }
.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: 14px; color: var(--muted); margin-top: 16px; line-height: 1.5; }
.stub { background: #FCE7A8; color: var(--ink); padding: 0 6px; border-radius: 4px; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; border-radius: 6px; }

/* Заголовки — узкий плакатный шрифт, как BEAUTY2GO на обложке */
.display {
  font: 800 clamp(44px, 6.2vw, 88px)/.94 var(--display);
  text-transform: uppercase; letter-spacing: .005em;
  text-wrap: balance;
}
/* Разрядка — как у подписей на их обложке («Студия красоты и учебный центр») */
.kicker {
  font: 500 clamp(15px, 1.4vw, 19px)/1.2 var(--display);
  text-transform: uppercase; letter-spacing: .32em;
}
.eyebrow { display: flex; align-items: center; gap: 14px; font-size: 14px; font-weight: 600; color: var(--red); margin-bottom: 24px; }
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.eyebrow--light { color: var(--peach); }
.lead { font-size: clamp(17px, 1.5vw, 20px); line-height: 1.6; }
.ico { width: 18px; height: 18px; flex: none; transition: transform .5s var(--ease); }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 46px; padding: 0 22px; border-radius: 999px;
  font-weight: 600; font-size: 15px; white-space: nowrap;
  border: 1px solid transparent; background: transparent;
  transition: background-color .4s var(--ease), color .4s var(--ease), border-color .4s var(--ease);
}
.btn--lg { min-height: 56px; padding: 0 30px; font-size: 16px; }
.btn--red { background: var(--red); color: #fff; }
.btn--red:hover { background: var(--red-dark); }
.btn--peach { background: var(--peach); color: var(--ink); }
.btn--peach:hover { background: #fff; }
.btn--line { border-color: rgba(43, 35, 33, .3); color: var(--ink); }
.btn--line:hover { border-color: var(--ink); background: var(--paper); }
.btn--line-light { border-color: rgba(255, 255, 255, .5); color: #fff; }
.btn--line-light:hover { border-color: #fff; background: rgba(255, 255, 255, .1); }
.btn:hover .ico { transform: translate(2px, -2px); }
.btn:hover .ico--r { transform: translateX(2px); }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 15px; color: var(--red); transition: color .4s var(--ease); }
.link-arrow:hover { color: var(--red-dark); }
.link-arrow:hover .ico--r { transform: translateX(2px); }

.round-btn {
  width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--line-light); background: transparent; color: #fff;
  transition: background-color .6s var(--ease), color .6s var(--ease), border-color .6s var(--ease);
}
.round-btn svg { width: 20px; height: 20px; }
.round-btn:hover { background: #fff; color: var(--red); border-color: #fff; }
.round-btn--dark { border-color: rgba(43, 35, 33, .3); color: var(--ink); }
.round-btn--dark:hover { background: var(--red); color: #fff; border-color: var(--red); }
.track-nav { display: flex; gap: 10px; }

/* ---------- Шапка ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 247, 244, .94);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: transform .45s var(--ease), border-color .45s var(--ease);
}
.header.is-scrolled { transform: translateY(-40px); border-bottom-color: var(--line); }
.header-util {
  height: 40px; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  font-size: 13px; color: var(--muted); border-bottom: 1px solid var(--line);
  transition: opacity .3s var(--ease);
}
.header.is-scrolled .header-util { opacity: 0; }
.util-info { display: flex; align-items: center; gap: 24px; min-width: 0; }
.util-item { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
a.util-item { transition: color .3s var(--ease); }
a.util-item:hover { color: var(--red); }
.dot { width: 6px; height: 6px; border-radius: 50%; background: var(--red); }
.socials { display: flex; gap: 6px; }
.social {
  width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%;
  color: var(--ink); border: 1px solid var(--line);
  transition: background-color .5s var(--ease), color .5s var(--ease), border-color .5s var(--ease);
}
.social svg { width: 15px; height: 15px; }
.social:hover { background: var(--red); color: #fff; border-color: var(--red); }
.socials--lg .social { width: 46px; height: 46px; }
.socials--lg .social svg { width: 19px; height: 19px; }

.header-main { height: 76px; display: flex; align-items: center; gap: 32px; }
.brand { display: flex; align-items: center; gap: 14px; flex: none; color: var(--red); transition: color .4s var(--ease); }
.brand:hover { color: var(--red-dark); }
.brand-logo { width: 128px; height: 41px; }
.brand-text {
  font: 500 13px/1.15 var(--display); text-transform: uppercase; letter-spacing: .22em;
  color: var(--muted); max-width: 120px;
}
.nav { display: flex; align-items: center; gap: 24px; margin-left: auto; font-size: 15px; }
.nav a { position: relative; padding: 6px 0; white-space: nowrap; transition: color .3s var(--ease); }
.nav a:not(.phone)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--red);
  transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease);
}
.nav a:hover::after { transform: scaleX(1); }
.nav .phone { font-weight: 700; padding-left: 4px; }
.nav .phone:hover { color: var(--red); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.burger {
  display: none; width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgba(43, 35, 33, .3);
  background: transparent; position: relative; transition: border-color .3s var(--ease), background-color .3s var(--ease);
}
.burger:hover { border-color: var(--ink); background: var(--paper); }
.burger span { position: absolute; left: 14px; right: 14px; height: 1.5px; background: var(--ink); transition: transform .4s var(--ease), top .4s var(--ease); }
.burger span:first-child { top: 18px; }
.burger span:last-child { top: 26px; }
.burger[aria-expanded="true"] span:first-child { top: 22px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { top: 22px; transform: rotate(-45deg); }
.drawer {
  border-top: 1px solid var(--line); padding: 20px var(--gutter) 28px; background: var(--bg);
  max-height: calc(100dvh - 76px); overflow-y: auto;
}
.drawer-nav { display: grid; }
.drawer-nav a {
  font: 800 34px/1.1 var(--display); text-transform: uppercase;
  padding: 10px 0; border-bottom: 1px solid var(--line); transition: color .3s var(--ease);
}
.drawer-nav a:hover { color: var(--red); }
.drawer-phone { display: block; margin-top: 20px; font-size: 20px; font-weight: 700; transition: color .3s var(--ease); }
.drawer-phone--2 { margin-top: 4px; font-size: 17px; }
.drawer-phone:hover { color: var(--red); }
.drawer-hours { margin: 8px 0 20px; font-size: 14px; color: var(--muted); }
.drawer-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 20px; }

/* ---------- Первый экран: светлый, красный — только надпись и фото в рамке ---------- */
.hero { background: var(--bg); position: relative; }
.hero-inner {
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .85fr);
  gap: 0 clamp(48px, 7vw, 112px); align-items: center;
  padding-block: clamp(48px, 6vw, 88px) clamp(80px, 9vw, 128px);
}
.hero .kicker { color: var(--muted); margin-bottom: clamp(20px, 2vw, 28px); }
.hero-title svg { display: block; width: 100%; max-width: 580px; aspect-ratio: 909 / 290; height: auto; color: var(--red); }
/* Направления — 2×2 с воздухом, черты сверху дорисовываются при загрузке */
.hero-dirs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 48px; margin-top: clamp(40px, 4.5vw, 56px); max-width: 600px; }
.hero-dirs li { position: relative; padding-top: 18px; }
.hero-dirs li::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--line);
  transform: scaleX(0); transform-origin: left; transition: transform 1.2s var(--ease);
}
.is-loaded .hero-dirs li::before { transform: scaleX(1); }
.is-loaded .hero-dirs li:nth-child(2)::before { transition-delay: .1s; }
.is-loaded .hero-dirs li:nth-child(3)::before { transition-delay: .2s; }
.is-loaded .hero-dirs li:nth-child(4)::before { transition-delay: .3s; }
.hero-dirs a { display: grid; gap: 6px; }
.hero-dirs b { font: 800 clamp(24px, 2vw, 30px)/1 var(--display); text-transform: uppercase; transition: color .4s var(--ease); }
.hero-dirs span { font-size: 15px; line-height: 1.45; color: var(--muted); }
.hero-dirs em { font-style: normal; font-size: 15px; font-weight: 600; color: var(--red); }
.hero-dirs a:hover b { color: var(--red); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: clamp(40px, 4.5vw, 56px); }

.hero-visual { display: grid; gap: 24px; justify-self: end; width: 100%; max-width: 420px; }
.hero-photo { position: relative; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 4 / 5; background: var(--red-deep); }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
/* Подпись «by Nataliya Ashihmina» проявляется слева направо, как будто пишется */
.hero-sign {
  position: absolute; left: 7%; bottom: 6%; width: clamp(150px, 14vw, 210px); aspect-ratio: 248 / 146; color: #fff;
  clip-path: inset(0 100% 0 0); transition: clip-path 2.4s cubic-bezier(.5, 0, .2, 1) .6s;
}
.is-loaded .hero-sign { clip-path: inset(0 0 0 0); }
.hero-meta { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; }
.hero-motto { font: 500 clamp(18px, 1.5vw, 22px)/1.25 var(--display); text-transform: uppercase; letter-spacing: .1em; }
.hero-motto b { display: block; font-weight: 700; color: var(--red); }
.hero-rating { display: grid; justify-items: end; gap: 4px; font-size: 13px; line-height: 1.35; color: var(--muted); text-align: right; transition: color .4s var(--ease); }
.hero-rating-num { display: flex; align-items: center; gap: 6px; font: 700 36px/1 var(--display); color: var(--ink); }
.hero-rating-num svg { width: 20px; height: 20px; color: var(--red); }
.hero-rating:hover { color: var(--ink); }

/* ---------- Мазки кистью (рисует script.js): цвет — от фона блока ---------- */
.brushes { position: absolute; z-index: 0; pointer-events: none; display: grid; }
.brush { display: block; width: 100%; height: auto; aspect-ratio: 600 / 140; overflow: visible; }
.brush + .brush { margin-top: -6%; }
.brush:nth-child(1) { transform: rotate(-7deg); }
.brush:nth-child(2) { transform: translateX(14%) rotate(3deg) scaleX(.86); }
.brush:nth-child(3) { transform: translateX(-6%) rotate(-3deg) scaleX(.7); }
.brush-reveal { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.3s cubic-bezier(.6, .05, .3, 1); }
.brushes.is-in .brush-reveal { stroke-dashoffset: 0; }
.brushes.is-in .brush:nth-child(2) .brush-reveal { transition-delay: .45s; }
.brushes.is-in .brush:nth-child(3) .brush-reveal { transition-delay: .9s; }
.brushes--about { color: var(--red); right: calc(-1 * var(--gutter) - 210px); top: 46%; width: clamp(280px, 28vw, 440px); }
.brushes--works { color: var(--black); left: 60%; top: clamp(64px, 7vw, 100px); width: clamp(220px, 21vw, 300px); }
.brushes--reviews { color: var(--black); left: 44%; top: clamp(100px, 11vw, 150px); width: clamp(240px, 22vw, 340px); }
.brushes--cta { color: #fff; right: -60px; bottom: clamp(40px, 5vw, 72px); width: clamp(260px, 30vw, 460px); }
.works, .reviews, .cta { position: relative; }
.works > :not(.brushes), .reviews > :not(.brushes), .cta > :not(.brushes) { position: relative; z-index: 1; }

/* ---------- Секции ---------- */
.section { padding: clamp(88px, 12vw, 160px) 0; }
.section-head { margin-bottom: clamp(48px, 6vw, 80px); max-width: 900px; }
.section-head--row { max-width: none; display: flex; justify-content: space-between; align-items: flex-end; gap: 32px 64px; flex-wrap: wrap; }
.section-head--row > div:first-child { max-width: 760px; }
.head-note { max-width: 380px; font-size: 15px; line-height: 1.6; }
.subhead { font: 800 clamp(32px, 3.6vw, 48px)/1 var(--display); text-transform: uppercase; margin: clamp(80px, 9vw, 120px) 0 40px; }

/* ---------- О студии ---------- */
.about { overflow: hidden; }
.about-inner { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 48px clamp(48px, 7vw, 112px); }
.about-head .display { color: var(--red); }
.about-text { padding-top: 46px; padding-right: clamp(0px, 9vw, 150px); position: relative; }
.about-text > :not(.brushes) { position: relative; }
.checks { display: grid; gap: 14px; margin-top: 32px; }
.checks li { position: relative; padding-left: 32px; }
.checks li::before { content: ""; position: absolute; left: 0; top: 13px; width: 18px; height: 1px; background: var(--red); }

/* Цифры: над каждой — кружок с картинкой (карта, клиентки, студенты, мастер) */
.facts { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: clamp(32px, 4vw, 56px); border-top: 1px solid var(--line); }
.facts > li { padding: 40px 24px 0; position: relative; display: flex; flex-direction: column; }
.facts > li:first-child { padding-left: 0; }
.facts > li + li::before {
  content: ""; position: absolute; left: 0; top: 40px; bottom: 0; width: 1px; background: var(--line);
  transform: scaleY(0); transform-origin: top; transition: transform 1.2s var(--ease);
}
.facts.is-in > li + li::before { transform: scaleY(1); }
.facts b { font: 800 clamp(52px, 6vw, 84px)/1 var(--display); color: var(--red); margin-top: 28px; }
.facts > li > span { margin-top: 10px; font-size: 15px; color: var(--muted); max-width: 220px; line-height: 1.5; }
.fact-vis { height: 88px; display: flex; align-items: center; }
.fact-map { width: 88px; height: 88px; border-radius: 50%; background: var(--peach-soft); display: grid; place-items: center; }
.fact-map svg { width: 64px; height: 64px; overflow: visible; }
.fact-map path { fill: none; stroke: var(--red); stroke-width: 1.4; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 2.4s var(--ease) .2s; }
.fact-map circle { fill: var(--red); transform-origin: 58.5px 62.8px; transform: scale(0); transition: transform .6s var(--ease) 2.2s; }
.facts.is-in .fact-map path { stroke-dashoffset: 0; }
.facts.is-in .fact-map circle { transform: scale(1); }
/* Кружки внахлёст: каждый следующий заходит на предыдущий, белое кольцо разделяет */
.faces img {
  width: 80px; height: 80px; border-radius: 50%; object-fit: cover; flex: none; position: relative;
  border: 3px solid var(--bg); background: var(--peach-soft); opacity: 0; transform: translateX(-12px);
  transition: opacity .6s var(--ease), transform .8s var(--ease);
}
.faces img + img { margin-left: -22px; }
.faces--sm img { width: 60px; height: 60px; }
.faces--sm img + img { margin-left: -18px; }
.facts.is-in .faces img { opacity: 1; transform: none; }
.facts.is-in .faces img:nth-child(2) { transition-delay: .1s; }
.facts.is-in .faces img:nth-child(3) { transition-delay: .2s; }
.facts.is-in .faces img:nth-child(4) { transition-delay: .3s; }
.facts.is-in .faces img:nth-child(5) { transition-delay: .4s; }

/* ---------- Услуги: фото справа меняется при прокрутке ---------- */
.services { background: var(--paper); }
.dirs { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); gap: clamp(40px, 6vw, 96px); }
.dir { padding: 48px 0 56px; border-top: 1px solid var(--line); min-height: 64vh; display: flex; flex-direction: column; gap: 18px; }
.dir:last-child { min-height: 0; }
.dir-num { font: 600 18px/1 var(--display); letter-spacing: .08em; color: var(--red); }
.dir h3 { font: 800 clamp(40px, 4.8vw, 68px)/.95 var(--display); text-transform: uppercase; transition: color .5s var(--ease); }
.dir.is-active h3 { color: var(--red); }
.dir-sub { font-size: 15px; font-weight: 600; color: var(--muted); margin-top: -8px; }
.dir-img { display: none; }
.dir > p:not(.dir-sub):not(.dir-price) { max-width: 560px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0; }
.tags li { font-size: 14px; padding: 6px 14px; border-radius: 999px; background: var(--peach-soft); transition: background-color .5s var(--ease), color .5s var(--ease); }
/* Пробно, по просьбе заказчика: плашки техник окрашиваются при наведении */
@media (hover: hover) { .tags li:hover { background: var(--red); color: #fff; } }
.dir-price { font-size: 15px; color: var(--muted); }
.dir-price b { display: block; font: 700 32px/1.1 var(--display); color: var(--ink); margin-bottom: 2px; }
.dir-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; margin-top: 8px; }

.dirs-visual { position: relative; }
.dv-frame {
  position: sticky; top: 108px; height: min(680px, calc(100vh - 150px));
  border-radius: var(--r-lg); overflow: hidden; background: var(--red);
}
.dv {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transform: scale(1.04); transition: opacity .8s var(--ease), transform 1.2s var(--ease);
}
.dv.is-on { opacity: 1; transform: none; }
.dv-count {
  position: sticky; top: calc(108px + min(680px, calc(100vh - 150px)) - 56px);
  margin: -56px 0 0 20px; width: max-content; padding: 6px 14px; border-radius: 999px;
  background: rgba(21, 17, 18, .55); color: #fff; font: 600 15px/1.4 var(--display); letter-spacing: .2em;
}
.dv-cur { font-weight: 700; }

/* ---------- Работы: лента на персиковом ---------- */
.works { background: var(--peach-soft); padding: clamp(88px, 11vw, 140px) 0; overflow: hidden; }
.works-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 48px; }
.track {
  display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  padding: 0 var(--gutter); scroll-padding: 0 var(--gutter);
}
.track::-webkit-scrollbar { display: none; }
@media (min-width: 1408px) { .track { padding-left: calc((100vw - var(--wrap)) / 2); scroll-padding-left: calc((100vw - var(--wrap)) / 2); } }
.work { flex: none; width: clamp(240px, 24vw, 320px); scroll-snap-align: start; }
.work img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: var(--r); }
.work figcaption { margin-top: 12px; font: 600 15px/1.2 var(--display); text-transform: uppercase; letter-spacing: .26em; color: var(--muted); }

/* ---------- Цены ---------- */
.levels { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 40px; }
.level {
  display: flex; align-items: center; gap: 14px; padding: 12px 18px 12px 12px; text-align: left;
  border-radius: 999px; border: 1px solid var(--line); background: var(--paper);
  transition: background-color .5s var(--ease), border-color .5s var(--ease), color .5s var(--ease);
}
.level img { width: 52px; height: 52px; border-radius: 50%; flex: none; background: var(--red-deep); }
.level span { display: grid; font-size: 14px; line-height: 1.35; color: var(--muted); transition: color .5s var(--ease); }
.level b { font: 700 22px/1.1 var(--display); text-transform: uppercase; color: var(--ink); transition: color .5s var(--ease); }
.level:hover { border-color: var(--red); }
.level[aria-checked="true"] { background: var(--red); border-color: var(--red); }
.level[aria-checked="true"] span, .level[aria-checked="true"] b { color: #fff; }

.pm-table { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; position: relative; }
.pm-group { background: var(--paper); border-radius: var(--r-lg); padding: 32px 32px 20px; }
.pm-group h3 { font: 800 40px/1 var(--display); text-transform: uppercase; color: var(--red); margin-bottom: 16px; }
.pm-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 16px; padding: 16px 0; border-top: 1px solid var(--line); }
.pm-row dt { grid-row: span 2; font-size: 15px; line-height: 1.45; }
.pm-row dd { text-align: right; font: 700 24px/1.1 var(--display); white-space: nowrap; transition: opacity .3s var(--ease), transform .3s var(--ease); }
.pm-row dd.pm-corr { font: 500 14px/1.3 var(--sans); color: var(--muted); }
.pm-row dd.pm-corr::before { content: "коррекция "; }
.pm-row dd.is-na { font: 500 14px/1.5 var(--sans); color: var(--muted); }
.pm-table.is-changing dd { opacity: 0; transform: translateY(6px); }
.pm-legend { display: none; }
.pm-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; margin-top: 40px; }
.pm-actions .muted { font-size: 15px; }

.price-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.price-card { background: var(--paper); border-radius: var(--r-lg); padding: 32px; }
.price-card h4 { font: 800 30px/1 var(--display); text-transform: uppercase; margin-bottom: 16px; }
.price-card li, .pl li { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 14px 0; border-top: 1px solid var(--line); font-size: 15px; line-height: 1.45; }
.price-card li b, .pl li b { flex: none; font-weight: 700; white-space: nowrap; }
.prices .center { margin-top: 48px; }

/* ---------- Мастера ---------- */
.team { background: var(--paper); }
.team-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 24px; }
.member { display: flex; flex-direction: column; }
.member-photo { border-radius: var(--r-lg); overflow: hidden; background: var(--red-deep); aspect-ratio: 1; }
.member-photo img { width: 100%; height: 100%; object-fit: cover; }
.member-body { display: flex; flex-direction: column; gap: 12px; padding-top: 24px; flex: 1; }
.member-level { font: 600 14px/1 var(--display); text-transform: uppercase; letter-spacing: .28em; color: var(--red); }
.member h3 { font: 800 clamp(32px, 3vw, 42px)/1 var(--display); text-transform: uppercase; }
.member-body > p:not(.member-level) { font-size: 15px; line-height: 1.6; }
.member-skills { color: var(--muted); }
.member .btn { align-self: flex-start; margin-top: auto; }
.member-body .btn { margin-top: auto; }
.member-skills { margin-bottom: 12px; }
.member--lead { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(32px, 5vw, 72px); align-items: center; margin-bottom: 24px; }
.member--lead .member-body { padding-top: 0; }
.member--lead h3 { font-size: clamp(48px, 5.6vw, 80px); }
.member--lead .member-body > p:not(.member-level) { font-size: 17px; max-width: 560px; }

/* ---------- Учебный центр ---------- */
.school { background: var(--black); color: #fff; overflow: hidden; }
.school-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); gap: clamp(48px, 7vw, 112px); align-items: start; }
.school .lead { color: rgba(255, 255, 255, .8); margin-top: 28px; max-width: 560px; }
.courses { margin-top: 48px; border-bottom: 1px solid rgba(255, 255, 255, .16); }
.courses li { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; padding: 16px 0; border-top: 1px solid rgba(255, 255, 255, .16); }
.courses span { display: grid; font-size: 14px; color: rgba(255, 255, 255, .62); }
.courses b { font-size: 16px; font-weight: 600; color: #fff; }
.courses em { font: 700 26px/1 var(--display); font-style: normal; color: var(--peach); white-space: nowrap; }
.school-actions { margin-top: 40px; }
.school-photos { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding-top: 8px; }
.sp { width: 100%; object-fit: cover; border-radius: var(--r-lg); }
.sp--1 { grid-column: 1 / -1; aspect-ratio: 3 / 2; }
.sp--2 { aspect-ratio: 3 / 4; }
.sp--3 { aspect-ratio: 3 / 4; margin-top: 48px; }

/* ---------- Студия ---------- */
.bento { display: grid; grid-template-columns: 1.1fr 1fr 1fr 1fr; grid-template-rows: 300px 300px; gap: 16px; }
.b { border-radius: var(--r-lg); overflow: hidden; background: var(--peach-soft); }
.b img { width: 100%; height: 100%; object-fit: cover; }
.b--lounge { grid-row: span 2; }
.b--hall { grid-row: span 2; }
.b--facade { grid-column: 3 / span 2; grid-row: 2; }

/* ---------- Отзывы ---------- */
.reviews { overflow: hidden; }
.reviews-score { display: flex; align-items: center; gap: 32px; flex-wrap: wrap; }
.score { display: flex; align-items: center; gap: 14px; transition: color .4s var(--ease); }
.score > b { font: 800 64px/1 var(--display); color: var(--red); }
.score > span { display: grid; gap: 4px; font-size: 14px; color: var(--muted); max-width: 190px; line-height: 1.4; transition: color .4s var(--ease); }
.score:hover > span { color: var(--ink); }
.stars { display: flex; gap: 2px; color: var(--red); }
.stars svg { width: 15px; height: 15px; }
.review {
  flex: none; width: clamp(290px, 31vw, 420px); scroll-snap-align: start;
  background: var(--paper); border-radius: var(--r-lg); padding: 32px; display: flex; flex-direction: column; gap: 20px;
}
.review-tag { font: 600 13px/1 var(--display); text-transform: uppercase; letter-spacing: .26em; color: var(--red); }
.review blockquote { margin: 0; font-size: 15.5px; line-height: 1.7; flex: 1; }
.review footer { display: flex; align-items: center; gap: 14px; padding-top: 20px; border-top: 1px solid var(--line); }
.review footer span:last-child { display: grid; font-size: 13px; color: var(--muted); line-height: 1.4; }
.review footer b { font-size: 15px; color: var(--ink); }
.review .ava { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; flex: none; background: var(--peach-soft); }
.reviews-more { margin-top: 48px; }

/* ---------- Финальный призыв ---------- */
.cta { background: var(--black); color: #fff; padding: clamp(96px, 12vw, 168px) 0; overflow: hidden; }
.cta-inner { position: relative; text-align: center; display: flex; flex-direction: column; align-items: center; }
.cta .kicker { color: rgba(255, 255, 255, .7); }
.cta-title { font: 800 clamp(56px, 10vw, 150px)/.9 var(--display); text-transform: uppercase; margin-top: 20px; text-wrap: balance; }
.cta-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 48px; }
.cta-sign { width: clamp(150px, 16vw, 240px); aspect-ratio: 248 / 146; color: var(--peach); margin-top: 40px; }

/* ---------- Студия: адрес с маленькой картой слева ---------- */
.studio-title { display: flex; align-items: center; gap: clamp(20px, 3vw, 40px); }
.studio-map { position: relative; flex: none; width: clamp(104px, 11vw, 144px); aspect-ratio: 1; border-radius: var(--r-lg); overflow: hidden; background: var(--peach-soft); }
.studio-map img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(.95) brightness(1.04) sepia(.12); transition: filter .6s var(--ease), transform .8s var(--ease); }
.studio-map:hover img { filter: grayscale(.4) contrast(.95) brightness(1.04) sepia(.1); transform: scale(1.04); }
.studio-pin { position: absolute; left: 50%; top: 50%; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 5px rgba(170, 7, 12, .18); }

/* ---------- Контакты ---------- */
.contacts-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
.contact-list { display: grid; gap: 24px; margin-top: 40px; }
.contact-list > div { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 16px; padding-top: 24px; border-top: 1px solid var(--line); }
.contact-list dt { font-size: 14px; color: var(--muted); }
.contact-list dd { font-size: 16px; line-height: 1.6; }
.contact-list a { font-weight: 600; transition: color .3s var(--ease); }
.contact-list a:hover { color: var(--red); }
.contact-list .muted { font-size: 14px; }
.contact-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; margin-top: 40px; }
.map { position: relative; display: block; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 13 / 9; background: var(--peach-soft); }
.map img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(.95) brightness(1.04) sepia(.12); transition: filter .6s var(--ease); }
.map:hover img { filter: grayscale(.6) contrast(.95) brightness(1.04) sepia(.1); }
.map-pin {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -100%);
  padding: 10px 14px 9px; border-radius: 999px; background: var(--red); color: #fff;
  box-shadow: 0 10px 24px -10px rgba(126, 5, 9, .7);
}
.map-pin::after { content: ""; position: absolute; left: 50%; bottom: -6px; width: 12px; height: 12px; background: var(--red); transform: translateX(-50%) rotate(45deg); border-radius: 2px; }
.map-pin svg { display: block; width: 82px; height: 26px; position: relative; z-index: 1; }
.map-label {
  position: absolute; right: 16px; bottom: 16px; display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px; border-radius: 999px; background: var(--paper); font-size: 14px; font-weight: 600;
  transition: background-color .4s var(--ease), color .4s var(--ease);
}
.map:hover .map-label { background: var(--red); color: #fff; }
.map:hover .map-label .ico { transform: translate(2px, -2px); }

/* ---------- Подвал ---------- */
.footer { background: var(--black); color: rgba(255, 255, 255, .78); padding: 80px 0 40px; font-size: 15px; }
.footer-top { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 40px; padding-bottom: 48px; border-bottom: 1px solid rgba(255, 255, 255, .14); }
.footer-logo { width: 180px; height: 58px; color: #fff; }
.footer-brand p { margin-top: 20px; max-width: 360px; font-size: 14px; line-height: 1.6; }
.footer-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 24px; align-content: start; }
.footer-nav a, .footer-contacts a:not(.badge) { transition: color .3s var(--ease); width: max-content; }
.footer-nav a:hover, .footer-contacts a:not(.badge):hover { color: #fff; }
.footer-contacts { display: grid; gap: 10px; align-content: start; }
.badge {
  display: inline-flex; align-items: center; gap: 10px; width: max-content; margin-top: 10px;
  padding: 8px 16px 8px 8px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .2); font-size: 14px;
  transition: border-color .4s var(--ease), background-color .4s var(--ease);
}
.badge:hover { border-color: #fff; background: rgba(255, 255, 255, .06); }
.badge b { color: #fff; }
.ya { width: 28px; height: 28px; border-radius: 50%; background: #FC3F1D; color: #fff; display: grid; place-items: center; }
.ya svg { width: 16px; height: 16px; }
.footer-legal { display: grid; gap: 10px; padding-top: 32px; font-size: 13px; color: rgba(255, 255, 255, .55); }
.footer-docs { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer-docs a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255, 255, 255, .3); transition: color .3s var(--ease), text-decoration-color .3s var(--ease); }
.footer-docs a:hover { color: #fff; text-decoration-color: #fff; }

/* ---------- Диалоги ---------- */
.sheet {
  width: min(560px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); padding: clamp(28px, 4vw, 44px);
  border: 0; border-radius: var(--r-lg); background: var(--bg); color: var(--ink); overflow-y: auto;
}
.sheet--wide { width: min(820px, calc(100vw - 32px)); }
.sheet::backdrop { background: rgba(21, 17, 18, .6); backdrop-filter: blur(4px); }
.sheet[open] { animation: sheet-in .45s var(--ease); }
@keyframes sheet-in { from { opacity: 0; transform: translateY(16px); } }
.sheet .display { font-size: clamp(44px, 6vw, 64px); margin-bottom: 12px; }
.sheet > .muted { font-size: 15px; }
.sheet .muted a { color: var(--red); text-decoration: underline; text-underline-offset: 3px; }
.sheet-close {
  position: sticky; top: 0; float: right; margin: -12px -12px 0 0; width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center; border: 1px solid var(--line); background: var(--paper);
  transition: background-color .4s var(--ease), color .4s var(--ease), border-color .4s var(--ease);
}
.sheet-close svg { width: 20px; height: 20px; }
.sheet-close:hover { background: var(--red); color: #fff; border-color: var(--red); }
.doc-title { font: 800 40px/1 var(--display); text-transform: uppercase; margin-bottom: 16px; }
.form { display: grid; gap: 16px; margin-top: 28px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 6px; font-size: 14px; font-weight: 600; }
.field input, .field select, .field textarea {
  width: 100%; font: 400 16px/1.4 var(--sans); color: var(--ink);
  padding: 13px 16px; border-radius: var(--r); border: 1px solid var(--line); background: var(--paper);
  transition: border-color .3s var(--ease);
}
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--red); }
.field select {
  appearance: none; -webkit-appearance: none; padding-right: 44px;
  background: var(--paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23AA070C' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round' d='m6.5 9.5 5.5 5.5 5.5-5.5'/%3E%3C/svg%3E") no-repeat right 14px center / 20px;
}
.check { display: flex; gap: 12px; font-size: 13.5px; line-height: 1.5; color: var(--muted); }
.check input { width: 18px; height: 18px; margin: 1px 0 0; flex: none; accent-color: var(--red); }
.check a { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; transition: color .3s var(--ease); }
.check a:hover { color: var(--red); }
.form .btn { justify-self: start; margin-top: 8px; }
.feedback { font-size: 14px; color: var(--red); min-height: 1em; }
.pl { border-top: 1px solid var(--line); }
.pl:first-of-type { margin-top: 28px; }
.pl:last-of-type { border-bottom: 1px solid var(--line); margin-bottom: 32px; }
.pl summary {
  display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 0; cursor: pointer; list-style: none;
  font: 800 28px/1 var(--display); text-transform: uppercase; transition: color .3s var(--ease);
}
.pl summary::-webkit-details-marker { display: none; }
.pl summary svg { width: 22px; height: 22px; flex: none; transition: transform .45s var(--ease); }
.pl[open] summary svg { transform: rotate(180deg); }
.pl summary:hover { color: var(--red); }
.pl ul { padding-bottom: 12px; }
.pl li:first-child { border-top: 0; }

/* ---------- Появление при прокрутке ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.track .reveal:nth-child(2) { transition-delay: .08s; }
.track .reveal:nth-child(3) { transition-delay: .16s; }
.track .reveal:nth-child(4) { transition-delay: .24s; }
.price-cards .reveal:nth-child(3n + 2), .team-grid .reveal:nth-child(3) { transition-delay: .08s; }
.price-cards .reveal:nth-child(3n), .team-grid .reveal:nth-child(4) { transition-delay: .16s; }

/* ---------- Адаптив ---------- */
@media (max-width: 1440px) {
  .nav .phone { display: none; }
}
@media (max-width: 1280px) {
  .nav-studio { display: none; }
  .hide-md { display: none; }
}
@media (max-width: 1100px) {
  .nav { display: none; }
  .faces img { width: 64px; height: 64px; }
  .faces img + img { margin-left: -18px; }
  .faces--sm img { width: 48px; height: 48px; }
  .faces--sm img + img { margin-left: -16px; }
  .hero-dirs { gap: 28px 32px; }
  .burger { display: block; }
  .header-actions { margin-left: auto; }
  .hide-md { display: inline-flex; }
  .pm-table { grid-template-columns: 1fr; }
  .price-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bento { grid-template-columns: 1fr 1fr 1fr; grid-template-rows: 260px 260px 260px; }
  .b--lounge { grid-row: span 2; }
  .b--hall { grid-row: span 2; }
  .b--facade { grid-column: 1 / -1; grid-row: auto; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  .brushes--about, .brushes--reviews, .brushes--works { display: none; }
  .brushes--cta { right: -100px; bottom: 12px; width: 200px; }
  /* Фото — под текстом, не на весь экран */
  .hero-inner { grid-template-columns: 1fr; gap: 64px; }
  .hero-visual { justify-self: start; max-width: 440px; }
  .about-inner, .school-inner, .contacts-inner { grid-template-columns: 1fr; }
  .about-text { padding-top: 0; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts > li:nth-child(3) { padding-left: 0; }
  .facts > li:nth-child(3)::before { display: none; }
  .about-text { padding-right: 0; }
  .dirs { grid-template-columns: 1fr; }
  .dirs-visual { display: none; }
  .dir { min-height: 0; }
  .dir-img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r-lg); margin: 6px 0; }
  .levels { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .member--lead { grid-template-columns: 1fr; }
  .school-photos { max-width: 640px; }
}
@media (max-width: 720px) {
  .header-util { justify-content: space-between; }
  .util-addr { display: none; }
  .price-cards { grid-template-columns: 1fr; }
  .bento { grid-template-columns: 1fr 1fr; grid-template-rows: repeat(3, 240px); }
  .b--lounge { grid-row: span 2; }
  .b--hall { grid-row: span 1; }
  .b--elos { display: none; }
  .b--facade { grid-column: span 2; }
  .section-head--row { align-items: flex-start; }
  .contact-list > div { grid-template-columns: 1fr; gap: 4px; }
  .footer-top { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .hide-sm { display: none; }
  .show-sm { display: inline; }
  .hide-xs { display: none; }
  .brand-text { display: none; }
  .brand-logo { width: 110px; height: 35px; }
  .header-main { gap: 12px; }
  .header-actions .hide-md { display: none; }
  .hero-city { display: none; }
  .hero-dirs { gap: 28px 20px; }
  .hero-dirs b { font-size: 22px; }
  .hero-dirs span, .hero-dirs em { font-size: 14px; }
  .hero-meta { flex-wrap: wrap; }
  .team-grid { grid-template-columns: 1fr; }
  .facts > li { padding-right: 12px; }
  .fact-vis { height: 64px; }
  .fact-map { width: 64px; height: 64px; }
  .fact-map svg { width: 46px; height: 46px; }
  .faces img { width: 60px; height: 60px; }
  .faces img + img { margin-left: -18px; }
  .faces--sm img { width: 44px; height: 44px; }
  .faces--sm img + img { margin-left: -14px; }
  .faces--sm img:nth-child(5) { display: none; }
  /* Студия: карта рядом с подписью, адрес — строкой ниже на всю ширину */
  .studio-title { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 20px; }
  .studio-title > div { display: contents; }
  .studio-title .eyebrow { margin: 0; }
  .studio-title h2 { grid-column: 1 / -1; }
  .studio-map { width: 88px; }
  .pm-group { padding: 24px 20px 12px; }
  .price-card { padding: 24px 20px; }
  .review { padding: 24px; }
  .courses li { flex-direction: column; gap: 6px; }
  .reviews-score { gap: 20px; }
}
@media (max-width: 460px) {
  .hero-actions .btn, .cta-actions .btn, .pm-actions .btn, .school-actions .btn, .reviews-more .btn { width: 100%; }
  .reviews-more .btn { padding: 0 20px; font-size: 15px; }
  .util-phone { display: none; }
  .hero-actions .btn--red { white-space: normal; text-align: center; line-height: 1.3; }
}
@media (max-width: 380px) {
  .faces img { width: 50px; height: 50px; }
  .faces img + img { margin-left: -14px; }
  .faces--sm img { width: 40px; height: 40px; }
  .faces--sm img + img { margin-left: -12px; }
  .faces--sm img:nth-child(4) { display: none; }
  .header-actions .btn { padding: 0 16px; }
  .brand-logo { width: 96px; height: 31px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; transition-delay: 0s !important; }
  .reveal { opacity: 1; transform: none; }
}
