/* === Основні стилі === */
body {
  margin: 0;
  font-family: 'Segoe UI', sans-serif;

  color: #333;
  scroll-behavior: smooth;
  padding-top: 56px; /* висота топбару */
  background-color: #ececec	;
}
html, body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  width: 100%;
}

*, *::before, *::after {
  box-sizing: border-box;
}
/**/
.topbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(15, 15, 15, 0.85);
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  font-size: 20px;
  height: 56px;
  display: flex;
  justify-content: center;
}

.topbar .container {
  width: 100%;
  max-width: 1200px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 0px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  font-weight: bold;
  text-decoration: none;
}
.logo img {
  height: 55px;
}

.nav-links {
  display: flex;
  gap: 18px;
}
.nav-links a {
  text-decoration: none;
  color: #ffffff;
  font-weight: 500;
  font-size: 0.95em;
  transition: color 0.2s;
}
.nav-links a:hover {
  color: #4CAF50;
}

.social a {
  font-size: 30px;
  margin: 0 10px;
  transition: transform 0.3s;
}

/* Фірмові кольори */
.social a .fa-telegram {
  color: #0088cc;
}
.social a .fa-viber {
  color: #665CAC;
}
.social a .fa-whatsapp {
  color: #16911c;
}
.social a .fa-instagram {
  color: #c540e4;
}

/* Ховер-ефект */
.social a:hover {
  transform: scale(1.2);
}

.menu-toggle {
  display: none;
  font-size: 1.5em;
  color: #ffffff;
  cursor: pointer;
}

/* Mobile */
@media (max-width: 768px) {
	 
  .topbar {
    flex-wrap: wrap;
    height: auto;
    padding: 10px 16px;
    justify-content: space-between;
    font-size: 12px;
  }

  .topbar .nav-links {
    display: none;
    flex-direction: column;
    background: rgba(15, 15, 15, 0.95);
    position: absolute;
    top: 56px;
    right: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    padding: 16px;
    border-radius: 6px;
    width: 220px;
  }

  .topbar nav.active {
    display: flex;
  }

  .topbar .menu-toggle {
    display: block;
  }

 .topbar .social {
    display: grid;
    grid-template-columns: repeat(2, auto); /* 2 колонки */
    gap: 15px 25px; /* вертикальний і горизонтальний відступ */
    justify-content: center; /* вирівнювання по центру */
    width: 100%;
    margin-top: 10px;
margin-left: 10px;
  }
  .social a {
  font-size: 30px;
  margin: 0 0px;
  transition: transform 0.3s;
}
}
/* === Хедер === */
header {
  position: relative;
  height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  padding-top: 100px;
  background: #000;
}

header video,
header .fallback-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

header .fallback-image {
  display: none;
}

header::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1;
}

header .content {
  position: relative;
  z-index: 2;
  background: rgba(255, 255, 255, 0.15);
  padding: 40px 30px;
  border-radius: 20px;
  max-width: 800px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.25);
}


header h1 {
  font-size: 3em;
  margin-bottom: 20px;
}

header p {
  font-size: 1.5em;
  margin-bottom: 30px;
}

/* === Кнопка === */
.btn {
  background: #4CAF50;
  color: white;
  padding: 15px 30px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1.8em;
  animation: pulse 2s infinite;
  transition: transform 0.3s ease;
}

