/*---------------------------------*/
/*--------- GLOBAL STYLES ---------*/
/*---------------------------------*/

/* Обнуление отступов и границ */
* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

/* Основные стили для HTML и Body */
html {
  font-size: 62.5%; /* 1rem = 10px */
  height: 100%;
}

body {
  font-family: 'Rubik', sans-serif;
  line-height: 1.6;
  font-weight: 400;
  color: #333;
  overflow-x: hidden;
  height: 100%;
}

/*---------------------------------*/
/*----- LAYOUT AND STRUCTURES -----*/
/*---------------------------------*/

.wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

main {
  flex: 1;
}

.container {
  max-width: 1170px;
  margin: auto;
}

.row {
  display: flex;
  flex-wrap: wrap;
}

ul {
  list-style: none;
}

/*---------------------------------*/
/*-------- HEADER STYLES ----------*/
/*---------------------------------*/

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #247291;
  padding: 2rem;
  position: sticky;
  top: 0;
  z-index: 1000;
  height: 12rem;
  padding: 4.8rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.6);
}

.logoCrimeaUA {
  height: 8rem;
  filter: invert(100%) sepia(100%) saturate(0%) brightness(200%);
  margin: 20px;
}

.main-nav-list {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 2rem;
}

.main-nav-link {
  text-decoration: none;
  display: block;
  color: #f5f9ee;
  font-weight: 500;
  font-size: 1.8rem;
  text-align: right; /* Выравнивание текста по правому краю */
}

.main-nav-link:hover {
  color: #f8da5b;
}

.main-nav-link.nav-req {
  color: #333;
  border-radius: 9px;
  padding: 1.2rem 2.4rem;
  background-color: #f8da5b;
}

.main-nav-link.nav-req:hover {
  background-color: #dfc452;
}

.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-content {
  display: none;
  position: absolute;
  right: 0; /* Выравнивание контента дропдауна по правой стороне */
  background-color: #fff; /* Фон выпадающего меню */
  min-width: 160px;
  box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.2);
  z-index: 1;
  border-radius: 4px; /* Сглаживание углов */
  padding: 10px 0;
}

.dropdown-content a {
  color: #000; /* Цвет текста */
  padding: 12px 16px;
  text-decoration: none;
  display: block;
  font-size: 14px; /* Размер текста */
}

.dropdown-content a:hover {
  background-color: #f1f1f1; /* Цвет фона при наведении */
}

.dropdown:hover .dropdown-content {
  display: block;
}

.main-nav .dropdown-content a img {
  width: 20px; /* Размер флагов */
  height: 13px; /* Размер флагов */
  margin-right: 8px;
}

.icon {
  display: none;
  font-size: 3rem;
  cursor: pointer;
  padding: 10px;
  color: white;
}


/*---------------------------------*/
/*-------- FOOTER STYLES ----------*/
/*---------------------------------*/

.footer {
  background-color: #247291;
  padding: 30px 0;
}

.footer-col {
  width: 100%;
  padding: 0 15px;
  min-width: 200px;
  flex: 1;
  margin: 20px;
}

.footer-col h4 {
  font-size: 18px;
  color: #ffffff;
  text-transform: capitalize;
  margin-bottom: 35px;
  font-weight: 500;
  position: relative;
}

.footer-col h4::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: -10px;
  background-color: #f8da5b;
  height: 2px;
  box-sizing: border-box;
  width: 50px;
}

.footer-col h4::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -10px;
  transform: translateX(-50%);
  background-color: #f8da5b;
  height: 2px;
  box-sizing: border-box;
  width: 50px;
  display: none; /* Скрываем ::after по умолчанию */
}

.footer-col ul li:not(:last-child) {
  margin-bottom: 10px;
}

.footer-col ul li a {
  font-size: 16px;
  text-transform: capitalize;
  color: #bbbbbb;
  text-decoration: none;
  font-weight: 300;
  display: block;
  transition: all 0.3s ease;
}

.footer-col ul li a:hover {
  color: #ffffff;
  padding-left: 8px;
}

.footer-col .social-links {
  display: flex;
  justify-content: center;
  margin-top: 15px;
}

.footer-col .social-links a {
  display: inline-block;
  height: 50px;
  width: 50px;
  background-color: rgba(255, 255, 255, 0.2);
  margin-right: 15px;
  text-align: center;
  line-height: 50px;
  border-radius: 50%;
  font-size: 30px;
  color: #ffffff;
  transition: all 0.5s ease;
}

.footer-col .social-links a:hover {
  color: #24262b;
  background-color: #ffffff;
}

.footer-col img {
  max-width: 60%;
  height: auto;
  filter: invert(100%) sepia(100%) saturate(0%) brightness(200%);
}


/*---------------------------------*/
/*------ RESPONSIVE STYLES --------*/
/*---------------------------------*/

/* Адаптивные стили */
@media screen and (max-width: 768px) {
  .icon {
    display: block;
  }

  .main-nav-list {
    display: none;
    flex-direction: column;
    align-items: center; /* Центрирование элементов */
    width: 60%; /* Ширина меню */
    position: absolute;
    top: 80px; /* Опустить меню ниже иконки */
    right: 10px; /* Отступ от правого края */
    background: #247291;
    z-index: 1001;
    border-radius: 10px; /* Округлые углы */
    padding: 10px; /* Отступы */
    border: 2.5px солидный #508ea7; /* Обводка */
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
  }

  .main-nav.responsive .main-nav-list {
    display: flex;
  }

  .main-nav-link {
    padding: 10px;javascript:void(0)
    text-align: center; /* Центрирование текста */
  }
}

@media screen and (max-width: 768px) {
  .footer .container {
    text-align: center;
  }

  .footer-col {
    margin-bottom: 20px;
    text-align: center; /* Центрирование содержимого */
  }

  .footer-col h4::before {
    display: none; /* Скрываем ::before на мобильных */
  }

  .footer-col h4::after {
    display: block; /* Показываем ::after на мобильных */
  }

  .footer-col ul,
  .footer-col .social-links {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .footer-col ul li {
    margin-bottom: 10px;
  }

  .footer-col .social-links {
    flex-direction: row; /* Иконки в ряд */
    justify-content: center; /* Центрирование иконок соцсетей */
  }

  .footer-col .social-links a {
    margin: 0 5px;
  }
}

@media screen and (min-width: 769px) {
  .footer-col {
    text-align: left; /* Выравнивание содержимого по левому краю */
  }

  .footer-col h4::before {
    left: 0;
    transform: none;
  }

  .footer-col h4::after {
    display: none;
  }

  .footer-col .social-links {
    justify-content: flex-start;
  }
}