:root {
  --home-gutter: clamp(2.25rem, 5.5vw, 4rem);
}

.hero-slider-wrap {
  width: 100%;
  padding: 1.125rem var(--home-gutter) 1.5rem;
  box-sizing: border-box;
  overflow: hidden;
}

.hero-slider {
  position: relative;
  width: 100%;
  margin: 0;
  padding: 0;
  background: transparent;
  box-sizing: border-box;
  overflow: hidden;
  border-radius: 0.625rem;
  isolation: isolate;
}

.hero-slider .swiper-wrapper {
  box-sizing: border-box;
}

.hero-slider .swiper-slide {
  width: 100%;
  height: auto;
  overflow: hidden;
  border-radius: 0.625rem;
  box-sizing: border-box;
}

.hero-slider .swiper-slide img {
  display: block;
  width: 100%;
  height: auto;
}

.hero-slider-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: auto;
  height: auto;
  padding: 0.375rem;
  border: none;
  border-radius: 0;
  background: transparent;
  color: #374151;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  line-height: 1;
  opacity: 0.85;
  transition: color 0.2s, opacity 0.2s;
}

.hero-slider-nav:hover {
  background: transparent;
  color: #111827;
  opacity: 1;
}

.hero-slider-nav--prev {
  left: 0.75rem;
}

.hero-slider-nav--next {
  right: 0.75rem;
}

.hero-slider-nav.swiper-button-disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.hero-slider-pagination {
  display: none;
}

@media (max-width: 640px) {
  :root {
    --home-gutter: 1.25rem;
  }

  .hero-slider-wrap {
    padding: 0.875rem var(--home-gutter) 1.125rem;
  }

  .hero-slider {
    border-radius: 0.5rem;
  }

  .hero-slider .swiper-slide {
    border-radius: 0.5rem;
  }

  .hero-slider-nav {
    font-size: 1.125rem;
  }

  .hero-slider-nav--prev {
    left: 0.5rem;
  }

  .hero-slider-nav--next {
    right: 0.5rem;
  }

  .hero-slider-pagination {
    display: flex;
  }
}

.home-trust {
  width: 100%;
  background: #fff;
  border-top: 1px solid #e8e8e8;
  border-bottom: 1px solid #e8e8e8;
  padding-left: var(--home-gutter);
  padding-right: var(--home-gutter);
  box-sizing: border-box;
}

.home-trust-inner {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: stretch;
  background: #fff;
  border: none;
  border-radius: 0;
  overflow: hidden;
  min-height: 5.75rem;
}

.home-trust-item {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.875rem;
  padding: 1.25rem 1.5rem;
  min-width: 0;
  min-height: 5.75rem;
  box-sizing: border-box;
}

.home-trust-item:not(:last-child) {
  border-right: 1px solid #ececec;
}

.home-trust-icon {
  flex-shrink: 0;
  width: 2rem;
  font-size: 1.75rem;
  color: var(--color-primary);
  text-align: center;
}

.home-trust-text {
  min-width: 0;
}

.home-trust-title {
  display: block;
  font-size: 0.9375rem;
  font-weight: 700;
  color: #1f2937;
  line-height: 1.3;
  margin-bottom: 0.25rem;
}

.home-trust-desc {
  display: block;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: #6b7280;
}

.home-categories {
  width: 100%;
  padding: 2rem 0;
  background: #fff;
}

.home-categories-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.home-categories-title {
  margin: 0 0 1.25rem;
  font-size: 1.375rem;
  font-weight: 600;
  color: #1f2937;
  line-height: 1.3;
}

.home-categories-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1.25rem;
}

.home-category {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  min-width: 0;
}

.home-category-media {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: 0.875rem;
  overflow: hidden;
  background: #e5e7eb;
}

.home-category-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.home-category:hover .home-category-media img {
  transform: scale(1.04);
}

.home-category-label {
  margin-top: 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #374151;
  text-align: center;
  line-height: 1.35;
  transition: color 0.2s;
}

.home-category:hover .home-category-label {
  color: var(--color-primary);
}

.home-featured {
  width: 100%;
  margin-top: 2.5rem;
  padding: 2.5rem 0;
  background: #fff;
  border-top: 1px solid #ececec;
  border-bottom: 1px solid #ececec;
}

