/* ==========================================================================
   ПОВНИЙ КОД СТИЛІВ: СВІТЛА ІНДУСТРІАЛЬНА ТЕМА (ОСТАТОЧНА ЗБІРКА)
   Колір themes: Сталево-голубий | Блоки: Сіро-графітові 
   Кнопки: Карбон | Шрифти: Алюмінієво-білі в картках, темні на світлому тлі
   ========================================================================== */

html, body {
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, sans-serif;
  background-color: #e2e8f0 !important; /* Сталево-голубий світлий базовий фон сторінки */
  background: #e2e8f0 !important;
  color: #1e293b !important; /* Основний темний текст для відмінної читабельності */
  scroll-behavior: smooth;
}

/* Жорстке вимкнення системного темного режиму смартфонів (захист від спотворення кольорів) */
@media (prefers-color-scheme: dark) {
  html, body {
    background-color: #e2e8f0 !important;
    background: #e2e8f0 !important;
    color: #1e293b !important;
  }
}

/* Збільшені вертикальні відступи для створення простору та "повітря" */
section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 80px 20px;
  box-sizing: border-box;
  width: 100%;
}

/* --- ШАПКА САЙТУ (ПРОЗОРА, ПОВЕРХ ВЕЛИКОГО ФОТО) --- */
.main-header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 10;
  background: transparent;
  padding: 30px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 25px;
  box-sizing: border-box;
}

.logo-container {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex: 1;
  min-width: 200px;
}

.logo-img {
  height: 120px; /* Збільшено для пропорційності із заголовком */
  width: auto;
  max-width: 250px;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.header-title-block {
  text-align: center;
  flex: 2;
  min-width: 300px;
  padding: 0 10px;
}

.header-title {
  color: #0f172a !important;
  -webkit-text-fill-color: #0f172a !important;
  font-size: clamp(24px, 4.5vw, 38px);
  font-weight: 800;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  line-height: 1.2;
}

.slogan-block {
  text-align: right;
  flex: 1;
  min-width: 200px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-end;
}

.slogan-latin {
  color: #0284c7 !important;
  -webkit-text-fill-color: #0284c7 !important;
  font-weight: 600; /* Пом'якшено для витонченості літер */
  letter-spacing: 3px;
  font-size: clamp(13px, 1.4vw, 17px);
  text-transform: uppercase;
  display: block;
  margin-bottom: 5px;
}

.slogan-ua {
  color: #475569 !important;
  -webkit-text-fill-color: #475569 !important;
  font-size: clamp(11px, 1.1vw, 13px);
  font-style: italic;
  font-weight: 600;
  display: block;
}

/* --- ГОЛОВНИЙ ЕКРАН: ПОВНІСТЮ ПРОЗОРИЙ ТА АДАТОВАНИЙ ПІД СВІТЛУ ТЕМУ --- */
.hero-section {
  position: relative !important;
  min-height: auto !important;
  background: transparent !important; /* Повністю прибираємо стару фонову картинку та підкладки */
  background-color: transparent !important;
  border-radius: 0;
  border: none;
  box-shadow: none;
  display: flex !important;
  align-items: center !important;
  padding: 40px 20px !important;
  margin-top: 0;
  margin-bottom: 20px !important;
}

.hero-container {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 40px !important;
  align-items: center !important;
  justify-content: space-between !important;
  width: 100% !important;
  max-width: 1100px !important;
  margin: 0 auto !important;
}

.hero-text-block {
  flex: 1.2 !important;
  min-width: 300px !important;
  text-align: left !important;
}

/* Шрифти банера примусово адаптовані та зроблені темними під світлу тему */
.hero-text-block h1 {
  font-size: clamp(26px, 3.5vw, 38px) !important;
  font-weight: 800 !important;
  margin-top: 0 !important;
  line-height: 1.2 !important;
  color: #0f172a !important; 
  -webkit-text-fill-color: #0f172a !important;
}

.hero-text-block p {
  color: #334155 !important;
  -webkit-text-fill-color: #334155 !important;
  font-size: 16px !important;
  line-height: 1.6 !important;
  margin-bottom: 25px !important;
}

.hero-accent-color {
  color: #0284c7 !important; /* Контрастний синій */
}

.hero-badges {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 12px 25px !important;
  color: #1e293b !important;
  font-size: 14px !important;
  border-top: 1px solid #cbd5e1 !important;
  padding-top: 20px !important;
  font-weight: 600 !important;
}

.hero-img-block {
  flex: 0.8 !important;
  min-width: 300px !important;
  text-align: center !important;
}

.hero-img {
  width: 100% !important;
  max-width: 440px !important;
  height: auto !important;
  border-radius: 12px !important;
  border: 1px solid #cbd5e1 !important;
  box-shadow: 0 10px 25px rgba(0,0,0,0.05) !important;
}

/* --- НАВІГАЦІЯ В ШАПЦІ --- */
.main-nav {
  text-align: center !important;
  width: auto !important;
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: flex-end !important;
  gap: 15px !important;
  margin-top: 0 !important;
  border-top: none !important;
  padding-top: 0 !important;
}

/* --- КНОПКИ КАРБОН З ШРИФТАМИ АЛЮМІНІЄВО-БІЛИМИ --- */
.btn-aluminum {
  display: inline-block;
  padding: 12px 24px;
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%); /* Carbon градієнт */
  color: #f8fafc !important; /* Алюмінієво-білий текст */
  -webkit-text-fill-color: #f8fafc !important;
  text-decoration: none;
  border-radius: 8px;
  border: 1px solid #334155;
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.2);
  transition: all 0.25s ease;
  cursor: pointer;
}

