body {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    background: #ffffff;
    color: #000000;
    overflow-x: hidden;
    position: relative;
}

/* ===========================
   MOBILE HEADER (всегда закреплен сверху)
   =========================== */

.mobile-header {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: #ffffff;
    border-bottom: 1px solid #f0f0f0;
    z-index: 50;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
}

.mobile-burger {
    cursor: pointer;
    font-size: 1.6em;
    color: #000;
    transition: transform 0.4s ease, color 0.3s ease;
}

.mobile-burger.active {
    transform: rotate(90deg);
    color: #555;
}

.mobile-title {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
    color: #000;
}

header {
    position: fixed;
    top: 20px;
    right: 100px;
    z-index: 30;
}

.burger-menu {
    cursor: pointer;
    font-size: 2.2em;
    color: #000;
    transition: transform 0.4s ease, color 0.3s ease;
    z-index: 31; /* всегда выше меню */
}

.burger-menu:hover { color: #555; }
.burger-menu.active { transform: rotate(90deg); color: #555; }

.social-sidebar {
    position: fixed;
    bottom: 30px;
    left: 30px;
    display: flex;
    flex-direction: column;
    gap: 22px;
    z-index: 20;
}

.social-sidebar a {
    color: #000;
    font-size: 1.6em;
    transition: transform 0.3s ease;
}

.social-sidebar a:hover { transform: scale(1.25); }

/* Меню */
.nav-menu {
    position: fixed;
    top: -100vh;
    left: 0;
    width: 100%;
    height: 100vh;
    background: #000000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 22px;
    transition: top 0.6s cubic-bezier(0.7, 0, 0.3, 1);
    z-index: 100;
    opacity: 0;
    visibility: hidden;
}

.nav-menu.active {
    top: 0;
    opacity: 1;
    visibility: visible;
}

.nav-menu a {
    color: #fff;
    font-size: 2.8em; /* крупнее */
    text-decoration: none;
    transition: transform 0.3s ease;
}

.nav-menu a:hover {
    transform: scale(1.08);
}

/* Фото */
.profile-main {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 80px;
    padding: 0 60px 40px;
}

.photo-frame {
    position: relative;
    width: 360px;
    height: 460px;
}

.gray-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #d3d3d3;
    border-radius: 16px;
    box-shadow: 12px 12px 25px rgba(0,0,0,0.2);
}

.profile-photo {
    position: absolute;
    top: 28px;      /* чуть ниже (как ты просил) */
    left: 22px;     /* сдвиг вправо */
    width: 360px;
    height: 460px;
    border-radius: 16px;
    object-fit: cover;
    box-shadow: 18px 18px 35px rgba(0,0,0,0.35);
}

/* Текст */
.profile-info h1 {
    font-size: 2.0 rem;
    font-weight: 700;
    margin: 0 0 10px 0;
    letter-spacing: -1px;
}

.profile-info p {
    font-size: 1.10rem;
    margin: 4px 0;
    color: #222;
}

/* Вертикальная полоска */
.vertical-indicator {
    position: absolute;
    right: 0px;
    top: 480px; /* выровнена по высоте с бургером */
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    transform: rotate(90deg);
    font-size: 1.15rem;
    font-weight: 700;
    color: #222;
    letter-spacing: 2px;
}

.vertical-indicator hr.short {
    width: 20px;
    height: 1px;
    background: #222;
    border: none;
    margin: 0;
}

.vertical-indicator hr.long {
    width: 40px;
    height: 1px;
    background: #222;
    border: none;
    margin: 0;
}

footer {
    position: relative;
    bottom: auto;
    left: auto;
    transform: none;
    font-size: 0.85rem;
    color: #555;
    text-align: center;
    padding: 40px 20px 20px;
    width: auto;
    margin-top: 40px;
    display: flex;
    justify-content: center;
}

/* ANIMATION */

.reveal{
    opacity: 0;
    transform: translateY(70px);
    transition: 1s;
}

.reveal.active{
    opacity: 1;
    transform: translateY(0);
}

.max-icon{
width:24px;
height:24px;
object-fit:contain;
filter: grayscale(100%);
transition: .3s;
}

.social-sidebar a:hover .max-icon{
filter: grayscale(0%);
transform: scale(1.2);
}

/* ===========================
   MOBILE RESPONSIVE DESIGN
   =========================== */

/* Tablet (768px and below) */
@media (max-width: 768px) {
    /* Показываем мобильную панель */
    .mobile-header {
        display: flex;
    }

    /* Скрываем социальную панель на мобильных */
    .social-sidebar {
        display: none;
    }

    header {
        top: 15px;
        right: 20px;
    }

    .burger-menu {
        font-size: 1.8em;
    }

    .nav-menu a {
        font-size: 2.2em;
        gap: 18px;
    }

    .profile-main {
        min-height: 100vh;
        display: flex;
        flex-direction: column;
        gap: 30px;
        padding: 80px 30px 20px;
        margin-top: 0;
    }

    .photo-frame {
        width: 300px;
        height: 1000px;
    }

    .profile-photo {
        width: 300px;
        height: 480px;
        top: 22px;
        left: 18px;
    }

    .gray-bg {
        width: 100%;
        height: 100%;
    }

    .profile-info h1 {
        font-size: 1.3rem;
        text-align: center;
        margin-bottom: 8px;
    }

    .profile-info p {
        font-size: 0.9rem;
        text-align: center;
        margin: 3px 0;
    }

    .profile-info {
        text-align: center;
    }

    .vertical-indicator {
        display: none;
    }

    footer {
        position: relative;
        bottom: auto;
        transform: none;
        margin-top: 0;
    }
}

/* Mobile (480px and below) */
@media (max-width: 480px) {

    .mobile-header {
        padding: 0 15px;
        height: 55px;
    }

    header {
        top: 12px;
        right: 15px;
    }

    .burger-menu {
        font-size: 1.5em;
    }

    .nav-menu a {
        font-size: 1.8em;
    }

    /* ГЛАВНЫЙ БЛОК */
    .profile-main {
    min-height: 100vh;

    display: flex;
    flex-direction: column;
    align-items: center;

    justify-content: flex-start;

    padding: 200px 15px 20px;
    gap: 20px;

    box-sizing: border-box;
    }   

    /* ФОТО (вернули как было, но аккуратно) */
    .photo-frame {
    width: 240px;
    height: 320px; /* +10px под твой top */
    position: relative;
}

    .gray-bg {
        width: 100%;
        height: 100%;
    }

    .profile-photo {
        position: absolute;
        top: 10px;
        left: 12px;
        width: 240px;
        height: 310px;
        object-fit: cover;
    }

    /* ТЕКСТ */
    .profile-info {
        text-align: center;
    }

    .profile-info h1 {
        font-size: 1.2rem;
        margin-bottom: 5px;
    }

    .profile-info p {
        font-size: 0.85rem;
        margin: 2px 0;
    }

    .vertical-indicator {
        display: none;
    }

    /* ФУТЕР (фикс как ты хотел) */
    footer {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        height: 30px;
        font-size: 0.65rem;
        background: #fff;
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 10;
    }
}