/* ======================================================  ТЕМА НАЧАЛО ============================================================== */
:root{
  --accent:#0a7f3f;
  --accent-dark:#0c9950;
  --muted:#555;
  --bg-from:#eefaf1;
  --bg-to:#ffffff;
  --glass: rgba(255,255,255,0.86);
  --shadow: 0 6px 20px rgba(10,10,10,0.03);
  --glow: rgba(10,127,63,0.08);
}
*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family:Inter,Arial, Helvetica, sans-serif;
  background: linear-gradient(120deg,var(--bg-from),var(--bg-to));
  background-size: 300% 300%;
  animation: gradientFlow 16s ease infinite;
  color:#222;
  overflow-x:hidden;
  scroll-behavior: smooth;
}
@keyframes gradientFlow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
.body-glow { position: fixed; inset:0; pointer-events:none; z-index:-2;
  background: radial-gradient(600px 300px at 10% 10%, rgba(10,127,63,0.04), transparent 7%),
              radial-gradient(500px 240px at 90% 90%, rgba(0,150,90,0.03), transparent 9%); }
.floating-icons { position: fixed; inset:0; pointer-events:none; z-index:-1; }
.background-particles { position: fixed; inset: 0; pointer-events: none; overflow: hidden; z-index:-1; }
.particle { position:absolute; height:2px; background: linear-gradient(90deg, rgba(10,127,63,0.14), rgba(10,127,63,0.03)); filter: blur(.6px); animation: floatLine 14s linear infinite; }
@keyframes floatLine { 0%{transform:translateY(115vh) rotate(0deg) translateX(0); opacity:0} 10%{opacity:1} 90%{opacity:1} 100%{transform:translateY(-25vh) rotate(180deg) translateX(0); opacity:0} }
/* ======================================================  ТЕМА КОНЕЦ ============================================================== */



