@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url(/assets/fonts/manrope-cyrillic-400-normal.woff2) format('woff2');
  unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url(/assets/fonts/manrope-latin-ext-400-normal.woff2) format('woff2');
  unicode-range: U+0100-02AF,U+0304,U+0308,U+0329,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url(/assets/fonts/manrope-latin-400-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,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: 'Manrope';
  font-style: normal;
  font-display: swap;
  font-weight: 500;
  src: url(/assets/fonts/manrope-cyrillic-500-normal.woff2) format('woff2');
  unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-display: swap;
  font-weight: 500;
  src: url(/assets/fonts/manrope-latin-ext-500-normal.woff2) format('woff2');
  unicode-range: U+0100-02AF,U+0304,U+0308,U+0329,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-display: swap;
  font-weight: 500;
  src: url(/assets/fonts/manrope-latin-500-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,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: 'Manrope';
  font-style: normal;
  font-display: swap;
  font-weight: 600;
  src: url(/assets/fonts/manrope-cyrillic-600-normal.woff2) format('woff2');
  unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-display: swap;
  font-weight: 600;
  src: url(/assets/fonts/manrope-latin-ext-600-normal.woff2) format('woff2');
  unicode-range: U+0100-02AF,U+0304,U+0308,U+0329,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-display: swap;
  font-weight: 600;
  src: url(/assets/fonts/manrope-latin-600-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,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: 'Manrope';
  font-style: normal;
  font-display: swap;
  font-weight: 700;
  src: url(/assets/fonts/manrope-cyrillic-700-normal.woff2) format('woff2');
  unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-display: swap;
  font-weight: 700;
  src: url(/assets/fonts/manrope-latin-ext-700-normal.woff2) format('woff2');
  unicode-range: U+0100-02AF,U+0304,U+0308,U+0329,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-display: swap;
  font-weight: 700;
  src: url(/assets/fonts/manrope-latin-700-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,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: normal;
  font-display: swap;
  font-weight: 400;
  src: url(/assets/fonts/playfair-display-cyrillic-400-normal.woff2) format('woff2');
  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-display: swap;
  font-weight: 400;
  src: url(/assets/fonts/playfair-display-latin-ext-400-normal.woff2) format('woff2');
  unicode-range: U+0100-02AF,U+0304,U+0308,U+0329,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url(/assets/fonts/playfair-display-latin-400-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,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-display: swap;
  font-weight: 400;
  src: url(/assets/fonts/playfair-display-cyrillic-400-italic.woff2) format('woff2');
  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-display: swap;
  font-weight: 400;
  src: url(/assets/fonts/playfair-display-latin-ext-400-italic.woff2) format('woff2');
  unicode-range: U+0100-02AF,U+0304,U+0308,U+0329,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
  font-family: 'Playfair Display';
  font-style: italic;
  font-display: swap;
  font-weight: 400;
  src: url(/assets/fonts/playfair-display-latin-400-italic.woff2) format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,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: normal;
  font-display: swap;
  font-weight: 500;
  src: url(/assets/fonts/playfair-display-cyrillic-500-normal.woff2) format('woff2');
  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-display: swap;
  font-weight: 500;
  src: url(/assets/fonts/playfair-display-latin-ext-500-normal.woff2) format('woff2');
  unicode-range: U+0100-02AF,U+0304,U+0308,U+0329,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-display: swap;
  font-weight: 500;
  src: url(/assets/fonts/playfair-display-latin-500-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

/* Endo Face & Body — палитра «Молоко и вишня» (30.11.2026).
   Светлый сайт: молоко и румянец; тёмные блоки: история, запись, финальный призыв и подвал (слива).
   Фирменные мотивы: сферы в сотах (головка Endosphères), мягкие пятна света, лёгкое зерно. */
:root {
  --milk: #F8F4F1;
  --blush: #EFE6E1;
  --blush-2: #E6D8D1;
  --white: #FFFDFB;
  --ink: #2B1E22;
  --muted: #6B575C;
  --line: rgba(43, 30, 34, .13);
  --cherry: #7A2E3B;
  --cherry-2: #64232F;
  --plum: #3A1F26;
  --plum-2: #48272F;
  --plum-3: #5A323C;
  --muted-dark: #CDB7BB;
  --line-dark: rgba(248, 244, 241, .16);
  --rose: #E6B3BA;
  --rose-hi: #F3D4D8;
  --display: "Playfair Display", "Times New Roman", serif;
  --text: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 72px;
  --radius: 22px;
  /* кнопка-акцент и цвета логотипа зависят от фона */
  --acc: var(--cherry); --acc-fg: var(--milk); --acc-hover: var(--cherry-2);
  --logo-disc: var(--cherry); --logo-sphere: var(--milk); --logo-tag: var(--cherry);
  --sph: rgba(122, 46, 59, .09);
}
.is-dark { --acc: var(--rose); --acc-fg: var(--plum); --acc-hover: var(--rose-hi); --logo-disc: var(--rose); --logo-sphere: var(--plum); --logo-tag: var(--rose); --sph: rgba(230, 179, 186, .09); }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: var(--header-h); }
body { margin: 0; background: var(--milk); color: var(--ink); font: 400 17px/1.6 var(--text); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img, video, canvas, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
.wrap { width: 100%; max-width: 1280px; margin-inline: auto; padding-inline: var(--gutter); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 100; padding: 12px 18px; border-radius: 999px; background: var(--cherry); color: var(--milk); font-weight: 700; text-decoration: none; transition: top .2s var(--ease); }
.skip:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--cherry); outline-offset: 3px; border-radius: 6px; }
.is-dark :focus-visible { outline-color: var(--rose-hi); }

/* Кнопки */
.btn { white-space: nowrap; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 0 26px; border-radius: 999px; border: 1px solid transparent; font: 600 15px/1 var(--text); letter-spacing: .01em; text-decoration: none; cursor: pointer; transition: transform .25s var(--ease), background-color .25s var(--ease), border-color .25s var(--ease), color .25s var(--ease); }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn--accent { background: var(--acc); color: var(--acc-fg); }
.btn--accent:hover { background: var(--acc-hover); }
.btn--ghost { background: transparent; border-color: var(--line-dark); color: var(--milk); }
.btn--ghost:hover { border-color: var(--rose); }
.btn--outline { background: transparent; border-color: rgba(43, 30, 34, .28); color: var(--ink); }
.btn--outline:hover { border-color: var(--cherry); color: var(--cherry); }
.link-arrow { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-weight: 600; text-decoration: none; color: var(--cherry); background: linear-gradient(currentColor, currentColor) 0 calc(100% - 8px) / 0 1px no-repeat; transition: background-size .35s var(--ease); }
.link-arrow::after { content: "→"; transition: transform .3s var(--ease); }
.link-arrow:hover { background-size: calc(100% - 26px) 1px; }
.link-arrow:hover::after { transform: translateX(4px); }

/* Шапка: над тёмными блоками светлая надпись, над светлыми — тёмная */
.header { position: fixed; inset: 0 0 auto; z-index: 50; color: var(--milk); --h-muted: var(--muted-dark); transition: background-color .35s var(--ease), box-shadow .35s var(--ease), color .35s var(--ease); }
.header:not(.on-light) { --acc: var(--rose); --acc-fg: var(--plum); --acc-hover: var(--rose-hi); --logo-disc: var(--rose); --logo-sphere: var(--plum); --logo-tag: var(--rose); }
.header.is-solid { background: rgba(58, 31, 38, .86); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 1px 0 var(--line-dark); }
.header.on-light { color: var(--ink); --h-muted: var(--muted); }
.header.on-light.is-solid { background: rgba(248, 244, 241, .88); box-shadow: 0 1px 0 var(--line); }
.header-in { display: flex; align-items: center; gap: 26px; height: var(--header-h); max-width: 1280px; margin-inline: auto; padding-inline: var(--gutter); }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; margin-right: auto; min-height: 44px; color: inherit; }
.brand-mark { width: 40px; height: 40px; flex: none; transition: transform .6s var(--ease); }
.brand:hover .brand-mark { transform: rotate(60deg); }
.brand-word { height: 34px; aspect-ratio: 2246 / 1163; flex: none; fill: currentColor; }
.nav { display: flex; gap: 22px; }
.nav a { font-size: 14px; font-weight: 500; text-decoration: none; color: var(--h-muted); padding: 12px 0; background: linear-gradient(currentColor, currentColor) 0 calc(100% - 6px) / 0 1px no-repeat; transition: color .25s, background-size .3s var(--ease); }
.nav a:hover { color: inherit; color: currentColor; background-size: 100% 1px; }
.header .nav a:hover { color: var(--h-fg, inherit); }
.langs { display: flex; gap: 2px; }
.lang { display: inline-grid; place-items: center; min-width: 40px; min-height: 40px; padding: 0 6px; border-radius: 999px; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-decoration: none; color: var(--h-muted); transition: color .2s, background-color .2s; }
.lang:hover { color: inherit; }
.lang[aria-current="true"] { background: currentColor; }
.lang[aria-current="true"] { color: var(--plum); background: var(--milk); }
.header.on-light .lang[aria-current="true"] { color: var(--milk); background: var(--ink); }
.btn--book { min-height: 44px; padding: 0 20px; }
.burger { display: none; width: 44px; height: 44px; border: 1px solid currentColor; border-color: color-mix(in srgb, currentColor 30%, transparent); border-radius: 50%; background: transparent; cursor: pointer; }
.burger-lines, .burger-lines::before { display: block; width: 18px; height: 1.5px; margin: auto; background: currentColor; position: relative; transition: transform .3s var(--ease); }
.burger-lines::before { content: ""; position: absolute; top: 6px; }
.burger-lines { transform: translateY(-3px); }
.burger[aria-expanded="true"] .burger-lines { transform: translateY(0) rotate(45deg); }
.burger[aria-expanded="true"] .burger-lines::before { transform: translateY(-6px) rotate(-90deg); }
.menu { position: fixed; inset: var(--header-h) 0 0; background: var(--plum); color: var(--milk); padding: 28px var(--gutter) calc(28px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; justify-content: space-between; overflow-y: auto; }
.menu[hidden] { display: none; }
.menu-nav { display: flex; flex-direction: column; }
.menu-nav a { font: 400 clamp(30px, 8.4vw, 42px)/1.22 var(--display); text-decoration: none; padding: 6px 0; border-bottom: 1px solid var(--line-dark); }
.menu-foot { display: flex; justify-content: space-between; align-items: end; gap: 20px; padding-top: 28px; }
.menu-foot .lang { color: var(--muted-dark); }
.menu-foot .lang[aria-current="true"] { color: var(--plum); background: var(--milk); }
.menu-meta { font-size: 14px; color: var(--muted-dark); text-align: right; }
.menu-meta a { color: var(--milk); text-decoration: none; font-weight: 600; }
.header.menu-open { background: var(--plum); color: var(--milk); --h-muted: var(--muted-dark); }

/* История: процедура на весь экран → аппарат в панели справа → вода в панели слева */
.story { position: relative; background: var(--plum); color: var(--milk); }
.scene { position: relative; min-height: 100svh; display: flex; align-items: center; padding: calc(var(--header-h) + 24px) 0 48px; overflow: hidden; }
.scene-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; align-items: center; position: relative; z-index: 2; }
.eyebrow { font-size: 12px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--rose-hi); margin-bottom: 24px; }
.hero-title { font: 400 clamp(40px, 6vw, 96px)/.98 var(--display); letter-spacing: -.015em; text-wrap: balance; }
.hero-title .line { display: block; overflow: hidden; padding-bottom: .06em; }
.hero-title .line > * { display: inline-block; }
.hero-title em { font-style: italic; color: var(--rose-hi); }
.hero-fact { margin-top: 26px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; font-size: 16px; font-weight: 500; color: rgba(248, 244, 241, .84); }
.dot-sep { width: 5px; height: 5px; border-radius: 50%; background: var(--rose); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.scene--hero { align-items: flex-end; padding-bottom: clamp(44px, 9svh, 110px); }
.scene--hero .scene-text { grid-column: 1 / span 9; }
.scene-bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.scene-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 42% 50%; }
.scene-bg::after, .m-shade { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(34, 15, 20, .6) 0, rgba(34, 15, 20, 0) 160px),
              linear-gradient(90deg, rgba(34, 15, 20, .86) 0%, rgba(34, 15, 20, .5) 42%, rgba(34, 15, 20, .06) 74%),
              linear-gradient(0deg, rgba(34, 15, 20, .74) 0%, rgba(34, 15, 20, 0) 48%),
              radial-gradient(120% 90% at 60% 40%, transparent 55%, rgba(24, 10, 14, .55) 100%); }
.m-grain { position: absolute; inset: -40%; background: url(/assets/media/grain.png) 0 0 / 240px repeat; mix-blend-mode: overlay; opacity: .2; pointer-events: none; animation: grain 1s steps(5) infinite; }
@keyframes grain { 0% { transform: translate(0, 0); } 20% { transform: translate(-3%, 2%); } 40% { transform: translate(2%, -4%); } 60% { transform: translate(-4%, -1%); } 80% { transform: translate(3%, 3%); } 100% { transform: translate(0, 0); } }
.scene-pic { position: relative; margin: 0; border-radius: var(--radius); overflow: hidden; height: min(100svh - var(--header-h) - 72px, 780px); background: var(--plum-2); }
.scene-pic img { width: 100%; height: 100%; object-fit: cover; }
.scene--device .scene-text { grid-column: 1 / span 5; grid-row: 1; }
.scene--device .scene-pic { grid-column: 7 / span 6; grid-row: 1; }
.scene--water .scene-pic { grid-column: 1 / span 6; grid-row: 1; }
.scene--water .scene-text { grid-column: 8 / span 5; grid-row: 1; }
.big-word { font: italic 400 clamp(56px, 7.4vw, 124px)/.95 var(--display); color: var(--rose-hi); letter-spacing: -.02em; margin-bottom: 22px; }
.scene-title { font: 400 clamp(32px, 3.6vw, 54px)/1.06 var(--display); letter-spacing: -.01em; }
.scene-lead { margin-top: 18px; font-size: 18px; color: var(--muted-dark); max-width: 38ch; }
.stage-media { display: none; }
html.story-on .story-stage { position: relative; height: 100svh; overflow: hidden; }
html.story-on .scene { position: absolute; inset: 0; min-height: 0; pointer-events: none; }
html.story-on .scene-text { pointer-events: auto; }
html.story-on .scene-bg, html.story-on .scene-pic { visibility: hidden; }
html.story-on .stage-media { display: block; position: absolute; inset: 0; z-index: 1; overflow: hidden; will-change: clip-path; }
.m-layer { position: absolute; inset: 0; overflow: hidden; }
.m-layer video, .m-layer img { display: block; width: 100%; height: 100%; object-fit: cover; }
.m-procedure video { object-position: 42% 50%; animation: settle 2.4s var(--ease) both; }
.m-device, .m-water { opacity: 0; border-radius: var(--radius); }
@keyframes settle { from { transform: scale(1.08); } to { transform: none; } }
@keyframes rise { from { transform: translateY(105%); } to { transform: none; } }
@keyframes fade-up { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.hero-title .line > * { animation: rise 1s var(--ease) both; }
.hero-title .line:nth-child(2) > * { animation-delay: .08s; }
.hero-title .line:nth-child(3) > * { animation-delay: .16s; }
.scene--hero .eyebrow, .scene--hero .hero-fact, .scene--hero .actions { animation: fade-up .9s var(--ease) .3s both; }
@media (max-width: 820px) {
  .scene--hero .scene-text { grid-column: 1 / -1; }
  .scene--device, .scene--water { align-items: flex-start; padding-top: calc(var(--header-h) + 12px); }
  .scene--device .scene-grid, .scene--water .scene-grid { display: flex; flex-direction: column; align-items: stretch; gap: 22px; width: 100%; }
  .scene--device .scene-pic, .scene--water .scene-pic { order: -1; height: 44svh; }
  .big-word { font-size: clamp(44px, 13vw, 64px); margin-bottom: 10px; }
  .scene-lead { font-size: 16px; margin-top: 12px; }
  .scene-bg img, .m-procedure video { object-position: 46% 50%; }
  .scene-text .actions { flex-wrap: nowrap; margin-top: 18px; }
  .scene-text .actions .btn { flex: 1 1 0; min-width: 0; padding: 0 14px; }
}
@media (max-width: 820px) and (max-height: 760px) {
  .scene--device .scene-pic, .scene--water .scene-pic { height: 32svh; }
  .big-word { font-size: 40px; margin-bottom: 4px; }
  .scene-title { font-size: 26px; }
  .scene-lead { font-size: 15px; margin-top: 8px; line-height: 1.5; }
  .scene-text .actions { margin-top: 12px; }
  .scene--device .scene-grid, .scene--water .scene-grid { gap: 14px; }
}

/* Секции и общая типографика */
.section { position: relative; padding: clamp(84px, 11vw, 150px) 0; overflow: clip; }
.section::before { content: ""; position: absolute; inset: 0; background: url(/assets/media/grain.png) 0 0 / 240px repeat; opacity: .06; mix-blend-mode: multiply; pointer-events: none; }
.section > .wrap { position: relative; z-index: 1; }
.section--milk { background: var(--milk); }
.section--blush { background: var(--blush); }
.section--plum { background: var(--plum); color: var(--milk); }
.section--plum::before { mix-blend-mode: overlay; opacity: .12; }
.section-head { display: grid; gap: 18px; margin-bottom: clamp(40px, 6vw, 72px); }
.section-head--row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: end; gap: 24px 64px; }
.section-head--row .section-lead { justify-self: end; }
.section-title { font: 400 clamp(46px, 7vw, 108px)/.96 var(--display); letter-spacing: -.02em; }
.section-lead { font-size: 18px; max-width: 46ch; color: var(--muted); }
.is-dark .section-lead { color: var(--muted-dark); }
.kicker { display: inline-flex; align-items: center; gap: 10px; font-size: 12px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--cherry); margin-bottom: 20px; }
.kicker::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: currentColor; box-shadow: 14px 0 0 -1px color-mix(in srgb, currentColor 45%, transparent), 27px 0 0 -2px color-mix(in srgb, currentColor 20%, transparent); margin-right: 26px; }
.note { margin-top: 22px; font-size: 14px; color: var(--muted); }

