@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Playfair+Display:wght@700;800&display=swap');

.ts-section {
    padding: 56px 18px 56px;
    background-color: var(--neutral-100);
    box-shadow: 0px 7.77px 16px 0px rgba(0, 0, 0, 0.0588235294), 0px 3px 3px 0px rgba(0, 0, 0, 0.1019607843), 0px -8px 0px 0px rgba(0, 0, 0, 0.0509803922) inset, 0px 4px 0px 0px rgba(255, 255, 255, 0.6) inset;
    border-radius:30px;
    /*padding-bottom:100px;*/
    overflow: hidden;
}

.ts-container {
    max-width: 1240px;
    margin: 0 auto;
}

.ts-header {
    text-align: center;
    margin-bottom: 22px;
}

.ts-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.55);
    border: 1px solid rgba(194, 154, 32, 0.22);
    color: #8b6b17;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 16px;
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.85),
        0 8px 18px rgba(15, 23, 42, 0.04);
}

.ts-header h2 {
    margin: 0 0 14px;
    max-width: 980px;
    margin-inline: auto;
    font-family: "Playfair Display", serif;
    font-size: clamp(38px, 4.8vw, 52px);
    line-height: 0.96;
    font-weight: 800;
    letter-spacing: -0.05em;
    color: #0b132b;
    text-wrap: balance;
}

.ts-header p {
    max-width: 920px;
    margin: 0 auto;
    font-family: "Inter", sans-serif;
    color: #42526b;
    font-size: clamp(16px, 1.12vw, 20px);
    line-height: 1.72;
}

.ts-shell {
    position: relative;
}

.ts-progress {
    width: 100%;
    height: 4px;
    border-radius: 999px;
    background: rgba(120, 134, 160, 0.18);
    overflow: hidden;
    margin-bottom: 16px;
}

.ts-progress-bar {
    display: block;
    width: 0%;
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #1f4ed8 0%, #2d7cf3 55%, #77c7ff 100%);
    box-shadow: 0 0 16px rgba(45, 124, 243, 0.18);
}

.ts-progress-bar.is-animating {
    animation: tsProgress 4.8s linear forwards;
}

@keyframes tsProgress {
    from { width: 0%; }
    to { width: 100%; }
}

.ts-slider-window {
    overflow: hidden;
    border-radius: 28px;
    border: 1px solid rgba(180, 188, 202, 0.22);
    background:
        linear-gradient(180deg, rgba(255,255,255,0.72), rgba(247,248,250,0.74));
    backdrop-filter: blur(12px);
    box-shadow:
        0 18px 42px rgba(15, 23, 42, 0.08),
        inset 0 1px 0 rgba(255,255,255,0.65);
}

.ts-slider-track {
    display: flex;
    transition: transform 0.85s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform;
}

.ts-slide {
    flex: 0 0 100%;
    min-width: 100%;
    opacity: 0.94;
    transform: scale(0.992);
    transition: opacity 0.36s ease, transform 0.36s ease;
}

.ts-slide.is-active {
    opacity: 1;
    transform: scale(1);
}

.ts-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.ts-card {
    position: relative;
    min-height: 170px;
    background:
        linear-gradient(180deg, rgba(255,255,255,0.55), rgba(243,246,250,0.72));
    border-right: 1px solid rgba(148, 163, 184, 0.10);
    border-bottom: 1px solid rgba(148, 163, 184, 0.10);
    overflow: hidden;
}

.ts-card-inner {
    width: 100%;
    height: 100%;
    padding: 22px 14px 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    text-decoration: none;
    transition: transform 0.26s ease;
}

.ts-card:hover .ts-card-inner {
    transform: translateY(-3px);
}

.ts-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at center, rgba(212, 175, 55, 0.10), transparent 58%);
    opacity: 0;
    transition: opacity 0.30s ease;
    pointer-events: none;
}

.ts-card:hover::before {
    opacity: 1;
}

.ts-card::after {
    content: "";
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 0;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(212,175,55,0), rgba(212,175,55,0.65), rgba(212,175,55,0));
    transform: scaleX(0.35);
    opacity: 0;
    transition: transform 0.26s ease, opacity 0.26s ease;
}

.ts-card:hover::after {
    opacity: 1;
    transform: scaleX(1);
}

.ts-logo-box {
    width: 74px;
    height: 74px;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ts-logo-box img {
    max-width: 62px;
    max-height: 62px;
    object-fit: contain;
    display: block;
    filter: drop-shadow(0 3px 8px rgba(15, 23, 42, 0.06));
}

.ts-placeholder {
    width: 74px;
    height: 74px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        linear-gradient(135deg, #0f172a 0%, #1e3a8a 55%, #c59a20 100%);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.18),
        0 12px 24px rgba(15, 23, 42, 0.18);
}

.ts-placeholder span {
    color: #ffffff;
    font-family: "Inter", sans-serif;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.ts-tech-name {
    max-width: 160px;
    margin: 0 auto;
    font-family: "Inter", sans-serif;
    color: #1e293b;
    font-size: 15px;
    line-height: 1.34;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.ts-footer {
    margin-top: 18px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.ts-tabs {
    flex: 1;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px 14px;
}

.ts-tab {
    appearance: none;
    border: 1px solid transparent;
    background: transparent;
    color: #74839a;
    font-family: "Inter", sans-serif;
    font-size: clamp(15px, 1vw, 18px);
    font-weight: 700;
    line-height: 1.1;
    cursor: pointer;
    border-radius: 999px;
    padding: 10px 16px;
    transition: all 0.22s ease;
}

.ts-tab:hover {
    color: #0f172a;
    background: rgba(255,255,255,0.55);
    border-color: rgba(180, 188, 202, 0.20);
}

.ts-tab.is-active {
    color: #1d4ed8;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    border-color: rgba(37, 99, 235, 0.10);
    box-shadow:
        0 8px 20px rgba(15, 23, 42, 0.06),
        inset 0 1px 0 rgba(255,255,255,0.85);
}

.ts-nav {
    width: 42px;
    height: 42px;
    border: 1px solid rgba(180, 188, 202, 0.24);
    border-radius: 999px;
    background: rgba(255,255,255,0.82);
    color: #0f172a;
    font-size: 24px;
    align-items: center;
    justify-content: center;
    text-align: center;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.06);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.ts-nav:hover {
    transform: translateY(-2px);
    border-color: rgba(197, 154, 32, 0.28);
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.10);
}

@media (max-width: 1180px) {
    .ts-container {
        max-width: 1120px;
    }

    .ts-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .ts-card {
        min-height: 164px;
    }
}

@media (max-width: 860px) {
    .ts-section {
        padding: 56px 14px 46px;
    }

    .ts-header h2 {
        font-size: clamp(34px, 8vw, 56px);
    }

    .ts-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .ts-card {
        min-height: 154px;
    }

    .ts-footer {
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width: 640px) {
    .ts-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ts-card {
        min-height: 144px;
    }

    .ts-logo-box,
    .ts-placeholder {
        width: 66px;
        height: 66px;
    }

    .ts-logo-box img {
        max-width: 54px;
        max-height: 54px;
    }

    .ts-placeholder span {
        font-size: 20px;
    }

    .ts-tech-name {
        font-size: 14px;
        max-width: 120px;
    }

    .ts-tab {
        font-size: 14px;
        padding: 9px 12px;
    }

    .ts-nav {
        width: 38px;
        height: 38px;
        font-size: 22px;
    }
}

@media (max-width: 420px) {
    .ts-grid {
        grid-template-columns: 1fr;
    }
}