@import url("https://fonts.googleapis.com/css?family=Exo+2:300,300i,400,400i,500,500i,600,600i,700,700i");
:root {
    --primary: #e51a4b;
    --secondary: #264796;
    --accent: #ffd166;
    --light: #f8f9fa;
    --dark: #2d3748;
}
.logo img{
    height: 90px;
}
@media(max-width: 380px){
    .logo img{
        height: 85px;
    }
}
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
}
.main-page-img{
    position: absolute;
    top: 0;
    width: 100%;
    height: 635px;
}
/*.logo {
    font-weight: 800;
    font-size: 1.8rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}*/
.mega-menu {
    width: 85vw;
    left: 50% !important;
    right: 50% !important;
    margin-left: -50vw !important;
    margin-right: -50vw !important;
    border: none;
    border-radius: 0 0 20px 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    padding: 20px 0;
    background: white;
}
.search_menu{
    width: 50vw;
    left: 50% !important;
    right: 50% !important;
    margin-left: -50vw !important;
    margin-right: -50vw !important;
    border: none;
    border-radius: 0 0 20px 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    padding: 20px 0;
    background: white;
}
.dropdown-menu .container {
    /*max-width: 1200px;*/
    margin-left: 0;
    margin-right: 0;
}

.dropdown-item {
    padding: 10px 15px;
    border-radius: 8px;
    margin: 2px 0;
    transition: all 0.3s ease;
}

.dropdown-item:hover {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white !important;
    transform: translateX(5px);
}

.dropdown-item:hover .text-muted {
    color: rgba(255,255,255,0.8) !important;
}

.dropdown-item:hover .text-primary {
    color: white !important;
}

.navbar-nav .dropdown-menu {
    border: none;
}

/* Анимация появления меню */
.dropdown-menu {
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
@media(max-width: 1290px){
    .dropdown-item {
        overflow: hidden;
    }
    .mega-menu{
        width: 83vw;
    }
    .dropdown-item:hover {
        position: relative;
        width: 500px;
    }
}


/* Стили для мобильной версии */
@media (max-width: 991.98px) {
    .mega-menu {
        width: 100% !important;
        left: 0 !important;
        right: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        position: static !important;
        transform: none !important;
        box-shadow: none;
        border-radius: 0;
    }
    .search_menu {
        width: 100% !important;
        min-width: 425px;
        left: 0 !important;
        right: 0 !important;
        margin-left: -66vw !important;
        margin-right: 0 !important;
        position: absolute !important;
        transform: none !important;
        box-shadow: none;
        border-radius: 0;
    }
    .dropdown-menu .container {
        padding: 0;
    }

    .dropdown-menu .row {
        margin: 0;
    }

    .dropdown-menu .col-md-4 {
        padding: 0;
    }
    .navbar-collapse .dropdown-menu {
        border: none;
        background: transparent;
        box-shadow: none;
        max-height: 310px;
        overflow: auto;
    }

    .navbar-collapse .dropdown-toggle::after {
        display: none;
    }

    .mega-menu .container {
        padding: 0;
    }

    .mega-menu .row {
        margin: 0;
    }

    .mega-menu .col-md-4 {
        padding: 0;
    }
}

/* Улучшенные стили для навигации */
.navbar {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.navbar-scrolled {
    background: white !important;
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
}

.nav-link {
    position: relative;
    padding: 10px 15px !important;
    transition: all 0.3s ease;
}

.nav-link:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%);
    transition: width 0.3s ease;
    border-top: none;
}

.nav-link:hover:after,
.nav-link.active:after {
    width: 80%;
}

