.home-page {
  background: #fff;
}

.home-shell {
  width: min(var(--safa-container), calc(100% - 40px));
  margin-inline: auto;
}

.home-eyebrow {
  margin: 0 0 10px;
  color: var(--safa-blue-700);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.home-eyebrow--offer {
  color: var(--safa-danger);
}

.home-eyebrow--light {
  color: #7be0f7;
}

.home-button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  padding-inline: 22px;
  border-radius: 999px;
}

.home-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(48px, 7vw, 94px) 0;
  background:
    radial-gradient(circle at 10% 20%, rgba(31, 187, 228, 0.13), transparent 28rem),
    linear-gradient(135deg, #f4fbfd 0%, #fff 52%, #edf6fa 100%);
}

.home-hero::after {
  position: absolute;
  right: -160px;
  bottom: -260px;
  width: 540px;
  height: 540px;
  border: 1px solid rgba(8, 125, 161, 0.13);
  border-radius: 50%;
  content: "";
}

.home-hero__slides {
  position: relative;
  z-index: 1;
}

.home-hero__slide[hidden] {
  display: none;
}

.home-hero__slide.is-active {
  display: block;
  animation: home-slide-in 0.45s ease both;
}

.home-hero__controls {
  position: absolute;
  z-index: 4;
  bottom: 18px;
  left: 50%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 9px;
  border: 1px solid rgba(8, 125, 161, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 28px rgba(7, 24, 39, 0.12);
  transform: translateX(-50%);
  backdrop-filter: blur(12px);
}

.home-hero__controls > button {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: #eaf5f8;
  color: var(--safa-navy-950);
  font-size: 1.25rem;
  cursor: pointer;
}

.home-hero__controls > div {
  display: flex;
  gap: 6px;
}

.home-hero__controls > div button {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #b6cbd3;
  cursor: pointer;
}

.home-hero__controls > div button[aria-current="true"] {
  width: 24px;
  border-radius: 999px;
  background: var(--safa-cyan-600);
}
.home-hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(480px, 1.1fr);
  gap: clamp(42px, 6vw, 86px);
  align-items: center;
}

.home-hero__content {
  max-width: 640px;
}

.home-hero h1 {
  max-width: 680px;
  margin: 0;
  font-size: clamp(3rem, 6vw, 5.8rem);
  line-height: 0.98;
  letter-spacing: -0.065em;
}

.home-hero__lead {
  max-width: 600px;
  margin: 24px 0 0;
  color: #53687b;
  font-size: clamp(1.06rem, 1.5vw, 1.22rem);
  line-height: 1.7;
}

.home-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.home-trust-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin: 44px 0 0;
  padding: 24px 0 0;
  border-top: 1px solid #d5e4ec;
  list-style: none;
}

.home-trust-list strong,
.home-trust-list span {
  display: block;
}

.home-trust-list strong {
  color: var(--safa-navy-950);
  font-size: 1.05rem;
  font-weight: 900;
}

.home-trust-list span {
  margin-top: 2px;
  color: var(--safa-muted);
  font-size: 0.8rem;
}

.home-hero__media {
  position: relative;
  min-height: 560px;
}

.home-hero__media > img {
  width: 100%;
  height: 560px;
  border-radius: 42px 10px 42px 10px;
  box-shadow: 0 28px 80px rgba(7, 24, 39, 0.2);
  object-fit: cover;
}

.home-hero__note {
  position: absolute;
  right: -20px;
  bottom: 30px;
  display: flex;
  max-width: 310px;
  align-items: center;
  gap: 13px;
  padding: 17px 20px;
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--safa-shadow-md);
  backdrop-filter: blur(16px);
}

.home-hero__note > span {
  display: grid;
  width: 37px;
  height: 37px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  background: var(--safa-success-soft);
  color: var(--safa-success);
  font-weight: 900;
}

.home-hero__note strong,
.home-hero__note a {
  display: block;
}

.home-hero__note strong {
  color: var(--safa-navy-950);
  font-size: 0.88rem;
}

.home-hero__note a {
  margin-top: 2px;
  font-size: 0.82rem;
  font-weight: 750;
}

