/* ===== БАЗОВІ НАЛАШТУВАННЯ ===== */
* {
  box-sizing: border-box;
}

html {
  font-size: 16px; 
  width: 100%;
}

body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  width: 100%;
  min-width: auto; /* Убираем любые ограничения минимальной ширины */
}

/* ===== LOADER - ИСПРАВЛЕНО (Непрозрачный) ===== */
#loader {
  position: fixed;
  width: 100%;
  height: 100vh;
  background: #ffffff; /* Полностью белый фон */
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

#loader img {
  max-width: 80%;
  max-height: 200px;
  width: auto;
  height: auto;
}

/* ===== HERO BANNER - АДАПТИВНІСТЬ ===== */
.hero-banner {
  height: 100vh;
  min-height: 400px; 
  max-height: 900px; 
}

.hero-content-wrapper {
  padding: 1rem;
  width: 100%;
}

.hero-text {
  padding: clamp(1rem, 3vw, 2.5rem);
  max-width: 95%; /* Относительная ширина */
}

.hero-text h1 {
  font-size: clamp(1.3rem, 5vw, 2.8rem); /* Удобный размер для чтения */
  margin-bottom: 0.6rem;
}

.hero-text p {
  font-size: clamp(0.85rem, 2.5vw, 1.1rem);
  margin-bottom: 1rem;
  line-height: 1.4;
}

/* ===== КНОПКА ===== */
.hero-blob-btn {
  padding: clamp(10px, 2.5vw, 18px) clamp(20px, 4vw, 40px);
  font-size: clamp(0.8rem, 2vw, 0.95rem);
}

/* ===== СЕКЦІЯ ПЕРЕВАГ ===== */
.advantages-section {
  padding: 2rem 1rem;
}

.advantages-title {
  font-size: clamp(1.4rem, 4vw, 1.8rem);
  margin-bottom: 1.2rem;
}

/* ===== СЛАЙДЕР ===== */
.slider {
  gap: 15px;
  padding: 0 10px 10px 10px;
}

.slide {
  flex: 0 0 calc((100% - 40px) / 3); 
  height: 260px;
  padding: 1.1rem;
}

.slide h3 {
  font-size: clamp(1.1rem, 2.8vw, 1.5rem);
}

.slide p {
  font-size: clamp(0.85rem, 2vw, 1rem);
}

/* ===== ФАБРИКА-КУХНЯ (Исправление центрирования и ширины) ===== */
section[style*="background"] {
  min-height: auto !important; 
  padding: clamp(1.5rem, 5vw, 3rem) 3% !important;
  margin-top: 2rem !important;
  border-radius: 25px !important;
  justify-content: center !important; /* Центрируем содержимое по горизонтали */
}

section[style*="background"] > div {
  max-width: 95% !important;
  padding: clamp(1rem, 4vw, 2.5rem) !important;
  width: 100% !important;
  margin: 0 auto !important; /* Гарантированное центрирование */
}

/* Ограничение ширины для больших экранов (>1280px) */
@media (min-width: 1281px) {
  section[style*="background"] > div {
    max-width: 550px !important; /* Делаем блок компактнее на больших мониторах */
  }
}

.factory-title {
  font-size: clamp(1.3rem, 4vw, 2.2rem) !important;
}

#company-info {
  font-size: clamp(0.95rem, 2.5vw, 1.15rem) !important;
}

#offers-title, #advantages-title {
  font-size: clamp(1.1rem, 3vw, 1.4rem) !important;
}

section[style*="background"] ul {
  font-size: clamp(0.85rem, 2vw, 1.05rem) !important;
  line-height: 1.5 !important;
}

/* ===== МЕДІА-ЗАПИТИ ===== */
@media (max-width: 1024px) {
  .slide {
    flex: 0 0 calc((100% - 24px) / 2);
  }
}

@media (max-width: 768px) {
  .hero-banner {
    height: auto;
    max-height: 550px;
  }
  .slide {
    flex: 0 0 85%;
    height: 220px;
  }
  section[style*="background"] {
    background-position: center !important;
  }
}

@media (max-width: 480px) {
  .hero-text {
    padding: 1.2rem;
  }
  section[style*="background"] > div {
    background: rgba(150, 255, 150, 0.9) !important;
  }
  section[style*="background"] ul li {
    margin-bottom: 0.6rem;
  }
}

/* АНІМАЦІЯ ТЕЛЕФОНУ */
@keyframes ring {
  0%, 100% { transform: rotate(0deg); }
  10%, 30% { transform: rotate(-15deg); }
  20%, 40% { transform: rotate(15deg); }
  50% { transform: rotate(0deg); }
}

.ringing-phone {
  display: inline-block;
  animation: ring 2s ease-in-out infinite;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 5%;
}