@import url(/fonts/fonts.css);

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333;
}

.wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Шапка */
.header {
  background-color: #2c3e50;
  color: white;
  padding: 1rem 0;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.header__container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 1rem;
}

.header__logo {
  font-size: 1.5rem;
  font-weight: bold;
}

.nav__list {
  display: flex;
  list-style: none;
}

.nav__item {
  margin-left: 1.5rem;
}

.nav__link {
  color: white;
  text-decoration: none;
  transition: color 0.3s;
}

.nav__link:hover {
  color: #3498db;
}

/* Основной контент */
.main {
  flex: 1;
  max-width: 2500px;
  margin: 2rem auto;
  padding: 0 1rem;
  width: 100%;
}

.placeholder {
  text-align: center;
  padding: 2rem;
  background: #f8f9fa;
  border: 2px dashed #ddd;
  color: #666;
  font-style: italic;
}

/* Футер */
.footer-wrapper {
  background-color: #34495e;
  color: white;
}

.footer__container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  padding: 2rem 1rem;
}

.footer__section {
  padding: 1rem;
}

.footer__title {
  font-size: 1.2rem;
  margin-bottom: 1rem;
  color: #3498db;
}

.footer__text, .footer__contact {
  color: #bdc3c7;
  margin-bottom: 1rem;
}

.footer__links {
  list-style: none;
  padding: 0;
}

.footer__link {
  color: #bdc3c7;
  text-decoration: none;
  display: block;
  margin-bottom: 0.5rem;
  transition: color 0.3s;
}

.footer__link:hover {
  color: white;
}

.footer__bottom {
  text-align: center;
  padding: 1rem;
  border-top: 1px solid #4a647d;
  color: #bdc3c7;
  font-size: 0.9rem;
}



/*меню0*/

/* Базовые стили меню */
.menu {
  background-color: #2c3e50;
  font-family: Arial, sans-serif;
}

.desktop-menu__content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.desktop-menu__list {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}

.desktop-menu__list > li {
  position: relative;
}

/* Стили пунктов меню */
.desktop-menu__list a,
.desktop-menu__list span {
  color: white;
  text-decoration: none;
  display: block;
  padding: 1rem 1.2rem;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.desktop-menu__list a:hover,
.desktop-menu__list .has-dropdown:hover > a {
  background-color: #3498db;
  color: white;
}

/* Активный пункт меню */
.desktop-menu__list .active > a {
  background-color: #e74c3c;
  color: white;
  position: relative;
}

.desktop-menu__list .active > a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 2px;
  background-color: #e74c3c;
}

/* Выпадающее меню */
.dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  background-color: white;
  min-width: 200px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  z-index: 1000;
  list-style: none;
  padding: 0.5rem 0;
}

.has-dropdown:hover .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Пункты выпадающего меню */
.dropdown > li > a {
  color: #333;
  padding: 0.8rem 1.5rem;
  border-bottom: 1px solid #eee;
}

.dropdown > li:last-child > a {
  border-bottom: none;
}

.dropdown > li > a:hover {
  background-color: #f8f9fa;
  color: #3498db;
}

/* Подменю третьего уровня */
.sub-dropdown {
  position: absolute;
  top: 0;
  left: 100%;
  background-color: white;
  min-width: 200px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  opacity: 0;
  visibility: hidden;
  transform: translateX(-10px);
  transition: all 0.3s ease;
  list-style: none;
  padding: 0.5rem 0;
}

.has-dropdown .dropdown > li:hover .sub-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

.sub-dropdown > li > a {
  color: #555;
  padding: 0.7rem 1.5rem;
  border-bottom: 1px solid #f5f5f5;
}

.sub-dropdown > li:last-child > a {
  border-bottom: none;
}

.sub-dropdown > li > a:hover {
  background-color: #ecf0f1;
  color: #2980b9;
}

/* Индикатор выпадающего меню */
.has-dropdown > a::after {
  content: '▼';
  margin-left: 0.5rem;
  font-size: 0.7em;
  vertical-align: middle;
}

.has-dropdown .sub-dropdown ~ a::after {
  content: '►';
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
  .desktop-menu__list {
    flex-direction: column;
    align-items: stretch;
  }

  .dropdown,
  .sub-dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border-left: 2px solid #3498db;
    margin-left: 1rem;
  }

  .has-dropdown > a::after {
    content: '+';
    position: absolute;
    right: 1rem;
  }

  .has-dropdown.active > a::after {
    content: '-';
  }
}

/* Плавные переходы для мобильных */
@media (max-width: 768px) {
  .dropdown,
  .sub-dropdown {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  .has-dropdown.active .dropdown,
  .has-dropdown.active .sub-dropdown {
    max-height: 500px; /* Достаточно для большинства подменю */
  }
}

/* Дополнительные улучшения */
.container.notm {
  width: 100%;
}

/* Подсветка при фокусе для доступности */
.desktop-menu__list a:focus {
  outline: 2px solid #3498db;
  outline-offset: 2px;
}
