:root{
  --fs-xxl: clamp(32px, 5vw, 56px);
  --fs-xl: clamp(24px, 3.8vw, 36px);
  --fs-lg: clamp(18px, 2.4vw, 24px);
  --fs-md: clamp(16px, 2vw, 18px);
  --fs-sm: clamp(14px, 1.8vw, 16px);
}
*{margin:0;padding:0;box-sizing:border-box;font-family:'Roboto',sans-serif;}
body{background:url("https://images.unsplash.com/photo-1542838132-92c53300491e") center/cover no-repeat fixed;color:#333;overflow-x:hidden;}
.header{position:fixed;top:0;width:100%;display:flex;justify-content:space-between;align-items:center;padding:15px 30px;background:rgba(255,255,255,.9);backdrop-filter:blur(5px);box-shadow:0 2px 5px rgba(0,0,0,.1);z-index:1000;}
.logo img{height:50px;}
.menu-btn{font-size:18px;cursor:pointer;color:#333;font-weight:700;background:transparent;border:none;}
.menu-btn .icon{display:inline-block;width:22px;text-align:center;margin-right:6px;}

.hero{display:flex;align-items:center;justify-content:space-between;min-height: clamp(560px, 100vh, 980px);padding:0 10%;margin-top:80px;}
.hero-text{max-width:50%;}
.hero-text h1,.hero-text p{color:#fff;}
.hero-text h1{font-size: var(--fs-xxl);font-weight:700;}
.hero-text p{font-size: var(--fs-md);margin-bottom:30px;}
.btn{font-size: var(--fs-md); background:#2ecc71;color:#fff;padding:12px 24px;text-decoration:none;border-radius:5px;font-size:18px;}
.btn:hover{background:#27ae60;}
.hero-image img{max-width:500px;width:100%;transition:transform .3s ease;}
.hero-image img:hover{transform:scale(1.05);}

.stats{display:flex;justify-content:space-around;align-items:center;background:#fff;padding:60px 10%;text-align:center;}
.stat-item h2{font-size: var(--fs-xl);color:#27ae60;margin-bottom:10px;}
.stat-item p{font-size:16px;color:#333;max-width:250px;}
.partners{background:#f3f3f3;padding:40px 0 30px;}
.partners h3{text-align:center;font-size: var(--fs-lg);margin-bottom:20px;color:#333;}
.partners-marquee{overflow:hidden;position:relative;}
.partners-track{display:flex;align-items:center;gap:80px;width:max-content;animation:partners-scroll 22s linear infinite;}
.partners-track img{height:60px;object-fit:contain;transition:transform .2s;}
.partners-track img:hover{transform:scale(1.05);}
@keyframes partners-scroll{0%{transform:translateX(0);}100%{transform:translateX(-50%);}}

.about{background:#fff;padding:80px 15%;text-align:center;}
.about h2{font-size:36px;margin-bottom:20px;color:#27ae60;}
.about p{font-size:18px;color:#333;line-height:1.6;max-width:900px;margin:0 auto;}

.advantages{background:rgba(255, 255, 255, 0.8);padding:80px 10%;text-align:center;}
.advantages h2{font-size:32px;margin-bottom:40px;color:#333;}
.adv-cards{display:flex;gap:30px;justify-content:center;flex-wrap:wrap;}
.adv-card{background:#fff;border:1px solid #ddd;border-radius:12px;padding:30px;flex:1;min-width:250px;max-width:300px;box-shadow:0 4px 10px rgba(0,0,0,.05);transition:.3s;}
.adv-card:hover{transform:translateY(-5px);box-shadow:0 8px 16px rgba(0,0,0,.1);}
.adv-card img{height:120px;margin-bottom:20px;object-fit:contain;}
.adv-card h3{font-size:20px;margin-bottom:15px;color:#000;}
.adv-card p{font-size:14px;color:#333;line-height:1.6;}

.catalog{background:rgba(255, 255, 255, 0.8);padding:60px 10%;text-align:center;}
.catalog h2{font-size:28px;margin-bottom:30px;color:#333;}
.cat-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:20px;justify-items:center;}
.cat-card{border:1px solid #ddd;border-radius:10px;padding:24px;max-width:260px;width:100%;transition:box-shadow .3s;}
.cat-card:hover{box-shadow:0 8px 16px rgba(0,0,0,.08);}
.cat-img{display:flex;align-items:center;justify-content:center;height:160px;overflow:hidden;}
.cat-img img{max-height:140px;transition:transform .3s ease;}
.cat-img:hover img{transform:scale(1.06);}
.cat-img:hover ~ .cat-title{opacity:0;}
.cat-title{text-transform:uppercase;letter-spacing:.5px;margin:16px 0;color:#333;transition:opacity .3s;}
.cat-btn{display:inline-block;margin-top:6px;padding:10px 18px;border-radius:6px;border:2px solid #2ecc71;background:#2ecc71;color:#fff;text-decoration:none;transition:all .25s;}
.cat-btn:hover{background:transparent;color:#2ecc71;}

@media (max-width: 1000px){ .cat-grid{grid-template-columns:repeat(2,1fr);} }
@media (max-width: 560px){ .cat-grid{grid-template-columns:1fr;} }

/* TOP overlay styles */
.top-menu-overlay{position:fixed;inset:0;background:rgba(0,0,0,.55);backdrop-filter:blur(2px);display:flex;justify-content:center;align-items:flex-start;opacity:0;pointer-events:none;transition:opacity .25s ease;z-index:1200;}
.top-menu-overlay.open{opacity:1;pointer-events:auto;}
.top-menu-inner{width:100%;background:rgba(0,0,0,.0);padding-top:60px;display:flex;flex-direction:column;align-items:center;animation:slideDown .25s ease;}
.menu-logo{height:64px;margin:10px 0 20px 0;}
.top-menu-links{display:flex;gap:40px;list-style:none;margin:0;padding:0;}
.top-menu-links a{color:#fff;text-decoration:none;font-weight:700;letter-spacing:.5px;}
.close-btn{position:absolute;left:22px;top:18px;background:#fff;border:none;border-radius:999px;width:32px;height:32px;font-weight:700;cursor:pointer;}

@keyframes slideDown{from{transform:translateY(-16px);opacity:0;}to{transform:translateY(0);opacity:1;}}





/* Contacts Page v19 */
.contacts-hero{
  min-height: clamp(520px, 100vh, 100vh);
  background: url("https://images.unsplash.com/photo-1542838132-92c53300491e") center/cover no-repeat fixed;
  position: relative;
  display:flex; align-items:center; justify-content:center;
  margin-top:80px;
}
.contacts-inner{
  position:relative;
  z-index:1;
  color:#fff;
  
  margin-bottom:40px;
 text-align:center; margin:0 auto;}
.contacts-inner h1{font-size:56px;letter-spacing:1px;margin-bottom:10px;}
.contacts-inner .crumbs{opacity:.95;}
.contacts-inner .crumbs a{color:#fff;text-decoration:none;border-bottom:1px dotted rgba(255,255,255,.7);}
.contacts-body{
  position:relative;
  z-index:2;
  background:transparent;
  padding:0 0 80px 0;
  display:flex;
  justify-content:center;
}
.contacts-card{
  background:#fff;
  border:1px solid #e5e5e5;
  border-radius:12px;
  padding:30px;
  max-width:560px;
  width:100%;
  text-align:center;
  box-shadow:0 4px 12px rgba(0,0,0,.3);
}
.contacts-card h3{font-size:26px;margin-bottom:6px;color:#333;}
.contacts-card p{color:#555;margin-bottom:16px;}
.contacts-list{list-style:none;margin:0 0 18px 0;padding:0;color:#333;line-height:1.9;}
.contacts-card a{color:#2ecc71;text-decoration:none;}
.contacts-card .btn{font-size: var(--fs-md); background:#2ecc71;color:#fff !important;}

/* v24 updates: section background is main image, only titles have white background */
.advantages{
  background: url("https://images.unsplash.com/photo-1542838132-92c53300491e") center/cover no-repeat fixed;
  padding: 80px 0;
  text-align: center;
}
.advantages h2{
  background: rgba(255, 255, 255, 0.8);
  display: inline-block;
  padding: 10px 25px;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  color: #27ae60;
  margin-bottom: 40px;
}
.adv-card{
  background: rgba(255,255,255,0.9);
  color: #000;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.catalog{
  background: url("https://images.unsplash.com/photo-1542838132-92c53300491e") center/cover no-repeat fixed;
  padding: 10px 0;
  text-align: center;
}
.catalog h2{
  background: rgba(255, 255, 255, 0.8);
  display: inline-block;
  padding: 10px 25px;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  color: #27ae60;
  margin-bottom: 40px;
}
.cat-card{
  background:  rgba(255,255,255,0.9);
  color: #000;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* v30 catalog page hero using the same background */
.page-hero.catalog-hero{
  min-height: clamp(360px, 52vh, 640px);
  background: url("https://images.unsplash.com/photo-1542838132-92c53300491e") center/cover no-repeat fixed;
  display:flex;align-items:center;justify-content:flex-start;
  padding: clamp(24px, 5vw, 48px) 10%;
}
.page-hero .hero-inner h1{ font-size: 56px; color:#111; background:#fff; display:inline-block; padding:12px 22px; border-radius:12px; }
.page-hero .crumbs{ margin-top:10px; color:#fff; }
.page-hero .crumbs a{ color:#fff; text-decoration:none; border-bottom:1px dotted rgba(255,255,255,.8); }

.page-catalog h2{
  color:#27ae60;
  background:rgba(255, 255, 255, 0.8);
  display:inline-block;
  padding:10px 20px;
  border-radius:10px;
  box-shadow:0 2px 6px rgba(0,0,0,0.15);
  margin-bottom:30px;
}


/* v30: Catalog page hero */
.page-hero.catalog-hero{
  position: relative;
  min-height: clamp(380px, 60vh, 720px);
  display:flex;align-items:center;justify-content:flex-start;
  padding: clamp(50px, 8vw, 80px) 10%;
  overflow:hidden;
}
.page-hero.catalog-hero::before{
  content:"";
  position:absolute;
  inset:0;
  background: rgba(255,255,255,0.05);
}
.page-hero .hero-inner{
  position:relative;
  z-index:1;
  color:#111;
}
.page-hero .hero-inner h1{
  font-size:52px;
  margin:0 0 10px 0;
  background:#fff;
  display:inline-block;
  padding:8px 18px;
  border-radius:10px;
}
.page-hero .crumbs a{color:#111;text-decoration:none;border-bottom:1px dotted rgba(0,0,0,.5);}
.page-catalog h2{
  background: rgba(255,255,255,0.9);
  display:inline-block;
  padding: 12px 24px;
  border-radius: 12px;
  color:#27ae60;
  margin-bottom: 24px;
}


/* v31 tweaks: center hero title, make it green, center sections, breadcrumbs white */
.page-hero.catalog-hero{
  position: relative;
  min-height: clamp(380px, 60vh, 720px);
  display:flex;align-items:center;justify-content:flex-start;
  padding: clamp(50px, 8vw, 80px) 10%;
  overflow:hidden;
}
.page-hero.catalog-hero .hero-inner{
  text-align:center;
  width:100%;
}
.page-hero.catalog-hero .hero-inner h1{
  color:#27ae60;
  background:#fff;
  padding:12px 24px;
  border-radius:14px;
  display:inline-block;
}
.page-hero .crumbs{
  margin-top:14px;
  font-size:20px;
  color:#fff;
}
.page-hero .crumbs a{
  color:#fff;
  border-bottom:1px dotted rgba(255,255,255,0.75);
}
.page-catalog{
  text-align:center;
}
.page-catalog h2{
  display:inline-block;
  margin: 16px auto 28px;
}
.page-.page-catalog .cat-grid{
  display:grid;
  grid-template-columns: repeat(3, minmax(260px, 1fr));
  gap:28px;
  max-width: 1200px;
  margin: 0 auto;
  justify-items:center;
}
@media (max-width: 980px){
  .page-.page-catalog .cat-grid{ grid-template-columns: repeat(2, minmax(240px, 1fr)); }
}
@media (max-width: 640px){
  .page-.page-catalog .cat-grid{ grid-template-columns: 1fr; }
}


/* v32: Pack types carousel */
.pack-section{
  padding: 50px 6%;
  text-align:center;
}
.pack-section h2{
  background:rgba(255,255,255,0.9);
  display:inline-block;
  padding:8px 18px;
  border-radius:10px;
  color:#27ae60;
  margin: 0 auto 18px;
  font-size: 32px; /* чуть меньше, чем h1 */
}
.pack-row{
  display:grid;
  grid-template-columns: repeat(4, minmax(260px, 1fr));
  gap: 26px;
  list-style: none;
  margin: 16px auto 0;
  padding: 0;
  max-width: 1400px;
}
@media (max-width: 980px){
  .pack-row{ grid-template-columns: repeat(2, minmax(240px, 1fr)); }
}
/* ensure cards fit grid */
.pack-row .pack-card{ min-width: 0; max-width: 100%; width: 100%; }

.pack-carousel{
  position:relative;
  max-width: 1200px;
  margin: 0 auto;
}
.pack-viewport{
  overflow:hidden;
}
.pack-track{
  display:flex;
  align-items:stretch;
  gap: 18px;
  will-change: transform;
}
.pack-card{
  background:rgba(255,255,255,0.9);
  border:1px solid #e9e9e9;
  border-radius:12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.9);
  padding: 16px 18px;
  min-width: 340px;
  max-width: 340px;
  display:flex;
  align-items:center;
  gap: 16px;
}
.pack-card img{
  width: 110px;
  height: auto;
  object-fit: contain;
  flex: 0 0 110px;
}
.pack-text{ font-size: var(--fs-sm); color:#333; line-height:1.35; }
.pack-arrow{
  position:absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 2px solid #2ecc71;
  color:#2ecc71;
  background: rgba(255,255,255,0.9);
  display:flex;
  align-items:center;
  justify-content:center;
  font-size: 28px;
  cursor:pointer;
  transition: background .2s, transform .2s;
}
.pack-arrow:hover{
  background:#2ecc71;
  color:#fff;
  transform: translateY(-50%) scale(1.05);
}
.pack-arrow.left{ left: -56px; }
.pack-arrow.right{ right: -56px; }

@media (max-width: 1024px){
  .pack-arrow.left{ left: -10px; }
  .pack-arrow.right{ right: -10px; }
  .pack-card{ min-width:300px; max-width:300px; }
}
@media (max-width: 640px){
  .pack-card{ min-width:260px; max-width:260px; }
}

.page-hero 

/* === FIX: unified product cards on all category pages (Пасльонові/Розові/Гарбузові/Цитрусові/Спаржоцвітні) === */
.solanaceae { padding: 18px 0 180px; }
.prod-list{ max-width:1200px; margin:0 auto; padding:0 6%; display:flex; flex-direction:column; gap:18px; }
.prod-card{ background: rgba(255,255,255,0.95); border:1px solid #e8e8e8; border-radius:14px; box-shadow:0 2px 8px rgba(0,0,0,.08); padding:14px 18px; display:grid; grid-template-columns: 136px 1fr auto; align-items:center; gap:16px; overflow:hidden; }
.prod-img{ width:120px; height:120px; display:flex; align-items:center; justify-content:center; overflow:hidden; border-radius:12px; }
.prod-img img{ max-height:120px !important; max-width:120px !important; height:auto; width:auto; transition: transform .3s ease; }
.prod-card:hover .prod-img img{ transform: scale(1.06); }
.prod-body h3{ margin:0 0 6px 0; color:#2b2b2b; font-size:22px; }
.prod-body ul{ margin-left:18px; color:#333; line-height:1.6; }
.prod-actions{ display:flex; align-items:center; justify-content:flex-end; }
.info-btn{ border:2px solid #27ae60; background:#27ae60; color:#fff; font-weight:600; padding:10px 16px; border-radius:10px; cursor:pointer; transition:.22s; white-space:nowrap; }
.info-btn:hover{ background:transparent; color:#27ae60; }
.prod-info{ grid-column: 1 / -1; display:none; background: rgba(39, 174, 96, .06); border-radius:10px; padding:12px 14px; color:#244; }
.prod-card.open .prod-info{ display:block; }
@media (max-width: 760px){
  .prod-card{ grid-template-columns: 100px 1fr; }
  .prod-actions{ grid-column: 1 / -1; justify-content:flex-start; }
}
/* Дополнительный отступ снизу после последней карточки на всех страницах с картками */
.prod-list { padding-bottom: 140px !important; }

@media (max-width: 760px){
  .prod-list { padding-bottom: 100px !important; }
}
/* ПК: жёстко центрируем картинки в карточках */
@media (min-width: 1025px){
  /* сама карточка — сетка, всё по центру */
  .card{
    display: grid !important;
    justify-items: center !important;
    text-align: center;
  }

  /* обёртки медиа (если есть) */
  .card__media, .card .image, .card .thumb{
    width: 100%;
    display: flex !important;
    justify-content: center !important;
    align-items: flex-start;
  }

  /* само изображение */
  .card > img,
  .card__media > img,
  .card img{
    display: block !important;
    margin-left: auto !important;
    margin-right: auto !important;
    float: none !important;
    position: static !important;
    left: auto !important;
    right: auto !important;
    transform: none !important; /* сброс translateX(...) и т.п. */
  }
}
/* ПК: принудительный центр картинок в карточках преимуществ */
@media (min-width: 1025px){
  /* выравниваем содержимое карточек по центру */
  .card{ text-align:center; }

  /* НАДЕЖНЫЙ центр: left 50% + translateX(-50%) */
  .card img{
    position: relative !important;
    left: 50% !important;
    transform: translateX(-50%) !important;

    display: block !important;
    margin: 0 !important;
    float: none !important;
    right: auto !important;
  }

  /* если у картинки есть обёртка — тоже центрируем её */
  .card__media, .card .image, .card .thumb, .card figure{
    position: relative !important;
    display: block !important;
    width: 100% !important;
    text-align: center !important;
  }
}
/* ПК: центрируем медиа в карточках преимуществ */
@media (min-width: 1025px){
  /* Делаем каждую карточку вертикальной колонкой и центрируем содержимое */
  .card{
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;   /* центр по горизонтали */
    text-align: center !important;
    padding-left: 24px !important;    /* симметричные поля, чтоб не "косило" */
    padding-right: 24px !important;
  }

  /* Если внутри есть обёртка для изображения — центрируем и её */
  .card__media, .card .image, .card .thumb, .card figure{
    width: 100% !important;
    display: flex !important;
    justify-content: center !important;
    align-items: flex-start !important;
  }

  /* Само изображение — без смещений */
  .card img{
    display: block !important;
    margin: 0 auto !important;
    float: none !important;
    position: static !important;
    transform: none !important;
    max-width: 200px; /* можно подправить */
    height: auto;
  }
}
/* Жёсткое центрирование картинок в карточках преимуществ */
.advantages .card {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;   /* всё содержимое по центру */
  text-align: center !important;
}

.advantages .card img {
  display: block !important;
  margin: 0 auto !important;
  float: none !important;
  position: relative !important;
  left: auto !important;
  right: auto !important;
  transform: none !important;
}
/* Центрирование картинок в секции "Наші переваги" */
.adv-cards .adv-card{
  /* делаем карточку колонкой и центрируем всё содержимое */
  display: grid !important;
  grid-auto-rows: max-content;
  justify-items: center !important; /* <— ключ: центрирует ВСЕ дочерние элементы */
  text-align: center;
}

/* само изображение — без любых старых смещений */
.adv-cards .adv-card > img{
  display: block !important;
  margin: 0 auto !important;
  float: none !important;
  position: static !important;
  left: auto !important;
  right: auto !important;
  transform: none !important;
  max-width: 200px; /* если нужно — подстрой размер */
  height: auto;
}

/* Адаптив сетки (по желанию, чтобы красиво на узких) */
@media (max-width: 1024px){
  .adv-cards{
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }
}
@media (max-width: 640px){
  .adv-cards{
    grid-template-columns: 1fr;
  }
}





/* Fix: center two catalog cards with same gap as pack section */
.page-catalog .cat-grid{
  grid-template-columns: repeat(2, 1fr);
  gap: 26px; /* same as .pack-row gap */
  max-width: 560px; /* 2 cards (≈260px each) + 26px gap + небольшие поля */
  margin: 0 auto; /* ensure centered */
}