/* Мотив: сферы в сотах — полупрозрачный узор в углу раздела */
.spheres { position: absolute; z-index: 0; width: clamp(320px, 42vw, 620px); aspect-ratio: 1; pointer-events: none;
  background: radial-gradient(circle, var(--sph) 0 13px, transparent 13.5px) 0 0 / 40px 69.28px,
              radial-gradient(circle, var(--sph) 0 13px, transparent 13.5px) 20px 34.64px / 40px 69.28px;
  -webkit-mask: radial-gradient(closest-side, #000 30%, transparent 100%); mask: radial-gradient(closest-side, #000 30%, transparent 100%); }
.spheres--tr { top: -14%; right: -10%; }
.spheres--bl { bottom: -16%; left: -12%; }
/* Мотив: мягкое пятно света за фотографией */
.glow { position: relative; isolation: isolate; }
.glow::before { content: ""; position: absolute; z-index: -1; inset: -14% -12%; background: radial-gradient(closest-side, rgba(230, 179, 186, .55), rgba(230, 179, 186, 0) 72%); pointer-events: none; }
.glow--left::before { inset: -10% -6% -10% -30%; }
.ph { border-radius: var(--radius); overflow: hidden; }
.ph img, .how-pic img, .suits-pic img, .step-pic img, .face-pic img, .contacts-pic img, .faq-pic img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }

/* Как работает */
.how-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.how-text .section-lead, .suits-text .section-lead { margin-top: 20px; }
.how-pic { aspect-ratio: 3 / 2; }
.how-pic img { border-radius: var(--radius); }
.how-num { position: absolute; left: -.06em; bottom: -.34em; font: italic 400 clamp(110px, 16vw, 240px)/1 var(--display); color: var(--cherry); letter-spacing: -.04em; text-shadow: 0 2px 30px rgba(248, 244, 241, .6); }
.facts-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: clamp(72px, 9vw, 120px); }
.fact { padding-top: 22px; border-top: 1px solid var(--line); }
.fact-n { font: italic 400 18px/1 var(--display); color: var(--cherry); }
.fact h3 { margin: 14px 0 10px; font: 400 clamp(26px, 2.6vw, 34px)/1.1 var(--display); }
.fact p { color: var(--muted); max-width: 34ch; }

