.tlc-home-slider {
  --tlc-slider-control-bg: rgb(15 15 15 / 74%);
  --tlc-slider-control-color: #fff;
  position: relative;
  width: 100%;
  overflow: hidden;
  background: #101010;
  isolation: isolate;
}

.tlc-home-slider__viewport,
.tlc-home-slider__track {
  position: relative;
  width: 100%;
  height: 100%;
}

.tlc-home-slider__viewport {
  aspect-ratio: 16 / 5;
  overflow: hidden;
}

.tlc-home-slider__track {
  display: grid;
}

.tlc-home-slider__slide {
  position: relative;
  z-index: 0;
  display: block;
  width: 100%;
  height: 100%;
  grid-area: 1 / 1;
  overflow: hidden;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity 420ms ease, visibility 0s linear 420ms;
}

.tlc-home-slider__slide.is-active {
  z-index: 1;
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  transition-delay: 0s;
}

.tlc-home-slider__media,
.tlc-home-slider__media img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}

.tlc-home-slider__media img {
  object-fit: cover;
  object-position: center;
}

.tlc-home-slider__slide--savelys {
  background: #090909;
}

.tlc-home-slider__slide--docto {
  background: #eef5ff;
}

.tlc-home-slider__slide--comfort::after {
  position: absolute;
  z-index: 1;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, rgb(5 7 10 / 82%) 0%, rgb(5 7 10 / 34%) 52%, transparent 76%);
  content: "";
}

.tlc-home-slider__cta {
  position: absolute;
  z-index: 5;
  bottom: 15%;
  left: 50%;
  display: inline-flex;
  min-width: 170px;
  min-height: 46px;
  padding: 12px 24px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgb(255 255 255 / 78%);
  border-radius: 999px;
  color: #181818;
  background: #fff;
  box-shadow: 0 14px 34px rgb(0 0 0 / 24%);
  font-size: clamp(0.78rem, 1vw, 0.95rem);
  font-weight: 750;
  line-height: 1.15;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  transform: translateX(-50%);
  transition: color 180ms ease, background-color 180ms ease, transform 180ms ease;
}

.tlc-home-slider__cta:hover,
.tlc-home-slider__cta:focus-visible {
  color: #181818;
  background: var(--tlc-color-brand);
  transform: translateX(-50%) translateY(-2px);
}

.tlc-home-slider__slide--savelys .tlc-home-slider__cta {
  bottom: 12%;
  left: 50%;
}

.tlc-home-slider__slide--samsung .tlc-home-slider__cta {
  bottom: 16%;
  left: 50%;
}

.tlc-home-slider__slide--comfort .tlc-home-slider__cta {
  bottom: 15%;
  left: 50%;
}

.tlc-home-slider__slide--docto .tlc-home-slider__cta {
  top: 43%;
  right: auto;
  bottom: auto;
  left: 11%;
  width: 19%;
  min-width: 0;
  height: 11%;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 6px;
  color: transparent;
  background: transparent;
  box-shadow: none;
  transform: none;
}

.tlc-home-slider__slide--docto .tlc-home-slider__cta:hover,
.tlc-home-slider__slide--docto .tlc-home-slider__cta:focus-visible {
  color: transparent;
  background: rgb(255 255 255 / 10%);
  transform: none;
}

.tlc-home-slider__alma-content,
.tlc-home-slider__comfort-content {
  position: absolute;
  z-index: 3;
}

.tlc-home-slider__alma-content {
  top: 12%;
  left: 6%;
  width: 39%;
  color: #fff;
}

.tlc-home-slider__alma-content h2,
.tlc-home-slider__comfort-content h2 {
  margin: 0;
  font-size: clamp(1.65rem, 3.2vw, 4.8rem);
  font-weight: 850;
  line-height: 0.98;
  letter-spacing: -0.045em;
  text-transform: uppercase;
  text-wrap: balance;
}

.tlc-home-slider__alma-content > p {
  max-width: 34rem;
  margin: clamp(12px, 2vw, 26px) 0;
  font-size: clamp(0.95rem, 1.5vw, 1.65rem);
  line-height: 1.25;
}

.tlc-home-slider__alma-content ul {
  display: grid;
  padding: 0;
  margin: 0;
  gap: 8px;
  font-size: clamp(0.82rem, 1.2vw, 1.25rem);
  font-weight: 750;
  list-style: none;
  text-transform: uppercase;
}

