/* Стилі сторінки «Головна» */

/* ===== Featured-картки: перемикання фото при наведенні ===== */
.home__product-media { position: relative; aspect-ratio: 1/1; overflow: hidden; }
.home__product-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; display: block; transition: opacity 0.45s ease, transform 0.45s ease; }
.home__product-image--alt { opacity: 0; }
.home__product-card:hover .home__product-image--base { transform: scale(1.06); opacity: 0; }
.home__product-card:hover .home__product-image--alt { opacity: 1; transform: scale(1.06); }
.home__cat-media { overflow: hidden; }
.home__cat-card:hover .home__cat-image { transform: scale(1.05); }
.home__cat-image { transition: transform 0.4s ease; }

/* ===== Головний слайдер (Hero) ===== */
.hero { position: relative; background: var(--green-dark,#1C4A2A); }
.hero__viewport { position: relative; overflow: hidden; height: calc(100vh - 68px); min-height: 540px; }
.hero__track { display: flex; height: 100%; will-change: transform; transition: transform 0.65s cubic-bezier(0.5, 0, 0.2, 1); transform: translateX(0%); }
.hero__slide { position: relative; flex: 0 0 auto; width: 100%; height: 100%; overflow: hidden; }
.hero__image { position:absolute;inset:0;width:100%;height:100%;object-fit:cover;display:block }
.hero__overlay { position: absolute; inset: 0px; background: linear-gradient(90deg, rgba(20, 42, 26, 0.52) 0%, rgba(20, 42, 26, 0.22) 44%, rgba(20, 42, 26, 0) 72%); }
.hero__container { position: relative; height: 100%; max-width: 1240px; margin: 0px auto; padding: 0px 28px; display: flex; align-items: center; }
.hero__card { max-width: 548px; background: rgba(245, 242, 232, 0.82); backdrop-filter: blur(16px); border: 1px solid rgba(255, 255, 255, 0.5); border-radius: 26px; padding: 46px 44px; box-shadow: rgba(0, 0, 0, 0.6) 0px 40px 90px -42px; }
.hero__badge { display: inline-flex; align-items: center; gap: 9px; padding: 7px 15px; border-radius: 999px; background: rgba(197, 58, 43, 0.12); color: var(--accent,#C53A2B); font-size: 13px; font-weight: 700; letter-spacing: 0.02em; margin-bottom: 22px; }
.hero__badge-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent,#C53A2B); }
.hero__title { font-family: Montserrat, system-ui, -apple-system, sans-serif; font-weight: 600; font-size: 52px; line-height: 1.04; letter-spacing: -0.015em; color: var(--green-dark,#1C4A2A); margin: 0px 0px 18px; text-wrap: balance; }
.hero__title-accent { color: var(--accent,#C53A2B); }
.hero__text { font-size: 17.5px; line-height: 1.6; color: rgb(92, 90, 78); margin: 0px 0px 30px; max-width: 448px; }
.hero__cta { display: inline-flex; align-items: center; gap: 10px; padding: 16px 30px; border-radius: 999px; background: var(--accent,#C53A2B); color: rgb(255, 255, 255); font-size: 16px; font-weight: 700; cursor: pointer; }
.hero__cta:hover { background: var(--accent-dark,#A82E22); }

/* ===== Перший (вступний) слайд: довший текст + список переваг ===== */
.hero__card--intro { max-width: 600px; padding: 32px 40px; }
.hero__title--intro { font-size: 34px; line-height: 1.08; margin-bottom: 14px; }
.hero__text--intro { font-size: 15.5px; line-height: 1.5; margin-bottom: 18px; max-width: 520px; }
.hero__list { list-style: none; margin: 0 0 22px; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.hero__list-item { display: flex; align-items: flex-start; gap: 11px; font-size: 15px; line-height: 1.35; font-weight: 600; color: var(--green-dark,#1C4A2A); }
.hero__list-mark { flex: 0 0 auto; width: 21px; height: 21px; border-radius: 50%; background: rgba(46,125,50,0.14); color: var(--green,#2E7D32); display: inline-flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 800; margin-top: 1px; }
.hero__nav-prev { position: absolute; left: 22px; top: 50%; transform: translateY(-50%); width: 52px; height: 52px; border-radius: 50%; background: rgba(28, 74, 42, 0.42); backdrop-filter: blur(6px); display: flex; align-items: center; justify-content: center; cursor: pointer; color: rgb(255, 255, 255); z-index: 4; border: 1px solid rgba(255, 255, 255, 0.28); }
.hero__nav-prev:hover { background: rgba(28, 74, 42, 0.74); }
.hero__nav-next { position: absolute; right: 22px; top: 50%; transform: translateY(-50%); width: 52px; height: 52px; border-radius: 50%; background: rgba(28, 74, 42, 0.42); backdrop-filter: blur(6px); display: flex; align-items: center; justify-content: center; cursor: pointer; color: rgb(255, 255, 255); z-index: 4; border: 1px solid rgba(255, 255, 255, 0.28); }
.hero__nav-next:hover { background: rgba(28, 74, 42, 0.74); }
.hero__dots { position: absolute; left: 0px; right: 0px; bottom: 26px; display: flex; gap: 10px; justify-content: center; z-index: 4; }
.hero__dot-active { height: 9px; border-radius: 999px; cursor: pointer; transition: width 0.3s, background 0.3s; border-width: medium; border-style: none; border-color: currentcolor; border-image: initial; width: 30px; background: rgb(197, 58, 43); }
.hero__dot { height: 9px; border-radius: 999px; cursor: pointer; transition: width 0.3s, background 0.3s; border-width: medium; border-style: none; border-color: currentcolor; border-image: initial; width: 9px; background: rgba(255, 255, 255, 0.7); }

/* ===== «Категорії продукції» ===== */
.home__categories { max-width: 1240px; margin: 0px auto; padding: 58px 28px; }
.home__section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 30px; flex-wrap: wrap; }
.home__eyebrow { display: inline-flex; align-items: center; gap: 9px; padding: 8px 16px; border-radius: 999px; background: rgb(230, 237, 226); margin-bottom: 10px; }
.home__eyebrow-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent,#C53A2B); flex: 0 0 auto; }
.home__eyebrow-text { font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--green-dark,#1C4A2A); }
.home__section-title { font-family: Montserrat, system-ui, -apple-system, sans-serif; font-weight: 600; font-size: 38px; line-height: 1.1; color: var(--green-dark,#1C4A2A); margin: 0px; }
.home__section-link { font-size: 15px; font-weight: 700; color: var(--green-dark,#1C4A2A); cursor: pointer; border-bottom: 2px solid var(--accent,#C53A2B); padding-bottom: 3px; }
.home__section-link:hover { color: var(--accent); }
.home__cat-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.home__cat-card { cursor: pointer; background: rgb(255, 255, 255); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; display: flex; flex-direction: column; transition: transform 0.2s, box-shadow 0.2s; }
.home__cat-card:hover { transform: translateY(-4px); box-shadow: rgba(28, 74, 42, 0.45) 0px 22px 40px -26px; }
.home__cat-media { aspect-ratio: 1 / 0.92; overflow: hidden; background: rgb(236, 231, 214); }
.home__cat-image { width: 100%; height: 100%; object-fit: contain; display: block; transition: transform 0.35s; transform: scale(0.95); }
.home__cat-image-blog { object-fit: cover; transform: scale(1); }
.home__cat-image:hover { transform: scale(1.05); }
.home__cat-body { padding: 15px 16px 18px; }
.home__cat-title { font-family: Montserrat, system-ui, -apple-system, sans-serif; font-size: 17px; font-weight: 600; color: var(--green-dark,#1C4A2A); margin: 0px 0px 4px; line-height: 1.15; }
.home__cat-text { font-size: 13px; color: var(--muted); margin: 0px; }

/* ===== «Професійний підхід до кожної поставки» ===== */
.home__approach { background: var(--green-dark,#1C4A2A); color: rgb(237, 232, 216); }
.home__approach-inner { max-width: 1240px; margin: 0px auto; padding: 64px 28px; }
.home__approach-eyebrow { font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: rgb(157, 195, 162); margin-bottom: 10px; }
.home__approach-title { font-family: Montserrat, system-ui, -apple-system, sans-serif; font-weight: 600; font-size: 38px; line-height: 1.1; color: rgb(255, 255, 255); margin: 0px 0px 38px; max-width: 620px; }
.home__approach-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.home__stat { border-top: 2px solid rgba(157, 195, 162, 0.4); padding-top: 20px; }
.home__stat-num { font-family: Montserrat, system-ui, -apple-system, sans-serif; font-size: 30px; font-weight: 700; color: var(--accent,#C53A2B); margin-bottom: 14px; }
.home__stat-title { font-size: 18px; font-weight: 700; color: rgb(255, 255, 255); margin: 0px 0px 9px; }
.home__stat-text { font-size: 14.5px; line-height: 1.55; color: rgb(201, 201, 188); margin: 0px; }

/* ===== «Обрані позиції» ===== */
.home__featured { max-width: 1240px; margin: 0px auto; padding: 62px 28px; }
.home__product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.home__product-card { background: rgb(255, 255, 255); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; display: flex; flex-direction: column; transition: box-shadow 0.2s, transform 0.2s; }
.home__product-card:hover { transform: translateY(-4px); box-shadow: rgba(28, 74, 42, 0.45) 0px 22px 42px -26px; }
.home__product-media { position: relative; aspect-ratio: 1 / 1; overflow: hidden; cursor: pointer; background: #fff; }
.home__product-badge { position: absolute; top: 12px; left: 12px; background: var(--green-dark,#1C4A2A); color: rgb(245, 242, 232); font-size: 11.5px; font-weight: 700; padding: 5px 11px; border-radius: 999px; }
.home__product-body { padding: 16px 16px 18px; display: flex; flex-direction: column; gap: 9px; flex: 1 1 0%; }
.home__product-cat { font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--green,#2E7D32); }
.home__product-title { font-family: Montserrat, system-ui, -apple-system, sans-serif; font-size: 17px; font-weight: 600; line-height: 1.2; color: var(--ink); margin: 0px; cursor: pointer; }
.home__product-title:hover { color: var(--green); }
.home__product-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-top: 6px; }
.home__product-price { font-size: 15px; font-weight: 800; color: var(--green-dark,#1C4A2A); }
.home__product-btn { padding: 8px 15px; border-radius: 999px; background: var(--accent,#C53A2B); color: rgb(255, 255, 255); font-size: 13px; font-weight: 700; cursor: pointer; }
.home__product-btn:hover { background: var(--accent-dark,#A82E22); }
.home__product-card:hover .home__product-media--single .home__product-image--base {
	opacity: 1;
	transform: scale(1.06);
}

/* ===== «Перевірені італійські виробники» ===== */
.home__producers { max-width: 1240px; margin: 0px auto; padding: 54px 28px; text-align: center; }
.home__producers-eyebrow { display: inline-flex; align-items: center; gap: 9px; padding: 8px 16px; border-radius: 999px; background: rgb(230, 237, 226); margin-bottom: 12px; }
.home__producers-title { font-family: Montserrat, system-ui, -apple-system, sans-serif; font-weight: 600; font-size: 34px; color: var(--green-dark,#1C4A2A); margin: 0px 0px 34px; }
.home__logos { display: flex; gap: 50px; flex-wrap: wrap; justify-content: center; align-items: center; }
.home__logo { flex: 0 0 auto; max-width: 220px; max-height: 104px; width: auto; height: auto; object-fit: contain; transition: transform 0.2s; }
.home__logo:hover { transform: translateY(-4px); }

/* ===== Карусель асортименту ===== */
.home__assort { max-width: 1240px; margin: 0px auto; padding: 30px 28px 64px; }
.home__assort-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 26px; flex-wrap: wrap; }
.home__assort-headtext { max-width: 680px; }
.home__assort-title { font-family: Montserrat, system-ui, -apple-system, sans-serif; font-weight: 600; font-size: 38px; line-height: 1.1; color: var(--green-dark,#1C4A2A); margin: 0px; text-wrap: balance; }
.home__assort-link { font-size: 15px; font-weight: 700; color: var(--green-dark,#1C4A2A); cursor: pointer; border-bottom: 2px solid var(--accent,#C53A2B); padding-bottom: 3px; white-space: nowrap; }
.home__assort-link:hover { color: var(--accent); }
.home__assort-stage { position: relative; border-radius: 24px; overflow: hidden; background: var(--green-dark,#1C4A2A); }
.home__assort-track { display: flex; will-change: transform; transition: transform 0.6s cubic-bezier(0.5, 0, 0.2, 1); transform: translateX(0%); }
.home__assort-slide { position: relative; flex: 0 0 auto; width: 100%; height: 440px; overflow: hidden; }
.home__assort-image { width: 100%; height: 100%; object-fit: cover; display: block; }
.home__assort-overlay { position: absolute; inset: 0px; background: linear-gradient(0deg, rgba(20, 42, 26, 0.82) 0%, rgba(20, 42, 26, 0.28) 48%, rgba(20, 42, 26, 0.05) 100%); }
.home__assort-caption { position: absolute; left: 0px; right: 0px; bottom: 0px; padding: 38px 44px; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.home__assort-captext { max-width: 560px; }
.home__assort-slide-title { font-family: Montserrat, system-ui, -apple-system, sans-serif; font-weight: 600; font-size: 34px; line-height: 1.08; color: rgb(255, 255, 255); margin: 0px 0px 8px; text-wrap: balance; }
.home__assort-slide-text { font-size: 16px; line-height: 1.5; color: rgb(217, 227, 214); }
.home__assort-slide-cta { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 9px; padding: 14px 26px; border-radius: 999px; background: var(--accent,#C53A2B); color: rgb(255, 255, 255); font-size: 15px; font-weight: 700; cursor: pointer; }
.home__assort-slide-cta:hover { background: var(--accent-dark,#A82E22); }
.home__assort-nav-prev { position: absolute; left: 20px; top: calc(50% - 26px); width: 48px; height: 48px; border-radius: 50%; background: rgba(255, 255, 255, 0.16); backdrop-filter: blur(6px); display: flex; align-items: center; justify-content: center; cursor: pointer; color: rgb(255, 255, 255); border: 1px solid rgba(255, 255, 255, 0.3); }
.home__assort-nav-prev:hover { background: rgba(255, 255, 255, 0.3); }
.home__assort-nav-next { position: absolute; right: 20px; top: calc(50% - 26px); width: 48px; height: 48px; border-radius: 50%; background: rgba(255, 255, 255, 0.16); backdrop-filter: blur(6px); display: flex; align-items: center; justify-content: center; cursor: pointer; color: rgb(255, 255, 255); border: 1px solid rgba(255, 255, 255, 0.3); }
.home__assort-nav-next:hover { background: rgba(255, 255, 255, 0.3); }
.home__assort-dots { position: absolute; left: 0px; right: 0px; bottom: 18px; display: flex; gap: 9px; justify-content: center; }
.home__assort-dot { height: 9px; border-radius: 999px; cursor: pointer; transition: width 0.3s, background 0.3s; border-width: medium; border-style: none; border-color: currentcolor; border-image: initial; width: 9px; background: rgba(28, 74, 42, 0.22); }

/* ===== «Отримайте персональну пропозицію під ваш з» ===== */
.home__cta-band { max-width: 1240px; margin: 0px auto; padding: 20px 28px 64px; }
.home__cta-box { background: var(--green,#2E7D32); border-radius: 28px; padding: 54px 48px; display: grid; grid-template-columns: 1.3fr 1fr; gap: 36px; align-items: center; position: relative; overflow: hidden; }
.home__cta-title { font-family: Montserrat, system-ui, -apple-system, sans-serif; font-weight: 600; font-size: 36px; line-height: 1.12; color: rgb(255, 255, 255); margin: 0px 0px 14px; text-wrap: balance; }
.home__cta-text { font-size: 16px; line-height: 1.6; color: rgba(255, 255, 255, 0.88); margin: 0px; max-width: 480px; }
.home__cta-actions { display: flex; flex-direction: column; gap: 13px; align-items: flex-start; }
.home__cta-btn-light { width: 100%; text-align: center; padding: 16px 28px; border-radius: 999px; background: rgb(255, 255, 255); color: var(--green-dark,#1C4A2A); font-size: 16px; font-weight: 700; cursor: pointer; }
.home__cta-btn-light:hover { background: var(--cream); }
.home__cta-btn-accent { width: 100%; text-align: center; padding: 16px 28px; border-radius: 999px; background: var(--accent,#C53A2B); color: rgb(255, 255, 255); font-size: 16px; font-weight: 700; cursor: pointer; }
.home__cta-btn-accent:hover { background: var(--accent-dark,#A82E22); }

/* ===== «Корисне для шефів» ===== */
.home__posts { max-width: 1240px; margin: 0px auto; padding: 0px 28px 70px; }
.home__posts-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 28px; flex-wrap: wrap; }
.home__posts-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.home__post-media { position: relative; aspect-ratio: 1 / 0.62; overflow: hidden; background: rgb(236, 231, 214); }
.home__post-badge { position: absolute; top: 12px; left: 12px; background: var(--accent,#C53A2B); color: rgb(255, 255, 255); font-size: 11.5px; font-weight: 700; padding: 5px 12px; border-radius: 999px; }
.home__post-body { padding: 18px 18px 20px; display: flex; flex-direction: column; gap: 10px; flex: 1 1 0%; }
.home__post-title { font-family: Montserrat, system-ui, -apple-system, sans-serif; font-size: 19px; font-weight: 600; line-height: 1.22; color: var(--green-dark,#1C4A2A); margin: 0px; }
.home__post-text { font-size: 14px; line-height: 1.55; color: var(--muted); margin: 0px; }
.home__post-meta { margin-top: auto; padding-top: 8px; display: flex; gap: 12px; font-size: 12.5px; font-weight: 600; color: rgb(154, 148, 134); }

/* =====================  АДАПТИВНІСТЬ  ===================== */
@media (max-width: 1100px) {
  .home__cat-grid { grid-template-columns: repeat(3, 1fr); }
  .home__product-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 980px) {
  .hero__title { font-size: 42px; }
  .home__section-title, .home__assort-title { font-size: 31px; }
  .home__approach-title { font-size: 31px; }
  .home__approach-grid { grid-template-columns: repeat(2, 1fr); }
  .home__posts-grid { grid-template-columns: repeat(2, 1fr); }
  .home__cta-box { grid-template-columns: 1fr; gap: 26px; }
}
@media (max-width: 768px) {
  .hero__viewport { min-height: 480px; height: calc(100vh - 56px); }
  .hero__card { max-width: none; padding: 30px 24px; border-radius: 20px; }
  .hero__title { font-size: 30px; }
  .hero__title--intro { font-size: 25px; }
  .hero__text { font-size: 15.5px; }
  .hero__text--intro { font-size: 14.5px; margin-bottom: 16px; }
  .hero__card--intro { padding: 26px 22px; }
  .hero__list { gap: 9px; margin-bottom: 20px; }
  .hero__list-item { font-size: 14px; }
  .hero__cta { font-size: 15px; padding: 14px 26px; }
  .hero__nav-prev, .hero__nav-next { display: none; }

  .home__categories, .home__featured, .home__producers, .home__assort, .home__posts { padding-left: 18px; padding-right: 18px; }
  .home__categories { padding-top: 44px; padding-bottom: 44px; }
  .home__approach-inner { padding: 46px 18px; }
  .home__cta-band { padding: 14px 18px 48px; }

  .home__cat-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .home__product-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .home__approach-grid { grid-template-columns: 1fr; gap: 22px; }
  .home__posts-grid { grid-template-columns: 1fr; }

  /* Картки товарів: ціна над кнопкою, кнопка на всю ширину — не тісно */
  .home__product-body { padding: 15px 14px 16px; gap: 8px; }
  .home__product-title { font-size: 15.5px; }
  .home__product-foot { flex-direction: column; align-items: stretch; gap: 11px; padding-top: 10px; }
  .home__product-price { font-size: 15px; white-space: nowrap; }
  .home__product-btn { text-align: center; padding: 11px 14px; font-size: 13.5px; }
  .home__cat-body { padding: 14px 15px 16px; }

  .home__section-head, .home__assort-head, .home__posts-head { gap: 12px; margin-bottom: 22px; }
  .home__section-title, .home__assort-title { font-size: 27px; }
  .home__approach-title { font-size: 27px; margin-bottom: 28px; }
  .home__cta-title { font-size: 27px; }
  .home__cta-box { padding: 34px 26px; }

  .home__logos { gap: 30px; }
  .home__logo { max-height: 76px; max-width: 160px; }

  .home__assort-slide { height: 360px; }
  .home__assort-caption { padding: 24px 22px; }
  .home__assort-slide-title { font-size: 24px; }
  .home__assort-nav-prev, .home__assort-nav-next { display: none; }
}
@media (max-width: 480px) {
  .home__cat-grid { grid-template-columns: 1fr 1fr; }
  .home__assort-slide-cta { display: none; }
}
