:root {
  --clr-black: #54595f;
  --clr-dark-blue: #426097;
  --clr-white: #fff;
  --clr-green: #198754;
  --clr-text-2: #6f7378;
  --clr-grey-1: #dbdbdb;
  /* === TRANSITION === */
  --transition: all 0.7s ease;
  --transform: transform 0.7s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  font-size: 62.5%;
}
body {
  font-family: "Inter", sans-serif;
  color: var(--clr-black);
  font-size: 1.8rem;
  font-weight: 400;
  overflow-x: hidden;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
}

ul {
  margin: 0;
  padding: 0;
}

li {
  display: block;
  list-style: none;
}
p {
  line-height: 120%;
}
a {
  text-decoration: none;
  display: block;
  color: var(--clr-black);
}
.active {
  color: var(--clr-dark-blue);
}
.flex-s-c {
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  align-items: center;
}
.flex-e-c {
  display: flex;
  flex-direction: row;
  justify-content: flex-end;
  align-items: center;
}
.flex-s-s {
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  align-items: flex-start;
}
.flex-b-c {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
}
.flex-b-s {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-start;
}
.flex-c-c {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
}
.flex-c-b {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}
.column-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-gap: 20px;
}
.column-grid-3cols {
  grid-template-columns: repeat(3, 1fr);
}
.column-grid-2cols {
  grid-template-columns: repeat(2, 1fr);
}
section {
  margin: 50px 0;
}
h3 {
  padding: 15px 20px;
  background: var(--clr-dark-blue);
  color: var(--clr-white);
  border-radius: 5px;
  font-size: 2.2rem;
}
.text-strong {
  font-weight: 600;
  color: var(--clr-black);
}
.circle {
  width: 10px;
  height: 10px;
  background: var(--clr-dark-blue);
  border-radius: 2px;
  margin-right: 7px;
}
.director-text .flex-s-s {
  height: 100%;
}
/**************HEADER****************/
header {
  padding: 10px 0;
}
.logo {
  height: 45px;
}
.navigation .flex-s-c {
  gap: 25px;
}
.lang .flex-s-c {
  gap: 10px;
}
.call-to-action {
  background: var(--clr-green);
  color: var(--clr-white);
  padding: 10px 20px;
  border-radius: 5px;
  transition: var(--transition);
}
.call-to-action:hover {
  background: var(--clr-dark-blue);
}
.navigation a {
  position: relative;
  padding-bottom: 5px;
}

/* линия (по умолчанию скрыта) */
.navigation a::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;

  width: 0;
  height: 2px;
  background: var(--clr-dark-blue);

  transition: width 0.3s ease;
}

/* hover */
.navigation a:hover::before {
  width: 100%;
}
.navigation a:hover {
  color: var(--clr-dark-blue);
}
/* активный пункт — линия всегда есть */
.navigation a.active::before {
  width: 100%;
}

/* (опционально) цвет активного */
.navigation a.active {
  color: var(--clr-dark-blue);
}
/************MAIN*******************/
.main {
  position: relative;
  height: 90vh;
  max-height: 600px;
  overflow: hidden;
  margin-top: 0 !important;
}
.main .container {
  height: 100%;
}
.video-bg {
  position: absolute;
  top: 0;
  left: 20px;
  right: 20px;
  height: 100%;
  z-index: 0;
  border-radius: 10px;
}

.video-bg video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7); /* темный слой */
  z-index: 1;
  border-radius: 10px;
}

