@import url("null.css");
@import url("fonts.css");

body {
  font-family: "Rubik", sans-serif;
  font-size: 0.875rem;
  color: #646d70;
}
.wrapper {
  min-height: 100%;
  overflow: clip;
  display: flex;
  flex-direction: column;
}
.page {
  flex: 1 1 auto;
}

[class*="__container"] {
  max-width: 52.5rem;
  padding-left: 0.9375rem;
  padding-right: 0.9375rem;
  margin: 0 auto;
}
.title {
  font-family: "Merriweather";
  color: #fff;
  line-height: 130%;
  font-size: 1.875rem;
}
.title--dark {
  color: #222f33;
}

@media (max-width: 47.9988em) {
  .title {
    font-size: 1.5rem;
  }
}

.text {
  line-height: 185%;
}
.text p:not(:last-child) {
  margin-bottom: 0.9375rem;
}

/* Основные стили */
/* Header */
.header {
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  z-index: 50;
}
.header::before {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  background-color: rgb(34, 47, 51, 0.7);
  opacity: 0;
  transition: opacity 0.8s;
}
.header.scroll::before {
  opacity: 1;
}
.header__container {
  display: flex;
  position: relative;
  z-index: 2;
  gap: 1.25rem;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.3125rem;
  padding-bottom: 0.3125rem;
  min-height: 6.5625rem;
}

.header__logo img {
  width: 8.4375rem;
}

.header__body {
  display: flex;
  align-items: center;
  column-gap: 2.6875rem;
  margin-right: 30px;
}

.header__button {
  padding: 0.625rem 1.3125rem;
  background-color: #fff;
  color: #606b74;
  border-radius: 0.25rem;
  transition: all 0.7s;
}
.header__button:hover {
  background-color: #6e6868;
  color: #fff;
}

.menu__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  column-gap: 2.5rem;
  row-gap: 0.625rem;
  color: #fff;
  font-weight: 500;
  font-size: 0.75rem;
}

.menu__link:hover {
  text-decoration: underline;
}
@media (max-width: 39.0625em) {
  .header__container {
    min-height: 70px;
  }
  .header__body {
    column-gap: 1.25rem;
  }
  .header__button {
    padding: 10px 15px;
  }
  .menu__list {
    column-gap: 1.25rem;
    font-size: 14px;
  }
  .header__logo {
    flex: 0 0 2.0625rem;
  }
}

/* Burger */
.icon-menu {
  display: block;
  flex: 0 0 30px;
  height: 18px;
  position: relative;
  z-index: 5;
}

.icon-menu span,
.icon-menu::before,
.icon-menu::after {
  content: "";
  right: 0;
  position: absolute;
  width: 100%;
  height: 2px;
  background-color: #fff;
  transition: all 0.3s linear;
}

.icon-menu::before {
  top: 0;
}
.icon-menu::after {
  bottom: 0;
}
.icon-menu span {
  top: calc(50% - 1px);
}
.menu-open .icon-menu span {
  width: 0;
}
.menu-open .icon-menu::before {
  top: calc(50% - 1px);
  transform: rotate(-45deg);
}
.menu-open .icon-menu::after {
  bottom: calc(50% - 1px);
  transform: rotate(45deg);
}

@media (min-width: 656px) {
  .icon-menu {
    display: none;
  }
}

@media (max-width: 655px) {
  .menu__body {
    position: fixed;
    width: 100%;
    height: 100%;
    background-color: #222f33;
    left: -100%;
    top: 0;
    padding: 100px 15px 30px 15px;
    overflow: auto;
    transition: left 0.3s linear;
  }
  .menu__body::before {
    content: "";
    width: 100%;
    height: 70px;
    position: fixed;
    top: 0;
    left: -100%;
    background-color: #222f33;
    z-index: 2;
  }

  .menu-open .menu__body,
  .menu-open .menu__body::before {
    left: 0;
    z-index: -1;
  }

  .menu-open .menu__list {
    display: flex;
    flex-direction: column;
    font-size: 24px;
    text-align: center;
  }
}

