:root {
  --bg:#fff;
  --ink:#111;
  --muted:#6b7280;
  --line:#e5e7eb;
  --accent:#23483e;
  --radius:14px;
  --page-pad:50px;
}
html {
  scroll-behavior: smooth;
}
/* Сбросы и базовая типографика */
* {
  box-sizing:border-box;
  font-family:'Open Sans', Arial, sans-serif;
}

html,
body {
  margin:0;
  padding:0;
  font-family:'Open Sans', Arial, sans-serif;
  color:var(--ink);
  background:var(--bg);
  /* Убрали font-synthesis-weight:none;
     чтобы шапка и футер не выглядели слишком тонко */
}

body {
  padding:0 var(--page-pad);
}

/* ===== Верхняя акцентная полоса (прозрачная зелень) ===== */
.top-accent-bar{
  background:rgba(35,72,62,0.65); /* полупрозрачный угольно-зелёный */
  color:#fff;
  text-align:center;
  font-weight:600;
  font-size:14px;
  line-height:1.2;
  width:100vw;
  margin-left:calc(50% - 50vw);
  margin-right:calc(50% - 50vw);
  padding:12px 0;
  border-radius:0;
  margin-bottom:12px;
}

/* ===== Герой-блок дивана Kubo ===== */
.sofa-card{
  display:grid;
  grid-template-columns:calc(50% + 300px) calc(50% - 300px);
  align-items:center;
  gap:clamp(12px,2vw,24px);
  border-bottom:1px solid var(--line);
  margin-left:calc(50% - 50vw - var(--page-pad) - 0.5px);
  margin-right:calc(50% - 50vw);
  width:100vw;
  max-width:100vw;
  overflow:hidden;
  padding:clamp(6px,1.2vw,16px) var(--page-pad) clamp(6px,1.2vw,16px) 0;
}

.sofa-card img{
  width:calc(100% + 1px);
  margin-left:-1px;
  height:clamp(280px,42vw,520px);
  object-fit:cover;
  object-position:left center;
  display:block;
  background:#fff;
}

.sofa-info{
  padding:0 20px;
  display:flex;
  flex-direction:column;
  justify-content:center;
}

.sofa-info h1{
  margin:0;
  font-size:22px;
  font-weight:800;
  border-bottom:3px solid var(--ink);
  padding-bottom:8px;
}

.sofa-info p{
  font-size:14px;
  line-height:1.5;
  text-align:justify;
  color:var(--muted);
  margin-top:12px;
}

/* ===== Конфигуратор дивана ===== */
.sofa-filter{
  display:grid;
  grid-template-columns:50% 50%;
  border:1px solid var(--line);
  border-radius:14px;
  overflow:hidden;
  background:var(--bg);
  margin-top:10px;
}

.filters{
  padding:8px 14px;
  border-right:1px solid var(--line);
  display:grid;
  grid-template-columns: 1fr 1fr;
  grid-template-areas:
    "shape shape"
    "len1  len2"
    "arms  chaise"
    "depth sleep"
    "comment comment";
  grid-auto-rows:minmax(52px, auto);
  gap:12px 16px;
  align-content:start;
}

.field{display:grid;gap:4px}
.field--shape{grid-area:shape}
.field--len1{grid-area:len1}
.field--len2{grid-area:len2;position:relative}
.filters:not(.is-corner) .field--len2{display:none}
.field--arms{grid-area:arms}
.field--chaise{grid-area:chaise}
.field--depth{grid-area:depth}
.field--sleep{grid-area:sleep}
.field--comment{grid-area:comment}

.label{
  font-size:14px;
  color:#333;
  letter-spacing:.2px;
  font-weight:500;
  margin-left:4px;
}

.select,
textarea.comment{
  width:100%;
  padding:8px 10px;
  border:1.5px solid #d1d5db;
  border-radius:10px;
  background:#fff;
  font-size:14px;
  font-weight:500;
  color:#1f2937;
}

textarea.comment{
  font-family:inherit;
  resize:none;
  height:60px;
}

.inline-control{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
}

.inline-control.chaise{
  margin-left:0;
}

.pills{
  display:flex;
  gap:6px;
  flex-wrap:nowrap;
  flex-shrink:0;
}

.pill{
  appearance:none;
  border:1.5px solid #d1d5db;
  background:#f8fafc;
  padding:7px 12px;
  border-radius:999px;
  font-size:13.5px;
  font-weight:500;
  cursor:pointer;
  user-select:none;
  transition:background .2s,border .2s,transform .05s;
  text-align:center;
}