.content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start; /* <-- главное изменение */
  position: relative;
  z-index: 2;
  color: #fff;
  height: 100%;
  padding: 0 40px;
}
h1 {
  text-transform: uppercase;
  font-size: 3.6rem;
  width: 70%;
}
.content p {
  font-size: 2.2rem;
  width: 70%;
  margin-top: 20px;
}
.btn {
  display: inline-block; /* ключевой момент */
  width: auto; /* обязательно, чтобы не растягивалось */
  margin-top: 60px;
  padding: 10px 20px;
  background: var(--clr-green);
  color: var(--clr-white);
  text-decoration: none;
  text-align: center;
  border-radius: 5px;
}
/*************ABOUT********************/
.about p {
  margin: 20px 0;
  color: var(--clr-text-2);
}
.about p:last-child {
  margin-bottom: 0;
}
/***************SERVICE**********************/
.service-block {
  border: 1px solid var(--clr-dark-blue);
  border-radius: 5px;
  transition: var(--transition);
  display: block;
}
.service-block span {
  text-transform: uppercase;
  font-weight: 500;
  font-size: 1.8rem;
  color: var(--clr-dark-blue);
  padding: 20px 0;
  display: block;
  text-align: center;
}
.service-block img {
  width: 100%;
  border-radius: 5px;
  display: block;
  height: auto;
}
.services .column-grid {
  margin: 20px 0;
}
.service-block:hover {
  background: var(--clr-dark-blue);
}
.service-block:hover span {
  color: var(--clr-white);
}
.service-chapter {
  padding: 15px 20px;
  background: var(--clr-grey-1);
  border-radius: 5px;
  margin-top: 50px;
}
h4 {
  color: var(--clr-dark-blue);
  font-size: 2.2rem;
}
.service-item-title {
  font-weight: 600;
  font-size: 2rem;
}
.service-item img {
  width: 100%;
  border-radius: 5px;
  margin-bottom: 10px;
}
.service-item p:last-child {
  font-size: 1.6rem;
}
.line {
  width: 70px;
  height: 3px;
  background-color: var(--clr-dark-blue);
  margin: 7px 0 10px 0;
}
.manufacture-wrap img {
  width: 95%;
}
.manufacture-description p {
  margin-bottom: 20px;
}
/*******************TEAM******************/
.img-director {
  width: 100%;
  display: block;
  margin: 0 auto;
}
.director-text img {
  width: 50px;
  margin-right: 20px;
}
.column-grid-2cols-2parts {
  grid-template-columns: 27% 73%;
  gap: 20px;
  margin-top: 20px;
}
.director-text {
  padding-top: 20px;
}
.speach p {
  margin-bottom: 20px;
  width: 75%;
}
.name {
  opacity: 0.7;
}
.team-person img {
  width: 250px;
  height: 250px;
  border-radius: 50%;
}

