/* Стили для галереи */
.gallery {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 8px;
}

.gallery-images {
    display: flex;
    transition: transform 0.5s ease;
}

.gallery-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: none;
    border-radius: 8px;
}

.gallery-image.active {
    display: block;
}

.gallery-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
    font-size: 24px;
    border-radius: 50%;
    transition: background-color 0.3s ease;
}

.gallery-button:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.gallery-button.prev {
    left: 10px;
}

.gallery-button.next {
    right: 10px;
}

/* Стили для карточек */
.card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 20px;
    margin-bottom: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.card-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
}

.card-title {
    font-size: 22px;
    margin: 15px 0 10px;
    color: #333;
}

.card-text {
    font-size: 16px;
    line-height: 1.5;
    color: #666;
}

/* Стили для кнопок */
.button {
    display: inline-block;
    padding: 10px 20px;
    background-color: #333;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    font-size: 16px;
    text-align: center;
    transition: background-color 0.3s ease;
}

.button:hover {
    background-color: #555;
}

/* Стили для переключателя языка */
.language-switcher {
    display: flex;
    gap: 10px;
}

.language-switcher button {
    background-color: transparent;
    border: 1px solid #fff;
    color: #fff;
    padding: 5px 10px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.language-switcher button:hover {
    background-color: #fff;
    color: #333;
}

/* Стили для социальных ссылок */
.social-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 10px;
}

.social-links li {
    margin: 0;
}

.social-links a {
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: #ccc;
}

/* Стили для PDF-кнопок */
.pdf-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.pdf-buttons a {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.pdf-buttons a:hover {
    opacity: 0.8;
}

/* Адаптивность для компонентов */
@media (max-width: 768px) {
    .card-image {
        height: 200px;
    }

    .button {
        padding: 8px 16px;
        font-size: 14px;
    }

    .gallery-image {
        height: 200px;
    }

    .gallery-button {
        font-size: 20px;
        padding: 8px;
    }
}