body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background-color: rgb(0, 0, 0);
  font-size: 18px;
  box-sizing: border-box;
  font-family: "Inter";
  /* margin: 0;
  padding: 0; */
}

@font-face {
  font-family: "Inter";
  src: url("../fonts/Inter/static/Inter_24pt-Regular.ttf");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

.header {
  background-color: rgba(0, 0, 0, 0.806);
  height: 132px;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  margin-right: 5px;
  z-index: 10;
  transition: transform 0.3s ease-in-out;
}

.burger-menu {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 21px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 100;
}

.burger-menu span {
  width: 100%;
  height: 3px;
  background-color: white;
  border-radius: 3px;
  transition: all 0.3s ease;
}

.burger-menu.active span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

.burger-menu.active span:nth-child(2) {
  opacity: 0;
}

.burger-menu.active span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

.header.hidden {
  transform: translateY(-100%);
}

.header__container {
  display: flex;
  justify-content: center;
  align-items: center;
}

.header__logo {
  position: absolute;
  top: 27px;
  left: 99px;
  width: 104px;
  height: 76px;
}

.header__navigation {
  width: 415px;
  margin-top: 25px;
  display: flex;
  justify-content: space-between;
}

.header__link {
  text-decoration: none;
  color: white;
  font-weight: bold;
  transition: 0.3s;
}

.header__link.active {
  box-shadow: 0 0 20px rgb(139, 11, 11);
  transform: scale(1.04);
  background-color: rgba(139, 11, 11, 0.356);
}

.header__link:hover {
  transform: scale(1.05);
}

.section {
  scroll-margin-top: 132px;
}

.header__change-lang {
  width: 90px;
  height: 37px;
  position: absolute;
  top: 47px;
  right: 100px;
  background-color: rgba(5, 5, 5, 0);
  color: white;
  font-weight: bold;
  border: 2px solid rgba(255, 255, 255, 0.74);
  padding-left: 20px;
  padding-right: 10px;
}

.header__lang {
  color: white;
  font-weight: bold;
  background-color: rgba(0, 0, 0, 0.968);
}

.main {
  flex-grow: 1;
}

.banner {
  position: relative;
  margin-bottom: 2vw;
}

.banner__container {
  position: absolute;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.banner__img {
  width: 100%;
}

.banner__title {
  color: white;
  font-size: clamp(20px, 4.5vw, 80px);
}

.banner__text {
  width: 55vw;
  font-size: clamp(12px, 1.8vw, 50px);
  color: white;
  font-weight: bold;
}

.banner__container-line {
  display: flex;
  width: 55vw;
  justify-content: space-between;
  margin-top: 9vw;
}

.banner__line {
  width: 15vw;
  border: 2px solid white;
}

.about {
  padding: 10px 0;
}

.about__container {
  position: relative;
  min-height: 53vw;
  margin-left: 6%;
}

.about__rectangle {
  position: absolute;
  top: 49px;
  left: 0;
  z-index: 1;
  width: 70vw;
}

.about__rectangle-text {
  color: #868686;
  width: 40vw;
  position: absolute;
  z-index: 2;
  top: 5vw;
  left: 4vw;
  font-size: clamp(11px, 1vw, 18px);
}

.about__train {
  position: absolute;
  left: 44%;
  top: 0;
  width: 47vw;
}

.about__title {
  text-align: center;
  margin-bottom: 2.5vw;
  color: rgb(197, 197, 197);
}

.projects {
  margin: 8vw 4% 0 4%;
  margin-bottom: 100px;
}

.projects__container {
  background-color: rgba(217, 217, 217, 0.12);
  padding: 40px 30px;
  position: relative;
  overflow: hidden;
}

.projects__img {
  position: absolute;
  top: 0;
  right: 0;
  width: 70%;
  max-width: 1000px;
  z-index: 1;
}

.projects__title {
  position: absolute;
  right: 18%;
  top: 0;
  font-size: clamp(24px, 2vw, 40px);
  color: rgb(194, 193, 193);
  z-index: 2;
}

.projects__project-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  position: relative;
  z-index: 2;
  margin-top: 8vw;
  margin-bottom: 5vw;
}

.projects__project {
  flex: 1 1 300px;
  min-width: 150px;
  max-width: 384px;
  height: auto;
  aspect-ratio: 384 / 320;
  border: 1px solid white;
  border-radius: 40px;
  background-color: rgba(255, 255, 255, 0.03);
  font-size: clamp(15px, 2vw, 20px);
  color: #b5b5b5;
  font-weight: bold;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  transition: transform 0.5s ease;
}

.projects__project:hover {
  box-shadow: 0 0 20px rgba(129, 50, 23, 0.484);
  transform: scale(1.003);
}

.two {
  perspective: 1000px;
  cursor: pointer;
}

.card__inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  transition: transform 0.8s;
  transform-style: preserve-3d;
  border-radius: 40px;
}

