:root,
html[data-sharh-theme="light"] {
  color-scheme: light;
  --bg: #fbf9fd;
  --surface: #ffffff;
  --surface-soft: #f5effb;
  --surface-strong: #eee2f9;
  --text: #21152a;
  --muted: #716679;
  --line: #e7deec;
  --primary: #9148d8;
  --primary-hover: #7630ba;
  --primary-text: #ffffff;
  --success: #147a54;
  --success-bg: #e6f7ef;
  --warning: #8a5b00;
  --warning-bg: #fff2cf;
  --danger: #a33131;
  --danger-bg: #fdeaea;
  --shadow: 0 24px 70px rgba(59, 28, 81, .11);
}

html[data-sharh-theme="purple"] {
  color-scheme: dark;
  --bg: #21112f;
  --surface: #301741;
  --surface-soft: #3c2050;
  --surface-strong: #4a2861;
  --text: #fffaff;
  --muted: #d7c8df;
  --line: #59356d;
  --primary: #f1cc76;
  --primary-hover: #ffdf97;
  --primary-text: #281336;
  --success: #86e4bb;
  --success-bg: #244b3f;
  --warning: #ffdc86;
  --warning-bg: #594520;
  --danger: #ffaaaa;
  --danger-bg: #583030;
  --shadow: 0 25px 80px rgba(0, 0, 0, .3);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 9% 5%, rgba(145, 72, 216, .14), transparent 27rem),
    radial-gradient(circle at 92% 10%, rgba(241, 204, 118, .16), transparent 25rem),
    var(--bg);
  color: var(--text);
  font-family: Inter, "Segoe UI", system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
button, input { font: inherit; }
.shell { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }
.shell.narrow { width: min(920px, calc(100% - 40px)); }

.site-header { position: relative; z-index: 10; padding: 19px 0; }
.header-inner, .header-actions, .brand, .account-actions, .trust-row, .card-actions { display: flex; align-items: center; }
.header-inner { justify-content: space-between; gap: 20px; }
.brand { flex: 0 0 auto; gap: 10px; text-decoration: none; }
.brand img { width: 104px; height: 48px; object-fit: contain; transition: filter .2s ease; }
html[data-sharh-theme="purple"] .brand img { filter: brightness(0) invert(1); }
.brand span { padding: 7px 12px; border-radius: 999px; background: var(--text); color: var(--surface); font-size: 12px; font-weight: 900; letter-spacing: .1em; }
.header-actions { gap: 12px; }
.nav-link { font-weight: 750; text-decoration: none; }
.theme-toggle { min-height: 40px; padding: 0 15px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--text); cursor: pointer; font-size: 13px; font-weight: 750; }

.messages { display: grid; gap: 8px; margin-top: 10px; }
.message { padding: 14px 17px; border: 1px solid var(--line); border-radius: 15px; background: var(--surface); box-shadow: 0 10px 28px rgba(53, 25, 72, .07); }
.message--success { color: var(--success); background: var(--success-bg); }
.message--error { color: var(--danger); background: var(--danger-bg); }
.message--warning { color: var(--warning); background: var(--warning-bg); }