/* ======================================================  ЗАГОЛОВОК НАЧАЛО ============================================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 9999;
  background: rgba(255,255,255,0.92); backdrop-filter: blur(6px);
  display:flex; align-items:center; justify-content:space-between; gap:16px;
  padding:12px 20px; border-bottom:1px solid rgba(0,0,0,0.06);
}
.brand { display:flex; align-items:center; gap:12px; }
.logo {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.5px;
  background: linear-gradient(135deg, #0FA958, #0C8C48);
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-transform: uppercase;
  text-decoration: none;
  cursor: default;
  transition: transform .25s ease, opacity .25s ease;
}
.logo:hover {
  color: var(--accent-dark);
  transform: scale(1.05);
  transition: color 0.2s, transform 0.2s;
  opacity: .9;
}
.header nav { display:flex; gap:12px; align-items:center; }
.header nav a { color:#333; text-decoration:none; padding:8px 10px; border-radius:8px; transition:all .18s; }
.header nav a:hover { color:var(--accent-dark); background:var(--glow); transform:translateY(-2px); }
.header .icons { display:flex; gap:8px; align-items:center; }
.icon-wrap {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  cursor: pointer;
  background: rgba(15, 169, 88, 0.08);
  backdrop-filter: blur(4px);
  box-shadow: 0 4px 12px rgba(0, 150, 60, 0.15);
  transition: all .25s ease;
}
.icon-wrap svg {
  width: 22px;
  height: 22px;
  fill: #0FA958;
  transition: transform .25s ease, fill .25s ease;
}
.icon-wrap:hover {
  transform: translateY(-4px) scale(1.06);
  background: rgba(15, 169, 88, 0.16);
  box-shadow: 0 6px 18px rgba(0, 160, 60, 0.23);
}
.icon-wrap:hover svg {
  fill: #0C8C48;
  transform: scale(1.12);
}
.icon-wrap:active {
  transform: scale(0.94);
}
.burger {
  padding: 10px 14px;
  background: linear-gradient(135deg, #0FA958, #0C8C48);
  border: none;
  border-radius: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(0, 150, 60, 0.25);
  transition: all .25s ease;
}
.burger svg {
  width: 20px;
  height: 20px;
  fill: white;
  transition: transform .25s;
}
.burger:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 6px 18px rgba(0, 160, 60, 0.35);
  background: linear-gradient(135deg, #12C267, #0A7A3C);
}
.burger:hover svg {
  transform: scale(1.15);
}
.burger:active {
  transform: scale(0.96);
}
.container { display:flex; gap:24px; padding:28px; align-items:flex-start; min-height:calc(100vh - 160px); }
.sidebar {
  background: #fff;
  border-radius: 12px;
  padding: 18px;
  box-shadow: var(--shadow);
  position: fixed;
  top: 96px;
  left: -300px;
  opacity: 0;
  transition: left .28s ease, opacity .18s;
  z-index: 220;
}
.sidebar.active {
  left: 12px;
  opacity: 1;
}
.sidebar h4 { margin:0 0 12px; color:var(--accent); font-size:16px; }
.sidebar a { display:flex; gap:10px; align-items:center; margin:8px 0; color:#333; text-decoration:none; padding:8px; border-radius:8px; transition:.18s; }
.sidebar a:hover { background:rgba(0,0,0,0.03); transform:translateX(6px); color:var(--accent-dark); }
.close-sidebar {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 33px;
  height: 33px;
  border-radius: 12px;
  background: rgba(10, 127, 63, 0.10);
  border: 1px solid rgba(10, 127, 63, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: .2s;
  z-index: 9999;
}
.close-sidebar:hover {
  background: rgba(10, 127, 63, 0.18);
  transform: scale(1.08);
}
.close-icon {
  position: relative;
  width: 20px;
  height: 20px;
}
.close-icon::before,
.close-icon::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 100%;
  height: 3px;
  background: #0A7F3F;
  border-radius: 3px;
  transform-origin: center;
}
.close-icon::before {
  transform: translate(-50%, -50%) rotate(45deg);
}
.close-icon::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}
.content { flex:1; display:flex; flex-direction:column; gap:40px; }
.section { position:relative; background:rgba(255,255,255,0.86); border-radius:12px; padding:18px; box-shadow:var(--shadow); overflow:visible; }
.section-title { font-size:20px; color:var(--accent); margin:0 0 12px; }
.section .bg-layer { position:absolute; inset:0; z-index:0; opacity:.06; background-position:center; background-size:cover; pointer-events:none; transform:translateY(0); transition:transform .6s ease; }
/* ======================================================  ЗАГОЛОВОК КОНЕЦ ============================================================== */

/* Запрещаем горизонтальный скролл */
html, body {
  overflow-x: hidden;
}