.btn-aluminum:hover {
  background: linear-gradient(135deg, #334155 0%, #1e293b 100%);
  color: #ffffff !important;
  border-color: #475569;
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3);
}

/* --- ВИПРАВЛЕНІ ЗАГОЛОВКИ СЕКЦІЙ (БІЛЬШЕ НЕ ЗЛИВАЮТЬСЯ) --- */
.section-header {
  text-align: center;
  margin-bottom: 50px;
}

/* Примусовий глибокий колір для заголовків на світлій сторінці */
h2, 
section h2, 
.section-header h2,
#cases h2,
#prices h2,
div + h2,
.gallery-container + .section-header h2,
.section-header h3,
.video-title,
.contacts-section-title,
#services h2,
#specs-section h2,
#characteristics div[style*="font-size: 32px"] {
  color: #0f172a !important; 
  -webkit-text-fill-color: #0f172a !important;
  font-weight: 700;
  text-align: center;
  text-shadow: none !important;
  opacity: 1 !important;
}

.section-subtitle {
  color: #0284c7 !important; /* Насичений сталево-блакитний */
  -webkit-text-fill-color: #0284c7 !important;
  text-transform: uppercase;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1.5px;
  display: block;
  margin-bottom: 8px;
  text-align: center;
}

/* --- СЕКЦІЇ ТА СІРО-ГРАФІТОВІ БЛОКИ (КАРТКИ) --- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

/* Сіро-графітові картки (Залишені темними для стильного контрасту) */
.site-card {
  background: #1e293b !important; /* Матовий графіт */
  border: 1px solid #334155;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,.2);
  transition: transform 0.2s ease;
}

.site-card:hover {
  transform: translateY(-4px);
}

.card-icon {
  font-size: 32px;
  margin-bottom: 15px;
}

.card-title {
  font-size: 20px;
  color: #f8fafc !important; /* Алюмінієво-білий */
  -webkit-text-fill-color: #f8fafc !important;
  margin: 0 0 10px 0;
  font-weight: 600;
}

.card-text {
  color: #cbd5e1 !important;
  -webkit-text-fill-color: #cbd5e1 !important;
  font-size: 14px;
  margin: 0;
  line-height: 1.5;
}

