body {
  font-family: "Inter", sans-serif;
  background: linear-gradient(160deg, #001a00, #065f46, #0f766e); /* Темный, глубокий градиент */
  color: #fff;
  overflow-x: hidden;
  position: relative;
}

/* Узор труб */
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;
}

/* HERO */
.hero {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  height: 100vh;
  padding: 0 20px;
  position: relative;
  z-index: 2;
}

.hero-content {
  max-width: 800px;
  z-index: 2;
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 700;
  color: #f0fdf4;
  margin-bottom: 20px;
}

.hero p {
  font-size: 1.25rem;
  color: #d1fae5;
}

/* Анимация */
.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 1.5s ease-out forwards;
}

.delay-1 {
  animation-delay: 0.3s;
}
.delay-2 {
  animation-delay: 0.6s;
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@600&display=swap');

.logo-title {
  font-family: 'Orbitron', sans-serif;
  font-size: 4rem;
  letter-spacing: 4px;
  color: transparent;
  background-image: linear-gradient(
    90deg,
    #00ff94 0%,
    #ffffff 50%,
    #00ff94 100%
  );
  background-size: 200% 100%;
  background-position: 0% 50%;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation:
    fadeInZoom 1s ease-out forwards,
    scanner 3s linear infinite;
  text-shadow: 0 0 8px rgba(0, 255, 128, 0.2);
  opacity: 0;
  transform: scale(0.95);
}

.tagline {
  font-size: 1.25rem;
  color: #a7f3d0;
  margin-top: 15px;
  animation: fadeInUp 1.4s ease-out forwards;
  opacity: 0;
  transform: translateY(10px);
}

@keyframes fadeInZoom {
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scanner {
  0% {
    background-position: -200% 50%;
  }
  100% {
    background-position: 200% 50%;
  }
}

/* contact */
.top-contacts {
  position: static;
  top: 0;
  width: 100%;
  text-align: center;
  z-index: 1000;
  padding-top: 3px;
  animation: fadeInDown 0.8s ease forwards;
  transition: transform 0.4s ease;
  will-change: transform;
}

.contact-icons {
  display: inline-flex;
  padding: 8px 20px;
  background-color: rgba(0, 0, 0, 0.307);
  backdrop-filter: blur(6px);
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.contact-icons a {
  margin: 0 10px;
  font-size: 1.2rem;
  color: #c8fdd8;
  transition: color 0.3s, transform 0.2s;
}

.contact-icons a:hover {
  color: #00ff94;
  transform: scale(1.2);
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 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%;
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* showcase */

.showcase {
  min-height: 100vh;
  padding-top: 80px; /* учитываем высоту навбара */
  background: linear-gradient(to bottom, #ffffff, #ffffff);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.showcase-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  width: 100%;
  padding: 0 40px;
  gap: 40px;
  flex-wrap: wrap;
}

.showcase-text {
  flex: 1;
}

.showcase-text h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  color: #123f21;
}

.showcase-text p {
  font-size: 1.2rem;
  color: #2a4e39;
  line-height: 1.5;
}

.showcase-image {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.showcase-image img {
  max-width: 770px;
  height: auto;
}

/* Анимации */
@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);
  }
}

/* Наши услуги */
.services-section {
  padding: 80px 20px;
  background: #ffffff;
  text-align: center;
}

.section-title {
  font-size: 36px;
  font-weight: bold;
  margin-bottom: 40px;
  color: #222;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
}

.service-card {
  border-radius: 16px;
  padding: 30px 20px;
  transition: transform 0.3s ease;
}

.service-card .icon {
  font-size: 48px;
  margin-bottom: 20px;
  color: #007bff;
}

.service-card h3 {
  font-size: 20px;
  margin-bottom: 12px;
  color: #333;
}

.service-card p {
  color: #666;
  font-size: 15px;
  line-height: 1.5;
}

/* Наша продукция */
.products-section {
  padding: 80px 20px;
  background-color: #fff;
}

.products-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
}

.products-carousel {
  flex: 1 1 50%;
  overflow: hidden;
  max-width: 600px;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.carousel-track {
  display: flex;
  animation: scrollCarousel 20s linear infinite;
}

.carousel-track img {
  width: 300px;
  height: auto;
  margin-right: 20px;
  border-radius: 12px;
  object-fit: cover;
}

@keyframes scrollCarousel {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.products-text {
  flex: 1 1 45%;
  color: #222;
}

.products-text h2 {
  font-size: 36px;
  margin-bottom: 20px;
}

.products-text p {
  font-size: 16px;
  line-height: 1.6;
  color: #555;
}


/* footer */
footer {
    background-color: rgb(36, 36, 36);
    color: rgb(255, 255, 255);
    padding: 20px;
    z-index: 999;
    position: relative;
}

.footer-container {
    width: 100%;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

/* Колонки футера */
.footer-left,
.footer-middle,
form#call-back-form {
    width: 30%;
}

/* Изображение лого */
.footer-left img {
    width: 100%;
    max-width: 250px;
    height: auto;
}

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: 992px) {
  .showcase-content,
  .products-content {
    flex-direction: column;
    text-align: center;
    padding: 0 20px;
  }

  .showcase-image img,
  .products-carousel {
    max-width: 100%;
  }

  .services-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }
}

/* Телефоны */
@media (max-width: 768px) {
  /* Hero */
  .hero h1 {
    font-size: 2.2rem;
    position: relative;
    top: -100px; /* поднимаем текст чуть выше */
  }
  .hero p {
    font-size: 1rem;
    position: relative;
    top: -115px; /* поднимаем текст чуть выше */
  }


  /* Showcase */
  .showcase-text h2 {
    font-size: 1.8rem;
  }
  .showcase-text p {
    font-size: 1rem;
  }

  /* Services */
  .services-section {
    padding: 40px 10px;
  }

  .section-title {
    font-size: 1.8rem;
  }

  .service-card {
    padding: 20px;
  }

  /* Products */
  .products-section {
    padding: 40px 10px;
  }

  .products-text h2 {
    font-size: 1.8rem;
  }
  .products-text p {
    font-size: 1rem;
  }
}

/* Адаптация под мобильные */
@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;
  }
}