:root {
  color-scheme: dark;
  --bg: #101a20;
  --surface: #17232a;
  --surface-raised: #203039;
  --text: #f4f8f3;
  --muted: #aab8b1;
  --accent: #c7f589;
  --accent-ink: #152118;
  --border: rgba(228, 245, 232, .14);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 0; padding-inline: env(safe-area-inset-left, 0px) env(safe-area-inset-right, 0px); color: var(--text); background: var(--bg); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif; line-height: 1.5; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
.section-wrap { width: min(1160px, calc(100% - 48px)); margin-inline: auto; }
.offline-note { position: sticky; z-index: 20; top: 0; padding: 9px 20px; color: #1f2814; background: var(--accent); font-size: 13px; text-align: center; }
.offline-note[hidden], [hidden] { display: none !important; }
.flow-telegram-fallback { display: inline-block; min-height: 44px; padding-block: 10px; color: var(--muted); font-size: 13px; text-underline-offset: 3px; }
.flow-telegram-wait { padding: 18px; border: 1px solid var(--border); border-radius: 13px; background: var(--bg); }
.flow-telegram-instruction { margin: 0 0 12px; color: var(--muted); font-size: 14px; line-height: 1.5; }
.flow-telegram-code { margin: 0 0 18px; color: var(--text); font-size: 30px; font-weight: 750; letter-spacing: .15em; font-variant-numeric: tabular-nums; }
.flow-telegram-wait .flow-text-button { display: block; margin-inline: auto; }

.site-header { display: flex; align-items: center; gap: 40px; width: min(1160px, calc(100% - 48px)); margin: 0 auto; padding: calc(22px + env(safe-area-inset-top, 0px)) 0 22px; }
.brand { display: inline-flex; align-items: center; gap: 10px; flex: none; text-decoration: none; font-size: 22px; font-weight: 850; letter-spacing: -.06em; }
.brand img { display: block; border-radius: 10px; }
.site-header nav { display: flex; align-items: center; gap: 30px; margin-left: auto; }
.site-header nav a { color: var(--muted); font-size: 14px; text-decoration: none; transition: color .2s ease; }
.site-header nav a:hover { color: var(--text); }
.header-action { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 17px; border: 1px solid var(--border); border-radius: 12px; font-size: 14px; font-weight: 650; text-decoration: none; white-space: nowrap; }
.header-action span { margin-left: 10px; color: var(--accent); }

.hero { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(350px, .85fr); align-items: center; gap: clamp(36px, 6vw, 100px); min-height: 645px; padding-block: 70px 100px; }
.hero-copy { position: relative; z-index: 1; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 24px; color: var(--accent); font-size: 12px; font-weight: 750; letter-spacing: .15em; text-transform: uppercase; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 5px rgba(199, 245, 137, .12); }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { line-height: 1.12; letter-spacing: -.05em; }
h1 { max-width: 780px; margin-bottom: 25px; font-size: clamp(42px, 5.2vw, 72px); font-weight: 750; }
h1 em { color: var(--accent); font-style: normal; }
.lead { max-width: 570px; margin-bottom: 30px; color: var(--muted); font-size: clamp(16px, 1.7vw, 19px); line-height: 1.55; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 11px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 18px; min-height: 52px; padding: 12px 21px; border: 1px solid transparent; border-radius: 13px; font-size: 15px; font-weight: 700; line-height: 1.25; text-align: center; text-decoration: none; transition: transform .2s ease, background .2s ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { color: var(--accent-ink); background: var(--accent); }
.button-primary:hover { background: #d5ffa2; }
.button-secondary { color: var(--text); border-color: var(--border); background: rgba(255, 255, 255, .035); }
.button-secondary:hover { background: rgba(255, 255, 255, .09); }
.hero-hint { margin: 17px 0 0; color: var(--muted); font-size: 12px; }
.hero-hint a { color: var(--accent); text-underline-offset: 3px; }

.preview { position: relative; width: min(100%, 425px); margin-inline: auto; padding: 18px 19px 24px; border: 1px solid #41584f; border-radius: 29px; background: linear-gradient(160deg, #26362e, #132027 36%, #142027); box-shadow: 0 36px 100px rgba(2, 9, 9, .42), 0 0 110px rgba(199, 245, 137, .08); transform: rotate(2deg); }
.preview::before { position: absolute; inset: 7px; border: 1px solid rgba(255, 255, 255, .06); border-radius: 23px; content: ""; pointer-events: none; }
.preview-top { display: flex; align-items: center; gap: 12px; padding: 5px 4px 18px; font-size: 14px; font-weight: 700; }
.preview-mark { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; color: var(--accent-ink); background: var(--accent); font-size: 19px; font-weight: 850; }
.preview-dots { margin-left: auto; color: var(--muted); letter-spacing: 2px; }
.preview-heading { display: grid; gap: 5px; padding: 22px 20px; border: 1px solid var(--border); border-radius: 18px; background: #1c2b31; }
.preview-heading small { color: var(--accent); font-size: 10px; font-weight: 750; letter-spacing: .12em; }
.preview-heading strong { font-size: 21px; letter-spacing: -.03em; }
.preview-heading > span { color: var(--muted); font-size: 12px; }
.preview-days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; margin: 17px 0; text-align: center; }
.preview-days > span { display: grid; gap: 5px; padding: 8px 1px; border-radius: 11px; color: var(--muted); font-size: 11px; }
.preview-days small { color: var(--text); font-size: 13px; font-weight: 700; }
.preview-days .selected { color: var(--accent-ink); background: var(--accent); font-weight: 700; }
.preview-days .selected small { color: var(--accent-ink); }
.preview-appointment { display: flex; align-items: center; gap: 13px; min-height: 79px; margin-top: 8px; padding: 13px; border: 1px solid var(--border); border-radius: 14px; background: #1a2930; }
.preview-time { align-self: flex-start; color: var(--accent); font-size: 13px; font-weight: 750; }
.preview-appointment div { display: grid; min-width: 0; gap: 2px; }
.preview-appointment strong { font-size: 13px; }
.preview-appointment div span { overflow-wrap: anywhere; color: var(--muted); font-size: 11px; }
.preview-check, .preview-free { display: inline-grid; place-items: center; width: 27px; height: 27px; margin-left: auto; border-radius: 50%; color: var(--accent-ink); background: var(--accent); font-size: 17px; font-weight: 700; }
.preview-free { color: var(--accent); border: 1px solid var(--accent); background: transparent; }
.preview-bottom { display: flex; justify-content: space-between; margin: 20px 5px 0; color: var(--muted); font-size: 10px; }
.preview-bottom span:first-child { color: var(--accent); }
.preview-caption { position: absolute; right: 3px; bottom: -29px; color: var(--muted); font-size: 10px; transform: rotate(-2deg); }

.benefit-strip { border-block: 1px solid var(--border); background: #142027; }
.benefit-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; padding-block: 24px; }
.benefit-grid p { display: flex; gap: 13px; margin: 0; font-size: 14px; font-weight: 600; }
.benefit-grid span { color: var(--accent); font-size: 12px; font-weight: 750; }
.content-section { padding-block: 108px; scroll-margin-top: 20px; }
.section-intro { max-width: 665px; margin-bottom: 40px; }
.section-intro .eyebrow, .client-copy .eyebrow, .final-cta .eyebrow { margin-bottom: 16px; }
h2 { margin-bottom: 16px; font-size: clamp(34px, 4vw, 50px); }
.section-intro > p:last-child, .client-copy > p:not(.eyebrow), .final-cta > p:not(.eyebrow) { color: var(--muted); font-size: 17px; line-height: 1.6; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.step { min-height: 220px; padding: 25px; border: 1px solid var(--border); border-radius: 20px; background: var(--surface); }
.step-number { display: inline-flex; margin-bottom: 34px; color: var(--accent); font-size: 13px; font-weight: 800; }
.step h3 { margin-bottom: 10px; font-size: 23px; }
.step p { margin-bottom: 0; color: var(--muted); font-size: 14px; line-height: 1.6; }
.client-section { overflow: hidden; border-block: 1px solid var(--border); background: #16252a; scroll-margin-top: 20px; }
.client-grid { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 80px; min-height: 455px; padding-block: 60px; }
.client-copy { max-width: 500px; }
.text-action { display: inline-flex; align-items: center; gap: 15px; min-height: 48px; margin-top: 10px; color: var(--accent); font-size: 15px; font-weight: 750; text-underline-offset: 5px; }
.client-card { width: min(100%, 380px); margin-inline: auto; padding: 27px; border: 1px solid #64805e; border-radius: 22px; background: linear-gradient(140deg, #c7f589, #a9db81); box-shadow: 24px 24px 0 rgba(199, 245, 137, .07); color: #17271e; transform: rotate(-3deg); }
.client-card-label { display: block; margin-bottom: 23px; font-size: 10px; font-weight: 800; letter-spacing: .15em; }
.client-card > strong { display: block; font-size: 29px; line-height: 1.12; letter-spacing: -.05em; }
.slot-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.slot-list span { min-width: 82px; padding: 9px 13px; border: 1px solid #658d5b; border-radius: 10px; font-size: 13px; font-weight: 700; text-align: center; }
.slot-list .slot-active { color: var(--text); border-color: #182923; background: #182923; }
.client-card-footer { display: flex; justify-content: space-between; margin-top: 29px; padding-top: 16px; border-top: 1px solid rgba(18, 41, 30, .28); font-size: 13px; font-weight: 750; }
.final-cta { padding-block: 105px; text-align: center; }
.final-cta h2 { max-width: 650px; margin-inline: auto; }
.final-cta p:not(.eyebrow) { margin-bottom: 26px; }
.final-actions { justify-content: center; }
.site-footer { display: flex; align-items: center; gap: 24px; min-height: 80px; padding-bottom: env(safe-area-inset-bottom, 0px); border-top: 1px solid var(--border); color: var(--muted); font-size: 13px; }
.site-footer > span:first-child { color: var(--text); font-weight: 800; letter-spacing: -.03em; }
.site-footer button { min-height: 44px; margin-left: auto; padding: 8px 14px; border: 1px solid var(--border); border-radius: 10px; color: var(--text); background: var(--surface); font: inherit; cursor: pointer; }

@media (max-width: 850px) {
  .site-header { gap: 20px; }
  .site-header nav { gap: 16px; }
  .hero { grid-template-columns: 1fr 340px; gap: 30px; }
  h1 { font-size: clamp(38px, 5vw, 56px); }
  .client-grid { gap: 30px; }
}
@media (max-width: 690px) {
  .section-wrap, .site-header { width: min(100% - 36px, 500px); }
  .hero-actions .button { width: min(100%, 300px); }
  .site-header { justify-content: space-between; padding: calc(16px + env(safe-area-inset-top, 0px)) 0 16px; }
  .site-header nav { display: none; }
  .header-action { max-width: 190px; padding-inline: 12px; font-size: 12px; }
  .hero { display: flex; flex-direction: column; align-items: stretch; gap: 54px; min-height: 0; padding-block: 62px 82px; }
  h1 { font-size: clamp(41px, 10vw, 58px); }
  .lead { font-size: 16px; }
  .preview { width: min(100% - 22px, 410px); transform: rotate(1deg); }
  .preview-caption { transform: rotate(-1deg); }
  .benefit-grid { grid-template-columns: 1fr; gap: 17px; padding-block: 25px; }
  .content-section { padding-block: 78px; }
  .steps { grid-template-columns: 1fr; }
  .step { min-height: 0; padding: 22px; }
  .step-number { margin-bottom: 22px; }
  .client-grid { grid-template-columns: 1fr; gap: 40px; padding-block: 75px; }
  .final-cta { padding-block: 85px; }
  .site-footer { flex-wrap: wrap; gap: 4px 20px; padding: 18px 0 calc(18px + env(safe-area-inset-bottom, 0px)); }
  .site-footer button { margin-left: 0; }
}
@media (max-width: 390px) {
  .brand { font-size: 19px; }
  .brand img { width: 33px; height: 33px; }
  .header-action { padding-inline: 9px; }
  .preview { width: 100%; padding-inline: 12px; }
  .preview-heading { padding-inline: 13px; }
  .preview-appointment { gap: 8px; padding-inline: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* Shared browser flows: email entry and a master's public booking page. */
.web-flow { min-height: 100vh; }
.flow-shell { display: grid; place-items: start center; width: min(100% - 36px, 520px); margin: 70px auto 110px; }
.flow-card { width: 100%; padding: clamp(24px, 5vw, 40px); border: 1px solid var(--border); border-radius: 24px; background: var(--surface); }
.flow-card h1 { margin-bottom: 16px; font-size: clamp(34px, 7vw, 48px); }
.flow-card .eyebrow { margin-bottom: 12px; }
.flow-lead { margin-bottom: 28px; color: var(--muted); font-size: 15px; line-height: 1.6; }
.flow-telegram, .flow-submit { width: 100%; }
.flow-divider { display: flex; align-items: center; gap: 12px; margin: 23px 0; color: var(--muted); font-size: 12px; white-space: nowrap; }
.flow-divider::before, .flow-divider::after { width: 100%; height: 1px; background: var(--border); content: ""; }
.flow-card form { display: grid; gap: 9px; }
.flow-card label { font-size: 13px; font-weight: 700; }
.flow-card input, .booking-page input { width: 100%; min-height: 50px; padding: 12px 14px; border: 1px solid var(--border); border-radius: 11px; outline: none; color: var(--text); background: var(--bg); font: inherit; font-size: 16px; }
.flow-card input:focus-visible, .booking-page input:focus-visible { border-color: var(--accent); outline: 2px solid rgba(199, 245, 137, .2); }
.flow-message { min-height: 20px; margin: 0 0 12px; color: var(--accent); font-size: 13px; line-height: 1.45; }
.flow-message:empty { min-height:0; margin:0; }
.flow-message.error { color: #ffb7aa; }
.flow-footnote { margin: 18px 0 0; font-size: 13px; }
.flow-card button:disabled, .booking-page button:disabled { cursor: not-allowed; opacity: .55; }
.flow-text-button { justify-self: center; min-height: 44px; padding: 8px; border: 0; color: var(--muted); background: none; font: inherit; font-size: 13px; text-decoration: underline; cursor: pointer; }
.booking-page { padding-block: 52px 95px; }
.booking-back { display: inline-flex; align-items: center; min-height: 44px; margin-bottom: 26px; color: var(--muted); font-size: 14px; text-decoration: none; }
.booking-hero { display: grid; gap: 12px; max-width: 780px; margin-bottom: 36px; }
.booking-hero h1 { margin-bottom: 5px; font-size: clamp(38px, 7vw, 58px); }
.booking-meta { display: flex; flex-wrap: wrap; gap: 8px 16px; color: var(--muted); font-size: 14px; }
.booking-description { max-width: 650px; color: var(--muted); line-height: 1.6; white-space: pre-line; }
.booking-hero .booking-channel-link { justify-self: start; min-height: 44px; padding: 10px 15px; font-size: 14px; }
.booking-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, .7fr); align-items: start; gap: 18px; }
.booking-panel { min-width: 0; padding: 24px; border: 1px solid var(--border); border-radius: 20px; background: var(--surface); }
.booking-panel h2 { margin-bottom: 18px; font-size: 24px; }
.booking-panel h3 { margin: 25px 0 12px; font-size: 17px; }
.booking-services { display: grid; gap: 9px; }
.booking-service-option { border:1px solid var(--border); border-radius:12px; overflow:hidden; }
.booking-service-option:has(input:checked) { border-color:var(--accent); background:rgba(199,245,137,.06); }
.booking-service { display: flex; align-items: flex-start; gap: 12px; padding: 14px; cursor: pointer; }
.booking-service-description { margin:0 14px 10px 46px; border-top:1px solid var(--border); }
.booking-service-description summary { min-height:44px; padding:11px 0; color:var(--text); font-size:14px; cursor:pointer; }
.booking-service-description p { padding-bottom:9px; color:var(--muted); font-size:14px; line-height:1.5; white-space:pre-line; overflow-wrap:anywhere; }
.booking-service input { flex: none; width: 20px; min-height: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--accent); }
.booking-service strong { display: block; font-size: 15px; }
.booking-service small { display: block; margin-top: 3px; color: var(--muted); font-size: 12px; }
.booking-rail-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-width: 0; margin-top: 25px; }
.booking-rail-header h3 { min-width: 0; margin: 0; font-size: 18px; line-height: 1.35; }
.booking-rail-nav { display: flex; flex: none; gap: 4px; }
.booking-rail-nav button { width: 44px; height: 44px; padding: 0; border: 0; border-radius: 10px; color: var(--accent); background: transparent; font: inherit; font-size: 30px; line-height: 1; cursor: pointer; }
.booking-rail-nav button:disabled { color: var(--muted); opacity: .4; }
.booking-days { display: flex; gap: 8px; min-width: 0; overflow: hidden; margin-top: 8px; padding: 2px 0 8px; }
.booking-days button, .booking-time-grid button { flex: none; min-width: 88px; min-height: 46px; padding: 9px 12px; border: 1px solid var(--border); border-radius: 10px; color: var(--text); background: var(--bg); font: inherit; font-size: 13px; cursor: pointer; }
.booking-days button { display: grid; flex: 1 1 0; place-content: center; gap: 2px; min-width: 0; min-height: 72px; padding: 7px 10px; border-radius: 15px; text-align: center; }
.booking-day-weekday { font-size: 13px; line-height: 1.2; }
.booking-day-number { font-size: 20px; line-height: 1.2; }
.booking-days button.selected, .booking-time-grid button.selected, .booking-calendar-grid button.selected { border-color: var(--accent); color: var(--accent-ink); background: var(--accent); font-weight: 750; }
.booking-days button.weekend, .booking-calendar-grid button.weekend, .booking-calendar-weekday.weekend { color: #ff9da1; }
.booking-days button.is-unavailable, .booking-days button.is-unavailable.weekend { border-color: #26353a; color: #74847c; background: #18242a; opacity: 1; }
.booking-days button.waitlist-day { color:var(--muted); border-color:var(--border); background:var(--surface); }
.booking-days button.waitlist-day.weekend { color:#ff9da1; }
.booking-days button.waitlist-day.selected { color:var(--accent-ink); background:var(--accent); }
.booking-time-grid button.waitlist-slot { color:var(--muted); background:var(--surface-raised); }
.booking-time-grid button.waitlist-slot::after { content:"Занято"; display:block; font-size:11px; line-height:1.2; }
.booking-calendar-grid button.weekend.selected { border-color: var(--accent); color: #ffb2b5; background: #26372e; }
.booking-days button.weekend.selected { color: var(--accent-ink); background: var(--accent); }
.booking-calendar-toggle { width: 100%; min-height: 44px; margin-top: 6px; padding: 9px 13px; border: 1px solid var(--border); border-radius: 10px; color: var(--accent); background: transparent; font: inherit; font-size: 14px; text-align: left; cursor: pointer; }
.booking-calendar-panel { max-width: 430px; margin-top: 10px; padding: 12px; border: 1px solid var(--border); border-radius: 14px; background: var(--bg); }
.booking-calendar-nav { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.booking-calendar-nav strong { flex: 1; text-align: center; text-transform: capitalize; font-size: 15px; }
.booking-calendar-nav button { flex: none; width: 44px; height: 44px; border: 1px solid var(--border); border-radius: 10px; color: var(--text); background: var(--surface); font-size: 26px; cursor: pointer; }
.booking-calendar-nav button:disabled { opacity: .35; cursor: not-allowed; }
.booking-calendar-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 3px; }
.booking-calendar-weekday { display: grid; place-items: center; min-height: 30px; color: var(--muted); font-size: 12px; }
.booking-calendar-grid button { min-width: 0; min-height: 44px; padding: 0; border: 1px solid transparent; border-radius: 9px; color: var(--text); background: var(--surface); font: inherit; font-size: 14px; cursor: pointer; }
.booking-calendar-grid button:disabled { opacity: 1; }
.booking-calendar-grid button.is-unavailable, .booking-calendar-grid button.is-unavailable.weekend { border-color: transparent; color: #74847c; background: #18242a; cursor: not-allowed; }
.booking-calendar-hint { margin: 10px 2px 0; color: var(--muted); font-size: 12px; line-height: 1.45; }
.booking-slots { display: grid; gap: 16px; }
.booking-time-group h4 { margin: 0 0 8px; color: var(--muted); font-size: 14px; font-weight: 650; }
.booking-time-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(70px, 1fr)); gap: 8px; }
.booking-time-grid button { min-width: 0; min-height: 52px; border-radius: 15px; font-size: 14px; }
.booking-summary { position: sticky; top: 20px; }
.booking-summary dl { display: grid; grid-template-columns: 1fr auto; gap: 10px; margin: 0 0 22px; font-size: 14px; }
.booking-summary dt { color: var(--muted); }
.booking-summary dd { margin: 0; text-align: right; }
.booking-summary .button { width: 100%; }
.booking-status { min-height: 22px; margin: 12px 0 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.booking-status.error { color: #ffb7aa; }
.booking-confirm { display: grid; gap: 12px; }
.booking-confirm label { font-size: 13px; font-weight: 700; }
.booking-confirm .button { margin-top: 6px; }
.booking-success { padding: 34px; border: 1px solid var(--accent); border-radius: 20px; background: var(--surface); }
.booking-success h2 { font-size: 32px; }
.booking-success p { color: var(--muted); }
@media (max-width: 740px) {
  .booking-grid { grid-template-columns: 1fr; }
  .booking-summary { position: static; }
  .booking-page { padding-block: 30px 70px; }
}
@media (max-width: 390px) {
  .flow-shell { margin-top: 34px; }
  .flow-card, .booking-panel { padding: 18px; }
  .booking-rail-header { gap: 4px; }
  .booking-rail-header h3 { font-size: 16px; letter-spacing: -.03em; }
  .booking-calendar-panel { width: calc(100% + 36px); max-width: none; margin-left: -18px; padding: 10px 2px 12px; }
  .booking-calendar-hint { margin-inline: 10px; }
}
