/* ==========================================================================
   PINK HOUSE — розовый дом в бетонном районе
   Снаружи: графит, бетонная фактура, трафарет, панельный фасад.
   Внутри: розовый — всё, что про клиентку (окна, запись, кнопки).
   ========================================================================== */

@font-face { font-family: 'PH Stencil'; src: url('../fonts/ph-stencil.woff2') format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Golos Text'; src: url('../fonts/golos-text.woff2') format('woff2'); font-weight: 400 900; font-display: swap; }
@font-face { font-family: 'Stardos Stencil'; src: url('../fonts/stardos-stencil-bold.woff2') format('woff2'); font-weight: 700; font-display: swap; }

:root {
  /* бренд */
  --pink: #FF94DB;
  --gray: #B7B6C3;
  /* бетон */
  --graphite: #2B2A30;
  --graphite-2: #36353C;
  --seam: #4A4952;
  /* внутри */
  --pink-wash: #FFE4F6;
  --paper: #F4F3F7;
  --white: #FFFFFF;
  --ink: #2B2A30;
  --ink-soft: #5B5966;
  --danger: #B3123E;
  /* фасад панельки */
  --facade-bg: #28272E;
  --facade-win: #3D3C44;
  --plinth: #45444D;
  --plinth-edge: #33323A;
  /* светлые состояния */
  --paper-2: #E6E4EB;
  --placeholder: #8A8896;

  --f-display: 'PH Stencil', 'Oswald', 'Arial Narrow', sans-serif;
  --f-text: 'Golos Text', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --f-logo: 'Stardos Stencil', Georgia, serif;

  --t-xs: 0.8125rem;
  --t-sm: 0.9375rem;
  --t-md: 1.0625rem;
  --t-lg: 1.3125rem;
  --t-xl: 1.75rem;
  --t-2xl: clamp(2.5rem, 1.6rem + 3.6vw, 4.75rem);
  --t-hero: clamp(3rem, 1.2rem + 4.4vw, 5.5rem);

  --line: 2px solid var(--ink);
  --gutter: clamp(16px, 4vw, 48px);
  --maxw: 1320px;
  --header-h: 76px;
  --ease: cubic-bezier(.2, .7, .2, 1);

  --noise: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 .14 0 0 0 -.02'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  margin: 0; background: var(--graphite); color: var(--white);
  font: 400 var(--t-md)/1.55 var(--f-text); -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
button { font: inherit; color: inherit; }

.concrete { background-color: var(--graphite); background-image: var(--noise); color: var(--white); }

:focus-visible { outline: 3px solid var(--pink); outline-offset: 3px; }
.on-light :focus-visible, .calm :focus-visible, .team :focus-visible, .faq :focus-visible, .booking :focus-visible {
  outline-color: var(--ink); box-shadow: 0 0 0 6px var(--pink);
}

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--pink); color: var(--ink); padding: 12px 16px; }
.skip:focus { top: 12px; }

/* ---------- полоса прототипа ---------- */
.proto-ribbon {
  position: relative; z-index: 35; background: var(--pink); color: var(--ink);
  font-size: var(--t-xs); line-height: 1.4; padding: 4px var(--gutter);
  display: flex; flex-wrap: wrap; gap: 0 16px; align-items: center; justify-content: center; text-align: center;
}
.proto-panel { position: relative; }
.proto-panel summary {
  list-style: none; cursor: pointer; font-weight: 700; min-height: 32px; display: flex; align-items: center;
  text-decoration: underline; text-underline-offset: 3px;
}
.proto-panel summary::-webkit-details-marker { display: none; }
.proto-panel__body {
  position: absolute; top: calc(100% + 4px); right: 0; width: 280px; text-align: left;
  background: var(--white); border: var(--line); padding: 16px; display: grid; gap: 14px; font-size: var(--t-sm);
}
.proto-panel fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 6px; }
.proto-panel legend { font-weight: 700; margin-bottom: 6px; }
.proto-panel label { display: flex; gap: 8px; align-items: center; min-height: 32px; cursor: pointer; }
.proto-panel input { accent-color: var(--ink); width: 18px; height: 18px; }

