html, body {
    height: 100%;
    margin: 0;
}

body {
    display: flex;
    flex-direction: column;
}

main {
    flex: 1; /* займає весь доступний простір між header і footer */
}

footer {
    margin-top: auto; /* завжди йде в самий низ */
    background-color: #1A202C; /* той самий фон, як ви вже задавали */
    color: #FFFFFF;
    padding: 20px 0;
    text-align: center;
    border-top: 5px solid #ED8936;
}


.navbar {
    background-color: #1A202C; /* Темно-сірий для елегантності */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.navbar-brand, .nav-link {
    color: #FFFFFF !important;
}

.nav-link:hover {
    color: #ED8936 !important; /* Теплий помаранчевий замість #FF4500 */
    transition: color 0.3s ease;
}

.hero {
    background: linear-gradient(to right, #1F2937, #111827); /* Змінено блакитний на м'якший і сучасніший */
    color: #FFFFFF;
    padding: 120px 0;
    text-align: center;
    border-bottom-left-radius: 30px; /* Закруглені нижні кути */
    border-bottom-right-radius: 30px;
}

.hero h1 {
    font-size: 3.5rem; /* Трохи більший для акценту */
    font-weight: 700;
    margin-bottom: 20px;
}

.hero h2 {
    font-size: 2rem;
    font-weight: 600;
}

.hero .lead {
    font-size: 1.25rem;
    margin-bottom: 30px;
}

.section {
    padding: 80px 0;
}

.section-bg {
    background-color: #FFFFFF;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.05);
    border-radius: 15px; /* Закруглення для секцій */
}

.btn-primary {
    background-color: #ED8936;
    border-color: #ED8936;
    border-radius: 30px;
    padding: 12px 25px;
    font-weight: 700;
}

.btn-primary:hover {
    background-color: #D97706;
    border-color: #D97706;
    transform: translateY(-2px);
    transition: all 0.3s ease;
}

a { color: #374151;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #ED8936;
}

.card {
    border: none;
    border-radius: 15px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background-color: #F7FAFC; /* Легший фон для карток */
}

.card:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.text-primary { color: #ED8936 !important; }

.text-success {
    color: #38A169 !important; /* М'якший зелений */
}

.list-group-item {
    border: none;
    background-color: transparent;
    padding: 15px 0;
    border-bottom: 1px solid #E2E8F0;
}

.list-group-item:last-child {
    border-bottom: none;
}

.img-fluid {
    transition: transform 0.3s ease;
}

.img-fluid:hover {
    transform: scale(1.1);
}

.devis {
    font-style: italic;
    color: #ED8936;
    margin: 0;
    padding: 20px;
    background-color: #F7FAFC;
    border-radius: 10px;
    font-weight: 600;
}

/* Стилі для каруселі галереї */
.simple-gallery {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    margin-bottom: 10px;
}
.simple-gallery .arrow {
    background: #ED8936;
    border: none;
    color: #fff;
    font-size: 2rem;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.2s;
}
.simple-gallery .arrow:hover {
    background: #D97706;
}
.simple-gallery img {
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    border-radius: 18px;
    max-height: 400px;
    object-fit: cover;
}
#galleryCaption {
    font-size: 1.1rem;
    color: #374151;
    font-weight: 500;
}


/* --- Product List Styling --- */
.product-list {
    list-style: none;
    padding: 0;
    margin: 0 auto;
    max-width: 800px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px 28px;
}

.product-list li {
    background: #fff;
    border-left: 6px solid #ED8936;
    padding: 14px 18px;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
    font-weight: 600;
    color: #111827;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.product-list li:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    background: #FFF7ED;
}
@media (max-width: 768px) {
    .product-list {
        grid-template-columns: 1fr;
    }
}


/* --- Logo and Header --- */
.site-header {
    background: #1F2937;
    border-bottom: 4px solid #ED8936;
}
.site-logo {
    max-height: 100px;
    width: auto;
}


/* Inline logo in list */
.inline-logo {
    height: 28px;
    width: auto;
    vertical-align: middle;
    margin-right: 8px;
}

/* Ensure sections separated */
.products-section {
    background: #F9FAFB;
    padding-bottom: 60px;
}
.gallery-section {
    background: #FFFFFF;
    padding-top: 60px;
    padding-bottom: 60px;
    border-top: 2px solid #E5E7EB;
}


/* --- Section Background Helpers --- */
.bg-surface { background: #F9FAFB; }
.bg-white { background: #FFFFFF; }

/* subtle separation between stacked sections */
.section + .section { border-top: 1px solid #E5E7EB; }

/* --- Product List: mobile-first type scale and spacing --- */
.product-list {
    gap: 14px 24px;
}
.product-list li {
    font-size: clamp(16px, 2.2vw, 18px);
}

/* special card with inline logo */
.product-logo-card {
    display: flex;
    align-items: center;
    gap: 12px;
}
.inline-logo {
    width: 48px;
    height: 48px;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.15));
}

.flesh-video-section .container {
    max-width: 900px;
    margin: 0 auto;
    padding-bottom: 0;
}
.flesh-video-section .ratio {
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    background: #fff;
}

@media (max-width: 768px) {
    .inline-logo { width: 40px; height: 40px; }
}

/* --- 3D Gallery: stronger mobile scaling --- */
@media (max-width: 640px) {
    .work-3d { height: 260px; }
    .work-3d .item { width: 260px; height: 220px; top: 20px; }
    .work-3d .item.left1 { transform: translateX(calc(-50% - 160px)) translateZ(0) rotateY(-18deg); }
    .work-3d .item.right1 { transform: translateX(calc(-50% + 160px)) translateZ(0) rotateY(18deg); }
    .work-3d .item.left2 { transform: translateX(calc(-50% - 280px)) translateZ(-80px) rotateY(-26deg); opacity: .45; }
    .work-3d .item.right2 { transform: translateX(calc(-50% + 280px)) translateZ(-80px) rotateY(26deg); opacity: .45; }
    .work-3d .arrow { width: 38px; height: 38px; font-size: 18px; line-height: 38px; }
}

/* remove top header spacing if any remains */
.site-header { display: none; }


/* Патч для галереи: убираем "выпирание" ширины */
#simpleGallery {
  position: relative;
  display: block;           /* важно — чтобы inline gap не действовал */
  width: 100%;
  max-width: 900px;         /* ограничение по ширине */
  margin: 0 auto;
  overflow: hidden;         /* прячет возможные переполнения */
  padding: 0;
  box-sizing: border-box;
  gap: 0;                   /* на всякий случай */
}

/* Картинка адаптивная и не влияет на ширину контейнера */
#simpleGallery img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  box-sizing: border-box;
}

/* Стрелки — поверх картинки, не в флоу */
#simpleGallery .arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 20;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  border: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  line-height: 1;
  font-size: 20px;
  padding: 0;
}

/* отступы стрелок от краёв */
#simpleGallery .arrow.left  { left: 8px;  }
#simpleGallery .arrow.right { right: 8px; }

/* Убираем визуальные нарушения при фокусе */
#simpleGallery .arrow:focus { outline: 2px solid rgba(255,255,255,0.4); }

/* Мобильная адаптация */
@media (max-width: 576px) {
  /* уменьшить "паддинги" секции (если у вас inline style 120px, можно принудительно уменьшить) */
  .gallery-section { padding: 40px 0 !important; }

  #simpleGallery .arrow {
    width: 36px;
    height: 36px;
    font-size: 16px;
    left: 6px;
    right: 6px;
  }

  /* ограничиваем высоту картинки, если нужно */
  #simpleGallery img { max-height: 60vh; object-fit: cover; }
}

