
:root {
  --navy: #092d6b;
  --navy-2: #0d3c86;
  --blue: #1766c4;
  --blue-2: #2b79d6;
  --blue-soft: #eef5ff;
  --gold: #f3c54f;
  --gold-2: #ffd66d;
  --gold-soft: #fff6d9;
  --white: #ffffff;
  --bg: #f7f9fc;
  --text: #14213a;
  --muted: #6d7890;
  --line: #e1e7f0;
  --green: #2d8b62;
  --red: #c74a4a;
  --shadow: 0 14px 38px rgba(13, 45, 91, .09);
  --shadow-hover: 0 20px 45px rgba(13, 45, 91, .14);
  --radius: 18px;
  --radius-sm: 12px;
  --container: 1180px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: var(--font);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
button, input, textarea { font: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
[hidden] { display: none !important; }
h1, h2, h3, p { margin: 0; }

.btn {
  border: 0;
  border-radius: 11px;
  min-height: 46px;
  padding: 0 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 700;
  font-size: 14px;
  transition: .2s ease;
}
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--blue); transform: translateY(-1px); }
.btn-primary:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.btn-yellow {
  background: linear-gradient(135deg, var(--gold-2), var(--gold));
  color: #14213a;
  box-shadow: 0 10px 25px rgba(243,197,79,.25);
}
.btn-yellow:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(243,197,79,.32); }
.btn-hero-ghost {
  color: #fff;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.28);
}
.btn-hero-ghost:hover { background: rgba(255,255,255,.18); }
.link-btn {
  border: 0;
  background: none;
  color: var(--blue);
  padding: 0;
  font-weight: 700;
  text-decoration: underline;
}
.eyebrow {
  display: inline-block;
  color: var(--blue);
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: 10px;
  font-weight: 800;
  margin-bottom: 8px;
}
.page-sub { color: var(--muted); font-size: 14px; margin-top: 7px; }

/* ---------------- AUTH ---------------- */
.auth-screen {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 28px;
  background:
    radial-gradient(circle at 15% 10%, rgba(43,121,214,.18), transparent 28%),
    radial-gradient(circle at 85% 90%, rgba(243,197,79,.15), transparent 25%),
    linear-gradient(135deg, #061f4b, #0d3f8c);
}
.auth-card {
  width: min(100%, 430px);
  background: rgba(255,255,255,.98);
  border: 1px solid rgba(255,255,255,.5);
  border-radius: 24px;
  padding: 34px;
  box-shadow: 0 30px 80px rgba(0,0,0,.22);
}
.brand-lockup { display: inline-flex; align-items: center; gap: 10px; }
.brand-mark {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  color: var(--navy);
  font-size: 14px;
  font-weight: 900;
  background: #fff;
  border: 3px solid var(--navy);
  clip-path: polygon(50% 0%, 93% 25%, 93% 75%, 50% 100%, 7% 75%, 7% 25%);
}
.brand-lockup strong, .brand-lockup b { display: block; line-height: 1; letter-spacing: .04em; }
.brand-lockup strong { font-size: 20px; color: var(--navy); }
.brand-lockup b { color: var(--blue); font-size: 12px; letter-spacing: .16em; margin-top: 4px; }
.auth-brand { margin-bottom: 20px; }
.auth-kicker { color: var(--muted); font-size: 12px; }
.auth-title { margin-top: 12px; font-size: 28px; line-height: 1.18; color: var(--navy); }
.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 4px;
  margin-top: 24px;
  background: #edf2f8;
  border-radius: 12px;
}
.auth-tab {
  border: 0;
  background: transparent;
  border-radius: 9px;
  padding: 10px;
  color: var(--muted);
  font-weight: 700;
}
.auth-tab.is-active { background: #fff; color: var(--navy); box-shadow: 0 2px 8px rgba(0,0,0,.06); }
.auth-error {
  margin-top: 16px;
  padding: 11px 13px;
  border-radius: 10px;
  color: var(--red);
  background: #fff0f0;
  font-size: 13px;
}
.auth-form { text-align: left; }
.auth-label {
  display: block;
  margin: 17px 0 6px;
  font-size: 12px;
  font-weight: 700;
  color: #526078;
}
.auth-input {
  width: 100%;
  border: 1px solid var(--line);
  background: #f8fafc;
  border-radius: 10px;
  padding: 12px 13px;
  outline: 0;
}
.auth-input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(23,102,196,.1); }
.auth-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.auth-submit { width: 100%; margin-top: 20px; }
.auth-hint { margin-top: 15px; color: var(--muted); font-size: 11.5px; }