.tlc-home-slider__alma-content li {
  display: flex;
  align-items: center;
}

.tlc-home-slider__alma-content li img {
  width: 1.45em;
  height: 1.45em;
  margin-right: 0.55em;
  object-fit: contain;
}

.tlc-home-slider__alma-product,
.tlc-home-slider__alma-person,
.tlc-home-slider__alma-installments {
  position: absolute;
  z-index: 2;
  height: auto;
  pointer-events: none;
}

.tlc-home-slider__alma-product {
  right: 23%;
  bottom: -10%;
  width: 31%;
}

.tlc-home-slider__alma-person {
  right: 8%;
  bottom: -12%;
  width: 18%;
}

.tlc-home-slider__alma-installments {
  top: 16%;
  right: 3%;
  width: 20%;
}

.tlc-home-slider__slide--alma .tlc-home-slider__cta {
  bottom: 10%;
  left: 50%;
}

.tlc-home-slider__comfort-content {
  top: 16%;
  left: 7%;
  width: 48%;
  color: #fff;
}

.tlc-home-slider__comfort-content h2 {
  max-width: 12ch;
  margin-block: 8px 14px;
  font-size: clamp(2rem, 4vw, 5.5rem);
}

.tlc-home-slider__comfort-content > p:last-child {
  max-width: 34rem;
  margin: 0;
  color: rgb(255 255 255 / 82%);
  font-size: clamp(0.95rem, 1.4vw, 1.45rem);
}

