.timeline-section {
    padding: 72px clamp(20px, 4vw, 56px);
    background: linear-gradient(180deg, #eef8f3 0%, #ffffff 100%);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.timeline-list {
    position: relative;
    display: grid;
    gap: 18px;
    max-width: 920px;
}

.timeline-list::before {
    content: "";
    position: absolute;
    top: 10px;
    bottom: 10px;
    left: 148px;
    width: 2px;
    background: var(--line);
}

.timeline-item {
    position: relative;
    display: grid;
    grid-template-columns: 128px minmax(0, 1fr);
    gap: 42px;
    align-items: start;
}

.timeline-item::before {
    content: "";
    position: absolute;
    top: 12px;
    left: 141px;
    width: 16px;
    height: 16px;
    border: 4px solid var(--paper);
    border-radius: 999px;
    background: var(--teal);
    box-shadow: 0 0 0 1px var(--line);
}

.timeline-item time {
    color: #006d5d;
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
}

.timeline-item div {
    padding: 20px 22px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--paper);
    box-shadow: 0 10px 28px rgba(9, 40, 58, 0.06);
}

.timeline-item h3 {
    margin: 0 0 8px;
    font-size: 1.18rem;
    line-height: 1.25;
}

.timeline-item h3 a {
    text-decoration: none;
}

.timeline-item h3 a:hover,
.timeline-item h3 a:focus-visible {
    color: var(--teal);
}

.timeline-theme {
    display: inline-flex;
    margin-bottom: 8px;
    color: #006d5d;
    font-size: 0.74rem;
    font-weight: 800;
    text-transform: uppercase;
}

.timeline-item p {
    margin: 0;
    color: var(--muted);
}

.timeline-wheel {
    position: fixed;
    top: 104px;
    right: clamp(18px, 2.4vw, 34px);
    z-index: 12;
    display: none;
    width: min(280px, 24vw);
    max-height: calc(100vh - 128px);
    padding: 14px;
    border: 1px solid rgba(216, 230, 225, 0.86);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 18px 45px rgba(9, 40, 58, 0.14);
    backdrop-filter: blur(18px);
}

.timeline-wheel::before {
    content: "";
    position: absolute;
    top: 76px;
    bottom: 18px;
    left: 24px;
    width: 2px;
    border-radius: 999px;
    background: linear-gradient(180deg, transparent, rgba(0, 184, 148, 0.4), transparent);
}

.timeline-wheel-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
    padding: 2px 2px 12px;
    border-bottom: 1px solid rgba(216, 230, 225, 0.72);
}

.timeline-wheel-head span {
    color: #006d5d;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
}

.timeline-wheel-head strong {
    font-size: 1.02rem;
    line-height: 1;
}

.timeline-wheel-window {
    position: relative;
    height: min(560px, calc(100vh - 210px));
    overflow: hidden;
    border-radius: 8px;
    mask-image: linear-gradient(180deg, transparent, #000 12%, #000 88%, transparent);
}

.timeline-wheel-track {
    display: grid;
    gap: 12px;
    animation: timeline-wheel-spin calc(var(--wheel-count) * 4.8s) linear infinite;
    will-change: transform;
}

.timeline-wheel:hover .timeline-wheel-track {
    animation-play-state: paused;
}

.timeline-wheel-item {
    position: relative;
    margin-left: 22px;
    padding: 14px 14px 14px 18px;
    border: 1px solid rgba(216, 230, 225, 0.78);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 10px 24px rgba(18, 52, 63, 0.08);
}

.timeline-wheel-item::before {
    content: "";
    position: absolute;
    top: 20px;
    left: -28px;
    width: 10px;
    height: 10px;
    border: 3px solid rgba(255, 255, 255, 0.96);
    border-radius: 50%;
    background: var(--teal);
    box-shadow: 0 0 0 1px rgba(0, 184, 148, 0.34);
}

.timeline-wheel-item time,
.timeline-wheel-item span {
    display: inline-block;
    margin: 0 8px 6px 0;
    color: #006d5d;
    font-size: 0.68rem;
    font-weight: 800;
    text-transform: uppercase;
}

.timeline-wheel-item h3 {
    margin: 0 0 6px;
    font-size: 0.96rem;
    line-height: 1.24;
}

.timeline-wheel-item h3 a {
    color: inherit;
    text-decoration: none;
}

.timeline-wheel-item h3 a:hover,
.timeline-wheel-item h3 a:focus-visible {
    color: var(--teal);
}

.timeline-wheel-item p {
    margin: 0;
    color: var(--muted);
    font-size: 0.82rem;
    line-height: 1.45;
}

@keyframes timeline-wheel-spin {
    from {
        transform: translateY(0);
    }

    to {
        transform: translateY(-50%);
    }
}

input[type="date"] {
    width: 100%;
    min-height: 46px;
    padding: 12px 14px;
    border: 1px solid #cbdcd6;
    border-radius: 8px;
    background: #fbfefd;
    color: var(--ink);
    font: inherit;
}

.inline-form {
    margin: 0;
}

@media (min-width: 1180px) {
    .has-timeline-wheel .timeline-wheel {
        display: block;
    }

    .has-timeline-wheel .hero,
    .has-timeline-wheel .content-band,
    .has-timeline-wheel .articles-section,
    .has-timeline-wheel .site-footer {
        padding-right: clamp(316px, 28vw, 390px);
    }

    .has-timeline-wheel .timeline-section {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .timeline-wheel-track {
        animation: none;
    }
}

@media (max-width: 640px) {
    .timeline-section {
        padding-inline: 18px;
    }

    .timeline-list::before {
        left: 7px;
    }

    .timeline-item {
        grid-template-columns: 1fr;
        gap: 10px;
        padding-left: 32px;
    }

    .timeline-item::before {
        left: 0;
    }
}
