:root {
  --purple: #6d3af2;
  --purple-dark: #5422d3;
  --purple-soft: #f0eaff;
  --bg: #fbfafc;
  --surface: #ffffff;
  --surface-2: #f4f2f6;
  --text: #17151b;
  --muted: #706c78;
  --line: #e8e4eb;
  --shadow: 0 24px 70px rgba(42, 25, 68, .12);
}

[data-theme="dark"] {
  --bg: #0f0e12;
  --surface: #19171e;
  --surface-2: #24212a;
  --text: #f7f5fa;
  --muted: #aaa5b2;
  --line: #302d36;
  --purple-soft: #291d49;
  --shadow: 0 24px 70px rgba(0, 0, 0, .35);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: Manrope, system-ui, sans-serif; transition: background .25s, color .25s; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
.header { height: 76px; max-width: 1240px; margin: auto; padding: 0 24px; display: flex; align-items: center; justify-content: space-between; position: relative; z-index: 5; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 21px; font-weight: 800; letter-spacing: -.5px; }
.brand-mark { width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; background: var(--purple); color: white; font-weight: 800; transform: rotate(-5deg); }
.desktop-nav { display: flex; gap: 34px; color: var(--muted); font-size: 14px; font-weight: 600; }
.desktop-nav a:hover, .desktop-nav .active { color: var(--text); }
.header-actions { display: flex; align-items: center; gap: 8px; }
.language-select { height: 40px; padding: 0 9px; border: 1px solid var(--line); border-radius: 10px; outline: none; background: var(--surface-2); color: var(--text); cursor: pointer; font-size: 11px; font-weight: 800; }
.language-select:focus { border-color: var(--purple); }
.button, .icon-button { border: 0; cursor: pointer; border-radius: 12px; font-weight: 700; transition: transform .18s, background .18s, box-shadow .18s; }
.button:hover, .icon-button:hover { transform: translateY(-1px); }
.button { padding: 11px 18px; }
.button-primary { color: white; background: var(--purple); box-shadow: 0 8px 24px rgba(109,58,242,.23); }
.button-primary:hover { background: var(--purple-dark); }
.button-ghost { background: transparent; color: var(--text); }
.button-light { background: white; color: #2d155f; }
.button-large { padding: 15px 22px; border-radius: 14px; }
.icon-button { width: 40px; height: 40px; background: var(--surface-2); color: var(--text); }
.settings-link { display:grid;place-items:center;font-size:14px; }
.full-width { width: 100%; }
.hero { min-height: 680px; padding: 72px max(24px, calc((100vw - 1192px)/2)); display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 80px; overflow: hidden; }
.hero-copy { max-width: 590px; position: relative; z-index: 2; }
.eyebrow, .kicker { color: var(--purple); font-size: 12px; letter-spacing: 1.5px; font-weight: 800; }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; border: 1px solid var(--line); background: var(--surface); padding: 8px 12px; border-radius: 99px; }
.eyebrow span { width: 7px; height: 7px; border-radius: 50%; background: #41c784; box-shadow: 0 0 0 4px rgba(65,199,132,.15); }
h1 { margin: 24px 0 20px; font-size: clamp(48px, 5.5vw, 76px); line-height: 1.03; letter-spacing: -4.2px; }
h1 em { display: block; color: var(--purple); font-style: normal; }
.hero-copy > p { max-width: 555px; color: var(--muted); font-size: 17px; line-height: 1.75; }
.hero-actions { display: flex; gap: 10px; margin-top: 32px; }
.trust-row { display: flex; align-items: center; margin-top: 40px; }
.avatars { display: flex; }
.avatars span { width: 35px; height: 35px; display: grid; place-items: center; margin-left: -8px; border: 3px solid var(--bg); border-radius: 50%; background: var(--purple-soft); color: var(--purple); font-size: 11px; font-weight: 800; }
.avatars span:first-child { margin-left: 0; }
.trust-row p { margin: 0 0 0 12px; color: var(--muted); font-size: 11px; line-height: 1.55; }
.trust-row strong { color: var(--text); font-size: 12px; }
.hero-visual { min-height: 525px; position: relative; display: grid; place-items: center; }
.purple-orbit { position: absolute; border-radius: 48% 52% 57% 43%; background: var(--purple); opacity: .08; transform: rotate(24deg); }
.orbit-one { width: 500px; height: 500px; }
.orbit-two { width: 390px; height: 390px; opacity: .12; transform: rotate(-15deg); }
.appointment-card { width: min(410px, 90%); position: relative; z-index: 2; background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 25px; box-shadow: var(--shadow); transform: rotate(1.5deg); }
.status-pill { display: inline-flex; align-items: center; gap: 7px; padding: 7px 10px; background: rgba(65,199,132,.12); color: #268857; border-radius: 99px; font-size: 11px; font-weight: 800; }
.status-pill i { width: 6px; height: 6px; background: #41c784; border-radius: 50%; }
.master-preview { display: flex; align-items: center; gap: 12px; margin: 21px 0; }
.portrait { display: grid; place-items: center; background: linear-gradient(145deg, #c9b4ff, #6d3af2); color: white; font-weight: 800; }
.portrait-main { width: 58px; height: 58px; border-radius: 18px; }
.master-preview h3 { margin: 0 0 4px; font-size: 16px; }
.master-preview p { margin: 0; color: var(--muted); font-size: 11px; }
.rating { margin-left: auto; font-size: 12px; font-weight: 800; color: #d39600; }
.service-preview { display: flex; justify-content: space-between; background: var(--surface-2); border-radius: 12px; padding: 14px; font-size: 12px; }
.slot-label { color: var(--muted); font-size: 11px; margin: 18px 0 9px; }
.slots { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; margin-bottom: 15px; }
.slots button { padding: 10px; border: 1px solid var(--line); background: transparent; color: var(--text); border-radius: 10px; cursor: pointer; font-size: 11px; font-weight: 700; }
.slots button.selected { background: var(--purple-soft); border-color: var(--purple); color: var(--purple); }
.floating-note { position: absolute; z-index: 3; padding: 12px 16px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); border-radius: 12px; font-size: 11px; font-weight: 800; }
.note-top { top: 52px; right: 2px; }
.note-bottom { bottom: 51px; left: 1px; color: #268857; }
.section { max-width: 1240px; margin: auto; padding: 90px 24px; }
.section-heading { display: flex; justify-content: space-between; align-items: end; margin-bottom: 32px; }
.section-heading h2, .steps h2, .pro-banner h2 { margin: 8px 0 0; font-size: clamp(29px, 4vw, 42px); letter-spacing: -2px; }
.section-heading > a { color: var(--purple); font-size: 13px; font-weight: 800; }
.service-grid, .master-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; }
.service-card, .master-card { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; transition: transform .2s, box-shadow .2s; }
.service-card { cursor:pointer; }.service-card.selected { border-color:var(--purple);box-shadow:0 0 0 3px var(--purple-soft); }.service-empty { grid-column:1/-1; }
.service-card:hover, .master-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.service-card { padding: 24px; }
.service-card > span { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 14px; background: var(--purple-soft); color: var(--purple); font-size: 22px; }
.service-card h3 { margin: 24px 0 7px; font-size: 15px; }
.service-card p { margin: 0; color: var(--muted); font-size: 12px; }
.masters-section { padding-top: 60px; }
.filters { display: flex; gap: 7px; }
.chip { border: 1px solid var(--line); background: var(--surface); color: var(--muted); padding: 8px 13px; border-radius: 99px; cursor: pointer; font-size: 11px; font-weight: 700; }
.chip.active { color: white; border-color: var(--purple); background: var(--purple); }
.master-card { overflow: hidden; cursor: pointer; }
.master-photo { height: 210px; display: grid; place-items: center; background: linear-gradient(145deg, var(--purple-soft), #b49af6); color: var(--purple); font-size: 40px; font-weight: 800; }
.master-card-body { padding: 18px; }
.master-card-head { display: flex; justify-content: space-between; }
.master-card h3 { margin: 0; font-size: 15px; }
.master-card p { color: var(--muted); margin: 6px 0 15px; font-size: 11px; }
.master-meta { display: flex; align-items: center; justify-content: space-between; padding-top: 14px; border-top: 1px solid var(--line); font-size: 11px; }
.master-meta span:first-child { color: #268857; font-weight: 800; }
.steps { display: grid; grid-template-columns: .8fr 1.2fr; gap: 100px; align-items: start; }
.steps ol { list-style: none; margin: 0; padding: 0; }
.steps li { display: flex; gap: 24px; padding: 25px 0; border-bottom: 1px solid var(--line); }
.steps li > span { color: var(--purple); font-size: 12px; font-weight: 800; }
.steps h3 { margin: 0 0 8px; font-size: 16px; }
.steps p { margin: 0; color: var(--muted); font-size: 13px; }
.pro-banner { margin: 60px auto 100px; border-radius: 28px; background: var(--purple); color: white; padding: 65px; display: flex; justify-content: space-between; align-items: center; }
.pro-banner > div { max-width: 680px; }
.pro-banner .kicker { color: #d9ccff; }
.pro-banner p { color: #dfd7f7; line-height: 1.7; }
footer { max-width: 1192px; margin: auto; padding: 35px 0; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: 11px; }
dialog { width: min(465px, calc(100% - 32px)); background: var(--surface); color: var(--text); border: 1px solid var(--line); border-radius: 24px; padding: 32px; box-shadow: var(--shadow); }
dialog::backdrop { background: rgba(12, 8, 20, .65); backdrop-filter: blur(5px); }
.dialog-close { position: absolute; right: 16px; top: 14px; border: 0; background: transparent; color: var(--muted); font-size: 24px; cursor: pointer; }
.dialog-brand { display: grid; place-items: center; }
dialog h2 { text-align: center; margin: 18px 0 5px; }
dialog > p { text-align: center; color: var(--muted); font-size: 12px; }
.role-switch { display: grid; grid-template-columns: 1fr 1fr; padding: 4px; gap: 4px; border-radius: 12px; background: var(--surface-2); margin: 24px 0 18px; }
.role-switch button { border: 0; padding: 10px; border-radius: 9px; color: var(--muted); background: transparent; cursor: pointer; font-size: 12px; font-weight: 700; }
.role-switch button.active { background: var(--surface); color: var(--purple); box-shadow: 0 3px 12px rgba(0,0,0,.06); }
form label { display: grid; gap: 7px; margin-bottom: 14px; color: var(--muted); font-size: 11px; font-weight: 700; }
form input { width: 100%; border: 1px solid var(--line); border-radius: 11px; padding: 12px 13px; background: var(--bg); color: var(--text); outline: none; }
form input:focus { border-color: var(--purple); box-shadow: 0 0 0 3px var(--purple-soft); }
.form-error { min-height: 18px; margin: -3px 0 8px; color: #dc3f55; font-size: 11px; }
.name-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.dialog-foot button { border: 0; background: transparent; color: var(--purple); cursor: pointer; font-weight: 800; }
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 20; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; background: var(--text); color: var(--bg); border-radius: 12px; padding: 12px 18px; font-size: 12px; transition: .25s; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 900px) {
  .desktop-nav { display: none; }
  .hero { grid-template-columns: 1fr; padding-top: 45px; gap: 25px; }
  .hero-copy { text-align: center; margin: auto; }
  .hero-copy > p { margin-left: auto; margin-right: auto; }
  .hero-actions, .trust-row { justify-content: center; }
  .hero-visual { min-height: 480px; }
  .service-grid, .master-grid { grid-template-columns: repeat(2,1fr); }
  .steps { grid-template-columns: 1fr; gap: 25px; }
  .pro-banner { margin-left: 20px; margin-right: 20px; }
  footer { margin: 0 24px; }
}

@media (max-width: 560px) {
  .header { padding: 0 16px; }
  .desktop-only { display: none; }
  .hero { padding: 35px 18px 70px; min-height: auto; }
  h1 { font-size: 46px; letter-spacing: -3px; }
  .hero-copy > p { font-size: 14px; }
  .hero-actions { flex-direction: column; }
  .hero-visual { min-height: 430px; }
  .appointment-card { width: 100%; }
  .floating-note { display: none; }
  .section { padding: 70px 18px; }
  .section-heading { align-items: start; gap: 18px; flex-direction: column; }
  .service-grid, .master-grid { grid-template-columns: 1fr; }
  .service-card { display: grid; grid-template-columns: auto 1fr; column-gap: 15px; }
  .service-card > span { grid-row: span 2; }
  .service-card h3 { margin: 4px 0; }
  .pro-banner { padding: 40px 25px; flex-direction: column; align-items: start; gap: 24px; }
  footer { flex-direction: column; gap: 18px; }
  .name-row { grid-template-columns: 1fr; gap: 0; }
}
