/* 기본 스타일 */
body {
  margin: 0;
  font-family: "Arial", sans-serif;
  line-height: 1.6;
  color: #333;
}
/* Запобігаємо горизонтальному скролу */
html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

/* Зображення та iframe адаптивні */
img,
iframe,
video {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Флекси та гріди без виходу за межі */
.container,
.about-content,
.advantages,
.services-grid,
.projects-grid {
  box-sizing: border-box;
  width: 100%;
}

/* Padding і margin */
body,
.container,
.hero-form,
.contact-form,
.site-footer {
  padding-left: 0;
  padding-right: 0;
  margin-left: 0;
  margin-right: 0;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* 헤더 스타일 */
.site-header {
  background-color: #f8f9fa;
  border-bottom: 1px solid #ddd;
}

.site-header .logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: #333;
  font-weight: bold;
  font-size: 1.2rem;
}

.site-header .logo img {
  height: 50px;
  margin-right: 10px;
}

.site-header .slogan {
  font-size: 0.9rem;
  color: #555;
}

/* 네비게이션 */
.main-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.main-nav ul {
  list-style: none;
  display: flex;
  margin: 0;
  padding: 0;
}

.main-nav ul li {
  margin: 0 15px;
}

.main-nav ul li a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
}

.main-nav ul li a:hover {
  color: #007bff;
}

.cta-button {
  background-color: #007bff;
  color: #fff;
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
}

.cta-button:hover {
  background-color: #0056b3;
}

/* 햄버거 메뉴 */
.menu-toggle {
  display: none;
}

.hamburger {
  display: none;
  font-size: 2rem;
  cursor: pointer;
}

/* 반응형 */
@media (max-width: 768px) {
  .main-nav {
    position: relative; /* раніше було absolute */
    width: 100%;
    flex-direction: column;
    display: flex; /* завжди видно */
    background-color: #f8f9fa;
    margin-top: 10px;
  }

  .main-nav ul {
    flex-direction: column;
    width: 100%;
    padding: 0;
    margin: 0;
  }

  .main-nav ul li {
    margin: 10px 0;
    text-align: left;
  }

  .main-nav .cta-button {
    margin: 10px 0 0 0;
    width: 100%;
    text-align: center;
  }
}

/* ===== Hero Section ===== */
.hero {
  position: relative;
  background: url("images/hero.webp") no-repeat center center/cover;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.55);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
}

.hero h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 20px;
  text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.4);
}

.hero p {
  font-size: 1.1rem;
  margin-bottom: 30px;
  color: #eaeaea;
}

