/*
  IPAS CO — світла нейтральна тема.
  Білий фон, тонкі межі, мʼякі тіні, темні кнопки, один спокійний акцент.
  Усі кольори, радіуси й тіні — у змінних нижче.
*/

:root {
  /* поверхні */
  --bg: #ffffff;
  --bg-soft: #f7f8fa;
  --bg-muted: #f1f3f6;
  --surface: #ffffff;

  /* межі */
  --line: #e6e9ee;
  --line-strong: #d6dbe3;

  /* текст */
  --ink: #0d1420;
  --ink-2: #444e5c;
  --ink-3: #737d8b;

  /* акцент — приглушений зелений (прогрес, іконки, посилання) */
  --accent: #0f6f5c;
  --accent-2: #0b5748;
  --accent-soft: #e9f3f0;

  /* кнопка-дія — нейтральний темний */
  --btn: #111a27;
  --btn-hover: #1e2a3c;

  --radius: 16px;
  --radius-sm: 12px;
  --radius-lg: 22px;
  --radius-pill: 999px;

  --shadow-1: 0 1px 2px rgba(13, 20, 32, 0.05);
  --shadow-2: 0 2px 6px rgba(13, 20, 32, 0.05), 0 14px 34px -18px rgba(13, 20, 32, 0.24);
  --shadow-3: 0 4px 14px rgba(13, 20, 32, 0.07), 0 28px 56px -28px rgba(13, 20, 32, 0.3);

  --wrap: 1180px;
  --gap: 22px;

  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --display: 'Manrope', var(--sans);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink-2);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

h1, h2, h3, h4 {
  font-family: var(--display);
  color: var(--ink);
  margin: 0;
  line-height: 1.16;
  letter-spacing: -0.02em;
}
p { margin: 0; }
a { color: inherit; text-decoration: none; }
/* height:auto потрібен, щоб працювали aspect-ratio та обрізання по object-fit,
   навіть коли у розмітці вказані атрибути width/height. */
img { max-width: 100%; height: auto; display: block; }
button { font: inherit; color: inherit; cursor: pointer; }
::selection { background: var(--accent-soft); color: var(--accent-2); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 6px;
}

.container { width: min(var(--wrap), 100% - 40px); margin-inline: auto; }

.skip-link {
  position: fixed; top: -60px; left: 12px; z-index: 100;
  background: var(--btn); color: #fff; padding: 10px 16px; border-radius: 10px;
  transition: top 0.2s ease;
}
.skip-link:focus { top: 12px; }

/* ------------------------------------------------------------------ кнопки */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 20px; border: 1px solid transparent; border-radius: var(--radius-sm);
  font-family: var(--display); font-weight: 700; font-size: 15px; white-space: nowrap;
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.15s ease,
    box-shadow 0.18s ease, color 0.18s ease;
}
.btn:active { transform: translateY(1px); }
.btn svg { fill: none; stroke: currentColor; stroke-width: 1.9; }
.btn--primary svg[data-fill], .btn svg.is-filled { fill: currentColor; stroke: none; }

.btn--primary { background: var(--btn); color: #fff; box-shadow: var(--shadow-1); }
.btn--primary:hover { background: var(--btn-hover); box-shadow: var(--shadow-2); }

.btn--soft {
  background: var(--surface); color: var(--ink); border-color: var(--line-strong);
  box-shadow: var(--shadow-1);
}
.btn--soft:hover { background: var(--bg-soft); border-color: var(--ink-3); }

.btn--accent { background: var(--accent); color: #fff; }
.btn--accent:hover { background: var(--accent-2); }

.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn--ghost:hover { background: var(--bg-soft); }

.btn--lg { padding: 15px 28px; font-size: 16px; border-radius: 14px; }
.btn--sm { padding: 9px 15px; font-size: 14px; }
.btn--block { width: 100%; }

.link {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--display); font-weight: 700; font-size: 14px; color: var(--accent);
}
.link svg { fill: none; stroke: currentColor; stroke-width: 2; transition: transform 0.18s ease; }
.link:hover svg { transform: translateX(3px); }

/* ------------------------------------------------------------------ бренд */

.brand { display: inline-flex; align-items: center; gap: 11px; }
/* печатка фонду; білий круг під нею — щоб не просвічував темний підвал */
.brand__logo { width: 48px; height: 48px; flex-shrink: 0; border-radius: 50%; background: #fff; }
.brand__text { display: grid; line-height: 1.2; white-space: nowrap; }
.brand__name { font-family: var(--display); font-weight: 800; font-size: 19px; color: var(--ink); letter-spacing: -0.01em; }
.brand__tagline { font-size: 12px; color: var(--ink-3); }

/* ------------------------------------------------------------------ шапка */

.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.header__inner { display: flex; align-items: center; gap: 18px; height: 72px; }

.nav { display: flex; gap: 2px; margin-left: 8px; }
.nav a {
  color: var(--ink-2); font-weight: 500; font-size: 14.5px; white-space: nowrap;
  padding: 8px 9px; border-radius: 9px; transition: background 0.16s ease, color 0.16s ease;
}
.nav a:hover { background: var(--bg-soft); color: var(--ink); }
.nav a.is-current { color: var(--ink); background: var(--bg-muted); }

.header__actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }

.lang { display: inline-flex; background: var(--bg-muted); border-radius: 10px; padding: 3px; }
.lang__btn {
  background: transparent; color: var(--ink-3); border: 0; padding: 6px 10px; border-radius: 8px;
  font-family: var(--display); font-weight: 700; font-size: 13px; letter-spacing: 0.02em;
  transition: background 0.16s ease, color 0.16s ease;
}
.lang__btn.is-active { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-1); }

.burger { display: none; background: transparent; border: 0; width: 40px; height: 40px; padding: 9px; }
.burger span { display: block; height: 2px; background: var(--ink); border-radius: 2px; transition: transform 0.25s ease, opacity 0.2s ease; }
.burger span + span { margin-top: 5px; }
.burger[aria-expanded='true'] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded='true'] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded='true'] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ------------------------------------------------------------------ секції */

.section { padding: 84px 0; }
.section--soft { background: var(--bg-soft); border-block: 1px solid var(--line); }
.section--tight { padding: 56px 0; }

/* justify-items: start — щоб плашка-кикер не розтягувалася на всю ширину */
.section-head { margin-bottom: 34px; display: grid; gap: 10px; justify-items: start; }
.section-head--center { text-align: center; max-width: 660px; margin-inline: auto; justify-items: center; }
.section-head--row { grid-template-columns: 1fr auto; align-items: end; }

