:root {
  --bg-color-main: #222222;
  --bg-color-add: #ffffff;

  --text-color-main: #ffffff;
  --text-color-add: #222222;

  --color-accent: #ff3c3c;
  --color-pale: #989898;

  --font-family: "Mulish", sans-serif;
  --second-family: "Oswald", sans-serif;

  --transition-in: all ease-in 0.3s;
  --transition-out: all ease-out 0.3s;
}

@font-face {
  font-family: Mulish;
  src: url("./assets/fonts/Mulish/Mulish-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: Mulish;
  src: url("./assets/fonts/Mulish/Mulish-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: Mulish;
  src: url("./assets/fonts/Mulish/Mulish-Italic.woff2") format("woff2");
  font-style: italic;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: Oswald;
  src: url("./assets/fonts/Oswald/Oswald-Light.woff2");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: Oswald;
  src: url("./assets/fonts/Oswald/Oswald-Regular.woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  border: 0 !important;
  padding: 0 !important;
  clip: rect(0 0 0 0) !important;
  overflow: hidden !important;
}

html {
  overflow-x: hidden;
  scroll-behavior: smooth;
  scrollbar-gutter: stable;
}

body {
  margin: 0;
  background-color: var(--bg-color-main);
  font-family: var(--font-family);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  font-style: normal;
  color: var(--text-color-main);
  overflow-x: hidden;
}

.no-scroll {
  overflow-y: hidden;
}

ul {
  margin: 0;
  padding: 0;
}

li {
  list-style: none;
}

h1,
h2,
h3,
p {
  margin: 0;
}

a,
button {
  padding: 0;
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
  font-style: inherit;
  line-height: inherit;
  color: inherit;
  background-color: transparent;
  border: none;
  text-decoration: none;
  cursor: pointer;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
  object-fit: cover;
}

.wrapper {
  box-sizing: border-box;
  max-width: 1440px;
  padding-block: clamp(20px, 15.79vw, 60px);
  padding-inline: 20px;
  margin-inline: auto;
}

.block {
  width: 100%;
}

.block_add {
  background-color: var(--bg-color-add);
  color: var(--text-color-add);
}

.block_main {
  background-color: var(--bg-color-main);
  color: var(--text-color-main);
}

.title {
  margin-bottom: 12px;
  font-family: var(--second-family);
  font-weight: 400;
  font-size: 2rem;
  line-height: 1.25;
  text-transform: uppercase;
}

.title_add {
  color: var(--text-color-add);
}

.title_main {
  color: var(--text-color-main);
}

.header {
  width: 100%;
  background-color: var(--bg-color-main);
}

.header .wrapper {
  position: relative;
  margin-inline: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 60px;
  max-width: 1440px;
}

.menu {
  position: absolute;
  z-index: 2;
  left: 100%;
  right: -100%;
  top: 100%;
  height: calc(100vh - 60px);
  display: flex;
  align-items: center;
  background-color: var(--bg-color-main);
  transition: all 0.4s ease-in-out;
}

.menu.open {
  left: 0;
  right: 0;
  transition: all 0.4s ease-in-out;
}

.menu__list {
  width: 100%;
}

.menu__link {
  display: block;
  line-height: 60px;
  width: 100%;
  text-align: center;
}

.menu__link {
  text-transform: uppercase;
  font-family: var(--second-family);
  transition: var(--transition-out);
}

@media (hover: hover) {
  .menu__link:hover {
    color: var(--color-accent);
    transition: var(--transition-in);
  }
}

@media (hover: none) {
  .menu__link:active {
    color: var(--color-accent);
  }
}

.logo {
  width: 60px;
  height: 60px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: auto;
}

.burger-btn {
  position: relative;
  width: 60px;
  height: 60px;
}

.menu.open ~ .burger-btn::before {
  width: 20px;
  transform: rotate(-45deg) translate(-2px, 1px);
  transition: all 0.3s ease-in-out;
}

.menu.open ~ .burger-btn::after {
  transform: rotate(45deg) translate(-4px, -4px);
  transition: all 0.3s ease-in-out;
}

.burger-btn::before {
  content: "";
  position: absolute;
  top: 25px;
  right: 20px;
  height: 2px;
  width: 12px;
  background-color: var(--text-color-main);
  transition: all 0.3s ease-in-out;
}

.burger-btn::after {
  content: "";
  position: absolute;
  bottom: 25px;
  right: 20px;
  height: 2px;
  width: 20px;
  background-color: var(--text-color-main);
  transition: all 0.3s ease-in-out;
}

@media (min-width: 769px) {
  .menu {
    position: static;
    height: auto;
  }

  .menu__list {
    display: flex;
  }

  .menu__link {
    display: block;
    width: auto;
    padding-inline: 20px;
    line-height: 60px;
  }

  .burger-btn {
    display: none;
  }
}

/* =================== HERO BLOCK =================== */

.hero .wrapper {
  box-sizing: border-box;
  max-width: 1440px;
  display: flex;
  flex-direction: column;
  margin-inline: auto;
  padding-block: clamp(20px, 15.79vw, 60px);
  padding-inline: 20px;
}

.hero__title {
  margin-bottom: clamp(10px, 10.5vw, 40px);
  font-family: var(--second-family);
  font-size: clamp(1rem, 14.74vw, 3.5rem);
  font-weight: 300;
  line-height: 1.15;
  text-transform: uppercase;
}

.hero__slogan {
  margin-bottom: 20px;
  font-family: var(--second-family);
  font-size: clamp(0.7rem, 5.26vw, 1.25rem);
  font-weight: 400;
  line-height: 1.4;
  text-transform: uppercase;
}

.hero-wrapper_intro {
  width: 57.89vw;
  display: flex;
  flex-direction: column;
  align-self: end;
  align-items: end;
  text-align: right;
}

.hero__intro {
  max-width: 220px;
  font-size: clamp(0.7rem, 4.21vw, 1rem);
}

.hero__img_2 {
  margin-bottom: clamp(20px, 15.79vw, 60px);
}

.stats {
  width: 100%;
  max-width: 342px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  row-gap: 10px;
  margin: 0;
  margin-bottom: clamp(20px, 10.53vw, 40px);
}

.stats__item {
  display: flex;
  flex-direction: column;
  padding-left: 27px;
}

.stats__value {
  position: relative;
  margin: 0;
  margin-bottom: 8px;
  font-family: var(--second-family);
  font-weight: 300;
  font-size: clamp(1rem, 12.6vw, 3rem);
  line-height: 1.12;
  text-transform: uppercase;
}

.stats__value::before {
  content: "+";
  position: absolute;
  left: -27px;
  top: 0;
  bottom: 0;
  width: 19px;
}

.stats__description {
  order: 1;
  font-size: clamp(0.7rem, 4.21vw, 1rem);
}

.award,
.hero__btn,
.hero-wrapper_add {
  display: none;
}

@media (min-width: 650px) {
  .hero .wrapper {
    min-height: 758px;
    flex-direction: row;
    align-items: stretch;
    justify-content: space-between;
    column-gap: 20px;
    padding: 0;
    padding-right: 20px;
  }

  .hero__title {
    line-height: 1.17;
    font-size: clamp(3.5rem, 8.85vw, 4.25rem);
  }

  .hero-wrapper_main {
    display: flex;
    flex-direction: column;
    padding-bottom: 60px;
    padding-left: 20px;
  }

  .hero__btn {
    display: block;
    align-self: start;
    padding-right: 32px;
    background-image: url("./assets/images/decor/arrow-down.svg");
    background-repeat: no-repeat;
    background-position: right center;
    transition: var(--transition-out);
  }

  @media (hover: hover) {
    .hero__btn:hover {
      color: var(--color-accent);
      background-image: url("./assets/images/decor/arrow-down-red.svg");
      transition: var(--transition-in);
    }
  }

  @media (hover: none) {
    .hero__btn:active {
      color: var(--color-accent);
      background-image: url("./assets/images/decor/arrow-down-red.svg");
    }
  }

  .hero-wrapper_add {
    align-self: center;
  }

  .hero-wrapper_intro {
    max-width: 280px;
    align-self: auto;
    justify-content: space-between;
    align-items: end;
    padding-top: 60px;
    padding-bottom: 60px;
    padding-left: 4px;
    flex-grow: 2;
  }

  .stats {
    margin-top: auto;
    box-sizing: border-box;
    padding-right: 20px;
    justify-content: space-between;
    max-width: 361px;
  }

  .award {
    box-sizing: border-box;
    width: 60px;
    display: block;
    order: -1;
    writing-mode: vertical-lr;
    flex-basis: 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transform: scale(-1);
    padding-top: 60px;
    padding-bottom: 60px;
    font-size: 0.75rem;
    line-height: 1.33;
    font-weight: 500;
  }

  .award::before {
    content: "";
    background-color: var(--bg-color-add);
    width: 1px;
    flex-grow: 1;
    order: 1;
  }

  .award span:first-of-type {
    padding-bottom: 12px;
  }

  .award span:last-of-type {
    order: 2;
    padding-top: 12px;
  }

  .hero__slogan {
    margin-bottom: auto;
  }
}

@media (min-width: 980px) {
  .hero {
    height: calc(100vh - 60px);
    max-height: 862px;
    min-height: 780px;
    column-gap: clamp(
      10px,
      10px + (40 - 10) * (100vw - 980px) / (1440 - 980),
      40px
    );
  }

  .hero-wrapper_main {
    flex-basis: 740px;
    padding-left: 0;
  }

  .hero-wrapper_add {
    display: block;
    flex-basis: 220px;
  }

  .hero-wrapper_intro {
    flex-basis: 280px;
  }

  .hero__img_1 {
    aspect-ratio: 1 / 1;
  }

  .hero__title {
    line-height: 1.14;
    font-size: clamp(
      68px,
      68px + (116 - 68) * (100vw - 980px) / (1440 - 980),
      116px
    );
  }
}

/* =================== ABOUT BLOCK =================== */

.about__img {
  width: 100%;
  margin-bottom: 40px;
  aspect-ratio: 1 / 1;
}

.about__img:last-of-type {
  display: none;
}

.about__text {
  margin-bottom: 40px;
}

.about__text:last-of-type {
  margin-bottom: 0;
}

@media (min-width: 769px) {
  .about__img {
    margin-bottom: 40px;
    aspect-ratio: 1 / 1;
    max-width: 440px;
    width: 100%;
  }

  .about .wrapper {
    max-height: 748px;
    columns: 2;
    column-gap: 40px;
  }
}

@media (min-width: 900px) {
  .about__img:last-of-type {
    display: block;
  }

  .about .wrapper {
    max-height: 750px;
    columns: 3 auto;
  }
}

/* =================== PORTFOLIO BLOCK =================== */

.portfolio {
  padding-bottom: 60px;
}

.portfolio .wrapper {
  padding-bottom: 0;
}

.portfolio__description {
  max-width: 360px;
  margin-bottom: 40px;
}

.portfolio__list::-webkit-scrollbar {
  width: 0;
}

.portfolio__list {
  width: auto;
  height: 654px;
  display: flex;
  column-gap: 20px;
  padding-inline: 20px;
  overflow-x: auto;
}

.portfolio__list-wrapper {
  position: relative;
}

.portfolio__item:first-of-type,
.portfolio__item:last-of-type {
  margin-inline: auto;
}

.portfolio__control {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 30%;
  left: 0;
}

.portfolio__control:last-of-type {
  left: auto;
  right: 0;
}

@media (hover: none) {
  .portfolio__control {
    display: none;
  }
}

.portfolio__item {
  max-width: 400px;
  flex-shrink: 0;
}

.portfolio__item.small {
  width: 220px;
  align-self: center;
}

.portfolio__item.small img {
  aspect-ratio: 1 / 1;
}

.portfolio__item.medium {
  width: 280px;
}

.portfolio__item.bottom {
  align-self: end;
}

.portfolio__item.small.center {
  align-self: center;
}

.portfolio__item.medium.center {
  margin-top: 120px;
}

/* =================== PRICE BLOCK =================== */

.price__description {
  margin-bottom: 40px;
}

.price__list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 320px));
  gap: 20px;
  justify-content: center;
}