.pill:hover{transform:translateY(-1px)}
.pill:focus{outline:2px solid var(--accent);outline-offset:2px}
.pill[aria-pressed="true"]{
  border-color:var(--accent);
  background:var(--accent);
  color:#fff;
}

/* Тумблер розкладного механізму */
.switch{
  position:relative;
  width:44px;
  height:22px;
  background:#cbd5d1;
  border-radius:999px;
  cursor:pointer;
  transition:background .2s,box-shadow .2s;
  flex-shrink:0;
  box-shadow:inset 0 0 3px rgba(0,0,0,.2);
}

.switch::before{
  content:"";
  position:absolute;
  top:2px;
  left:2px;
  width:18px;
  height:18px;
  background:#fff;
  border-radius:999px;
  box-shadow:0 1px 2px rgba(0,0,0,.3);
  transition:left .2s,box-shadow .2s;
}

input[type="checkbox"].toggle:checked + .switch{
  background:var(--accent);
  box-shadow:0 0 4px rgba(0,0,0,.25);
}

input[type="checkbox"].toggle:checked + .switch::before{
  left:24px;
  box-shadow:0 2px 4px rgba(0,0,0,.4);
}

/* Превʼю дивана */
.preview{
  position:relative;
  display:flex;
  align-items:center;
  justify-content:center;
  height:300px;
  width:100%;
  background:#fff;
  overflow:hidden;
}

.preview img{
  max-width:100%;
  max-height:100%;
  width:auto;
  height:auto;
  display:block;
  object-fit:contain;
}

/* ===== Вибір тканини ===== */
.fabric-selector{
  height:300px;
  margin-top:20px;
  border:1px solid var(--line);
  border-radius:14px;
  overflow:hidden;
  background:var(--bg);
}
.fabric-grid{
  height:100%;
  display:grid;
  grid-template-columns:repeat(4,1fr);
}

.fabric-col{
  display:grid;
  grid-template-rows:1fr auto;
  border-right:1px solid var(--line);
}

.fabric-col:last-child{
  border-right:none;
}

.fabric-card{
  position:relative;
  height:100%;
  background:#fafafa center/cover no-repeat;
}

.fabric-card.dimmed{
  filter:saturate(.4) brightness(.9);
  opacity:.6;
}

.fabric-title{
  position:absolute;
  inset:0;
  display:grid;
  place-items:center;
  font-weight:600;
  color:#111;
  cursor:pointer;
  text-align:center;
  padding:8px;
}

.fabric-title::after{
  content:"Натисніть, щоб обрати колір";
  position:absolute;
  bottom:14px;
  left:50%;
  transform:translateX(-50%);
  font-size:11px;
  color:#6b7280;
  background:rgba(255,255,255,.85);
  padding:4px 8px;
  border-radius:999px;
  opacity:0;
  transition:opacity .2s;
}

.fabric-title:hover::after{
  opacity:1;
}

.palette{
  position:absolute;
  inset:0;
  display:none;
  grid-template-columns:repeat(5,1fr);
  grid-auto-rows:1fr;
  gap:10px;
  padding:12px;
  align-content:stretch;
  justify-items:stretch;
  background:rgba(255,255,255,.92);
  backdrop-filter:blur(2px);
}

.sw{
  position:relative;
  width:100%;
  height:100%;
  border:none;
  border-radius:10px;
  cursor:pointer;
}

.sw-badge{
  position:absolute;
  right:6px;
  bottom:6px;
  padding:2px 6px;
  border-radius:999px;
  background:rgba(255,255,255,.9);
  font-size:11px;
  line-height:1;
  color:#111;
  box-shadow:0 1px 2px rgba(0,0,0,.15);
}

.sw:focus{outline:2px solid var(--accent);outline-offset:2px}

/* нижняя панель под карточкой ткани:
   слева "Про тканину", справа переключатель */
.fabric-select{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:10px 12px;
  gap:12px;
}

.fabric-select .switch{
  margin:0;
}

/* "Про тканину" — кликабельно, но не как кнопка */
.fabric-more{
  background:none;
  border:0;
  padding:0;
  font-size:13px;
  line-height:1.2;
  font-weight:500;
  color:#111;
  cursor:pointer;
  text-align:left;
}

.fabric-more:hover{
  color:#23483e; /* твой акцентный угольно-зелёный */
}