.kicker {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--display); font-weight: 700; font-size: 12.5px; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--accent);
  background: var(--accent-soft); padding: 6px 12px; border-radius: var(--radius-pill);
}
.section-title { font-size: clamp(27px, 3.6vw, 40px); font-weight: 800; }
.section-lead { color: var(--ink-3); font-size: 17px; max-width: 62ch; }

/* ------------------------------------------------------------------- герой */

.hero { padding: 64px 0 72px; }
.hero__grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.hero__title {
  font-size: clamp(34px, 5vw, 56px); font-weight: 800; letter-spacing: -0.03em;
  margin: 18px 0 0;
}
.hero__lead { font-size: 18px; color: var(--ink-3); margin-top: 18px; max-width: 52ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero__trust { display: flex; flex-wrap: wrap; gap: 28px; margin-top: 36px; padding-top: 26px; border-top: 1px solid var(--line); }
.hero__trust div { display: grid; }
.hero__trust b { font-family: var(--display); font-size: 24px; color: var(--ink); font-variant-numeric: tabular-nums; }
.hero__trust span { font-size: 13.5px; color: var(--ink-3); }

.hero__media { position: relative; }
.hero__photo {
  aspect-ratio: 4 / 3; width: 100%; object-fit: cover; object-position: center 40%;
  border-radius: var(--radius-lg); box-shadow: var(--shadow-3);
}
.hero__badge {
  position: absolute; left: -26px; bottom: -26px; width: min(310px, 82%);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 20px; box-shadow: var(--shadow-3);
}
.hero__badge-title { font-family: var(--display); font-weight: 700; font-size: 14px; color: var(--ink); margin-bottom: 10px; }

/* --------------------------------------------------------- картка проєкту */

.grid-cards {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: var(--gap);
}

.pcard {
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-1);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}
.pcard:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); border-color: var(--line-strong); }

.pcard__media { position: relative; display: block; background: var(--bg-muted); }
.pcard__media img { aspect-ratio: 16 / 10; width: 100%; object-fit: cover; }
.pcard__cat {
  position: absolute; left: 12px; top: 12px;
  background: rgba(255, 255, 255, 0.94); backdrop-filter: blur(6px);
  color: var(--ink); font-family: var(--display); font-weight: 700; font-size: 12px;
  padding: 6px 11px; border-radius: var(--radius-pill); box-shadow: var(--shadow-1);
}

.pcard__body { display: flex; flex-direction: column; gap: 10px; padding: 20px 20px 22px; flex: 1; }
.pcard__title { font-size: 20px; font-weight: 800; }
.pcard__title a:hover { color: var(--accent); }
.pcard__text { color: var(--ink-3); font-size: 14.5px; flex: 1; }
.pcard__actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 4px; }

/* ------------------------------------------------------------- збір коштів */

.fund { display: grid; gap: 8px; }
.fund__head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.fund__raised { font-family: var(--display); font-weight: 800; font-size: 19px; color: var(--ink); font-variant-numeric: tabular-nums; }
.fund__goal { font-size: 13.5px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.fund__bar { height: 8px; background: var(--bg-muted); border-radius: var(--radius-pill); overflow: hidden; }
.fund__bar span {
  display: block; height: 100%; width: 0; border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), #17937a);
  transition: width 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.fund__foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 12.5px; color: var(--ink-3); }
.fund__pct { font-family: var(--display); font-weight: 700; color: var(--accent); }
.fund__src { display: inline-flex; align-items: center; gap: 6px; }
.fund__src.is-live::before {
  content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft); animation: pulse 2.2s ease-in-out infinite;
}
@keyframes pulse { 50% { opacity: 0.45; } }

.fund--lg .fund__raised { font-size: 27px; }
.fund--lg .fund__bar { height: 10px; }

/* --------------------------------------------------------------- категорії */

.ctiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(205px, 1fr)); gap: 14px; }
.ctile {
  display: flex; align-items: center; gap: 14px; padding: 16px 18px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}
.ctile:hover { border-color: var(--accent); box-shadow: var(--shadow-2); transform: translateY(-2px); }
.ctile__ic {
  display: grid; place-items: center; width: 44px; height: 44px; flex-shrink: 0;
  border-radius: 13px; background: var(--accent-soft); color: var(--accent);
}
.ctile__ic svg { fill: none; stroke: currentColor; stroke-width: 1.8; }
.ctile__body { display: grid; flex: 1; }
.ctile__name { font-family: var(--display); font-weight: 700; color: var(--ink); font-size: 15px; }
.ctile__count { font-size: 13px; color: var(--ink-3); }
.ctile > svg:last-child { fill: none; stroke: var(--ink-3); stroke-width: 2; transition: transform 0.18s ease; }
.ctile:hover > svg:last-child { transform: translateX(3px); stroke: var(--accent); }

/* чіпси-фільтри */
.chips { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 28px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--surface); border: 1px solid var(--line-strong); color: var(--ink-2);
  border-radius: var(--radius-pill); padding: 9px 15px;
  font-family: var(--display); font-weight: 600; font-size: 14px;
  transition: background 0.16s ease, color 0.16s ease, border-color 0.16s ease;
}
.chip:hover { border-color: var(--ink-3); }
.chip__count { font-size: 12px; color: var(--ink-3); background: var(--bg-muted); border-radius: var(--radius-pill); padding: 1px 7px; }
.chip.is-active { background: var(--btn); border-color: var(--btn); color: #fff; }
.chip.is-active .chip__count { background: rgba(255, 255, 255, 0.18); color: #fff; }

/* ---------------------------------------------------------------- цифри */

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stat {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 22px; text-align: center; box-shadow: var(--shadow-1);
}
.stat__num {
  font-family: var(--display); font-weight: 800; font-size: clamp(28px, 3.4vw, 40px);
  color: var(--ink); font-variant-numeric: tabular-nums; letter-spacing: -0.02em;
}
.stat__label { color: var(--ink-3); font-size: 14px; margin-top: 4px; }
.note { text-align: center; color: var(--ink-3); font-size: 13px; margin-top: 18px; }

/* ---------------------------------------------------------------- про фонд */

.about__grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 56px; align-items: center; }
.about__photo { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-lg); box-shadow: var(--shadow-2); }
.about__text { color: var(--ink-2); margin: 16px 0 22px; font-size: 16.5px; }
.about__values { list-style: none; margin: 0 0 26px; padding: 0; display: grid; gap: 12px; }
.about__values li { display: flex; align-items: flex-start; gap: 12px; }
.about__values svg { flex-shrink: 0; margin-top: 3px; fill: none; stroke: var(--accent); stroke-width: 2.2; }

/* ------------------------------------------------------------------ донат */