/* CTA Button */
.hero-cta {
  display: inline-block;
  background-color: #007bff;
  color: #fff;
  padding: 12px 28px;
  border-radius: 6px;
  font-weight: bold;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.hero-cta:hover {
  background-color: #0056b3;
}

/* Форма */
.hero-form {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background-color: rgba(255, 255, 255, 0.1);
  padding: 20px;
  border-radius: 8px;
}

.hero-form input {
  padding: 10px;
  border: none;
  border-radius: 4px;
  outline: none;
}

.hero-form button {
  background-color: #28a745;
  color: #fff;
  border: none;
  padding: 10px;
  border-radius: 4px;
  cursor: pointer;
  font-weight: bold;
}

.hero-form button:hover {
  background-color: #1e7e34;
}

/* Адаптивність */
@media (max-width: 768px) {
  .hero {
    height: 90vh;
    padding: 0 15px;
  }

  .hero h1 {
    font-size: 1.8rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .hero-form {
    width: 100%;
    margin: 0 auto;
  }
}

/* ===== About Us Section ===== */
.about {
  padding: 80px 20px;
  background-color: #f8f9fa;
}

.about-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 40px;
}

.about-text {
  flex: 1 1 500px;
}

.about-text h2 {
  font-size: 2rem;
  margin-bottom: 20px;
  color: #222;
  position: relative;
}

.about-text h2::after {
  content: "";
  display: block;
  width: 60px;
  height: 4px;
  background-color: #007bff;
  margin-top: 10px;
}

.about-text p {
  color: #555;
  margin-bottom: 15px;
  line-height: 1.7;
}

/* Переваги */
.advantages {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 30px;
}

.advantage-item {
  background-color: #fff;
  flex: 1 1 200px;
  padding: 20px;
  text-align: center;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.advantage-item:hover {
  transform: translateY(-5px);
}

.advantage-item img {
  width: 50px;
  margin-bottom: 10px;
}

.advantage-item h3 {
  font-size: 1.1rem;
  color: #007bff;
  margin-bottom: 8px;
}

.advantage-item p {
  font-size: 0.95rem;
  color: #666;
}

/* Фото */
.about-image {
  flex: 1 1 400px;
  text-align: center;
}

.about-image img {
  max-width: 100%;
  border-radius: 15px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Адаптивність */
@media (max-width: 992px) {
  .about-content {
    flex-direction: column;
    text-align: center;
  }

  .advantages {
    justify-content: center;
  }
}

/* ===== Services Section ===== */
.services {
  padding: 80px 20px;
  background-color: #ffffff;
  text-align: center;
}

.services h2 {
  font-size: 2rem;
  margin-bottom: 15px;
  color: #222;
}

.services h2::after {
  content: "";
  display: block;
  width: 60px;
  height: 4px;
  background-color: #007bff;
  margin: 10px auto 20px;
}

.services-intro {
  max-width: 750px;
  margin: 0 auto 50px;
  color: #555;
  line-height: 1.7;
  font-size: 1.05rem;
}

/* Сітка послуг */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
}

.service-item {
  background-color: #f8f9fa;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

.service-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.service-item h3 {
  font-size: 1.2rem;
  margin: 15px 0 10px;
  color: #007bff;
}

.service-item p {
  padding: 0 15px 20px;
  color: #555;
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Адаптивність */
@media (max-width: 768px) {
  .service-item img {
    height: 180px;
  }

  .service-item h3 {
    font-size: 1.1rem;
  }

  .services-intro {
    font-size: 0.95rem;
  }
}

.contact-form button:hover {
  background-color: #0056b3;
}

@media (max-width: 768px) {
  .contact-form {
    width: 100%;
    padding: 0 10px;
  }
}

.site-footer a:hover {
  color: #007bff;
  text-decoration: underline;
}

@media (max-width: 768px) {
  .site-footer .container {
    flex-direction: column;
    gap: 30px;
  }
}
<style > .site-footer a:hover {
  color: #007bff;
  text-decoration: underline;
}

@media (max-width: 768px) {
  .site-footer .container {
    flex-direction: column;
    gap: 30px;
  }
}

/* ===== Мобільна адаптація (до 768px) ===== */
@media (max-width: 768px) {
  /* Хедер */
  .container {
    flex-direction: column;
    align-items: flex-start;
    padding: 0 15px;
  }

  .main-nav {
    position: relative; /* раніше було absolute */
    width: 100%;
    display: flex; /* меню завжди видно */
    flex-direction: column;
    background-color: #f8f9fa;
    margin-top: 10px;
  }

  .main-nav ul {
    flex-direction: column;
    width: 100%;
    padding: 0;
    margin: 0;
  }

  .main-nav ul li {
    margin: 10px 0;
    text-align: left;
  }

  .main-nav .cta-button {
    margin: 10px 0 0 0;
    width: 100%;
    text-align: center;
  }

  /* Hero */
  .hero {
    height: 90vh;
    padding: 0 15px;
  }

  .hero h1 {
    font-size: 1.8rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .hero-form {
    width: 100%;
    margin: 0 auto;
    padding: 15px;
  }

  /* About Us */
  .about-content {
    flex-direction: column;
    text-align: center;
    gap: 20px;
  }

  .about-text,
  .about-image {
    flex: 1 1 100%;
  }

  .advantages {
    flex-direction: column;
    gap: 15px;
  }

  /* Services */
  .services-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .service-item img {
    height: 180px;
  }

  .service-item h3 {
    font-size: 1.1rem;
  }

  .services-intro {
    font-size: 0.95rem;
  }

  /* Contact Form */
  .contact-form {
    width: 100%;
    padding: 0 10px;
  }

  .contact-form button {
    width: 100%;
  }

  /* Footer */
  .site-footer .container {
    flex-direction: column;
    gap: 30px;
    align-items: flex-start;
  }

  .site-footer a {
    font-size: 0.95rem;
  }
}


/* Cookie Banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: #222;
  color: #fff;
  padding: 15px 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  z-index: 9999;
  box-sizing: border-box;
}

.cookie-banner p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.4;
  flex: 1 1 auto;
}

.cookie-btn {
  background-color: #007bff;
  color: #fff;
  padding: 8px 16px;
  border-radius: 4px;
  text-decoration: none;
  cursor: pointer;
  flex: 0 0 auto;
  margin-left: 10px;
  font-weight: bold;
}

.cookie-btn:hover {
  background-color: #0056b3;
}

/* Закриття банера через чекбокс */
#cookie-accept {
  display: none;
}

#cookie-accept:checked + .cookie-banner {
  display: none;
}

/* Мобільна адаптація */
@media (max-width: 768px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    padding: 15px;
    gap: 10px;
  }

  .cookie-btn {
    width: 100%;
    text-align: center;
    margin-left: 0;
  }
}