/* Контейнер баннера */
.banner-marquee {
  width: 100%;
  overflow: hidden;
  position: relative;
  padding: 20px 10px;
  background: linear-gradient(to right, #0a7f3f10, #ffffff00, #0a7f3f10);
  border-radius: 20px;
}

/* Лента баннеров */
.banner-track {
  display: flex;
  gap: 40px;
  align-items: center;
  flex-wrap: nowrap;
  animation: marquee 60s linear infinite;
}

/* Картинки баннеров */
.banner-track img {
  height: 250px;
  width: auto;
  flex-shrink: 0;
  display: block;
  max-width: 100%;
  border-radius: 16px;

  /* Тени и glow */
  box-shadow: 0 6px 25px rgba(0, 127, 63, 0.25);
  filter: drop-shadow(0 0 12px #0a7f3f50);
  transition: transform 0.3s ease, filter 0.3s ease, box-shadow 0.3s ease;
}

/* Hover эффект */
.banner-track img:hover {
  transform: scale(1.05);
  filter: drop-shadow(0 0 20px #0a7f3f80);
  box-shadow: 0 10px 30px rgba(0, 127, 63, 0.35);
}

/* Анимация ленты */
@keyframes marquee {
  0% { transform: translateX(102%); }
  100% { transform: translateX(-240%); }
}

/* Мобильная адаптация */
@media (max-width: 600px) {
  .banner-track img {
    height: 160px;
    filter: drop-shadow(0 0 8px #0a7f3f50);
  }
}


/* ======================================================  КАРТОЧКИ НАЧАЛО ============================================================== */
.slider {
  display:flex;
  gap:16px;
  overflow-x:auto;
  padding:6px 4px;
}
.slider::-webkit-scrollbar{
  display:none;
}
.products {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
  padding: 20px;
}
/*КАРТОЧКА*/
.product {
  position: relative;
  perspective: 1000px;
  transform: translateY(20px);
  opacity: 0;
  transition: transform .6s cubic-bezier(.2,.9,.3,1), opacity .6s ease, box-shadow .25s;
  z-index:1;
}
.product.show {
  transform: translateY(0);
  opacity:1;
}
.card {
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(6px);
  border-radius:16px;
  overflow:hidden;
  box-shadow:0 6px 18px rgba(0,0,0,0.06);
  transform:translateZ(0);
  transition: transform .28s ease, box-shadow .28s, opacity .3s ease;
  will-change: transform;
  position: relative;
}
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(15,169,88,0.06), rgba(255,255,255,0));
  opacity: .8;
  pointer-events: none;
  transition: background .28s ease;
}
.product:hover .card::before {
  background: linear-gradient(135deg, rgba(15,169,88,0.12), rgba(255,255,255,0));
}
.product:hover .card {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 12px 28px rgba(0,150,60,0.18);
}
.card-media img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 12px;
  transition: transform .35s ease, filter .35s ease;
  display: block;
}
.product:hover .card-media img {
  transform: scale(1.06);
  filter: brightness(1.04);
}
.card-body {
  padding: 12px;
  text-align: center;
}
.card-body h3 {
  margin: 8px 0 6px;
  color: #0C8C48;
  font-size: 16px;
  font-weight: 700;
}
.card-body p {
  margin:0 0 10px;
  color: #333;
  font-size:14px;
  opacity:0.75;
}
.card-price {
  font-size:18px;
  font-weight:800;
  color:#0FA958;
}
/*КНОПКА*/
.btn {
  display:inline-block;
  margin-top: auto;
  padding:10px 16px;
  border-radius:10px;
  background: linear-gradient(135deg, #0FA958, #0C8C48);
  color:#fff;
  font-weight:700;
  border:0;
  cursor:pointer;
  box-shadow:0 4px 14px rgba(0,150,60,0.25);
  opacity:0;
  transform:translateY(12px);
  transition: all .25s ease;
}
.product.show .btn {
  opacity:1;
  transform:translateY(0);
}
.btn:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow:0 6px 20px rgba(0,150,60,0.35);
}
/*ТЕГИ*/
.tag {
  position:absolute;
  bottom:10px;
  right:10px;
  background: rgba(0,0,0,0.06);
  padding:6px 8px;
  border-radius:8px;
  font-size:12px;
  color:#222;
  font-weight:700;
}
/*ЭТИКЕТКИ ТЕГОВ*/
.label {
  position:absolute;
  top:12px;
  left:12px;
  padding:6px 10px;
  color:#fff;
  font-weight:700;
  font-size:12px;
  border-radius:6px;
  transform:translateY(-6px) scale(.96);
  opacity:0;
  transition:transform .28s, opacity .28s;
}
.product.show .label {
  transform:translateY(0) scale(1);
  opacity:1;
}
                                                           .label.novelty { background: #2041fa; } /*НОВИНКА*/
                                                           .label.hit { background: #ff8c00; } /*ХИТ ПРОДАЖ*/
                                                           .label.sale { background: #ff3b3b; } /*СКИДКА*/
.ribbon {
  position:absolute;
  right:-36px;
  top:12px;
  width:120px;
  height:32px;
  transform:rotate(45deg);
  background:#ff3b3b;
  color:#fff;
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight:700;
  font-size:12px;
  box-shadow:0 6px 12px rgba(0,0,0,0.08);
}
.card::after {
  content:'';
  position:absolute;
  inset:0;
  border-radius:16px;
  pointer-events:none;
  box-shadow:0 0 0 rgba(0,0,0,0);
  transition: box-shadow .28s;
}
.product:hover .card::after {
  box-shadow:0 12px 40px rgba(15,169,88,0.06);
}
/* ======================================================  КАРТОЧКИ КОНЕЦ ============================================================== */



/* ======================================================  СЕРВИСЫ PROSOFT ИКОНКИ НАЧАЛО ============================================================== */
.services-grid {
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(160px,1fr));
  gap:20px;
  padding:20px 0;
}
.service {
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(6px);
  border-radius:16px;
  padding:20px 12px;
  text-align:center;
  box-shadow:0 6px 18px rgba(0,0,0,0.06);
  transition: transform .28s ease, box-shadow .28s ease, background .28s;
  cursor:pointer;
  position: relative;
  overflow: hidden;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.6s forwards;
}
.service:nth-child(1) { animation-delay: 0.1s; }
.service:nth-child(2) { animation-delay: 0.2s; }
.service:nth-child(3) { animation-delay: 0.3s; }
.service:nth-child(4) { animation-delay: 0.4s; }
@keyframes fadeInUp {
  to { opacity:1; transform: translateY(0); }
}
.service:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow:0 12px 28px rgba(0,150,60,0.18);
}
.service svg {
  width:48px;
  height:48px;
  fill: var(--accent);
  margin-bottom:10px;
  transition: transform .28s ease, fill .28s ease;
}
.service:hover svg {
  transform: scale(1.2);
  fill: #0C8C48;
}
.service-title {
  font-weight:700;
  font-size:15px;
  color: #0C8C48;
  margin-bottom:4px;
}
.service-desc {
  font-size:13px;
  color: #333;
  opacity:0.75;
}
.service::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(15,169,88,0.06), rgba(255,255,255,0));
  opacity:0.8;
  pointer-events:none;
  transition: background .28s ease;
}
.service:hover::before {
  background: linear-gradient(135deg, rgba(15,169,88,0.12), rgba(255,255,255,0));
}
/* ======================================================  СЕРВИСЫ PROSOFT ИКОНКИ КОНЕЦ ============================================================== */