.btn:hover {
  background: #449d48;
  transform: scale(1.05);
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

/* === Адаптивність === */
@media (max-width: 768px) {
  .topbar {
    flex-direction: column;
    align-items: flex-start;
    padding: 12px;
  }
  .topbar .nav-links,
  .topbar .social {
    flex-direction: column;
    /*/gap: 10px;*/
    margin-top: 10px;
  }
  header h1 {
    font-size: 2em;
  }
  header p {
    font-size: 1.2em;
  }
  .btn {
    font-size: 1em;
    padding: 12px 24px;
  }
}

.section {
  padding: 60px 20px;
  max-width: 1200px;
  margin: auto;
  text-align: center;
}
.features,
.steps {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: center;
}
.features div,
.steps div {
  background: white;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  flex: 1 1 250px;
}
.features i,
.steps i {
  color: #4CAF50;
  font-size: 32px;
  margin-bottom: 10px;
  display: block;
}
.gallery a {
  color: inherit;
  text-decoration: none;
  display: block;
  position: relative;
  transition: transform 0.3s ease;
}
.gallery a:hover {
  transform: scale(1.02);
}
.gallery a::before {
  content: "\f03e"; /* іконка зображення */
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  top: 10px;
  left: 10px;
  color: #4CAF50;
  font-size: 20px;
  background: rgba(255,255,255,0.8);
  padding: 5px;
  border-radius: 5px;
}
.gallery a[data-caption*=\"відео\"]::before {
  content: "\f144"; /* іконка відео */
}
/* Кнопка відкриття */
.btn {
  display: inline-block;
  background: #4CAF50;
  color: white;
  padding: 15px 30px;
  border: none;
  border-radius: 10px;
  font-size: 1.8em;
  font-weight: 600;
  cursor: pointer;
  margin: 50px auto;
  transition: background 0.3s ease, transform 0.3s ease;
}

.btn:hover {
  background: #388e3c;
  transform: translateY(-2px);
}

/* Модальне тло */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

/* Модальне вікно */
.modal-content {
  background: #ffffff;
  padding: 40px 30px;
  border-radius: 20px;
  max-width: 500px;
  width: 100%;
  position: relative;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
  animation: fadeIn 0.3s ease;
}

/* Заголовок */
.modal-content h2 {
  margin-top: 0;
  font-size: 1.8em;
  text-align: center;
  color: #2e7d32;
}

/* Кнопка закриття */
.close {
  position: absolute;
  top: 14px;
  right: 18px;
  font-size: 28px;
  font-weight: bold;
  color: #aaa;
  cursor: pointer;
  transition: color 0.2s ease;
}
.close:hover {
  color: #000;
}

/* Інпут та textarea */
.modal-content input,
.modal-content textarea {
  width: 100%;
  margin-bottom: 15px;
  padding: 14px;
  font-size: 1em;
  border: 1px solid #ccc;
  border-radius: 10px;
  transition: border 0.3s ease, box-shadow 0.3s ease;
}

.modal-content input:focus,
.modal-content textarea:focus {
  border-color: #4CAF50;
  outline: none;
  box-shadow: 0 0 6px rgba(76, 175, 80, 0.5);
}

/* Кнопка надсилання */
.modal-content .btn {
  display: block;
  width: 100%;
  margin-top: 10px;
  font-weight: bold;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Адаптивність */
@media (max-width: 480px) {
  .modal-content {
    padding: 30px 20px;
  }

  .modal-content h2 {
    font-size: 1.5em;
  }
}

@media(max-width: 768px) {
  .features div,
  .steps div {
    flex: 1 1 100%;
  }
  header h1 {
    font-size: 2em;
  }
  header p {
    font-size: 1.1em;
  }
}
/* Стилі для секції Галерея */
#gallery {
  max-width: 1200px;
  margin: 60px auto;
  padding: 60px 20px;
  border-radius: 20px;
  background: #fdfdfd url('/img/gallery-bg-pattern.svg') top left repeat;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.06);
  border: 1px solid #e0ece6;
  position: relative;
}
    /* background: white; */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.gallery-item {
  background: #cccccc;
  border-radius: 10px;
  padding: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.gallery-item-title {
  background: #4CAF50;
  color: #fff;
  padding: 8px 12px;
  border-radius: 6px;
  margin-bottom: 12px;
  font-weight: bold;
  text-align: center;
}

.gallery-item img,
.gallery-item video {
  width: 100%;
  border-radius: 8px;
}
.gallery-title {
  font-size: 2.4em;
  text-align: center;
  margin-bottom: 40px;
  color: #2a2a2a;
  font-weight: 700;
  position: relative;
}

.gallery-title::after , .section-title::after, .testimonials-title::after, .steps-title::after, .comparison-title::after{
  content: '';
  width: 60px;
  height: 4px;
  background: #4CAF50;
  display: block;
  margin: 12px auto 0;
  border-radius: 2px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
  margin-top: 20px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  background: #cccccc;
}

.gallery-item:hover {
  transform: scale(1.03);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.15);
}

.gallery-item img,
.gallery-item video {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 16px;
}

.caption {
  position: absolute;
  bottom: 0;
  width: 100%;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  padding: 12px 18px;
  font-size: 1em;
  display: flex;
  align-items: center;
  gap: 10px;
  border-radius: 0 0 16px 16px;
  font-weight: 500;
  text-decoration: none;
  backdrop-filter: blur(4px);
}

.caption i {
  color: #4CAF50;
  font-size: 1.3em;
}

@media (max-width: 768px) {
  .gallery-title {
    font-size: 1.8em;
  }
  .gallery-grid {
    gap: 20px;
  }
  .caption {
    font-size: 0.95em;
    padding: 10px 14px;
  }
}

/* Стилі для секції Чому обирають нас */
#why-us {
  background: linear-gradient(135deg, #eefdf5, #d8fbe7);
  padding: 60px 20px;
  margin: 60px auto;
  border-radius: 20px;
  border: 1px solid #cceedd;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.05);
  max-width: 1200px;
  text-align: center;
}

#why-us h2 {
  font-size: 2.4em;
  color: #2a2a2a;
  margin-bottom: 40px;
  font-weight: 700;
}