/* ===== Підсумок ціни дивана Kubo ===== */
.action-bar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding:16px 0 28px;
  border-top:1px solid var(--line);
  margin-top:18px;
}

.price{
  font-size:18px;
  font-weight:600;
}

.price strong{
  font-weight:700;
}

.btn-primary{
  appearance:none;
  border:none;
  border-radius:999px;
  padding:12px 18px;
  background:var(--accent);
  color:#fff;
  font-size:14px;
  font-weight:600;
  cursor:pointer;
  transition:transform .05s,box-shadow .2s;
}

.btn-primary:hover{
  box-shadow:0 6px 18px rgba(35,72,62,.28);
  transform:translateY(-1px);
}

.btn-primary:active{
  transform:translateY(0);
}

/* ===== Додаткові вироби ===== */
.addons{
  margin-top:22px;
}

.addons-header{
  background:rgba(35,72,62,0.55); /* нижняя полоса: чуть светлее */
  color:#fff;
  text-align:center;
  font-weight:600;
  font-size:14px;
  line-height:1.2;
  width:100vw;
  margin-left:calc(50% - 50vw);
  margin-right:calc(50% - 50vw);
  padding:12px 0;
  border-radius:0;
  margin-bottom:12px;
}

.addon-grid{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:20px;
}

.addon-card{
  display:flex;
  flex-direction:column;
  border:1px solid var(--line);
  border-radius:14px;
  background:#fff;
  overflow:hidden;
  min-height:320px;
}

/* ВЫСОТА КАРТИНОК КРЕСЛА / ПУФА.
   Делаем большую на десктопе и поменьше на мобилке */
.addon-media{
  height:500px; /* было 250px => увеличили как ты просил */
  background:#f8fafc center/cover no-repeat;
}

/* ===== Модалка опису тканини ===== */
.fabric-modal-backdrop{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,.4);
  display:none;
  align-items:center;
  justify-content:center;
  z-index:2147483001;
  padding:24px;
}

.fabric-modal-box{
  background:#fff;
  border-radius:14px;
  max-width:480px;
  max-height:80vh;
  overflow:auto;
  box-shadow:0 24px 60px rgba(0,0,0,.4);
  padding:24px 24px 32px 24px;
  color:#111;
  font-family:'Open Sans',Arial,sans-serif;
  line-height:1.5;
  position:relative;
}

.fabric-modal-close{
  appearance:none;
  border:0;
  background:transparent;
  font-size:16px;
  font-weight:600;
  line-height:1;
  color:#111;
  cursor:pointer;
  position:absolute;
  top:16px;
  right:20px;
}

.fabric-modal-title{
  margin:0 0 16px 0;
  font-size:16px;
  font-weight:600;
  line-height:1.3;
  color:#111;
  padding-right:32px;
  font-family:'Open Sans',Arial,sans-serif;
}

.fabric-modal-body{
  font-size:14px;
  color:#374151;
  white-space:pre-line;
  font-family:'Open Sans',Arial,sans-serif;
}

@media (max-width:500px){
  .fabric-modal-box{
    width:100%;
    max-width:100%;
    max-height:85vh;
    border-radius:12px;
    padding:20px 20px 28px 20px;
  }

  .fabric-modal-title{
    font-size:16px;
  }
}

@media (max-width:500px){
  .addon-media{
    height:300px;
  }
}

.addon-row{
  display:flex;
  align-items:stretch;
  justify-content:space-between;
  gap:12px;
  padding:12px;
}

.addon-body{
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  align-items:flex-start;
  row-gap:4px;
  flex:1;
  min-width:0;
}

.addon-title{
  font-weight:600;
  font-size:14px;
  color:#111;
}

.addon-gabarit{
  font-size:13px;
  color:#374151;
  font-weight:500;
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  column-gap:4px;
  row-gap:2px;
}

.addon-gabarit-val{
  font-weight:600;
  color:#111;
}

.addon-price{
  font-size:13px;
  font-weight:600;
  color:#111;
}

/* Правая колонка управления */
.addon-ctrl{
  display:flex;
  flex-direction:column;
  align-items:stretch;
  justify-content:space-between;
  gap:8px;
  flex-shrink:0;
  min-width:130px;
}

.qty-control{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
  width:100%;
  background:transparent;
  color:var(--accent);
  border:1px solid var(--accent);
  border-radius:999px;
  padding:10px 16px;
  font-size:13px;
  font-weight:600;
  line-height:1;
}