.home-featured-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.home-featured-head {
  margin-bottom: 1.75rem;
}

.home-featured-title {
  margin: 0 0 0.625rem;
  font-size: 1.375rem;
  font-weight: 600;
  color: #1f2937;
  line-height: 1.3;
}

.home-featured-desc {
  margin: 0;
  max-width: 36rem;
  font-size: 0.875rem;
  line-height: 1.6;
  color: #6b7280;
}

.home-featured-products {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 1rem;
}

.home-product-card {
  border: 1px solid #ececec;
  background: #fff;
}

.home-product-media {
  position: relative;
  display: block;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #f3f4f6;
}

.home-product-badge {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 2;
  padding: 0.375rem 0.5rem;
  background: #dc2626;
  color: #fff;
  font-size: 0.6875rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.03em;
}

.home-product-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-product-body {
  padding: 0.875rem 0.875rem 0.75rem;
}

.home-product-name {
  margin: 0 0 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.35;
}

.home-product-name a {
  color: #1f2937;
  text-decoration: none;
}

.home-product-name a:hover {
  color: var(--color-primary);
}

.home-product-rating {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  margin-bottom: 0.75rem;
}

.home-product-stars {
  display: inline-flex;
  gap: 0.125rem;
  color: #d1d5db;
  font-size: 0.6875rem;
}

.home-product-stars .is-filled {
  color: #f59e0b;
}

.home-product-reviews {
  font-size: 0.75rem;
  color: #9ca3af;
}

.home-product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.home-product-prices {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
  min-width: 0;
}

.home-product-price-old {
  font-size: 0.75rem;
  color: #9ca3af;
  text-decoration: line-through;
  line-height: 1.2;
}

.home-product-price {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--color-primary-dark);
  line-height: 1.2;
}

.home-product-price--sale {
  color: #dc2626;
}

.home-product-cart {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  border: 1px solid var(--color-primary-light);
  background: var(--color-primary-light);
  color: var(--color-primary-dark);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8125rem;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.home-product-cart:hover {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
}

.home-refs {
  width: 100%;
  margin-top: 2.5rem;
  padding: 2.5rem 0;
  background: #fff;
  border-top: 1px solid #ececec;
  border-bottom: 1px solid #ececec;
}

.home-refs-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.home-refs-title {
  margin: 0 0 1.5rem;
  font-size: 1.375rem;
  font-weight: 600;
  color: #1f2937;
  line-height: 1.3;
}

.home-refs-slider {
  width: 100%;
  overflow: hidden;
}

.home-refs-slider .swiper-slide {
  height: auto;
}

.home-ref-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.home-ref-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 5.5rem;
  padding: 1rem;
  border: 1px solid #ececec;
  background: #fff;
  box-sizing: border-box;
}

.home-ref-logo img {
  display: block;
  width: 100%;
  max-width: 11rem;
  height: auto;
  max-height: 3rem;
  object-fit: contain;
}

.home-ref-name {
  display: block;
  margin-top: 0.625rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: #6b7280;
  line-height: 1.35;
}

.home-blog {
  width: 100%;
  padding: 2.5rem 0 0;
}

.home-blog-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.home-blog-title {
  margin: 0 0 1.5rem;
  font-size: 1.375rem;
  font-weight: 600;
  color: #1f2937;
  line-height: 1.3;
}

.home-blog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

@media (max-width: 991px) {
  .home-blog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.home-blog-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  border: 1px solid #ececec;
  background: #fff;
}

.home-blog-media {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #f3f4f6;
}

.home-blog-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.home-blog-card:hover .home-blog-media img {
  transform: scale(1.03);
}

.home-blog-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1rem 1.125rem 1.125rem;
}

.home-blog-date {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.75rem;
  color: #9ca3af;
  line-height: 1.3;
}

