/* ХИМЕРА FAMILY — стиль по дизайн-токенам himera.army
   (см. design/himera-family-mockups.html) */
:root {
  --bg: #070708;
  --panel: #0E0E10;
  --card: #131316;
  --card-grad: linear-gradient(160deg, #1C1C1F, #0E0E10);
  --text: #A9A9B0;
  /* #6B6B72 давав 3.8:1 на фоні — замало для дрібного тексту; цей дає 5.6:1 */
  --text-dim: #8B8B93;
  --white: #ffffff;
  --accent: #FF4D24;
  --red: #E61F1F;
  --red-deep: #C41616;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);
  /*
   * Rajdhani з himera.army не має кирилиці: українські літери малювались
   * запасним Arial Narrow, а на телефонах — звичайним Arial. Sofia Sans Condensed —
   * такі ж вузькі капітелі, але з кирилицею. (Tektur відкинули: його Y читається як V,
   * виходило «FAMILV».) IBM Plex Sans — для тексту.
   */
  --font-display: 'Sofia Sans Condensed', 'Arial Narrow', sans-serif;
  --font-text: 'IBM Plex Sans', 'Segoe UI', Roboto, Arial, sans-serif;
  /* Зрізаний кут — як на шевроні й маркуванні спорядження */
  --chamfer: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 0 100%);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-text);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.6;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--white); }

/* Вузький шрифт — завжди великими літерами, як заголовки на himera.army */
h1, h2, h3,
.btn, .nav a, .logo-title, .logo-sub, .skip-link,
.campaign-title, .product-name, .cart-name a, .order-item-name, .address-city,
.chip, .page-link, .size-pill, .account-nav a {
  font-family: var(--font-display);
  text-transform: uppercase;
}
.order-item-name .cart-size { font-family: var(--font-text); }

/* Суми й лічильники — тим самим вузьким шрифтом, з табличними цифрами */
.stat-num, .campaign-raised, .product-price, .donation-amount, .amount-pill,
.cart-line-total, .cart-total strong, .summary-total strong, .order-total strong,
.order-num, .order-item-sum, .account-stat-num, .account-avatar, .cart-badge, .account-count {
  font-family: var(--font-display);
  font-variant-numeric: tabular-nums;
}

h1, h2, h3 {
  color: var(--white);
  font-weight: 800;
  letter-spacing: 0.005em;
  line-height: 1;
  margin: 0;
  text-wrap: balance;
}

/* Заголовок сторінки — 52px, як 56px Rajdhani у макетах (вузький шрифт трохи щільніший);
   великий кегль лишаємо тільки героєві головної */
h1 { font-size: clamp(34px, 4.2vw, 52px); }
h2 { font-size: clamp(28px, 3vw, 40px); }
h3 { font-size: 24px; }

.container { max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.container.narrow { max-width: 640px; }

.section { padding: clamp(48px, 6vw, 80px) 0; }
.section-sub { margin: 64px 0 24px; font-size: 28px; }

.lead { font-size: 19px; line-height: 1.6; max-width: 34em; }

.accent { color: var(--accent); }

/* Підпис над змістом: звичайний регістр, без розрядки — інформація, а не прикраса */
.label-accent {
  color: var(--accent);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.01em;
}

.link-accent {
  color: var(--white);
  font-weight: 600;
  font-size: 16px;
  border-bottom: 2px solid var(--accent);
  padding-bottom: 2px;
}
.link-accent:hover { color: var(--accent); }

.crumbs {
  color: var(--text-dim);
  font-weight: 500;
  font-size: 15px;
}
.crumbs a { color: var(--text-dim); text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 3px; }
.crumbs a:hover { color: var(--white); }
/* На сторінках сайту крихти й є заголовком: останній пункт — це <h1> (у панелі крихти лишаються дрібними) */
.page-head .crumbs, .account-hero .crumbs { font-size: clamp(20px, 2vw, 26px); line-height: 1.3; }
.crumbs h1, .crumbs strong { display: inline; font: inherit; font-weight: 600; text-transform: none; letter-spacing: inherit; color: var(--white); }


/* --- Доступність із клавіатури ---------------------------------------- */
/*
 * :focus-visible, а не :focus — рамка з'являється при навігації
 * клавіатурою, але не після кліку мишею.
 */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

/* Посилання-перехід до змісту: сховане, поки не отримає фокус */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--red);
  color: var(--white);
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 14px 24px;
}
.skip-link:focus {
  left: 0;
  color: var(--white);
}

