/* HAIRLAB — общие стили главной и страниц процедур */
@font-face { font-family: 'Unbounded'; font-weight: 300; font-display: swap; src: url(/fonts/unbounded-cyrillic-300-normal.woff2) format('woff2'); unicode-range: U+0400-04FF; }
@font-face { font-family: 'Unbounded'; font-weight: 300; font-display: swap; src: url(/fonts/unbounded-latin-300-normal.woff2) format('woff2'); unicode-range: U+0000-03FF, U+2000-206F, U+20A0-20CF, U+2190-21FF; }
@font-face { font-family: 'Unbounded'; font-weight: 400; font-display: swap; src: url(/fonts/unbounded-cyrillic-400-normal.woff2) format('woff2'); unicode-range: U+0400-04FF; }
@font-face { font-family: 'Unbounded'; font-weight: 400; font-display: swap; src: url(/fonts/unbounded-latin-400-normal.woff2) format('woff2'); unicode-range: U+0000-03FF, U+2000-206F, U+20A0-20CF, U+2190-21FF; }
@font-face { font-family: 'Unbounded'; font-weight: 500; font-display: swap; src: url(/fonts/unbounded-cyrillic-500-normal.woff2) format('woff2'); unicode-range: U+0400-04FF; }
@font-face { font-family: 'Unbounded'; font-weight: 500; font-display: swap; src: url(/fonts/unbounded-latin-500-normal.woff2) format('woff2'); unicode-range: U+0000-03FF, U+2000-206F, U+20A0-20CF, U+2190-21FF; }

/* Палитра бренда (от SMM): нежно-зелёный, оливковый, коричневый, пудрово-розовый, молочный, солнечный + белый и чёрный */
:root {
  --sage: #DCE5D5; --olive: #2B3226; --brown: #42291F; --powder: #CC8A9D;
  --milk: #F2EBD1; --sun: #EFB552; --white: #FFFFFF; --ink: #171815;
  --muted: #5E6158; --line: rgba(23,24,21,.14);
  --font: 'Unbounded', system-ui, sans-serif;
  --wrap: min(1200px, 100% - 40px);
  --head: 76px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: var(--head); }
body { font-family: var(--font); font-weight: 300; font-size: 15px; line-height: 1.7; color: var(--ink); background: var(--white); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--sun); outline-offset: 3px; }
.wrap { width: var(--wrap); margin-inline: auto; }
.nw { white-space: nowrap; }
section { padding: clamp(64px, 9vw, 120px) 0; }
h2 { font-weight: 400; font-size: clamp(28px, 4vw, 48px); line-height: 1.1; letter-spacing: -.01em; }
.lead { color: var(--muted); max-width: 58ch; margin-top: 18px; }

/* фирменный знак как в постах: HAIRLAB + подпись */
.mark { display: inline-flex; flex-direction: column; text-decoration: none; line-height: 1; }
.mark b { font-weight: 400; font-size: 20px; letter-spacing: .22em; }
.mark small { font-size: 8.5px; letter-spacing: .2em; margin-top: 6px; opacity: .75; white-space: nowrap; }

/* кнопки-«таблетки» */
.pill { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 14px 26px; border-radius: 999px;
  font: 400 14px/1.2 var(--font); text-decoration: none; text-align: center; border: 1px solid transparent; transition: background .25s, color .25s, border-color .25s; }
.pill-milk { background: var(--milk); color: var(--ink); }
.pill-milk:hover { background: var(--white); }
.pill-line { border-color: currentColor; }
.pill-line:hover { background: rgba(127,127,127,.12); }
.pill-ink { background: var(--ink); color: var(--white); }
.pill-ink:hover { background: var(--olive); }
.ctas { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }

/* «окно» под фотографию: пока заливка с прядями, позже — снимок (background-image) */
.ph { position: relative; overflow: hidden; background: radial-gradient(ellipse 80% 60% at 70% 20%, #6B4632 0%, var(--brown) 55%, #24150F 100%); background-size: cover; background-position: center; }
.ph.olive { background: radial-gradient(ellipse 80% 60% at 70% 20%, #4A5640 0%, var(--olive) 55%, #171C14 100%); }
.ph svg.hair { position: absolute; inset: 0; width: 100%; height: 100%; }
.ba { position: relative; z-index: 1; display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--milk); }
.ba i { display: block; width: 44px; height: 1px; background: currentColor; position: relative; }
.ba i::after { content: ""; position: absolute; right: 0; top: -3px; width: 7px; height: 7px; border-top: 1px solid; border-right: 1px solid; transform: rotate(45deg); }

/* ----- фиксированная шапка с меню ----- */
.top { position: fixed; inset: 0 0 auto 0; z-index: 50; color: var(--milk); transition: background .3s, box-shadow .3s; }
.top.solid { background: rgba(43,50,38,.96); box-shadow: 0 1px 0 rgba(242,235,209,.08); backdrop-filter: blur(8px); }
.top .wrap { height: var(--head); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.top nav ul { display: flex; gap: 6px; list-style: none; font-size: 13px; }
.top nav a { display: block; padding: 8px 14px; border-radius: 999px; text-decoration: none; opacity: .8; transition: opacity .2s, background .2s; }
.top nav a:hover { opacity: 1; }
.top nav a.active { opacity: 1; background: rgba(242,235,209,.12); }
.top .book { padding: 11px 20px; font-size: 13px; }
.burger { display: none; flex: none; width: 44px; height: 44px; border: 1px solid rgba(242,235,209,.4); border-radius: 50%; background: none; color: inherit; cursor: pointer; position: relative; }
.burger span, .burger span::before { position: absolute; left: 13px; right: 13px; height: 1px; background: currentColor; content: ""; transition: transform .25s; }
.burger span { top: 18px; }
.burger span::before { left: 0; right: 0; top: 7px; }
.top.open .burger span { transform: translateY(3.5px) rotate(45deg); }
.top.open .burger span::before { transform: translateY(-7px) rotate(-90deg); }

/* ----- первый экран ----- */
.hero { display: flex; min-height: min(100vh, 860px); background: var(--olive); color: var(--milk); padding: 0; }
.hero .text { width: var(--wrap); margin-inline: auto; display: flex; flex-direction: column; justify-content: flex-end; padding: 140px 0 clamp(48px, 7vw, 96px); }
.hero h1 { font-weight: 400; font-size: clamp(36px, 6.4vw, 96px); line-height: 1.02; letter-spacing: -.02em; max-width: 13ch; }
.hero .lead { max-width: 52ch; }
.hero .lead { color: rgba(242,235,209,.75); margin-top: 26px; }
.hero .rating { display: block; margin-top: 40px; font-size: 14px; text-decoration: none; opacity: .9; }
.hero .rating b { font-weight: 400; font-size: 22px; color: var(--sun); }
.hero .ctas { margin-top: 36px; }
.hero .tags { display: flex; gap: 22px; margin-top: 48px; font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase; opacity: .6; }

.facts { background: var(--milk); padding: 28px 0; }
.facts .wrap { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; font-size: 13px; }
.facts b { font-weight: 500; }

/* ----- услуги: отдельная карточка на каждую процедуру ----- */
.svc { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(24px, 4vw, 64px); align-items: stretch; padding: clamp(40px, 5vw, 64px) 0; border-top: 1px solid var(--line); }
.svc:first-of-type { margin-top: 40px; }

/* что входит в стоимость каждой процедуры */
.included { margin-top: 40px; padding: clamp(28px, 4vw, 48px); background: var(--sage); }
.included h3 { font-weight: 400; font-size: clamp(20px, 2.2vw, 26px); line-height: 1.2; }
.included ul { list-style: none; margin-top: 28px; display: grid; grid-template-columns: repeat(5, 1fr); gap: 28px; }
.included li { border-top: 1px solid rgba(23,24,21,.25); padding-top: 16px; font-size: 13.5px; line-height: 1.6; color: var(--muted); }
.included li b { display: block; font-weight: 400; font-size: 15px; line-height: 1.3; color: var(--ink); margin-bottom: 8px; }
@media (max-width: 1100px) { .included ul { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 700px) { .included ul { grid-template-columns: 1fr; gap: 18px; } }
.svc:nth-of-type(even) { grid-template-columns: 7fr 5fr; }
.svc:nth-of-type(even) .ph { order: 2; }
.svc .ph { min-height: 440px; display: flex; align-items: flex-end; padding: 24px; }
.svc .chip { display: inline-block; padding: 6px 14px; border-radius: 999px; font-size: 11px; letter-spacing: .08em; }
.chip.c-sage { background: var(--sage); }
.chip.c-powder { background: var(--powder); }
.chip.c-brown { background: var(--brown); color: var(--milk); }
.chip.c-olive { background: var(--olive); color: var(--milk); }
.svc h3 { font-weight: 400; font-size: clamp(24px, 2.6vw, 34px); line-height: 1.15; margin-top: 18px; }
.svc .desc { margin-top: 14px; max-width: 54ch; }
.svc h4 { font-weight: 400; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-top: 26px; }
.svc ul { list-style: none; margin-top: 10px; }
.svc li { position: relative; padding: 6px 0 6px 22px; font-size: 14px; }
.svc li::before { content: ""; position: absolute; left: 0; top: 15px; width: 10px; height: 1px; background: var(--ink); }
.svc .bonus { margin-top: 18px; font-size: 13px; color: var(--muted); }
.svc .from { margin-top: 22px; font-weight: 400; font-size: 24px; }
.svc .from small { font-weight: 300; font-size: 12px; color: var(--muted); margin-left: 10px; }
.by-length { margin-top: 14px; font-size: 13px; max-width: 420px; }
.by-length summary { cursor: pointer; font-weight: 400; }
.by-length ul { margin-top: 6px; }
.by-length li { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.by-length li::before { display: none; }

/* ----- цены ----- */
.prices { background: var(--milk); }
.table-scroll { overflow-x: auto; margin-top: 40px; }
.prices table { width: 100%; min-width: 720px; border-collapse: collapse; font-size: 14px; }
.prices th, .prices td { padding: 15px 12px; text-align: right; border-bottom: 1px solid var(--line); white-space: nowrap; }
.prices th { font-weight: 400; font-size: 12px; color: var(--muted); vertical-align: bottom; white-space: normal; }
.prices th:first-child, .prices td:first-child { text-align: left; padding-left: 0; }
.prices tbody tr:hover { background: rgba(255,255,255,.6); }
.prices .note { margin-top: 18px; font-size: 13px; color: var(--muted); max-width: 70ch; }

/* пара фото «до / после» */
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; background: var(--white); }
.pair figure { position: relative; overflow: hidden; background: var(--sage); }
.pair img { display: block; width: 100%; height: 100%; object-fit: cover; }
.pair b { position: absolute; left: 12px; bottom: 12px; padding: 5px 12px; border-radius: 999px; background: rgba(23,24,21,.62); color: var(--milk);
  font-weight: 400; font-size: 11px; letter-spacing: .08em; backdrop-filter: blur(4px); }
.pair figure + figure b { background: var(--milk); color: var(--ink); }
.svc .pair { min-height: 440px; }
.svc:nth-of-type(even) .pair { order: 2; }

/* ----- портфолио ----- */
.gallery { margin-top: 48px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px 24px; }
.work .pair { aspect-ratio: 3/2; }
.work figcaption { margin-top: 12px; font-size: 13px; color: var(--muted); }

/* ----- мастера ----- */
.masters { background: var(--milk); }
.team { margin-top: 48px; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 40px); }
.master img { display: block; width: 100%; height: auto; aspect-ratio: 3/4; object-fit: cover; background: var(--white); }
.master h3 { font-weight: 400; font-size: clamp(22px, 2.2vw, 28px); line-height: 1.15; margin-top: 22px; }
.master .since, .founder .since { margin-top: 8px; font-size: 12px; color: var(--muted); }
.master .spec { display: inline-block; margin-top: 14px; padding: 6px 14px; border-radius: 999px; background: var(--sage); font-size: 11.5px; line-height: 1.4; }
.master p.about { margin-top: 14px; font-size: 13.5px; line-height: 1.65; }
/* основательница — отдельная широкая карточка над командой */
.founder { margin-top: 48px; display: grid; grid-template-columns: 5fr 7fr; gap: clamp(24px, 4vw, 64px); align-items: center; padding-bottom: clamp(40px, 5vw, 64px); border-bottom: 1px solid var(--line); }
.founder img { display: block; width: 100%; height: auto; aspect-ratio: 3/4; object-fit: cover; }
.founder h3 { font-weight: 400; font-size: clamp(28px, 3.4vw, 44px); line-height: 1.1; margin-top: 18px; }
.founder p.about { margin-top: 16px; max-width: 56ch; }
.founder .chip { display: inline-block; padding: 6px 14px; border-radius: 999px; font-size: 11px; letter-spacing: .08em; background: var(--olive); color: var(--milk); }

/* ----- отзывы ----- */
.reviews { background: var(--olive); color: var(--milk); }
.reviews .inner { display: grid; grid-template-columns: auto 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.reviews .score b { display: block; font-weight: 400; font-size: clamp(80px, 12vw, 150px); line-height: .9; color: var(--sun); }
.reviews .score span { font-size: 14px; opacity: .8; }
.reviews .lead { color: rgba(242,235,209,.75); }
/* цитаты из отзывов 2ГИС: сетка, на телефоне — лента с прокруткой пальцем */
.quotes { margin-top: clamp(48px, 6vw, 80px); display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.quote { display: flex; flex-direction: column; justify-content: space-between; gap: 28px; padding: clamp(24px, 3vw, 36px); background: rgba(242,235,209,.06); border: 1px solid rgba(242,235,209,.12); }
.quote blockquote { position: relative; padding-top: 34px; font-size: 15.5px; line-height: 1.6; }
.quote blockquote::before { content: "“"; position: absolute; top: -6px; left: -2px; font-size: 56px; line-height: 1; color: var(--sun); }
.quote figcaption { display: grid; gap: 4px; padding-top: 18px; border-top: 1px solid rgba(242,235,209,.14); font-size: 12px; }
.quote figcaption b { font-weight: 400; font-size: 14px; }
.quote figcaption span { color: var(--sun); }
.quote figcaption small { font-size: 11.5px; opacity: .6; }
.js .quotes .quote:nth-child(3n+2) { transition-delay: .1s; }
.js .quotes .quote:nth-child(3n) { transition-delay: .2s; }
@media (max-width: 1000px) { .quotes { grid-template-columns: 1fr 1fr; } }
@media (max-width: 700px) {
  .quotes { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 10px; width: 100%; padding: 0 20px 6px; scroll-padding: 0 20px; scrollbar-width: none; }
  .quotes::-webkit-scrollbar { display: none; }
  .quote { flex: 0 0 84%; scroll-snap-align: start; }
  .js .quotes .quote { transition-delay: 0s; }
}

/* ----- как проходит визит ----- */
.steps { margin-top: 48px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; counter-reset: s; list-style: none; }
.steps li { counter-increment: s; border-top: 1px solid var(--line); padding-top: 22px; }
.steps li::before { content: counter(s, decimal-leading-zero); display: block; font-size: 13px; color: var(--muted); margin-bottom: 18px; }
.steps h3 { font-weight: 400; font-size: 17px; margin-bottom: 8px; }
.steps p { font-size: 13.5px; color: var(--muted); }

/* ----- вопросы ----- */
.faq { background: var(--sage); }
.faq .inner { display: grid; grid-template-columns: 1fr 1.4fr; gap: 56px; align-items: start; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 40px 22px 0; position: relative; font-weight: 400; font-size: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 18px; font-size: 22px; font-weight: 300; transition: transform .25s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 22px; color: var(--muted); font-size: 14px; max-width: 62ch; }

/* ----- сертификаты ----- */
.gift .inner { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.gift .copy { background: var(--sun); padding: clamp(32px, 5vw, 64px); display: flex; flex-direction: column; justify-content: center; }
.gift .copy p { margin-top: 18px; max-width: 46ch; }
.gift .copy .pill { align-self: flex-start; margin-top: 30px; }
.gift .ph { min-height: 420px; display: grid; place-items: center; }
.gift .card { position: relative; z-index: 1; width: min(78%, 360px); aspect-ratio: 148/105; background: var(--milk); color: var(--ink);
  padding: 7%; display: flex; flex-direction: column; justify-content: space-between; transform: rotate(-4deg); box-shadow: 0 30px 60px rgba(0,0,0,.35); }
.gift .card .mark b { font-size: 12px; }
.gift .card .mark small { font-size: 6px; }
.gift .card .t { font-size: 17px; line-height: 1.2; }
.gift .card .s { font-weight: 400; font-size: 26px; }

/* ----- контакты ----- */
.contacts .inner { display: grid; grid-template-columns: 1fr 1.25fr; gap: 56px; align-items: start; }
.contacts dl { margin-top: 34px; display: grid; gap: 22px; }
.contacts dt { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.contacts dd { font-size: 18px; font-weight: 400; margin-top: 4px; }
.contacts dd a { text-decoration: none; }
.contacts dd small { display: block; font-weight: 300; font-size: 13px; color: var(--muted); }
.contacts dd.msgr { display: flex; gap: 18px; }
.contacts dd.msgr a { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }

/* окно выбора мессенджера */
#ask { margin: auto; width: min(440px, 100% - 32px); border: 0; padding: 40px 32px 32px; background: var(--milk); color: var(--ink); font: inherit; }
#ask::backdrop { background: rgba(23,24,21,.6); backdrop-filter: blur(3px); }
#ask h2 { font-size: 22px; line-height: 1.2; padding-right: 24px; }
#ask p { margin-top: 12px; font-size: 14px; color: var(--muted); }
#ask .choices { display: grid; gap: 10px; margin-top: 24px; }
#ask .x { position: absolute; top: 10px; right: 12px; width: 40px; height: 40px; border: 0; background: none; font: 300 28px/1 var(--font); color: var(--ink); cursor: pointer; }
#ask[open] { animation: rise .35s cubic-bezier(.2,.7,.2,1); }
@media (prefers-reduced-motion: reduce) { #ask[open] { animation: none; } }
.facts a { text-decoration: none; }

/* гарантия — «печать» 30 дней */
.guarantee { margin-top: 24px; display: flex; align-items: center; gap: clamp(20px, 4vw, 48px); padding: clamp(28px, 4vw, 44px); background: var(--sage); }
.guarantee .seal { flex: none; width: 112px; height: 112px; border-radius: 50%; border: 1px solid var(--olive); display: grid; place-content: center; text-align: center;
  font-weight: 400; font-size: 38px; line-height: 1; color: var(--olive); }
.guarantee .seal small { display: block; font-weight: 300; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; margin-top: 6px; }
.guarantee h3 { font-weight: 400; font-size: clamp(20px, 2.2vw, 26px); line-height: 1.2; }
.guarantee p { margin-top: 10px; max-width: 60ch; }
@media (max-width: 560px) { .guarantee { flex-direction: column; align-items: flex-start; } .guarantee .seal { width: 88px; height: 88px; font-size: 30px; } }
.qrs { display: flex; gap: 22px; margin-top: 36px; }
.qrs a { text-decoration: none; text-align: center; font-size: 12px; color: var(--muted); }
.qrs img { width: 112px; height: 112px; display: block; margin-bottom: 8px; background: var(--white); padding: 8px; border: 1px solid var(--line); }
.map { width: 100%; aspect-ratio: 4/3; border: 0; background: var(--sage); }

.cta { background: var(--olive); color: var(--milk); padding: 0; }
.cta a { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: clamp(36px, 5vw, 56px) 0; text-decoration: none; }
.cta span { font-weight: 400; font-size: clamp(22px, 3.2vw, 38px); line-height: 1.15; }
.cta i { flex: none; width: 64px; height: 64px; border: 1px solid currentColor; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: 22px; transition: background .25s, color .25s; }
.cta a:hover i { background: var(--milk); color: var(--olive); }

footer { background: var(--ink); color: rgba(255,255,255,.55); font-size: 12px; padding: 30px 0; }
footer .wrap { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 14px; }
footer .mark { color: var(--white); }
footer .mark b { font-size: 14px; }
footer .mark small { font-size: 7px; }

/* ----- анимация появления при прокрутке (без JS и при «уменьшить движение» — всё видно сразу) ----- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.7,.2,1); }
.js .reveal.in { opacity: 1; transform: none; }
.js .hero .text > * { animation: rise .9s cubic-bezier(.2,.7,.2,1) both; }
.js .hero .text > :nth-child(2) { animation-delay: .1s; }
.js .hero .text > :nth-child(3) { animation-delay: .2s; }
.js .hero .text > :nth-child(4) { animation-delay: .3s; }
.js .hero .text > :nth-child(5) { animation-delay: .4s; }
@keyframes rise { from { opacity: 0; transform: translateY(20px); } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .js .hero .text > * { animation: none; }
}

/* пряди за заголовком первого экрана (строит js/site.js) */
.hero { position: relative; overflow: hidden; }
.hero .strands { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hero .text { position: relative; z-index: 1; }
@media (max-width: 900px) { .hero .strands { opacity: .75; } }
.count { display: inline-block; text-align: right; }

/* блик по фото «после» */
.pair figure + figure::after, .results figure::after { content: ""; position: absolute; inset: 0; pointer-events: none; transform: translateX(-120%); mix-blend-mode: screen;
  background: linear-gradient(105deg, transparent 30%, rgba(243,220,192,.5) 42%, rgba(255,246,232,.9) 50%, rgba(243,220,192,.5) 58%, transparent 70%); }
.pair figure + figure.go::after, .results figure.go::after { animation: gloss 2.2s .3s cubic-bezier(.45,0,.25,1) both; }
@keyframes gloss { from { transform: translateX(-120%); } to { transform: translateX(120%); } }
.pair b, .results b { z-index: 1; }

/* блик по кнопкам записи раз в несколько секунд */
.js .pill[href*="dikidi"] { position: relative; overflow: hidden; isolation: isolate; }
.js .pill[href*="dikidi"]::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; transform: translateX(-110%);
  background: linear-gradient(110deg, transparent 30%, rgba(239,181,82,.8) 50%, transparent 70%); animation: glint 5s 2s infinite; }
.js .pill-ink[href*="dikidi"]::after { opacity: .6; }
.js .pill[href*="dikidi"]:hover::after { animation-play-state: paused; opacity: 0; }
@keyframes glint { 0% { transform: translateX(-110%); } 22%, 100% { transform: translateX(110%); } }

/* печать «30 дней»: круг обводится, цифры «штампуются» */
.seal.draw { position: relative; border-color: transparent; }
.seal.draw svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; transform: rotate(-90deg); }
.seal.draw circle { fill: none; stroke: currentColor; stroke-width: 1; vector-effect: non-scaling-stroke; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.4s cubic-bezier(.6,0,.3,1); }
.seal.draw .v { display: block; opacity: 0; transform: scale(1.35); transition: opacity .35s 1.1s, transform .45s 1.1s cubic-bezier(.3,1.6,.5,1); }
.seal.draw.go circle { stroke-dashoffset: 0; }
.seal.draw.go .v { opacity: 1; transform: none; }

/* шаги процедуры: линия над шагами прорисовывается по очереди */
.js .steps li { border-top-color: transparent; background: linear-gradient(var(--olive), var(--olive)) no-repeat 0 0 / 0 1px; transition: background-size .7s cubic-bezier(.6,0,.3,1); }
.js .steps.in li { background-size: 100% 1px; }
.js .steps li:nth-child(2) { transition-delay: .15s; } .js .steps li:nth-child(3) { transition-delay: .3s; }
.js .steps li:nth-child(4) { transition-delay: .45s; } .js .steps li:nth-child(5) { transition-delay: .6s; }
.js .steps li:nth-child(6) { transition-delay: .75s; } .js .steps li:nth-child(7) { transition-delay: .9s; }
.js .steps li:nth-child(8) { transition-delay: 1.05s; }

/* вопросы: «+» поворачивается обратно сразу при закрытии */
.faq details.closing summary::after { transform: none; }

/* мастера: приближение фото и «Записаться» снизу при наведении */
.photo { position: relative; overflow: hidden; }
.photo img { transition: transform .9s cubic-bezier(.2,.7,.2,1); }
.photo .cap { position: absolute; left: 12px; right: 12px; bottom: 12px; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 18px;
  background: var(--milk); color: var(--ink); font-weight: 400; font-size: 13px; text-decoration: none; transform: translateY(calc(100% + 16px)); transition: transform .45s cubic-bezier(.2,.7,.2,1); }
.photo .cap i { font-style: normal; }
@media (hover: hover) {
  .master:hover .photo img, .founder:hover .photo img { transform: scale(1.04); }
  .master:hover .photo .cap, .founder:hover .photo .cap { transform: none; }
}
@media (hover: none) { .photo .cap { display: none; } }

@media (prefers-reduced-motion: reduce) {
  .js .pill[href*="dikidi"]::after { display: none; }
  .js .steps li { transition: none; background-size: 100% 1px; }
  .photo img, .photo .cap { transition: none; }
}

/* ----- планшеты и телефоны ----- */
@media (max-width: 1000px) {
  .steps { grid-template-columns: 1fr 1fr; }
  .top nav a { padding: 8px 10px; }
}
@media (max-width: 900px) {
  .burger { display: block; }
  .top nav { position: fixed; inset: var(--head) 0 0 0; background: var(--olive); padding: 8px 20px 24px; display: none; overflow-y: auto; }
  .top.open { background: var(--olive); }
  .top.open nav { display: block; }
  .top nav ul { flex-direction: column; gap: 2px; font-size: 16px; }
  .top nav a { padding: 14px 4px; border-radius: 0; border-bottom: 1px solid rgba(242,235,209,.1); }
  .top nav a.active { background: none; }
  .top .book { margin-left: auto; }
  .hero .text { padding-top: 120px; }
  .svc, .svc:nth-of-type(even) { grid-template-columns: 1fr; }
  .svc:nth-of-type(even) .ph { order: 0; }
  .svc .ph { min-height: 320px; }
  .faq .inner, .gift .inner, .contacts .inner, .reviews .inner { grid-template-columns: 1fr; gap: 32px; }
  .gift .inner { gap: 0; }
  /* таблица цен на телефоне: каждая длина — отдельный блок, процедуры строками (подписи берутся из заголовков скриптом) */
  .prices table { min-width: 0; }
  .prices thead { display: none; }
  .prices tbody tr { display: block; padding: 18px 0 10px; border-bottom: 1px solid var(--line); }
  .prices tbody tr:hover { background: none; }
  .prices td { display: flex; justify-content: space-between; gap: 16px; padding: 6px 0; border: 0; white-space: normal; text-align: right; }
  .prices td::before { content: attr(data-label); text-align: left; color: var(--muted); }
  .prices td:first-child { display: block; font-weight: 400; font-size: 16px; padding-bottom: 8px; }
  .prices td:first-child::before { content: none; }
  .gallery { grid-template-columns: 1fr 1fr; gap: 10px; }
  .team { grid-template-columns: 1fr; gap: 48px; max-width: 480px; }
  .founder { grid-template-columns: 1fr; max-width: 480px; }
  .svc:nth-of-type(even) .pair { order: 0; }
  .svc .pair { min-height: 0; aspect-ratio: 3/2; }
  .gallery { grid-template-columns: 1fr; gap: 32px; }
}
@media (min-width: 901px) { .by-length { display: none; } }
@media (max-width: 560px) {
  body { font-size: 14px; }
  .hero h1 { font-size: clamp(26px, 8vw, 36px); }
  .top .mark b { font-size: 17px; }
  .top .mark small { font-size: 6.5px; letter-spacing: .14em; }
  .top .book { padding: 10px 14px; font-size: 12px; }
  .burger { width: 40px; height: 40px; }
  .burger span { top: 16px; left: 12px; right: 12px; }
  .steps { grid-template-columns: 1fr; }
  .ctas .pill { flex: 1 1 100%; }
  .hero .tags { gap: 14px; flex-wrap: wrap; }
  .cta i { width: 52px; height: 52px; }
}

/* ===================== страницы процедур (/keratin/ и др., собираются _build/procedures.py) ===================== */
.chip { display: inline-block; padding: 6px 14px; border-radius: 999px; font-size: 11px; letter-spacing: .08em; }
.chip.c-sage, .chip.c-powder { color: var(--ink); }
.proc-hero { background: var(--olive); color: var(--milk); padding: 120px 0 clamp(48px, 7vw, 88px); }
.proc-hero .wrap { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(28px, 5vw, 72px); align-items: end; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 12px; opacity: .7; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.proc-hero .chip { margin-top: 28px; }
.proc-hero h1 { font-weight: 400; font-size: clamp(32px, 5vw, 64px); line-height: 1.05; letter-spacing: -.02em; margin-top: 18px; }
.proc-hero .lead { color: rgba(242,235,209,.78); max-width: 52ch; }
.meta { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 14px 40px; margin-top: 32px; }
.meta dt { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; opacity: .6; }
.meta dd { font-weight: 400; font-size: 17px; margin-top: 4px; }
.proc-hero .pair, .proc-hero .ph { aspect-ratio: 1; }
.proc-hero .pair { background: var(--olive); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.split h2 + ul, .split h2 + .lead { margin-top: 22px; }
.proc-about .lead { max-width: 60ch; }
.proc-about .result { background: var(--sage); padding: clamp(28px, 4vw, 44px); }
.proc-about .result h3, .proc-fit h2 { font-weight: 400; }
.proc-about .result h3 { font-size: clamp(20px, 2.2vw, 26px); line-height: 1.2; }
.proc-about ul, .proc-fit ul, .proc-care ul { list-style: none; margin-top: 18px; }
.proc-about li, .proc-fit li, .proc-care li { position: relative; padding: 8px 0 8px 22px; font-size: 14.5px; }
.proc-about li::before, .proc-fit li::before, .proc-care li::before { content: ""; position: absolute; left: 0; top: 19px; width: 10px; height: 1px; background: var(--ink); }
.proc-fit { background: var(--sage); }
.proc-fit .note, .proc-prices .note { margin-top: 18px; font-size: 13px; color: var(--muted); max-width: 52ch; }
.proc-steps .steps { grid-template-columns: repeat(4, 1fr); row-gap: 40px; }
.proc-works { padding-top: 0; }
.soon { margin-top: 40px; display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: center; }
.soon .ph { aspect-ratio: 3/2; }
.soon p { color: var(--muted); max-width: 46ch; }
.price-list { list-style: none; }
.price-list li { display: flex; justify-content: space-between; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.price-list b { font-weight: 400; font-size: 18px; white-space: nowrap; }
.proc-care .guarantee { margin-top: clamp(40px, 5vw, 64px); }
.others { list-style: none; margin-top: 40px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.others a { display: grid; grid-template-columns: 1fr auto; gap: 6px 16px; height: 100%; padding: 26px; border: 1px solid var(--line); text-decoration: none; transition: background .25s, border-color .25s; }
.others a:hover { background: var(--sage); border-color: var(--sage); }
.others span { font-weight: 400; font-size: 18px; line-height: 1.25; }
.others small { grid-column: 1; font-size: 12px; color: var(--muted); }
.others i { grid-row: 1 / 3; grid-column: 2; align-self: center; font-style: normal; font-size: 20px; }

/* ссылка «Подробнее» в карточках услуг на главной */
.svc h3 a { text-decoration: none; }
.svc h3 a:hover { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px; }
.work figcaption a { text-decoration: none; }
.work figcaption a:hover { color: var(--ink); text-decoration: underline; }

@media (max-width: 900px) {
  .proc-hero { padding-top: 104px; }
  .proc-hero .wrap, .split, .soon { grid-template-columns: 1fr; }
  .proc-hero .pair, .proc-hero .ph { aspect-ratio: 3/2; }
  .proc-steps .steps { grid-template-columns: 1fr 1fr; }
  .others { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .meta { grid-template-columns: 1fr 1fr; }
  .meta div:last-child { grid-column: 1 / -1; }
  .proc-steps .steps { grid-template-columns: 1fr; }
}

/* «Другие услуги» под таблицей цен на главной */
.extra { margin-top: 48px; padding: clamp(28px, 4vw, 48px); background: var(--white); }
.extra h3 { font-weight: 400; font-size: clamp(20px, 2.2vw, 26px); line-height: 1.2; }
.extra-grid { margin-top: 28px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.extra-grid > div { display: flex; flex-direction: column; border-top: 1px solid var(--line); padding-top: 16px; }
.extra h4 { font-weight: 400; font-size: 15px; line-height: 1.3; }
.extra p { margin-top: 8px; font-size: 13px; line-height: 1.6; color: var(--muted); flex: 1; }
.extra-grid b { display: block; margin-top: 14px; font-weight: 400; font-size: 17px; }
.extra-grid b small { display: block; font-weight: 300; font-size: 12px; color: var(--muted); margin-top: 4px; }
.extra-sep { margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); max-width: 90ch; }
@media (max-width: 1100px) { .extra-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .extra-grid { grid-template-columns: 1fr; } }

/* одиночные фото «после» на странице процедуры */
.results-h { font-weight: 400; font-size: clamp(20px, 2.2vw, 26px); margin-top: 56px; }
.results { margin-top: 20px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.results figure { position: relative; overflow: hidden; background: var(--sage); }
.results img { display: block; width: 100%; height: auto; aspect-ratio: 3/4; object-fit: cover; }
.results b { position: absolute; left: 12px; bottom: 12px; padding: 5px 12px; border-radius: 999px; background: var(--milk); color: var(--ink); font-weight: 400; font-size: 11px; letter-spacing: .08em; }
@media (max-width: 560px) { .results { gap: 6px; } .results b { left: 6px; bottom: 6px; padding: 3px 8px; font-size: 10px; } }
.h1-city { display: block; margin-top: 12px; font-size: .36em; letter-spacing: 0; opacity: .7; }
