html {
    scroll-behavior: smooth;
}

body {
    font-family: "Roboto", sans-serif;
    font-size: 16px;
    margin: 0;
    background-color: rgb(181, 222, 255);
    background-image: url('../img/gradient_1920_1080 (2).png');
    background-size: cover;
    background-attachment: fixed;
}




/* header */



header {
    background-color: rgb(94, 148, 192);
}

.header-nav {
    display: flex;
    align-items: center;
    margin: 0 auto;
    padding: 15px 20px;
    justify-content: space-between;
    max-width: 1400px;
    box-sizing: border-box;
}

.logo-link {
    text-decoration: none;
    color: white;
}

.logo-link:hover {
    text-decoration: none;
    color: white;
}

.logo-link-head {
    font-family: Pacifico;
    font-weight: 400;
    font-size: 36px;
    margin: 0;
    line-height: 63px;
}

/* ���������� ��������� */
.desktop-nav {
    display: flex;
}

.nav-list {
    display: flex;
    flex-wrap: wrap;
    padding: 0;
    margin: 0;
    list-style: none;
}

.nav-list-item {
    margin-right: 40px;
}

.nav-list-item:last-child {
    margin-right: 0;
}

.nav-list-item a {
    text-decoration: none;
    color: white;
    font-size: 24px;
    font-weight: 500;
    line-height: 28px;
    transition: color 0.3s ease;
}

.nav-list-item a:hover {
    text-decoration: none;
    color: rgb(197, 197, 197);
}

.logout-button {
    font-family: Roboto;
    background: none;
    border: none;
    margin: 0;
    padding: 0;
    text-decoration: none;
    color: white;
    font-size: 24px;
    font-weight: 500;
    line-height: 28px;
    transition: color 0.3s ease;
    cursor: pointer;
}

.logout-button:hover {
    color: rgb(197, 197, 197);
}


/* ����� ��� ������ ���������� */
.hamburger-btn {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1000;
}

    .hamburger-btn span {
        display: block;
        height: 3px;
        width: 100%;
        background-color: white;
        border-radius: 3px;
        transition: all 0.3s ease;
    }


.mobile-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100vh;
    background-color: #005AA4;
    z-index: 999;
    transition: right 0.3s ease;
    padding: 60px 30px 30px;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
}

    .mobile-nav.active {
        right: 0;
    }


.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}


.mobile-nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mobile-nav-list-item {
    margin-bottom: 30px;
}

.mobile-nav-list-item a {
    color: white;
    text-decoration: none;
    font-size: 24px;
    font-weight: 500;
    transition: color 0.3s ease;
    display: block;
    padding: 10px 0;
}

.mobile-nav-list-item a:hover {
    color: #D3EBFF;
}


.close-menu-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 30px;
    height: 30px;
    background: none;
    border: none;
    cursor: pointer;
}

.close-menu-btn span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: white;
    position: absolute;
    top: 50%;
    left: 0;
}

.close-menu-btn span:first-child {
    transform: rotate(45deg);
}

.close-menu-btn span:last-child {
    transform: rotate(-45deg);
}

.hamburger-btn.active span:first-child {
    transform: rotate(45deg) translate(6px, 6px);
}

.hamburger-btn.active span:nth-child(2) {
    opacity: 0;
}

.hamburger-btn.active span:last-child {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* ������ �������� ��� ��������� */
.filter-toggle-btn {
    display: none;
    background: #5E94C0;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    margin-bottom: 20px;
    align-items: center;
    gap: 8px;
}

    .filter-toggle-btn svg {
        width: 20px;
        height: 20px;
    }

/* ��������� ���� �������� - ������ �� ���������, �� ������ � �������� */
.filter-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.filter-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.filter-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.7);
    background: white;
    padding: 30px;
    border-radius: 20px;
    z-index: 1001;
    width: 90%;
    max-width: 400px;
    max-height: 80vh;
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.filter-modal.active {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

.close-filter-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #5E94C0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1002;
    transition: transform 0.2s ease;
}

.close-filter-btn:hover {
    transform: scale(1.1);
}



/* main */



main {
    margin-left: 60px;
    margin-right: 60px;
    margin-top: 60px;
    margin-bottom: 30px;
}