.card__front,
.card__back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 20px;
  box-sizing: border-box;
}

.card__front {
  background-color: rgba(255, 255, 255, 0.005);
  border: 1px solid #dbdbdb;
  color: #b5b5b5;
}

.card__back {
  background-color: rgba(255, 255, 255, 0.03);
  border: 1px solid #ffcc00;
  transform: rotateY(180deg);
  gap: 15px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.projects__project.active .card__inner {
  transform: rotateY(180deg);
}

.card__button {
  padding: 7% 17%;
  background-color: #86868600;
  border: 1px solid white;
  border-radius: 9px;
  color: #b5b5b5;
  font-weight: bold;
  transition: transform 0.5s ease;
}

.card__button:hover {
  transform: scale(1.003);
}

.first {
  padding: 7% 20%;
}

.card__button:hover {
  box-shadow: 0 0 10px rgba(255, 255, 0, 0.281);
}

.contacts {
  margin: 8vw 4% 0 4%;
  margin-bottom: 100px;
}

.contacts__container {
  background-color: rgba(217, 217, 217, 0.12);
  padding: 40px 30px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-wrap: wrap;
  padding-top: 160px;
}

.contacts__img {
  position: absolute;
  top: 0;
  left: 0;
  width: 70%;
  max-width: 1000px;
  z-index: 1;
}

.contacts__title {
  position: absolute;
  left: 17%;
  top: 0;
  font-size: clamp(24px, 2vw, 40px);
  color: rgb(194, 193, 193);
  z-index: 2;
}

.contacts__content {
  max-width: 419px;
  font-size: clamp(12px, 2vw, 18px);
  color: #b5b5b5;
  margin-left: 10%;
  margin-bottom: 100px;
}

.contacts__button {
  width: 166px;
  min-width: 100px;
  min-height: 37px;
  margin-left: 15%;
  margin-top: 15%;
  color: white;
  border: 1px solid white;
  background-color: #e94d4d20;
  border-radius: 9px;
  box-shadow: 0 0 25px rgba(122, 5, 5, 0.779);
  transition: transform 0.3s ease;
}

.contacts__button:hover {
  background-color: #e94d4d33;
  transform: scale(1.005);
}

.contacts__map {
  margin-left: 13%;
}

.popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1000;
  visibility: hidden;
  opacity: 0;
  transition:
    visibility 0.3s ease,
    opacity 0.3s ease;
  background-color: rgba(0, 0, 0, 0.799);
}

[data-popup-target] {
  cursor: pointer;
}

.popup.active {
  visibility: visible;
  opacity: 1;
}

.popup__container {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: calc(100% - 40px);
  max-width: 1000px;
  max-height: 90vh;
  overflow-y: auto;
  background: #121212f7;
  border: 2px solid white;
  border-radius: 20px;
  box-shadow: 0 0 30px #d823265f;
}

.popup__close {
  position: absolute;
  top: 15px;
  right: 20px;
  background: none;
  border: none;
  font-size: 35px;
  cursor: pointer;
  color: white;
  transition: transform 0.3s ease;
  line-height: 1;
}

.popup__close:hover {
  transform: scale(1.1);
  color: #ff6b6b;
}

.popup__img {
  display: flex;
  justify-content: center;
  text-align: center;
  margin: 20px auto;
  gap: 30px;
  width: 25vw;
  padding-top: 70px;
}

.popup__img img {
  max-width: 100%;
  height: auto;
  object-fit: cover;
}

.popup__title {
  padding-top: 40px;
  padding-bottom: 62px;
  color: rgba(255, 255, 255, 0.744);
  font-size: clamp(18px, 3vw, 32px);
}

.popup__text {
  text-align: left;
  padding-left: 18px;
  padding-right: 1%;
  font-size: clamp(12px, 2vw, 18px);
  color: #b5b5b5;
}

.popup__content {
  background-color: #d9d9d92e;
  text-align: center;
  width: 95%;
  margin-left: 2%;
  padding: 10px;
  border-radius: 34px;
  padding-bottom: 30px;
  margin-bottom: 30px;
  box-sizing: border-box;
  overflow-x: auto;
}

.text {
  margin-top: 80px;
}

.popup__square-list {
  list-style-type: square;
}

.popup__list-of-lines {
  list-style: none;
  margin: 0;
}

.popup__list-of-lines li {
  position: relative;
}

.popup__list-of-lines li::before {
  content: "-";
  position: absolute;
  left: -18px;
}

li {
  margin-bottom: 10px;
}

