* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap');

/* Основные стили для body */
body {
  font-family: "Roboto", sans-serif;
  font-weight: 300;
  background-color: #f0f0f0;
}

:root {
  --font-regular: "Roboto", sans-serif;
  --primary-color: #000;
  --hover-color: #f0c040;
  --bg-color: #f1f1f1;
  --shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  --dropdown-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  --font-size-default: 16px;
  --font-size-small: 14px;
  --transition-time: 0.3s;
  --text-size: calc(1vw + 1vh);
}

/* Базовые стили body */
body {
  font-family: var(--font-regular);
  background-color: #f0f0f0;
  color: var(--primary-color);
}

/* Стили header */
.header {
  background: var(--bg-color);
  width: 100%;
  padding: 10px 20px;
  box-shadow: var(--shadow);
  border-bottom: 2px solid var(--primary-color);
  position: sticky;
  top: 0;
  z-index: 100;
}

.container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Логотип */
.logo img {
  height: calc(2.5rem + 1vw);
  cursor: pointer;
}

/* Навигация */
.navigation {
  display: flex;
  align-items: center;
  gap: 20px;
}

.navigation ul {
  list-style: none;
  display: flex;
  gap: 20px;
}

.navigation ul li {
  position: relative;
  text-transform: uppercase;
  font-family: var(--font-bold);
}

.nav-btn {
  text-decoration: none;
  color: var(--primary-color);
  font-size: var(--font-size-small);
  padding: 10px 20px;
  border-radius: 25px;
  transition: all var(--transition-time) ease;
}

.nav-btn:hover {
  background-color: var(--hover-color);
  color: #333;
  box-shadow: var(--shadow);
}

/* Выпадающее меню */
.dropdown {
  display: none;
  position: absolute;
  top: 30px;
  left: 0;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: var(--dropdown-shadow);
  min-width: 180px;
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity var(--transition-time) ease, transform var(--transition-time) ease;
}

.dropdown-menu {
  list-style: none;
  padding: 10px;
}

.dropdown-menu li {
  padding: 0;
}

.dropdown-menu li a {
  display: block;
  color: #333;
  padding: 12px 20px;
  text-decoration: none;
  font-size: var(--font-size-default);
  border-radius: 6px;
  transition: background-color var(--transition-time) ease;
}

.dropdown-menu li a:hover {
  background-color: var(--hover-color);
  color: #333;
}

/* Появление меню при наведении */
.dropdown-parent:hover .dropdown {
  display: block;
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

/* Кнопка для мобильного меню */
.menu-toggle {
  display: none;
  font-size: 24px;
  background: none;
  border: none;
  cursor: pointer;
  position: absolute;
  top: 15px;
  right: 20px;
  z-index: 200;
  color: var(--primary-color);
}

/* Мобильная версия навигации */
@media (max-width: 768px) {
  .navigation ul {
    display: none;
    flex-direction: column;
    background-color: var(--bg-color);
    border-radius: 8px;
    box-shadow: var(--shadow);
    position: absolute;
    top: 80px;
    left: 10px;
    right: 10px;
    padding: 15px;
    z-index: 100;
  }


  .navigation ul.show {
    display: flex;
  }

  .menu-toggle {
    display: block;
    position: absolute;
    top: 20px;
    right: 20px;
  }

  .nav-btn {
    font-size: var(--font-size-default);
    padding: 10px 15px;
  }
}


/* ==========VIDEO SECTION=========== */

/* Секция видео */
.video-section {
  background-color: #f1f1f1;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
  width: 100%;
  margin: 0 auto;
}

/* Обёртка для видео */
.video-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  /* Соотношение сторон 16:9 */
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.video-wrapper video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(50%);
  transition: filter 0.3s ease;
}

/* Эффект подсветки при наведении */
.video-wrapper:hover video {
  filter: brightness(70%);
}

/* Текст поверх видео */
.video-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #fff;
  font-size: calc((1vw + 1vh)*2);
  font-weight: bold;
  text-transform: uppercase;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
  text-align: center;
  z-index: 1;
}

.video-text-second {
  position: absolute;
  top: 70%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #fff;
  font-size: calc((1vw + 1vh)*1);
  text-transform: uppercase;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
  text-align: center;
  z-index: 1;
}

/* Иконки поверх видео */
.video-icons {
  position: absolute;
  top: 20%;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 20px;
  z-index: 1;
}

.video-icons img {
  width: 40px;
  width: calc(1vw+ 1vh);
  height: 40px;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
  transition: transform 0.3s ease, filter 0.3s ease;
}

/* Эффект увеличения и подсветки для иконок */
.video-icons img:hover {
  transform: scale(1.1);
  filter: drop-shadow(0 4px 8px rgba(255, 255, 255, 0.8));
}


@media (max-width: 768px) {

  .video-icons img {
    width: 30px;
    /* Уменьшаем размер иконок */
    height: 30px;
  }

  .video-wrapper {
    padding-bottom: 75%;
    /* Соотношение сторон 4:3 для мобильных */
  }
}