@keyframes home-slide-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.home-section {
  padding: clamp(72px, 9vw, 118px) 0;
}

.home-section--categories {
  background: var(--safa-navy-950);
}

.home-department-shelf--soft {
  background: var(--safa-surface-soft);
}

.home-department-shelf + .home-department-shelf {
  border-top: 1px solid var(--safa-border);
}

.home-section--categories h2,
.home-section--categories .home-text-link {
  color: #fff;
}

.home-section--categories .home-eyebrow {
  color: #6bd8f2;
}

.home-section__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: clamp(30px, 5vw, 50px);
}

.home-section__head > div {
  max-width: 720px;
}

.home-section__head h2,
.home-proof h2,
.home-advice h2,
.home-newsletter h2 {
  margin: 0;
  font-size: clamp(2.1rem, 4vw, 3.8rem);
  line-height: 1.05;
  letter-spacing: -0.05em;
}

.home-section__head p:not(.home-eyebrow) {
  margin: 12px 0 0;
  font-size: 1rem;
}

.home-text-link {
  flex: 0 0 auto;
  padding-bottom: 4px;
  border-bottom: 1px solid currentColor;
  color: var(--safa-navy-900);
  font-size: 0.88rem;
  font-weight: 850;
  text-decoration: none;
}

.home-text-link span {
  display: inline-block;
  margin-left: 5px;
  transition: transform var(--safa-transition);
}

.home-text-link:hover span {
  transform: translateX(4px);
}

.home-category-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.home-category-card {
  position: relative;
  display: grid;
  min-height: 310px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  background: #102d48;
  color: #fff;
  text-decoration: none;
}

.home-category-card__media {
  position: absolute;
  inset: 0;
}

.home-category-card__media::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 24, 39, 0.04) 18%, rgba(7, 24, 39, 0.92) 100%);
  content: "";
}

.home-category-card__media img {
  width: 100%;
  height: 100%;
  transition: transform 400ms ease;
  object-fit: cover;
}

.home-category-card:hover .home-category-card__media img {
  transform: scale(1.045);
}

.home-category-card__body {
  position: relative;
  z-index: 1;
  align-self: end;
  padding: 24px 52px 24px 22px;
}

.home-category-card__body strong,
.home-category-card__body span {
  display: block;
}

.home-category-card__body strong {
  color: #fff;
  font-size: 1.08rem;
  line-height: 1.25;
}

.home-category-card__body span {
  margin-top: 5px;
  color: #c7dce8;
  font-size: 0.76rem;
}

.home-category-card__arrow {
  position: absolute;
  right: 18px;
  bottom: 22px;
  z-index: 2;
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}

.home-product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.home-product-grid--offers .home-product-card {
  border-top-color: #f2bbb6;
}

.home-product-card {
  position: relative;
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--safa-border);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 8px 28px rgba(7, 24, 39, 0.055);
  transition: transform var(--safa-transition), box-shadow var(--safa-transition), border-color var(--safa-transition);
}

.home-product-card:hover {
  border-color: #b7d7e3;
  box-shadow: var(--safa-shadow-md);
  transform: translateY(-4px);
}

.home-product-card__media {
  position: relative;
  display: block;
  height: 235px;
  overflow: hidden;
  background: #f4f7f9;
}

.home-product-card__media img {
  width: 100%;
  height: 100%;
  mix-blend-mode: multiply;
  object-fit: contain;
  transition: transform 300ms ease;
}

.home-product-card:hover .home-product-card__media img {
  transform: scale(1.035);
}

.home-product-card__badge,
.home-product-card__discount {
  position: absolute;
  top: 14px;
  z-index: 2;
  min-height: 27px;
  padding: 5px 9px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  line-height: 1;
  text-transform: uppercase;
}

.home-product-card__badge {
  left: 14px;
  background: var(--safa-navy-900);
  color: #fff;
}

.home-product-card__discount {
  right: 14px;
  background: var(--safa-danger-soft);
  color: var(--safa-danger);
}

.home-product-card__body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  padding: 20px;
}