.img {
  border-radius: 20px;
  border: 1px solid white;
}

.table-wrapper {
  width: 100%;
  overflow-x: auto;
  overflow: visible;
  display: block;
  margin: 15px 0;
}

.responsive-table {
  width: 100%;
  border-collapse: collapse;
  color: white;
  font-size: 14px;
}

th,
td {
  border: 1px solid rgb(205, 205, 205);
  padding: 12px 15px;
  text-align: left;
  vertical-align: top;
  color: #b5b5b5;
  white-space: nowrap;
}

th {
  font-weight: bold;
}

.popup__content::-webkit-scrollbar-thumb {
  background: #741c1c #1a1a1a;
  border-radius: 10px;
}

.popup__content {
  scrollbar-width: thin;
  scrollbar-color: #741c1c #1a1a1a;
}

.footer {
  flex-shrink: 0;
  height: 158px;
  border-top: 2px solid white;
  text-align: center;
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  padding-top: 20px;
  font-size: 14px;
}

.header__burger-menu {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 21px;
  background: transparent;
  border: none;
  cursor: pointer;
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 101;
}

.header__burger-menu span {
  display: block;
  width: 100%;
  height: 3px;
  background-color: white;
  border-radius: 3px;
  transition: all 0.3s ease;
}

.burger-menu.active span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

.burger-menu.active span:nth-child(2) {
  opacity: 0;
}

.burger-menu.active span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

@media (max-width: 1024px) {
  .header__burger-menu {
    display: flex;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
  }

  .header__navigation {
    position: fixed;
    top: 0;
    right: -100%;
    width: 70%;
    max-width: 150px;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.95);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 30px;
    transition: right 0.3s ease;
    z-index: 100;
    margin: 0;
  }

  .header__navigation.active {
    right: 0;
  }

  .header__link {
    font-size: 20px;
  }

  .header__change-lang {
    right: 80px;
    top: 50%;
    transform: translateY(-50%);
  }
}

@media (max-width: 768px) {
  .header__logo {
    width: 60px;
    height: 50px;
    left: 15px;
    top: 15px;
  }

  .header__link {
    font-size: 18px;
  }

  .header {
    height: 80px;
  }

  .header__change-lang {
    width: 70px;
    font-size: 12px;
    text-align: center;
    right: 70px;
  }

  .banner {
    margin-top: 80px;
  }

  .contacts__map {
    margin-left: 3vw;
    width: 95%;
  }

  .projects__title {
    margin-top: 4px;
    font-size: 3vw;
    margin-bottom: 2px;
  }

  .contacts__title {
    margin-top: 4px;
    font-size: 3vw;
    margin-bottom: 2px;
  }

  .popup__img {
    width: 30vw;
  }
  .contacts__container {
    padding-top: 60px;
  }
}

@media (min-width: 1025px) {
  .header__burger-menu {
    display: none;
  }

  .header__navigation {
    display: flex;
    position: static;
    width: auto;
    height: auto;
    background: transparent;
    flex-direction: row;
    gap: 30px;
  }

  .header__link {
    font-size: 16px;
  }

  .contacts__map {
    margin-left: 10vw;
  }
}

@media (max-width: 400px) {
  .banner__title {
    font-size: 14px;
  }
  .banner__text {
    font-size: 8px;
  }
  .banner__container-line {
    margin-top: 0;
  }

  .popup__title {
    padding: 20px;
  }

  .contacts__button {
    margin-left: 5px;
    width: 150px;
  }
  .header {
    height: 80px;
  }
  .contacts__map {
    margin-left: 0;
  }
  .responsive-table {
    font-size: 11px;
  }
  .popup__img {
    gap: 20px;
    width: 35vw;
  }

  .img {
    border-radius: 5px;
  }
}

@media (max-width: 900px) {
  .about__rectangle {
    display: none;
  }

  .about__train {
    display: none;
  }

  .about {
    margin: 8vw 4% 0 4%;
  }

  .about__container {
    background-color: #271a079c;
    border: 2px solid white;
    padding: 20px;
    width: 100%;
    box-sizing: border-box;
    overflow: visible;
    position: relative;
    right: 6%;
  }

  .about__title {
    text-align: center;
    margin-top: 0;
    margin-right: 10%;
  }

  .about__rectangle-text {
    width: 100%;
    padding-bottom: 10px;
    box-sizing: border-box;
    word-wrap: break-word;
    position: relative;
    overflow-wrap: break-word;
    background: transparent;
    padding: 10px 20px;
    top: 0;
  }

  .about__rectangle-text p,
  .about__rectangle-text h1,
  .about__rectangle-text h3,
  .about__rectangle-text ul {
    max-width: 100%;
  }
}