.home-blog-name {
  margin: 0 0 0.625rem;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.home-blog-name a {
  color: #1f2937;
  text-decoration: none;
}

.home-blog-name a:hover {
  color: var(--color-primary);
}

.home-blog-excerpt {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.6;
  color: #6b7280;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}

.home-blog-more {
  margin-top: 1.75rem;
  text-align: center;
}

.home-blog-more-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 11rem;
  padding: 0.75rem 1.5rem;
  border: 1px solid var(--color-primary);
  background: #fff;
  color: var(--color-primary-dark);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.home-blog-more-link:hover {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
}

.home-promo-link {
  display: block;
}

.home-promo-link:hover .home-promo-image {
  opacity: 0.96;
}

.home-promo-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.home-promo-image {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.home-seo {
  width: 100%;
  padding: 2.5rem 0 3rem;
}

.home-seo-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.home-seo-title {
  margin: 0 0 0.625rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: #374151;
  line-height: 1.4;
}

.home-seo-title:not(:first-child) {
  margin-top: 1.5rem;
}

.home-seo-inner p {
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.7;
  color: #6b7280;
}

.home-sectors {
  width: 100%;
  padding: 2rem 0;
  background: #f9fafb;
}

.home-sectors + .home-featured {
  margin-top: 2.5rem;
}

.home-sectors-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.home-sectors-title {
  margin: 0 0 1.25rem;
  font-size: 1.375rem;
  font-weight: 700;
  color: #001a4d;
  line-height: 1.2;
}

.home-sectors-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.875rem;
}

.home-sector-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.875rem;
  min-height: 8.75rem;
  padding: 1.25rem 0.75rem;
  background: #fff;
  border: 1px solid #e3e8ee;
  border-radius: 0.5rem;
  text-decoration: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.home-sector-card:hover {
  border-color: #cfd8e3;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
}

.home-sector-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 4.5rem;
  height: 4.5rem;
  flex-shrink: 0;
}

.home-sector-icon img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.home-sector-label {
  font-size: 0.6875rem;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0.02em;
  text-align: center;
  color: #001a4d;
  text-transform: uppercase;
}

@media (max-width: 1023px) {
  .home-trust-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    min-height: 0;
  }

  .home-trust-item {
    border-right: none;
    border-bottom: 1px solid #ececec;
  }

  .home-trust-item:nth-child(odd) {
    border-right: 1px solid #ececec;
  }

  .home-trust-item:nth-last-child(-n + 2) {
    border-bottom: none;
  }

  .home-sectors-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .home-trust-inner {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .home-trust-item {
    min-height: 5.75rem;
  }

  .home-trust-item:not(:last-child) {
    border-right: none;
    border-bottom: 1px solid #ececec;
  }

  .home-trust-item:nth-child(odd) {
    border-right: none;
  }

  .home-trust-item:nth-last-child(-n + 2) {
    border-bottom: 1px solid #ececec;
  }

  .home-trust-item:last-child {
    border-bottom: none;
  }

  .home-categories {
    padding-top: 1.5rem;
  }

  .home-categories-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
  }

  .home-featured {
    margin-top: 2rem;
    padding: 2rem 0;
  }

  .home-featured-head {
    margin-bottom: 1.5rem;
  }

  .home-featured-products {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .home-sectors {
    padding: 1.5rem 0;
  }

  .home-sectors-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .home-blog-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .home-product-rating {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
  }

  .home-product-reviews {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .home-trust-item {
    padding: 1rem 1.25rem;
    min-height: 5.25rem;
  }

  .home-categories-inner {
    padding: 0 1rem;
  }

  .home-categories-title {
    font-size: 1.25rem;
    margin-bottom: 1rem;
  }

  .home-categories-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.875rem;
  }

  .home-category-label {
    font-size: 0.8125rem;
    margin-top: 0.625rem;
  }

  .home-featured-inner {
    padding: 0 1rem;
  }

  .home-featured-title {
    font-size: 1.25rem;
  }

  .home-featured-products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.875rem;
  }

  .home-refs {
    margin-top: 2rem;
    padding: 2rem 0;
  }

  .home-refs-inner {
    padding: 0 1rem;
  }

  .home-refs-title {
    font-size: 1.25rem;
    margin-bottom: 1.25rem;
  }

  .home-blog {
    padding-top: 2rem;
  }

  .home-blog-inner,
  .home-promo-inner,
  .home-seo-inner {
    padding: 0 1rem;
  }

  .home-blog-more {
    margin-top: 1.5rem;
  }

  .home-seo {
    padding: 2rem 0 2.5rem;
  }

  .home-sectors-inner {
    padding: 0 1rem;
  }

  .home-sectors-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
  }

  .home-sector-card {
    min-height: 8rem;
    padding: 1rem 0.625rem;
  }
}
