/* Таисия | Маникюр. Цвета сняты с флаера мастера (docs/КОНТЕНТ.md → Бренд) */
:root {
  --paper: #FCF6FF;      /* основной фон, осветленный лиловый флаера */
  --lilac: #F5DBFE;      /* светлый фон флаера */
  --orchid: #D282F5;     /* сиреневые капли на флаере */
  --violet: #6522B8;     /* флакон и логотип — главный акцент, кнопки */
  --violet-dk: #521A98;
  --plum: #3A1049;       /* текст, темнее заголовков флаера #4D1762 для контраста */
  --plum-soft: #6B4A78;  /* второстепенный текст */
  --line: #E6CCF3;
  --white: #FFFFFF;

  --f-name: 'Rubik Dirt', 'Rubik', system-ui, sans-serif;
  --f-head: 'Rubik', system-ui, sans-serif;      /* цифры в кнопках дней, шагах, стрелках */
  --f-display: 'Tenor Sans', 'Manrope', system-ui, sans-serif; /* заголовки (выбор Никиты 21.09.2026, вариант 4); у шрифта одно начертание 400 — жирнее не ставить, браузер нарисует фальшивый bold */
  --f-body: 'Manrope', system-ui, sans-serif;
  --f-script: 'Marck Script', cursive;


  --r: 22px;
  --wrap: 1760px;
  --pad: clamp(16px, 4.5vw, 88px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 92px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--plum);
  font: 400 18px/1.55 var(--f-body);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--violet); }
:focus-visible { outline: 3px solid var(--orchid); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--pad); }

/* ---------- шапка ---------- */
.top { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--paper) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top__in { display: flex; align-items: center; gap: 28px; height: 76px; }
.brand { text-decoration: none; color: var(--violet); display: flex; align-items: center; gap: 10px; line-height: 1; }
.brand__logo { height: 60px; width: auto; display: block; }
.brand__text { display: flex; flex-direction: column; }
.brand__script { font: 32px/0.9 var(--f-script); }
.brand__sub { font: 600 11px/1 var(--f-body); letter-spacing: .14em; text-transform: uppercase; color: var(--plum-soft); margin-top: 2px; }
.top__nav { display: flex; gap: 22px; margin-left: auto; }
.top__nav a { color: var(--plum); text-decoration: none; font-weight: 500; font-size: 16px; }
.top__nav a:hover { color: var(--violet); }
.top__phone { color: var(--plum); font-weight: 700; text-decoration: none; font-size: 16px; white-space: nowrap; }

/* ---------- кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--violet); color: var(--white); border: 0; cursor: pointer;
  font: 700 18px/1 var(--f-body); padding: 18px 28px; border-radius: 999px;
  text-decoration: none; transition: background .15s, transform .15s;
}
.btn:hover { background: var(--violet-dk); }
.btn:active { transform: scale(.98); }
.btn--small { padding: 12px 20px; font-size: 16px; }
.btn--wide { width: 100%; }
.linklike { background: none; border: 0; padding: 0; color: var(--violet); font: 600 16px var(--f-body); text-decoration: underline; cursor: pointer; }

/* ---------- главный экран ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(28px, 5vw, 64px) 0 clamp(48px, 7vw, 96px); }
.hero::before { /* фото-фон: рука на шелке (материалы/фоны-syntx), слева растворяется в фон страницы */
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(90deg, var(--paper) 0%, color-mix(in srgb, var(--paper) 88%, transparent) 38%, color-mix(in srgb, var(--paper) 35%, transparent) 100%),
    url(bg/bg1.webp) right center / cover no-repeat;
}
.hero__grid > * { min-width: 0; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(360px, .75fr); gap: clamp(28px, 4vw, 88px); align-items: start; }
.eyebrow { margin: 0 0 8px; font: 600 15px/1.3 var(--f-body); letter-spacing: .04em; color: var(--plum-soft); }
.hero__name {
  margin: 0; font: 400 clamp(76px, 9vw, 190px)/.9 var(--f-name); color: var(--violet);
  letter-spacing: -.01em; margin-left: -.04em;
}
.hero__lead { font: 500 clamp(19px, 2.2vw, 24px)/1.35 var(--f-body); margin: 18px 0 26px; text-wrap: pretty; }
/* на компьютере одной строкой: кегль привязан к ширине колонки (строка ≈ 36,6 кегля, колонка ≈ 54 % экрана), на планшете и телефоне переносится сама */
@media (min-width: 1280px) { .hero__lead { white-space: nowrap; font-size: min(1.4vw, 25px); } }
.hero__facts { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: 16px; color: var(--plum-soft); }
.hero__facts b { color: var(--plum); font-weight: 700; }