/* ---------- кнопки ---------- */
.btn {
  --h: 52px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: var(--h); padding: 0 26px; border: 2px solid transparent; border-radius: 999px;
  font-weight: 650; font-size: var(--t-md); line-height: 1.1; text-decoration: none; text-align: center;
  cursor: pointer; user-select: none; touch-action: manipulation;
  transition: background-color .15s var(--ease), color .15s var(--ease), border-color .15s var(--ease), transform .1s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn--lg { --h: 60px; padding: 0 32px; font-size: var(--t-lg); }
.btn--sm { --h: 40px; padding: 0 16px; font-size: var(--t-sm); }
.btn--block { width: 100%; }
.btn--pink { background: var(--pink); color: var(--ink); border-color: var(--pink); }
.btn--pink:hover { background: var(--white); border-color: var(--white); }
.btn--ink { background: var(--ink); color: var(--pink); border-color: var(--ink); }
.btn--ink:hover { background: var(--pink); color: var(--ink); }
.btn--line-light { background: transparent; color: var(--white); border-color: var(--gray); }
.btn--line-light:hover { border-color: var(--pink); color: var(--pink); }
.btn--line-dark { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--line-dark:hover { background: var(--ink); color: var(--white); }
.btn[disabled], .btn[aria-disabled="true"] { background: var(--gray); color: var(--ink-soft); border-color: var(--gray); cursor: not-allowed; transform: none; }
.btn.is-loading { pointer-events: none; }
.btn.is-loading::before { content: ''; width: 16px; height: 16px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.icon-btn { width: 48px; height: 48px; display: grid; place-items: center; background: transparent; border: 2px solid var(--gray); border-radius: 50%; cursor: pointer; color: var(--white); }
.icon-btn:hover { border-color: var(--pink); color: var(--pink); }

/* ---------- шапка ---------- */
.site-header { position: sticky; top: 0; z-index: 30; border-bottom: 1px solid var(--seam); }
.site-header__in { height: var(--header-h); display: flex; align-items: center; gap: 32px; }
.wordmark { display: flex; flex-direction: column; text-decoration: none; line-height: 1; }
.wordmark__name { font-family: var(--f-logo); font-size: 2rem; letter-spacing: .05em; color: var(--pink); }
.wordmark__sub { font-size: var(--t-xs); color: var(--gray); margin-top: 5px; }
.site-nav { display: flex; gap: 28px; margin-left: auto; }
.site-nav a {
  text-decoration: none; font-weight: 500; color: var(--gray); padding: 8px 0;
  background: linear-gradient(var(--pink), var(--pink)) 0 100% / 0 3px no-repeat; transition: background-size .2s var(--ease), color .2s;
}
.site-nav a:hover { color: var(--white); background-size: 100% 3px; }
.site-header__cta { --h: 48px; }

/* ---------- HERO ---------- */
.hero { padding: clamp(32px, 4vw, 64px) 0 clamp(48px, 6vw, 96px); overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.hero__text { padding-top: clamp(0px, 2.5vw, 40px); }
.hero__title { font-family: var(--f-display); font-weight: 600; font-size: clamp(2.375rem, min(3.9vw, 7.4vh), 4.25rem); line-height: .98; letter-spacing: -0.005em; }
.hero__line { display: block; text-wrap: balance; }
.hero__line--gray { color: var(--gray); }
.hero__line--pink { color: var(--pink); margin-top: .12em; }
.hero__lead { margin-top: 28px; font-size: var(--t-lg); line-height: 1.45; color: var(--white); max-width: 34ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

.hero__house { position: relative; width: 100%; max-width: 440px; margin-left: auto; }
.house-frame {
  display: flex; flex-direction: column;
  background: var(--graphite);
  border: 2px solid var(--seam);
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
}

.facade { width: 100%; height: auto; display: block; background: var(--facade-bg); }
.facade .bay { transition: transform .2s var(--ease); }
.facade .bay.has-lit { cursor: pointer; }
.facade .bay__panel { transition: fill .2s var(--ease), stroke .2s var(--ease), stroke-width .2s; }
.facade .win { fill: var(--facade-win); transition: fill .25s var(--ease), filter .25s; }
.facade .win.is-lit { fill: var(--pink); }
.facade .glow { fill: var(--pink); opacity: .28; filter: blur(14px); transition: opacity .25s, filter .25s; }

@media (prefers-reduced-motion: no-preference) {
  .facade .win.is-lit, .facade .glow { animation: lightup .6s var(--ease) both; animation-delay: calc(var(--i) * 140ms + 300ms); }
  @keyframes lightup { 0% { fill: var(--facade-win); opacity: 0; } 40% { opacity: 1; } 55% { fill: var(--facade-win); } 100% { } }
}

/* Подсветка области квартиры и окна при наведении */
.facade .bay.has-lit:hover .bay__panel,
.facade .bay.has-lit:focus-visible .bay__panel,
.facade .bay.is-hot .bay__panel {
  fill: rgba(255, 148, 219, 0.18) !important;
  stroke: var(--pink) !important;
  stroke-width: 2px !important;
}
.facade .bay.has-lit:hover .win,
.facade .bay.has-lit:focus-visible .win,
.facade .bay.is-hot .win {
  fill: var(--white) !important;
  filter: drop-shadow(0 0 10px rgba(255, 148, 219, 0.95)) drop-shadow(0 0 20px rgba(255, 148, 219, 0.6)) !important;
}
.facade .bay.has-lit:hover .glow,
.facade .bay.has-lit:focus-visible .glow,
.facade .bay.is-hot .glow {
  opacity: 0.8 !important;
  filter: blur(20px) !important;
}

/* Разделитель между фасадом и табло */
.house-divider {
  height: 2px;
  background: linear-gradient(90deg, var(--seam) 0%, var(--pink) 50%, var(--seam) 100%);
}

/* Табло свободных окон */
.windows {
  position: relative; width: 100%; margin: 0;
  background: var(--graphite);
  border: 0;
}
.windows__head {
  padding: 14px 18px 10px; border-bottom: 1px solid var(--seam);
  display: flex; flex-direction: column; gap: 4px;
}
.windows__title { font-family: var(--f-display); font-weight: 600; font-size: var(--t-xl); line-height: 1; color: var(--pink); }
.windows__hint { font-size: var(--t-xs); color: var(--gray); }

.win-row {
  width: 100%; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0 12px; align-items: center;
  padding: 10px 18px; min-height: 54px; background: transparent; border: 0; border-top: 1px solid var(--seam);
  text-align: left; cursor: pointer; color: var(--white);
  transition: background .2s var(--ease), border-color .2s, padding-left .2s;
}
.windows__list li:first-child .win-row { border-top: 0; }
.win-row:hover, .win-row:focus-visible, .win-row.is-hot {
  background: rgba(255, 148, 219, 0.12);
  border-left: 4px solid var(--pink);
  padding-left: 14px;
}
.win-row.is-hot .win-row__what { color: var(--pink); }
.win-row.is-hot .win-row__time { color: var(--white); text-shadow: 0 0 10px var(--pink); }

.win-row__what { font-weight: 650; }
.win-row__who { grid-column: 1; font-size: var(--t-xs); color: var(--gray); }
.win-row__when { grid-row: 1 / 3; grid-column: 2; text-align: right; line-height: 1.05; }
.win-row__day { display: block; font-size: var(--t-xs); color: var(--gray); }
.win-row__time { font-family: var(--f-display); font-size: 1.5rem; color: var(--pink); transition: color .2s; }

/* Цоколь / фундамент домика */
.house-plinth {
  height: 12px; background: var(--plinth); border-top: 1px solid var(--plinth-edge);
}

/* ---------- без головной боли ---------- */
.calm { background: var(--pink); color: var(--ink); padding: clamp(48px, 6vw, 80px) 0; }
.calm__title { font-family: var(--f-display); font-weight: 600; font-size: var(--t-2xl); line-height: 1; margin-bottom: clamp(24px, 3vw, 40px); }
.calm__list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: var(--line); }
.calm__list li { padding: 20px 24px 8px 0; }
.calm__list li + li { padding-left: 24px; border-left: var(--line); }
.calm__list h3 { font-family: var(--f-display); font-weight: 600; font-size: 1.625rem; line-height: 1.05; margin-bottom: 10px; }
.calm__list p { max-width: 34ch; }

/* ---------- секции ---------- */
.section { padding: clamp(64px, 8vw, 120px) 0; }
.section__head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 36ch); gap: 12px 48px; align-items: end; margin-bottom: clamp(28px, 4vw, 48px); }
.section__title { font-family: var(--f-display); font-weight: 600; font-size: var(--t-2xl); line-height: 1; letter-spacing: -0.005em; }
.concrete .section__title { color: var(--pink); }
.section__note { font-size: var(--t-sm); color: var(--gray); }

/* ---------- прайс ---------- */
.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 24px; }
.tab {
  min-height: 48px; padding: 0 22px; border: 2px solid var(--gray); border-radius: 999px; background: transparent;
  color: var(--white); font-weight: 650; cursor: pointer; transition: border-color .15s, background-color .15s, color .15s;
}
.tab:hover { border-color: var(--pink); }
.tab[aria-selected="true"] { background: var(--pink); border-color: var(--pink); color: var(--ink); }
.prices__panel { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: clamp(20px, 3vw, 40px); align-items: start; }
.plist { border-top: 2px solid var(--gray); }
.svc {
  width: 100%; display: grid; grid-template-columns: minmax(0, 1fr); gap: 2px 24px; /* без цены и длительности — они на шаге 4 записи (D-25) */ align-items: center;
  padding: 18px 4px; min-height: 72px; background: transparent; border: 0; border-bottom: 1px solid var(--seam);
  text-align: left; cursor: pointer; color: var(--white); transition: background-color .12s, padding .12s;
}
.svc:hover, .svc:focus-visible, .svc:active { background: var(--pink); color: var(--ink); padding-left: 14px; padding-right: 14px; }
.svc:hover .svc__name b, .svc:hover .svc__name em, .svc:hover .svc__go,
.svc:focus-visible .svc__name b, .svc:focus-visible .svc__name em, .svc:focus-visible .svc__go,
.svc:active .svc__name b, .svc:active .svc__name em { color: var(--ink); }

/* Прайс-аккордеон: разделы свёрнуты, розовым — то, на что указываешь */
.pgroup { border-bottom: 1px solid var(--seam); }
.pgroup__head { list-style: none; display: flex; align-items: center; gap: 16px; min-height: 56px; padding: 12px 4px; cursor: pointer;
  color: var(--pink); transition: background-color .15s var(--ease), color .15s var(--ease), padding .15s var(--ease); }
.pgroup__head::-webkit-details-marker { display: none; }
.pgroup__name { font-family: var(--f-display); font-weight: 600; font-size: var(--t-xl); line-height: 1.05; min-width: 0; }
.pgroup__n { margin-left: auto; font-size: var(--t-sm); color: var(--gray); white-space: nowrap; }
.pgroup__head::after { content: '+'; flex: none; width: 1em; text-align: center; font-size: 1.75rem; line-height: 1; color: var(--white); transition: transform .2s var(--ease); }
.pgroup[open] > .pgroup__head::after { transform: rotate(45deg); }
.pgroup__head:hover, .pgroup__head:focus-visible, .pgroup__head:active { background: var(--pink); color: var(--ink); padding-left: 14px; padding-right: 14px; }
.pgroup__head:hover .pgroup__n, .pgroup__head:hover::after, .pgroup__head:focus-visible .pgroup__n, .pgroup__head:focus-visible::after,
.pgroup__head:active .pgroup__n, .pgroup__head:active::after { color: var(--ink); }
.pgroup__list { padding: 0 0 12px; border-top: 1px solid var(--seam); }
.pgroup__list .svc:last-child { border-bottom: 0; }
@media (hover: none) {
  .svc:hover, .pgroup__head:hover { background: transparent; color: inherit; padding-left: 4px; padding-right: 4px; }
  .pgroup__head:hover { color: var(--pink); }
  .svc:hover .svc__name b { color: var(--white); } .svc:hover .svc__name em { color: var(--gray); }
  .pgroup__head:hover .pgroup__n { color: var(--gray); } .pgroup__head:hover::after { color: var(--white); }
}
.svc__name { font-weight: 600; font-size: var(--t-lg); line-height: 1.25; }
.svc__go { grid-column: 1 / -1; font-size: var(--t-xs); color: var(--pink); font-weight: 600; max-height: 0; overflow: hidden; opacity: 0; transition: opacity .15s; }
.svc:hover .svc__go, .svc:focus-visible .svc__go { max-height: 2em; opacity: 1; }

.prep { background: var(--pink-wash); color: var(--ink); padding: 24px; display: grid; gap: 16px; position: sticky; top: calc(var(--header-h) + 20px); }
.prep h3 { font-family: var(--f-display); font-weight: 600; font-size: var(--t-xl); line-height: 1; }
.prep ul { display: grid; gap: 10px; }
.prep li { padding-left: 22px; position: relative; }
.prep li::before { content: ''; position: absolute; left: 0; top: .55em; width: 10px; height: 10px; background: var(--pink); border: 2px solid var(--ink); border-radius: 50%; }
.prep__who { font-size: var(--t-sm); color: var(--ink-soft); border-top: 1px solid var(--gray); padding-top: 14px; }

/* ---------- мастера ---------- */
.team { background: var(--pink); color: var(--ink); }
.team .section__note { color: var(--ink); }
.team__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 20px); }
.mcard { transition: transform .2s var(--ease), box-shadow .2s var(--ease); background: var(--graphite); background-image: var(--noise); color: var(--white); display: flex; flex-direction: column; min-height: 300px; }
.mcard__top { padding: 22px 22px 0; }
.mcard__name { font-family: var(--f-display); font-weight: 600; font-size: 2.25rem; line-height: 1; color: var(--white); }
.mcard__role { color: var(--gray); font-size: var(--t-sm); margin-top: 6px; }
.mcard__slot { padding: 18px 22px; margin-top: auto; display: flex; flex-direction: column; }
.mcard__slot-label { font-size: var(--t-xs); color: var(--gray); }
.mcard__slot-day { font-weight: 650; }
.mcard__slot-time { font-family: var(--f-display); font-size: 3.5rem; line-height: .95; color: var(--pink); margin-top: 4px; }
.mcard__slot-none { color: var(--gray); }
.mcard .btn { margin: 0 22px 22px; --h: 48px; padding: 0 14px; }
.mcard--any { background: transparent; color: var(--ink); border: var(--line); padding: 22px; gap: 18px; justify-content: space-between; }
.mcard--any p { font-family: var(--f-display); font-weight: 600; font-size: 1.75rem; line-height: 1.05; }
.mcard--any .btn { margin: 0; }

