    :root {
      --ink: #070707;
      --paper: #f7f5f0;
      --white: #fff;
      --muted: #66615b;
      --line: #d9d5ce;
      --red: #e22b1a;
      --gold: #b78a35;
      --container: 100vw;
    }

    * { box-sizing: border-box; }
    html { scroll-behavior: smooth; }
    body {
      margin: 0;
      overflow-x: hidden;
      color: var(--ink);
      background: var(--paper);
      font-family: "Manrope", Arial, sans-serif;
      line-height: 1.35;
    }
    img { display: block; width: 100%; max-width: 100%; }
    a { color: inherit; text-decoration: none; }
    button { font: inherit; }

    .topbar {
      min-height: 28px;
      display: grid;
      place-items: center;
      background: var(--ink);
      color: var(--white);
      font-size: 12px;
      font-weight: 900;
      text-transform: uppercase;
    }

    .header {
      position: sticky;
      top: 0;
      z-index: 50;
      border-bottom: 1px solid var(--line);
      background: rgba(255, 255, 255, 0.94);
      backdrop-filter: blur(14px);
    }

    .header-inner {
      width: min(1320px, calc(100vw - 72px));
      min-height: 62px;
      margin: 0 auto;
      display: grid;
      grid-template-columns: 1fr auto 1fr;
      align-items: center;
      gap: 20px;
    }

    .nav {
      display: flex;
      align-items: center;
      gap: 18px;
      font-size: 12px;
      font-weight: 800;
      text-transform: uppercase;
    }
    .nav.right { justify-content: flex-end; }
    .nav a { white-space: nowrap; transition: color 0.2s ease; }
    .nav a:hover,
    .nav a[aria-current="page"] { color: var(--red); }

    .brand {
      display: grid;
      justify-items: center;
      line-height: 1;
      font-weight: 900;
      text-transform: uppercase;
    }
    .brand strong { font-size: 20px; font-weight: 900; }
    .brand span { margin-top: 5px; color: var(--gold); font-size: 10px; font-weight: 800; }

    .icon-btn {
      width: 42px;
      height: 42px;
      display: inline-grid;
      place-items: center;
      border: 1px solid transparent;
      background: transparent;
      color: var(--ink);
      cursor: pointer;
      transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    }
    .icon-btn:hover {
      border-color: var(--ink);
      background: var(--red);
      color: var(--white);
      transform: translate(-2px, -2px);
      box-shadow: 4px 4px 0 var(--ink);
    }

    h1, h2, h3, p, blockquote { margin: 0; }
    h1, h2, h3 {
      line-height: 0.94;
      font-weight: 900;
      letter-spacing: 0;
      text-transform: uppercase;
    }
    h1 { max-width: 860px; font-size: clamp(38px, 4.2vw, 66px); }
    h2 { font-size: clamp(32px, 4vw, 62px); }
    h3 { font-size: clamp(22px, 2vw, 32px); }

    .eyebrow {
      color: var(--red);
      font-size: 12px;
      font-weight: 900;
      text-transform: uppercase;
    }
    .lead {
      max-width: 720px;
      color: var(--muted);
      font-size: clamp(16px, 1.25vw, 20px);
      font-weight: 800;
    }

    .btn {
      min-height: 44px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 10px;
      border: 1px solid var(--ink);
      padding: 0 18px;
      background: var(--ink);
      color: var(--white);
      font-size: 13px;
      font-weight: 900;
      text-transform: uppercase;
      cursor: pointer;
      box-shadow: inset 0 0 0 0 var(--red), 0 0 0 rgba(0,0,0,0);
      transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, box-shadow 0.24s ease, border-color 0.2s ease;
    }
    .btn:hover {
      transform: translate(-3px, -3px);
      background: var(--ink);
      border-color: var(--ink);
      box-shadow: inset 0 -54px 0 var(--red), 6px 6px 0 var(--ink);
    }
    .btn.light {
      border-color: var(--white);
      background: var(--white);
      color: var(--ink);
      box-shadow: 0 0 0 var(--red);
    }
    .btn.light:hover {
      border-color: var(--white);
      background: var(--white);
      color: var(--ink);
      box-shadow: 6px 6px 0 var(--red);
    }

    .article-main { background: var(--paper); }

    .article-hero {
      width: var(--container);
      display: grid;
      grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
      height: clamp(500px, 58svh, 620px);
      border-bottom: 1px solid var(--ink);
      background: var(--ink);
      color: var(--white);
      overflow: hidden;
    }
    .article-hero h1 { line-height: 0.98; }
    .article-hero-copy {
      display: grid;
      align-content: center;
      justify-items: start;
      gap: 16px;
      padding: clamp(38px, 5vw, 72px) max(32px, 4vw);
    }
    .article-meta {
      display: flex;
      flex-wrap: wrap;
      gap: 10px;
      color: #d8d3cb;
      font-size: 12px;
      font-weight: 900;
      text-transform: uppercase;
    }
    .article-meta .meta-red,
    .article-meta .meta-time b,
    .article-meta .meta-views b {
      color: var(--red);
      font-weight: 950;
    }
    .article-meta .meta-time span,
    .article-meta .meta-views span {
      color: #d8d3cb;
    }
    .article-hero-copy .lead { color: #d8d3cb; }
    .article-hero-media { min-height: 0; background: var(--white); }
    .article-hero-media img { height: 100%; object-fit: cover; }

    .breadcrumbs {
      width: var(--container);
      min-height: 58px;
      display: flex;
      align-items: center;
      gap: 10px;
      padding: 0 max(28px, 4vw);
      border-bottom: 1px solid var(--ink);
      background: var(--white);
      color: var(--muted);
      font-size: 12px;
      font-weight: 900;
      text-transform: uppercase;
    }
    .breadcrumbs a:hover { color: var(--red); }

    .article-layout {
      width: var(--container);
      display: grid;
      grid-template-columns: minmax(0, 1fr) minmax(300px, 0.32fr);
      gap: 1px;
      border-bottom: 1px solid var(--ink);
      background: var(--ink);
    }

    .article-body {
      min-width: 0;
      display: grid;
      gap: 34px;
      padding: 56px max(32px, 5vw);
      background: var(--paper);
    }
    .article-body p,
    .article-body li {
      max-width: 780px;
      color: #2f2b27;
      font-size: 18px;
      font-weight: 750;
      line-height: 1.55;
    }
    .article-body ul,
    .article-body ol {
      display: grid;
      gap: 10px;
      margin: 0;
      padding-left: 24px;
    }
    .article-body figure {
      margin: 0;
      display: grid;
      gap: 10px;
      max-width: 980px;
    }
    .article-body figure img {
      height: min(520px, 54vw);
      object-fit: cover;
      border: 1px solid var(--ink);
    }
    .article-body figcaption {
      color: var(--muted);
      font-size: 12px;
      font-weight: 900;
      text-transform: uppercase;
    }
    .answer-box {
      max-width: 980px;
      min-width: 0;
      display: grid;
      gap: 12px;
      padding: 24px;
      border: 1px solid var(--ink);
      background: var(--white);
      box-shadow: 6px 6px 0 var(--red);
    }
    .answer-box p { max-width: none; font-size: 17px; }
    blockquote {
      max-width: 900px;
      padding: 28px;
      border-left: 8px solid var(--red);
      background: var(--white);
      color: var(--ink);
      font-size: clamp(24px, 2.2vw, 36px);
      line-height: 1.05;
      font-weight: 900;
      text-transform: uppercase;
    }

    .article-sidebar {
      min-width: 0;
      display: grid;
      align-content: start;
      gap: 1px;
      background: var(--ink);
    }
    .sidebar-panel {
      display: grid;
      gap: 14px;
      padding: 24px;
      background: var(--white);
    }
    .author-card {
      display: grid;
      grid-template-columns: 82px 1fr;
      gap: 14px;
      align-items: center;
    }
    .author-card img {
      width: 82px;
      height: 82px;
      object-fit: cover;
      border: 1px solid var(--ink);
    }
    .author-card strong {
      display: block;
      font-size: 14px;
      font-weight: 900;
      text-transform: uppercase;
    }
    .author-card span {
      display: block;
      margin-top: 5px;
      color: var(--muted);
      font-size: 12px;
      font-weight: 900;
    }
    .share-list {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
    }
    .share-list button {
      min-height: 34px;
      border: 1px solid var(--ink);
      padding: 0 10px;
      display: inline-flex;
      align-items: center;
      gap: 8px;
      background: var(--paper);
      color: var(--ink);
      font-size: 11px;
      font-weight: 900;
      text-transform: uppercase;
      cursor: pointer;
      transition: background 0.2s ease, color 0.2s ease;
    }
    .share-list button:hover {
      background: var(--red);
      color: var(--white);
    }
    .article-stats strong {
      color: var(--red);
      font-size: 32px;
      font-weight: 950;
      line-height: 0.95;
      letter-spacing: 0;
      text-transform: uppercase;
    }
    .toc-list {
      display: grid;
      gap: 1px;
      border: 1px solid var(--ink);
      background: var(--ink);
    }
    .toc-list a {
      display: flex;
      align-items: center;
      min-height: 42px;
      padding: 0 12px;
      background: var(--paper);
      color: var(--ink);
      font-size: 12px;
      font-weight: 900;
      line-height: 1.15;
      text-transform: uppercase;
      transition: background 0.2s ease, color 0.2s ease, padding 0.2s ease;
    }
    .toc-list a:hover {
      padding-left: 16px;
      background: var(--ink);
      color: var(--white);
    }


    .related {
      width: var(--container);
      background: var(--paper);
      padding-bottom: 72px;
    }
    .section-head {
      display: grid;
      grid-template-columns: minmax(0, 1fr) minmax(300px, 0.42fr);
      gap: 28px;
      align-items: end;
      padding: 64px max(28px, 4vw) 28px;
    }
    .related-grid {
      width: calc(100% - min(128px, 10vw));
      margin: 0 auto;
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 16px;
      background: transparent;
    }
    .related-card {
      min-height: 0;
      display: grid;
      grid-template-rows: auto 1fr auto;
      border: 1px solid var(--ink);
      background: var(--white);
      overflow: hidden;
      transition: background 0.22s ease, color 0.22s ease, transform 0.22s ease, box-shadow 0.22s ease;
    }
    .related-card:hover {
      background: var(--ink);
      color: var(--white);
      transform: translateY(-4px);
      box-shadow: 0 8px 0 var(--red);
    }
    .related-card img {
      aspect-ratio: 16 / 9;
      height: auto;
      object-fit: cover;
      transition: transform 0.32s ease, filter 0.22s ease;
    }
    .related-card:hover img {
      transform: scale(1.05);
      filter: saturate(1.08) contrast(1.05);
    }
    .related-card div {
      display: grid;
      gap: 10px;
      padding: 20px;
    }
    .related-card a {
      min-height: 48px;
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin: 0 20px 20px;
      border: 1px solid currentColor;
      padding: 0 14px;
      color: var(--red);
      font-size: 12px;
      font-weight: 900;
      text-transform: uppercase;
      transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
    }
    .related-card:hover a {
      background: var(--red);
      color: var(--white);
      transform: translateY(-2px);
    }

    .footer {
      margin-top: 0;
      padding: 48px max(28px, 4vw) 24px;
      background: var(--ink);
      color: var(--white);
    }
    .footer-grid {
      display: grid;
      grid-template-columns: 1.5fr repeat(4, 1fr);
      gap: 28px;
      padding-bottom: 42px;
      border-bottom: 1px solid rgba(255,255,255,0.14);
    }
    .footer h4 { margin: 0 0 14px; font-size: 12px; font-weight: 900; text-transform: uppercase; }
    .footer a { display: block; margin-top: 8px; color: #d8d3cb; font-size: 13px; font-weight: 800; }
    .footer a:hover { color: var(--white); }
    .footer-grid > div:first-child h4 { font-size: 30px; line-height: 0.95; }
    .footer-bottom {
      display: flex;
      justify-content: space-between;
      gap: 16px;
      padding-top: 22px;
      color: #b8b2aa;
      font-size: 12px;
      font-weight: 800;
    }

    @media (max-width: 1120px) {
      .article-hero,
      .article-layout { grid-template-columns: 1fr; }
      .article-hero { height: auto; }
      .article-hero-media { min-height: 420px; }
      .related-grid { width: calc(100% - 24px); grid-template-columns: 1fr; }
      .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    }

    @media (max-width: 760px) {
      .topbar { padding: 0 12px; text-align: center; }
      .header-inner {
        width: calc(100vw - 24px);
        grid-template-columns: 1fr auto;
      }
      .nav { display: none; }
      .brand { justify-items: start; }
      .article-hero,
      .breadcrumbs,
      .article-layout,
      .related { width: 100%; }
      .article-hero { min-height: 0; }
      .article-hero-copy { padding: 42px 12px 44px; }
      .article-hero-copy h1 { max-width: 340px; font-size: 33px; line-height: 1.04; }
      .article-hero-copy .lead { max-width: 340px; font-size: 16px; }
      .article-hero-media { min-height: 0; }
      .article-hero-media img { height: 300px; }
      .breadcrumbs { padding: 0 12px; overflow-x: auto; }
      .article-body { width: 100%; padding: 34px 12px; gap: 28px; overflow: hidden; }
      .article-body > * { max-width: calc(100vw - 24px); }
      .article-body h2 { font-size: 28px; line-height: 1.02; overflow-wrap: anywhere; }
      .article-body p,
      .article-body li { max-width: 318px; font-size: 16px; overflow-wrap: anywhere; }
      .answer-box { width: 100%; }
      .answer-box p { max-width: 282px; }
      .article-body figure img { height: 260px; }
      .answer-box { padding: 18px; box-shadow: 4px 4px 0 var(--red); }
      blockquote { padding: 20px; font-size: 24px; }
      .sidebar-panel { padding: 22px 12px; }
      .section-head { grid-template-columns: 1fr; padding: 44px 12px 22px; }
      .footer { padding: 38px 12px 22px; }
      .footer-grid,
      .footer-bottom { display: grid; grid-template-columns: 1fr; }
    }
  
    .footer-brand-copy p {
      max-width: 270px;
      margin: 10px 0 0;
      color: #cfc9c0;
      font-size: 13px;
      font-weight: 700;
      line-height: 1.55;
    }
    .footer-locale {
      display: grid;
      gap: 12px;
      margin-top: 20px;
    }
    .footer-locale-group {
      display: grid;
      gap: 8px;
    }
    .footer-locale-label {
      color: #8f887f;
      font-size: 10px;
      font-weight: 900;
      letter-spacing: 0;
      text-transform: uppercase;
    }
    .footer-locale-row {
      display: flex;
      flex-wrap: wrap;
      gap: 6px;
    }
    .footer-pill {
      min-height: 30px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 6px;
      border: 1px solid rgba(255,255,255,0.22);
      border-radius: 0;
      padding: 6px 9px;
      background: transparent;
      color: #d8d3cb;
      font-size: 11px;
      font-weight: 900;
      line-height: 1;
      text-transform: uppercase;
      cursor: pointer;
    }
    .footer-pill:hover,
    .footer-pill.is-active {
      background: var(--white);
      color: var(--ink);
    }
    .footer-legal-line {
      display: flex;
      flex-wrap: wrap;
      justify-content: flex-end;
      gap: 8px 14px;
    }
    /* Cookie consent banner */
    .luneva-cookie-consent {
      position: fixed;
      left: max(12px, 2vw);
      right: max(12px, 2vw);
      bottom: 12px;
      z-index: 120;
      display: none;
      grid-template-columns: minmax(0, 1fr) auto;
      align-items: center;
      gap: 16px;
      border: 1px solid var(--ink, #070707);
      padding: 14px;
      background: var(--white, #fff);
      color: var(--ink, #070707);
      box-shadow: 6px 6px 0 var(--ink, #070707);
    }
    body.cookie-consent-visible .luneva-cookie-consent { display: grid; }
    .luneva-cookie-copy {
      display: grid;
      gap: 4px;
    }
    .luneva-cookie-copy strong {
      font-size: 13px;
      font-weight: 900;
      text-transform: uppercase;
    }
    .luneva-cookie-copy span,
    .luneva-cookie-copy a {
      color: var(--muted, #66615b);
      font-size: 12px;
      font-weight: 800;
    }
    .luneva-cookie-copy a {
      color: var(--ink, #070707);
      text-decoration: underline;
      text-underline-offset: 3px;
    }
    .luneva-cookie-actions {
      display: flex;
      flex-wrap: wrap;
      justify-content: flex-end;
      gap: 8px;
    }
    .luneva-cookie-btn,
    .luneva-cookie-link {
      min-height: 40px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      border: 1px solid var(--ink, #070707);
      padding: 0 13px;
      background: var(--white, #fff);
      color: var(--ink, #070707);
      font-size: 11px;
      font-weight: 900;
      text-transform: uppercase;
      cursor: pointer;
    }
    .luneva-cookie-btn.primary {
      background: var(--ink, #070707);
      color: var(--white, #fff);
    }
    .luneva-cookie-btn:hover,
    .luneva-cookie-link:hover {
      background: var(--red, #e22b1a);
      color: var(--white, #fff);
    }
    @media (max-width: 760px) {
      .luneva-cookie-consent {
        grid-template-columns: 1fr;
        left: 12px;
        right: 12px;
        bottom: 12px;
        max-height: calc(100svh - 24px);
        overflow: auto;
      }
      .luneva-cookie-actions {
        display: grid;
        grid-template-columns: 1fr;
      }
      .luneva-cookie-btn,
      .luneva-cookie-link { width: 100%; }
    }

/* Заголовки статей бувають довгі — тримаємо два рядки, щоб картки
   «Схожі статті» лишались однакової висоти. Пропорція 16/9 у знімків
   тут доречна: це кадри з блогу, а не флакони. */
.related-card h3 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Стрілка в картці «Схожі статті» відлітала вниз при наведенні.

   Клас .related-card використовують два різні макети. У пошуку й на
   сторінках проблем це картка-посилання, де стрілка — бейдж у правому
   верхньому куті: під неї в luneva-landing.css стоїть
   `.related-card svg { position: absolute }`. У статті картка інша:
   стрілка живе всередині кнопки «Читати далі».

   Оскільки luneva-landing.css вантажиться на всіх сторінках, його
   правило діяло й тут — іконка випадала з флексу, вирівнювання по
   центру на неї не діяло, і вона вилазила на 11px нижче кнопки.

   Повертаємо іконку в потік саме для варіанта зі стрілкою в кнопці.
   Селектор точніший за landing-івський, тож порядок підключення файлів
   ролі не грає. */
.related-card a svg,
.related-card a i[data-lucide] {
  position: static;
  top: auto;
  right: auto;
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  border: 0;
  padding: 0;
  background: none;
  color: inherit;
  box-shadow: none;
}

/* Кнопка «Читати далі» займала всю ширину картки і 48px висоти —
   візуально важила більше за сам заголовок статті. Робимо компактною:
   ширина по вмісту, нижча, стрілка поруч із текстом, а не відтиснута
   в протилежний край. */
.related-card a {
  min-height: 36px;
  width: fit-content;
  justify-self: start;
  justify-content: flex-start;
  gap: 10px;
  margin: 0 20px 20px;
  padding: 0 12px;
  font-size: 11px;
}

.related-card a svg,
.related-card a i[data-lucide] {
  width: 15px;
  height: 15px;
}

/* Бічна колонка тягнулась на всю висоту статті, а панелей у ній на
   третину — і темний фон (він працює розділювачем між панелями через
   gap: 1px) світився знизу чорною плямою на пів екрана.
   Колонка тепер заввишки рівно зі свій вміст. */
.article-sidebar {
  align-self: start;
}

/* ── Чорна пляма праворуч від статті ────────────────────────────────
   Темний фон стоїть на .article-layout і на .article-sidebar — він дає
   розділювачі через gap: 1px. Але колонка коротша за текст статті, тож
   у її місці цей фон і світився чорним на пів екрана. Скільки б панелей
   ми туди не додали, повністю зрівняти їх з довжиною статті не вийде.

   Тому темні підкладки прибираємо зовсім, а розділювачі малюємо
   рамками: тоді порожнє місце під колонкою лишається фоном сторінки. */
.article-layout,
.article-sidebar {
  background: transparent;
}

.article-sidebar {
  align-self: start;
  border-left: 1px solid var(--ink);
}

.sidebar-panel {
  border-bottom: 1px solid var(--line);
}

.sidebar-panel:last-child {
  border-bottom: 0;
}

@media (max-width: 1120px) {
  /* Колонка стає рядком під статтею — розділювач переїжджає зверху.
     1120px, бо саме на цій ширині .article-layout переходить в одну
     колонку (рядок 483 цього файлу). */
  .article-sidebar {
    border-left: 0;
    border-top: 1px solid var(--ink);
  }
}

/* ── Товари в бічній колонці ────────────────────────────────────────
   Картка та сама, що в каталозі й на головній. CSS каталогу на сторінці
   статті не підключений, тому правила скопійовані сюди — з єдиною
   поправкою на ширину: колонка 310px, тож фото нижче, а ціна з кнопкою
   стають у два рядки замість одного. */
.sidebar-products {
  padding-bottom: 24px;
}

.sidebar-product-list {
  display: grid;
  gap: 16px;
}

.sidebar-products .product-card {
  display: grid;
  grid-template-rows: auto auto auto auto;
  gap: 10px;
  padding: 16px;
  background: var(--white);
  border: 1px solid var(--line);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.sidebar-products .product-card:hover {
  transform: translate(-4px, -4px);
  border-color: var(--ink);
  box-shadow: 8px 8px 0 var(--red);
}

.sidebar-products .product-card .label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  line-height: 1.2;
  text-transform: uppercase;
}

.sidebar-products .product-card .label span.is-sale {
  color: var(--red);
}

.sidebar-products .product-card .photo {
  display: grid;
  place-items: center;
  aspect-ratio: 1 / 1;
  background: #f1ede6;
  overflow: hidden;
}

.sidebar-products .product-card .photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.32s ease, filter 0.22s ease;
}

.sidebar-products .product-card:hover .photo img {
  transform: scale(1.05);
  filter: saturate(1.08) contrast(1.06);
}

.sidebar-products .product-card strong {
  display: block;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.2;
  text-transform: uppercase;
}

/* У колонці 310px ціна й кнопка в один рядок не вміщуються — кладемо
   їх один під одним, кнопка на всю ширину картки. */
.sidebar-products .product-card .meta {
  display: grid;
  gap: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  font-weight: 900;
}

.sidebar-products .product-card .meta > span {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px;
}

.sidebar-products .product-card .meta del {
  color: var(--muted);
  font-weight: 800;
}

.sidebar-products .product-card .meta a {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--ink);
  padding: 0 12px;
  background: var(--ink);
  color: var(--white);
  font-size: 11px;
  text-transform: uppercase;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.sidebar-products .product-card .meta a:hover {
  background: var(--red);
  border-color: var(--red);
  transform: translate(-2px, -2px);
  box-shadow: 4px 4px 0 var(--ink);
}

/* Нижче 1120px колонка стає рядком на всю ширину — розкладаємо картки
   в кілька стовпчиків, інакше фото роздувається на весь екран. */
@media (max-width: 1120px) {
  .sidebar-product-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
  }

  .sidebar-products .product-card .meta {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
  }
}

@media (max-width: 700px) {
  .sidebar-product-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 420px) {
  .sidebar-product-list {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ── Фото товару: однаковий блок, товар цілком ──────────────────────
   Блок квадратний і однаковий у всіх картках; знімок вписується
   повністю.

   Картинка позиціюється абсолютно навмисно. У grid-контейнері
   `height: 100%` не мав від чого рахуватись — висота рядка невизначена,
   і браузер брав пропорцію файлу: вертикальний знімок ставав 247x424 у
   блоці 247x247, а різницю зрізав overflow. Флакон втрачав верх і низ.
   inset: 0 дає точний розмір блока, і аж тоді object-fit: contain
   працює як треба. */
.product-card .photo {
  aspect-ratio: 1 / 1;
  min-height: 0;
  height: auto;
  position: relative;
  overflow: hidden;
}

.product-card .photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: contain;
  padding: 10px;
}

/* ── Опис під заголовком, а не збоку ────────────────────────────────
   `.section-head` був сіткою у дві колонки: ліворуч надпис і заголовок,
   праворуч пояснювальний абзац. Через це заголовок ламався раніше, ніж
   треба, а текст праворуч висів окремим стовпчиком.

   Тепер одна колонка: опис іде під заголовком.

   Виняток — блоки, де праворуч не текст, а керування: стрілки гортання
   стрічки та посилання «уся категорія». Їх лишаємо в рядку із
   заголовком, інакше вони поїдуть під нього і ряд розсиплеться. */
.section-head {
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.section-head:has(.rail-arrows),
.section-head:has(> .text-link),
.section-head:has(> a),
.section-head.compact-head {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
}

/* Опис тепер займає всю ширину рядка. Обмеження 520-610px лишились від
   тих часів, коли він стояв правою колонкою — у ній це був сенс, а під
   заголовком текст просто обривався на середині. */
.section-head > p,
.section-head .lead,
.section-head > div > p.lead {
  max-width: none;
}

/* Блоки з керуванням праворуч (стрілки, посилання) не чіпаємо: там
   ліва колонка вужча навмисно, щоб керування не притискалось. */
.section-head:has(.rail-arrows) > p,
.section-head:has(> .text-link) > p,
.section-head.compact-head > p {
  max-width: 100%;
}
