:root {
  /* Размеры шрифтов */
  --mob-font: 14px;
  --tab-font: 17px;
  --desc-font: 24px;

  /* Ширина шрифта */
  --normal-weight: 400;
  --tnin-weight: 200;

  /* Отступы */
  --mob-padding: 24px;
  --tab-padding: 32px;
  --desk-padding: 40px;

  /* Цвета */
  --bg-color: #f0f4f9;
  --fg-color: #fff;
  --main-color: #002050;
  --main-focus-color: rgba(0, 32, 80, 0.5);
  --accent-color: #1170FF;
  --footer-bg-color: #000B1B;
  --button-hover-color: var(--fg-color);
  --button-text-color: var(--fg-color);
  --link-color: var(--main-color);
  --link-hover-color: var(--accent-color);
  --second-color: #607594;
  --decor-color: #cecece;
  --footer-text-color: #80858d;
  --tabs-color: #D6DFEA;

  /* Размеры девайсов */
  --max-width: 1440px;
  --mob-width: 360px;
  --tab-width: 768px;
  --desk-width: 1024px;
  --midle-desc-width: 1280px;

  /* Основные скругления */
  --border-radius: 80px;
  --mob-border-radius: 40px;

  /* Анимации */
  --transition-time: .5s;
}

* {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
  font-weight: 400;
  transition: all var(--transition-time);
}

a {
  color: var(--main-color);
  text-decoration: none;
}

img {
  max-width: 100%;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  border: 0;
  padding: 0;
  white-space: nowrap;
  clip-path: inset(100%);
  clip: rect(0 0 0 0);
  overflow: hidden;
}

.page {
  height: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 115px;
}

.page-body {
  position: relative;
  min-height: 100svh;
  width: 100vw;
  display: grid;
  grid-template-rows: 66px 1fr 784px;
  grid-template-areas:
    "header"
    "main"
    "footer";
  align-content: start;
  justify-items: center;
  align-items: center;

  font-family: "AeonikPro-Regular", Inter, sans-serif;
  font-size: var(--mob-font);
  line-height: 110%;

  color: var(--main-color);
  background-color: var(--bg-color);
}

.header {
  grid-area: header;
  height: 66px;
  background-color: var(--fg-color);
  border-radius: 0 0 32px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  top: 0;
  left: 0;
  right: 0;
  position: fixed;
  z-index: 100;
}

.header__wrapper {
  background-color: var(--fg-color);
  display: flex;
  width: 100%;
  height: 100%;
  justify-content: space-between;
  padding: 7px 24px 12px;
  border-radius: 0 0 32px 32px;
}

.header__nav {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  padding: 80px 20px 30px;
  background-color: var(--fg-color);
  border-radius: 0 0 32px 32px;
  gap: 9px;
  z-index: -1;
  transform: translateY(-350px);
}

.header__nav.active {
  transform: translateY(0);
}

.header__link-logo {
  color: var(--main-color);
}

.header__link-logo[href]:hover {
  color: var(--accent-color);
}

.header__link-logo:not([href]):hover {
  color: var(--main-color);
}

.header__toggle {
  border-radius: 0;
  border: none;
  background-color: transparent;
  height: 48px;
  width: 48px;
  display: block;
  position: relative;
}

.header__toggle:before {
  top: 17px;
}

.header__toggle:after {
  bottom: 17px;
}

.header__toggle:before,
.header__toggle:after {
  content: "";
  width: 48px;
  height: 2px;
  background-color: var(--accent-color);
  right: 0;
  display: block;
  position: absolute;
  transition: all .5s;
}

.header__toggle.active:before {
  transform: translateY(6px) translateX(-7px) rotate(45deg);
  width: 30px;
}

.header__toggle.active:after {
  transform: translateY(-6px) translateX(-7px) rotate(-45deg);
  width: 30px;
}

.main {
  grid-area: main;
  width: 100%;
  z-index: 2;
  display: flex;
  height: 100%;
  flex-direction: column;
  border-radius: var(--border-radius);
  background-color: var(--bg-color);
}

.footer {
  background-color: var(--footer-bg-color);
  color: var(--footer-text-color);
  width: 100%;
  height: 100%;
  display: flex;
  position: relative;
  grid-area: footer;
  z-index: 1;
  padding: 80px 24px 74px;
}

.footer::before {
  content: "";
  display: block;
  width: 100%;
  height: 100px;
  background-color: var(--footer-bg-color);
  position: absolute;
  top: -100px;
  left: 0;
}

.footer__section {
  display: flex;
  margin: 0 auto;
  width: 100%;
  padding: 0;
}

.footer__title {
  display: none;
}

.footer__wrapper {
  display: flex;
  flex-direction: column;
  gap: 35px;
  width: 100%;
  height: 100%;

  background-image: url("./images/logo-dtm.svg");
  background-repeat: no-repeat;
  background-position: center bottom;
  background-size: 270px;
}

.footer__info {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.footer__info:last-child {
  gap: 3px;
}

.footer__info .footer__link {
  text-decoration: underline;
  margin-right: auto;
  color: var(--footer-text-color);
  font-size: 14px;
  line-height: 14px;
}

.footer__info .footer__link:hover {
  opacity: 0.5;
}

@media (min-width: 768px) {
  .page-body {
    grid-template-rows: 66px 1fr 440px;
  }

  .footer {
    padding: 72px 40px 40px;
  }

  .footer__wrapper {
    background-position: right bottom;
    background-size: 322px;
    max-width: 900px;
  }
}

@media (min-width: 1024px) {
  .page-body {
    grid-template-rows: 115px 1fr 440px;
    font-size: 17px;
    line-height: 20px;
    max-width: 100%;
  }

  .header {
    height: 64px;
    border-radius: 48px;
    margin: 26px 40px 25px;
    padding: 0 16px 0 32px;
    display: grid;
    grid-template-columns: 1fr 634px;
    align-content: center;
  }

  .header__nav {
    background-color: transparent;
    flex-direction: row;
    justify-content: space-between;
    width: 100%;
    position: relative;
    padding: 0;
    transform: translateY(0);
    gap: 45px;
  }

  .header__toggle {
    display: none;
  }

  .header__wrapper {
    width: auto;
    padding: 0;
    background-color: transparent;
  }

  .footer__section {
    display: grid;
    grid-template-columns: 1fr 650px;
  }

  .footer__title {
    display: flex;
    max-width: 207px;
    width: 100%;
    max-height: 62px;
    height: auto;
    background-color: var(--accent-color);
    color: var(--fg-color);
    font-size: 24px;
    font-weight: 400;
    line-height: 29px;
    padding: 16px 32px;
    border-radius: 100px;
    margin-top: auto;
  }

  .footer__wrapper {
    padding-right: 330px;
    gap: 48px;
  }

  .footer__info {
    gap: 3px;
  }

  .footer__info:last-child {
    gap: 12px;
  }
}

@media (min-width: 1280px) {
  .page-body {
    font-size: 17px;
    line-height: 20px;
    max-width: 100%;
  }

  .header {
    max-width: 1360px;
    height: 64px;
    border-radius: 48px;
    margin: 26px auto 25px;
    padding: 0 16px 0 32px;
    grid-template-columns: 1fr 884px;
  }

  .header__nav {
    background-color: transparent;
    flex-direction: row;
    justify-content: space-between;
    width: 100%;
    position: relative;
    padding: 0;
    transform: translateY(0);
  }

  .footer {
    padding: 72px 40px 40px;
  }

  .footer__section {
    max-width: 1360px;
    grid-template-columns: 1fr 900px;
  }
}