/* Главная страница раздела /guide/ — карточки разделов */
.guide-hub {
    max-width: 960px;
    margin: 0 auto 32px;
    padding: 8px 4px 24px;
}
.guide-hub__header {
    margin-bottom: 28px;
    text-align: center;
}
.guide-hub__title {
    margin: 0 0 12px;
    font-size: clamp(1.35rem, 2.5vw, 1.75rem);
    font-weight: 700;
    color: #0a3f41;
    letter-spacing: 0.02em;
}
.guide-hub__lead {
    margin: 0 auto;
    max-width: 42rem;
    font-size: 1.05rem;
    line-height: 1.55;
    color: #4a5568;
}
.guide-hub__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
    align-items: stretch;
}
.guide-card {
    display: flex;
    flex-direction: column;
    padding: 22px 22px 20px;
    border-radius: 16px;
    background: #fff;
    border: 1px solid rgba(15, 166, 171, 0.22);
    box-shadow: 0 8px 28px rgba(11, 74, 77, 0.07);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.guide-card:hover {
    border-color: rgba(15, 166, 171, 0.45);
    box-shadow: 0 14px 36px rgba(11, 74, 77, 0.12);
    transform: translateY(-2px);
}
.guide-card__title {
    margin: 0 0 10px;
    font-size: 1.125rem;
    font-weight: 700;
    color: #0fa6ab;
    line-height: 1.3;
}
.guide-card__desc {
    margin: 0 0 18px;
    flex: 1 1 auto;
    font-size: 0.95rem;
    line-height: 1.5;
    color: #3d4d5c;
}
.guide-card__cta {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 18px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.95rem;
    color: #fff !important;
    background: #0fa6ab;
    text-decoration: none !important;
    transition: background 0.2s ease, filter 0.2s ease;
}
.guide-card__cta:hover {
    background: #0d8f93;
    filter: brightness(1.02);
}
.guide-card__cta:focus-visible {
    outline: 2px solid #0fa6ab;
    outline-offset: 3px;
}
@media (max-width: 480px) {
    .guide-hub__header {
        text-align: left;
    }
}

.owl_couresel_container{
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(160px, 200px);
    align-items: flex-start;
    gap: 20px;
}

/* Стрелки влево/вправо поверх слайда — явная подсказка, что карусель листается */
.owl_couresel_container > .owl-carousel.owl-theme {
    position: relative;
}
.owl_couresel_container .owl-carousel .owl-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    margin-top: 0;
    pointer-events: none;
}
.owl_couresel_container .owl-carousel .owl-nav .owl-prev,
.owl_couresel_container .owl-carousel .owl-nav .owl-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    margin: 0;
    pointer-events: auto;
    z-index: 3;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    padding: 0;
    background: rgba(15, 166, 171, 0.92) !important;
    color: #fff !important;
    font-size: 20px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.18);
    border: none;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.15s ease, opacity 0.2s ease;
}
.owl_couresel_container .owl-carousel .owl-nav .owl-prev {
    left: 8px;
}
.owl_couresel_container .owl-carousel .owl-nav .owl-next {
    right: 8px;
}
.owl_couresel_container .owl-carousel .owl-nav .owl-prev:hover,
.owl_couresel_container .owl-carousel .owl-nav .owl-next:hover {
    background: rgba(0, 95, 99, 0.95) !important;
}
.owl_couresel_container .owl-carousel .owl-nav .owl-prev.disabled,
.owl_couresel_container .owl-carousel .owl-nav .owl-next.disabled {
    opacity: 0.35;
    cursor: not-allowed;
}
.owl_couresel_container .owl-carousel .owl-nav .guide-carousel__nav-icon {
    display: block;
    line-height: 1;
    margin-top: -2px;
}
.content-carousel {
    width: 600px;
    display: block;
    margin: 0 auto;
}
.owl-carousel1, .owl-carousel2, .owl-carousel3{
    width: 100%;
}
.owl-carousel div {
    width: 100%;
}
.owl-carousel .owl-controls .owl-dot {
    background-size: cover;
    margin-top: 10px;
}
.owl-dots {
    position: static;
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    padding: 0;
    margin: 0;
}
.owl-dots li{
    list-style-type: none;
    padding: 5px 10px;
    border-radius: 10px;
    border: 1px solid #0fa6ab;
    text-align: center;
    cursor: pointer;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}
.owl-dots li:hover{
    border-color: #0fa6ab;
    box-shadow: 0 0 0 3px rgba(15, 166, 171, 0.2);
}
.owl-dots li:focus{
    outline: none;
}
.owl-dots li:focus-visible{
    border-color: #005f63;
    box-shadow: 0 0 0 3px rgba(15, 166, 171, 0.35);
}
.owl-carousel .owl-dot {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    width: 100%;
}
.owl-dot{
    cursor: pointer;
}
.guide_seporate{
    display: flex;
    column-gap: 30px;
    width: 100%;
    justify-content: center;
    margin: 50px 0;
}
.guide_seporate img{
    width: 40px;
}
@media (max-width: 1024px) {
    .owl_couresel_container{
        grid-template-columns: 1fr;
    }
    .desktop-dots {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }
}
@media (max-width: 768px) {
    .owl_couresel_container{
        display: flex;
        flex-direction: column;
    }
    .owl_couresel_container img {
        width: 100%;
		max-height: 70vh; /* ограничение по высоте */
		object-fit: contain; /* сохраняет пропорции */
	}
    .owl-carousel1, .owl-carousel2, .owl-carousel3 {
        width: 100%;
    }
    .owl-dots{
        width: 100%;
        padding: 0;
        display: flex;
        flex-wrap: wrap;
        column-gap: 10px;
        row-gap: 10px;
        justify-content: space-evenly;
        margin-top: 10px;
    }
}

.mobile-select-container, .mobile-select-container1, .mobile-select-container2{
    position: relative;
    display: none;
    margin-top: 15px;
}

.mobile-carousel-select {
    width: 100%;
    padding: 5px 45px 5px 15px;
    background: white;
    border: 2px solid #0fa6ab;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 500;
    color: #495057;
    appearance: none;
    cursor: pointer;
    /* box-shadow: 0 1px 5px #0fa6ab; */
}

.custom-arrow {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: #0fa6ab;
    font-size: 14px;
    transition: transform 0.3s ease;
}

.mobile-carousel-select:focus + .custom-arrow {
    transform: translateY(-50%) rotate(180deg);
}

.mobile-carousel-select:focus {
    outline: none;
    border-color: #0056b3;
    box-shadow: 0 0 0 3px #0fa6ab;
}

/* Адаптивность */
@media (max-width: 768px) {
    .desktop-dots {
        display: none;
    }
    
    .mobile-select-container, .mobile-select-container1, .mobile-select-container2 {
        display: block;
    }
}

@media (min-width: 769px) {
    .mobile-select-container, .mobile-select-container1, .mobile-select-container2 {
        display: none;
    }
    
    .desktop-dots {
        display: flex;
        width: 100%;
    }
}


.owl_couresel_container .owl-item {
    position: relative;
    min-height: 200px; /* Минимальная высота слайда */
}

.owl_couresel_container .owl-item img {
    opacity: 0;
    transition: opacity 0.3s ease;
    width: 100%;
    height: auto;
}

.owl_couresel_container .owl-item img.loaded {
    opacity: 1;
}

.preloader {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    z-index: 10;
}

.preloader.error {
    animation: none;
    border: none;
    width: auto;
    height: auto;
    color: #666;
    font-size: 14px;
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Скрываем прелоадер когда изображение загружено */
.owl_couresel_container .owl-item img.loaded ~ .preloader {
    display: none;
}