.home-product-card__category {
  margin: 0 0 7px;
  color: var(--safa-blue-700);
  font-size: 0.7rem;
  font-weight: 850;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.home-product-card h3 {
  margin: 0;
  font-size: 0.99rem;
  line-height: 1.45;
  letter-spacing: -0.01em;
}

.home-product-card h3 a {
  display: -webkit-box;
  overflow: hidden;
  color: var(--safa-navy-950);
  text-decoration: none;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.home-product-card__price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: 15px;
}

.home-product-card__price strong {
  color: var(--safa-navy-950);
  font-size: 1.18rem;
  font-weight: 900;
}

.home-product-card__price del {
  color: #8392a2;
  font-size: 0.8rem;
}

.home-product-card__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 18px;
}

.home-product-card__primary {
  min-width: 0;
  flex: 1 1 auto;
}

.home-product-card__primary .button {
  width: 100%;
  min-height: 42px;
  padding: 9px 12px;
  font-size: 0.78rem;
}

.home-product-card__unavailable {
  display: flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 8px 10px;
  border-radius: 10px;
  background: var(--safa-danger-soft);
  color: var(--safa-danger);
  font-size: 0.72rem;
  font-weight: 800;
  text-align: center;
}

.home-proof {
  padding: clamp(72px, 9vw, 120px) 0;
  background: var(--safa-surface-soft);
}

.home-proof .home-shell {
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(500px, 1.2fr);
  gap: clamp(50px, 8vw, 110px);
  align-items: start;
}

.home-proof__intro {
  position: sticky;
  top: 30px;
}

.home-proof__intro > p:not(.home-eyebrow) {
  margin: 18px 0 25px;
  font-size: 1.04rem;
}

.home-proof__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--safa-border);
  border-left: 1px solid var(--safa-border);
}

.home-proof-card {
  min-height: 245px;
  padding: clamp(24px, 4vw, 38px);
  border-right: 1px solid var(--safa-border);
  border-bottom: 1px solid var(--safa-border);
  background: #fff;
}

.home-proof-card > span {
  color: var(--safa-blue-700);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.home-proof-card h3 {
  margin: 52px 0 8px;
  font-size: 1.18rem;
}

.home-proof-card p {
  margin: 0;
  font-size: 0.9rem;
}

.home-advice {
  position: relative;
  overflow: hidden;
  padding: clamp(62px, 8vw, 100px) 0;
  background:
    radial-gradient(circle at 75% 25%, rgba(31, 187, 228, 0.22), transparent 28rem),
    var(--safa-navy-950);
}

.home-advice::before {
  position: absolute;
  top: -180px;
  right: 8%;
  width: 430px;
  height: 430px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  content: "";
}

.home-advice__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) auto;
  gap: 50px;
  align-items: center;
}

.home-advice h2 {
  color: #fff;
}

.home-advice p:not(.home-eyebrow) {
  max-width: 720px;
  margin: 17px 0 0;
  color: #bfd2df;
  font-size: 1.04rem;
}

.home-advice__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.home-button--light {
  border-color: #fff;
  background: #fff;
  color: var(--safa-navy-950);
}

.home-button--ghost {
  border-color: rgba(255, 255, 255, 0.36);
  background: transparent;
  color: #fff;
}

.home-button--light:hover,
.home-button--ghost:hover {
  border-color: var(--safa-blue-500);
  background: var(--safa-blue-500);
  color: var(--safa-navy-950);
}

.home-newsletter {
  padding: clamp(64px, 8vw, 96px) 0;
  background: #fff;
}

.home-newsletter__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.8fr);
  gap: clamp(40px, 8vw, 100px);
  align-items: center;
}

.home-newsletter h2 {
  font-size: clamp(1.8rem, 3vw, 3rem);
}

.home-newsletter p:not(.home-eyebrow) {
  margin: 12px 0 0;
}

.home-newsletter__form {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 8px;
  border: 1px solid var(--safa-border);
  border-radius: 999px;
  background: var(--safa-surface-soft);
}

.home-newsletter__status {
  flex: 1 0 100%;
  margin: 0 !important;
  padding: 8px 14px;
  border-radius: 9px;
  font-size: 0.76rem;
  font-weight: 750;
}

