﻿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: 100% 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

p, h4 {
    overflow-wrap: anywhere;
    word-break: break-word;
}



/* 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);
}




/*main*/




main {
    margin: 45px auto;
    min-width: 1400px;
    max-width: 1400px;
    flex: 1;
}

.review-head{
    font-size: 36px;
    font-weight: 500;
    margin:0;
    padding:0;
    margin-bottom: 40px;
}

.review-container {
    background-color: white;
    padding: 30px 30px;
    margin-bottom: 30px;
    border-radius: 15px;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.review-container.appear {
    opacity: 1;
    transform: translateY(0);
}

.review-container.create {
    opacity: 1;
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
    transform: translateY(0);
}

.name{
    margin:0;
    padding:0;
    font-size:30px;
    font-weight: 500;
    margin-bottom: 15px;
}

.review-text {
    margin: 0;
    padding: 0;
    font-size: 24px;
    font-weight: 400;
}

.review-text.tour {
    margin-bottom: 10px;
    font-weight: 500;
}

.save-button {
    display: block;
    background-color: #276597;
    font-size: 24px;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 15px;
    margin-top: 10px;
}

.delete-button {
    background-color: #276597;
    font-size: 24px;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 15px;
    margin-top: 20px;
    transition: background-color 0.5s ease;
}

.delete-button:hover {
    cursor: pointer;
    background-color: rgb(94, 148, 192);
}

.info-input {
    display: block;
    margin-bottom: 10px;
    /*border-color: #276597;*/
    border-radius: 15px;
    width: 500px;
    padding:5px;
    font-size: 18px;
}


.info-input.text {
    font-size: 18px;
    /*border-color: #276597;*/
    border-radius: 15px;
    padding: 5px;
    max-width:600px;
    max-height:300px;
}

.close-create {
    border: none;
    background: none;
    font-size: 24px;
    line-height: 24px;
    cursor: pointer;
    padding: 5px;
    height: 30px;
    transition: color 0.3s ease;
}

.close-create:hover {
    color:red;
}

.create-button {
    display: block;
    background-color: #276597;
    font-size: 24px;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 15px;
    margin-bottom: 30px;
    transition: background-color 0.3s ease;
}

.create-button:disabled {
    background-color: #808080;
}

.error {
    color:red;
    font-size:20px;
}




/*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;
    }

    main {
        margin: 40px 20px;
        min-width: 0px;
    }

    .phone-info {
        width: 300px;
    }

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

@media (max-width: 768px) {
    .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;
    }

    .review-head {
        font-size: 36px;
    }

    .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: 30px 0;
        padding: 0 15px;
        margin-bottom: 40px;
    }

    .review-head {
        margin-bottom: 30px;
    }

    .review-container {
        padding: 20px;
        margin-bottom: 20px;    
    }

    .name {
        font-size: 28px;
        margin-bottom: 10px;
    }

    .review-text {
        font-size:20px;
    }

    .create-info {
        margin-top:40px;
        width: 100%;
    }

    .info-input {
        width: 100%;
    }

    .delete-button {
        font-size:18px;
    }

    .save-button {
        font-size: 18px;
    }
}
