:root {
  color-scheme: dark;
  --bg: #070707;
  --bg-deep: #030303;
  --surface: #0d0d0e;
  --surface-raised: #121214;
  --surface-soft: #171719;
  --accent: #a20d16;
  --accent-bright: #c81722;
  --accent-soft: rgba(162, 13, 22, .18);
  --text: #f7f7f7;
  --muted: #8d8d95;
  --muted-strong: #b9b9bf;
  --line: #242426;
  --line-strong: #343438;
  --radius: 8px;
  font-family: Helvetica, Arial, sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { min-height: 100%; scroll-behavior: smooth; background: var(--bg); }
body { min-height: 100vh; margin: 0; color: var(--text); background: var(--bg); font-size: 15px; line-height: 1.45; letter-spacing: 0; }
button, input, select, textarea { font: inherit; color: inherit; letter-spacing: 0; }
button { border: 0; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
svg { width: 1em; height: 1em; stroke-width: 1.8; }
strong { font-weight: 600; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.muted { color: var(--muted); }

.landing-page,
.login-page,
.store-page {
  position: relative;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 50% 15%, rgba(89, 9, 16, .30), transparent 34rem),
    linear-gradient(180deg, #090909 0%, #050505 100%);
}
.landing-page::before,
.login-page::before,
.store-page::before {
  position: fixed;
  z-index: -1;
  inset: 0;
  content: "";
  opacity: .38;
  background-image:
    linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px);
  background-size: 56px 56px;
  pointer-events: none;
}

/* Brand and shared header */
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 16px; line-height: 1; font-weight: 600; }
.brand-mark { width: 29px; height: 22px; display: grid; place-items: center; transform: skew(-16deg); border: 1px solid rgba(255,255,255,.3); border-radius: 5px; background: #f5f5f5; color: #0b0b0b; font-size: 12px; font-weight: 600; }
.brand-mark + span { transform: translateY(1px); letter-spacing: .075em; }
.landing-header { position: absolute; z-index: 10; top: 0; left: 50%; width: min(1080px, calc(100% - 48px)); height: 72px; display: flex; align-items: center; justify-content: space-between; transform: translateX(-50%); animation: header-in .45s ease both; }
@keyframes header-in { from { opacity: 0; transform: translate(-50%, -8px); } to { opacity: 1; transform: translate(-50%, 0); } }
.header-link { min-height: 38px; display: inline-flex; align-items: center; gap: 8px; padding: 0 13px; border: 1px solid var(--line); border-radius: 8px; background: rgba(18,18,20,.78); font-size: 13px; font-weight: 500; transition: border-color .18s ease, background .18s ease, transform .18s ease; }
.header-link:hover { transform: translateY(-1px); border-color: var(--line-strong); background: var(--surface-soft); }

/* Landing */
.hero { position: relative; min-height: 760px; display: grid; place-items: center; padding: 112px 24px 72px; overflow: hidden; text-align: center; }
.hero__wash { position: absolute; top: 80px; left: 50%; width: 900px; height: 610px; transform: translateX(-50%); border-radius: 50%; opacity: .82; background: radial-gradient(ellipse, rgba(119, 10, 18, .22) 0%, rgba(43,5,9,.12) 45%, transparent 70%); filter: blur(2px); pointer-events: none; }
.hero__content { position: relative; width: min(880px, 100%); }
.hero__eyebrow { width: max-content; max-width: 100%; display: flex; align-items: center; gap: 7px; margin: 0 auto 24px; padding: 8px 13px; border: 1px solid rgba(200,23,34,.35); border-radius: 999px; background: rgba(162,13,22,.10); color: #e3a5a9; font-size: 13px; font-weight: 500; }
.hero__eyebrow svg { color: #d8454e; }
.hero h1 { margin: 0; font-size: 72px; line-height: 1.04; font-weight: 600; }
.hero h1 span { color: #cf2530; }
.hero__lead { max-width: 650px; margin: 25px auto 0; color: var(--muted-strong); font-size: 19px; }
.hero__actions { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 34px; }
.primary-action,
.secondary-action { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; gap: 20px; padding: 0 20px; border: 1px solid var(--line-strong); border-radius: 8px; font-weight: 500; transition: transform .18s ease, border-color .18s ease, background .18s ease; }
.primary-action { min-width: 202px; border-color: #c81722; background: #b9121c; color: #fff; }
.secondary-action { min-width: 112px; background: var(--surface-raised); }
.primary-action:hover, .secondary-action:hover { transform: translateY(-2px); }
.primary-action:hover { background: #c81722; }
.secondary-action:hover { border-color: var(--line-strong); background: var(--surface-soft); }
.primary-action:active, .secondary-action:active { transform: scale(.985); }
.stats-strip { width: min(560px, 100%); display: grid; grid-template-columns: repeat(3, 1fr); margin: 76px auto 0; }
.stats-strip div { min-width: 0; padding: 0 20px; border-left: 1px solid var(--line); }
.stats-strip div:first-child { border-left: 0; }
.stats-strip strong, .stats-strip span { display: block; }
.stats-strip strong { font-size: 29px; line-height: 1; }
.stats-strip span { margin-top: 8px; color: var(--muted); font-size: 12px; }
.landing-section { width: min(1080px, calc(100% - 48px)); margin: 0 auto; padding: 72px 0; }
.features-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; padding-top: 18px; }
.feature-card { min-height: 178px; padding: 20px; border: 1px solid var(--line); border-radius: 8px; background: rgba(13,13,14,.82); transition: transform .18s ease, border-color .18s ease, background .18s ease; }
.feature-card:hover { transform: translateY(-3px); border-color: var(--line-strong); background: var(--surface-raised); }
.feature-icon { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid rgba(200,23,34,.33); border-radius: 8px; background: var(--accent-soft); color: #e14b54; font-size: 19px; }
.feature-card h3 { margin: 30px 0 7px; font-size: 16px; font-weight: 600; }
.feature-card p { margin: 0; color: var(--muted); font-size: 13px; }
.catalog-preview { padding-top: 86px; }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 26px; }
.section-heading > div > span { color: #ce555c; font-size: 12px; font-weight: 600; }
.section-heading h2 { margin: 6px 0 0; font-size: 34px; line-height: 1.08; font-weight: 600; }
.section-heading a { display: inline-flex; align-items: center; gap: 7px; color: var(--muted-strong); font-size: 13px; }
.section-heading a:hover { color: #fff; }
.preview-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.preview-card { min-height: 185px; display: flex; flex-direction: column; padding: 17px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); transition: transform .18s ease, border-color .18s ease, background .18s ease; }
.preview-card:hover { transform: translateY(-3px); border-color: var(--line-strong); background: var(--surface-raised); }
.preview-card__top, .preview-card__bottom { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--muted); font-size: 12px; }
.country-code { display: inline-flex; padding: 4px 7px; border: 1px solid rgba(200,23,34,.3); border-radius: 5px; color: #e76c73; }
.preview-card h3 { margin: 22px 0 5px; font-size: 21px; font-weight: 600; }
.preview-card p { margin: 0 0 22px; color: var(--muted); font-size: 12px; }
.preview-card__bottom { margin-top: auto; padding-top: 13px; border-top: 1px solid var(--line); }
.preview-card__bottom strong { color: #e65b63; font-size: 18px; }
.card-arrow { width: 31px; height: 31px; display: grid; place-items: center; border-radius: 6px; background: var(--accent); color: #fff; font-size: 15px; }
.landing-footer { width: min(1080px, calc(100% - 48px)); min-height: 88px; display: flex; align-items: center; justify-content: space-between; margin: 0 auto; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .55s ease, transform .55s ease; }
.reveal--1 { transition-delay: .04s; }
.reveal--2 { transition-delay: .10s; }
.reveal--3 { transition-delay: .16s; }
.reveal--4 { transition-delay: .22s; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.empty-state { padding: 28px; border: 1px solid var(--line); border-radius: 8px; color: var(--muted); }

/* Login */
.login-page { min-height: 100vh; display: grid; place-items: center; padding: 82px 20px 30px; }
.login-page::after { position: fixed; inset: 0; content: ""; background: radial-gradient(circle at 50% 40%, rgba(127,12,20,.22), transparent 35rem); pointer-events: none; }
.login-brand { position: fixed; z-index: 2; top: 25px; left: 34px; }
.login-card { position: relative; z-index: 1; width: min(465px, 100%); padding: 28px; border: 1px solid var(--line); border-radius: 8px; background: rgba(12,12,13,.94); box-shadow: 0 22px 70px rgba(0,0,0,.36); }
.back-link { display: inline-flex; align-items: center; gap: 7px; margin-bottom: 31px; color: var(--muted); font-size: 13px; }
.back-link:hover { color: #fff; }
.login-icon { width: 42px; height: 42px; display: grid; place-items: center; margin-bottom: 18px; border: 1px solid rgba(200,23,34,.34); border-radius: 8px; background: var(--accent-soft); color: #e3565f; font-size: 20px; }
.login-card h1 { margin: 0; font-size: 34px; line-height: 1.05; font-weight: 600; }
.login-card__lead { margin: 13px 0 25px; color: var(--muted); }
.auth-stack { display: grid; gap: 10px; }
.auth-option { position: relative; min-height: 66px; display: grid; grid-template-columns: 40px minmax(0,1fr) auto; align-items: center; gap: 12px; padding: 11px 13px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-raised); transition: transform .18s ease, border-color .18s ease, background .18s ease; }
.auth-option:hover { transform: translateY(-1px); border-color: var(--line-strong); background: var(--surface-soft); }
.auth-option strong, .auth-option div > span { display: block; }
.auth-option div > span { margin-top: 3px; color: var(--muted); font-size: 12px; }
.auth-option.is-disabled { opacity: .48; }
.auth-logo { width: 36px; height: 36px; display: grid !important; place-items: center; border: 1px solid var(--line-strong); border-radius: 8px; background: #18181a; font-weight: 600; }
.auth-logo--telegram { color: #e15a62; }
.auth-logo--google { border-color: transparent; background: transparent; }
.auth-logo--google svg { width: 22px; height: 22px; stroke: none; }
.auth-arrow { color: var(--muted); font-size: 18px; }
.auth-option--telegram { min-height: 91px; }
.telegram-widget { grid-column: 2 / 4; max-width: 220px; overflow: hidden; }
.telegram-widget iframe { max-width: 220px !important; filter: grayscale(.55) contrast(1.1); }
.auth-divider { position: relative; display: grid; place-items: center; height: 20px; color: var(--muted); font-size: 11px; }
.auth-divider::before { position: absolute; right: 0; left: 0; height: 1px; content: ""; background: var(--line); }
.auth-divider span { position: relative; padding: 0 10px; background: var(--surface); }
.guest-action { width: 100%; min-height: 43px; margin-top: 17px; border: 1px solid transparent; border-radius: 8px; background: transparent; color: var(--muted-strong); cursor: pointer; }
.guest-action:hover { border-color: var(--line); background: var(--surface-raised); color: #fff; }
.login-footnote { margin: 10px 0 0; color: var(--muted); font-size: 11px; text-align: center; }
.auth-notice { margin-bottom: 15px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-raised); color: var(--muted-strong); font-size: 13px; }

/* Store shell */
.store-page { min-height: 100vh; background: #080808; }
.store-shell { width: min(1120px, 100%); min-height: 100vh; margin: 0 auto; padding: 0 22px 108px; }
.store-header { position: sticky; z-index: 30; top: 0; height: 66px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); background: rgba(8,8,8,.92); backdrop-filter: blur(12px); }
.header-actions { display: flex; align-items: center; gap: 8px; }
.balance-chip { height: 38px; display: flex; align-items: center; gap: 9px; padding: 0 5px 0 12px; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); cursor: pointer; font-size: 13px; font-weight: 500; }
.balance-chip > svg { color: var(--muted); font-size: 15px; }
.balance-chip b { width: 27px; height: 27px; display: grid; place-items: center; border-radius: 50%; background: var(--accent); color: #fff; font-size: 15px; }
.menu-button { width: 39px; height: 39px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: var(--surface); cursor: pointer; font-size: 19px; }
.balance-chip:hover, .menu-button:hover { border-color: var(--line-strong); background: var(--surface-raised); }
.store-main { padding: 24px 0 20px; }
.catalog-hero { padding: 27px 25px 25px; border: 1px solid var(--line); border-radius: 8px; background: linear-gradient(125deg, #101011 0%, #0c0c0d 68%, rgba(84,8,14,.32) 100%); }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 23px; }
.page-head h1 { margin: 0; font-size: 38px; line-height: 1.05; font-weight: 600; }
.page-head p { max-width: 560px; margin: 9px 0 0; color: var(--muted); }
.page-kicker { margin-bottom: 7px; color: #d15d64; font-size: 11px; font-weight: 600; }
.catalog-hero .page-head { margin-bottom: 18px; }
.catalog-search { min-height: 44px; display: flex; align-items: center; gap: 10px; max-width: 590px; padding: 0 13px; border: 1px solid var(--line); border-radius: 8px; background: #090909; color: var(--muted); }
.catalog-search:focus-within { border-color: var(--line-strong); color: var(--muted-strong); }
.catalog-search input { width: 100%; border: 0; outline: 0; background: transparent; }
.catalog-search svg { flex: 0 0 auto; font-size: 17px; }
.catalog-chips { display: flex; gap: 8px; margin: 16px 0 22px; overflow: auto hidden; scrollbar-width: none; }
.catalog-chips::-webkit-scrollbar { display: none; }
.catalog-chip { min-height: 34px; flex: 0 0 auto; padding: 0 13px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); color: var(--muted-strong); cursor: pointer; font-size: 12px; }
.catalog-chip.is-active, .catalog-chip:hover { border-color: #9f1720; background: var(--accent); color: #fff; }
.catalog-layout { display: grid; grid-template-columns: 190px minmax(0,1fr); align-items: start; gap: 16px; }
.filters-panel { position: sticky; top: 82px; padding: 15px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.filters-title { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.filters-title strong { font-size: 13px; }
.filters-toggle { display: flex; align-items: center; gap: 7px; padding: 0; background: transparent; cursor: pointer; }
.filters-toggle > svg { color: var(--muted); font-size: 15px; }
.filters-toggle > svg:last-child { display: none; transition: transform .18s ease; }
.filter-reset { padding: 0; background: transparent; color: var(--muted); cursor: pointer; font-size: 11px; }
.filter-reset:hover { color: #fff; }
.filter-group { display: grid; gap: 7px; padding: 13px 0; border-top: 1px solid var(--line); }
.filter-group > span { color: var(--muted); font-size: 10px; font-weight: 600; }
.filter-field { min-height: 40px; display: flex; align-items: center; gap: 8px; padding: 0 10px; border: 1px solid var(--line); border-radius: 7px; background: #090909; }
.filter-field input, .filter-field select { width: 100%; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--muted-strong); font-size: 12px; }
.filter-field select option { background: #111; }
.price-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.stock-filter { justify-content: space-between; padding: 0; border: 0; background: transparent; color: var(--muted-strong); font-size: 12px; cursor: pointer; }
.stock-filter input { width: 31px; height: 18px; margin: 0; accent-color: var(--accent); }
.catalog-results { min-width: 0; }
.catalog-toolbar { min-height: 38px; display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.catalog-meta { color: var(--muted); font-size: 12px; }
.sort-field { min-height: 36px; padding: 0 10px; border: 1px solid var(--line); border-radius: 7px; background: var(--surface); color: var(--muted-strong); font-size: 12px; }
.catalog-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.offer-card { min-height: 195px; display: flex; flex-direction: column; justify-content: space-between; padding: 14px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); text-align: left; cursor: pointer; transition: transform .18s ease, border-color .18s ease, background .18s ease; }
.offer-card:hover { transform: translateY(-3px); border-color: var(--line-strong); background: var(--surface-raised); }
.offer-card:active { transform: scale(.985); }
.offer-card__top, .offer-card__foot { display: flex; align-items: flex-start; justify-content: space-between; gap: 9px; }
.offer-code { min-width: 30px; padding: 3px 6px; border: 1px solid rgba(200,23,34,.3); border-radius: 5px; background: var(--accent-soft); color: #df6970; font-size: 10px; font-weight: 600; text-align: center; }
.offer-meta, .offer-stock { color: var(--muted); font-size: 10px; }
.offer-card h2 { min-height: 39px; margin: 14px 0 6px; font-size: 16px; line-height: 1.2; font-weight: 600; }
.offer-card__desc { display: -webkit-box; min-height: 34px; margin: 0; overflow: hidden; color: var(--muted); font-size: 11px; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.offer-card__foot { align-items: center; margin-top: 15px; padding-top: 12px; border-top: 1px solid var(--line); }
.offer-card__foot > div > span { display: block; }
.offer-card__foot .offer-meta { margin-top: 2px; }
.offer-price { color: #e05a62; font-size: 18px; font-weight: 600; }
.offer-buy { min-height: 31px; display: inline-flex; align-items: center; gap: 5px; padding: 0 9px; border-radius: 6px; background: var(--accent); color: #fff; font-size: 11px; font-weight: 500; }
.offer-buy svg { font-size: 13px; }
.loading-state, .empty-state-app { padding: 40px 18px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--muted); text-align: center; }
.empty-state-app p { margin-top: 0; }

/* Bottom navigation */
.bottom-nav { position: fixed; z-index: 35; right: 50%; bottom: 14px; width: min(440px, calc(100% - 24px)); height: 65px; display: grid; grid-template-columns: repeat(4,1fr); padding: 5px; transform: translateX(50%); border: 1px solid var(--line-strong); border-radius: 17px; background: rgba(14,14,15,.94); box-shadow: 0 16px 45px rgba(0,0,0,.38); backdrop-filter: blur(16px); }
.nav-item { min-width: 0; display: flex; align-items: center; flex-direction: column; justify-content: center; gap: 3px; border-radius: 12px; background: transparent; color: var(--muted); cursor: pointer; }
.nav-item:hover { color: #fff; }
.nav-item.is-active { background: var(--accent); color: #fff; }
.nav-icon { height: 21px; display: grid; place-items: center; font-size: 18px; }
.nav-item > span:last-child { font-size: 10px; }

/* Drawer */
.drawer, .modal { position: fixed; z-index: 70; inset: 0; }
.drawer { display: grid; grid-template-columns: 1fr min(340px, 92vw); }
.drawer__backdrop, .modal__backdrop { position: absolute; inset: 0; width: 100%; height: 100%; background: rgba(0,0,0,.74); cursor: pointer; backdrop-filter: blur(5px); }
.drawer__panel { position: relative; z-index: 1; grid-column: 2; min-height: 100%; display: flex; flex-direction: column; padding: 18px; border-left: 1px solid var(--line); background: #0b0b0c; animation: drawer-in .22s ease both; }
@keyframes drawer-in { from { transform: translateX(100%); } to { transform: translateX(0); } }
.drawer__head { min-height: 42px; display: flex; align-items: center; justify-content: space-between; padding-bottom: 13px; border-bottom: 1px solid var(--line); }
.close-button, .icon-button { width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 7px; background: var(--surface-raised); cursor: pointer; font-size: 18px; }
.drawer-user { min-height: 83px; display: grid; grid-template-columns: 43px minmax(0,1fr); align-items: center; gap: 12px; border-bottom: 1px solid var(--line); }
.drawer-user strong, .drawer-user span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.drawer-user span { margin-top: 2px; color: var(--muted); font-size: 12px; }
.avatar { width: 43px; height: 43px; display: grid; place-items: center; overflow: hidden; border: 1px solid #a91a23; border-radius: 50%; background: var(--accent); font-weight: 600; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.drawer-links { display: grid; gap: 5px; padding: 12px 0; }
.drawer-links button { min-height: 43px; display: grid; grid-template-columns: 20px minmax(0,1fr) 16px; align-items: center; gap: 10px; padding: 0 11px; border: 1px solid transparent; border-radius: 7px; background: transparent; color: var(--muted-strong); cursor: pointer; text-align: left; }
.drawer-links button > svg:first-child { color: var(--muted); font-size: 17px; }
.drawer-links button > svg:last-child { font-size: 14px; }
.drawer-links button:hover { border-color: rgba(200,23,34,.28); background: var(--accent-soft); color: #fff; }
.drawer-links button:hover > svg:first-child { color: #e4676e; }
.drawer-auth { min-height: 45px; display: flex; align-items: center; gap: 10px; margin-top: auto; padding: 0 12px; border-top: 1px solid var(--line); background: transparent; color: #d46a70; cursor: pointer; text-align: left; }

/* Modal and controls */
.modal { display: grid; place-items: end center; }
.modal__panel { position: relative; width: min(650px, 100%); max-height: min(88vh, 800px); overflow: auto; padding: 24px; border: 1px solid var(--line-strong); border-bottom: 0; border-radius: 10px 10px 0 0; background: #0d0d0e; animation: modal-in .22s ease both; }
@keyframes modal-in { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: translateY(0); } }
.modal__head { display: flex; justify-content: space-between; gap: 20px; }
.modal__head h2 { margin: 4px 0 0; font-size: 29px; line-height: 1.05; font-weight: 600; }
.details { margin: 22px 0; border-top: 1px solid var(--line); }
.detail-row { display: flex; justify-content: space-between; gap: 20px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.detail-row span:first-child { color: var(--muted); }
.rules-block { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 20px; }
.rule { padding: 14px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-raised); }
.rule strong { display: block; margin-bottom: 5px; }
.rule p { margin: 0; color: var(--muted); font-size: 12px; }
.channel-links { display: flex; flex-wrap: wrap; gap: 10px 18px; margin-top: 17px; padding-top: 15px; border-top: 1px solid var(--line); color: #d7b4b6; font-size: 13px; }
.modal-actions { display: grid; gap: 8px; margin-top: 20px; }
.button { min-height: 43px; display: inline-flex; align-items: center; justify-content: center; padding: 0 15px; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--surface-raised); cursor: pointer; font-weight: 500; transition: transform .18s ease, background .18s ease, border-color .18s ease; }
.button:hover { transform: translateY(-1px); border-color: #46464b; background: var(--surface-soft); }
.button:active { transform: scale(.985); }
.button--primary { border-color: #b7121c; background: var(--accent); color: #fff; }
.button--primary:hover { background: var(--accent-bright); }
.button:disabled { opacity: .48; cursor: default; transform: none; }
.inline-message { margin-top: 9px; color: var(--muted); font-size: 13px; }
.code-box { margin-top: 12px; padding: 15px; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--surface-raised); font-size: 24px; font-weight: 600; text-align: center; }

/* Application sections */
.panel { padding: 19px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.profile-grid { display: grid; grid-template-columns: minmax(260px,.72fr) minmax(0,1.5fr); gap: 12px; }
.profile-name { margin: 0 0 5px; font-size: 26px; font-weight: 600; }
.profile-avatar { width: 62px; height: 62px; margin-bottom: 21px; }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 23px; }
.stat { padding-top: 11px; border-top: 1px solid var(--line); }
.stat strong, .stat span { display: block; }
.stat strong { font-size: 19px; }
.stat span { margin-top: 3px; color: var(--muted); font-size: 11px; }
.section-title { display: flex; align-items: center; justify-content: space-between; margin-bottom: 11px; }
.section-title h2 { margin: 0; font-size: 19px; font-weight: 600; }
.order-list { display: grid; }
.order-row { display: grid; grid-template-columns: 1fr auto; gap: 14px; padding: 14px 0; border-top: 1px solid var(--line); background: transparent; cursor: pointer; text-align: left; }
.order-row:first-child { border-top: 0; }
.order-row strong, .order-row span { display: block; }
.order-row span { margin-top: 3px; color: var(--muted); font-size: 11px; }
.order-row__right { text-align: right; }
.support-layout { display: grid; grid-template-columns: minmax(220px,.65fr) minmax(0,1.4fr); gap: 12px; }
.support-info h2 { margin: 0 0 9px; font-size: 22px; font-weight: 600; }
.thread { min-height: 300px; max-height: 480px; overflow: auto; }
.message { max-width: 82%; margin: 0 0 8px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-raised); white-space: pre-wrap; }
.message--user { margin-left: auto; border-color: #a7131c; background: var(--accent); color: #fff; }
.message--system { color: var(--muted); }
.form-grid { display: grid; gap: 9px; }
.form-grid input, .form-grid textarea, .form-grid select { width: 100%; min-height: 43px; padding: 10px 11px; border: 1px solid var(--line); border-radius: 8px; background: #090909; outline: 0; }
.form-grid textarea { min-height: 94px; resize: vertical; }
.form-grid input:focus, .form-grid textarea:focus, .form-grid select:focus { border-color: var(--line-strong); }
.topup-layout { display: grid; grid-template-columns: minmax(0,1fr) minmax(280px,.75fr); gap: 12px; }
.amount-input { position: relative; }
.amount-input input { padding-right: 40px; font-size: 21px; }
.amount-input span { position: absolute; top: 50%; right: 13px; transform: translateY(-50%); color: var(--muted); }
.payment-methods { display: grid; gap: 7px; }
.payment-method { min-height: 65px; display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; padding: 11px 13px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-raised); cursor: pointer; text-align: left; }
.payment-method:hover { border-color: var(--line-strong); }
.payment-method span { display: block; margin-top: 3px; color: var(--muted); font-size: 11px; }
.invoice-row, .leader-row, .promo-row { display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.invoice-row:first-child, .leader-row:first-child, .promo-row:first-child { border-top: 0; }
.rank { width: 32px; color: #d16c72; font-weight: 600; }
.leader-row.is-me { padding-right: 9px; padding-left: 9px; border: 1px solid rgba(200,23,34,.32); border-radius: 8px; background: var(--accent-soft); }
.leader-row strong, .leader-row span, .promo-row strong, .promo-row span { display: block; }
.leader-row span, .promo-row span { color: var(--muted); font-size: 11px; }
.referral-box { padding: 16px; border: 1px solid var(--line); border-radius: 8px; background: #090909; word-break: break-all; }
.referral-box code { color: #dfb4b7; }
.copy-row { display: flex; gap: 8px; margin-top: 11px; }

@media (max-width: 900px) {
  .hero h1 { font-size: 58px; }
  .catalog-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .preview-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .profile-grid, .support-layout, .topup-layout { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  body { font-size: 14px; }
  .landing-header { width: calc(100% - 32px); height: 62px; }
  .hero { min-height: 700px; padding: 96px 16px 62px; }
  .hero h1 { font-size: 45px; line-height: 1.02; }
  .hero__lead { font-size: 16px; }
  .hero__actions { align-items: stretch; flex-direction: column; width: min(320px, 100%); margin-right: auto; margin-left: auto; }
  .stats-strip { margin-top: 56px; }
  .stats-strip div { padding: 0 10px; }
  .stats-strip strong { font-size: 23px; }
  .stats-strip span { font-size: 10px; }
  .landing-section { width: calc(100% - 32px); padding: 58px 0; }
  .features-grid, .preview-grid { grid-template-columns: 1fr; }
  .feature-card { min-height: 160px; }
  .section-heading { align-items: flex-start; flex-direction: column; }
  .section-heading h2 { font-size: 29px; }
  .landing-footer { width: calc(100% - 32px); }
  .login-brand { top: 19px; left: 19px; }
  .login-page { align-items: start; padding-top: 70px; }
  .login-card { padding: 22px 17px; }
  .login-card h1 { font-size: 31px; }
  .back-link { margin-bottom: 27px; }
  .auth-option--telegram { grid-template-columns: 40px minmax(0,1fr); }
  .telegram-widget { grid-column: 1 / 3; }
  .store-shell { padding: 0 13px 100px; }
  .store-header { height: 60px; }
  .brand { font-size: 14px; }
  .brand-mark { width: 26px; height: 20px; }
  .balance-chip { max-width: 145px; }
  .balance-chip > svg { display: none; }
  .balance-chip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .store-main { padding-top: 15px; }
  .catalog-hero { padding: 20px 15px; }
  .page-head { align-items: flex-start; flex-direction: column; }
  .page-head h1 { font-size: 31px; }
  .catalog-layout { grid-template-columns: 1fr; }
  .filters-panel { position: static; }
  .filters-title { margin-bottom: 0; }
  .filters-toggle > svg:last-child { display: block; }
  .filters-panel:not(.is-collapsed) .filters-title { margin-bottom: 14px; }
  .filters-panel:not(.is-collapsed) .filters-toggle > svg:last-child { transform: rotate(180deg); }
  .filters-panel.is-collapsed .filter-group { display: none; }
  .catalog-grid { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 8px; }
  .offer-card { min-height: 181px; padding: 12px; }
  .offer-card h2 { min-height: 34px; font-size: 14px; }
  .offer-card__desc { font-size: 10px; }
  .offer-stock { display: none; }
  .offer-price { font-size: 16px; }
  .bottom-nav { bottom: max(7px, env(safe-area-inset-bottom)); height: 61px; }
  .nav-item > span:last-child { font-size: 9px; }
  .modal__panel { padding: 19px 15px calc(19px + env(safe-area-inset-bottom)); }
  .modal__head h2 { font-size: 25px; }
  .rules-block { grid-template-columns: 1fr; }
  .drawer__panel { padding: 16px; }
}

@media (max-width: 390px) {
  .hero h1 { font-size: 39px; }
  .hero__eyebrow { font-size: 11px; }
  .catalog-grid { grid-template-columns: 1fr; }
  .offer-card { min-height: 174px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
