/* Inter подключается один раз в common/header.twig (preconnect + stylesheet) */

/* Главная только: #common-home есть только в common/home.twig. Гасим горизонтальный скролл от 100vw (hero и т.п.).
   Делаем на html, не на обёртке вокруг контента — иначе overflow-y становится auto и обрезается слайдер сверху. */
html:has(#common-home) {
  overflow-x: hidden;
}

:root {
  --b-white: #ffffff;
  --b-light-gray: #f8f9fa;
  --b-text-dark: #1a1a1a;
  --b-text-gray: #707070;
  --b-yellow: #f6d32d;
  --b-shadow: rgba(0, 0, 0, 0.05);
  --b-radius: 20px;
  --b-transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.benefits-light {
  background-color: var(--b-white);
  padding: 60px 20px;
  width: 100%;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

.benefits-wrapper {
  max-width: 1500px;
  margin: 0 auto;
}

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

.benefit-item {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 0, 0, 0.04);
  border-radius: var(--b-radius);
  padding: 25px;
  display: flex;
  align-items: center;
  gap: 18px;
  transition: var(--b-transition);
  box-shadow: 0 4px 15px var(--b-shadow);
  cursor: default;
}
:
 .benefit-item:hover {
   transform: translateY(-6px);
   background: var(--b-white);
   box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
   border-color: var(--b-yellow);
 }
:
 .benefit-icon-box {
   width: 54px;
   height: 54px;
   background: var(--b-light-gray);
   border-radius: 15px;
   display: flex;
   align-items: center;
   justify-content: center;
   flex-shrink: 0;
   transition: var(--b-transition);
 }
:
 .benefit-icon-box svg {
   width: 28px;
   height: 28px;
   fill: var(--b-text-dark);
   transition: var(--b-transition);
 }
:
 .benefit-item:hover .benefit-icon-box {
   background: var(--b-yellow);
   transform: rotate(-8deg) scale(1.1);
 }
:
 .benefit-item:hover .benefit-icon-box svg {
   fill: #000;
 }
:
 .benefit-info h3 {
   margin: 0;
   font-size: 17px;
   font-weight: 700;
   color: var(--b-text-dark);
   letter-spacing: -0.3px;
   line-height: 1.2;
 }
:
 .benefit-info p {
   margin: 4px 0 0 0;
   font-size: 14px;
   color: var(--b-text-gray);
   font-weight: 400;
 }
:
@media (max-width: 1100px) {
  .benefits-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
:
@media (max-width: 650px) {
  .benefits-light {
    padding: 40px 15px;
  }
  .benefits-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .benefit-item {
    padding: 20px;
  }
  .benefit-info h3 {
    font-size: 16px;
  }
}
:
 .benefit-item {
   animation: cardAppear 0.5s ease backwards;
 }
:
@keyframes cardAppear {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}
:
.benefit-item:nth-child(1) { animation-delay: 0.1s; }
.benefit-item:nth-child(2) { animation-delay: 0.15s; }
.benefit-item:nth-child(3) { animation-delay: 0.2s; }
.benefit-item:nth-child(4) { animation-delay: 0.25s; }
.benefit-item:nth-child(5) { animation-delay: 0.3s; }
.benefit-item:nth-child(6) { animation-delay: 0.35s; }

/* Карусели товаров (featured / похожие / недавние): emmet-featured-carousel.css */

/* ==========================================================================
   Главная: карусель акций
   ========================================================================== */

.emmet-home-sales {
  margin: 2.5rem 0 2.5rem;
  padding: 0;
  width: 100%;
}

.emmet-home-sales__inner {
  width: 100%;
  max-width: 1560px;
  margin: 0 auto;
  padding: 0 clamp(16px, 3vw, 40px);
  box-sizing: border-box;
}

.emmet-home-sales__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.15rem;
}

.emmet-home-sales__tag {
  display: inline-block;
  margin-bottom: 0.35rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #b38f00;
}

.emmet-home-sales__title {
  margin: 0;
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--b-text-dark, #1a1a1a);
}

.emmet-home-sales__all {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 1rem;
  border-radius: 10px;
  font-size: 0.875rem;
  font-weight: 700;
  text-decoration: none;
  color: var(--b-text-dark, #1a1a1a);
  background: #fff;
  border: 1px solid #e5e5e5;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.emmet-home-sales__all:hover {
  background: var(--emmet-shop-yellow, #f5c400);
  border-color: var(--emmet-shop-yellow, #f5c400);
  color: #1a1a1a;
}

.emmet-home-sales__carousel {
  position: relative;
  padding: 0 52px;
}

.emmet-home-sales__carousel .emmet-home-sales-swiper {
  overflow: hidden;
  padding-bottom: 0;
}

.emmet-home-sales__carousel .emmet-home-sales-swiper-prev,
.emmet-home-sales__carousel .emmet-home-sales-swiper-next {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid #e0e0e0;
  color: #1a1a1a !important;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
  top: 38%;
  margin-top: 0;
}

.emmet-home-sales__carousel .emmet-home-sales-swiper-prev {
  left: 0;
}

.emmet-home-sales__carousel .emmet-home-sales-swiper-next {
  right: 0;
}

.emmet-home-sales__carousel .emmet-home-sales-swiper-prev::after,
.emmet-home-sales__carousel .emmet-home-sales-swiper-next::after {
  font-size: 16px;
  font-weight: 900;
  color: #c9a000;
}

.emmet-home-sales__carousel .emmet-home-sales-swiper-prev:hover,
.emmet-home-sales__carousel .emmet-home-sales-swiper-next:hover {
  background: var(--emmet-shop-yellow, #f5c400);
  border-color: var(--emmet-shop-yellow, #f5c400);
}

/* Только стрелки — без точек и полоски */
.emmet-home-sales__carousel .swiper-pagination,
.emmet-home-sales__carousel .swiper-scrollbar {
  display: none !important;
}

.emmet-home-sales .emmet-sale-card--home .emmet-sale-card__visual {
  aspect-ratio: 16 / 10;
}

@media (max-width: 767.98px) {
  .emmet-home-sales__carousel {
    padding: 0 4px;
  }

  .emmet-home-sales__carousel .emmet-home-sales-swiper-prev,
  .emmet-home-sales__carousel .emmet-home-sales-swiper-next {
    display: none;
  }
}

/* ==========================================================================
   Главная: карусель блога
   ========================================================================== */

.emmet-home-blog {
  margin: 2.5rem 0 2.5rem;
  padding: 0;
  width: 100%;
  background: linear-gradient(180deg, #fafafa 0%, #fff 48%, #fafafa 100%);
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
}

.emmet-home-blog__inner {
  width: 100%;
  max-width: 1560px;
  margin: 0 auto;
  padding: clamp(1.5rem, 3vw, 2.25rem) clamp(16px, 3vw, 40px);
  box-sizing: border-box;
}

.emmet-home-blog__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.15rem;
}

.emmet-home-blog__tag {
  display: inline-block;
  margin-bottom: 0.35rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #b38f00;
}

.emmet-home-blog__title {
  margin: 0;
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--b-text-dark, #1a1a1a);
}

.emmet-home-blog__all {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 1rem;
  border-radius: 10px;
  font-size: 0.875rem;
  font-weight: 700;
  text-decoration: none;
  color: var(--b-text-dark, #1a1a1a);
  background: #fff;
  border: 1px solid #e5e5e5;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.emmet-home-blog__all:hover {
  background: var(--emmet-shop-yellow, #f5c400);
  border-color: var(--emmet-shop-yellow, #f5c400);
  color: #1a1a1a;
}

.emmet-home-blog__carousel {
  position: relative;
  padding: 0 52px;
}

.emmet-home-blog__carousel .emmet-home-blog-swiper {
  overflow: hidden;
  padding-bottom: 0;
}

.emmet-home-blog__carousel .emmet-home-blog-swiper-prev,
.emmet-home-blog__carousel .emmet-home-blog-swiper-next {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid #e0e0e0;
  color: #1a1a1a !important;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
  top: 38%;
  margin-top: 0;
}

.emmet-home-blog__carousel .emmet-home-blog-swiper-prev {
  left: 0;
}

.emmet-home-blog__carousel .emmet-home-blog-swiper-next {
  right: 0;
}

.emmet-home-blog__carousel .emmet-home-blog-swiper-prev::after,
.emmet-home-blog__carousel .emmet-home-blog-swiper-next::after {
  font-size: 16px;
  font-weight: 900;
  color: #c9a000;
}

.emmet-home-blog__carousel .emmet-home-blog-swiper-prev:hover,
.emmet-home-blog__carousel .emmet-home-blog-swiper-next:hover {
  background: var(--emmet-shop-yellow, #f5c400);
  border-color: var(--emmet-shop-yellow, #f5c400);
}

.emmet-home-blog__carousel .swiper-pagination,
.emmet-home-blog__carousel .swiper-scrollbar {
  display: none !important;
}

.emmet-home-blog .emmet-blog-card--home {
  height: 100%;
}

.emmet-home-blog .emmet-blog-card--home .emmet-blog-card__link {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

.emmet-home-blog .emmet-blog-card--home .emmet-blog-card__visual {
  aspect-ratio: 16 / 10;
}

.emmet-home-blog .emmet-blog-card--home .emmet-blog-card__name {
  margin: 0;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: var(--emmet-accent-ink, #1a1a1a);
}

.emmet-home-blog .emmet-blog-card--home .emmet-blog-card__date {
  margin: 0;
  font-size: 0.8125rem;
  color: #777;
}

.emmet-home-blog .emmet-blog-card--home .emmet-blog-card__excerpt {
  flex: 1 1 auto;
  -webkit-line-clamp: 3;
}

@media (max-width: 767.98px) {
  .emmet-home-blog__carousel {
    padding: 0 4px;
  }

  .emmet-home-blog__carousel .emmet-home-blog-swiper-prev,
  .emmet-home-blog__carousel .emmet-home-blog-swiper-next {
    display: none;
  }
}

