/* ======== БАЗОВІ СТИЛІ ======== */
* {
  box-sizing: border-box; /* Усі елементи враховують рамки у розмір */
  margin: 0; /* Обнуляємо зовнішні відступи */
  padding: 0; /* Обнуляємо внутрішні відступи */
  color: inherit; /* Успадкування кольору тексту */
  transition: color 0.3s; /* Плавна зміна кольору */
}

/* Посилання */
a {
  text-decoration: none; /* Без підкреслення */
  transition: color 0.3s ease; /* Плавна зміна кольору за 0.3 секунди */
}

a:hover {
   color: #FFD700; /* Зміна кольору при наведенні */
    text-decoration: underline; /* Підкреслення при наведенні */
  }


/* Плавна прокрутка */
html {
  scroll-behavior: smooth;
}

/* Основне оформлення тіла */
body {
  font-family: 'Segoe UI', sans-serif; /* Шрифт */
  background-color: #f2f2f2; /* Світлий фон */
  color: #333; /* Темний текст */
  line-height: 1.6; /* Висота рядка */
}

/* Контейнер */
.container {
  width: 90%; /* Ширина контейнера */
  max-width: 1000px; /* Максимальна ширина */
  margin: 0 auto; /* Центрування */
  padding: 40px 20px; /* Внутрішні відступи */
}

/* Хедер */
header {
  background-color: #444; /* Темний фон */
  color: #fff; /* Білий текст */
}

/* Гнучке розміщення елементів хедера */
.header-flex {
  display: flex;
  justify-content: space-between; /* Розміщення елементів по краях */
  align-items: center;
  flex-wrap: wrap;
  position: relative;
  padding: 20px 0;
}

/* --- Стилі для логотипа (графічний + текстовий) --- */
.logo-wrapper {
  display: flex; /* Делаем контейнер Flexbox */
  align-items: center; /* Выравниваем по центру по вертикали */
  font-family: 'Dancing Script', cursive; /* Шрифт для тексту логотипу */
  font-size: 36px; /* Розмір шрифту */
  color: #FFD700; /* Золотий колір тексту */
  text-shadow: 2px 2px 3px rgba(0,0,0,0.2); /* Тінь для тексту */
}

/* Сховати основний заголовок h1*/
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* Навігація + телефон */
.nav {
  display: flex;
  gap: 20px;
}

.nav-phone {
  display: flex;
  gap: 30px;
  align-items: center;
  flex-wrap: wrap;
}

/* Адаптивні медіа-елементи */
.responsive-map {
  width: 100%;
  height: 400px;
  border: none;
  border-radius: 8px;
  box-shadow: 0 0 10px #FFD700;
  margin-top: 20px;
}

.responsive-media {
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 0 10px #FFD700;
  margin-top: 20px;
}
.responsive-media:hover {
  transform: scale(1.02);
  transition: transform 0.3s ease;
}

.responsive-video {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 */
  height: 0;
  overflow: hidden;
  max-width: 100%;
  border-radius: 8px;
  box-shadow: 0 0 10px #FFD700;
  margin-top: 20px;
}

.responsive-video iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Секції */
section {
  background-color: #fff;
  margin-bottom: 20px;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
}

/* Заголовки секцій */
section h2 {
  margin-top: 0;
  color: #333;
  margin-bottom: 15px;
}

/* Параграфи та списки */
section p, section li {
  margin-bottom: 10px;
}

/* Послуги - список */
.services ul {
  list-style: none;
  padding-left: 0;
}

/* Елементи списку */
.services li {
  padding-left: 20px;
  position: relative;
}

/* Іконка перед пунктами */
.services li::before {
  content: '✔';
  position: absolute;
  left: 0;
  color: #888;
}


/* --- Стили для іконок мессенджеров --- */
.contact {
  a:hover {
   color: #000000; /* Зміна кольору при наведенні */
  }
}
/* --- Стили для кнопок месенджерів при наведенні --- */
  a:hover img {
    transform: scale(1.2); /* Збільшення зображення при наведенні */
    transition: transform 0.3s ease; /* Плавна анімація */
  }
/* Відміна підкреслення при наведенні на іконки */
.icon-link:hover {
  text-decoration: none;
}
.icon-view {
  vertical-align: middle;
  width: 30px;
  height: 30px;
}

/* Футер */
.footer {
  background-color: #2a2a2a;
  color: #aaa;
  font-size: 12px;
  text-align: center;
  padding: 8px 0;
  border-top: 1px solid #444;
}

/* Контейнер футера */
.footer .container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 15px;
}

/* Стиль посилання "вгору" */
.footer-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

/* Стилізована стрілка */
.to-top {
  display: inline-block;
  width: 36px;
  height: 36px;
  background-color: #444;
  border-radius: 50%;
  color: white;
  font-size: 24px;
  line-height: 36px;
  text-align: center;
  text-decoration: none;
  position: relative;
  transition: background-color 0.3s ease;
}

.to-top::before {
  content: "↑";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.to-top:hover {
  transform: scale(1.1);
  box-shadow: 0 0 10px #FFD700;
  background-color: #666;
  color: #FFD700;
}
/* --- Бургер-кнопка --- */
.burger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 21px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1001;
}

.burger span {
  display: block;
  height: 3px;
  background: #FFD700;
  border-radius: 2px;
  transition: 0.3s;
}

/* Адаптив для мобільних */
@media (max-width: 768px) {
  .burger {
    display: flex;
  }

  .menu {
    display: none;
    flex-direction: column;
    width: 100%;
    background-color: #444;
    padding: 10px 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}
.menu.active {
  max-height: 500px;
  display: flex;
}

  .nav {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }

  .nav-phone {
    flex-direction: column;
    gap: 10px;
  }
}