.site-card-extended {
  display: flex;
  flex-direction: column;
  height: 100%;
  box-sizing: border-box;
}

.card-list-wrapper {
  font-size: 13.5px;
  color: #cbd5e1 !important;
  line-height: 1.5;
  text-align: left;
}

.card-list-wrapper ul {
  margin: 5px 0 0 0;
  padding-left: 15px;
}

.card-list-wrapper li {
  margin-bottom: 5px;
}

/* --- БЛОК ПОРІВНЯННЯ ТА ГАЛЕРЕЯ «ДО ТА ПІСЛЯ» --- */
.compare-container {
  background: #1e293b !important;
  border: 1px solid #2e3b4e;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,.2);
  text-align: center;
}

.compare-img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

/* ІДЕАЛЬНЕ ВИРІВНЮВАННЯ КАРТОК КЕЙСІВ ЗА ВИСОТОЮ */
.gallery-container {
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: center !important;
  align-items: stretch !important; /* Примусово розтягує всі картки на однакому висоту в ряду */
  gap: 25px !important;
  width: 100% !important;
}

.case-card {
  flex: 1 !important;
  min-width: 260px !important; /* Зменшено, щоб картки були гнучкими */
  max-width: 310px !important; /* Зменшено максимальну ширину, щоб усі 3 картки влізли в один ряд */
  background: #1e293b !important;
  border: 1px solid #2e3b4e !important;
  padding: 20px !important;
  border-radius: 12px !important;
  box-shadow: 0 4px 15px rgba(0,0,0,.2) !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important; /* Утримує заголовки вгорі, а фото внизу рівно */
}


.case-title {
  font-size: 18px;
  margin: 0 0 15px 0;
  text-align: center;
  font-weight: 600;
  color: #f8fafc !important;
  -webkit-text-fill-color: #f8fafc !important;
}

.case-flex {
  display: flex;
  gap: 12px;
  margin-top: auto; /* Штовхає зону з фотографіями до єдиного нижнього краю */
}

.case-side {
  flex: 1;
  text-align: center;
}

.badge-before {
  display: block;
  color: #ef4444 !important;
  font-weight: 700;
  font-size: 12px;
  margin-bottom: 5px;
}

.badge-after {
  display: block;
  color: #22c55e !important;
  font-weight: 700;
  font-size: 12px;
  margin-bottom: 5px;
}

/* Вирівнювання самих зображень всередині кейсів робіт */
.case-img {
  width: 100%;
  height: 180px !important; /* Стандартизована фіксована висота для фото */
  border-radius: 6px;
  object-fit: cover !important; /* Фото акуратно обрізаються без розтягування та стискання */
  display: block;
}

.price-btn-wrapper {
  text-align: center;
  margin: 50px auto;
}

  margin-top: 5px;
  margin-bottom: 15px;
}

.video-text {
  color: #cbd5e1 !important; /* Світлий текст для контрасту всередині графітового банера */
  -webkit-text-fill-color: #cbd5e1 !important;
  font-size: 16px;
  max-width: 650px;
  margin: 0 auto 25px auto;
  line-height: 1.6;
}

/* Стильний контейнер-плеєр у формі екрана смартфона */
.video-player-container {
  max-width: 260px !important; 
  margin: 0 auto 25px auto !important;
  border-radius: 14px !important;
  overflow: hidden !important;
  border: 3px solid #334155 !important;
  box-shadow: 0 12px 24px rgba(0,0,0,0.3) !important;
  position: relative !important;
  background-color: #000000 !important;
  aspect-ratio: 9 / 16 !important; /* Вертикальний формат під мобільне відео TikTok */
  display: block !important;
}

.video-tiktok-link {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  position: relative !important;
  text-decoration: none !important;
  -webkit-tap-highlight-color: transparent !important;
}

.laser-preview-video {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important; /* Відео заповнює весь міні-екран */
  display: block !important;
}

/* Плавне темне накладання та іконка Play при наведенні */
.video-overlay-play {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  background: rgba(0, 0, 0, 0.15) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: background 0.3s ease !important;
}

