* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

a {
  text-decoration: none;
  color: #ffffff;
}

body {
  font-family: "Arial", sans-serif;
  line-height: 1.6;
  color: #333;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.header {
  background: rgba(0, 0, 0, 0.8);
  color: white;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-icon {
  background: white;
  color: black;
  padding: 8px;
  border-radius: 4px;
  font-size: 20px;
}

.logo-main {
  font-weight: bold;
  font-size: 16px;
}

.logo-sub {
  font-size: 12px;
  opacity: 0.8;
}

.nav {
  display: flex;
  gap: 30px;
}

.nav a {
  color: white;
  text-decoration: none;
  transition: color 0.3s;
}

.nav a:hover {
  color: #3b82f6;
}

.phone {
  display: flex;
  align-items: center;
  gap: 5px;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 20px;
  cursor: pointer;
}

/* Hero Section */
.hero {
  height: 100vh;
  background-image: url("img/hero.webp"); 
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  color: white;
  position: relative;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 600px;
}

.hero-title {
  font-size: 3rem;
  font-weight: bold;
  margin-bottom: 20px;
  line-height: 1.2;
}

.hero-subtitle {
  font-size: 1.2rem;
  margin-bottom: 30px;
  opacity: 0.9;
}

.hero-buttons {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.btn {
  padding: 12px 24px;
  border: none;
  border-radius: 4px;
  font-size: 14px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s;
}

.btn-primary {
  background: #3b82f6;
  color: white;
}

.btn-primary:hover {
  background: #2563eb;
}

.btn-secondary {
  background: transparent;
  color: white;
  border: 2px solid white;
}

.btn-secondary:hover {
  background: white;
  color: black;
}

/* Stats Section */
.stats {
  background: white;
  padding: 60px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  text-align: center;
}

.stat-number {
  width: 40px;
  height: 40px;
  background: #3b82f6;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 15px;
  font-weight: bold;
}

.stat-value {
  font-size: 2rem;
  font-weight: bold;
  color: #333;
  margin-bottom: 10px;
}

.stat-label {
  color: #666;
}

/* Partners Section */
.partners {
  background: #f8f9fa;
  padding: 60px 0;
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  font-weight: bold;
  margin-bottom: 50px;
  color: #333;
}

.partners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 30px;
  align-items: center;
}

.partner-logo {
  background: white;
  padding: 20px;
  border-radius: 8px;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
  transition: transform 0.3s;
}

.partner-logo:hover {
  transform: translateY(-5px);
}

.partner-logo img {
  max-width: 100%;
  max-height: 80px;
  width: auto;
  height: auto;
  object-fit: contain;
}

/* Applications Section */
.applications {
  padding: 60px 0;
}

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

.application-card {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s;
}

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

.application-image {
  height: 200px;
  background: #f0f0f0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
}

.application-card h3 {
  padding: 20px;
  font-size: 1.2rem;
  color: #000000;
}

/* Certification Section */
.certification {
  background: #f8f9fa;
  padding: 60px 0;
}

.certificate-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}


.certificates-slider {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 40px;
}

.certificates-container {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth; 
  -webkit-overflow-scrolling: touch;
  padding: 10px 0;
}

.certificate {
  flex: 0 0 auto;
  width: 180px;
  height: 250px;
  background: white;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  scroll-snap-align: start;
  overflow: hidden;
  background-size: cover;
}

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: white;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  font-size: 20px;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  z-index: 10;
}

/* Advantages Section */
.advantages {
  padding: 60px 0;
}

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

.advantage-card {
  background: white;
  padding: 30px;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s;
}

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

.advantage-icon {
  font-size: 3rem;
  margin-bottom: 20px;
}

.advantage-card h3 {
  font-size: 1.2rem;
  margin-bottom: 15px;
  color: #333;
}

.advantage-divider {
  width: 50px;
  height: 2px;
  background: #3b82f6;
  margin: 0 auto 20px;
}