#why-us h2::after {
  content: '';
  width: 60px;
  height: 4px;
  background: #4CAF50;
  display: block;
  margin: 12px auto 0;
  border-radius: 2px;
}

#why-us .features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 30px;
}

#why-us .features div {
  background: white;
  padding: 30px 20px;
  border-radius: 16px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  font-size: 1em;
}

#why-us .features div:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.1);
}

#why-us .features i {
  font-size: 1.8em;
  margin-bottom: 12px;
  color: #4CAF50;
}

@media (max-width: 768px) {
  #why-us h2 {
    font-size: 2em;
  }
  #why-us .features div {
    font-size: 0.95em;
  }
}

#contact {
  background: linear-gradient(135deg, #e8f5e9, #f1f8e9);
  padding: 60px 20px;
   border-radius: 16px;
}

#contact .section-title {
  font-size: 2.4em;
  margin-bottom: 30px;
 
  text-align: center;
}

#contact .features {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: center;
}

#contact .contact-card {
  background: #fff;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  text-align: center;
  flex: 1 1 250px;
  transition: transform 0.3s ease;
}

#contact .contact-card:hover {
  transform: translateY(-5px);
}

#contact .contact-icon {
  font-size: 32px;
  color: #4CAF50;
  margin-bottom: 10px;
}

#contact .contact-card a {
  display: inline-block;
  margin-top: 8px;
  color: #333;
  text-decoration: none;
  font-weight: 500;
}

#contact .contact-card a:hover {
  color: #4CAF50;
}

#contact .contact-map {
  margin-top: 40px;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

#contact .contact-map iframe {
  width: 100%;
  height: 400px;
  border: 0;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
.link-card {
  display: block;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s, box-shadow 0.2s;
}
.link-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  background-color: #f0f0f0;
}

@media (max-width: 768px) {
  #contact .contact-card {
    flex: 1 1 100%;
  }

  #contact .section-title {
    font-size: 1.8em;
  }
}
/* Стилі для секції Поширені запитання */
#faq {
  width: 100%;
  margin: 60px auto;
  padding: 40px 20px;
  border-radius: 16px;
  background: linear-gradient(135deg, #f1fdf2, #e0f7e9);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
  border: 1px solid #d4f0da;
}
#faq h2 {
  font-size: 2.4em;
  color: #2a2a2a;
  margin-bottom: 40px;
  font-weight: 700;
}
   .faq-container {
    max-width: 800px;
    margin: 40px auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
  }
  .faq-item {
    border-left: 5px solid #4CAF50;
    border-radius: 8px;
    padding: 15px 20px;
    background: #ffffff;
    transition: box-shadow 0.3s ease, background-color 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  }
  .faq-item:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    background-color: #f2fdf2;
  }
  .faq-question {
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.1em;
    color: #2c3e50;
  }
  .faq-question i {
    color: #4CAF50;
    font-size: 1.3em;
  }
  .faq-answer {
    display: none;
    padding: 10px 0 0 30px;
    font-size: 1em;
    color: #555;
    transition: all 0.3s ease;
  }
  .faq-answer.visible {
    display: block;
  }
  /* Стилі для секції Відгуки клієнтів */
#testimonials {
  background: linear-gradient(135deg, #f6fbf4, #e3f6e8);
  padding: 60px 20px;
  margin: 60px auto;
  border-radius: 20px;
  border: 1px solid #dcefe1;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.05);
	width: 100%;
  text-align: center;
}

#testimonials h2 {
  font-size: 2.2em;
  color: #2a2a2a;
  margin-bottom: 40px;
  font-weight: 700;
}
#testimonials h2after{
    content: '';
    width: 60px;
    height