.tour-group-name {
    font-size: 48px;
    line-height: 58px;
    font-weight: 500;
    margin: 0;
    margin-bottom: 20px;
}

.tour-group-description {
    font-size: 24px;
    line-height: 28px;
    font-weight: 400;
    width: 1000px;
    margin: 0;
    margin-bottom: 30px;
}

.filter-and-cards-container {
    display: flex;
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

.tour-cards-only {
    position: relative;
}

.tour-card {
    display: flex;
    background-color: white;
    width: 1000px;
    border-radius: 15px;
    margin-bottom: 20px;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

    .tour-card.appear {
        opacity: 1;
        transform: translateY(0);
    }

.not-found {
    margin-left: 15px;
}

.card-info {
    margin: 30px;
    margin-right: auto;
}

.tour-name {
    font-size: 24px;
    line-height: 28px;
    font-weight: 500;
    margin: 0;
    margin-bottom: 10px;
}

.tour-duration-name {
    font-size: 20px;
    line-height: 23px;
    font-weight: 400;
    margin: 0;
    margin-bottom: 10px;
}

.tour-duration {
    font-size: 20px;
    line-height: 23px;
    font-weight: 400;
    margin: 0;
    margin-bottom: 10px;
}

.price {
    font-size: 20px;
    line-height: 23px;
    font-weight: 500;
    margin: 0;
}

.see-button {
    background-color: rgb(94, 148, 192);
    width: auto;
    height: auto;
    width: 116px;
    padding: 8px 32px;
    border-radius: 30px;
    margin-top: 20px;
    transition: background-color 0.3s ease;
}

.see-button-text {
    margin: 0;
    width: 116px;
    font-size: 20px;
    line-height: 23px;
    font-weight: 700;
    color: white;
}

.see-button-link {
    text-decoration: none;
    display: inline-block;
}

.see-button-link:hover .see-button {
    background-color: #87B9E2;
}

.card-photo {
    margin-right: 30px;
    margin-top: 13px;
}

.card-photo img {
    border-radius: 10px;
    object-fit: cover;
}

.filter-container {
    position: sticky;
    top: 20px;
    /* flex: 0 0 300px; */
    background-color: white;
    padding: 20px;
    border-radius: 15px;
    color: rgb(45, 127, 193);
    align-self: flex-start;
}

.sort-head {
    margin: 0;
    margin-bottom: 10px;
    font-size: 24px;
    line-height: 28px;
    font-weight: 700;
}

.sort-list {
    list-style-type: none;
    padding: 0;
    margin: 0;
    margin-bottom: 10px;
}

.sort-list-item {
    font-weight: 400;
    font-size: 20px;
    line-height: 23px;
    margin: 0;
    margin-bottom: 5px;
    padding: 0;
    position: relative;
}

.sort-list-item:last-child {
    margin-bottom: 0;
}

.sort-radio-input {
    padding: 0;
    margin: 0;
    position: relative;
    top: 1px;
    cursor: pointer;
}

.sort-radio-input + label {
    user-select: none;
}

.sort-condition {
    cursor: pointer;
}

.sort-radio-input:checked {
    accent-color: #5E94C0;
}

    .sort-radio-input:checked ~ .sort-condition {
        color: #5E94C0;
        font-weight: 500;
    }

    /* �������� ������� ��������� ��� ������ */
    .sort-radio-input:checked ~ .sort-condition {
        background-color: rgba(94, 148, 192, 0.1);
        padding: 8px 12px;
        border-radius: 6px;
    }

.filters-head {
    font-size: 24px;
    line-height: 28px;
    font-weight: 700;
    margin: 0;
    padding: 0;
    margin-bottom: 10px;
}

.filter-duration-head {
    font-size: 20px;
    line-height: 23px;
    font-weight: 500;
    margin: 0;
    padding: 0;
    margin-bottom: 5px;
}

.date-inputs-container {
    margin-bottom: 10px;
    display: flex;
    gap: 15px;
}

.date-input {
    font-family: Roboto;
    font-size: 15px;
    border: 2px solid rgb(45, 127, 193);
    border-radius: 15px;
    padding: 5px;
    background-color: rgb(213, 212, 212);
}

.date-inputs-container p {
    margin: 0;
    padding: 0;
    font-size: 20px;
    margin-top: 5px;
}

select {
    width: 100%;
    padding: 5px;
    padding-left: 10px;
    border: 2px solid rgb(45, 127, 193);
    border-radius: 30px;
    background-color: rgb(213, 212, 212);
    color: #333;
    font-family: "Roboto";
    font-size: 16px;
    appearance: none;
    background-image: url('../img/Vector.svg');
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 12px;
    margin-bottom: 10px;
}

    select:hover {
        border-color: #0056b3;
    }

    select:focus {
        outline: none;
        border-color: #0056b3;
    }

.filter-price-head {
    font-size: 20px;
    line-height: 23px;
    font-weight: 500;
    margin: 0;
    padding: 0;
    margin-bottom: 5px;
}

.price-input-container {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
}

.price-input {
    width: 100%;
    padding: 5px;
    padding-left: 10px;
    border: 2px solid rgb(45, 127, 193);
    border-radius: 30px;
    background-color: rgb(213, 212, 212);
    color: #333;
    font-family: "Roboto";
    font-size: 16px;
    appearance: none;
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 12px;
}

.dash {
    font-size: 20px;
    line-height: 23px;
    font-weight: 500;
    margin: 0 12px;
    padding: 0;
    position: relative;
    top: 5px;
}

.filter-buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.submit {
    border-radius: 15px;
    background-color: #5E94C0;
    border: none;
    color: white;
    font-size: 20px;
    line-height: 23px;
    font-weight: 700;
    padding: 5px 24px;
    margin-bottom: 10px;
    transition: background-color 0.5s ease;
}

.submit:hover {
    cursor: pointer;
    background-color: #87B9E2;
}

.submit:active {
    border-radius: 15px;
    background-color: #87B9E2;
}

.reset {
    background: none;
    border: none;
    color: rgb(147, 146, 146);
    font-size: 20px;
    line-height: 23px;
    font-weight: 700;
    transition: color 0.5s ease;
}

.reset:hover {
    cursor: pointer;
}

    .reset:active {
        border-radius: 15px;
        color: rgb(190, 190, 190);
    }

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
}

    .pagination .page-number {
        margin: 0;
        padding: 0;
        background-color: white;
        border: none;
        border-radius: 50px;
        padding: 10px 15px;
        font-size: 15px;
        font-weight: 500;
    }

.next-page-button {
    background: none;
    border: none;
    font-size: 15px;
    font-weight: 500;
}

.page-numbers-container {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.prev-page-button {
    background: none;
    border: none;
    font-size: 15px;
    font-weight: 500;
}

.first {
    text-decoration: none;
    padding: 11px 18px;
    border-radius: 50px;
    background-color: white;
    font-size: 24px;
    font-weight: 500;
    line-height: 28px;
    width: 14px;
    color: black;
    margin-right: 20px;
}

.second {
    text-decoration: none;
    padding: 3px 9px;
    border-radius: 50px;
    background-color: white;
    font-size: 20px;
    font-weight: 500;
    line-height: 23px;
    width: 12px;
    color: black;
    margin-right: 10px;
    position: relative;
    top: 2px;
}

.next {
    position: relative;
    top: 4px;
}



/* footer */




footer {
    background-color: #5E94C0;
    padding: 30px 20px;
}

.footer-info {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
}

footer .logo-link-head {
    margin-top: 0;
}

.footer-nav-list {
    margin: 0;
    list-style: none;
    padding: 0;
}

.footer-nav-list-item a {
    text-decoration: none;
    font-size: 18px;
    line-height: 21px;
    font-weight: 500;
    color: white;
    margin: 0;
}

.footer-nav-list-item {
    margin-bottom: 8px;
}

    .footer-nav-list-item:last-child {
        margin: 0;
    }

.phone-info-text {
    max-width: 100%;
    font-size: 18px;
    line-height: 21px;
    font-weight: 500;
    color: white;
    margin: 0;
    padding: 0;
    margin-bottom: 15px;
}

.contact-link {
    margin-top: 10px;
    padding: 10px 20px;
    background-color: white;
    color: rgb(94, 148, 192);
    font-size: 16px;
    line-height: 19px;
    font-weight: 700;
    text-decoration: none;
    border-radius: 12px;
    display: inline-block;
    transition: all 0.3s ease;
}

.contact-link:hover {
    background-color: #f0f0f0;
    transform: translateY(-2px);
}

.groups-text {
    font-size: 18px;
    line-height: 21px;
    font-weight: 500;
    color: white;
    margin: 0;
    padding: 0;
    margin-bottom: 10px;
}

.whatsapp-link, .vk-link {
    text-decoration: none;
    margin-right: 15px;
    display: inline-block;
    transition: all 0.3s ease;
}

.whatsapp-link:hover, .vk-link:hover {
    transform: translateY(-2px);
}

.whatsapp-link svg, .vk-link svg {
    width: 32px;
    height: 32px;
    transition: transform 0.3s ease;
}

.whatsapp-link:hover svg, .vk-link:hover svg {
    transform: scale(1.1);
}

/* �����-������� ��� �������� */
@media (max-width: 1024px) {
    .header-nav {
        padding: 15px 20px;
    }

    .nav-list-item {
        margin-right: 30px;
    }

    .nav-list-item a {
        font-size: 20px;
    }

    .logout-button {
        font-size: 20px;
    }

    main {
        margin: 40px 20px;
    }

    .filter-and-cards-container {
        padding: 0;
    }

    .filter-container {
        flex: 0 0 280px;
    }

    .tour-cards {
        flex: 1;
    }

    .tour-card {
        flex-direction: column;
        width: 100%;
    }

    .card-photo {
        order: 1;
        margin: 0;
        width: 100%;
    }

    .card-photo img {
        width: 100%;
        height: 250px;
        border-radius: 15px 15px 0 0;
    }

    .card-info {
        order: 2;
        margin: 20px;
    }

    .bin-button {
        order: 3;
        padding-bottom:10px;
    }

    .phone-info{
        width: 300px;
    }
}

@media (max-width: 768px) {
    .slogan {
        font-size: 32px;
        line-height: 56px;
        text-align: center;
    }

    .hamburger-btn {
        display: flex;
    }

    .mobile-nav {
        width: 280px;
    }

    .mobile-nav-list-item a {
        font-size: 20px;
    }

    .header-nav {
        padding: 10px 15px;
        display: flex;
    }

    .logo-link-head {
        font-size: 24px;
        line-height: 40px;
    }

    .nav-list {
        display: none;
    }

    .nav-list-item {
        margin-right: 0;
        margin-bottom: 10px;
    }

    .nav-list-item:last-child {
        margin-bottom: 0;
    }

    .nav-list-item a {
        font-size: 16px;
    }

    .desktop-nav {
        display: none;
    }

    .filter-toggle-btn {
        display: flex;
    }

    .filter-container {
        display: none;
    }

    .filter-and-cards-container {
        flex-direction: column;
        gap: 0;
        padding: 0;
    }

    .tour-group-name {
        font-size: 28px;
        line-height: 32px;
    }

    .tour-group-description {
        font-size: 16px;
        line-height: 22px;
    }

    .tour-card {
        width: 100%;
    }

    .footer-info {
        flex-direction: column;
        text-align: center;
        gap: 25px;
    }

    .phone-info {
        width: 100%;
    }

    .footer-nav-list {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .header-nav {
        padding: 10px 15px;
    }

    main {
        margin: 20px 15px;
    }

    .filter-container {
        display: none;
    }

    .tour-group-name {
        font-size: 24px;
        line-height: 28px;
    }

    .card-info {
        margin: 15px;
    }

    .tour-name {
        font-size: 20px;
        line-height: 24px;
    }

    .see-button {
        text-align: center;
    }

    .pagination {
        gap: 5px;
        margin-bottom: 10px;
    }

    .filter-modal {
        padding: 20px;
        width: 85%;
    }
}


/* скрываем страницу */
body.loading {
    overflow: hidden;
}

/* loader */
#page-loader {
    position: fixed;
    inset: 0;
    background: #F0F8FF;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

/* анимация */
.loader-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #D3EBFF;
    border-top: 4px solid #005AA4;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}
