/* ===== Дизайн-система (PRD, раздел 11) ===== */
:root {
  --bg: #FBF7F4;
  --bg-tint: #F1EAF7;
  --surface: #FFFFFF;
  --text: #3D3A4B;
  --text-2: #6E6A7C;
  --cta: #7A5C9E;
  --cta-hover: #674A8A;
  --rose: #F6C9D7;
  --fire: #FFD9C2;
  --earth: #D4E4CF;
  --air: #CFE3F7;
  --water: #DCCFEF;
  --success: #7FB69A;
  --success-text: #2F6B4D;
  --error: #D9817F;
  --error-text: #A1403D;
  --line: #E7DFEA;
  --radius: 20px;
  --radius-sm: 12px;
  --shadow: 0 10px 30px -12px rgba(61, 58, 75, .18);
  --shadow-sm: 0 4px 14px -8px rgba(61, 58, 75, .2);
  --font-head: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-body: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.6 var(--font-body);
  overflow-x: hidden;
}
@media (min-width: 900px) { body { font-size: 18px; } }
img, svg { max-width: 100%; display: block; }
a { color: var(--cta); text-underline-offset: 3px; }
a:hover { color: var(--cta-hover); }
h1, h2, h3 { font-family: var(--font-head); font-weight: 600; line-height: 1.15; margin: 0 0 .5em; color: var(--text); }
h1 { font-size: clamp(2.3rem, 6vw, 3.7rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.9rem, 4.5vw, 2.6rem); }
h3 { font-size: 1.4rem; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--cta); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 16px; top: -60px; background: var(--cta); color: #fff; padding: 10px 16px; border-radius: 10px; z-index: 100; }
.skip-link:focus { top: 12px; color: #fff; }
.muted { color: var(--text-2); }
.small { font-size: .875rem; }
.center { text-align: center; }
.container { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 640px) { .container { padding: 0 24px; } }
.narrow { max-width: 820px; }
.icon { width: 1.25em; height: 1.25em; flex: none; }

/* ===== Кнопки ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 48px; padding: 12px 22px; border-radius: 999px; border: 1.5px solid transparent;
  font: 600 1rem/1.2 var(--font-body); text-decoration: none; cursor: pointer;
  transition: background .2s, color .2s, border-color .2s, transform .15s, box-shadow .2s;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--cta); color: #fff; box-shadow: 0 8px 20px -10px rgba(122, 92, 158, .8); }
.btn-primary:hover { background: var(--cta-hover); color: #fff; }
.btn-secondary { background: var(--surface); color: var(--cta); border-color: #CDBEE0; }
.btn-secondary:hover { border-color: var(--cta); color: var(--cta-hover); }
.btn-ghost { background: transparent; color: var(--cta); }
.btn-ghost:hover { background: var(--bg-tint); }
.btn-sm { min-height: 40px; padding: 8px 16px; font-size: .9rem; }
.btn-lg { min-height: 54px; padding: 14px 28px; font-size: 1.05rem; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; box-shadow: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.btn-row.center { justify-content: center; }
.icon-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 0; background: transparent; color: var(--text); cursor: pointer; }
.icon-btn:hover { background: var(--bg-tint); }
.link { background: none; border: 0; padding: 0; color: var(--cta); text-decoration: underline; cursor: pointer; font: inherit; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 999px; background: var(--bg-tint); font-size: .9rem; color: var(--text); }
.chip .icon { width: 1em; height: 1em; }

/* ===== Цена ===== */
.price { display: inline-flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; }
.price-old { color: var(--text-2); text-decoration-thickness: 1.5px; text-decoration-color: var(--error); font-size: .95em; }
.price-new { font-weight: 700; font-size: 1.2em; color: var(--text); }
.price-badge { align-self: center; background: var(--rose); color: #7B2E4A; font-weight: 700; font-size: .8rem; padding: 2px 8px; border-radius: 999px; }

/* ===== Шапка ===== */
.site-header { position: sticky; top: 0; z-index: 40; background: rgba(251, 247, 244, .88); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid rgba(231, 223, 234, .7); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 68px; gap: 16px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); }
.logo-mark { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: linear-gradient(135deg, var(--rose), var(--water)); color: var(--cta); font-size: 1.1rem; }
.logo-text { display: flex; flex-direction: column; line-height: 1.05; }
.logo-text b { font-family: var(--font-head); font-size: 1.45rem; font-weight: 700; }
.logo-text small { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--text-2); }
.nav-toggle { display: inline-grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 12px; background: var(--bg-tint); color: var(--text); cursor: pointer; }
.site-nav { display: none; }
.site-nav.open {
  display: flex; flex-direction: column; gap: 4px; position: absolute; top: 68px; left: 0; right: 0;
  background: var(--bg); padding: 12px 16px 20px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
}
.site-nav a:not(.btn) { padding: 12px 8px; text-decoration: none; color: var(--text); font-weight: 500; border-radius: 10px; }
.site-nav a:not(.btn):hover, .site-nav a[aria-current] { color: var(--cta); background: var(--bg-tint); }
.site-nav .btn { margin-top: 6px; }
@media (min-width: 960px) {
  .nav-toggle { display: none; }
  .site-nav, .site-nav.open { display: flex; flex-direction: row; align-items: center; gap: 4px; position: static; padding: 0; background: none; border: 0; box-shadow: none; }
  .site-nav a:not(.btn) { padding: 8px 12px; }
  .site-nav .btn { margin: 0 0 0 6px; }
}