Specifies the height of the content area, padding area or border area (depending on 'box-sizing') of certain boxes.
Learn more
Don't show
: 4px;
    background: #4CAF50;
    display: block;
    margin: 12px auto 0;
    border-radius: 2px;}
#testimonials .features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

#testimonials .features div {
  background: white;
  padding: 24px 20px;
  border-radius: 16px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  font-size: 1em;
}

#testimonials .features div:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

#testimonials .features strong {
  display: block;
  font-size: 1.1em;
  color: #4CAF50;
  margin-bottom: 8px;
}

@media (max-width: 768px) {
  #testimonials h2 {
    font-size: 1.8em;
  }
  #testimonials .features div {
    font-size: 0.95em;
  }
}
/* Стилі для секції Як ми працюємо */
#steps {
  background: linear-gradient(135deg, #f4fdf9, #e8faf0);
  padding: 60px 20px;
  margin: 60px auto;
  border-radius: 20px;
  border: 1px solid #d4f1e5;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.04);
  max-width: 1200px;
  text-align: center;
}

#steps h2 {
  font-size: 2.3em;
  color: #2a2a2a;
  margin-bottom: 40px;
  font-weight: 700;
}

#steps h2::after {
  content: '';
  width: 60px;
  height: 4px;
  background: #4CAF50;
  display: block;
  margin: 12px auto 0;
  border-radius: 2px;
}

#steps .steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
}

#steps .steps div {
  background: white;
  padding: 30px 20px;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  font-size: 1em;
  text-align: left;
  position: relative;
}

#steps .steps div:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.08);
}

#steps .steps div::before {
  content: '🛠️';
  position: absolute;
  top: -10px;
  right: -10px;
  font-size: 1.5em;
}

#steps .steps div:nth-child(1)::before { content: '📞'; }
#steps .steps div:nth-child(2)::before { content: '📍'; }
#steps .steps div:nth-child(3)::before { content: '🔧'; }
#steps .steps div:nth-child(4)::before { content: '🧰'; }
#steps .steps div:nth-child(5)::before { content: '🧹'; }
#steps .steps div:nth-child(6)::before { content: '🛡️'; }

@media (max-width: 768px) {
  #steps h2 {
    font-size: 1.8em;
  }
  #steps .steps div {
    font-size: 0.95em;
  }
}
#advantages {
  background: linear-gradient(135deg, #f2fdf2, #e6f7e6);
  padding: 60px 20px;
  margin: 60px auto;
  border-radius: 20px;
  border: 1px solid #d3edd8;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.05);
  max-width: 1200px;
  text-align: center;
}

#advantages h2 {
  font-size: 2.4em;
  color: #2a2a2a;
  margin-bottom: 40px;
  font-weight: 700;
  position: relative;
}

#advantages h2::before {
  content: "\f005"; /* Іконка зірки */
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  margin-right: 10px;
  color: #4CAF50;
}

#advantages h2::after {
  content: '';
  width: 60px;
  height: 4px;
  background: #4CAF50;
  display: block;
  margin: 12px auto 0;
  border-radius: 2px;
}

#advantages .features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 30px;
  margin-top: 30px;
}

#advantages .features div {
  background: white;
  padding: 30px 20px;
  border-radius: 16px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  font-size: 1em;
}

#advantages .features div:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.1);
}

#advantages .features i {
  font-size: 1.8em;
  margin-bottom: 10px;
  color: #4CAF50;
}