/* Main */
.main-section {
  min-height: 100vh;
  position: relative;
  display: flex;
}
.main-section__container {
  padding-top: 5.625rem;
  padding-bottom: 3.125rem;
  position: relative;
  z-index: 2;
  gap: 1.25rem;
  flex: 1 1 auto;
  display: grid;
  grid-template-columns: 54.320988% 1fr;
  align-items: center;
}

@media (max-width: 43.75em) {
  .main-section__container {
    grid-template-columns: auto;
    align-content: center;
  }
}

.main-section__content {
  flex: 0 0 54.320988%; /* 440/810 */
}
.main-section__label {
  font-weight: 500;
  font-size: 1rem;
  color: #fff;
}
.main-section__label:not(:last-child) {
  margin-bottom: 0.75rem;
}

.main-section__video-link {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 500;
}
@media (min-width: 43.75em) {
  .main-section__video-link {
    justify-self: center;
  }
}
.main-section__video-link::before {
  content: "";
  width: 2rem;
  height: 2rem;
  flex: 0 0 2rem;
  border-radius: 50%;
  background: url("../img/main/play.svg") left no-repeat;
}
.main-section__image {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  background-color: #000;
}
.main-section__image img {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  object-fit: cover;
}
@media (max-width: 43.75rem) {
  .main-section__image img {
    opacity: 0.8;
  }
}

/* Materials */
.swiper {
  overflow: hidden;
}
.swiper-initialized {
  touch-action: pan-y;
}
.swiper-wrapper {
  width: 100%;
  height: 100%;
  display: flex;
  box-sizing: content-box;
}
.swiper-slide {
  flex-shrink: 0;
}

.materials {
  position: relative;
  z-index: 2;
}

.materials__container {
  position: relative;
  z-index: 2;
  padding-bottom: 1.25rem;
  display: grid;
  grid-template-columns: 50% minmax(17.5rem, 20.3125rem);
  justify-content: space-between;
  align-items: start;
  gap: 1.25rem;
  min-width: 0;
}
.materials__content {
  padding-top: 25px;
  display: grid;
  gap: 0.8125rem;
  justify-items: start;
}

.materials__text {
  line-height: 186%;
}
.materials__more {
  border-radius: 0.25rem;
  padding: 0.625rem 0.875rem;
  font-weight: 500;
  font-size: 0.75rem;
  border: 1px solid #646d70;
}
.materials__slider {
  transform: translate(0, -22.655738%);
}
.slider-materials {
  position: relative;
}

.slider-materials__slide {
  position: relative;
  aspect-ratio: 325 / 366;
}
.slider-materials__slide img {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  object-fit: cover;
}
.slider-materials__pagination {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  padding: 0 0.3125rem 1rem 0.3125rem;
  gap: 0.5rem;
  bottom: 0;
  left: 0;
  width: 100%;
}

.slider-materials__pagination .swiper-pagination-bullet {
  flex: 0 0 0.5rem;
  height: 0.5rem;
  background-color: #fff;
  opacity: 0.4;
  border-radius: 50%;
  cursor: pointer;
  transition: opacity 0.3s;
}

.slider-materials__pagination .swiper-pagination-bullet-active {
  opacity: 1;
}

@media (min-width: 47.99em) {
  .materials::before {
    content: "";
    position: absolute;
    background-color: #fff;
    top: 0;
    left: 0;
    width: 61.7%;
    height: 2.3125rem;
    transform: translate(0px, -100%);
  }
  .materials::after {
    content: "";
    position: absolute;
    bottom: 0;
    right: 0;
    height: 8.75rem;
    background-color: #222f33;
    width: 38.3%; /* 383/1000 */
  }
}

@media (max-width: 47.99em) {
  .materials__container {
    grid-template-columns: auto;
  }
  .materials__slider {
    transform: translate(0, 0);
  }
}

/* Inovate */
.inovate {
  background-color: #222f33;
  padding: 72px 0 80px 0;
}
.inovate__title:not(:last-child) {
  margin-bottom: 0.5rem;
}

.inovate__text {
  columns: 2 15.625rem;
  gap: 2.6875rem;
  color: #fff;
  opacity: 0.7;
}

@media (max-width: 47.99em) {
  .inovate {
    padding: 1.875rem 0;
  }
}