/* ---------- как найти ---------- */
.place__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(24px, 4vw, 64px); align-items: stretch; }
.place__info { display: flex; flex-direction: column; gap: 24px; }
.place__addr { font-family: var(--f-display); font-weight: 600; font-size: clamp(2rem, 1.4rem + 2.2vw, 3.25rem); line-height: 1; color: var(--white); }
.facts { border-top: 2px solid var(--gray); }
.facts div { display: grid; grid-template-columns: 7em 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--seam); }
.facts dt { color: var(--gray); }
.facts dd { font-weight: 600; }
.facts a { text-decoration-color: var(--pink); text-underline-offset: 4px; }
.facts small { font-weight: 400; color: var(--gray); }
.place__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.map { position: relative; min-height: 420px; border: 2px solid var(--gray); background: var(--graphite-2); }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; z-index: 1; }
.map__fallback { position: absolute; inset: auto 16px 16px; color: var(--gray); font-size: var(--t-sm); }

/* ---------- вопросы ---------- */
.faq { background: var(--paper); color: var(--ink); }
.faq__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: clamp(24px, 4vw, 64px); align-items: start; }
.faq__list { border-top: var(--line); }
.faq details { border-bottom: var(--line); }
.faq summary { transition: background-color .2s var(--ease), padding .2s var(--ease); }
.faq summary:hover { background: var(--pink-wash); }
@media (hover: hover) { .mcard:hover { transform: translateY(-3px); } }
.faq summary {
  padding: 22px 0; font-family: var(--f-display); font-weight: 600; font-size: 1.5rem; line-height: 1.15;
  cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 1.75rem; font-weight: 400; color: var(--ink); flex: none; transition: transform .2s; }