.price__item {
  flex: 1 1 320px;
}

.card {
  box-sizing: border-box;
  height: 500px;
  display: flex;
  flex-direction: column;
  padding: 24px;
  border: 1px solid var(--bg-color-main);
  transition: var(--transition-out);
}

@media (hover: hover) {
  .card:hover {
    border-color: var(--color-accent);
    transition: var(--transition-in);
  }
}

@media (hover: none) {
  .card:active {
    border-color: var(--color-accent);
  }
}

.card__title {
  margin-bottom: 12px;
  font-family: var(--second-family);
  font-weight: 400;
  font-size: 1.25rem;
  line-height: 1.4;
  text-transform: uppercase;
}

.card__list {
  margin-bottom: 8px;
}

.card__item {
  position: relative;
  padding-left: 12px;
  margin-bottom: 4px;
}

.card__item::before {
  content: "";
  position: absolute;
  left: 0;
  top: calc(50% - 3px);
  width: 6px;
  height: 6px;
  background-color: var(--bg-color-main);
}

.card__price {
  font-family: var(--second-family);
  text-transform: uppercase;
}

.card__add-info {
  font-style: italic;
  line-height: 1.25;
  margin-bottom: 12px;
  margin-top: auto;
}

.card__btn {
  box-sizing: border-box;
  width: 100%;
  line-height: 60px;
  color: var(--text-color-main);
  background-color: var(--bg-color-main);
  padding-inline: 20px;
  font-family: var(--second-family);
  text-transform: uppercase;
  transition: var(--transition-out);
}

