body {
    font-family: 'Courier New', monospace;
    margin: 0;
    padding: 0;
    background-color: rgb(24, 17, 27);
    color: #e0dfdc;
}
.header {
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.5));
    padding: 20px;
    text-align: center;
    font-size: 26px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-bottom: 2px solid #a19079;
}
.header-logo {
    position: absolute;
    top: 10px;
    left: 20px;
}
.header-logo-image {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}
.nav {
    display: flex;
    justify-content: center;
    gap: 20px;
    padding: 10px;
    background: rgba(20, 20, 20, 0.85);
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.5);
}
.nav a {
    color: #d4c2a8;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 5px;
    transition: 0.3s;
    font-weight: bold;
}
.nav a:hover {
    background: #a19079;
    color: #fff;
}
.timeline-container {
    max-width: 1250px;
    margin: 40px auto;
    padding: 20px;
    background: rgba(15, 15, 15, 0.8);
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.7);
    overflow: hidden;
}
.timeline {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    padding: 40px 30px;
    border-top: 2px solid #a19079;
    border-bottom: 2px solid #a19079;
}
.timeline::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(to right, #a19079, #d4c2a8, #a19079);
    transform: translateY(-50%);
    animation: lineGlow 3s infinite;
}
@keyframes lineGlow {
    0% { opacity: 0.7; }
    50% { opacity: 1; }
    100% { opacity: 0.7; }
}
.timeline-event {
    position: relative;
    width: 20px;
    height: 20px;
    background: #a19079;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.4s ease;
    z-index: 1;
}
.timeline-event:hover {
    transform: scale(1.3);
    background: #d4c2a8;
    box-shadow: 0 0 15px rgba(212, 194, 168, 0.7);
    animation: pulse 1s infinite;
}
@keyframes pulse {
    0% { box-shadow: 0 0 15px rgba(212, 194, 168, 0.7); }
    50% { box-shadow: 0 0 25px rgba(212, 194, 168, 0.9); }
    100% { box-shadow: 0 0 15px rgba(212, 194, 168, 0.7); }
}
.timeline-event.active {
    background: #d4c2a8;
    transform: scale(1.3);
}
.timeline-event::after {
    content: attr(data-year);
    position: absolute;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: #a19079;
    font-weight: bold;
    font-size: 14px;
    white-space: nowrap;
    transition: color 0.3s;
}
.timeline-event:hover::after {
    color: #d4c2a8;
}
.slider {
    position: absolute;
    top: 50%;
    left: 0;
    width: 20px;
    height: 20px;
    background: #d4c2a8;
    border-radius: 50%;
    transform: translateY(-50%);
    transition: left .6s ease-in-out;
    box-shadow: 0 0 10px rgba(212, 194, 168, 0.7);
    z-index: 0;
}
.info-block {
    max-width: 1250px;
    margin: 20px auto;
    padding: 20px;
    background: rgba(20, 20, 20, 0.85);
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
    display: none;
}
.info-block.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    display: block;
}
.info-block h3 {
    font-size: 28px;
    color: #a19079;
    text-shadow: 0 0 5px rgba(161, 144, 121, 0.5);
    margin: 15px 0;
    animation: fadeIn 0.5s;
}
.section h4 {
    font-size: 20px;
    color: #d4c2a8;
    margin: 15px 0 10px;
    font-weight: 600;
    border-left: 3px solid #a19079;
    padding-left: 10px;
}
.info-block p {
    font-size: 18px;
    line-height: 1.6;
    color: #d4c2a8;
    margin: 0 0 15px;
    animation: fadeIn 0.7s;
}
.info-block ul {
    margin: 15px 0;
    padding-left: 30px;
    color: #d4c2a8;
}
.info-block ul li {
    list-style-type: none;
    position: relative;
    margin-bottom: 10px;
}
.info-block ul li:before {
    content: '•';
    position: absolute;
    left: -20px;
    color: #a19079;
    font-size: 20px;
}
.section-icon {
    width: 30px;
    height: 30px;
    margin-right: 10px;
    vertical-align: middle;
    filter: sepia(1) hue-rotate(30deg) saturate(2);
}
.section:not(:last-child) {
    border-bottom: 1px solid #a19079;
    padding-bottom: 20px;
    margin-bottom: 20px;
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
.event-content {
    display: none;
}
.event-content.active {
    display: block;
}
.footer h4 {
    color: #676770;
    margin-bottom: 25px;
    font-size: 18px;
    line-height: 1.1;
    letter-spacing: 4px;
    text-transform: uppercase;
}
.footer__desc {
    padding: 35px 0;
}
.footer__desc li a {
    color: #668CAD;
    font-size: 13px;
    line-height: 1.5;
}
.footer__desc li a:hover {
    color: #fff;
    text-decoration: underline;
}
.footer__desc li {
    height: 30px;
    position: relative;
}
.footer__desc li::before {
    content: "";
    width: 100%;
    height: 1px;
    position: absolute;
    right: 0;
    bottom: 0;
    border-bottom: 1px solid #D5D5E0;
}
.footer__desc li + li {
    margin-top: 6px;
}
.footer__social li::before {
    width: calc(100% - 34px);
}
.footer__social img {
    width: 25px;
    height: 25px;
    object-fit: contain;
    margin-right: 10px;
}
.footer__desc-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    max-width: 1162px;
    padding: 0 20px;
    margin: 0 auto;
}
.footer__desc-container > * {
    width: 30%;
}
.footer__copy {
    text-align: center;
    padding: 1px 0;
    background: #383838;
    color: #9E9E9E;
}
.footer__copy p {
    color: #9E9E9E;
}
.scroll-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background-color: #000000;
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: none;
}
.scroll-top.show {
    display: block;
}