.faq details[open] summary::after { content: '−'; }
.faq details p { padding: 0 32px 24px 0; color: var(--ink-soft); max-width: 54ch; }

/* ---------- подвал ---------- */
.site-footer { border-top: 1px solid var(--seam); padding: clamp(48px, 6vw, 72px) 0 48px; }
.site-footer__mark { font-family: var(--f-logo); font-size: clamp(3rem, 2rem + 6vw, 8rem); line-height: .9; color: var(--pink); user-select: none; margin-bottom: 32px; letter-spacing: .04em; }
.site-footer__row { display: flex; flex-wrap: wrap; gap: 24px 48px; justify-content: space-between; color: var(--gray); font-size: var(--t-sm); }
.site-footer__row nav { display: flex; gap: 20px; margin-left: auto; }
.site-footer a:hover { color: var(--pink); }

/* ---------- мобильная фиксированная панель ---------- */
.mobile-cta { display: none; }

/* ---------- МОДАЛЬНОЕ ОКНО ЗАПИСИ ---------- */
.booking {
  border: 0; padding: 0; background: var(--paper); color: var(--ink);
  width: min(920px, calc(100vw - 32px)); height: min(680px, calc(100dvh - 32px)); max-height: calc(100dvh - 32px);
  box-shadow: 0 24px 64px rgba(0, 0, 0, .45); border: 2px solid var(--ink);
}
.booking::backdrop { background: rgba(20, 19, 23, .72); backdrop-filter: blur(4px); }
@media (prefers-reduced-motion: no-preference) {
  .booking[open] { animation: rise .28s var(--ease); }
  @keyframes rise { from { transform: translateY(16px); opacity: 0; } }
}
.booking__frame { display: grid; grid-template-rows: auto auto 1fr; height: 100%; }
.booking__top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 14px 12px 24px; }
.booking__title { font-family: var(--f-display); font-weight: 600; font-size: 1.75rem; line-height: 1; color: var(--pink); }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: var(--line); background: var(--white); }
.steps[hidden], .booking.is-done .summary { display: none; }
.booking.is-done .booking__body { grid-template-columns: 1fr; }
.steps li + li { border-left: 1px solid var(--gray); }
.step-btn { width: 100%; height: 100%; min-height: 52px; display: flex; align-items: center; gap: 10px; padding: 8px 16px; background: transparent; border: 0; text-align: left; cursor: pointer; color: var(--ink-soft); }
.step-btn__n { font-family: var(--f-display); font-size: 1.125rem; width: 32px; height: 32px; flex: none; display: grid; place-items: center; border: 2px solid currentColor; border-radius: 50%; }
.step-btn__label { font-weight: 600; font-size: var(--t-sm); line-height: 1.2; }
.step-btn[aria-current="step"] { color: var(--ink); background: var(--pink-wash); box-shadow: inset 0 -4px 0 var(--pink); }
.step-btn[aria-current="step"] .step-btn__n { background: var(--ink); color: var(--pink); border-color: var(--ink); }
.step-btn.is-done { color: var(--ink); }
.step-btn.is-done .step-btn__n { background: var(--pink); border-color: var(--ink); }
.step-btn:disabled { cursor: default; }
.step-btn:not(:disabled):hover { background: var(--pink-wash); }