/* --- Кнопки ----------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 13px 28px;
  border: 2px solid transparent;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: 0.06em;
  line-height: 1.1;
  text-align: center;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
/* Залиті кнопки — зі зрізаним кутом; на фокусі зріз знімаємо, бо clip-path обрізав би рамку фокуса */
.btn-red, .btn-accent { clip-path: var(--chamfer); }
.btn-red:focus-visible, .btn-accent:focus-visible { clip-path: none; }
/* Білий на #E61F1F — 4.6:1; на помаранчевому білий давав лише 3.3:1, тому там темний текст */
.btn-red { background: var(--red); border-color: var(--red); color: var(--white); }
.btn-red:hover { background: var(--red-deep); border-color: var(--red-deep); color: var(--white); }
.btn-accent { background: var(--accent); border-color: var(--accent); color: var(--bg); }
.btn-accent:hover { background: #FF6B47; border-color: #FF6B47; color: var(--bg); }
.btn-outline { background: transparent; border-color: rgba(255, 255, 255, 0.24); color: var(--white); }
.btn-outline:hover { border-color: var(--white); color: var(--white); }
.btn-lg { min-height: 56px; padding: 15px 36px; font-size: 19px; }
.btn-sm { min-height: 40px; padding: 8px 16px; font-size: 15px; letter-spacing: 0.04em; }
.btn-block { width: 100%; }
.btn:disabled { opacity: 0.4; cursor: not-allowed; }

/* --- Шапка ------------------------------------------------------------ */
.site-header {
  background: var(--panel);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 20;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 14px;
  padding-bottom: 14px;
}
.logo { display: flex; align-items: center; gap: 12px; }
/* Знак не має стискатись флексом: ширину рахує viewBox від висоти */
.emblem { flex-shrink: 0; width: auto; }
/* Контейнер із визначенням знака нічого не показує */
.svg-defs { display: none; }
.logo-text { display: flex; flex-direction: column; gap: 3px; }
.logo-title { color: var(--white); font-weight: 800; font-size: 27px; letter-spacing: 0.06em; line-height: 1; }
.logo-sub { color: var(--accent); font-weight: 700; font-size: 13px; letter-spacing: 0.38em; line-height: 1; }

.nav { display: flex; gap: 28px; }
.nav a {
  color: var(--text);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: 0.06em;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}
.nav a:hover { color: var(--white); }
.nav a.active { color: var(--white); border-bottom-color: var(--accent); }
/* Посилання на сайт підрозділу — акцентом і зі значком «назовні», як «Підтримати» на himera.army */
.nav a.nav-ext { color: var(--accent); display: inline-flex; align-items: center; gap: 6px; }
.nav a.nav-ext:hover { color: var(--white); }

.header-actions { display: flex; align-items: center; gap: 18px; }

.lang-switch { display: flex; align-items: center; gap: 6px; }
.lang-switch a {
  color: var(--text-dim);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.04em;
}
.lang-switch a:hover { color: var(--white); }
.lang-switch a.lang-active { color: var(--accent); }
.lang-sep { color: var(--line-strong); font-weight: 600; }
/* Поле дотику 40px замість 24px; від'ємний margin лишає шапку тієї ж ширини */
.cart-link { position: relative; color: var(--white); display: flex; padding: 8px; margin: -8px; }
.cart-link:hover { color: var(--accent); }
.cart-badge {
  position: absolute;
  top: 0;
  right: -2px;
  background: var(--red);
  color: var(--white);
  font-weight: 700;
  font-size: 12px;
  padding: 1px 6px;
}


/* --- Бургер і мобільне меню -------------------------------------------- */
.nav-toggle {
  display: none;
  background: none;
  border: 2px solid var(--line-strong);
  padding: 10px;
  cursor: pointer;
  /* 44px — мінімальна зона дотику, щоб було легко влучити пальцем */
  width: 46px;
  height: 46px;
  flex-shrink: 0;  /* інакше флекс стискає кнопку і в неї важче влучити */
  flex-direction: column;
  justify-content: space-between;
}
.nav-toggle:hover { border-color: var(--accent); }
.nav-toggle-bar {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--white);
  transition: transform 0.2s, opacity 0.2s;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

/* Кнопка підтримки всередині меню потрібна лише на мобільному */
.nav-donate { display: none; }

/* --- Hero ------------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, var(--panel), var(--bg) 70%);
}
/* Великий контурний знак підрозділу за карткою збору — тихо, на межі видимості */
.hero-mark {
  position: absolute;
  right: -6%;
  top: 50%;
  height: 150%;
  width: auto;
  transform: translateY(-50%);
  color: rgba(255, 255, 255, 0.035);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 64px;
  padding-top: clamp(56px, 8vw, 112px);
  padding-bottom: clamp(56px, 8vw, 112px);
}
.hero-copy { display: flex; flex-direction: column; gap: 28px; max-width: 640px; }
.hero-copy h1 { font-size: clamp(52px, 7.4vw, 104px); line-height: 0.92; }
.hero-copy .lead { margin: 0; }
.hero-btns { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-btns-center { justify-content: center; }

/* --- Картка збору ----------------------------------------------------- */
.campaign-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-top: 3px solid var(--accent);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: 100%;
  max-width: 460px;
  flex-shrink: 0;
}
.campaign-card-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.campaign-title {
  color: var(--white);
  font-weight: 800;
  font-size: 30px;
  letter-spacing: 0.01em;
  line-height: 1.05;
}
.campaign-title:hover { color: var(--accent); }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 14px;
  line-height: 1.3;
  padding: 3px 10px;
  white-space: nowrap;
}
.pill-red { background: rgba(230, 31, 31, 0.14); color: #FF5A4A; }
/* Квадратна «лампа» — збір живий */
.pill-red::before { content: ""; width: 7px; height: 7px; background: currentColor; }
.pill-muted { border: 1px solid var(--line-strong); color: var(--text-dim); }
.pill-accent { background: rgba(255, 77, 36, 0.12); color: var(--accent); }

/*
 * Шкала збору — як індикатор на приладі: 20 сегментів по 5%.
 * Маска ріже і доріжку, і заповнення однаково, бо відсотки рахуються від ширини .progress.
 */
.progress {
  --segments: repeating-linear-gradient(90deg, #000 0 calc(5% - 3px), transparent calc(5% - 3px) 5%);
  background: #232328;
  height: 16px;
  width: 100%;
  -webkit-mask-image: var(--segments);
  mask-image: var(--segments);
}
.progress-lg { height: 22px; }
.progress-bar {
  background: var(--accent);
  height: 100%;
  width: 0;  /* без скрипта смуга порожня, а сума й відсоток лишаються текстом поруч */
  transform-origin: left;
  animation: gauge-fill 1.2s cubic-bezier(0.2, 0.7, 0.2, 1) 0.15s both;
}
@keyframes gauge-fill {
  from { transform: scaleX(0); }
}

.campaign-nums { display: flex; justify-content: space-between; align-items: baseline; gap: 4px 12px; flex-wrap: wrap; }
.campaign-raised { color: var(--white); font-weight: 800; font-size: 36px; line-height: 1; }
.campaign-goal { color: var(--text-dim); font-weight: 500; font-size: 16px; font-variant-numeric: tabular-nums; }
.campaign-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 6px; }
/* Картки в ряду однакової висоти: кнопки притиснуті донизу, навіть якщо в сусідки є обкладинка */
.campaigns-grid .campaign-actions { margin-top: auto; }
.campaign-actions .btn-accent { flex-grow: 1; }

.campaigns-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(340px, 100%), 1fr));
  gap: 24px;
}
.campaigns-grid .campaign-card { max-width: none; }
/* Обкладинка будь-яких пропорцій показується цілою: без обрізки, задовга — з полями */
.campaign-cover, .campaign-card-cover img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  background: var(--bg);
  border: 1px solid var(--line);
}
.campaign-card-cover img { max-height: 520px; }

