body {
    font-family: Arial, sans-serif;
}

html,
body {
    height: 100%;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

footer {
    margin-top: auto;
}

/* Слайдер */

.carousel-item img {
    height: 600px;
    object-fit: cover;
}

.carousel-caption {
    background: rgba(0, 0, 0, 0.5);
    border-radius: 12px;
    padding: 20px;
}

.carousel-item img {
    width: 100%;
    height: 600px;
    object-fit: cover;
}

/* Заголовки секций */

section h2 {
    font-weight: 700;
}

/* Карточки */

.card {
    border: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);

    transition: transform 0.3s ease,
        box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-8px);

    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

/* Картинки экспонатов */

.card-img-top {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

/* О музее */

#about img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

/* Карта */
#contacts img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

/* Подвал */

footer ul li {
    margin-bottom: 10px;
}

footer a:hover {
    text-decoration: underline !important;
}

/* Иконки соцсетей */

.bi {
    font-size: 1.5rem;
    cursor: pointer;
}

.nav-pills .nav-link {
    color: #212529;
    border: 1px solid #ced4da;
    background-color: #fff;
}

.nav-pills .nav-link:hover {
    background-color: #f8f9fa;
    color: #212529;
}

.nav-pills .nav-link.active {
    background-color: #212529;
    border-color: #212529;
    color: #fff;
}

.pagination .page-link {
    color: #212529;
}

.pagination .page-link:hover {
    color: #212529;
    background-color: #f8f9fa;
}

.pagination .page-item.active .page-link {
    background-color: #212529;
    border-color: #212529;
    color: #fff;
}

.pagination .page-item.disabled .page-link {
    color: #6c757d;
}

/* Страница экспоната */

.table th {
    width: 40%;
    color: #212529;
}

.table td {
    color: #495057;
}

.row img.rounded {
    transition: transform 0.3s ease;
}

.row img.rounded:hover {
    transform: scale(1.03);
}

.link-dark:hover {
    text-decoration: underline;
}
.position-relative img {
    max-height: 500px;
    object-fit: cover;
}

.position-absolute {
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
}



/* Адаптивность */

@media (max-width: 768px) {

    .carousel-item img {
        height: 350px;
    }

    .card-img-top {
        height: 220px;
    }

    .carousel-caption h2 {
        font-size: 1.5rem;
    }

    .carousel-caption p {
        font-size: 0.9rem;
    }
}