body{
margin:0;
font-family:'Poppins',sans-serif;
background:#fff;
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;
}
/* BURGER */

header{
position:fixed;
top:20px;
right:100px;
z-index:40;
}

.burger-menu{
cursor:pointer;
font-size:2.2em;
transition:.4s;
color:#000;
}

.burger-menu.active{
transform:rotate(90deg);
color:#555;
}


/* MENU */

.nav-menu{
position:fixed;
top:-100vh;
left:0;
width:100%;
height:100vh;
background:#000;
display:flex;
flex-direction:column;
justify-content:center;
align-items:center;
gap:22px;
transition:top .6s cubic-bezier(.7,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:.3s;
}

.nav-menu a:hover{
transform:scale(1.08);
}


/* SOCIAL */

.social-sidebar{
position:fixed;
bottom:30px;
left:30px;
display:flex;
flex-direction:column;
gap:20px;
}

.social-sidebar a{
color:#000;
font-size:1.5em;
transition:.3s;
}

.social-sidebar a:hover{
transform:scale(1.2);
}


/* MAIN */

.education-main{
max-width:1000px;
margin:auto;
margin-top:90px;
display:flex;
flex-direction:column;
gap:40px;
padding-bottom:40px;
}


/* HEADER */

.education-header{
text-align:center;
}

.education-header h1{
font-size:2.5rem;
margin-bottom:5px;
}

.education-header p{
color:#555;
font-size:.95rem;
}


/* TIMELINE */

.education-timeline{
position:relative;
display:flex;
justify-content:center;
}

.timeline-line{
position:absolute;
left:0;
top:0;
bottom:0;
width:2px;
background:#ddd;
}

.education-card{
position:relative;
margin-left:35px;
border:1px solid #eee;
padding:28px;
max-width:550px;
background:#fff;
transition:.35s;
}

.education-card:hover{
transform:translateY(-5px);
border-color:#000;
}


/* BIG YEAR */

.year-bg{
position:absolute;
top:-10px;
right:20px;
font-size:4.5rem;
font-weight:700;
color:#f3f3f3;
pointer-events:none;
}


/* TEXT */

.period{
font-weight:700;
display:block;
margin-bottom:8px;
}

.special{
color:#444;
margin-bottom:8px;
}

.description{
line-height:1.5;
color:#333;
font-size:.95rem;
}


/* DETAILS */

.education-details{
display:grid;
grid-template-columns:repeat(3,1fr);
gap:20px;
}

.detail-card{
border:1px solid #eee;
padding:18px;
text-align:center;
transition:.3s;
font-size:.9rem;
}

.detail-card:hover{
transform:translateY(-4px);
border-color:#000;
}


/* ANIMATION */

.reveal{
opacity:0;
transform:translateY(40px);
transition:.7s;
}

.reveal.active{
opacity:1;
transform:translateY(0);
}


/* INDICATOR */

.vertical-indicator{
position:fixed;
right:-17px;
top:50%;
transform:translateY(-50%) rotate(90deg);
display:flex;
align-items:center;
gap:8px;
font-size:1.1rem;
font-weight:700;
letter-spacing:2px;
}

.vertical-indicator hr.short{
width:20px;
height:1px;
background:#222;
border:none;
}

.vertical-indicator hr.long{
width:40px;
height:1px;
background:#222;
border:none;
}


/* FOOTER */

footer{
text-align:center;
padding:20px 0;
font-size:.8rem;
color:#555;
}

.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);
}

/* ===========================
   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;
    }

    .education-main {
        max-width: 100%;
        margin-top: 80px;
        padding: 0 20px 40px;
        gap: 30px;
    }

    .education-header h1 {
        font-size: 2rem;
    }

    .education-header p {
        font-size: 0.9rem;
    }

    .education-timeline {
        flex-direction: column;
    }

    .timeline-line {
        display: none;
    }

    .education-card {
        margin-left: 0;
        padding: 20px;
    }

    .year-bg {
        display: none;
    }

    .education-details {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .detail-card {
        padding: 15px;
        font-size: 0.85rem;
    }

    .vertical-indicator {
        display: none;
    }

    footer {
        position: relative;
        padding: 20px 20px;
    }
}

/* 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;
    }

    .social-sidebar {
        left: 12px;
        bottom: 12px;
        gap: 12px;
    }

    .social-sidebar a {
        font-size: 1.1em;
    }

    .nav-menu a {
        font-size: 1.8em;
    }

    .education-main {
        margin-top: 70px;
        padding: 0 15px 30px;
        gap: 25px;
    }

    .education-header h1 {
        display: none;
    }

    .education-header p {
        font-size: 0.85rem;
    }

    .education-card {
        padding: 15px;
        border: 1px solid #f0f0f0;
    }

    .period {
        font-size: 0.9rem;
    }

    .special {
        font-size: 0.85rem;
    }

    .description {
        font-size: 0.8rem;
    }

    .education-details {
        grid-template-columns: 1fr;
    }

    .detail-card {
        padding: 12px;
        font-size: 0.8rem;
    }

    .max-icon {
        width: 18px;
        height: 18px;
    }

    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;
    }
}