﻿body {
    font-family: "Roboto", sans-serif;
    font-size: 16px;
    margin: 0;
    background-color: #D3EBFF;
    background-size: 100% 100%;
}




/* 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: 20px;
    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: 60px auto;
    max-width: 1400px;
    padding: 0 20px;
}

.about-head {
    font-size: 42px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 50px;
    background: linear-gradient(90deg, #005AA4, #5E94C0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}


/* GRID */

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 45px;
}


/* CARD */

.card {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(12px);
    border-radius: 24px;
    overflow: hidden;
    transition: all 0.4s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    opacity: 0;
    transform: translateY(30px);
    grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
}

/* hover эффект */
.card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.15);
}

/* появление */
.card.appear {
    opacity: 1;
    transform: translateY(0);
}


/* IMAGE */

.photo {
    width: 100%;
    height: 340px;
    object-fit: cover;
    border-radius: 10px;
    transition: transform 0.5s ease;
}

.card:hover .photo {
    transform: scale(1.08);
}


/* HEADER BLOCK */

.photo-name-container {
    padding: 25px;
}

.name {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
}

.post {
    font-size: 16px;
    color: #6b6b6b;
    line-height: 1.4;
}


/* INFO */

.info-container {
    padding: 0 25px 25px 25px;
}

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

.info-item {
    font-size: 16px;
    margin-bottom: 10px;
    position: relative;
    padding-left: 22px;
    color: #333;
}

/* красивые маркеры */
.info-item::before {
    content: "✔";
    position: absolute;
    left: 0;
    top: 0;
    color: #005AA4;
    font-size: 14px;
}


/* divider убрать */
.divider {
    display: none;
}



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


/* ================== 1024px ================== */
@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;
    }

    .phone-info {
        width: 300px;
    }

    /* карточки */
    .cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }

    .photo {
        height: 280px;
    }
}


/* ================== 768px ================== */
@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;
    }

    .info-item {
        font-size: 16px;
    }

    .post {
        font-size: 16px;
    }

    .divider {
        display: flex;
    }

    .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;
    }

    /* ===== НОВАЯ МОБИЛЬНАЯ РАЗМЕТКА КАРТОЧЕК ===== */

    main {
        margin: 25px 0;
        padding: 0 15px;
    }

    .about-head {
        font-size: 28px;
        margin-bottom: 25px;
        text-align: center;
    }

    .cards {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }

    .card {
        width: 100%;
        display: flex;
        flex-direction: column;
        padding: 0;
        border-radius: 18px;
        overflow: hidden;
    }

    /* фото сверху */
    .photo-name-container {
        width: 100%;
        padding: 0;
    }

    .photo {
        width: 100%;
        height: 300px;
        border-radius: 0;
    }

    /* текст под фото */
    .name {
        font-size: 20px;
        padding: 15px 15px 5px;
    }

    .post {
        font-size: 14px;
        padding: 0 15px 10px;
    }

    .divider {
        border: none;
        height: 2px;
        background: rgba(0, 90, 164, 1);
        margin: 0 15px 10px;
    }

    .info-container {
        padding: 0 15px 15px;
    }
}


/* ================== 480px ================== */
@media (max-width: 480px) {
    .about-head {
        font-size: 24px;
        line-height: 30px;
    }

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

    main {
        margin: 0;
        padding: 0 10px;
        margin-bottom: 40px;
    }

    .photo {
        height: 340px;
    }

    .name {
        font-size: 18px;
        margin-top:10px;
    }

    .post {
        font-size: 13px;
    }

    .info-item {
        font-size: 13px;
    }
}