.play-icon {
  background: rgba(56, 189, 248, 0.85) !important; /* Фірмовий блакитний колір */
  color: #0f172a !important;
  -webkit-text-fill-color: #0f172a !important;
  width: 50px !important;
  height: 50px !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 20px !important;
  padding-left: 4px !important; /* Оптичне вирівнювання стрілочки */
  box-shadow: 0 4px 12px rgba(0,0,0,0.3) !important;
  transition: transform 0.3s ease, background-color 0.3s ease !important;
}

.video-tiktok-link:hover .video-overlay-play {
  background: rgba(0, 0, 0, 0.3) !important;
}

.video-tiktok-link:hover .play-icon {
  transform: scale(1.1) !important;
  background: #38bdf8 !important;
}

.video-btn-wrapper {
  margin-top: 10px !important;
  display: block !important;
}

/* --- ТАБЛИЦІ ТА ПРАЙСИ --- */
.table-responsive-container {
  width: 100% !important;
  overflow-x: auto !important;
  -webkit-overflow-scrolling: touch !important;
  margin-bottom: 15px !important;
  border: 1px solid #334155 !important;
  border-radius: 6px !important;
}

.price-table {
  width: 100% !important;
  border-collapse: collapse !important;
  text-align: left !important;
  font-size: 13px !important;
  min-width: 500px !important;
}

.price-table thead tr {
  background: #111927 !important;
  border-bottom: 1px solid #334155 !important;
}

/* --- СЛОГАНИ, МЕНЮ НАВІГАЦІЇ ТА МОБІЛЬНА АДАПТИВНІСТЬ --- */
.slogan {
  color: #475569 !important; /* Змінено на темний графіт для читабельності на світлому тлі */
  -webkit-text-fill-color: #475569 !important;
  font-size: 14px;
  margin: 5px 0 0 0;
  font-style: italic;
  text-shadow: none !important;
}

/* Блок меню праворуч */
.nav-menu {
  display: flex !important;
  align-items: center !important;
  gap: 25px !important;
}

/* Посилання в меню */
.nav-link {
  color: #1e293b !important; /* Змінено на глибокий темний колір для світлої теми */
  -webkit-text-fill-color: #1e293b !important;
  text-decoration: none;
  font-size: 16px;
  transition: color 0.3s ease !important;
}

.nav-link:hover {
  color: #0ea5e9 !important; /* Фірмовий блакитний акцент сайту при наведенні */
  -webkit-text-fill-color: #0ea5e9 !important;
}

/* Кнопка "Замовити послугу" */
.nav-btn {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  background-color: #3b82f6 !important; /* Переведено на ваш фірмовий синій колір */
  padding: 10px 20px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(59,130,246,0.3);
  transition: background 0.3s ease !important;
}

.nav-btn:hover {
  background-color: #2563eb !important;
}

/* Окремий примусовий колір для блоку контактів над формами */
#contacts div, #contacts span {
  color: #0f172a !important;
  -webkit-text-fill-color: #0f172a !important;
}

/* АДАПТИВНІСТЬ ДЛЯ МАЛИХ ЕКРАНІВ (ЗАХИСТ ВІД ВЛИЗАННЯ ВЕРСТКИ) */
@media (max-width: 768px) {
  .header-container {
    flex-direction: column !important;
    text-align: center !important;
    padding: 20px !important;
  }
  
  /* На телефонах примусово дозволяємо перенос слів, щоб заголовок не вилазив за екран */
  .main-title, h1, h2, .header-title {
    white-space: normal !important; 
    font-size: clamp(16px, 5vw, 24px) !important;
    line-height: 1.3 !important;
  }

  .nav-menu {
    flex-direction: column !important;
    gap: 15px !important;
    width: 100% !important;
    justify-content: center !important;
    margin-top: 10px !important;
  }
}

.laser-preview-video {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important; /* Відео заповнює весь міні-екран */
  display: block !important;
}