.qty-btn{
  background:transparent;
  border:0;
  color:inherit;
  font-size:16px;
  line-height:1;
  font-weight:600;
  cursor:pointer;
  padding:0 4px;
}

.qty-val{
  min-width:24px;
  text-align:center;
  color:inherit;
  font-weight:600;
}

.btn-add{
  appearance:none;
  border:none;
  border-radius:999px;
  padding:10px 16px;
  background:var(--accent);
  color:#fff;
  font-size:13px;
  font-weight:600;
  cursor:pointer;
  white-space:nowrap;
  transition:transform .05s,box-shadow .2s;
  width:100%;
  text-align:center;
}

.btn-add:hover{
  box-shadow:0 6px 18px rgba(35,72,62,.28);
  transform:translateY(-1px);
}

.btn-add:active{
  transform:translateY(0);
}

/* ===== Контентні статті (SEO-блок) ===== */
.articles{
  margin-top:80px;
  margin-bottom:80px;
}

.article-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:80px; /* 🔥 увеличили межколоночный отступ */
  max-width:1100px; /* 🔥 немного сузили общий контейнер */
  margin:0 auto;
  align-items:start;
}


.article-card{
  border-top:1px solid var(--line);
  padding-top:20px;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  min-height:100%;
}

.article-card h3{
  margin:0 0 12px 0;
  font-size:16px;
  line-height:1.3;
  font-weight:600;
  font-family:'Open Sans',Arial,sans-serif;
  color:#111;
}

.article-card p{
  margin:0 0 16px 0;
  font-size:14px;
  line-height:1.5;
  font-family:'Open Sans',Arial,sans-serif;
  color:#374151;
  flex-grow:1;
}

.article-link{
  display:inline-block;
  font-size:14px;
  line-height:1.4;
  font-weight:500;
  color:#111;
  text-decoration:none;
  border-bottom:2px solid #111;
  padding-bottom:2px;
  transition:border-bottom-width .15s;
  background:none;
  border-radius:0;
  border-left:0;
  border-right:0;
  border-top:0;
  cursor:pointer;
  font-family:'Open Sans',Arial,sans-serif;
  align-self:flex-start;
  margin-top:auto;
}

.article-link:hover{
  border-bottom-width:3px;
}

/* ===== Модалка статей ===== */
.article-modal-backdrop{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,.4);
  display:none;
  align-items:center;
  justify-content:center;
  z-index:2147483000;
  padding:24px;
}

.article-modal-box{
  background:#fff;
  border-radius:14px;
  max-width:600px;
  max-height:80vh;
  overflow:auto;
  box-shadow:0 24px 60px rgba(0,0,0,.4);
  padding:24px 24px 32px 24px;
  color:#111;
  font-family:'Open Sans',Arial,sans-serif;
  line-height:1.5;
  position:relative;
}

.article-modal-close{
  appearance:none;
  border:0;
  background:transparent;
  font-size:16px;
  font-weight:600;
  line-height:1;
  color:#111;
  cursor:pointer;
  position:absolute;
  top:16px;
  right:20px;
}

.article-modal-title{
  margin:0 0 16px 0;
  font-size:18px;
  font-weight:600;
  line-height:1.3;
  color:#111;
  padding-right:32px;
  font-family:'Open Sans',Arial,sans-serif;
}

.article-modal-body{
  font-size:14px;
  color:#374151;
  white-space:pre-line;
  font-family:'Open Sans',Arial,sans-serif;
}

/* ===== Скрытый текст для доступности ===== */
.sr-only{
  position:absolute;
  width:1px;
  height:1px;
  padding:0;
  margin:-1px;
  overflow:hidden;
  clip:rect(0,0,0,0);
  white-space:nowrap;
  border:0;
}

/* ===== РЕСПОНСИВ ===== */
@media (max-width:1200px){
  .sofa-card{
    grid-template-columns:1fr;
    padding-right:var(--page-pad);
  }
  .sofa-card img{
    height:clamp(240px,48vw,420px);
  }
  .sofa-info{
    padding-top:8px;
  }

  .sofa-filter{
    grid-template-columns:1fr;
  }
  .filters{
    border-right:0;
    border-bottom:1px solid var(--line);
  }

  .addon-grid{
    grid-template-columns:1fr;
  }

  .article-grid{
    grid-template-columns:1fr;
    padding:0 16px;
  }
}