/* ===== Hero ===== */
.hero { position: relative; overflow: hidden; padding: 40px 0 56px; background:
  radial-gradient(60% 50% at 85% 10%, rgba(246, 201, 215, .55), transparent 70%),
  radial-gradient(50% 50% at 0% 90%, rgba(207, 227, 247, .7), transparent 70%),
  radial-gradient(40% 40% at 50% 40%, rgba(220, 207, 239, .5), transparent 70%); }
.hero-grid { display: grid; gap: 32px; align-items: center; }
.eyebrow { text-transform: uppercase; letter-spacing: .16em; font-size: .78rem; font-weight: 600; color: var(--cta); margin-bottom: .8em; }
.lead { font-size: 1.12em; color: var(--text-2); max-width: 36em; }
.center .lead, .lead.center { margin-left: auto; margin-right: auto; }
.hero-price { margin-top: 20px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px; color: var(--text-2); }
.hero-media { justify-self: center; width: min(78vw, 380px); }
.portrait { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 200px 200px 28px 28px; box-shadow: var(--shadow); }
.zodiac-wheel { aspect-ratio: 1; border-radius: 0; box-shadow: none; }
.zodiac-wheel svg { width: 100%; height: 100%; overflow: visible; }
.zw-symbols { font-family: 'Segoe UI Symbol', 'Noto Sans Symbols', 'Noto Sans Symbols 2', 'Apple Symbols', sans-serif; }
.zw-rotate { transform-origin: 200px 200px; animation: zw-spin 240s linear infinite; }
@keyframes zw-spin { to { transform: rotate(360deg); } }
.portrait-sm { max-width: 300px; margin: 0 auto; }
@media (min-width: 900px) {
  .hero { padding: 72px 0 96px; }
  .hero-grid { grid-template-columns: 1.15fr .85fr; gap: 56px; }
  .hero-media { width: 100%; max-width: 420px; justify-self: end; }
}

/* ===== Секции ===== */
.section { padding: 56px 0; }
@media (min-width: 900px) { .section { padding: 88px 0; } }
.section-tint { background: var(--bg-tint); }
.section-title { text-align: center; margin-bottom: .4em; }
.section-title.left { text-align: left; }
.section-lead { text-align: center; color: var(--text-2); max-width: 40em; margin: 0 auto 32px; }
.page-head { padding: 48px 0 24px; background: linear-gradient(180deg, var(--bg-tint), var(--bg)); }
.page-head.compact { padding-bottom: 8px; }
.page-head h1 { margin-bottom: .3em; }
.crumbs { font-size: .88rem; color: var(--text-2); margin-bottom: 16px; }
.crumbs a { color: var(--text-2); }