@media (max-width: 768px) {
  #advantages h2 {
    font-size: 2em;
  }
  #advantages .features div {
    font-size: 0.95em;
  }
}
/* Модальне вікно */
.modal {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

/* Показ при активації (через JS просто додаєш клас .active) */
.modal.active {
  display: flex;
}

.modal .form-content {
  background: #fff;
  padding: 30px;
  border-radius: 10px;
  position: relative;
  max-width: 400px;
  width: 90%;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  animation: fadeIn 0.3s ease;
}

.modal .close-form {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 24px;
  cursor: pointer;
  color: #888;
}

.modal h3 {
  margin-bottom: 15px;
  text-align: center;
  color: #333;
}

.modal input[type="text"],
.modal input[type="tel"] {
  width: 100%;
  margin-bottom: 10px;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
}

.modal .form-message {
  color: red;
  font-size: 0.9em;
  margin-bottom: 10px;
}

.modal .btn {
  width: 100%;
  padding: 10px;
  background-color: #4CAF50;
  color: #fff;
  border: none;
  border-radius: 5px;
  font-weight: bold;
  cursor: pointer;
}

.toast-success {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #4CAF50;
  color: #fff;
  padding: 20px 40px;
  font-size: 35px;
  font-weight: bold;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  z-index: 9999;
  display: none;
  opacity: 0;
  transition: opacity 0.1s ease;
}

.toast-success.show {
  display: block;
  opacity: 1;
}

@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}
    input:hover, textarea:hover {
      border-color: #388e3c;
      box-shadow: 0 0 8px rgba(56, 142, 60, 0.3);
    }
    button.btn:hover {
      background: #357a38 !important;
      transform: scale(1.05);
    }
    input:hover, textarea:hover {
      border-color: #388e3c;
      box-shadow: 0 0 8px rgba(56, 142, 60, 0.3);
    }
    button.btn:hover {
      background: #357a38 !important;
      transform: scale(1.05);
    }
 .form-between-section {
    background: linear-gradient(135deg, #eefef3, #d9fbe8);
    padding: 50px 20px;
    margin: 60px auto;
    text-align: center;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
    max-width: 900px;
  }

  .form-between-section h3 {
    font-size: 2em;
    margin-bottom: 20px;
    color: #2e7d32;
  }

  .styled-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 500px;
    margin: auto;
  }

  .styled-form .form-group {
    position: relative;
  }

  .styled-form .icon-input {
    position: absolute;
    top: 50%;
    left: 12px;
    transform: translateY(-50%);
    color: #4CAF50;
    font-size: 1.2em;
    pointer-events: none;
    z-index: 1;
  }

  .styled-form input {
    width: 100%;
    padding: 14px 14px 14px 38px;
    border-radius: 8px;
    border: 1px solid #ccc;
    background: transparent;
    font-size: 1em;
    outline: none;
    transition: border-color 0.3s, box-shadow 0.3s;
  }

  .styled-form input:focus {
    border-color: #4CAF50;
    box-shadow: 0 0 8px rgba(76, 175, 80, 0.3);
  }

  .styled-form label {
    position: absolute;
    top: 50%;
    left: 38px;
    transform: translateY(-50%);
    color: #888;
    font-size: 1em;
    transition: 0.2s ease all;
    pointer-events: none;
    background: #eefef3;
    z-index: 2;
  }

  .styled-form input:focus ~ label,
  .styled-form input:not(:placeholder-shown) ~ label {
    top: -10px;
    left: 30px;
    font-size: 0.85em;
    padding: 0 4px;
    color: #4CAF50;
  }

  .form-between-section button {
    padding: 14px;
    font-weight: bold;
    background: #4CAF50;
    border: none;
    color: white;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
  }

  .form-between-section button:hover {
    background: #388e3c;
    transform: scale(1.03);
  }

  @media (max-width: 768px) {
    .form-between-section h3 {
      font-size: 1.5em;
    }
  }
    /* === Порівняльна таблиця утеплювачів === */
/* === Десктопна таблиця === */
.comparison-table-wrapper {
  overflow-x: auto;
  margin-top: 20px;
}

#comparison {
    background: linear-gradient(135deg, #e8f5e9, #f1f8e9);
    padding: 60px 20px;
    border-radius: 16px;
}
#comparison h2 {
     font-size: 2.3em;
    color: #2a2a2a;
    margin-bottom: 40px;
    font-weight: 700;
}
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  text-align: center;
  font-size: 15px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  overflow: hidden;
}

.comparison-table thead {
  background: #4CAF50;
  color: white;
}

.comparison-table th,
.comparison-table td {
  padding: 12px 10px;
  border: 1px solid #ddd;
}

.comparison-table td.best {
  font-weight: bold;
  background: #e8f5e9;

}

.mobile-only {
  display: none;
}

/* Показувати .mobile-only лише на екранах до 768px */
@media (max-width: 768px) {
  .mobile-only {
    display: block;
  }

  /* Сховати велику таблицю на мобілці, якщо є */
  .desktop-only {
    display: none;
  }

  .comparison-cards {
    display: flex;
    flex-direction: column;
    gap: 16px;
  }

  .comparison-card {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
    padding: 16px;
    font-size: 0.95em;
    text-align: left;
  }

  .comparison-card .characteristic {
    font-weight: bold;
    margin-bottom: 8px;
    color: #4CAF50;
    font-size: 1.1em;
  }

  .comparison-card .best {
    color: #2e7d32;
    font-weight: bold;
  }
}

