/* =========================================================
   PRIDE — семейный салон красоты
   Цвета и шрифты меняются в одном месте — в :root ниже
   ========================================================= */

:root {
  /* Палитра (зелёный и медь — из логотипа) */
  --milk: #F7F2EA;        /* фон страницы */
  --paper: #FBF8F2;       /* светлые карточки */
  --sand: #EDE3D4;        /* бежевые карточки */
  --taupe: #CDB9A0;       /* тёплая карточка */
  --green: #0F3A36;       /* фирменный зелёный */
  --green-2: #174A45;
  --copper: #D29A7C;      /* медь на зелёном */
  --copper-ink: #9C5F43;  /* медь для текста на светлом */
  --ink: #1B2422;
  --muted: #5D6662;
  --line: rgba(27, 36, 34, .12);

  --f-sans: "Onest", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --f-serif: "Spectral", Georgia, "Times New Roman", serif;

  --radius: 24px;
  --header-h: 72px;
  --container: 1200px;
  --gutter: clamp(16px, 4vw, 40px);

  --ease: cubic-bezier(.22, .8, .24, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
}

/* ---------- База ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--milk);
  color: var(--ink);
  font-family: var(--f-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip; /* без горизонтальной прокрутки во время анимаций */
}

html.is-loading { overflow: hidden; }

img, svg, iframe { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 600; text-wrap: balance; }
.hero__lead, .section__head p, .quiz__head p { text-wrap: balance; }
ul, ol { margin: 0; padding: 0; list-style: none; }
p { margin: 0; }

svg use { pointer-events: none; }

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

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.serif {
  font-family: var(--f-serif);
  font-style: italic;
  font-weight: 300;
  letter-spacing: -0.015em;
}

.eyebrow {
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--copper-ink);
}

.skip-link {
  position: fixed;
  left: 16px;
  top: -60px;
  z-index: 200;
  padding: 10px 16px;
  border-radius: 12px;
  background: var(--green);
  color: var(--milk);
  transition: top .2s;
}
.skip-link:focus { top: 16px; }

/* ---------- Кнопка-пилюля ---------- */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-height: 44px;
  padding: 6px 6px 6px 20px;
  border-radius: 999px;
  background: var(--green);
  color: var(--milk);
  font-size: 14.5px;
  font-weight: 500;
  white-space: nowrap;
  transition: background .3s var(--ease), transform .2s var(--ease);
}
.pill:hover { background: var(--green-2); }
.pill:active { transform: scale(.97); }

.pill__icon {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--copper);
  color: var(--green);
  overflow: hidden;
}
.pill__icon svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.pill:hover .pill__icon svg { animation: arrow-loop .55s var(--ease); }

@keyframes arrow-loop {
  0%   { transform: translateX(0); }
  45%  { transform: translateX(140%); }
  46%  { transform: translateX(-140%); }
  100% { transform: translateX(0); }
}

.pill--light { background: var(--milk); color: var(--green); }
.pill--light:hover { background: #fff; }
.pill--light .pill__icon { background: var(--green); color: var(--milk); }

/* =========================================================
   Заставка
   ========================================================= */
.splash { display: none; }

.js .splash {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  background: var(--green);
}

.splash__logo {
  width: min(300px, 64vw);
  height: auto;
  opacity: 0;
  transform: scale(.94);
  filter: blur(12px);
}

.splash.is-in .splash__logo { animation: splash-in 1.3s var(--ease) forwards; }

.splash.is-out {
  opacity: 0;
  transition: opacity .9s var(--ease-io) .2s;
  pointer-events: none;
}
.splash.is-out .splash__logo { animation: splash-out 1s var(--ease-io) forwards; }

@keyframes splash-in {
  to { opacity: 1; transform: scale(1); filter: blur(0); }
}
@keyframes splash-out {
  from { opacity: 1; transform: scale(1); filter: blur(0); }
  to   { opacity: 0; transform: scale(.76); filter: blur(4px); }
}

/* Пока идёт заставка — страница чуть «ближе», затем мягко отдаляется */
main { transition: transform 1.6s var(--ease); }
.js.is-loading main { transform: scale(1.035); }

/* =========================================================
   Шапка
   ========================================================= */
.header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  transition: opacity .8s var(--ease) .25s, background-color .4s, box-shadow .4s;
}
.js.is-loading .header { opacity: 0; }