/* Info */
.info {
  padding-top: 5.3125rem;
  padding-bottom: 5.3125rem;
}
.info__container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  column-gap: 4.6875rem;
  row-gap: 1.875rem;
}
.info__image {
  text-align: center;
}
.info__image img {
  max-width: 100%;
}
.info__content {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  column-gap: 3.75rem;
  row-gap: 2.3125rem;
}

.info__title {
  font-family: "Merriweather";
  font-size: 1.125rem;
  color: #222f33;
}
.info__title:not(:last-child) {
  margin-bottom: 0.25rem;
}
.info__text {
  font-size: 0.75rem;
}

@media (max-width: 52.5em) {
  .info__content {
    column-gap: 1.25rem;
  }
  .info__container {
    column-gap: 1.5625rem;
  }
}

@media (max-width: 47.9988em) {
  .info {
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
  }
  .info__container {
    grid-template-columns: auto;
  }
  .info__image {
    order: 2;
  }
  .info__content {
    order: 1;
  }
}

/* Footer */
.footer {
  background-color: #222f33;
  padding-top: 2.0625rem;
  padding-bottom: 2.0625rem;
}
.footer__container {
  display: grid;
  column-gap: 0.9375rem;
  row-gap: 1.25rem;
  color: #fff;
  align-items: center;
  grid-template-columns: repeat(3, 1fr);
}
@media (max-width: 37.5em) {
  .footer__container {
    grid-template-columns: auto;
    justify-content: center;
    text-align: center;
  }
}
.footer__mail {
  font-weight: 500;
  font-size: 0.75rem;
  opacity: 0.6;
}
.footer__mail:hover {
  text-decoration: underline;
}
.footer__logo {
  justify-self: center;
}

.menu-footer {
  display: flex;
  justify-self: end;
  gap: 1.875rem;
  align-items: center;
  opacity: 0.6;
}

.menu-footer__link {
  font-weight: 500;
  font-size: 0.75rem;
}
.menu-footer__link:hover {
  text-decoration: underline;
}

/* Modal */
.backdrop {
  position: fixed;
  z-index: 5;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.2);
  opacity: 1;
  transition: opacity 250ms linear, visibility 250ms linear,
    transform 250ms linear;
  overflow-y: scroll;
}

.backdrop--hidden {
  opacity: 0;
  pointer-events: none;
}

.modal {
  position: absolute;
  z-index: 5;
  top: 93px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #fff;
  box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.12), 0px 1px 1px rgba(0, 0, 0, 0.14),
    0px 2px 1px rgba(0, 0, 0, 0.2);
  border-radius: 4px;
  transition-duration: 250ms;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

@media screen and (min-width: 768px) {
  .modal {
    top: 50%;
    transform: translate(-50%, -50%);
  }
}

@media screen and (min-width: 1200px) {
  .modal {
    max-width: 528px;
    transform: translate(-50%, -50%) scale(1);
  }
}

.backdrop .backdrop--hidden .modal {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
}

.close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 30px;
  height: 30px;
  background-color: #fff;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 50%;
  display: flex;
  transition-property: stroke;
  transition-duration: 250ms;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

.close__icon {
  margin: auto;
  width: 28px;
  height: 28px;
  align-items: center;
  cursor: pointer;
  stroke: rgb(0, 0, 0);
}

@media (min-width: 320px) {
  iframe {
    width: 300px;
    height: 300px;
  }
}

@media (min-width: 768px) {
  iframe {
    width: 450px;
  }
}

@media (min-width: 1024px) {
  iframe {
    width: 530px;
  }
}

/* Scroll up */
#scrollToTop {
  position: fixed;
  bottom: 35px;
  left: 75%;
  display: none;
  cursor: pointer;
  opacity: 0.6;
  z-index: 5;
}

@media (min-width: 600px) {
  #scrollToTop {
    bottom: 50px;
    left: 80%;
  }
}

@media (min-width: 768px) {
  #scrollToTop {
    left: 85%;
  }
}

@media (min-width: 1024px) {
  #scrollToTop {
    left: 78%;
  }
}
@media (min-width: 1200px) {
  #scrollToTop {
    left: 73%;
  }
}

.scroll-up {
  fill: #161d1f;
}