/* карусель работ в главном экране */
.carousel--hero { margin-top: clamp(28px, 3vw, 48px); }
.hero__works-title { margin: 0 0 4px; font: 700 15px/1 var(--f-body); letter-spacing: .08em; text-transform: uppercase; color: var(--plum-soft); }
.carousel--hero .work { flex-basis: clamp(170px, 13vw, 250px); }
.carousel--hero .carousel__btn { top: calc(50% + 10px); }
.carousel--hero .carousel__btn--prev { left: 6px; }
.carousel--hero .carousel__btn--next { right: 6px; }

/* ---------- форма записи ---------- */
.book {
  background: var(--white); border-radius: 28px; padding: clamp(20px, 3vw, 32px);
  box-shadow: 0 30px 60px -30px rgba(101,34,184,.35), 0 0 0 1px var(--line);
  position: relative;
}
.book__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 6px; }
.book__title { margin: 0; font: 400 32px/1.1 var(--f-display); }
.book__promo { margin: 0; font-size: 15px; color: var(--plum-soft); }
.book__promo b { color: var(--violet); font-size: 18px; }
.book__step { border: 0; padding: 0; margin: 18px 0 0; min-width: 0; }
.book__step legend { font: 700 14px/1 var(--f-body); letter-spacing: .08em; text-transform: uppercase; color: var(--plum-soft); margin-bottom: 10px; padding: 0; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  border: 1.5px solid var(--line); background: var(--paper); color: var(--plum);
  font: 600 15px/1.2 var(--f-body); padding: 10px 14px; border-radius: 999px; cursor: pointer;
  transition: border-color .15s, background .15s;
}
.chip small { font-weight: 500; color: var(--plum-soft); margin-left: 4px; }
.chip:hover { border-color: var(--orchid); }
.chip[aria-checked="true"] { background: var(--violet); border-color: var(--violet); color: var(--white); }
.chip[aria-checked="true"] small { color: var(--lilac); }
.chip:disabled { opacity: .35; cursor: not-allowed; text-decoration: line-through; }
.chips--time .chip { min-width: 72px; justify-content: center; }
.chips__empty { font-size: 15px; color: var(--plum-soft); margin: 0; }

