#preloader {
  width: 100%;
  height: 100vh;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ffffff;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.preloader_img {
  width: 80%;
  animation: small-big-small 2s ease-in-out;
}

@keyframes small-big-small {
  0% { transform: scale(0.7, 0.7); }
  100% { transform: scale(1, 1); }
}

html {
  box-sizing: border-box;
  height: 100%;
  padding: 0;
  margin: 0;
}

*, *::after, *::before { box-sizing: inherit; }

body {
  display: block;
  font-family: "Roboto", sans-serif;
  min-height: 100%;
  padding: 0;
  margin: 0;
  background-color: #ffffff;
  overflow-x: hidden;
}

.content {
  width: 100%;
  margin: 0;
  padding: 0;
  display: block;
}

/* ============ КОМПАКТНАЯ ШАПКА ============ */
#nav {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;
  width: 100%;
  height: 60px;
  background-color: rgb(255, 255, 255);
  padding: 0;
  display: flex;
  align-items: center;
  box-shadow: 0 1px 10px rgba(0, 0, 0, 0.08);
}

.wrap {
  width: 90%;
  max-width: 1400px;
  height: 60px;
  position: absolute;
  top: 0;
  left: 5%;
}

.wrap > .logo_img {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 100px;
  height: 45px;
  object-fit: contain;
}

.closeIcon { display: none; }

.wrap > #ru_eng {
  position: absolute;
  right: 70px;
  top: 50%;
  transform: translateY(-50%);
  height: auto;
  margin: 0;
  display: block;
}

.ENG {
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.5px;
  color: #222;
  margin: 0;
  transition: color 0.2s;
}

.ENG:hover {
  color: rgb(38, 20, 94);
}

/* ============ БУРГЕР ============ */
.burger1 {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  margin: 0;
  z-index: 200;
}

.burger {
  cursor: pointer;
  display: block;
  position: relative;
  border: none;
  z-index: 200;
  background: transparent;
  width: 36px;
  height: 28px;
  padding: 0;
}

.burger::before,
.burger::after {
  content: '';
  left: 0;
  position: absolute;
  display: block;
  width: 100%;
  height: 3.5px;
  background: #1a1a1a;
  border-radius: 2px;
}

.burger::before {
  top: 0;
  box-shadow: 0 12px 0 #1a1a1a;
  transition: box-shadow .3s .15s, top .3s .15s, transform .3s;
}

.burger::after {
  bottom: 0;
  transition: bottom .3s .15s, transform .3s;
}

.burger.active::before {
  top: 12px;
  transform: rotate(45deg);
  box-shadow: 0 3px 0 rgba(0, 0, 0, 0);
  transition: box-shadow .15s, top .3s, transform .3s .15s;
}

.burger.active::after {
  bottom: 12px;
  transform: rotate(-45deg);
  transition: bottom .3s, transform .3s .15s;
}

/* ============ ВЫПАДАЮЩЕЕ МЕНЮ ============ */
.menu {
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  transform: translateY(-100%);
  visibility: hidden;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), visibility 0s 0.35s;
  background-color: #ffffff;
  padding-top: 60px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
  border-radius: 0 0 20px 20px;
  overflow: hidden;
  z-index: 90;
}

.showMenu {
  transform: translateY(0);
  visibility: visible;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), visibility 0s 0s;
}

.menu_nav { display: none; }

.hr2 {
  width: 90%;
  max-width: 1400px;
  margin: 0 auto;
  border: none;
  height: 1px;
  background: rgba(0, 0, 0, 0.1);
}

.menu_links {
  width: 90%;
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 40px;
  padding: 26px 0 30px 0;
  height: auto;
}

.menuItem1, .menuItem2, .menuItem3, .menuItem4, .menuItem5 {
  position: relative;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.3px;
  color: #333;
  padding: 6px 2px;
  text-decoration: none;
  transition: color 0.25s ease;
  display: inline-block;
  margin: 0;
  text-align: center;
  white-space: nowrap;
  word-wrap: break-word;
}