.dropdown-toggle::after {
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.dropdown.show .dropdown-toggle::after {
    transform: rotate(180deg);
}
.btn-primary-d {
    background: var(--primary);
    border: none;
    padding: 12px 30px;
    font-weight: 600;
}

.btn-primary-d:hover {
    background: #c41641;
    transform: translateY(-2px);
}

.btn-secondary-d {
    background: var(--secondary);
    border: none;
    padding: 12px 30px;
    font-weight: 600;
}

.section-title {
    position: relative;
    margin-bottom: 50px;
    font-weight: 700;
}

.section-title:after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%);
    border-radius: 2px;
}
.breadcrumbs{
    display: flex;
    gap: 5px;
    justify-content: center;
    top: 30px;
    position: relative;
}
.brc-item{
    font-size: 14px;
    color: #fff;
    padding: 0px 5px;
    border-right: 1px solid;
}
.brc-item a{
    color:#fff;
}
.brc-item a:hover{
    text-decoration: none;
}
/*Админка*/
.dop_cat_insert{
    display:flex;
}
.hidden-input-item{
    padding: 5px;
}
#input_price{
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
}
.price-input-item{
    display:flex;
    border: 1px solid #80808066;
    padding: 5px;
}
.price-input-item-btn{
    align-content: center;
    padding: 5px;
}
#input-include{
    /* display: flex;
     flex-wrap: wrap;*/
}
.include-item{
    display: flex;
    width: 100%;
    flex-wrap: wrap;
    max-width: 440px;
    border: 1px solid #ddd2d2;
    padding: 5px;
}
.include-name{
    min-width: 350px;
}
.tour-metki{
    margin-top: 5px;
    display: flex;
    gap:10px
}
/*Фото туров в админке*/
.a-t-img-lists{
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.a-t-img-item{
    flex-direction: column;
    display: flex;
    gap: 5px;
}
/*Главное меню*/
.s-main-menu{
    position: sticky;
    top:0px;
}
.s-main-menu-container{
    position: absolute;
    width: 1320px;
    background-color: #fff;
    top: 0;
    z-index: 50;
}
.s-main-menu-items{
    display: flex;
}
.s-main-logo{
    width: 280px;
}
.s-main-logo img{
    width: 100%;
}
.s-main-contact{
    align-content: center;
}
.s-main-menu-nav{
    max-height: 40px;
    align-self: center;
    width: 100%;
    justify-items: center;
    max-width: 700px;
}
.s-main-menu-nav .nav-link{
    font-size: 18px;
    font-weight: 600;
    color: #264796;
}
.s-main-menu-nav .nav-link:hover{
    color: #e51a4b;
}
.s-main-menu-category{
    display: grid;
    grid-template-columns: repeat(3, 370px);
}
.s-menu-cat-item{

}
.s-menu-cat-item a{
    font-size: 16px;
    font-weight: 500;
    color: #264796;
}
.s-menu-cat-item a:hover{
    color: #e51a4b;
}
.s-main-cat-menu{
    padding: 10px;
    border-radius: 10px;
    box-shadow: 0 .5rem 1rem rgba(0, 0, 0, .15) !important;
    position: absolute;
    top: 125px;
    left: 0;
    background-color: #fff;
}
/*Категории на главной*/
.s-main-razdel-name{
    font-size: 25px;
    font-weight: 600;
    color: #264796;
    padding: 20px 10px;
}
.s-main-category-list{
    display: flex;
    gap: 15px;
}
.s-main-category-item a{
    text-decoration: none !important;
}
.s-main-category-img{
    width: 250px;
    height: 200px;
}
.s-main-category-img img{
    width: 100%;
    object-fit: cover;
    height: 100%;
    border-radius: 10px 10px 0px 0px;
}
.s-main-category-title{
    font-size: 17px;
    font-weight: 600;
    text-align: center;
    padding: 17px 10px;
    background: #d9889b70;
    height: 91px;
    border-radius: 0px 0px 10px 10px;
    max-width: 250px;
}
/*Поиск на главной*/
.s-main-search{
    margin-top: 80px;
}
.s-search-field{

}
.s-search-result{
    position: absolute;
    background-color: #fff;
    border-radius: 10px;
    padding: 10px;
    width: 100%;
    max-height: 400px;
    overflow: auto;
}
.s-search_result-header{
    font-size: 18px;
    font-weight: 600;
    color: #264796;
}
.s-search_result-item{
    display: flex;
    gap: 10px;
    padding: 10px;
}
.s-search_result-item .s-img{
    width: 100px;
    height: 100px;
}
.s-search_result-item .s-img img{
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.s-search_result-item .s-name{
    align-content: center;
    font-size: 17px;
    font-weight: 500;
}
/*Страница категорий*/
.s-kat_page-tour-list{

}
.s-kat_page-tour-item{
    display: flex;
    gap: 5px;
}
.s-kat_page-tour-item-img{
    width: 250px;
    height: 250px;
}
.s-kat_page-tour-item-img img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}
.s-kat_page-tour-item-descr{
    width: 435px;
}
.s-kat_page-tour-item-title{
    font-size: 19px;
    font-weight: 700;
    color: #264796;
    padding: 5px;
}
.s-kat_page-tour-item-longtitle{
    padding: 2px 5px;
    font-size: 15px;
    font-weight: 500;
}
.s-kat_page-tour-item-introtext{
    width: 100%;
    font-size: 14px;
    padding: 5px;
    display: -webkit-box;
    -webkit-line-clamp: 7;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.s-kat_page-tour-item-prices{
    width: 230px;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 .5rem 1rem rgba(0, 0, 0, .15) !important;
}
.s-kat_page-tour-item-price{
    font-size: 19px;
    font-weight: 600;
    text-align: center;
    padding: 15px 10px;
}
.so{

}
.sprice{

}
.s-kat_page-tour-item-duration{
    font-size: 17px;
    font-weight: 600;
    text-align: center;
    padding: 5px 10px;
}
.s-kat_page-tour-item-btn{
    padding: 10px;
    display: flex;
    justify-content: center;
    margin-top: 10px;
}
.s-kat_page-tour-item-btn a{
    font-weight: 500;
    background-color: #e41a3f;
    color: #fff;
    padding: 10px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 17px;
}
/*Страница тура*/
.s-tour_page-header{
    margin-top: 160px;
    height: 160px;
    text-align: center;
    padding: 15px;
    background: linear-gradient(135deg, #264796 0%, #e51a4b 100%);
    color: #fff;
    width: 100%;
    position: relative;
}
.s-tour_page-header .title{
    font-size: 32px;
    font-weight: 700;
    display: block;
    margin-top: 10px;
}
.s-tour_page-header .longtitle{
    font-size: 17px;
    font-weight: 500;
    display: block;
}
.s-tour_page-main_blok{
    margin-top: 55px;
}
.s-tour_page-gallery{

}
.s-tour_page-gallery-slider{
    border-radius: 10px;
}
.s-tour_page-gallery-item{
    height: 480px;
}
.s-tour_page-gallery-item img{
    border-radius: 10px;
    height: 100%;
    width: 100%;
    object-fit: cover;
}
.s-tour_page-small_description{
    padding: 35px;
    border-radius: 10px;
    background-color: #e51a4b1c;
}
.s-tour_page-duration{
    padding: 5px;
}
.s-tour_page-duration .d-title{
    font-weight: 400;
    display: block;
    margin-bottom: 7px;
}
.s-tour_page-duration .d-value{
    background-color: #264796a3;
    padding: 5px;
    border-radius: 9px;
    font-size: 14px;
    font-weight: 500;
    color: #fff;
}
.d-titles-sezon{
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}
.s-tour_page-price{
    background-color: #fff;
    border-radius: 10px;
    padding: 15px;
    text-align: center;
    font-size: 19px;
    font-weight: 600;
    margin-top: 15px;
}
.s-tour_page-price .sprice{
    font-size: 24px;
    font-weight: 700;
}
.s-tour_page-description{
    margin-top: 60px;
}
.s-tour_page-description .nav-link.active{
    border-color: #e51a4b #e51a4b #fff;
}
.s-tour_page-description .nav-link:hover{
    border-color: #e51a4b #e51a4b #fff;
}
.s-tour_page-description .nav-link{
    color: #264796 !important;
    font-weight: 600;
}
.s-tour_page-description .nav-tabs{
    border-bottom-color:  #e51a4b;
}
.s-tour_page-description .tab-pane{
    padding:15px;
}
.s-tour_page-full_price{
    width: 100%;
    max-width: 600px;
}
.s-tour_page-full_price-header{
    padding: 10px;
    background-color: #fce6eb;
    font-size: 18px;
    font-weight: 600;
    text-align: center;
    color: #264796;
}
.s-tour_page-full_price-item{
    padding: 10px;
    background-color: #fff7f9;
    font-size: 18px;
    font-weight: 600;
    text-align: center;
    color: #264796;
    border-bottom: 1px solid #df8a9f;
}
.s-small_title{
    font-size: 13px;
    font-weight: 300;
}
.s-tour_page-price_include{
    margin-top: 35px;
}
.s-price_include_in{
    padding: 5px;
    font-size: 25px;
    font-weight: 500;
    color: #264796;
}
.s-price_include_item{
    font-size: 17px;
    font-weight: 400;
}
/* Футер */
footer {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    padding: 60px 0 30px;
}

.footer-links a {
    color: #cbd5e0;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: white;
}
.custom-slider {
    position: relative;
    padding: 0 60px;
}

.slider-container {
    overflow: hidden;
    margin: 0 -15px;
}

.slider-track {
    display: flex;
    transition: transform 0.5s ease;
}

.slider-item {
    flex: 0 0 33.333%;
    padding: 10px 15px;
    transition: all 0.3s ease;
}

@media (max-width: 992px) {
    .slider-item {
        flex: 0 0 50%;
    }
}

@media (max-width: 768px) {
    .slider-item {
        flex: 0 0 100%;
    }
}


.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: white;
    border: 2px solid var(--secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.slider-btn:hover {
    background: var(--secondary);
    color: white;
    transform: translateY(-50%) scale(1.1);
}

.slider-btn.prev {
    left: 0;
}

.slider-btn.next {
    right: 0;
}


.slider-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: translateY(-50%);
}

.slider-btn:disabled:hover {
    background: white;
    color: inherit;
    transform: translateY(-50%);
}

.slider-dots {
    display: flex;
    justify-content: center;
    margin-top: 30px;
    gap: 10px;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #cbd5e0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider-dot.active {
    background: var(--primary);
    transform: scale(1.2);
}

/* Стили карточек туров */
.tour-card {
    border: none;
    border-radius: 20px;
    /* overflow: hidden;*/
    transition: all 0.3s ease;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    height: 100%;
}

/*.tour-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}
*/
.tour-card img {
    height: 200px;
    object-fit: cover;
    width: 100%;
}

.price-tag {
    background: var(--primary);
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    font-weight: bold;
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 1.1rem;
}

.discount-badge {
    background: var(--accent);
    color: var(--dark);
    padding: 5px 10px;
    border-radius: 15px;
    font-weight: bold;
    position: absolute;
    top: 15px;
    left: 15px;
    font-size: 0.9rem;
}

/* Стили карточек категорий */
.category-tour-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border: 2px solid transparent;
    height: 100%;
}
.category-tour-card .card-body{
    padding: 15px;
}
.category-tour-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
    border-color: var(--primary);
}

.category-tour-card img {
    height: 180px;
    object-fit: cover;
    width: 100%;
}

.category-badge {
    background: var(--primary);
    color: white;
    padding: 5px 15px;
    border-radius: 15px;
    font-size: 0.9rem;
    font-weight: 600;
    position: absolute;
    top: 15px;
    left: 15px;
}

.tour-count {
    color: var(--secondary);
    font-weight: 600;
    font-size: 0.9rem;
}

.category-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #e2e8f0;
}