/* Кому подходит */
.suits-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.suits-pic { aspect-ratio: 2 / 3; max-height: 860px; }
.suits-pic img { border-radius: 999px 999px var(--radius) var(--radius); }
.suits-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; margin-top: 40px; }
.suits-col { padding: 26px; border-radius: var(--radius); background: var(--white); }
.suits-col--no { background: transparent; border: 1px solid var(--line); }
.suits-h { font: 400 24px/1.15 var(--display); margin-bottom: 14px; }
.ticks li, .crosses li { position: relative; padding: 9px 0 9px 26px; border-bottom: 1px solid var(--line); font-size: 16px; line-height: 1.45; }
.ticks li:last-child, .crosses li:last-child { border-bottom: 0; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 16px; width: 10px; height: 10px; border-radius: 50%; background: var(--cherry); }
.crosses li { color: var(--muted); }
.crosses li::before { content: ""; position: absolute; left: 1px; top: 15px; width: 10px; height: 10px; background: linear-gradient(45deg, transparent 44%, var(--muted) 44% 56%, transparent 56%), linear-gradient(-45deg, transparent 44%, var(--muted) 44% 56%, transparent 56%); }

/* Как проходит сеанс */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; counter-reset: s; }
.step-pic { aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden; margin-bottom: 22px; background: var(--blush); }
.step:hover .step-pic img { transform: scale(1.03); }
.step-n { font: italic 400 18px/1 var(--display); color: var(--cherry); }
.step h3 { margin: 10px 0 10px; font: 400 clamp(28px, 2.8vw, 38px)/1.08 var(--display); }
.step p { color: var(--muted); max-width: 36ch; }
.course { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 20px 40px; margin-top: clamp(48px, 6vw, 80px); padding: clamp(22px, 3vw, 34px) clamp(22px, 3vw, 40px); border-radius: var(--radius); background: var(--white); position: relative; overflow: hidden; }
.course::after { content: ""; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px; background: radial-gradient(circle, rgba(122, 46, 59, .08) 0 13px, transparent 13.5px) 0 0 / 40px 69.28px, radial-gradient(circle, rgba(122, 46, 59, .08) 0 13px, transparent 13.5px) 20px 34.64px / 40px 69.28px; -webkit-mask: radial-gradient(closest-side, #000, transparent); mask: radial-gradient(closest-side, #000, transparent); pointer-events: none; }
.course-k { font: italic 400 clamp(34px, 3.4vw, 46px)/1 var(--display); color: var(--cherry); }
.course-t { font-size: 17px; max-width: 60ch; }

/* Уход за лицом */
.face-hero { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: center; margin-bottom: clamp(56px, 7vw, 96px); }
.face-hero .section-lead { margin: 18px 0 30px; }
.face-pic { aspect-ratio: 3 / 2; }
.face-pic img { border-radius: var(--radius); }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.card { position: relative; display: flex; flex-direction: column; padding: 26px 26px 18px; border-radius: var(--radius); background: var(--white); transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.card:hover { transform: translateY(-2px); box-shadow: 0 22px 44px -32px rgba(58, 31, 38, .45); }
.card-cat { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--cherry); }
.card-title { margin: 12px 0 10px; font: 400 26px/1.15 var(--display); }
.card-text { color: var(--muted); font-size: 15.5px; line-height: 1.55; flex: 1; }
.card-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 18px; padding-top: 12px; border-top: 1px solid var(--line); }
.card-foot b { font: 400 30px/1 var(--display); }
.card-foot small { font-size: 14px; color: var(--muted); }
.card--wide { grid-column: span 3; background: var(--plum); color: var(--milk); }
.card--wide .card-cat { color: var(--rose); }
.card--wide .card-text { color: var(--muted-dark); max-width: 70ch; }
.card--wide .card-foot { border-top-color: var(--line-dark); flex-wrap: wrap; }
.card--wide .card-foot--two > span { display: inline-flex; align-items: baseline; gap: 10px; }
.card--wide small, .card--wide .card-foot--two > span > span { color: var(--muted-dark); font-size: 15px; }
.card--wide .link-arrow { color: var(--rose); }

/* Цены Endosphères: карточки как у ухода за лицом, с кольцом длительности */
.plan-ring { position: relative; width: 104px; height: 104px; margin-bottom: 28px; }
.plan-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.plan-ring circle { fill: none; stroke: var(--line); stroke-width: 2; }
.plan-ring .arc { stroke: var(--cherry); stroke-width: 3; stroke-linecap: round; stroke-dasharray: calc(var(--f) * 100) 100; transition: stroke-dasharray .8s var(--ease); }
.card:hover .plan-ring .arc { stroke-dasharray: calc(var(--f) * 100 - 6) 100; }
.plan-ring span { position: absolute; inset: 0; display: grid; place-items: center; font: 400 34px/1 var(--display); }
.card-ring { position: absolute; top: 22px; right: 22px; width: 66px; height: 66px; margin: 0; }
.card-ring span { font-size: 22px; }
.card--endo .card-cat, .card--endo .card-title { padding-right: 78px; }
.card-courses { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 16px; }
.card-courses p { display: grid; gap: 2px; padding: 10px 12px; border-radius: 14px; background: var(--milk); }
.card-courses small { font-size: 12px; color: var(--muted); }
.card-courses b { font: 400 22px/1.1 var(--display); }
.card-courses span { font-size: 12px; font-weight: 600; color: var(--cherry); }
.face-hero--flip { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.endo-sec .face-hero-text .section-title { font-size: clamp(46px, 6vw, 92px); }

/* Мастера */
.team { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.person { padding: 32px; border-radius: var(--radius); background: var(--white); display: flex; flex-direction: column; transition: transform .35s var(--ease); }
.person:hover { transform: translateY(-2px); }
.person-mono { position: relative; width: 112px; height: 112px; border-radius: 50%; display: grid; place-items: center; background: var(--blush); font: italic 400 52px/1 var(--display); color: var(--cherry); margin-bottom: 30px; }
.person-mono::after { content: ""; position: absolute; inset: -8px; border-radius: 50%; border: 1px dashed rgba(122, 46, 59, .35); transition: transform 1.2s var(--ease); }
.person:hover .person-mono::after { transform: rotate(60deg); }
.person-name { font: 400 30px/1.1 var(--display); }
.person-role { margin-top: 10px; color: var(--muted); flex: 1; }
.person .link-arrow { margin-top: 20px; }

/* Запись в разделе */
.booking-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.booking-aside { position: sticky; top: calc(var(--header-h) + 24px); }
.booking-aside .section-title { font-size: clamp(42px, 5vw, 76px); }
.booking-aside .section-lead { margin-top: 18px; }
.booking-points { margin-top: 28px; border-top: 1px solid var(--line-dark); }
.booking-points li { position: relative; padding: 12px 0 12px 24px; border-bottom: 1px solid var(--line-dark); color: var(--milk); font-size: 15.5px; }
.booking-points li::before { content: ""; position: absolute; left: 0; top: 19px; width: 9px; height: 9px; border-radius: 50%; background: var(--rose); }
.booking-call { margin-top: 22px; color: var(--muted-dark); }
.booking-call a { color: var(--milk); font-weight: 600; text-decoration: none; white-space: nowrap; }
.booking-host { min-width: 0; }
.booking-noscript { margin-top: 16px; }

/* Вопросы */
.faq-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.faq-grid .section-title { font-size: clamp(46px, 6vw, 90px); }
.faq-pic { margin-top: 20px; aspect-ratio: 1; max-width: 360px; border-radius: 999px; overflow: hidden; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 20px; min-height: 72px; padding: 16px 0; font: 400 24px/1.25 var(--display); cursor: pointer; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 30px; height: 30px; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--line); background: linear-gradient(var(--ink), var(--ink)) center / 10px 1.5px no-repeat, linear-gradient(var(--ink), var(--ink)) center / 1.5px 10px no-repeat; transition: transform .3s var(--ease), background-color .3s; }
.faq details[open] summary::after { transform: rotate(45deg); background-color: var(--rose); box-shadow: none; }
.faq details p { padding: 0 48px 24px 0; color: var(--muted); font-size: 17px; }
.faq details[open] p { animation: fade-up .45s var(--ease) both; }

/* Контакты */
.contacts-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.contacts-grid .section-title { font-size: clamp(46px, 6vw, 90px); }
.address { margin-top: 28px; font: 400 clamp(32px, 3.6vw, 48px)/1.15 var(--display); }
.address span { color: var(--cherry); font-style: italic; }
.facts { margin-top: 32px; border-top: 1px solid var(--line); }
.facts > div { display: grid; grid-template-columns: 120px 1fr; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.facts dt { color: var(--muted); font-size: 15px; }
.facts a { text-decoration: none; font-weight: 600; display: inline-block; padding: 2px 0; }
.facts a:hover { color: var(--cherry); }
.contacts-pic { aspect-ratio: 2 / 3; max-height: 760px; }
.contacts-pic img { border-radius: var(--radius) var(--radius) 999px 999px; }

/* Финальный призыв */
.cta { position: relative; min-height: min(86svh, 860px); display: flex; align-items: center; overflow: hidden; background: var(--plum); color: var(--milk); }
.cta-bg { position: absolute; inset: 0; }
.cta-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 70% 50%; }
.cta-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(58, 31, 38, .92) 0%, rgba(58, 31, 38, .72) 40%, rgba(58, 31, 38, .1) 75%), linear-gradient(0deg, rgba(58, 31, 38, .5), rgba(58, 31, 38, 0) 40%); }
.cta-in { position: relative; z-index: 1; padding-block: 110px; }
.cta-title { font: 400 clamp(48px, 7vw, 112px)/.96 var(--display); letter-spacing: -.02em; max-width: 12ch; }
.cta-lead { margin-top: 22px; font-size: 19px; max-width: 40ch; color: rgba(248, 244, 241, .86); }

