@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700;900&display=swap');

:root {
    --bg-color: #302f2c;
    --text-color: #efede3;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: 'Montserrat', sans-serif;
    overflow: hidden;
    height: 100vh;
    width: 100vw;
}

/* Десктопная версия: Горизонтальный слайдер */
.slider-container {
    display: flex;
    width: 800vw;
    height: 100vh;
    transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
    will-change: transform;
}

.slide {
    flex: 0 0 100vw;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 60px 5% 140px 5%;
    overflow-y: auto;
    overflow-x: hidden;
}

.content-wrapper {
    width: 100%;
    max-width: 1800px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin: auto;
}

.title {
    font-size: 5rem;
    font-weight: 900;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 5px;
    white-space: nowrap;
}

.title-main {
    font-size: 5rem;
    font-weight: 900;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 5px;
    white-space: pre-wrap;
    line-height: 1.2;
}

.subtitle {
    font-size: 1.5rem;
    font-weight: 400;
}

.dev-buttons {
    display: flex;
    flex-direction: row;
    gap: 40px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 30px;
}

.flex-column {
    display: flex;
    flex-direction: column;
    gap: 50px;
    margin-top: 40px;
    align-items: center;
}

.job {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 600px;
}

.job h2 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    font-weight: 700;
}

.job p {
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.links-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    margin-top: 40px;
    max-width: 900px;
}

.btn-outline {
    border: 2px solid var(--text-color);
    color: var(--text-color);
    padding: 15px 35px;
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    background: transparent;
    display: inline-block;
    margin-top: 15px;
}

.btn-outline:hover {
    background-color: var(--text-color);
    color: var(--bg-color);
}

.btn-outline.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}
.btn-outline.disabled:hover {
    background-color: transparent;
    color: var(--text-color);
}

.team-grid {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 60px;
    justify-content: center;
    margin-top: 60px;
}

.team-member {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.team-name {
    font-size: 1.5rem;
    font-weight: 900;
    letter-spacing: 1px;
}

.team-role {
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    opacity: 0.5;
}

.timeline-wrapper {
    position: fixed;
    bottom: 120px;
    left: 5%;
    width: 90%;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
}

.timeline-line {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    background-color: var(--text-color);
    transform: translateY(-50%);
    z-index: 1;
}

.timeline-nodes {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    width: 100%;
}

.node {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    position: relative;
    padding: 10px;
}

.dot {
    width: 20px;
    height: 20px;
    background-color: var(--bg-color);
    border: 2px solid var(--text-color);
    border-radius: 50%;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.node.active .dot, .node:hover .dot {
    background-color: var(--text-color);
    box-shadow: 0 0 15px rgba(239, 237, 227, 0.5);
}

.label {
    font-size: 1.2rem;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 2px;
    transition: opacity 0.3s ease;
    opacity: 0.4;
}

.node.active .label, .node:hover .label {
    opacity: 1;
}

.footer {
    position: fixed;
    bottom: 25px;
    left: 0;
    width: 100%;
    text-align: center;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 4px;
    text-transform: uppercase;
    opacity: 0.6;
    z-index: 99;
}

/* Мобильная адаптация: Вертикальный скролл */
@media (max-width: 900px) {
    /* Разрешаем обычный скролл на мобилках */
    body {
        overflow-y: auto;
        overflow-x: hidden;
    }
    
    /* Убираем жесткую ширину для контейнера */
    .slider-container {
        width: 100vw;
        height: auto;
        flex-direction: column; /* Элементы идут друг под другом */
        transform: none !important; /* Отключаем горизонтальную трансформацию */
        transition: none; /* Отключаем анимацию */
    }

    .slide {
        width: 100vw;
        height: auto; /* Высота подстраивается под контент */
        min-height: 100vh; /* Минимум один экран на секцию */
        padding: 60px 5% 60px 5%; /* Убираем огромный отступ снизу */
    }

    .title, .title-main { font-size: 3rem; letter-spacing: 3px; }
    
    /* Скрываем горизонтальный таймлайн на мобильных */
    .timeline-wrapper { 
        display: none; 
    }
    
    /* Колонтитул оставляем, но делаем его статичным или прячем */
    .footer { 
        position: relative;
        bottom: 0;
        margin-top: 40px;
        margin-bottom: 20px;
        font-size: 0.8rem; 
    }
}

@media (max-width: 600px) {
    .title, .title-main { font-size: 2.2rem; white-space: normal; } 
    .subtitle { font-size: 1.1rem; }
    .job h2 { font-size: 2rem; }
    
    .dev-buttons {
        flex-direction: column;
        gap: 20px;
    }
}