.home-newsletter__status[data-status="success"] {
  background: var(--safa-success-soft);
  color: var(--safa-success);
}

.home-newsletter__status[data-status="info"] {
  background: var(--safa-info-soft);
  color: var(--safa-blue-700);
}

.home-newsletter__status[data-status="error"] {
  background: var(--safa-danger-soft);
  color: var(--safa-danger);
}

.home-newsletter__form input[type="email"] {
  min-width: 0;
  flex: 1 1 auto;
  padding-inline: 16px;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.home-newsletter + .safa-footer {
  margin-top: 0;
}

@media (max-width: 1100px) {
  .home-hero__slides {
  position: relative;
  z-index: 1;
}

.home-hero__slide[hidden] {
  display: none;
}

.home-hero__slide.is-active {
  display: block;
  animation: home-slide-in 0.45s ease both;
}

.home-hero__controls {
  position: absolute;
  z-index: 4;
  bottom: 18px;
  left: 50%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 9px;
  border: 1px solid rgba(8, 125, 161, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 28px rgba(7, 24, 39, 0.12);
  transform: translateX(-50%);
  backdrop-filter: blur(12px);
}

.home-hero__controls > button {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: #eaf5f8;
  color: var(--safa-navy-950);
  font-size: 1.25rem;
  cursor: pointer;
}

.home-hero__controls > div {
  display: flex;
  gap: 6px;
}

.home-hero__controls > div button {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #b6cbd3;
  cursor: pointer;
}

.home-hero__controls > div button[aria-current="true"] {
  width: 24px;
  border-radius: 999px;
  background: var(--safa-cyan-600);
}
.home-hero__grid {
    grid-template-columns: minmax(0, 1fr) minmax(380px, 0.9fr);
    gap: 42px;
  }

  .home-hero__media,
  .home-hero__media > img {
    height: 500px;
    min-height: 500px;
  }

  .home-category-grid,
  .home-product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 850px) {
  .home-hero__grid,
  .home-proof .home-shell,
  .home-advice__grid,
  .home-newsletter__grid {
    grid-template-columns: 1fr;
  }

  .home-hero__content {
    max-width: 720px;
  }

  .home-hero__media,
  .home-hero__media > img {
    height: 460px;
    min-height: 460px;
  }

  .home-proof__intro {
    position: static;
  }

  .home-advice__actions {
    justify-content: flex-start;
  }
}

@media (max-width: 600px) {
  .home-shell {
    width: calc(100% - 28px);
  }

  .home-hero {
    padding-top: 42px;
  }

  .home-hero h1 {
    font-size: clamp(2.6rem, 14vw, 4rem);
  }

  .home-trust-list {
    grid-template-columns: 1fr;
    gap: 13px;
  }

  .home-trust-list li {
    display: flex;
    align-items: baseline;
    gap: 8px;
  }

  .home-hero__media,
  .home-hero__media > img {
    height: 340px;
    min-height: 340px;
  }

  .home-hero__media > img {
    border-radius: 26px 8px 26px 8px;
  }

  .home-hero__note {
    right: 10px;
    bottom: 12px;
    left: 10px;
    max-width: none;
  }

  .home-section__head {
    align-items: flex-start;
    flex-direction: column;
  }

  .home-category-grid,
  .home-product-grid,
  .home-proof__grid {
    grid-template-columns: 1fr;
  }

  .home-category-card {
    min-height: 255px;
  }

  .home-product-card__media {
    height: 255px;
  }

  .home-proof-card {
    min-height: 210px;
  }

  .home-proof-card h3 {
    margin-top: 34px;
  }

  .home-newsletter__form {
    align-items: stretch;
    flex-direction: column;
    border: 0;
    border-radius: 0;
    background: transparent;
  }

  .home-newsletter__form input[type="email"] {
    border: 1px solid var(--safa-border);
    background: var(--safa-surface-soft);
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-hero__slide.is-active {
    animation: none;
  }
  .home-category-card__media img,
  .home-product-card__media img {
    transition: none;
  }
}