.hero-section { padding: 58px 0 76px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(340px, .65fr); gap: clamp(30px, 7vw, 92px); align-items: center; }
.hero-copy h1, .page-head h1, .account-heading h1, .auth-card h1, .order-card h1 { margin: 14px 0 18px; font-size: clamp(43px, 6.2vw, 76px); line-height: .96; letter-spacing: -.055em; }
.hero-lead { max-width: 720px; margin: 0; color: var(--muted); font-size: clamp(18px, 2vw, 22px); line-height: 1.58; }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; color: var(--primary); font-size: 13px; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; }
.status-dot { width: 9px; height: 9px; border-radius: 50%; background: #25a66c; box-shadow: 0 0 0 5px rgba(37, 166, 108, .12); }
.trust-row { flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.trust-row span { padding: 9px 13px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--muted); font-size: 13px; font-weight: 700; }

.login-card, .auth-card, .order-card { border: 1px solid var(--line); border-radius: 30px; background: var(--surface); box-shadow: var(--shadow); }
.login-card { padding: 34px; }
.card-kicker { margin: 0 0 8px; color: var(--primary); font-size: 13px; font-weight: 850; text-transform: uppercase; }
.login-card h2 { margin: 0 0 10px; font-size: 30px; letter-spacing: -.035em; }
.login-card > p:not(.card-kicker), .auth-card > p, .order-card > p { margin: 0 0 24px; color: var(--muted); line-height: 1.55; }
.phone-form { display: grid; gap: 11px; }
.phone-form label { font-size: 13px; font-weight: 800; }
.phone-form input { width: 100%; min-height: 56px; padding: 0 17px; border: 1px solid var(--line); border-radius: 15px; outline: none; background: var(--bg); color: var(--text); font-size: 18px; }
.phone-form input:focus { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(145, 72, 216, .13); }
.form-note, .security-note { margin: 15px 0 0 !important; padding: 13px 15px; border-radius: 13px; background: var(--surface-soft); color: var(--muted) !important; font-size: 13px; line-height: 1.5; }
.form-errors, .field-errors { color: var(--danger); font-size: 13px; }
.errorlist { margin: 0; padding-left: 18px; }

.button { display: inline-flex; align-items: center; justify-content: center; min-height: 49px; padding: 0 21px; border: 0; border-radius: 14px; text-decoration: none; cursor: pointer; font-weight: 850; transition: transform .15s ease, background .15s ease; }
.button:hover { transform: translateY(-1px); }
.button:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.button--primary { background: var(--primary); color: var(--primary-text); }
.button--primary:hover { background: var(--primary-hover); }
.button--secondary { border: 1px solid var(--line); background: var(--surface-soft); color: var(--text); }
.button--ghost { border: 1px solid var(--line); background: transparent; color: var(--text); }
.button--wide { width: 100%; }

.section { padding: 78px 0; }
.section--first { padding-top: 38px; }
.section--soft { border-block: 1px solid var(--line); background: color-mix(in srgb, var(--surface-soft) 55%, transparent); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 25px; margin-bottom: 28px; }
.section-heading h2 { max-width: 720px; margin: 10px 0 0; font-size: clamp(31px, 4vw, 47px); line-height: 1.05; letter-spacing: -.04em; }
.section-heading p { margin: 8px 0 0; color: var(--muted); }
.capacity-pill { display: inline-flex; flex: 0 0 auto; padding: 10px 14px; border-radius: 999px; background: var(--success-bg); color: var(--success); font-size: 13px; font-weight: 850; }
.capacity-pill--full { background: var(--danger-bg); color: var(--danger); }
.capacity-pill--low { background: var(--warning-bg); color: var(--warning); }
.faq-list { display: grid; gap: 10px; }
.faq-list details { padding: 19px 22px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); }
.faq-list summary { cursor: pointer; font-weight: 800; line-height: 1.5; }
.faq-list p { margin: 14px 0 0; color: var(--muted); line-height: 1.7; }
.faq-list a { color: var(--primary); text-underline-offset: 3px; }
.reservation-timer { padding: 16px; border-radius: 14px; background: var(--warning-bg); color: var(--warning); line-height: 1.6; }
.reservation-timer strong { font-variant-numeric: tabular-nums; white-space: nowrap; }
.tracking-note { color: var(--muted); font-size: 14px; line-height: 1.6; margin: 16px 0 24px; }
.steps-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.step-card { min-height: 230px; padding: 24px; border: 1px solid var(--line); border-radius: 22px; background: var(--surface); }
.step-card > span { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 13px; background: var(--surface-strong); color: var(--primary); font-size: 13px; font-weight: 900; }
.step-card h3 { margin: 35px 0 9px; font-size: 20px; letter-spacing: -.02em; }
.step-card p, .tariff-card p { margin: 0; color: var(--muted); line-height: 1.55; }

.tariff-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(235px, 1fr)); gap: 16px; }
.tariff-card { position: relative; display: flex; flex-direction: column; min-height: 310px; padding: 27px; border: 1px solid var(--line); border-radius: 24px; background: var(--surface); }
.tariff-card--featured { border-color: var(--primary); box-shadow: 0 15px 45px rgba(145, 72, 216, .13); }
.popular-label { position: absolute; top: 16px; right: 16px; padding: 6px 9px; border-radius: 999px; background: var(--primary); color: var(--primary-text); font-size: 11px; font-weight: 850; }
.tariff-duration { color: var(--primary); font-size: 13px; font-weight: 900; text-transform: uppercase; }
.tariff-card h3 { margin: 12px 0 10px; font-size: 25px; letter-spacing: -.03em; }
.tariff-card > strong { margin: auto 0 17px; padding-top: 24px; font-size: 34px; letter-spacing: -.04em; }

.center-section { display: grid; place-items: center; min-height: calc(100vh - 190px); padding: 54px 20px 80px; }
.auth-card, .order-card { width: min(100%, 580px); padding: clamp(27px, 5vw, 46px); }
.auth-card h1, .order-card h1 { font-size: clamp(38px, 7vw, 56px); }
.page-head { padding: 60px 0 25px; }
.page-head h1 { font-size: clamp(42px, 7vw, 67px); }
.page-head p { max-width: 700px; margin: 0 0 18px; color: var(--muted); font-size: 18px; line-height: 1.55; }
.back-link { display: block; width: fit-content; margin-bottom: 30px; color: var(--muted); font-weight: 750; text-decoration: none; }