@media (max-width:500px){
  .article-modal-box{
    width:100%;
    max-width:100%;
    max-height:85vh;
    border-radius:12px;
    padding:20px 20px 28px 20px;
  }

  .article-modal-title{
    font-size:16px;
  }

  .sofa-card{
    grid-template-columns:1fr;
    padding-right:var(--page-pad);
  }
  .sofa-card img{
    height:clamp(240px,48vw,420px);
  }
  .sofa-info{
    padding-top:8px;
  }

  .sofa-filter{
    grid-template-columns:1fr;
  }
  .filters{
    border-right:0;
    border-bottom:1px solid var(--line);
  }

  .addon-grid{
    grid-template-columns:1fr;
  }
}
.article-image-card{
  display:flex;
  justify-content:center;
}

.article-image-card img{
  width:100%;
  max-width:420px; /* 🔥 ограничение ширины */
  height:auto;
  border-radius:8px;
}
/* Вертикальная линия-разделитель между статьями */
.article-divider{
  width: 2px;                   /* толщина линии */
  background: rgba(35, 72, 62, 0.35);  /* медно-зелёный полупрозрачный */
  margin: 0 auto;               /* центрируем в колонке */
  height: 100%;                 /* растягивается по высоте обеих статей */
  border-radius: 2px;
}
@media (max-width: 720px){
  .article-divider{
    display: none;
  }
}
/* === Повноекранна палiтра тканини (мобільна версія диванів) === */
.sofa-fabric-overlay{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,0.6);
  display:none;
  align-items:stretch;
  justify-content:center;
  z-index:2147483600;
}

.sofa-fabric-overlay.is-open{
  display:flex;
}

.sofa-fabric-box{
  margin:16px;
  background:#fff;
  border-radius:16px;
  width:100%;
  max-width:480px;
  display:flex;
  flex-direction:column;
  padding:16px 16px 24px;
  box-shadow:0 20px 50px rgba(0,0,0,0.35);
}

.sofa-fabric-title{
  font-size:15px;
  font-weight:600;
  text-align:center;
  margin-bottom:8px;
}

.sofa-fabric-grid{
  flex:1;
  overflow-y:auto;
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr)); /* по два квадрата в ряд */
  gap:10px;
  padding-top:8px;
  padding-bottom:8px;
}

.sofa-fabric-swatch{
  position:relative;
  width:100%;
  aspect-ratio:1/1;              /* квадрат */
  border-radius:12px;
  border:none;
  padding:0;
  background-size:cover;
  background-position:center;
  cursor:pointer;
}

.sofa-fabric-swatch.is-selected{
  outline:2px solid var(--accent);
  outline-offset:2px;
}

.sofa-fabric-choose{
  position:fixed;
  display:none;
  padding:8px 14px;
  border-radius:999px;
  border:none;
  background:var(--accent);
  color:#fff;
  font-size:13px;
  font-weight:600;
  z-index:2147483601;
  box-shadow:0 6px 16px rgba(0,0,0,0.35);
}