.methods { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 26px; }
.method {
  display: flex; align-items: center; gap: 14px; padding: 18px 20px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-1);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}
.method:hover { transform: translateY(-2px); border-color: var(--accent); box-shadow: var(--shadow-2); }
.method__ic {
  display: grid; place-items: center; width: 46px; height: 46px; flex-shrink: 0;
  border-radius: 13px; background: var(--accent-soft); color: var(--accent);
}
.method__ic svg { fill: none; stroke: currentColor; stroke-width: 1.8; }
.method__body { display: grid; }
.method__title { font-family: var(--display); font-weight: 700; color: var(--ink); }
.method__sub { color: var(--ink-3); font-size: 13px; }

/* --------------------------------------------------------------- реквізити */

.reqs {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 28px; box-shadow: var(--shadow-2); scroll-margin-top: 96px;
}
.reqs__head {
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  padding-bottom: 20px; margin-bottom: 20px; border-bottom: 1px solid var(--line);
}
.reqs__title { font-size: 20px; font-weight: 800; }
.reqs__sub { color: var(--ink-3); font-size: 14px; margin-top: 4px; }
.reqs__links { display: flex; flex-wrap: wrap; gap: 10px; }

.reqs__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(198px, 1fr)); gap: 14px; }
.req {
  display: grid; gap: 6px; align-content: start;
  background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 14px 16px;
}
.req__label { font-size: 11.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); font-weight: 600; }
.req__value {
  font-family: var(--display); font-weight: 700; color: var(--ink); font-size: 15.5px;
  font-variant-numeric: tabular-nums; word-break: break-word; line-height: 1.4;
}
.req__copy {
  justify-self: start; display: inline-flex; align-items: center; gap: 6px; margin-top: 4px;
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: 9px;
  padding: 6px 11px; font-size: 13px; font-weight: 600; color: var(--ink-2);
  transition: border-color 0.16s ease, color 0.16s ease, background 0.16s ease;
}
.req__copy svg { fill: none; stroke: currentColor; stroke-width: 1.8; }
.req__copy:hover { border-color: var(--accent); color: var(--accent); }
.req__copy.is-copied { background: var(--accent); border-color: var(--accent); color: #fff; }

/* реквізити всередині сайдбару — компактніше */
.aside .reqs { padding: 20px; border-radius: var(--radius); box-shadow: none; }
.aside .reqs__grid { grid-template-columns: 1fr; gap: 10px; }
.aside .reqs__head { display: block; padding-bottom: 14px; margin-bottom: 14px; }

/* реквізити в тексті проєкту — без тіні, щоб не сперечались із сайдбаром */
.article .reqs { padding: 24px; border-radius: var(--radius); box-shadow: none; }

/* ------------------------------------------------------------- долучитися */

.cards3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.icard {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 24px; box-shadow: var(--shadow-1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.icard:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); }
.icard__ic {
  display: grid; place-items: center; width: 50px; height: 50px; margin-bottom: 16px;
  border-radius: 14px; background: var(--accent-soft); color: var(--accent);
}
.icard__ic svg { fill: none; stroke: currentColor; stroke-width: 1.8; }
.icard h3 { font-size: 18px; font-weight: 700; }
.icard p { color: var(--ink-3); font-size: 14.5px; margin: 8px 0 14px; }

/* ------------------------------------------------------------------ підвал */

.footer { background: var(--bg-soft); border-top: 1px solid var(--line); padding-top: 56px; }
.footer__grid { display: grid; grid-template-columns: 1.7fr 1fr 1fr 1.5fr; gap: 34px; padding-bottom: 42px; }
.footer__about { color: var(--ink-3); font-size: 14px; margin: 16px 0 18px; max-width: 32ch; }
.social { display: flex; gap: 8px; }
.social a {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 11px;
  background: var(--surface); border: 1px solid var(--line); color: var(--ink-2);
  transition: color 0.16s ease, border-color 0.16s ease;
}
.social a svg { fill: none; stroke: currentColor; stroke-width: 1.8; }
.social a:hover { color: var(--accent); border-color: var(--accent); }
.footer__col { display: grid; gap: 9px; align-content: start; }
.footer__col h4 { font-size: 12.5px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-3); margin-bottom: 6px; }
.footer__col a, .footer__col span { color: var(--ink-2); font-size: 14.5px; }
.footer__col a:hover { color: var(--accent); }
.news { display: flex; gap: 8px; }
.news input {
  flex: 1; min-width: 0; background: var(--surface); border: 1px solid var(--line-strong);
  color: var(--ink); border-radius: 10px; padding: 11px 14px; outline: none;
  transition: border-color 0.16s ease;
}
.news input:focus { border-color: var(--accent); }
.news__msg { color: var(--accent); font-size: 14px; margin-top: 8px; }
.footer__bottom { border-top: 1px solid var(--line); padding: 20px 0; }
.footer__bottom-inner { display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; color: var(--ink-3); font-size: 13.5px; }
.footer__bottom-inner a:hover { color: var(--accent); }
.footer__credits { font-size: 12.5px; color: var(--ink-3); }
.footer__credits a { text-decoration: underline; text-underline-offset: 2px; }

/* ------------------------------------------------------------ підсторінки */

.subpage { padding: 44px 0 72px; }
.crumbs { display: flex; align-items: center; gap: 8px; color: var(--ink-3); font-size: 13.5px; padding: 22px 0 0; }
.crumbs a:hover { color: var(--accent); }

.phero { padding: 26px 0 8px; }
.phero__grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 44px; align-items: center; }
.phero__title { font-size: clamp(30px, 4.4vw, 46px); font-weight: 800; margin-top: 14px; }
.phero__lead { color: var(--ink-3); font-size: 17.5px; margin-top: 16px; }
.phero__photo { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-lg); box-shadow: var(--shadow-3); }

.layout { display: grid; grid-template-columns: minmax(0, 1fr) 350px; gap: 44px; padding: 46px 0 70px; align-items: start; }
.article { display: grid; gap: 30px; }
.article h2 { font-size: 22px; margin-bottom: 8px; }
.article p { color: var(--ink-2); }

.pstat { display: flex; flex-wrap: wrap; gap: 34px; padding: 20px 24px; background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius); }
.pstat b { display: block; font-family: var(--display); font-weight: 800; font-size: 28px; color: var(--ink); }
.pstat span { color: var(--ink-3); font-size: 13.5px; }

