/*
Theme Name: Express Remont
Theme URI: https://expressremont.pl
Author: Express Remont Poznań
Author URI: https://expressremont.pl
Description: Profesjonalna motyw WordPress dla firmy remontowej Express Remont w Poznaniu. Premium dark design z integracją Telegram i AI chat.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: express-remont
Tags: dark, premium, construction, renovation, one-page, landing
*/

/* Theme styles are loaded via functions.php — see assets/css/main.css */
/* Цвета пунктов меню */
/* ═══════════════════════════════════════════════════════════
   SEO & ACCESSIBILITY (Скрытые элементы для Googlebot)
   ═══════════════════════════════════════════════════════════ */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* ═══════════════════════════════════════════════════════════
   1. СТИЛИЗАЦИЯ И АДАПТИВНОСТЬ ОБНОВЛЕННОЙ ШАПКИ И ТЕЛЕФОНА
   ═══════════════════════════════════════════════════════════ */
#mainNav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 9999;
  box-sizing: border-box;
  padding: 11px 4%; 
  transition: all 0.3s ease;
}
.nav-right-group {
  display: flex;
  align-items: center;
  gap: 20px;
}
.nav-header-phone {
  color: #ffffff !important;
  font-weight: 700;
  text-decoration: none !important;
  font-size: 16px;
  transition: color 0.3s ease;
  white-space: nowrap;
}
.nav-header-phone:hover {
  color: #d4af37 !important;
}
.nav-burger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 26px;
  height: 18px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 10000;
}
.nav-burger:focus { outline: none; }
.burger-bar {
  width: 100%;
  height: 2px;
  background-color: #ffffff;
  transition: all 0.3s ease;
}
.nav-phone-mobile { display: none; }

.nav-links a {
  color: #d4af37 !important;
  font-weight: 600 !important;
  text-decoration: none;
  transition: color 0.3s ease !important;
}
.nav-links a:hover {
  color: #ffffff !important; 
}

@media (max-width: 1023px) {
  .nav-right-group { display: none; }
  .nav-burger { display: flex; }
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background-color: #0d0b18;
    border-left: 1px solid rgba(255,255,255,0.05);
    display: flex;
    flex-direction: column;
    padding: 100px 30px 40px 30px;
    gap: 25px;
    transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-sizing: border-box;
    z-index: 9998;
  }
  .nav-links.open { right: 0; }
  .nav-links a {
    font-size: 18px !important;
    width: 100%;
    display: block;
  }
  .nav-phone-mobile {
    display: block !important;
    color: #d4af37 !important;
    font-weight: 700;
    font-size: 18px !important;
    margin-top: 20px;
    text-decoration: none;
  }
  .mobile-open .burger-bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .mobile-open .burger-bar:nth-child(2) { opacity: 0; }
  .mobile-open .burger-bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
}

/* ═══════════════════════════════════════════════════════════
   2. ПРЕМИУМ ЗОЛОТЫЕ КНОПКИ
   ═══════════════════════════════════════════════════════════ */