.campaign-detail { display: flex; gap: 48px; align-items: flex-start; }
.campaign-main { display: flex; flex-direction: column; gap: 20px; flex-grow: 1; min-width: 0; }
.campaign-cover { max-height: 80vh; }


/* --- Звіти на сторінці збору ------------------------------------------ */
.campaign-reports {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 32px;
}
.campaign-report {
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  padding: 20px 24px;
}
.campaign-report h3 { font-size: 20px; margin: 6px 0 12px; }
.report-img-inline {
  width: 100%;
  max-height: 320px;
  object-fit: cover;
  margin-bottom: 12px;
}

/* --- Стіна донатів ----------------------------------------------------- */
.donation-wall {
  background: var(--card);
  border: 1px solid var(--line);
  border-top: 3px solid var(--accent);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 32px;
}
.donation-list { list-style: none; margin: 0; padding: 0; }
.donation-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.donation-row:last-child { border-bottom: none; }
.donation-name {
  color: var(--white);
  font-weight: 600;
  font-size: 16px;
  overflow-wrap: anywhere;
}
.donation-amount { color: var(--accent); font-weight: 800; font-size: 21px; white-space: nowrap; }

/* --- Смуга статистики ------------------------------------------------- */
.stats-strip { background: var(--bg); border-bottom: 1px solid var(--line); }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding-top: 36px;
  padding-bottom: 36px;
}
.stat {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 4px 24px;
  border-left: 1px solid var(--line-strong);
}
.stat-num { color: var(--white); font-weight: 800; font-size: clamp(30px, 3.6vw, 48px); line-height: 1; white-space: nowrap; }
.stat-num.accent { color: var(--accent); }
.stat-label { color: var(--text-dim); font-weight: 500; font-size: 15px; line-height: 1.35; }

/* --- Донат ------------------------------------------------------------ */
.donate-split { display: flex; justify-content: space-between; gap: 64px; align-items: flex-start; }
.donate-copy { display: flex; flex-direction: column; gap: 20px; width: 420px; flex-shrink: 0; }
.donate-copy p { margin: 0; }
.donate-box {
  background: var(--card);
  border: 1px solid var(--line);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex-grow: 1;
  width: 100%;
  max-width: 540px;
}
.donate-box form { display: flex; flex-direction: column; gap: 18px; }

.amount-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.amount-pill {
  background: transparent;
  border: 2px solid var(--line-strong);
  color: var(--white);
  font-weight: 800;
  font-size: 21px;
  min-height: 52px;
  padding: 10px 0;
  text-align: center;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.amount-pill:hover { border-color: var(--accent); }
/* Темний текст на помаранчевому: білий там не проходить контраст */
.amount-pill.selected { background: var(--accent); border-color: var(--accent); color: var(--bg); }

/* --- Формы ------------------------------------------------------------ */
.field { display: flex; flex-direction: column; gap: 8px; }
.field label, .field-label {
  color: var(--white);
  font-weight: 600;
  font-size: 15px;
}
.field input, .field textarea {
  background: var(--bg);
  border: 2px solid var(--line-strong);
  color: var(--white);
  font-family: inherit;
  font-weight: 500;
  font-size: 17px;
  min-height: 52px;
  padding: 12px 16px;
  transition: border-color 0.15s;
}
/* Без ширини textarea тримає 40 знаків (cols) — 400px, і форма оформлення вилазила за екран телефона */
.field textarea { width: 100%; resize: vertical; }
.field input:hover, .field textarea:hover { border-color: rgba(255, 255, 255, 0.3); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); }
.field-error input { border-color: var(--red); }
.error-text { color: #FF5A4A; font-size: 15px; font-weight: 500; }
.form-note { color: var(--text-dim); font-size: 15px; }
.field-hint { color: var(--text-dim); font-size: 14px; font-weight: 400; }

/* --- Нова Пошта: підказки міст і вибір відділення --------------------- */
.np-field { position: relative; }

.np-suggest {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 30;
  margin: 2px 0 0;
  padding: 0;
  list-style: none;
  background: var(--card);
  border: 2px solid var(--accent);
  max-height: 280px;
  overflow-y: auto;
}
.np-suggest-item {
  padding: 12px 16px;
  color: var(--white);
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  border-bottom: 1px solid var(--line);
}
.np-suggest-item:last-child { border-bottom: none; }
.np-suggest-item:hover, .np-suggest-item.is-active { background: rgba(255, 77, 36, 0.15); color: var(--accent); }

.np-select {
  background: var(--bg);
  border: 2px solid var(--line-strong);
  color: var(--white);
  font-family: inherit;
  font-weight: 600;
  font-size: 17px;
  padding: 12px 16px;
  width: 100%;
}
.np-select:focus { outline: none; border-color: var(--accent); }

/* --- Товары ----------------------------------------------------------- */
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 36px; flex-wrap: wrap; }
.section-head h2 { margin-top: 0; }

