@import url('https://fonts.googleapis.com/css2?family=Raleway:wght@400;500;700;900&family=Poppins:wght@400;600;700&family=Montserrat:wght@400;600&family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Raleway', sans-serif;
}

:root {
  --index: calc(1vw + 1vh);
  --color-header: #1C6E8C;
  --color-text: #8C93A8;
  --gallery-gap: calc(var(--index) * 7);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'Raleway', sans-serif;
}

button {
  cursor: pointer;
  background: 0;
  border: 0;
}

a {
  text-decoration: none;
  color: inherit;
}

.content,
.hero,
.main-header,
.mouse-cursor,
.gallery__line,
.gallery__item,
.popular,
.popular__slider,
.action-form__wrapper {
  will-change: transform;
}

.hero-section,
.action-form__wrapper {
  will-change: opacity;
}

body {
  background-size: 50px;
  color: #fafafa;
  font-family: raleway-c;
  overflow-x: hidden;
  background-color: #fff;
}

.hero {
  width: calc(var(--index) * 36);
  position: absolute;
  left: 37vw;
  top: 8vh;
  z-index: -1;
}

.header__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
  color: #2F2F2F;
}

.header-top__contacts {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.header-top__contacts a {
  font-family: 'Montserrat', sans-serif;
}

.contacts__row {
  display: flex;
  align-items: center;
}

.tel {
  font-weight: 600;
  font-size: 22px;
  text-decoration: underline;
}

.email {
  font-size: 14px;
}

.tel-icon {
  margin-right: 10px;
}

.email-icon {
  margin-right: 10px;
}

.main-header {
  height: 100vh;
}

.container {
  padding: 0 8vw;
}

.main-title {
  font-size: calc(var(--index) * 3);
  position: absolute;
  width: min-content;
  bottom: 40vh;
  line-height: .9;
  color: #1C6E8C;
}

.main-title__main-text {
  font-weight: 500;
  line-height: 130%;
}

.main-title__add-text {
  color: #AE4178;
  line-height: 130%;
  font-weight: 900;
}

.mouse-cursor {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  margin-top: 80px;
}

.gallery {
  padding: calc(var(--index) * 8) 0;
}

.gallery>* {
  flex: 1;
  display: flex;
  align-items: center;
  /* flex-direction: column; */
}

.gallery__line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--gallery-gap);
}

.gallery__item {
  max-width: calc(var(--index) * 21);
  max-height: 180vh;
  border-radius: 8px;
}

.gallery__left {
  margin-top: calc(var(--gallery-gap) * 1.75);
}

.gallery__right .gallery__item {
  margin: var(--gallery-gap) 0 0 0;
}

.text-block {
  color: var(--color-text);
  position: relative;
}

.text-block__h {
  font-size: 2rem;
  line-height: 2.4rem;
  color: var(--color-header);
  margin-bottom: 1.5rem;
  font-weight: 700;
  position: relative;
  display: flex;
  align-items: center;
}

.line-number {
  position: absolute;
  color: rgba(69, 130, 236, 0.10);
  font-family: 'Poppins', sans-serif;
  font-size: 60px;
  font-weight: 700;
  line-height: calc(180% - 1.5rem);
  text-transform: capitalize;
  left: calc(-3.8rem - 24px);
}

.text-block__p {
  line-height: 1.75;
  font-weight: 400;
}

.popular__title {
  color: #78295B;
  text-align: center;
  font-family: 'Raleway', sans-serif;
  font-size: calc(var(--index) * 4);
  font-weight: 900;
  margin-bottom: calc(var(--gallery-gap) * 1);
}

.popular__slider {
  display: flex;
}

.popular__slider button {
  background: 0;
  border: 0;
}

.swiper-container {
  overflow: visible !important;
}

.swiper-pagination {
  bottom: -70px !important;
}

.swiper-pagination-bullet {
  background: transparent !important;
  border: 3px solid #8C93A8;
  width: 16px !important;
  height: 16px !important;
}

.swiper-pagination-bullet-active {
  background: #1C6E8C !important;
  border: 0 !important;
}