/* фото та відео проєкту */
.media { display: grid; gap: 16px; }
.media__frame {
  position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); background: var(--bg-muted);
}
.media__frame--ig { aspect-ratio: 4 / 5; max-height: 720px; }
.media__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.media__video { width: 100%; border-radius: var(--radius); border: 1px solid var(--line); background: #000; }

.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
.gallery__item {
  display: block; overflow: hidden; border-radius: var(--radius-sm); border: 1px solid var(--line);
  background: var(--bg-muted);
}
.gallery__item img {
  aspect-ratio: 1 / 1; width: 100%; object-fit: cover;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.gallery__item:hover img { transform: scale(1.05); }

.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; color: var(--ink-2); }
.checklist svg { flex-shrink: 0; margin-top: 3px; fill: none; stroke: var(--accent); stroke-width: 2.2; }

.aside { display: grid; gap: 16px; position: sticky; top: 92px; }
.support {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 24px; box-shadow: var(--shadow-2); display: grid; gap: 14px; scroll-margin-top: 96px;
}
.support h3 { font-size: 18px; }
.support p { color: var(--ink-3); font-size: 14px; }
.support__actions { display: grid; gap: 9px; }
.support__hint { font-size: 12.5px; color: var(--ink-3); text-align: center; }

.empty, .notfound { text-align: center; color: var(--ink-3); padding: 60px 0; display: grid; gap: 14px; justify-items: center; }

/* -------------------------------------------------------------- звітність */

.rfilters { display: grid; gap: 10px; margin: 26px 0 22px; }
.rfilters .chips { margin: 0; }

.rtable {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-1);
}
.rrow {
  display: grid; grid-template-columns: 104px minmax(0, 1fr) 132px 128px 132px;
  gap: 14px; align-items: center; padding: 14px 18px;
  border-top: 1px solid var(--line); font-size: 14.5px;
}
.rrow:first-child { border-top: 0; }
.rrow--head {
  background: var(--bg-soft); font-family: var(--display); font-weight: 700;
  font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3);
}
.rrow__date { color: var(--ink-3); font-variant-numeric: tabular-nums; white-space: nowrap; }
.rrow__title { display: flex; gap: 10px; align-items: flex-start; color: var(--ink); font-weight: 500; }
.rrow__ic {
  display: grid; place-items: center; width: 28px; height: 28px; flex-shrink: 0;
  border-radius: 8px; background: var(--bg-muted); color: var(--ink-3);
}
.rrow__ic svg { fill: none; stroke: currentColor; stroke-width: 1.7; }
.rrow__note { display: block; font-style: normal; font-size: 12.5px; color: var(--ink-3); }
.rrow__sum { font-family: var(--display); font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.rrow__file {
  display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600;
  color: var(--accent); border: 1px solid var(--line-strong); border-radius: 9px; padding: 6px 11px;
  transition: border-color 0.16s ease, background 0.16s ease;
}
.rrow__file svg { fill: none; stroke: currentColor; stroke-width: 1.8; }
.rrow__file:hover { border-color: var(--accent); background: var(--accent-soft); }
.rrow__file--empty { color: var(--ink-3); border-style: dashed; pointer-events: none; }

.tag {
  display: inline-block; padding: 4px 10px; border-radius: var(--radius-pill);
  font-size: 12px; font-weight: 600; background: var(--bg-muted); color: var(--ink-2); white-space: nowrap;
}
.tag--income { background: var(--accent-soft); color: var(--accent-2); }
.tag--purchase { background: #eef2f7; color: #3c5570; }
.tag--transfer { background: #fdf3e7; color: #8a4b09; }
.tag--act { background: #f2eefb; color: #59459b; }

.reports { display: grid; gap: 14px; }
.reports__lead { color: var(--ink-3); font-size: 14.5px; margin-top: -4px; }
.reports__total {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 18px; background: var(--bg-soft); border: 1px solid var(--line);
  border-radius: var(--radius-sm); font-size: 14.5px;
}
.reports__total b { font-family: var(--display); color: var(--ink); }

/* розподіл витрат */
.bars { display: grid; gap: 14px; }
.bar {
  display: grid; gap: 8px; padding: 16px 18px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.bar:hover { border-color: var(--accent); box-shadow: var(--shadow-1); }
.bar__head { display: flex; justify-content: space-between; gap: 14px; align-items: baseline; }
.bar__name { font-family: var(--display); font-weight: 700; color: var(--ink); font-size: 15px; }
.bar__value { font-variant-numeric: tabular-nums; color: var(--ink-2); font-weight: 600; }
.bar__track { display: block; height: 8px; background: var(--bg-muted); border-radius: var(--radius-pill); overflow: hidden; }
.bar__track span {
  display: block; height: 100%; border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), #17937a);
}

/* періодичні звіти */
.rfiles { display: grid; gap: 12px; }
.rfile {
  display: flex; align-items: center; gap: 16px; padding: 18px 20px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-1);
}
.rfile__ic {
  display: grid; place-items: center; width: 46px; height: 46px; flex-shrink: 0;
  border-radius: 13px; background: var(--accent-soft); color: var(--accent);
}
.rfile__ic svg { fill: none; stroke: currentColor; stroke-width: 1.7; }
.rfile__body { flex: 1; min-width: 0; }
.rfile__body h3 { font-size: 16px; }
.rfile__meta { font-size: 13px; color: var(--ink-3); margin-top: 3px; }
.rfile__note { font-size: 13px; color: var(--ink-3); margin-top: 4px; }
.rfile__soon { font-size: 13px; color: var(--ink-3); white-space: nowrap; }

/* дата на картці новини */
.pcard__date {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12.5px; color: var(--ink-3); font-weight: 600;
}
.pcard__date svg { fill: none; stroke: currentColor; stroke-width: 1.8; }

@media (max-width: 860px) {
  .rrow { grid-template-columns: 1fr auto; gap: 8px 12px; padding: 14px 16px; }
  .rrow--head { display: none; }
  .rrow__date { order: 1; }
  .rrow__type { order: 2; justify-self: end; }
  .rrow__title { order: 3; grid-column: 1 / -1; }
  .rrow__sum { order: 4; }
  .rrow__act { order: 5; justify-self: end; }
  .rfile { flex-wrap: wrap; }
}

/* --------------------------------------------------------------- адмінка */

.admin { padding: 40px 0 80px; }

.tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--line); margin-bottom: 26px; flex-wrap: wrap; }
.tab {
  background: transparent; border: 0; border-bottom: 2px solid transparent;
  padding: 11px 16px; margin-bottom: -1px; color: var(--ink-3);
  font-family: var(--display); font-weight: 700; font-size: 15px;
  transition: color 0.16s ease, border-color 0.16s ease;
}
.tab:hover { color: var(--ink); }
.tab.is-active { color: var(--ink); border-bottom-color: var(--accent); }
.tabpane { display: none; }
.tabpane.is-active { display: block; }

.panel__title-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* завантажений документ у формі */
.upload {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 12px 14px; background: var(--accent-soft); border-radius: var(--radius-sm);
}
.upload[hidden] { display: none; }
.upload__name {
  flex: 1; min-width: 0; font-size: 13.5px; font-weight: 600; color: var(--accent-2);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.admin__grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 34px; align-items: start; }
.panel {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 26px; box-shadow: var(--shadow-1);
}
.panel + .panel { margin-top: 18px; }
.panel h2 { font-size: 19px; margin-bottom: 4px; }
.panel__sub { color: var(--ink-3); font-size: 14px; margin-bottom: 20px; }

.form { display: grid; gap: 16px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: grid; gap: 6px; }
.field > label { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.field small { color: var(--ink-3); font-size: 12px; }
.field input, .field select, .field textarea {
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: 10px;
  padding: 11px 13px; color: var(--ink); font: inherit; font-size: 14.5px; outline: none;
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
  width: 100%;
}
.field textarea { min-height: 90px; resize: vertical; line-height: 1.55; }
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft);
}
.field--check { display: flex; align-items: center; gap: 10px; }
.field--check input { width: 18px; height: 18px; accent-color: var(--accent); }