.carousel {
  width: 100%;
  max-width: 100vw;
  height: 70vh;
  overflow: hidden;
  display: flex;
  position: relative;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.carousel-container {
  display: flex;
  transition: transform 0.5s ease;
}

.slide {
  min-width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.img_for_carousel {
  width: 70%;
}

.img_for_carousel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.text_for_carousel {
  width: 30%;
  padding: 2vw;
  color: black;
  text-align: center;
}

.text_for_carousel h1 {
  font-size: calc(var(--text-size) * 1.3);
  text-align: center;
  padding-bottom: 1vh;
}

.text_for_carousel p {
  font-size: calc(var(--text-size) * 0.8);
  line-height: 1.6;
  margin-bottom: 1vw;
  text-align: justify;
}

.button_for_text_carousel {
  margin-top: 3px;
  padding: calc(var(--text-size) * 0.7) calc(var(--text-size) * 1.1);
  color: rgba(0, 0, 0, 0.75);
  border: 1px solid rgba(0, 0, 0, 0.75);
  cursor: pointer;
  transition: background-color 0.3s;
  text-decoration: none;
}

.button_for_text_carousel:hover {
  background-color: rgba(0, 0, 0, 0.75);
  color: white;
}

.buttons_for_carousel {
  position: absolute;
  top: 50%;
  width: 100%;
  display: flex;
  justify-content: space-between;
  transform: translateY(-50%);
}

.prev,
.next {
  background-color: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  padding: 15px;
  cursor: pointer;
  font-size: 24px;
  border-radius: 50%;
  transition: background-color 0.3s;
}

.prev:hover,
.next:hover {
  background-color: rgba(0, 0, 0, 0.7);
}

@media (max-width: 1200px) {
  .carousel {
    height: auto;
  }

  .text_for_carousel {
    width: 35%;
  }

  .img_for_carousel {
    width: 65%;
  }
}

@media (max-width: 900px) {
  .carousel {
    height: auto;
    display: block;
  }

  .slide {
    display: block;
  }

  .text_for_carousel {
    width: 100%;
    height: 18vh;
    position: relative;
  }

  .img_for_carousel {
    width: 100%;
    height: 30vh;
    position: relative;
  }
}

@media (max-width: 600px) {
  .carousel {
    height: auto;
  }

  .slide {
    display: block;
  }

  .text_for_carousel {
    width: 100%;
    padding: 15px;
    height: 18vh;
  }

  .img_for_carousel {
    width: 100%;
    height: 25vh;
  }

  .prev,
  .next {
    font-size: 18px;
    padding: 10px;
  }
}



.separation {
  width: 100%;
  display: flex;
  height: 5vh;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding-left: 4vw;
  padding-right: 4vw;
  gap: 3%;
}

.left_separation {
  width: 43%;
  height: 3%;
  background-color: #493f0a;
}

.right_separation {
  width: 43%;
  height: 3%;
  background-color: #493f0a;
}

.text_separation {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1.7vw;
  color: #493f0a;
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
  .text_separation {
    font-size: 3vw;
    color: #493f0a;
  }
}

.element-container {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 30px;
  width: 90%;
  margin-left: 5%;
}

/* Блоки */
.block {
  border-radius: 8px;
  color: white;
  padding: 15px;
  box-sizing: border-box;
  position: relative;
  min-height: 150px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
}

.block1,
.block2 {
  flex: 0 0 calc(47.5% - 10px);
  /* 40% ширины с учётом промежутка */
}

.block1 {
  background-image: url("../img/backgrounds/blue-back.webp");
  background-size: cover;
  background-position: center;
}

.block2 {
  background-image: url("../img/backgrounds/green-back.avif");
  background-size: cover;
  background-position: center;
}

.block3,
.block4 {
  flex: 0 0 calc(30% - 10px);
  /* 25% ширины с учётом промежутка */
  background-image: url("../img/backgrounds/red-back.jpg");
  background-size: cover;
  background-position: center;
}

.block4 {
  background-image: url("../img/backgrounds/yellow-back.jpg");
}

.block5 {
  flex: 0 0 calc(30% - 10px);
  /* 25% ширины с учётом промежутка */
  background-image: url("../img/backgrounds/black-back.jpg");
  background-size: cover;
  background-position: center;
}

.title {
  font-weight: bold;
  font-size: 1.6vw;
  text-shadow: 0px 4px 6px rgb(0, 0, 0, 0.6);
  margin-bottom: 8px;
}

.subtitle {
  background: rgba(255, 255, 255, 0.8);
  width: 60%;
  color: #333;
  padding: 5px;
  border-radius: 6px;
  text-align: center;
  font-size: 0.9vw;
  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
}

.description {
  width: 80%;
  position: absolute;
  bottom: 10px;
  font-size: 0.9vw;
  text-shadow: 0px 4px 6px rgb(0, 0, 0, 0.6);
}

/* Адаптивность для мобильных устройств */
@media (max-width: 800px) {
  .block {
    flex: 0 0 90%;
    margin: 0 auto;
  }

  .title {
    font-size: 3.2vw;
  }

  .subtitle {
    font-size: 1.9vw;
  }

  .description {
    font-size: 1.9vw;
  }
}

.map-container {
  display: flex;
  flex-wrap: wrap;
  /* Позволяет блокам переноситься */
  background-color: #fff;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  overflow: hidden;
  max-width: 1400px;
  margin: 20px auto;
  border: 1px solid #ddd;
}

.map {
  flex: 0 0 70%;
  /* Карта занимает 70% */
  padding: 20px;
  max-width: 70%;
  background-color: #fafafa;
  height: 700px;
  /* Устанавливаем фиксированную высоту */
}

.map-self {
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
  border-radius: 8px;
}

.details {
  flex: 1;
  /* Занимает оставшуюся часть */
  padding: 20px;
  background-color: #fafafa;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}

.details p {
  margin-bottom: 8px;
  font-size: 21px;
  font-weight: 100;
  color: #555;
}

.details-element {
  display: flex;
}

@media (max-width: 800px) {
  .map {
    flex: 1 1 100%;
    /* Карта занимает всю ширину */
    max-width: 100%;
    height: 300px;
    /* Высота уменьшается для мобильных */
  }

  .details {
    flex: 1 1 100%;
    /* Блок с текстом также занимает всю ширину */
    padding: 15px;
  }
}