.carousel-item {
    height: 600px;
}

.carousel-item img {
    object-fit: cover;
    height: 100%;
    width: 100%;
    filter: brightness(65%);
}

.carousel-caption {
    top: 50%;
    bottom: auto;
    /*left: 10%;*/
    right: auto;
    transform: translateY(-50%);
    text-align: left;
}

.carousel-caption h1, .carousel-caption p {
    text-shadow: 0 1px 3px rgba(0,0,0,0.8);
}

.carousel-control-prev,
.carousel-control-next {
    width: 5%; /* немного ширины, чтобы не висели на краю */
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    /*background-color: rgba(0, 0, 0, 0.4); !* полупрозрачный тёмный фон *!*/
    border-radius: 50%;
    padding: 15px;
    background-size: 100% 100%;
}

.carousel-control-prev {
    left: 2%;
}
.carousel-control-next {
    right: 2%;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    /*background-color: rgba(108, 117, 125, 0.9); !* фон кнопки *!*/
    mask-size: 20px 20px;
    -webkit-mask-size: 20px 20px;
    width: 20px;
    height: 20px;
}

.carousel-control-prev,
.carousel-control-next {
    background-color: rgba(108, 117, 125, 0.9); /* фон кнопки */
    width: 45px;
    height: 45px;
    border-radius: 8px;
    top: 50%;
    transform: translateY(-50%);
    opacity: 1 !important;
    transition: background-color 0.3s ease;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    background-color: rgba(90, 100, 110, 0.95);
}


.carousel-item img {
    object-fit: cover;
    height: 100%;
    filter: brightness(65%);
}

.carousel-caption {
    top: 50%;
    bottom: auto;
    transform: translateY(-50%);
    text-align: left;
}

.nav-item{
    margin: 0 10px;
}

.nav-item:hover{
    border-radius: 10px;
    background-color: #E7F4FA;
    color: white;
}
footer .logo-circle {
    width: 50px;
    height: 50px;
    font-size: 16px;
    margin-bottom: 1rem;
}

footer .section-title {
    margin-bottom: 1rem;
}

footer .footer-col {
    padding-right: 1rem;
}

footer ul {
    padding-left: 0;
    list-style: none;
}

footer ul li {
    margin-bottom: 0.5rem;
}

footer .footer-bottom {
    padding-top: 2rem;
    padding-bottom: 1rem;
    margin-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.carousel-caption h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
}

.carousel-caption h5 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-top: 0.5rem;
}

.carousel-caption p {
    font-size: 1rem;
    opacity: 0.9;
}

.card-title a{
    text-decoration: none;
}

.fw-bold{
    padding-bottom: 20px;
}

.carousel-caption h1 {
    font-size: 3rem;
    word-break: break-word;
}

.carousel-caption h5,
.carousel-caption p {
    word-break: break-word;
}

@media (max-width: 768px) {
    .carousel-caption {
        padding: 1rem;
        left: 0;
        right: 0;
        text-align: left;
    }

    .carousel-caption h1 {
        font-size: 1.75rem; /* уменьшаем заголовок */
    }

    .carousel-caption h5 {
        font-size: 1.1rem;
    }

    .carousel-caption p {
        font-size: 0.95rem;
    }

    .carousel-caption a.btn {
        font-size: 0.9rem;
        padding: 0.5rem 1rem;
        margin-bottom: 0.3rem;
    }
}


