.routes {
    position: relative;
    background-color: var(--bg-dark);
    padding: 0px 20px;
    padding-bottom: clamp(80px, calc(80px + (180 - 80) * ((100vw - 360px) / (768 - 360))), 180px);
    gap: clamp(40px, calc(40px + (74 - 40) * ((100vw - 360px) / (768 - 360))), 74px);
    isolation: isolate;
}

@media (min-width: 768px) {
    .routes {
        padding-bottom: clamp(180px, calc(180px + (280 - 180) * ((100vw - 768px) / (1280 - 768))), 280px);
        gap: clamp(74px, calc(74px + (50 - 74) * ((100vw - 768px) / (1280 - 768))), 50px);
    }
}

@media (min-width: 1280px) {
    .routes {
        gap: clamp(50px, calc(50px + (30 - 50) * ((100vw - 1280px) / (1920 - 1280))), 30px);
        padding: 0 clamp(60px, calc(60px + (322 - 60) * ((100vw - 1280px) / (1920 - 1280))), 322px);
        padding-bottom: clamp(280px, calc(280px + (377 - 280) * ((100vw - 1280px) / (1920 - 1280))), 377px);
    }
}

.routes__header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
    width: 100%;
}

@media (min-width: 768px) {
    .routes__header {
        width: auto;
        gap: clamp(24px, calc(24px + (40 - 24) * ((100vw - 768px) / (1280 - 768))), 40px);
    }
}

@media (min-width: 1280px) {
    .routes__header {
        gap: clamp(40px, calc(40px + (60 - 40) * ((100vw - 1280px) / (1920 - 1280))), 60px);
    }
}

.routes__tabs {
    display: flex;
    justify-content: center;
    gap: 7px;
    width: 100%;
}

@media (min-width: 768px) {
    .routes__tabs {
        gap: 10px;
    }
}

@media (min-width: 1280px) {
    .routes__tabs {
        gap: 12px;
    }
}

@media (min-width: 1920px) {
    .routes__tabs {
        gap: 20px;
    }
}


.hidden {
    display: none;
}

.routes__tab-btn {
    padding: 8.5px 20px;
    border-radius: 8px;
    border: 1px solid var(--color-light);
    background-color: transparent;
    flex: 1;
    cursor: pointer;
}

@media (min-width: 768px) {
    .routes__tab-btn {
        padding: 8.5px 22.5px;
        width: 100%;
    }
}

@media (min-width: 1280px) {
    .routes__tab-btn {
        padding: 12.5px 22.5px;
        border-radius: 16px;
    }
}

@media (min-width: 1920px) {
    .routes__tab-btn {
        padding: 16px 32px;
        border-radius: 20px;
    }
}

.routes__tab-btn:hover,
.routes__tab-btn--active {
    background-color: var(--bg-light);
    color: var(--text-dark);
}

.routes__tab-btn--active {
    cursor: default;
}

.routes__content {
    display: flex;
    flex-direction: column;
    gap: 40px;
    align-items: center;
}

@media (min-width: 768px) {
    .routes__content {
        flex-direction: row;
        gap: 68px;
        align-items: stretch;
    }
}

@media (min-width: 1280px) {
    .routes__content {
        gap: 93px;
    }
}

@media (min-width: 1920px) {
    .routes__content {
        gap: 120px;
    }
}

.routes__map {
    display: flex;
    justify-content: center;
    position: relative;
    background-color: inherit;
    width: 258.76px;
    height: 100%;
    padding: 2px;
    flex-shrink: 0;
}

@media (min-width: 768px) {
    .routes__map {
        width: clamp(300px, calc(300px + (496 - 300) * ((100vw - 768px) / (1280 - 768))), 496px);
    }
}

@media (min-width: 1280px) {
    .routes__map {
        width: clamp(496px, calc(496px + (528 - 496) * ((100vw - 1280px) / (1920 - 1280))), 528px);
    }
}

.routes__svg {
    width: 100%;
    height: 100%;
    overflow: visible;
}

