#6978ff﻿/* === ОБЩИЕ СТИЛИ === */
body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  background-color: #1E237E;
  color: #1E237E;
}

a {
  color: white;
  text-decoration: none;
}

/* === ВЕРХНЯЯ ПАНЕЛЬ (ШАПКА) === */
.top-bar {
  position: relative;
  height: 60px;
  background: #333;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  z-index: 1000;
}

/* Левая часть — кнопка входа */
.logincontainer {
  flex: 0 0 auto;
}

.login {
  background: none;
  color: white;
  border: 1px solid white;
  padding: 5px 12px;
  border-radius: 5px;
  cursor: pointer;
  font-weight: bold;
}

/* Центр — разделы */
.menu-center {
  display: flex;
  gap: 20px;
  flex: 1 1 auto;
  justify-content: center;
  align-items: center;
}
.datetime
{
  background: #ffffff;
}
.dropdown {
  position: relative;
}

.dropbtn {
  background: none;
  color: white;
  border: none;
  padding: 10px 15px;
  font-size: 16px;
  cursor: pointer;
  font-weight: bold;
  transition: background 0.3s;
  border-radius: 5px;
 }
.dropbtn:hover {
  background: rgba(255, 255, 255, 0.1);
}

.dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #222;
  min-width: 180px;
  box-shadow: 0 8px 16px rgba(0,0,0,0.4);
  border-radius: 5px;
  z-index: 999;
  overflow: hidden;
}

.dropdown-content a {
  display: block;
  padding: 10px 15px;
  text-decoration: none;
  color: white;
  transition: background 0.2s;
}

.dropdown-content a:hover {
  background-color: #444;
}
.dropdown-content.show {
  display: block !important;
}

/* ПК — показываем меню по наведению */
@media (hover: hover) {
  .dropdown:hover .dropdown-content {
    display: block;
  }
}

/* Телефоны — по нажатию (фокус) */
@media (hover: none) {
  .dropbtn:focus + .dropdown-content {
    display: block;
  }
}

/* Правая часть — бургер */
.burger-container {
  flex: 0 0 auto;
}

.burger {
  width: 30px;
  height: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
}

.burger span {
  display: block;
  height: 4px;
  background: white;
  border-radius: 2px;
  transition: 0.3s;
}

/* === ВЫПАДАЮЩЕЕ МЕНЮ (СПРАВА) === */
.menu {
  position: fixed;
  top: 60px;
  right: 0;
  background: #222;
  width: 200px;
  padding: 10px 0;
  box-shadow: -2px 4px 12px rgba(0, 0, 0, 0.4);
  transform: translateX(100%);
  transition: transform 0.3s ease;
  z-index: 1001; /* ДОБАВЛЕНО – поднимаем над баннером */
}

    .menu.open {
      transform: translateX(0);
    }

    .menu button {
      width: 100%;
      background: none;
      color: white;
      border: none;
      text-align: left;
      font-size: 16px;
      cursor: pointer;
      transition: background 0.2s;
    }

    .menu button:hover {
      background: #444;
    }

/* ===КОНТЕНТ === */
header {
  background: #161B6B;
  padding: 5px;
  text-align: center;
  position: relative;
}

.banner-wrapper {
  max-width: 1920px;
  margin: 0 auto;
  overflow: hidden;
}

.banner-slider {
  width: 100%;
  height: 400px;
  display: flex;
  position: relative;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  background-color: #1A1A7D;
}

.banner-slider img {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.banner-slider img.active {
  opacity: 1;
  z-index: 1;
}

.maincontent {
  background: #161B6B;
  color: #fff;
  text-align: center;
  padding: 20px 10px;
}

/* === КАРТОЧКИ === */
.box, .boxfirm {
  background-color: #3c5bfd;
  border-radius: 12px;
  padding: 25px;
  margin: 20px auto;
  max-width: 800px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.box a, .boxfirm a {
  display: inline-block;
  padding: 10px 15px;
  font-size: 18px;
  transition: transform 0.2s ease;
}

.box a:hover, .boxfirm a:hover {
  transform: scale(1.05);
}

.box:hover, .boxfirm:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.4);
}

.boxfirm {
  background-color: #012d4a;
}

.boxwarring {
  background-color: #fcb242;
  color: #000;
}

/* === ТЕЛЕФОН-БЛОК === */
.phone-box {
  display: inline-block;
  text-align: center;
  background-color: #00cc66;
  color: white;
  padding: 20px 40px;
  border-radius: 20px;
  font-size: 24px;
  font-weight: bold;
  text-decoration: none;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s, box-shadow 0.2s;
}

.phone-box:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
}

.phone-box img {
  width: 40px;
  height: 40px;
  vertical-align: middle;
  margin-right: 10px;
}

/* === СПИСОК === */
ul {
  list-style: none;
  padding: 0;
}

ul li::before {
  content: "\2022";
  color: white;
  display: inline-block;
  width: 1em;
  margin-left: -1em;
}

/* === ФУТЕР === */
footer {
  background: #161B6B;
  color: #fff;
  text-align: center;
  padding: 20px 10px;
}
footer-it {
      text-align: center;
      padding: 15px;
      font-size: 14px;
      color: #666;
      background-color: #f0f0f0;
    }
/* === СОЦСЕТИ === */
.social-icons {
  margin-top: 10px;
}

.social-icons a {
  display: inline-block;
  margin: 0 10px;
}

.social-icons img {
  width: 32px;
  height: 32px;
  vertical-align: middle;
}

/* === АДАПТИВНОСТЬ === */
@media (max-width: 768px) {
  .banner-slider {
    height: 150px;
  }
}

@media (max-width: 480px) {
  .banner-slider {
    height: 120px;
  }
}

html, body {
  background-color: #1E237E;
  margin: 0;
  padding: 0;
}