.tlc-home-slider__eyebrow {
  margin: 0;
  color: var(--tlc-color-brand);
  font-size: clamp(0.76rem, 1vw, 1rem);
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.tlc-home-slider__comfort-origin,
.tlc-home-slider__comfort-brands {
  position: absolute;
  z-index: 3;
  height: auto;
}

.tlc-home-slider__comfort-origin {
  right: 18%;
  bottom: 5%;
  width: clamp(52px, 6vw, 112px);
}

.tlc-home-slider__comfort-brands {
  top: 8%;
  right: 3%;
  width: clamp(45px, 5vw, 100px);
  max-height: 84%;
  object-fit: contain;
}

.tlc-home-slider__docto-mobile-title {
  display: none;
}

.tlc-home-slider__controls {
  position: absolute;
  z-index: 8;
  bottom: 12px;
  left: 50%;
  display: flex;
  min-height: 42px;
  padding: 5px;
  align-items: center;
  gap: 5px;
  border: 1px solid rgb(255 255 255 / 24%);
  border-radius: 999px;
  color: var(--tlc-slider-control-color);
  background: var(--tlc-slider-control-bg);
  box-shadow: 0 8px 24px rgb(0 0 0 / 18%);
  transform: translateX(-50%);
  backdrop-filter: blur(8px);
}

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

.tlc-home-slider__arrow,
.tlc-home-slider__toggle,
.tlc-home-slider__dot {
  display: inline-grid;
  min-width: 32px;
  min-height: 32px;
  padding: 0;
  place-items: center;
  border: 0;
  color: inherit;
  background: transparent;
  cursor: pointer;
}

.tlc-home-slider__arrow,
.tlc-home-slider__toggle {
  border-radius: 999px;
}

.tlc-home-slider__arrow:hover,
.tlc-home-slider__arrow:focus-visible,
.tlc-home-slider__toggle:hover,
.tlc-home-slider__toggle:focus-visible {
  color: #111;
  background: var(--tlc-color-brand);
}

.tlc-home-slider__dots {
  display: flex;
  align-items: center;
  gap: 3px;
}

.tlc-home-slider__dot {
  min-width: 26px;
  min-height: 32px;
}

.tlc-home-slider__dot::before {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: rgb(255 255 255 / 52%);
  content: "";
  transition: width 180ms ease, background-color 180ms ease;
}

.tlc-home-slider__dot.is-active::before {
  width: 22px;
  background: var(--tlc-color-brand);
}

.tlc-home-slider__toggle {
  min-width: 58px;
  padding-inline: 9px;
  font-size: 0.7rem;
  font-weight: 750;
  text-transform: uppercase;
}

@media (max-width: 1024px) {
  .tlc-home-slider__alma-content h2,
  .tlc-home-slider__comfort-content h2 {
    font-size: clamp(1.6rem, 4vw, 3rem);
  }
}

@media (max-width: 767px) {
  .tlc-home-slider__viewport {
    aspect-ratio: 9 / 16;
  }

  .tlc-home-slider__slide--savelys .tlc-home-slider__media img,
  .tlc-home-slider__slide--docto .tlc-home-slider__media img {
    object-fit: cover;
  }

  .tlc-home-slider__slide--comfort .tlc-home-slider__media img {
    object-position: 52% center;
  }

  .tlc-home-slider__slide--comfort::after {
    background: linear-gradient(180deg, rgb(5 7 10 / 84%) 0%, rgb(5 7 10 / 24%) 50%, rgb(5 7 10 / 86%) 100%);
  }

  .tlc-home-slider__cta {
    bottom: 12%;
    min-width: 180px;
    min-height: 48px;
    padding: 12px 22px;
    font-size: 0.82rem;
  }

  .tlc-home-slider__slide--savelys .tlc-home-slider__cta,
  .tlc-home-slider__slide--samsung .tlc-home-slider__cta {
    bottom: 15%;
    left: 50%;
  }

  .tlc-home-slider__alma-content,
  .tlc-home-slider__alma-product,
  .tlc-home-slider__alma-person,
  .tlc-home-slider__alma-installments {
    display: none;
  }

  .tlc-home-slider__slide--alma .tlc-home-slider__cta {
    right: 13%;
    bottom: 3.4%;
    left: 13%;
    width: auto;
    height: 9%;
    min-width: 0;
    min-height: 0;
    padding: 0;
    border: 0;
    color: transparent;
    background: transparent;
    box-shadow: none;
    transform: none;
  }

  .tlc-home-slider__slide--alma .tlc-home-slider__cta:hover,
  .tlc-home-slider__slide--alma .tlc-home-slider__cta:focus-visible {
    color: transparent;
    background: rgb(255 185 31 / 12%);
    transform: none;
  }

  .tlc-home-slider__comfort-content {
    top: 10%;
    left: 8%;
    width: 84%;
    text-align: center;
  }

  .tlc-home-slider__comfort-content h2 {
    max-width: none;
    font-size: clamp(2rem, 10vw, 3.3rem);
  }

  .tlc-home-slider__comfort-content > p:last-child {
    font-size: 1rem;
  }

  .tlc-home-slider__comfort-origin {
    right: 8%;
    bottom: 22%;
    width: 70px;
  }

  .tlc-home-slider__comfort-brands {
    display: none;
  }

  .tlc-home-slider__slide--comfort .tlc-home-slider__cta {
    bottom: 10%;
    left: 50%;
  }

  .tlc-home-slider__slide--docto .tlc-home-slider__media img {
    padding: 18% 4% 24%;
    object-fit: contain;
    object-position: center 62%;
  }

  .tlc-home-slider__docto-mobile-title {
    position: absolute;
    z-index: 3;
    top: 12%;
    left: 6%;
    display: block;
    width: 88%;
    height: auto;
  }

  .tlc-home-slider__slide--docto .tlc-home-slider__cta {
    top: auto;
    right: auto;
    bottom: 8%;
    left: 50%;
    width: auto;
    min-width: 220px;
    height: auto;
    min-height: 50px;
    padding: 13px 22px;
    border: 0;
    border-radius: 8px;
    color: #fff;
    background: #ff6233;
    box-shadow: 0 12px 28px rgb(16 40 73 / 22%);
    transform: translateX(-50%);
  }

  .tlc-home-slider__slide--docto .tlc-home-slider__cta:hover,
  .tlc-home-slider__slide--docto .tlc-home-slider__cta:focus-visible {
    color: #fff;
    background: #df4621;
    transform: translateX(-50%) translateY(-2px);
  }

  .tlc-home-slider__controls {
    top: auto;
    right: auto;
    bottom: max(12px, env(safe-area-inset-bottom));
    left: 50%;
    min-height: 38px;
    transform: translateX(-50%);
  }

  .tlc-home-slider__arrow,
  .tlc-home-slider__toggle,
  .tlc-home-slider__dot {
    min-height: 30px;
  }

  .tlc-home-slider__arrow {
    min-width: 30px;
  }

  .tlc-home-slider__dot {
    min-width: 20px;
  }

  .tlc-home-slider__toggle {
    min-width: 52px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tlc-home-slider__slide,
  .tlc-home-slider__cta,
  .tlc-home-slider__dot::before {
    transition: none;
  }
}
