.content {
    margin: 2rem auto;
    max-width: 1200px;
}



@media (hover: hover) {
    .grid-container {
        display: grid;
        grid-template-columns: repeat(4, 1fr); /* 4 колонки */
        gap: 20px; /* Расстояние между элементами */
        width: 100%;
    }
}


.grid-item {
    position: relative;
    overflow: hidden;
    text-align: center;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    background-color: #083757;
    text-decoration: none; /* Убираем подчеркивание ссылок */
    color: inherit; /* Наследуем цвет текста */
    transition: transform 0.3s ease; /* Плавное увеличение */
}

.grid-item:hover {
    transform: scale(1.05); /* Увеличение при наведении */
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.2);
}


.grid-item img {
    width: 100%; /* Делаем изображение адаптивным */
    height: 200px; /* Фиксированная высота для одинакового размера */
    object-fit: cover; /* Обрезка изображения по границам */
    border-radius: 10px 10px 0 0; /* Закругление только верхних углов */
    transition: transform 0.3s ease; /* Плавное увеличение изображения */
}

.grid-item:hover img {
    transform: scale(1.1); /* Увеличение изображения при наведении */
}

.grid-item:hover .caption {
    color: #ffa019; /* Цвет текста при наведении */
}

.caption {
    padding: 10px;
    background-color: #083757; /* Цвет фона под текстом */
    color: white; /* Цвет текста */
    font-size: 16px;
    font-weight: bold;
    border-radius: 0 0 10px 10px; /* Закругление только нижних углов */
    text-align: center;
    transition: color 0.3s ease; /* Плавное изменение цвета текста */
}

/* Общий стиль для двух каруселей */
.dual-carousel {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 40px;
    gap: 10px;
    flex-direction: row-reverse;
    line-height: 1.6;
}

/* Обёртка для каждой карусели */
.carousel-wrapper {
    position: relative;
    text-align: center; /* Центрирование подписи */
    gap: 10px;
}

/* Карусель */
.carousel {
    display: flex;
    overflow: hidden;
    border: 1px solid #ddd;
    border-radius: 10px 10px 0 0;
    background-color: #f8f9fa;
    height: 300px;
    width: 100%;
    position: relative;
}


.carousel-item {
    flex: 0 0 100%; /* Каждая картинка занимает 100% ширины карусели */
    height: 100%; /* Устанавливаем высоту блока */
    position: relative;
    overflow: hidden; /* Убираем элементы, выходящие за пределы */
}

.carousel-item img {
    width: 100%; /* Картинка растягивается по ширине контейнера */
    height: 100%; /* Картинка растягивается по высоте контейнера */
    object-fit: cover; /* Обрезает изображение по границам блока, сохраняя пропорции */
    display: block; /* Убирает дополнительные отступы картинки, если есть */
    overflow: hidden;    
    transition: transform 0.3s ease-in-out; /* Плавная анимация увеличения */
}

/* Применяем ховер только для устройств с курсором */
@media (hover: hover) {
    .carousel-item:hover img {
        transform: scale(1.1);
    }
}

/* Подпись */
.carousel-caption {
    background: #083757;
    border-radius: 0 0 10px 10px;
    padding: 10px;
}

.carousel-link {
    text-decoration: none;
    color: white;
    font-size: 18px;
    font-weight: bold;
}

.carousel-link:hover {
    color: #ffa019;
}

/* Стрелки */
.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    z-index: 1;
    font-size: 18px;
}

.carousel-arrow:hover {
    background-color: #ffa019;
}

.left-arrow {
    left: 0px;
}

.right-arrow {
    right: 0px;
}

/* Общий стиль для подвала */
.footer {
    background-color: #fff;
    padding: 40px 20px;
    border-top: 1px solid #ddd;
    font-family: 'Roboto', Arial, sans-serif
}

.footer-container {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Контактная информация */
.footer-info {
    flex: 1;
}

.footer-title {
    color: #083757;
    font-size: 24px;
    margin-bottom: 20px;
    text-transform: uppercase;
    position: relative;
}



.footer-contact {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.footer-contact li {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #083757;
    font-size: 16px;
}

.footer-contact img {
    width: 24px;
    height: 24px;
}

/* Карта */
.footer-map {
    flex: 1;
}

.footer-map iframe {
    border: 0;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Социальные сети */
.footer-social {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-link img {
    width: 40px;
    height: 40px;
    transition: transform 0.3s;
}

.social-link img:hover {
    transform: scale(1.1);
}

.text_carousel {
    color: #083757;
    font-size: large;
    padding-top: 22px;
}

.text_carousel ul{
    padding-left: 20px;
}

.show-more-button {
    display: inline-block;
    margin: 20px auto;
    padding: 10px 20px;
    font-size: 1rem;
    background-color: #083757;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.show-more-button:hover {
    background-color: #ffa019;
}

.two-column-container {
    display: flex;
    gap: 100px; /* Расстояние между столбцами */
}

.two-column-container ul {
    margin: 0;
}

.two-column-container ul li {
    margin: 5px 0; /* Отступы между элементами списка */
    font-weight: bold;
}

@media (max-width: 768px) {
    .dual-carousel {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        margin-bottom: 40px;
        gap: 10px;
        flex-direction: column;
        line-height: 1.6;
    }

    .grid-container {
        display: grid;
        gap: 20px; /* Расстояние между элементами */
        width: 100%;
    }


    
    .content{
        margin: 2rem 1rem
    }
    
    li {
        color: #083757;
        font-size: 1rem;
    }

    .two-column-container {
        display: flex;
        gap: 10px;
    }
}