html {
  height: 100%;
  --section-width: 1200px - 40px;
  --cell-2nd-width: 460px;
  --grid-column-gap: 120px;
  --cell-1st-width: var(--section-width) - var(--cell-2nd-width) - var(--grid-column-gap);
  --video-width: var(--cell-1st-width);
  --video-height: 394 * (var(--video-width)) / 700
}

h1,
h2,
h3,
h4,
p,
li,
a {
  font-family: "Roboto", Arial, sans-serif;
}

h1,
h2,
h3 {
  line-height: 1.2;
}

p,
li,
a {
  line-height: 1.55;
}

body {
  height: 100%;
  width: 100%;
  padding: 0;
  margin: 0;
  background-color: #ffffff;
}

.bgvideo {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: -9999;
}

@media screen and (max-aspect-ratio: 700/394) {

  .bgvideo,
  #intro {
    height: 100%;
  }
}


@media screen and (min-aspect-ratio: 700/394) {

  .bgvideo,
  #intro {
    width: 100%;
    height: calc(100vw * 394 / 700);
  }
}

article {
  overflow: hidden;
  display: flex;
  justify-content: center;

  &#intro {
    position: relative;
    color: #ffffff;
    background-color: rgba(12, 17, 46, 0.0);
    align-items: center;

    &>section.single-top-to-bottom {
      padding: 0;
      justify-content: center;
      align-items: center;

      & h1,
      & p,
      & nav {
        background-color: rgba(0, 0, 0, 0.2);
        backdrop-filter: blur(15px);
        box-shadow: 0 0 15px rgba(0, 0, 0, 0.4);
        margin-left: 15px;
        margin-right: 15px;
        border-radius: 15px;
        padding: 5px;
      }

      & h1 {
        position: relative;
        animation: move_down 0.5s 1 ease-out;
      }

      & p,
      & nav {
        position: relative;
        animation: move_right 0.5s 1 ease-out;
      }

      &>a {
        position: relative;
        animation: move_up 0.5s 1 ease-out;
      }

      & img {
        position: relative;
        z-index: 100;
      }

      &>img {
        animation: move_left 0.5s 1 ease-out;
      }
    }
  }

  &.grey {
    background-color: #f2f2f2;
  }

  &#outro {
    color: #ffffff;
    background: linear-gradient(rgba(12, 17, 46, 0.9), rgba(12, 17, 46, 0.9)),
      url("bg-images/all.webp");
    background-repeat: no-repeat;
    background-position: center center;
    overflow: visible;

    & section {
      overflow: visible;
    }

    & p {
      float: left;
    }

    &>div {
      overflow: visible;
    }

    & svg {
      display: block;
      position: relative;
      left: 140px;
      top: 0;
      height: 101px;
      width: 85px;
      stroke: #ffc000;
      stroke-width: 2;
      stroke-dasharray: 5 0;
      stroke-dashoffset: 3000;
      animation: dasharray 4s infinite alternate;
    }
  }

  &#apply {
    display: flex;
    justify-content: center;
    align-content: space-between;
    align-items: center;
    flex-direction: column;
    width: 100%;
    height: 100%;
    background-image: url('bg-images/do_belt.webp');
    background-repeat: no-repeat;
    background-size: cover;
    background-color: rgba(41, 34, 28, 0.2);

    &>section {
      background-color: rgba(0, 0, 0, 0.1);
      backdrop-filter: blur(10px);
      box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
      margin-left: 15px;
      margin-right: 15px;
      border-radius: 15px;
      padding: 5px;

      &>h2 {
        color: white;

        &::after {
          display: none;
        }
      }

      &>p {
        color: white;
        font-size: 14px;
        line-height: 1.55;
        margin-top: 0;

        &#validationErrorMessage {
          font-size: 15px;
          font-weight: bold;
          color: #b83506;
          padding: 15px;
          background-color: rgba(255, 255, 255, 1);
          border-radius: 15px;
        }

        &#thanks {
          font-weight: bold;
          padding: 10px;
          background-color: rgba(0, 255, 0, 0.3);
          font-size: 20px;
          border-radius: 15px;
        }
      }

      &>div#captcha-container {
        height: 100px;
      }

      &>input {
        box-sizing: border-box;
        color: #000000;
        background-color: #ffffff;
        border-radius: 7px;
        height: 60px;
        padding: 0 20px;
        font-size: 16px;
        line-height: 1.33;
        width: 100%;
        border: 0 none;
        margin-bottom: 30px;

        &.t-input-error {
          border: 3px solid #b83506;
        }

        @keyframes t-submit-spinner {
          to {
            transform: rotate(360deg);
          }
        }

        .t-btn_sending {
          opacity: .5;

          &:before {
            content: '';
            box-sizing: border-box;
            position: absolute;
            top: 50%;
            left: 50%;
            width: 30px;
            height: 30px;
            margin-top: -15px;
            margin-left: -15px;
            border-radius: 50%;
            border: 2px solid #ccc;
            border-top-color: #333;
            animation: t-submit-spinner .6s linear infinite;
          }

        }

      }
    }
  }
}

@keyframes dasharray {
  100% {
    stroke-dasharray: 3 5;
  }
}