.booking__body { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); min-height: 0; height: 100%; overflow: hidden; }
.booking__main { padding: 28px 32px 40px; overflow-y: auto; display: flex; flex-direction: column; }
.pane__title { font-family: var(--f-display); font-weight: 600; font-size: 2.25rem; line-height: 1; margin-bottom: 6px; }
.pane__hint { color: var(--ink-soft); font-size: var(--t-sm); margin-bottom: 24px; max-width: 48ch; }
.pane__sub { font-family: var(--f-display); font-weight: 600; font-size: 1.375rem; margin: 20px 0 10px; }

.seg { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 20px; }
.seg button {
  min-height: 38px; padding: 0 14px; border: var(--line); background: var(--white);
  border-radius: 999px; font-weight: 600; font-size: var(--t-sm); cursor: pointer;
}
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--white); }

.opts { display: grid; gap: 8px; }
.opt {
  width: 100%; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 16px; align-items: baseline;
  padding: 14px 18px; border: var(--line); background: var(--white); text-align: left; cursor: pointer;
  transition: background-color .12s, border-color .12s;
}
.opt:hover { background: var(--pink-wash); }
.opt[aria-pressed="true"] { background: var(--pink); }
.opt__name { font-weight: 650; font-size: var(--t-md); grid-column: 1; }
.opt__meta { font-size: var(--t-sm); color: var(--ink-soft); grid-column: 1; }
.opt__side { grid-column: 2; grid-row: 1 / 3; text-align: right; }
.opt__price { font-family: var(--f-display); font-size: 1.5rem; color: var(--ink); font-weight: 600; }
.opt__soon { font-size: var(--t-xs); color: var(--ink); }

