:root {
  --ink: #18231e;
  --muted: #667069;
  --paper: #f6f7f2;
  --white: #ffffff;
  --line: #dfe4dd;
  --green: #165c42;
  --green-bright: #b8f34b;
  --orange: #ff6b35;
  --radius: 24px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: 16px; line-height: 1.5; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { cursor: pointer; }
.site-header { height: 82px; display: flex; align-items: center; gap: 48px; max-width: 1280px; margin: 0 auto; padding: 0 32px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 21px; font-weight: 800; letter-spacing: -.04em; }
.brand-mark { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 10px 10px 10px 3px; background: var(--green-bright); color: var(--green); font-weight: 900; }
.top-nav { display: flex; gap: 30px; margin-right: auto; color: var(--muted); font-size: 15px; }
.top-nav a:hover { color: var(--ink); }
.button { border: 0; border-radius: 999px; padding: 14px 23px; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; transition: transform .2s, background .2s; }
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--green); color: #fff; }
.button-primary:hover { background: #104a35; }
.button-ghost { background: transparent; border: 1px solid var(--line); padding: 10px 21px; }
.hero { min-height: 650px; max-width: 1280px; margin: 0 auto; padding: 72px 32px 88px; display: grid; grid-template-columns: 1.08fr .92fr; align-items: center; gap: 78px; }
.eyebrow { color: var(--green); font-size: 13px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.eyebrow span { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--orange); margin-right: 8px; }
h1 { font-size: clamp(50px, 5.5vw, 80px); line-height: .98; letter-spacing: -.065em; margin: 22px 0 28px; max-width: 780px; }
h1 em { color: var(--green); font-style: normal; }
.hero-text { color: var(--muted); font-size: 20px; line-height: 1.6; max-width: 640px; }
.hero-actions { display: flex; align-items: center; gap: 24px; margin-top: 36px; }
.text-button { border: 0; background: transparent; color: var(--green); font-weight: 700; padding: 12px 0; }
.text-button span { display: inline-block; margin-left: 5px; transition: transform .2s; }
.text-button:hover span { transform: translateX(4px); }
.trust-row { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 44px; color: var(--muted); font-size: 14px; }
.trust-row span::before { content: "✓"; color: var(--green); font-weight: 800; margin-right: 7px; }
.reward-card { background: var(--green); color: #fff; padding: 34px; border-radius: 34px 34px 34px 8px; box-shadow: 0 24px 70px rgba(22,92,66,.22); transform: rotate(1.5deg); }
.reward-top { display: flex; align-items: center; justify-content: space-between; color: #d2e2db; font-size: 14px; }
.reward-status { color: var(--green-bright); border: 1px solid rgba(184,243,75,.35); padding: 5px 10px; border-radius: 20px; }
.reward-card > strong { display: block; font-size: 64px; letter-spacing: -.06em; margin: 28px 0 0; }
.reward-card > p { margin: 0; color: #d2e2db; }
.people-flow { display: flex; align-items: center; justify-content: space-between; margin: 48px 0 38px; }
.people-flow > div { display: grid; justify-items: center; gap: 8px; }
.people-flow i { color: #8db4a3; font-style: normal; }
.people-flow small { color: #d2e2db; font-size: 12px; }
.avatar { width: 54px; height: 54px; display: grid; place-items: center; border-radius: 50%; font-weight: 800; }
.avatar-you { background: var(--green-bright); color: var(--green); }
.avatar-friend { background: #fff; color: var(--green); }
.avatar-ruble { background: var(--orange); color: #fff; }
.progress-line { height: 4px; border-radius: 5px; background: rgba(255,255,255,.18); }
.progress-line span { display: block; width: 72%; height: 100%; background: var(--green-bright); border-radius: inherit; }
.progress-labels { display: flex; justify-content: space-between; margin-top: 10px; color: #bad0c6; font-size: 11px; }
.section { max-width: 1280px; margin: 0 auto; padding: 96px 32px; }
.catalog { border-top: 1px solid var(--line); }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 30px; margin-bottom: 42px; }
h2 { font-size: clamp(36px, 4vw, 54px); line-height: 1.05; letter-spacing: -.05em; margin: 12px 0 0; }
.catalog-tabs { display: flex; gap: 4px; padding: 4px; border: 1px solid var(--line); border-radius: 999px; }
.catalog-all-link { margin-left: auto; color: var(--green); font-weight: 800; white-space: nowrap; }
.catalog-tabs button { background: transparent; border: 0; padding: 9px 16px; border-radius: 999px; color: var(--muted); }
.catalog-tabs button.active { background: var(--ink); color: #fff; }
.offer-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.offer-card { min-height: 285px; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; transition: transform .2s, box-shadow .2s; }
.offer-card:hover { transform: translateY(-4px); box-shadow: 0 18px 45px rgba(24,35,30,.08); }
.offer-category { display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: 13px; text-transform: uppercase; letter-spacing: .08em; }
.offer-icon { width: 45px; height: 45px; border-radius: 14px; display: grid; place-items: center; background: #edf8d7; color: var(--green); font-size: 20px; }
.offer-card h3 { font-size: 24px; line-height: 1.2; letter-spacing: -.03em; margin: 30px 0 8px; }
.offer-price { color: var(--muted); margin: 0; }
.offer-reward { margin-top: auto; display: flex; align-items: end; justify-content: space-between; padding-top: 28px; border-top: 1px solid var(--line); }
.offer-reward small { display: block; color: var(--muted); }
.offer-reward strong { font-size: 23px; color: var(--green); }
.circle-button { width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--ink); color: #fff; font-size: 20px; display: grid; place-items: center; flex: 0 0 44px; }
.skeleton-card div { background: #eef0eb; height: 18px; border-radius: 8px; margin-bottom: 18px; }
.skeleton-card div:nth-child(2) { width: 72%; height: 32px; }
.skeleton-card div:last-child { margin-top: auto; }
.empty-catalog { grid-column: 1 / -1; border: 1px dashed #bfc8bf; border-radius: var(--radius); padding: 44px; text-align: center; color: var(--muted); }
.how { display: grid; grid-template-columns: .85fr 1.15fr; gap: 100px; }
.how-intro p { color: var(--muted); font-size: 18px; max-width: 430px; margin-top: 24px; }
.steps { margin: 0; padding: 0; list-style: none; }
.steps li { display: grid; grid-template-columns: 58px 1fr; gap: 22px; padding: 27px 0; border-bottom: 1px solid var(--line); }
.steps li > span { color: var(--orange); font-weight: 800; }
.steps h3 { margin: 0 0 6px; font-size: 24px; }
.steps p { margin: 0; color: var(--muted); }
.cta { background: var(--green); color: #fff; border-radius: 34px 34px 10px 34px; padding: 58px 64px; display: flex; justify-content: space-between; align-items: end; margin-bottom: 80px; }
.cta > div { display: flex; align-items: flex-start; gap: 24px; }
.cta h2 { margin: 0; }
.button-light { background: var(--green-bright); color: var(--green); }
footer { max-width: 1280px; margin: 0 auto; padding: 34px 32px 46px; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: 14px; }
footer .brand { color: var(--ink); }
.cabinet-page { max-width: 1280px; margin: 0 auto; padding: 42px 32px 110px; }
.cabinet-welcome { display: flex; justify-content: space-between; align-items: end; gap: 30px; padding: 48px 0 54px; }
.cabinet-welcome h1 { font-size: clamp(48px, 6vw, 76px); margin: 18px 0 14px; }
.cabinet-welcome p { color: var(--muted); margin: 0; }
.cabinet-loading { padding: 80px 0; color: var(--muted); }
.wallet-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 16px; }
.balance-card { min-height: 205px; display: flex; flex-direction: column; padding: 28px; border-radius: 26px; border: 1px solid var(--line); background: #fff; }
.balance-card > span, .balance-card small { color: var(--muted); }
.balance-card strong { display: block; margin: auto 0 2px; font-size: 42px; letter-spacing: -.05em; }
.balance-main { color: #fff; background: var(--green); border-color: var(--green); box-shadow: 0 18px 48px rgba(22,92,66,.17); }
.balance-main > span, .balance-main small { color: #cce0d6; }
.balance-main strong { color: var(--green-bright); }
.cabinet-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 18px; }
.cabinet-panel { margin-top: 18px; padding: 30px; border: 1px solid var(--line); border-radius: 26px; background: #fff; }
.cabinet-columns .cabinet-panel { margin-top: 0; }
.panel-heading { display: flex; justify-content: space-between; align-items: end; gap: 20px; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.panel-heading span { color: var(--muted); font-size: 13px; text-transform: uppercase; letter-spacing: .08em; }
.panel-heading h2 { margin: 5px 0 0; font-size: 30px; }
.panel-heading > a { color: var(--green); font-weight: 800; }
.activity-list { display: grid; }
.activity-item { min-height: 78px; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 17px 0; border-bottom: 1px solid var(--line); }
.activity-item:last-child { border-bottom: 0; }
.activity-item small { display: block; margin-top: 4px; color: var(--muted); }
.copy-link { border: 1px solid var(--line); border-radius: 999px; background: transparent; color: var(--green); padding: 8px 13px; font-weight: 700; white-space: nowrap; }
.status-pill { padding: 7px 11px; border-radius: 999px; background: #edf8d7; color: var(--green); font-size: 13px; font-weight: 700; text-align: center; }
.amount-positive { color: var(--green); }
.activity-empty { padding: 34px 0 12px; color: var(--muted); }
.activity-empty p { margin: 0 0 8px; }
.activity-empty a { color: var(--green); font-weight: 800; }
.cabinet-error { max-width: 620px; padding: 46px; border-radius: 28px; background: #fff; border: 1px solid var(--line); }
.cabinet-error h2 { font-size: 38px; }
.cabinet-error p { color: var(--muted); margin-bottom: 28px; }
.nav-active { color: var(--ink) !important; font-weight: 700; }
.catalog-page { max-width: 1280px; margin: 0 auto; padding: 42px 32px 110px; }
.catalog-hero { display: grid; grid-template-columns: 1.15fr .85fr; gap: 70px; align-items: end; padding: 60px 0 72px; }
.catalog-hero h1 { font-size: clamp(52px, 6vw, 78px); margin-bottom: 0; }
.catalog-hero > p { color: var(--muted); font-size: 19px; max-width: 520px; margin: 0 0 8px; }
.catalog-workspace { border-top: 1px solid var(--line); padding-top: 34px; }
.catalog-toolbar { display: flex; gap: 18px; align-items: center; }
.search-box { height: 52px; min-width: 330px; display: flex; align-items: center; gap: 10px; background: var(--white); border: 1px solid var(--line); border-radius: 999px; padding: 0 18px; }
.search-box span { font-size: 24px; color: var(--muted); }
.search-box input { width: 100%; border: 0; outline: 0; background: transparent; color: var(--ink); }
.category-chips { display: flex; gap: 8px; overflow-x: auto; padding: 2px; }
.category-chips button { border: 1px solid var(--line); border-radius: 999px; padding: 10px 17px; color: var(--muted); background: transparent; white-space: nowrap; }
.category-chips button.active { color: #fff; background: var(--green); border-color: var(--green); }
.catalog-summary { display: flex; justify-content: space-between; margin: 34px 0 20px; color: var(--muted); }
.catalog-summary strong { color: var(--ink); }
.catalog-full-grid { grid-template-columns: repeat(3, 1fr); }
.catalog-offer { color: inherit; }
.offer-page { max-width: 1280px; margin: 0 auto; padding: 26px 32px 100px; }
.breadcrumbs { display: flex; gap: 10px; color: var(--muted); font-size: 14px; padding: 18px 0 38px; }
.breadcrumbs a:hover { color: var(--green); }
.offer-detail { display: grid; grid-template-columns: minmax(0, 1fr) 390px; gap: 60px; align-items: start; }
.offer-detail h1 { font-size: clamp(56px, 6vw, 82px); margin: 26px 0; }
.offer-lead { max-width: 720px; color: var(--muted); font-size: 20px; }
.detail-facts { display: flex; gap: 12px; margin: 42px 0 64px; }
.detail-facts > div { min-width: 210px; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 18px 20px; }
.detail-facts small { display: block; color: var(--muted); margin-bottom: 5px; }
.detail-facts strong { font-size: 22px; }
.detail-reward-card { position: sticky; top: 26px; background: var(--green); color: #fff; border-radius: 30px 30px 30px 8px; padding: 34px; box-shadow: 0 24px 60px rgba(22,92,66,.18); }
.detail-reward-card > span { color: #c8ddd3; }
.detail-reward-card > strong { display: block; font-size: 55px; letter-spacing: -.05em; margin: 20px 0 10px; }
.detail-reward-card > p { color: #c8ddd3; margin-bottom: 28px; }
.button-accent { width: 100%; background: var(--green-bright); color: var(--green); }
.reward-note { display: flex; gap: 10px; margin-top: 23px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.16); color: #c8ddd3; font-size: 14px; }
.reward-note b { color: var(--green-bright); }
.what-included h2 { font-size: 36px; }
.what-included ol { list-style: none; padding: 0; margin: 24px 0 0; }
.what-included li { display: grid; grid-template-columns: 45px 1fr; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.what-included li b { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; background: #e8f5cd; color: var(--green); }
.what-included li strong { font-size: 19px; }
.what-included li p { color: var(--muted); margin: 4px 0 0; }
.offer-terms { margin-top: 88px; padding: 48px; background: #fff; border: 1px solid var(--line); border-radius: 28px; display: grid; grid-template-columns: 1fr 1fr; gap: 70px; }
.offer-terms h2 { font-size: 38px; margin-top: 0; }
.offer-terms p { color: var(--muted); }
.offer-terms dl { margin: 0; }
.offer-terms dl > div { display: grid; grid-template-columns: 130px 1fr; gap: 18px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.offer-terms dt { color: var(--muted); }
.offer-terms dd { margin: 0; font-weight: 700; }
.live-dot { display: inline-block; width: 8px; height: 8px; margin-right: 8px; border-radius: 50%; background: #38a169; }
.offer-loading { padding: 120px 0; color: var(--muted); }
dialog { width: min(480px, calc(100% - 32px)); border: 0; border-radius: 28px; padding: 38px; color: var(--ink); box-shadow: 0 28px 100px rgba(0,0,0,.24); }
dialog::backdrop { background: rgba(13,29,21,.58); backdrop-filter: blur(5px); }
.dialog-close { position: absolute; right: 22px; top: 18px; border: 0; background: transparent; font-size: 30px; color: var(--muted); }
dialog h2 { font-size: 34px; margin-bottom: 12px; }
dialog > p { color: var(--muted); }
dialog form { display: grid; gap: 12px; margin-top: 28px; }
dialog label { font-weight: 700; }
dialog input { width: 100%; border: 1px solid #cfd6cf; border-radius: 14px; padding: 14px 16px; font-size: 18px; outline: none; }
dialog input:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(22,92,66,.12); }
.form-message { min-height: 24px; margin-bottom: 0; color: #a13d20 !important; }
@media (max-width: 900px) {
  .top-nav { display: none; }
  .site-header { justify-content: space-between; padding: 0 20px; }
  .hero { grid-template-columns: 1fr; padding: 48px 20px 70px; gap: 54px; }
  .reward-card { max-width: 620px; width: 100%; margin: 0 auto; transform: none; }
  .section { padding: 72px 20px; }
  .offer-grid { grid-template-columns: 1fr 1fr; }
  .how { grid-template-columns: 1fr; gap: 40px; }
  .cta { margin: 0 20px 60px; padding: 45px; }
  .catalog-hero { grid-template-columns: 1fr; gap: 26px; }
  .catalog-toolbar { align-items: stretch; flex-direction: column; }
  .search-box { min-width: 0; width: 100%; }
  .catalog-full-grid { grid-template-columns: 1fr 1fr; }
  .offer-detail { grid-template-columns: 1fr; }
  .wallet-grid { grid-template-columns: 1fr 1fr; }
  .balance-main { grid-column: 1 / -1; }
  .cabinet-columns { grid-template-columns: 1fr; }
  .detail-reward-card { position: static; max-width: 540px; }
}
@media (max-width: 620px) {
  h1 { font-size: 48px; }
  .site-header { height: 72px; }
  .brand { font-size: 19px; }
  .hero-actions { align-items: stretch; flex-direction: column; }
  .trust-row { display: grid; gap: 9px; }
  .reward-card { padding: 24px; border-radius: 26px 26px 26px 7px; }
  .reward-card > strong { font-size: 52px; }
  .people-flow { margin-top: 38px; }
  .people-flow small { max-width: 72px; text-align: center; }
  .section-heading { align-items: start; flex-direction: column; }
  .offer-grid { grid-template-columns: 1fr; }
  .catalog-tabs { width: 100%; }
  .catalog-tabs button { flex: 1; }
  .cta { align-items: stretch; flex-direction: column; gap: 38px; padding: 34px 26px; }
  .cta > div { gap: 14px; }
  .cta .brand-mark { flex: 0 0 34px; }
  footer { flex-wrap: wrap; gap: 20px; }
  dialog { padding: 30px 22px; }
  .catalog-page, .offer-page { padding-left: 20px; padding-right: 20px; }
  .catalog-hero { padding-top: 34px; }
  .catalog-hero h1, .offer-detail h1 { font-size: 48px; }
  .catalog-summary { align-items: flex-start; flex-direction: column; gap: 4px; }
  .catalog-full-grid { grid-template-columns: 1fr; }
  .detail-facts { flex-direction: column; }
  .detail-facts > div { min-width: 0; }
  .offer-terms { grid-template-columns: 1fr; gap: 24px; padding: 28px 22px; }
  .offer-terms dl > div { grid-template-columns: 1fr; gap: 4px; }
  .cabinet-page { padding: 24px 20px 70px; }
  .cabinet-welcome { align-items: stretch; flex-direction: column; padding-top: 28px; }
  .cabinet-welcome h1 { font-size: 46px; }
  .wallet-grid { grid-template-columns: 1fr; }
  .balance-main { grid-column: auto; }
  .balance-card { min-height: 170px; }
  .cabinet-panel { padding: 23px 20px; }
  .activity-item { align-items: flex-start; flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }

[hidden] { display: none !important; }