/* ================= MOBILE LAYOUT (≤768px) ================= */
@media (max-width: 600px) {

  html,
  body {
    margin: 0;
    padding: 0;
    width: 100%;
    overflow-x: hidden;
  }

  /* общий отступ для блоков */
  main {
    padding: 0;
  }

  /* ---------- 1. HERO-ПРЕВЬЮ ---------- */
  .sofa-card {
    display: block;
    margin: 0 0 16px;
    padding: 0;
    width: 100%;
    max-width: 100%;
  }

  .sofa-card > img {
    display: block;
    width: 100%;
    height: auto;
  }

  /* ---------- 2. НАЗВАНИЕ + ОПИСАНИЕ ---------- */
  .sofa-info {
    padding: 0 16px 24px;
    max-width: 100%;
  }

  .sofa-info h1 {
    font-size: 24px;
    margin: 8px 0 6px;
  }

  /* ---------- 3. ФИЛЬТРЫ ДИВАНА: НАЗВАНИЕ СВЕРХУ, ОКНО СНИЗУ ---------- */
  .sofa-filter {
    display: block;
    padding: 0 16px;
    margin: 0 0 20px;
    width: 100%;
    border: 0;
    border-radius: 0;
    background: transparent;
  }

  .sofa-filter .filters {
    padding: 0 0 16px;
    border: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .sofa-filter .field {
    width: 100%;
  }

  .sofa-filter .label {
    font-size: 14px;
  }

  .sofa-filter .select,
  .sofa-filter textarea.comment {
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }

  .sofa-filter .inline-control {
    align-items: flex-start;
  }

  .sofa-filter .preview {
    position: relative;
    width: 100%;
    height: auto;
    padding: 0;
    margin: 0;
  }

  .sofa-filter .preview img {
    display: block;
    width: 100%;
    height: auto;
  }

  /* Оставляю правила для filter-strip/filter-preview — они тебе не мешают,
     но дают такую же сетку, если позже диваны/кровати будут использовать один шаблон */

  .filter-strip {
    padding: 0 16px;
    margin: 0 0 20px;
    width: 100%;
  }

  .filter-bar {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 0;
    margin: 0;
    background: transparent;
    border-radius: 0;
    white-space: normal;
  }

  .filter-item {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    width: 100%;
  }

  .filter-item .label,
  .filter-item label {
    font-size: 14px;
  }

  .select,
  .filter-item select,
  .filter-item .option-list,
  .filter-item .option-list button {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    text-align: left;
  }

  .filter-sep {
    display: none;
  }

  /* ---------- 4. ПРЕВЬЮ – ТОЛЬКО ВИД СВЕРХУ (для шаблонов с filter-preview) ---------- */
  .filter-preview {
    padding: 0 16px;
    margin: 0 0 24px;
    width: 100%;
  }

  .preview-grid {
    display: block;
  }

  #filterPreviewLeft {
    display: none;
  }

  .preview-grid img,
  #filterPreviewRight {
    display: block;
    width: 100%;
    height: auto;
    margin: 0;
  }

    /* ---------- 5. ТКАНИ – ПО ОДНОЙ НА ВСЮ ШИРИНУ (ТОЛЬКО МОБИЛЬНАЯ ВЕРСИЯ) ---------- */
  .fabric-selector {
    padding: 0 16px 24px;
    height: auto;        /* вместо фиксированных 300px */
    margin-top: 20px;
    border: none;
    border-radius: 0;
    overflow: visible;
    background: transparent;
  }

  .fabric-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
    height: auto;
  }

  .fabric-card {
    width: 100%;
    min-height: 90px;
    border-radius: 12px;
    overflow: hidden;
    background-size: cover;
    background-position: center;
  }


  /* ---------- 6. ЦЕНА + КНОПКА ---------- */
  .action-bar {
    padding: 0 16px 24px;
    margin: 0;
    width: 100%;
    display: block;
  }

  .action-bar .price {
    margin-bottom: 12px;
  }

  .action-bar .btn-primary,
  .action-bar button {
    width: 100%;
    padding: 14px 16px;
    border-radius: 10px;
  }

  /* ---------- 7. ДОП. ТОВАРЫ – ПО ОДНОЙ КАРТОЧКЕ ---------- */
  .addons {
    padding: 0 16px 32px;
  }

  .addon-grid {
    display: flex;
    flex-direction: column;
    gap: 24px;
    width: 100%;
  }

  .addon-card {
    width: 100%;
    max-width: 100%;
  }

  .addon-media {
    width: 100%;
    min-height: 220px;
    background-size: cover;
    background-position: center;
  }

  /* ---------- 8. СТАТЬИ – ОДНА КОЛОНКА, ТОЛЬКО ПЕРВАЯ ---------- */
  .articles {
    padding: 0 16px 40px;
    margin: 40px 0 0;
  }

  .article-grid {
    display: flex;
    flex-direction: column;
    gap: 24px;
    max-width: 100%;
  }

  .article-card {
    width: 100%;
    max-width: 100%;
  }

  .article-card img {
    width: 100%;
    height: auto;
    display: block;
    margin-bottom: 12px;
  }

  /* скрываем вторую и третью статьи на мобайле,
     чтобы не было «второй статьи в футере» и лишней дырки */
  .article-grid .article-card:nth-child(n + 2) {
    display: none;
  }

  /* ---------- 9. ПОДВАЛ ---------- */
  .site-footer {
    padding: 24px 16px;
    margin: 0;
    width: 100%;
  }
}

/* Цвет ссылки "Меню" в шапке (глобально, не только мобилка) */
.site-header a,
.site-header a:visited {
  color: #111827;
  text-decoration: none;
}
.site-header a:hover {
  color: var(--r-green);
}

/* === links and menu color fix === */
a, a:visited, .site-header a, .site-header a:visited,
.filter-bar a, .filter-item a {
  color: #111 !important;
  text-decoration: none !important;
}

a:hover, .site-header a:hover, .filter-bar a:hover, .filter-item a:hover {
  color: #000 !important;
}