.advantage-card p {
  color: #666;
  font-size: 0.9rem;
  line-height: 1.6;
}

/* Projects Section */
.projects {
  background: #f8f9fa;
  padding: 80px 0;
}

.projects-slider {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
  overflow: hidden;
}

.projects-container {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.project-slide {
  min-width: 100%;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
}

.project-slide.active {
  opacity: 1;
}

.project-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  padding: 0 20px;
}

.project-item {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.project-image {
  position: relative;
  height: 300px;
  overflow: hidden;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.project-item:hover .project-image img {
  transform: scale(1.05);
}

.project-info {
  padding: 25px;
}

.project-info h3 {
  font-size: 1.4rem;
  font-weight: bold;
  color: #333;
  margin-bottom: 15px;
}

.project-divider {
  width: 50px;
  height: 3px;
  background: #3b82f6;
  border-radius: 2px;
}

.projects-slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: white;
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  font-size: 24px;
  font-weight: bold;
  color: #3b82f6;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  z-index: 10;
}

.projects-slider-btn:hover {
  background: #3b82f6;
  color: white;
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.3);
}

.projects-slider-btn.prev {
  left: 15px;
}

.projects-slider-btn.next {
  right: 15px;
}

.projects-pagination {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 40px;
}

.pagination-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #d1d5db;
  cursor: pointer;
  transition: all 0.3s ease;
}

.pagination-dot:hover {
  background: #9ca3af;
  transform: scale(1.2);
}

.pagination-dot.active {
  background: #3b82f6;
  transform: scale(1.3);
}

/* Mobile Responsive for Projects */
@media (max-width: 768px) {
  .project-images {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 0 10px;
  }

  .projects-slider-btn {
    width: 40px;
    height: 40px;
    font-size: 18px;
  }

  .projects-slider-btn.prev {
    left: -20px;
  }

  .projects-slider-btn.next {
    right: -20px;
  }

  .project-image {
    height: 250px;
  }

  .project-info {
    padding: 20px;
  }

  .project-info h3 {
    font-size: 1.2rem;
  }
}

@media (max-width: 480px) {
  .projects-slider-btn.prev {
    left: -15px;
  }

  .projects-slider-btn.next {
    right: -15px;
  }

  .projects-slider-btn {
    width: 35px;
    height: 35px;
    font-size: 16px;
  }
}

/* About Section */
.about {
  background: #f8f9fa;
  padding: 60px 0;
}

.about-content {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 50px;
}

.about-main {
  font-size: 1.2rem;
  font-weight: bold;
  margin-bottom: 20px;
  color: #333;
}

.about-text {
  color: #666;
  line-height: 1.8;
}

.about-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.gallery-item {
  height: 200px;
  background: white;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: #666;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

/* Products Section */
.products {
  padding: 60px 0;
}

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

.product-card {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  position: relative;
  transition: transform 0.3s;
}

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

.product-badge {
  position: absolute;
  top: 15px;
  left: 15px;
  background: #22c55e;
  color: white;
  padding: 5px 10px;
  border-radius: 4px;
  font-size: 0.8rem;
  z-index: 2;
}

.product-image {
  height: 450px;
  background: #f0f0f0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  position: relative;
  overflow: hidden;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.product-image:hover img {
  transform: scale(1.05);
}

.product-card h3 {
  padding: 20px 20px 10px;
  font-size: 1.2rem;
  color: #333;
}

.product-divider {
  width: 50px;
  height: 2px;
  background: #3b82f6;
  margin: 0 20px 15px;
}

.product-price {
  padding: 0 20px 20px;
  color: #666;
  font-weight: bold;
}

/* Contact Form Section */
.contact-form {
  background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)),
    url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 600"><rect fill="%23444" width="1200" height="600"/><text x="50%" y="50%" text-anchor="middle" dy=".3em" fill="white" font-size="30">Производственный комплекс</text></svg>');
  background-size: cover;
  background-position: center;
  padding: 80px 0;
  position: relative;
}