/* ---------------- HEADER ---------------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  min-height: 76px;
  display: flex;
  align-items: center;
  gap: 30px;
  padding: 10px max(22px, calc((100vw - var(--container)) / 2));
  background: rgba(255,255,255,.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}
.topbar-brand-link { flex: 0 0 auto; }
.topbar-brand-link .brand-mark {
  width: 45px;
  height: 45px;
  font-size: 12px;
  background: #f5f8ff;
}
.brand-copy { display: block; }
.brand-copy strong { font-size: 18px; }
.brand-copy b { font-size: 10px; }
.tabs { display: flex; align-items: center; justify-content: center; gap: 2px; flex: 1; }
.tab {
  border: 0;
  background: transparent;
  color: #38445a;
  padding: 10px 13px;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  transition: .18s ease;
}
.tab:hover { color: var(--navy); background: #f2f6fb; }
.tab.is-active { color: var(--navy); background: #eef5ff; }
.topbar-user { display: flex; align-items: center; gap: 9px; }
.avatar {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: linear-gradient(145deg, #dceaff, #fff);
  color: var(--navy);
  border: 1px solid #cbdcf4;
  font-weight: 800;
  font-size: 12px;
}
.user-meta strong { display: block; font-size: 12px; white-space: nowrap; }
.user-meta span { color: var(--blue); font-size: 11px; font-weight: 700; }
.btn-logout {
  border: 0;
  background: transparent;
  color: var(--blue);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}
.nav-burger {
  display: none;
  border: 0;
  background: transparent;
  padding: 6px;
}
.nav-burger span { display: block; width: 22px; height: 2px; margin: 4px; background: var(--navy); border-radius: 2px; }

/* ---------------- LAYOUT ---------------- */
.main { max-width: var(--container); margin: 0 auto; }
.landing-section { padding: 64px 22px; scroll-margin-top: 76px; }
.section-light { background: #fff; }
.section-soft { background: #f4f7fb; }
.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}
.section-heading-centered { justify-content: center; text-align: center; }
.section-heading h2 { font-size: 30px; line-height: 1.15; color: var(--navy); }
.section-heading.compact { margin-bottom: 18px; }
.section-heading.compact h2 { font-size: 24px; }
.section-link {
  border: 0;
  background: transparent;
  color: var(--blue);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.logo-icon-img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  flex-shrink: 0;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.logo-title {
  font-size: 18px;
  font-weight: 800;
  color: #0b2361;
  letter-spacing: 0.5px;
}

.logo-subtitle {
  font-size: 12px;
  font-weight: 600;
  color: #2b60c8;
  letter-spacing: 1px;
}
/* ---------------- HERO ---------------- */
.hero {
  min-height: 390px;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  align-items: stretch;
  overflow: hidden;
  position: relative;
  border-radius: 20px;
  padding: 0;
  color: #fff;
  background:
    radial-gradient(circle at 82% 45%, rgba(73,143,232,.48), transparent 28%),
    radial-gradient(circle at 20% 120%, rgba(36,116,215,.42), transparent 34%),
    linear-gradient(125deg, #061f4e, #0c408f 72%, #1556a7);
  box-shadow: 0 20px 45px rgba(8,43,101,.18);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .14;
  background-image: radial-gradient(#fff 1px, transparent 1px);
  background-size: 24px 24px;
}
.hero-text {
  position: relative;
  z-index: 2;
  max-width: 540px;
  padding: 52px 24px 52px 58px;
}
.hero-badge {
  display: inline-block;
  padding: 6px 10px;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 999px;
  color: #dceaff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .16em;
}
.hero h1 { margin-top: 18px; color: #fff; font-size: clamp(38px, 4.2vw, 58px); line-height: 1.03; letter-spacing: -.035em; }
.hero h1 strong { color: var(--gold-2); }
.hero-name { margin-top: 10px; color: rgba(255,255,255,.72); font-size: 14px; }
.hero-copy { margin-top: 18px; max-width: 500px; color: rgba(255,255,255,.84); font-size: 15px; }
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 26px; }

.hero-visual {
  position: relative;
  height: 100%;
  min-height: 390px;
  display: flex;
  z-index: 1;
  /* Плавный градиент для органичного слияния с основным фоном */
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 15%);
  mask-image: linear-gradient(to right, transparent 0%, black 15%);
}

/* Контейнер для вашей картинки 1368x784 */
.hero-image-wrap {
  width: 100%;
  height: 100%;
  flex: 1; /* Гарантирует полное заполнение контейнера */
  overflow: hidden;
  border-radius: 0;
}

.hero-image {
  display: block;
  width: 100%;
  height: 100%;
  max-height: none;
  /* contain - чтобы картинка не обрезалась, а входила полностью */
  object-fit: contain; 
  /* Выравниваем картинку по правому краю и центру по вертикали */
  object-position: right center; 
  border-radius: 0;
  filter: none;
}

/* ---------------- HOME CARDS ---------------- */
.home-stats {
  display: grid;
  grid-template-columns: 1.15fr 1fr 1fr;
  gap: 14px;
  margin-top: 16px;
}
.stat-card {
  min-height: 150px;
  position: relative;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: #fff;
  box-shadow: 0 7px 22px rgba(13,45,91,.05);
  display: flex;
  align-items: center;
  gap: 15px;
}
.stat-card-balance { color: #fff; background: linear-gradient(145deg, #082e6c, #124e9f); border-color: transparent; }
.stat-icon {
  width: 62px; height: 62px;
  flex: 0 0 62px;
  display: grid; place-items: center;
  border-radius: 50%;
}
.stat-icon.coin-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.25));
  
  /* Увеличение на 20% (можно менять от 1.1 до 1.3) */
  transform: scale(1.2); 
}
.trophy-icon { background: #eaf2ff; color: var(--blue); font-size: 24px; overflow: hidden; }
.trophy-icon img { width: 76%; height: 76%; object-fit: contain; display: block; }
.stat-content { min-width: 0; }
.stat-label { display: block; font-size: 12px; font-weight: 700; color: #536078; }
.stat-card-balance .stat-label { color: rgba(255,255,255,.72); }
.stat-content strong { display: block; margin-top: 2px; color: var(--navy); font-size: 30px; line-height: 1.1; }
.stat-card-balance .stat-content strong { color: #fff; font-size: 35px; }
.stat-content b { display: block; color: var(--blue); font-size: 12px; margin-top: 4px; }
.stat-card-balance .stat-content b { color: var(--gold-2); font-size: 14px; }
.stat-muted { color: var(--muted) !important; font-weight: 500 !important; }
.mini-link {
  position: absolute; left: 22px; bottom: 14px;
  border: 0; background: transparent;
  color: rgba(255,255,255,.85); font-size: 11px; font-weight: 700;
}
.rating-mark { position: absolute; right: 18px; top: 18px; color: #b8c4d6; font-size: 22px; }
.calendar-icon {
  margin-left: auto;
  width: 50px; height: 50px;
  display: grid; place-items: center;
  border-radius: 12px;
  color: var(--blue);
  background: #edf5ff;
  font-weight: 800;
}

/* ---------------- READABILITY ---------------- */
.section-heading h2 { font-size: 32px; }
.section-heading.compact h2 { font-size: 25px; }
.section-link { font-size: 14px; }
.page-sub { font-size: 15px; }
.tab { font-size: 14px; }
.user-meta strong { font-size: 13px; }
.user-meta span { font-size: 12px; }
.eyebrow { font-size: 11px; }
.gift-title { font-size: 15px; }
.gift-desc { font-size: 13px; }
.gift-stock { font-size: 11px; }
.gift-cost { font-size: 15px; }
.gift-body .btn { font-size: 13px; }
.ledger-total { font-size: 14px; }
.ledger-date { font-size: 12px; }
.ledger-title { font-size: 14px; }
.ledger-sub { font-size: 12px; }
.ledger-amount { font-size: 14px; }
.faq-q { font-size: 14px; }
.faq-a { font-size: 13px; }
.step-card h3 { font-size: 15px; }
.step-card p { font-size: 13px; }
.contact-cta-copy p { font-size: 14px; }
.contacts-card dl div { font-size: 13px; }
.contact-form label { font-size: 12px; }

/* ---------------- CATALOG ---------------- */
.catalog-layout {
  display: grid;
  grid-template-columns: minmax(260px, 290px) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}
.catalog-sidebar {
  display: grid;
  gap: 14px;
  position: sticky;
  top: 94px;
}
.sidebar-card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 7px 22px rgba(13,45,91,.045);
}
.sidebar-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}
.sidebar-heading .eyebrow { margin-bottom: 3px; font-size: 9px; }
.sidebar-heading h3 { color: var(--navy); font-size: 17px; line-height: 1.15; }
.sidebar-link {
  border: 0;
  background: transparent;
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
  padding: 2px 0;
}
.sidebar-total {
  padding: 9px 11px;
  margin-bottom: 8px;
  border-radius: 10px;
  background: var(--blue-soft);
  color: var(--muted);
  font-size: 12px;
}
.sidebar-total strong { color: var(--navy); }
.sidebar-list {
  display: grid;
  gap: 7px;
  max-height: 240px;
  overflow-y: auto;
  padding-right: 4px;
}
.sidebar-row {
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  gap: 8px;
  align-items: center;
  padding: 9px 0;
  border-bottom: 1px solid #edf1f6;
}
.sidebar-list::-webkit-scrollbar {
  width: 4px;
}
.sidebar-list::-webkit-scrollbar-thumb {
  background: var(--line);
  border-radius: 4px;
}
.sidebar-row:last-child { border-bottom: 0; padding-bottom: 0; }
.sidebar-date { color: var(--muted); font-size: 10px; }
.sidebar-title {
  color: var(--navy);
  font-size: 12px;
  line-height: 1.3;
  font-weight: 750;
  margin-top: 2px;
}
.sidebar-amount { color: var(--green); font-size: 12px; white-space: nowrap; }
.sidebar-empty {
  padding: 14px 4px 3px;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}
.catalog-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.gift-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 15px;
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: .2s ease;
}
.gift-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.gift-card.is-out { opacity: .65; }
.gift-thumb {
  height: 185px;
  display: grid; place-items: center;
  background: linear-gradient(145deg,#f5f8fc,#eef2f7);
  border-bottom: 1px solid #edf0f4;
}
.gift-thumb img { width: 78%; height: 78%; object-fit: contain; }
.gift-body { padding: 15px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.gift-category {
  align-self: flex-start;
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--gold-soft);
  color: #9a7010;
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
}
.gift-title { color: var(--navy); font-size: 14px; font-weight: 800; }
.gift-desc { color: var(--muted); font-size: 11px; line-height: 1.4; }
.gift-meta { display: flex; justify-content: space-between; gap: 8px; align-items: center; margin-top: auto; }
.gift-cost { color: #c18a12; font-weight: 900; font-size: 14px; }
.gift-stock { color: var(--muted); font-size: 10px; }
.gift-stock.is-out { color: var(--red); }
.gift-body .btn { width: 100%; margin-top: 5px; min-height: 38px; }

/* ---------------- HISTORY / ORDERS ---------------- */
.ledger-total {
  padding: 16px 18px;
  margin-bottom: 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 13px;
  color: var(--muted);
  font-size: 13px;
}
.ledger-total strong { color: var(--navy); }
.ledger { display: flex; flex-direction: column; gap: 9px; }
.ledger-row {
  display: grid;
  grid-template-columns: 120px 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 15px 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 13px;
}
.ledger-date { color: var(--muted); font-size: 11px; }
.ledger-title { color: var(--navy); font-size: 13px; font-weight: 800; }
.ledger-sub { color: var(--muted); font-size: 11px; margin-top: 2px; }
.ledger-amount { color: var(--green); font-size: 13px; font-weight: 800; text-align: right; }
.status-pill {
  padding: 6px 11px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  white-space: nowrap;
}
.status-pending { background: #fff5db; color: #a87508; }
.status-confirmed, .status-shipped { background: #eaf3ff; color: var(--blue); }
.status-received { background: #e7f6ee; color: var(--green); }
.status-rejected { background: #ffeded; color: var(--red); }
.empty-state { padding: 40px 20px; text-align: center; color: var(--muted); border: 1px dashed #cfd8e5; border-radius: 14px; }

/* ---------------- FAQ ---------------- */
.faq-list { width: min(100%, 820px); margin: 0 auto; display: grid; gap: 9px; }
.faq-item { background: #fff; border: 1px solid var(--line); border-radius: 13px; overflow: hidden; }
.faq-q {
  width: 100%; border: 0; background: #fff; color: var(--navy);
  display: flex; justify-content: space-between; align-items: center;
  padding: 17px 19px; text-align: left;
  font-size: 13px; font-weight: 800;
}
.faq-q::after { content: "+"; color: var(--blue); font-size: 19px; }
.faq-item.is-open .faq-q::after { content: "−"; }
.faq-a { max-height: 0; overflow: hidden; padding: 0 19px; color: var(--muted); font-size: 12px; transition: .25s ease; }
.faq-item.is-open .faq-a { max-height: 220px; padding-bottom: 17px; }

/* ---------------- HOW IT WORKS ---------------- */
.how-section { background: linear-gradient(180deg,#f5f9ff,#eef5fc); }
.steps-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 0; }
.step-card {
  position: relative;
  padding: 20px 24px 8px;
  text-align: center;
  border-right: 1px solid #dbe5f1;
}
.step-card:last-child { border-right: 0; }
.step-number { display: block; color: #8ca5c5; font-size: 10px; font-weight: 800; letter-spacing: .12em; }
.step-icon {
  width: 62px; height: 62px;
  margin: 12px auto 14px;
  display: grid; place-items: center;
  border-radius: 18px;
  background: #fff;
  color: var(--blue);
  box-shadow: 0 9px 24px rgba(23,102,196,.1);
  font-size: 28px; font-weight: 800;
}
.step-card h3 { color: var(--navy); font-size: 14px; }
.step-card p { color: var(--muted); font-size: 11.5px; line-height: 1.55; margin-top: 7px; }
.step-card strong { color: var(--navy); }

/* ---------------- CONTACTS / FOOTER ---------------- */
.contact-cta {
  display: grid; grid-template-columns: .8fr 1.2fr; gap: 25px;
  align-items: stretch;
}
.contact-cta-copy {
  padding: 30px;
  border-radius: 18px;
  color: #fff;
  background: linear-gradient(145deg,#092d6b,#1556a7);
}
.contact-cta-copy .eyebrow { color: var(--gold-2); }
.contact-cta-copy h2 { color: #fff; font-size: 28px; }
.contact-cta-copy p { margin-top: 12px; color: rgba(255,255,255,.76); font-size: 13px; }
.contacts-card {
  padding: 26px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 26px;
  background: #fff; border: 1px solid var(--line); border-radius: 18px;
}
.contacts-card dl div {
  display: flex; justify-content: space-between; gap: 15px;
  padding: 11px 0; border-bottom: 1px dashed var(--line); font-size: 12px;
}
.contacts-card dt { color: var(--muted); }
.contacts-card dd { margin: 0; color: var(--navy); font-weight: 700; text-align: right; }
.contact-form { display: flex; flex-direction: column; gap: 8px; }
.contact-form label { color: var(--muted); font-size: 11px; font-weight: 700; }
.contact-form textarea {
  resize: vertical; min-height: 95px;
  border: 1px solid var(--line); border-radius: 10px; padding: 11px;
  outline: 0; background: #f8fafc;
}
.contact-form textarea:focus { border-color: var(--blue); }
.footer { background: #061f4e; color: #fff; padding: 28px 22px; }
.footer-inner {
  max-width: var(--container); margin: 0 auto;
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
}
.footer-brand { display: flex; align-items: center; gap: 9px; font-weight: 800; }
.footer-brand .small { width: 34px; height: 34px; color: var(--navy); border-color: #fff; background: #fff; font-size: 10px; }
.footer-brand strong { color: #fff; }
.footer-brand span:last-child { color: var(--gold-2); }
.footer p { margin-top: 7px; color: rgba(255,255,255,.55); font-size: 11px; }
.footer-top { border: 1px solid rgba(255,255,255,.22); background: transparent; color: #fff; border-radius: 9px; padding: 9px 13px; }

/* ---------------- MODAL / TOAST ---------------- */
.modal-overlay {
  position: fixed; inset: 0; z-index: 100;
  display: grid; place-items: center; padding: 20px;
  background: rgba(4,20,48,.62); backdrop-filter: blur(5px);
}
.modal {
  width: min(100%, 440px); padding: 28px;
  border-radius: 20px; background: #fff;
  box-shadow: 0 30px 80px rgba(0,0,0,.25);
}
.modal h3 { color: var(--navy); font-size: 21px; }
.modal-sub { color: var(--muted); font-size: 12px; margin-top: 4px; }
.modal-rows { margin: 18px 0; padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); display: grid; gap: 9px; }
.modal-row { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; }
.modal-row.is-total { color: var(--navy); font-weight: 800; }
.modal-warning { padding: 10px; border-radius: 9px; background: #fff0f0; color: var(--red); font-size: 12px; margin-bottom: 13px; }
.modal-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.btn-ghost { background: #eef2f7; color: var(--navy); }
.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 200;
  transform: translateX(-50%);
  padding: 12px 17px; border-radius: 10px;
  color: #fff; background: var(--navy);
  box-shadow: var(--shadow); font-size: 12px;
}
.toast::before { content: "✓"; color: var(--gold-2); margin-right: 8px; }
.toast.is-error::before { content: "!"; color: #ffb4b4; }

/* ---------------- RESPONSIVE ---------------- */
@media (max-width: 1050px) {
  .topbar { gap: 16px; }
  .tabs { justify-content: flex-start; }
  .tab { padding-left: 8px; padding-right: 8px; font-size: 12px; }
  .hero { grid-template-columns: 1fr .8fr; }
  .hero-text { padding: 42px 20px 42px 42px; }
  .catalog-layout { grid-template-columns: 250px minmax(0, 1fr); gap: 14px; }
  .catalog-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
}
@media (max-width: 850px) {
  .topbar { padding: 10px 18px; }
  .tabs {
    position: fixed; left: 12px; right: 12px; top: 70px;
    display: grid; grid-template-columns: 1fr 1fr;
    padding: 10px; background: #fff; border: 1px solid var(--line);
    border-radius: 14px; box-shadow: var(--shadow);
    opacity: 0; transform: translateY(-8px); pointer-events: none;
    transition: .2s ease;
  }
  .tabs.is-open { opacity: 1; transform: translateY(0); pointer-events: auto; }
  .nav-burger { display: block; }
  .topbar-user { margin-left: auto; }
  .hero { grid-template-columns: 1fr; }
  .hero-text { padding: 36px 24px 0; }
  .hero-visual {
    min-height: 220px;
    height: auto;
  }
  .hero-image {
    height: 220px;
    max-height: none;
  }
  .home-stats { grid-template-columns: 1fr 1fr; }
  .stat-card-date { grid-column: 1 / -1; }
  .catalog-layout { grid-template-columns: 220px minmax(0, 1fr); gap: 12px; }
  .catalog-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
  .catalog-sidebar { top: 82px; }
  .sidebar-card { padding: 14px; }
  .sidebar-heading h3 { font-size: 15px; }
  .sidebar-title { font-size: 11px; }
  .steps-grid { grid-template-columns: 1fr 1fr; }
  .step-card { border-right: 0; border-bottom: 1px solid #dbe5f1; }
  .contact-cta { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .catalog-layout { grid-template-columns: 1fr; }
  .catalog-sidebar { position: static; grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .topbar { min-height: 64px; }
  .brand-copy { display: none; }
  .user-meta { display: none; }
  .btn-logout { display: none; }
  .landing-section { padding: 45px 16px; }
  .hero {
    padding: 0;
    min-height: 0;
    border-radius: 17px;
  }
  .hero-text { padding: 28px 22px 0; }
  .hero h1 { font-size: 37px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .home-stats { grid-template-columns: 1fr; }
  .stat-card-date { grid-column: auto; }
  .section-heading { align-items: flex-start; flex-direction: column; gap: 12px; }
  .section-heading h2 { font-size: 25px; }
  .catalog-layout { grid-template-columns: 1fr; }
  .catalog-sidebar { position: static; grid-template-columns: 1fr; order: 0; }
  .catalog-grid { grid-template-columns: 1fr 1fr; gap: 10px; order: 1; }
  .gift-thumb { height: 145px; }
  .gift-body { padding: 12px; }
  .gift-desc { display: none; }
  .ledger-row { grid-template-columns: 1fr; gap: 7px; }
  .ledger-amount { text-align: left; }
  .steps-grid { grid-template-columns: 1fr; }
  .step-card { border-bottom: 1px solid #dbe5f1; }
  .contacts-card { grid-template-columns: 1fr; padding: 19px; }
  .contacts-card dl div { flex-direction: column; gap: 3px; }
  .contacts-card dd { text-align: left; }
  .modal-actions { grid-template-columns: 1fr; }
  .auth-card { padding: 27px 20px; }
  .auth-row { grid-template-columns: 1fr; }
}
