:root {
  color-scheme: light;
  --ink: #1a142d;
  --muted: #5f5872;
  --violet: #6e20d6;
  --blue: #0076b8;
  --border: #e1d9ef;
  --surface: #fff;
  font: 16px/1.5 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: #f8f5fd; }
button, input { font: inherit; }
button { cursor: pointer; color: inherit; }
a { color: inherit; text-decoration: none; }
button:focus-visible, a:focus-visible, input:focus-visible, .choice input:focus-visible + span { outline: 3px solid #8e54ec; outline-offset: 3px; }
h1, h2, h3, p { margin: 0; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.wrap { width: min(100% - 64px, 1140px); margin-inline: auto; }
.top { background: #fff; border-bottom: 1px solid #ebe5f3; }
.nav { min-height: 68px; display: flex; align-items: center; gap: 44px; position: relative; }


nav { display: flex; align-items: center; gap: 10px; }
nav a, nav button, .footer button { border: 0; background: transparent; font-size: .9rem; font-weight: 650; padding: 9px 14px; border-radius: 11px; }
nav a:hover, nav button:hover, .footer button:hover { background: #eee5fb; }
nav .current { color: #5c16b8; background: #eee2fd; }
.menu { display: none; margin-left: auto; background: transparent; border: 0; border-radius: 10px; min-width: 44px; min-height: 44px; font-size: 1.4rem; }
.header-profile, .theme-toggle { display: grid; place-items: center; flex: 0 0 44px; height: 44px; padding: 0; border: 1px solid #e8ddf7; border-radius: 12px; background: #f0e8fc; color: #2c1d42; }
.header-profile:hover { background: #e8dafb; }
.header-profile .profile-avatar { width: 34px; height: 34px; font-size: .96rem; }
.profile-icon { display: grid; justify-items: center; width: 23px; height: 24px; }
.profile-icon::before, .profile-icon::after { content: ""; display: block; border: 1.7px solid currentColor; }
.profile-icon::before { width: 8px; height: 8px; border-radius: 50%; }
.profile-icon::after { width: 17px; height: 9px; border-radius: 11px 11px 3px 3px; }
.mobile-profile { display: none; }
.hero { position: relative; isolation: isolate; overflow: hidden; min-height: 232px; background: linear-gradient(105deg,#f4ecff,#e9dbff); border-radius: 25px; display: flex; align-items: center; margin-block: 24px 15px; }
.hero-copy { position: relative; z-index: 1; padding: 30px 5%; width: 60%; }
.hero h1 { font-size: clamp(2.3rem, 4.45vw, 4rem); line-height: 1.03; font-weight: 850; letter-spacing: -.057em; text-wrap: balance; }
.hero p { color: var(--muted); margin-top: 12px; font-size: clamp(1rem, 1.7vw, 1.3rem); }
.hero-art { position: absolute; z-index: -1; right: 0; bottom: 0; width: 55%; height: 100%; object-fit: cover; object-position: center 48%; mask-image: linear-gradient(to right,transparent,black 24%); }
.categories { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.category { padding: 12px 20px; border: 1px solid #fff; border-radius: 19px; display: flex; align-items: center; justify-content: space-between; text-align: left; gap: 10px; min-width: 0; min-height: 97px; transition: box-shadow .16s, transform .16s; }
.category:hover { box-shadow: 0 5px 15px #39166a18; transform: translateY(-2px); }
.category strong { display: block; font-size: 1.32rem; line-height: 1.2; letter-spacing: -.025em; }
.category small { display: block; font-size: .9rem; margin-top: 4px; color: #4e4865; }
.telegram { background: linear-gradient(115deg,#e0f4ff,#bce8ff); }
.games { background: linear-gradient(115deg,#f1e7ff,#dfcef9); }
.category-art { flex: none; width: clamp(68px,8vw,92px); height: auto; object-fit: contain; }
.product { padding-top: 28px; scroll-margin-top: 15px; }
.section-title { display: flex; align-items: center; gap: 13px; margin-bottom: 15px; }
.section-icon { display: block; flex: none; width: 44px; height: 44px; object-fit: contain; }
.section-title h2, .summary h3 { line-height: 1.2; font-size: 1.55rem; letter-spacing: -.035em; }
.section-title p { color: var(--muted); font-size: .92rem; }
.checkout-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 21px; align-items: start; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; box-shadow: 0 4px 18px #4f2a8410; }
.fields, .summary { padding: 22px; }
.choice { margin: 0; padding: 0; border: 0; min-inline-size: 0; display: grid; gap: 9px; grid-template-columns: repeat(3,minmax(0,1fr)); }
.choice label { position: relative; min-width: 0; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice label > span { display: flex; justify-content: center; align-items: center; gap: 9px; min-height: 45px; border: 1px solid var(--border); border-radius: 10px; font-size: .9rem; font-weight: 650; cursor: pointer; }
.choice label:hover > span { background: #f5edff; }
.choice input:checked + span { color: #471192; border-color: #8a45e8; background: #f3eaff; }
.choice legend, .field-group label[for] { font-weight: 700; font-size: .92rem; }
.choice legend { margin-bottom: 8px; }
.field-group { margin-bottom: 14px; }
.quantity-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
input[type="number"], input[type="text"] { border: 1px solid #bfb4d4; border-radius: 9px; background: white; min-height: 43px; padding: 7px 11px; color: var(--ink); }
.quantity { width: 108px; font-weight: 750; }
[data-stars-slider] { --slider-progress: 21.2%; display: block; appearance: none; width: 100%; margin: 8px 0 0; height: 30px; background: transparent; cursor: pointer; }
[data-stars-slider]::-webkit-slider-runnable-track { height: 7px; border-radius: 999px; background: linear-gradient(to right,#7540d3 var(--slider-progress),#e8e0f3 var(--slider-progress)); }
[data-stars-slider]::-webkit-slider-thumb { appearance: none; width: 20px; height: 20px; margin-top: -6.5px; border: 2px solid #7540d3; border-radius: 50%; background: white; box-shadow: 0 2px 5px #43208030; }
[data-stars-slider]::-moz-range-track { height: 7px; border-radius: 999px; background: linear-gradient(to right,#7540d3 var(--slider-progress),#e8e0f3 var(--slider-progress)); }
[data-stars-slider]::-moz-range-thumb { box-sizing: border-box; width: 20px; height: 20px; border: 2px solid #7540d3; border-radius: 50%; background: white; box-shadow: 0 2px 5px #43208030; }
@media (forced-colors: active) { [data-stars-slider] { appearance: auto; } }
.limits { display: flex; justify-content: space-between; color: var(--muted); font-size: .78rem; }
.presets { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 7px; }
.presets button { padding: 5px 12px; min-height: 34px; background: #f5f1fb; border: 1px solid #eee8f5; border-radius: 8px; font-size: .85rem; }
.presets button[aria-pressed="true"] { color: #005a8d; background: #e7f5ff; border-color: #92cfee; }
.recipient input { display: block; width: 100%; margin-top: 5px; }
.recipient small { display: block; margin-top: 4px; color: var(--muted); font-size: .84rem; }
.error { color: #a32542; font-size: .85rem; margin-top: 5px; }
.pay-icon { flex: none; display: block; width: 36px; height: 36px; object-fit: contain; }
.summary-item { display: flex; align-items: center; gap: 10px; padding: 10px 13px; border-radius: 10px; background: #f4effb; margin-block: 15px; }
.summary-item img { flex: none; object-fit: contain; }
.total { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; border-top: 1px solid var(--border); padding-block: 10px 15px; font-weight: 750; }
.total output { font-size: 1.65rem; font-weight: 850; letter-spacing: -.045em; white-space: nowrap; }
.primary { display: block; width: 100%; min-height: 49px; border: 0; border-radius: 10px; background: linear-gradient(115deg,#8439e9,#6216c1); color: white; font-weight: 750; padding: 10px 15px; }
.primary:hover { background: #5913b3; }
.demo-note { color: var(--muted); font-size: .79rem; text-align: center; margin-top: 10px; }
.footer { display: flex; justify-content: space-between; align-items: center; gap: 12px; color: var(--muted); margin-top: 23px; padding-block: 10px 20px; border-top: 1px solid var(--border); }
.footer span { font-weight: 850; }
.footer button { padding-inline: 5px; text-align: right; }
dialog { border: 1px solid var(--border); border-radius: 18px; width: min(480px, calc(100% - 28px)); max-height: calc(100dvh - 28px); padding: 25px; color: var(--ink); box-shadow: 0 18px 70px #1f124c30; }
dialog::backdrop { background: #23153e77; }
.dialog-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.dialog-top h2 { font-size: 1.35rem; }
.dialog-top h2[tabindex="-1"]:focus { outline: none; }
.dialog-top button { border: 0; background: #f2edf8; font-size: 1.45rem; border-radius: 8px; width: 44px; height: 44px; }
dialog p + p, dialog p + button { margin-top: 14px; }
.dialog-note { color: var(--muted); margin-block: 10px 17px; }
.order-row { padding: 12px 0; border-bottom: 1px solid var(--border); overflow-wrap: anywhere; }
.order-row small { display: block; color: var(--muted); }
@media (max-width: 800px) {
  .wrap { width: min(100% - 36px, 700px); }
  .hero { min-height: 200px; }
  .checkout-grid { gap: 12px; grid-template-columns: minmax(0,1.5fr) minmax(0,1fr); }
  .fields, .summary { padding: 16px; }
  .payments label > span { gap: 5px; }
}
@media (max-width: 650px) {
  .wrap { width: calc(100% - 28px); }
  .nav { gap: 12px; min-height: 56px; }

  .menu { display: block; margin-left: 0; }
  .desktop-orders { display: none; }
  .mobile-profile { display: inline; }
  nav { display: none; position: absolute; right: 0; top: 53px; z-index: 5; background: white; border: 1px solid var(--border); border-radius: 13px; padding: 6px; box-shadow: 0 4px 18px #4f2a8422; }
  nav.open { display: grid; justify-items: stretch; }
  nav button { text-align: left; }
  .hero { min-height: 158px; margin-top: 13px; border-radius: 17px; }
  .hero-copy { width: 63%; padding: 17px 0 17px 15px; }
  .hero h1 { font-size: clamp(1.65rem,6.5vw,2.35rem); text-wrap: initial; }
  .hero p { font-size: .86rem; line-height: 1.3; margin-top: 8px; }
  .hero-art { width: 55%; object-position: 63% center; mask-image: linear-gradient(to right,transparent,black 22%); }
  .categories { gap: 8px; }
  .category { gap: 8px; padding: 10px; min-height: 60px; border-radius: 12px; }
  .category strong { font-size: 1rem; }
  .category small { display: none; }
  .product { padding-top: 18px; }
  .checkout-grid { display: block; }
  .payments { grid-template-columns: 1fr; gap: 6px; }
  .payments label > span { justify-content: flex-start; padding-inline: 12px; gap: 10px; }
  .summary { margin-top: 12px; position: sticky; bottom: max(8px, env(safe-area-inset-bottom)); z-index: 2; display: grid; grid-template-columns: auto minmax(0,1fr); align-items: center; gap: 4px 13px; padding: 9px 12px; box-shadow: 0 -3px 15px #4f2a8420; }
  .summary h3, .summary-item, .total > span { display: none; }
  .total { padding: 0; border: 0; }
  .total output { font-size: 1.45rem; }
  .summary .primary { min-height: 44px; padding: 7px 10px; }
  .demo-note { grid-column: 1 / -1; margin: 0; }
  .footer { margin-top: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}

.recipient-chip { display: flex; align-items: center; gap: 10px; min-height: 48px; margin-top: 5px; padding: 5px 8px; border: 1px solid #c9dfec; border-radius: 24px; background: #f3f9fd; }
.recipient-avatar, .profile-avatar { display: grid; flex: none; place-items: center; width: 34px; height: 34px; overflow: hidden; border-radius: 50%; background: #dbeffd; color: #255e83; font-weight: 800; }
.recipient-avatar img { display: block; width: 100%; height: 100%; object-fit: cover; }
.recipient-chip > div { min-width: 0; overflow-wrap: anywhere; }
.recipient-chip small { margin: 0; }
.recipient-chip button { flex: none; margin-left: auto; width: 36px; height: 36px; border: 0; border-radius: 50%; background: #e6edf5; font-size: 1.25rem; line-height: 1; }
.checkout-section-heading { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 13px; }
.checkout-section-heading h3 { font-size: 1.12rem; line-height: 1.2; }
#recipient-count { color: var(--muted); font-size: .84rem; }
.recipient-entry + .recipient-entry { margin-top: 7px; }
.recipient-heading { display: flex; align-items: center; gap: 3px; border: 1px solid var(--border); border-radius: 12px; background: #faf7fe; padding-right: 3px; }
.recipient-toggle { flex: 1; min-width: 0; min-height: 56px; display: flex; align-items: center; gap: 8px; padding: 7px 4px 7px 9px; text-align: left; border: 0; border-radius: 11px; background: transparent; }
.recipient-toggle:hover { background: #f4edfc; }
.recipient-toggle-copy { display: grid; min-width: 0; flex: 1; }
.recipient-toggle-copy strong { font-size: .88rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.recipient-toggle-copy small { color: var(--muted); font-size: .77rem; overflow-wrap: anywhere; }
.recipient-price { font-size: .83rem; white-space: nowrap; }
.recipient-chevron { flex: none; width: 7px; height: 7px; margin-inline: 3px; border: solid #73589d; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.recipient-toggle[aria-expanded="true"] .recipient-chevron { transform: rotate(225deg); }
.recipient-heading:not([hidden]) + .recipient-editor { padding: 13px 3px 0; }
.recipient-editor > .field-group:last-of-type { margin-bottom: 12px; }
.recipient-editor .recipient-done { width: auto; min-height: 40px; margin-left: auto; padding-inline: 16px; }
.recipient-label-row { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 3px 10px; }
.buy-self { min-height: 36px; padding: 4px 10px; border: 1px solid #e3d6f5; border-radius: 8px; background: #f6effe; color: #592696; font-size: .85rem; font-weight: 700; }
.buy-self:hover { background: #eee3fa; }
.remove-recipient { flex: none; width: 36px; height: 40px; border-radius: 9px; border: 0; background: transparent; color: #5b4479; font-size: 1.2rem; }
.add-recipient { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 44px; margin: 10px 0 17px; padding: 8px 13px; border: 1px solid #e3d6f5; background: #f7f1fe; color: #592696; border-radius: 11px; font-weight: 700; }
.add-recipient:hover, .remove-recipient:hover { background: #eee3fa; }
.add-recipient span { font-size: 1.18rem; line-height: 1; }
.recipient-limit { margin: 0 0 18px; color: var(--muted); font-size: .89rem; }
#order-settings .payments { padding-top: 0; }
.review-dialog, .profile-dialog { width: min(520px, calc(100% - 28px)); }
.profile-dialog { overflow-x: hidden; }
.review-product { display: flex; gap: 10px; align-items: center; padding: 8px 12px; border-radius: 12px; background: #f3edf9; }
.review-product img, .review-payment img { flex: none; object-fit: contain; }
.review-recipients { list-style: none; padding: 0; margin: 12px 0; }
.review-recipients li { display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: 2px 9px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.review-recipients li div { display: grid; overflow-wrap: anywhere; line-height: 1.28; }
.review-recipients small { color: var(--muted); margin-top: 3px; }
.review-price { white-space: nowrap; }
.review-edit { justify-self: end; min-height: 40px; padding: 4px 9px; border: 0; border-radius: 8px; background: transparent; color: #552397; font-size: .85rem; font-weight: 700; }
.review-edit:hover { background: #f1e8fc; }
.review-recipients .review-edit { grid-column: 2 / -1; }
.review-totals > div { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.review-payment-row > div { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 10px; }
.review-payment { display: flex; align-items: center; gap: 6px; }
.review-total { margin-top: 10px; padding: 10px 12px; border-radius: 11px; background: #f4eefb; font-weight: 750; }
.review-total strong { font-size: 1.45rem; }
.review-notice { margin-top: 12px; color: var(--muted); font-size: .85rem; text-align: center; }
.secondary-action { display: grid; place-items: center; width: 100%; min-height: 44px; padding: 6px 12px; border: 1px solid #e1d5f1; border-radius: 10px; background: #faf7fe; color: #552397; font-weight: 750; text-align: center; }
.secondary-action:hover { background: #f1e8fc; }
#review-message { margin-top: 10px; text-align: center; }
#save-order { margin-top: 12px; }
#resume-order { margin-bottom: 12px; }
.saved-order-items { display: grid; gap: 6px; margin: 10px 0 0; padding: 0; list-style: none; }
.saved-order-items li { padding: 8px 10px; border-radius: 8px; background: #faf7fe; overflow-wrap: anywhere; }
.profile-welcome { display: grid; justify-items: center; gap: 8px; padding: 16px; border: 1px solid var(--border); border-radius: 14px; background: #faf7fe; text-align: center; }
.profile-welcome-icon { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 15px; background: #eee2fc; color: #6026a2; }
.profile-welcome p, .profile-empty p { color: var(--muted); font-size: .9rem; }
.profile-welcome .primary { margin-top: 7px; display: grid; place-items: center; }
.auth-options { display: grid; width: 100%; gap: 8px; }
.auth-options :is(.telegram-login, .provider-login) { display: flex; justify-content: center; align-items: center; gap: 7px; }
.vk-badge { flex: none; }
.auth-options button:disabled { opacity: .6; cursor: default; }
.auth-caption { color: var(--muted); font-size: .85rem; }
.auth-back { border: 0; padding: 8px 0; background: transparent; color: #552397; font-size: .88rem; font-weight: 650; text-align: left; text-decoration: underline; text-underline-offset: 3px; }
.auth-signup { width: 100%; margin-top: 6px; padding-top: 6px; border-top: 1px solid var(--border); }
.auth-signup .auth-back { min-height: 44px; padding-inline: 4px; }
.email-auth { padding: 13px 15px 16px; border: 1px solid var(--border); border-radius: 14px; background: #faf7fe; }
.email-auth form { display: grid; gap: 9px; margin-top: 7px; }
.email-auth label { font-size: .91rem; font-weight: 700; }
.email-auth input:not([type="file"]) { width: 100%; min-width: 0; min-height: 47px; padding: 8px 11px; border: 1px solid #d8cfe8; border-radius: 11px; background: white; color: var(--ink); }
#login-code { letter-spacing: .16em; }
.password-settings { margin-top: 12px; }
.password-settings summary { cursor: pointer; font-weight: 700; }
#password-mode { justify-self: center; }
#profile-logout, #platform-logout { margin-top: 12px; }
.profile-empty { display: grid; justify-items: center; gap: 6px; padding: 18px 13px; border: 1px dashed var(--border); border-radius: 13px; text-align: center; }
.profile-empty a { width: auto; margin-top: 5px; }
.profile-dialog .primary { text-align: center; }
#registration { display: grid; gap: 10px; margin-top: 12px; }
#registration label { font-weight: 700; }
#profile-message:not(:empty) { margin-bottom: 10px; color: var(--muted); }
.profile-banner { display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: 16px; background: linear-gradient(115deg,#f2e5ff,#e9eeff); }
.profile-avatar { width: 58px; height: 58px; background: #fff; color: #5b21a3; font-size: 1.3rem; }
.profile-banner small, .profile-banner strong { display: block; overflow-wrap: anywhere; }
.profile-banner small { color: var(--muted); }
.profile-banner strong { font-size: 1.35rem; line-height: 1.2; }
.profile-banner small { margin-top: 3px; font-size: .88rem; }
.profile-avatar img { display: block; width: 100%; height: 100%; object-fit: cover; }
.profile-switch { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin: 16px 0 12px; padding: 4px; border-radius: 12px; background: #f1ecf7; }
.profile-switch button { display: flex; justify-content: center; align-items: center; gap: 5px; min-height: 40px; padding: 4px 7px; border: 1px solid transparent; border-radius: 9px; background: transparent; color: var(--muted); font-size: .86rem; font-weight: 700; }
.profile-switch button:hover { color: var(--violet); }
.profile-switch button[aria-pressed="true"] { color: #4b209c; border-color: #e8def1; background: #fff; box-shadow: 0 1px 3px #35106a12; }
.profile-settings form { margin: 0; }
.profile-photo-picker { position: relative; display: flex; align-items: center; flex-wrap: wrap; gap: 7px 10px; }
.profile-photo-picker input { inset: 0 auto auto 0; padding: 0; border: 0; }
.profile-photo-picker label { display: inline-flex; align-items: center; min-height: 40px; padding: 5px 12px; border: 1px solid #e1d5f1; border-radius: 9px; background: #fff; color: #552397; cursor: pointer; }
.profile-photo-picker label:hover { background: #f1e8fc; }
.profile-photo-picker input:focus-visible + label { outline: 2px solid #8436ea; outline-offset: 2px; }
.profile-photo-picker small { min-width: 0; overflow-wrap: anywhere; }
.email-auth .profile-remove-photo { display: flex; align-items: center; gap: 6px; }
.email-auth .profile-remove-photo input { width: auto; min-height: 0; accent-color: var(--violet); }
.profile-settings .primary { margin-top: 5px; }
#orders-count { border-radius: 999px; padding: 1px 6px; color: #592696; background: #eee5f8; font-size: .75rem; }
.order-row { padding: 13px; border: 1px solid var(--border); border-radius: 12px; margin-bottom: 8px; }
.order-row > div { display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: 8px; }
.order-row img { object-fit: contain; }
.order-row .order-status { display: inline-block; margin-top: 7px; border-radius: 999px; padding: 3px 9px; background: #fff0d2; color: #734500; font-size: .82rem; font-weight: 650; }
.order-row .order-status.paid { background: #dcf7e8; color: #166140; }
.order-row button { display: block; border: 0; padding: 4px 0; margin-top: 6px; color: #6026a2; background: transparent; font-size: .86rem; text-decoration: underline; }
.primary:disabled { opacity: .65; cursor: wait; }
@media (max-width: 390px) {
  .term label > span { padding-inline: 3px; font-size: .8rem; text-align: center; }
  .profile-dialog, .review-dialog { padding: 16px; }
  .recipient-toggle .recipient-avatar { width: 28px; height: 28px; }
}

/* Storefront */
:root {
  --ink: #171327;
  --muted: #605771;
  --violet: #6526d6;
  --border: #e8e0f2;
}
body { background: radial-gradient(ellipse at 50% 0,#f1e9fb 0,transparent 31rem),#f9f7fc; }
.wrap { width: min(100% - 64px, 1180px); }
.top { background: #ffffffef; }
.nav { gap: 12px; min-height: 70px; }
.nav nav { margin-inline-start: clamp(4px, 3vw, 38px); }







nav a, nav button { font-weight: 700; }
nav .current { color: #5720ac; background: #f2e9ff; }
.hero { min-height: 224px; margin-block: 20px 12px; border: 1px solid #e7d9fb; border-radius: 24px; background: linear-gradient(112deg,#f6edff 12%,#ebddff 69%,#e7d4ff 100%); }
.hero-copy { width: 59%; padding: 24px clamp(24px,4vw,48px); }
.hero h1 { font-size: clamp(2.25rem,4.3vw,3.6rem); font-weight: 850; line-height: 1.04; letter-spacing: -.065em; }
.hero p { margin-top: 9px; font-size: clamp(.97rem,1.5vw,1.12rem); color: #54466b; }
.hero-link { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; margin-top: 16px; padding: 8px 15px; border-radius: 11px; font-weight: 750; font-size: .92rem; background: #fff; color: #4b209c; box-shadow: 0 4px 16px #5a279512; }
.hero-link:hover { background: #f9f5ff; box-shadow: 0 5px 18px #5a279526; }
.hero-art { width: 62%; object-position: 65% 30%; mask-image: linear-gradient(90deg,transparent 1%,#000 31%); }
.categories { gap: 16px; }
.category { min-height: 82px; padding: 4px 18px; border-color: transparent; border-radius: 16px; }
.telegram { background: linear-gradient(115deg,#e6f7ff,#d6eeff); border-color: #cdebf9; }
.games { background: linear-gradient(115deg,#f3eaff,#e9dcff); border-color: #e4d4fb; }
.category strong { font-size: 1.32rem; }
.product { padding-top: 22px; }
.section-title { margin-bottom: 12px; }
#order-settings { scroll-margin-top: 16px; }
.section-title h2 { font-size: clamp(1.55rem,3vw,2.18rem); }
.checkout-grid { grid-template-columns: minmax(0,1.7fr) minmax(0,1fr); gap: 20px; }
.product-options { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; margin-bottom: 14px; }
.stars-option { --option-edge: #e5d3b0; --option-active: #aa650e; --option-bg: linear-gradient(115deg,#fffaf1,#ffefc8); }
.premium-option { --option-edge: #daceed; --option-active: #7440bd; --option-bg: linear-gradient(115deg,#faf6ff,#edddff); }
.product-options .product-option > .product-option-card {
  position: relative;
  display: flex;
  justify-content: space-between;
  gap: 8px;
  min-height: 112px;
  padding: 10px 21px;
  border: 1px solid var(--option-edge);
  border-radius: 18px;
  color: var(--ink);
  background: var(--option-bg);
  transition: box-shadow .16s, border-color .16s;
}
.product-options .product-option:hover > .product-option-card { border-color: var(--option-active); }
.product-options input:checked + .product-option-card { border-color: var(--option-active); box-shadow: inset 0 0 0 1px var(--option-active); }
.product-options input:focus-visible + .product-option-card { outline: 3px solid var(--violet); outline-offset: 3px; }
.product-option-card::after { content: ""; position: absolute; top: 12px; right: 12px; width: 15px; height: 15px; border: 1px solid var(--option-active); border-radius: 50%; background: #fff9; }
.product-options input:checked + .product-option-card::after { background: var(--option-active); box-shadow: inset 0 0 0 3px #fff; }
.product-option-copy { display: grid; gap: 5px; min-width: 0; }
.product-option-copy strong { font-size: clamp(1.25rem,2.45vw,1.75rem); line-height: 1.06; letter-spacing: -.035em; }
.product-option-copy small { font-size: .91rem; font-weight: 500; line-height: 1.3; color: var(--muted); }
.product-option-card img { width: clamp(75px,10vw,104px); height: auto; flex: none; object-fit: contain; }
.card { border-radius: 21px; box-shadow: 0 8px 28px #4f29740a; }
.fields, .summary { padding: 24px; }
.field-group { margin-bottom: 19px; }
.quantity { width: 122px; }
input[type="number"], input[type="text"] { min-height: 47px; border-color: #d8cfe8; border-radius: 11px; background: #fdfcff; }
.choice label > span { min-height: 47px; }
.presets button { min-height: 38px; }
.presets button:hover { background: #eee6fb; }
.payments label > span { justify-content: flex-start; padding-inline: 13px; }
.summary { position: sticky; top: 16px; }
.summary h3 { font-size: 1.45rem; }
.summary-item { background: #f6f1fc; padding: 12px; margin-block: 16px 12px; }
.summary-item small { display: block; color: var(--muted); font-size: .81rem; }
.summary-meta { display: grid; gap: 7px; margin: 0 0 13px; font-size: .89rem; }
.summary-meta div { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.15fr); gap: 7px; }
.summary-meta dt { color: var(--muted); }
.summary-meta dd { margin: 0; text-align: right; overflow-wrap: anywhere; }
.total output { font-size: 1.8rem; }
.primary { min-height: 50px; border-radius: 12px; background: linear-gradient(115deg,#7838e6,#5b1dc7); }
.checkout-note { margin-top: 11px; text-align: center; font-size: .8rem; color: var(--muted); }
.footer { margin-top: 26px; }

@media (max-width: 800px) {
  .wrap { width: calc(100% - 36px); }
  .hero { min-height: 202px; }
  .checkout-grid { gap: 12px; }
  .fields, .summary { padding: 16px; }
  .payments label > span { justify-content: center; padding-inline: 5px; }
}
@media (max-width: 650px) {
  .wrap { width: calc(100% - 28px); }
  .nav { min-height: 58px; gap: 9px; }
  .nav nav { margin-inline-start: 0; }

  .hero { min-height: 175px; border-radius: 19px; margin-block: 12px 10px; }
  .hero-copy { padding: 16px 0 17px 15px; width: 63%; }
  .hero h1 { font-size: clamp(1.75rem,7.35vw,2.75rem); }
  .hero p { font-size: .86rem; margin-top: 8px; max-width: 12em; }
  .hero-link { min-height: 42px; margin-top: 12px; padding: 6px 11px; font-size: .82rem; }
  .hero-art { width: 56%; object-position: 63% 40%; }
  .categories { gap: 8px; }
  .category { min-height: 60px; gap: 8px; padding: 8px; border-radius: 12px; }
  .category strong { font-size: 1rem; }
  .category .category-status { display: block; font-size: .76rem; }
  .category-art { width: clamp(40px,14vw,62px); }
  .product { padding-top: 23px; }
  .section-title { margin-bottom: 12px; }
  .product-options { gap: 8px; margin-bottom: 12px; }
  .product-options .product-option > .product-option-card { flex-direction: column-reverse; align-items: flex-start; justify-content: flex-end; min-height: 130px; height: 100%; gap: 3px; padding: 7px 10px 9px; border-radius: 14px; }
  .product-option-card img { align-self: center; width: clamp(48px,15vw,70px); }
  .product-option-card::after { inset: 9px 9px auto auto; width: 13px; height: 13px; }
  .product-option-copy { gap: 4px; }
  .product-option-copy strong { font-size: clamp(.97rem,3.8vw,1.25rem); }
  .product-option-copy small { font-size: .77rem; }
  .fields { border-radius: 16px; }
  .payments label > span { justify-content: flex-start; padding-inline: 12px; }
  .summary { position: sticky; top: auto; bottom: max(8px,env(safe-area-inset-bottom)); margin-top: 12px; padding: 9px 12px; border-radius: 15px; }
  .configuration :is(input, button, .recipient-editor) { scroll-margin-bottom: calc(86px + env(safe-area-inset-bottom)); }
  .summary-meta { display: none; }
  .total output { font-size: clamp(1.22rem,6vw,1.53rem); }
  .summary .primary { min-height: 44px; font-size: .9rem; }
  .checkout-note { margin: 0; grid-column: 1 / -1; font-size: .75rem; }
  .footer { margin-top: 17px; }
}

.brand { display: grid; flex: none; align-items: center; min-height: 44px; }
.brand img { display: block; width: clamp(114px, 29vw, 148px); height: 39px; object-fit: contain; object-position: left center; }
.brand .brand-dark, .theme-moon, [data-theme="dark"] .brand .brand-light, [data-theme="dark"] .theme-sun { display: none; }
[data-theme="dark"] .brand .brand-dark, [data-theme="dark"] .theme-moon { display: block; }
.theme-toggle { margin-inline-start: auto; background: #f8f2ff; color: #6727bb; transition: background-color .15s, border-color .15s; }
.theme-toggle[hidden] + .header-profile { margin-inline-start: auto; }
.theme-toggle:hover { background: #eee0fb; border-color: #d9c4f2; }
.footer-social { display: flex; flex-wrap: wrap; gap: 4px; }
.footer-social a { display: inline-flex; align-items: center; min-height: 44px; padding-inline: 10px; border-radius: 9px; color: var(--violet); font-size: .875rem; font-weight: 650; }
.footer-social a:hover { background: #eee5fb; text-decoration: underline; }
@media (max-width: 650px) {
  .footer { flex-wrap: wrap; gap: 3px 12px; }
  .footer-social { order: 1; width: 100%; margin-inline-start: -10px; }
}

[data-theme="dark"] {
  color-scheme: dark;
  --ink: #f2ecfc;
  --muted: #c3b6d4;
  --violet: #c7a5ff;
  --border: #443655;
  --surface: #221a30;
  --raised: #2e223f;
  --hover: #3c2a53;
  --field: #1d1729;
}
[data-theme="dark"] body { background: radial-gradient(ellipse at 50% 0,#281b3e 0,transparent 31rem),#151020; }
[data-theme="dark"] .top { background: #1d1628; border-color: var(--border); }
@media (max-width: 650px) {
  [data-theme="dark"] nav { background: var(--surface); }
}
[data-theme="dark"] dialog { background: var(--surface); }
[data-theme="dark"] :is(nav a, nav button, .footer button, .footer-social a):hover { background: var(--hover); }
[data-theme="dark"] nav .current { background: var(--raised); color: var(--violet); }
[data-theme="dark"] :is(.header-profile, .theme-toggle) { background: var(--raised); color: var(--violet); border-color: var(--border); }
[data-theme="dark"] :is(.header-profile, .theme-toggle):hover { background: var(--hover); border-color: var(--violet); }
[data-theme="dark"] .hero { background: linear-gradient(112deg,#241735,#382050); border-color: var(--border); }
[data-theme="dark"] .hero p, [data-theme="dark"] .category small { color: var(--muted); }
[data-theme="dark"] .hero-art { filter: brightness(.83) saturate(1.08); }
[data-theme="dark"] .hero-link { background: #392650; color: #f4e9ff; }
[data-theme="dark"] .hero-link:hover { background: #4a3069; }
[data-theme="dark"] .telegram { background: linear-gradient(115deg,#1c273c,#263755); border-color: #364865; }
[data-theme="dark"] .games { background: linear-gradient(115deg,#2b203e,#3a2a55); border-color: #503c68; }
[data-theme="dark"] .stars-option { --option-edge: #634a35; --option-active: #dba85f; --option-bg: linear-gradient(115deg,#2b222b,#44312d); }
[data-theme="dark"] .premium-option { --option-edge: #54416c; --option-active: #bf9cf9; --option-bg: linear-gradient(115deg,#2a203d,#3c2857); }
[data-theme="dark"] .product-option-card::after { background: var(--field); }
[data-theme="dark"] .product-options input:checked + .product-option-card::after { background: var(--option-active); box-shadow: inset 0 0 0 3px var(--field); }
[data-theme="dark"] :is(input[type="text"], input[type="number"], .email-auth input:not([type="file"])) { background: var(--field); border-color: var(--border); }
[data-theme="dark"] input::placeholder { color: #aa9abb; }
[data-theme="dark"] .presets button { background: var(--raised); border-color: var(--border); }
[data-theme="dark"] :is(.choice:not(.product-options) label:hover > span, .presets button:hover) { background: var(--hover); }
[data-theme="dark"] .choice:not(.product-options) input:checked + span { color: #e2ceff; background: #382650; border-color: #a478ec; }
[data-theme="dark"] .presets button[aria-pressed="true"] { color: #c0e6ff; background: #24354e; border-color: #577c9d; }
[data-theme="dark"] [data-stars-slider]::-webkit-slider-runnable-track { background: linear-gradient(to right,#b184f8 var(--slider-progress),#463951 var(--slider-progress)); }
[data-theme="dark"] [data-stars-slider]::-moz-range-track { background: linear-gradient(to right,#b184f8 var(--slider-progress),#463951 var(--slider-progress)); }
[data-theme="dark"] .recipient-chip { background: #202d43; border-color: #405775; }
[data-theme="dark"] .recipient-avatar { background: #344a67; color: #d7edff; }
[data-theme="dark"] .recipient-chip button { background: #38475d; }
[data-theme="dark"] :is(.dialog-top button, .profile-switch, .summary-item, .review-product, .review-total, .saved-order-items li, .profile-welcome, .email-auth, .recipient-heading) { background: var(--raised); }
[data-theme="dark"] :is(.buy-self, .add-recipient, .secondary-action, .profile-photo-picker label) { background: var(--raised); border-color: var(--border); color: var(--violet); }
[data-theme="dark"] :is(.buy-self, .add-recipient, .secondary-action, .profile-photo-picker label, .recipient-toggle, .remove-recipient, .review-edit):hover { background: var(--hover); }
[data-theme="dark"] :is(.remove-recipient, .review-edit, .auth-back, .order-row button) { color: var(--violet); }
[data-theme="dark"] .recipient-chevron { border-color: var(--violet); }
[data-theme="dark"] .profile-banner { background: linear-gradient(115deg,#3b2856,#293451); }
[data-theme="dark"] :is(.profile-avatar, .profile-welcome-icon, #orders-count) { background: #412d5e; color: #ead9ff; }
[data-theme="dark"] .profile-switch button[aria-pressed="true"] { border-color: var(--border); background: var(--surface); color: var(--violet); }
[data-theme="dark"] dialog::backdrop { background: #100a19b8; }
[data-theme="dark"] .error { color: #ffb1c1; }
[data-theme="dark"] .order-row .order-status { background: #493325; color: #ffd49f; }
[data-theme="dark"] .order-row .order-status.paid { background: #1e3d33; color: #a4f1d5; }