.account-hero { padding: 56px 0 34px; }
.account-heading { display: flex; align-items: end; justify-content: space-between; gap: 25px; }
.account-heading h1 { font-size: clamp(42px, 6vw, 68px); }
.account-heading p { margin: 0; color: var(--muted); font-size: 17px; }
.account-actions { flex-wrap: wrap; justify-content: flex-end; gap: 10px; }
.access-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.access-card { padding: 25px; border: 1px solid var(--line); border-radius: 24px; background: var(--surface); box-shadow: 0 14px 38px rgba(53, 25, 72, .06); }
.access-card--active { border-top: 3px solid var(--success); }
.access-card--grace { border-top: 3px solid var(--warning); }
.access-top { display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.status-badge { padding: 7px 10px; border-radius: 999px; font-size: 12px; font-weight: 850; }
.status-badge--active { background: var(--success-bg); color: var(--success); }
.status-badge--grace { background: var(--warning-bg); color: var(--warning); }
.key-number { color: var(--muted); font-size: 12px; font-weight: 750; }
.access-card h3 { margin: 24px 0 18px; font-size: 26px; }
.access-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 0 0 22px; }
.access-facts div { padding: 13px; border-radius: 13px; background: var(--surface-soft); }
.access-facts dt { color: var(--muted); font-size: 11px; font-weight: 750; text-transform: uppercase; }
.access-facts dd { margin: 5px 0 0; font-size: 14px; font-weight: 800; }
.card-actions { flex-direction: column; gap: 9px; }
.card-actions form { width: 100%; }

.empty-state { padding: 60px 25px; border: 1px dashed var(--line); border-radius: 26px; background: var(--surface); text-align: center; }
.empty-icon { display: grid; place-items: center; width: 58px; height: 58px; margin: 0 auto 17px; border-radius: 18px; background: var(--surface-strong); color: var(--primary); font-size: 28px; }
.empty-state h3 { margin: 0 0 8px; font-size: 27px; }
.empty-state p { margin: 0 auto 22px; max-width: 530px; color: var(--muted); }
.order-list { overflow: hidden; border: 1px solid var(--line); border-radius: 22px; background: var(--surface); }
.order-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 18px 21px; border-bottom: 1px solid var(--line); text-decoration: none; }
.order-row:last-child { border-bottom: 0; }
.order-row:hover { background: var(--surface-soft); }
.order-row div { display: grid; gap: 4px; }
.order-row span { color: var(--muted); font-size: 13px; }
.order-row-end { text-align: right; }

.result-icon { display: grid; place-items: center; width: 64px; height: 64px; margin-bottom: 25px; border-radius: 20px; background: var(--surface-strong); color: var(--primary); font-size: 30px; font-weight: 900; }
.result-icon--success { background: var(--success-bg); color: var(--success); }
.result-icon--danger { background: var(--danger-bg); color: var(--danger); }
.order-summary { margin: 28px 0; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.order-summary div { display: flex; justify-content: space-between; gap: 20px; padding: 13px 16px; border-bottom: 1px solid var(--line); }
.order-summary div:last-child { border: 0; }
.order-summary dt { color: var(--muted); }
.order-summary dd { margin: 0; font-weight: 800; text-align: right; }

.site-footer { padding: 30px 0 42px; color: var(--muted); font-size: 13px; }
.footer-inner { display: flex; justify-content: space-between; gap: 20px; padding-top: 22px; border-top: 1px solid var(--line); }
.footer-inner span { white-space: nowrap; }

@media (max-width: 880px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy { max-width: 760px; }
  .login-card { max-width: 590px; }
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .account-heading { align-items: flex-start; flex-direction: column; }
  .account-actions { justify-content: flex-start; }
}

@media (max-width: 600px) {
  .shell, .shell.narrow { width: min(100% - 24px, 1180px); }
  .site-header { padding: 11px 0; }
  .brand img { width: 82px; height: 42px; }
  .nav-link { display: none; }
  .theme-toggle { min-height: 36px; padding: 0 11px; font-size: 11px; }
  .hero-section { padding: 38px 0 48px; }
  .hero-copy h1 { font-size: 45px; }
  .hero-lead { font-size: 17px; }
  .login-card { padding: 24px; border-radius: 23px; }
  .section { padding: 54px 0; }
  .section-heading { align-items: flex-start; flex-direction: column; }
  .steps-grid { grid-template-columns: 1fr; }
  .step-card { min-height: auto; }
  .step-card h3 { margin-top: 25px; }
  .account-hero { padding-top: 38px; }
  .account-actions, .account-actions form { width: 100%; }
  .account-actions .button { width: 100%; }
  .access-grid { grid-template-columns: 1fr; }
  .access-facts { grid-template-columns: 1fr; }
  .order-row { align-items: flex-start; }
  .order-row-end { text-align: right; }
  .footer-inner { flex-direction: column; }
}