.products-grid { display: grid; gap: 24px; }
/* auto-fit: три обрані товари на головній розтягуються на всю ширину, без порожньої четвертої клітинки */
.products-grid.cols-3 { grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); }
.products-grid.cols-4 { grid-template-columns: repeat(auto-fill, minmax(min(250px, 100%), 1fr)); }

.product-card { background: var(--card); border: 1px solid var(--line); display: flex; flex-direction: column; }
.product-card:hover { border-color: var(--line-strong); }
.product-img {
  background: var(--card-grad);
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.product-img img { width: 100%; height: 100%; object-fit: cover; }
.product-info { display: flex; flex-direction: column; gap: 8px; padding: 18px 20px 22px; flex-grow: 1; }
.product-name {
  color: var(--white);
  font-weight: 800;
  font-size: 21px;
  letter-spacing: 0.02em;
  line-height: 1.1;
}
.product-name:hover { color: var(--accent); }
.product-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: auto; }
.product-price { color: var(--accent); font-weight: 800; font-size: 26px; line-height: 1; }
.price-lg { font-size: 48px; }
/* Пільгова ціна: звичайна закреслена поруч */
.price-pair { display: inline-flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.price-old { color: var(--text-dim); font-family: var(--font-display); font-weight: 600; font-size: 18px; }
.price-pair:has(.price-lg) .price-old { font-size: 26px; }
.cart-line-total .price-old { display: block; font-size: 15px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* Наліпка на фото: зрізаний кут, як у кнопок */
.badge {
  position: absolute;
  top: 12px;
  left: 12px;
  color: var(--white);
  font-weight: 600;
  font-size: 14px;
  line-height: 1.3;
  padding: 4px 14px 4px 10px;
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 0 100%);
  z-index: 2;
}
.badge-hit { background: var(--red); }
.badge-new { background: var(--accent); color: var(--bg); }

.filter-row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 36px; }
.chip {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  border: 1px solid var(--line-strong);
  color: var(--text);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.05em;
  padding: 10px 20px;
}
.chip:hover { border-color: var(--white); color: var(--white); }
.chip-active { background: var(--white); border-color: var(--white); color: var(--bg); }
.chip-active:hover { color: var(--bg); }

/* Відступ зверху — як у шапки кабінету, щоб заголовки всіх сторінок стояли на одній висоті */
.page-head { padding-top: clamp(32px, 4vw, 48px); padding-bottom: 0; }
.page-head + .section, .account-hero + .section { padding-top: clamp(28px, 4vw, 48px); }
.page-head-row { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; flex-wrap: wrap; }
.page-head-note { color: var(--text-dim); font-weight: 500; font-size: 16px; }

/* Чернетка збору — видно лише співробітникам */
.draft-banner {
  background: var(--accent);
  color: var(--bg);
  font-weight: 700;
  font-size: 16px;
  padding: 10px 0;
}


/* --- Пагінація --------------------------------------------------------- */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 40px;
}
.page-link {
  border: 2px solid var(--line-strong);
  color: var(--white);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.05em;
  padding: 12px 22px;
}
.page-link:hover { border-color: var(--white); color: var(--white); }
.page-status { color: var(--text-dim); font-weight: 500; font-size: 15px; }