.cards-4, .cards-3 { display: grid; gap: 16px; }
@media (min-width: 640px) { .cards-4, .cards-3 { grid-template-columns: repeat(2, 1fr); gap: 20px; } }
@media (min-width: 1000px) { .cards-4 { grid-template-columns: repeat(4, 1fr); } .cards-3 { grid-template-columns: repeat(3, 1fr); } }

.feature-card, .service-card, .review-card, .trait-card, .love-item, .pair-card {
  background: var(--surface); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-sm); border: 1px solid rgba(231, 223, 234, .6);
}
.feature-card h3 { font-size: 1.35rem; }
.feature-card p { margin: 0; font-size: .95rem; }
.feature-icon { display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; background: linear-gradient(135deg, var(--rose), var(--water)); color: var(--cta); margin-bottom: 16px; }
.feature-icon .icon { width: 26px; height: 26px; }

/* Совместимость (мини) */
.compat-mini { display: grid; gap: 12px; align-items: end; background: var(--surface); padding: 20px; border-radius: var(--radius); box-shadow: var(--shadow); text-align: left; }
.compat-plus { display: none; }
@media (min-width: 760px) {
  .compat-mini { grid-template-columns: 1fr auto 1fr auto; padding: 24px; }
  .compat-plus { display: block; font-family: var(--font-head); font-size: 2rem; color: var(--cta); padding-bottom: 6px; }
}

/* Поля */
.field { display: flex; flex-direction: column; gap: 6px; font-size: .92rem; font-weight: 600; color: var(--text); }
.field > span:first-child { display: flex; gap: 6px; align-items: baseline; }
.field .opt { font-weight: 400; color: var(--text-2); font-size: .85em; }
input[type="text"], input[type="tel"], input[type="date"], input[type="time"], input[type="number"], input[type="password"], select, textarea {
  width: 100%; min-height: 48px; padding: 11px 14px; border: 1.5px solid #D9CFE3; border-radius: var(--radius-sm);
  background: #fff; color: var(--text); font: 400 1rem/1.4 var(--font-body); transition: border-color .2s, box-shadow .2s;
}
textarea { min-height: 110px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--cta); box-shadow: 0 0 0 4px rgba(122, 92, 158, .15); }
input[aria-invalid="true"], select[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: var(--error); }
.field-error { color: var(--error-text); font-size: .85rem; font-weight: 500; }
.field-hint { color: var(--text-2); font-size: .85rem; font-weight: 400; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .92rem; cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--cta); flex: none; }

/* ===== Знаки ===== */
.element-group { margin-bottom: 28px; }
.element-title { display: flex; align-items: center; gap: 10px; font-size: 1.5rem; }
.dot { width: 14px; height: 14px; border-radius: 50%; }
.el-fire { --el: var(--fire); } .el-earth { --el: var(--earth); } .el-air { --el: var(--air); } .el-water { --el: var(--water); }
.dot { background: var(--el); border: 1px solid rgba(61, 58, 75, .15); }
.sign-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); }
.sign-card {
  display: grid; grid-template-columns: auto 1fr; grid-template-areas: "sym name" "sym dates" "key key";
  column-gap: 14px; row-gap: 2px; padding: 18px; border-radius: var(--radius); text-decoration: none; color: var(--text);
  background: linear-gradient(140deg, var(--el), #fff 140%); border: 1px solid rgba(61, 58, 75, .06); transition: transform .2s, box-shadow .2s;
}
.sign-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); color: var(--text); }
.sign-sym { grid-area: sym; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: rgba(255, 255, 255, .7); font-size: 1.6rem; color: var(--cta); font-family: 'Segoe UI Symbol', 'Noto Sans Symbols', 'Apple Symbols', var(--font-body); }
.sign-name { grid-area: name; font-family: var(--font-head); font-weight: 700; font-size: 1.5rem; line-height: 1.1; align-self: end; }
.sign-dates { grid-area: dates; font-size: .85rem; color: var(--text-2); }
.sign-key { grid-area: key; margin-top: 10px; font-size: .92rem; }