.days { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 8px; margin-bottom: 20px; scrollbar-width: thin; }
.day {
  flex: 0 0 72px; height: 84px; display: flex; flex-direction: column; align-items: center; justify-content: center;
  border: var(--line); background: var(--white); cursor: pointer; text-align: center; line-height: 1.1;
}
.day__wd { font-size: var(--t-xs); color: var(--ink-soft); text-transform: uppercase; }
.day__d { font-family: var(--f-display); font-size: 1.75rem; margin: 2px 0 1px; font-weight: 600; }
.day__m { font-size: var(--t-xs); color: var(--ink-soft); }
.day:not(:disabled):hover { background: var(--pink-wash); }
.day[aria-pressed="true"] { background: var(--ink); color: var(--pink); }
.day[aria-pressed="true"] .day__wd, .day[aria-pressed="true"] .day__m { color: var(--white); }
.day:disabled { opacity: .35; cursor: not-allowed; border-color: var(--gray); }

.slot-group + .slot-group { margin-top: 16px; }
.slot-group h4 { font-size: var(--t-xs); text-transform: uppercase; letter-spacing: .05em; color: var(--ink-soft); margin-bottom: 8px; }
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); gap: 8px; }
.slot {
  height: 44px; display: grid; place-items: center; border: var(--line); background: var(--white);
  font-weight: 650; font-size: var(--t-md); cursor: pointer; font-family: var(--f-display);
}
.slot:not(:disabled):hover { background: var(--pink); }
.slot[aria-pressed="true"] { background: var(--ink); color: var(--pink); }
.slot:disabled { opacity: .3; cursor: not-allowed; border-color: var(--gray); text-decoration: line-through; }
.skeleton { height: 44px; background: linear-gradient(90deg, var(--paper-2) 0%, var(--paper) 50%, var(--paper-2) 100%) 0 0 / 200% 100%; border: 1px dashed var(--gray); }
@media (prefers-reduced-motion: no-preference) { .skeleton { animation: shimmer 1.1s linear infinite; } @keyframes shimmer { to { background-position: -200% 0; } } }

.notice { border: var(--line); padding: 16px 18px; background: var(--white); display: grid; gap: 12px; justify-items: start; }
.notice--warn { background: var(--pink-wash); }
.notice--error { border-color: var(--danger); }
.notice p { max-width: 60ch; }
.notice strong { display: block; margin-bottom: 2px; }

.form { display: grid; gap: 18px; max-width: 520px; }
.field label { display: block; font-weight: 600; margin-bottom: 6px; }
.field input { width: 100%; min-height: 56px; padding: 0 18px; border: var(--line); background: var(--white); font: 500 1.125rem var(--f-text); color: var(--ink); border-radius: 0; }
.field input::placeholder { color: var(--placeholder); }
.field input:hover { background: var(--pink-wash); }
.field input:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; box-shadow: 0 0 0 6px var(--pink); background: var(--white); }
.field input[aria-invalid="true"] { border-color: var(--danger); box-shadow: inset 6px 0 0 var(--danger); }
.field__err { color: var(--danger); font-size: var(--t-sm); font-weight: 600; margin-top: 6px; }
.field__help { color: var(--ink-soft); font-size: var(--t-sm); margin-top: 6px; }
.pay { display: grid; gap: 4px; padding: 14px 18px; background: var(--pink-wash); border: var(--line); min-width: 0; }
.pay__label { font-size: var(--t-xs); text-transform: uppercase; letter-spacing: .05em; color: var(--ink); }
.pay__sum { font-family: var(--f-display); font-size: 2rem; line-height: 1.1; }
.pay__what { font-weight: 650; overflow-wrap: anywhere; }
.form__legal { color: var(--ink-soft); font-size: var(--t-xs); max-width: 52ch; }

.summary { background: var(--pink); padding: 24px; display: flex; flex-direction: column; gap: 18px; overflow-y: auto; border-left: var(--line); }
.summary h3 { font-family: var(--f-display); font-weight: 600; font-size: 1.75rem; line-height: 1; }
.sum { display: grid; gap: 12px; }
.sum div { display: grid; gap: 2px; }
.sum dt { font-size: var(--t-xs); text-transform: uppercase; letter-spacing: .05em; color: var(--ink); }
.sum dd { font-weight: 650; }
.sum dd.empty { font-weight: 400; color: var(--ink); font-style: italic; }
.sum__total { margin-top: auto; padding-top: 18px; border-top: var(--line); display: flex; justify-content: space-between; align-items: baseline; }
.sum__total b { font-family: var(--f-display); font-size: 2rem; }
.summary__note { font-size: var(--t-xs); color: var(--ink); }
.mbar { display: none; }

.done { display: grid; gap: 24px; }
.done__ticket { border: var(--line); background: var(--white); }
.done__band { background: var(--pink); padding: 18px 24px; display: flex; justify-content: space-between; align-items: baseline; border-bottom: var(--line); }
.done__band p { font-weight: 650; }
.done__time { font-family: var(--f-display); font-size: 2.5rem; line-height: 1; }
.done__rows { padding: 20px 24px; display: grid; gap: 10px; }
.done__rows div { display: grid; grid-template-columns: 8em 1fr; gap: 16px; }
.done__rows dt { color: var(--ink-soft); }
.done__rows dd { font-weight: 600; }
.done__actions { display: flex; gap: 10px; flex-wrap: wrap; }
.done--cancelled .done__band { background: var(--paper); }

