body {
  font-family: "Inter", sans-serif;
  background: linear-gradient(160deg, #001a00, #065f46, #0f766e); /* Темный, глубокий градиент */
  color: #fff;
  overflow-x: hidden;
  position: relative;
}

.fon {
  background-color: rgb(255, 255, 255);
}

/* Узор труб */
body::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("hero.png");
  background-size: cover;
  background-repeat: repeat;
  opacity: 0.1;
  z-index: 0;
  mix-blend-mode: overlay; /* Добавляет глубины и взаимодействие с цветами */
}

/* Виньетка (тени по краям) */
body::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, transparent 50%, rgba(0, 0, 0, 0.247) 100%);
  z-index: 1;
  pointer-events: none;
  mix-blend-mode: multiply;
}

/* Параллакс-слой */
.parallax-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 120%;
  height: 120%;
  background-image: url("hero.png");
  background-size: cover;
  background-repeat: repeat;
  opacity: 0.08;
  mix-blend-mode: overlay;
  z-index: 0;
  will-change: transform;
  pointer-events: none;
  transition: transform 0.1s ease-out;
}

.parallax-layer {
  position: fixed;
  top: 0;
  left: 0;
  width: 130%;
  height: 130%;
  background-image: url("hero.png");
  background-repeat: repeat;
  background-size: cover;
  pointer-events: none;
  will-change: transform;
  z-index: 0;
}

.layer-back {
  opacity: 0.04;
  mix-blend-mode: multiply;
  z-index: 0;
}

.layer-front {
  opacity: 0.08;
  mix-blend-mode: overlay;
  z-index: 1;
}

/* navbar */