.routes__path {
    stroke-width: 2px;
}

@media (min-width: 1280px) {
    .routes__path {
        stroke-width: 4px;
    }
}

@media (min-width: 1920px) {
    .routes__path {
        stroke-width: 6px;
    }
}

.routes__marker {
    r: 8px;
    stroke-width: 2px;
}

@media (min-width: 768px) {
    .routes__marker {
        r: 10px;
        stroke-width: 3px;
    }
}

@media (min-width: 1280px) {
    .routes__marker {
        r: 14px;
        stroke-width: 5px;
    }
}

@media (min-width: 1920px) {
    .routes__marker {
        r: 12px;
        stroke-width: 6px;
    }
}

.routes__route-point {
    fill: #FF6E2C;
    r: 8px;
}

@media (min-width: 768px) {
    .routes__route-point {
        r: 10px;
    }
}

@media (min-width: 1280px) {
    .routes__route-point {
        r: 8px;
    }
}

@media (min-width: 1920px) {
    .routes__route-point {
        r: 10px;
    }
}

.routes__info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

@media (min-width: 768px) {
    .routes__info {
        gap: 24px;
    }
}

@media (min-width: 1280px) {
    .routes__info {
        margin-top: calc(94px + (132 - 94) * ((100vw - 1280px) / (1920 - 1280)));
        margin-right: calc(110px + (129 - 110) * ((100vw - 1280px) / (1920 - 1280)));
        gap: calc(32px + (36 - 32) * ((100vw - 1280px) / (1920 - 1280)));
    }
}

@media (min-width: 1920px) {
    .routes__info {
        margin-top: 132px;
        margin-right: 129px;
        gap: 36px;
    }
}

.routes__description {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

@media (min-width: 1920px) {
    .routes__description {
        gap: 24px;
    }
}

.routes__actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
}

@media (min-width: 768px) {
    .routes__actions {
        flex-direction: row;
    }
}

@media (min-width: 1280px) {
    .routes__actions {
        gap: 16px;
    }
}

.routes__action-btn {
    padding: 13.5px 0;
    border-radius: 8px;
    border: 1px solid var(--color-primary);
    color: var(--text-light);
    font-size: var(--body-size);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    flex: 1;
    background-color: transparent;
}

.routes__action-btn--primary {
    background-color: var(--color-primary);
}

.routes__action-btn--primary:hover {
    background-color: transparent;
}

.routes__action-btn--outline {
    background-color: var(--bg-dark);
}

.routes__action-btn--outline:hover {
    background-color: var(--color-primary);
}

@media (min-width: 1280px) {
    .routes__action-btn {
        padding: 15.5px 29.5px;
        border-radius: 12px;
    }
}

@media (min-width: 1920px) {
    .routes__action-btn {
        padding: 16px 29.5px;
        border-radius: 20px;
    }
}

.routes__bg-text {
    display: none;
    position: absolute;
    top: 28%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: -1;
    pointer-events: none;
    user-select: none;
    width: 100%;
    padding: 20px;
}

@media (min-width: 768px) {
    .routes__bg-text {
        display: block;
    }
}

@media (min-width: 1280px) {
    .routes__bg-text {
        padding: 0 60px;
        top: 23%;
    }
}

@media (min-width: 1920px) {
    .routes__bg-text {
        padding: 0 322px;
        top: 26%;
    }
}

.routes__bg-img {
    width: 100%;
    height: auto;
    display: block;
}

/* --- Helms --- */
.routes__image-helms {
    display: none;
    position: absolute;
    z-index: 10;
}

@media (min-width: 768px) {
    .routes__image-helms {
        display: block;
        width: 326px;
        right: 20px;
        top: -145px;
    }
}

@media (min-width: 1280px) {
    .routes__image-helms {
        width: 484px;
        left: 21px;
        right: auto;
        top: -185px;
    }
}

@media (min-width: 1920px) {
    .routes__image-helms {
        width: 573px;
        left: 249px;
        top: -205px;
    }
}