.category-icon-small {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}
/* Фильтры */
.filter-section {
    background: var(--light);
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 50px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.filter-btn {
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    padding: 10px 20px;
    margin: 5px;
    transition: all 0.3s ease;
    width: 125px;
    color: #fff;
}

/*.filter-btn.active, .filter-btn:hover {
    background: var(--secondary);
    color: white;
    border-color: var(--secondary);
}*/
.g-t-title {
    height: 2.8em; /* Высота для 2 строк */
    overflow: hidden;
    position: relative;
}
.g-t-title:hover{
    overflow: unset;
}
.title-link {
    display: -webkit-box;
    -webkit-line-clamp: 2; /* Ограничение до 2 строк */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.4em;
    max-height: 2.8em;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

/* Показываем полный текст при наведении */
.g-t-title:hover .title-link {
    -webkit-line-clamp: unset;
    max-height: none;
    height: auto;
    background: white;
    position: absolute;
    z-index: 10;
    padding: 10px;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    border: 1px solid #e9ecef;
}
.m-card-title {
    display: -webkit-box;
    -webkit-line-clamp: 2; /* Ограничение до 2 строк */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.4em;
    max-height: 2.8em;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

/* Показываем полный текст при наведении */
.g-t-title:hover .m-card-title {
    -webkit-line-clamp: unset;
    max-height: none;
    height: auto;
    background: white;
    position: absolute;
    z-index: 10;
    padding: 10px;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    border: 1px solid #e9ecef;
}
@media (max-width: 425px) {
    .slider-btn {
        top: 0;
    }
    .slider-btn.next {
        right: 70%;
    }
    .slider-track {
        margin-top: 25px;
    }
    .custom-slider {
        padding: 0;
    }
    .filter-btn {
        width: 100%;
    }
    .s-main-search{
        margin-top: 30px;
    }
    .main-page-img{
        height: 765px;
    }
}
.ws-badge-link{
    background-color: #ffffff78;
    padding: 5px;
    border-radius: 15px;
}
.ws-badge-link i{
    font-size: 50px;
    color: green;
}
/*Контакты*/
.contacts-block{
    border-radius: 10px;
    position: absolute;
    padding: 10px 25px;
    background-color: #fff;
    max-width: 350px;
    margin-left: 50px;
    margin-top: 50px;
}
.contact-header{

}
.contact-item{
    display: flex;
    padding: 10px;
    align-items: center;
}
.contact-item-text a{

}
.contact-item i{
    font-size: 25px;
    color: #e51a4b;
    margin-right: 10px;
}
@media (max-width: 445px) {
    .contacts-block{
        position: relative;
        max-width: 100%;
        margin-left: 20px;
    }
    .s-search_result-item{
        flex-direction: column;
    }
}