section {
  overflow: hidden;
  width: calc(var(--section-width));

  padding-top: 100px;
  padding-bottom: 100px;

  display: grid;
  column-gap: calc(var(--grid-column-gap));
  grid-template-columns: calc(var(--cell-1st-width)) calc(var(--cell-2nd-width));

  &.single-left-to-right {
    display: flex;
    align-items: flex-start;
  }

  &.single-top-to-bottom {
    display: flex;
    flex-direction: column;
    align-items: flex-start;

  }

  &>div {
    overflow: hidden;

    &>video {
      margin-bottom: 40px;
      width: calc(var(--video-width));
      height: calc(var(--video-height));
    }
  }
}

@keyframes move_down {

  from {
    top: -200px;
  }

  to {
    top: 0;
  }
}

@keyframes move_up {

  from {
    top: 300px;
  }

  to {
    top: 0;
  }
}

@keyframes move_right {

  from {
    left: -600px;
  }

  to {
    left: 0;
  }
}

@keyframes move_left {

  from {
    left: 600px;
  }

  to {
    left: 0;
  }
}

h1 {
  font-size: 66px;
  font-weight: 700;
  margin-top: 0;
  margin-bottom: 30px;
}

h2 {
  margin-top: 0;
  margin-bottom: 47px;
  font-size: 37px;
  font-weight: 700;

  &::after {
    /* Отступ между текстом и линией */
    margin-top: 10px;

    /* Толщина линии */
    height: 7px;

    /* Длина линии */
    width: 200px;

    /* Цвет линии */
    background: linear-gradient(90deg, rgba(255, 192, 0, 1), rgba(255, 192, 0, 0));

    content: "";
    display: block;
  }
}

p {
  margin-bottom: 40px;
  font-size: 20px;
  font-weight: 300;
}

img {
  border-radius: 10px;
}

section>div:nth-child(2)>img {
  width: calc(var(--cell-2nd-width));
}

header img {
  width: 140px;
  float: left;
  margin-right: 30px;
}

a.signup {
  display: block;
  color: #000000;
  font-size: 20px;
  padding: 15px;
  margin-top: 30px;
  margin-bottom: 30px;
  font-weight: 600;
  border-radius: 30px;
  background-color: #ffc000;
  background-position: center center;
  border-color: transparent;
  border-style: solid;
  transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out, border-color 0.2s ease-in-out;
  text-decoration: none;
  text-align: center;

  &:hover {
    background-color: #1fac00;
  }
}

div.signup {
  overflow: hidden;
  display: flex;

  &>a {
    display: block;
  }
}

ul {
  width: 100%;
  padding: 0;

  display: grid;
  grid-template-columns: repeat(12, calc(30% - 10px));
  gap: 20px;

}

li {
  flex-basis: max(calc(30% - 10px), 200px);


  list-style-type: none;

  background-color: #ffffff;
  border-radius: 10px;
  padding: 10px;
}

#thanks_away {
  display: none;
}

@media screen and (max-width: 1199px) {
  html {
    --section-width: 960px - 40px;
    --cell-2nd-width: 320px;
  }

  section {
    padding-top: 76px;
    padding-bottom: 80px;
  }

  h1 {
    font-size: 54px;
    font-weight: 600;
  }

  h2 {
    font-size: 35px;
    font-weight: 600;
  }

  p {
    font-size: 19px;
    margin-bottom: 35px;
  }
}

@media screen and (max-width: 959px) {
  html {
    --section-width: 480px - 20px;
    --cell-1st-width: var(--section-width);
    --cell-2nd-width: var(--section-width);
    --video-width: var(--section-width);
  }

  section {
    grid-template-columns: 100%;
    padding-top: 53px;
    padding-bottom: 60px;
  }

  h1 {
    font-size: 42px;
    font-weight: 500;
  }

  h2 {
    font-size: 33px;
    font-weight: 500;
  }

  p {
    margin-bottom: 30px;
  }

  img {
    width: calc(var(--section-width));
  }

  article#intro>section>div {
    & nav {
      animation: move_left 0.5s 1 ease-out;
    }

    &>img {
      animation: move_up 0.5s 1 ease-out;
    }
  }
}

@media screen and (max-width: 479px) {
  html {
    --section-width: 300px - 10px;
  }

  ul {
    grid-template-columns: 100%;
  }

  section {
    padding-top: 30px;
    padding-bottom: 40px;
  }

  h1 {
    font-size: 30px;
  }

  h2 {
    font-size: 26px;
  }

  p {
    font-size: 18px;
    margin-bottom: 25px;
  }

  article#outro svg {
    top: -26px;
    left: 138px;
  }

  article#apply>section {
    &>input {
      margin-bottom: 15px;
    }

    &>p {
      font-size: 12px;
      line-height: 1.45;
    }
  }
}

/* Навигационные иконки-ссылки, начало */

nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  grid-template-columns: repeat(5, 80px);
  overflow: hidden;
  margin-top: 20px;
  margin-bottom: 20px;

  & a {
    text-decoration-line: none;
    margin-right: 20px;
    display: flex;
    align-items: center;

    & span {
      color: white;
      margin-left: 10px;
      text-decoration-line: underline;
    }
  }

  & img {
    width: 50px;
  }
}

@media screen and (max-width: 640px) {
  .phoneTextLink {
    display: none;
  }
}

article#where .phoneTextLink {
  display: none;
}

/* Навигационные иконки-ссылки, конец */