@media (hover: hover) {
  .card:hover .card__btn {
    color: var(--text-color-add);
    background-color: var(--color-accent);
    transition: var(--transition-in);
  }
}

@media (hover: none) {
  .card:active .card__btn {
    color: var(--text-color-add);
    background-color: var(--color-accent);
  }
}

@media (min-width: 769px) {
  .price__list {
    gap: clamp(20px, 2.78vw, 40px);
  }
}

/* =================== FAQ BLOCK =================== */

.faq__text {
  margin-bottom: 40px;
}

.faq__item {
  border-bottom: 1px solid var(--bg-color-add);
}

.faq__question {
  padding: 18px 24px 17px 0;
  font-family: var(--second-family);
  font-weight: 400;
  font-size: 1.25rem;
  line-height: 1.4;
  text-transform: uppercase;
  background-color: var(--bg-color-main);
  background-image: url("./assets/images/decor/plus.svg");
  background-repeat: no-repeat;
  background-position: top 20px right;
  background-size: 24px 24px;
  transition: var(--transition-out);
  cursor: pointer;
}

@media (hover: hover) {
  .faq__question:hover {
    color: var(--color-accent);
    background-image: url("./assets/images/decor/plus-red.svg");
    transition: var(--transition-in);
  }
}

@media (hover: none) {
  .faq__question:active {
    color: var(--color-accent);
    background-image: url("./assets/images/decor/plus-red.svg");
  }
}

