  :root {
    color-scheme: light dark;
    --bg: #fffdf6;
    --bg-alt: #f5f1e4;
    --surface: #ffffff;
    --text: #1a2b1f;
    --muted: #56645a;
    --green: #11663a;
    --green-2: #1d8a4e;
    --lime: #b4e0a0;
    --lime-soft: #dff2d4;
    --orange: #f2a33a;
    --line: #e6e0cf;
    --shadow: 0 10px 30px rgba(17, 102, 58, .12);
    --radius: 20px;
  }
  @media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
      --bg: #101a13;
      --bg-alt: #15221a;
      --surface: #1b2a20;
      --text: #edf2ea;
      --muted: #a3b3a6;
      --green: #6fd394;
      --green-2: #52c07a;
      --lime: #9de3b0;
      --lime-soft: #20352a;
      --line: #2a3a2f;
      --shadow: 0 10px 30px rgba(0, 0, 0, .35);
    }
  }
  :root[data-theme="light"] { color-scheme: light; }
  :root[data-theme="dark"] {
    color-scheme: dark;
    --bg: #101a13;
    --bg-alt: #15221a;
    --surface: #1b2a20;
    --text: #edf2ea;
    --muted: #a3b3a6;
    --green: #6fd394;
    --green-2: #52c07a;
    --lime: #9de3b0;
    --lime-soft: #20352a;
    --line: #2a3a2f;
    --shadow: 0 10px 30px rgba(0, 0, 0, .35);
  }

  * { box-sizing: border-box; }
  @media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
  html { -webkit-tap-highlight-color: rgba(29, 138, 78, .15); }
  a, button, input, select, textarea, label, summary { touch-action: manipulation; }
  body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: "Nunito", system-ui, sans-serif;
    font-size: 17px;
    line-height: 1.6;
  }
  img { max-width: 100%; height: auto; display: block; }
  a { color: inherit; }

  .wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }
  section { padding: 88px 0; }
  .alt { background: var(--bg-alt); }

  h1, h2, h3 {
    font-family: "Oswald", sans-serif;
    text-transform: uppercase;
    line-height: 1.1;
    margin: 0 0 16px;
    letter-spacing: .01em;
    text-wrap: balance;
  }
  h2 { font-size: clamp(30px, 4.5vw, 46px); }
  h3 { font-size: 22px; }
  .hand { font-family: "Caveat", cursive; text-transform: none; font-weight: 700; }
  .eyebrow {
    display: inline-block;
    font-family: "Caveat", cursive;
    font-size: 26px;
    color: var(--green-2);
    margin-bottom: 6px;
  }
  .lead { font-size: 19px; color: var(--muted); max-width: 640px; }
  .section-head { margin-bottom: 44px; }
  .section-head.center { text-align: center; }
  .section-head.center .lead { margin-inline: auto; }

  /* Brush-stroke label like in the Instagram posts */
  .brush {
    display: inline-block;
    background: var(--green);
    color: #fff;
    padding: 4px 18px 6px;
    border-radius: 6px 18px 8px 22px / 18px 8px 20px 8px;
    transform: rotate(-1.5deg);
  }
  @media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .brush { color: #0f1f14; }
  }
  :root[data-theme="dark"] .brush { color: #0f1f14; }

  /* Buttons */
  .btn {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 14px 26px;
    border-radius: 999px;
    font-weight: 800;
    text-decoration: none;
    border: 2px solid var(--green);
    transition: transform .15s, background .15s, color .15s;
  }
  .btn:hover { transform: translateY(-2px); }
  .btn-primary { background: var(--green); color: #fff; }
  .btn-ghost { background: transparent; color: var(--green); }
  .btn-ghost:hover { background: var(--green); color: #fff; }
  @media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .btn-primary { color: #0f1f14; }
    :root:not([data-theme="light"]) .btn-ghost:hover { color: #0f1f14; }
  }
  :root[data-theme="dark"] .btn-primary,
  :root[data-theme="dark"] .btn-ghost:hover { color: #0f1f14; }
  .btn svg { width: 20px; height: 20px; flex: none; }

  /* Header */
  header {
    position: sticky; top: 0; z-index: 50;
    background: color-mix(in srgb, var(--bg) 88%, transparent);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
  }
  /* Header height for sticky things below it: top bar + main bar (top bar is hidden ≤900px) */
  :root { --top-h: 32px; --nav-h: 72px; --header-h: calc(var(--top-h) + var(--nav-h)); }
  @media (max-width: 900px) { :root { --top-h: 0px; } }
  .topbar { height: var(--top-h); border-bottom: 1px solid var(--line); font-size: 13px; color: var(--muted); }
  .topbar-in { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
  .slogan { margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .top-links { display: flex; align-items: center; gap: 20px; list-style: none; margin: 0; padding: 0; }
  .top-links a { color: inherit; text-decoration: none; font-weight: 700; white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; }
  .top-links a:hover, .top-links a[aria-current="page"] { color: var(--green); }
  .top-links a[aria-current="page"] { text-decoration: underline 2px var(--green-2); text-underline-offset: 5px; }
  .top-links svg { width: 14px; height: 14px; flex: none; }
  .top-phone { padding-left: 20px; border-left: 1px solid var(--line); }
  .nav { display: flex; align-items: center; height: var(--nav-h); gap: 20px; }
  .menu .m-only { display: none; }
  /* «Каталог» is a pill: outlined, filled on hover and on the catalog page */
  .menu .menu-catalog {
    display: inline-flex; align-items: center; gap: 8px; padding: 6px 16px; border: 2px solid var(--green-2);
    border-radius: 999px; color: var(--green); transition: background .15s, color .15s;
  }
  .menu .menu-catalog svg { width: 18px; height: 18px; flex: none; }
  .menu .menu-catalog:hover, .menu .menu-catalog[aria-current="page"] { background: var(--green-2); color: #fff; box-shadow: none; }
  @media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .menu .menu-catalog:hover,
    :root:not([data-theme="light"]) .menu .menu-catalog[aria-current="page"] { color: #0f1f14; }
  }
  :root[data-theme="dark"] .menu .menu-catalog:hover,
  :root[data-theme="dark"] .menu .menu-catalog[aria-current="page"] { color: #0f1f14; }
  .nav > .cart-btn, .nav > .btn { margin-left: auto; }
  .logo { display: flex; align-items: center; gap: 10px; text-decoration: none; flex-shrink: 0; }
  /* Wordmark from photo/logo2.jpg (2026-11-18): dark lettering on light, cream lettering on dark */
  .logo img { width: auto; height: 40px; }
  .logo .lg-dark { display: none; }
  @media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .logo .lg-light { display: none; }
    :root:not([data-theme="light"]) .logo .lg-dark { display: block; }
  }
  :root[data-theme="dark"] .logo .lg-light { display: none; }
  :root[data-theme="dark"] .logo .lg-dark { display: block; }
  @media (max-width: 520px) { .logo img { height: 32px; } }
  .logo span {
    font-family: "Oswald", sans-serif; font-weight: 700; font-size: 28px;
    letter-spacing: .04em; color: var(--text);
  }
  .menu { display: flex; align-items: center; gap: 26px; list-style: none; margin: 0 0 0 12px; padding: 0; }
  .menu a { text-decoration: none; font-weight: 700; color: var(--muted); white-space: nowrap; }
  .menu a:hover { color: var(--green); }
  .nav .cart-btn { flex-shrink: 0; }
  /* Mid widths: tighter menu and an icon-only header cart so the item names stay on one line */
  @media (max-width: 1000px) {
    .menu { gap: 18px; }
    .nav .cart-btn .t { display: none; }
  }
  .nav .btn { padding: 10px 20px; }
  .burger {
    display: none; background: none; border: 0; padding: 8px; cursor: pointer; color: var(--text);
  }
  .burger svg { width: 28px; height: 28px; }

  /* Hero */
  .hero { padding: 64px 0 88px; overflow: hidden; }
  .hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
  .hero h1 { font-size: clamp(40px, 6.4vw, 74px); }
  .hero h1 .hand { display: block; font-size: .72em; color: var(--green-2); margin-top: 6px; }
  .hero p { font-size: 19px; color: var(--muted); max-width: 520px; }
  .hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 28px 0 34px; }
  .badges { display: flex; flex-wrap: wrap; gap: 12px; }
  .badge {
    border: 2px solid var(--text);
    border-radius: 14px;
    padding: 6px 14px;
    line-height: 1.15;
    text-align: center;
  }
  .badge b { display: block; font-size: 20px; font-family: "Oswald", sans-serif; }
  .badge small { font-size: 13px; color: var(--muted); font-weight: 700; }
  .hero-img { position: relative; }
  .hero-img::before {
    content: ""; position: absolute; inset: -30px -60px -30px 40px;
    background: var(--lime); border-radius: 48% 52% 40% 60% / 55% 45% 55% 45%;
    z-index: -1; opacity: .85;
  }
  .hero-img img { border-radius: 28px; box-shadow: var(--shadow); aspect-ratio: 1 / 1; object-fit: cover; width: 100%; }
  .hero-note {
    position: absolute; left: -24px; bottom: 28px;
    background: var(--surface); padding: 12px 18px; border-radius: 16px; box-shadow: var(--shadow);
    font-family: "Caveat", cursive; font-size: 24px; line-height: 1.1; color: var(--green);
  }

  /* Products */
  .products { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 24px; }
  .card {
    background: var(--surface); border-radius: var(--radius); overflow: hidden;
    box-shadow: var(--shadow); display: flex; flex-direction: column;
    transition: transform .2s;
  }
  .card:hover { transform: translateY(-4px); }
  .card img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
  .card-body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
  .card h3 { margin: 0; font-size: 21px; }
  .card p { margin: 0; color: var(--muted); font-size: 16px; }
  .tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 8px; }
  .tag { background: var(--lime-soft); color: var(--green); font-size: 13px; font-weight: 800; padding: 3px 10px; border-radius: 999px; }
  .more {
    margin-top: 28px; text-align: center; color: var(--muted);
  }
  .more .hand { font-size: 26px; color: var(--green-2); }

  /* Benefits */
  .benefits { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
  .benefit {
    background: var(--lime-soft); border-radius: var(--radius); padding: 28px 24px;
  }
  .benefit .icon {
    width: 56px; height: 56px; border-radius: 50%; background: var(--lime);
    display: grid; place-items: center; margin-bottom: 16px; color: #11663a;
  }
  .benefit .icon svg { width: 28px; height: 28px; }
  .benefit h3 { font-size: 20px; }
  .benefit p { margin: 0; color: var(--muted); font-size: 16px; }
  .pairing {
    margin-top: 36px; display: flex; gap: 20px; align-items: center; justify-content: center; flex-wrap: wrap; text-align: center;
  }
  .pairing .hand { font-size: 30px; color: var(--green-2); }

  /* Split blocks */
  .split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
  .split img { border-radius: 24px; box-shadow: var(--shadow); width: 100%; height: auto; object-fit: cover; }
  .checks { list-style: none; padding: 0; margin: 24px 0 30px; display: grid; gap: 14px; }
  .checks li { display: flex; gap: 14px; align-items: flex-start; }
  .checks .dot {
    flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--lime);
    display: grid; place-items: center; color: #11663a;
  }
  .checks .dot svg { width: 18px; height: 18px; }
  .checks b { display: block; }
  .checks span { color: var(--muted); font-size: 16px; }

  /* B2B */
  .audience { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 56px; }
  .aud {
    background: var(--surface); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); text-align: center;
  }
  .aud .icon {
    width: 72px; height: 72px; margin: 0 auto 14px; border-radius: 50%; background: var(--lime-soft);
    display: grid; place-items: center; color: var(--green);
  }
  .aud .icon svg { width: 36px; height: 36px; }
  .aud p { margin: 0; color: var(--muted); }
  .sizes { display: flex; gap: 10px; flex-wrap: wrap; margin: 18px 0 0; }
  .size {
    font-family: "Oswald", sans-serif; font-size: 22px; font-weight: 600;
    background: var(--text); color: var(--bg); padding: 6px 16px; border-radius: 10px;
  }

  /* Where to buy */
  .stores { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .region { background: var(--surface); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
  .region h3 { margin-bottom: 20px; }
  .store-group { margin-bottom: 20px; }
  .store-group:last-child { margin-bottom: 0; }
  .store-group h4 { margin: 0 0 8px; font-size: 17px; color: var(--green); }
  .store-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
  .store-list li {
    display: grid; grid-template-columns: 120px 1fr; gap: 12px;
    background: var(--bg-alt); padding: 8px 14px; border-radius: 10px; font-size: 16px;
  }
  .store-list li:has(.map-link) { display: block; padding: 0; }
  .map-link {
    display: grid; grid-template-columns: 120px 1fr 20px; gap: 12px; align-items: center;
    padding: 10px 14px; border-radius: 10px; color: inherit; text-decoration: none;
    transition: background .15s, color .15s;
  }
  .map-link span { text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px; }
  .map-link svg { width: 18px; height: 18px; color: var(--green); }
  .map-link:hover, .map-link:focus-visible { background: var(--surface); color: var(--green); }
  .map-link:hover span { text-decoration-color: currentColor; }
  .map-hint { margin: 16px 0 0; color: var(--muted); font-size: 15px; text-align: center; }
  .store-list li b { font-weight: 800; }
  .delivery {
    margin-top: 32px; background: var(--green); color: #fff; border-radius: var(--radius);
    padding: 32px; display: flex; gap: 24px; align-items: center; justify-content: space-between; flex-wrap: wrap;
  }
  .delivery h3 { margin: 0 0 6px; }
  .delivery p { margin: 0; opacity: .9; }
  .delivery .btn { background: var(--lime); border-color: var(--lime); color: #11663a; }
  @media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .delivery { color: #0f1f14; }
  }
  :root[data-theme="dark"] .delivery { color: #0f1f14; }

  /* Contact */
  .contact { text-align: center; }
  .contact .hand { font-size: 34px; color: var(--green-2); }
  .contact-actions { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; margin-top: 28px; }

  footer { border-top: 1px solid var(--line); padding: 32px 0; color: var(--muted); font-size: 15px; }
  .foot { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: center; }

  /* Responsive */
  @media (max-width: 960px) {
    .benefits { grid-template-columns: repeat(2, 1fr); }
    .hero-grid, .split { grid-template-columns: 1fr; gap: 40px; }
    .hero-img::before { inset: -20px -20px -20px 30px; }
    .hero-note { left: 12px; }
    .split .split-img { order: -1; }
    .audience { grid-template-columns: 1fr; }
    .stores { grid-template-columns: 1fr; }
  }
  @media (max-width: 900px) {
    .topbar { display: none; }
    .nav { gap: 12px; }
    .burger { display: block; margin-right: -8px; }
    .nav > .btn { padding: 9px 16px; }
    .menu {
      display: none; position: absolute; top: 100%; left: 0; right: 0; margin: 0;
      max-height: calc(100dvh - var(--nav-h)); overflow-y: auto; overscroll-behavior: contain;
      flex-direction: column; align-items: stretch; gap: 0; background: var(--bg); border-bottom: 1px solid var(--line);
      padding: 8px 16px 16px;
    }
    .menu.open { display: flex; }
    .menu a { display: block; padding: 12px 0; font-size: 18px; }
    .menu .m-only { display: block; }
    .menu .menu-catalog { display: inline-flex; margin: 6px 0; padding: 8px 18px; }
    .menu-phone { margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--line); }
    .menu-phone a { display: inline-flex; align-items: center; gap: 10px; color: var(--green); }
    .menu-phone svg { width: 20px; height: 20px; }
  }
  @media (max-width: 380px) { .nav > .btn svg { display: none; } }
  @media (max-width: 560px) {
    section { padding: 64px 0; }
    .benefits { grid-template-columns: 1fr; }
    .store-list li { grid-template-columns: 1fr; gap: 0; }
    .map-link { grid-template-columns: 1fr 20px; gap: 0 12px; }
    .map-link svg { grid-column: 2; grid-row: 1 / span 2; }
    .hero-img::before { display: none; }
  }

  /* ===== Catalog CTA and contacts on home ===== */
  .catalog-cta {
    margin-top: 36px; background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow);
    padding: 26px 30px; display: flex; gap: 24px; align-items: center; justify-content: space-between; flex-wrap: wrap;
    border: 2px dashed var(--lime);
  }
  .catalog-cta .hand { font-size: 28px; color: var(--green-2); }
  .catalog-cta p { margin: 4px 0 0; color: var(--muted); max-width: 620px; }
  .menu .menu-catalog { color: var(--green); }
  .contact-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 30px auto 0; max-width: 900px; }
  .contact-cards a {
    background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px; text-decoration: none;
    display: grid; justify-items: center; gap: 4px; transition: transform .15s;
  }
  .contact-cards a:hover { transform: translateY(-3px); }
  .contact-cards svg { width: 28px; height: 28px; color: var(--green-2); margin-bottom: 6px; }
  .contact-cards span { font-size: 14px; color: var(--muted); font-weight: 700; }
  .contact-cards b { font-size: 17px; }
  footer a { text-decoration: none; display: inline-block; padding: 11px 2px; }
  footer a:hover { color: var(--green); }
  @media (max-width: 760px) { .contact-cards { grid-template-columns: 1fr; } }

  /* ===== Catalog page ===== */
  .cat-hero { padding: 56px 0 36px; }
  .cat-hero h1 { font-size: clamp(36px, 6vw, 64px); margin-bottom: 12px; }
  .cat-hero .lead { margin-bottom: 22px; }
  .facts { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 24px; }
  .fact { background: var(--surface); border-radius: 999px; padding: 8px 16px; font-weight: 700; font-size: 15px; box-shadow: var(--shadow); }
  .fact b { color: var(--green-2); }

  .toolbar {
    position: sticky; top: var(--header-h); z-index: 30; background: color-mix(in srgb, var(--bg) 94%, transparent);
    backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); padding: 14px 0;
  }
  .toolbar .wrap { display: grid; gap: 12px; }
  .tool-row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
  .search { flex: 1 1 260px; position: relative; }
  .search input {
    width: 100%; font: inherit; font-size: 16px; padding: 12px 16px 12px 44px; border-radius: 999px;
    border: 2px solid var(--line); background: var(--surface); color: var(--text);
  }
  .search input:focus { outline: none; border-color: var(--green-2); }
  .search input:focus-visible { outline: 3px solid var(--green-2); outline-offset: 2px; }
  .search svg { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; color: var(--muted); }
  .toggle { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; cursor: pointer; user-select: none; }
  .toggle input { width: 20px; height: 20px; accent-color: var(--green-2); }
  .count { color: var(--muted); font-weight: 700; font-size: 15px; margin-left: auto; }
  .chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
  .chips::-webkit-scrollbar { display: none; }
  .chip {
    flex: none; font: inherit; font-weight: 800; font-size: 15px; padding: 8px 16px; border-radius: 999px; cursor: pointer;
    border: 2px solid var(--line); background: var(--surface); color: var(--text); transition: background .15s, border-color .15s;
  }
  .chip:hover { border-color: var(--green-2); }
  .chip[aria-pressed="true"] { background: var(--green); border-color: var(--green); color: #fff; }

  .grid-products { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 22px; padding: 30px 0 60px; }
  .p-card {
    background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px 18px 18px;
    display: flex; flex-direction: column; gap: 10px; position: relative; overflow: hidden; transition: transform .2s;
  }
  .p-card:hover { transform: translateY(-4px); }
  .p-card::before { content: ""; position: absolute; left: 0; top: 0; right: 0; height: 92px; background: var(--c, var(--lime)); opacity: .9; }
  .p-photo {
    position: relative; display: block; width: 74%; aspect-ratio: 1; margin: 6px auto 4px; border-radius: 50%; overflow: hidden;
    background: #fff; box-shadow: 0 8px 22px rgba(0, 0, 0, .15); border: 5px solid #fff; cursor: pointer; padding: 0;
  }
  .p-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
  .p-card:hover .p-photo img { transform: scale(1.06); }
  .p-placeholder {
    width: 100%; height: 100%; display: grid; place-items: center; text-align: center; padding: 14px;
    background: var(--c); color: #fff; font-family: "Oswald", sans-serif; font-size: 20px; text-transform: uppercase; line-height: 1.1;
  }
  .p-badge {
    position: absolute; top: 12px; left: 12px; z-index: 1; background: #fff; color: #11663a; font-size: 12px; font-weight: 800;
    padding: 4px 10px; border-radius: 999px;
  }
  .p-card h3 { margin: 4px 0 0; font-size: 20px; }
  .p-card .sub { margin: -6px 0 0; color: var(--muted); font-weight: 700; font-size: 15px; }
  .p-meta { display: flex; gap: 12px; flex-wrap: wrap; font-size: 14px; color: var(--muted); margin-top: auto; }
  .p-meta b { color: var(--text); }
  .p-actions { display: grid; gap: 8px; }
  .p-actions .btn { padding: 10px 14px; font-size: 15px; justify-content: center; white-space: nowrap; }
  .p-price { margin: 0; font-size: 15px; color: var(--muted); font-weight: 700; }
  .p-price b { font-family: "Oswald", sans-serif; font-size: 22px; color: var(--text); font-weight: 600; }
  .chip small { display: block; font-size: 12px; font-weight: 700; opacity: .8; line-height: 1.2; }
  .m-price { margin: 10px 0 0; color: var(--muted); font-weight: 700; }
  .m-price b { font-family: "Oswald", sans-serif; font-size: 24px; color: var(--text); font-weight: 600; }
  .c-sum { display: block; font-weight: 800; margin-top: 2px; }
  .c-total { display: flex; justify-content: space-between; align-items: baseline; padding: 6px 4px 0; border-top: 2px dashed var(--line); font-weight: 800; }
  .c-total b { font-family: "Oswald", sans-serif; font-size: 26px; font-weight: 600; }
  .p-actions[hidden] { display: none; }
  .p-pick { display: grid; gap: 8px; }
  .p-pick-label { font-size: 13px; font-weight: 800; color: var(--muted); margin-bottom: -4px; }
  .p-sizes { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
  .p-sizes .chip { padding: 6px 4px; font-size: 14px; text-align: center; }
  .p-pick .qty { justify-self: stretch; justify-content: space-between; }
  .p-pick .qty input { flex: 1; }
  .p-pick .btn { padding: 8px 10px; font-size: 15px; justify-content: center; flex-direction: column; gap: 0; line-height: 1.2; }
  .p-pick .btn small { font-size: 13px; opacity: .85; white-space: nowrap; }
  .p-cancel { border: 0; background: none; font: inherit; font-size: 13px; font-weight: 700; color: var(--muted); cursor: pointer; text-decoration: underline; padding: 2px; }
  .btn-sm-ghost { background: transparent; border: 2px solid var(--line); color: var(--text); }
  .btn-sm-ghost:hover { border-color: var(--green-2); }
  .empty { grid-column: 1 / -1; text-align: center; padding: 60px 0; color: var(--muted); }
  .empty .hand { font-size: 32px; color: var(--green-2); display: block; }

  /* Product modal */
  dialog.modal {
    border: 0; border-radius: 24px; padding: 0; width: min(880px, 100% - 24px); max-height: calc(100vh - 24px);
    background: var(--surface); color: var(--text); box-shadow: 0 30px 80px rgba(0, 0, 0, .35);
  }
  dialog.modal::backdrop { background: rgba(12, 26, 16, .55); backdrop-filter: blur(3px); }
  .m-grid { display: grid; grid-template-columns: 1fr 1.15fr; }
  .m-photo { background: var(--c, var(--lime)); display: grid; place-items: center; padding: 36px; }
  .m-photo .p-photo { width: 100%; max-width: 320px; cursor: default; }
  .m-body { padding: 32px; display: grid; gap: 16px; align-content: start; }
  .m-body h2 { font-size: clamp(26px, 3.4vw, 36px); margin: 0; }
  .m-body .sub { margin: 6px 0 0; color: var(--muted); font-weight: 700; }
  .m-close {
    position: absolute; top: 12px; right: 12px; width: 42px; height: 42px; border-radius: 50%; border: 0; cursor: pointer;
    background: var(--surface); color: var(--text); font-size: 26px; line-height: 1; box-shadow: var(--shadow); z-index: 2;
  }
  .comp { margin: 0; font-size: 15px; }
  .nutri { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
  .nutri div { background: var(--bg-alt); border-radius: 12px; padding: 10px; text-align: center; }
  .nutri b { display: block; font-family: "Oswald", sans-serif; font-size: 20px; }
  .nutri span { font-size: 12px; color: var(--muted); font-weight: 700; }
  .store { font-size: 14px; color: var(--muted); display: grid; gap: 2px; }
  .label { font-weight: 800; font-size: 14px; margin-bottom: 6px; display: block; }
  .sizes-pick { display: flex; gap: 8px; flex-wrap: wrap; }
  .qty { display: inline-flex; align-items: center; border: 2px solid var(--line); border-radius: 999px; overflow: hidden; }
  .qty button { width: 38px; height: 38px; border: 0; background: transparent; font-size: 20px; cursor: pointer; color: var(--text); }
  .qty button:hover { background: var(--bg-alt); }
  .qty input { width: 44px; text-align: center; border: 0; font: inherit; font-weight: 800; background: transparent; color: var(--text); -moz-appearance: textfield; appearance: textfield; }
  .qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
  .m-add { display: flex; gap: 12px; align-items: end; flex-wrap: wrap; }
  .m-add .btn { flex: 1; justify-content: center; }
  .warn { background: #fff4d6; color: #6b4e00; border-radius: 12px; padding: 10px 14px; font-size: 14px; font-weight: 700; }

  /* Cart */
  .cart-btn {
    position: relative; background: var(--green); color: #fff; border: 0; border-radius: 999px; padding: 10px 18px;
    font: inherit; font-weight: 800; display: inline-flex; gap: 8px; align-items: center; cursor: pointer;
  }
  .cart-btn svg { width: 20px; height: 20px; }
  .cart-btn .n {
    background: var(--orange); color: #1a2b1f; min-width: 24px; height: 24px; border-radius: 999px; display: grid; place-items: center;
    font-size: 13px; padding: 0 6px;
  }
  .cart-fab { position: fixed; right: 16px; bottom: 16px; z-index: 40; box-shadow: 0 10px 30px rgba(0, 0, 0, .3); padding: 14px 20px; }
  .cart-fab[hidden] { display: none; }
  .bump { animation: bump .35s; }
  @keyframes bump { 50% { transform: scale(1.15); } }

  .drawer-bg { position: fixed; inset: 0; background: rgba(12, 26, 16, .5); z-index: 70; opacity: 0; pointer-events: none; transition: opacity .2s; }
  .drawer-bg.show { opacity: 1; pointer-events: auto; }
  .drawer {
    position: fixed; top: 0; right: 0; bottom: 0; width: min(460px, 100%); background: var(--bg); z-index: 71; visibility: hidden;
    transform: translateX(100%); transition: transform .25s ease, visibility .25s; display: flex; flex-direction: column; box-shadow: -20px 0 60px rgba(0, 0, 0, .25);
  }
  .drawer.open { transform: none; visibility: visible; }
  .d-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; border-bottom: 1px solid var(--line); }
  .d-head h2 { font-size: 26px; margin: 0; }
  .d-head .m-close { position: static; }
  .d-body { flex: 1; overflow-y: auto; padding: 16px 20px 24px; display: grid; gap: 14px; align-content: start; }
  .c-item { display: grid; grid-template-columns: 56px 1fr auto; gap: 12px; align-items: center; background: var(--surface); border-radius: 14px; padding: 10px; }
  .c-item .p-photo { width: 56px; margin: 0; border-width: 2px; box-shadow: none; cursor: default; }
  .c-item .p-placeholder { font-size: 9px; padding: 4px; }
  .c-item b { display: block; line-height: 1.2; }
  .c-item small { color: var(--muted); font-weight: 700; }
  .c-item .qty button { width: 30px; height: 30px; font-size: 16px; }
  .c-item .qty input { width: 32px; }
  .c-right { display: grid; justify-items: end; gap: 2px; }
  .c-remove { background: none; border: 0; color: var(--muted); cursor: pointer; font-size: 13px; text-decoration: underline; padding: 2px 0 0; font-family: inherit; }
  .c-empty { text-align: center; color: var(--muted); padding: 30px 0; }
  .c-empty .hand { font-size: 28px; color: var(--green-2); display: block; }
  .order-form { display: grid; gap: 12px; background: var(--surface); border-radius: 16px; padding: 18px; }
  .order-form h3 { margin: 0; font-size: 22px; }
  .field { display: grid; gap: 4px; }
  .field label { font-weight: 800; font-size: 14px; }
  .field input, .field select, .field textarea {
    font: inherit; font-size: 16px; padding: 11px 14px; border-radius: 10px; border: 2px solid var(--line);
    background: var(--bg); color: var(--text); width: 100%;
  }
  .field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--green-2); }
  .field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 3px solid var(--green-2); outline-offset: 2px; }
  .field textarea { min-height: 70px; resize: vertical; }
  .two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .note { font-size: 13px; color: var(--muted); margin: 0; }
  .alt-order { display: grid; grid-template-columns: 1fr; gap: 8px; }
  .alt-order .btn { padding: 10px; font-size: 14px; justify-content: center; }
  .msg { border-radius: 12px; padding: 14px; font-weight: 700; }
  .msg.ok { background: var(--lime-soft); color: var(--green); }
  .msg.err { background: #ffe3e0; color: #8a1f12; }
  .hidden { display: none !important; }

  .pdf-strip {
    background: var(--green); color: #fff; border-radius: var(--radius); padding: 28px 30px; margin-bottom: 80px;
    display: flex; gap: 20px; align-items: center; justify-content: space-between; flex-wrap: wrap;
  }
  .pdf-strip h3 { margin: 0 0 4px; font-size: 24px; color: inherit; }
  .pdf-strip p { margin: 0; opacity: .85; }
  .pdf-strip .btn { background: var(--lime); border-color: var(--lime); color: #11663a; }
  @media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .chip[aria-pressed="true"],
    :root:not([data-theme="light"]) .cart-btn,
    :root:not([data-theme="light"]) .pdf-strip { color: #0f1f14; }
    :root:not([data-theme="light"]) .warn { background: #3a3013; color: #ffe08a; }
    :root:not([data-theme="light"]) .msg.err { background: #3d1a16; color: #ffb4a8; }
  }
  :root[data-theme="dark"] .chip[aria-pressed="true"],
  :root[data-theme="dark"] .cart-btn,
  :root[data-theme="dark"] .pdf-strip { color: #0f1f14; }
  :root[data-theme="dark"] .warn { background: #3a3013; color: #ffe08a; }
  :root[data-theme="dark"] .msg.err { background: #3d1a16; color: #ffb4a8; }

  @media (max-width: 820px) {
    .m-grid { grid-template-columns: 1fr; }
    .m-photo { padding: 24px; }
    .m-photo .p-photo { max-width: 200px; }
    .m-body { padding: 22px; }
    .count { margin-left: 0; }
    .nav .cart-btn .t { display: none; }
  }
  @media (max-width: 520px) {
    .grid-products { grid-template-columns: 1fr 1fr; gap: 12px; }
    .p-card { padding: 14px 10px 12px; }
    .p-card::before { height: 64px; }
    .p-card h3 { font-size: 16px; }
    .p-card .sub { font-size: 13px; }
    .p-meta { font-size: 12px; gap: 6px; }

    .p-actions .btn { padding: 8px; font-size: 14px; }
    .p-badge { font-size: 10px; padding: 3px 7px; top: 8px; left: 8px; }
    .nutri { grid-template-columns: repeat(2, 1fr); }
    .two, .alt-order { grid-template-columns: 1fr; }
  }

  /* Catalog toolbar hides while scrolling down */
  header { transition: transform .25s ease; }
  .nav-hidden header { transform: translateY(-100%); }
  .toolbar { transition: transform .3s ease, opacity .3s ease, top .25s ease; }
  .nav-hidden .toolbar { top: 0; }
  @media (prefers-reduced-motion: reduce) { header { transition: none; } }
  .toolbar.tb-hidden { transform: translateY(calc(-100% - 2px)); opacity: 0; pointer-events: none; }
  @media (prefers-reduced-motion: reduce) { .toolbar { transition: none; } }

  /* ===== Multi-page layout: section pages + home tiles ===== */
  .menu a[aria-current="page"] { color: var(--green); box-shadow: inset 0 -3px var(--lime); }

  /* Home hero: keep the photo within the first screen on laptops */
  @media (min-width: 961px) {
    .hero { padding: 36px 0 64px; }
    .hero h1 { font-size: clamp(40px, min(6.4vw, 8vh), 74px); }
    .hero-actions { margin: 22px 0 26px; }
    .hero-img img { aspect-ratio: auto; height: min(540px, calc(100vh - 150px)); min-height: 380px; }
  }

  .sections { padding: 72px 0; }
  .tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .tile {
    display: flex; flex-direction: column; background: var(--surface); border-radius: var(--radius); overflow: hidden;
    box-shadow: var(--shadow); text-decoration: none; transition: transform .2s;
  }
  .tile:hover { transform: translateY(-4px); }
  .tile img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
  .tile div { padding: 16px 20px 20px; }
  .tile h3 { margin: 0 0 4px; font-size: 22px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
  .tile h3::after { content: "→"; font-family: "Nunito", sans-serif; color: var(--green-2); transition: transform .2s; }
  .tile:hover h3::after { transform: translateX(4px); }
  .tile p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.45; }
  .tile-main { background: var(--green); }
  .tile-main h3, .tile-main p { color: #fff; }
  .tile-main h3::after { color: var(--lime); }
  @media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .tile-main h3,
    :root:not([data-theme="light"]) .tile-main p,
    :root:not([data-theme="light"]) .tile-main h3::after,
    :root:not([data-theme="light"]) .cta-strip { color: #0f1f14; }
  }
  :root[data-theme="dark"] .tile-main h3,
  :root[data-theme="dark"] .tile-main p,
  :root[data-theme="dark"] .tile-main h3::after,
  :root[data-theme="dark"] .cta-strip { color: #0f1f14; }

  .page-body { padding: 8px 0 80px; }
  .cta-strip {
    margin-top: 40px; background: var(--green); color: #fff; border-radius: var(--radius); padding: 28px 30px;
    display: flex; gap: 20px; align-items: center; justify-content: space-between; flex-wrap: wrap;
  }
  .cta-strip h3 { margin: 0 0 4px; font-size: 24px; color: inherit; }
  .cta-strip p { margin: 0; opacity: .85; }
  .cta-strip .btn { background: var(--lime); border-color: var(--lime); color: #11663a; }
  .page-links { margin-top: 56px; padding-top: 28px; border-top: 1px solid var(--line); text-align: center; }
  .page-links .hand { display: block; font-size: 26px; color: var(--green-2); margin-bottom: 10px; }
  .page-links div { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
  .page-links a {
    text-decoration: none; font-weight: 800; font-size: 15px; padding: 8px 16px; border-radius: 999px;
    border: 2px solid var(--line); background: var(--surface);
  }
  .page-links a:hover { border-color: var(--green-2); }

  @media (max-width: 960px) {
    .tiles { grid-template-columns: repeat(2, 1fr); }
  }
  @media (max-width: 560px) {
    .sections { padding: 52px 0; }
    .tiles { gap: 12px; }
    .tile img { aspect-ratio: 4 / 3; }
    .tile div { padding: 10px 12px 14px; }
    .tile h3 { font-size: 17px; }
    .tile p { font-size: 13px; }

    .cat-hero { padding: 32px 0 20px; }
    .page-body { padding: 4px 0 56px; }
    .page-links { margin-top: 40px; }
    .cta-strip { padding: 22px; }

    /* Two cards per row on phones, like the catalog */
    .products { grid-template-columns: 1fr 1fr; gap: 12px; }
    .card-body { padding: 12px 12px 14px; gap: 6px; }
    .card h3 { font-size: 16px; }
    .card p { font-size: 13.5px; line-height: 1.45; }
    .tag { font-size: 11px; padding: 2px 8px; }
    .benefits { grid-template-columns: 1fr 1fr; gap: 12px; }
    .benefit { padding: 16px 14px; }
    .benefit .icon { width: 44px; height: 44px; margin-bottom: 10px; }
    .benefit .icon svg { width: 22px; height: 22px; }
    .benefit h3 { font-size: 16px; }
    .benefit p { font-size: 13.5px; line-height: 1.45; }
    .audience { gap: 12px; margin-bottom: 40px; }
    .aud { display: grid; grid-template-columns: 56px 1fr; gap: 0 14px; text-align: left; padding: 16px; align-items: center; }
    .aud .icon { width: 56px; height: 56px; margin: 0; grid-row: span 2; }
    .aud .icon svg { width: 28px; height: 28px; }
    .aud h3 { margin: 0; font-size: 18px; }
  }

  /* ===== Phone-friendly catalog (test version, 2026-11-10) ===== */
  .p-name { all: unset; cursor: pointer; }
  .p-name:hover { color: var(--green-2); }
  .p-name:focus-visible { outline: 3px solid var(--green-2); outline-offset: 2px; border-radius: 4px; }
  .cart-fab .fab-sum:empty, .cart-fab .fab-go { display: none; }
  /* Sum next to the count in the header cart button (wider screens only) */
  .cart-btn .h-sum { font-weight: 800; white-space: nowrap; }
  .cart-btn .h-sum:empty { display: none; }
  /* Above phone width the header button is the only cart: no floating one */
  @media (min-width: 521px) { .cart-fab, .cart-fab[hidden] { display: none; } }

  @media (max-width: 520px) {
    /* Shorter page head: products start sooner */
    .cat-hero { padding: 20px 0 14px; }
    .cat-hero .eyebrow { font-size: 19px; margin-bottom: 4px; }
    .cat-hero h1 { font-size: 34px; margin-bottom: 8px; }
    .cat-hero .lead { font-size: 15px; line-height: 1.5; margin-bottom: 14px; }
    .facts { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -16px 4px; padding: 2px 16px 8px; gap: 8px; }
    .facts::-webkit-scrollbar { display: none; }
    .fact { flex: none; font-size: 13px; padding: 6px 12px; }

    /* Compact sticky toolbar: search + «Без оцту» in one row, chips below */
    .toolbar { padding: 8px 0; }
    .toolbar .wrap { gap: 8px; }
    .tool-row { flex-wrap: nowrap; gap: 8px; }
    .search { flex: 1 1 auto; min-width: 0; }
    .search input { padding: 9px 12px 9px 38px; font-size: 16px; }
    .search svg { left: 12px; width: 18px; height: 18px; }
    .toggle { flex: none; gap: 6px; padding: 8px 12px; border: 2px solid var(--line); border-radius: 999px; background: var(--surface); font-size: 14px; white-space: nowrap; }
    .toggle:has(input:checked) { border-color: var(--green-2); background: color-mix(in srgb, var(--lime) 30%, var(--surface)); }
    .toggle input { width: 16px; height: 16px; }
    .count { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; } /* chips show counts; still announced */
    .chips { margin: 0 -16px; padding: 0 16px 2px; scroll-padding-inline: 16px; }
    .chips .chip { font-size: 14px; padding: 6px 13px; }

    /* Cards: one clear action, details via photo or name */
    .grid-products { padding: 14px 0 40px; }
    .p-card { gap: 6px; }
    .p-photo { width: 70%; }
    .p-meta span + span { display: none; }   /* storage term is in the details */
    .p-price b { font-size: 19px; }
    .p-actions .btn-sm-ghost { display: none; }
    .p-actions .btn { padding: 10px 8px; }

    /* Floating order button → full-width bar with the total */
    .cart-fab {
      left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); padding: 8px 8px 8px 18px; min-height: 56px;
      justify-content: flex-start; gap: 10px; font-size: 15px;
    }
    .cart-fab .fab-t { display: none; }
    .cart-btn .h-sum { display: none; }
    .cart-fab .fab-sum { font-family: "Oswald", sans-serif; font-size: 20px; font-weight: 600; white-space: nowrap; }
    .cart-fab .fab-go { display: inline-flex; align-items: center; margin-left: auto; padding: 10px 16px; border-radius: 999px; background: var(--lime); color: #1a2b1f; white-space: nowrap; }
    body.has-cart main { padding-bottom: 76px; }
    body.has-cart footer { padding-bottom: calc(32px + 76px + env(safe-area-inset-bottom)); }
  }

  /* ===== «Фільтр» button + panel ===== */
  .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .filter-btn {
    flex: none; display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 999px; cursor: pointer;
    border: 2px solid var(--line); background: var(--surface); color: var(--text); font: inherit; font-weight: 800; font-size: 15px;
  }
  .filter-btn:hover { border-color: var(--green-2); }
  .filter-btn svg { width: 20px; height: 20px; }
  .filter-btn .fb-n {
    min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; display: grid; place-items: center;
    background: var(--green); color: #fff; font-size: 12px;
  }
  .filter-btn .fb-n[hidden] { display: none; }
  .filter-btn:has(.fb-n:not([hidden])) { border-color: var(--green-2); }
  .link-btn { border: 0; background: none; padding: 0; font: inherit; color: var(--green-2); font-weight: 800; text-decoration: underline; cursor: pointer; }

  dialog.filters {
    border: 0; padding: 0; margin: 0 0 0 auto; height: 100vh; height: 100dvh; max-height: 100vh; max-height: 100dvh; width: min(440px, 100%);
    background: var(--bg); color: var(--text); box-shadow: -20px 0 60px rgba(0, 0, 0, .25);
  }
  /* The dialog is a column with a fixed height; only .f-body scrolls, so the price fields and the
     buttons are always reachable (before, the form grew taller than the screen and was cut off). */
  dialog.filters[open] { display: flex; flex-direction: column; overflow: hidden; animation: f-side .25s ease-out; }
  @keyframes f-side { from { transform: translateX(40px); opacity: 0; } }
  dialog.filters::backdrop { background: rgba(12, 26, 16, .5); }
  .f-form { display: flex; flex-direction: column; width: 100%; flex: 1 1 auto; min-height: 0; }
  .f-head, .f-foot { flex: none; }
  .f-head { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--line); }
  .f-head h2 { margin: 0; font-size: 26px; }
  .f-head .m-close { position: static; }
  .f-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: 8px 20px 20px; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
  .f-body fieldset { border: 0; margin: 0; padding: 14px 0; border-bottom: 1px solid var(--line); }
  .f-body fieldset:last-child { border-bottom: 0; }
  .f-body legend { font-weight: 800; font-size: 16px; padding: 0; margin-bottom: 10px; }
  .f-body legend small { font-weight: 600; color: var(--muted); font-size: 13px; margin-left: 4px; }
  .f-opts { display: flex; flex-wrap: wrap; gap: 8px; }
  .f-opt { position: relative; cursor: pointer; }
  .f-opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
  .f-opt span {
    display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px;
    border: 2px solid var(--line); background: var(--surface); font-weight: 700; font-size: 15px; transition: background .15s, border-color .15s;
  }
  .f-opt span small { font-size: 12px; color: var(--muted); }
  .f-opt:hover span { border-color: var(--green-2); }
  .f-opt input:checked + span { background: var(--green); border-color: var(--green); color: #fff; }
  .f-opt input:checked + span small { color: inherit; opacity: .8; }
  .f-opt input[type="checkbox"]:checked + span::before { content: "✓"; font-weight: 900; }
  .f-opt input:focus-visible + span { outline: 3px solid var(--green-2); outline-offset: 2px; }
  .f-price { display: flex; align-items: center; gap: 10px; }
  .f-price label { flex: 1; }
  .f-price input {
    width: 100%; font: inherit; font-size: 16px; padding: 10px 14px; border-radius: 12px; border: 2px solid var(--line);
    background: var(--surface); color: var(--text);
  }
  .f-price input:focus { outline: none; border-color: var(--green-2); }
  .f-price input:focus-visible { outline: 3px solid var(--green-2); outline-offset: 2px; }
  .f-foot { display: flex; gap: 10px; padding: 14px 20px calc(14px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--bg); }
  .f-foot .btn { justify-content: center; padding: 12px 16px; }
  .f-foot .btn-primary { flex: 1; }
  .f-foot .btn[disabled] { opacity: .45; cursor: default; }

  @media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .f-opt input:checked + span,
    :root:not([data-theme="light"]) .filter-btn .fb-n { color: #0f1f14; }
  }
  :root[data-theme="dark"] .f-opt input:checked + span,
  :root[data-theme="dark"] .filter-btn .fb-n { color: #0f1f14; }

  @media (max-width: 520px) {
    .filter-btn { padding: 8px 12px; font-size: 14px; gap: 6px; }
    .filter-btn svg { width: 18px; height: 18px; }
    /* bottom sheet on phones */
    dialog.filters { margin: auto 0 0; width: 100%; max-width: 100%; height: 88vh; height: 88dvh; max-height: 88vh; max-height: 88dvh; border-radius: 22px 22px 0 0; box-shadow: 0 -20px 60px rgba(0, 0, 0, .25); }
    dialog.filters[open] { animation: f-up .25s ease-out; }
    @keyframes f-up { from { transform: translateY(40px); opacity: 0; } }
    .f-opt span { font-size: 14px; padding: 7px 12px; }
  }

/* Catalog opened from the test-box page (catalog.html?testbox) */
.testbox-note {
  background: var(--lime-soft); border: 1px solid var(--line); border-radius: 14px;
  padding: 12px 16px; margin: 0 0 18px; font-size: 16px;
}

/* ===== Editable content pages (content.js): «Про нас», «Продукція», «Рецепти», «Блог» ===== */
.c-text { font-size: 17px; line-height: 1.65; }
.c-text > :first-child { margin-top: 0; }
.c-text h2 { font-size: clamp(26px, 3.4vw, 34px); margin: 0 0 12px; }
.c-text h3 { font-size: 22px; margin: 20px 0 8px; }
.c-text p { margin: 0 0 12px; }
.c-text ul, .c-text ol { margin: 0 0 12px; padding-left: 22px; }
.c-text li { margin: 4px 0; }
.c-text blockquote { margin: 16px 0; padding: 10px 18px; border-left: 4px solid var(--lime); background: var(--surface); border-radius: 0 12px 12px 0; font-style: italic; }
.c-text a, .card-body a { color: var(--green-2); font-weight: 700; }
.card-body p:last-of-type { margin-bottom: 0; }

.c-block { margin: 0 0 56px; }
.c-split { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 40px; align-items: center; }
.c-split.flip .c-photos { order: -1; }
.c-split.no-photo { grid-template-columns: minmax(0, 760px); }
.c-photos { display: grid; gap: 14px; }
.c-photos figure, .gallery figure { margin: 0; }
.c-photos img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }
.c-photos:has(figure + figure) { grid-template-columns: 1fr 1fr; }
figcaption { font-size: 14px; color: var(--muted); margin-top: 6px; }
.c-gallery h2 { font-size: clamp(26px, 3.4vw, 34px); margin: 0 0 14px; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; margin-top: 16px; }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }
.products + .c-block, .c-block + .products { margin-top: 40px; }
.c-empty { text-align: center; color: var(--muted); font-size: 18px; padding: 40px 16px; background: var(--surface); border-radius: var(--radius); }

/* Lists of recipes / posts */
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; }
.post-card {
  display: flex; flex-direction: column; background: var(--surface); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); text-decoration: none; color: inherit; transition: transform .2s;
}
.post-card:hover { transform: translateY(-4px); }
.post-card img, .post-noimg { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; background: var(--lime-soft); display: block; }
.post-card-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.post-card h3 { margin: 0; font-size: 21px; }
.post-card p { margin: 0; color: var(--muted); }
.post-card small { margin-top: auto; padding-top: 6px; color: var(--green-2); font-weight: 800; }

/* One recipe / post */
.c-single .cat-hero { display: none; }
.c-single .page-body { padding-top: 28px; }
.c-post { max-width: 900px; margin: 0 auto; }
.c-back { display: inline-block; font-weight: 800; color: var(--green-2); text-decoration: none; margin-bottom: 14px; }
.c-back:hover { text-decoration: underline; }
.c-post h1 { font-size: clamp(32px, 5vw, 52px); margin: 0 0 10px; }
.c-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; color: var(--muted); font-weight: 700; margin-bottom: 18px; }
.c-cover { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 20px; }
.c-post > .lead { max-width: none; margin: 0 0 18px; }
.c-products { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0 0 28px; }
.c-products span { font-weight: 800; }
.c-products .chip { text-decoration: none; }
.recipe-grid { display: grid; grid-template-columns: minmax(240px, 1fr) minmax(0, 2fr); gap: 28px; align-items: start; margin-bottom: 28px; }
.recipe-ingr { padding: 20px 22px; position: sticky; top: calc(var(--header-h) + 18px); }
.recipe-ingr:hover { transform: none; }
.recipe-ingr h2, .recipe-steps h2 { font-size: 26px; margin: 0 0 12px; }
.recipe-ingr ul { margin: 0; padding-left: 20px; }
.recipe-ingr li { margin: 6px 0; }
.recipe-steps ol { list-style: none; counter-reset: step; margin: 0; padding: 0; display: grid; gap: 18px; }
.recipe-steps li { counter-increment: step; display: grid; grid-template-columns: 40px 1fr; gap: 4px 14px; }
.recipe-steps li::before {
  content: counter(step); grid-row: span 2; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  background: var(--lime); color: #11663a; font-weight: 800; font-size: 18px;
}
.recipe-steps li p { margin: 0 0 8px; font-size: 17px; line-height: 1.6; }
.recipe-steps li img { grid-column: 2; width: 100%; max-width: 480px; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 12px; }
.c-body { margin: 8px 0 24px; }
@media (max-width: 820px) {
  .c-split, .c-split.no-photo { grid-template-columns: 1fr; gap: 20px; }
  .c-split.flip .c-photos { order: 0; }
  .recipe-grid { grid-template-columns: 1fr; }
  .recipe-ingr { position: static; }
}
@media (max-width: 560px) {
  .c-block { margin-bottom: 40px; }
  .post-grid { grid-template-columns: 1fr; gap: 16px; }
  .gallery { grid-template-columns: 1fr 1fr; gap: 10px; }
}

/* ===== Test-box builder (testbox.html + testbox.js) ===== */
.tb-hero { text-align: center; }
.tb-hero .lead { margin-inline: auto; }
.tb { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; align-items: start; }
.tb-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(172px, 1fr)); gap: 10px; }
.tb-gh { grid-column: 1 / -1; margin: 10px 0 0; font-size: 20px; color: var(--green-2); }
.tb-gh:first-child { margin-top: 0; }
.tb-card {
  display: flex; gap: 10px; align-items: center; background: var(--surface); border: 2px solid var(--line);
  border-radius: 16px; padding: 10px; transition: border-color .15s, box-shadow .15s;
}
.tb-card.on { border-color: var(--green-2); box-shadow: 0 4px 14px rgba(17, 102, 58, .14); }
.tb-ph, .tb-sph {
  flex: none; width: 58px; height: 58px; border-radius: 50%; overflow: hidden; display: grid; place-items: center;
  border: 3px solid var(--c, var(--lime)); background: var(--c, var(--lime));
}
.tb-ph img, .tb-sph img { width: 100%; height: 100%; object-fit: cover; }
.tb-noimg { font-size: 10px; font-weight: 800; color: #fff; text-align: center; line-height: 1.1; padding: 4px; }
.tb-info { min-width: 0; flex: 1; display: grid; gap: 2px; }
.tb-info b { font-size: 14px; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tb-info small { font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tb-qty { display: flex; align-items: center; gap: 10px; margin-top: 4px; }
.tb-qty span { min-width: 12px; text-align: center; font-weight: 800; }
.tb-qty button {
  width: 26px; height: 26px; border-radius: 50%; border: 0; display: grid; place-items: center; cursor: pointer;
  font: 800 18px/1 "Nunito", sans-serif; background: var(--green-2); color: #fff;
}
.tb-qty button[data-d="-1"] { background: var(--bg-alt); color: var(--text); }
.tb-qty button:disabled { opacity: .35; cursor: default; }

.tb-panel {
  position: sticky; top: calc(var(--header-h) + 18px); background: #0f5a33; color: #fff; border-radius: 22px; padding: 20px;
  display: grid; gap: 14px; box-shadow: var(--shadow);
}
.tb-head h2 { margin: 0; font-size: 26px; color: #fff; }
.tb-count { margin: 2px 0 0; font-weight: 700; opacity: .8; }
.tb-bar-n { display: none; }
.tb-slots {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; padding: 14px; border-radius: 16px;
  background: #e7d8c3;
}
.tb-slot { position: relative; aspect-ratio: 1; border-radius: 50%; border: 2px dashed #c9b49a; background: #fff; }
.tb-slot.full { border: 0; background: none; }
.tb-sph { width: 100%; height: 100%; border-width: 3px; }
.tb-x {
  position: absolute; top: -4px; right: -4px; width: 22px; height: 22px; border-radius: 50%; border: 2px solid #fff;
  background: #d9483b; color: #fff; font: 800 14px/1 "Nunito", sans-serif; cursor: pointer; display: grid; place-items: center; padding: 0;
}
.tb-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; font-size: 14px; }
.tb-list li { display: flex; justify-content: space-between; gap: 10px; }
.tb-list b { white-space: nowrap; }
.tb-price { display: flex; justify-content: space-between; align-items: baseline; border-top: 1px solid rgba(255,255,255,.15); padding-top: 12px; }
.tb-price span { font-family: "Oswald", sans-serif; font-size: 24px; font-weight: 600; }
.tb-price b { font-family: "Oswald", sans-serif; font-size: 28px; color: #b4e0a0; }
.tb-go { justify-content: center; background: #b4e0a0; color: #0f5a33; border-color: #b4e0a0; width: 100%; }
.tb-go:disabled { background: #2f7d50; border-color: #2f7d50; color: rgba(255,255,255,.65); cursor: default; }
.tb-clear { background: none; border: 0; color: rgba(255,255,255,.7); font: 700 14px "Nunito", sans-serif; cursor: pointer; text-decoration: underline; justify-self: center; }
.tb-about { margin-top: 64px; }
.tb-about h2 { margin: 0; }

@media (max-width: 900px) {
  .tb { grid-template-columns: 1fr; }
  /* the box becomes a bar stuck to the bottom of the screen */
  .tb-panel {
    position: sticky; bottom: 8px; top: auto; z-index: 20; padding: 12px; gap: 10px; border-radius: 18px;
    grid-template-columns: 1fr auto; align-items: center;
  }
  .tb-head { grid-column: 1; display: flex; align-items: baseline; gap: 10px; }
  .tb-head h2 { font-size: 20px; }
  .tb-count { display: none; }
  .tb-bar-n { display: inline; font-weight: 800; opacity: .85; }
  .tb-slots { grid-column: 1 / -1; grid-template-columns: repeat(var(--n, 6), 1fr); gap: 6px; padding: 8px; order: 2; }
  .tb-list, .tb-clear { display: none !important; }
  .tb-price { grid-column: 2; grid-row: 1; border: 0; padding: 0; gap: 8px; }
  .tb-price span { display: none; }
  .tb-price b { font-size: 22px; }
  .tb-go { grid-column: 1 / -1; order: 3; }
  .tb-x { width: 18px; height: 18px; font-size: 12px; top: -5px; right: -5px; }
}
@media (max-width: 520px) {
  .tb-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .tb-card { flex-direction: column; text-align: center; padding: 10px 6px; gap: 6px; }
  .tb-info { width: 100%; }
  .tb-qty { justify-content: center; }
  .tb-about { margin-top: 40px; }
}

/* Test-box line in the catalog cart */
.c-box .box-mini { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; width: 56px; height: 56px; border-radius: 12px; overflow: hidden; background: #e7d8c3; padding: 2px; }
.c-box .box-mini .p-photo { width: 100%; height: 100%; border-radius: 50%; overflow: hidden; }
.c-box .box-mini img { width: 100%; height: 100%; object-fit: cover; }
.c-box .box-mini .p-placeholder { font-size: 0; display: block; width: 100%; height: 100%; background: var(--lime); }
.c-box .box-list { display: block; font-size: 12px; color: var(--muted); line-height: 1.35; margin-top: 2px; }

/* test-box page: keep the box bar above the floating cart button */
@media (max-width: 520px) { body.has-cart .tb-panel { bottom: 84px; } }

/* Payment choice in the cart + the result page (pay.html) */
.pay-fs { border: 0; margin: 4px 0 0; padding: 0; display: grid; gap: 8px; }
.pay-fs legend { font-weight: 800; margin-bottom: 6px; padding: 0; }
.pay-opts { display: grid; gap: 8px; }
.pay-opt { display: flex; gap: 10px; align-items: flex-start; border: 2px solid var(--line); border-radius: 12px; padding: 10px 12px; cursor: pointer; background: var(--surface); }
.pay-opt:has(input:checked) { border-color: var(--green-2); }
.pay-opt input { margin-top: 3px; accent-color: var(--green-2); width: 18px; height: 18px; flex: none; }
.pay-opt b { display: block; font-size: 15px; }
.pay-opt small { display: block; color: var(--muted); font-size: 13px; line-height: 1.4; margin-top: 2px; }
.msg .req { display: block; margin: 8px 0; padding: 10px 12px; background: var(--surface); border-radius: 10px; line-height: 1.6; overflow-wrap: anywhere; }
.pay-result { display: flex; gap: 18px; align-items: center; background: var(--surface); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); max-width: 720px; border-left: 6px solid var(--line); }
.pay-result.ok { border-left-color: var(--green-2); }
.pay-result.err { border-left-color: #d9483b; }
.pay-icon { font-size: 44px; line-height: 1; }
.pay-result h2 { margin: 0 0 6px; font-size: 26px; }
.pay-result p { margin: 0; color: var(--muted); }

/* Nova Poshta picker in the order form (cart.js) */
.np-box { display: grid; gap: 8px; }
.np-combo { position: relative; }
.np-list {
  position: absolute; z-index: 30; left: 0; right: 0; top: calc(100% + 4px); margin: 0; padding: 4px; list-style: none;
  max-height: 280px; overflow: auto; background: var(--surface); border: 2px solid var(--green-2); border-radius: 12px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .18);
}
.np-list li { display: flex; gap: 10px; align-items: flex-start; padding: 8px 10px; border-radius: 8px; cursor: pointer; line-height: 1.3; }
.np-list li:not([data-i]) { cursor: default; color: var(--muted); }
.np-list li[data-i]:hover, .np-list li.act { background: var(--lime-soft); }
.np-list li > b, .np-list li span b { display: block; font-size: 15px; }
.np-list li:not(:has(span)) { flex-direction: column; gap: 0; }
.np-list small { display: block; color: var(--muted); font-size: 13px; }
.np-ico { font-size: 18px; line-height: 1.2; }
.np-types { display: flex; gap: 6px; flex-wrap: wrap; }
.np-types button {
  font: inherit; font-size: 13px; font-weight: 700; border: 2px solid var(--line); background: var(--bg); color: var(--text);
  border-radius: 999px; padding: 4px 12px; cursor: pointer;
}
.np-types button[aria-pressed="true"] { background: var(--green-2); border-color: var(--green-2); color: #fff; }
.np-chosen { margin: 0; font-size: 14px; background: var(--lime-soft); border-radius: 10px; padding: 8px 10px; }
.np-err { color: #b3261e; }

/* «×» that clears a field of the order form (cart.js) */
.clr-wrap { position: relative; display: block; }
.clr-wrap > input, .clr-wrap > textarea { padding-right: 42px; }
.clr-btn {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 30px; height: 30px; border-radius: 50%;
  border: 0; background: var(--bg-alt); color: var(--muted); font: 700 20px/1 "Nunito", sans-serif; cursor: pointer;
  display: grid; place-items: center; padding: 0;
}
.clr-btn:hover { background: var(--line); color: var(--text); }
.clr-btn[hidden] { display: none; }
.clr-ta .clr-btn { top: 8px; transform: none; }

/* Skip link: hidden until focused with the keyboard */
.skip {
  position: absolute; left: 12px; top: -60px; z-index: 200; padding: 10px 16px; border-radius: 12px;
  background: var(--green); color: var(--bg); font-weight: 800; text-decoration: none;
}
.skip:focus { top: 12px; outline: 3px solid var(--lime); outline-offset: 2px; }

/* «Видалено · Повернути» line in the cart */
.c-undo:empty { display: none; }
.c-undo {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 0 10px;
  padding: 10px 14px; border-radius: 12px; background: var(--lime-soft); font-size: 14px;
}

/* Visitors who turned animations off in the system get no motion anywhere */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important; animation-iteration-count: 1 !important;
    transition-duration: .01ms !important; scroll-behavior: auto !important;
  }
  .tile:hover, .tile:hover h3::after, .p-card:hover .p-photo img { transform: none; }
}