.menuItem1::after, .menuItem2::after, .menuItem3::after,
.menuItem4::after, .menuItem5::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 0;
  height: 2px;
  background-color: rgb(38, 20, 94);
  transition: width 0.25s ease, left 0.25s ease;
}

.menuItem1:hover, .menuItem2:hover, .menuItem3:hover,
.menuItem4:hover, .menuItem5:hover {
  color: rgb(38, 20, 94);
}

.menuItem1:hover::after, .menuItem2:hover::after, .menuItem3:hover::after,
.menuItem4:hover::after, .menuItem5:hover::after {
  width: 100%;
  left: 0;
}

a { color: black; }
a:link, a:visited, a:focus, a:hover { outline: none; text-decoration: none; }
a:active { border-bottom: 1px solid; }

/* ---------- Заголовок страницы ---------- */
.tittle {
  width: 100%;
  padding: 2px;
  background-color: rgb(38, 20, 94);
  margin-top: 75px;
}

.tittle1 {
  text-align: center;
  color: white;
  font-weight: 800;
  font-size: 30px;
  letter-spacing: 0px;
  margin: 10px 0;
}

/* ---------- Основная карточка ---------- */
.card {
  width: 100%;
  max-width: 480px;
  margin: 45px auto 0;
  position: relative;
  border: 2.5px solid rgb(38, 20, 94);
  border-radius: 16px;
  padding: 0 0 18px 0;
  background: #FAFAFA;
  box-shadow: 3px 3px 7px 0px rgba(30, 30, 30, 0.4);
  overflow: hidden;
}

/* ---------- Кнопки-табы ---------- */
.buttons {
  width: 100%;
  height: 40px;
  display: flex;
  align-items: stretch;
}

.btn1, .btn2, .btn3 {
  height: 40px;
  font-family: "Roboto", sans-serif;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0px;
  border: none;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.btn1 {
  width: 33.4%;
  background-color: #ffffff;
  color: rgb(38, 20, 94);
  border-radius: 13px 0 0 0;
}

.btn2 {
  width: 33.3%;
  background-color: rgb(38, 20, 94);
  color: #ffffff;
}

.btn3 {
  width: 33.3%;
  background-color: rgb(38, 20, 94);
  color: #ffffff;
  border-radius: 0 13px 0 0;
}

/* ---------- Содержимое табов ---------- */
.contents {
  width: 100%;
  padding: 0 18px;
  box-sizing: border-box;
}

.img1 {
  display: block;
  width: 55%;
  margin: 18px auto 0;
  border-radius: 10px;
}

.img2 {
  display: block;
  width: 55%;
  margin: 18px auto 0;
  border-radius: 10px;
}

.block1 {
  width: 100%;
  margin-top: 15px;
  border: 1.5px solid #000;
  border-radius: 12px;
  padding: 8px 14px;
  box-sizing: border-box;
}

.p_block1 {
  font-weight: 500;
  font-size: 12px;
  line-height: 1.4;
  margin: 0;
}

.block2 {
  width: 100%;
  margin-top: 10px;
  border: 1.5px solid #000;
  border-radius: 12px;
  padding: 8px 14px;
  box-sizing: border-box;
}

.p_block2 {
  font-weight: 500;
  font-size: 12px;
  line-height: 1.4;
  margin: 0;
}

.block3 {
  width: 100%;
  margin-top: 15px;
  padding-left: 18px;
  box-sizing: border-box;
}

.block3 li {
  font-weight: 500;
  font-size: 12px;
  line-height: 1.4;
  margin-top: 7px;
}

/* Третий таб */
.p2 {
  color: rgb(38, 20, 94);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 0px;
  margin: 18px 0 0 0;
  text-align: center;
}

.block4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  width: 100%;
  margin-top: 15px;
}

.img3, .img4, .img5, .img6 {
  width: 100%;
  border-radius: 7px;
}

.block5 {
  width: 100%;
  margin: 15px 0 0 0;
  padding-left: 18px;
  box-sizing: border-box;
}