.slider__item {
  padding: 30px 40px 50px;
  height: 365px;
  border-radius: 4px;
  background: #FFF;
  box-shadow: 0px 20px 40px 0px rgba(11, 38, 84, 0.05);
}

.slider__item-header {
  display: flex;
  margin-bottom: 15px;
  gap: 30px;
  align-items: center;
  justify-content: space-between;
}

.slider__item-title {
  color: #1C6C8C;
  font-family: 'Raleway', sans-serif;
  font-size: 22px;
  font-style: normal;
  font-weight: 600;
  line-height: 200%;
  /* 44px */
  text-transform: capitalize;
  width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.slider__item-tabs {
  display: flex;
  justify-content: end;
  gap: 60px;
}

.item-tab {
  color: #8C93A8;
  font-family: 'Poppins', sans-serif;
  font-size: 16px;
  font-style: normal;
  font-weight: 600;
  line-height: 200%;
  /* 32px */
  text-transform: capitalize;
}

.item-tab--active {
  display: block;
  color: #AE4178;
  text-decoration-line: underline;
}

.slider__item-description,
.slider__item-composition {
  color: var(--text-grey, #99A3A9);
  font-family: 'Poppins', sans-serif;
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: 180%;
  height: 145px;
  margin-bottom: 35px;

  overflow-y: auto;
  text-overflow: ellipsis;
}

.slider__item-composition {
  display: none;
  list-style-image: url("../img/check.svg");
  padding-left: 16px;
}

.slider__item-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.slider__item-price {
  color: #E6AF2E;
  font-family: 'Poppins', sans-serif;
  font-size: 20px;
  font-style: normal;
  font-weight: 700;
  line-height: 200%;
}

a.slider__item-action,
.action-button {
  border-radius: 4px;
  background: #AE4178;
  padding: 11px 38px;
  color: #FFF;
  text-align: center;
  font-family: 'Raleway', sans-serif;
  font-size: 14px;
  font-style: normal;
  font-weight: 700;
  line-height: 200%;
  /* 28px */
  text-transform: capitalize;
}

@media all and (max-width: 1366px) {
  .action-form__wrapper {
    padding: 45px 100px !important;
  }
}

@media all and (max-width: 1024px) {
  .hero-section {
    text-align: center;
  }

  .hero {
    width: calc(var(--index) * 25);
    position: static;
    left: 0;
    top: 0;
    z-index: 2;
  }

  .main-title {
    text-align: left;
  }

  .gallery__line {
    flex-direction: column;
    gap: var(--gallery-gap);
  }

  .gallery__line:nth-of-type(2n) {
    flex-direction: column-reverse;
  }

  .gallery__item {
    max-width: calc(var(--index) * 30);
  }

  .text-block {
    max-width: 500px;
  }

  .action-form__wrapper {
    padding: 45px 30px !important;
  }
}

@media all and (max-width: 720px) {
  .line-number {
    position: static;
    font-size: inherit;
    margin-right: 20px;
  }

  .text-block__p {
    padding-left: 14px;
  }

  .action-form {
    flex-direction: column;
  }

  .action-form__title {
    line-height: 140% !important;
  }
}

@media all and (max-width: 640px) {
  .main-header {
    height: 50vh;
  }

  .main-title {
    top: 0;
    left: 50%;
    transform: translateX(-50%);
  }

  .slider__item-header {
    flex-direction: column;
    gap: 12px;
    align-items: start;
  }

  .text-block__h {
    font-size: 20px;
    line-height: 140%;
  }

  .text-block__p {
    font-size: 16px;
    -moz-hyphens: auto;
    -webkit-hyphens: auto;
    -ms-hyphens: auto;
  }
}

@media all and (max-width: 480px) {
  .container {
    padding: 0 3vw;
  }

  .slider__item,
  .action-form__wrapper {
    padding: 24px 20px !important;
  }
}

@media all and (max-width: 440px) {
  .header__top {
    display: block;
  }

  .header-top__contacts {
    flex-direction: row;
    justify-content: space-between;
    margin-top: 12px;
    flex-wrap: wrap;
  }

  .tel {
    font-size: 18px;
  }
}