/* ======================================================  НИЖНЯЯ ПАНЕЛЬ НАЧАЛО ============================================================== */
footer {
  display:flex;
  gap:28px;
  align-items:flex-start;
  flex-wrap:wrap;
  padding:28px;
  background: linear-gradient(180deg, rgba(255,255,255,0.95), rgba(245,245,245,0.95));
  border-top:1px solid rgba(0,0,0,0.04);
  color:#333;
}
footer > div { min-width:160px; display:flex; flex-direction:column; gap:8px; }
footer h4 { margin:0 0 6px; font-size:16px; color:var(--accent); }
footer a { color:#333; text-decoration:none; font-size:14px; }
footer a:hover { color:var(--accent-dark); text-decoration:underline; }
.center { text-align:center }
/* ======================================================  НИЖНЯЯ ПАНЕЛЬ КОНЕЦ ============================================================== */



/* ======================================================  6 В РЯД НАЧАЛО ============================================================== */
.product {
  position: relative;
  width: 250px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  border-radius: 14px;
  background: #fff;
  overflow: hidden;
  transition: 0.25s ease;
}
.product:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}
.card-media img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}
.card-body {
  padding: 12px;
}
.card-body h3 {
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 700;
}
.card-body p {
  font-size: 15px;
  font-weight: 600;
  color: var(--accent);
}
.btn {
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 10px 0;
  font-weight: 700;
  cursor: pointer;
  width: 100%;
  transition: 0.3s ease;
}
.btn:hover {
  background: #07773c;
}
.slider {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding-bottom: 20px;
}
.slider::-webkit-scrollbar {
  height: 6px;
}
.slider::-webkit-scrollbar-thumb {
  background: rgba(0,0,0,0.2);
  border-radius: 4px;
}
.products {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
  padding: 20px;
}
/* ======================================================  6 В РЯД КОНЕЦ  ============================================================== */