.faq__item.open .faq__question {
  background-image: url("./assets/images/decor/minus.svg");
}

@media (hover: hover) {
  .faq__item.open .faq__question:hover {
    background-image: url("./assets/images/decor/minus-red.svg");
  }
}

@media (hover: none) {
  .faq__item.open .faq__question:active {
    background-image: url("./assets/images/decor/minus-red.svg");
  }
}

.faq__answer {
  padding-bottom: 19px;
}

.faq__answer-wrapper {
  height: 0;
  overflow: hidden;
  transition: height 0.3s ease-in-out;
}

.faq__item.open .faq__answer-wrapper {
  height: auto;
  transition: height 0.3s ease-in-out;
}

@media (min-width: 950px) {
  .faq .wrapper {
    display: flex;
    justify-content: space-between;
    gap: 40px;
  }

  .faq-column {
    flex: 1;
  }
}

/* =================== FOOTER =================== */

.booking .wrapper {
  padding-top: 40px;
  padding-bottom: 20px;
}

.booking__title {
  margin-bottom: 20px;
  font-family: var(--second-family);
  font-weight: 400;
  font-size: 1.25rem;
  line-height: 1.4;
  text-transform: uppercase;
  text-align: center;
}

.booking__form {
  display: flex;
  width: 100%;
  align-items: stretch;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
}