.team-wrap {
  margin-top: 40px;
}
.team-person-name {
  font-weight: 600;
  margin: 10px 0;
}
.team-person-text {
  opacity: 0.7;
  font-size: 1.6rem;
}
/**************ADVANTAGES**************/
.adv-title {
  font-weight: 600;
  margin-bottom: 10px;
}
.adv-text {
  opacity: 0.6;
}
.adv-block {
  background: #f1f1f1;
  border-radius: 5px;
  padding: 20px;
}
.advantages .column-grid-3cols {
  margin: 20px 0;
}
.advantages img {
  width: 100%;
}
.adv-img {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--clr-dark-blue);
  padding: 10px;
  margin-bottom: 10px;
  border-radius: 5px;
}
/**************CONTACTS**************/
.contacts-data .flex-b-s {
  padding: 15px 0;
  border-top: 1px solid var(--clr-grey-1);
}
.contacts-data .flex-b-s:last-child {
  border-bottom: 1px solid var(--clr-grey-1);
}
.contacts h4 {
  font-size: 2rem;
  padding-top: 10px;
  margin-bottom: 20px;
}
.contacts a:hover {
  color: var(--clr-dark-blue);
}
.contacts p {
  margin-bottom: 5px;
  text-align: right;
}
.contacts .column-grid-2cols {
  margin-top: 20px;
}
/**************FOOTER*******************/
footer {
  background: #333333;
  padding: 40px 0;
}
footer img {
  height: 40px;
}
footer .flex-e-c {
  gap: 30px;
}
footer .flex-e-c a {
  opacity: 0.5;
  color: var(--clr-white);
}
footer a:hover {
  opacity: 1;
}
.copyright {
  padding-top: 20px;
  margin-top: 20px;
  border-top: 1px solid #6f7378;
}
.copyright p {
  color: var(--clr-white);
  opacity: 0.5;
}
.protek-lozung {
  color: var(--clr-white);
  margin-left: 30px;
  opacity: 0.7;
}
iframe {
  width: 100%;
  height: 400px;
}
.hum-menu,
.mobile-menu,
.svyaz {
  display: none;
}
@media screen and (max-width: 1279px) {
  .container {
    max-width: 1024px;
  }
  h1,
  .content p {
    width: 100%;
  }
  .content {
    padding: 0 20px;
  }
  .team-person img {
    width: 200px;
    height: 200px;
  }
  .navigation {
    display: none;
  }

  /* Гамбургер */
  .hum-menu {
    display: block;
    width: 50px;
    height: 40px;
    position: relative;
    cursor: pointer;
    background: url(images/menu.png);
    background-position: center;
    background-repeat: no-repeat;
    background-size: 90%;
    margin-left: 10px;
  }

  /* MOBILE MENU */
  .mobile-menu {
    display: block;
    position: fixed;
    inset: 0;
    background: var(--clr-white);
    z-index: 9999;

    opacity: 0;
    transform: translateY(-30px);
    pointer-events: none;

    transition:
      opacity 0.4s ease,
      transform 0.4s ease;
  }
  .mobile-menu.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }
  /* начальное состояние */
  .mobile-menu__header,
  .mobile-menu__body,
  .mobile-menu__footer {
    opacity: 0;
    transform: translateY(20px);
    transition: 0.3s ease;
  }

  /* при открытии */
  .mobile-menu.active .mobile-menu__header {
    opacity: 1;
    transform: translateY(0);
  }

  .mobile-menu.active .mobile-menu__body {
    opacity: 1;
    transform: translateY(0);
  }

  .mobile-menu.active .mobile-menu__footer {
    opacity: 1;
    transform: translateY(0);
  }

  /* внутренний скролл */
  .mobile-menu__inner {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow-y: auto;
  }

  /* HEADER */
  .mobile-menu__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    border-bottom: 1px solid var(--clr-grey-1);
  }
  .mobile-menu__header img {
    height: 40px;
  }
  .mobile-menu__close {
    font-size: 4rem;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--clr-black);
  }

  /* BODY */
  .mobile-menu__body {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 40px 20px;
  }

  .mobile-menu__body a {
    font-size: 2.2rem;
    text-decoration: none;
    color: var(--clr-black);
  }

  /* FOOTER */
  .mobile-menu__footer {
    padding: 20px;
    border-top: 1px solid var(--clr-grey-1);
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  /* Блокировка скролла */
  body.no-scroll {
    overflow: hidden;
  }
  .contact-title {
    color: var(--clr-white);
    font-size: 2rem;
    margin-bottom: 20px;
    font-weight: 600;
  }
  .mobile-menu__footer img {
    width: 22px;
    margin-right: 10px;
  }
  .mobile-menu__footer a,
  .mobile-menu__footer p {
    margin-bottom: 10px;
    color: var(--clr-white);
  }
  .mobile-menu__footer {
    background: var(--clr-dark-blue);
  }
  .mobile-menu__footer span {
    color: var(--clr-white);
  }
}
@media screen and (max-width: 1023px) {
  .container {
    max-width: 920px;
  }
  .logo {
    height: 40px;
  }
  section {
    margin: 30px 0;
  }
  .mobile-menu__body a {
    font-size: 2rem;
  }
  .column-grid {
    gap: 15px;
  }
  .service-item-title {
    font-size: 1.8rem;
  }
  .service-item p:last-child {
    font-size: 1.6rem;
  }
  .service-chapter {
    margin-top: 40px;
  }
  .column-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .column-grid-2cols {
    grid-template-columns: repeat(2, 1fr);
  }
  .column-grid-2cols-2parts {
    grid-template-columns: 27% 73%;
  }
  .director-text p {
    width: 95%;
    font-size: 1.6rem;
  }
  .protek-lozung {
    font-size: 1.6rem;
  }
  footer a,
  footer p {
    font-size: 1.6rem;
  }
  h1 {
    font-size: 3rem;
  }
  .content p {
    font-size: 2rem;
  }
}
@media screen and (max-width: 819px) {
  .container {
    max-width: 768px;
  }
  .mobile-menu__body,
  .mobile-menu__footer {
    padding: 20px 15px;
  }
  .mobile-menu__header {
    padding: 10px 15px;
  }
  .column-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .team .column-grid-3cols {
    grid-template-columns: repeat(3, 1fr);
  }
  .director-text img {
    width: 30px;
  }
}
@media screen and (max-width: 767px) {
  .container {
    max-width: 430px;
    padding: 0 10px;
  }
  .video-bg {
    left: 10px;
    right: 10px;
  }
  .call-to-action {
    display: none;
  }
  /*SVYAZ*/
  .svyaz {
    display: block;
    position: fixed;
    bottom: 0;
    right: 0;
    left: 0;
    border-top-right-radius: 5px;
    border-top-left-radius: 5px;
    z-index: 1000;
    padding: 3px 0;
    border-top-right-radius: 10px;
    border-top-left-radius: 10px;
    background: var(--clr-dark-blue);
  }

  .svyaz a {
    font-size: 16px;
    color: var(--clr-white);
  }

  .svyaz-block {
    width: 200px;
    opacity: 0.8;
  }

  .svyaz-block img {
    width: 25px;
    margin-right: 5px;
  }

  .bottom-menu {
    width: 40px;
    height: 40px;
    background: url(./images/menu-mobile.png);
    background-position: center;
    background-size: 100%;
    background-repeat: no-repeat;
  }
  .column-grid {
    grid-template-columns: repeat(1, 1fr);
  }
  .team .column-grid-3cols {
    grid-template-columns: repeat(2, 1fr);
  }
  .team-person img {
    width: 150px;
    height: 150px;
  }
  h1 {
    font-size: 2.4rem;
  }
  .main {
    height: 100vh;
    max-height: auto;
  }
  .service-item-title {
    font-size: 2rem;
  }
  .service-item p:last-child {
    font-size: 1.8rem;
  }
  .service-item {
    padding-bottom: 30px;
    border-bottom: 1px solid var(--clr-grey-1);
  }
  .img-director {
    width: 50%;
    margin: 0;
  }
  footer .flex-b-c {
    display: block;
  }
  .protek-lozung {
    margin-left: 0;
    margin-top: 20px;
  }
  .copyright .flex-e-c {
    flex-direction: column;
    align-items: flex-start;
  }
  .copyright {
    padding-bottom: 40px;
  }
  .year {
    display: none;
  }
  footer .flex-e-c {
    gap: 15px;
  }
  .mobile-menu__header {
    padding: 10px;
  }
  .service-block span,
  .adv-title {
    font-size: 2rem;
  }
  .service-item-title {
    font-size: 2.2rem;
  }
  iframe {
    height: 250px;
  }
  .service-chapter {
    margin-top: 30px;
  }
}
@media screen and (max-width: 359px) {
  .container {
    max-width: 320px;
  }
  .hum-menu {
    width: 45px;
  }
  .logo,
  .mobile-menu__header img {
    height: 35px;
  }
  .mobile-menu__close {
    font-size: 3.4rem;
  }
  .mobile-menu__header {
    padding: 5px 10px;
  }
  h3 {
    font-size: 2rem;
    padding: 15px;
  }
  .service-block span {
    padding: 15px;
    font-size: 1.8rem;
  }
  .service-item-title {
    font-size: 2rem;
  }
  .service-item {
    padding-bottom: 20px;
  }
  .service-chapter {
    margin-top: 20px;
  }
  .services .column-grid {
    margin: 15px 0;
  }
  .team-person img {
    width: 130px;
    height: 130px;
  }
  .team-person-name {
    font-size: 1.6rem;
  }
  .contacts-data .flex-b-s {
    flex-direction: column;
  }
  .contacts p {
    text-align: left;
  }
  h1 {
    font-size: 2.2rem;
  }
  .content p {
    font-size: 1.8rem;
  }
}