.block5 li {
  font-weight: 500;
  font-size: 12px;
  line-height: 1.4;
  margin-top: 7px;
}

/* ---------- Видео — увеличен отступ сверху ---------- */
.video {
  display: block;
  width: 55%;
  max-width: 500px;
  margin: 120px auto 0;
  border-radius: 14px;
  background: #000;
}

/* ---------- Футер ---------- */
footer {
  width: 100%;
  height: 100px;
  margin-top: 80px;
  background-color: rgb(38, 20, 94);
  display: inline-block;
  position: relative;
}

.ur_adress {
  width: 40%;
  left: 15%;
  top: 30px;
  color: #ffffff;
  font-weight: 600;
  font-size: 15px;
  position: absolute;
}

.email_adress {
  width: 30%;
  left: 65%;
  top: 30px;
  color: #ffffff;
  font-weight: 600;
  font-size: 15px;
  position: absolute;
}

/* ---------- Адаптив ---------- */

@media (max-width: 1100px) {
  .card { max-width: 460px; }
  .tittle1 { font-size: 24px; }
  .btn1, .btn2, .btn3 { font-size: 12px; }
  .video { margin-top: 100px; }

  .ur_adress { left: 10%; font-size: 14px; }
  .email_adress { left: 70%; font-size: 14px; }
}

@media (max-width: 800px) {
  .card { max-width: 420px; margin-top: 35px; }
  .tittle1 { font-size: 20px; }

  .btn1, .btn2, .btn3 { font-size: 11px; height: 38px; }
  .buttons { height: 38px; }

  .contents { padding: 0 16px; }
  .img1, .img2 { width: 65%; }

  .block4 { grid-template-columns: repeat(2, 1fr); }

  .video { width: 70%; margin-top: 80px; }

  .ur_adress { font-size: 13px; left: 8%; width: 50%; }
  .email_adress { font-size: 13px; left: 60%; width: 35%; }
}

@media (max-width: 750px) {
  .wrap > #ru_eng { right: 55px; }
  .ENG { font-size: 14px; }

  .menu { border-radius: 0 0 20px 20px; }
  .menu_links {
    flex-direction: column;
    gap: 0;
    padding: 14px 0 22px 0;
  }
  .menuItem1, .menuItem2, .menuItem3, .menuItem4, .menuItem5 {
    display: block;
    width: 100%;
    text-align: center;
    padding: 12px 0;
    font-size: 16px;
    white-space: normal;
  }
  .menuItem1::after, .menuItem2::after, .menuItem3::after,
  .menuItem4::after, .menuItem5::after { display: none; }
}

@media (max-width: 620px) {
  .card { margin-top: 30px; }
  .tittle1 { font-size: 17px; }

  .btn1, .btn2, .btn3 { font-size: 11px; height: 36px; }
  .buttons { height: 36px; }

  .contents { padding: 0 14px; }
  .img1, .img2 { width: 80%; margin-top: 16px; }

  .block1, .block2 { padding: 7px 12px; }
  .p_block1, .p_block2 { font-size: 11px; }
  .block3 li, .block5 li { font-size: 11px; }

  .p2 { font-size: 14px; margin-top: 16px; }

  .video { width: 85%; margin-top: 60px; }

  .ur_adress { font-size: 12px; left: 8%; }
  .email_adress { font-size: 12px; left: 60%; }
  footer { margin-top: 60px; }
}

@media (max-width: 450px) {
  .card { margin-top: 22px; border-width: 2px; }
  .tittle1 { font-size: 15px; }

  .btn1, .btn2, .btn3 { font-size: 10px; height: 34px; }
  .buttons { height: 34px; }

  .contents { padding: 0 12px; }
  .img1, .img2 { width: 90%; }

  .p_block1, .p_block2 { font-size: 10px; }
  .block3 li, .block5 li { font-size: 10px; }
  .p2 { font-size: 13px; }

  .video { width: 100%; margin-top: 45px; }

  .ur_adress, .email_adress { font-size: 10px; }
  footer { height: 80px; margin-top: 50px; }
}