/* --- Карточка товару --------------------------------------------------- */
.product-detail { display: flex; gap: 48px; align-items: flex-start; }
.product-gallery { display: flex; flex-direction: column; gap: 16px; width: 560px; max-width: 46%; flex-shrink: 0; }
.product-hero-img {
  background: var(--card-grad);
  border: 1px solid var(--line);
  height: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.product-hero-img img { width: 100%; height: 100%; object-fit: cover; }
.product-thumbs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.product-thumb {
  padding: 0;
  border: 1px solid var(--line);
  background: var(--card-grad);
  cursor: pointer;
  display: block;
}
.product-thumb:hover { border-color: var(--line-strong); }
.product-thumb.thumb-active { border: 2px solid var(--accent); }
.product-thumbs img { width: 100%; height: 110px; object-fit: cover; display: block; }

.product-meta { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.price-row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }

.buy-form { display: flex; flex-direction: column; gap: 20px; }
.size-row { display: flex; gap: 10px; flex-wrap: wrap; }
.size-input { position: absolute; opacity: 0; pointer-events: none; }
.size-pill {
  border: 2px solid var(--line-strong);
  color: var(--text);
  font-weight: 800;
  font-size: 19px;
  min-width: 56px;
  padding: 12px 10px;
  text-align: center;
  cursor: pointer;
}
.size-pill:hover { border-color: var(--accent); }
.size-input:checked + .size-pill {
  border-color: var(--accent);
  background: rgba(255, 77, 36, 0.1);
  color: var(--white);
}
.size-out { color: var(--text-dim); text-decoration: line-through; cursor: not-allowed; }

.buy-row { display: flex; gap: 16px; align-items: flex-end; flex-wrap: wrap; }
.qty-field { width: 90px; }

.info-box {
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 20px 24px;
  max-width: 560px;
}
.info-box span { color: var(--white); font-weight: 600; font-size: 15px; }

/* --- Кошик ------------------------------------------------------------ */
.cart-notice { margin-bottom: 24px; }
.cart-table { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.cart-row {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.cart-thumb {
  background: var(--card-grad);
  border: 1px solid var(--line);
  width: 72px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}
.cart-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cart-name { display: flex; flex-direction: column; gap: 4px; flex-grow: 1; min-width: 0; }
.cart-name a { color: var(--white); font-weight: 800; font-size: 20px; letter-spacing: 0.02em; }
.cart-name a:hover { color: var(--accent); }
.cart-size { color: var(--text-dim); font-size: 14px; font-weight: 600; }
.cart-qty { display: flex; gap: 8px; align-items: center; }
.cart-qty input {
  background: var(--bg);
  border: 2px solid var(--line-strong);
  color: var(--white);
  font-family: inherit;
  font-weight: 700;
  font-size: 16px;
  width: 64px;
  padding: 8px;
  text-align: center;
}
.cart-line-total { color: var(--accent); font-weight: 800; font-size: 23px; min-width: 110px; text-align: right; }
.cart-remove {
  background: none;
  border: none;
  color: var(--text-dim);
  font-size: 18px;
  cursor: pointer;
  padding: 8px;
}
.cart-remove:hover { color: var(--red); }
.cart-footer { display: flex; justify-content: flex-end; align-items: center; gap: 32px; padding: 24px 0; flex-wrap: wrap; }
.cart-total { font-size: 20px; }
.cart-total strong { color: var(--white); font-weight: 800; font-size: 30px; }

/* --- Checkout --------------------------------------------------------- */
.checkout-split { display: flex; gap: 48px; align-items: flex-start; }
.checkout-form { display: flex; flex-direction: column; gap: 18px; flex-grow: 1; max-width: 560px; }
.order-summary {
  background: var(--card);
  border: 1px solid var(--line);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 380px;
  flex-shrink: 0;
}
.summary-row { display: flex; justify-content: space-between; gap: 16px; font-weight: 600; font-size: 15px; }
.status-value { color: var(--white); }
.info-box-inline { margin: 8px 0; }
.summary-total {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  padding-top: 14px;
  font-size: 18px;
}
.summary-total strong { color: var(--white); font-weight: 800; font-size: 28px; }

/* --- Вхід: форма + помітний блок реєстрації --------------------------- */
/* auto-fit сам складає колонки в одну на телефоні — без окремого @media */
.auth-split { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr)); gap: 24px; max-width: 1040px; align-items: stretch; }
.auth-card {
  background: var(--card);
  border: 1px solid var(--line);
  padding: clamp(24px, 3vw, 36px);
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.auth-card .info-box { max-width: none; }
.auth-title { font-size: clamp(26px, 2.4vw, 32px); }
.auth-forgot { align-self: flex-end; font-weight: 600; font-size: 15px; margin-top: -6px; }
.auth-register {
  border-top: 3px solid var(--accent);
  background:
    radial-gradient(ellipse 420px 260px at 100% 0%, rgba(255, 77, 36, 0.14), transparent),
    var(--card);
}
.auth-perks { list-style: none; margin: 0 0 auto; padding: 0; display: flex; flex-direction: column; gap: 12px; color: var(--white); font-weight: 500; font-size: 16px; }
.auth-perks li { display: flex; gap: 12px; align-items: baseline; }
.auth-perks li::before { content: ""; flex-shrink: 0; width: 10px; height: 10px; background: var(--accent); clip-path: var(--chamfer); transform: translateY(-1px); }
.auth-register .form-note { margin: 0; }

/* --- Кабінет покупця -------------------------------------------------- */
.account-hero {
  background:
    radial-gradient(ellipse 640px 320px at 88% 0%, rgba(230, 31, 31, 0.16), transparent),
    radial-gradient(ellipse 420px 260px at 0% 100%, rgba(255, 77, 36, 0.06), transparent),
    var(--bg);
  border-bottom: 1px solid var(--line);
  padding: clamp(32px, 4vw, 48px) 0 36px;
}

.account-layout { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 40px; align-items: start; }

.account-side {
  background: var(--card);
  border: 1px solid var(--line);
  border-top: 3px solid var(--accent);
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 112px;  /* під липкою шапкою */
}
.account-user { display: flex; align-items: center; gap: 14px; padding: 24px; border-bottom: 1px solid var(--line); }
.account-avatar {
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--red), var(--accent));
  color: var(--white);
  font-weight: 700;
  font-size: 20px;
  /* зрізані кути — як шеврон, а не круглий аватар соцмережі */
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
}
.account-user-text { display: flex; flex-direction: column; min-width: 0; }
.account-user-text strong { color: var(--white); font-size: 18px; line-height: 1.2; overflow-wrap: anywhere; }
.account-user-text span { color: var(--text-dim); font-size: 14px; font-weight: 600; overflow-wrap: anywhere; }
.account-user-text .account-group { color: var(--accent); align-self: flex-start; margin-top: 6px; }