/* Подвал */
.footer { background: var(--plum); color: var(--milk); border-top: 1px solid var(--line-dark); padding: 56px 0 calc(32px + env(safe-area-inset-bottom)); }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px 64px; align-items: start; }
.footer-brand { display: block; width: 230px; }
.footer-brand img { width: 100%; height: auto; }
.footer-addr { margin-top: 18px; color: var(--muted-dark); font-size: 15px; }
.footer-addr a { color: var(--milk); text-decoration: none; font-weight: 600; }
.footer-nav { display: grid; gap: 4px; justify-items: start; }
.footer-nav a, .footer-link { min-height: 36px; display: inline-flex; align-items: center; padding: 0; border: 0; background: none; color: var(--muted-dark); font-size: 15px; text-decoration: none; cursor: pointer; }
.footer-nav a:hover, .footer-link:hover { color: var(--milk); text-decoration: underline; text-underline-offset: 4px; }
.footer-meta a { color: var(--milk); text-decoration: none; border-bottom: 1px solid var(--line-dark); }
.footer-meta a:hover { border-bottom-color: var(--rose); }
.footer-meta { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px; margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line-dark); font-size: 13px; color: var(--muted-dark); }

/* Юридические страницы */
.legal-page { padding: calc(var(--header-h) + 56px) 0 96px; background: var(--milk); }
.legal { max-width: 760px; }
.legal h1 { font: 400 clamp(40px, 6vw, 72px)/1 var(--display); letter-spacing: -.02em; margin-bottom: 14px; }
.legal .updated { color: var(--muted); font-size: 14px; margin-bottom: 36px; }
.legal h2 { font: 400 clamp(26px, 3vw, 34px)/1.15 var(--display); margin: 44px 0 12px; scroll-margin-top: calc(var(--header-h) + 16px); }
.legal h3 { font-size: 18px; font-weight: 700; margin: 26px 0 8px; }
.legal p, .legal li { color: #3f2f33; }
.legal p + p { margin-top: 12px; }
.legal ul, .legal ol { margin: 10px 0 14px; padding-left: 22px; list-style: disc; }
.legal ol { list-style: decimal; }
.legal li { margin: 6px 0; }
.legal a { color: var(--cherry); }
.legal table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 15px; display: block; overflow-x: auto; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.legal th { background: var(--blush); font-weight: 700; }
.legal-back { display: inline-flex; margin-bottom: 28px; }
.legal-back::after { content: none; }
.legal-back::before { content: "←"; }
.legal mark.todo { background: var(--rose-hi); color: var(--ink); padding: 0 4px; border-radius: 4px; }

/* Согласие на cookies (появляется, только когда включены аналитика или реклама) */
.consent { position: fixed; z-index: 80; left: 16px; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); max-width: 560px; margin-inline: auto; padding: 22px; border-radius: 20px; background: var(--plum); color: var(--milk); box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .6); }
.consent[hidden] { display: none; }
.consent h2 { font: 400 24px/1.15 var(--display); margin-bottom: 8px; }
.consent p { font-size: 15px; color: var(--muted-dark); }
.consent a { color: var(--rose-hi); }
.consent-opts { display: grid; gap: 8px; margin: 14px 0 4px; }
.consent-opts label { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; }
.consent-opts input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--rose); }
.consent .actions { margin-top: 16px; }
.consent .btn { min-height: 46px; flex: 1 1 0; }

