/* Токены из макета Figma «Твойтай разработка 2027» */
:root {
  --brand-600: #7b61ff;
  --brand-500: #9581ff;
  --brand-200: #ebe7ff;
  --brand-700: #6952d9;
  --text-900: #171717;
  --text-700: #404040;
  --text-600: #525252;
  --text-500: #737373;
  --olive-500: #7c7c67;
  --bg: #ffffff;
  --bg-secondary: #f1f3f3;
  --bg-tabs: #f5f5f5;
  --border: #e5e5e5;
  --success: #34c759;
  --focus-ring: #9581ff;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, .1), 0 1px 2px -1px rgba(0, 0, 0, .1);
  --shadow-lg: 0 12px 16px -4px rgba(0, 0, 0, .08), 0 4px 6px -2px rgba(0, 0, 0, .03), -1px -1px 2px -1px rgba(0, 0, 0, .04);
  --shadow-skeu: inset 0 0 0 1px rgba(0, 0, 0, .18), inset 0 -2px 0 rgba(0, 0, 0, .05), 0 1px 2px rgba(0, 0, 0, .05);
  --font: "Inter", -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scrollbar-gutter: stable; }
body { margin: 0; background: var(--bg); color: var(--text-900); font: 400 16px/24px var(--font); -webkit-font-smoothing: antialiased; }
img { display: block; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
h1, h2, h3, p { margin: 0; }
:focus-visible { outline: 2px solid var(--brand-600); outline-offset: 2px; }

.container { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 32px; }
.m-only { display: none !important; }

/* Типографика */
.h-display { font-size: 48px; line-height: 60px; font-weight: 700; letter-spacing: -0.96px; }
.h-md { font-size: 36px; line-height: 44px; font-weight: 600; letter-spacing: -0.72px; }
.h-white { color: #fff; }
.lead { font-size: 18px; line-height: 24px; color: var(--text-600); opacity: .8; }

/* Кнопки */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border-radius: 12px; font-size: 16px; line-height: 24px; font-weight: 500; white-space: nowrap; transition: filter .15s, background-color .15s; }
.btn-brand { background: var(--brand-600); color: #fff; box-shadow: var(--shadow-skeu); }
.btn-brand:hover { background: var(--brand-700); }
.btn-lg { padding: 16px 32px; }
.btn-sm { padding: 8px 16px; font-size: 14px; line-height: 20px; }
.btn-wide { width: 100%; }
.btn-white { background: #fff; color: var(--text-700); padding: 12px 24px; }
.btn-white:hover { background: #fafafa; }
.arrow-btn { display: inline-flex; padding: 16px; border-radius: 12px; background: var(--bg-secondary); flex-shrink: 0; }

/* ============ Шапка ============ */
.site-header { position: relative; z-index: 30; background: #fff; padding: 16px 0; border-radius: 0 0 40px 40px; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-bottom: 20px; }
.topbar-links { display: flex; align-items: center; gap: 2px; }
.topbar-links a { padding: 4px 0 4px 16px; font-size: 12px; line-height: 20px; color: var(--olive-500); border-radius: 8px; }
.topbar-links a:first-child { padding-left: 0; }
.topbar-links a:hover { color: var(--text-900); }
.topbar-right { display: flex; align-items: center; gap: 8px; }
.city { display: inline-flex; align-items: center; gap: 4px; padding: 4px 6px; font-size: 14px; line-height: 20px; font-weight: 500; color: var(--brand-600); }
.phone { padding: 2px 8px; font-size: 14px; line-height: 20px; font-weight: 500; color: var(--text-700); }
.divider { height: 20px; border-top: 1px solid var(--border); }
.mainbar { display: flex; align-items: center; gap: 20px; }
.logo { display: inline-flex; align-items: center; gap: 3.5px; flex-shrink: 0; }
.logotype { width: 85.8333px; height: 28px; }

.menu-wrap { position: relative; flex-shrink: 0; }
.menu-trigger { display: inline-flex; align-items: center; gap: 4px; padding: 10px 16px; border-radius: 12px; background: var(--brand-600); color: #fff; font-size: 14px; line-height: 20px; font-weight: 500; box-shadow: var(--shadow-skeu); }
.menu-trigger { transition: background-color .15s; }
.menu-trigger:hover { background: var(--brand-700); }
.menu-trigger span { padding: 0 2px; }
.menu-trigger .i-close { display: none; }
.menu-trigger[aria-expanded="true"] { background: var(--brand-200); color: var(--brand-600); box-shadow: none; }
.menu-trigger[aria-expanded="true"] .i-open { display: none; }
.menu-trigger[aria-expanded="true"] .i-close { display: block; }

.main-nav { display: flex; align-items: center; gap: 2px; flex: 1; min-width: 0; }
.main-nav a { padding: 2px 8px; font-size: 14px; line-height: 20px; font-weight: 500; color: var(--text-700); border-radius: 8px; white-space: nowrap; }
.main-nav a { transition: color .15s; }
.main-nav a:hover { color: var(--brand-600); }
.btn-login { display: inline-flex; align-items: center; gap: 4px; padding: 10px 16px; border-radius: 12px; background: var(--bg-secondary); font-size: 14px; line-height: 20px; font-weight: 500; color: var(--text-700); white-space: nowrap; margin-left: auto; }
.btn-login:hover { background: #e7eaea; }
.mobile-actions { display: none; }

/* Меню услуг */
.overlay { position: fixed; inset: 0; z-index: 20; background: rgba(10, 10, 10, .7); }
body.menu-open { overflow: hidden; }
.mega { position: absolute; left: -123px; top: 64px; width: 1138px; z-index: 40; }
.mega-corner { position: relative; height: 12px; }
.mega-corner img { position: absolute; left: 188px; top: -6px; transform: rotate(90deg); }
.mega-panel { display: flex; background: #fff; border-radius: 40px; overflow: hidden; }
.mega-close { display: none; }
.mega-main { display: flex; flex-direction: column; }
.mega-top { display: flex; padding-bottom: 24px; }
.mega-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; width: 534px; padding: 32px 16px 0 32px; }
.mega-card { display: flex; flex-direction: column; justify-content: space-between; min-height: 148px; margin-bottom: 16px; padding: 16px; border-radius: 16px; background: #fff; box-shadow: var(--shadow-lg); transition: transform .15s; }
.mega-card:hover { transform: translateY(-2px); }
.mega-card-title { font-size: 18px; line-height: 24px; font-weight: 500; color: var(--text-900); padding-bottom: 16px; }
.mega-card-img { position: relative; width: 96px; height: 96px; overflow: hidden; align-self: flex-end; }
.mega-card-img img { position: absolute; max-width: none; }
.mega-list { display: flex; flex-direction: column; gap: 2px; width: 260px; padding: 32px 16px 0; }
.mega-item { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 8px; font-size: 14px; line-height: 20px; font-weight: 500; color: var(--text-900); }
.mega-item:hover { background: #fafafa; }
.mega-sep { height: 16px; margin: 14px 16px 0; border-top: 1px solid var(--border); }
.mega-bottom { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 0 32px; padding: 24px 0 32px; border-top: 1px solid var(--border); }
.mega-bottom a { padding: 2px 8px; font-size: 14px; line-height: 20px; font-weight: 500; color: var(--text-700); border-radius: 8px; }
.mega-bottom a { transition: color .15s; }
.mega-bottom a:hover { color: var(--brand-600); }
.mega-bottom-links { display: flex; gap: 8px; }
.mega-aside { padding: 8px 8px 8px 16px; display: flex; }
.mega-promo { position: relative; display: flex; flex-direction: column; justify-content: flex-end; width: 320px; min-height: 200px; padding: 32px; border-radius: 32px; overflow: hidden; color: #fff; }
.mega-promo > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.mega-promo-title, .mega-promo-row { position: relative; }
.mega-promo-title { font-size: 24px; line-height: 32px; font-weight: 600; padding-bottom: 16px; }
.mega-promo-row { display: flex; align-items: flex-end; gap: 16px; }
.mega-promo-text { flex: 1; opacity: .8; }

/* ============ Баннер ============ */
.hero { padding-top: 16px; }
.hero-slider { position: relative; height: 375px; border-radius: 40px; overflow: hidden; }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-content { position: relative; display: flex; flex-direction: column; gap: 32px; padding: 24px 32px; }
.hero-progress { display: flex; gap: 8px; }
.hero-progress button { flex: 1; height: 4px; border-radius: 20px; background: rgba(255, 255, 255, .3); overflow: hidden; padding: 0; }
.hero-progress span { display: block; height: 100%; width: 0; background: #fff; border-radius: 0 20px 20px 0; }
.hero-progress .done span { width: 100%; }
.hero-progress .active span { animation: heroFill var(--dur, 6s) linear forwards; }
.hero-slider.paused .hero-progress .active span { animation-play-state: paused; }
@keyframes heroFill { from { width: 0; } to { width: 100%; } }
.hero-title { font-size: 36px; line-height: 44px; font-weight: 600; letter-spacing: -0.72px; color: #fff; margin-bottom: -24px; }
.hero-sub { font-size: 18px; line-height: 24px; font-weight: 500; color: #fff; opacity: .8; }
.hero-more { position: absolute; left: 32px; top: 287px; padding: 16px 32px; border-radius: 12px; background: var(--bg-secondary); font-size: 16px; line-height: 24px; font-weight: 500; color: var(--text-700); }
.hero-more:hover { background: #fff; }
.hero-arrow { position: absolute; bottom: 28px; width: 44px; height: 44px; }
.hero-arrow.next { right: 28px; }
.hero-arrow.prev { right: 84px; }
.hero-arrow:hover { filter: brightness(1.05); }
.hero-m { display: none; }

/* ============ Разделы ============ */
.cats { display: flex; justify-content: space-between; padding-top: 48px; padding-bottom: 48px; }
.cat { display: flex; flex-direction: column; align-items: center; gap: 8px; width: 144px; }
.cat-img { position: relative; width: 132px; height: 88px; margin: 4px 6px; overflow: hidden; transition: transform .15s; }
.cat-img img { position: absolute; max-width: none; }
.cat-img .fit-cover { inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cat-label { font-size: 16px; line-height: 24px; font-weight: 500; text-align: center; white-space: nowrap; }
.cat:hover .cat-img { transform: translateY(-3px); }

/* ============ Выбрай удобно ============ */
.choose-head { display: flex; flex-direction: column; align-items: center; padding: 40px 32px; }
.choose-head h2 { padding-bottom: 40px; text-align: center; }
.tabs { display: flex; gap: 4px; padding: 4px; border-radius: 16px; background: var(--bg-tabs); }
.tab { display: inline-flex; align-items: center; gap: 6px; padding: 10px 14px; border-radius: 12px; font-size: 14px; line-height: 20px; font-weight: 500; color: var(--text-500); white-space: nowrap; }
.tab[aria-selected="true"] { background: #fff; color: var(--text-700); box-shadow: var(--shadow-sm); }
.tab:hover { color: var(--text-700); }

.choose { padding: 0 32px 96px; }
.choose-card { display: flex; max-width: 1120px; margin: 0 auto; border-radius: 40px; background: var(--bg-secondary); filter: drop-shadow(0 12px 8px rgba(0, 0, 0, .08)) drop-shadow(0 4px 3px rgba(0, 0, 0, .03)) drop-shadow(-1px -1px 1px rgba(0, 0, 0, .04)); }
.choose-main { flex: 1; min-width: 0; padding: 32px 56px 8px; border-radius: 40px; background: #fff; }
.choose-title { font-size: 30px; line-height: 38px; font-weight: 700; padding-bottom: 24px; }
.paths { display: flex; flex-direction: column; gap: 24px; padding-bottom: 24px; }
.path { position: relative; height: 160px; border-radius: 24px; overflow: hidden; text-align: left; border: 2px solid rgba(255, 255, 255, .12);
  /* Фон карточки в макете — сложный векторный градиент; здесь он передан линейным градиентом */
  background: linear-gradient(90deg, #5b5be8 0%, #8d7cff 48%, #dcd5ff 100%) border-box; transition: box-shadow .15s, transform .15s; }
.path:hover { transform: translateY(-2px); }
.path:focus-visible { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--focus-ring); outline: none; }
@media (hover: hover) { .path:hover { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--focus-ring); } }
.path-label { position: absolute; left: 22px; top: 50%; transform: translateY(-50%); font-size: 36px; line-height: 44px; font-weight: 700; letter-spacing: -0.72px; color: #fff; }
.path-img { position: absolute; right: 0; top: 50%; transform: translateY(-50%); height: 156px; width: 190px; object-fit: cover; }
.path-img-salon { right: 9px; height: 138px; width: 208px; }
.choose-side { width: 416px; flex-shrink: 0; padding: 32px 40px; }
.fill { padding-bottom: 32px; }
.fill-labels { display: flex; justify-content: space-between; gap: 8px; color: var(--text-700); padding-bottom: 8px; }
.fill-bar { position: relative; height: 8px; border-radius: 20px; background: #e5e5e5; overflow: hidden; }
.fill-bar span { position: absolute; left: 0; top: 0; height: 8px; border-radius: 0 20px 20px 0; background: var(--success); transition: width .3s; }
.fill-ghost { width: 112px; opacity: .3; }
.fill-done { width: 40px; }
.choose-hint { display: flex; flex-direction: column; justify-content: center; gap: 4px; min-height: 126px; padding: 16px; border-radius: 20px; background: #fff; color: var(--text-700); }
.choose-hint-title { font-size: 20px; line-height: 30px; font-weight: 600; }
.choose-hint-text { font-size: 14px; line-height: 20px; }

/* ============ Вкладки «Сертификаты» и «Абонементы» ============ */
.buy-card { align-items: stretch; }
.buy-summary { display: flex; flex-direction: column; width: 416px; flex-shrink: 0; padding: 32px 40px; }
.sum-label { padding-bottom: 8px; color: var(--text-700); }
.sum-amount { padding-bottom: 16px; font-size: 36px; line-height: 44px; font-weight: 700; letter-spacing: -0.72px; color: var(--text-700); }
.sum-divider, .buy-divider { height: 1px; border-radius: 1px; background: #d4d4d4; margin-bottom: 24px; }
.sum-preview { width: 336px; max-width: 100%; aspect-ratio: 336 / 220; margin-bottom: 24px; border-radius: 24px; overflow: hidden; }
.sum-preview img { width: 100%; height: 100%; object-fit: cover; transition: opacity .2s; }
.buy-fill { padding-bottom: 32px; }
.buy-fill .fill-bar span { transition: width .3s; }
.fill-hint { font-size: 13px; line-height: 20px; color: var(--text-700); padding-top: 8px; }

.buy-main { flex: 1; min-width: 0; padding: 32px 56px; border-radius: 40px; background: #fff; }
.buy-title { padding-bottom: 24px; font-size: 30px; line-height: 38px; font-weight: 700; }
.designs-grid { display: flex; flex-wrap: wrap; gap: 12px; max-width: 592px; padding: 4px 0 32px; }
.design-tile { width: 139px; height: 87px; border-radius: 12px; overflow: hidden; box-shadow: 0 4px 22.8px rgba(0, 0, 0, .12); transition: box-shadow .15s, transform .15s; }
.design-tile img { width: 100%; height: 100%; object-fit: cover; }
.design-tile:hover { transform: translateY(-2px); }
.design-tile[aria-checked="true"] { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--focus-ring); }
.design-tile.only-m { display: none; }
.link-more { display: inline-flex; align-items: center; font-size: 14px; line-height: 20px; font-weight: 500; color: var(--brand-700); }
.link-more:hover { color: var(--brand-600); }

.amount-box { margin-bottom: 32px; padding: 24px; border: 1px solid var(--border); border-radius: 20px; }
.amount-label { padding-bottom: 16px; color: var(--text-900); }
.amount-row { display: flex; align-items: center; height: 32px; margin-bottom: 24px; }
.amount-value { font-size: 24px; line-height: 32px; font-weight: 700; }
.amount-input { width: 160px; height: 36px; padding: 0 10px; border: 1px solid var(--brand-500); border-radius: 10px; font-size: 20px; font-weight: 700; }
.amount-input:focus { outline: none; box-shadow: 0 0 0 3px var(--brand-200); }
.amount-edit { display: inline-flex; padding: 6px; border-radius: 8px; }
.amount-edit:hover { background: var(--bg-secondary); }
.range { padding-bottom: 24px; }
.range input { -webkit-appearance: none; appearance: none; display: block; width: 100%; height: 24px; margin: 0; background: transparent; cursor: pointer; }
.range input::-webkit-slider-runnable-track { height: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--brand-600) var(--p, 50%), #e5e5e5 var(--p, 50%)); }
.range input::-moz-range-track { height: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--brand-600) var(--p, 50%), #e5e5e5 var(--p, 50%)); }
.range input::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; margin-top: -11px; border: 0; border-radius: 50%; background: url(assets/knob.svg) center / 24px 24px no-repeat; }
.range input::-moz-range-thumb { width: 24px; height: 24px; border: 0; border-radius: 50%; background: url(assets/knob.svg) center / 24px 24px no-repeat; }
.range input:focus-visible { outline: none; }
.range input:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 4px var(--brand-200); }
.range-marks { position: relative; height: 27px; margin-top: -3px; font-size: 13px; line-height: 20px; color: var(--text-500); white-space: nowrap; }
.range-marks span { position: absolute; top: 0; padding-top: 7px; }
.range-marks span:nth-child(1) { left: 0; }
.range-marks span:nth-child(2) { left: calc(12px + (100% - 24px) / 3); transform: translateX(-50%); }
.range-marks span:nth-child(3) { left: calc(12px + (100% - 24px) * 2 / 3); transform: translateX(-50%); }
.range-marks span:nth-child(4) { right: 0; }
/* деления — точки на самом треке, ровно над подписями (центр ползунка ходит от 12px до ширины − 12px) */
.range { position: relative; }
.range-marks span:nth-child(2)::before, .range-marks span:nth-child(3)::before { content: ""; position: absolute; left: 50%; top: -12px; width: 6px; height: 6px; margin-left: -3px; border-radius: 50%; background: #d4d4d4; box-shadow: 0 0 0 2px #fff; pointer-events: none; }
.range-marks span.is-passed::before { background: var(--brand-600); }
.amount-hint { font-size: 13px; line-height: 20px; color: var(--text-700); }

.gift-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.seg-btn { padding: 14px 16px; border-radius: 16px; background: var(--bg-tabs); font-size: 14px; line-height: 20px; font-weight: 500; color: var(--text-500); box-shadow: inset 0 0 0 4px var(--bg-tabs); }
.seg-btn:hover { color: var(--text-700); }
.seg-btn[aria-pressed="true"] { background: #fff; color: var(--text-700); box-shadow: inset 0 0 0 4px var(--bg-tabs), var(--shadow-sm); }
.field-block { display: flex; flex-direction: column; gap: 6px; padding-bottom: 16px; }
.field-last { padding-bottom: 32px; }
.t-input { width: 100%; min-width: 0; height: 56px; padding: 0 12px 0 16px; border: 1px solid transparent; border-radius: 12px; background: var(--bg-secondary); font-size: 16px; line-height: 24px; color: var(--text-900); }
.t-input::placeholder { color: var(--text-500); }
.t-input:focus { outline: none; border-color: var(--brand-500); background: #fff; }
.t-input.invalid { border-color: #d92d20; }
.t-area { height: 154px; padding: 12px 16px; resize: vertical; box-shadow: 0 1px 2px rgba(0, 0, 0, .05); }
.field-hint { font-size: 14px; line-height: 20px; color: var(--text-600); }
.field-error { font-size: 14px; line-height: 20px; color: #d92d20; }
.field-error:empty { display: none; }
.two-col { display: flex; gap: 16px; padding-bottom: 16px; }
.msg-group { padding-bottom: 32px; }
.buy-divider { margin-bottom: 32px; }
.buy-submit { display: flex; align-items: flex-start; gap: 72px; padding-bottom: 24px; }
.consent { flex: 1; font-size: 12px; line-height: 20px; color: var(--text-500); }
.consent a { color: var(--brand-600); }
.consent a:hover { text-decoration: underline; }

.select-field { position: relative; display: flex; flex-direction: column; justify-content: center; min-height: 56px; margin-bottom: 32px; padding: 6px 44px 6px 16px; border-radius: 12px; background: var(--bg-secondary); cursor: pointer; }
.select-label { font-size: 13px; line-height: 20px; color: var(--text-500); }
.select-value { font-size: 16px; line-height: 24px; color: var(--text-900); }
.select-arrow { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); }
.select-field select { position: absolute; inset: 0; width: 100%; opacity: 0; cursor: pointer; }
.select-field:focus-within { box-shadow: 0 0 0 2px var(--brand-500); }
.packs { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding-bottom: 32px; }
.pack { display: flex; flex-direction: column; padding: 16px; border: 2px solid transparent; border-radius: 24px; background: var(--bg-secondary); cursor: pointer; transition: border-color .15s; }
.pack:hover { border-color: var(--brand-200); }
.pack.is-selected { border-color: var(--brand-600); }
.pack-custom { background: #f6f4ff; }
.pack-head { display: flex; align-items: flex-start; justify-content: space-between; padding-bottom: 16px; }
.pack-title { font-size: 20px; line-height: 30px; font-weight: 600; color: var(--text-700); }
.radio { position: relative; width: 24px; height: 24px; flex-shrink: 0; border-radius: 50%; background: #fff; }
.is-selected .radio { background: var(--brand-600); }
.is-selected .radio::after { content: ""; position: absolute; inset: 30%; border-radius: 50%; background: #fff; }
.pack-term { display: flex; align-items: center; gap: 4px; padding-bottom: 16px; font-size: 14px; line-height: 20px; color: var(--text-700); }
.pack-price { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; padding-bottom: 32px; }
.pack-price-grow { flex: 1; align-items: flex-start; align-content: flex-start; padding-bottom: 16px; gap: 4px; }
.pill { padding: 6px 12px; border-radius: 999px; background: var(--brand-600); color: #fff; font-size: 16px; line-height: 20px; font-weight: 500; }
.per-hour { font-size: 16px; line-height: 24px; font-weight: 500; color: var(--brand-600); }
.ph { display: inline-flex; align-items: baseline; gap: 4px; padding: 6px 0; }
.per-unit { font-size: 13px; line-height: 20px; font-weight: 500; color: var(--text-500); }
.pack-btn { display: flex; align-items: center; justify-content: center; gap: 6px; width: 100%; margin-top: auto; padding: 16px 24px; border-radius: 12px; background: #fff; font-size: 16px; line-height: 24px; font-weight: 500; color: var(--brand-600); }
.pack-btn img { display: none; }
.is-selected .pack-btn span, .is-selected .pack-btn img { opacity: .56; }
.is-selected .pack-btn img { display: block; }
.subs-card .buy-summary { order: 2; }

/* ============ Серая зона ============ */
.gray-zone { background: var(--bg-secondary); padding-top: 96px; }
.gray-zone > .container { padding: 0 32px; }
.card { background: #fff; border-radius: 40px; }
.row-2 { display: flex; gap: 32px; min-height: 440px; }
.balance { flex: 1; min-width: 0; padding: 40px 56px 48px; }
.balance .h-md, .support .h-md { padding-bottom: 16px; }
.balance .lead { padding-bottom: 16px; }
.pay-logos { display: flex; flex-wrap: wrap; gap: 8px 12px; padding: 16px 0 40px; }
.pay { position: relative; width: 48px; height: 24px; overflow: hidden; }
.pay > img { position: absolute; }
.sbp { position: absolute; left: 0; top: 2px; width: 50.154px; height: 20px; }
.sbp img { position: absolute; width: auto; height: auto; }
.sber { position: absolute; left: 1px; top: 1px; width: 46px; height: 22px; overflow: hidden; }
.sber-rect { position: absolute; inset: -3.62% -1.74% -3.61% -1.71%;
  -webkit-mask-image: url(assets/sber-mask-1.svg), url(assets/sber-mask-2.svg), url(assets/sber-mask-2.svg);
  mask-image: url(assets/sber-mask-1.svg), url(assets/sber-mask-2.svg), url(assets/sber-mask-2.svg);
  -webkit-mask-position: 0.794px 0.805px, 0.004px 0.016px, 0.004px 0.016px; mask-position: 0.794px 0.805px, 0.004px 0.016px, 0.004px 0.016px;
  -webkit-mask-size: 45.983px 21.983px, 47.563px 23.561px, 47.563px 23.561px; mask-size: 45.983px 21.983px, 47.563px 23.561px, 47.563px 23.561px;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-composite: source-in; mask-composite: intersect; }
.sber-rect img { width: 100%; height: 100%; }
.sber-text { position: absolute; top: 30.56%; right: 14.23%; bottom: 23.22%; left: 47.05%; width: 38.72%; height: 46.22%; }
.sber-sign { position: absolute; top: 22.51%; right: 62.95%; bottom: 22.55%; left: 10.73%; width: 26.32%; height: 54.94%; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; max-width: 447px; padding-bottom: 32px; }
.chip { display: inline-flex; align-items: center; gap: 4px; padding: 8px 14px; border-radius: 12px; background: var(--bg-secondary); font-size: 14px; line-height: 20px; font-weight: 500; color: var(--text-700); white-space: nowrap; transition: background-color .15s, color .15s; }
.chip:hover { background: #e7eaea; }
.chip[aria-pressed="true"] { background: var(--brand-200); color: var(--brand-600); }
.chip-icon { padding: 8px 14px 8px 12px; }

.topup { display: flex; gap: 16px; align-items: stretch; }
.field-group { display: flex; height: 56px; }
.phone-group { flex: 1; min-width: 0; }
.amount-group { width: 180px; flex-shrink: 0; }
.affix { display: flex; align-items: center; justify-content: center; width: 56px; flex-shrink: 0; background: var(--bg-secondary); border: 1px solid var(--border); color: #000; font-size: 16px; }
.affix-l { border-right: 0; border-radius: 12px 0 0 12px; justify-content: flex-start; padding-left: 16px; }
.affix-r { border-left: 0; border-radius: 0 12px 12px 0; }
.field-group input { flex: 1; min-width: 0; height: 56px; padding: 0 8px 0 16px; border: 1px solid var(--border); background: #fff; font-size: 16px; line-height: 20px; color: #000; }
.field-group input::placeholder { color: var(--text-500); }
.phone-group input { border-left: 0; border-radius: 0 12px 12px 0; }
.amount-group input { border-right: 0; border-radius: 12px 0 0 12px; }
.field-group input:focus { outline: none; border-color: var(--brand-500); }
.field-group:focus-within .affix { border-color: var(--brand-500); }
.field-group.invalid input, .field-group.invalid .affix { border-color: #d92d20; }
.form-error { min-height: 20px; margin-top: 8px; font-size: 14px; line-height: 20px; color: #d92d20; }

.profile { display: flex; flex-direction: column; width: 440px; flex-shrink: 0; padding: 40px 56px 48px; }
.profile-head { display: flex; gap: 16px; align-items: flex-start; }
.profile-head .h-md { flex: 1; padding-bottom: 16px; }
.profile-icon { display: flex; align-items: center; justify-content: center; width: 88px; height: 88px; flex-shrink: 0; border-radius: 24px; background: linear-gradient(243.82deg, #7b61ff 1.6%, rgba(123, 97, 255, 0) 186.32%); }
.profile-text { flex: 1; padding: 0 104px 16px 0; }

.support { display: flex; gap: 32px; min-height: 200px; margin-top: 32px; padding: 40px 56px 48px; }
.support > div:first-child { flex: 1; }
.support-chips { display: flex; flex-wrap: wrap; align-content: flex-start; gap: 16px; max-width: 690px; }

/* Акции */
.promos { position: relative; z-index: 2; margin-top: 96px; padding: 96px 0; border-radius: 96px; background: linear-gradient(90deg, var(--brand-600), var(--brand-500)); overflow: hidden; }
.promos .h-display { padding-bottom: 32px; }
.promos-wrap { position: relative; max-width: 1280px; margin: 0 auto; }
.promos-track { display: flex; gap: 32px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; margin-right: calc((1280px - 100vw) / 2); padding-right: 32px; }
.promos-track::-webkit-scrollbar { display: none; }
.promo { position: relative; display: flex; flex-direction: column; align-items: flex-end; flex: 0 0 360px; height: 547px; padding: 32px; border-radius: 40px; background-size: cover; background-position: center; scroll-snap-align: start; color: var(--text-700); }
.promo-title { width: 100%; font-size: 24px; line-height: 32px; font-weight: 600; padding-bottom: 16px; }
.promo-text { width: 100%; flex: 1; opacity: .8; padding-bottom: 16px; }
.promo:hover .arrow-btn { background: #fff; }
.promos-next { position: absolute; right: -16px; top: 222px; display: flex; padding: 20px; border-radius: 999px; background: rgba(23, 23, 23, .32); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.promos-next:hover { background: rgba(23, 23, 23, .45); }

/* ============ Рейтинги ============ */
.ratings { position: relative; z-index: 1; margin-top: -128px; padding: 224px 0 96px; background: #fff; }
.ratings .h-display { padding-bottom: 32px; }
.ratings-row { display: flex; gap: 32px; }
.rating { flex: 1; min-width: 0; padding: 32px; border-radius: 40px; background: var(--bg-secondary); }
.rating-top { display: flex; align-items: flex-start; justify-content: space-between; padding-bottom: 32px; }
.rating-logo { display: block; width: 72px; height: 72px; position: relative; }
.ya-logo { width: 58px; height: 72px; }
.gis-mask { position: absolute; inset: 0; -webkit-mask: url(assets/2gis-mask.svg) no-repeat 0 0 / 72px 72px; mask: url(assets/2gis-mask.svg) no-repeat 0 0 / 72px 72px; }
.rating-value { font-size: 60px; line-height: 72px; font-weight: 700; letter-spacing: -1.2px; }
.rating-bottom { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.rating-name { font-size: 24px; line-height: 32px; font-weight: 600; padding-bottom: 16px; }
.stars { display: flex; gap: 8px; }
.stars img { width: 40px; height: 40px; }

/* ============ Мастера ============ */
.masters-wrap { padding-bottom: 96px; }
.masters { position: relative; height: 360px; padding: 40px 56px 48px; border-radius: 40px; overflow: hidden; background: linear-gradient(0deg, #b8aaff, #7c62ff); }
.masters-title, .masters-text { position: relative; z-index: 2; max-width: 600px; }
.masters-title { padding-bottom: 16px; }
.masters-text { font-size: 18px; line-height: 24px; color: #fff; }
.masters-ellipse { position: absolute; right: 66px; top: -100px; width: 637px; height: 637px; max-width: none; }
.masters-photo { position: absolute; right: 0; top: 0; width: 564px; height: 360px; object-fit: cover; }
.masters-btn { position: absolute; left: 56px; top: 264px; z-index: 2; color: var(--brand-600); }

/* ============ Все для вас ============ */
.all { padding-bottom: 48px; }
.all .h-display { padding-bottom: 32px; }
.all-grid { display: flex; gap: 32px; }
.all-grid > * { flex: 1; min-width: 0; }
.all-col { display: flex; flex-direction: column; gap: 32px; }
.all-pair { display: flex; gap: 32px; }
.all-pair > * { flex: 1; min-width: 0; }
.tile { position: relative; display: block; height: 176px; padding: 16px 32px 32px 24px; border-radius: 32px; overflow: hidden; }
.tile-tall { height: 384px; }
.tile-bg { position: absolute; inset: 0; overflow: hidden; }
.tile-bg img { position: absolute; max-width: none; transition: transform .3s; }
.tile-bg .fit-cover { inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tile-bg .sq { width: var(--s); height: auto; aspect-ratio: 1; }
.tile:hover .tile-bg img { transform: scale(1.03); }
.tile-title { position: relative; font-size: 20px; line-height: 30px; font-weight: 600; color: var(--text-900); }

.quick { display: flex; justify-content: space-between; padding: 48px 80px; }
.quick-item { display: flex; flex-direction: column; align-items: center; gap: 8px; width: 140px; font-size: 16px; line-height: 24px; font-weight: 500; text-align: center; }
.quick-icon { display: flex; align-items: center; justify-content: center; width: 104px; height: 104px; border-radius: 32px; background: var(--bg-secondary); transition: background-color .15s; }
.quick-item:hover .quick-icon { background: var(--brand-200); }

/* ============ Подвал ============ */
.footer { background: var(--bg-secondary); border-radius: 96px 96px 0 0; padding: 64px 0 48px; }
.footer-top { display: flex; flex-wrap: wrap; gap: 48px 64px; }
.footer-about { display: flex; flex-direction: column; gap: 24px; flex: 1; min-width: 320px; max-width: 320px; color: var(--text-600); }
.footer-links { display: flex; gap: 32px; flex: 1; min-width: 0; }
.footer-col { display: flex; flex-direction: column; gap: 12px; flex: 1; min-width: 96px; }
.footer-col-title { font-size: 20px; line-height: 30px; font-weight: 600; color: var(--text-700); padding-bottom: 4px; }
.footer-col a { font-size: 14px; line-height: 20px; font-weight: 500; color: var(--text-600); opacity: .8; white-space: nowrap; }
.footer-col a:hover { opacity: 1; color: var(--brand-600); }
.footer-apps { display: flex; flex-direction: column; gap: 32px; flex-shrink: 0; }
.badges { display: flex; gap: 16px; width: 286px; }
.badges a:first-child { flex: 1; }
.badges a:first-child img { width: 100%; }
.qr { position: relative; display: flex; padding: 32px; width: 286px; height: 286px; }
.qr-bg { position: absolute; inset: 0; width: 100%; height: 100%; }
.qr-code { position: relative; width: 222px; height: 222px; }
.footer-bottom { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px; margin-top: 64px; padding-top: 32px; border-top: 1px solid var(--border); font-size: 14px; line-height: 20px; color: var(--text-500); }
.socials { display: flex; gap: 16px; }
.icon-swap { position: relative; display: inline-flex; flex-shrink: 0; }
.icon-swap .icon-hover { position: absolute; inset: 0; opacity: 0; transition: opacity .15s; }
.socials a:hover .icon-hover, .contact-site:hover .icon-hover { opacity: 1; }

/* ============ Контакты ============ */
.crumbs { display: flex; align-items: center; gap: 8px; padding-top: 16px; font-size: 16px; line-height: 24px; font-weight: 500; color: var(--text-500); }
.crumbs a:hover { color: var(--text-900); }
.crumbs [aria-current] { color: #6952d9; }
.page-title { padding: 32px 32px 56px; text-align: center; }
.contacts { display: flex; gap: 80px; align-items: flex-start; padding-bottom: 96px; }
.contact-card { display: flex; flex-direction: column; align-items: center; width: 440px; flex-shrink: 0; padding: 40px 56px 48px; border-radius: 40px; background: var(--bg-secondary); text-align: center; }
.contact-logo { width: 88px; height: 88px; }
.contact-name { padding: 16px 0; font-size: 36px; line-height: 44px; font-weight: 600; letter-spacing: -0.72px; }
.contact-lead { padding-bottom: 32px; font-size: 18px; line-height: 24px; color: var(--text-600); opacity: .8; }
.contact-card .btn-brand { margin-bottom: 16px; }
.btn-white-brand { background: #fff; color: var(--brand-600); margin-bottom: 32px; }
.btn-white-brand:hover { background: var(--brand-200); }
.contact-site { display: inline-flex; align-items: center; gap: 6px; padding-bottom: 32px; font-size: 18px; line-height: 24px; font-weight: 500; color: var(--text-600); }
.contact-site:hover { color: var(--brand-600); }
.contact-info { flex: 1; min-width: 0; }
.contact-info .info-block { padding-bottom: 48px; }
.info-title { padding-bottom: 16px; font-size: 24px; line-height: 32px; font-weight: 600; }
.info-block p { font-size: 16px; line-height: 24px; color: var(--text-600); }
.info-block p + p { padding-top: 16px; }
.info-row { display: flex; gap: 32px; }
.info-row .info-block { flex: 1; min-width: 0; padding-bottom: 32px; }
.info-link { font-size: 16px; line-height: 24px; font-weight: 400; color: var(--text-600); }
a.info-link:hover { color: var(--brand-600); }

.philo-wrap { padding-bottom: 96px; }
.philo { position: relative; height: 360px; padding: 40px 56px 48px; border-radius: 40px; overflow: hidden; background: linear-gradient(0deg, #b8aaff, #7c62ff); }
.philo-title, .philo-text { position: relative; z-index: 2; max-width: 600px; }
.philo-title { padding-bottom: 16px; }
.philo-text { font-size: 18px; line-height: 24px; color: #fff; }
.philo-ellipse { position: absolute; right: -53px; top: -83px; width: 637px; height: 637px; max-width: none; }
.philo-v1 { position: absolute; right: 279px; top: 233px; }
.philo-v2 { position: absolute; right: 246.66px; top: 250px; }
.philo-photo { position: absolute; right: 99px; top: -6px; width: 346px; height: 519px; object-fit: cover; }
.philo-actions { position: absolute; left: 56px; top: 264px; z-index: 2; display: flex; gap: 16px; }
.philo-btn { padding: 16px 24px; }
.philo-btn-alt { color: var(--brand-600); }

/* Нижняя панель и уведомление */
.tabbar { display: none; }
.toast { position: fixed; left: 50%; bottom: 32px; z-index: 100; max-width: calc(100% - 32px); padding: 12px 20px; border-radius: 12px; background: var(--text-900); color: #fff; font-size: 14px; line-height: 20px; transform: translate(-50%, 24px); opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ============ Промежуточная ширина ============ */
@media (max-width: 1279px) {
  .main-nav a:nth-child(n+5) { display: none; }
  .mega { width: min(1138px, calc(100vw - 32px)); left: -123px; }
  .mega-aside { display: none; }
  .cats { overflow-x: auto; gap: 16px; scrollbar-width: none; }
  .cat { flex-shrink: 0; }
  .masters-photo { opacity: .35; }
  .quick { padding-left: 32px; padding-right: 32px; }
  .footer-links { flex-wrap: wrap; min-width: 100%; }
}
@media (max-width: 1100px) {
  .row-2 { flex-direction: column; }
  .profile { width: auto; }
  .support { flex-direction: column; }
  .choose-side { width: 320px; padding: 32px 24px; }
}

/* ============ Мобильная версия ============ */
@media (max-width: 860px) {
  .d-only { display: none !important; }
  .m-only { display: revert !important; }
  .container { padding: 0 16px; }
  body { padding-bottom: 104px; }

  .site-header { padding: 8px 0; border-radius: 0 0 24px 24px; }
  .topbar { padding: 6px 16px 14px; }
  .topbar-links { display: none; }
  .topbar-right { width: 100%; justify-content: space-between; }
  .city { color: var(--text-700); padding-left: 0; }
  .city img { filter: grayscale(1) brightness(.4); }
  .phone { padding-right: 0; }
  .divider { display: none; }
  .mainbar { justify-content: space-between; padding-right: 12px; }
  .menu-trigger, .main-nav, .btn-login { display: none; }
  .mobile-actions { display: flex; align-items: center; gap: 16px; }

  /* Меню на мобильном: полноэкранный лист */
  .menu-wrap { position: static; }
  .mega { position: fixed; inset: 0; width: auto; top: 0; left: 0; overflow-y: auto; padding: 16px; }
  .mega-corner { display: none; }
  .mega-panel { flex-direction: column; border-radius: 32px; position: relative; padding-top: 56px; }
  .mega-close { display: flex; position: absolute; top: 16px; right: 16px; padding: 10px; border-radius: 12px; background: var(--brand-200); }
  .mega-top { flex-direction: column; padding-bottom: 8px; }
  .mega-cards { width: auto; padding: 0 16px; gap: 0 12px; }
  .mega-card { min-height: 0; }
  .mega-card-title { font-size: 16px; line-height: 20px; }
  .mega-card-img { width: 72px; height: 72px; }
  .mega-list { width: auto; padding: 0 8px; }
  .mega-bottom { flex-direction: column; align-items: flex-start; margin: 0 16px; }
  .mega-bottom-links { flex-direction: column; }
  .mega-aside { display: flex; padding: 0 8px 8px; }
  .mega-promo { width: 100%; }

  .h-display { font-size: 24px; line-height: 32px; letter-spacing: 0; font-weight: 600; }
  .h-md { font-size: 24px; line-height: 32px; letter-spacing: 0; }
  .lead { font-size: 16px; line-height: 24px; }

  /* Баннер */
  .hero { padding: 16px 0 32px; }
  .hero-slider { display: none; }
  .hero-m { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 0 16px; scroll-padding: 0 16px; }
  .hero-m::-webkit-scrollbar { display: none; }
  .hero-card { position: relative; flex: 0 0 270px; height: 340px; padding: 16px 20px; border-radius: 32px; overflow: hidden; scroll-snap-align: start; color: #fff; }
  .hero-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
  .hero-card-title { position: relative; display: block; font-size: 16px; line-height: 24px; font-weight: 600; }
  .hero-card-sub { position: relative; display: block; margin-top: 8px; font-size: 14px; line-height: 20px; opacity: .8; }

  /* Разделы */
  .cats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; padding: 0 16px 32px; overflow: visible; }
  .cat { width: auto; min-height: 114px; gap: 8px; padding: 0 0 10px; }
  .cat-img { width: 64px; height: 64px; margin: 0; }
  .cat-img .fit-cover { object-fit: contain; }
  .cat-img .fit-mid { left: 0 !important; top: 0 !important; width: 64px !important; height: 64px !important; object-fit: contain; }
  .cat-label { font-size: 12px; line-height: 16px; white-space: normal; padding: 0 8px; }

  /* Онлайн-запись */
  .choose-head { align-items: stretch; padding: 0 16px 16px; }
  .choose-head h2 { text-align: left; padding-bottom: 16px; }
  .tabs { background: none; padding: 0; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 0 16px; }
  .tabs::-webkit-scrollbar { display: none; }
  .tab { padding: 8px 12px; color: var(--text-700); }
  .tab[aria-selected="true"] { background: var(--brand-200); color: var(--brand-600); box-shadow: none; }
  .choose { padding: 0 16px 32px; }
  .choose-card { display: block; background: none; filter: none; border-radius: 0; }
  .choose-main { padding: 0; background: none; border-radius: 0; }
  .choose-title, .choose-side { display: none; }
  .paths { gap: 16px; padding-bottom: 0; }
  .path { height: 112px; border: 0; background: linear-gradient(90deg, #7c62ff, #b8aaff); }
  .path-label { left: 20px; font-size: 24px; line-height: 28px; font-weight: 700; letter-spacing: .72px; text-transform: uppercase; }
  .path-img { height: 112px; width: 137px; right: 0; }
  .path-img-salon { width: 169px; right: 0; }

  /* Вкладки «Сертификаты» и «Абонементы» на мобильном: один столбец в порядке макета */
  .buy-card { display: flex; flex-direction: column; }
  .buy-summary, .buy-main { display: contents; }
  .sum-label, .sum-amount, .sum-divider, .buy-main > .buy-title, .gift-head, .date-row, .amount-label, .amount-hint, .two-col { display: none !important; }
  .buy-fill { order: 1; padding-bottom: 32px; }
  .buy-fill .fill-labels { font-size: 13px; line-height: 20px; }
  .sum-preview { order: 2; width: 100%; margin-bottom: 12px; }
  .designs-grid { order: 3; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; max-width: none; padding: 0 0 12px; }
  .design-tile { width: auto; height: auto; aspect-ratio: 343 / 220; border-radius: 16px; box-shadow: none; }
  .design-tile.only-m { display: block; }
  .design-tile.extra-m { display: none; }
  .designs-grid.is-expanded .design-tile.extra-m { display: block; }
  #allDesigns.m-only, #addMessage.m-only { display: inline-flex !important; }
  #allDesigns { order: 4; align-self: flex-end; padding-bottom: 32px; }
  .amount-box { order: 5; margin: 0; padding: 0; border: 0; }
  .amount-row { margin-bottom: 16px; gap: 2px; }
  .range { padding-bottom: 32px; }
  .buy-card .field-block { order: 6; }
  .add-msg { order: 7; gap: 8px; padding: 6px 0 32px; align-self: flex-start; }
  .msg-group { order: 8; display: none; padding-bottom: 16px; }
  .msg-group.is-open { display: block; }
  .msg-group.is-open .two-col { display: flex !important; flex-direction: column; gap: 16px; }
  .buy-divider { display: none; }
  .buy-submit { order: 9; flex-direction: column-reverse; gap: 16px; padding-bottom: 0; }
  .buy-submit .btn { width: 100%; }
  .field-block .field-hint { display: none; }

  .subs-card .buy-summary { order: 0; }
  .subs-card .sum-preview { display: none; }
  .select-field { order: 2; }
  .packs { order: 3; display: flex; gap: 16px; overflow-x: auto; margin: 0 -16px; padding: 0 16px 32px; scroll-snap-type: x mandatory; scroll-padding: 0 16px; scrollbar-width: none; }
  .packs::-webkit-scrollbar { display: none; }
  .pack { flex: 0 0 220px; scroll-snap-align: start; }
  .subs-card .field-block { order: 4; }
  .subs-card .field-last { padding-bottom: 16px; }
  .subs-card .buy-submit { padding-bottom: 0; }

  /* Серая зона */
  .gray-zone { padding-top: 32px; }
  .gray-zone > .container { padding: 0 16px; }
  .card { border-radius: 32px; }
  .row-2 { min-height: 0; }
  .balance { padding: 24px 20px 32px; }
  .balance .h-md { padding-bottom: 16px; }
  .pay-logos { padding: 0 0 16px; max-width: 290px; }
  .balance .lead { padding-bottom: 24px; }
  .chips { padding-bottom: 24px; }
  .topup { flex-direction: column; }
  .amount-group { width: 100%; }
  .profile { display: none; }
  .support { margin-top: 32px; padding: 24px 20px 32px; gap: 0; }
  .support .lead { padding-bottom: 24px; max-width: 220px; }
  .support-chips { flex-direction: column; align-items: flex-start; gap: 8px; }

  .promos { margin: 32px 0 0; padding: 32px 0; border-radius: 40px; }
  .promos .container { padding: 0 24px; }
  .promos .h-display { padding-bottom: 24px; }
  .promos-track { gap: 16px; margin-right: 0; padding: 0 24px; scroll-padding: 0 24px; }
  .promo { flex: 0 0 300px; height: 460px; padding: 24px; border-radius: 32px; }
  .promo-title { font-size: 20px; line-height: 28px; }
  .promos-next { display: none; }

  .ratings { margin-top: -40px; padding: 72px 0 32px; }
  .ratings .h-display { padding-bottom: 24px; }
  .ratings-row { flex-direction: column; gap: 16px; }
  .rating { padding: 24px; border-radius: 32px; }
  .rating-top { align-items: center; gap: 8px; padding-bottom: 16px; }
  .rating-logo { width: 32px; height: 32px; }
  .gis-mask { transform: scale(.4444); transform-origin: 0 0; width: 72px; height: 72px; }
  .ya-logo { width: 26px; height: 32px; }
  .rating-name.m-only { display: block !important; flex: 1; padding: 0; font-size: 18px; line-height: 24px; }
  .rating-value { font-size: 32px; line-height: 38px; }
  .rating-bottom { flex-direction: column; align-items: stretch; gap: 32px; }
  .stars { gap: 8px; }
  .stars img { width: 32px; height: 32px; }
  .rating .btn-white { width: 100%; }

  .masters-wrap { padding-bottom: 32px; }
  .masters { height: 400px; padding: 16px 20px; border-radius: 32px; }
  .masters-title { font-size: 20px; line-height: 24px; padding-bottom: 8px; }
  .masters-text { font-size: 14px; line-height: 20px; }
  .masters-ellipse { width: 417px; height: 417px; right: auto; left: calc(50% - 208px); top: 112px; }
  .masters-photo { opacity: 1; left: -22px; right: auto; top: 138px; width: 410px; height: 262px; }
  .masters-btn { display: none; }

  .all { padding-bottom: 32px; }
  .all .h-display { padding-bottom: 32px; }
  .all-grid { flex-direction: column; gap: 16px; }
  .all-grid > * { flex: none; }
  .all-col { gap: 16px; }
  .all-pair { gap: 16px; }
  .all-pair .tile { height: auto; aspect-ratio: 1; }
  .tile { padding: 16px 20px; }

  .quick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px 0; padding: 32px 16px; }
  .quick-item { width: auto; font-size: 14px; line-height: 20px; }
  .quick-icon { width: 64px; height: 64px; border-radius: 20px; }
  .quick-icon img { width: 32px; height: 32px; }

  .footer { border-radius: 40px 40px 0 0; padding: 48px 0 24px; }
  .footer-top { flex-direction: column; gap: 32px; }
  .footer-about { min-width: 0; max-width: none; }
  .footer-links { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-col:nth-child(3) { grid-column: 1 / -1; }
  .footer-apps { grid-column: 1 / -1; }
  .badges { width: 100%; }
  .badges a { flex: 1; }
  .badges a img { width: 100%; height: auto; }
  .qr { display: none; }
  .footer-bottom { flex-direction: column-reverse; align-items: flex-start; margin-top: 32px; }

  .crumbs { display: none; }
  .page-title { padding: 16px; text-align: left; }
  .contacts { flex-direction: column; align-items: stretch; gap: 32px; padding-bottom: 0; }
  .contact-card { width: auto; padding: 24px 20px 32px; border-radius: 32px; }
  .contact-logo { width: 56px; height: 56px; }
  .contact-name { font-size: 24px; line-height: 32px; letter-spacing: 0; }
  .contact-lead { font-size: 16px; line-height: 24px; }
  .contact-site { font-size: 16px; }
  .contact-socials { gap: 24px; }
  .info-title { font-size: 20px; line-height: 24px; }
  .info-block p, .info-link { font-size: 16px; line-height: 24px; }
  .info-row { flex-direction: column; gap: 0; }
  .info-row .info-block { padding-bottom: 48px; }
  .philo-wrap { padding-bottom: 48px; }
  .philo { height: 460px; padding: 24px 20px 48px; border-radius: 32px; }
  .philo-title { font-size: 20px; line-height: 30px; letter-spacing: 0; }
  .philo-text { font-size: 14px; line-height: 20px; opacity: .8; }
  .philo-ellipse-m { position: absolute; left: -64px; top: 77px; width: 486px; height: 486px; max-width: none; }
  .philo-photo { right: auto; left: calc(50% - 3px); transform: translateX(-50%); top: 135px; width: 291px; height: 435px; }
  .philo-actions { display: none; }

  .tabbar { position: fixed; left: 16px; right: 16px; bottom: max(16px, env(safe-area-inset-bottom)); z-index: 25; display: flex; padding: 16px; border-radius: 999px; background: rgba(255, 255, 255, .5); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); box-shadow: 0 8px 24px rgba(0, 0, 0, .12); }
  .tb { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 9px; line-height: 10px; font-weight: 500; color: var(--text-500); }
  .tb.is-active { color: var(--brand-600); }
  .toast { bottom: 112px; }
}

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

/* ============ Частые вопросы ============ */
.page-faq .crumbs { padding-bottom: 32px; }
.faq { display: flex; flex-direction: column; align-items: center; gap: 64px; padding: 96px 0; }
.faq-head { max-width: 768px; padding: 0 32px; text-align: center; display: flex; flex-direction: column; gap: 20px; }
.faq-title { margin: 0; font-size: 36px; line-height: 44px; font-weight: 600; letter-spacing: -0.72px; color: var(--text-900); }
.faq-sub { margin: 0; font-size: 20px; line-height: 30px; color: var(--text-600); }
.faq-list { width: 100%; max-width: 832px; padding: 0 32px; display: flex; flex-direction: column; gap: 32px; }
.faq-item + .faq-item { border-top: 1px solid #e5e5e5; padding-top: 24px; }
.faq-q { all: unset; box-sizing: border-box; cursor: pointer; -webkit-tap-highlight-color: transparent; user-select: none; width: 100%; display: flex; align-items: flex-start; gap: 16px; font-size: 20px; line-height: 30px; font-weight: 600; color: var(--text-900); }
.faq-q > span { flex: 1; transition: color .15s; }
.faq-q:hover > span { color: var(--brand-600); }
.faq-q:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 4px; border-radius: 4px; }
.faq-icon { flex: none; width: 24px; height: 24px; margin-top: 3px; }
.faq-minus, .faq-item.is-open .faq-plus { display: none; }
.faq-item.is-open .faq-minus { display: block; }
.faq-a p { margin: 4px 40px 0 0; font-size: 16px; line-height: 24px; color: var(--text-600); }
.faq > .container { width: 100%; }
.faq-cta { background: var(--bg-secondary, #f1f3f3); border-radius: 40px; padding: 32px 32px 40px; display: flex; flex-direction: column; align-items: center; gap: 32px; text-align: center; }
.faq-avatars { position: relative; width: 120px; height: 56px; flex: none; }
.faq-avatars .av { position: absolute; border-radius: 50%; border: 1px solid #fff; box-shadow: 0 0 0 .5px rgba(0,0,0,.16) inset; object-fit: cover; }
.faq-avatars .av-l { left: 0; top: 8px; width: 48px; height: 48px; }
.faq-avatars .av-r { left: 72px; top: 8px; width: 48px; height: 48px; }
.faq-avatars .av-c { left: 32px; top: 0; width: 56px; height: 56px; }
.faq-cta-title { margin: 0 0 -24px; font-size: 20px; line-height: 30px; font-weight: 600; color: var(--text-900); }
.faq-cta-text { margin: 0; font-size: 18px; line-height: 24px; color: var(--text-600); }
.faq-cta-btn { padding: 16px 24px; border-radius: 12px; font-size: 16px; line-height: 24px; }

@media (max-width: 860px) {
  .faq { gap: 48px; padding: 64px 0; }
  .faq-head { padding: 0 16px; gap: 16px; text-align: center; }
  .faq-title { font-size: 30px; line-height: 38px; letter-spacing: 0; }
  .faq-sub { font-size: 18px; line-height: 24px; }
  .faq-list { padding: 0 16px; }
  .faq-q { gap: 8px; }
  .faq-a p { margin-right: 0; }
  .faq-cta { border-radius: 32px; padding: 32px 20px; gap: 24px; }
  .faq-cta-title { margin-bottom: -16px; }
  .faq-cta-text { font-size: 16px; }
}

/* ============ Вход и профиль ============ */
.p-title { display: flex; flex-direction: column; align-items: center; padding: 40px 32px; }
.p-h1 { margin: 0 0 40px; font-size: 48px; line-height: 60px; font-weight: 700; letter-spacing: -0.96px; color: var(--text-900); text-align: center; }
.p-wrap { max-width: 1440px; margin: 0 auto; padding: 0 112px 96px; }
.p-tabs { position: relative; display: inline-flex; gap: 4px; padding: 4px; border-radius: 16px; background: var(--bg-tabs); max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.p-tabs::-webkit-scrollbar { display: none; }
.p-tab { flex: none; padding: 10px 14px; border: 0; border-radius: 12px; background: transparent; font: inherit; font-size: 14px; line-height: 20px; font-weight: 500; color: var(--text-500); cursor: pointer; white-space: nowrap; transition: color .15s, background .15s; }
.p-tab:hover { color: var(--text-700); }
.p-tab.is-active { background: #fff; color: var(--text-700); box-shadow: var(--shadow-sm); }
.p-tab:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; }


/* профиль: формы */
.pf-head { padding-bottom: 48px; }
.pf-h { margin: 0 0 2px; font-size: 24px; line-height: 32px; font-weight: 600; color: var(--text-900); }
.pf-sub { margin: 0; font-size: 14px; line-height: 20px; color: var(--text-600); }
.pf-form { display: flex; flex-direction: column; gap: 24px; }
.pf-divider { width: 100%; height: 1px; margin: 0; border: 0; background: var(--border); }
.pf-row { display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: flex-start; }
.pf-label { flex: 0 1 280px; min-width: 240px; max-width: 280px; margin: 0; font-size: 16px; line-height: 24px; font-weight: 600; color: var(--text-700); }
.pf-fields { display: flex; flex-wrap: wrap; gap: 16px 32px; }
.pf-fields > * { width: 360px; max-width: 100%; }
.pf-select { margin: 0; }
.select-field.pf-select .select-arrow { width: 20px; height: 20px; }
.pf-input-icon { position: relative; display: block; }
.pf-input-icon .t-input { padding-right: 48px; }
.pf-input-icon img { position: absolute; right: 12px; top: 16px; cursor: help; }
.pf-form-toggles .pf-row { gap: 16px 64px; }
.pf-form-toggles .pf-label { max-width: 360px; }
.pf-form-toggles .pf-label p { margin: 0; }
.pf-desc { font-weight: 400; color: var(--text-600); }
.pf-toggle { display: flex; align-items: flex-start; gap: 12px; width: 344px; max-width: 100%; cursor: pointer; font-size: 16px; line-height: 24px; font-weight: 500; color: var(--text-700); }
.pf-toggle input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.pf-switch { flex: none; position: relative; width: 56px; height: 32px; padding: 2px; border-radius: 999px; background: var(--bg-secondary); transition: background .2s; }
.pf-switch::after { content: ""; position: absolute; left: 2px; top: 2px; width: 28px; height: 28px; border-radius: 50%; background: #fff; box-shadow: var(--shadow-sm); transition: transform .2s; }
.pf-toggle input:checked + .pf-switch { background: var(--brand-600); }
.pf-toggle input:checked + .pf-switch::after { transform: translateX(24px); }
.pf-toggle input:focus-visible + .pf-switch { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--focus-ring); }
.pf-toggle-text { padding-top: 4px; }

/* профиль: сертификаты */
.gc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px 32px; }
.gc { display: flex; flex-direction: column; height: 249px; border-radius: 24px; background: var(--brand-600); color: #fff; overflow: hidden; }
.gc-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; padding: 20px 20px 32px; }
.gc-sum { margin: 0; font-size: 30px; line-height: 38px; font-weight: 700; white-space: nowrap; }
.gc-how { display: inline-flex; align-items: center; gap: 4px; padding: 0; border: 0; background: none; font: inherit; font-size: 14px; line-height: 20px; color: #fff; cursor: pointer; white-space: nowrap; }
.gc-how:hover { text-decoration: underline; }
.gc-strip { flex: 1; display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; margin: 0; padding: 16px 20px 24px; }
.gc-strip div { display: flex; flex-direction: column; gap: 4px; }
.gc-strip dt { font-size: 12px; letter-spacing: .6px; text-transform: uppercase; opacity: .56; }
.gc-strip dd { margin: 0; font-family: "Roboto Mono", ui-monospace, monospace; font-size: 16px; font-weight: 500; }
.gc-actions { display: flex; gap: 8px; padding: 0 8px 8px; }
.gc-btn { flex: 1; padding: 18px 16px; border: 1px solid rgba(255,255,255,.3); border-radius: 16px; background: rgba(255,255,255,.2); backdrop-filter: blur(12px); font: inherit; font-size: 14px; line-height: 20px; font-weight: 500; color: #fff; cursor: pointer; transition: background .15s; }
.gc-btn:hover { background: rgba(255,255,255,.3); }

/* профиль: визиты */
.vc-list { display: flex; flex-direction: column; gap: 32px; }
.vc { display: flex; align-items: stretch; }
.vc-card { position: relative; z-index: 2; flex: 1; min-width: 0; margin-right: -32px; padding: 32px; border-left: 4px solid var(--brand-600); border-radius: 32px; background: #fff; box-shadow: var(--shadow-lg); }
.vc-date { margin: 0 0 16px; font-size: 24px; line-height: 32px; font-weight: 600; color: var(--text-700); }
.vc-meta, .vc-items { list-style: none; margin: 0; padding: 0; }
.vc-meta { padding-bottom: 16px; margin-bottom: 32px; border-bottom: 1px solid var(--border); }
.vc-meta li { position: relative; padding: 0 0 8px 28px; font-size: 16px; line-height: 24px; color: var(--text-500); }
.vc-meta b { font-weight: 500; color: var(--text-600); }
.vc-items li { padding-bottom: 8px; font-size: 16px; line-height: 24px; color: var(--text-600); }
.vc-items span { color: var(--brand-600); }
.vc-side { display: flex; align-items: center; padding: 16px 32px 16px 64px; border-radius: 0 32px 32px 0; background: var(--bg-secondary); }
.vc-btn { padding: 12px 20px; border-radius: 12px; font-size: 16px; line-height: 24px; }

@media (max-width: 1100px) {
  .p-wrap { padding: 0 32px 96px; }
  .gc-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .p-title { padding: 24px 16px 32px; }
  .p-h1 { margin-bottom: 24px; font-size: 30px; line-height: 38px; letter-spacing: 0; }
  .p-tabs { align-self: stretch; }
  .p-wrap { padding: 0 16px 64px; }
  .pf-head { padding-bottom: 32px; }
  .pf-label, .pf-form-toggles .pf-label { max-width: none; min-width: 0; flex-basis: 100%; }
  .pf-fields { width: 100%; gap: 12px; }
  .pf-fields > * { width: 100%; }
  .pf-toggle { width: 100%; }
  .gc-grid { grid-template-columns: 1fr; gap: 16px; }
  .vc { flex-direction: column; }
  .vc-card { margin: 0 0 -32px; padding: 24px 20px; }
  .vc-side { padding: 48px 20px 16px; border-radius: 0 0 32px 32px; }
  .vc-btn { width: 100%; }
}
.vc-meta li img { position: absolute; left: 0; top: 0; }

/* ============ Окно входа ============ */
.lm { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; padding: 32px; }
.lm[hidden] { display: none; }
.lm-overlay { position: absolute; inset: 0; background: rgba(10,10,10,.7); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.lm-box { position: relative; width: 100%; max-width: 400px; border-radius: 24px; background: #fff; box-shadow: 0 20px 24px -4px rgba(0,0,0,.08), -1px 8px 8px -4px rgba(0,0,0,.03), 0 -3px 3px -1.5px rgba(0,0,0,.04); animation: lm-in .18s ease-out; }
@keyframes lm-in { from { opacity: 0; transform: translateY(8px) scale(.98); } }
.lm-top { display: none; }
.lm-close { position: absolute; top: 16px; right: 16px; display: flex; padding: 10px; border: 0; border-radius: 12px; background: var(--bg-secondary); cursor: pointer; }
.lm-close:hover { background: #e7eaea; }
.lm-step[hidden] { display: none; }
.lm-head { padding: 24px 24px 20px; }
.lm-title { width: 296px; max-width: calc(100% - 48px); margin: 0 0 4px; font-size: 24px; line-height: 32px; font-weight: 600; color: var(--text-900); }
.lm-text { width: 296px; max-width: 100%; margin: 0; font-size: 14px; line-height: 20px; color: var(--text-600); }
.lm-body { padding: 0 24px 16px; }
.lm-field { position: relative; display: flex; align-items: center; gap: 8px; min-height: 56px; padding: 4px 4px 4px 16px; border: 1px solid transparent; border-radius: 12px; background: var(--bg-secondary); transition: background .15s, border-color .15s; }
.lm-field:focus-within { border-color: var(--brand-600); background: #fff; }
.lm-field.is-error { background: #fef2f2; border-color: transparent; }
.lm-field.is-error:focus-within { border-color: #dc2626; }
.lm-field input { flex: 1; min-width: 0; height: 46px; padding: 0; border: 0; background: none; font: inherit; font-size: 16px; line-height: 24px; color: var(--text-900); outline: none; }
.lm-field label { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); font-size: 16px; line-height: 24px; color: var(--text-500); pointer-events: none; transition: all .15s; }
.lm-field input:focus + label, .lm-field input:not(:placeholder-shown) + label { top: 6px; transform: none; font-size: 13px; line-height: 20px; }
.lm-field input:focus, .lm-field input:not(:placeholder-shown) { padding-top: 18px; height: 46px; }
.lm-field input::placeholder { color: transparent; }
.lm-field input:focus::placeholder { color: rgba(23,23,23,.35); }
.lm-go { flex: none; display: flex; padding: 12px; border: 0; border-radius: 8px; background: var(--brand-600); box-shadow: var(--shadow-skeu); cursor: pointer; }
.lm-go:hover { background: var(--brand-700); }
.lm-error { margin: 6px 0 0; font-size: 14px; line-height: 20px; color: #dc2626; }
.lm-error:empty { display: none; }
.lm-submit { display: none; }
.lm-policy { margin: 0; padding: 8px 24px 24px; text-align: center; font-size: 12px; line-height: 20px; color: rgba(115,115,115,.5); }
.lm-policy a { color: rgba(123,97,255,.5); text-decoration: underline; }
.lm-policy a:hover { color: var(--brand-600); }
.lm-resend { margin: 0; padding: 0 16px 24px; text-align: center; font-size: 14px; line-height: 20px; color: var(--text-500); }
.lm-resend button { padding: 0; border: 0; background: none; font: inherit; font-weight: 500; color: var(--brand-700); cursor: pointer; }
.lm-resend button:hover { text-decoration: underline; }
.lm-hint { margin: -12px 0 0; padding: 0 24px 20px; text-align: center; font-size: 12px; line-height: 16px; color: var(--text-500); }
.lm .m-title { display: none; }
html.lm-open { overflow: hidden; }

@media (max-width: 860px) {
  .lm { padding: 0; background: #fff; }
  .lm-overlay { display: none; }
  .lm-box { display: flex; flex-direction: column; max-width: none; height: 100%; border-radius: 0; box-shadow: none; animation: none; overflow-y: auto; }
  .lm-top { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px 0; }
  .lm-top .lm-close { position: static; }
  .lm-box > .lm-close { display: none; }
  .lm-step { flex: 1; display: flex; flex-direction: column; justify-content: center; }
  .lm .d-title { display: none; }
  .lm .m-title { display: inline; }
  .lm-head { padding: 0 16px 24px; text-align: center; }
  .lm-title { width: auto; max-width: none; margin: 0 0 8px; font-size: 20px; line-height: 30px; }
  .lm-text { width: auto; }
  .lm-step[data-step="phone"] .lm-text { display: none; }
  .lm-step[data-step="phone"] .lm-head { padding-bottom: 8px; }
  .lm-body { padding: 0 16px 16px; }
  .lm-go { display: none; }
  .lm-field { padding-right: 12px; }
  .lm-submit { display: flex; width: 100%; padding: 16px 24px; border-radius: 12px; font-size: 16px; line-height: 24px; }
  .lm-policy { margin-top: auto; padding: 16px 16px 32px; }
}
@media (min-width: 861px) { .lm-box.is-code .lm-policy { display: none; } }
@media (max-width: 860px) { .lm-box.is-code .lm-policy { display: block; } }
@media (min-width: 861px) { .lm-actions { display: none; } }

/* ============ Мастера ============ */
.ms-title { margin: 0; padding: 32px 32px 56px; text-align: center; font-size: 48px; line-height: 60px; font-weight: 700; letter-spacing: -0.96px; color: var(--text-900); }
.tm-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px 32px; }
.tm { position: relative; display: block; aspect-ratio: 360 / 480; border-radius: 32px; overflow: hidden; color: #fff; background: #2a1f3d; }
.tm[hidden] { display: none; }
.tm-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.tm:hover .tm-photo { transform: scale(1.04); }
.tm:focus-visible { outline: 3px solid var(--focus-ring); outline-offset: 3px; }
.tm-panel { position: absolute; left: 0; right: 0; bottom: 0; padding: 96px 16px 16px; background: linear-gradient(to bottom, rgba(0,0,0,0), rgba(0,0,0,.4)); }
.tm-card { display: flex; flex-direction: column; padding: 20px 20px 24px; border: 1px solid rgba(255,255,255,.3); border-radius: 16px; background: rgba(255,255,255,.3); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.tm-head { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 8px; }
.tm-name { flex: 1; min-width: 0; font-size: 20px; line-height: 30px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tm-head img { flex: none; margin-top: 3px; transition: transform .2s; }
.tm:hover .tm-head img { transform: translate(2px, -2px); }
.tm-role { font-size: 16px; line-height: 24px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-bottom: 2px; }
.tm-desc { font-size: 16px; line-height: 24px; height: 48px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.ms-more { display: flex; justify-content: center; padding: 48px 0 96px; }
.ms-more-btn { display: inline-flex; align-items: center; gap: 6px; min-height: 48px; padding: 16px 24px; border: 0; border-radius: 12px; background: var(--bg-secondary); font: inherit; font-size: 16px; line-height: 24px; font-weight: 500; color: var(--text-700); cursor: pointer; }
.ms-more-btn:hover { background: #e7eaea; }
.ms-more-btn.is-loading img { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* баннер сертификатов */
.gift-wrap { padding-bottom: 96px; }
.gift { position: relative; display: flex; justify-content: flex-end; height: 360px; padding: 40px 56px 48px; border-radius: 40px; overflow: hidden; background: linear-gradient(to top, #b8aaff, #7c62ff); }
.gift-ellipse { position: absolute; left: -67px; top: -83px; width: 637px; height: 637px; max-width: none; pointer-events: none; }
.gift-photo { position: absolute; left: -40px; top: 17px; width: 549px; height: 412px; max-width: none; object-fit: cover; }
.gift-body { position: relative; z-index: 1; display: flex; flex-direction: column; width: 600px; max-width: 100%; height: 280px; }
.gift-title { margin: 0; padding-bottom: 16px; font-size: 36px; line-height: 44px; font-weight: 600; letter-spacing: -0.72px; color: #fff; }
.gift-text { flex: 1; margin: 0; font-size: 18px; line-height: 24px; color: #fff; }
.gift-actions, .gift-actions-m { display: flex; gap: 16px; }
.gift-btn { padding: 16px 24px; border-radius: 12px; font-size: 16px; line-height: 24px; }
.gift-btn-alt { color: var(--brand-600); }
.gift-btn-gray { background: var(--bg-secondary); color: var(--text-700); }

/* карточка мастера */
.mp-head { padding-top: 32px; padding-bottom: 48px; }
.mp-cover { padding: 4px 4px 0; margin-bottom: -40px; }
.mp-cover img { display: block; width: 100%; height: 240px; object-fit: cover; object-position: center 85%; border-radius: 32px; }
.mp-row { position: relative; display: flex; gap: 20px; align-items: flex-start; padding: 0 32px; }
.mp-avatar { position: relative; flex: none; width: 160px; height: 160px; padding: 6px; border: 1px solid rgba(0,0,0,.1); border-radius: 50%; background: #fff; }
.mp-avatar-in { display: block; width: 100%; height: 100%; border-radius: 50%; overflow: hidden; border: 1.5px solid #fff; box-shadow: 0 0 0 .75px rgba(0,0,0,.16), 0 4px 32px rgba(0,0,0,.14); }
.mp-avatar-in img { width: 100%; height: 100%; object-fit: cover; }
.mp-verified { position: absolute; right: 8px; bottom: 8px; width: 32px; height: 32px; }
.mp-v-badge { position: absolute; inset: -14.2%; width: 128.4%; height: 128.4%; max-width: none; transform: rotate(22.5deg); }
.mp-v-check { position: absolute; left: 26.56%; top: 29.68%; width: 43.76%; height: 40.64%; }
.mp-info { flex: 1; min-width: 0; display: flex; flex-wrap: wrap; gap: 20px 16px; align-items: flex-start; padding-top: 64px; }
.mp-names { flex: 1; min-width: 240px; }
.mp-name { margin: 0 0 2px; font-size: 20px; line-height: 30px; font-weight: 600; color: var(--text-900); }
.mp-role { margin: 0; font-size: 16px; line-height: 24px; color: var(--text-600); }
.mp-actions { display: flex; gap: 12px; }
.mp-btn { padding: 12px 20px; border-radius: 12px; }
.mp-btn-gray { background: var(--bg-secondary); color: var(--text-700); }
.mp-btn-gray:hover { background: #e7eaea; }
.mp-body { display: flex; gap: 96px; align-items: flex-start; padding-bottom: 96px; }
.mp-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.mp-strong { padding-bottom: 24px; border-bottom: 1px solid var(--border); }
.mp-h { margin: 0 0 8px; font-size: 24px; line-height: 32px; font-weight: 600; color: var(--text-900); }
.mp-sub { margin: 0; font-size: 14px; line-height: 20px; color: var(--text-600); }
.mp-text { margin: 0; font-size: 16px; line-height: 24px; color: var(--text-600); }
.mp-side { flex: 1; max-width: 360px; padding: 24px; border: 1px solid var(--border); border-radius: 24px; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.05); }
.mp-side-label { margin: 0 0 8px; font-size: 14px; line-height: 20px; font-weight: 500; color: var(--text-600); }
.mp-side-value { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 16px; line-height: 24px; font-weight: 500; color: var(--text-700); }

@media (max-width: 1100px) {
  .tm-grid { grid-template-columns: repeat(2, 1fr); }
  .gift-photo { left: -120px; }
}
@media (max-width: 860px) {
  .ms-title { padding: 16px 16px 16px; font-size: 24px; line-height: 32px; letter-spacing: 0; }
  .tm-grid { grid-template-columns: 1fr; gap: 32px; }
  .tm { aspect-ratio: auto; height: 400px; }
  .ms-more { padding: 32px 0 48px; }
  .gift-wrap { padding-bottom: 48px; }
  .gift { display: block; height: 460px; padding: 16px 20px 48px; border-radius: 32px; }
  .gift-ellipse-m { position: absolute; left: 50%; top: 45px; width: 520px; height: 520px; max-width: none; transform: translateX(-50%); pointer-events: none; }
  .gift-photo-m { position: absolute; left: -87px; top: 141px; width: 531px; height: 354px; max-width: none; object-fit: cover; object-position: bottom; }
  .gift-body { width: auto; height: auto; }
  .gift-title { font-size: 18px; line-height: 24px; letter-spacing: 0; }
  .gift-text { font-size: 14px; line-height: 20px; opacity: .8; }
  .gift-actions-m { flex-direction: column; padding-top: 16px; }
  .gift-actions-m.m-only { display: flex !important; }
  .gift-btn { width: 100%; }
  .mp-head { padding-top: 16px; padding-bottom: 32px; }
  .mp-cover { padding: 0 4px; margin-bottom: -48px; }
  .mp-cover img { height: 160px; border-radius: 20px; }
  .mp-row { flex-direction: column; align-items: center; gap: 16px; padding: 0 16px; text-align: center; }
  .mp-avatar { width: 96px; height: 96px; padding: 4px; }
  .mp-verified { right: 4px; bottom: 4px; width: 24px; height: 24px; }
  .mp-info { flex-direction: column; align-items: stretch; width: 100%; padding-top: 0; gap: 16px; }
  .mp-names { min-width: 0; }
  .mp-actions .mp-btn { flex: 1; }
  .mp-body { flex-direction: column; gap: 32px; padding-bottom: 48px; }
  .mp-side { width: 100%; max-width: none; }
}
@media (max-width: 860px) { .tm-grid:not(.is-all) .tm:nth-child(n+6) { display: none; } }

/* правка блока баланс/профиль по макету 13485:510656 */
@media (min-width: 861px) {
  .balance { display: flex; flex-direction: column; min-height: 440px; }
  .balance .chips { flex: 1; align-content: flex-start; }
  .profile { min-height: 440px; }
}
.balance .form-error:empty { display: none; }
.balance .form-error { padding-top: 8px; }

/* ============ Статьи ============ */
.ac-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; padding-bottom: 32px; }
.ac-grid-top { padding-bottom: 96px; }
.ac-grid-3 { grid-template-columns: repeat(3, 1fr); padding: 0; }
.ac { display: flex; flex-direction: column; min-height: 320px; max-height: 320px; padding: 40px; border-radius: 40px; background: #fff; box-shadow: var(--shadow-lg); color: inherit; transition: transform .2s, box-shadow .2s; }
.ac[hidden] { display: none; }
.ac:hover { transform: translateY(-2px); box-shadow: 0 16px 24px -6px rgba(0,0,0,.1), 0 4px 6px -2px rgba(0,0,0,.03); }
.ac:hover .ac-title { color: var(--brand-600); }
.ac:focus-visible { outline: 3px solid var(--focus-ring); outline-offset: 3px; }
.ac-title { margin-bottom: 16px; font-size: 30px; line-height: 38px; font-weight: 600; color: var(--text-700); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; transition: color .15s; }
.ac-text { flex: 1; margin-bottom: 32px; font-size: 16px; line-height: 24px; color: var(--text-600); display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.ac-date { font-size: 14px; line-height: 20px; color: var(--text-600); }
.ac-grid-3 .ac { min-height: 260px; max-height: none; padding: 32px; }
.ac-grid-3 .ac-title { font-size: 20px; line-height: 30px; }
.ac-grid-3 .ac-text { -webkit-line-clamp: 3; }
.ac-more { padding-top: 16px; }

.art { max-width: 864px; padding-top: 32px; padding-bottom: 32px; }
.art-title { margin: 0 0 16px; font-size: 36px; line-height: 44px; font-weight: 600; letter-spacing: -0.72px; color: var(--text-900); }
.art-date { margin: 0 0 32px; font-size: 16px; line-height: 24px; font-weight: 500; color: var(--text-600); opacity: .8; }
.art-img { display: block; width: 100%; aspect-ratio: 800 / 400; object-fit: cover; object-position: right center; border-radius: 40px; margin-bottom: 32px; }
.art-body p { margin: 0 0 24px; font-size: 18px; line-height: 28px; color: var(--text-600); }
.art-share { display: inline-flex; align-items: center; gap: 4px; padding: 0; border: 0; background: none; font: inherit; font-size: 16px; line-height: 24px; font-weight: 500; color: var(--text-600); cursor: pointer; }
.art-share:hover { color: var(--brand-600); }
.art-more { padding-bottom: 96px; }
.art-more-title { margin: 0 0 32px; font-size: 36px; line-height: 44px; font-weight: 600; letter-spacing: -0.72px; color: var(--text-900); text-align: center; }

@media (max-width: 1100px) { .ac-grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 860px) {
  .ac-grid, .ac-grid-3 { grid-template-columns: 1fr; gap: 16px; padding-bottom: 16px; }
  .ac-grid-top { padding-bottom: 32px; }
  .ac, .ac-grid-3 .ac { min-height: 0; max-height: none; padding: 24px; border-radius: 32px; }
  .ac-title, .ac-grid-3 .ac-title { font-size: 18px; line-height: 24px; }
  .ac-text, .ac-grid-3 .ac-text { margin-bottom: 32px; font-size: 14px; line-height: 20px; -webkit-line-clamp: 3; }
  .ac-date { font-size: 13px; }
  .page-articles .ms-title { text-align: left; }
  .art { padding-top: 16px; padding-bottom: 32px; }
  .art-title { margin-bottom: 16px; font-size: 20px; line-height: 30px; letter-spacing: 0; }
  .art-date { margin-bottom: 16px; }
  .art-img { aspect-ratio: 343 / 220; border-radius: 32px; margin-bottom: 16px; }
  .art-body { padding-top: 8px; }
  .art-body p { font-size: 14px; line-height: 20px; }
  .art-more { padding-bottom: 16px; }
  .art-more-title { margin-bottom: 16px; font-size: 24px; line-height: 32px; letter-spacing: 0; }
}

/* ============ Акции и скидки ============ */
.pr-city { color: #7b61ff; white-space: nowrap; }
.pr-hero-wrap { padding-bottom: 48px; }
.pr-hero { position: relative; display: flex; flex-direction: column; height: 375px; padding: 32px; border-radius: 40px; overflow: hidden; color: #fff; background: #6a52d6; }
.pr-hero picture, .pr-hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; }
.pr-hero-bg { object-fit: cover; object-position: right center; }
.pr-hero-title { position: relative; font-size: 36px; line-height: 44px; font-weight: 600; letter-spacing: -0.72px; }
.pr-hero-text { position: relative; margin-top: 16px; font-size: 18px; line-height: 24px; font-weight: 500; opacity: .8; }
.pr-hero-btn { position: absolute; left: 32px; top: 287px; padding: 16px 32px; border-radius: 12px; background: var(--bg-secondary); font-size: 16px; line-height: 24px; font-weight: 500; color: #404040; transition: background .15s; }
.pr-hero:hover .pr-hero-btn { background: #fff; }
.pr-hero:focus-visible, .pc:focus-visible { outline: 3px solid var(--focus-ring); outline-offset: 3px; }

.pc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px 32px; }
.pc { position: relative; display: flex; flex-direction: column; gap: 16px; height: 392px; border-radius: 24px; overflow: hidden; background: #fff; box-shadow: 0 4px 6px -1px rgba(0,0,0,.1), 0 2px 4px -2px rgba(0,0,0,.06); color: inherit; transition: transform .2s, box-shadow .2s; }
.pc[hidden] { display: none; }
.pc:hover { transform: translateY(-2px); box-shadow: 0 12px 16px -4px rgba(0,0,0,.08), 0 4px 6px -2px rgba(0,0,0,.03); }
.pc-img { display: block; flex: none; width: 100%; height: 220px; object-fit: cover; border-radius: 24px; }
.pc-body { display: flex; flex-direction: column; padding: 0 16px 32px; }
.pc-title { min-height: 48px; margin-bottom: 16px; font-size: 18px; line-height: 24px; font-weight: 600; color: #171717; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; transition: color .15s; }
.pc:hover .pc-title { color: var(--brand-600); }
.pc-text { height: 60px; margin-right: 88px; font-size: 14px; line-height: 20px; color: #525252; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.pc-arrow { position: absolute; right: 16px; bottom: 16px; display: flex; padding: 16px; border-radius: 12px; background: var(--bg-secondary); }
.pc-arrow img { transition: transform .2s; }
.pc:hover .pc-arrow img { transform: translateX(2px); }

@media (max-width: 1100px) { .pc-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 860px) {
  .page-promos .ms-title { text-align: left; font-weight: 600; }
  .pr-hero-wrap { padding-bottom: 32px; }
  .pr-hero { height: 400px; padding: 16px 20px; border-radius: 32px; }
  .pr-hero-title { font-size: 16px; line-height: 24px; letter-spacing: 0; }
  .pr-hero-text { margin-top: 8px; font-size: 14px; line-height: 20px; font-weight: 400; }
  .pr-hero-btn { display: none; }
  .pc-grid { grid-template-columns: 1fr; gap: 32px; }
  .pc { height: auto; }
  .pc-img { height: 200px; }
  .pc-title { margin: 0 72px 0 0; -webkit-line-clamp: 3; }
  .pc-text { display: none; }
  .pc-grid:not(.is-all) .pc:nth-child(n+6) { display: none; }
}

/* ============ Выбор города ============ */
.cm-box { max-width: 860px; }
.cm-mtop { display: none; }
.cm-head { padding: 24px 24px 32px; }
.cm-title { margin: 0; font-size: 24px; line-height: 32px; font-weight: 600; color: var(--text-900); }
.cm-cols { display: flex; padding: 0 24px 32px; }
.cm-col { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; padding-right: 32px; }
.cm-col:last-child { padding-right: 0; }
.cm-col + .cm-col { padding-left: 16px; border-left: 1px solid #e5e5e5; }
.cm-item { display: flex; align-items: center; justify-content: space-between; gap: 4px; width: 100%; padding: 10px 16px; border: 0; border-radius: 12px; background: none; font: inherit; font-size: 14px; line-height: 20px; font-weight: 500; color: #525252; text-align: left; cursor: pointer; transition: background .15s, color .15s; }
.cm-item:hover { background: #f5f4f6; color: #404040; }
.cm-item:focus-visible { outline: 3px solid var(--focus-ring); outline-offset: -3px; }
.cm-item.is-current, .cm-item.is-current:hover { color: #7b61ff; }
.cm-item img { flex: none; }
.cm-item .m-ic { display: none; }
@media (max-width: 860px) {
  .cm .cm-box { overflow-y: auto; }
  .cm .lm-close, .cm-head { display: none; }
  .cm-mtop { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; flex: none; padding: 8px 0 16px; background: #fff; }
  .cm-mclose { display: flex; margin-left: 8px; padding: 8px; border: 0; border-radius: 10px; background: none; cursor: pointer; }
  .cm-mclose:active { background: #f5f4f6; }
  .cm-mtitle { flex: 1; padding: 8px 13px; text-align: center; font-size: 16px; line-height: 24px; font-weight: 600; color: var(--text-900); }
  .cm-mside { width: 48px; }
  .cm-cols { display: block; padding: 0 0 24px; }
  .cm-col, .cm-col + .cm-col { padding: 0; border: 0; }
  .cm-item { min-height: 48px; padding: 12px 16px; border-radius: 0; font-size: 16px; line-height: 24px; font-weight: 400; color: var(--text-900); }
  .cm-item:hover { background: none; color: var(--text-900); }
  .cm-item:active { background: #f5f4f6; }
  .cm-item .d-ic { display: none; }
  .cm-item .m-ic { display: block; }
}

/* ============ Каталог и онлайн-запись ============ */
.aph { display: none; }
.cb-head { display: flex; flex-direction: column; align-items: center; padding: 40px 32px; }
.cb-title { margin: 0; padding-bottom: 40px; font-size: 48px; line-height: 60px; font-weight: 700; letter-spacing: -0.96px; color: var(--text-900); }
.cb-toggle { display: flex; gap: 12px; justify-content: center; }
.cb-tg { display: flex; align-items: center; justify-content: center; width: 165px; padding: 10px 16px; border: 2px solid #e5e5e5; border-radius: 999px; font-size: 16px; line-height: 24px; font-weight: 500; color: var(--text-900); transition: border-color .15s; }
.cb-tg:hover { border-color: #c9c0ff; }
.cb-tg[aria-current="page"] { border-color: #7b61ff; }

.cat-wrap { max-width: 1120px; margin: 0 auto; }
.salon-bar { position: relative; display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 48px; padding: 19px; border: 1px solid #e5e5e5; border-radius: 20px; }
.sb-text { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.sb-city { display: flex; gap: 12px; margin: 0; font-size: 24px; line-height: 32px; font-weight: 700; color: var(--text-900); }
.sb-city-name { padding: 0; border: 0; background: none; font: inherit; line-height: 32px; color: #6952d9; cursor: pointer; }
.sb-city-name:hover { text-decoration: underline; text-underline-offset: 4px; }
.sb-salon { margin: 0; font-size: 16px; line-height: 24px; color: #737373; }
.sb-salon.is-set { max-width: 444px; color: #737373; font-weight: 400; }
.sb-actions { display: flex; gap: 16px; align-items: center; }
.sb-info-wrap { position: relative; display: flex; }
.sb-info { display: flex; padding: 16px; border: 0; border-radius: 12px; background: #e3e7e8; cursor: pointer; }
.sb-tip { position: absolute; top: calc(100% + 4px); right: 32px; z-index: 15; width: 144px; padding: 12px 16px; border-radius: 12px; background: #525252; font-size: 13px; line-height: 16px; color: #fff; opacity: 0; visibility: hidden; transform: translateY(-4px); transition: opacity .15s, transform .15s, visibility .15s; pointer-events: none; }
.sb-tip img { position: absolute; right: 14px; top: -6px; transform: rotate(90deg); }
.sb-info:hover + .sb-tip, .sb-info:focus-visible + .sb-tip, .sb-tip.is-show { opacity: 1; visibility: visible; transform: none; }
.sb-btn { padding: 16px 32px; border: 0; border-radius: 12px; background: var(--bg-secondary); font: inherit; font-size: 16px; line-height: 24px; font-weight: 500; color: #7b61ff; cursor: pointer; white-space: nowrap; }
.sb-btn:hover, .sb-info:hover { background: #e3e7e8; }
.sb-info:hover { background: #d9dedf; }

.dd { position: absolute; z-index: 30; display: flex; flex-direction: column; gap: 2px; width: 220px; padding: 6px; border-radius: 12px; background: #fff; box-shadow: 0 12px 16px -4px rgba(0,0,0,.08), 0 4px 6px -2px rgba(0,0,0,.03), -1px -1px 2px -1px rgba(0,0,0,.04); }
.dd[hidden] { display: none; }
.dd-item { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; padding: 12px 8px 12px 12px; border: 0; border-radius: 8px; background: none; font: inherit; font-size: 16px; line-height: 24px; color: #404040; text-align: left; cursor: pointer; }
.dd-item:hover, .dd-item:focus-visible { background: var(--bg-secondary); outline: none; }
.dd-item img { flex: none; visibility: hidden; }
.dd-item.is-on img { visibility: visible; }
.dd-item small { display: block; font-size: 13px; line-height: 16px; color: #737373; }
.sort-dd { top: calc(100% + 6px); left: 0; }
.salon-dd { top: calc(100% - 12px); right: 20px; width: 300px; }

.cat-filters { display: flex; flex-wrap: wrap; gap: 8px; padding-bottom: 32px; }
.cf-icon { display: flex; padding: 0; border: 0; border-radius: 50%; background: none; cursor: pointer; }
.cf-sort-wrap { position: relative; display: flex; }
.chip-f { display: inline-flex; align-items: center; gap: 4px; padding: 10px 18px; border: 0; border-radius: 999px; background: var(--bg-secondary); font: inherit; font-size: 14px; line-height: 20px; font-weight: 500; color: #404040; white-space: nowrap; cursor: pointer; transition: background .15s, color .15s; }
#sortBtn { gap: 0; padding: 10px 16px 10px 18px; }
#sortLabel { margin-right: 2px; }
.chip-f:hover { background: #e3e7e8; }
.chip-f.is-on { background: #7b61ff; color: #fff; box-shadow: inset 0 0 0 1px rgba(0,0,0,.2), 0 1px 2px rgba(0,0,0,.05); }
#cfMore[aria-expanded="true"] img { transform: rotate(180deg); }

.cat-sec { padding-bottom: 0; }
.cat-sec[hidden] { display: none; }
.cat-h { margin: 0; padding-bottom: 32px; font-size: 30px; line-height: 38px; font-weight: 700; color: var(--text-900); }
.sc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px 32px; padding-bottom: 48px; }
.sc { position: relative; display: flex; flex-direction: column; height: 500px; border-radius: 20px; background: #fff; box-shadow: 0 12px 16px -4px rgba(0,0,0,.08), 0 4px 6px -2px rgba(0,0,0,.03), -1px -1px 2px -1px rgba(0,0,0,.04); color: inherit; }
.sc[hidden] { display: none; }
.sc-img { position: relative; flex: none; aspect-ratio: 352 / 240; border-radius: 20px; overflow: hidden; }
.sc-img img { width: 100%; height: 100%; object-fit: cover; }
.sc-time { position: absolute; left: 0; bottom: 0; padding: 6px 16px 8px; border-top-right-radius: 20px; background: rgba(27,31,59,.56); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); font-size: 16px; line-height: 24px; font-weight: 600; color: #fff; }
.sc-meta { display: flex; gap: 5px; margin: 0; padding: 16px 16px 16px; overflow: hidden; white-space: nowrap; font-size: 13px; line-height: 20px; font-weight: 500; color: #737373; }
.sc-name { min-height: 48px; max-height: 48px; margin: 0 16px 16px; font-size: 18px; line-height: 24px; font-weight: 600; color: var(--text-900); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sc-price { margin: 0; padding: 0 16px 40px; font-size: 24px; line-height: 32px; font-weight: 700; color: #171717; opacity: .9; }
.sc-actions { display: flex; gap: 12px; margin-top: auto; padding: 0 16px 16px; }
.sc-btn { flex: 1 1 0; min-width: 0; height: 56px; padding: 0 16px; border: 0; font: inherit; font-weight: 500; cursor: pointer; }
.sc-btn-gray { background: var(--bg-secondary); color: #404040; }
.sc-btn-gray:hover { background: #e3e7e8; }
.sc-promo { justify-content: flex-end; overflow: hidden; }
.sc-promo > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.sc-promo-body { position: relative; display: flex; flex-direction: column; height: 208px; padding: 0 16px 16px; }
.sc-promo-title { padding-bottom: 8px; font-size: 18px; line-height: 24px; font-weight: 600; color: #fff; }
.sc-promo-text { flex: 1; font-size: 16px; line-height: 24px; color: #fff; opacity: .9; }
.sc-promo .sc-btn { flex: none; width: 100%; }
.sc-promo:hover .sc-btn-gray { background: #fff; }
.cat-empty { margin: 0; padding: 0 0 48px; color: var(--text-600); }
.cat-more { display: flex; justify-content: center; padding-bottom: 96px; }
.cat-more[hidden] { display: none; }
.cat-more-btn { display: flex; align-items: center; justify-content: center; width: 186px; height: 56px; padding: 0 32px; border: 0; border-radius: 999px; background: var(--bg-secondary); font: inherit; font-size: 16px; line-height: 24px; font-weight: 500; color: #404040; cursor: pointer; }
.cat-more-btn:hover { background: #e3e7e8; }
.cat-more-btn img { display: none; animation: spin 1s linear infinite; }
.cat-more-btn.is-loading span { display: none; }
.cat-more-btn.is-loading img { display: block; }
.salon-fab { display: none; }

/* онлайн-запись */
.choose-page { padding-bottom: 96px; }
.choose-page .choose-main { padding-bottom: 32px; }
.choose-page .choose-side { width: 457px; }
.choose-page .choose-hint { min-height: 106px; }
.choose-page .path { background: linear-gradient(180deg, #7b61ff, #9581ff) border-box; border-color: transparent; }
.choose-page .path:hover { border-color: #7b61ff; }
.choose-page .path-label { left: 30px; font-family: 'Oswald', 'Bebas Neue', 'Arial Narrow', sans-serif; font-size: 40px; line-height: 44px; font-weight: 400; letter-spacing: 1.6px; text-transform: uppercase; }
.choose-page .path[data-path="date"] .path-img { right: 5px; width: 180px; height: 147px; object-position: 25% 50%; }
.choose-page .path[data-path="services"] .path-img { right: 7px; width: 176px; height: 145px; }

@media (max-width: 1100px) { .cat-wrap { padding: 0 32px; } .sc-grid { grid-template-columns: repeat(2, 1fr); } .choose-page .choose-side { width: 320px; } }
@media (max-width: 860px) {
  body.app-page { padding-bottom: 96px; }
  body.app-page .site-header, body.app-page .tabbar, body.app-page .footer { display: none; }
  .aph, .aph.m-only { display: flex !important; flex-direction: column; position: sticky; top: 0; z-index: 30; padding-top: 8px; background: #fff; }
  .aph-row { display: flex; align-items: center; padding-bottom: 16px; }
  .aph-btn { flex: none; display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; margin: 0 8px; padding: 0; border: 0; border-radius: 10px; background: none; cursor: pointer; }
  .aph-btn:active, .aph-mid:active { background: #f5f4f6; }
  .aph-mid { flex: 1; min-width: 0; height: 40px; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 0 4px; border: 0; border-radius: 10px; background: none; font: inherit; cursor: pointer; }
  .aph-city { font-size: 13px; line-height: 20px; color: #737373; }
  .aph-salon { display: flex; align-items: center; gap: 2px; max-width: 100%; font-size: 13px; line-height: 20px; font-weight: 600; color: var(--text-900); }
  .aph-salon span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .cb-head { padding: 0 16px 16px; }
  .cb-toggle { width: 100%; }
  .cb-tg { flex: 1 1 0; width: auto; }
  .page-catalog .cb-head { position: static; }
  .cat-wrap { padding: 0; }
  .cat-filters { padding: 0 16px 32px; }
  .chip-f { padding: 8px 14px; }
  .chip-f.m-only { display: inline-flex !important; }
  #sortBtn { padding: 8px 12px 8px 14px; }
  .chip-f.is-on { box-shadow: none; }
  .cat-filters:not(.is-open) .cf-extra { display: none !important; }
  .cat-banner, .cat-banner.m-only { position: relative; display: block !important; height: 166px; margin: 0 16px 32px; padding: 16px; border: 1px solid rgba(0,0,0,.08); border-radius: 24px; overflow: hidden; color: #fff; }
  .cat-banner > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
  .cat-banner-title, .cat-banner-text, .cat-banner-btn { position: relative; }
  .cat-banner-title { display: block; font-size: 20px; line-height: 30px; font-weight: 600; }
  .cat-banner-text { display: block; font-size: 16px; line-height: 24px; font-weight: 500; opacity: .72; }
  .cat-banner-btn { display: inline-flex; margin-top: 16px; padding: 10px 16px; border-radius: 12px; background: #fff; font-size: 14px; line-height: 20px; font-weight: 500; color: #7b61ff; }
  .cat-h { padding: 0 16px 16px; font-size: 20px; line-height: 30px; }
  .sc-grid { grid-template-columns: repeat(2, 1fr); gap: 32px 13px; padding: 0 16px 32px; }
  .sc { height: auto; gap: 8px; border-radius: 20px; background: none; box-shadow: none; cursor: pointer; }
  .sc-img { aspect-ratio: 1 / 1; border-radius: 24px; }
  .sc-time { padding: 6px 12px 6px 16px; font-size: 13px; line-height: 20px; font-weight: 500; }
  .sc-meta, .sc-actions { display: none; }
  .sc-price { order: 2; padding: 0; font-size: 18px; line-height: 24px; color: #404040; }
  .sc-name { order: 3; min-height: 40px; max-height: 40px; margin: 0; font-size: 13px; line-height: 20px; font-weight: 400; }
  .cat-empty { padding: 0 16px 32px; }
  .cat-more { padding-bottom: 32px; }
  .salon-fab { position: fixed; left: 50%; bottom: max(16px, env(safe-area-inset-bottom)); z-index: 25; display: block; padding: 12px 20px; border: 0; border-radius: 999px; background: #fff; box-shadow: 0 4px 6px -1px rgba(0,0,0,.1), 0 2px 4px -2px rgba(0,0,0,.06); font: inherit; font-size: 16px; line-height: 24px; font-weight: 500; color: #7b61ff; white-space: nowrap; transform: translateX(-50%); cursor: pointer; }
  .salon-dd { position: fixed; top: 64px; left: 16px; right: 16px; width: auto; }
  .choose-page { padding: 0 16px 32px; }
  .choose-page .choose-title { display: block; padding: 0 0 16px; font-size: 20px; line-height: 30px; }
  .choose-page .choose-main { padding: 0; }
  .choose-page .path-label { left: 18px; font-size: 24px; line-height: 28px; letter-spacing: .72px; }
  .choose-page .path[data-path] .path-img { right: 0; width: 137px; height: 112px; object-position: center; }
  .choose-page .path[data-path="salon"] .path-img { width: 169px; }
}

/* ============ Окно выбора салона ============ */
.sm-box { display: flex; flex-direction: column; max-width: 960px; height: min(720px, calc(100vh - 64px)); border-radius: 32px; overflow: hidden; }
.sm-title { flex: none; margin: 0; padding: 32px 32px 32px; font-size: 24px; line-height: 32px; font-weight: 600; color: var(--text-900); }
.sm-scroll { flex: 1; min-height: 0; overflow-y: auto; padding: 0 32px 48px; }
.sm-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; padding-bottom: 32px; }
.sm-grid-off { padding-bottom: 0; }
.sm-card { display: flex; gap: 16px; align-items: flex-start; min-width: 0; padding: 16px; border: 0; border-radius: 20px; background: var(--bg-secondary); font: inherit; text-align: left; color: inherit; cursor: pointer; transition: background .15s, box-shadow .15s; }
.sm-card:hover { background: #e3e7e8; }
.sm-card:focus-visible { outline: 3px solid var(--focus-ring); outline-offset: 2px; }
.sm-card.is-on { box-shadow: inset 0 0 0 2px #7b61ff; }
.sm-info { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.sm-name { padding-bottom: 8px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 16px; line-height: 24px; font-weight: 600; color: var(--text-900); }
.sm-addr { padding-bottom: 8px; font-size: 13px; line-height: 20px; color: #525252; }
.sm-hours { font-size: 13px; line-height: 20px; color: #737373; }
.sm-radio { position: relative; flex: none; width: 24px; height: 24px; border-radius: 50%; background: #fff; }
.sm-card.is-on .sm-radio { background: #7b61ff; }
.sm-card.is-on .sm-radio::after { content: ""; position: absolute; inset: 30%; border-radius: 50%; background: #fff; }
.sm-card-off { flex-direction: column; gap: 12px; border: 1px solid #e5e5e5; background: #fff; cursor: default; }
.sm-card-off:hover { background: #fff; }
.sm-card-off .sm-info { width: 100%; }
.sm-svc { width: 100%; padding: 15px 32px; border: 1px solid #e5e5e5; border-radius: 12px; background: #fff; font: inherit; font-size: 16px; line-height: 24px; font-weight: 500; color: #7b61ff; cursor: pointer; }
.sm-svc:hover { border-color: #d4d4d4; }
.sm-h { margin: 0; padding-bottom: 16px; font-size: 24px; line-height: 32px; font-weight: 600; color: var(--text-900); }
.sm-foot { flex: none; display: flex; justify-content: flex-end; gap: 16px; padding: 15px 32px 32px; border-top: 1px solid #e5e5e5; background: #fff; }
.sm-cancel, .sm-ok { padding: 16px 32px; border: 0; font: inherit; font-weight: 500; cursor: pointer; }
.sm-cancel { background: var(--bg-secondary); color: #7b61ff; }
.sm-cancel:hover { background: #e3e7e8; }
.sm-ok:disabled { opacity: .5; cursor: default; }
.sm .cm-mtop { display: none; }
@media (max-width: 860px) {
  .sm-box { height: 100%; max-width: none; border-radius: 0; overflow: hidden; }
  .sm .cm-mtop { display: flex; flex: none; }
  .sm .lm-close, .sm-title { display: none; }
  .sm-scroll { padding: 0 16px 24px; }
  .sm-grid { grid-template-columns: 1fr; gap: 12px; padding-bottom: 24px; }
  .sm-h { font-size: 20px; line-height: 30px; }
  .sm-foot { padding: 12px 16px max(16px, env(safe-area-inset-bottom)); }
  .sm-cancel, .sm-ok { flex: 1; }
}

/* ============ Липкая шапка и «Наверх» ============ */
@media (min-width: 861px) {
  .site-header { position: sticky; top: 0; transition: box-shadow .2s; }
  .site-header.is-stuck { box-shadow: 0 12px 16px -4px rgba(0,0,0,.08), 0 4px 6px -2px rgba(0,0,0,.03), -1px -1px 2px -1px rgba(0,0,0,.04); }
}
.to-top { position: fixed; left: 50%; bottom: 56px; z-index: 26; display: flex; align-items: center; gap: 6px; padding: 16px 30px; border: 0; border-radius: 999px; background: #fff; box-shadow: 0 12px 16px -4px rgba(0,0,0,.08), 0 4px 6px -2px rgba(0,0,0,.03), -1px -1px 2px -1px rgba(0,0,0,.04); font: inherit; font-size: 16px; line-height: 24px; font-weight: 500; color: #7b61ff; transform: translateX(-50%); cursor: pointer; animation: tt-in .2s ease-out; }
@keyframes tt-in { from { opacity: 0; } }
.to-top span { padding: 0 2px; }
.to-top:hover { background: #f9f8ff; }
.to-top[hidden] { display: none; }
html.lm-open .to-top, body.menu-open .to-top { display: none; }
@media (max-width: 860px) { .to-top { display: none; } }
@media (min-width: 861px) { html.has-totop .toast { bottom: 128px; } }

/* ============ Мобильная шторка «Город и салон» ============ */
.cm, .sm { z-index: 210; }
.sh { align-items: flex-end; padding: 0; }
.sh-page { position: relative; width: 100%; max-width: 560px; padding-bottom: max(0px, env(safe-area-inset-bottom)); border-radius: 24px 24px 0 0; background: #fff; animation: sh-in .22s ease-out; }
@keyframes sh-in { from { transform: translateY(40px); opacity: 0; } }
.sh-handle { display: flex; justify-content: center; padding: 12px 0 16px; cursor: grab; touch-action: none; }
.sh-head { touch-action: none; }
.sh-handle span { width: 56px; height: 4px; border-radius: 4px; background: #e5e5e5; }
.sh-head { display: flex; align-items: center; padding-bottom: 16px; }
.sh-side { flex: none; width: 96px; }
.sh-side-r { display: flex; justify-content: flex-end; padding-right: 16px; }
.sh-title { flex: 1; min-width: 0; margin: 0; padding: 8px 0; text-align: center; font-size: 18px; line-height: 24px; font-weight: 600; color: var(--text-900); }
.sh-done { padding: 8px 0; border: 0; background: none; font: inherit; font-size: 16px; line-height: 24px; font-weight: 500; color: #7b61ff; cursor: pointer; }
.sh-field { display: flex; align-items: center; gap: 8px; width: calc(100% - 32px); min-height: 56px; margin: 0 16px 16px; padding: 16px 12px 16px 16px; border: 0; border-radius: 12px; background: var(--bg-secondary); font: inherit; text-align: left; cursor: pointer; }
.sh-field.is-set { padding-top: 6px; padding-bottom: 6px; }
.sh-field img { flex: none; margin-left: 4px; }
.sh-f-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.sh-f-label { font-size: 13px; line-height: 20px; color: #737373; }
.sh-f-label[hidden] { display: none; }
.sh-f-value { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 16px; line-height: 24px; color: var(--text-900); }
.sh-actions { padding: 0 16px 16px; }
.sh-ok { width: 100%; height: 56px; border: 0; font: inherit; font-weight: 500; cursor: pointer; }
@media (max-width: 860px) {
  .sh { background: none; }
  .sh .lm-overlay { display: block; }
  .sm-h, #smOff, .sm-cancel { display: none; }
  .sm-grid { gap: 16px; }
  .sm-scroll { padding-bottom: 96px; }
  .sm-foot { position: absolute; left: 0; right: 0; bottom: 0; padding: 16px 16px max(16px, env(safe-area-inset-bottom)); border-top: 0; background: none; pointer-events: none; }
  .sm-ok { flex: 1; height: 56px; pointer-events: auto; }
  .sm-box { position: relative; }
}

/* ============ Страница услуги ============ */
.sv-wrap { max-width: 640px; margin: 0 auto; padding-top: 24px; padding-bottom: 200px; }
.sv-crumbs { padding: 0 16px 24px; flex-wrap: wrap; }
.sv-img { position: relative; margin: 0 16px 16px; height: 200px; border-radius: 24px; overflow: hidden; }
.sv-img img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); }
.sv-img::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 100px; background: linear-gradient(to bottom, rgba(0,0,0,0), rgba(0,0,0,.46)); pointer-events: none; }
.sv-title { margin: 0; padding: 0 16px 24px; font-size: 20px; line-height: 30px; font-weight: 600; color: var(--text-900); }
.sv-price-card { position: relative; margin: 0 16px 32px; padding: 16px 0 24px 16px; border-radius: 24px; background: #fff; box-shadow: 0 12px 16px -4px rgba(0,0,0,.08), 0 4px 6px -2px rgba(0,0,0,.03), -1px -1px 2px -1px rgba(0,0,0,.04); overflow: hidden; }
.sv-price { margin: 0 0 16px; font-size: 24px; line-height: 32px; font-weight: 700; color: #171717; opacity: .9; }
.sv-durs-wrap { position: relative; }
.sv-durs-wrap::after { content: ""; position: absolute; top: 0; right: 0; bottom: 0; width: 56px; background: linear-gradient(to right, rgba(255,255,255,0), #fff 80%); pointer-events: none; }
.sv-durs { display: flex; gap: 8px; overflow-x: auto; padding-right: 56px; scrollbar-width: none; }
.sv-durs::-webkit-scrollbar { display: none; }
.sv-dur { flex: none; padding: 8px 14px; border: 0; border-radius: 999px; background: var(--bg-secondary); font: inherit; font-size: 14px; line-height: 20px; font-weight: 500; color: #404040; cursor: pointer; }
.sv-dur.is-on { background: #7b61ff; color: #fff; box-shadow: inset 0 0 0 1px rgba(0,0,0,.18), inset 0 -2px 0 rgba(0,0,0,.05), 0 1px 2px rgba(0,0,0,.05); }
.sv-offers { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0 16px 32px; }
.sv-offer { display: flex; align-items: center; gap: 12px; padding: 12px 8px 12px 12px; border-radius: 16px; background: rgba(123,97,255,.08); font-size: 14px; line-height: 20px; font-weight: 500; color: #7b61ff; }
.sv-offer span { flex: 1; min-width: 0; }
.sv-offer img { flex: none; }
.sv-offer:hover { background: rgba(123,97,255,.14); }
.sv-notes { display: flex; flex-direction: column; gap: 8px; margin: 0 16px 32px; padding: 7px; border: 1px solid #e5e5e5; border-radius: 20px; }
.sv-note { width: 100%; padding: 12px 16px; border: 0; border-radius: 12px; background: var(--bg-secondary); font: inherit; font-size: 16px; line-height: 24px; font-weight: 500; color: #404040; cursor: pointer; }
.sv-note-danger { padding: 12px 16px 10px; background: #fef2f2; color: #dc2626; }
.sv-tabs { display: flex; gap: 4px; margin: 0 16px 16px; padding: 4px; border-radius: 16px; background: #f5f5f5; }
.sv-tab { flex: 1; padding: 10px 12px; border: 0; border-radius: 12px; background: none; font: inherit; font-size: 14px; line-height: 20px; font-weight: 500; color: #737373; cursor: pointer; }
.sv-tab[aria-selected="true"] { background: #fff; color: #404040; box-shadow: 0 1px 3px rgba(0,0,0,.1), 0 1px 2px -1px rgba(0,0,0,.1); }
.sv-page { padding-bottom: 64px; border-radius: 24px 24px 0 0; background: var(--bg-secondary); }
.sv-panel[hidden] { display: none; }
.sv-feats { margin: 0; padding: 16px 0 32px; list-style: none; }
.sv-feats li { display: flex; align-items: center; gap: 8px; padding: 8px 16px; font-size: 16px; line-height: 24px; color: var(--text-900); }
.sv-feats img { flex: none; width: 40px; height: 40px; object-fit: cover; }
.sv-h { margin: 0; padding: 0 16px 16px; font-size: 20px; line-height: 30px; font-weight: 700; color: var(--text-900); }
.sv-panel p { margin: 0; padding: 0 16px 16px; font-size: 16px; line-height: 24px; color: var(--text-900); }
.sv-panel p.sv-p-last { padding-bottom: 32px; }
.sv-list { margin: 0; padding: 0 16px 32px 40px; font-size: 16px; line-height: 24px; color: var(--text-900); }
.sv-list li { padding-bottom: 8px; }
.sv-salons { margin: 0; padding: 0 16px; list-style: none; }
.sv-salons li { padding: 24px 0 32px; border-bottom: 1px solid #e5e5e5; }
.sv-salons li + li { padding-top: 16px; }
.sv-salons li:last-child { border-bottom: 0; }
.sv-salons p { margin: 0; padding: 0; }
.sv-salons li .sv-s-hours { padding: 0; }
.sv-salons .sv-s-name { padding-bottom: 8px; font-size: 16px; line-height: 24px; font-weight: 600; color: var(--text-900); }
.sv-salons .sv-s-addr { padding-bottom: 8px; font-size: 13px; line-height: 20px; color: #525252; }
.sv-salons .sv-s-hours { font-size: 13px; line-height: 20px; color: #737373; }
.sv-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 25; padding: 0 16px max(16px, env(safe-area-inset-bottom)); pointer-events: none; }
.sv-bar-in { max-width: 608px; margin: 0 auto; padding: 16px; border-radius: 20px; background: #fff; box-shadow: 0 20px 24px -4px rgba(0,0,0,.08), -1px 8px 8px -4px rgba(0,0,0,.03), 0 -3px 3px -1.5px rgba(0,0,0,.04), 0 -8px 24px rgba(0,0,0,.06); pointer-events: auto; }
.sv-pair { display: flex; align-items: center; padding-bottom: 16px; }
.sv-pair[hidden] { display: none; }
.sv-pair-text { flex: 1; font-size: 16px; line-height: 24px; color: var(--text-900); }
.sv-q { display: flex; margin-right: 12px; padding: 0; border: 0; background: none; cursor: pointer; }
.sv-toggle { position: relative; width: 56px; height: 32px; padding: 0; border: 0; border-radius: 999px; background: var(--bg-secondary); cursor: pointer; transition: background .15s; }
.sv-toggle span { position: absolute; left: 2px; top: 2px; width: 28px; height: 28px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.1), 0 1px 2px -1px rgba(0,0,0,.1); transition: transform .15s; }
.sv-toggle[aria-checked="true"] { background: #7b61ff; }
.sv-toggle[aria-checked="true"] span { transform: translateX(24px); }
.sv-actions { display: flex; gap: 8px; }
.sv-info { flex: none; width: 56px; height: 56px; padding: 0; border: 0; cursor: pointer; }
.sv-book { flex: 1; height: 56px; border: 0; font: inherit; font-weight: 500; cursor: pointer; }
@media (min-width: 861px) {
  .sv-wrap { padding-top: 32px; }
  .sv-img { height: 320px; }
  .sv-title { font-size: 30px; line-height: 38px; }
  .sv-offers { grid-template-columns: repeat(3, 1fr); }
  .sv-page { border-radius: 24px; }
}
body:has(.page-service) .to-top { display: none; }
@media (max-width: 860px) {
  .sv-wrap { padding-top: 0; }
  /* серый блок до самого низа, место под плашкой — внутри него, без белой полосы */
  body.app-page:has(.page-service) { padding-bottom: 0; }
  .page-service .sv-wrap { display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; padding-bottom: 0; }
  .page-service .sv-page { flex: 1; padding-bottom: calc(var(--sv-bar-h, 176px) + 16px); }
}
.salon-fab { overflow: hidden; transition: width .28s ease; }
.salon-fab [data-salon-btn], .salon-fab .fab-top { display: flex; align-items: center; justify-content: center; gap: 6px; white-space: nowrap; transition: opacity .2s ease, transform .28s ease; }
.salon-fab .fab-top { position: absolute; inset: 0; opacity: 0; transform: translateY(12px); pointer-events: none; }
.salon-fab.is-top [data-salon-btn] { opacity: 0; transform: translateY(-12px); }
.salon-fab.is-top .fab-top { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .salon-fab, .salon-fab [data-salon-btn], .salon-fab .fab-top { transition: none; } }

/* ============ Шторка с текстом, противопоказания, сортировка ============ */
.bs { z-index: 220; }
.bs-page { position: relative; display: flex; flex-direction: column; width: 100%; max-width: 560px; max-height: calc(100vh - 64px); border-radius: 24px; background: #fff; box-shadow: 0 20px 24px -4px rgba(0,0,0,.08), -1px 8px 8px -4px rgba(0,0,0,.03); animation: lm-in .18s ease-out; overflow: hidden; }
.bs .sh-handle { display: none; }
.bs-x { z-index: 2; }
.bs-scroll { flex: 1; min-height: 0; overflow-y: auto; padding: 24px 24px 8px; }
.bs-img { height: 200px; margin-bottom: 16px; border-radius: 24px; overflow: hidden; }
.bs-img img { width: 100%; height: 100%; object-fit: cover; }
.bs-title { margin: 0; padding: 0 48px 16px 0; font-size: 20px; line-height: 30px; font-weight: 600; color: var(--text-900); }
.bs-body p { margin: 0 0 16px; font-size: 16px; line-height: 24px; color: var(--text-900); }
.bs-foot { flex: none; padding: 8px 24px 24px; }
.bs-ok { width: 100%; height: 56px; border: 0; font: inherit; font-weight: 500; cursor: pointer; }
.ct-h { margin: 8px 0 16px; font-size: 20px; line-height: 30px; font-weight: 600; color: var(--text-900); }
.ct-list { margin: 0; padding: 0 0 16px 24px; font-size: 16px; line-height: 24px; color: var(--text-900); }
.ss-list { display: flex; flex-direction: column; gap: 4px; margin: 0 -24px; }
.ss-row { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 48px; padding: 0 24px; border: 0; background: none; font: inherit; font-size: 16px; line-height: 24px; color: var(--text-900); text-align: left; cursor: pointer; }
.ss-row img { visibility: hidden; }
.ss-row.is-on { background: var(--bg-secondary); }
.ss-row.is-on img { visibility: visible; }
@media (max-width: 860px) {
  .bs { align-items: flex-end; padding: 0; background: none; }
  .bs .lm-overlay { display: block; }
  .bs-page { max-width: none; max-height: calc(100% - 300px); border-radius: 24px 24px 0 0; box-shadow: none; animation: sh-in .22s ease-out; }
  .bs .sh-handle { display: flex; flex: none; }
  .bs .bs-x { display: none; }
  .bs-scroll { padding: 0 16px; }
  .bs-title { padding: 0 0 16px; touch-action: none; }
  .bs-foot { padding: 0 16px max(16px, env(safe-area-inset-bottom)); }
  .ss .bs-scroll { padding-bottom: max(16px, env(safe-area-inset-bottom)); }
  .ss-list { margin: 0 -16px; }
  .ss-row { padding: 0 16px; }
  /* «Противопоказания» — на весь экран */
  .ct .bs-page { max-height: none; height: 100%; border-radius: 0; animation: none; }
  .ct .sh-handle { display: none; }
  .ct .bs-x { display: flex; position: absolute; top: 8px; right: 8px; padding: 8px; background: none; border-radius: 10px; }
  .ct .bs-x img { width: 24px; height: 24px; }
  .ct .bs-scroll { padding: 8px 16px 24px; }
  .ct .bs-title { padding: 0 48px 16px 0; }
}

/* ============ Экран «Город и салон» перед записью ============ */
.ps { z-index: 205; padding: 0; background: #fff; align-items: stretch; }
.ps-page { display: flex; flex-direction: column; width: 100%; height: 100%; background: #fff; }
.ps-top { display: flex; align-items: center; flex: none; padding: 8px 0 16px; }
.ps-title { flex: 1; margin: 0; padding: 8px 13px; text-align: center; font-size: 18px; line-height: 24px; font-weight: 600; color: var(--text-900); }
.ps-scroll { flex: 1; min-height: 0; overflow-y: auto; padding-bottom: 96px; }
.ps-city { margin-bottom: 16px; }
.ps-h { margin: 0; padding: 0 16px 16px; font-size: 20px; line-height: 30px; font-weight: 700; color: var(--text-900); }
.ps-list { display: flex; flex-direction: column; gap: 16px; padding: 0 16px; }
.ps-foot { position: absolute; left: 0; right: 0; bottom: 0; padding: 16px 16px max(16px, env(safe-area-inset-bottom)); pointer-events: none; }
.ps-ok { width: 100%; height: 56px; border: 0; font: inherit; font-weight: 500; cursor: pointer; pointer-events: auto; }
.sv-info[hidden] { display: none; }

/* ============ Фильтры каталога ============ */
.sc.is-filtered, .cat-sec.is-filtered { display: none !important; }
.cf-icon { position: relative; }
.fs-page { max-width: 480px; }
.fs-head { display: flex; align-items: center; flex: none; padding: 16px 0; }
.fs-side { flex: none; width: 96px; }
.fs-side-r { display: flex; justify-content: flex-end; padding-right: 16px; }
.fs-title { flex: 1; min-width: 0; margin: 0; text-align: center; font-size: 18px; line-height: 24px; font-weight: 600; color: var(--text-900); }
.fs-reset { padding: 8px 0; border: 0; background: none; font: inherit; font-size: 16px; line-height: 24px; font-weight: 500; color: #7b61ff; cursor: pointer; }
.fs-back { display: flex; margin-left: 8px; padding: 8px; border: 0; border-radius: 10px; background: none; cursor: pointer; }
.fs-body { flex: 1; min-height: 0; overflow-y: auto; padding-bottom: 8px; }
.fs-prices { display: flex; gap: 12px; padding: 0 16px 16px; }
.fs-price { flex: 1; min-width: 0; display: flex; flex-direction: column; padding: 5px 15px; border: 1px solid transparent; border-radius: 12px; background: var(--bg-secondary); cursor: text; transition: border-color .15s, background .15s; }
.fs-price:focus-within { border-color: #7b61ff; background: #fff; }
.fs-price-l { font-size: 13px; line-height: 20px; color: #737373; }
.fs-price input { width: 100%; padding: 0; border: 0; background: none; font: inherit; font-size: 16px; line-height: 24px; color: var(--text-900); outline: none; }
.fs-range { position: relative; height: 24px; margin: 0 16px 12px; }
.fs-track { position: absolute; left: 10px; right: 10px; top: 10px; height: 4px; border-radius: 2px; background: #e5e5e5; }
.fs-track::after { content: ""; position: absolute; top: 0; bottom: 0; left: var(--lo); right: calc(100% - var(--hi)); border-radius: 2px; background: #7b61ff; }
.fs-range input[type="range"] { position: absolute; inset: 0; width: 100%; height: 24px; margin: 0; background: none; -webkit-appearance: none; appearance: none; pointer-events: none; }
.fs-range input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 20px; height: 20px; border: 0; border-radius: 50%; background: #7b61ff; box-shadow: 0 1px 3px rgba(0,0,0,.15); pointer-events: auto; cursor: grab; }
.fs-range input[type="range"]::-moz-range-thumb { width: 20px; height: 20px; border: 0; border-radius: 50%; background: #7b61ff; pointer-events: auto; cursor: grab; }
.fs-range input[type="range"]:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 4px var(--focus-ring); }
.fs-row { display: flex; align-items: center; gap: 8px; width: 100%; min-height: 56px; padding: 0 16px; border: 0; background: none; font: inherit; font-size: 16px; line-height: 24px; color: var(--text-900); text-align: left; cursor: pointer; }
.fs-row > span:first-child { flex: 1; }
.fs-row img { transform: rotate(-90deg); }
.fs-count { min-width: 20px; padding: 0 6px; border-radius: 999px; background: #7b61ff; font-size: 12px; line-height: 20px; font-weight: 600; color: #fff; text-align: center; }
.fs-opt { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 56px; padding: 4px 16px; border: 0; background: none; font: inherit; text-align: left; cursor: pointer; }
.fs-opt-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.fs-opt-title { font-size: 16px; line-height: 24px; color: var(--text-900); }
.fs-opt-sub { font-size: 13px; line-height: 20px; color: #737373; }
.fs-radio { position: relative; flex: none; width: 24px; height: 24px; border: 1.5px solid #d4d4d4; border-radius: 50%; background: #fff; }
.fs-opt.is-on .fs-radio { border-color: #7b61ff; background: #7b61ff; }
.fs-opt.is-on .fs-radio::after { content: ""; position: absolute; inset: 28%; border-radius: 50%; background: #fff; }
.fs-ok:disabled { opacity: 1; cursor: progress; }
.fs .bs-foot { padding-top: 8px; }
.cf-empty { display: flex; flex-direction: column; align-items: center; padding: 80px 16px 96px; text-align: center; }
.cf-empty[hidden] { display: none; }
.cf-empty-ic { display: flex; align-items: center; justify-content: center; width: 64px; height: 64px; margin-bottom: 24px; border-radius: 50%; background: rgba(123,97,255,.16); }
.cf-empty-title { margin: 0 0 8px; font-size: 20px; line-height: 30px; font-weight: 600; color: var(--text-900); }
.cf-empty-text { max-width: 320px; margin: 0 0 24px; font-size: 14px; line-height: 20px; color: #737373; }
.cf-empty-btn { padding: 16px 34px; border: 0; border-radius: 12px; background: var(--bg-secondary); font: inherit; font-size: 16px; line-height: 24px; font-weight: 500; color: #7b61ff; cursor: pointer; }
.cf-empty-btn:hover { background: #e3e7e8; }
@media (max-width: 860px) {
  .fs-page { max-width: none; max-height: calc(100% - 48px); }
  .fs .bs-x { display: none; }
  .fs-head { padding: 0 0 16px; touch-action: none; }
  .cf-empty { padding: 64px 16px 96px; }
}
.fs .bs-x { display: none; }

/* ============ Единый низ шторок: без фиолетовой подложки в Safari (iOS берёт цвет нижней панели из закреплённых снизу элементов) ============ */
@media (max-width: 860px) {
  .sm-foot, .ps-foot { background: linear-gradient(to top, #fff 0, #fff calc(100% - 16px), rgba(255,255,255,0) 100%); padding-top: 24px; pointer-events: auto; }
  .bs-foot, .sh-actions { background: #fff; }
  .bs-page, .sh-page { padding-bottom: 0; }
  .bs-page:not(:has(.bs-foot)) .bs-scroll { padding-bottom: max(24px, calc(env(safe-area-inset-bottom) + 16px)); }
  .sh-actions { padding-bottom: max(16px, env(safe-area-inset-bottom)); }
  .ct .bs-scroll { padding-top: 0; }
  .ct .bs-title { position: sticky; top: 0; z-index: 1; margin: 0 -16px; padding: 8px 64px 16px 16px; background: #fff; }
  .ct .bs-x { top: 3px; z-index: 3; }
  .sv-bar { padding-bottom: max(16px, env(safe-area-inset-bottom)); }
}

/* шторки: выше на телефоне, белый низ под панелью Safari */
@media (max-width: 860px) {
  .bs-page { max-height: calc(100dvh - 56px); }
  .bs-page:has(.bs-img) { height: calc(100dvh - 120px); max-height: 720px; }
  .bs-page::after, .sh-page::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 160px; background: #fff; pointer-events: none; }
  .bs-page, .sh-page { overflow: visible; }
  .bs-scroll { border-radius: 24px 24px 0 0; }
}

/* ============ Мастера, дата и гости (slot.html) ============ */
.sl-wrap { max-width: 640px; margin: 0 auto; padding: 0 16px 200px; }
.sl-crumbs { padding-bottom: 24px; }
.sl-h1 { margin: 0 0 24px; font-size: 30px; line-height: 38px; font-weight: 600; color: var(--text-900); }
.sl-h { margin: 32px 0 16px; font-size: 20px; line-height: 30px; font-weight: 600; color: var(--text-900); }
.sl-glabel { margin: 0 0 8px; font-size: 14px; line-height: 20px; color: var(--text-500); }
.sl-mrow { display: flex; align-items: center; gap: 8px; width: 100%; min-height: 48px; padding: 4px 0; border: 0; background: none; font: inherit; font-size: 16px; line-height: 24px; color: var(--text-900); text-align: left; cursor: pointer; }
.sl-mrow + .sl-glabel { margin-top: 16px; }
.sl-mrow .sl-mname { flex: 1; min-width: 0; }
.sl-mrow > img:last-child { transform: rotate(-90deg); opacity: .6; }
.sl-ava { flex: none; display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: var(--brand-200); overflow: hidden; }
.sl-ava img { width: 100%; height: 100%; object-fit: cover; }
.sl-ava img[src$=".svg"] { width: 20px; height: 20px; }
.sl-scroll { margin: 0 -16px; padding: 0 16px; overflow-x: auto; scrollbar-width: none; }
.sl-scroll::-webkit-scrollbar { display: none; }
.sl-dates { display: flex; gap: 6px; width: max-content; padding-bottom: 4px; }
.sl-cal { position: relative; flex: none; display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; background: var(--brand-200); cursor: pointer; }
.sl-cal input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; border: 0; padding: 0; cursor: pointer; }
.sl-cal input::-webkit-calendar-picker-indicator { position: absolute; inset: 0; width: 100%; height: 100%; cursor: pointer; }
.sl-day { flex: none; display: flex; flex-direction: column; align-items: center; width: 44px; padding: 0; border: 0; background: none; font: inherit; cursor: pointer; }
.sl-day-c { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; background: #f5f5f5; color: var(--text-900); transition: background .15s, color .15s; }
.sl-day-n { font-size: 16px; line-height: 18px; font-weight: 500; }
.sl-day-w { font-size: 9px; line-height: 11px; text-transform: uppercase; color: var(--text-700); }
.sl-day-l { min-height: 16px; padding-top: 4px; font-size: 10px; line-height: 12px; color: var(--text-500); white-space: nowrap; }
.sl-day:hover:not(:disabled) .sl-day-c { background: #ebebeb; }
.sl-day.is-on .sl-day-c { background: var(--brand-600); color: #fff; }
.sl-day.is-on .sl-day-w { color: #fff; }
.sl-day:disabled { cursor: default; }
.sl-day:disabled .sl-day-c { background: #fafafa; color: #c4c4c4; }
.sl-day:disabled .sl-day-w { color: #c4c4c4; }
.sl-h-time { margin-top: 24px; }
.sl-part { margin: 0 0 8px; font-size: 14px; line-height: 20px; color: var(--text-500); }
.sl-times { display: flex; gap: 8px; width: max-content; padding-bottom: 20px; }
.sl-time { flex: none; height: 40px; padding: 0 14px; border: 0; border-radius: 999px; background: #f5f5f5; font: inherit; font-size: 14px; line-height: 20px; color: var(--text-900); cursor: pointer; transition: background .15s, color .15s; }
.sl-time:hover { background: #ebebeb; }
.sl-time.is-on { background: var(--brand-600); color: #fff; }
.sl-empty { margin: 0 0 16px; padding: 16px; border-radius: 16px; background: #f5f5f5; font-size: 14px; line-height: 20px; color: var(--text-600); }
.sl-guest-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 12px 0 16px; }
.sl-guest-head .sl-h { margin: 0; }
.sl-badge { display: inline-flex; align-items: center; gap: 4px; height: 24px; padding: 0 8px; border-radius: 999px; background: #ffd84d; font-size: 12px; line-height: 16px; font-weight: 500; color: var(--text-900); white-space: nowrap; }
.sl-add { display: flex; align-items: center; justify-content: center; gap: 6px; width: 100%; height: 52px; border: 0; border-radius: 12px; background: #f5f5f5; font: inherit; font-size: 15px; font-weight: 500; color: var(--brand-600); cursor: pointer; transition: background .15s, color .15s; }
.sl-add:hover:not(:disabled) { background: #ebebeb; }
.sl-add:disabled { color: #a3a3a3; cursor: default; }
.sl-add:disabled img { filter: grayscale(1) opacity(.55); }
.sl-guest.is-off .sl-badge { opacity: .5; }
.sl-add-hint { margin: 8px 0 0; font-size: 13px; line-height: 18px; color: #d92d20; text-align: center; }
.sl-note { margin: 24px 0 0; font-size: 13px; line-height: 18px; color: var(--text-600); text-align: center; }
.sl-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.sl-sum { display: flex; flex-direction: column; align-items: flex-start; padding: 0; border: 0; background: none; font: inherit; text-align: left; cursor: pointer; }
.sl-total { font-size: 18px; line-height: 26px; font-weight: 700; color: var(--text-900); }
.sl-count { display: flex; align-items: center; gap: 2px; font-size: 14px; line-height: 20px; color: var(--text-500); }
.sl-count img { transform: rotate(-90deg); opacity: .6; }
.sl-book { height: 44px; padding: 0 20px; border: 0; font: inherit; font-size: 15px; font-weight: 500; cursor: pointer; }
/* шторки выбора мастера / услуги / состава визита */
.msr-list { display: flex; flex-direction: column; margin: 0 -24px; }
.msr-row { display: flex; align-items: center; gap: 8px; width: 100%; min-height: 56px; padding: 8px 24px; border: 0; background: none; font: inherit; text-align: left; color: var(--text-900); cursor: pointer; }
.msr-row:hover { background: #fafafa; }
.msr-row.is-on { background: var(--bg-secondary); }
.msr-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.msr-name { font-size: 16px; line-height: 22px; }
.msr-sub { font-size: 13px; line-height: 18px; color: var(--text-500); }
.msr-price { flex: none; font-size: 14px; line-height: 20px; font-weight: 600; }
.msr-check { flex: none; visibility: hidden; }
.msr-row.is-on .msr-check { visibility: visible; }
.vs-row { display: flex; align-items: flex-start; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--border); }
.vs-row:last-child { border-bottom: 0; }
.vs-text { flex: 1; min-width: 0; }
.bs-body .vs-who { margin: 0; font-size: 13px; line-height: 18px; color: var(--text-500); }
.bs-body .vs-name { margin: 2px 0 0; font-size: 16px; line-height: 22px; font-weight: 500; color: var(--text-900); }
.bs-body .vs-meta { margin: 2px 0 0; font-size: 13px; line-height: 18px; color: var(--text-600); }
.vs-price { flex: none; font-size: 15px; line-height: 22px; font-weight: 600; color: var(--text-900); }
.vs-del { display: inline-block; margin-top: 6px; padding: 0; border: 0; background: none; font: inherit; font-size: 13px; line-height: 18px; color: #d92d20; cursor: pointer; }
.page-slot ~ .to-top, body:has(.page-slot) .to-top { display: none; }
@media (min-width: 861px) { .sl-times { width: auto; flex-wrap: wrap; } .sl-scroll { margin: 0; padding: 0; } .sl-scroll:has(.sl-dates) { scrollbar-width: thin; } }
@media (max-width: 860px) {
  .sl-h1 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .sl-wrap > .sl-masters { margin-top: 0; }
  .aph-title { flex: 1; margin: 0; text-align: center; font-size: 17px; line-height: 24px; font-weight: 600; color: var(--text-900); }
  .aph-side { flex: none; width: 40px; margin: 0 8px; }
  .msr-list { margin: 0 -16px; }
  .msr-row { padding: 8px 16px; }
}

/* ============ Фильтры — десктоп (макеты 13756:808611, 13756:813927, 13756:817388, 13756:810268) ============ */
@media (min-width: 861px) {
  .fsd .fs-page { max-width: 500px; max-height: min(808px, calc(100vh - 64px)); box-shadow: 0 20px 24px -4px rgba(0,0,0,.08), -1px 8px 8px -4px rgba(0,0,0,.03), 0 -3px 3px -1.5px rgba(0,0,0,.04); }
  .fsd .bs-x { display: flex; position: absolute; top: 16px; right: 16px; padding: 10px; border-radius: 12px; background: var(--bg-secondary); }
  .fsd .fs-head { padding: 24px 24px 32px; }
  .fsd .fs-title { text-align: left; font-size: 24px; line-height: 32px; }
  .fsd .fs-body { padding: 0 24px 0; scrollbar-width: thin; scrollbar-color: #e5e5e5 transparent; }
  .fsd .fs-body::-webkit-scrollbar { width: 6px; }
  .fsd .fs-body::-webkit-scrollbar-thumb { border-radius: 999px; background: #e5e5e5; }
  .fd-h { margin: 0; padding-bottom: 16px; font-size: 16px; line-height: 24px; font-weight: 600; color: var(--text-900); }
  .fsd .fs-prices { padding: 0 0 24px; }
  .fsd .fs-range { margin: -6px -2px 26px; }
  .fsd .fs-track { left: 12px; right: 12px; }
  .fsd .fs-range input[type="range"]::-webkit-slider-thumb { width: 24px; height: 24px; border-radius: 50%; background: url(assets/catalog/range-knob.svg) center / 24px 24px no-repeat; box-shadow: none; }
  .fsd .fs-range input[type="range"]::-moz-range-thumb { width: 24px; height: 24px; border-radius: 50%; background: url(assets/catalog/range-knob.svg) center / 24px 24px no-repeat; }
  .fd-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; padding-bottom: 32px; }
  .fd-col { grid-auto-flow: column; grid-template-rows: repeat(var(--rows), auto); }
  .fd-cb { display: flex; align-items: center; gap: 12px; min-height: 24px; padding: 0; border: 0; background: none; font: inherit; font-size: 13px; line-height: 20px; color: var(--text-900); text-align: left; cursor: pointer; }
  .fd-box { position: relative; flex: none; width: 24px; height: 24px; border-radius: 8px; background: var(--bg-secondary); transition: background .15s; }
  .fd-cb:hover:not(:disabled):not(.is-on) .fd-box { background: #e3e7e8; }
  .fd-cb.is-on:hover .fd-box { background-color: #6952d9; }
  .fd-cb.is-on .fd-box { background: #7b61ff url(assets/catalog/checkbox-check.svg) center / 16.8px 16.8px no-repeat; }
  .fd-cb:disabled { color: #c4c4c4; cursor: default; }
  .fd-cb:disabled .fd-box { background: #f8f9f9; }
  .fd-cb:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; border-radius: 8px; }
  .fd-foot { flex: none; display: flex; justify-content: flex-end; gap: 16px; padding: 16px 24px 24px; border-top: 1px solid #e5e5e5; }
  .fd-reset { padding: 16px 24px; border: 0; border-radius: 12px; background: var(--bg-secondary); font: inherit; font-size: 16px; line-height: 24px; font-weight: 500; color: #7b61ff; cursor: pointer; }
  .fd-reset:hover { background: #e3e7e8; }
  .fd-ok { width: 250px; height: 56px; padding: 0 24px; border: 0; font: inherit; font-weight: 500; cursor: pointer; }
  .fd-ok:disabled { cursor: progress; }
}

/* ============ Услуга — десктоп (макеты 13605:277034, 13606:279491) ============ */
.sv-info-wrap { position: relative; flex: none; display: flex; }
.sv-info-wrap[hidden] { display: none; }
.sv-tip, .sv-promos { display: none; }
@media (min-width: 861px) {
  .page-service .sv-wrap { display: grid; grid-template-columns: 720px 360px; grid-template-areas: "back back" "title title" "img buy" "img offers" "tabs tabs" "page side"; grid-template-rows: auto auto auto 1fr auto auto; column-gap: 40px; align-items: start; max-width: 1120px; padding: 0 0 96px; }
  .sv-back { grid-area: back; display: inline-flex !important; align-items: center; justify-self: start; padding: 16px 0 32px; font-size: 16px; line-height: 24px; font-weight: 500; color: #737373; transition: color .15s; }
  .sv-back img { margin: 2px; }
  /* макет 13638:187785: серый, при наведении — фиолетовый */
  .sv-back:hover, .sv-back:focus-visible { color: #7b61ff; }
  .sv-back:hover img, .sv-back:focus-visible img { content: url(assets/catalog/back-20-brand.svg); }
  .page-service .sv-title { grid-area: title; padding: 0 0 32px; font-size: 30px; line-height: 38px; font-weight: 600; }
  .page-service .sv-img { grid-area: img; margin: 0; height: 438px; border-radius: 20px; }
  .page-service .sv-img img { transform: none; border-radius: 8px; }
  .page-service .sv-img::after { display: none; }
  .sv-buy { grid-area: buy; margin-bottom: 32px; padding: 8px; border-radius: 20px; background: #fff; box-shadow: 0 20px 24px -4px rgba(0,0,0,.08), -1px 8px 8px -4px rgba(0,0,0,.03), 0 -3px 3px -1.5px rgba(0,0,0,.04); }
  .sv-buy .sv-price-card { margin: 0; padding: 16px 16px 0; border-radius: 0; background: none; box-shadow: none; overflow: visible; }
  .sv-buy .sv-price { margin: 0; padding-bottom: 24px; font-size: 30px; line-height: 38px; }
  .sv-buy .sv-durs-wrap::after { display: none; }
  .sv-buy .sv-durs { flex-wrap: wrap; overflow: visible; padding: 0 0 32px; }
  .sv-buy .sv-dur { padding: 8px 12px; }
  .sv-buy .sv-bar { position: static; padding: 0; pointer-events: auto; }
  .sv-buy .sv-bar-in { max-width: none; padding: 16px; border-radius: 12px; background: var(--bg-secondary); box-shadow: none; }
  .sv-buy .sv-toggle { background: #e3e7e8; }
  .sv-buy .sv-toggle[aria-checked="true"] { background: #7b61ff; }
  .page-service .sv-offers { grid-area: offers; grid-template-columns: 1fr 1fr; margin: 0; }
  .sv-offer-cert { display: none !important; }
  .page-service .sv-offer:hover { background: rgba(123,97,255,.16); }
  .page-service .sv-tabs { grid-area: tabs; width: 360px; margin: 48px 0 32px; }
  .page-service .sv-page { grid-area: page; padding: 0; border-radius: 0; background: none; }
  .sv-desc-m { display: none; }
  .sv-desc-h { margin: 0; padding-bottom: 16px; font-size: 24px; line-height: 32px; font-weight: 600; color: var(--text-900); }
  .page-service .sv-panel .sv-desc p { padding: 0; margin: 0 0 16px; }
  .page-service .sv-panel .sv-desc p.sv-desc-last { margin: 0; }
  .sv-desc a { color: #7b61ff; }
  .page-service .sv-salons { padding: 0; }
  .page-service .sv-salons li:first-child { padding-top: 0; }
  .page-service .sv-notes { grid-area: side; gap: 8px; margin: 48px 0 0; padding: 8px; }
  .sv-promos { display: grid !important; grid-template-columns: 1fr 1fr; gap: 8px; padding-bottom: 24px; }
  .sv-promos .sv-promo:nth-child(-n+2) { margin-bottom: 0; }
  .sv-promo { display: flex; align-items: center; gap: 12px; padding: 12px 8px 12px 12px; border-radius: 12px; background: var(--bg-secondary); font-size: 14px; line-height: 20px; font-weight: 500; color: var(--text-900); }
  .sv-promo span { flex: 1; min-width: 0; }
  .sv-promo:hover { background: #e3e7e8; }
  .page-service .sv-note { height: 56px; padding: 16px 32px; }
  .page-service .sv-note:hover { background: #e3e7e8; }
  .page-service .sv-note-danger { padding: 16px 24px; border-radius: 16px; }
  .page-service .sv-note-danger:hover { background: #fee4e2; }
  /* подсказка у «i» */
  .sv-tip { position: absolute; left: 8px; bottom: calc(100% + 8px); z-index: 5; width: 296px; padding: 12px 16px; border-radius: 12px; background: #525252; font-size: 13px; line-height: 16px; color: #fff; text-align: left; white-space: normal; opacity: 0; visibility: hidden; transform: translateY(4px); transition: opacity .15s, transform .15s, visibility .15s; pointer-events: none; }
  .sv-info-wrap:hover .sv-tip, .sv-info-wrap:focus-within .sv-tip, .sv-info-wrap.is-tip .sv-tip { display: block; opacity: 1; visibility: visible; transform: none; }
  .sv-tip { display: block; }
  .sv-tip-corner { position: absolute; left: 18px; top: calc(100% - 2px); width: 4px; height: 8px; transform: rotate(-90deg); }
}

/* ============ Быстрый просмотр услуги (макет 14280:472021) ============ */
.qv { z-index: 200; }
.qv-page { position: relative; display: flex; flex-direction: column; width: 760px; max-width: calc(100vw - 32px); height: min(640px, calc(100vh - 64px)); border-radius: 24px; background: #fff; box-shadow: 0 20px 24px -4px rgba(0,0,0,.08), -1px 8px 8px -4px rgba(0,0,0,.03), 0 -3px 3px -1.5px rgba(0,0,0,.04); overflow: hidden; animation: lm-in .18s ease-out; }
.qv-head { position: relative; flex: none; padding: 24px 24px 8px 40px; }
.qv-tags { display: flex; gap: 5px; margin: 0; padding: 10px 0; font-size: 13px; line-height: 20px; font-weight: 500; color: #737373; white-space: nowrap; overflow: hidden; }
.qv-x { position: absolute; top: 16px; right: 16px; display: flex; padding: 10px; border: 0; border-radius: 12px; background: #e3e7e8; cursor: pointer; }
.qv-x:hover { background: #d8dcdd; }
.qv-body { flex: 1; min-height: 0; display: flex; gap: 24px; padding: 0 24px 32px; }
.qv-left { flex: none; width: 320px; display: flex; flex-direction: column; gap: 8px; }
.qv-img { height: 200px; margin-bottom: 24px; border-radius: 20px; overflow: hidden; }
.qv-img img { width: 100%; height: 100%; object-fit: cover; }
.qv-offers { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.qv-offers .sv-offer:hover { background: rgba(123,97,255,.16); }
.qv-note { height: 56px; padding: 16px 32px; border: 0; border-radius: 12px; background: var(--bg-secondary); font: inherit; font-size: 16px; line-height: 24px; font-weight: 500; color: #404040; cursor: pointer; }
.qv-note:hover { background: #e3e7e8; }
.qv-note-danger { padding: 16px 24px; border-radius: 16px; background: #fef2f2; color: #dc2626; }
.qv-note-danger:hover { background: #fee4e2; }
.qv-right { position: relative; flex: 1; min-width: 0; }
.qv-scroll { height: 100%; overflow-y: auto; padding-bottom: 152px; scrollbar-width: none; }
.qv-scroll::-webkit-scrollbar { display: none; }
.qv-title { margin: 0; padding: 0 56px 24px 0; font-size: 20px; line-height: 30px; font-weight: 600; color: var(--text-900); }
.qv-price { margin: 0; padding-bottom: 24px; font-size: 30px; line-height: 38px; font-weight: 700; color: #171717; opacity: .9; }
.qv-label { margin: 0; padding-bottom: 8px; font-size: 16px; line-height: 24px; font-weight: 500; color: rgba(0,0,0,.3); }
.qv-durs { display: flex; flex-wrap: wrap; gap: 8px; padding-bottom: 32px; }
.qv-durs .sv-dur { padding: 8px 12px; }
.qv-desc p { margin: 0 0 16px; font-size: 16px; line-height: 24px; color: var(--text-900); }
.qv-info { position: absolute; left: 50%; bottom: 0; width: 344px; max-width: calc(100% - 24px); transform: translateX(-50%); padding: 16px; border-radius: 20px; background: var(--bg-secondary); }
/* макет 13607:323411: белая подложка вокруг плашки, текст описания мягко уходит под неё и не просвечивает */
.qv-info::before { content: ""; position: absolute; left: -12px; right: -12px; top: -36px; bottom: -32px; z-index: -1; background: linear-gradient(rgba(255,255,255,0), #fff 24px); pointer-events: none; }
.qv-info .sv-toggle { background: #e3e7e8; }
.qv-info .sv-toggle[aria-checked="true"] { background: #7b61ff; }
.qv-book { width: 100%; height: 56px; padding: 0 32px; border: 0; font: inherit; font-weight: 500; cursor: pointer; }

/* ============ Город и салон — десктоп (макет 14083:401066) ============ */
.pk-wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px 96px; }
.pk-back { display: inline-flex; }
.pk-h { margin: 0; padding-bottom: 16px; font-size: 24px; line-height: 32px; font-weight: 600; color: var(--text-900); }
.pk-dd { position: relative; width: 360px; max-width: 100%; padding-bottom: 32px; }
.pk-field { display: flex; align-items: center; gap: 8px; width: 100%; padding: 5px 11px 5px 15px; border: 1px solid transparent; border-radius: 12px; background: var(--bg-secondary); font: inherit; text-align: left; cursor: pointer; transition: border-color .15s, background .15s; }
.pk-field:hover { background: #e3e7e8; }
.pk-field.is-open { border-color: #7b61ff; background: #fff; }
.pk-f-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.pk-f-label { font-size: 13px; line-height: 20px; color: #737373; }
.pk-f-value { font-size: 16px; line-height: 24px; color: var(--text-900); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pk-f-chev { flex: none; transform: rotate(180deg); transition: transform .15s; }
.pk-field.is-open .pk-f-chev { transform: none; }
.pk-list-dd { position: absolute; left: 0; right: 0; top: 64px; z-index: 20; max-height: 410px; padding: 6px; overflow-y: auto; border-radius: 16px; background: #fff; box-shadow: 0 12px 16px -4px rgba(0,0,0,.08), 0 4px 6px -2px rgba(0,0,0,.03), 0 0 0 1px rgba(0,0,0,.04); scrollbar-width: thin; scrollbar-color: #e5e5e5 transparent; }
.pk-opt { display: flex; align-items: center; justify-content: space-between; width: 100%; height: 48px; padding: 12px; margin-bottom: 2px; border: 0; border-radius: 10px; background: none; font: inherit; font-size: 16px; line-height: 24px; color: var(--text-900); text-align: left; cursor: pointer; }
.pk-opt:hover, .pk-opt.is-on { background: #f5f5f5; }
.pk-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; padding-bottom: 48px; }
.pk-card { display: flex; align-items: flex-start; gap: 16px; padding: 14px; border: 2px solid transparent; border-radius: 20px; background: var(--bg-secondary); font: inherit; text-align: left; cursor: pointer; transition: background .15s, border-color .15s; }
.pk-card:hover { background: #e3e7e8; }
.pk-card.is-on { border-color: #7b61ff; background: var(--bg-secondary); }
.pk-info { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.pk-name { padding-bottom: 8px; font-size: 16px; line-height: 24px; font-weight: 600; color: var(--text-900); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pk-addr { padding-bottom: 8px; font-size: 13px; line-height: 20px; color: #525252; }
.pk-hours { font-size: 13px; line-height: 20px; color: #737373; }
.pk-radio { position: relative; flex: none; width: 24px; height: 24px; border-radius: 50%; background: #fff; }
.pk-card.is-on .pk-radio { background: #7b61ff; }
.pk-card.is-on .pk-radio::after { content: ""; position: absolute; inset: 30%; border-radius: 50%; background: #fff; }
.pk-foot { display: flex; justify-content: flex-end; padding: 32px 0 16px; border-top: 1px solid #e5e5e5; }
.pk-ok { height: 56px; padding: 0 32px; border: 0; font: inherit; font-weight: 500; cursor: pointer; }
@media (min-width: 861px) { .pk-back { padding: 16px 0 32px; } .pk-wrap { padding-left: 0; padding-right: 0; } }
@media (max-width: 1160px) and (min-width: 861px) { .pk-wrap { padding-left: 32px; padding-right: 32px; } }
@media (max-width: 860px) {
  .pk-grid { grid-template-columns: 1fr; gap: 8px; }
  .pk-foot { position: sticky; bottom: 0; padding: 16px 0 max(16px, env(safe-area-inset-bottom)); background: #fff; }
  .pk-ok { width: 100%; }
}

/* ============ Мастера, дата и гости — десктоп (макеты 13638:172112, 13639:191249, 13638:173675) ============ */
.sld { display: none; }
@media (min-width: 861px) {
  .page-slot .sl-wrap, .page-slot .sv-bar { display: none; }
  .sld { display: block; max-width: 1120px; margin: 0 auto; }
  .sld .sv-back { padding: 16px 0 32px; }
  .sld-h { margin: 0; padding-bottom: 16px; font-size: 24px; line-height: 32px; font-weight: 600; color: var(--text-900); }
  .sld-masters { display: flex; gap: 16px; padding-bottom: 32px; }
  .sld-masters.is-pair { padding-bottom: 32px; }
  .sld-mcol { width: 320px; }
  .sld-mlabel { margin: 0 0 10px; font-size: 16px; line-height: 24px; color: #737373; }
  .sld-dd { position: relative; }
  .sld-field { display: flex; align-items: center; gap: 8px; width: 100%; padding: 0 11px 0 7px; border: 1px solid transparent; border-radius: 12px; background: var(--bg-secondary); font: inherit; text-align: left; cursor: pointer; transition: background .15s, border-color .15s; }
  .sld-field:hover { background: #e3e7e8; }
  .sld-dd.is-open .sld-field { border-color: #7b61ff; background: #fff; }
  .sld-ava { flex: none; display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; background: #fff; overflow: hidden; }
  .sld-dd.is-open .sld-field .sld-ava, .sld-opt .sld-ava { background: var(--bg-secondary); }
  .sld-ava img { width: 100%; height: 100%; object-fit: cover; }
  .sld-ava img[src$=".svg"] { width: 24px; height: 24px; }
  .sld-f-text { flex: 1; min-width: 0; display: flex; flex-direction: column; padding: 5px 0; }
  .sld-f-label { font-size: 13px; line-height: 20px; color: #737373; }
  .sld-f-value { font-size: 16px; line-height: 24px; color: var(--text-900); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .sld-chev { flex: none; margin-left: 4px; transform: rotate(180deg); transition: transform .15s; }
  .sld-dd.is-open .sld-chev { transform: none; }
  .sld-list { position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 20; display: flex; flex-direction: column; gap: 2px; padding: 8px 0; border-radius: 12px; background: #fff; box-shadow: 0 12px 16px -4px rgba(0,0,0,.08), 0 4px 6px -2px rgba(0,0,0,.03), -1px -1px 2px -1px rgba(0,0,0,.04); }
  .sld-opt { display: flex; align-items: center; gap: 8px; width: 100%; padding: 6px 8px; border: 0; background: #fff; font: inherit; text-align: left; cursor: pointer; }
  .sld-opt:hover { background: var(--bg-secondary); }
  .sld-opt:hover .sld-ava { background: #e3e7e8; }
  .sld-o-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
  .sld-o-name { font-size: 16px; line-height: 24px; color: var(--text-900); }
  .sld-o-sub { font-size: 13px; line-height: 20px; color: #737373; }
  .sld-dt { display: flex; align-items: flex-start; gap: 32px; padding-bottom: 48px; }
  .sld-cal { flex: none; width: 320px; display: flex; flex-direction: column; gap: 16px; }
  .sld-cal-head { display: flex; align-items: center; justify-content: space-between; }
  .sld-month { display: flex; gap: 8px; margin: 0; font-size: 20px; line-height: 30px; font-weight: 600; color: var(--text-900); }
  .sld-arrows { display: flex; gap: 8px; }
  .sld-prev, .sld-next { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 12px; background: var(--bg-secondary); cursor: pointer; }
  .sld-next { background: none; }
  .sld-prev:hover:not(:disabled) { background: #e3e7e8; }
  .sld-prev:disabled, .sld-next:disabled { opacity: .56; cursor: default; }
  .sld-grid { display: grid; grid-template-columns: repeat(7, 44px); justify-content: space-between; row-gap: 0; }
  .sld-w, .sld-c { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; margin: 2px; padding: 0; border: 0; border-radius: 8px; background: none; font: inherit; font-size: 16px; line-height: 24px; font-weight: 500; }
  .sld-w { color: #a3a3a3; }
  .sld-c { color: #171717; cursor: pointer; transition: background .15s; }
  .sld-c.is-we { color: #dc2626; }
  .sld-c:hover:not(:disabled):not(.is-on) { background: var(--bg-secondary); }
  .sld-c:disabled { color: #a3a3a3; cursor: default; }
  .sld-c.is-we:disabled { color: #dc2626; opacity: .45; }
  .sld-c.is-on { background: #7b61ff; color: #fff; }
  .sld-c-empty { cursor: default; }
  .sld-line { flex: none; align-self: stretch; width: 1px; margin-right: -1px; max-height: 320px; background: #e5e5e5; }
  .sld-times { flex: 1; min-width: 0; }
  .sld-part { margin: 0; padding-bottom: 16px; font-size: 16px; line-height: 24px; color: #737373; }
  .sld-trow { display: flex; flex-wrap: wrap; gap: 8px; padding-bottom: 24px; }
  .sld-t { padding: 10px 16px; border: 0; border-radius: 999px; background: var(--bg-secondary); font: inherit; font-size: 14px; line-height: 20px; font-weight: 500; color: #404040; cursor: pointer; }
  .sld-t:hover:not(.is-on) { background: #e3e7e8; }
  .sld-t.is-on { background: #7b61ff; color: #fff; box-shadow: inset 0 0 0 1px rgba(0,0,0,.18), inset 0 -2px 0 rgba(0,0,0,.05), 0 1px 2px rgba(0,0,0,.05); }
  .sld-empty { margin: 0; padding: 16px; border-radius: 16px; background: #f5f5f5; font-size: 14px; line-height: 20px; color: #525252; }
  .sld-guest { padding-bottom: 56px; }
  .sld-gray { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 16px 32px; border: 0; border-radius: 12px; background: var(--bg-secondary); font: inherit; font-size: 16px; line-height: 24px; font-weight: 500; color: #404040; cursor: pointer; }
  .sld-gray:hover:not(:disabled) { background: #e3e7e8; }
  .sld-add:disabled { color: #a3a3a3; cursor: default; }
  .sld-add:disabled img { opacity: .4; }
  .sld-del { color: #7b61ff; }
  .sld-hint { margin: 8px 0 0; font-size: 14px; line-height: 20px; color: #d92d20; }
  .sld-note { margin: 16px 0 0; font-size: 16px; line-height: 24px; color: #737373; }
  .sld-g2 { display: flex; align-items: center; gap: 16px; padding-bottom: 16px; }
  .sld-g2-name { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; padding: 16px 0; font-size: 16px; line-height: 24px; color: var(--text-900); }
  .sld-g2-name img { flex: none; }
  .sld-bar { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 96px; padding: 32px 0 56px; border-top: 1px solid #e5e5e5; }
  .sld-chips { flex: 1; min-width: 0; display: flex; gap: 16px; align-self: stretch; padding-right: 16px; border-right: 1px solid #e5e5e5; }
  .sld-chip { width: 210px; padding: 8px 16px; border-radius: 16px; background: var(--bg-secondary); }
  .sld-chip-name { display: -webkit-box; height: 44px; margin: 0; padding-bottom: 4px; overflow: hidden; -webkit-line-clamp: 2; -webkit-box-orient: vertical; font-size: 13px; line-height: 20px; color: var(--text-900); }
  .sld-chip-meta { margin: 0; font-size: 13px; line-height: 20px; color: #737373; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .sld-sum { flex: none; display: flex; gap: 16px; padding-left: 32px; }
  .sld-sum-text { width: 200px; }
  .sld-total { margin: 0; padding-bottom: 8px; font-size: 16px; line-height: 24px; font-weight: 500; color: var(--text-900); white-space: nowrap; }
  .sld-promo { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 13px; line-height: 20px; color: var(--text-900); }
  .sld-crown { display: flex; padding: 4px; border-radius: 50%; background: linear-gradient(180deg, #ffc700, rgba(255,199,0,.4)); }
  .sld-go { height: 56px; padding: 0 32px; border: 0; font: inherit; font-weight: 500; cursor: pointer; }
}
@media (max-width: 1160px) and (min-width: 861px) { .sld { padding: 0 32px; } }

/* Карточка услуги: при наведении плавно увеличивается (макет 13657:248238) */
@media (min-width: 861px) and (hover: hover) {
  .sc { transition: transform .22s ease; will-change: transform; }
  .sc:hover { z-index: 1; transform: scale(1.034); }
}
@media (prefers-reduced-motion: reduce) { .sc { transition: none; } }

/* ============ Услуги для второго гостя ============ */
.bs-page:focus { outline: none; }
.g2 .bs-page { max-width: 600px; height: min(600px, calc(100vh - 96px)); }
.g2 .bs-scroll { padding-top: 0; padding-bottom: 16px; }
.g2-sub { margin: -8px 0 16px; font-size: 14px; line-height: 20px; color: #737373; }
.g2-head { flex: none; padding: 24px 24px 0; }
.g2-head .bs-title { touch-action: none; }
.g2-chips { display: flex; gap: 8px; margin: 0 -24px; padding: 4px 24px 12px; overflow-x: auto; background: #fff; scrollbar-width: none; border-bottom: 1px solid transparent; transition: border-color .15s; }
.g2.is-scrolled .g2-chips { border-bottom-color: #e5e5e5; }
.g2-chip:focus:not(:focus-visible) { outline: none; }
.g2-chips::-webkit-scrollbar { display: none; }
.g2-chip { flex: none; padding: 8px 14px; border: 0; border-radius: 999px; background: var(--bg-secondary); font: inherit; font-size: 14px; line-height: 20px; font-weight: 500; color: #404040; cursor: pointer; transition: background .15s, color .15s; }
.g2-chip:hover:not(.is-on) { background: #e3e7e8; }
.g2-chip.is-on { background: #7b61ff; color: #fff; }
.g2-h { margin: 16px 0 8px; font-size: 16px; line-height: 24px; font-weight: 600; color: var(--text-900); }
.g2-sec:first-child .g2-h { margin-top: 4px; }
.g2-row { display: flex; align-items: center; gap: 12px; width: calc(100% + 16px); margin: 0 -8px; padding: 8px; border: 0; border-radius: 16px; background: none; font: inherit; text-align: left; cursor: pointer; transition: background .15s; }
.g2-row:hover { background: #f5f5f5; }
.g2-row.is-on { background: rgba(123,97,255,.08); }
.g2-img { flex: none; width: 56px; height: 56px; border-radius: 12px; object-fit: cover; }
.g2-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.g2-name { font-size: 16px; line-height: 22px; color: var(--text-900); }
.g2-meta { font-size: 13px; line-height: 20px; color: #737373; }
.g2-price { flex: none; font-size: 15px; line-height: 22px; font-weight: 600; color: var(--text-900); white-space: nowrap; }
.g2-check { flex: none; width: 24px; height: 24px; border-radius: 50%; border: 1.5px solid #d4d4d4; }
.g2-row.is-on .g2-check { border: 0; background: #7b61ff url(assets/catalog/checkbox-check.svg) center / 16.8px 16.8px no-repeat; }
@media (max-width: 860px) {
  .g2 .bs-page { height: 72vh; height: 72dvh; max-height: calc(100% - 48px); }
  .g2-head { padding: 0 16px; }
  .g2-chips { margin: 0 -16px; padding: 4px 16px 12px; }
  .g2-img { width: 48px; height: 48px; }
}

/* карточка каталога на десктопе: клик по фото и тексту ведёт в «Подробнее» */
@media (min-width: 861px) { .sc[data-sid] .sc-img, .sc[data-sid] .sc-meta, .sc[data-sid] .sc-name, .sc[data-sid] .sc-price { cursor: pointer; } }

/* ============ Единые отступы экранов каталога и записи: по краям шапки (контейнер 1280 / поля 32) ============ */
@media (min-width: 861px) {
  .cat-wrap { max-width: 1280px; padding: 0 32px; }
  .page-service .sv-wrap { max-width: 1280px; padding: 0 32px 96px; grid-template-columns: minmax(0, 1fr) 360px; }
  .page-service .sv-img { height: auto; aspect-ratio: 720 / 438; }
  .pk-wrap { max-width: 1280px; padding: 0 32px 96px; }
  .sld { max-width: 1280px; padding: 0 32px; }
  .choose-page { padding-left: 32px; padding-right: 32px; }
  .choose-page .choose-card { max-width: 1216px; }
}
@media (max-width: 1100px) and (min-width: 861px) { .page-service .sv-wrap { grid-template-columns: minmax(0, 1fr) 340px; column-gap: 32px; } }

/* Ховеры: длительность и переключатель «для двоих» */
.sv-dur { transition: background .15s, color .15s; }
@media (hover: hover) {
  .sv-dur:hover:not(.is-on) { background: #e3e7e8; color: #171717; }
  .sv-dur.is-on:hover { background: #6952d9; }
  .sv-toggle:hover { background: #e3e7e8; }
  .sv-buy .sv-toggle:hover, .qv-info .sv-toggle:hover { background: #d4d9da; }
  .sv-toggle[aria-checked="true"]:hover, .sv-buy .sv-toggle[aria-checked="true"]:hover, .qv-info .sv-toggle[aria-checked="true"]:hover { background: #6952d9; }
  .sv-toggle:hover span { box-shadow: 0 1px 3px rgba(0,0,0,.14), 0 2px 4px -1px rgba(0,0,0,.12); }
  .sv-q:hover img { opacity: .75; }
}
.sv-toggle:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; }

/* Каталог: салон выбран (макет 14280:470405) */
.salon-bar.is-set .sb-info { background: var(--bg-secondary); }
.salon-bar.is-set .sb-info:hover { background: #e3e7e8; }
.salon-bar.is-set .sb-info img { content: url(assets/catalog/info-grad.svg); }
.salon-bar.is-set .sb-tip { width: 220px; }

/* Каталог салона (макет 13641:205828) и кнопка «Услуги в этом салоне» */
.sv-s-btn { display: flex; align-items: center; justify-content: center; height: 56px; margin-top: 16px; border: 1px solid #e5e5e5; border-radius: 12px; background: #fff; font-size: 16px; line-height: 24px; font-weight: 500; color: #7b61ff; transition: background .15s, border-color .15s; }
.sv-s-btn:hover { background: #f5f3ff; border-color: #d9d1ff; }
@media (min-width: 861px) {
  .cat-salon .page-catalog .cb-head, .cat-salon .salon-bar, .cat-salon .cf-icon { display: none !important; }
  .cat-crumbs { display: flex !important; padding: 16px 0 32px; }
}
/* карточки стали шире после выравнивания по шапке: высота фото фиксированная, как в макете */
@media (min-width: 861px) { .sc:not(.sc-promo) .sc-img { aspect-ratio: auto; height: 240px; } }

/* Блок салона в каталоге (макет 13605:259396) */
.sb-info { background: var(--bg-secondary); transition: background .15s; }
.sb-info:hover, .sb-info:focus-visible { background: #e3e7e8; }
.sb-info img { content: url(assets/catalog/info-grad.svg); }
.sb-tip { width: auto; min-width: 144px; max-width: 240px; right: 0; white-space: normal; }
.sb-tip img { right: 24px; }
.sb-city-name { transition: color .15s; }
.sb-city-name:hover, .sb-city-name:focus-visible { color: #7b61ff; text-decoration: none; }
.phone { transition: color .15s; }
.phone:hover, .phone:focus-visible { color: #7b61ff; }

/* Липкая панель услуги (десктоп) */
.svs { display: none; }
@media (min-width: 861px) {
  .svs { position: fixed; left: 0; right: 0; top: 0; z-index: 29; display: block; padding-top: 40px; border-radius: 0 0 32px 32px; background: #fff; box-shadow: 0 12px 16px -4px rgba(0,0,0,.08), 0 4px 6px -2px rgba(0,0,0,.03); opacity: 0; visibility: hidden; transform: translateY(-12px); transition: opacity .2s, transform .2s, visibility .2s; }
  .svs.is-on { opacity: 1; visibility: visible; transform: none; }
  .svs-in { display: flex; align-items: center; gap: 16px; max-width: 1280px; margin: 0 auto; padding: 12px 32px; }
  .svs-img { flex: none; width: 56px; height: 56px; border-radius: 12px; object-fit: cover; }
  .svs-text { flex: 1; min-width: 0; }
  .svs-name { margin: 0; font-size: 18px; line-height: 26px; font-weight: 600; color: var(--text-900); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .svs-meta { margin: 0; font-size: 14px; line-height: 20px; color: #737373; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .svs-right { flex: none; display: flex; align-items: center; gap: 24px; }
  .svs-price { font-size: 24px; line-height: 32px; font-weight: 700; color: #171717; }
  .svs-book { height: 56px; padding: 0 32px; border: 0; font: inherit; font-weight: 500; cursor: pointer; }
  body:has(.svs.is-on) .site-header.is-stuck { box-shadow: none; }
}

/* ============ Политика конфиденциальности (макеты 13908:232156, 13908:234366) ============ */
.pv-wrap { padding-top: 40px; padding-bottom: 96px; }
.pv-title { margin: 0; padding-bottom: 16px; font-size: 36px; line-height: 44px; font-weight: 600; letter-spacing: -.72px; color: var(--text-900); }
.pv-date { margin: 0; padding-bottom: 32px; font-size: 18px; line-height: 24px; color: #525252; opacity: .8; }
.pv-text { font-size: 16px; line-height: 24px; color: #525252; }
.pv-text p { margin: 0 0 16px; }
.pv-h { margin: 0 0 16px; font-size: 16px; line-height: 24px; font-weight: 600; color: #525252; }
.pv-text p + .pv-h { margin-top: 16px; }
.pv-link { color: #7b61ff; word-break: break-all; }
.pv-link:hover { text-decoration: underline; }
@media (max-width: 860px) {
  .pv-wrap { padding-top: 16px; padding-bottom: 48px; }
  .pv-title { padding-bottom: 8px; font-size: 28px; line-height: 36px; letter-spacing: -.4px; }
  .pv-date { padding-bottom: 24px; font-size: 14px; line-height: 20px; }
  .pv-text { font-size: 14px; line-height: 22px; }
  .pv-h { font-size: 14px; line-height: 22px; }
}

/* ============ Куки-баннер (макет 13485:507576) ============ */
.ck { position: fixed; left: 24px; bottom: 24px; z-index: 60; display: flex; align-items: center; gap: 12px; width: 389px; max-width: calc(100vw - 32px); padding: 12px 12px 12px 20px; border-radius: 20px; background: #fff; box-shadow: 0 20px 24px -4px rgba(0,0,0,.08), -1px 8px 8px -4px rgba(0,0,0,.03), 0 -3px 3px -1.5px rgba(0,0,0,.04), 0 0 0 1px rgba(0,0,0,.03); animation: ck-in .3s ease-out; }
.ck.is-out { opacity: 0; transform: translateY(12px); transition: opacity .2s, transform .2s; }
@keyframes ck-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.ck-text { flex: 1; margin: 0; font-size: 14px; line-height: 20px; color: #404040; }
.ck-text a { color: #7b61ff; }
.ck-text a:hover { text-decoration: underline; }
.ck-ok { flex: none; padding: 8px 12px; border: 0; border-radius: 12px; background: var(--bg-secondary); font: inherit; font-size: 14px; line-height: 20px; font-weight: 500; color: #404040; cursor: pointer; transition: background .15s; }
.ck-ok:hover { background: #e3e7e8; }
@media (max-width: 860px) {
  .ck { left: 16px; right: 16px; width: auto; bottom: calc(max(16px, env(safe-area-inset-bottom)) + 88px); }
  body.app-page .ck { bottom: calc(max(16px, env(safe-area-inset-bottom)) + 96px); }
}

.footer-privacy { color: inherit; transition: color .15s; }
.footer-privacy:hover { color: #7b61ff; }

/* Мобильная запись: второй гость (макеты 13597:238815, 13597:239998) */
.sl-guest2[hidden] { display: none; }
.sl-g2-row { display: flex; align-items: center; gap: 16px; }
.sl-g2-name { flex: 1; min-width: 0; margin: 0; font-size: 16px; line-height: 24px; color: var(--text-900); }
.sl-g2-del { flex: none; padding: 10px 20px; border: 0; border-radius: 12px; background: var(--bg-secondary); font: inherit; font-size: 14px; line-height: 20px; font-weight: 500; color: #7b61ff; cursor: pointer; }
.sl-g2-del:hover { background: #e3e7e8; }
.sl-badge { background: linear-gradient(180deg, #ffd84d, #ffc700); }
/* Мобильный мини-каталог «Для второго гостя» (макет 13597:239884) */
.g2m { z-index: 220; align-items: stretch; padding: 0; background: #fff; }
.g2m-page { display: flex; flex-direction: column; width: 100%; height: 100%; background: #fff; animation: sh-in .22s ease-out; }
.g2m-top { flex: none; display: flex; align-items: center; padding: 8px 8px 8px; }
.g2m-side { width: 40px; }
.g2m-title { flex: 1; margin: 0; text-align: center; font-size: 18px; line-height: 24px; font-weight: 600; color: var(--text-900); }
.g2m-x { display: flex; padding: 8px; border: 0; border-radius: 10px; background: none; cursor: pointer; }
.g2m-scroll { flex: 1; min-height: 0; overflow-y: auto; padding-bottom: max(24px, env(safe-area-inset-bottom)); }
.g2m-chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 8px 16px 24px; }
.g2m-card { padding: 0; border: 0; font: inherit; text-align: left; display: flex; flex-direction: column; }
.g2m-card .sc-img { position: relative; display: block; width: 100%; }
.g2m-card .sc-img img { display: block; }
.g2m-card .sc-price, .g2m-card .sc-name { display: block; }
.g2m-card.is-on .sc-img { box-shadow: 0 0 0 3px #7b61ff; }
.g2m-mark { position: absolute; top: 10px; right: 10px; width: 28px; height: 28px; border-radius: 50%; background: #7b61ff url(assets/catalog/checkbox-check.svg) center / 18px 18px no-repeat; box-shadow: 0 0 0 2px #fff; }

/* ============ Онлайн-запись: карточка со степпером (макеты 13709:752553, 13712:759446, 13845:213889, 13747:763371) ============ */
.wz-top { display: none; }
@media (min-width: 861px) {
  .wz { max-width: 1280px; margin: 0 auto; padding: 0 32px 96px; }
  .wz-card { padding: 32px; border-radius: 40px; background: #fff; box-shadow: 0 12px 16px -4px rgba(0,0,0,.08), 0 4px 6px -2px rgba(0,0,0,.03), 0 0 0 1px rgba(0,0,0,.04); }
  .wz-card > .pk-wrap, .wz-card > .cat-wrap, .page-service .wz-card > .sv-wrap, .wz-card > .sld { max-width: none; margin: 0; padding: 0; }
  .flow-online .sv-back, .flow-online .pk-back, .flow-online .cat-crumbs, .flow-online .salon-bar.is-set { display: none !important; }
  .flow-online .cat-more { padding-bottom: 16px; }
  .flow-online .pk-grid { padding-bottom: 32px; }
  .flow-online .pk-foot { padding-bottom: 0; }
  .flow-online .sld-bar { margin-bottom: 0; padding-bottom: 0; }

  .wz-top { display: flex; gap: 12px; padding-bottom: 32px; }
  .wz-back { display: inline-flex; align-items: center; gap: 6px; flex: none; height: 56px; padding: 16px 24px 16px 16px; border-radius: 999px; background: var(--bg-secondary); font-size: 16px; line-height: 24px; font-weight: 500; color: #404040; transition: background .15s, color .15s; }
  .wz-back span { padding: 0 2px; }
  .wz-back:hover, .wz-back:focus-visible { background: #e3e7e8; color: #7b61ff; }
  .wz-back:hover img, .wz-back:focus-visible img { content: url(assets/catalog/back-24-brand.svg); }
  .wz-steps { flex: 1; min-width: 0; display: flex; align-items: center; gap: 16px; margin: 0; padding: 8px; list-style: none; border-radius: 999px; background: var(--bg-secondary); overflow: hidden; }
  .wz-step { display: flex; align-items: center; gap: 8px; border-radius: 999px; font-size: 16px; line-height: 24px; color: #171717; white-space: nowrap; }
  .wz-step.is-next { opacity: .35; }
  .wz-num { display: flex; align-items: center; justify-content: center; min-width: 40px; height: 40px; padding: 0 10px; border-radius: 999px; background: #fff; font-weight: 600; transition: background .15s, color .15s; }
  .wz-step.is-cur .wz-num { background: #7b61ff; color: #fff; }
  a.wz-step { transition: color .15s; }
  a.wz-step:hover, a.wz-step:focus-visible { color: #7b61ff; }
  a.wz-step:hover .wz-num, a.wz-step:focus-visible .wz-num { color: #7b61ff; box-shadow: inset 0 0 0 2px #7b61ff; }
}

/* ============ Онлайн-запись, шаг «Данные» (макет 13755:790238) ============ */
.dt-wrap { padding: 16px 16px 96px; }
.dt-step { display: flex; flex-direction: column; align-items: flex-start; }
.dt-step[hidden] { display: none; }
.dt-h { margin: 0; padding-bottom: 16px; font-size: 24px; line-height: 32px; font-weight: 600; color: var(--text-900); }
.dt-text { margin: 0; padding-bottom: 16px; font-size: 16px; line-height: 24px; color: #737373; }
.dt-text span { white-space: nowrap; }
.dt-field { width: 360px; max-width: 100%; border: 1px solid transparent; border-radius: 12px; background: var(--bg-secondary); transition: border-color .15s, background .15s; }
.dt-field:hover { background: #e3e7e8; }
.dt-field:focus-within { border-color: #7b61ff; background: #fff; }
.dt-field.is-error { border-color: #f04438; }
.dt-input { display: block; width: 100%; height: 54px; padding: 15px 11px 15px 15px; border: 0; background: none; font: inherit; font-size: 16px; line-height: 24px; color: var(--text-900); outline: none; }
.dt-input::placeholder { color: #737373; }
.dt-err { margin: 0; min-height: 16px; padding-top: 4px; font-size: 14px; line-height: 20px; color: #d92d20; }
.dt-err:empty { padding-top: 0; }
.dt-go { height: 56px; margin-top: 16px; padding: 0 32px; border: 0; font: inherit; font-weight: 500; cursor: pointer; }
.dt-wait { margin: 0; padding: 12px 0; font-size: 16px; line-height: 24px; font-weight: 500; color: #737373; opacity: .56; }
.dt-wait[hidden] { display: none; }
.dt-link { padding: 12px 0; border: 0; background: none; font: inherit; font-size: 16px; line-height: 24px; font-weight: 500; color: #7b61ff; cursor: pointer; transition: color .15s; }
.dt-link[hidden] { display: none; }
.dt-link:hover, .dt-link:focus-visible { color: #5b3fe6; }
.dt-hint { margin: 8px 0 0; font-size: 13px; line-height: 20px; color: #a3a3a3; }
@media (min-width: 861px) {
  .wz-card > .dt-wrap { padding: 0 0 16px; }
  .dt-err { min-height: 0; }
}

/* ============ Онлайн-запись: после выбора пути заголовок и переключатель скрыты — больше места на небольших экранах ============ */
.flow-online .cb-toggle { display: none !important; }
.flow-online .cb-head { position: absolute !important; width: 1px; height: 1px; padding: 0 !important; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
@media (min-width: 861px) { .flow-online .wz { padding-top: 32px; } }

/* ============ Страницы «Сертификаты» и «Абонементы» (макеты 14599:1212813, 14599:1214651) ============ */
button.cb-tg { background: none; font: inherit; font-size: 16px; line-height: 24px; font-weight: 500; color: var(--text-900); cursor: pointer; }
button.cb-tg[aria-checked="true"] { border-color: #7b61ff; }
.page-subs .cb-head .cb-title { padding-bottom: 0; }
.page-certs .choose, .page-subs .choose { padding-top: 0; }
.pickup-field { width: 100%; margin-bottom: 0; border: 0; font: inherit; text-align: left; transition: background .15s; }
.pickup-field:hover { background: #e3e7e8; }
.pickup-field .select-value.is-set { color: var(--text-900); }
@media (max-width: 860px) {
  .page-certs .cb-head, .page-subs .cb-head { padding: 24px 16px; }
  .page-certs .cb-title, .page-subs .cb-title { padding-bottom: 20px; font-size: 32px; line-height: 40px; letter-spacing: -0.64px; }
  .page-subs .cb-title { padding-bottom: 0; }
  .page-certs .cb-toggle { width: 100%; }
  .page-certs .cb-tg { flex: 1; width: auto; }
}