.header.is-scrolled {
  background-color: rgba(247, 242, 234, .84);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  box-shadow: 0 1px 0 var(--line);
}

.header__inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: var(--header-h);
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.header__nav {
  display: flex;
  align-items: center;
  gap: 30px;
  font-size: 14.5px;
}
.header__nav--right { justify-content: flex-end; }

.header__nav > a:not(.pill) {
  padding: 4px 0;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: background-size .35s var(--ease);
}
.header__nav > a:not(.pill):hover { background-size: 100% 1px; }

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand__emblem { width: auto; height: 42px; }
.brand__word { width: auto; height: 15px; }

/* Бургер (только мобильная версия) */
.burger {
  display: none;
  position: relative;
  width: 44px;
  height: 44px;
  margin-right: -8px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}
.burger span {
  position: absolute;
  left: 12px;
  right: 12px;
  height: 1.5px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform .4s var(--ease), top .4s var(--ease);
}
.burger span:first-child { top: 17px; }
.burger span:last-child  { top: 25px; }
.burger[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:last-child  { top: 21px; transform: rotate(-45deg); }

/* Компактное выпадающее меню */
.mmenu {
  position: absolute;
  top: calc(var(--header-h) - 6px);
  right: var(--gutter);
  width: min(290px, calc(100vw - 32px));
  padding: 8px;
  border-radius: 22px;
  background: var(--paper);
  box-shadow: 0 0 0 1px var(--line), 0 28px 60px -24px rgba(15, 58, 54, .4);
  transform-origin: top right;
  opacity: 0;
  transform: translateY(-8px) scale(.96);
  transition: opacity .3s var(--ease), transform .4s var(--ease);
}
.mmenu.is-open { opacity: 1; transform: none; }

.mmenu__links a {
  display: block;
  padding: 11px 14px;
  border-radius: 12px;
  font-size: 16.5px;
  font-weight: 500;
  opacity: 0;
  transform: translateY(-4px);
  transition: background-color .2s, opacity .35s var(--ease), transform .35s var(--ease);
}
.mmenu.is-open .mmenu__links a { opacity: 1; transform: none; }
.mmenu.is-open .mmenu__links a:nth-child(2) { transition-delay: 0s, .03s, .03s; }
.mmenu.is-open .mmenu__links a:nth-child(3) { transition-delay: 0s, .06s, .06s; }
.mmenu.is-open .mmenu__links a:nth-child(4) { transition-delay: 0s, .09s, .09s; }
.mmenu.is-open .mmenu__links a:nth-child(5) { transition-delay: 0s, .12s, .12s; }
.mmenu.is-open .mmenu__links a:nth-child(6) { transition-delay: 0s, .15s, .15s; }
.mmenu__links a:hover,
.mmenu__links a:active { background-color: var(--sand); }

.mmenu__foot {
  display: grid;
  gap: 2px;
  margin: 6px 6px 4px;
  padding: 12px 8px 4px;
  border-top: 1px solid var(--line);
}
.mmenu__phone { font-weight: 600; }
.mmenu__hours { font-size: 13.5px; color: var(--muted); }

/* =========================================================
   Первый экран
   ========================================================= */
.hero {
  padding-top: calc(var(--header-h) + clamp(40px, 7vh, 88px));
  overflow: hidden;
}

.hero__text { text-align: center; }

.hero__title {
  margin-top: 18px;
  font-size: clamp(2.6rem, 6.4vw, 5.1rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
  font-weight: 600;
}
.hero__title .serif {
  font-size: 1.08em;
  color: var(--green);
}

.line-mask {
  display: block;
  overflow: hidden;
  padding-bottom: .1em;
  margin-bottom: -.1em;
}
.line-mask > span { display: inline-block; }

.hero__lead {
  max-width: 540px;
  margin: 24px auto 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.25vw, 1.08rem);
}
.hero__cta { margin-top: 30px; }

/* Анимация появления первого экрана (после заставки) */
.js .line-mask > span { transform: translateY(110%); }
.js .fade-up { opacity: 0; transform: translateY(16px); }

.is-ready .line-mask > span {
  transform: none;
  transition: transform 1.2s var(--ease);
}
.is-ready .hero__eyebrow .line-mask > span { transition-delay: .1s; }
.is-ready .hero__title .line-mask:nth-child(1) > span { transition-delay: .2s; }
.is-ready .hero__title .line-mask:nth-child(2) > span { transition-delay: .32s; }
.is-ready .fade-up {
  opacity: 1;
  transform: none;
  transition: opacity 1s var(--ease) .5s, transform 1.1s var(--ease) .5s;
}
.is-ready .hero__cta.fade-up { transition-delay: .62s; }

/* ---------- Дуга из фото (статичная) ---------- */
.arc {
  --unit: min(1vw, 15px);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: calc(var(--unit) * 1.2);
  height: calc(var(--unit) * 28);
  margin-top: clamp(40px, 6vw, 72px);
  perspective: calc(var(--unit) * 80);
}

.arc__card {
  --a: max(var(--i), calc(var(--i) * -1));
  --ry: calc(var(--i) * -11deg);
  flex: none;
  width: calc(var(--unit) * (8.8 + var(--a) * 1.15));
  height: calc(var(--unit) * (11.5 + var(--a) * 3.7));
  border-radius: calc(var(--unit) * 1.4);
  overflow: hidden;
  transform: rotateY(var(--ry));
  box-shadow: 0 20px 40px -28px rgba(15, 58, 54, .45);
}
.arc__card .ph { border-radius: inherit; }

.arc__card--brand {
  display: grid;
  place-items: center;
  background: var(--green);
}
.arc__card--brand img { width: 68%; height: auto; }

.js .arc__card {
  opacity: 0;
  transform: rotateY(var(--ry)) translateY(36px) scale(.9);
}
.is-ready .arc__card {
  opacity: 1;
  transform: rotateY(var(--ry));
  transition:
    opacity 1s var(--ease) calc(.35s + var(--a) * .09s),
    transform 1.4s var(--ease) calc(.35s + var(--a) * .09s);
}

/* ---------- Преимущества ---------- */
.perks {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  max-width: 1000px;
  margin: clamp(40px, 5vw, 64px) auto 0;
}
.perk {
  padding: 4px 30px;
  text-align: center;
}
.perk + .perk { border-left: 1px solid var(--line); }
.perk__icon {
  width: 22px;
  height: 22px;
  margin: 0 auto;
  fill: none;
  stroke: var(--copper-ink);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.perk h3 { margin: 12px 0 6px; font-size: 16px; }
.perk p { font-size: 14.5px; color: var(--muted); }

/* =========================================================
   Секции
   ========================================================= */
.section { padding-top: clamp(88px, 11vw, 150px); }
.section--tight { padding-top: clamp(72px, 8vw, 110px); }

.section__head {
  max-width: 660px;
  margin: 0 auto clamp(36px, 5vw, 56px);
  text-align: center;
}
.section__head p {
  max-width: 540px;
  margin: 16px auto 0;
  color: var(--muted);
  font-size: 15.5px;
}

h2 {
  font-size: clamp(2.1rem, 4.4vw, 3.4rem);
  line-height: 1.06;
  letter-spacing: -0.035em;
}
h2 .serif {
  font-size: 1.08em;
  color: var(--green);
}

/* ---------- Заглушки для фото ----------
   Чтобы поставить фото, добавьте внутрь <img src="..." alt="...">,
   картинка сама закроет заглушку. */
.ph {
  --ph1: #E9DDCB;
  --ph2: #C9B397;
  position: relative;
  isolation: isolate;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background:
    radial-gradient(120% 80% at 28% 12%, rgba(255, 255, 255, .5), transparent 55%),
    linear-gradient(160deg, var(--ph1), var(--ph2));
}
.ph--sage  { --ph1: #D3D8C6; --ph2: #93A393; }
.ph--clay  { --ph1: #E8CAB4; --ph2: #B9866C; }
.ph--sand  { --ph1: #F1E8DA; --ph2: #CDB89C; }
.ph--rose  { --ph1: #F0D9CE; --ph2: #C79A8A; }
.ph--taupe { --ph1: #E2D5C3; --ph2: #A8927A; }

.ph::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='1.3' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect width='18' height='18' x='3' y='3' rx='2'/%3E%3Ccircle cx='9' cy='9' r='2'/%3E%3Cpath d='m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21'/%3E%3C/svg%3E") center / 26px no-repeat;
  opacity: .6;
}
.ph::after {
  content: attr(data-ph);
  position: absolute;
  left: 10px;
  bottom: 10px;
  max-width: calc(100% - 20px);
  padding: 3px 9px;
  border-radius: 99px;
  background: rgba(255, 255, 255, .55);
  color: rgba(27, 36, 34, .72);
  font-size: 11px;
  line-height: 1.5;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ph > img {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------- Услуги (bento) ---------- */
.bento {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 16px;
}

.tile {
  position: relative;
  display: flex;
  min-height: clamp(270px, 27vw, 350px);
  border-radius: var(--radius);
  overflow: hidden;
}
.tile--hair  { grid-column: span 8; }
.tile--nails { grid-column: span 4; }
.tile--brows { grid-column: span 4; }
.tile--kids  { grid-column: span 8; }

.tile__body {
  position: relative;
  z-index: 3;
  max-width: 440px;
  margin-top: auto;
  padding: clamp(22px, 2.6vw, 34px);
}
.tile h3 {
  margin-bottom: 8px;
  font-size: clamp(1.35rem, 2vw, 1.75rem);
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.tile p { font-size: 14.5px; opacity: .82; }

.tile__price {
  display: inline-block;
  margin-top: 16px;
  padding: 5px 12px;
  border-radius: 99px;
  background: rgba(255, 255, 255, .55);
  font-size: 13px;
  font-weight: 600;
}

.tile--photo { color: #fff; }
.tile--photo > .ph { position: absolute; inset: 0; }
.tile--photo::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(180deg, transparent 30%, rgba(12, 32, 29, .66));
}
.tile .ph::after { top: 14px; bottom: auto; left: 14px; }
.tile--photo .tile__price { background: rgba(255, 255, 255, .2); color: #fff; }

.tile--sand  { background: var(--sand); }
.tile--taupe { background: var(--taupe); }
.tile--green { background: var(--green); color: var(--milk); }
.tile--green .tile__body { max-width: 56%; }
.tile--green .tile__price { background: var(--copper); color: var(--green); }

.tile__portrait {
  position: absolute;
  top: 14px;
  right: 14px;
  bottom: 14px;
  width: 38%;
  border-radius: calc(var(--radius) - 8px);
  overflow: hidden;
}

/* Фото в карточке плавно «садится» при появлении */
.js .tile .ph { transform: scale(1.08); transition: transform 1.8s var(--ease); }
.js .tile.is-in .ph { transform: none; }

/* ---------- Цены ---------- */
.prices {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  align-items: start;
}
.price-col {
  padding: clamp(22px, 2.6vw, 32px);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: inset 0 0 0 1px var(--line);
}
.price-col h3 {
  margin-bottom: 12px;
  font-family: var(--f-serif);
  font-style: italic;
  font-weight: 300;
  font-size: 1.75rem;
  letter-spacing: -0.01em;
  color: var(--green);
}
.price-col li {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 11px 0;
  border-top: 1px solid var(--line);
  font-size: 15px;
  line-height: 1.4;
}
.price-col li span { flex: 1; }
.price-col li b {
  font-weight: 600;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

/* =========================================================
   Анкета
   ========================================================= */
.quiz {
  position: relative;
  overflow: hidden;
  padding: clamp(26px, 4.6vw, 64px);
  border-radius: clamp(26px, 3vw, 36px);
  background: var(--green);
  color: var(--milk);
}
.quiz::before {
  content: "";
  position: absolute;
  top: -50px;
  right: -70px;
  width: clamp(240px, 32vw, 400px);
  aspect-ratio: 303 / 317;
  background: url("../img/emblem-copper.png") center / contain no-repeat;
  opacity: .07;
  pointer-events: none;
}

.quiz__head { position: relative; max-width: 660px; }
.quiz__head .eyebrow { color: var(--copper); }
.quiz__head h2 { margin-top: 12px; }
.quiz__head h2 .serif { color: var(--copper); }
.quiz__head p { margin-top: 14px; color: rgba(247, 242, 234, .72); font-size: 15.5px; }

.quiz__grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
  margin-top: clamp(32px, 4vw, 48px);
}

/* Шаги */
.steps {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 28px;
}
.steps__btn {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 6px 14px 6px 7px;
  border: 0;
  border-radius: 99px;
  background: rgba(247, 242, 234, .06);
  color: rgba(247, 242, 234, .62);
  font-size: 14px;
  cursor: pointer;
  transition: background-color .3s, color .3s;
}
.steps__btn span {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(247, 242, 234, .25);
  font-size: 12.5px;
  font-weight: 600;
  transition: background-color .3s, color .3s, box-shadow .3s;
}
.steps__btn:hover { color: var(--milk); }
.steps__btn.is-done span { background: rgba(210, 154, 124, .28); box-shadow: none; color: var(--milk); }
.steps__btn.is-active { background: rgba(247, 242, 234, .14); color: var(--milk); }
.steps__btn.is-active span { background: var(--copper); color: var(--green); box-shadow: none; }

.quiz__viewport { transition: height .45s var(--ease); }

.qstep {
  display: none;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}
.qstep.is-active {
  display: block;
  animation: step-in .55s var(--ease);
}
@keyframes step-in {
  from { opacity: 0; transform: translateX(var(--dir, 18px)); }
}

.qstep legend {
  padding: 0;
  margin-bottom: 6px;
  font-size: clamp(1.4rem, 2.3vw, 1.85rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.qstep__hint {
  margin-bottom: 16px;
  color: rgba(247, 242, 234, .6);
  font-size: 14px;
}
.qstep__hint--gap { margin-top: 26px; }
.qstep__error {
  margin-top: 16px;
  color: #F4C9B3;
  font-size: 14px;
}

/* Чипы */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.chips--solo { margin-top: 20px; }

.chip-group + .chip-group { margin-top: 20px; }
.chip-group__title {
  margin-bottom: 10px;
  color: var(--copper);
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.chip { position: relative; cursor: pointer; }
.chip input {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}
.chip > span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 9px 18px;
  border-radius: 99px;
  border: 1px solid rgba(247, 242, 234, .22);
  font-size: 15px;
  line-height: 1.3;
  user-select: none;
  transition: background-color .25s, border-color .25s, color .25s, transform .2s var(--ease);
}
/* У чекбоксов слева «+», после выбора — «✓» (ширина чипа не меняется) */
.chip input[type="checkbox"] + span { padding-left: 13px; }
.chip input[type="checkbox"] + span::before {
  content: "";
  flex: none;
  width: 14px;
  height: 14px;
  background: currentColor;
  opacity: .55;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E") center / 14px no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E") center / 14px no-repeat;
  transition: opacity .25s, transform .35s var(--ease);
}
.chip input[type="checkbox"]:checked + span::before {
  opacity: 1;
  transform: rotate(360deg);
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
          mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
}
.chip small { font-size: 12.5px; opacity: .6; }
.chip:hover > span { border-color: rgba(247, 242, 234, .5); }
.chip:active > span { transform: scale(.97); }
.chip input:checked + span {
  background: var(--milk);
  border-color: var(--milk);
  color: var(--green);
}
.chip input:focus-visible + span { outline: 2px solid var(--copper); outline-offset: 3px; }
.chip--soft > span { border-style: dashed; }

/* Поля */
.qfield {
  display: grid;
  gap: 8px;
  margin-top: 18px;
}
.qfield[hidden] { display: none; }
.qfield:not([hidden]) { animation: step-in .45s var(--ease); --dir: 0; }
.qfield label { color: rgba(247, 242, 234, .78); font-size: 14px; }
.qfield .optional { opacity: .6; }
.qfield--age input { max-width: 220px; }

.qfield input,
.qfield textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 16px;
  border: 1px solid rgba(247, 242, 234, .22);
  border-radius: 14px;
  background: rgba(247, 242, 234, .06);
  color: var(--milk);
  font: inherit;
  font-size: 16px;
  color-scheme: dark;
  transition: border-color .25s, box-shadow .25s;
}
.qfield textarea { resize: vertical; min-height: 96px; }
.qfield input::placeholder,
.qfield textarea::placeholder { color: rgba(247, 242, 234, .4); }
.qfield input:focus,
.qfield textarea:focus {
  outline: none;
  border-color: var(--copper);
  box-shadow: 0 0 0 3px rgba(210, 154, 124, .25);
}

/* Кнопки шагов */
.quiz__nav {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 32px;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 10px 20px;
  border: 0;
  border-radius: 99px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color .25s, opacity .25s, transform .2s var(--ease);
}
.btn:active { transform: scale(.97); }
.btn svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.btn--ghost {
  background: transparent;
  color: var(--milk);
  box-shadow: inset 0 0 0 1px rgba(247, 242, 234, .25);
}
.btn--ghost:hover { background: rgba(247, 242, 234, .08); }
.btn--ghost:disabled { opacity: .35; cursor: default; }
.btn--ghost:disabled:active { transform: none; }
.btn--light { background: var(--milk); color: var(--green); }
.btn--light:hover { background: #fff; }

/* Окно с сообщением */
.message {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  overflow: hidden;
  border-radius: 22px;
  background: var(--milk);
  color: var(--ink);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .55);
}
.message.is-pulse { animation: pulse 1s var(--ease); }
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(210, 154, 124, .7), 0 30px 60px -30px rgba(0, 0, 0, .55); }
  100% { box-shadow: 0 0 0 16px rgba(210, 154, 124, 0), 0 30px 60px -30px rgba(0, 0, 0, .55); }
}

.message__bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}
.message__bar img {
  width: 40px;
  height: 40px;
  padding: 5px;
  border-radius: 50%;
  background: var(--sand);
  object-fit: contain;
}
.message__bar b { display: block; font-size: 15px; line-height: 1.3; }
.message__bar span { font-size: 12.5px; color: var(--muted); }
.message__bar span.is-ready { color: var(--green); }
.message__bar span.is-ready::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 6px;
  border-radius: 50%;
  background: #3E9B6E;
  vertical-align: 1px;
}

.message__body {
  min-height: 236px;
  padding: 18px 18px 6px;
}
.bubble {
  padding: 14px 16px;
  border-radius: 18px 18px 18px 6px;
  background: #fff;
  box-shadow: 0 1px 0 var(--line), 0 6px 18px -12px rgba(15, 58, 54, .25);
  font-size: 15px;
  line-height: 1.55;
  overflow-wrap: anywhere;
}
.bubble p + p { margin-top: 3px; }
.bubble .msg-hello { margin-bottom: 8px; }
.bubble .k { color: var(--muted); }
.bubble .msg-empty { color: var(--muted); font-style: italic; }
.msg-line.is-new { animation: line-in .5s var(--ease); }
.msg-line.is-changed { animation: line-flash 1s var(--ease); }
@keyframes line-in {
  from { opacity: 0; transform: translateY(6px); }
}
@keyframes line-flash {
  0%   { background-color: rgba(210, 154, 124, .35); }
  100% { background-color: rgba(210, 154, 124, 0); }
}

.message__actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding: 12px 18px 0;
}
.act {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 8px 10px;
  border: 0;
  border-radius: 14px;
  background: var(--sand);
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color .25s, opacity .25s, transform .2s var(--ease);
}
.act:hover { background: #E4D6C3; }
.act:active { transform: scale(.97); }
.act[aria-disabled="true"] { opacity: .45; cursor: not-allowed; }
.act[aria-disabled="true"]:active { transform: none; }

.act__ic {
  flex: none;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.act--copy {
  grid-column: 1 / -1;
  background: var(--green);
  color: var(--milk);
}
.act--copy:hover { background: var(--green-2); }
.act--copy .act__ic--ok { display: none; }
.act--copy.is-done .act__ic--copy { display: none; }
.act--copy.is-done .act__ic--ok { display: block; animation: line-in .35s var(--ease); }

.act--tg .act__ic { color: #229ED9; }
.act--wa .act__ic { color: #1FAF5A; }
.act__vk {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 6px;
  background: #0077FF;
  color: #fff;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: .02em;
}

.message__note {
  padding: 12px 18px 18px;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.5;
}

.quiz__privacy {
  position: relative;
  max-width: 720px;
  margin-top: clamp(24px, 3vw, 36px);
  color: rgba(247, 242, 234, .6);
  font-size: 13px;
  line-height: 1.55;
}

/* =========================================================
   Мастера
   ========================================================= */
.team {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.member .ph {
  height: auto;
  aspect-ratio: 3 / 4;
  border-radius: var(--radius);
}
.member h3 { margin-top: 14px; font-size: 17px; }
.member p { color: var(--muted); font-size: 14px; }

/* =========================================================
   Отзывы
   ========================================================= */
.reviews {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.6fr);
  gap: 16px;
}
.rating {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: clamp(28px, 3.4vw, 44px);
  border-radius: var(--radius);
  background: var(--green);
  color: var(--milk);
}
.rating__score {
  font-family: var(--f-serif);
  font-weight: 300;
  font-size: clamp(5rem, 9vw, 7.5rem);
  line-height: .95;
  letter-spacing: -0.03em;
  color: var(--copper);
}
.rating__stars { display: flex; gap: 4px; margin-top: 10px; }
.rating__stars svg { width: 20px; height: 20px; fill: var(--copper); }
.rating__stars svg.is-part { opacity: .4; }
.rating p {
  margin: 14px 0 28px;
  color: rgba(247, 242, 234, .75);
  font-size: 15px;
}
.rating .pill { margin-top: auto; }

.aspects {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.aspect {
  padding: 24px;
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: inset 0 0 0 1px var(--line);
}
.aspect__top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}
.aspect h3 { font-size: 16px; }
.aspect__top b {
  font-family: var(--f-serif);
  font-weight: 300;
  font-size: 2.1rem;
  line-height: 1;
  color: var(--green);
}
.aspect p { color: var(--muted); font-size: 13.5px; }

.bar {
  height: 4px;
  margin: 16px 0 12px;
  border-radius: 4px;
  background: var(--sand);
  overflow: hidden;
}
.bar i {
  display: block;
  height: 100%;
  background: var(--copper-ink);
  transform-origin: left;
  transform: scaleX(var(--v));
}
.js .bar i { transform: scaleX(0); transition: transform 1.4s var(--ease) .35s; }
.js .is-in .bar i { transform: scaleX(var(--v)); }

.aspect--tags { background: var(--sand); box-shadow: none; }
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}
.tags li {
  padding: 5px 12px;
  border-radius: 99px;
  background: var(--milk);
  font-size: 13.5px;
}

/* =========================================================
   Контакты
   ========================================================= */
.contacts {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 16px;
}
.contacts__info {
  padding: clamp(28px, 4vw, 48px);
  border-radius: var(--radius);
  background: var(--sand);
}
.contacts__info h2 { margin: 12px 0 26px; }

.contacts__list li {
  display: flex;
  gap: 14px;
  padding: 14px 0;
  border-top: 1px solid rgba(27, 36, 34, .1);
}
.contacts__list svg {
  flex: none;
  width: 20px;
  height: 20px;
  margin-top: 2px;
  fill: none;
  stroke: var(--copper-ink);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.contacts__list b { display: block; font-size: 16px; line-height: 1.4; }
.contacts__list span { color: var(--muted); font-size: 13.5px; }

.socials {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}
.socials a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 8px 16px;
  border-radius: 99px;
  background: var(--milk);
  font-size: 14px;
  font-weight: 500;
  transition: background-color .25s;
}
.socials a:hover { background: #fff; }

.amenities {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  margin-top: 24px;
  color: var(--muted);
  font-size: 13.5px;
}
.amenities li { display: flex; align-items: center; gap: 6px; }
.amenities svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.contacts__map {
  position: relative;
  min-height: 440px;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--sand);
}
.contacts__map iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* =========================================================
   Подвал
   ========================================================= */
.footer {
  margin-top: clamp(88px, 10vw, 130px);
  padding: 56px 0 40px;
  border-radius: 36px 36px 0 0;
  background: var(--green);
  color: rgba(247, 242, 234, .75);
}
.footer__inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 40px;
}
.footer__logo { width: 150px; height: auto; }
.footer__nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 26px;
  font-size: 14.5px;
}
.footer__nav a { color: var(--milk); opacity: .8; transition: opacity .2s; }
.footer__nav a:hover { opacity: 1; }
.footer__meta {
  display: grid;
  gap: 4px;
  text-align: right;
  font-size: 14px;
}
.footer__meta a { color: var(--milk); font-weight: 500; }

/* Дисклеймер демо-версии */
.footer__disclaimer {
  margin-top: 36px;
  padding-top: 22px;
  border-top: 1px solid rgba(247, 242, 234, .12);
  color: rgba(247, 242, 234, .55);
  font-size: 12.5px;
  line-height: 1.6;
  text-align: center;
  text-wrap: balance;
}

/* ---------- Уведомление ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 90;
  max-width: calc(100vw - 32px);
  padding: 12px 18px;
  border-radius: 14px;
  background: var(--ink);
  color: var(--milk);
  font-size: 14px;
  opacity: 0;
  transform: translate(-50%, 16px);
  pointer-events: none;
  transition: opacity .3s var(--ease), transform .4s var(--ease);
}
.toast.is-show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Появление при прокрутке ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .9s var(--ease), transform 1.1s var(--ease);
  transition-delay: calc(var(--d, 0) * 90ms);
}
.js .reveal.is-in { opacity: 1; transform: none; }

/* =========================================================
   Адаптив
   ========================================================= */
@media (max-width: 1080px) {
  .header__nav { gap: 22px; }
}

@media (max-width: 959px) {
  :root { --header-h: 64px; }

  .header__inner { grid-template-columns: 1fr auto; }
  .header__nav { display: none; }
  .brand { justify-self: start; }
  .burger { display: block; justify-self: end; }
  .brand__emblem { height: 36px; }
  .brand__word { height: 13px; }

  /* Дуга из фото листается пальцем. Объём считает js:
     --pos — расстояние карточки от центра экрана (в карточках, со знаком), --dist — то же без знака */
  .arc {
    --card-w: min(32vw, 220px);
    position: relative;
    justify-content: flex-start;
    gap: calc(var(--card-w) * .1);
    height: auto;
    margin-top: clamp(12px, 3vw, 32px);
    padding: calc(var(--card-w) * .3) calc(50% - var(--card-w) / 2);
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    perspective: calc(var(--card-w) * 4);
    -webkit-user-select: none;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
  }
  .arc img { -webkit-user-drag: none; pointer-events: none; }
  .arc::-webkit-scrollbar { display: none; }

  .arc__card,
  .js .arc__card,
  .is-ready .arc__card {
    width: var(--card-w);
    height: calc(var(--card-w) * 1.3);
    border-radius: 18px;
    scroll-snap-align: center;
    transform: rotateY(calc(var(--pos, 0) * -19deg)) scale(calc(1 + var(--dist, 0) * .09));
  }
  /* Появление — отдельным свойством translate, чтобы не мешать повороту при листании */
  .js .arc__card { translate: 0 30px; }
  .is-ready .arc__card {
    translate: none;
    transition:
      opacity 1s var(--ease) calc(.35s + var(--a) * .09s),
      translate 1.3s var(--ease) calc(.35s + var(--a) * .09s);
  }

  .tile--hair, .tile--kids { grid-column: span 12; }
  .tile--nails, .tile--brows { grid-column: span 6; }

  .prices { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .price-col:last-child { grid-column: span 2; }

  .quiz__grid { grid-template-columns: 1fr; }
  .message { position: relative; top: 0; }
  .message__body { min-height: 0; }

  .team { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .reviews { grid-template-columns: 1fr; }
  .contacts { grid-template-columns: 1fr; }

  .footer__inner { grid-template-columns: 1fr; justify-items: center; text-align: center; gap: 28px; }
  .footer__meta { text-align: center; }
}

/* Меню на десктопе не показываем никогда */
@media (min-width: 960px) {
  .mmenu { display: none !important; }
}

@media (max-width: 719px) {
  .hero { padding-top: calc(var(--header-h) + 40px); }
  .hero__lead { font-size: 15.5px; }

  .perks { grid-template-columns: 1fr; max-width: 420px; }
  .perk { padding: 22px 8px 0; }
  .perk + .perk { border-left: 0; border-top: 1px solid var(--line); margin-top: 22px; }

  .bento { gap: 12px; }
  .tile { min-height: 230px; }
  .tile--hair { min-height: 320px; }
  .tile--nails, .tile--brows { grid-column: span 12; }
  .tile--kids { flex-direction: column; }
  .tile--green .tile__body { max-width: none; }
  .tile__portrait {
    position: relative;
    inset: auto;
    width: auto;
    height: 220px;
    margin: 12px 12px 0;
  }

  .prices { grid-template-columns: 1fr; }
  .price-col:last-child { grid-column: auto; }

  /* На телефоне название видно только у активного шага */
  .steps { flex-wrap: nowrap; }
  .steps__btn { gap: 0; padding: 6px; font-size: 0; }
  .steps__btn span { font-size: 12.5px; }
  .steps__btn.is-active { gap: 8px; padding-right: 14px; font-size: 14px; }

  .chip > span { padding: 9px 15px; font-size: 14.5px; }

  .message__actions { grid-template-columns: 1fr 1fr; }
  .act--vk { grid-column: 1 / -1; }

  .team { gap: 12px; }
  .member .ph { border-radius: 18px; }

  .aspects { grid-template-columns: 1fr; }

  .contacts__map { min-height: 340px; }
}

/* Уважение к настройке «уменьшить движение» */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    transition-delay: 0s !important;
  }
}
