body{
margin:0;
font-family:'Poppins',sans-serif;
background:#ffffff;
color:#000;
overflow-x:hidden;
}
/* ===========================
   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;
transition:transform .4s ease,color .3s ease;
z-index:41;
color:#000;
}

.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 .3s;
}

.social-sidebar a:hover{
transform:scale(1.2);
}

.nav-menu{
position:fixed;
top:-100vh;
left:0;
width:100%;
height:100vh;
background:black;
display:flex;
flex-direction:column;
justify-content:center;
align-items:center;
gap:25px;
transition:.6s;
z-index:100;
opacity:0;
visibility:hidden;
}

.nav-menu.active{
top:0;
opacity:1;
visibility:visible;
}

.nav-menu a{
color:white;
font-size:2.8em;
text-decoration:none;
}

.achievements-main{
min-height:100vh;
padding:80px 0 40px;
display:flex;
flex-direction:column;
align-items:center;
position:relative;
}

.achievements-main h1{
font-size:3.8rem;
margin-bottom:60px;
}

/* gallery */

.achievements-gallery{
width:100%;
max-width:1200px;
overflow:hidden;
box-sizing: border-box;
}

.achievements-track{
display:flex;
transition:transform .5s ease;
box-sizing: border-box;
}

.achievement{
min-width:100%;
width:100%;
flex-shrink:0;
display:flex;
align-items:center;
justify-content:center;
gap:80px;
padding-top:20px;
box-sizing: border-box;
}

/* photo */

.photo-frame{
width:480px;
height:680px;
overflow:hidden;
position:relative;
border-radius:20px;
box-shadow:14px 14px 40px rgba(0,0,0,.25);
transition: transform .4s ease;
cursor:pointer;
}

.photo-frame:hover img{
transform: scale(1.05);
}

.photo-track{
display:flex;
height:100%;
transition:transform .4s ease;
}

.photo-track img{
width:480px;
height:680px;
object-fit:cover;
flex-shrink:0;
}

.photo-btn{
position:absolute;
top:50%;
transform:translateY(-50%);
background:rgba(0,0,0,.6);
border:none;
color:white;
padding:10px;
cursor:pointer;
}

.photo-btn.prev{
left:10px;
}

.photo-btn.next{
right:10px;
}

/* text */

.achievement-text{
max-width:500px;
}

.achievement-text h2{
font-size:2rem;
margin-bottom:10px;
}

.achievement-text p{
font-size:1.2rem;
color:#666;
}

/* arrows */

.achievement-arrows{
position:absolute;
bottom:-30px;
left:50%;
transform:translateX(-50%);
display:flex;
gap:20px;
z-index:10;
}

.arrow{
background:none;
border:none;
font-size:2.5rem;
cursor:pointer;
}

.arrow:hover{
transform:scale(1.2);
}

/* vertical indicator */

.vertical-indicator{
position:absolute;
right:-30px;
top:480px;
display:flex;
flex-direction:row;
align-items:center;
gap:8px;
transform:rotate(90deg);
font-weight:700;
letter-spacing:2px;
}

.vertical-indicator hr{
border:none;
height:1px;
background:#222;
}

.vertical-indicator .short{
width:20px;
}

.vertical-indicator .long{
width:40px;
}

footer{
position:relative;
bottom:auto;
left:auto;
transform:none;
text-align:center;
padding:40px 0 20px;
font-size:.85rem;
color:#555;
}

/* IMAGE MODAL */

.image-modal{

position:fixed;
top:0;
left:0;

width:100%;
height:100%;

background:rgba(0,0,0,0.9);

display:flex;
align-items:center;
justify-content:center;

opacity:0;
pointer-events:none;

transition:0.3s;

z-index:100;

}

.image-modal.active{
opacity:1;
pointer-events:auto;
}

.modal-image{

max-width:90%;
max-height:90%;

border-radius:10px;
}

.close-modal{

position:absolute;
top:30px;
right:50px;

font-size:3rem;
color:white;
cursor:pointer;

}

.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);
}

.hint{
display:block;
margin-top:8px;
font-size:.8rem;
color:#888;
}

/* ===========================
   TABLET RESPONSIVE (768px and below)
   =========================== */

@media (max-width: 768px) {
    /* Показываем мобильную панель */
    .mobile-header {
        display: flex;
    }

    /* Скрываем социальную панель на мобильных */
    .social-sidebar {
        display: none;
    }

    header {
        right: 20px;
        top: 15px;
    }

    .burger-menu {
        font-size: 1.8em;
    }

    .nav-menu a {
        font-size: 2.2em;
    }

    .achievements-main {
        padding: 80px 20px 40px;
    }

    .achievements-main h1 {
        font-size: 2.2rem;
        margin-bottom: 35px;
    }

    .achievement {
        flex-direction: column;
        gap: 15px;
        padding: 0 15px;
    }

    .photo-frame {
        width: 100%;
        max-width: 300px;
        height: 380px;
    }

    .photo-track img {
        width: 100%;
        height: 380px;
    }

    .achievement-text {
        max-width: 100%;
        text-align: center;
    }

    .achievement-text h2 {
        font-size: 1.4rem;
    }

    .achievement-text p {
        font-size: 0.95rem;
    }

    .achievement-arrows {
        position: relative;
        bottom: -25px;
        left: 50%;
        transform: translateX(-50%);
        display: flex;
        gap: 20px;
        z-index: 10;
    }

    .arrow {
        font-size: 2rem;
    }

    .vertical-indicator {
        display: none;
    }

    footer {
        position: relative;
        bottom: auto;
        margin-top: 40px;
    }
}

/* SMALL MOBILE (480px and below) */
@media (max-width: 480px) {
    .mobile-header {
        padding: 0 15px;
        height: 55px;
    }

    .mobile-burger {
        font-size: 1.4em;
    }

    .mobile-title {
        font-size: 1rem;
    }

    header {
        right: 15px;
        top: 12px;
    }

    .burger-menu {
        font-size: 1.5em;
    }

    .nav-menu a {
        font-size: 1.8em;
    }

    .achievements-main {
        min-height: auto;
        padding: 70px 15px 20px;
    }

    .achievements-main h1 {
        font-size: 1.4rem;
        margin-bottom: 20px;
    }

    .achievements-gallery {
        max-width: 100%;
    }

    .achievement {
        flex-direction: column;
        gap: 12px;
        padding: 0 5px;
    }

    .photo-frame {
        width: 100%;
        height: 420px;
        border-radius: 10px;
    }

    .photo-track img {
        width: 100%;
        height: 420px;
    }

    .photo-btn {
        padding: 5px;
        font-size: 0.9rem;
    }

    .achievement-text {
        max-width: 100%;
        text-align: center;
    }

    .achievement-text h2 {
        font-size: 1.3rem;
        margin-bottom: 6px;
    }

    .achievement-text p {
        font-size: 0.95rem;
    }

    .hint {
        font-size: 0.75rem;
        margin-top: 4px;
    }

    .achievement-arrows {
        position: relative;
        margin-top: 6px;
        width: 100%;
        display: flex;
        gap: 20px;
        z-index: 10;
        justify-content: center;
    }

    .arrow {
        font-size: 1.3rem;
    }

    .close-modal {
        right: 12px;
        top: 12px;
        font-size: 1.5rem;
    }

    .modal-image {
        max-width: 90%;
        max-height: 70%;
    }

    .max-icon {
        width: 16px;
        height: 16px;
    }

    footer {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        padding: 10px 10px 5px;
        font-size: 0.65rem;
        background: #ffffff;
        z-index: 10;
        text-align: center;
    }
}





