.lab-works {
    padding: clamp(15px, 2rem, 30px) 0;
}

.lab-works__header {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 780px;
    margin-bottom: clamp(22px, 3vw, 32px);
}

.service-content .lab-works__eyebrow {
    margin: 0;
    color: #6CC5FB;
    font-size: 13px;
    line-height: 1.4;
    font-weight: var(--md-font-weight-semibold);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.service-content .lab-works__title {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin: 0;
    color: var(--md-color-text-primary);
    font-size: clamp(30px, 2.45rem, 42px);
    line-height: 1.08;
    font-weight: var(--md-font-weight-bold);
    letter-spacing: 0;
    text-wrap: balance;
}

.lab-works__title > span {
    display: block;
}

.lab-works__title-accent {
    color: #6CC5FB;
    font-weight: var(--md-font-weight-semibold);
}

.service-content .lab-works__lead {
    margin: clamp(10px, 1.4vw, 14px) 0 0;
    max-width: 660px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 16px;
    line-height: 1.6;
    font-weight: var(--md-font-weight-light);
}

.lab-works__tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-bottom: clamp(20px, 2.6vw, 30px);
}

.lab-works__tab {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    max-width: 100%;
    padding: 10px 16px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.04);
    color: rgba(255, 255, 255, 0.78);
    font-family: var(--md-font-family-base);
    font-size: 14px;
    line-height: 1.25;
    font-weight: var(--md-font-weight-medium);
    letter-spacing: 0;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.25s ease, background-color 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.lab-works__tab > span:first-child {
    min-width: 0;
    overflow-wrap: anywhere;
}

.lab-works__tab-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 22px;
    padding: 0 6px;
    border-radius: 999px;
    background: rgba(108, 197, 251, 0.16);
    color: #6CC5FB;
    font-size: 12px;
    line-height: 1;
    font-weight: var(--md-font-weight-semibold);
    font-variant-numeric: tabular-nums;
}

.lab-works__tab:hover,
.lab-works__tab:focus-visible {
    border-color: rgba(108, 197, 251, 0.5);
    background: rgba(108, 197, 251, 0.08);
    color: #ffffff;
    outline: none;
    transform: translateY(-1px);
}

.lab-works__tab.is-active {
    border-color: rgba(108, 197, 251, 0.86);
    background: #6CC5FB;
    color: #07111F;
}

.lab-works__tab.is-active .lab-works__tab-count {
    background: rgba(7, 17, 31, 0.18);
    color: #07111F;
}

.lab-works__panels {
    position: relative;
}

.lab-works__panel {
    display: grid;
    grid-template-columns: minmax(0, 0.46fr) minmax(0, 1.54fr);
    gap: clamp(22px, 3vw, 40px);
    align-items: start;
    min-width: 0;
    padding: clamp(22px, 2.8vw, 32px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--md-radius-sm);
    background:
        radial-gradient(ellipse at 8% 0%, rgba(108, 197, 251, 0.1) 0%, rgba(108, 197, 251, 0.034) 38%, rgba(108, 197, 251, 0) 70%),
        linear-gradient(135deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.012) 70%, rgba(255, 255, 255, 0) 100%);
    box-shadow: 0 22px 64px rgba(4, 8, 20, 0.16);
    overflow: hidden;
}

.lab-works__panel > * {
    min-width: 0;
}

.lab-works__panel[hidden] {
    display: none;
}

.lab-works__panel-meta {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 0;
    padding-top: 4px;
}

.service-content .lab-works__panel-title {
    margin: 0;
    color: var(--md-color-text-primary);
    font-size: clamp(20px, 1.4rem, 24px);
    line-height: 1.28;
    font-weight: var(--md-font-weight-semibold);
    letter-spacing: 0;
}

.service-content .lab-works__panel-text {
    margin: 0;
    color: rgba(255, 255, 255, 0.78);
    font-size: 16px;
    line-height: 1.6;
    font-weight: var(--md-font-weight-light);
}

.lab-works__slider {
    position: relative;
    min-width: 0;
    width: 100%;
    overflow: hidden;
}

.lab-works__slider .swiper-wrapper {
    align-items: stretch;
}

.lab-works__slide {
    height: auto;
    box-sizing: border-box;
    flex-shrink: 0;
}

.lab-works__thumb {
    display: block;
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: var(--md-radius-sm);
    aspect-ratio: 4 / 3;
    background: rgba(255, 255, 255, 0.04);
    text-decoration: none;
    cursor: zoom-in;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.lab-works__thumb img {
    display: block;
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.lab-works__thumb:hover img,
.lab-works__thumb:focus-visible img {
    transform: scale(1.04);
}

.lab-works__thumb:hover,
.lab-works__thumb:focus-visible {
    box-shadow: 0 14px 30px rgba(4, 8, 20, 0.32);
}

.lab-works__thumb::after {
    content: '+';
    position: absolute;
    right: 12px;
    bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(7, 17, 31, 0.78);
    color: #ffffff;
    font-size: 22px;
    line-height: 1;
    font-weight: var(--md-font-weight-light);
    backdrop-filter: blur(6px);
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 0.25s ease, transform 0.25s ease;
    pointer-events: none;
}

.lab-works__thumb:hover::after,
.lab-works__thumb:focus-visible::after {
    opacity: 1;
    transform: translateY(0);
}

.lab-works__slider-wrap {
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-width: 0;
}

.lab-works__controls {
    display: flex;
    justify-content: center;
    gap: 12px;
}

.lab-works__nav {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.04);
    color: rgba(255, 255, 255, 0.86);
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.lab-works__nav span {
    display: inline-block;
    transform: translateY(-1px);
}

.lab-works__nav:hover,
.lab-works__nav:focus-visible {
    border-color: rgba(108, 197, 251, 0.6);
    background: rgba(108, 197, 251, 0.12);
    color: #ffffff;
    outline: none;
    transform: translateY(-1px);
}

.lab-works__nav.swiper-button-disabled {
    opacity: 0.3;
    cursor: default;
    pointer-events: none;
}

@media (max-width: 991.98px) {
    .lab-works__panel {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 575.98px) {
    .service-content .lab-works__title {
        font-size: clamp(28px, 2.2rem, 34px);
    }

    .lab-works__panel {
        padding: 18px;
    }

    .lab-works__tabs {
        flex-wrap: nowrap;
        margin-right: -16px;
        padding-right: 16px;
        overflow-x: auto;
        scrollbar-width: thin;
    }

    .lab-works__tab {
        flex: 0 0 auto;
    }

    .lab-works__nav {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
}