.fieldset { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; display: grid; gap: 14px; }
.fieldset legend { font-family: var(--display); font-weight: 700; font-size: 14px; color: var(--ink); padding: 0 8px; }

.form__actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.form__msg { font-size: 14px; color: var(--accent); font-weight: 600; }

.plist { display: grid; gap: 10px; }
.pitem {
  display: flex; align-items: center; gap: 12px; padding: 11px 12px;
  background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius-sm);
}
.pitem img { width: 52px; height: 40px; object-fit: cover; border-radius: 8px; flex-shrink: 0; }
.pitem__body { display: grid; flex: 1; min-width: 0; }
.pitem__title { font-family: var(--display); font-weight: 700; font-size: 14.5px; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pitem__meta { font-size: 12.5px; color: var(--ink-3); }
.pitem__del {
  background: transparent; border: 1px solid var(--line-strong); border-radius: 8px;
  padding: 6px 10px; font-size: 13px; color: var(--ink-3);
}
.pitem__del:hover { border-color: #c0392b; color: #c0392b; }

.code {
  background: #0f1620; color: #d7e0ea; border-radius: var(--radius-sm); padding: 16px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12.5px;
  line-height: 1.55; max-height: 320px; overflow: auto; white-space: pre; margin: 0;
}

.callout {
  display: flex; gap: 12px; padding: 14px 16px; border-radius: var(--radius-sm);
  background: var(--accent-soft); color: var(--accent-2); font-size: 14px;
}
.callout svg { flex-shrink: 0; margin-top: 2px; fill: none; stroke: currentColor; stroke-width: 1.9; }
.callout--warn { background: #fdf3e7; color: #8a4b09; }

/* ------------------------------------------------- перегляд фото та PDF */

.viewer {
  position: fixed; inset: 0; z-index: 200;
  display: flex; flex-direction: column;
  background: rgba(10, 15, 23, 0.92); backdrop-filter: blur(6px);
}
.viewer[hidden] { display: none; }
.viewer__bar {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 12px 16px; color: #fff; border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}
.viewer__title { font-family: var(--display); font-weight: 700; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.viewer__tools { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.viewer__zoom { font-size: 13px; color: rgba(255, 255, 255, 0.7); min-width: 46px; text-align: center; font-variant-numeric: tabular-nums; }
.viewer__btn {
  display: grid; place-items: center; width: 36px; height: 36px;
  background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 10px; color: #fff; font-size: 16px; line-height: 1; text-decoration: none;
  transition: background 0.16s ease;
}
.viewer__btn:hover { background: rgba(255, 255, 255, 0.2); }
.viewer__btn--close { background: rgba(255, 255, 255, 0.16); }
.viewer__stage {
  flex: 1; min-height: 0; display: grid; place-items: center; overflow: hidden; padding: 18px;
}
.viewer__img {
  max-width: 100%; max-height: 100%; border-radius: 10px; user-select: none;
  transition: transform 0.18s ease; touch-action: none; background: #fff;
}
.viewer__frame { width: 100%; height: 100%; border: 0; border-radius: 10px; background: #fff; }

@media (max-width: 560px) {
  .viewer__title { display: none; }
  .viewer__tools { width: 100%; justify-content: space-between; }
}

/* --------------------------------------------------------- поява при скролі */

[data-reveal] { opacity: 0; transform: translateY(16px); transition: opacity 0.6s ease, transform 0.6s ease; }
[data-reveal].is-in { opacity: 1; transform: none; }

/* ------------------------------------------------------------------ адаптив */

@media (max-width: 1000px) {
  .hero__grid, .about__grid, .phero__grid { grid-template-columns: 1fr; gap: 34px; }
  .hero__badge { position: static; width: 100%; margin-top: 16px; }
  .hero__media { order: -1; }
  .layout, .admin__grid { grid-template-columns: 1fr; gap: 30px; }
  .aside { position: static; }
  .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer__brand { grid-column: 1 / -1; }
}

/* Меню ховається у бургер раніше, ніж шапка встигне стати тісною. */
@media (max-width: 1220px) {
  .nav {
    position: fixed; inset: 72px 0 auto 0; flex-direction: column; gap: 0; margin: 0; padding: 8px;
    background: var(--surface); border-bottom: 1px solid var(--line); box-shadow: var(--shadow-2);
    transform: translateY(-130%); transition: transform 0.28s ease; z-index: 40;
  }
  .nav.is-open { transform: translateY(0); }
  .nav a { padding: 13px 16px; border-radius: 10px; font-size: 16px; }
  .burger { display: block; }
}

@media (max-width: 780px) {
  .section { padding: 60px 0; }
  .hero { padding: 40px 0 52px; }
  .header__inner { gap: 10px; }
  .header .btn--primary span, .header .btn--soft span { display: none; }
  .header .btn--primary, .header .btn--soft { padding: 11px; }

  .stats { grid-template-columns: repeat(2, 1fr); }
  .methods, .cards3 { grid-template-columns: 1fr; }
  .section-head--row { grid-template-columns: 1fr; }
  .form__row { grid-template-columns: 1fr; }
  .reqs { padding: 20px; }
  .footer__grid { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .footer__news { max-width: 340px; }
}

@media (max-width: 460px) {
  .stats { grid-template-columns: 1fr; }
  .grid-cards { grid-template-columns: 1fr; }
  .hero__trust { gap: 18px; }
}

/* ======================================================================
   Хендмейд-магазин, онлайн-оплата LiqPay, юридичні сторінки
   ====================================================================== */

:root {
  /* теплий акцент магазину — відрізняє його від «благодійного» зеленого */
  --shop: #b4532a;
  --shop-ink: #9a431f;
  --shop-soft: #fdf1ea;
  --shop-soft-2: #fbe4d6;
  --shop-line: #f2cdb8;
  --danger: #b42318;
  --danger-soft: #fdecea;
}

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.is-locked, .is-locked body { overflow: hidden; }
.section-title--sm { font-size: 24px; }
.subpage--flush { padding-top: 0; }

/* ------------------------------------------- пункт меню «Хендмейд-магазин» */

.nav a.nav__shop {
  display: inline-flex; align-items: center; gap: 7px; margin-left: 6px;
  color: var(--shop-ink); background: var(--shop-soft);
  box-shadow: inset 0 0 0 1px var(--shop-line); font-weight: 600;
}
.nav a.nav__shop svg { fill: none; stroke: currentColor; flex-shrink: 0; }
.nav a.nav__shop:hover { background: var(--shop-soft-2); color: var(--shop-ink); }
.nav a.nav__shop.is-current { background: var(--shop); color: #fff; box-shadow: none; }

/* кнопка кошика в шапці */
.cartbtn {
  position: relative; display: grid; place-items: center; width: 44px; height: 44px; flex-shrink: 0;
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  color: var(--ink); transition: border-color 0.16s ease, background 0.16s ease;
}
.cartbtn:hover { border-color: var(--ink-3); background: var(--bg-soft); }
.cartbtn svg { fill: none; stroke: currentColor; }
.cartbtn__count {
  position: absolute; top: -7px; right: -7px; min-width: 21px; height: 21px; padding: 0 6px;
  display: grid; place-items: center; border-radius: var(--radius-pill);
  background: var(--shop); color: #fff; font-family: var(--display); font-weight: 800; font-size: 11.5px;
  box-shadow: 0 0 0 2px #fff;
}
.cartbtn__count[hidden] { display: none; }

/* --------------------------------------------------------- форма донату */

.dform { display: grid; gap: 12px; }
.dform[hidden], #donate-online[hidden] { display: none; }
.dform--wide {
  max-width: 760px; margin: 0 auto 26px; padding: 26px 28px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-2);
}
.dform__title { font-size: 20px; font-weight: 800; }
.dform__lead { color: var(--ink-3); font-size: 14.5px; margin-top: -4px; }
.dform__amounts { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.aside .dform__amounts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.amount {
  padding: 10px 6px; border: 1px solid var(--line-strong); border-radius: 11px; background: var(--surface);
  font-family: var(--display); font-weight: 700; font-size: 14.5px; color: var(--ink);
  font-variant-numeric: tabular-nums; white-space: nowrap;
  transition: border-color 0.16s ease, background 0.16s ease, color 0.16s ease;
}
.amount:hover { border-color: var(--ink-3); }
.amount.is-active { background: var(--accent-soft); border-color: var(--accent); color: var(--accent-2); }
.dform__custom {
  display: flex; align-items: center; gap: 8px; padding: 0 14px;
  border: 1px solid var(--line-strong); border-radius: 11px; background: var(--surface);
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}
.dform__custom:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.dform__custom input {
  flex: 1; min-width: 0; border: 0; outline: none; background: transparent; padding: 12px 0;
  font: inherit; font-family: var(--display); font-weight: 700; font-size: 16px; color: var(--ink);
}
.dform__custom > span:last-child { color: var(--ink-3); font-weight: 600; }
.dform__submit b { font-variant-numeric: tabular-nums; }
.dform__submit svg { fill: currentColor; stroke: none; }
.dform__submit:disabled { opacity: 0.7; cursor: progress; }
.dform__msg { font-size: 13.5px; color: var(--accent-2); font-weight: 600; }
.dform__msg.is-error { color: var(--danger); }
.dform__msg[hidden] { display: none; }
.dform__note { display: flex; gap: 8px; font-size: 12.5px; color: var(--ink-3); line-height: 1.5; }
.dform__note svg { flex-shrink: 0; margin-top: 2px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.dform__note a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }

/* ------------------------------------------------------------- магазин */

.shophero {
  padding: 48px 0 40px;
  background: linear-gradient(180deg, var(--shop-soft) 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--line);
}
.shophero__inner { display: grid; grid-template-columns: 1.2fr 1fr; gap: 44px; align-items: center; }
.shophero .kicker { color: var(--shop-ink); background: #fff; box-shadow: inset 0 0 0 1px var(--shop-line); }
.shophero .kicker svg { fill: none; stroke: currentColor; }
.shophero .section-title { margin-top: 14px; }
.shophero .section-lead { margin-top: 12px; }

.perks { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.perks li {
  display: flex; gap: 14px; align-items: flex-start; padding: 14px 16px;
  background: rgba(255, 255, 255, 0.8); border: 1px solid var(--line); border-radius: var(--radius);
}
.perks svg { flex-shrink: 0; margin-top: 2px; fill: none; stroke: var(--shop); stroke-width: 1.8; }
.perks div { display: grid; }
.perks b { font-family: var(--display); color: var(--ink); font-size: 15px; }
.perks span { color: var(--ink-3); font-size: 13.5px; }

.shopbar { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; padding: 28px 0 24px; }
.shopbar .chips { margin: 0; }
.select select {
  appearance: none; -webkit-appearance: none;
  background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23737d8b' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 14px center;
  border: 1px solid var(--line-strong); border-radius: var(--radius-pill); padding: 9px 38px 9px 16px;
  font: inherit; font-family: var(--display); font-weight: 600; font-size: 14px; color: var(--ink-2); cursor: pointer;
}
.select select:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.grid-shop { display: grid; grid-template-columns: repeat(auto-fill, minmax(236px, 1fr)); gap: 20px; }

.scard {
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-1);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}
.scard:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); border-color: var(--line-strong); }
.scard__media { position: relative; display: block; background: var(--shop-soft); }
.scard__media img, .scard__media .noimg { aspect-ratio: 1 / 1; width: 100%; object-fit: cover; }
.scard__media .badge { position: absolute; left: 10px; top: 10px; }
.scard__body { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px 16px; flex: 1; }
.scard__cat { font-size: 11.5px; font-weight: 600; color: var(--shop-ink); text-transform: uppercase; letter-spacing: 0.06em; }
.scard__title { font-size: 16.5px; font-weight: 800; line-height: 1.25; }
.scard__title a:hover { color: var(--shop-ink); }
.scard__text { color: var(--ink-3); font-size: 13.5px; flex: 1; line-height: 1.5; }
.scard__foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 8px; }
.scard__foot .btn { padding: 8px 12px; }
.scard.is-sold .scard__media img, .scard.is-sold .scard__media .noimg { filter: grayscale(0.7); opacity: 0.75; }
.btn.is-added { background: var(--accent); }

.noimg {
  display: grid; place-items: center; color: var(--shop);
  background: radial-gradient(120% 90% at 30% 20%, #fff7f1 0%, var(--shop-soft-2) 100%);
}
.noimg svg { fill: none; stroke: currentColor; stroke-width: 1.3; opacity: 0.75; }

.badge {
  display: inline-flex; align-items: center; padding: 4px 10px; border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.95); color: var(--ink); box-shadow: var(--shadow-1);
  font-family: var(--display); font-weight: 700; font-size: 12px; white-space: nowrap;
}
.badge--warm { background: var(--shop); color: #fff; }
.badge--muted { background: var(--ink); color: #fff; }

.price { display: inline-flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.price b { font-family: var(--display); font-weight: 800; font-size: 18px; color: var(--ink); font-variant-numeric: tabular-nums; }
.price s { color: var(--ink-3); font-size: 13.5px; }

/* сторінка виробу */
.item { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 48px; padding: 26px 0 60px; align-items: start; }
.igallery { display: grid; gap: 12px; position: sticky; top: 92px; }
.igallery__main { display: block; overflow: hidden; border-radius: var(--radius-lg); border: 1px solid var(--line); background: var(--shop-soft); }
.igallery__main img, .igallery .noimg { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: var(--radius-lg); }
.igallery .noimg { display: grid; border: 1px solid var(--line); }
.igallery .noimg svg { width: 64px; height: 64px; }
.igallery__thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: 10px; }
.igallery__thumb { padding: 0; border: 2px solid transparent; border-radius: 12px; overflow: hidden; background: var(--bg-muted); }
.igallery__thumb img { aspect-ratio: 1 / 1; width: 100%; object-fit: cover; }
.igallery__thumb.is-active { border-color: var(--shop); }

.item__info { display: grid; gap: 16px; align-content: start; }
.item__info .kicker { justify-self: start; color: var(--shop-ink); background: var(--shop-soft); }
.item__title { font-size: clamp(28px, 3.6vw, 40px); font-weight: 800; }
.item__lead { color: var(--ink-3); font-size: 17px; }
.item__price { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.item__price .price b { font-size: 30px; }
.item__price .badge { box-shadow: inset 0 0 0 1px var(--line); }
.item__buy { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.item__buy .btn svg { fill: none; stroke: currentColor; }
.item__desc { color: var(--ink-2); white-space: pre-line; }
.item__perks { list-style: none; margin: 0; padding: 16px 0 0; border-top: 1px solid var(--line); display: grid; gap: 10px; }
.item__perks li { display: flex; gap: 10px; color: var(--ink-3); font-size: 14px; }
.item__perks svg { flex-shrink: 0; fill: none; stroke: var(--ink-3); stroke-width: 1.7; }

.stock { display: inline-flex; align-items: center; gap: 7px; font-size: 14px; font-weight: 600; color: var(--ink-2); }
.stock svg { fill: none; stroke: currentColor; stroke-width: 2; }
.stock--in { color: var(--accent); }
.stock--out { color: var(--ink-3); }

.supports {
  display: flex; gap: 10px; align-items: flex-start; padding: 13px 16px;
  background: var(--accent-soft); border-radius: var(--radius-sm); color: var(--accent-2); font-size: 14.5px;
}
.supports svg { flex-shrink: 0; margin-top: 3px; fill: currentColor; }
.supports a { font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }

.specs { display: grid; margin: 0; border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; }
.specs div { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 14px; padding: 11px 16px; border-top: 1px solid var(--line); }
.specs div:first-child { border-top: 0; }
.specs dt { color: var(--ink-3); font-size: 13.5px; }
.specs dd { margin: 0; color: var(--ink); font-size: 14.5px; }
.specs--stack div { grid-template-columns: 1fr; gap: 2px; }
.specs a { color: var(--accent); }

/* лічильник кількості */
.qty {
  display: inline-flex; align-items: center; border: 1px solid var(--line-strong); border-radius: 11px;
  background: var(--surface); overflow: hidden;
}
.qty button {
  display: grid; place-items: center; width: 34px; height: 34px; border: 0; background: transparent; color: var(--ink-2);
}
.qty button:hover:not(:disabled) { background: var(--bg-soft); }
.qty button:disabled { opacity: 0.35; cursor: not-allowed; }
.qty svg { fill: none; stroke: currentColor; }
.qty span, .qty input {
  min-width: 30px; text-align: center; font-family: var(--display); font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums;
}
.qty input { width: 46px; border: 0; outline: none; background: transparent; font-size: 16px; -moz-appearance: textfield; appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty--lg button { width: 44px; height: 50px; }

/* ------------------------------------------------------ кошик (панель) */

.drawer { position: fixed; inset: 0; z-index: 150; }
.drawer[hidden] { display: none; }
.drawer__backdrop { position: absolute; inset: 0; background: rgba(10, 15, 23, 0.45); opacity: 0; transition: opacity 0.22s ease; }
.drawer__panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(440px, 100%);
  display: flex; flex-direction: column; background: var(--surface); box-shadow: var(--shadow-3);
  transform: translateX(100%); transition: transform 0.26s cubic-bezier(0.22, 1, 0.36, 1);
}
.drawer.is-open .drawer__backdrop { opacity: 1; }
.drawer.is-open .drawer__panel { transform: none; }
.drawer__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.drawer__head h2 { font-size: 20px; }
.drawer__x { display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 10px; background: var(--bg-muted); color: var(--ink); }
.drawer__x:hover { background: var(--line); }
.drawer__x svg { fill: none; stroke: currentColor; }
.drawer__body { flex: 1; overflow: auto; padding: 16px 20px; overscroll-behavior: contain; }
.drawer__foot { display: grid; gap: 12px; padding: 16px 20px 20px; border-top: 1px solid var(--line); background: var(--bg-soft); }
.drawer__foot:empty { display: none; }
.drawer__foot .btn svg { fill: none; stroke: currentColor; }

.cart-empty { display: grid; gap: 14px; justify-items: center; text-align: center; padding: 50px 10px; color: var(--ink-3); }
.cart-empty svg { fill: none; stroke: currentColor; stroke-width: 1.4; }
.cart-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.cart-item { display: grid; grid-template-columns: 72px minmax(0, 1fr) auto; gap: 14px; align-items: start; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.cart-item__img { display: block; border-radius: 12px; overflow: hidden; background: var(--shop-soft); }
.cart-item__img img, .cart-item__img .noimg { width: 72px; height: 72px; object-fit: cover; }
.cart-item__img .noimg svg { width: 22px; height: 22px; }
.cart-item__body { display: grid; gap: 4px; justify-items: start; }
.cart-item__title { font-family: var(--display); font-weight: 700; color: var(--ink); font-size: 15px; line-height: 1.3; }
.cart-item__title:hover { color: var(--shop-ink); }
.cart-item__price { font-size: 13.5px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.cart-item__body .qty { margin-top: 4px; }
.cart-item__remove { display: grid; place-items: center; width: 34px; height: 34px; border: 0; border-radius: 9px; background: transparent; color: var(--ink-3); }
.cart-item__remove:hover { background: var(--danger-soft); color: var(--danger); }
.cart-item__remove svg { fill: none; stroke: currentColor; }
.cart-total { display: flex; align-items: baseline; justify-content: space-between; font-size: 15px; }
.cart-total b { font-family: var(--display); font-weight: 800; font-size: 22px; color: var(--ink); font-variant-numeric: tabular-nums; }

.checkout { display: grid; gap: 14px; }
.checkout__back { justify-self: start; background: none; border: 0; padding: 0; }
.checkout__note { display: flex; gap: 8px; font-size: 12.5px; color: var(--ink-3); line-height: 1.5; }
.checkout__note svg { flex-shrink: 0; margin-top: 2px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.checkout__note a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }

/* ------------------------------------------------ результат оплати */

.payres { max-width: 640px; margin: 20px auto 40px; text-align: center; display: grid; gap: 14px; justify-items: center; }
.payres__ic {
  display: grid; place-items: center; width: 72px; height: 72px; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent);
}
.payres__ic svg { fill: none; stroke: currentColor; stroke-width: 2; }
.payres--failed .payres__ic, .payres--reversed .payres__ic, .payres--unknown .payres__ic { background: var(--danger-soft); color: var(--danger); }
.payres--pending .payres__ic { background: var(--bg-muted); color: var(--ink-3); }
.payres__ic.is-spinning svg { animation: spin 1.2s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.payres__sum { font-family: var(--display); font-weight: 800; font-size: 30px; color: var(--ink); font-variant-numeric: tabular-nums; }
.payres__actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 8px; }
.payres .callout { text-align: left; }

/* ------------------------------------------------ юридичні сторінки */

.legal { max-width: 820px; display: grid; gap: 14px; justify-items: start; }
.crumbs--flat { padding: 0 0 6px; }
.legal__sub { font-size: 18px; color: var(--ink-2); font-family: var(--display); font-weight: 600; margin-top: -4px; }
.legal__lang { font-size: 13px; color: var(--ink-3); }
.legal__body { width: 100%; display: grid; gap: 12px; color: var(--ink-2); font-size: 15.5px; margin-top: 10px; }
.legal__body h2 { font-size: 21px; margin-top: 18px; scroll-margin-top: 96px; }
.legal__body ul, .legal__body ol { margin: 0; padding-left: 22px; display: grid; gap: 8px; }
.legal__body a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.legal__body b { color: var(--ink); }
.legal__note { font-style: italic; color: var(--ink-3); }
.legal__toc {
  display: grid; gap: 4px; padding: 16px 20px; margin-bottom: 6px;
  background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius);
}
.legal__body .legal__toc a { text-decoration: none; color: var(--ink-2); font-size: 14.5px; padding: 3px 0; }
.legal__body .legal__toc a:hover { color: var(--accent); }
.legal__req { margin: 6px 0 0; display: grid; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.legal__req div { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 16px; padding: 12px 18px; border-top: 1px solid var(--line); }
.legal__req div:first-child { border-top: 0; }
.legal__req dt { color: var(--ink-3); font-size: 14px; }
.legal__req dd { margin: 0; color: var(--ink); font-weight: 600; word-break: break-word; font-variant-numeric: tabular-nums; }

/* ---------------------------------------------------------- про нас */

.prose section { display: grid; gap: 12px; }
.prose p { color: var(--ink-2); font-size: 16px; }
.quote {
  padding: 22px 24px; border-radius: var(--radius); background: var(--accent-soft); color: var(--accent-2);
  font-size: 17px; line-height: 1.55; border-left: 4px solid var(--accent);
}
.quote b { font-family: var(--display); }
.why { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 12px; }
.why li { display: flex; gap: 14px; padding: 16px 18px; background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius); }
.why svg { flex-shrink: 0; fill: none; stroke: var(--accent); stroke-width: 1.7; }
.why div { display: grid; gap: 3px; }
.why b { font-family: var(--display); color: var(--ink); }
.why span { color: var(--ink-2); font-size: 15px; }
.aprojects { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.aproject {
  display: grid; gap: 8px; align-content: start; padding: 18px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}
.aproject:hover { border-color: var(--accent); box-shadow: var(--shadow-2); transform: translateY(-2px); }
.aproject__ic { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 13px; background: var(--accent-soft); color: var(--accent); }
.aproject__ic svg { fill: none; stroke: currentColor; stroke-width: 1.8; }
.aproject b { font-family: var(--display); color: var(--ink); font-size: 16px; line-height: 1.3; }
.aproject span:last-child { color: var(--ink-3); font-size: 14px; line-height: 1.5; }
.orgcard .specs { border: 0; border-radius: 0; }
.orgcard .specs div { padding: 10px 0; }
.orgcard .btn svg { fill: currentColor; stroke: none; }

/* ------------------------------------------------ підвал: логотипи оплати */

.paylogos { display: inline-flex; align-items: center; gap: 6px; }
.paylogos svg { border-radius: 5px; box-shadow: 0 0 0 1px var(--line); }
.footer__bottom-inner { align-items: center; }

/* ---------------------------------------------------------------- адаптив */

@media (max-width: 1000px) {
  .shophero__inner, .item { grid-template-columns: 1fr; gap: 28px; }
  .igallery { position: static; }
  .aprojects { grid-template-columns: 1fr; }
}
@media (max-width: 780px) {
  .dform__amounts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .dform--wide { padding: 20px; }
  .legal__req div, .specs div { grid-template-columns: 1fr; gap: 2px; }
  .grid-shop { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .scard__body { padding: 12px; }
  .scard__foot { flex-direction: column; align-items: stretch; }
  .scard__text { display: none; }
  .item__buy .btn { flex: 1; }
}
@media (max-width: 380px) {
  .grid-shop { grid-template-columns: 1fr; }
}