@media (max-width: 768px) {
    /* Общие стили */
    body {
        font-size: 14px;
    }

    /* Хедер */
    .header {
        font-size: 20px;
        padding: 15px;
        position: relative;
    }

    .header-logo {
        top: 10px;
        left: 10px;
    }

    .header-logo-image {
        width: 30px;
        height: 30px;
    }

    /* Навигация */
    .nav {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 200px;
        height: 100%;
        background: rgba(20, 20, 20, 0.95);
        flex-direction: column;
        padding: 20px;
        z-index: 1000;
        transform: translateX(-100%);
        transition: transform 0.3s ease-in-out;
    }

    .nav.active {
        display: flex;
        transform: translateX(0);
    }

    .nav a {
        padding: 10px;
        font-size: 14px;
        color: #d4c2a8;
        border-bottom: 1px solid #a19079;
    }

    .nav a:hover {
        background: #a19079;
        color: #fff;
    }

    /* Гамбургер-меню */
    .hamburger {
        display: block;
        position: fixed;
        top: 15px;
        right: 15px;
        width: 30px;
        height: 20px;
        cursor: pointer;
        z-index: 1001;
    }

    .hamburger span {
        display: block;
        width: 100%;
        height: 3px;
        background: #d4c2a8;
        margin-bottom: 5px;
        transition: all 0.3s ease;
    }

    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }

    /* Таймлайн */
    .timeline-container {
        margin: 15px;
        padding: 10px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .timeline {
        display: flex;
        
        align-items: center;
        padding: 60px ;
        min-width: fit-content;
        gap: 10px;
    }

    .timeline::before {
        height: 2px;
        background: linear-gradient(to right, #a19079, #d4c2a8, #a19079);
        top: 50%;
        transform: translateY(-50%);
    }

    .timeline-event {
        width: 20px;
        height: 20px;
        flex-shrink: 0;
        position: relative;
        margin: 0;
    }

    .timeline-event::after {
        content: attr(data-year);
        font-size: 11px;
        width: 70px;
        text-align: center;
        white-space: normal;
        transform: translateX(-50%);
        line-height: 1.2;
        color: #a19079;
    }

    .timeline-event:nth-child(odd)::after {
        top: 30px;
    }

    .timeline-event:nth-child(even)::after {
        top: -40px;
    }

    .timeline-event:hover::after {
        color: #d4c2a8;
    }

    .slider {
        width: 18px;
        height: 18px;
        top: 50%;
        transform: translateY(-50%);
    }

    /* Информационные блоки */
    .info-block {
        margin: 10px;
        padding: 15px;
    }

    .info-block h3 {
        font-size: 24px;
    }

    .info-block p {
        font-size: 16px;
        line-height: 1.4;
    }

    .info-block ul {
        padding-left: 20px;
    }

    .info-block ul li {
        font-size: 14px;
    }

    .section-icon {
        width: 25px;
        height: 25px;
    }

    /* Футер */
    .footer__desc-container {
        flex-direction: column;
        padding: 15px;
    }

    .footer__desc-container > * {
        width: 100%;
        margin-bottom: 20px;
    }

    .footer h4 {
        font-size: 16px;
        letter-spacing: 2px;
    }

    .footer__desc li a {
        font-size: 12px;
    }

    .footer__social img {
        width: 20px;
        height: 20px;
    }

    .footer__copy {
        font-size: 12px;
        padding: 10px 0;
    }

    /* Кнопка прокрутки */
    .scroll-top {
        width: 35px;
        height: 35px;
        bottom: 15px;
        right: 15px;
    }
}

@media (max-width: 480px) {
    body {
        font-size: 12px;
    }

    .header {
        font-size: 18px;
        padding: 10px;
    }

    .header-logo-image {
        width: 25px;
        height: 25px;
    }

    .nav {
        width: 160px;
    }

    .nav a {
        font-size: 12px;
        padding: 8px;
    }

    .hamburger {
        width: 25px;
        height: 18px;
    }

    .hamburger span {
        height: 2px;
        margin-bottom: 4px;
    }

    .timeline-container {
        margin: 10px;
        padding: 5px;
    }

    .timeline {
        gap: 8px;
    }

    .timeline-event {
        width: 18px;
        height: 18px;
    }

    .timeline-event::after {
        font-size: 10px;
        width: 60px;
        top: 25px;
    }

    .timeline-event:nth-child(even)::after {
        top: -35px;
    }

    .slider {
        width: 16px;
        height: 16px;
    }

    .info-block h3 {
        font-size: 18px;
    }

    .info-block p {
        font-size: 12px;
    }

    .section-icon {
        width: 20px;
        height: 20px;
    }

    .footer h4 {
        font-size: 14px;
    }

    .footer__desc li a {
        font-size: 11px;
    }

    .footer__copy {
        font-size: 10px;
    }

    .scroll-top {
        width: 30px;
        height: 30px;
    }

    /* Упрощаем анимации */
    .timeline-event:hover,
    .timeline-event.active {
        animation: none;
        transform: scale(1.1);
    }
}