/* ===== Трасса и телеметрия — в стиле блока «Услуги» ===== */
.tr-section {
    --tr-neon: #ff000a;
    --tr-neon-hi: #ff0018;
    --tr-neon-soft: #ff2233;
    --primary: var(--tr-neon);
    position: relative;
    padding: 56px 0 64px;
    background:
        radial-gradient(ellipse 65% 40% at 50% 0%, rgba(255, 0, 8, 0.09), transparent 58%),
        #050506;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.tr-head {
    margin-bottom: 28px;
    text-align: center;
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
}

.tr-head__title {
    margin: 0 0 12px;
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(1.35rem, 3vw, 1.85rem);
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    line-height: 1.25;
    color: #fff;
}

.tr-head__lead {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.65;
    color: var(--text-light);
}

.tr-switch {
    margin-bottom: 2.5rem;
}

.tr-switch .price-tabs,
.tr-switch .tr-tabs {
    margin-bottom: 0;
    justify-content: center;
}

.tr-section .tr-switch .price-tab.active {
    background: var(--tr-neon);
    box-shadow:
        0 0 14px rgba(255, 0, 8, 0.95),
        0 0 32px rgba(255, 0, 8, 0.65);
}

.tr-stage {
    position: relative;
    min-height: 0;
}

.tr-panel {
    display: none;
    animation: tr-panel-in 0.38s ease-out;
}

.tr-panel.active {
    display: block;
}

@keyframes tr-panel-in {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.tr-panel__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
    gap: clamp(24px, 4vw, 48px);
    align-items: start;
}

.tr-copy {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.tr-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    align-self: flex-start;
    margin-bottom: 14px;
    padding: 7px 14px;
    border-radius: 50px;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #fff;
    background: rgba(255, 0, 8, 0.18);
    border: 1px solid rgba(255, 0, 8, 0.45);
    box-shadow: 0 0 16px rgba(255, 0, 8, 0.2);
}

.tr-badge--kids {
    background: rgba(255, 140, 40, 0.14);
    border-color: rgba(255, 160, 60, 0.4);
    box-shadow: 0 0 16px rgba(255, 140, 40, 0.15);
}

.tr-title {
    margin: 0 0 14px;
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(1.2rem, 2.8vw, 1.75rem);
    font-weight: 700;
    line-height: 1.2;
    color: #fff;
    text-shadow: 0 0 20px rgba(255, 0, 8, 0.35);
}

.tr-desc {
    margin: 0 0 22px;
    font-size: 0.92rem;
    line-height: 1.65;
    color: var(--text-light);
    max-width: 520px;
}

.tr-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.tr-stat {
    padding: 14px 12px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.tr-stat:hover {
    border-color: rgba(255, 0, 8, 0.35);
    box-shadow: 0 0 18px rgba(255, 0, 8, 0.12);
}

.tr-stat__val {
    display: block;
    margin-bottom: 4px;
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(0.85rem, 2vw, 1rem);
    font-weight: 700;
    color: var(--tr-neon-soft);
    line-height: 1.2;
    text-shadow: 0 0 14px rgba(255, 0, 8, 0.45);
}

.tr-stat__lbl {
    display: block;
    font-size: 0.72rem;
    line-height: 1.35;
    color: rgba(255, 255, 255, 0.55);
}

.tr-visual {
    position: relative;
    min-width: 0;
}

.tr-visual__frame {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    border: 2px solid rgba(255, 0, 8, 0.5);
    box-shadow:
        0 0 24px rgba(255, 0, 8, 0.35),
        0 12px 40px rgba(0, 0, 0, 0.45);
    background: #0a0a0c;
}

.tr-visual__frame::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 55%, rgba(0, 0, 0, 0.55) 100%);
    pointer-events: none;
    z-index: 1;
}

.tr-visual__img {
    display: block;
    width: 100%;
    height: auto;
    vertical-align: middle;
}

.tr-visual__caption {
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 12px;
    z-index: 2;
    margin: 0;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.62rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.75);
}

.tr-telemetry {
    margin-top: 28px;
    padding: clamp(18px, 3vw, 24px);
    border-radius: 16px;
    border: 1px solid rgba(255, 0, 8, 0.35);
    background:
        radial-gradient(ellipse 80% 60% at 0% 0%, rgba(255, 0, 8, 0.08), transparent 55%),
        rgba(255, 255, 255, 0.03);
    box-shadow: 0 0 32px rgba(255, 0, 8, 0.1);
}

.tr-telemetry__head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.tr-telemetry__head i {
    color: var(--tr-neon);
    font-size: 1.1rem;
    filter: drop-shadow(0 0 8px rgba(255, 0, 8, 0.6));
}

.tr-telemetry__head h3 {
    margin: 0;
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(0.78rem, 2vw, 0.92rem);
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #fff;
}

.tr-telemetry__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 12px;
}

@media (min-width: 768px) {
    .tr-telemetry__list {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 14px;
    }
}

.tr-telemetry__item {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 12px;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 0.86rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.82);
}

.tr-telemetry__item i {
    flex-shrink: 0;
    margin-top: 3px;
    color: var(--tr-neon-soft);
}

.tr-telemetry__item strong {
    color: #fff;
    font-weight: 600;
}

.tr-footer {
    margin-top: 28px;
    text-align: center;
}

.tr-footer .btn {
    min-width: min(100%, 280px);
}

.tr-footer .btn-primary {
    background: var(--tr-neon);
    box-shadow: 0 0 18px rgba(255, 0, 8, 0.5);
}

.tr-footer .btn-outline {
    border-color: rgba(255, 0, 8, 0.55);
    color: var(--tr-neon-soft);
}

@media (max-width: 992px) {
    .tr-panel__grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .tr-copy {
        text-align: center;
        align-items: center;
    }

    .tr-badge {
        align-self: center;
    }

    .tr-desc {
        max-width: none;
    }

    .tr-switch .price-tabs,
    .tr-switch .tr-tabs {
        width: 100%;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .tr-switch .price-tab {
        width: 100%;
        justify-content: center;
        min-height: 44px;
        padding: 10px 12px;
        font-size: 0.78rem;
    }
}

@media (max-width: 480px) {
    .tr-section {
        padding: 40px 0 48px;
    }

    .tr-stats {
        grid-template-columns: 1fr;
    }

    .tr-telemetry__list {
        grid-template-columns: 1fr;
    }

    .tr-switch .price-tab {
        font-size: 0.72rem;
    }
}
