/* ==========================================================================
   Стрижем и бреем — Стиль для всех
   Тёмный «кинематографичный» стиль старого сайта: Playfair Display + Inter,
   золотой акцент, нумерованные разделы, тонкие линии, бегущие строки.
   Mobile-first. Ключевые точки: 640 / 768 / 1024 / 1280
   ========================================================================== */

/* ---------- Fonts (self-hosted) ---------- */
@font-face { font-family: "Playfair Display"; font-style: normal; font-weight: 400 900; font-display: swap;
  src: url("../fonts/playfair-display-cyrillic-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Playfair Display"; font-style: normal; font-weight: 400 900; font-display: swap;
  src: url("../fonts/playfair-display-latin-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Playfair Display"; font-style: italic; font-weight: 400 900; font-display: swap;
  src: url("../fonts/playfair-display-cyrillic-wght-italic.woff2") format("woff2-variations");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Playfair Display"; font-style: italic; font-weight: 400 900; font-display: swap;
  src: url("../fonts/playfair-display-latin-wght-italic.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("../fonts/inter-cyrillic-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("../fonts/inter-latin-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* ---------- Tokens ---------- */
:root {
  color-scheme: dark;
  --bg: #08080a;
  --bg-deep: #06060a;
  --surface: #0e0e11;
  --surface-2: #15151a;
  --fg: #efeae0;
  --fg-dim: #c6c1b8;
  --muted: #8a847b;
  --hair: rgba(255, 255, 255, .07);
  --hair-strong: rgba(255, 255, 255, .12);
  --accent: #e5b977;
  --accent-hi: #f0c884;
  --accent-2: #c79257;
  --accent-soft: rgba(229, 185, 119, .14);
  --on-accent: #0a0807;
  --danger: #fb7185;

  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --bar-h: 68px;
  --pad: clamp(20px, 4vw, 48px);
  --gap-section: clamp(96px, 11vw, 160px);
  --ease: cubic-bezier(.16, 1, .3, 1);
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; border-color: var(--hair); }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--bar-h) + 8px); background: var(--bg); }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font-family: var(--sans); font-size: 15px; font-weight: 300; line-height: 1.6;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility;
  font-variant-numeric: tabular-nums lining-nums; font-feature-settings: "ss01", "cv11";
  overflow-x: clip;
}
body.is-locked { overflow: hidden; }
h1, h2, h3, h4, p, ul, ol, figure, address, table { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg, iframe, video { max-width: 100%; }
img { display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; border-radius: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid rgba(229, 185, 119, .7); outline-offset: 3px; border-radius: 2px; }
::selection { background: rgba(229, 185, 119, .28); color: #fff; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, .08); border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, .16); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: var(--pad); top: -80px; z-index: 100; background: var(--accent); color: var(--on-accent); padding: 12px 20px; border-radius: 999px; font-size: 12px; text-transform: uppercase; letter-spacing: .14em; }
.skip:focus { top: 12px; }
.icon { width: 1em; height: 1em; flex: none; }
.wrap { max-width: 1320px; margin-inline: auto; padding-inline: var(--pad); }

/* ---------- Typography ---------- */
.eyebrow, .eyebrow-muted { font-size: 11px; letter-spacing: .28em; text-transform: uppercase; font-weight: 500; line-height: 1.4; }
.eyebrow { color: var(--accent); }
.eyebrow-muted { color: var(--muted); }
.text-gold { background: linear-gradient(135deg, #f3d099 0%, #e5b977 45%, #c79257 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }
em { font-style: italic; }
.h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(2.4rem, 6vw, 5rem); line-height: .96; letter-spacing: -.035em; text-wrap: balance; }
.h2 em { font-weight: 400; padding-right: .06em; }
.vtext { writing-mode: vertical-rl; transform: rotate(180deg); }

/* ---------- Buttons ---------- */
.pill {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 48px; padding: 0 24px; border-radius: 999px; white-space: nowrap;
  background: var(--accent); color: var(--on-accent);
  font-size: 11px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase;
  transition: background-color .4s var(--ease), box-shadow .4s var(--ease), border-color .3s, color .3s, transform .3s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.pill:hover { background: var(--accent-hi); box-shadow: 0 14px 36px -6px rgba(229, 185, 119, .6); }
.pill:active { transform: scale(.98); }
.pill .icon { font-size: 13px; transition: transform .3s var(--ease); }
.pill:hover .icon { transform: translateX(3px); }
.pill--lg { height: 56px; padding: 0 32px; font-size: 12px; }
.pill--sm { height: 36px; padding: 0 20px; letter-spacing: .16em; }
.pill--block { width: 100%; }
.pill--ghost { background: transparent; color: rgba(239, 234, 224, .85); border: 1px solid var(--hair-strong); }
.pill--ghost:hover { background: transparent; color: var(--fg); border-color: rgba(229, 185, 119, .55); box-shadow: none; }
.link { display: inline-flex; align-items: center; gap: 8px; height: 48px; padding: 0 4px; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: rgba(239, 234, 224, .85); border-bottom: 1px solid transparent; transition: color .3s, border-color .3s; }
.link:hover { color: var(--fg); border-bottom-color: rgba(229, 185, 119, .6); }
.more { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: rgba(239, 234, 224, .75); transition: color .3s; }
.more .icon { font-size: 13px; transition: transform .3s var(--ease); }
.more:hover { color: var(--accent); }
.more:hover .icon { transform: translate(2px, -2px); }
.textbtn { min-height: 44px; padding: 0 4px; font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); transition: color .3s; }
.textbtn:hover { color: var(--accent); }

/* ---------- Bar ---------- */
.bar { position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--bar-h); border-bottom: 1px solid transparent; transition: background-color .5s, border-color .5s, backdrop-filter .5s; animation: bar-in .8s var(--ease) both; }
@keyframes bar-in { from { opacity: 0; transform: translateY(-24px); } }
.bar.is-scrolled, .bar.is-open { background: rgba(8, 8, 10, .82); -webkit-backdrop-filter: blur(28px) saturate(160%); backdrop-filter: blur(28px) saturate(160%); border-bottom-color: var(--hair); }
.bar__in { max-width: 1320px; margin-inline: auto; padding-inline: var(--pad); height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.logo { display: flex; align-items: center; gap: 12px; flex: none; }
.logo__img { width: 44px; height: 44px; flex: none; }
.logo__rule { width: 1px; height: 20px; background: var(--hair-strong); }
.logo__text { display: flex; flex-direction: column; gap: 4px; line-height: 1; }
.logo__text b { font-family: var(--serif); font-weight: 400; font-size: 15px; letter-spacing: -.01em; white-space: nowrap; }
.logo__text small { display: none; font-size: 9px; letter-spacing: .24em; text-transform: uppercase; color: var(--muted); }
.bar__nav { display: none; }
.bar__link { position: relative; font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: rgba(239, 234, 224, .55); padding: 12px 0; transition: color .3s; }
.bar__link::after { content: ""; position: absolute; left: 0; bottom: 6px; height: 1px; width: 0; background: var(--accent); transition: width .4s var(--ease); }
.bar__link:hover, .bar__link.is-active { color: var(--fg); }
.bar__link:hover::after, .bar__link.is-active::after { width: 100%; }
.bar__end { display: flex; align-items: center; gap: 8px; }
.bar__phone { display: none; align-items: center; gap: 8px; height: 36px; padding: 0 12px; font-size: 12px; color: rgba(239, 234, 224, .65); transition: color .3s; }
.bar__phone:hover { color: var(--fg); }
.bar__cta { display: none; }
.bar__menu { width: 44px; height: 44px; display: grid; place-items: center; font-size: 20px; color: rgba(239, 234, 224, .75); }
.bar__menu:hover { color: var(--fg); }
.bar__menu .i-close { display: none; }
.bar__menu[aria-expanded="true"] .i-open { display: none; }
.bar__menu[aria-expanded="true"] .i-close { display: block; }

.drawer { position: fixed; inset: 0; z-index: 40; background: rgba(8, 8, 10, .96); -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px); overflow-y: auto; overscroll-behavior: contain; animation: fade-in .4s var(--ease); }
@keyframes fade-in { from { opacity: 0; } }
.drawer__in { min-height: 100%; padding: calc(var(--bar-h) + 40px) 24px calc(32px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; }
.drawer__nav { margin-top: 24px; flex: 1; }
.drawer__link { display: flex; align-items: center; justify-content: space-between; padding: 18px 0; border-bottom: 1px solid var(--hair); animation: rise-in .6s var(--ease) both; }
.drawer__link:nth-child(2) { animation-delay: .06s; } .drawer__link:nth-child(3) { animation-delay: .12s; } .drawer__link:nth-child(4) { animation-delay: .18s; } .drawer__link:nth-child(5) { animation-delay: .24s; }
@keyframes rise-in { from { opacity: 0; transform: translateY(18px); } }
.drawer__link span { font-family: var(--serif); font-size: 32px; line-height: 1; transition: color .3s; }
.drawer__link:hover span { color: var(--accent); }
.drawer__link small { font-family: var(--serif); font-size: 12px; color: var(--muted); }
.drawer__foot { display: grid; gap: 12px; margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--hair); }
.drawer__phone { display: inline-flex; align-items: center; gap: 10px; color: var(--accent); font-size: 15px; }
.drawer__addr { font-size: 12px; color: var(--muted); }
.drawer__foot .pill { margin-top: 8px; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; padding-top: var(--bar-h); }
.hero__bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; will-change: transform; }
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 40% 50%; filter: grayscale(.3) brightness(.74); }
.hero__shade { position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(8, 8, 10, .72) 0, rgba(8, 8, 10, .5) 28%, rgba(8, 8, 10, .82) 58%, #08080a 94%); }
.hero__shade--tr { background: linear-gradient(to top right, #08080a, transparent 60%); opacity: .75; }
.hero__vl, .hero__tr { display: none; }
.hero__body { position: relative; z-index: 1; width: 100%; max-width: 1320px; margin-inline: auto; padding: 0 var(--pad) clamp(56px, 11vw, 136px); will-change: transform, opacity; }
.hero__eyebrow { margin-bottom: 22px; opacity: 0; animation: show .8s var(--ease) .2s forwards; }
.hero .display { filter: drop-shadow(0 2px 22px rgba(8, 8, 10, .7)); }
.hero__lead { text-shadow: 0 1px 14px rgba(8, 8, 10, .8); }
.display { font-family: var(--serif); font-weight: 400; font-size: clamp(2.4rem, 10.4vw, 8.6rem); line-height: .96; letter-spacing: -.035em; }
.line { display: block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
.line__in { display: inline-block; white-space: nowrap; transform: translateY(105%); animation: line-up 1.2s var(--ease) forwards; }
.line:nth-child(1) .line__in { animation-delay: .35s; }
.line:nth-child(2) .line__in { animation-delay: .5s; }
.line__in em { padding-right: .08em; }
@keyframes line-up { to { transform: none; } }
@keyframes show { to { opacity: 1; } }
.hero__row { margin-top: clamp(28px, 4vw, 56px); display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; opacity: 0; animation: rise-show .8s var(--ease) 1.05s forwards; }
@keyframes rise-show { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.hero__lead { font-size: 15px; line-height: 1.65; color: rgba(239, 234, 224, .92); max-width: 440px; text-wrap: pretty; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.hero__team { display: flex; align-items: center; gap: 12px; width: fit-content; max-width: 100%; min-width: 0; color: var(--muted); transition: color .3s; }
.hero__team:hover { color: var(--accent); }
.hero__team > .icon { font-size: 14px; }
.avas { display: flex; flex: none; }
.ava { position: relative; width: 44px; height: 44px; margin-left: -12px; border-radius: 50%; overflow: hidden; background: var(--surface-2); border: 1px solid var(--hair-strong); display: grid; place-items: center; }
.ava:first-child { margin-left: 0; }
.ava img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.ava--mono { font-family: var(--serif); font-style: italic; font-size: 17px; color: var(--accent); }
.hero__team-t { display: flex; flex-direction: column; line-height: 1.2; }
.hero__team-t b { font-weight: 400; font-size: 13px; color: var(--fg); margin-top: 2px; }
.hero__team:hover .hero__team-t b { color: var(--accent); }
.hero__scroll { display: none; }

/* ---------- Marquee ---------- */
.marquee { overflow: hidden; border-block: 1px solid var(--hair); background: var(--bg-deep); padding-block: 36px; }
.marquee__track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.marquee__row { display: flex; align-items: center; flex: none; }
.marquee__row span { font-size: 12px; letter-spacing: .28em; text-transform: uppercase; color: rgba(239, 234, 224, .65); white-space: nowrap; }
.marquee__row i { width: 4px; height: 4px; border-radius: 50%; background: rgba(229, 185, 119, .7); flex: none; margin-inline: 40px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.sec { position: relative; padding-block: var(--gap-section); }
.sec--line { border-top: 1px solid var(--hair); }
.shead { display: grid; gap: 24px; margin-bottom: clamp(40px, 6vw, 72px); align-items: end; }
.shead__tag { display: flex; align-items: center; gap: 20px; margin-bottom: 24px; }
.shead__no { font-family: var(--serif); font-style: italic; font-size: 14px; color: var(--accent); }
.shead__rule { height: 1px; flex: 1; max-width: 80px; background: var(--hair-strong); }
.shead__r { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.shead__desc { font-size: 14px; line-height: 1.65; color: rgba(239, 234, 224, .72); max-width: 440px; text-wrap: pretty; }

/* ---------- 01 Услуги ---------- */
.cards { display: grid; gap: 1px; background: var(--hair); grid-template-columns: minmax(0, 1fr); }
.cards > li { background: var(--bg); }
.card { position: relative; display: flex; flex-direction: column; gap: 14px; height: 100%; min-height: 320px; padding: 28px; overflow: hidden; background: var(--surface); border: 1px solid var(--hair); transition: border-color .5s, background-color .5s; }
.card:hover { border-color: var(--hair-strong); background: var(--surface-2); }
.card__mark { position: absolute; right: 12px; top: -26px; font-family: var(--serif); font-style: italic; font-size: 190px; line-height: 1; color: var(--accent); opacity: .08; pointer-events: none; transition: opacity .6s, transform 1.2s var(--ease); }
.card:hover .card__mark { opacity: .16; transform: translateY(8px); }
.card__title { font-family: var(--serif); font-weight: 400; font-size: 26px; line-height: 1.1; letter-spacing: -.01em; margin-top: 4px; }
.card__sub { font-size: 13px; color: var(--muted); }
.card__hr { height: 1px; background: var(--hair); margin-top: auto; }
.card__foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.card__foot > span:first-child { display: flex; flex-direction: column; gap: 4px; }
.card__price { font-family: var(--serif); font-weight: 400; font-size: 30px; line-height: 1; letter-spacing: -.01em; white-space: nowrap; }
.card__go { display: inline-flex; align-items: center; gap: 6px; font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); transition: color .3s; }
.card:hover .card__go { color: var(--accent); }

/* ---------- 02 Цены ---------- */
.calc { display: grid; gap: 40px; grid-template-columns: minmax(0, 1fr); }
.summary { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; padding: 28px; background: var(--surface); border: 1px solid var(--hair-strong); }
.total { font-family: var(--serif); font-weight: 400; font-size: clamp(3rem, 7vw, 5rem); line-height: 1; letter-spacing: -.03em; white-space: nowrap; font-variant-numeric: lining-nums; padding-bottom: .08em; }
.total.is-bump { animation: bump .45s var(--ease); }
@keyframes bump { 40% { transform: scale(1.05); } }
.summary__meta { font-size: 15px; color: var(--fg-dim); }
.summary__how { font-size: 13px; color: var(--muted); max-width: 34ch; text-wrap: pretty; }
.summary__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; margin-top: 8px; }

.tabs { display: none; position: sticky; top: var(--bar-h); z-index: 30; gap: 4px; margin: 0 calc(var(--pad) * -1) 8px; padding: 12px var(--pad); overflow-x: auto; scrollbar-width: none; background: rgba(8, 8, 10, .82); -webkit-backdrop-filter: blur(28px) saturate(160%); backdrop-filter: blur(28px) saturate(160%); border-bottom: 1px solid var(--hair); }
.tabs::-webkit-scrollbar { display: none; }
@media (max-width: 959px) { .tabs { -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 36px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 36px), transparent); } }
.js .tabs { display: flex; }
.tab { flex: none; position: relative; height: 36px; padding: 0 20px; border-radius: 999px; font-size: 11px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; white-space: nowrap; color: rgba(239, 234, 224, .55); transition: color .3s, background-color .4s var(--ease); }
.tab:hover { color: var(--fg); }
.tab[aria-selected="true"] { background: var(--accent); color: var(--on-accent); }
.panel__title { font-family: var(--serif); font-weight: 400; font-size: clamp(2rem, 5vw, 3.2rem); line-height: 1; letter-spacing: -.03em; margin: 24px 0 8px; }
.js .panel__title { display: none; }
.panel[data-late] { margin-top: 64px; }
.js .panel[data-late] { display: none; }
.panel[hidden] { display: none; }
.panel.is-active { animation: panel-in .6s var(--ease); }
@keyframes panel-in { from { opacity: 0; transform: translateY(14px); } }
.pgroup { margin-top: 48px; }
.js .pgroup:first-of-type { margin-top: 28px; }
.pgroup__title { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 22px; line-height: 1.15; letter-spacing: -.01em; padding-bottom: 14px; border-bottom: 1px solid var(--hair-strong); }
.rows { display: grid; }
.row { border-bottom: 1px solid var(--hair); }
.row__pick { display: grid; align-items: start; gap: 2px 14px; padding: 16px 12px; margin-inline: -12px; cursor: pointer; grid-template-columns: 22px minmax(0, 1fr) auto; grid-template-areas: "box text price" "box text time"; transition: background-color .3s; }
.row__pick:hover { background: var(--surface); }
.row__pick:has(input:checked) { background: var(--accent-soft); }
.row__check { position: absolute; opacity: 0; inline-size: 0; block-size: 0; margin: 0; }
.row__box { grid-area: box; width: 22px; height: 22px; margin-top: 1px; border-radius: 50%; border: 1px solid var(--hair-strong); position: relative; transition: background-color .3s, border-color .3s; }
.row__box::after { content: ""; position: absolute; left: 6px; top: 5px; width: 9px; height: 5px; border-left: 2px solid var(--on-accent); border-bottom: 2px solid var(--on-accent); transform: rotate(-45deg) scale(.3); opacity: 0; transition: transform .3s var(--ease), opacity .2s; }
.row__pick:hover .row__box { border-color: rgba(229, 185, 119, .55); }
.row__check:checked + .row__box { background: var(--accent); border-color: var(--accent); }
.row__check:checked + .row__box::after { transform: rotate(-45deg) scale(1); opacity: 1; }
.row__check:focus-visible + .row__box { outline: 2px solid rgba(229, 185, 119, .7); outline-offset: 3px; }
.row__text { grid-area: text; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.row__name { font-size: 14px; line-height: 1.4; color: rgba(239, 234, 224, .92); text-wrap: pretty; }
.row__note { font-size: 12px; line-height: 1.5; color: var(--muted); text-wrap: pretty; }
.row__price { grid-area: price; font-family: var(--serif); font-size: 18px; line-height: 1.2; text-align: right; white-space: nowrap; letter-spacing: -.01em; }
.row__time { grid-area: time; font-size: 12px; color: var(--muted); text-align: right; white-space: nowrap; }
.panel__note { margin-top: 32px; max-width: 46ch; font-size: 13px; color: var(--muted); }
.menu__foot { margin-top: 48px; max-width: 46ch; font-size: 12px; color: var(--muted); }

/* ---------- 03 Мастера ---------- */
.masters { display: grid; gap: 1px; background: var(--hair); grid-template-columns: minmax(0, 1fr); }
.masters > li { background: var(--bg); }
.mcard { position: relative; display: flex; flex-direction: column; height: 100%; background: var(--surface); border: 1px solid var(--hair); transition: border-color .5s; }
.mcard:hover { border-color: var(--hair-strong); }
.mcard__img { position: relative; aspect-ratio: 3 / 4; overflow: hidden; background: var(--surface-2); }
.mcard__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; transition: transform 1.2s var(--ease); }
.mcard:hover .mcard__img img { transform: scale(1.04); }
.mcard__mono { position: absolute; inset: 0; display: grid; place-items: center; padding-bottom: 14%; font-family: var(--serif); font-style: italic; font-size: clamp(9rem, 26vw, 12rem); line-height: 1; color: var(--accent); opacity: .22; background: radial-gradient(ellipse 60% 50% at 50% 42%, rgba(229, 185, 119, .1), transparent 70%); }
.mcard__shade { position: absolute; inset: 0; background: linear-gradient(to top, #08080a, rgba(8, 8, 10, .3) 45%, transparent); }
.mcard__no { position: absolute; top: 14px; right: 14px; display: grid; place-items: center; min-width: 30px; height: 30px; border-radius: 50%; background: rgba(8, 8, 10, .55); font-family: var(--serif); font-style: italic; font-size: 12px; color: var(--accent); }
.mcard__info { position: absolute; inset: auto 0 0 0; padding: 24px; }
.mcard__info h3 { font-family: var(--serif); font-weight: 400; font-size: 28px; line-height: 1.05; letter-spacing: -.01em; margin-top: 8px; }
.mcard__info p:last-child { font-size: 12px; color: rgba(239, 234, 224, .65); margin-top: 8px; }
.mcard__tags { display: flex; flex-wrap: wrap; gap: 4px 12px; padding: 16px 20px; border-top: 1px solid var(--hair); font-size: 11px; color: rgba(239, 234, 224, .65); flex: 1; align-content: flex-start; }
.mcard__tags span + span::before { content: "/"; margin-right: 12px; color: rgba(138, 132, 123, .5); }

/* ---------- 04 Отзывы ---------- */
.reviews__grid { display: grid; gap: 40px; grid-template-columns: minmax(0, 1fr); }
.reviews__text { display: flex; flex-direction: column; gap: 28px; align-items: flex-start; }
.rate { display: flex; align-items: baseline; gap: 14px; }
.rate b { font-family: var(--serif); font-weight: 400; font-size: clamp(4rem, 9vw, 6.5rem); line-height: 1; letter-spacing: -.04em; padding-bottom: .08em; }
.rate span { font-size: 13px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.topics { width: 100%; max-width: 440px; border-collapse: collapse; font-size: 14px; }
.topics tr { border-bottom: 1px solid var(--hair); }
.topics th { text-align: left; font-weight: 300; padding: 12px 16px 12px 0; color: rgba(239, 234, 224, .85); }
.topics td { padding: 12px 16px 12px 0; font-family: var(--serif); font-size: 16px; color: var(--accent); }
.topics td:last-child { padding-right: 0; text-align: right; font-family: var(--sans); font-size: 12px; color: var(--muted); }
.widget { min-width: 0; overflow: hidden; background: var(--surface); border: 1px solid var(--hair-strong); }
.widget iframe { display: block; width: 100%; height: 640px; border: 0; background: #fff; }

/* ---------- 05 Салон ---------- */
.salon__grid { display: grid; gap: 48px; grid-template-columns: minmax(0, 1fr); align-items: start; }
.salon__video { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.salon__video figcaption { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.video { position: relative; width: min(100%, 360px); aspect-ratio: 9 / 16; overflow: hidden; background: #000; border: 1px solid var(--hair-strong); }
.video video { display: block; width: 100%; height: 100%; object-fit: cover; background: #000; }
.video__play { position: absolute; inset: 0; display: grid; place-items: center; background: linear-gradient(to top, rgba(8, 8, 10, .55), rgba(8, 8, 10, .1) 55%); cursor: pointer; }
.video__play span { width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--on-accent); font-size: 26px; box-shadow: 0 16px 40px -8px rgba(229, 185, 119, .6); transition: transform .4s var(--ease), background-color .3s; }
.video__play .icon { fill: currentColor; margin-left: 4px; }
.video__play:hover span { transform: scale(1.08); background: var(--accent-hi); }
.facts { display: grid; }
.fact { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 4px 12px; padding-block: 24px; border-top: 1px solid var(--hair-strong); }
.fact:last-child { border-bottom: 1px solid var(--hair-strong); }
.fact__no { font-family: var(--serif); font-style: italic; font-size: 14px; color: var(--accent); padding-top: .4em; }
.fact__title { font-family: var(--serif); font-weight: 400; font-size: clamp(1.4rem, 2.4vw, 1.75rem); line-height: 1.1; letter-spacing: -.01em; text-wrap: balance; }
.fact__text { margin-top: 8px; font-size: 14px; color: var(--muted); max-width: 46ch; text-wrap: pretty; }

/* ---------- 06 Галерея ---------- */
/* ---------- Вход: фото снаружи ---------- */
.outside { display: grid; gap: 28px; margin-bottom: clamp(40px, 6vw, 72px); }
.outside__photos { display: flex; gap: 8px; margin-inline: calc(var(--pad) * -1); padding-inline: var(--pad); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.outside__photos::-webkit-scrollbar { display: none; }
.outside__item { position: relative; flex: 0 0 82%; aspect-ratio: 3 / 4; overflow: hidden; scroll-snap-align: start; background: var(--surface); border: 1px solid var(--hair); }
.outside__item img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.outside__item:hover img { transform: scale(1.04); }
.outside__item::after { content: ""; position: absolute; inset: auto 0 0 0; height: 30%; background: linear-gradient(to top, rgba(8, 8, 10, .7), transparent); pointer-events: none; }
.outside__cap { position: absolute; z-index: 1; left: 16px; bottom: 14px; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: rgba(239, 234, 224, .9); }
.outside__text { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.outside__title { font-family: var(--serif); font-weight: 400; font-size: clamp(1.5rem, 5vw, 2rem); line-height: 1.12; letter-spacing: -.01em; text-wrap: balance; }
.outside__text p { color: rgba(239, 234, 224, .78); line-height: 1.6; text-wrap: pretty; }
.outside__text .eyebrow { color: var(--accent); }
.outside__addr { display: flex; align-items: flex-start; gap: 10px; color: var(--fg) !important; }
.outside__addr .icon { flex: none; margin-top: 3px; color: var(--accent); }
.gallery { display: grid; gap: 1px; background: var(--hair); grid-template-columns: repeat(2, minmax(0, 1fr)); }
.gallery__item { position: relative; overflow: hidden; aspect-ratio: 3 / 4; background: var(--bg); }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.gallery__item:hover img { transform: scale(1.05); }
.gallery__item::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(8, 8, 10, .35), transparent); pointer-events: none; transition: opacity .5s; }
.gallery__item:hover::after { opacity: 0; }
.gallery__item span { position: absolute; z-index: 1; left: 12px; bottom: 10px; font-family: var(--serif); font-style: italic; font-size: 12px; color: rgba(239, 234, 224, .75); }

/* ---------- 07 Контакты ---------- */
.contacts__grid { display: grid; gap: 40px; grid-template-columns: minmax(0, 1fr); align-items: center; }
.contacts__text { display: flex; flex-direction: column; align-items: flex-start; }
.clist { width: 100%; margin-top: 40px; }
.clist li { display: flex; align-items: flex-start; gap: 16px; padding-block: 20px; border-bottom: 1px solid var(--hair); }
.clist li:first-child { padding-top: 0; }
.clist li:last-child { border-bottom: 0; }
.clist .icon { margin-top: 2px; font-size: 16px; color: var(--accent); }
.clist p:last-child, .clist a { display: block; margin-top: 6px; font-size: 15px; color: rgba(239, 234, 224, .9); transition: color .3s; }
.clist a:hover { color: var(--accent); }
.contacts__meta { margin-top: 8px; font-size: 13px; color: var(--muted); }
.contacts__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.contacts__map { min-width: 0; }
.map { position: relative; width: 100%; aspect-ratio: 4 / 3; min-height: 320px; background: var(--surface); border: 1px solid var(--hair-strong); overflow: hidden; }
.map__fallback { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); }
.map.is-ready .map__fallback { display: none; }
.map .leaflet-container { width: 100%; height: 100%; background: var(--surface); font: inherit; }
.map .leaflet-tile-pane { filter: grayscale(1) invert(1) brightness(.82) contrast(.9); }
.map .leaflet-container .leaflet-control-attribution { font-size: 10px; background: rgba(8, 8, 10, .8); color: var(--muted); }
.map .leaflet-container .leaflet-control-attribution a { color: var(--fg-dim); }
.map .leaflet-bar { border: 1px solid var(--hair-strong); }
.map .leaflet-bar a { background: var(--surface); color: var(--fg); border-bottom-color: var(--hair-strong); width: 40px; height: 40px; line-height: 40px; }
.map .leaflet-bar a:hover { background: var(--surface-2); color: var(--accent); }
.pin { display: block; width: 36px; height: 36px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: var(--accent); box-shadow: 0 8px 24px -4px rgba(229, 185, 119, .6); position: relative; }
.pin::after { content: ""; position: absolute; inset: 11px; border-radius: 50%; background: var(--on-accent); }

/* ---------- Финальный призыв ---------- */
.cta { position: relative; overflow: hidden; padding-block: clamp(112px, 13vw, 176px); text-align: center; }
.cta__glow { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse 50% 60% at 50% 50%, rgba(229, 185, 119, .08), transparent 70%); }
.cta__in { position: relative; display: flex; flex-direction: column; align-items: center; }
.cta__h { margin-top: 32px; font-family: var(--serif); font-weight: 400; font-size: clamp(2.6rem, 8vw, 7rem); line-height: .96; letter-spacing: -.035em; text-wrap: balance; }
.cta__h em { display: block; padding-right: .06em; }
.cta__p { margin-top: 32px; max-width: 480px; font-size: 15px; color: var(--muted); text-wrap: pretty; }
.cta__actions { margin-top: 48px; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 16px 28px; }
.cta__phone { font-size: 12px; letter-spacing: .2em; padding: 12px 0; border-bottom: 1px solid var(--hair-strong); color: rgba(239, 234, 224, .85); transition: color .3s, border-color .3s; }
.cta__phone:hover { color: var(--fg); border-color: rgba(229, 185, 119, .6); }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--hair); background: var(--bg-deep); padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
.marquee--foot { border-block: 0; border-bottom: 1px solid var(--hair); padding-block: 28px; }
.marquee__row--big span { font-family: var(--serif); font-style: italic; font-size: clamp(2.25rem, 5vw, 3rem); line-height: 1; letter-spacing: -.01em; text-transform: none; color: rgba(239, 234, 224, .8); }
.marquee__row--big i { width: 6px; height: 6px; background: var(--accent); margin-inline: 48px; }
.footer__in { display: grid; gap: 40px; padding-block: 72px; }
.footer__logo { display: inline-flex; align-items: baseline; gap: 12px; }
.footer__logo { align-items: center; gap: 16px; }
.footer__logo img { width: 72px; height: 72px; flex: none; }
.footer__logo b { font-family: var(--serif); font-weight: 400; font-size: 28px; letter-spacing: -.01em; }
.footer__brand p { margin-top: 20px; max-width: 420px; font-size: 14px; color: var(--muted); }
.socials { display: flex; gap: 10px; margin-top: 24px; }
.social { display: inline-grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--hair-strong); border-radius: 50%; font-size: 17px; color: rgba(239, 234, 224, .7); transition: color .3s, border-color .3s; }
.social:hover { color: var(--fg); border-color: rgba(229, 185, 119, .55); }
.footer__brand .footer__note { margin-top: 12px; font-size: 11px; line-height: 1.5; max-width: 360px; color: rgba(138, 132, 123, .85); }
.footer__list { margin-top: 20px; display: grid; gap: 14px; font-size: 14px; }
.footer__list a { color: rgba(239, 234, 224, .7); transition: color .3s; }
.footer__list a:hover { color: var(--fg); }
.footer__list--ic li { display: flex; align-items: flex-start; gap: 12px; color: rgba(239, 234, 224, .75); }
.footer__list--ic .icon { margin-top: 3px; color: var(--accent); }
.footer__bar { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: space-between; gap: 8px; padding-block: 24px; font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }

.footer__bar::before { content: ""; position: absolute; top: 0; left: var(--pad); right: var(--pad); height: 1px; background: var(--hair); }

/* ---------- Mobile dock ---------- */
.dock { position: fixed; inset: auto 0 0 0; z-index: 45; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 8px; padding: 10px var(--pad) calc(10px + env(safe-area-inset-bottom)); background: rgba(8, 8, 10, .86); -webkit-backdrop-filter: blur(28px) saturate(160%); backdrop-filter: blur(28px) saturate(160%); border-top: 1px solid var(--hair); transition: transform .3s var(--ease); }
.dock .pill { padding: 0 10px; height: 46px; }
body.is-locked .dock { transform: translateY(100%); }

/* ---------- Запись: панель справа с виджетом S.Online ---------- */
.modal { position: fixed; inset: 0 0 0 auto; margin: 0; width: min(100%, 640px); max-width: none; height: 100dvh; max-height: none; padding: 0; border: 0; border-left: 1px solid var(--hair-strong); background: var(--surface); color: var(--fg); overflow: hidden; }
.modal::backdrop { background: rgba(8, 8, 10, .82); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.modal[open] { animation: panel-slide .6s var(--ease); }
@keyframes panel-slide { from { transform: translateX(100%); } }
.modal__inner { display: flex; flex-direction: column; height: 100%; }
.modal__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 16px 14px 24px; border-bottom: 1px solid var(--hair); }
.modal__title { font-family: var(--serif); font-weight: 400; font-size: 22px; line-height: 1.15; letter-spacing: -.01em; margin-top: 4px; }
.modal__title:focus { outline: 0; }
.modal__close { width: 44px; height: 44px; display: grid; place-items: center; font-size: 18px; color: rgba(239, 234, 224, .65); flex: none; transition: color .3s; }
.modal__close:hover { color: var(--fg); }
.modal__hint { padding: 12px 24px; font-size: 13px; line-height: 1.5; color: rgba(239, 234, 224, .85); background: var(--surface-2); border-bottom: 1px solid var(--hair); }
.modal__hint b { font-weight: 400; color: var(--accent); }
.book-frame { position: relative; flex: 1; min-height: 0; background: var(--surface); }
.book-frame__load { position: absolute; inset: 0; display: grid; place-content: center; padding: 24px; text-align: center; font-size: 14px; line-height: 1.6; color: var(--muted); }
.book-frame__load[hidden] { display: none; }
.book-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.modal__foot { display: flex; flex-wrap: wrap; gap: 0 28px; padding: 6px 24px calc(6px + env(safe-area-inset-bottom)); border-top: 1px solid var(--hair); font-size: 13px; }
.modal__foot a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: rgba(239, 234, 224, .85); transition: color .3s; }
.modal__foot a:hover { color: var(--accent); }
.modal__foot .icon { font-size: 15px; color: var(--accent); }

/* ---------- Появление частей секций ---------- */
.reveal-ready .rise { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: calc(var(--i, 0) * 80ms); }
.reveal-ready .rise.is-in { opacity: 1; transform: none; }

/* ==========================================================================
   Breakpoints
   ========================================================================== */
@media (min-width: 640px) {
  .logo__text small { display: block; }
  .bar__cta { display: inline-flex; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .masters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .footer__bar { flex-direction: row; }
}

@media (min-width: 768px) {
  .outside { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); align-items: center; column-gap: clamp(32px, 5vw, 80px); }
  .outside__photos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-inline: 0; padding-inline: 0; overflow: visible; }
  .outside__item { flex: none; }
  .bar__phone { display: inline-flex; }
  .dock { display: none; }
  .footer { padding-bottom: 0; }
  .hero__vl { display: none; position: absolute; z-index: 1; left: 28px; top: 50%; transform: translateY(-50%) rotate(180deg); font-size: 10px; letter-spacing: .32em; text-transform: uppercase; color: var(--muted); }
  .hero__tr { display: flex; position: absolute; z-index: 1; right: 28px; top: 88px; flex-direction: column; align-items: flex-end; gap: 12px; }
  .live { display: inline-flex; align-items: center; gap: 8px; font-size: 10px; letter-spacing: .24em; text-transform: uppercase; color: rgba(239, 234, 224, .85); }
  .live i { width: 6px; height: 6px; border-radius: 50%; background: #34d399; animation: pulse 2s ease-in-out infinite; }
  @keyframes pulse { 50% { opacity: .35; } }
  .hero__scroll { display: none; position: absolute; z-index: 1; left: 50%; bottom: 28px; transform: translateX(-50%); flex-direction: column; align-items: center; gap: 12px; opacity: 0; animation: scroll-show 1s ease 1.6s forwards; }
  @keyframes scroll-show { to { opacity: .7; } }
  .hero__scroll span { font-size: 9px; letter-spacing: .32em; text-transform: uppercase; color: var(--muted); }
  .hero__scroll i { width: 1px; height: 40px; background: linear-gradient(to bottom, var(--accent), transparent); transform-origin: top; animation: scroll-line 2.2s ease-in-out infinite; }
  @keyframes scroll-line { 0%, 100% { transform: scaleY(.3); } 50% { transform: scaleY(1); } }
  .shead { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px 40px; }
  .shead__l { grid-column: span 7; }
  .shead__r { grid-column: span 5; align-items: flex-end; }
  .shead__desc { text-align: right; }
  .row__pick { grid-template-columns: 22px minmax(0, 1fr) 6em 8em; grid-template-areas: "box text time price"; gap: 2px 18px; align-items: baseline; }
  .row__box { align-self: start; }
  .row__time { text-align: right; }
  .footer__in { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; }
  .footer__brand { grid-column: span 5; }
  .footer__in > div:nth-child(2) { grid-column: span 3; }
  .footer__in > div:nth-child(3) { grid-column: span 4; }
}

@media (min-width: 1024px) {
  .hero__row { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px 40px; align-items: end; }
  .hero__lead { grid-column: span 4; }
  .hero__actions { grid-column: span 4; }
  .hero__team { grid-column: span 4; justify-self: end; }
  .hero__scroll { display: flex; }
  .hero__team-t b { white-space: nowrap; }
  .bar__nav { display: flex; align-items: center; gap: 28px; }
  .bar__menu { display: none; }
  .drawer { display: none !important; }
  .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .masters { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .calc { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: clamp(32px, 6vw, 96px); align-items: start; }
  .summary { position: sticky; top: calc(var(--bar-h) + 32px); padding: 36px; }
  .tabs { margin-inline: 0; padding-inline: 0; background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; border-bottom: 0; top: var(--bar-h); padding-block: 14px; background: linear-gradient(to bottom, var(--bg) 70%, transparent); }
  .reviews__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: clamp(32px, 5vw, 96px); align-items: start; }
  .widget iframe { height: 700px; }
  .salon__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: clamp(40px, 6vw, 96px); }
  .salon__video { position: sticky; top: calc(var(--bar-h) + 32px); }
  .fact { grid-template-columns: 56px minmax(0, 1fr); padding-block: 32px; }
  .contacts__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: clamp(40px, 5vw, 80px); }
  .map { min-height: 460px; }
}

@media (min-width: 1280px) {
  .hero__vl { display: block; }
  .row__pick { padding-inline: 16px; margin-inline: -16px; }
}

@media (max-width: 767px) {
  .hero__body { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
}

@media (max-width: 380px) {
  .hero__actions .pill { width: 100%; }
  .row__pick { gap: 2px 10px; }
  .card { padding: 22px; }
}

@media (max-height: 560px) and (orientation: landscape) {
  .hero { min-height: auto; }
  .hero__scroll { display: none; }
  .drawer__link span { font-size: 26px; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; animation-delay: 0s !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
  .marquee__track { animation: none; }
  .hero__eyebrow, .hero__row { opacity: 1; }
  .line__in { transform: none; }
  .reveal-ready .rise { opacity: 1; transform: none; }
}