.booking__input {
  height: 60px;
  box-sizing: border-box;
  border: 1px solid var(--bg-color-main);
  padding: 18px 12px;
  font-family: var(--second-family);
  text-transform: uppercase;
  line-height: 1.5;
  font-weight: 400;
  font-size: 1rem;
  width: 100%;
}

.booking__input:not(:disabled):hover {
  border-color: var(--color-accent);
}

.booking__input::placeholder {
  color: #989898;
  font-size: 1rem;
  line-height: 1.5;
}

.booking__btn {
  height: 60px;
  padding-inline: 67px;
  background-color: var(--bg-color-main);
  color: var(--text-color-main);
  font-family: var(--second-family);
  text-transform: uppercase;
  line-height: 1.5;
  font-weight: 400;
  width: 100%;
  transition: var(--transition-out);
}

@media (hover: hover) {
  .booking__btn:hover {
    color: var(--text-color-add);
    background-color: var(--color-accent);
    transition: var(--transition-in);
  }
}

@media (hover: none) {
  .booking__btn:active {
    color: var(--text-color-add);
    background-color: var(--color-accent);
  }
}

@media (min-width: 650px) {
  .booking__input {
    flex: 1;
    max-width: 380px;
  }

  .booking__btn {
    width: 200px;
  }
}

.contacts {
  padding-top: 20px;
  padding-bottom: 20px;
}

.contacts__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
}

.contacts__item {
  width: 100%;
}

.contacts__link {
  display: block;
  text-align: center;
  font-family: var(--second-family);
  text-transform: uppercase;
  line-height: 1.5;
  font-weight: 400;
  line-height: 60px;
  padding-inline: 20px;
  transition: var(--transition-out);
}

@media (hover: hover) {
  .contacts__link:hover {
    color: var(--color-accent);
    transition: var(--transition-in);
  }
}

@media (hover: none) {
  .contacts__link:active {
    color: var(--color-accent);
  }
}

@media (min-width: 650px) {
  .contacts__item {
    width: auto;
  }
}

/* =================== MODAL =================== */

.modal {
  z-index: -1;
  display: block;
  position: fixed;
  padding: 20px;
  inset: 0;
  background-color: transparent;
  transition: all 0.4s ease-in-out;
}

.modal.open {
  z-index: 4;
  background-color: rgb(0, 0, 0, 0.4);
  transition: all 0.4s ease-in-out;
}

.modal-content {
  position: absolute;
  box-sizing: border-box;
  top: 50%;
  left: 100%;
  transform: translate(0, -50%);
  max-width: 500px;
  width: calc(100% - 40px);
  padding: 60px;
  background-color: var(--bg-color-add);
  transition: var(--transition-out);
}

.modal.open .modal-content {
  left: 50%;
  transform: translate(-50%, -50%);
  transition: var(--transition-in);
}

.modal__title {
  color: var(--text-color-add);
}

.modal__input {
  max-width: 100%;
}

.modal__btn {
  padding: 0;
  width: 100%;
}

.modal__form {
  flex-direction: column;
}

.modal__close-btn {
  position: absolute;
  z-index: 2;
  top: 0;
  right: 0;
  width: 60px;
  height: 60px;
  background-image: url("./assets/images/decor/close.svg");
  background-repeat: no-repeat;
  background-position: center;
  transition: var(--transition-out);
}

.modal__close-btn:hover {
  opacity: 0.5;
  transition: var(--transition-in);
  cursor: pointer;
}
