html {
  box-sizing: border-box;
}

*,
*::before,
*::after {
  box-sizing: inherit;
}

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

img {
  max-width: 100%;
}

/* Сброс стилей */
.list-reset {
  list-style-type: none;
  padding: 0;
  margin: 0;
}

.none {
  display: none;
}

.stop-scroll {
  overflow: hidden;
}

body {
  font-family: "Roboto", sans-serif;
  font-family: Arial, Helvetica, sans-serif;
  background-color: rgb(255, 255, 255);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.main {
  display: flex;
  flex: 1;
  flex-direction: column;
}

.grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 20px;
}

/* burder */

.header__close {
  display: none;
}

.burger {
  position: relative;
  display: none;
  width: 30px;
  height: 20px;
  padding: 0;
  cursor: pointer;
  background-color: transparent;
  border: none;
}

.burger::before,
.burger::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: rgb(255, 255, 255);
  transition:
    transform 0.3s ease-in-out,
    top 0.3s ease-in-out,
    bottom 0.3s ease-in-out;
}

.burger__line {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: rgb(255, 255, 255);
  transition: opacity 0.3s ease-in-out;
  transform: translateY(-50%);
}

.burger::before {
  top: 0;
}

.burger::after {
  bottom: 0;
}

.burger--active .burger__line {
  opacity: 0;
}

.burger--active::before {
  top: 50%;
  transform: rotate(45deg);
}

.burger--active::after {
  top: 50%;
  bottom: auto;
  transform: rotate(-45deg);
}

/* end burder */

/* header */

.header {
  box-shadow: 0 0 6px 2px rgba(112, 111, 111, 0.4);
  background: #fff;
}

.header__wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0px;
}

.header__list {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-right: 100px;
}

.header__link {
  font-weight: 400;
  font-size: 18px;
  color: #706f6f;
}

.header__contacts--link {
  font-weight: 400;
  font-size: 18px;
  line-height: 140%;
  color: #0053a2;
}

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

.header__contacts {
  display: flex;
  align-items: center;
  gap: 30px;
}

.hero-mobile {
  display: none;
}

.header__mobile {
  display: none;
}

/* end header */

.container {
  max-width: 1354px;
  padding: 0 15px;
  margin: 0 auto;
}

/* hero */

.hero {
  position: relative;
  padding: 100px 0;
  height: 100%;
  max-height: 1000px;
  width: 100%;
  aspect-ratio: 23 / 9;
  background-image: url("/images/hero-big.jpg");
  background-position: center center;
  background-repeat: no-repeat;
  background-size: contain;
}

.hero__title {
  font-weight: 700;
  font-size: clamp(2rem, 4vw, 3.125rem);
  line-height: 120%;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #0053a2;
}

.hero__descr {
  max-width: 876px;
  font-weight: 300;
  font-size: clamp(1.125rem, 2vw, 1.625rem);
  line-height: 140%;
  color: #0053a2;
}

.tehnopolis {
  position: absolute;
  left: 0;
  bottom: 0;
  padding: 21px;
  backdrop-filter: blur(6.034636974334717px);
  background: rgba(112, 111, 111, 0.4);
  border-radius: 0 13px 0 0;
}

/* end hero */

/* about */

.about {
  padding-top: 100px;
  padding-bottom: 50px;
}

.about__wrapper {
  align-items: center;
}

.about__text {
  margin: 0;
  font-weight: 300;
  font-size: 18px;
  line-height: 140%;
  color: #706f6f;
  grid-column: 6 span;
}

.about__img {
  grid-column: 6 span;
}

/* end about */

/* library */

.library {
  padding: 100px 0;
}

.library__title {
  font-weight: 700;
  font-size: 50px;
  line-height: 120%;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #0053a2;
}

.library__list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-gap: 20px;
  margin-bottom: 30px;
  grid-template-rows: 300px;
  grid-auto-rows: 300px;
}

.library__list .library__item:nth-child(6n),
.library__list .library__item:nth-child(6n + 1) {
  grid-column: span 2;
}