.linkbtn { background: transparent; border: 0; padding: 0; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; font-weight: 600; }

.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 60;
  background: var(--ink); color: var(--pink); padding: 12px 24px; border: 2px solid var(--pink);
  font-weight: 600; font-size: var(--t-sm); box-shadow: 0 12px 32px rgba(0, 0, 0, .4);
}

/* ==========================================================================
   АДАПТИВНОСТЬ
   ========================================================================== */
@media (max-width: 1100px) {
  .team__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  :root { --header-h: 64px; }
  body { font-size: 1rem; }
  .site-nav { display: none; }
  .site-header__cta { margin-left: auto; --h: 44px; padding: 0 18px; }
  .wordmark__name { font-size: 1.625rem; }

  .hero { padding-top: 0; }
  .hero__grid { grid-template-columns: 1fr; gap: 28px; }
  .hero__house { order: 1; margin: 0 auto; max-width: 440px; width: 100%; }
  .hero__text { order: 0; }
  .hero__lead { margin-top: 20px; }
  .hero__actions .btn--lg { --h: 56px; font-size: var(--t-md); padding: 0 24px; }

  .section__head { grid-template-columns: 1fr; }
  .tabs { flex-wrap: nowrap; overflow-x: auto; margin: 0 calc(var(--gutter) * -1) 20px; padding: 0 var(--gutter) 4px; scrollbar-width: none; }
  .tabs::-webkit-scrollbar { display: none; }
  .tab { flex: none; min-height: 44px; padding: 0 18px; }
  .prices__panel { grid-template-columns: 1fr; }
  .prep { position: static; }
  .svc { grid-template-columns: minmax(0, 1fr) auto; padding: 14px 0; min-height: 64px; }
  .svc:hover { padding-left: 0; padding-right: 0; }
  .svc__name { font-size: var(--t-md); }
  .svc__go { display: none; }

  .team__grid { grid-template-columns: 1fr 1fr; }
  .place__grid, .faq__grid { grid-template-columns: 1fr; }
  .map { min-height: 320px; }

  .site-footer { padding-bottom: 120px; }
  .site-footer__row nav { margin-left: 0; }

  .mobile-cta {
    display: grid; grid-template-columns: auto 1fr; gap: 10px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 25;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: var(--graphite); border-top: 1px solid var(--seam);
    transition: transform .2s var(--ease);
  }
  .mobile-cta.is-hidden { transform: translateY(110%); }
  .mobile-cta .btn { --h: 52px; padding: 0 18px; }
  .proto-panel__body { right: auto; left: 50%; transform: translateX(-50%); }

  .booking { width: 100vw; height: 100dvh; }
  .booking__top { padding: 10px 12px 10px 16px; }
  .booking__title { font-size: 1.5rem; }
  .steps li + li { border-left: 0; }
  .step-btn { flex-direction: column; gap: 4px; padding: 8px 4px; justify-content: center; align-items: center; text-align: center; }
  .step-btn__label { font-size: var(--t-xs); }
  .booking__body { grid-template-columns: minmax(0, 1fr); grid-template-rows: 1fr auto; }
  .booking__main { padding: 20px 16px 28px; }
  .pane__title { font-size: 2rem; }
  .summary { display: none; }
  .mbar { display: flex; align-items: center; gap: 12px; justify-content: space-between; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); border-top: var(--line); background: var(--pink); }
  .mbar__txt { font-size: var(--t-sm); line-height: 1.3; min-width: 0; }
  .mbar__txt b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .mbar__price { font-family: var(--f-display); font-size: 1.75rem; white-space: nowrap; }
  .mbar:empty { display: none; }
}

@media (max-width: 560px) {
  .calm__list { grid-template-columns: 1fr; }
  .calm__list li, .calm__list li + li { border-left: 0; padding: 18px 0 16px; }
  .calm__list li + li { border-top: var(--line); }
  .team__grid { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter) 12px; scroll-padding: 0 var(--gutter); }
  .mcard { flex: 0 0 80%; scroll-snap-align: start; min-height: 280px; }
  .facts div { grid-template-columns: 1fr; gap: 2px; }
  .place__actions .btn { flex: 1 1 auto; }
  .done__rows div { grid-template-columns: 1fr; gap: 0; }
  .hero__actions .btn { flex: 1 1 auto; }
  .faq details p { padding-right: 0; }
}

