/* -------------------- */
/* HERO-БЛОК           */
/* -------------------- */

.hero-section {
    position: relative;
    min-height: calc(100vh - 72px); /* высота экрана минус navbar */
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    text-align: center;
    overflow: hidden;
}

.hero-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background: url("../img/hero.jpg") center center / cover no-repeat;
    z-index: -2;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: -1;
}

.hero-content {
    max-width: 750px;
    padding: 20px;
}

.hero-content h1 {
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 600;
}

.hero-content .lead {
    font-size: clamp(1.1rem, 2vw, 1.5rem);
    margin-bottom: 1.6rem;
}



/* -------------------- */
/* УСЛУГИ – "ОЛИМПИЙСКИЕ КОЛЬЦА" */
/* -------------------- */

.services-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;      /* центрируем всю пачку карточек */
    align-items: stretch;         /* ВАЖНО: все элементы ряда растягиваются до одной высоты */
    gap: 28px;
    max-width: 1000px;
    margin: 20px auto 0;
}

.service-item {
    width: 260px;
    border-radius: 12px;
    overflow: hidden;
    display: flex;                /* делаем карточку flex-контейнером */
    flex-direction: column;       /* картинка сверху, текст снизу */
}

/* картинка – одинаковой высоты у всех */
.service-item img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

/* тело карточки тянется, чтобы высота выровнялась */
.service-item .card-body {
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* заголовок + текст равномерно */
    flex: 1;
}


/* -------------------- */
/* АДАПТИВНОСТЬ */
/* -------------------- */
@media (max-width: 768px) {
    .service-item {
        width: calc(50% - 20px);
    }
}

@media (max-width: 480px) {
    .service-item {
        width: 100%;
    }
}



/* -------------------- */
/* ТЁМНАЯ ТЕМА */
/* -------------------- */

body.theme-dark {
    background-color: #121212;
    color: #f5f5f5;
}

body.theme-dark .navbar,
body.theme-dark footer {
    background-color: #181818 !important;
    color: #f5f5f5;
}

body.theme-dark .navbar .nav-link,
body.theme-dark footer a {
    color: #f5f5f5 !important;
}

body.theme-dark .card {
    background-color: #1f1f1f;
    color: #eee;
}

body.theme-dark .card .card-title,
body.theme-dark .card .card-text {
    color: #f5f5f5;
}

/* Светлая тема */
body.theme-light {
    background-color: #f7f7f7;
}

/* Карточки */
.card {
    border-radius: 10px;
    overflow: hidden;
}


/* -------------------- */
/* АДАПТИВНЫЙ HERO */
/* -------------------- */
@media (max-width: 576px) {
    .hero-section {
        min-height: calc(100vh - 56px);
        padding-bottom: 30px;
    }
}