.account-nav { display: flex; flex-direction: column; padding: 8px 0; }
.account-nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 24px;
  color: var(--text);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: 0.05em;
  border-left: 3px solid transparent;
}
.account-nav a:hover { color: var(--white); background: rgba(255, 255, 255, 0.03); }
.account-nav a.active {
  color: var(--white);
  border-left-color: var(--accent);
  background: linear-gradient(90deg, rgba(255, 77, 36, 0.14), transparent);
}
.account-nav svg { flex-shrink: 0; }
.account-nav a.active svg { color: var(--accent); }
.account-count {
  margin-left: auto;
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  font-size: 12px;
  letter-spacing: 0;
  padding: 1px 8px;
}
.account-nav a.active .account-count { background: var(--accent); }
.account-logout { padding: 16px 24px 24px; border-top: 1px solid var(--line); }

.account-main { display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.account-message { max-width: none; }
.info-box-row { flex-direction: row; align-items: center; justify-content: space-between; flex-wrap: wrap; max-width: none; }

.account-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.account-stat {
  background: var(--card);
  border: 1px solid var(--line);
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.account-stat-num { color: var(--white); font-weight: 800; font-size: 40px; line-height: 1.1; }
.account-stat-label { color: var(--text-dim); font-weight: 500; font-size: 15px; }
.account-stat-accent {
  background: linear-gradient(135deg, rgba(230, 31, 31, 0.2), rgba(255, 77, 36, 0.05)), var(--card);
  border-color: rgba(255, 77, 36, 0.35);
}
.account-stat-accent .account-stat-num { color: var(--accent); }

/* Замовлення */
.order-list { display: flex; flex-direction: column; gap: 20px; }
.order-card { background: var(--card); border: 1px solid var(--line); }
.order-card:hover { border-color: var(--line-strong); }
.order-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 16px;
  padding: 16px 24px;
  background: var(--panel);
  border-bottom: 1px solid var(--line);
}
.order-card-title { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 16px; }
.order-num { color: var(--white); font-weight: 800; font-size: 24px; letter-spacing: 0.04em; }
.order-date { color: var(--text-dim); font-weight: 600; font-size: 15px; }

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid currentColor;
  font-weight: 600;
  font-size: 14px;
  line-height: 1.3;
  padding: 3px 10px;
  white-space: nowrap;
}
.status-pill::before { content: ""; width: 7px; height: 7px; background: currentColor; }
.status-pending { color: #E8B341; }
.status-paid, .status-shipped { color: var(--accent); }
.status-done { color: #3FB97A; }
.status-failed { color: var(--red); }
.status-cancelled { color: var(--text-dim); }

.order-items { list-style: none; margin: 0; padding: 4px 24px; }
.order-item { display: flex; align-items: center; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.order-item:last-child { border-bottom: none; }
.order-item .cart-thumb { width: 56px; height: 56px; }
.order-item-name {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex-grow: 1;
  min-width: 0;
  color: var(--white);
  font-weight: 800;
  font-size: 19px;
  letter-spacing: 0.02em;
}
.order-item-name a { color: var(--white); }
.order-item-name a:hover { color: var(--accent); }
.order-item-name .cart-size { font-weight: 400; letter-spacing: 0; text-transform: none; }
.order-item-sum { color: var(--white); font-weight: 800; font-size: 20px; white-space: nowrap; }

.order-card-foot {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 16px 24px;
  padding: 16px 24px 20px;
  border-top: 1px solid var(--line);
}
.order-ship { display: flex; flex-direction: column; gap: 2px; font-weight: 600; font-size: 15px; min-width: 0; }
.order-ship-label { color: var(--text-dim); font-weight: 500; font-size: 14px; }
.order-ship-note { color: var(--text-dim); font-size: 14px; }
.order-ttn { font-weight: 700; font-size: 15px; }
.order-total { display: flex; flex-direction: column; align-items: flex-end; }
.order-total span { color: var(--text-dim); font-weight: 500; font-size: 14px; }
.order-total strong { color: var(--accent); font-weight: 800; font-size: 32px; line-height: 1.1; }

.account-empty {
  background: var(--card);
  border: 1px dashed var(--line-strong);
  padding: 56px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
}
.account-empty svg { color: var(--accent); }
.account-empty h2 { font-size: 26px; }
.account-empty p { margin: 0 0 8px; max-width: 440px; }

/* Особисті дані й форми кабінету */
.account-panel {
  background: var(--card);
  border: 1px solid var(--line);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.account-panel-head h2 { font-size: 22px; }
.account-panel-head p { margin: 6px 0 0; color: var(--text-dim); font-size: 15px; max-width: 560px; }
.account-form { display: flex; flex-direction: column; gap: 18px; max-width: 560px; }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.field-static {
  color: var(--white);
  font-weight: 600;
  font-size: 17px;
  padding: 12px 16px;
  border: 2px dashed var(--line);
  overflow-wrap: anywhere;
}

/* Адреси */
.address-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.address-card {
  background: var(--card);
  border: 1px solid var(--line);
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.address-default { border-color: rgba(255, 77, 36, 0.45); box-shadow: inset 3px 0 0 var(--accent); }
.address-card-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 26px; }
.address-city { color: var(--white); font-weight: 800; font-size: 23px; letter-spacing: 0.02em; }
.address-office { font-weight: 600; font-size: 15px; flex-grow: 1; }
.address-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 10px; }
.btn-link {
  background: none;
  border: none;
  padding: 4px 0;
  margin-left: auto;
  color: var(--text-dim);
  font-family: inherit;
  font-weight: 600;
  font-size: 14px;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.btn-link:hover { color: #FF5A4A; }
.address-chips { margin-bottom: 0; gap: 8px; }
.address-chips .chip { min-height: 40px; padding: 8px 14px; font-size: 13px; }

/* Список бажань: поруч із меню кабінету вміщаємо три картки, а не дві */
.account-main .products-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.account-main .product-img { height: 240px; }
.wish-card { position: relative; display: flex; flex-direction: column; }
.wish-card .product-card { flex-grow: 1; }
.wish-remove {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 3;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(7, 7, 8, 0.75);
  border: 1px solid var(--line-strong);
  color: var(--white);
  cursor: pointer;
}
.wish-remove:hover { background: var(--red); border-color: var(--red); }
.wish-btn svg { flex-shrink: 0; }
.wish-on { border-color: var(--accent); color: var(--accent); }

/* --- Звіти ------------------------------------------------------------ */
.reports-list { display: flex; flex-direction: column; gap: 28px; }
.report-card { background: var(--card); border: 1px solid var(--line); display: flex; gap: 0; overflow: hidden; }
.report-img { width: 320px; object-fit: cover; flex-shrink: 0; }
.report-body { display: flex; flex-direction: column; gap: 10px; padding: 28px; }
.report-date { color: var(--text-dim); font-weight: 500; font-size: 15px; font-variant-numeric: tabular-nums; }
.report-body h2 { font-size: 26px; }

/* --- Прочее ----------------------------------------------------------- */
.text-page p { margin: 0 0 16px; }
.text-page h2 { font-size: 24px; margin: 32px 0 12px; }
/* Опис збору з редактора панелі: підзаголовки, списки, фото, посилання */
.text-page h3 { font-size: 20px; margin: 24px 0 10px; }
.text-page ul, .text-page ol { margin: 0 0 16px; padding-left: 24px; }
.text-page li { margin-bottom: 6px; }
.text-page img { display: block; max-width: 100%; height: auto; margin: 0 0 16px; border: 1px solid var(--line); }
.text-page blockquote { margin: 0 0 16px; padding-left: 16px; border-left: 3px solid var(--accent); }
.text-page a { text-decoration: underline; text-underline-offset: 3px; }
/* Розміри з редактора (<font size>): браузер рахує 1–7 в абсолютних px, а треба відносно тексту */
.text-page font[size="2"], .rich-area font[size="2"] { font-size: 0.85em; }
.text-page font[size="3"], .rich-area font[size="3"] { font-size: 1em; }
.text-page font[size="5"], .rich-area font[size="5"] { font-size: 1.35em; }
.text-page font[size="6"], .rich-area font[size="6"] { font-size: 1.75em; }
.center-page { text-align: center; padding: 96px 0; }
.center-page .lead { margin: 16px auto 24px; }

/* Адреса, на яку пішов лист: помилку в ній видно одразу */
.sent-to {
  display: inline-block;
  max-width: 100%;
  margin: 0;
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  padding: 14px 24px;
  color: var(--white);
  font-weight: 700;
  /* На телефоні звичайна адреса має влазити в рядок, а не рватись посеред «.com» */
  font-size: clamp(16px, 4.5vw, 22px);
  overflow-wrap: anywhere;
}
.sent-to-label { display: block; color: var(--text-dim); font-size: 14px; font-weight: 600; margin-bottom: 2px; }

/* Пароль за посиланням із листа: картка з поштою кабінету */
.password-card { border-top: 3px solid var(--accent); }
.password-card .sent-to { align-self: flex-start; font-size: clamp(15px, 4vw, 19px); padding: 12px 20px; background: var(--bg); }
.password-card-lead { margin: 0; color: var(--text); font-size: 17px; line-height: 1.5; }
.password-card .btn { align-self: stretch; }

/* Вимоги Django до пароля приходять списком <ul> — маркери як у решті сайту */
.field-hint ul { list-style: none; margin: 2px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.field-hint li { display: flex; gap: 10px; align-items: baseline; line-height: 1.4; }
.field-hint li::before { content: ""; flex-shrink: 0; width: 7px; height: 7px; background: var(--accent); transform: translateY(-1px); }

.site-footer { background: var(--panel); border-top: 1px solid var(--line); margin-top: 64px; }
.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 48px;
  padding-top: 56px;
  padding-bottom: 40px;
  flex-wrap: wrap;
}
.footer-about { display: flex; flex-direction: column; gap: 16px; max-width: 400px; }
.footer-about p { color: var(--text-dim); font-size: 15px; margin: 0; }
/* ul. — перебити відступи .text-page ul на сторінці «Про нас» */
ul.socials { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
ul.socials li { margin: 0; }
.socials a {
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px;
  border: 1px solid var(--line-strong);
  color: var(--text);
  text-decoration: none;
}
.socials a:hover, .socials a:focus-visible { color: var(--white); border-color: var(--accent); }
.socials svg { width: 20px; height: 20px; }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col a { color: var(--text); font-weight: 500; font-size: 15px; }
.footer-col a:hover { color: var(--white); }
.footer-col a.footer-accent { color: var(--accent); font-weight: 700; }
.footer-col a.footer-accent:hover { color: var(--white); }
.footer-heading {
  color: var(--white);
  font-weight: 600;
  font-size: 15px;
  margin-bottom: 4px;
}
.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 20px;
  padding-bottom: 20px;
  color: var(--text-dim);
  font-size: 14px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

/* --- Адаптив ---------------------------------------------------------- */
@media (max-width: 980px) {
  .hero-inner { flex-direction: column; align-items: stretch; }
  .campaign-card { max-width: none; }
  .donate-split, .campaign-detail, .checkout-split, .product-detail { flex-direction: column; }
  .donate-copy, .order-summary, .product-gallery { width: 100%; max-width: none; }
  .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 28px; }
  .hero-mark { right: -30%; height: 90%; top: 4%; transform: none; }
  /* Липка шапка — лише на широких екранах: на планшеті й телефоні вона прокручується */
  .site-header { position: relative; }
  .report-card { flex-direction: column; }
  .report-img { width: 100%; max-height: 260px; }
  /* Кабінет: меню стає плиткою вкладок над вмістом, «Вийти» — поруч з іменем */
  .account-layout { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .account-side { position: static; display: grid; grid-template-columns: minmax(0, 1fr) auto; }
  .account-user { border-bottom: none; }
  .account-logout { grid-row: 1; grid-column: 2; align-self: center; border-top: none; padding: 0 24px 0 0; }
  .account-logout .btn-block { width: auto; }
  .account-nav {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 0;
    border-top: 1px solid var(--line);
  }
  .account-nav a { border-left: none; border-bottom: 3px solid transparent; padding: 14px 16px; }
  .account-nav a.active { border-bottom-color: var(--accent); }
}

/* Шапка з шістьма пунктами меню, кабінетом, кошиком, кнопкою й мовою не влазить уже до ~1150px.
   Межу дублює static/js/nav.js */
@media (max-width: 1180px) {
  /* Навігація ховається у випадне меню, а не зникає зовсім */
  /* Бургер — у правий край, за мовою й кошиком, де його шукає великий палець */
  .nav-toggle { display: flex; order: 3; }
  .header-actions { margin-left: auto; }
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--panel);
    border-top: 1px solid var(--line);
    border-bottom: 3px solid var(--accent);
    padding: 8px 24px 24px;
    /* На 981–1180 px шапка липка, і меню їде разом із нею: на низькому
       екрані низ меню («Підтримати») інакше не докрутити */
    max-height: calc(100vh - 80px);
    max-height: calc(100dvh - 80px);
    overflow-y: auto;
  }
  .nav.nav-open { display: flex; }
  .nav a {
    padding: 16px 0;
    font-size: 18px;
    border-bottom: 1px solid var(--line);
  }
  .nav a.active { border-bottom-color: var(--accent); }
  .nav-donate {
    display: flex;
    margin-top: 16px;
    border-bottom: none;
    justify-content: center;
  }
  /* .nav a перебиває колір .btn-red — повертаємо білий текст (селектор має бути сильнішим за .nav a) */
  .nav a.nav-donate { color: var(--white); border-bottom: none; }
  .nav a.nav-donate:hover { color: var(--white); }
  .header-inner { gap: 12px; }
  /* Кнопка підтримки вже є в меню — у шапці лишаємо кошик і мову */
  .header-actions > .btn-red { display: none; }
}

@media (max-width: 600px) {
  /* Шапка на телефоні: логотип, бургер, мова, кабінет і кошик мають влізти в 375px */
  /* Лише боки: у шапки, hero й підвалу свої вертикальні відступи на тих самих елементах */
  .container { padding-left: 16px; padding-right: 16px; }
  .header-inner { gap: 8px; }
  .header-actions { gap: 12px; }
  .logo { gap: 8px; }
  .logo-title { font-size: 23px; letter-spacing: 0.05em; }
  /* «Вийти» — під меню, щоб пошта не ламалась посеред слова */
  .account-side { grid-template-columns: minmax(0, 1fr); }
  .account-logout { grid-row: auto; grid-column: 1; padding: 16px; }
  .account-logout .btn-block { width: 100%; }
  .account-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .account-stat-accent { grid-column: 1 / -1; }
  .account-stat-num { font-size: 26px; }
  .field-row { grid-template-columns: minmax(0, 1fr); }
  /* Рядок кошика у два поверхи: фото й назва, під ними кількість, сума й прибрати */
  .cart-row { flex-wrap: wrap; gap: 12px 16px; }
  .cart-name { flex-basis: calc(100% - 88px); }
  .cart-line-total { min-width: 0; margin-left: auto; }
  .order-card-head, .order-items, .order-card-foot { padding-left: 16px; padding-right: 16px; }
  .order-total { align-items: flex-start; }
  .account-panel { padding: 20px; }
  .stat { padding: 2px 14px; }
  .stat-num { font-size: 28px; }
  /* Чотири суми в рядок на телефоні тісні — дві по дві */
  .amount-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .campaign-card, .donate-box { padding: 22px; }
  .hero-btns .btn { flex-grow: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .progress-bar { animation: none; }
}

/* Код активації циферблата «Химера»: сторінка коду, «дякуємо» */
.watch-code-box { display: flex; flex-direction: column; gap: 8px; padding: 20px; background: var(--card); border-left: 3px solid var(--accent); }
.watch-code { color: var(--white); font-family: var(--font-display); font-size: 40px; font-weight: 800; letter-spacing: 4px; line-height: 1; margin: 0; }
