:root {
  --c:   #5C6B3A;           /* Основний оливковий */
  --c10: rgba(92,107,58,.10); 
  --c20: rgba(92,107,58,.20); 
  --c40: rgba(92,107,58,.40); 
  --c70: rgba(92,107,58,.70); 
}

/* ================= ЗАГАЛЬНІ ТА СПІЛЬНІ СТИЛІ ================= */

body {
  background-color: #d6d6d6;
  font-family: 'Lato', sans-serif;
  font-weight: 300;
}

/* Спільний шрифт для всіх заголовків та назв */
.brand-name, .slide-title, .hero-headline, .card-title, .list-item-name {
  font-family: 'Playfair Display', serif;
}

/* Універсальний клас для портретного кадрування зображень */
.portrait { object-position: top center; }

/* ================= ПРОМО-БАНЕР ТА БРЕНД ================= */

.promo-banner {
  background: #fff;
  border-bottom: 1px solid var(--c20);
}

.brand-icon {
  width: 44px; height: 44px;
  background: var(--c);
  border-radius: 5px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.brand-icon svg { width: 22px; height: 22px; fill: #fff; }

.brand-name { font-size: 1rem; font-weight: 700; color: var(--c); line-height: 1.2; }
.brand-tagline { font-size: 0.72rem; color: var(--c40); }

.alert-promo {
  --bs-alert-bg: #fff;
  --bs-alert-border-color: var(--c20);
  --bs-alert-color: var(--c);
  margin-bottom: 0; padding: 10px 16px;
  display: flex; align-items: center; gap: 10px;
}
.alert-promo svg { width: 22px; height: 22px; fill: var(--c); flex-shrink: 0; }
.alert-promo strong { font-size: 0.85rem; display: block; color: var(--c); }
.alert-promo span { font-size: 0.72rem; color: var(--c70); }

/* ================= HERO СЕКЦІЯ ТА КАРУСЕЛЬ ================= */

.hero-section { background: #fff; padding: 28px 0 40px; }
.hero-text { padding-left: 36px; }

.hero-headline { font-size: 2rem; font-weight: 700; color: var(--c); line-height: 1.15; margin-bottom: 14px; }
.hero-body { font-size: 0.9rem; color: var(--c70); line-height: 1.75; margin-bottom: 26px; }

.btn-olive {
  background: var(--c); color: #fff;
  font-size: 0.82rem; letter-spacing: .1em; text-transform: uppercase;
  padding: 12px 28px; border: none; border-radius: 3px;
  text-decoration: none; transition: opacity .25s;
}
.btn-olive:hover { opacity: .82; color: #fff; }

/* Карусель */
#heroCarousel { border-radius: 10px; overflow: hidden; }
.carousel-item { height: 340px; }

.slide-bg {
  height: 100%;
  background-size: cover; background-position: center;
  display: flex; align-items: flex-end; padding: 32px;
  position: relative;
}
.slide-bg::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(92,107,58,.80) 0%, rgba(92,107,58,.10) 70%);
}

.slide-content { position: relative; z-index: 2; }
.slide-title { font-size: 1.55rem; font-weight: 700; color: #fff; line-height: 1.2; margin-bottom: 4px; }
.slide-author { font-size: 0.82rem; color: rgba(255,255,255,.75); font-style: italic; margin-bottom: 16px; }

/* Елементи керування каруселлю */
.carousel-indicators [data-bs-target] {
  width: 8px; height: 8px; border-radius: 50%; border: none;
  background: rgba(255,255,255,.40);
}
.carousel-indicators .active { background: #fff; opacity: 1; }

.carousel-control-prev-icon, .carousel-control-next-icon { filter: none; }
.carousel-control-prev, .carousel-control-next {
  width: 38px; height: 38px;
  top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,.22); border-radius: 50%; opacity: 1;
}

/* ================= СЕКЦІЯ КАТЕГОРІЙ ================= */

.categories-section { padding: 44px 0 52px; background: #fff; }

/* Картки (Десктоп) */
.card { border-color: var(--c20); transition: transform .25s, box-shadow .25s; }
.card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px var(--c10) !important; }
.card-img-top { height: 175px; object-fit: cover; }
.card-subtitle { font-size: 0.7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--c40); }
.card-title { font-size: 1.05rem; color: var(--c); }
.card-text { font-size: 0.8rem; color: var(--c70); line-height: 1.55; }
.card-link { font-size: 0.78rem; color: var(--c); font-weight: 700; text-decoration: none; }
.card-link:hover { color: var(--c70); }

/* Списки (Мобільні) */
.list-group-item {
  border-color: var(--c20);
  display: flex; align-items: center; gap: 14px;
  padding: 12px 14px;
}
.list-group-item img { width: 54px; height: 54px; object-fit: cover; border-radius: 5px; flex-shrink: 0; }
.list-item-sub { font-size: 0.7rem; color: var(--c40); letter-spacing: .06em; text-transform: uppercase; }
.list-item-name { font-size: .92rem; font-weight: 600; color: var(--c); }
.list-arrow { margin-left: auto; color: var(--c40); flex-shrink: 0; text-decoration: none; }

/* ================= ПІДВАЛ (FOOTER) ================= */

footer { background: #fff; border-top: 1px solid var(--c20); }
footer small { color: var(--c40); }

/* ================= АДАПТИВНІСТЬ ================= */

@media (max-width: 991px) {
  .hero-text { padding-left: 0; padding-top: 24px; }
}

@media (max-width: 575px) {
  .carousel-item, .slide-bg { height: 260px; }
  .slide-title { font-size: 1.2rem; }
  .hero-headline { font-size: 1.55rem; }
}