/* Планшет и телефон */
@media (max-width: 1180px) { .nav { gap: 16px; } }
@media (max-width: 1080px) {
  .nav { display: none; }
  .burger { display: grid; place-items: center; }
  .header-in > .langs { display: none; }
  .team { grid-template-columns: 1fr; max-width: 560px; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card--wide { grid-column: span 2; }
  .booking-grid, .faq-grid { grid-template-columns: 1fr; }
  .booking-aside { position: static; }
  .faq-pic { display: none; }
  .steps { gap: 16px; }
}
@media (max-width: 820px) {
  :root { --header-h: 64px; }
  .header-in { gap: 12px; }
  .section-head--row, .how-grid, .suits-grid, .face-hero, .contacts-grid { grid-template-columns: 1fr; }
  .section-head--row .section-lead { justify-self: start; }
  .facts-row, .steps { grid-template-columns: 1fr; }
  .facts-row { gap: 8px; }
  .suits-pic { aspect-ratio: 4 / 5; max-height: 70svh; }
  .suits-cols { grid-template-columns: 1fr; }
  .step { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 0 18px; align-items: start; }
  .step-pic { grid-row: span 3; aspect-ratio: 3 / 4; margin-bottom: 0; }
  .course { grid-template-columns: 1fr; }
  .cards { grid-template-columns: 1fr; }
  .card--wide { grid-column: auto; }
  .contacts-pic { aspect-ratio: 4 / 5; max-height: 64svh; order: -1; }
  .facts > div { grid-template-columns: 96px 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .cta-bg::after { background: linear-gradient(0deg, rgba(58, 31, 38, .94) 0%, rgba(58, 31, 38, .7) 55%, rgba(58, 31, 38, .2) 100%); }
  .cta { align-items: flex-end; }
  .how-num { font-size: clamp(96px, 28vw, 150px); }
}
@media (max-width: 520px) {
  .btn--book { padding: 0 16px; font-size: 14px; }
  .brand-word { height: 30px; }
  .brand-mark { width: 36px; height: 36px; }
  .actions .btn { flex: 1 1 100%; }
  .person, .card { padding: 24px 20px; }
  .card-ring { top: 18px; right: 16px; }
  .suits-col { padding: 20px; }
  .step { grid-template-columns: 96px minmax(0, 1fr); }
}
@media (max-width: 380px) {
  .header-in { gap: 8px; padding-inline: 12px; }
  .brand { gap: 8px; }
  .brand-word { height: 26px; }
  .brand-mark { width: 32px; height: 32px; }
  .btn--book { padding: 0 12px; font-size: 13px; }
  .section-title { font-size: clamp(38px, 12vw, 52px); }
  .wrap { padding-inline: 14px; }
  .hero-fact .dot-sep { display: none; }
  .hero-fact { gap: 2px 12px; }
}
@media (max-height: 720px) and (max-width: 820px) {
  .hero-title { font-size: 38px; }
  .eyebrow { display: none; }
  .actions { margin-top: 16px; gap: 8px; }
  .hero-fact { margin-top: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; }
}
@media (max-width: 440px) { .scene-text .actions .btn { font-size: 14px; padding: 0 10px; } }
@media (max-width: 360px) { .scene-text .actions { flex-wrap: wrap; } .scene-text .actions .btn { flex: 1 1 100%; } }
/* Слова в заголовках не переносятся по буквам: если длинное слово не помещается, site.js уменьшает кегль (fitHeadings) */
.hero-title, .section-title, .scene-title, .big-word, .person-name, .address, .bk-title, .cta-title, .card-title, .fact h3, .step h3, .legal h1 { overflow-wrap: normal; word-break: keep-all; hyphens: manual; }

/* Запись: пошаговый мастер. Работает на тёмном фоне — в разделе «Онлайн-запись» и в окне записи. */
/* Запись: пошаговый мастер на одном экране, внизу липкая панель «Назад / Далее» */
.booking { max-width: 880px; min-width: 0; }
.bk-progress { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin: 0 0 16px; padding: 0; list-style: none; }
.bk-pi { min-width: 0; }
.bk-pb { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; width: 100%; padding: 0 0 10px; border: 0; border-bottom: 2px solid var(--line-dark); background: none; color: var(--muted-dark); font-size: 13px; font-weight: 600; text-align: left; }
button.bk-pb { cursor: pointer; }
.bk-pn { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--line-dark); font-size: 12px; }
.bk-pl { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.bk-pi.is-cur .bk-pb { color: var(--milk); border-bottom-color: var(--rose); }
.bk-pi.is-cur .bk-pn { background: var(--rose); border-color: var(--rose); color: var(--ink); }
.bk-pi.is-done .bk-pb { color: var(--milk); border-bottom-color: rgba(230, 179, 186, .5); }
.bk-pi.is-done .bk-pn { background: rgba(230, 179, 186, .18); border-color: rgba(230, 179, 186, .5); color: var(--rose-hi); }

.bk-stage { min-width: 0; background: var(--plum-2); border: 1px solid var(--line-dark); border-radius: var(--radius); padding: clamp(18px, 3vw, 30px); }
.bk-stage.is-entering { animation: bk-in .4s var(--ease) both; }
@keyframes bk-in { from { opacity: 0; transform: translateX(18px); } to { opacity: 1; transform: none; } }
.bk-title { font: 400 clamp(26px, 3.4vw, 34px)/1.12 var(--display); outline: none; }
.bk-lead { margin: 8px 0 0; }
.bk-cats { display: grid; gap: 22px; margin-top: 20px; }
.bk-cat-name { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--rose-hi); margin-bottom: 10px; }
.bk-svcs { display: grid; gap: 8px; }
.bk-svc { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 60px; padding: 12px 16px; border-radius: 14px; border: 1px solid var(--line-dark); background: transparent; color: var(--milk); text-align: left; font-size: 16px; line-height: 1.35; cursor: pointer; transition: border-color .2s, background-color .2s, transform .2s var(--ease); }
.bk-svc:hover:not(:disabled) { border-color: rgba(230, 179, 186, .65); }
.bk-svc:active:not(:disabled) { transform: scale(.99); }
.bk-svc.is-on { border-color: var(--rose); background: rgba(230, 179, 186, .12); }
.bk-svc:disabled { opacity: .42; cursor: not-allowed; }
.bk-check, .bk-radio { flex: none; width: 24px; height: 24px; border: 1.5px solid rgba(248, 244, 241, .45); display: grid; place-items: center; transition: background-color .2s, border-color .2s; }
.bk-check { border-radius: 7px; }
.bk-radio { border-radius: 50%; }
.is-on > .bk-check { background: var(--rose); border-color: var(--rose); }
.is-on > .bk-check::after { content: ""; width: 11px; height: 6px; border: 2px solid var(--ink); border-top: 0; border-right: 0; transform: translateY(-1px) rotate(-45deg); }
.is-on > .bk-radio { border-color: var(--rose); }
.is-on > .bk-radio::after { content: ""; width: 12px; height: 12px; border-radius: 50%; background: var(--rose); }
.bk-svc-text, .bk-spec-text { display: grid; gap: 2px; flex: 1; min-width: 0; }
.bk-svc-note { font-size: 13px; color: var(--muted-dark); }
.bk-spec-text small { font-size: 13px; color: var(--muted-dark); }
.bk-svc-meta { display: flex; gap: 12px; align-items: baseline; flex: none; color: var(--muted-dark); font-size: 14px; white-space: nowrap; }
.bk-svc-meta b { color: var(--milk); font-size: 16px; }

.bk-tz { margin: 6px 0 16px; font-size: 14px; color: var(--rose-hi); font-weight: 600; }
.bk-dates-wrap { display: flex; align-items: center; gap: 8px; }
.bk-dates { flex: 1; min-width: 0; display: grid; grid-auto-flow: column; grid-auto-columns: 64px; gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -ms-overflow-style: none; overscroll-behavior-x: contain; padding: 2px; }
.bk-dates::-webkit-scrollbar { display: none; }
.bk-arrow { flex: none; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-dark); background: var(--plum); color: var(--milk); font-size: 24px; line-height: 1; display: grid; place-items: center; cursor: pointer; transition: border-color .2s, opacity .2s; }
.bk-arrow:hover:not(:disabled) { border-color: var(--rose); }
.bk-arrow:disabled { opacity: .3; cursor: default; }
.bk-date { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 76px; border-radius: 14px; border: 1px solid var(--line-dark); background: transparent; color: var(--milk); cursor: pointer; scroll-snap-align: start; }
.bk-date small { font-size: 12px; color: var(--muted-dark); text-transform: capitalize; }
.bk-date b { font: 400 24px/1 var(--display); }
.bk-date.is-on { border-color: var(--rose); background: var(--rose); color: var(--ink); }
.bk-date.is-on small { color: var(--ink); }
.bk-date.is-empty { opacity: .35; cursor: default; }
.bk-day { margin: 18px 0 12px; font-weight: 600; }
.bk-day::first-letter { text-transform: uppercase; }
.bk-times { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; }
.bk-time { min-height: 48px; border-radius: 12px; border: 1px solid var(--line-dark); background: transparent; color: var(--milk); font-size: 16px; font-weight: 600; cursor: pointer; font-variant-numeric: tabular-nums; transition: border-color .2s, background-color .2s; }
.bk-time:hover { border-color: rgba(230, 179, 186, .65); }
.bk-time.is-on { border-color: var(--rose); background: var(--rose); color: var(--ink); }