.footer {
  background: #1a1a1a;
  color: #ccc;
  padding: 20px;
  font-size: 14px;
}
.footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: auto;
  gap: 20px;
}

.footer-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1 1 200px;
}
.footer-logo {
  height: 50px;
  border-radius: 6px;
}

.footer-center {
  text-align: center;
  flex: 1 1 200px;
}

.footer-right {
  text-align: right;
  flex: 1 1 200px;
}

.footer a {
  color: #4CAF50;
  text-decoration: none;
}
.footer a:hover {
  text-decoration: underline;
}

.social-icons {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  font-size: 20px;
  margin-bottom: 8px;
}
.back-to-top {
  font-size: 13px;
  display: inline-block;
  margin-top: 4px;
}

/* Модальне вікно */
.modal {
  display: none;
  position: fixed;
  z-index: 1001;
  left: 0; top: 0;
  width: 100vw; height: 100vh;
  background-color: rgba(0, 0, 0, 0.7);
  overflow: auto;
}

.modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal .form-content {
  background-color: #ffffff;
  border-radius: 16px;
  max-width: 500px;
  width: 100%;
  padding: 32px 24px;
  position: relative;
  box-shadow: 0 12px 24px rgba(0,0,0,0.2);
  animation: fadeInScale 0.3s ease;
}

@keyframes fadeInScale {
  from { transform: scale(0.95); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.modal .form-content h3 {
  margin-top: 0;
  color: #2e7d32;
  text-align: center;
}

.modal .close-form {
  position: absolute;
  right: 16px;
  top: 16px;
  font-size: 24px;
  color: #aaa;
  cursor: pointer;
  transition: color 0.2s;
}

.modal .close-form:hover {
  color: #000;
}

.modal .form-group {
  position: relative;
  margin-bottom: 20px;
}

.modal .icon-input {
  position: absolute;
  top: 50%;
  left: 12px;
  transform: translateY(-50%);
  color: #4CAF50;
  font-size: 1.1em;
}

.modal input[type="text"],
.modal input[type="tel"] {
  width: 100%;
  padding: 14px 14px 14px 40px;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-size: 1em;
  transition: border 0.3s;
}

.modal input:focus {
  border-color: #4CAF50;
  outline: none;
}

.modal label {
  position: absolute;
  top: -10px;
  left: 40px;
  font-size: 0.8em;
  background: #fff;
  padding: 0 4px;
  color: #666;
}

.modal .btn {
  width: 100%;
  padding: 14px;
  background: #4CAF50;
  color: white;
  border: none;
  font-weight: bold;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s;
}

.modal .btn:hover {
  background: #388e3c;
}

.modal .form-message {
  margin-top: 8px;
  color: red;
  font-size: 0.9em;
  text-align: center;
}

@media (max-width: 500px) {
  .modal .form-content {
    padding: 24px 16px;
  }

  .modal .btn {
    font-size: 1em;
  }
}
/* Стилі анімованих підписів */
.form-group {
  position: relative;
  margin-bottom: 20px;
}

.form-group input {
  width: 100%;
  padding: 14px 14px 14px 40px;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-size: 1em;
  transition: border-color 0.3s;
  background: #fff;
}

.form-group input:focus {
  border-color: #4CAF50;
  outline: none;
}

.form-group label {
  position: absolute;
  left: 40px;
  top: 25px;
  background: #fff;
  padding: 0 4px;
  color: #999;
  font-size: 1em;
  transition: 0.2s ease all;
  pointer-events: none;
}

.form-group input:focus + label,
.form-group input:not(:placeholder-shown) + label {
  top: -8px;
  font-size: 0.8em;
  color: #4CAF50;
}
/* Адаптив */
@media (max-width: 768px) {
  .footer-content {
    flex-direction: column;
    text-align: center;
  }
  .footer-left, .footer-center, .footer-right {
    text-align: center;
    justify-content: center;
  }
  .social-icons {
    justify-content: center;
  }
}
.form-message {
  background: #ffecec;
  color: #b30000;
  padding: 10px 14px;
  margin-top: 10px;
  border-left: 4px solid #ff4d4d;
  border-radius: 6px;
  font-size: 14px;
  display: none; /* Показувати лише при помилці */
  transition: all 0.3s ease;
}

.form-message.show {
  display: block;
}

.form-error-icon {
  margin-right: 6px;
}