.contact-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
}

.contact-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.contact-title {
  color: white;
  font-size: 2.5rem;
  font-weight: bold;
  margin-bottom: 30px;
  line-height: 1.2;
}

.callback-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.callback-form input {
  padding: 15px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  font-size: 16px;
}

.callback-form input::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

.privacy-notice {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.contact-image {
  display: flex;
  justify-content: center;
  align-items: center;
}

.facility-image {
  background: rgba(255, 255, 255, 0.1);
  padding: 60px 40px;
  border-radius: 8px;
  color: white;
  text-align: center;
  font-size: 1.2rem;
}

/* Footer */
.footer {
  background: #f8f9fa;
  padding: 60px 0 20px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-section h3 {
  font-size: 1.1rem;
  font-weight: bold;
  margin-bottom: 20px;
  color: #333;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 10px;
  color: #666;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.contact-item {
  color: #666;
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-bottom {
  border-top: 1px solid #ddd;
  padding-top: 20px;
  text-align: center;
  color: #666;
  font-size: 0.9rem;
}

.footer-link {
  color: #000000;
}

/* Social Buttons */
.social-buttons {
  position: fixed;
  right: 20px;
  bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 1000;
}

.social-btn {
  width: 50px;
  height: 50px;
  border: none;
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  transition: transform 0.3s;
}

.social-btn:hover {
  transform: scale(1.1);
}

.social-btn.instagram {
  background: #e1306c;
  color: white;
}

.social-btn.whatsapp {
  background: #25d366;
  color: white;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .nav {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.9);
    flex-direction: column;
    padding: 20px;
    gap: 15px;
  }

  .nav.active {
    display: flex;
  }

  .mobile-menu-btn {
    display: block;
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .contact-content {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .contact-image {
    display: none;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 10 15px;
  }

  .hero-title {
    font-size: 1.5rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .applications-grid,
  .products-grid {
    grid-template-columns: 1fr;
  }
}

.materials-section {
            padding: 80px 0;
            background: white;
        }
        
        .material-container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 20px;
        }
        
        .material-header {
            text-align: center;
            margin-bottom: 50px;
        }
        
        .material-title {
            font-size: 2.5rem;
            font-weight: bold;
            color: #333;
            margin-bottom: 20px;
        }
        
        .material-divider {
            width: 80px;
            height: 3px;
            background: #3b82f6;
            margin: 0 auto 30px;
        }
        
        .material-content {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 40px;
            align-items: center;
        }
        
        .material-image {
            height: 400px;
            background: #f8f9fa;
            border-radius: 8px;
            overflow: hidden;
            display: flex;
            align-items: center;
            justify-content: center;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
        }
        
        .material-text {
            color: #666;
            line-height: 1.8;
            font-size: 1.1rem;
        }
        
        .material-features {
            margin-top: 40px;
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 30px;
        }
        
        .feature-card {
            background: white;
            padding: 30px;
            border-radius: 8px;
            box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
            border-left: 4px solid #3b82f6;
        }
        
        .feature-card h3 {
            font-size: 1.2rem;
            color: #333;
            margin-bottom: 15px;
        }
        
        .feature-card p {
            color: #666;
            font-size: 0.95rem;
            line-height: 1.6;
        }
        
        @media (max-width: 768px) {
            .material-content {
                grid-template-columns: 1fr;
            }
            
            .material-image {
                height: 300px;
                order: -1;
            }
            
            .material-title {
                font-size: 2rem;
            }
        }
        
        
        

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    text-align: center;
}

.modal-content {
    max-width: 90%;
    max-height: 90%;
    margin-top: 5vh;
    cursor: zoom-out;
}

.close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

/* Улучшение отображения галереи */
.product-image {
    cursor: zoom-in;
    transition: transform 0.3s;
}

.product-image:hover {
    transform: scale(1.03);
}