.bk-recap { display: grid; gap: 4px; margin: 14px 0 20px; padding: 14px 16px; border-radius: 14px; background: rgba(230, 179, 186, .1); border: 1px solid rgba(230, 179, 186, .35); }
.bk-recap span { color: var(--muted-dark); font-size: 15px; }
.bk-recap span::first-letter { text-transform: uppercase; }
.bk-fields { display: grid; gap: 14px; }
.bk-field { display: grid; gap: 6px; }
.bk-field label { font-size: 14px; font-weight: 600; }
.bk-field input, .bk-field textarea { width: 100%; min-height: 52px; padding: 12px 16px; border-radius: 14px; border: 1px solid var(--line-dark); background: var(--plum); color: var(--milk); font: 16px/1.4 var(--text); }
.bk-field textarea { min-height: 80px; resize: vertical; }
.bk-field input:focus, .bk-field textarea:focus { outline: none; border-color: var(--rose); }
.bk-field [aria-invalid="true"] { border-color: #e0806b; }
.bk-hint { font-size: 13px; color: var(--muted-dark); margin-top: 2px; }
.bk-err { font-size: 14px; color: #f0a08e; }
.bk-muted { color: var(--muted-dark); }
.bk-muted a, .bk-alert a { color: var(--rose-hi); font-weight: 600; }
.bk-alert { margin: 12px 0; padding: 12px 14px; border-radius: 12px; background: rgba(224, 128, 107, .14); color: #f6c3b6; font-size: 15px; }
.bk-trap { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.bk-bar { position: sticky; bottom: 12px; z-index: 5; margin-top: 14px; display: flex; align-items: center; gap: 12px; padding: 10px 10px 10px 14px; border-radius: 18px; background: rgba(72, 39, 47, .96); border: 1px solid rgba(230, 179, 186, .4); box-shadow: 0 18px 40px -20px rgba(0, 0, 0, .7); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.bk-back { flex: none; width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line-dark); background: transparent; color: var(--milk); font-size: 20px; cursor: pointer; }
.bk-back:hover { border-color: var(--rose); }
.bk-bar-info { display: grid; flex: 1 1 auto; min-width: 0; }
.bk-bar-info b { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bk-bar-info b::first-letter { text-transform: uppercase; }
.bk-bar-info span { font-size: 14px; color: var(--muted-dark); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bk-next { flex: none; min-width: 148px; }
.bk-next:disabled { opacity: .45; cursor: not-allowed; transform: none; }

.bk-done { padding: clamp(24px, 4vw, 40px); border-radius: var(--radius); background: var(--plum-2); border: 1px solid rgba(230, 179, 186, .5); outline: none; }
.bk-done-mark { width: 64px; height: 64px; border-radius: 50%; background: var(--rose); color: var(--ink); display: grid; place-items: center; font-size: 30px; font-weight: 700; margin-bottom: 18px; animation: pop .5s var(--ease) both; }
@keyframes pop { from { transform: scale(.6); opacity: 0; } to { transform: none; opacity: 1; } }
.bk-done h3 { font: 400 clamp(30px, 4vw, 40px)/1.1 var(--display); margin-bottom: 12px; }
.bk-done-main { font-size: 18px; margin-bottom: 10px; }
.bk-done .bk-muted { margin-top: 6px; }

@media (max-width: 640px) {
  .bk-stage { padding: 18px 14px; border-radius: 18px; }
  .bk-pl { font-size: 11px; }
  .bk-svc, .bk-spec { padding: 12px 12px; gap: 12px; }
  .bk-svc-meta { flex-direction: column; align-items: flex-end; gap: 0; }
  .bk-arrow { width: 36px; height: 36px; font-size: 22px; }
  .bk-dates-wrap { gap: 6px; }
  .bk-bar { bottom: calc(8px + env(safe-area-inset-bottom)); gap: 10px; }
  .bk-next { min-width: 0; padding: 0 20px; }
}
.bk-filter { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 12px; margin-top: 10px; padding: 8px 8px 8px 14px; border-radius: 12px; background: rgba(230, 179, 186, .1); border: 1px solid rgba(230, 179, 186, .35); color: var(--muted-dark); font-size: 15px; }
.bk-filter b { color: var(--milk); }

/* Окно записи: широкое окно на компьютере, полноэкранная панель на телефоне */
.bk-dialog { padding: 0; border: 0; background: var(--plum); color: var(--milk); width: min(920px, 94vw); height: min(880px, 92dvh); max-width: none; max-height: none; border-radius: 24px; box-shadow: 0 40px 120px -30px rgba(0, 0, 0, .8); overflow: hidden; }
.bk-dialog[open] { display: flex; flex-direction: column; animation: dlg-in .35s var(--ease) both; }
.bk-dialog::backdrop { background: rgba(30, 14, 18, .72); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
@keyframes dlg-in { from { opacity: 0; transform: translateY(16px) scale(.98); } to { opacity: 1; transform: none; } }
html.bk-open { overflow: hidden; }
.bk-dlg-head { flex: none; display: flex; align-items: center; gap: 12px; padding: 12px 14px 12px 18px; border-bottom: 1px solid var(--line-dark); }
.bk-dlg-mark { width: 34px; height: 34px; flex: none; --mark-stroke: 24; }
.bk-dlg-title { font: 400 22px/1.1 var(--display); margin-right: auto; }
.bk-close { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-dark); background: transparent; color: var(--milk); font-size: 18px; cursor: pointer; transition: border-color .2s; }
.bk-close:hover { border-color: var(--rose); }
.bk-dlg-body { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 16px clamp(16px, 3vw, 28px) 0; scrollbar-width: thin; }
.bk-dialog .booking { max-width: none; }
.bk-dialog .bk-stage { background: transparent; border: 0; padding: 4px 0 8px; border-radius: 0; }
.bk-dialog .bk-bar { bottom: 0; margin: 12px calc(-1 * clamp(16px, 3vw, 28px)) 0; border-radius: 0; border-width: 1px 0 0; box-shadow: 0 -12px 30px -18px rgba(0, 0, 0, .7); padding: 12px clamp(16px, 3vw, 28px) calc(12px + env(safe-area-inset-bottom)); }
.bk-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 14px; }
.bk-tab { min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line-dark); background: transparent; color: var(--milk); font-size: 14px; font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; transition: background-color .2s, border-color .2s; }
.bk-tab:hover { border-color: rgba(230, 179, 186, .65); }
.bk-tab.is-on { background: var(--milk); color: var(--ink); border-color: var(--milk); }
.bk-tab-n { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--rose); color: var(--ink); font-size: 12px; display: grid; place-items: center; }
.bk-dialog .bk-cats { margin-top: 0; }
@media (max-width: 640px) {
  .bk-dialog { width: 100vw; height: 100dvh; max-height: 100dvh; margin: 0; border-radius: 0; }
  .bk-dlg-head { padding: 8px 10px 8px 14px; }
  .bk-tab { padding: 0 12px; font-size: 13px; }
}
/* панель с кнопками всегда прижата к низу окна, даже если шаг короткий */
.bk-dialog .booking { min-height: 100%; display: flex; flex-direction: column; }
.bk-dialog .bk-stage { flex: 1 0 auto; }
.bk-dialog .bk-bar { margin-top: auto; }
.bk-link { min-height: 44px; padding: 0 6px; border: 0; background: none; color: var(--rose-hi); font: 600 14px/1 var(--text); cursor: pointer; }
.bk-link:hover { text-decoration: underline; }

/* Запись прямо в разделе: тот же мастер, панель «Назад / Далее» прилипает к низу экрана */
.booking-host .booking { max-width: none; }
.booking-host .bk-stage { background: var(--plum-2); }
.bk-consent { margin-top: 10px; font-size: 13px; color: var(--muted-dark); }
.bk-consent a { color: var(--rose-hi); }
