/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Helvetica', Arial, sans-serif;
  background-color: #dadada;
  color: #000;
  line-height: 1.1;
  font-size: 20px;
}

/* Header */
.header {
  background-color: #000;
  width: 100%;
  padding: 60px 0;
}

@media (min-width: 1920px) {
  .header {
    padding-left: 728px;
    padding-right: 728px;
  }
}

@media (min-width: 600px) and (max-width: 1919px) {
  .header {
    padding-left: max(90px, calc((100% - 464px) / 2));
    padding-right: max(90px, calc((100% - 464px) / 2));
  }
}

.header__container {
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.header__logo {
  display: block;
  width: 464px;
  height: 156px;
  text-decoration: none;
  transition: opacity 0.3s ease;
}

.header__logo:hover {
  opacity: 0.8;
}

.header__logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

/* Main Container */
.main {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 100px;
  padding: 12px 0 135px;
}

/* Carousel Section */
.carousel-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  width: calc(100% - 40px);
  max-width: 1125px;
}

.carousel-container {
  position: relative;
  width: 100%;
  height: 100%;
  aspect-ratio: 1125 / 604;
  overflow: hidden;
}

.carousel {
  position: relative;
  width: 100%;
  height: 100%;
}

.carousel__slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
  cursor: pointer;
}

.carousel__slide.active {
  opacity: 1;
  z-index: 1;
}

.carousel__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.carousel__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 10;
  padding: 0;
  width: 5%;
  max-width: 54px;
  height: auto;
  aspect-ratio: 3 / 5;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.3s ease;
}

.carousel__nav:hover {
  opacity: 0.7;
}

.carousel__nav--prev {
  left: 4%;
  transform: translateY(-50%) rotate(180deg);
}

.carousel__nav--next {
  right: 4%;
}

.carousel__nav img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.carousel__dots {
  position: absolute;
  bottom: 8%;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
  z-index: 10;
}

.carousel__dot {
  width: 14px;
  height: 14px;
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 0;
  background-image: url('../images/dot-inactive.svg');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  transition: opacity 0.3s ease;
}

.carousel__dot:hover {
  opacity: 0.7;
}

.carousel__dot.active {
  background-image: url('../images/dot-active.svg');
}

.carousel-instruction {
  background-color: #a9a9a9;
  width: 100%;
  height: 37px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 7px 0;
}

.carousel-instruction p {
  font-family: 'Helvetica', Arial, sans-serif;
  font-weight: 300;
  font-size: 14px;
  line-height: 22.1px;
  color: #000;
  text-align: center;
  white-space: nowrap;
}

/* Content Section */
.content-section {
  width: calc(100% - 40px);
  max-width: 850px;
  display: flex;
  flex-direction: column;
  gap: 100px;
}

.content-container {
  display: flex;
  flex-direction: column;
  gap: 100px;
}

.cta-button-container {
  display: none;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background-color: #e91b1b;
  color: #fff;
  text-decoration: none;
  font-family: 'Oswald', Arial, sans-serif;
  font-weight: 600;
  font-size: 30px;
  padding: 9px 15px;
  border-radius: 5px;
  transition: opacity 0.3s ease, background-color 0.3s ease;
  text-align: center;
}

.cta-button:hover {
  opacity: 0.9;
  background-color: #c91a1a;
}

.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 60px;
  align-items: center;
}

.content-title {
  font-family: 'Oswald', Arial, sans-serif;
  font-weight: 600;
  font-size: 56px;
  line-height: 1.4;
  color: #000;
  text-align: center;
  margin: 0;
}

.content-text {
  font-family: 'Helvetica', Arial, sans-serif;
  font-weight: 400;
  font-size: 20px;
  line-height: 22.1px;
  color: #000;
  width: 100%;
}

.content-text p {
  margin-bottom: 15px;
}

.content-text p:last-child {
  margin-bottom: 0;
}

.link-phone,
.link-customer-service {
  color: #e91b1b;
  text-decoration: underline;
  text-decoration-skip-ink: none;
  text-underline-position: from-font;
  transition: opacity 0.3s ease;
}

.link-phone:hover,
.link-customer-service:hover {
  opacity: 0.8;
}

.back-to-top {
  display: flex;
  align-self: flex-start;
  gap: 20px;
}

.back-to-top__link {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #e91b1b;
  font-family: 'Helvetica', Arial, sans-serif;
  font-size: 24px;
  font-weight: 400;
  line-height: 22.1px;
  text-decoration: underline;
  text-underline-position: from-font;
  transition: opacity 0.3s ease;
}

.back-to-top__link:hover {
  opacity: 0.8;
}

.back-to-top__arrow {
  width: 23px;
  height: 15px;
  transform: rotate(270deg);
  display: block;
}

.footer {
  font-family: 'Helvetica', Arial, sans-serif;
  font-weight: 400;
  font-size: 20px;
  line-height: 22.1px;
  color: #000;
}

.footer p {
  margin-bottom: 14.108px;
}

.footer p:last-child {
  margin-bottom: 0;
}

.footer .email-link {
  color: #000;
  text-decoration: underline;
  transition: opacity 0.3s ease;
}

.footer a:hover {
  opacity: 0.7;
}

.footer__brand {
  color: #e91b1b;
}

/* Mobile Styles */
@media (max-width: 600px) {
  body {
    font-size: 15px;
  }

  .header {
    padding: 34px 0;
  }

  .header__logo {
    width: 232px;
    height: 78px;
  }

  .main {
    gap: 50px;
  }

  .carousel-section {
    max-width: 378px;
  }

  .carousel__nav {
    width: 18.144px;
    height: 29.996px;
  }

  .carousel__dots {
    bottom: 13.17px;
    gap: 4.032px;
  }

  .carousel__dot {
    width: 4.704px;
    height: 4.704px;
  }

  .carousel-instruction {
    height: 21px;
  }

  .carousel-instruction p {
    font-size: 12px;
  }

  .content-section {
    max-width: 313px;
    gap: 50px;
  }

  .content-container {
    gap: 12px;
  }

  .cta-button-container {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-bottom: 38px;
  }

  .cta-button {
    font-size: 30px;
  }

  .content-wrapper {
    gap: 30px;
  }

  .content-title {
    font-size: 36px;
    line-height: 1;
    width: 283px;
  }

  .content-text {
    font-size: 15px;
  }

  .back-to-top {
    margin-top: 60px;
  }

  .back-to-top__link {
    font-size: 16px;
  }

  .back-to-top__arrow {
    width: 16px;
  }

  .footer {
    font-size: 15px;
    width: 265px;
    height: 440px;
  }
}