*,
::after,
::before {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}
a {
  text-decoration: none;
  color: inherit;
}
ul {
  list-style: none;
}
body {
  font-family: "Montserrat", sans-serif;
}
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: -1px;
  z-index: 10;
  background-color: white;
  column-gap: 55px;
  padding: 27px 111px 22px 59px;
}
header > .logo {
  background: url("../../img/logo.svg") no-repeat center / contain;
  height: 54px;
  width: 271px;
}
header > .nav {
  display: flex;
  justify-content: flex-end;
  column-gap: 55px;
}
header > .nav > a {
  font-family: "Open Sans Condensed", sans-serif;
  font-size: 20px;
  font-weight: 400;
}
@media screen and (max-width: 897px) {
  header > .nav {
    display: none;
  }
}
@media screen and (max-width: 897px) {
  header {
    padding: 27px 0;
    justify-content: center;
  }
}
.sticky {
  border-bottom: 1px solid black;
}
.nav_mobile {
  position: fixed;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  padding: 20px;
  background-color: #fff;
  z-index: 9999999;
  display: flex;
  flex-direction: column;
}
.nav_mobile > .nav {
  display: flex;
  flex-direction: column;
  row-gap: 20px;
  margin-top: 20px;
}
.nav_mobile > .nav > a {
  font-size: 30px;
  font-weight: 400;
}
.main {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  background-color: rgba(0, 67, 115, 0.7);
  row-gap: 33px;
  padding: 81px 85px;
  min-height: 85vh;
  color: white;
}
.main > h1 {
  font-family: "Open Sans Condensed", sans-serif;
  font-size: 40px;
  font-weight: 500;
}
.main > p {
  font-family: "Arial", sans-serif;
  font-size: 28px;
  font-weight: 500;
}
.main_bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: -1;
}
.main_bg > video {
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  /* Center the video */
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
@media screen and (max-width: 897px) {
  .main {
    row-gap: 12px;
    padding: 31px 35px;
  }
  .main > h1 {
    font-size: 28px;
  }
  .main > p {
    font-size: 12px;
  }
}
.companies {
  padding: 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  row-gap: 80px;
}
.companies_title {
  font-family: "Open Sans Condensed", sans-serif;
  font-size: 28px;
  font-weight: 400;
  color: black;
}
.companies_container {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: stretch;
  justify-items: stretch;
}
.companies_container > .company__container {
  position: relative;
  padding: 1px;
}
.companies_container > .company__container::after,
.companies_container > .company__container::before {
  z-index: 2;
}
.companies_container > .company__container:not(:nth-child(3n))::before {
  content: " ";
  position: absolute;
  top: 4%;
  bottom: 4%;
  right: 0;
  width: 1px;
  background-color: #8c8c8c;
}
.companies_container > .company__container::after {
  content: " ";
  position: absolute;
  bottom: 0;
  left: 4%;
  right: 4%;
  height: 1px;
  background-color: #8c8c8c;
}
@media screen and (max-width: 897px) {
  .companies_container > .company__container:not(:nth-child(3n))::before {
    content: none;
  }
}
.companies_container > .company__container > .company_link {
  height: 100%;
  width: calc(100% - 2px);
  margin: 0 auto;
  background-color: #fff;
  transition: all 1.5s ease-in-out;
}
@media screen and (min-width: 1025px) {
  .companies_container > .company__container > .company_link:hover {
    transform: scale(1.01);
    z-index: 4;
    -webkit-box-shadow: 0 0 30px 0 rgba(0, 0, 0, 0.2);
    -moz-box-shadow: 0 0 30px 0 rgba(0, 0, 0, 0.2);
    box-shadow: 0 0 30px 0 rgba(0, 0, 0, 0.2);
  }
  .companies_container > .company__container > .company_link:not(:hover) {
    z-index: 2;
  }
}
@media screen and (max-width: 897px) {
  .companies {
    padding: 40px;
    row-gap: 40px;
  }
  .companies_title {
    font-size: 20px;
    text-align: center;
  }
  .companies_container {
    grid-template-columns: 1fr;
  }
  .companies_container > .company_link:nth-child(3n)::before {
    border-left: none;
  }
  .companies_container > .company_link:nth-child(3n-2)::before {
    border-right: none;
  }
}
.company {
  display: flex;
  flex-direction: column;
  align-items: center;
  row-gap: 20px;
  padding: 30px 17px;
  color: #313131;
}
.company_link {
  position: relative;
  display: block;
}
.company_logo {
  max-width: 260px;
  max-height: 52px;
}
.company_logo-container {
  display: grid;
  place-items: center;
  width: 260px;
  height: 52px;
}
.company_title {
  font-family: "Open Sans Condensed", sans-serif;
  font-size: 20px;
  font-weight: 500;
  margin-top: 10px;
}
.company_info {
  font-family: "Arial", sans-serif;
  font-size: 18px;
  font-weight: 400;
}
@media screen and (max-width: 897px) {
  .company {
    row-gap: 16px;
    padding: 15px 9px;
  }
  .company_logo {
    max-width: calc(260px * 30%);
    max-height: calc(52px * 30%);
  }
  .company_logo-container {
    width: calc(260px * 30%);
    height: calc(52px * 30%);
  }
  .company_title {
    font-size: 18px;
    margin-top: 5px;
    text-align: center;
  }
  .company_info {
    font-size: 14px;
  }
}
.qualities {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: stretch;
  justify-items: stretch;
  padding: 80px;
  padding-bottom: 109px;
}
.qualities > h2 {
  font-size: 32px;
  font-weight: 500;
  color: black;
  text-align: center;
}
@media screen and (max-width: 897px) {
  .qualities {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    row-gap: 18px;
    column-gap: 0;
    padding-bottom: 64px;
  }
  .qualities > h2 {
    font-size: 26px;
  }
}
.footer {
  position: relative;
  padding: 60px 80px 26px;
  color: #f6f6f4;
  background-color: #004373;
}
@media screen and (max-width: 1200px) {
  .footer {
    padding: 60px 40px 26px;
  }
}
@media screen and (max-width: 897px) {
  .footer {
    padding: 40px 20px 20px;
  }
}
.footer .footer_title {
  font-size: 18px;
  font-family: "Open Sans Condensed", sans-serif;
  font-weight: 500;
  text-align: center;
}
.footer h2 {
  font-size: 16px;
  font-weight: 700;
  font-family: "Open Sans Condensed", sans-serif;
}
.footer > h6 {
  text-align: center;
  margin-top: 15px;
  font-size: 16px;
  font-weight: 500;
  color: #f6f6f4;
}
@media screen and (max-width: 897px) {
  .footer > h6 {
    margin-top: 20px;
  }
}
.footer_container {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: flex-start;
  justify-items: center;
  column-gap: 75px;
  overflow: hidden;
  padding-bottom: 35px;
  border-bottom: 1px solid rgba(246, 246, 244, 0.5);
  margin: 0 auto;
}
@media screen and (max-width: 1200px) {
  .footer_container {
    grid-template-columns: repeat(2, 1fr);
    column-gap: 40px;
  }
}
@media screen and (max-width: 897px) {
  .footer_container {
    display: flex;
    flex-direction: column;
    align-items: center;
    row-gap: 60px;
    padding-bottom: 64px;
  }
}
.footer_container::after {
  content: "*не является юридическим лицом";
  font-family: "Arial", sans-serif;
  position: absolute;
  left: 0;
  bottom: 7px;
  font-size: 12px;
  font-weight: 500;
}
.container-first {
  margin-top: -1px;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 350px;
}
.container-second {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  row-gap: 60px;
  flex-shrink: 0;
  width: 100%;
  max-width: 350px;
}
.container-second ul {
  padding: 0;
  list-style: none;
}
.container-second ul li {
  font-family: "Arial", sans-serif;
  font-size: 13px;
  margin-top: 20px;
  transition: all 0.25s ease-in-out;
}
.container-second ul li:hover {
  color: #d10d0d;
}
.container-third {
  align-self: flex-start;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  max-width: 350px;
}
@media screen and (max-width: 897px) {
  .container-third {
    align-self: center;
  }
}
.footer__news {
  display: flex;
  flex-direction: column;
  row-gap: 20px;
  align-items: flex-start;
  width: 100%;
}
.footer__news_link {
  font-size: 20px;
  font-weight: 700;
  transition: all 0.25s ease-in-out;
}
.footer__news_link:hover {
  color: #d10d0d;
}
.footer__news > article {
  overflow: hidden;
}
.footer__news > article > p {
  font-family: "Arial", sans-serif;
  font-size: 12px;
}
.footer__news > article a {
  font-family: "Arial", sans-serif;
  font-size: 13px;
  max-width: 50em;
  transition: all 0.25s ease-in-out;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}
.footer__news > article a:hover {
  color: #d10d0d;
}
