

:root, [data-bs-theme=light] {

  --bs-link-color: #17aea8;
  --bs-link-color-rgb: 23, 174, 168;
  --bs-warning-rgb: 23, 174, 168;
}




.fs-8 {font-size:0.9em;}
.fs-9 {font-size:0.8em;}
.fs-10 {font-size:0.7em;}

.text-white .nav-link {color:white;}

a {text-decoration: none;}

.bg-warning .active {background-color: #17aea8;}


.navbar-nav .nav-link {
    border-radius: 8px;
    transition: all 0.3s ease;
    margin: 0 2px;
}

.navbar-nav .nav-link:hover {
    background-color: #17aea8;
    color: white !important;
    transform: translateY(-1px);
}

.navbar-nav .nav-link.fw-bold.text-warning {
    background-color: #17aea8;
    color: white !important;
}

.navbar-nav .nav-link.fw-bold.text-warning:hover {
    background-color: #17aea8;
}

.gallery-grid {
    margin-top: 2rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    background: white;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.gallery-image-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    aspect-ratio: 2/3;
}

.gallery-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-image {
    transform: scale(1.05);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(23, 174, 168, 0.8), rgba(23, 174, 168, 0.6));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-zoom-icon {
    color: white;
    text-align: center;
    font-size: 1.5rem;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-zoom-icon {
    transform: translateY(0);
}

.gallery-zoom-icon span {
    display: block;
    font-size: 0.9rem;
    margin-top: 0.5rem;
    font-weight: 500;
}

.gallery-caption {
    padding: 1rem;
    text-align: center;
    font-size: 0.9rem;
    color: #666;
    font-weight: 500;
}

/* Адаптивность */
@media (max-width: 1400px) {
    .gallery-grid .col-xl-2 {
        flex: 0 0 20%;
        max-width: 20%;
    }
}

@media (max-width: 1200px) {
    .gallery-grid .col-lg-3 {
        flex: 0 0 25%;
        max-width: 25%;
    }
}

@media (max-width: 768px) {
    .gallery-item {
        border-radius: 8px;
    }
    
    .gallery-image-wrapper {
        border-radius: 8px;
    }
    
    .gallery-zoom-icon {
        font-size: 1.2rem;
    }
    
    .gallery-caption {
        padding: 0.75rem;
        font-size: 0.85rem;
    }
    
    .gallery-grid .col-md-4 {
        flex: 0 0 33.333333%;
        max-width: 33.333333%;
    }
}

@media (max-width: 576px) {
    .gallery-grid .col-6 {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

/* Анимация появления */
.gallery-item {
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
}

.gallery-item:nth-child(1) { animation-delay: 0.1s; }
.gallery-item:nth-child(2) { animation-delay: 0.2s; }
.gallery-item:nth-child(3) { animation-delay: 0.3s; }
.gallery-item:nth-child(4) { animation-delay: 0.4s; }
.gallery-item:nth-child(5) { animation-delay: 0.5s; }
.gallery-item:nth-child(6) { animation-delay: 0.6s; }
.gallery-item:nth-child(7) { animation-delay: 0.7s; }
.gallery-item:nth-child(8) { animation-delay: 0.8s; }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}