.sign-head { background: linear-gradient(180deg, var(--el), var(--bg)); }
.el-fire-bg { --el: var(--fire); } .el-earth-bg { --el: var(--earth); } .el-air-bg { --el: var(--air); } .el-water-bg { --el: var(--water); }
.sign-hero-sym { display: inline-grid; place-items: center; width: 92px; height: 92px; border-radius: 50%; background: rgba(255, 255, 255, .75); font-size: 3rem; color: var(--cta); margin-bottom: 12px; box-shadow: var(--shadow-sm); font-family: 'Segoe UI Symbol', 'Noto Sans Symbols', 'Apple Symbols', var(--font-body); }
.sign-facts { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.sign-facts span { background: rgba(255, 255, 255, .7); padding: 4px 12px; border-radius: 999px; font-size: .9rem; }

.trait-grid { display: grid; gap: 16px; }
@media (min-width: 760px) { .trait-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; } }
.trait-card { position: relative; padding-top: 28px; }
.trait-card::before { content: ''; position: absolute; left: 24px; top: 0; width: 48px; height: 4px; border-radius: 0 0 4px 4px; }
.trait-plus::before { background: var(--success); }
.trait-minus::before { background: var(--rose); }
.trait-lead { font-weight: 500; }
.trait-card dl { margin: 0; display: grid; gap: 4px; }
.trait-card dt { font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: var(--cta); font-weight: 700; margin-top: 10px; }
.trait-card dd { margin: 0; color: var(--text-2); font-size: .97rem; }
.trait-card dd.resource { color: var(--success-text); font-weight: 500; }