.library__img {
  border-radius: 5px;
  width: 100%;
  max-width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.library__link {
  display: block;
  width: 100%;
  height: 100%;
}

.library__btn {
  display: block;
  margin: 0 auto;
  border-radius: 5px;
  padding: 20px;
  border: none;
  box-shadow: 0 0 5px 2px rgba(112, 111, 111, 0.3);
  background: #fff;
  font-weight: 400;
  font-size: 18px;
  line-height: 110%;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: #0053a2;
}

.footer {
  margin-top: auto;
  padding: 30px 0;
  background: #0053a2;
}

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

/* end library */

/* contact */

.contact {
  padding-top: 50px;
  padding-bottom: 100px;
}

.contact__wrapper {
  display: flex;
  align-items: flex-start;
  gap: 60px;
}

.contact__title {
  margin: 0;
  font-weight: 500;
  font-size: 50px;
  line-height: 120%;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #0053a2;
}

.page-contact-requisites__table {
  border: 2px solid #ebf3fc;
  border-radius: 5px;
  width: 100%;
  max-width: 100%;
  border-collapse: collapse;
  margin: 0;
  padding: 0;
  border: none;
}

.page-contact-requisites__table-body .page-contact-requisites__table-row:first-child {
  border-top: 1px solid #ebf3fc;
  border-radius: 5px;
}

.page-contact-requisites__table-body .page-contact-requisites__table-row:last-child {
  border-radius: 0px 0px 5px 5px;
  border: 1px solid #ebf3fc;
}

.page-contact-requisites__table-row.blue {
  background-color: #ededed;
}

.page-contact-requisites__table-thread-containers,
.page-contact-requisites__table-row,
.page-contact-requisites__table-footer {
  display: -ms-grid;
  display: grid;
  align-items: center;
  -ms-grid-columns: 428px 1fr;
  grid-template-columns: 428px 1fr;
}
.page-contact-requisites__table-row {
  border-left: 1px solid #ebf3fc;
  border-right: 1px solid #ebf3fc;
}

.page-contact-requisites__table-body .page-contact-requisites__table-td {
  padding: 20px;
}

.text.text--gray {
  margin: 0;
  color: #706f6f;
}

.page-project-slide time,
.page-production__more-btn,
.text {
  line-height: 25.2px;
  font-weight: 300;
}

/* end contact */

/* media hero */

@media (max-width: 1024px) {
  .grid {
    grid-template-columns: repeat(9, 1fr);
    gap: 30px;
  }

  /* header */

  .hero {
    padding: 0;
    width: 100%;
    aspect-ratio: 16 / 9;
    background-image: url(/images/hero-small.jpg);
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
  }

  .tehnopolis {
    max-width: 200px;
    top: 0;
    bottom: auto;
    padding: 14px;
    border-radius: 0 0 7px 0;
  }

  .tehnopolis svg {
    width: 100%;
  }

  .header {
    padding: 0;
  }

  .hero__title {
    font-size: 30px;
  }

  .hero__descr {
    margin: 0;
    font-size: 18px;
  }

  .header__container {
    padding: 0;
  }

  .header__wrapper {
    padding: 0;
  }

  .burder-wrapper {
    display: flex;
    align-items: center;
    padding: 27px;
    width: 90px;
    height: 90px;
    background: #0053a2;
  }

  .header__mobile {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 90px;
    height: 90px;
    background: #0053a2;
  }

  .header_mobile--icon {
    border: none;
    background-color: transparent;
  }

  .burger {
    display: block;
    order: 0;
  }

  .header__mobile {
    order: 3;
  }

  .header__logo {
    order: 1;
  }

  .header__nav {
    background-color: rgb(255, 255, 255);
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    max-width: 100%;
    align-items: flex-start;
    flex-direction: column;
    height: 100vh;
    padding: 30px 0 30px 30px;
    overflow-y: auto;
    z-index: 10;
    transform: translateX(-100%);
    gap: 50px;
    transition: transform 0.6s ease-in-out;
  }

  .nav--active {
    transform: none;
  }

  .header__close {
    position: absolute;
    display: block;
    right: 20px;
  }

  .header__contacts {
    flex-direction: column;
    align-items: flex-start;
  }

  .header__list {
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    gap: 20px;
  }

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

  /* end header */

  /* hero */

  .hero__container {
    display: none;
  }

  .hero-mobile {
    display: block;
    padding-top: 60px;
    padding-bottom: 30px;
  }

  .hero__title {
    font-size: 35px;
    margin: 0;
    margin-bottom: 20px;
  }

  .hero__descr {
    font-size: 16px;
    color: #706f6f;
  }

  /* end hero */

  /* about */

  .about {
    padding: 30px 0;
    padding-bottom: 60px;
  }

  .about__text {
    font-size: 16px;
    grid-column: 9 span;
  }

  .about__img {
    grid-column: 9 span;
  }

  .about__img > img {
    width: 100%;
  }

  .library__list {
    grid-template-columns: repeat(2, 1fr);
  }

  .library__list .library__item {
    grid-column: span 1;
  }

  .library__list .library__item:nth-child(3n + 1) {
    grid-column: span 2;
  }

  .library__title {
    margin: 0;
    margin-bottom: 30px;
    font-size: 20px;
  }

  /* end about */

  /* library */

  .library {
    padding-top: 0px;
    padding-bottom: 60px;
  }

  .library__btn {
    font-weight: 400;
    font-size: 18px;
    line-height: 110%;
    letter-spacing: 0.01em;
    text-transform: uppercase;
    color: #0053a2;
  }

  .contact__wrapper {
    flex-direction: column;
  }

  /* end  library */
}

@media (max-width: 768px) {
  .page-contact-requisites__table-thread-containers,
  .page-contact-requisites__table-row,
  .page-contact-requisites__table-footer {
    grid-template-columns: 1fr;
  }

  .page-contact-requisites__table-body .page-contact-requisites__table-td {
    padding: 10px 25px 10px 25px;
  }

  .hero__title {
    font-weight: 700;
    font-size: 30px;
    line-height: 120%;
  }

  .hero__descr {
    font-size: 18px;
  }

  .tehnopolis {
    max-width: 30%;
    height: auto;
    top: 0;
    bottom: auto;
    padding: 8px;
    border-radius: 0 0 4px 0;
  }

  .tehnopolis svg {
    height: auto;
  }

  .footer__container {
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
  }

  .footer__tehnopolis {
    width: 150px;
  }
}

/* end media hero */