.btn-hero-primary, .form-btn, .modal-form-btn, .cta-btn-big, .exit-btn, .mobile-call-btn, .nav-cta-mobile {
  background: linear-gradient(90deg, #fcecae 0%, #d4af37 45%, #b48505 100%) !important;
  color: #111111 !important; 
  font-weight: 600 !important; 
  text-transform: uppercase;
  letter-spacing: 0px !important;
  border: 1px solid #fef08a !important;
  border-radius: 4px !important;
  box-shadow: 0 0 25px rgba(212, 175, 55, 0.6) !important;
  transition: all 0.3s ease !important;
  cursor: pointer;
}
.btn-hero-primary:hover, .form-btn:hover, .modal-form-btn:hover, .cta-btn-big:hover, .exit-btn:hover, .mobile-call-btn:hover, .nav-cta-mobile:hover {
  transform: scale(1.02) !important; 
  box-shadow: 0 0 35px rgba(212, 175, 55, 0.8) !important;
  background: linear-gradient(90deg, #fff3c4 0%, #dfb841 45%, #c49206 100%) !important;
}
.nav-cta-mobile { display: none; }
@media (max-width: 1023px) {
  .nav-cta-mobile {
    display: block !important;
    width: 100%;
    padding: 12px;
    text-align: center;
  }
}

/* ═══════════════════════════════════════════════════════════
   3. КРАСИВЫЙ БЛОК СТАТИСТИКИ 
   ═══════════════════════════════════════════════════════════ */
.hero-stats {
  display: flex !important;
  justify-content: space-between !important;
  background: rgba(13, 11, 24, 0.6) !important; 
  border: 1px solid rgba(212, 175, 55, 0.3) !important;
  border-radius: 8px !important;
  padding: 20px !important;
  backdrop-filter: blur(12px);
  margin-top: 35px !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}
.hero-stats > div {
  text-align: center;
  flex: 1;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
}
.hero-stats > div:last-child {
  border-right: none;
}
.hero-stat-num {
  color: #d4af37 !important; 
  font-size: 26px !important;
  font-weight: 900 !important;
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}
.hero-stat-label {
  color: #d1d5db !important;
  font-size: 13px !important;
  margin-top: 4px !important;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ═══════════════════════════════════════════════════════════
   4. КОРРЕКЦИЯ ГЛАВНОГО ЭКРАНА И ФОРМЫ (ПК — ДЕСКТОП)
   ═══════════════════════════════════════════════════════════ */
.hero {
  background: #0d0b18 !important; 
}

.hero-body {
  transform: translateY(-15px);
}

@media (min-width: 1024px) {
  .hero-body {
    display: flex;
    justify-content: space-between;
    align-items: flex-end !important;
    gap: 40px;
  }
  .hero-left {
    flex: 1;
    max-width: 55%;
  }
  .hero-right {
    flex: 1;
    max-width: 45%;
    display: flex;
    justify-content: flex-end;
  }
  .form-card {
    width: 100% !important;
    max-width: 460px !important;
    padding: 35px !important;
    box-sizing: border-box;
    border-radius: 8px !important;
  }
}

.hero-h1 .gold-text {
  color: #d4af37 !important;
  font-style: normal;
}
.hero-h1 em {
  color: #ffffff !important;
  font-style: normal;
}

.form-card-badge {
  font-size: 18px !important;
  font-weight: 800 !important;
  color: #d4af37 !important;
  text-transform: uppercase;
  letter-spacing: 1px !important;
  margin-bottom: 8px !important;
}
.form-card-title {
  font-size: 24px !important;
  font-weight: 700 !important;
  margin-bottom: 5px !important;
}
.form-label {
  display: block !important;
  margin-top: 14px !important;
  margin-bottom: 6px !important;
  font-weight: 500 !important; 
  color: #ffffff !important;
  text-shadow: none !important; 
}
.form-input {
  width: 100% !important;
  box-sizing: border-box;
  padding: 12px 16px !important;
  height: auto !important;
  background-color: #111827 !important;
  border: 1px solid #4b5563 !important;
  color: #ffffff !important;
  border-radius: 4px !important; 
}
.form-input::placeholder { color: #9ca3af !important; }
.form-btn {
  width: 100% !important;
  margin-top: 20px !important;
  padding: 15px !important;
}

/* ═══════════════════════════════════════════════════════════
   5. ВСПЛЫВАЮЩАЯ ФОРМА (MODAL)
   ═══════════════════════════════════════════════════════════ */
/* z-index выше чем mobile-call-container (9998) и nav (9999) */
.modal-backdrop { z-index: 10000 !important; }
#calcModal { z-index: 10001 !important; } /* Калькулятор поверх всего */
.modal-box {
  border: 1px solid rgba(212, 175, 55, 0.4) !important;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8), 0 0 25px rgba(212, 175, 55, 0.2) !important;
  border-radius: 8px !important;
  max-height: 90vh !important;
  overflow-y: auto !important;
}
.modal-close-btn {
  z-index: 1000000 !important;
  font-size: 32px !important;
  cursor: pointer !important;
  position: sticky !important;
  top: 0 !important;
}
.modal-badge {
  display: block !important;
  width: 100% !important;
  text-align: center !important;
  font-size: 24px !important;
  font-weight: 900 !important;
  color: #d4af37 !important;
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
  margin-bottom: 12px !important;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.modal-title {
  font-size: 28px !important; 
  font-weight: 800 !important;
  line-height: 1.2 !important;
  color: #ffffff !important;
  margin-top: 5px !important;
  text-align: center !important;
}
.modal-form-label {
  display: block !important;
  margin-top: 14px !important;
  margin-bottom: 6px !important;
  font-weight: 600 !important;
  color: #ffffff !important;
  text-align: left !important;
}
.modal-form-input {
  width: 100% !important;
  box-sizing: border-box;
  padding: 12px 16px !important;
  background-color: #111827 !important;
  border: 1px solid #4b5563 !important;
  color: #ffffff !important;
  border-radius: 4px !important;
}
.modal-form-input::placeholder { color: #9ca3af !important; }
.modal-form-btn {
  width: 100% !important;
  margin-top: 20px !important;
  padding: 15px !important;
}

/* ═══════════════════════════════════════════════════════════
   6. МОБИЛЬНАЯ АДАПТИВНОСТЬ И ФИКСИРОВАННАЯ КНОПКА ЗВОНКА
   ═══════════════════════════════════════════════════════════ */
.mobile-call-container { display: none; }

@media (max-width: 1023px) {
  body {
    padding-bottom: 80px !important; 
  }
  .hero { padding-top: 50px !important; }
  
  .hero-pill {
    margin-top: -65px !important;
    margin-bottom: 15px !important;
  }
  
  .hero-body {
    display: flex;
    flex-direction: column !important;
    gap: 20px;
    padding-left: 15px;
    padding-right: 15px;
  }
  .hero-left, .hero-right {
    max-width: 100% !important;
    width: 100% !important;
  }
  .form-card { display: none !important; }
  
  .hero-btns {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 15px !important;
    width: 100% !important;
  }
  .hero-btns button,
  .hero-btns .btn-hero-secondary {
    width: 100% !important;
    max-width: 320px !important;
    text-align: center !important;
    box-sizing: border-box !important;
    margin: 0 !important;
  }
  
  .mobile-call-container {
    display: block !important;
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    width: 100% !important;
    padding: 15px 20px !important;
    box-sizing: border-box;
    z-index: 9998 !important;
    background: rgba(13, 11, 24, 0.85) !important; 
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
  }
  
  .mobile-call-btn {
    display: block !important;
    width: 100%;
    text-align: center;
    padding: 14px !important;
    text-decoration: none !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    border-radius: 6px !important;
    background: linear-gradient(90deg, #9ca3af 0%, #6b7280 50%, #4b5563 100%) !important; 
    color: #ffffff !important;
    border: 1px solid #d1d5db !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5) !important;
    letter-spacing: 0.5px;
  }
  
  .chat-btn {
    bottom: 90px !important;
  }
}

@media (max-width: 767px) {
  .hero-stats {
    flex-direction: column !important;
    gap: 15px !important;
    padding: 25px 20px !important;
  }
  .hero-stats > div {
    border-right: none !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 15px;
  }
  .hero-stats > div:last-child {
    border-bottom: none;
    padding-bottom: 0;
  }
  
  /* Только services и process — column, галерею и ba-grid НЕ трогаем */
  .services-grid, .testi-grid, .process-steps {
    display: flex !important;
    flex-direction: column !important;
    gap: 20px !important;
    padding-left: 10px;
    padding-right: 10px;
  }
  
  .srv-card, .testi-card, .step-item {
    width: 100% !important;
    max-width: 100% !important;
  }
}

/* ═══════════════════════════════════════════════════════════
   ИНТЕРАКТИВНЫЙ СЛАЙДЕР "ДО / ПОСЛЕ" (БРОНИРОВАННАЯ ВЕРСИЯ)
   ═══════════════════════════════════════════════════════════ */

/* Жесткая сетка для десктопа (3 колонки) и планшета/мобильного */
.ba-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)) !important;
  gap: 30px !important;
  width: 100% !important;
  align-items: start !important;
}

/* Железобетонная фиксация пропорций (4:3) */
.ba-slider-container {
  position: relative !important;
  width: 100% !important;
  height: 0 !important; /* Принудительно обнуляем высоту */
  padding-bottom: 75% !important; /* Пропорция задается отступом вниз */
  overflow: hidden !important;
  border-radius: 8px !important;
  background-color: #111 !important;
  display: block !important;
  --position: 50%;
}

/* Обе картинки строго привязаны к краям и не могут растянуть блок */
.ba-image-after, .ba-image-before {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important; /* Обрезает излишки без сплющивания */
  margin: 0 !important;
  padding: 0 !important;
  display: block !important;
  pointer-events: none !important;
}

.ba-image-after {
  z-index: 1 !important;
}

.ba-image-before {
  z-index: 2 !important;
  clip-path: polygon(0 0, var(--position) 0, var(--position) 100%, 0 100%) !important;
}

/* Ползунок */
.ba-slider-input {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  opacity: 0 !important;
  cursor: ew-resize !important;
  z-index: 10 !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Линия раздела */
.ba-slider-line {
  position: absolute !important;
  top: 0 !important;
  bottom: 0 !important;
  left: var(--position) !important;
  width: 3px !important;
  background: #d4af37 !important;
  transform: translateX(-50%) !important;
  z-index: 5 !important;
  pointer-events: none !important;
  box-shadow: 0 0 15px rgba(0,0,0,0.8) !important;
}

/* Кнопка */
.ba-slider-btn {
  position: absolute !important;
  top: 50% !important;
  left: var(--position) !important;
  transform: translate(-50%, -50%) !important;
  width: 44px !important;
  height: 44px !important;
  background: #d4af37 !important;
  border: 3px solid #fff !important;
  border-radius: 50% !important;
  z-index: 6 !important;
  pointer-events: none !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  box-shadow: 0 0 20px rgba(0,0,0,0.6) !important;
}
.ba-slider-btn::after, .ba-slider-btn::before {
  content: '' !important;
  position: absolute !important;
  width: 0 !important;
  height: 0 !important;
  border-top: 6px solid transparent !important;
  border-bottom: 6px solid transparent !important;
}
.ba-slider-btn::before { border-right: 8px solid #fff !important; left: 8px !important; }
.ba-slider-btn::after { border-left: 8px solid #fff !important; right: 8px !important; }

/* Плашки */
.ba-label-new {
  position: absolute !important;
  bottom: 15px !important;
  padding: 6px 14px !important;
  background: rgba(13, 11, 24, 0.7) !important;
  color: #fff !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  border-radius: 4px !important;
  text-transform: uppercase !important;
  z-index: 4 !important;
  pointer-events: none !important;
  backdrop-filter: blur(6px) !important;
  border: 1px solid rgba(255,255,255,0.1) !important;
}
.ba-label-before-new { left: 15px !important; }
.ba-label-after-new { right: 15px !important; }

/* ═══════════════════════════════════════════════════════════
   7. РАСТЯГИВАНИЕ СЕКЦИИ УСЛУГ И ЦЕНТРИРОВАНИЕ HERO-BOTTOM
   ═══════════════════════════════════════════════════════════ */
#services .section-title,
#services .section-sub {
  max-width: 100% !important;
  width: 100% !important;
}
#services .section-title br {
  display: none !important; 
}

/* 1. Increased font size and premium styling for Services titles */
/* 1. Увеличенный шрифт заголовков услуг и компактные премиум-иконки */
.srv-title {
  font-size: 22px !important;
  font-weight: 800 !important;
  margin-top: 10px !important;
  margin-bottom: 10px !important;
  color: #ffffff !important;
}

.srv-icon {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
}

/* Жесткая фиксация размера для десктопа и мобильных устройств */
.services-grid .srv-card .srv-icon svg {
  width: 28px !important;
  height: 28px !important;
  min-width: 28px !important;
  max-width: 28px !important;
  flex-shrink: 0 !important; /* Запрещает растягиваться на мобильных */
  margin-bottom: 5px !important;
}

/* 2. Firefox Layout Fix for the Hero Bottom Block */
.hero-bottom {
  display: flex !important;
  flex-wrap: nowrap !important; /* Forces a single line on desktop to fix Firefox bug */
  justify-content: space-between !important;
  align-items: center !important;
  gap: 20px !important;
  width: 100% !important;
  max-width: 1200px !important;
  margin: 0 auto !important;
  padding: 30px 15px !important;
  box-sizing: border-box !important;
}
.hb-item {
  display: flex !important;
  align-items: center !important;
  gap: 15px !important;
  flex: 1 1 0 !important; /* Ensures equal width distribution across all 4 items */
}

/* 3. Removed text glow (shadow) from headers */
.hb-text-main {
  font-size: 20px !important;
  font-weight: 800 !important;
  margin-bottom: 4px !important;
  text-shadow: none !important; /* Glow removed */
}
.hb-text-sub {
  font-size: 15px !important;
  font-weight: 400 !important;
  color: #d1d5db !important;
}
.hb-icon svg {
  width: 34px !important;
  height: 34px !important;
}

/* Responsive fallback for the bottom hero bar */
@media (max-width: 1024px) {
  .hero-bottom {
    flex-wrap: wrap !important;
    justify-content: center !important;
  }
  .hb-item {
    flex: 1 1 40% !important; /* 2 columns on tablet */
  }
}
/* Responsive fallback for the bottom hero bar */
/* Responsive fallback for the bottom hero bar */
@media (max-width: 1024px) {
  .hero-bottom {
    flex-wrap: wrap !important;
    justify-content: center !important;
  }
  .hb-item {
    flex: 1 1 40% !important; /* 2 columns on tablet */
  }
}

@media (max-width: 767px) {
  /* ИСПРАВЛЕНИЕ ДЛЯ ФАЙРФОКСА И МОБИЛЬНЫХ (SAMSUNG A57) */
  .hero-bottom {
    flex-direction: column !important;
    align-items: flex-start !important; /* Ровняет все пункты по левому краю */
    width: fit-content !important; /* Блок сжимается до размера самого длинного текста */
    margin: 0 auto !important; /* Центрирует весь ровный список по середине экрана */
    padding: 30px 20px !important;
  }
  .hb-item {
    flex: 0 1 auto !important;
    width: 100% !important;
    justify-content: flex-start !important; /* Принудительно выстраивает иконку и текст по левой оси */
  }

  /* Сохраненные стили для остальных секций */
  .hero-stats {
    flex-direction: column !important;
    gap: 15px !important;
    padding: 25px 20px !important;
  }
  .hero-stats > div {
    border-right: none !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 15px;
  }
  .hero-stats > div:last-child {
    border-bottom: none;
    padding-bottom: 0;
  }
  .services-grid, .ba-grid, .gallery-grid, .testi-grid, .process-steps {
    /* НЕ применяем flex-column к gallery-grid и ba-grid — у них своя сетка */
  }
  .srv-card, .ba-card, .testi-card, .step-item {
    width: 100% !important;
    max-width: 100% !important;
  }
}
/* ═══ БЛОК ДО/ПОСЛЕ — ВСЕГДА ВИДЕН НА МОБИЛЬНЫХ ═══ */
@media (max-width: 767px) {
  section#before-after, 
  #before-after, 
  .ba-section {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    height: auto !important;
    padding: 60px 15px !important;
    margin: 0 !important;
    overflow: visible !important;
  }
  /* Один столбец на мобильных для слайдеров */
  .ba-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 25px !important;
  }
  .ba-card {
    width: 100% !important;
  }
  /* Высота контейнера слайдера не должна быть 0 на мобильных */
  .ba-slider-container {
    height: 0 !important;
    padding-bottom: 66% !important; /* соотношение сторон для мобильных */
    min-height: unset !important;
  }
}

.site-footer {
    /* Фон как у основного сайта (темный) */
    background-color: #050a12; 
    color: #999; /* Текст стал темнее и менее контрастным */
    padding: 50px 20px 20px;
    border-top: 1px solid #222; 
}
.footer-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}
.footer-col h3 {
    /* Заголовки тоньше и меньше */
    color: #d4af37;
    font-weight: 300; 
    font-size: 0.85rem; 
    text-transform: uppercase;
    letter-spacing: 2px; /* Увеличили интервал для премиальности */
    margin-bottom: 15px;
}

.footer-col p, .footer-col ul li a {
    /* Текст стал более темным (сливается с фоном, сохраняя читаемость) */
    font-size: 0.85rem;
    font-weight: 300;
    color: #777; 
    transition: 0.3s;
}

.footer-col ul li a:hover {
    color: #d4af37;
}

.footer-bottom {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #1a1a1a;
    font-size: 0.75rem;
    color: #555; /* Очень темный, почти сливающийся с фоном */
    font-weight: 300;
}

/* ═══════════════════════════════════════════════════════════
   8. SREBRNY PRZYCISK I MODALNY KALKULATOR
   ═══════════════════════════════════════════════════════════ */
.btn-hero-secondary {
  background: linear-gradient(90deg, #ffffff 0%, #d1d5db 45%, #9ca3af 100%) !important;
  color: #111111 !important; 
  font-weight: 700 !important; 
  text-transform: uppercase;
  letter-spacing: 0.5px !important;
  border: 1px solid #ffffff !important;
  border-radius: 4px !important; /* matching primary button border-radius */
  box-shadow: 0 0 25px rgba(209, 213, 219, 0.4) !important;
  transition: all 0.3s ease !important;
  cursor: pointer;
  padding: 15px 36px !important; /* matching primary button padding */
  font-size: 15px !important;
  display: inline-block;
}

.btn-hero-secondary:hover {
  transform: scale(1.02) !important; 
  box-shadow: 0 0 35px rgba(209, 213, 219, 0.7) !important;
  background: linear-gradient(90deg, #ffffff 0%, #e5e7eb 45%, #b5b7bb 100%) !important;
}

.calc-modal-box {
  width: 90% !important;
  max-width: 620px !important;
  max-height: 90vh !important;
  overflow-y: auto !important;
  padding: 35px 25px !important;
  background: rgba(13, 11, 24, 0.98) !important;
  border: 1px solid rgba(212, 175, 76, 0.3) !important;
}

.calc-modal-box select, 
.calc-modal-box input {
  background-color: #111827 !important;
  color: #ffffff !important;
  border: 1px solid rgba(212, 175, 76, 0.2) !important;
  transition: all 0.3s ease !important;
}

.calc-modal-box select option {
  background-color: #111827 !important;
  color: #ffffff !important;
}

.calc-modal-box select:focus, 
.calc-modal-box input:focus {
  outline: none;
  border-color: #d4af4c !important;
  background-color: rgba(255, 255, 255, 0.08) !important;
  box-shadow: 0 0 0 3px rgba(212, 175, 76, 0.15) !important;
}

.calc-modal-box select:hover, 
.calc-modal-box input:hover {
  border-color: rgba(212, 175, 76, 0.4) !important;
  background-color: rgba(255, 255, 255, 0.05) !important;
}

/* ═══════════════════════════════════════════════════════════
   9. GALERIA PROJEKTÓW (3+2 MOSAIC LAYOUT)
   ═══════════════════════════════════════════════════════════ */
.gallery-section {
  background: #0d0b18 !important;
  padding: 90px 4% !important;
}

.gallery-grid {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 20px !important;
}

.gallery-grid .gal-item {
  position: relative !important;
  border-radius: 8px !important;
  overflow: hidden !important;
  border: 1px solid rgba(255, 255, 255, 0.05) !important;
  aspect-ratio: 4/3 !important;
  min-height: unset !important;
  background: #111827 !important;
  grid-column: span 1 !important;
  width: 100% !important;
  max-width: none !important;
}

.gallery-grid .gal-img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1) !important;
  display: block !important;
}

.gallery-grid .gal-item:hover .gal-img {
  transform: scale(1.08) !important;
}

/* Hover overlay */
.gallery-grid .gal-overlay {
  position: absolute !important;
  inset: 0 !important;
  background: linear-gradient(to top, rgba(13, 11, 24, 0.95) 0%, rgba(13, 11, 24, 0.4) 60%, rgba(13, 11, 24, 0) 100%) !important;
  opacity: 0 !important;
  transform: translateY(15px) !important;
  transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
  display: flex !important;
  align-items: flex-end !important;
  padding: 25px !important;
  box-sizing: border-box !important;
}

.gallery-grid .gal-item:hover .gal-overlay {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

.gal-overlay-content {
  width: 100% !important;
}

.gal-project-title {
  color: #d4af37 !important;
  font-family: 'Cormorant Garamond', serif !important;
  font-size: 22px !important;
  font-weight: 700 !important;
  margin: 0 0 8px 0 !important;
  text-transform: none !important;
}

.gal-project-desc {
  color: #d1d5db !important;
  font-size: 13px !important;
  line-height: 1.5 !important;
  margin: 0 0 15px 0 !important;
  font-weight: 300 !important;
}

.gal-project-meta {
  display: flex !important;
  gap: 20px !important;
  border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
  padding-top: 12px !important;
}

.gal-project-meta .meta-item {
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  color: #ffffff !important;
  font-size: 12px !important;
  font-weight: 600 !important;
}

.gal-project-meta .meta-item svg {
  flex-shrink: 0 !important;
}

/* Responsywność dla galerii projektów (3 elementy) */
@media (max-width: 1023px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 15px !important;
  }
}

@media (max-width: 767px) {
  .gallery-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 15px !important;
  }
  .gallery-grid .gal-item {
    grid-column: span 1 !important;
  }
}

/* ═══════════════════════════════════════════════════════════
   10. ANIMACJE IKON SVG PRZY NAJECHANIU (HOVER EFFECTS)
   ═══════════════════════════════════════════════════════════ */
@keyframes iconGlow {
  0% { transform: scale(1) translateY(0); filter: drop-shadow(0 0 0 rgba(212, 175, 55, 0)); }
  50% { transform: scale(1.1) translateY(-2px); filter: drop-shadow(0 0 8px rgba(212, 175, 55, 0.6)); }
  100% { transform: scale(1) translateY(0); filter: drop-shadow(0 0 0 rgba(212, 175, 55, 0)); }
}

.srv-card:hover .srv-icon svg,
.hb-item:hover .hb-icon svg {
  animation: iconGlow 1.5s ease-in-out infinite !important;
  stroke: #ffffff !important;
}

.srv-icon svg,
.hb-icon svg {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

/* ═══════════════════════════════════════════════════════════
   11. SPERSONALIZOWANE PASKI PRZEWIJANIA (SCROLLBARS)
   ═══════════════════════════════════════════════════════════ */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: #0d0b18 !important;
}
::-webkit-scrollbar-thumb {
  background: #d4af37 !important;
  border-radius: 4px !important;
  border: 2px solid #0d0b18 !important;
}
::-webkit-scrollbar-thumb:hover {
  background: #fcecae !important;
}
* {
  scrollbar-width: thin;
  scrollbar-color: #d4af37 #0d0b18;
}


/* === ULTIMATE BEFORE/AFTER FIX === */
.ba-slider-container { position: relative !important; width: 100% !important; height: 0 !important; padding-bottom: 66% !important; overflow: hidden !important; display: block !important; }
.ba-image-after, .ba-image-before { position: absolute !important; top: 0 !important; left: 0 !important; width: 100% !important; height: 100% !important; object-fit: cover !important; display: block !important; max-width: none !important; margin: 0 !important; padding: 0 !important; }
.ba-image-before { z-index: 2 !important; clip-path: polygon(0 0, var(--position, 50%) 0, var(--position, 50%) 100%, 0 100%) !important; }
.ba-image-after { z-index: 1 !important; }
.ba-slider-input { position: absolute !important; inset: 0 !important; width: 100% !important; height: 100% !important; opacity: 0 !important; z-index: 10 !important; cursor: pointer !important; margin: 0 !important; padding: 0 !important; -webkit-appearance: none !important; }
.ba-slider-line { position: absolute !important; top: 0 !important; bottom: 0 !important; left: var(--position, 50%) !important; width: 4px !important; background: #fff !important; z-index: 5 !important; transform: translateX(-50%) !important; pointer-events: none !important; }
.ba-slider-btn { position: absolute !important; top: 50% !important; left: var(--position, 50%) !important; width: 40px !important; height: 40px !important; background: #d4af37 !important; border-radius: 50% !important; z-index: 6 !important; transform: translate(-50%, -50%) !important; pointer-events: none !important; border: 3px solid #fff !important; }
@media (max-width: 900px) { .ba-slider-container { padding-bottom: 75% !important; } .ba-slider-btn { width: 30px !important; height: 30px !important; border-width: 2px !important; } }


/* PREMIUM FOOTER OVERRIDES */
.site-footer { background: linear-gradient(180deg, #111827 0%, #050a12 100%) !important; color: #e5e7eb !important; padding: 60px 20px 40px !important; border-top: 1px solid rgba(212, 175, 76, 0.2) !important; position: relative !important; overflow: hidden !important; }
.site-footer::before { content: '' !important; position: absolute !important; top: 0 !important; left: 0 !important; width: 100% !important; height: 1px !important; background: linear-gradient(90deg, transparent, rgba(212, 175, 76, 0.5), transparent) !important; }
.footer-container { max-width: 1200px !important; margin: 0 auto !important; display: grid !important; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)) !important; gap: 40px !important; }
.footer-col h3 { color: #d4af37 !important; font-size: 1.1rem !important; font-weight: 600 !important; margin-bottom: 20px !important; text-transform: uppercase !important; letter-spacing: 1.5px !important; position: relative !important; display: inline-block !important; }
.footer-col h3::after { content: '' !important; position: absolute !important; bottom: -6px !important; left: 0 !important; width: 30px !important; height: 2px !important; background: #d4af37 !important; }
.footer-col p { color: #9ca3af !important; line-height: 1.8 !important; margin-bottom: 12px !important; font-size: 14px !important; }
.footer-col ul { list-style: none !important; padding: 0 !important; margin: 0 !important; }
.footer-col ul li { margin-bottom: 10px !important; }
.footer-col ul li a { color: #9ca3af !important; text-decoration: none !important; transition: all 0.3s ease !important; font-size: 14px !important; display: flex !important; align-items: center !important; }
.footer-col ul li a::before { content: '' !important; color: #d4af37 !important; margin-right: 8px !important; font-size: 1.2rem !important; transition: transform 0.3s ease !important; }
.footer-col ul li a:hover { color: #fff !important; }
.footer-col ul li a:hover::before { transform: translateX(5px) !important; }
.footer-bottom { background: #000 !important; color: #6b7280 !important; text-align: center !important; padding: 20px !important; font-size: 0.85rem !important; border-top: 1px solid rgba(255,255,255,0.05) !important; }