.days { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.day {
  flex: 0 0 64px; scroll-snap-align: start; border: 1.5px solid var(--line); background: var(--paper);
  border-radius: 18px; padding: 8px 0 10px; cursor: pointer; color: var(--plum); text-align: center;
  font-family: var(--f-body); transition: border-color .15s, background .15s;
}
.day span { display: block; font-size: 13px; font-weight: 600; color: var(--plum-soft); text-transform: lowercase; }
.day b { display: block; font: 700 22px/1.2 var(--f-head); }
.day:hover { border-color: var(--orchid); }
.day[aria-checked="true"] { background: var(--violet); border-color: var(--violet); color: var(--white); }
.day[aria-checked="true"] span { color: var(--lilac); }
.day:disabled { opacity: .35; cursor: not-allowed; }

.book__who { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 20px; }
.field span { display: block; font: 700 14px/1 var(--f-body); letter-spacing: .08em; text-transform: uppercase; color: var(--plum-soft); margin-bottom: 8px; }
.field input {
  width: 100%; font: 500 18px var(--f-body); color: var(--plum); padding: 14px 16px;
  border: 1.5px solid var(--line); border-radius: 14px; background: var(--paper);
}
.field input:focus { outline: none; border-color: var(--violet); background: var(--white); }
.field input[aria-invalid="true"] { border-color: #C0266B; }
.book__summary { margin: 18px 0 12px; font: 600 16px/1.4 var(--f-body); color: var(--plum); min-height: 1.4em; }
.book__error { margin: -4px 0 12px; color: #B01F5E; font-weight: 600; font-size: 15px; }
.book__error:empty { display: none; }
.book__note { margin: 12px 0 0; font-size: 15px; color: var(--plum-soft); text-align: center; }

.book__done {
  /* после отправки форма прячет поля и сжимается до этой карточки — без пустых полей сверху и снизу */
  margin: calc(-1 * clamp(20px, 3vw, 32px)); border-radius: 28px; padding: clamp(28px, 5vw, 48px) clamp(20px, 4vw, 40px);
  background: radial-gradient(120% 60% at 50% 0%, var(--lilac) 0%, var(--white) 70%);
  display: flex; justify-content: center;
  animation: done-in .35s ease-out both;
}
.book__done[hidden] { display: none; }
.book.is-done > :not(.book__done) { display: none; }
.done__in { width: 100%; max-width: 440px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 14px; }
.done__mark {
  width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center;
  background: var(--violet); color: var(--white);
  box-shadow: 0 0 0 10px color-mix(in srgb, var(--violet) 12%, transparent), 0 18px 36px -14px rgba(101,34,184,.6);
  animation: done-pop .45s .1s cubic-bezier(.2,1.4,.4,1) both;
}
.book__done-title { font: 400 clamp(32px, 3.6vw, 40px)/1.1 var(--f-display); color: var(--violet); margin: 6px 0 0; }
.book__done-title:focus { outline: none; }
.done__text { margin: 0; font-size: 16px; line-height: 1.5; color: var(--plum-soft); max-width: 36ch; }
.done__card { width: 100%; margin: 6px 0 0; padding: 6px 18px; background: var(--white); border: 1.5px solid var(--line); border-radius: 20px; text-align: left; }
.done__card:empty { display: none; }
.done__row { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 11px 0; }
.done__row + .done__row { border-top: 1px solid var(--line); }
.done__row dt { font: 600 13px/1.2 var(--f-body); letter-spacing: .06em; text-transform: uppercase; color: var(--plum-soft); white-space: nowrap; }
.done__row dd { margin: 0; font: 700 16px/1.3 var(--f-body); color: var(--plum); text-align: right; }
.done__actions { width: 100%; display: flex; flex-direction: column; gap: 10px; margin-top: 4px; }
.done__actions:empty { display: none; }
.done__pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.done__in .btn { gap: 10px; }
.done__pair .btn { min-width: 0; padding-inline: 12px; }
.btn--soft { background: var(--lilac); color: var(--violet); }
.btn--soft:hover { background: color-mix(in srgb, var(--lilac) 70%, var(--orchid)); }
.btn--ghost { background: transparent; color: var(--violet); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn--ghost:hover { background: var(--paper); box-shadow: inset 0 0 0 1.5px var(--orchid); }
@keyframes done-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes done-pop { from { transform: scale(.4); opacity: 0; } to { transform: scale(1); opacity: 1; } }

/* ---------- секции ---------- */
.section { padding: clamp(56px, 8vw, 104px) 0; }
.section--tint { background: var(--lilac); }
.section--deep { background: var(--plum); color: var(--lilac); }
.h2 { font: 400 clamp(32px, 4.4vw, 56px)/1.08 var(--f-display); margin: 0 0 clamp(24px, 4vw, 44px); letter-spacing: -.005em; }
.h2--light { color: var(--white); }
.h3 { font: 400 26px/1.2 var(--f-display); margin: clamp(48px, 6vw, 72px) 0 20px; }
.h3--tight { margin-top: 32px; }

/* популярные услуги */
.popular { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: clamp(16px, 1.5vw, 28px); }
.card { background: var(--white); border-radius: var(--r); padding: 22px; overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 0 0 1px var(--line); }
.card__img { max-width: none; width: calc(100% + 44px); margin: -22px -22px 18px; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--r) var(--r) 0 0; }
.card h3 { font: 400 24px/1.2 var(--f-display); margin: 0 0 8px; }
.card__meta { display: flex; gap: 14px; align-items: baseline; margin-bottom: 12px; }
.card__price { font: 400 28px/1 var(--f-display); color: var(--violet); }
.card__time { font-size: 15px; color: var(--plum-soft); }
.card p { margin: 0 0 18px; font-size: 16px; color: var(--plum-soft); flex: 1; }
.card__variants { list-style: none; padding: 0; margin: -6px 0 16px; font-size: 15px; }
.card__variants li { display: flex; justify-content: space-between; border-bottom: 1px dashed var(--line); padding: 5px 0; }
.card .btn { align-self: flex-start; }

/* прайс */
.price { border-top: 2px solid var(--plum); }
.price__row { display: grid; grid-template-columns: 1fr auto auto; gap: 8px 28px; align-items: baseline; padding: 18px 0; border-bottom: 1px solid var(--line); }
.price__name { font: 700 19px/1.3 var(--f-body); }
.price__inc { grid-column: 1 / -1; margin: 0; font-size: 15px; color: var(--plum-soft); max-width: 70ch; }
.price__time { font-size: 15px; color: var(--plum-soft); white-space: nowrap; }
.price__cost { font: 400 21px var(--f-display); color: var(--violet); white-space: nowrap; text-align: right; }
.price__tag { font: 600 12px/1 var(--f-body); letter-spacing: .06em; text-transform: uppercase; background: var(--lilac); color: var(--violet); padding: 4px 8px; border-radius: 99px; margin-left: 8px; vertical-align: 2px; }

/* принципы */
.principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.principle { background: var(--paper); border-radius: var(--r); padding: clamp(28px, 3vw, 44px); }
.principle h3 { font: 400 clamp(26px, 2.3vw, 34px)/1.1 var(--f-display); color: var(--violet); margin: 0 0 14px; }
.principle p { margin: 0; max-width: 40ch; font-size: 17px; }

/* о мастере */
.master { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.master__photo { margin: 0; }
.master__photo img { width: 100%; max-width: 520px; aspect-ratio: 4/5; object-fit: cover; object-position: 60% 40%; border-radius: var(--r); }
.master__quote { font: 500 clamp(21px, 2.2vw, 26px)/1.45 var(--f-body); margin: 0; }
.master__sign { font: 44px/1 var(--f-script); color: var(--violet); margin: 10px 0 0; }
.schools { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 24px; }
.schools li { display: flex; flex-direction: column; position: relative; padding-left: 22px; }
.schools li::before { content: ""; position: absolute; left: 0; top: 7px; width: 10px; height: 10px; background: var(--orchid); border-radius: 50%; }
.schools span { font-size: 15px; color: var(--plum-soft); }

/* сертификаты: ровные листы в сиреневых рамках, как настоящие рамки на стене у Таисии */
.certs { align-items: flex-start; gap: 22px; }
.cert { --h: 250px; flex: 0 0 auto; scroll-snap-align: start; background: none; border: 0; padding: 0; text-align: left; cursor: zoom-in; color: var(--plum); font-family: var(--f-body); }
.cert--v { width: calc(var(--h) / 1.414 + 28px); }
.cert--h { width: calc(var(--h) * 1.414 + 28px); }
.frame {
  display: block; padding: 16px; border-radius: 10px;
  background:
    linear-gradient(135deg, rgba(255,255,255,.7) 0%, rgba(255,255,255,.15) 22%, rgba(255,255,255,0) 45%),
    linear-gradient(315deg, rgba(80,30,120,.35) 0%, rgba(80,30,120,0) 35%),
    linear-gradient(180deg, #CFAAE6, #B98ED4);
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,.6),
    inset 2px 2px 1px rgba(255,255,255,.55),
    inset -2px -2px 2px rgba(90,40,130,.35),
    0 2px 0 rgba(120,70,160,.35),
    0 16px 28px -16px rgba(58,16,73,.6);
  transition: transform .2s;
}
.frame img {
  display: block; width: 100%; height: var(--h); object-fit: cover; border-radius: 2px;
  /* внутренний бортик рамки: темная кромка + светлая фаска */
  box-shadow: 0 0 0 2px #A57AC2, 0 0 0 4px rgba(255,255,255,.45), inset 0 0 8px rgba(0,0,0,.18);
}
.cert .frame { transition: transform .35s cubic-bezier(.2,.8,.2,1); }
.cert b { display: block; font-size: 15px; font-weight: 700; line-height: 1.3; margin-top: 12px; }
.cert__school { display: block; font-size: 13px; color: var(--plum-soft); margin-top: 2px; }
@media (max-width: 640px) { .cert { --h: 200px; } .certs { gap: 16px; } }

/* шаги */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: s; }
.steps li { counter-increment: s; position: relative; padding-top: 58px; }
.steps li::before { content: counter(s); position: absolute; top: 0; left: 0; width: 44px; height: 44px; display: grid; place-items: center; background: var(--violet); color: var(--white); font: 800 20px var(--f-head); border-radius: 50%; }
.steps li:not(:last-child)::after { content: ""; position: absolute; top: 22px; left: 56px; right: -8px; border-top: 2px dotted var(--orchid); }
.steps h3 { font: 400 22px/1.2 var(--f-display); margin: 0 0 6px; }
.steps p { margin: 0; font-size: 16px; }

/* вопросы */
.faq-wrap { max-width: 1100px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 20px; align-items: center; padding: 20px 0; font: 700 19px/1.35 var(--f-body); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: 0 0 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; background: var(--lilac); color: var(--violet); font: 500 24px/1 var(--f-head); transition: transform .2s, background .2s; }
.faq details[open] summary::after { transform: rotate(45deg); background: var(--violet); color: var(--white); }
.faq summary:hover { color: var(--violet); }
.faq details p { margin: 0 0 22px; max-width: 68ch; color: var(--plum-soft); }

/* контакты */
.contacts { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.contacts__addr { font-style: normal; font-size: 21px; line-height: 1.5; color: var(--white); }
.contacts__map { display: inline-block; margin-top: 18px; color: var(--orchid); font-weight: 700; }
.contacts__ways { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.way { display: flex; flex-direction: column; gap: 4px; padding: 18px 20px; border-radius: 18px; background: rgba(255,255,255,.07); color: var(--white); text-decoration: none; transition: background .15s; }
.way span { font-size: 14px; color: var(--orchid); font-weight: 600; }
.way b { font-size: 18px; }
.way:hover { background: rgba(255,255,255,.14); }
.way--main { background: var(--violet); }
.way--main span { color: var(--lilac); }
.way--main:hover { background: var(--violet-dk); }

.foot { background: var(--plum); color: var(--plum-soft); border-top: 1px solid rgba(255,255,255,.08); }
.foot__in { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 22px; padding-bottom: 22px; font-size: 14px; color: #B89BC4; }

/* просмотр сертификата */
.viewer { border: 0; padding: 0; background: transparent; max-width: min(92vw, 760px); }
.viewer::backdrop { background: rgba(38,8,48,.82); }
.viewer img { max-height: 80vh; width: auto; margin: 0 auto; border-radius: 12px; }
.viewer--cert img { max-height: 76vh; border-radius: 2px; padding: 18px; background: linear-gradient(135deg, rgba(255,255,255,.55), rgba(255,255,255,0) 38%), linear-gradient(315deg, rgba(90,40,130,.28), rgba(90,40,130,0) 40%), #C39BDB; box-shadow: inset 3px 3px 0 rgba(255,255,255,.35), inset -3px -3px 0 rgba(110,60,150,.25); border-radius: 8px; }
.viewer p { color: var(--white); text-align: center; font-weight: 600; margin: 12px 0 0; }
.viewer__close { position: fixed; top: 16px; right: 16px; width: 48px; height: 48px; border-radius: 50%; border: 0; background: var(--white); color: var(--plum); font-size: 28px; cursor: pointer; }

/* вся карточка — ссылка: кнопка растягивает кликабельную область */
.card--link { position: relative; transition: box-shadow .2s, transform .2s; }
.card--link:hover { box-shadow: 0 0 0 2px var(--orchid); transform: translateY(-2px); }
.card__cta::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.more { display: inline-block; margin-top: 22px; font-weight: 700; }

/* работы: плотная мозаика, фото открываются крупно */
/* карусели: работы и сертификаты. Листаются свайпом, колесом и стрелками */
.section--works { padding-top: clamp(24px, 4vw, 48px); }
.carousel { position: relative; }
.carousel__track { display: flex; gap: 18px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-inline: 24px; scroll-behavior: smooth; padding: 28px 24px 64px; margin: -28px -24px -64px; /* запас под увеличение и тень при наведении: лента с прокруткой обрезает все, что за ее отступами */ scrollbar-width: none; }
.carousel__track::-webkit-scrollbar { display: none; }
.carousel__track:focus-visible { outline: 3px solid var(--orchid); outline-offset: -3px; border-radius: 22px; }
.carousel__btn {
  position: absolute; top: 50%; z-index: 3; width: 52px; height: 52px; margin-top: -26px; border-radius: 50%; border: 0;
  background: var(--white); color: var(--violet); font: 400 34px/1 var(--f-head); cursor: pointer;
  box-shadow: 0 10px 24px -10px rgba(58,16,73,.45), 0 0 0 1px var(--line); transition: opacity .2s, transform .2s;
}
.carousel__btn--prev { left: -26px; padding-right: 4px; }
.carousel__btn--next { right: -26px; padding-left: 4px; }
.carousel__btn:hover { transform: scale(1.06); }
.carousel__btn:disabled { opacity: 0; pointer-events: none; }
.carousel--certs .carousel__btn { top: 150px; }

.work { flex: 0 0 clamp(220px, 23vw, 290px); aspect-ratio: 4 / 5; scroll-snap-align: start; padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: 20px; position: relative; transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s; }
.work img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
@media (hover: hover) and (pointer: fine) {
  .work:hover { transform: scale(1.1); z-index: 2; box-shadow: 0 24px 40px -18px rgba(58,16,73,.55); }
  .cert:hover .frame { transform: scale(1.06); }
}

.contacts__hours { margin: 16px 0 0; color: var(--lilac); font-size: 17px; }
.foot__brand { display: inline-flex; align-items: center; gap: 10px; }
.foot__brand img { opacity: .8; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.consent { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; margin: 18px 0 0; font-size: 14px; line-height: 1.45; color: var(--plum-soft); cursor: pointer; }
.consent input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--violet); cursor: pointer; }
.consent a { color: var(--violet); }
.consent.is-invalid span { color: #B01F5E; }
.foot__links a { color: #D9C4E3; }

/* плавное раскрытие ответа */
.faq details::details-content { block-size: 0; overflow: hidden; transition: block-size .3s, content-visibility .3s allow-discrete; }
.faq details[open]::details-content { block-size: auto; }
.faq { interpolate-size: allow-keywords; }

/* плавающая кнопка записи с пульсом, как у ilike-nails */
.fab {
  position: fixed; right: 28px; bottom: 28px; z-index: 30; width: 104px; height: 104px; border-radius: 50%;
  display: grid; place-items: center; text-align: center; background: var(--violet); color: var(--white);
  font: 700 15px/1.15 var(--f-body); text-decoration: none; box-shadow: 0 16px 30px -12px rgba(101,34,184,.7);
  opacity: 0; transform: scale(.6); pointer-events: none; transition: opacity .25s, transform .25s;
}
.fab.is-on { opacity: 1; transform: none; pointer-events: auto; }
.fab::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--orchid); animation: pulse 2s ease-out infinite; }
.fab:hover { background: var(--violet-dk); }
@keyframes pulse { from { transform: scale(1); opacity: .9; } to { transform: scale(1.45); opacity: 0; } }

.dock { display: none; }

/* ---------- адаптив ---------- */
@media (max-width: 1020px) {
  .top__nav { display: none; }
  .top__phone { margin-left: auto; }
  .hero__grid, .master, .contacts { grid-template-columns: 1fr; }
  .principles { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; gap: 32px 20px; }
  .steps li::after { display: none; }
}
@media (max-width: 640px) {
  body { font-size: 17px; }
  .top__in { gap: 12px; height: 64px; }
  .brand__logo { height: 46px; }
  .top__phone { margin-left: auto; font-size: 15px; }
  .brand__script { font-size: 28px; }
  .hero::before { width: 120vw; right: -40%; height: 60%; }
  .hero__facts { gap: 4px 16px; }
  .principles, .steps, .contacts__ways, .schools { grid-template-columns: 1fr; }
  .work { flex-basis: 72vw; border-radius: 16px; }
  .carousel__btn { display: none; } /* на телефоне листают пальцем */
  .carousel__track { gap: 12px; }
  /* популярные услуги — карусель, край следующей карточки выглядывает */
  .popular { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; margin: 0 calc(var(--pad) * -1); padding: 4px var(--pad) 12px; scroll-padding: 0 var(--pad); }
  .popular .card { flex: 0 0 82%; scroll-snap-align: start; }
  .card--link:hover { transform: none; }
  .fab { display: none; }
  .dock {
    display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
    background: color-mix(in srgb, var(--white) 94%, transparent); backdrop-filter: blur(10px);
    border-top: 1px solid var(--line); padding: 8px 8px calc(8px + env(safe-area-inset-bottom));
  }
  .dock a { display: grid; place-items: center; min-height: 44px; font: 600 14px var(--f-body); color: var(--plum); text-decoration: none; border-radius: 12px; }
  .dock .dock__main { background: var(--violet); color: var(--white); font-weight: 700; }
  body { padding-bottom: 72px; }
  .book__who { grid-template-columns: 1fr; }
  .price__row { grid-template-columns: 1fr auto; gap: 4px 16px; }
  .price__cost { grid-column: 1 / -1; grid-row: 2; text-align: left; white-space: normal; }
  .price__time { grid-column: 2; grid-row: 1; }
  .price__inc { grid-row: 3; }
  .master__photo img { max-width: 100%; }
}

.toast { position: fixed; left: 50%; bottom: 96px; transform: translateX(-50%); z-index: 50; max-width: min(92vw, 460px); background: var(--plum); color: var(--white); padding: 14px 18px; border-radius: 14px; font-size: 15px; box-shadow: 0 16px 30px -12px rgba(0,0,0,.4); }
.toast[hidden] { display: none; }


/* ---------- фото-фоны блоков (сгенерированы в syntx, лежат в assets/bg) ---------- */
.section--photo { position: relative; isolation: isolate; overflow: hidden; }
.section--photo::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background-repeat: no-repeat; background-size: cover; }

/* принципы: жемчужный хром, карточки — матовое стекло */
#principles::before {
  background-image: linear-gradient(180deg, color-mix(in srgb, var(--lilac) 70%, transparent), color-mix(in srgb, var(--lilac) 45%, transparent)), url(bg/bg3.webp);
  background-position: center, center 60%;
}
#principles .principle { background: color-mix(in srgb, var(--white) 72%, transparent); backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2); box-shadow: 0 0 0 1px rgba(255,255,255,.7), 0 24px 48px -30px rgba(58,16,73,.35); }

/* как проходит запись: руки с орхидеей справа, шаги — плашки */
#steps::before {
  background-image: linear-gradient(90deg, var(--lilac) 0%, color-mix(in srgb, var(--lilac) 80%, transparent) 45%, color-mix(in srgb, var(--lilac) 25%, transparent) 100%), url(bg/bg2.webp);
  background-position: center, right center;
}
#steps .steps li { background: color-mix(in srgb, var(--white) 72%, transparent); backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2); box-shadow: 0 0 0 1px rgba(255,255,255,.7), 0 24px 48px -30px rgba(58,16,73,.35); border-radius: var(--r); padding: 88px 24px 26px; }
#steps .steps li::before { top: 24px; left: 24px; }
#steps .steps li::after { display: none; }

/* контакты: сливовые ногти на бархате */
#contacts::before {
  background-image: linear-gradient(90deg, var(--plum) 0%, color-mix(in srgb, var(--plum) 85%, transparent) 40%, color-mix(in srgb, var(--plum) 45%, transparent) 100%), url(bg/bg4.webp);
  background-position: center, right center;
}
#contacts .way { backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }

@media (max-width: 900px) {
  .hero::before { background: linear-gradient(180deg, color-mix(in srgb, var(--paper) 55%, transparent) 0%, var(--paper) 55%), url(bg/bg1-s.webp) 70% top / auto 520px no-repeat; }
  #principles::before { background-image: linear-gradient(180deg, color-mix(in srgb, var(--lilac) 75%, transparent), color-mix(in srgb, var(--lilac) 55%, transparent)), url(bg/bg3-s.webp); background-size: cover, auto 100%; }
  #steps::before { background-image: linear-gradient(180deg, color-mix(in srgb, var(--lilac) 40%, transparent) 0%, var(--lilac) 45%), url(bg/bg2-s.webp); background-size: cover, auto 480px; background-position: center, 75% top; }
  #contacts::before { background-image: linear-gradient(180deg, color-mix(in srgb, var(--plum) 55%, transparent) 0%, var(--plum) 50%), url(bg/bg4-s.webp); background-size: cover, auto 440px; background-position: center, 75% top; }
  /* на телефонах без размытия под плашками — оно дорогое для видеокарты, плотный полупрозрачный белый выглядит почти так же */
  #principles .principle, #steps .steps li, #contacts .way { backdrop-filter: none; -webkit-backdrop-filter: none; }
  #principles .principle, #steps .steps li { background: color-mix(in srgb, var(--white) 86%, transparent); }
}