/* ======================================================  МОДАЛЬНЫЕ КАРТОЧКИ НАЧАЛО ============================================================== */
.modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.45);
  backdrop-filter: blur(4px);
  z-index: 9999;
  padding: 20px;
}
.modal.active {
  display: flex;
}
/*MODAL CONTENT*/
.modal-content {
  display: flex;
  flex-direction: row;
  gap: 24px;
  max-width: 1250px;
  width: 95%;
  max-height: 70vh;
  background: #fff;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 20px 60px rgba(10,127,63,0.25);
  position: relative;
  overflow: hidden;
}
/*CLOSE BUTTON*/
.modal-close {
  position: absolute;
  top: 8px;
  right: 12px;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: rgba(12, 209, 100, 0.08);
  border: 1px solid rgba(0, 255, 115, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: #0FA958;
  cursor: pointer;
  z-index: 200;
}
.modal-close:hover {
  background: rgba(10,127,63,0.15);
  transform: scale(1.1);
}
/*LEFT BLOCK:IMAGE*/
.modal-left {
  flex: 1.5;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center; /* центр по горизонтали */
  justify-content: center; /* центр по вертикали */
  padding-bottom: 70px; /* место для кнопок */
}
.modal-left img {
  max-width: 100%; /* ограничиваем ширину, чтобы не выходила за блок */
  height: auto;
  border-radius: 14px;
}
/*КНОПКИ КУПИТЬ И ИЗБРАННОЕ*/
.modal-left-buttons {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%; /* растягиваем на всю ширину */
  display: flex;
  gap: 12px;
  padding: 14px 0;
  justify-content: space-between; /* кнопки по краям */
  box-sizing: border-box; /* учитываем паддинги */
}
.btn-left {
  flex: 1; /* равная ширина кнопок */
  text-align: center;
  padding: 10px 0;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: 0.25s;
}
.btn-left-buy {
  background: #0FA958;
  color: #fff;
  box-shadow: 0 4px 12px rgba(15,169,88,0.35);
}
.btn-left-buy:hover {
  background: #0cc86a;
}
.btn-left-fav {
  background: #fff;
  color: #0FA958;
  border: 2px solid #0FA95850;
}
.btn-left-fav:hover {
  background: #0FA95810;
}
/*GALLERY NAV*/
.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(15,169,88,0.85);
  color: #fff;
  border: none;
  cursor: pointer;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}
.gallery-nav.left { left: 10px; }
.gallery-nav.right { right: 10px; }
.gallery-nav:hover { transform: translateY(-50%) scale(1.1); }
/*RIGHT BLOCK*/
.modal-right {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
}
/*HEADER*/
.modal-header {
  flex-shrink: 0;
}
#modalTitle {
  font-size: 24px;
  font-weight: 800;
  color: #0FA958;
  margin: 0;
}
#modalPrice {
  font-size: 22px;
  font-weight: 700;
  margin: 8px 0 12px;
  color: #046b39;
}
/*ВКЛАДКИ*/
.modal-tabs {
  display: flex;
  gap: 15px;
  margin: 10px 0;
}
.tab-btn {
  flex: 1;
  padding: 10px 0;
  border-radius: 8px;
  background: #0FA95820;
  color: #0FA958;
  border: 1px solid #0FA95850;
  cursor: pointer;
  transition: 0.25s ease;
  font-weight: 600;
}
.tab-btn.active {
  background: #0FA958;
  color: #fff;
  border-color: #0FA958;
  box-shadow: 0 4px 12px rgba(15,169,88,0.3);
}
/*SCROLL CONTENT*/
.modal-right-content {
  flex: 1 1 auto;
  overflow-y: auto;
  padding-right: 8px;
  padding-bottom: 120px; /* место для кнопок */
}
.modal-right-content::-webkit-scrollbar {
  width: 6px;
}
.modal-right-content::-webkit-scrollbar-thumb {
  background: rgba(15,169,88,0.6);
  border-radius: 3px;
}
.modal-right-content::-webkit-scrollbar-track {
  background: rgba(0,0,0,0.05);
  border-radius: 3px;
}
/*СОДЕРЖИМОЕ ВКЛАДОК*/
.tab-content {
  display: none;
  margin-top: 8px;
  font-size: 15px;
}
.tab-content.active {
  display: block;
}
/* ======================================================  МОДАЛЬНЫЕ КАРТОЧКИ КОНЕЦ ============================================================== */



