@font-face {
  font-family: "Calibri";
  src: url("../fonts/Calibri-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Calibri";
  src: url("../fonts/Calibri.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

* {
  margin: 0;
  padding: 0;
  border: 0;
  box-sizing: border-box;
}

body,
html {
  height: 100%;
  font-family: "Calibri", sans-serif;
  font-style: normal;
  font-weight: 400;
  font-size: 20px;
  line-height: 1.1;
  color: #fdeaec;
  background-color: #524e9a;
  scroll-behavior: smooth;
}

ul {
  list-style-type: none;
}

a {
  text-decoration: none;
}

img {
  width: 100%;
}

.container {
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 30px;
}

/* hero */

.hero {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background-image: url("../img/bg.jpg");
  background-size: cover;
  background-position: center;
  text-align: center;
  overflow-y: auto;
}

.hero--catalog-view,
.hero--contact-view {
  min-height: auto;
  padding: 0 0 120px;
}

.hero--catalog-view .hero__top,
.hero--contact-view .hero__top {
  margin-bottom: 60px;
}

.header {
  position: relative;
  padding: 30px 0;
  font-size: 24px;
  font-weight: 700;
  line-height: 1;
  transition: all 0.4s ease;
}

.header__container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.header__menu {
  width: 100%;
  min-width: 0;
  flex: 0.5 1 auto;
}

.burger {
  display: none;
  width: 32px;
  height: 22px;
  position: relative;
  z-index: 10;
  cursor: pointer;
}

.burger span {
  position: absolute;
  top: 9px;
  left: 0;
  width: 100%;
  height: 4px;
  border-radius: 4px;
  background: #94a6cd;
  transition: all 0.2s linear;
}

.burger span:first-child {
  top: 0;
}

.burger span:last-child {
  top: auto;
  bottom: 0;
}

.burger.active span {
  transform: scale(0);
}

.burger.active span:first-child {
  transform: rotate(-45deg);
  top: 7px;
}

.burger.active span:last-child {
  transform: rotate(45deg);
  bottom: 7px;
}

.header__menu-wrap {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.nav {
  min-width: 0;
  text-transform: uppercase;
  flex: 0.5 1 auto;
}

.nav__list {
  display: flex;
}

.nav__item {
  transition: color 0.4s ease;
}

.nav__item:nth-child(n + 2):nth-child(-n + 3) {
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}

.nav__item a {
  padding: 0 15px;
}

.header__menu a {
  color: #94a6cd;
  transition: color 0.3s ease;
}

.header__menu .nav__item:hover,
.header__menu a:hover {
  color: #edd1d0;
}

.header__menu .nav__item.active,
.header__menu .nav__item.active a,
.header__menu .lang__item.active a {
  color: #edd1d0;
}

.lang__list {
  display: flex;
  justify-content: center;
}

.lang__item:not(:last-child) {
  border-right: 4px solid #94a6cd;
}

.lang__item a {
  padding: 0px 10px;
}

.hero__top {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 30px;
}

.hero__top-image {
  width: 200px;
  height: auto;
  transition: width 0.3s ease;
}

.hero__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  flex: 1;
  padding: 20px;
  max-width: 700px;
  width: 100%;
  margin: 0 auto;
}

.title {
  font-size: 2rem;
  font-weight: 700;
  color: #edd1d1;
  margin-bottom: 15px;
  transition: font-size 0.3s ease;
}

.text {
  font-size: 1rem;
  transition: font-size 0.3s ease;
}

.text + .text {
  margin-top: 10px;
}

.hero__arrow {
  margin-top: 20px;
}

.arrow-animation {
  width: 30px;
  height: 70px;
  animation: arrow-move 1.5s ease-in-out infinite;
}

@keyframes arrow-move {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(10px);
  }
  100% {
    transform: translateY(0);
  }
}

.hero__bottom {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  margin-top: auto;
}

.hero__bottom-image {
  width: 85%;
  max-width: 385px;
  height: auto;
  object-fit: contain;
  transition: width 0.3s ease;
}

/* info */

.info {
  padding: 120px 0;
  text-align: center;
  background: linear-gradient(to bottom, #504f9c, #6c438e);
}

.info--evening-gradient {
  background: linear-gradient(to bottom, #504f9c, #47396f);
}

.info--text-left .info__img {
  order: 1;
}

.info__container {
  display: flex;
  gap: 30px;
}

.info__img {
  flex: 0 0 400px;
  transition: width 0.3s ease;
}

.info__img img {
  position: sticky;
  top: 30px;
}

.info__parameters {
  margin-bottom: 15px;
  font-size: 1.2rem;
  color: #edd1d1;
}

/* contact */

.contact__txt {
  margin-bottom: 20px;
}

.contact__form {
  text-align: center;
}

.contact__input,
.contact__textarea {
  width: 100%;
  margin-bottom: 20px;
  padding: 15px;
  font: inherit;
  border: 4px solid #fdeaec;
  border-radius: 30px;
  outline: none;
  color: #453769;
  transition: border 0.4s ease;
}

.contact__textarea {
  min-width: 100%;
  max-width: 100%;
  min-height: 150px;
  margin-bottom: 30px;
}

.contact__btn {
  min-width: 100%;
  padding: 16px 56px;
  font: inherit;
  color: #edd1d0;
  cursor: pointer;
  border-radius: 30px;
  border: 4px solid #edd1d0;
  background: #9f5ca1;
  transition: all 0.4s ease;
}

.contact__btn:hover {
  background: #85569f;
}

.contact__input:focus,
.contact__textarea:focus {
  border: 4px solid #af6aa9;
}

.contact__input::placeholder,
.contact__textarea::placeholder {
  color: rgba(69, 55, 105, 0.5);
}

/* footer */

.footer {
  padding: 120px 0;
  font-size: 20px;
  text-align: center;
  background: #4c3686;
  transition: all 0.4s ease;
}

.footer a {
  color: #94a6cd;
  transition: color 0.3s ease;
  transition: all 0.4s ease;
}

.footer__nav {
  margin-bottom: 30px;
  font-size: 24px;
  font-weight: 700;
}

.footer__nav .nav__list {
  justify-content: center;
}

.footer__nav .nav__item.active a,
.footer__lang .lang__item.active a,
.footer__nav .nav__item a:hover,
.footer__lang .lang__item a:hover {
  color: #edd1d0;
}

.footer__lang {
  margin-bottom: 60px;
  font-size: 24px;
  font-weight: 700;
}

/* media */

@media (max-width: 1100px) {
  .container {
    padding: 0 15px;
  }

  .header.active {
    background: #4c3686;
  }

  .header__menu {
    flex: 0 0 auto;
  }

  .burger {
    display: block;
  }

  .header__menu-wrap {
    position: absolute;
    top: 100%;
    left: -100%;
    width: 100%;
    display: block;
    z-index: 100;
    text-align: center;
    background: #4c3686;
    transition: all 0.4s ease;
  }

  .header__menu-wrap.active {
    left: 0;
  }
  .nav__list {
    display: block;
  }

  .nav__item:nth-child(n + 2):nth-child(-n + 3) {
    text-overflow: ellipsis;
    white-space: normal;
    overflow: hidden;
  }

  .nav__item a {
    padding: 20px 15px;
    display: block;
  }

  .lang {
    margin: 30px 0 120px;
  }

  .info__container {
    flex-direction: column;
    align-items: center;
  }

  .info__img {
    max-width: 400px;
    padding: 0 30px;
    flex: auto;
    order: 1;
  }
}

@media (max-width: 768px) {
  .hero__top-image {
    width: 35vw;
  }

  .title {
    font-size: 1.75rem;
  }

  .text {
    font-size: 1.2rem;
  }

  .hero__bottom-image {
    width: 80%;
  }

  .info__parameters {
    font-size: 1.4rem;
  }
}

@media (max-width: 480px) {
  .hero__top-image {
    width: 45vw;
  }

  .title {
    font-size: 1.5rem;
  }

  .text {
    font-size: 1rem;
  }

  .info__parameters {
    font-size: 1.2rem;
  }

  .hero__bottom-image {
    width: 75%;
  }
}

@media (max-width: 320px) {
  .hero__top-image {
    width: 50vw;
  }

  .title {
    font-size: 1.25rem;
  }

  .text {
    font-size: 0.9rem;
  }

  .hero__bottom-image {
    width: 70%;
  }
}