/* на тач-экранах :hover «залипает» после тапа */
@media (hover: none) {
  .btn--pink:hover { background: var(--pink); border-color: var(--pink); }
  .btn--ink:hover { background: var(--ink); color: var(--pink); }
  .btn--line-light:hover { border-color: var(--gray); color: var(--white); }
  .btn--line-dark:hover { background: transparent; color: var(--ink); }
  .svc:hover, .win-row:hover { background: transparent; }
  .opt:hover, .seg button:hover, .step-btn:not(:disabled):hover, .day:hover { background: inherit; }
  .opt[aria-pressed="true"]:hover { background: var(--pink); }
  .slot:hover { background: var(--white); }
  .slot[aria-pressed="true"]:hover, .day[aria-pressed="true"]:hover, .seg button[aria-pressed="true"]:hover { background: var(--ink); }
  .field input:hover { background: var(--white); }
  .tab:hover { border-color: var(--gray); }
  .tab[aria-selected="true"]:hover { border-color: var(--pink); }
}

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

/* группы прайса */

/* ==========================================================================
   v10: бегущая строка, мобильная шапка и меню, мессенджеры, «резиновые» размеры
   ========================================================================== */

/* бегущая строка вместо служебной полосы */
.ticker { background: var(--pink); color: var(--ink); overflow: hidden; position: relative; z-index: 35; }
.ticker__track { display: flex; width: max-content; }
.ticker__track p { flex: none; padding: 7px 0; font-size: var(--t-sm); font-weight: 600; white-space: nowrap; }
.ticker__track p::after { content: '✦'; margin: 0 1.6em; font-size: .8em; opacity: .55; }
@media (prefers-reduced-motion: no-preference) {
  .ticker__track { animation: ticker 38s linear infinite; }
  .ticker:hover .ticker__track { animation-play-state: paused; }
  @keyframes ticker { to { transform: translateX(-50%); } }
}

/* мобильное меню разделов: вторая строка шапки */
.m-nav { display: none; }

/* прайс: название — главное, уточнение — тише */
.svc__name b { font-weight: 650; color: var(--white); }
.svc__name em { font-style: normal; font-weight: 400; color: var(--gray); }

/* мессенджеры */
.msg { display: flex; flex-wrap: wrap; gap: 8px; }
.msg__btn { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: 999px; text-decoration: none; font-weight: 650; border: 2px solid var(--gray); }
.msg__btn:hover { border-color: var(--pink); color: var(--pink); }

/* лента, которая едет: мягкие края показывают, что дальше есть ещё */
.is-drifting, [data-render="tabs"], [data-render="team"] { scroll-behavior: auto; }
@media (max-width: 900px) and (prefers-reduced-motion: no-preference) {
  .m-nav__track { animation: nav-loop 28s linear infinite; }
  .m-nav.is-paused .m-nav__track, .m-nav:focus-within .m-nav__track { animation-play-state: paused; }
  @keyframes nav-loop { to { transform: translateX(-50%); } }
}
@media (max-width: 900px) and (prefers-reduced-motion: reduce) {
  .m-nav { overflow-x: auto; scrollbar-width: none; }
}

@media (max-width: 900px) {
  /* шапка: одна строка, ничего не переносится и не обрезается */
  .site-header__in { height: auto; min-height: 56px; padding-top: 8px; padding-bottom: 8px; gap: 12px; }
  .wordmark__name { font-size: clamp(1.25rem, .9rem + 1.6vw, 1.625rem); white-space: nowrap; }
  .wordmark__sub { display: none; }
  .wordmark { min-height: 44px; justify-content: center; }
  .site-header__cta { --h: 44px; padding: 0 16px; font-size: var(--t-sm); white-space: nowrap; flex: none; }
  .m-nav { display: block; overflow: hidden; padding: 0 0 10px; } /* без затемнения по краям — как у розовой строки */
  .m-nav__track { display: flex; width: max-content; }
  .m-nav__dup { display: contents; }
  .m-nav a { flex: none; display: inline-flex; align-items: center; min-height: 44px; margin-right: 6px; padding: 0 14px; transition: background-color .18s var(--ease), color .18s var(--ease), border-color .18s var(--ease), transform .1s var(--ease); border: 1px solid var(--seam); border-radius: 999px; font-size: var(--t-sm); text-decoration: none; color: var(--gray); }
  .m-nav a.is-active { color: var(--ink); background: var(--pink); border-color: var(--pink); }
  .m-nav__msg { color: var(--white) !important; border-color: var(--gray) !important; }
  :root { --header-h: 104px; }

  /* резиновый заголовок: пропорционально ширине, без шести строк */
  .hero { padding-top: 24px; }
  .hero__title { font-size: clamp(2.25rem, 1rem + 6.6vw, 4rem); line-height: 1; }
  .hero__lead { font-size: clamp(1rem, .9rem + .6vw, 1.25rem); }

  /* вкладки и мастера — ленты с мягким краем справа */
  .tabs { scroll-snap-type: none; }

  .mcard__slot-time { font-size: clamp(2.25rem, 1.6rem + 3vw, 3.5rem); }
  .mcard__name { font-size: clamp(1.75rem, 1.4rem + 1.6vw, 2.25rem); }
}
@media (max-width: 560px) {
  .hide-sm { display: none; }
  .team__grid { scroll-snap-type: none; }
  .mcard { flex-basis: min(78%, 300px); }
}
.ticker__dup { display: contents; }
.site-nav a.is-active { color: var(--white); background-size: 100% 3px; }
@media (max-width: 900px) { html { scroll-padding-top: var(--header-h); } }
.site-header__cta { gap: 0; }