/* ======================================================  МОБИЛЬНАЯ ВЕРСИЯ НАЧАЛО ============================================================== */
@media (max-width: 480px) {
  /* HEADER */
  .header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 2000 !important;
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(0,0,0,0.06);
    padding: 12px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
  }

  body { padding-top: 80px; }

  .logo {
    font-size: 20px;
    font-weight: 800;
    color: var(--accent);
    letter-spacing: 0.4px;
  }

  .brand { display: flex; align-items: center; gap: 12px; }

  .burger {
    background: rgba(10,127,63,0.08);
    border: 1px solid rgba(10,127,63,0.15);
    padding: 8px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: .18s ease;
  }

  .burger:hover {
    background: rgba(10,127,63,0.15);
    transform: scale(1.05);
  }

  .burger svg { width: 20px; height: 20px; fill: var(--accent-dark); }

  .icons { display: flex; gap: 10px; }
  .icon-wrap {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(10,127,63,0.06);
    border: 1px solid rgba(10,127,63,0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: .18s;
  }

  .icon-wrap svg { width: 20px; height: 20px; fill: var(--accent); }
  .icon-wrap:hover {
    background: rgba(10,127,63,0.12);
    transform: translateY(-2px);
  }

  .header nav { display: none !important; }

  /* SIDEBAR */
  .sidebar {
    width: 80%;
    max-width: 300px;
    height: 100vh;
    padding: 20px 18px;
    position: fixed;
    top: 0;
    left: -100%;
    opacity: 0;
    background: #fff;
    border-radius: 0 12px 12px 0;
    box-shadow: 0 0 40px rgba(0,0,0,0.28);
    transition: left .35s ease, opacity .25s ease;
    z-index: 3000 !important;
  }

  .sidebar.active { left: 0; opacity: 1; }

  .sidebar h4 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 14px;
    color: var(--accent);
  }

  .sidebar a {
    font-size: 15px;
    padding: 10px;
    display: flex;
    gap: 10px;
    border-radius: 8px;
    color: #333;
  }

  .sidebar a:hover {
    background: rgba(10,127,63,0.06);
    color: var(--accent-dark);
  }

  .close-sidebar {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: rgba(10,127,63,0.08);
    border: 1px solid rgba(10,127,63,0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: .2s;
  }
  .close-sidebar:hover { background: rgba(10,127,63,0.15); transform: scale(1.05); }
  /* CONTENT */
  .container { flex-direction: column; padding: 12px; gap: 18px; }
  .content { width: 100%; padding: 0; }
  .section { padding: 14px 12px; border-radius: 10px; }
  .section-title { font-size: 18px; margin-bottom: 10px; }
  .products { grid-template-columns: 1fr !important; gap: 14px; }
  .card {
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
  }
  .card-media img { height: 140px; object-fit: cover; }
  .card-body h3 { font-size: 14px; margin-bottom: 4px; }
  .card-body p { font-size: 12px; }
  .btn { padding: 10px; font-size: 13px; border-radius: 8px; width: 100%; }
  .label, .tag { font-size: 11px; padding: 4px 6px; }
  .services-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .service {
    padding: 12px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    text-align: center;
  }
  .service svg { width: 34px; height: 34px; margin-bottom: 6px; }
  .service div:nth-child(2) { font-size: 14px; font-weight: 700; }
  .service div:nth-child(3) { font-size: 12px; color: var(--muted); }
  
/* ===== МОДАЛЬНЫЙ КОНТЕНТ ===== */
  .modal-content {
    flex-direction: column !important; /* вертикально */
    max-width: 95%;
    width: 100%;
    padding: 16px;
    gap: 16px;
    max-height: 90vh;      /* Ограничиваем высоту всей модалки */
    position: relative;    /* Чтобы крестик позиционировался относительно модалки */
    border-radius: 16px;
    background: #fff;
    overflow: hidden;      /* Скролл будет только в правом блоке */
  }

  /* ===== ЛЕВАЯ ЧАСТЬ: КАРТИНКА ===== */
  .modal-left {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative; /* чтобы стрелки были поверх картинки */
    max-height: 300px;
  }

  .modal-left img {
    width: 100%;
    height: auto;
    max-height: 300px;
    object-fit: contain;
    border-radius: 12px;
    display: block;
  }

  /* Стрелки галереи */
  .gallery-nav.left { left: 8px; }
  .gallery-nav.right { right: 8px; }

  .gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 100;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(15,169,88,0.85);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    font-size: 20px;
    transition: all .25s ease;
  }

  .gallery-nav:hover {
    transform: translateY(-50%) scale(1.1);
  }

  /* ===== ПРАВЫЙ БЛОК: ХАРАКТЕРИСТИКИ И ОПИСАНИЕ ===== */
  .modal-right {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  /* Заголовок и вкладки остаются фиксированными сверху */
  .modal-header {
    position: sticky;
    top: 0;
    background: #fff;
    z-index: 5;
    padding-bottom: 8px;
  }

  /* Контент с прокруткой */
  .modal-right-content {
    max-height: 50vh; /* Скроллимый блок */
    overflow-y: auto;
    padding-right: 6px; /* отступ для скролла */
  }

  /* Скроллбар для мобильных */
  .modal-right-content::-webkit-scrollbar {
    width: 6px;
  }
  .modal-right-content::-webkit-scrollbar-thumb {
    background: rgba(15,169,88,0.6);
    border-radius: 3px;
  }
  .modal-right-content::-webkit-scrollbar-track {
    background: rgba(0,0,0,0.05);
    border-radius: 3px;
  }

  /* Название и цена */
  #modalTitle {
    font-size: 18px;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 4px;
  }
  #modalPrice {
    font-size: 16px;
    font-weight: 600;
    color: var(--accent-dark);
    margin-bottom: 8px;
  }

  /* Вкладки */
  .tab-btn {
    padding: 8px 0;
    font-size: 14px;
  }

  /* Табличка характеристик */
  .modal-specs-table td {
    font-size: 13px;
    padding: 4px 0;
  }

  /* Описание */
  .modal-desc {
    font-size: 13px;
    line-height: 1.4;
  }

  /* Кнопки */
  .modal-left-buttons,
  .modal-buttons .btn {
    flex-direction: column;
    width: 100%;
    gap: 8px;
  }
  .modal-left-buttons .btn-left,
  .modal-buttons .btn {
    width: 100%;
    font-size: 14px;
    padding: 10px 0;
  }

  /* Крестик закрытия */
  .modal-close {
    top: 8px;
    right: 8px;
    width: 32px;
    height: 32px;
    font-size: 20px;
  }

  /* Общие адаптации для мобилки */
  .modal-content,
  .modal-left,
  .modal-right {
    gap: 12px;
  }
}
/* ======================================================  МОБИЛЬНАЯ ВЕРСИЯ КОНЕЦ ============================================================== */