.love-grid { display: grid; gap: 14px; }
@media (min-width: 700px) { .love-grid { grid-template-columns: repeat(2, 1fr); } }
.love-item h3 { font-size: 1.25rem; }
.love-item p { margin: 0; color: var(--text-2); }
.love-exit { background: linear-gradient(140deg, #fff, var(--bg-tint)); }

.pairs-label { font-family: var(--font-body); font-size: 1rem; font-weight: 700; margin: 20px 0 10px; }
.pair-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.pair-chip { padding: 8px 14px; border-radius: 999px; background: var(--el); color: var(--text); text-decoration: none; font-weight: 500; font-size: .95rem; }
.pair-chip:hover { box-shadow: var(--shadow-sm); color: var(--text); }

/* ===== Калькулятор ===== */
.compat-full { display: grid; gap: 24px; }
.sign-picker { border: 0; margin: 0; padding: 0; }
.sign-picker legend { font-family: var(--font-head); font-size: 1.6rem; font-weight: 600; margin-bottom: 12px; }
.picker-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
@media (min-width: 640px) { .picker-grid { grid-template-columns: repeat(6, 1fr); } }
.pick { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 12px 4px; border-radius: 16px; background: var(--el); cursor: pointer; border: 2px solid transparent; transition: transform .15s, border-color .15s; }
.pick input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.pick:hover { transform: translateY(-2px); }
.pick:has(input:checked) { border-color: var(--cta); box-shadow: 0 0 0 3px rgba(122, 92, 158, .2); }
.pick:has(input:focus-visible) { outline: 3px solid var(--cta); outline-offset: 2px; }
.pick-sym { font-size: 1.6rem; color: var(--cta); font-family: 'Segoe UI Symbol', 'Noto Sans Symbols', 'Apple Symbols', var(--font-body); }
.pick-name { font-size: .82rem; font-weight: 600; }

.pair-card { display: grid; gap: 22px; padding: 24px; box-shadow: var(--shadow); }
@media (min-width: 700px) { .pair-card { padding: 36px; } }
.pair-card section h3 { font-size: 1.35rem; }
.pair-card p { margin: 0 0 .6em; }
.pair-head { text-align: center; }
.pair-signs { display: flex; justify-content: center; align-items: center; gap: 12px; margin-bottom: 14px; }
.pair-sign { display: flex; flex-direction: column; align-items: center; min-width: 110px; padding: 14px 10px; border-radius: 18px; background: var(--el); }
.pair-sign > span { font-size: 2rem; color: var(--cta); font-family: 'Segoe UI Symbol', 'Noto Sans Symbols', 'Apple Symbols', var(--font-body); }
.pair-sign small { text-transform: uppercase; letter-spacing: .12em; font-size: .7rem; color: var(--text-2); }
.pair-amp { font-family: var(--font-head); font-size: 2rem; color: var(--cta); }
.pair-title { font-size: clamp(1.8rem, 4vw, 2.3rem); }
.level { display: inline-block; padding: 4px 14px; border-radius: 999px; font-size: .88rem; font-weight: 600; }
.level-easy { background: #E1F0E7; color: var(--success-text); }
.level-work { background: #FBE7EC; color: #8A3550; }
.pair-cols { display: grid; gap: 22px; }
@media (min-width: 700px) { .pair-cols { grid-template-columns: 1fr 1fr; } }
.list-check, .list-dot, .list-num { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.list-check li, .list-dot li { position: relative; padding-left: 28px; }
.list-check li::before { content: '✓'; position: absolute; left: 0; top: 0; color: var(--success-text); font-weight: 700; }
.list-dot li::before { content: ''; position: absolute; left: 6px; top: .6em; width: 8px; height: 8px; border-radius: 50%; background: var(--error); }
.list-num { counter-reset: n; }
.list-num li { counter-increment: n; position: relative; padding-left: 38px; min-height: 28px; }
.list-num li::before { content: counter(n); position: absolute; left: 0; top: 0; width: 26px; height: 26px; border-radius: 50%; background: var(--bg-tint); color: var(--cta); font-weight: 700; display: grid; place-items: center; font-size: .85rem; }
.pair-tips { background: var(--bg-tint); border-radius: var(--radius-sm); padding: 18px; }
.pair-bridge { border-top: 1px dashed var(--line); padding-top: 20px; text-align: center; }
.pair-bridge p { color: var(--text-2); }
.swap { font-size: .95rem; }
.all-pairs { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); }
.all-pairs-col { background: var(--surface); padding: 16px; border-radius: var(--radius-sm); }
.all-pairs-col h3 { font-size: 1.2rem; }
.all-pairs-col a { display: block; font-size: .9rem; padding: 3px 0; text-decoration: none; }
.all-pairs-col a:hover { text-decoration: underline; }

/* ===== Услуги ===== */
.service-card { display: flex; flex-direction: column; gap: 12px; }
.service-card h3 { margin: 0; }
.service-card p { margin: 0; flex: 1; font-size: .96rem; }
.service-meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 0; border-top: 1px solid var(--line); }
.service-card .btn { width: 100%; }

/* ===== Шаги ===== */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; counter-reset: s; }
@media (min-width: 640px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.step { padding: 24px; border-radius: var(--radius); background: linear-gradient(160deg, var(--bg-tint), #fff); }
.step-num { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--cta); color: #fff; font-weight: 700; margin-bottom: 14px; }
.step h3 { font-size: 1.35rem; }
.step p { margin: 0; font-size: .95rem; }

/* ===== О Темирлане ===== */
.about-grid { display: grid; gap: 32px; align-items: center; }
@media (min-width: 860px) { .about-grid { grid-template-columns: .8fr 1.2fr; gap: 56px; } }

/* ===== Отзывы ===== */
.review-card { margin: 0; display: flex; flex-direction: column; gap: 14px; position: relative; }
.review-card blockquote { margin: 0; font-family: var(--font-head); font-size: 1.3rem; line-height: 1.35; }
.review-card blockquote::before { content: '“'; display: block; font-size: 3rem; line-height: .6; color: var(--rose); }
.review-card figcaption { font-size: .92rem; }
.placeholder-note { align-self: flex-start; font-size: .72rem; padding: 2px 8px; border-radius: 6px; background: #FFF4D6; color: #7A5A00; }

/* ===== FAQ ===== */
.faq { display: grid; gap: 10px; }
.faq-item { background: var(--surface); border-radius: var(--radius-sm); border: 1px solid var(--line); }
.faq-item summary { list-style: none; cursor: pointer; padding: 18px 20px; font-weight: 600; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-icon { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--bg-tint); color: var(--cta); flex: none; transition: transform .2s; }
.faq-item[open] .faq-icon { transform: rotate(45deg); }
.faq-item p { padding: 0 20px 18px; margin: 0; color: var(--text-2); }

.cta-final { background: radial-gradient(70% 90% at 50% 0%, rgba(246, 201, 215, .5), transparent 70%), var(--bg); }

/* ===== Футер ===== */
.site-footer { background: #F4EEF6; padding: 48px 0 calc(24px + env(safe-area-inset-bottom)); margin-top: 0; }
.footer-grid { display: grid; gap: 28px; }
@media (min-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr 1.4fr; } }
.footer-nav { display: flex; flex-direction: column; gap: 8px; }
.footer-nav a { color: var(--text); text-decoration: none; }
.footer-nav a:hover { color: var(--cta); }
.disclaimer { color: var(--text-2); background: rgba(255, 255, 255, .6); border-radius: var(--radius-sm); padding: 14px 16px; margin: 0; }
.footer-bottom { margin-top: 28px; padding-top: 16px; border-top: 1px solid var(--line); }
.site-footer .btn { margin-top: 6px; }

/* ===== Плавающая кнопка Telegram ===== */
.tg-float {
  position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 50;
  display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%;
  background: #2AABEE; color: #fff; box-shadow: 0 10px 24px -8px rgba(42, 171, 238, .7); transition: transform .2s;
}
.tg-float:hover { transform: scale(1.06); color: #fff; }
.tg-float .icon { width: 28px; height: 28px; }
/* На мобильном не перекрываем кнопки записи: поднимаем над нижними CTA сервиса и прячем в открытой записи */
body.dialog-open .tg-float { display: none; }

/* ===== Модальное окно записи ===== */
.booking-dialog {
  width: min(100%, 720px); max-height: 100dvh; margin: auto; padding: 0; border: 0; border-radius: 0;
  background: var(--bg); color: var(--text); box-shadow: var(--shadow);
}
@media (max-width: 639px) { .booking-dialog { width: 100%; max-width: 100%; height: 100dvh; } }
@media (min-width: 640px) { .booking-dialog { border-radius: 24px; max-height: calc(100dvh - 48px); } }
.booking-dialog::backdrop { background: rgba(61, 58, 75, .45); backdrop-filter: blur(3px); }
.dialog-head { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; padding: 12px 12px 12px 20px; background: var(--bg); border-bottom: 1px solid var(--line); }
.dialog-title { font-size: 1.5rem; margin: 0; }
.booking-dialog .booking-root { padding: 16px 20px 28px; }

/* ===== Флоу записи ===== */
.booking-page { max-width: 760px; }
.booking-inline { background: var(--surface); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); margin-bottom: 20px; }
@media (min-width: 640px) { .booking-inline { padding: 32px; } }
.stepper { display: flex; gap: 6px; margin: 0 0 20px; padding: 0; list-style: none; }
.stepper li { flex: 1; height: 5px; border-radius: 4px; background: var(--line); }
.stepper li.done { background: var(--cta); }
.stepper li.current { background: linear-gradient(90deg, var(--cta), #B79BD6); }
.step-label { font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; color: var(--text-2); font-weight: 600; margin-bottom: 4px; }
.step-title { font-family: var(--font-head); font-size: 1.7rem; font-weight: 600; margin: 0 0 16px; }
.step-title:focus { outline: none; }
.back-btn { display: inline-flex; align-items: center; gap: 6px; background: none; border: 0; color: var(--cta); font: 600 .95rem var(--font-body); padding: 8px 0; margin-bottom: 8px; cursor: pointer; }
.back-btn .icon { transform: rotate(180deg); width: 1em; }

.svc-list { display: grid; gap: 10px; }
.svc-option { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; width: 100%; text-align: left; padding: 16px 18px; border-radius: 16px; border: 1.5px solid var(--line); background: #fff; cursor: pointer; font: inherit; color: var(--text); transition: border-color .15s, box-shadow .15s; }
.svc-option:hover, .svc-option[aria-pressed="true"] { border-color: var(--cta); box-shadow: 0 0 0 3px rgba(122, 92, 158, .12); }
.svc-option b { font-size: 1.05rem; }
.svc-option .svc-desc { grid-column: 1 / -1; font-size: .9rem; color: var(--text-2); }
.svc-option .price { justify-self: end; font-size: .95rem; }
.svc-option .svc-dur { font-size: .88rem; color: var(--text-2); }

.selected-summary { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; padding: 10px 14px; border-radius: 12px; background: var(--bg-tint); font-size: .92rem; margin-bottom: 16px; }

.week-nav { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.week-nav .week-label { font-weight: 600; font-size: .95rem; text-align: center; }
.week-nav button { min-width: 44px; min-height: 44px; border-radius: 12px; border: 1.5px solid var(--line); background: #fff; color: var(--cta); font: 600 .9rem var(--font-body); cursor: pointer; padding: 0 12px; }
.week-nav button:disabled { opacity: .35; cursor: not-allowed; }
.days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.day {
  display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px 2px; min-height: 64px;
  border-radius: 14px; border: 1.5px solid var(--line); background: #fff; cursor: pointer; font: inherit; color: var(--text);
}
.day .d-wd { font-size: .75rem; text-transform: uppercase; color: var(--text-2); font-weight: 600; }
.day .d-num { font-weight: 700; font-size: 1rem; }
.day .d-count { width: 6px; height: 6px; border-radius: 50%; background: var(--success); }
.day:hover:not(:disabled) { border-color: var(--cta); }
.day[aria-pressed="true"] { background: var(--cta); border-color: var(--cta); color: #fff; }
.day[aria-pressed="true"] .d-wd { color: #EADFF5; }
.day[aria-pressed="true"] .d-count { background: #fff; }
.day:disabled { background: #F3F0F2; color: #A9A4B0; cursor: not-allowed; border-color: transparent; }
.day:disabled .d-wd { color: #B4AFBA; }
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; margin-top: 4px; }
.slot { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 52px; padding: 8px; border-radius: 12px; border: 1.5px solid #CDBEE0; background: #fff; color: var(--text); font: 600 1rem var(--font-body); cursor: pointer; }
.slot small { font-weight: 500; font-size: .72rem; color: var(--text-2); }
.slot:hover { border-color: var(--cta); background: var(--bg-tint); }
.tz-note { font-size: .85rem; color: var(--text-2); margin-top: 12px; }
.empty { padding: 24px; text-align: center; color: var(--text-2); background: var(--bg-tint); border-radius: 14px; }

.form-grid { display: grid; gap: 16px; }
@media (min-width: 640px) { .form-grid.two { grid-template-columns: 1fr 1fr; } }
.sign-detect { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: var(--bg-tint); font-weight: 600; font-size: .9rem; margin-top: 4px; align-self: flex-start; }
.form-section { padding: 16px; border-radius: 16px; background: var(--bg-tint); display: grid; gap: 14px; }
.form-section h4 { margin: 0; font-family: var(--font-head); font-size: 1.3rem; font-weight: 600; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 6px; }
.form-actions .btn { width: 100%; }
.form-alert { padding: 12px 14px; border-radius: 12px; background: #FBE9E8; color: var(--error-text); font-size: .92rem; }

.done { text-align: center; padding: 12px 0; }
.done-icon { display: inline-grid; place-items: center; width: 72px; height: 72px; border-radius: 50%; background: #E1F0E7; color: var(--success-text); margin-bottom: 12px; }
.done-icon .icon { width: 36px; height: 36px; }
.done .btn-row { justify-content: center; flex-direction: column; align-items: stretch; max-width: 380px; margin: 16px auto 0; }

.spinner { width: 28px; height: 28px; margin: 24px auto; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--cta); animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ===== Тосты ===== */
.toasts { position: fixed; left: 50%; top: 16px; transform: translateX(-50%); z-index: 1000; display: grid; gap: 8px; width: min(92vw, 420px); pointer-events: none; }
.toast { pointer-events: auto; padding: 14px 18px; border-radius: 14px; background: var(--text); color: #fff; box-shadow: var(--shadow); font-size: .95rem; animation: toast-in .25s ease-out; }
.toast.error { background: var(--error-text); }
.toast.success { background: var(--success-text); }
@keyframes toast-in { from { opacity: 0; transform: translateY(-8px); } }

/* ===== Текстовые страницы ===== */
.prose h2 { font-size: 1.6rem; margin-top: 1.4em; }
.prose blockquote { margin: 0; padding: 16px 20px; border-left: 4px solid var(--cta); background: var(--bg-tint); border-radius: 0 12px 12px 0; }

/* ===== Админка ===== */
.admin-section { padding-top: 24px; }
.admin-tabs { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 20px; border-bottom: 1px solid var(--line); }
.admin-tabs button { flex: none; padding: 10px 16px; border: 0; border-radius: 10px; background: transparent; color: var(--text-2); font: 600 .95rem var(--font-body); cursor: pointer; }
.admin-tabs button[aria-selected="true"] { background: var(--cta); color: #fff; }
.admin-card { background: var(--surface); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow-sm); margin-bottom: 16px; }
.admin-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: end; }
.admin-row .field { min-width: 140px; flex: 1; }
.admin-list { display: grid; gap: 10px; }
.bk { border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.bk.conflict { border-color: var(--error); box-shadow: 0 0 0 3px rgba(217, 129, 127, .2); }
.bk summary { list-style: none; cursor: pointer; padding: 14px 16px; display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; }
.bk summary::-webkit-details-marker { display: none; }
.bk .bk-body { padding: 0 16px 16px; display: grid; gap: 6px; font-size: .95rem; }
.badge { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: .8rem; font-weight: 700; }
.st-pending { background: #FFF4D6; color: #7A5A00; }
.st-confirmed { background: #E1F0E7; color: var(--success-text); }
.st-declined, .st-cancelled { background: #FBE9E8; color: var(--error-text); }
.st-expired { background: #ECEAF0; color: var(--text-2); }
.table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.table th, .table td { text-align: left; padding: 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.wd-row { display: grid; gap: 8px; padding: 12px 0; border-bottom: 1px solid var(--line); }
@media (min-width: 700px) { .wd-row { grid-template-columns: 140px 1fr; align-items: start; } }
.intervals { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.interval { display: inline-flex; align-items: center; gap: 4px; background: var(--bg-tint); padding: 4px 6px; border-radius: 12px; }
.interval input { width: 110px; min-height: 40px; padding: 6px 8px; }
.svc-edit { display: grid; gap: 10px; padding: 16px; border: 1px solid var(--line); border-radius: 14px; margin-bottom: 12px; }
@media (min-width: 800px) { .svc-edit .grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1fr; gap: 10px; } }
.stat-grid { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
.stat { background: var(--bg-tint); border-radius: 14px; padding: 14px; }
.stat b { display: block; font-size: 1.6rem; font-family: var(--font-head); }
.login-box { max-width: 380px; margin: 40px auto; }
.bk summary .badge { align-self: start; justify-self: end; }
.admin-body .tg-float { display: none; }

/* Узкие телефоны (320–380px): неделя из 7 дней и окно записи помещаются без горизонтальной прокрутки */
@media (max-width: 380px) {
  .booking-dialog .booking-root { padding: 12px 12px 24px; }
  .dialog-head { padding: 8px 4px 8px 14px; }
  .dialog-title { font-size: 1.25rem; }
  .booking-inline { padding: 14px; }
  .selected-summary { padding: 8px 10px; }
  .week-nav .week-label { font-size: .85rem; }
  .days { gap: 4px; }
  .day { padding: 8px 0; min-height: 58px; border-radius: 10px; }
  .day .d-num { font-size: .8rem; }
  .day .d-wd { font-size: .66rem; }
  .slots { grid-template-columns: repeat(auto-fill, minmax(80px, 1fr)); }
}
