:root{
  --brand-blue:#0b5ed7;
  --brand-blue-dark:#094fb5;
  --text-on-blue:#fff;
  --container-max:1280px;
  --h:70px;
  --radius:10px;
}

/* Сброс / база */
*{box-sizing:border-box}
html,body{margin:0}
body{font-family:system-ui,-apple-system,"Segoe UI",Roboto,Ubuntu,Arial,sans-serif;color:#111}

/* ---------- HEADER ---------- */
.site-header{background:var(--brand-blue);color:var(--text-on-blue);position:relative;z-index:20}
.header-inner{
  height:var(--h);
  max-width:var(--container-max);
  margin:0 auto;
  display:flex;
  align-items:center;
  gap:32px;
  padding:0 16px;
}

/* ЛОГО: картинка + название */
.logo{display:flex;align-items:center;gap:10px;color:var(--text-on-blue);text-decoration:none;flex:0 0 auto}
.logo-img{height:34px;width:auto;display:block}
.logo-text{font-weight:700;letter-spacing:.2px;white-space:nowrap}

/* ---------- ПОИСК (десктопная капсула) ---------- */
.search-form{
  display:flex;align-items:center;
  height:44px;
  background:#fff;border-radius:var(--radius);overflow:hidden;
  border:1px solid rgba(0,0,0,.06);
  box-shadow:inset 0 0 0 1px rgba(0,0,0,.03);

  flex:1 1 560px;
  min-width:420px;
  margin:0 auto;
}
.search-input{
  flex:1;height:100%;
  border:0;outline:none;
  padding:0 12px;font-size:15px;
}
.seg-btn{height:100%;min-width:48px;border:0;cursor:pointer;border-left:1px solid rgba(0,0,0,.08)}
/* крестик очистки */
.btn-clear{background:#fff url("images/close_black.svg") center/18px no-repeat}
.btn-clear:hover{background-color:#f5f5f5}
/* синяя кнопка поиска */
.btn-submit{
  min-width:72px;
  background:var(--brand-blue) url("images/search.svg") center/20px no-repeat;
  color:#fff;border-left:1px solid rgba(255,255,255,.45)
}
.btn-submit:hover{background:var(--brand-blue-dark)}

/* ---------- НАВИГАЦИЯ СПРАВА ---------- */
.nav{display:flex;align-items:center;gap:24px;flex:0 0 auto}
.nav a{
  color:var(--text-on-blue);text-decoration:none;font-weight:500;
  padding:6px 2px;border-radius:6px;line-height:1;white-space:nowrap
}
.nav a:hover{text-decoration:underline}
.phone{margin-left:12px;padding-left:16px;border-left:1px solid rgba(255,255,255,.35)}
.phone {
  display: flex;
  flex-direction: column;
  margin-left: 12px;
  padding-left: 12px;
  border-left: 1px solid rgba(255,255,255,.35);
  gap: 4px;
}
.phone a { color:#fff; font-weight:700; text-decoration:none; line-height:.9; }

/* ---------- МОБ. КНОПКИ В ШАПКЕ ---------- */
.search-toggle{
  display:none;width:36px;height:36px;border:none;border-radius:8px;cursor:pointer;
  background:url("images/search.svg") center/70% no-repeat;flex:0 0 auto
}
.burger{
  display:none;width:36px;height:36px;border:none;cursor:pointer;border-radius:8px;background:transparent;flex:0 0 auto
}
.burger .line{display:none}
.burger{background:url("images/menu.svg") center/70% no-repeat}
.burger.is-open{background-image:url("images/close_white.svg")}

/* ---------- ПАНЕЛИ ДЛЯ МОБИЛКИ ---------- */
.nav-panel{
  position:absolute;top:var(--h);left:0;right:0;background:var(--brand-blue);
  display:flex;flex-direction:column;gap:4px;padding:10px 16px;
  border-top:1px solid rgba(255,255,255,.25);box-shadow:0 10px 20px rgba(0,0,0,.15);z-index:30
}
.nav-panel[hidden]{display:none}
.nav-panel a{color:#fff;padding:12px 8px;text-decoration:none;font-weight:600;border-radius:8px}
.nav-panel a:hover{background:rgba(255,255,255,.08)}

.search-panel{
  position:absolute;top:var(--h);left:0;right:0;
  background:var(--brand-blue);padding:10px 16px;
  border-top:1px solid rgba(255,255,255,.25);box-shadow:0 10px 20px rgba(0,0,0,.15);z-index:40;
  display:flex;gap:0
}
.search-panel[hidden]{display:none}
.search-panel input{
  flex:1;height:44px;background:#fff;
  border:1px solid rgba(255,255,255,.9);border-right:none;
  border-radius:var(--radius) 0 0 var(--radius);
  padding:0 12px;font-size:15px;outline:none
}
.search-panel .m-clear{
  width:52px;height:44px;cursor:pointer;display:none;position:relative;
  background:#fff url("images/close_black.svg") center/18px no-repeat;
  border-top:1px solid rgba(255,255,255,.9);
  border-bottom:1px solid rgba(255,255,255,.9);
  border-left:none;border-right:none;border-radius:0
}
.search-panel .m-clear::before{
  content:"";position:absolute;left:0;top:6px;bottom:6px;width:1px;background:rgba(0,0,0,.1)
}
.search-panel button[type="submit"]{
  min-width:72px;height:44px;cursor:pointer;
  border:1px solid rgba(255,255,255,.9);border-left:none;
  border-radius:0 var(--radius) var(--radius) 0;
  background:var(--brand-blue) url("images/search.svg") center/20px no-repeat;color:#fff
}
.search-panel button[type="submit"]:hover{background:var(--brand-blue-dark)}

/* ---------- АДАПТИВ ШАПКИ ---------- */
@media (max-width:1280px){
  .header-inner{gap:24px}
  .search-form{flex-basis:520px}
  .nav{gap:20px}
}
@media (max-width:1100px){
  .search-form{flex:1 1 460px;min-width:360px}
  .nav{gap:16px}
}
@media (max-width:1050px){
  .search-form{display:none}
  .nav{display:none}
  .search-toggle{display:inline-block;margin-left:auto}
  .burger{display:inline-block;margin-left:8px}
}
@media (max-width:480px){
  .header-inner{gap:12px}
  .logo{padding-left:4px}
}
@media (max-width:420px){
  .logo-text{display:none}
}

/* -------- Категории (старый вид карточек на главной) -------- */
.container { max-width: var(--container-max); margin: 0 auto; }
.catalog-title {
  margin: 0 0 20px; font-size: 28px; font-weight: 800;
  letter-spacing: .2px; color:#111;
}

/* сетка карточек */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

/* карточка категории */
.cat-card {
  position: relative;
  background: #fff;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 14px;
  box-shadow: 0 6px 18px rgba(0,0,0,.06);
  padding: 16px;
  text-decoration: none;
  color: inherit;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
}
.cat-card:hover { box-shadow: 0 8px 24px rgba(11,94,215,.15); border-color: rgba(11,94,215,.25); }
.cat-title { font-weight: 800; font-size: 18px; margin: 0; }
.cat-caption { color:#666; font-size:14px; }
.cat-icon { opacity:.5; width: 120px; height: 80px; object-fit:contain; }

/* «Показать всё» */
.cat-more{
  margin-top: 10px;
  display:inline-flex;
  gap:8px;
  align-items:center;
  font-weight:700;
  text-decoration:none;
  color: var(--brand-blue);
}
.cat-more::after{
  content:""; width: 16px; height: 16px;
  background: url("images/arrow.png") center/100% no-repeat;
  transform: rotate(-90deg);
}

/* ----- PRODUCTS LIST ----- */
.plist { }
.crumbs{ margin: 0 0 8px; color:#666; font-size:14px; }
.crumbs a{ color: var(--brand-blue); text-decoration:none; }
.crumbs a:hover{ text-decoration:underline; }

.plist-head{ display:flex; align-items:baseline; gap:16px; margin-bottom:12px }
.plist-title { margin:0; font-size:26px; font-weight:800; }
.plist-caption { color:#666; font-size:14px; }
.plist-status { margin-top:8px; }

.skeleton-list { display:flex; flex-direction:column; gap:12px; }
.skeleton-row {
  height:120px; border-radius:14px; background: linear-gradient(90deg,#eee 25%,#f5f5f5 37%,#eee 63%);
  background-size:400% 100%; animation: sk 1.2s ease-in-out infinite;
  border:1px solid rgba(0,0,0,.06);
}
@keyframes sk{ 0%{background-position:100% 50%} 100%{background-position:0 50%} }

.plist-grid { display:flex; flex-direction:column; gap:12px; }

.product-card{
  display:flex; gap:16px; text-decoration:none; color:inherit; align-items:center;
  background:#fff; border:1px solid rgba(0,0,0,.08); border-radius:14px;
  box-shadow:0 6px 18px rgba(0,0,0,.06); padding:14px 16px;
}
.product-card:hover{ box-shadow:0 8px 24px rgba(11,94,215,.15); border-color:rgba(11,94,215,.25); }

.p-img-wrap{ width:92px; height:92px; flex:0 0 auto; display:flex; align-items:center; justify-content:center; }
.p-img{ max-width:100%; max-height:100%; object-fit:contain; display:block; }
.p-body{ display:grid; gap:6px; }
.p-title{ font-weight:800; font-size:18px; }
.p-part{ color:#555; font-size:14px; }
.p-stock{ font-size:13px; font-weight:700; padding:4px 8px; border-radius:8px; width:max-content; }
.p-stock.ok{ background:rgba(25,135,84,.12); color:#1a7f56; border:1px solid rgba(25,135,84,.25); }
.p-stock.no{ background:rgba(220,53,69,.12); color:#a31222; border:1px solid rgba(220,53,69,.25); }

.plist-foot{ display:flex; justify-content:center; margin-top:16px; }
.btn-more{
  padding:12px 18px; border-radius:10px; border:1px solid var(--brand-blue);
  background:var(--brand-blue); color:#fff; font-weight:800; cursor:pointer;
}
.btn-more:hover{ background:var(--brand-blue-dark); border-color:var(--brand-blue-dark); }

/* адаптив карточек товаров */
@media (max-width:700px){
  .product-card{flex-direction:column !important;align-items:stretch !important}
}

/* ----- ABOUT POPOVER ----- */
.about-popover{
  position:absolute; inset:auto auto auto auto;
  min-width:280px; background:#fff;
  border:1px solid rgba(0,0,0,.08); border-radius:12px; box-shadow:0 12px 24px rgba(0,0,0,.18);
  z-index:50; padding:0;
}
.about-popover[hidden]{ display:none; }

.about-popover__inner{ padding:12px 12px 14px; }
.about-popover__title{
  margin:0 0 8px;
  font-weight:800; letter-spacing:.2px;
  font-size:16px; color:#111;
}
.about-popover__content{ color:#444; display:grid; gap:4px; margin-bottom:10px; }
.about-popover__close{
  border:1px solid var(--brand-blue);
  background:var(--brand-blue);
  color:#fff;
  border-radius:8px;
  padding:8px 12px;
  cursor:pointer;
  font-weight:700;
}
.about-popover__close:hover{ background:var(--brand-blue-dark); border-color:var(--brand-blue-dark); }

/* На совсем узких экранах — ограничим ширину и перенесём строки */
@media (max-width:420px){
  .about-popover{ min-width:200px; max-width:calc(100vw - 20px); }
}

/* =========================
   NEW (2025-09): сайдбар каталога + слайдер
   Ничего старого не удаляем. Добавлены только новые классы,
   чтобы существующие страницы продолжили работать.
========================= */

/* Общий двухколоночный макет */
.layout{
  display:grid;
  grid-template-columns:280px minmax(0,1fr);
  gap:16px;
  padding:24px 16px 48px;
}
@media (max-width:1000px){
  .layout{ grid-template-columns:1fr; padding:16px 12px 28px; }
}

/* Левый сайдбар с категориями */
.sidebar{
  background:#fff;
  border:1px solid rgba(0,0,0,.08);
  border-radius:14px;
  overflow:hidden;
  box-shadow:0 6px 18px rgba(0,0,0,.06);
}
.side-head{
  padding:12px 14px;
  border-bottom:1px solid rgba(0,0,0,.06);
  background:#fff7bf; /* мягкий «жёлтый», как на референсе */
}
.side-title{ font-weight:800; letter-spacing:.2px; }

.side-cats{ list-style:none; margin:0; padding:6px 0; }
.side-item{ position:relative; }
.side-link{
  display:flex; align-items:center; gap:10px; justify-content:flex-start;
  padding:12px 14px; text-decoration:none; color:inherit;
  border-radius:8px; margin:2px 6px;
}
.side-link:hover{ background:#f5f8ff; }
.side-item.has-sub > .side-link{ padding-right:44px; }

/* кнопка-стрелка (для мобилок) */
.side-open{
  display:none; position:absolute; right:8px; top:50%; transform:translateY(-50%);
  width:28px; height:28px; border:none; border-radius:8px; background:#fff;
  background-image:url("images/arrow.png"); background-repeat:no-repeat; background-position:center; background-size:14px;
  cursor:pointer; box-shadow:inset 0 0 0 1px rgba(0,0,0,.08)
}
.side-item.open > .side-open{ transform:translateY(-50%) rotate(90deg); }

/* подкатегории */
.side-sub{
  display:none; position:absolute; left:100%; top:0; min-width:260px;
  list-style:none; margin:0; padding:6px 4px; background:#fff;
  border:1px solid rgba(0,0,0,.08);
  border-radius:12px; box-shadow:0 12px 24px rgba(0,0,0,.12);
  z-index:10;
}
.side-sub li a{
  display:flex; align-items:center; justify-content:space-between;
  text-decoration:none; color:#111; padding:10px 12px; border-radius:8px;
}
.side-sub li a:hover{ background:#f5f8ff; }

/* hover-поведение для десктопа */
@media (pointer:fine){
  .side-item.has-sub:hover > .side-sub{ display:block; }
}

/* мобильное поведение: раскрытие по клику */
@media (max-width:1000px){
  .side-open{ display:block; }
  .side-sub{ position:static; border:none; box-shadow:none; padding:0 0 8px 12px; }
  .side-item.open > .side-sub{ display:block; }
}

/* Центральная область + слайдер */
.center{ min-height:420px; }
.hero-slider{
  position:relative; height:460px; border-radius:14px; overflow:hidden; background:#111;
  border:1px solid rgba(0,0,0,.08); box-shadow:0 6px 18px rgba(0,0,0,.06);
}
.hero-slide{
  position:absolute; inset:0; opacity:0; transition:opacity .35s ease;
  display:flex; align-items:flex-end;
}
.hero-slide.is-active{ opacity:1; }
.hero-cover{ position:absolute; inset:0; background:
  radial-gradient(70% 140% at 80% 0%, rgba(255,255,255,.06), transparent 60%),
  linear-gradient(180deg, rgba(8,102,243,.15), transparent 60%); }
.hero-caption{
  position:relative; margin:24px; max-width:680px; background:rgba(0,0,0,.45);
  color:#fff; padding:18px 20px; border-radius:12px; backdrop-filter:blur(2px);
}
.btn-hero{
  display:inline-block; margin-top:10px; padding:10px 14px; border-radius:10px;
  border:1px solid #fff; color:#fff; text-decoration:none;
}
.btn-hero:hover{ background:rgba(255,255,255,.12); }

/* стрелки навигации */
.hero-nav{
  position:absolute; top:50%; transform:translateY(-50%); width:40px; height:40px;
  border:none; border-radius:50%; cursor:pointer;
  background:rgba(255,255,255,.8) url("images/arrow.png") center/16px no-repeat;
}
.hero-prev{ left:10px; transform:translateY(-50%) rotate(180deg); }
.hero-next{ right:10px; }

/* Мелкий адаптив */
@media (max-width:600px){
  .hero-slider{ height:360px; }
  .hero-caption{ margin:14px; font-size:14px; }
}


/* =========================
   PATCH 2025-09-21 — Sidebar, submenu, price, pager
   (добавить в КОНЕЦ файла)
========================= */

/* 1) Сайдбар: без жёлтого, чуть левее, шире и не растягивается по высоте ряда */
.layout{ align-items: start; } /* высота сайдбара = по контенту */
@media (min-width:1000px){
  .layout{ grid-template-columns: 340px minmax(0,1fr); } /* «сайдбар побольше» */
}
@media (min-width:1400px){
  .layout{ grid-template-columns: 360px minmax(0,1fr); } /* на очень широких ещё + */
}
.sidebar{
  position: relative;
  overflow: visible;             /* чтобы подкатегории не обрезались */
  z-index: 5;
}
@media (min-width:1000px){
  .sidebar{ margin-left: -8px; } /* «чуть левее» на десктопе */
}
.side-head{ background:#fff; }    /* убрали жёлтый фон */
.side-cats{ padding:8px 0; }

/* 2) Подкатегории: показываются справа при наведении */
.side-item.has-sub:hover > .side-sub{ display:block; } /* десктоп */
.side-sub{
  left: calc(100% - 6px); /* без зазора, чтобы курсор не «падал» */
  top: -2px;
  z-index: 60;            /* поверх слайдера/контента */
}

/* 3) Цена: жирная и по правому краю на ПК; на мобилках – как было */
.p-price{
  margin-left: auto;
  min-width: 160px;
  text-align: right;
  font-weight: 800;         /* жирная на десктопе */
  font-size: 18px;
}
@media (max-width:700px){
  .p-price{
    margin-left: 0;
    min-width: 0;
    text-align: left;
    font-weight: 600;       /* не жирная на мобилке */
    font-size: 16px;
  }
}

/* 4) Пагинация (переключение страниц) */
.pager{
  display:flex;
  gap:6px;
  justify-content:center;
  align-items:center;
  flex-wrap:wrap;
  margin:16px 0 40px;
}
.pg-btn{
  display:inline-flex;
  justify-content:center;
  align-items:center;
  height:36px;
  min-width:36px;
  padding:0 10px;
  border-radius:10px;
  border:1px solid rgba(11,94,215,.35);
  background:#fff;
  color:var(--brand-blue);
  font-weight:700;
  text-decoration:none;
  box-shadow:0 1px 2px rgba(0,0,0,.04);
}
.pg-btn:hover{
  border-color:var(--brand-blue);
  box-shadow:0 2px 6px rgba(11,94,215,.18);
}
.pg-btn.is-current{
  background:var(--brand-blue);
  border-color:var(--brand-blue);
  color:#fff;
  cursor:default;
}
.pg-btn.is-disabled{
  color:#9aa7b2;
  background:#f3f6f9;
  border-color:#e1e8f5;
  cursor:default;
  box-shadow:none;
}
.pg-ellipsis{ padding:0 6px; color:#9aa7b2; }

/* =========================
   PATCH 2025-09-21 (v2)
   Sidebar arrows + submenu alignment + mobile fixes
========================= */

/* сайдбар не обрезает подменю */
.sidebar{ overflow:visible; }

/* паддинг и фон заголовка уже убирали – оставляем белым */
.side-head{ background:#fff; }

/* --- стрелки у категорий с подкатегориями --- */
.side-item.has-sub > .side-link{
  padding-right:28px; /* место под стрелку */
  position:relative;
}
.side-item.has-sub > .side-link::after{
  content:"";
  position:absolute; right:12px; top:50%; transform:translateY(-50%);
  width:14px; height:14px; opacity:.65;
  background:url("images/arrow.png") center/14px 14px no-repeat; /* стрелка вправо */
}
@media (pointer:fine){
  .side-item.has-sub:hover > .side-link::after{ opacity:.95; }
}

/* --- ровное позиционирование подкатегорий справа от строки --- */
.side-item{ position:relative; } /* якорь для абсолютного меню */
.side-sub{
  position:absolute; top:0; left:calc(100% - 2px);  /* прилипает к правому краю строки */
  min-width:260px; z-index:100;                      /* всегда поверх слайдера */
  list-style:none; margin:0; padding:6px 4px;
  background:#fff; border:1px solid rgba(0,0,0,.08);
  border-radius:12px; box-shadow:0 12px 24px rgba(0,0,0,.12);
}
.side-sub li a{
  display:flex; align-items:center; justify-content:flex-start; /* не растягиваем */
  text-decoration:none; color:#111; padding:10px 12px; border-radius:8px;
}
.side-sub li a:hover{ background:#f5f8ff; }

/* --- мобильное поведение: раскрытие в поток, стрелка поворачивается --- */
@media (max-width:1000px){
  /* старую белую кнопку скрываем, чтобы не торчала в подсписках */
  .side-open{ display:none !important; }

  /* стрелка в строке показывает «вниз», при открытии — «вверх» */
  .side-item.has-sub > .side-link::after{ transform:translateY(-50%) rotate(90deg); }
  .side-item.open > .side-link::after{ transform:translateY(-50%) rotate(-90deg); }

  /* подкатегории встают внутрь списка с отступом */
  .side-sub{
    position:static; left:auto; top:auto; min-width:unset; z-index:auto;
    border:none; border-radius:0; box-shadow:none; padding:0 0 8px 16px;
  }
  .side-sub li a{ padding:10px 6px; }
}


/* PATCH: кликабельность кнопки на слайде */
.hero-cover{ pointer-events:none; z-index:1; }
.hero-caption{ position:relative; z-index:2; }
.hero-nav{ z-index:3; }


/* PATCH: фото-фон для слайдов через CSS-переменную */
.hero-cover{
  /* нижний слой — фото, поверх два мягких градиента */
  background-image:
    radial-gradient(70% 140% at 80% 0%, rgba(255,255,255,.06), transparent 60%),
    linear-gradient(180deg, rgba(0,0,0,.15), rgba(0,0,0,.55) 65%),
    var(--hero-img, none);
  background-size: auto, auto, cover;
  background-position: 50% 0, 50% 0, center;
  background-repeat:no-repeat;
  pointer-events:none;         /* клики не перехватывает (кнопка кликабельна) */
  z-index:1;
}
.hero-caption{ position:relative; z-index:2; }
.hero-nav{ z-index:3; }


/* PATCH 2025-09-21 — чуть больше слайдер (адаптивная высота) */
.center{ min-height: 560px; } /* чтобы контейнер тянулся под новый размер */

.hero-slider{
  /* раньше было ~460px; делаем плавно больше на десктопах */
  height: clamp(540px, 58vh, 700px);
}

/* Чуть больше стрелки на большом экране, чтобы пропорции не терялись */
@media (min-width: 1200px){
  .hero-nav{ width:48px; height:48px; }
}

/* На планшетах оставим поменьше */
@media (max-width: 900px){
  .hero-slider{ height: clamp(440px, 50vh, 540px); }
}

/* На телефонах — прежний компактный размер */
@media (max-width: 600px){
  .hero-slider{ height: 420px; }  /* раньше было 360 — можно вернуть 360, если надо */
}
/* =========================
   IMAGE MODAL (full patch)
   Центрирование, безопасные размеры, блокировка фона,
   курсор-лупа на превью
========================= */

/* курсор-лупа на картинке карточки */
.p-img { cursor: zoom-in; }

/* корневой контейнер модалки */
.img-modal{
  position: fixed;
  inset: 0;
  display: grid;              /* центрируем контент по обеим осям */
  place-items: center;
  background: rgba(0,0,0,.65);/* затемнение фона */
  padding: 4vh 4vw;           /* «воздух» от краёв экрана */
  box-sizing: border-box;
  z-index: 300;               /* поверх сайдбара/слайдера */
}
.img-modal[hidden]{ display:none; }

/* клики по подложке закрывают окно */
.img-modal__overlay{
  position: absolute;
  inset: 0;
}

/* обёртка для изображения и крестика */
.img-modal__content{
  position: relative;
  display: inline-flex;       /* shrink-to-fit под размер картинки */
  align-items: center;
  justify-content: center;
  max-width: min(1100px, 92vw);
  max-height: 92vh;
}

/* само изображение — всегда целиком в окне */
.img-modal__img{
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 92vh;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,.5);
  -webkit-user-drag: none;
}

/* кнопка закрытия */
.img-modal__close{
  position: absolute;
  top: -12px;
  right: -12px;
  width: 34px;
  height: 34px;
  border: none;
  border-radius: 50%;
  background: #fff;
  color: #111;
  font: 700 20px/1 system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0,0,0,.3);
}
.img-modal__close:focus-visible{
  outline: 3px solid rgba(11,94,215,.6);
  outline-offset: 2px;
}

/* блокируем прокрутку фона, когда модалка открыта */
html.modal-lock,
body.modal-lock { overflow: hidden !important; }

/* мобильные правки: ещё компактнее по высоте */
@media (max-width: 600px){
  .img-modal{ padding: 12px; }
  .img-modal__content{ max-width: 96vw; max-height: 86vh; }
  .img-modal__img{ max-height: 86vh; }
}