.main-navbar {
  position: sticky;
  top: 0;
  z-index: 999;
  background-color: #1f1f1f;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.burger-wrapper { display: none; align-items: center; cursor: pointer; gap: 8px; padding: 0.75rem 1rem; }
.burger { display: flex; flex-direction: column; gap: 5px; }
.burger span { width: 22px; height: 3px; background: #e0ffe3; border-radius: 2px; }
.burger-label { color: #e0ffe3; font-size: 1rem; }

.main-navbar.animate {
  opacity: 1;
  transform: translateX(0);
}

.nav-links {
  display: flex;
  justify-content: center;
  padding: 14px 0;
  margin: 0;
  list-style: none;
  gap: 40px;
}

.nav-links a {
  text-decoration: none;
  color: #e0ffe3;
  font-size: 1.1rem;
  font-weight: 500;
  position: relative;
  transition: color 0.3s ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  width: 0%;
  height: 2px;
  bottom: -4px;
  left: 0;
  background-color: #00ff94;
  transition: width 0.3s ease;
}

.nav-links a:hover {
  color: #00ff94;
}

.nav-links a:hover::after {
  width: 100%;
}

@media (max-width: 768px) {
  .nav-links {
    flex-direction: column;
    gap: 20px;
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* contact */

.contact-map-section {
  min-height: 80vh;
  padding: 4rem 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
  align-items: flex-start;
  position: relative;
  z-index: 2;
}

.contact-info, .map-container {
  flex: 1 1 450px;
  padding: 2rem;
}

.contact-info h2,
.map-container h2 {
  margin-bottom: 1rem;
  color: #002200;
  font-size: 1.8rem;
  border-bottom: 2px solid #09ff00;
  padding-bottom: 0.5rem;
}

.contact-info h5,
.map-container h5 {
  margin-bottom: 1rem;
  color: #002f00d7;
  font-size: 1.05rem;
  padding-bottom: 0.5rem;
}


.contact-info p,
.contact-info li {
  color: #222;
  font-size: 1.2rem;
  line-height: 1.6;
}

.contact-info a {
  color: #006600;
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.contact-icons a {
  font-size: 2rem;
  padding-right: 10px;
  margin-top: 10px;
}

.contact-info a:hover {
  color: #00b348;
  text-decoration: none;
  font-size: 1.2rem;
}

.contact-icons a:hover {
  color: #00b348;
  text-decoration: none;
  font-size: 2.5rem;
}

.contact-info ul {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem 0;
}

.contact-info ul li {
  margin-bottom: 0.5rem;
}

.social-links li::before {
  color: #00b348;
}

.social-links a {
  color: #09ff00;
  font-weight: bold;
  transition: color 0.3s ease, transform 0.3s ease;
  display: inline-block;
}

.social-links a:hover {
  color: #00b348;
  transform: translateX(4px);
}

#map {
  width: 100%;
  height: 400px;
  border-radius: 12px;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
}

/* Анимации */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@media (max-width: 768px) {
  .showcase-content {
    flex-direction: column-reverse;
    padding: 20px;
    text-align: center;
  }

  .showcase-text h2 {
    font-size: 2rem;
  }

  .showcase-text p {
    font-size: 1rem;
  }
}

.animate-on-visible {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.animate-on-visible.visible {
  opacity: 1;
  transform: translateY(0);
}

.animate-right {
  transform: translateX(40px);
}
.animate-right.visible {
  transform: translateX(0);
  opacity: 1;
}

/* footer */
footer {
    background-color: rgb(36, 36, 36); /* Например, светло-серый фон для футера */
    color: rgb(255, 255, 255);
    padding: 20px;
    display: flex;
    justify-content: space-between; /* Разделяет столбики равномерно */
    z-index: 999;
    position: relative;
}

.footer-container {
    width: 100%;
    display: flex;
    justify-content: space-between; /* Разделяет столбики равномерно */
}

.footer-left, .footer-middle, .footer-right {
    width: 30%; /* Ширина каждого из столбиков */
}

.footer-left img {
    width: 375px;
    height: auto;

}

.footer-middle {
    display: flex;
    flex-direction: column; /* Выстраивает контактную информацию в столбик */
}

.footer-right {
    display: flex;
    flex-direction: column; /* Позволяет расположить текст и поля ввода вертикально */
}

p {
    margin: 5px 0; /* Желаемый отступ между строками текста */
}

.input-name, .input-phone {
    margin-top: 10px;
    padding: 10px;
    width: 95%; /* Поля ввода занимают всю ширину столбика */
    border: 1px solid #ccc; /* Обводка вокруг поля */
    border-radius: 4px; /* Скругление углов */
}

.submit-button {
    margin-top: 10px;
    padding: 10px;
    background-color: #4CAF50; /* Зелёная кнопка */
    color: white; /* Белый текст на кнопке */
    border: none; /* Без обводки */
    border-radius: 4px; /* Скругление углов кнопки */
    cursor: pointer; /* Курсор "рука" при наведении */
}

.social-icons a {
    margin-right: 10px; /* Отступ между иконками */
    text-decoration: none; /* Убираем подчеркивание */
}

.social-icons img {
    width: 30px; /* задайте нужный размер иконок */
    height: auto; /* сохраним пропорции */
    cursor: pointer; /* добавим указатель, чтобы было понятно, что это ссылка */
}

.success-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    background: #4CAF50;
    color: white;
    padding: 20px 30px;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0,0,0,0.3);
    z-index: 9999;
    opacity: 0;
    transition: all 0.4s ease;
    text-align: center;
}

.success-popup .checkmark {
    font-size: 2.5em;
    display: block;
    margin-bottom: 10px;
    animation: pop 0.5s ease;
}

@keyframes pop {
    0% { transform: scale(0); }
    60% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.success-popup.show {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.success-popup.hidden {
    display: none;
}

/* Планшеты */
@media (max-width: 1024px){
  .showcase-content{ padding: 0 24px; gap: 24px; }
  .showcase-image img { max-width: 400px; }
  .products-content{ gap: 24px; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 1024px) {
  .nav-links { gap: 1rem; }
  .footer-left img { max-width: 100%; height: auto; }
}

/* Адаптация под мобильные */
@media (max-width: 768px) {
    .footer-container {
        flex-direction: column;
    }

    form#call-back-form {
        order: 1;
    }
    .footer-middle {
        order: 2;
    }
    .footer-left {
        order: 3;
        text-align: left; /* выравнивание контента влево */
    }

    .footer-left,
    .footer-middle,
    form#call-back-form {
        width: 100%;
        margin-bottom: 20px;
    }

    .footer-left img {
        max-width: 200px;
        display: block;
        margin: 0; /* убираем автоцентрирование */
    }
}

/* Телефоны */
@media (max-width: 768px) {
  /* бургер-меню */
  .burger-wrapper { display: flex; }
  .nav-links { display: none; width: 90%; }
  .nav-links.active {
    display: flex !important; flex-direction: column; align-items: center; gap: 1rem;
    background: #1f1f1f; padding: 1rem;
  }
}