/* Плавне темне накладання та іконка Play при наведенні */
.video-overlay-play {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  background: rgba(0, 0, 0, 0.15) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: background 0.3s ease !important;
}

.play-icon {
  background: rgba(56, 189, 248, 0.85) !important; /* Фірмовий блакитний колір */
  color: #0f172a !important;
  -webkit-text-fill-color: #0f172a !important;
  width: 50px !important;
  height: 50px !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 20px !important;
  padding-left: 4px !important; /* Оптичне вирівнювання стрілочки */
  box-shadow: 0 4px 12px rgba(0,0,0,0.3) !important;
  transition: transform 0.3s ease, background-color 0.3s ease !important;
}

.video-tiktok-link:hover .video-overlay-play {
  background: rgba(0, 0, 0, 0.3) !important;
}

.video-tiktok-link:hover .play-icon {
  transform: scale(1.1) !important;
  background: #38bdf8 !important;
}

.video-btn-wrapper {
  margin-top: 10px !important;
  display: block !important;
}

/* --- ТАБЛИЦІ ТА ПРАЙСИ --- */
.table-responsive-container {
  width: 100% !important;
  overflow-x: auto !important;
  -webkit-overflow-scrolling: touch !important;
  margin-bottom: 15px !important;
  border: 1px solid #334155 !important;
  border-radius: 6px !important;
}

.price-table {
  width: 100% !important;
  border-collapse: collapse !important;
  text-align: left !important;
  font-size: 13px !important;
  min-width: 500px !important;
}

.price-table thead tr {
  background: #111927 !important;
  border-bottom: 1px solid #334155 !important;
}

/* --- СЛОГАНИ, МЕНЮ НАВІГАЦІЇ ТА МОБІЛЬНА АДАПТИВНІСТЬ --- */
.slogan {
  color: #475569 !important; /* Змінено на темний графіт для читабельності на світлому тлі */
  -webkit-text-fill-color: #475569 !important;
  font-size: 14px;
  margin: 5px 0 0 0;
  font-style: italic;
  text-shadow: none !important;
}

/* Блок меню праворуч */
.nav-menu {
  display: flex !important;
  align-items: center !important;
  gap: 25px !important;
}

/* Посилання в меню */
.nav-link {
  color: #1e293b !important; /* Змінено на глибокий темний колір для світлої теми */
  -webkit-text-fill-color: #1e293b !important;
  text-decoration: none;
  font-size: 16px;
  transition: color 0.3s ease !important;
}

.nav-link:hover {
  color: #0ea5e9 !important; /* Фірмовий блакитний акцент сайту при наведенні */
  -webkit-text-fill-color: #0ea5e9 !important;
}

/* Кнопка "Замовити послугу" */
.nav-btn {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  background-color: #3b82f6 !important; /* Переведено на ваш фірмовий синій колір */
  padding: 10px 20px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(59,130,246,0.3);
  transition: background 0.3s ease !important;
}

.nav-btn:hover {
  background-color: #2563eb !important;
}

/* Окремий примусовий колір для блоку контактів над формами */
#contacts div, #contacts span {
  color: #0f172a !important;
  -webkit-text-fill-color: #0f172a !important;
}

/* АДАПТИВНІСТЬ ДЛЯ МАЛИХ ЕКРАНІВ (ЗАХИСТ ВІД ВЛИЗАННЯ ВЕРСТКИ) */
@media (max-width: 768px) {
  .header-container {
    flex-direction: column !important;
    text-align: center !important;
    padding: 20px !important;
  }
  
  /* На телефонах примусово дозволяємо перенос слів, щоб заголовок не вилазив за екран */
  .main-title, h1, h2, .header-title {
    white-space: normal !important; 
    font-size: clamp(16px, 5vw, 24px) !important;
    line-height: 1.3 !important;
  }

  .nav-menu {
    flex-direction: column !important;
    gap: 15px !important;
    width: 100% !important;
    justify-content: center !important;
    margin-top: 10px !important;
  }
}
