.services-page {
    background: #000;
}

.services-page .header {
    background: rgba(0, 0, 0, 0.72);
}

.services {
    padding: 112px 0 80px;
    min-height: calc(100vh - 80px);
}

.services-hero {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 40px;
    margin-bottom: 48px;
}

.services-hero-copy {
    max-width: 720px;
    flex: 1;
    min-width: 0;
}

.services-title {
    position: relative;
    font-family: var(--font-hero);
    font-size: clamp(2.7rem, 4.2vw, 3.65rem);
    font-weight: 400;
    line-height: 0.98;
    letter-spacing: 0.015em;
    text-transform: uppercase;
    color: #fff;
    margin: 0;
    white-space: nowrap;
}

.services-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: -18px;
    width: 40px;
    height: 2px;
    background: var(--primary);
}

.services-title span {
    color: #e10600;
}

.services-lead {
    margin: 18px 0 0;
    max-width: 420px;
    color: rgba(255, 255, 255, 0.48);
    font-size: 0.98rem;
    line-height: 1.55;
}

.services-tabs {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    flex-shrink: 0;
    padding-top: 2px;
}

.services-tab {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 150px;
    padding: 8px 12px;
    border: 1px solid rgba(255, 255, 255, 0.11);
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.01);
    color: #fff;
    cursor: pointer;
    text-align: left;
    font-family: var(--font-body);
}

.services-tab-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 0;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    overflow: hidden;
    background: transparent;
}

.services-tab-icon img,
.services-tab-icon svg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.services-tab-icon--star {
    color: #fff;
}

.services-tab-icon--star svg {
    width: 18px;
    height: 18px;
}

.services-tab:hover,
.services-tab.is-active {
    border-color: #e10600;
}

.services-tab-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.services-tab-name {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    line-height: 1.2;
}

.services-tab-meta {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.42);
    line-height: 1.2;
}

.services-section-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 8px 0 24px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.services-section-head img,
.services-section-head svg {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: block;
}

.services-section-title {
    font-family: var(--font-body);
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    text-transform: lowercase;
    color: #fff;
    margin: 0;
}

.services-panel[hidden] {
    display: none;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.svc-card {
    position: relative;
    display: block;
    min-height: 184px;
    background: #080909;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 6px;
    padding: 16px 14px 12px;
    color: inherit;
    text-align: left;
    cursor: pointer;
    font-family: inherit;
    overflow: hidden;
    transition: border-color 0.2s ease;
}

.svc-card:hover {
    border-color: rgba(255, 255, 255, 0.22);
}

.svc-card-copy {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 55%;
    height: 100%;
    min-width: 0;
    position: relative;
    z-index: 1;
}

.svc-card-title {
    font-family: var(--font-body);
    font-size: 0.88rem;
    font-weight: 650;
    line-height: 1.25;
    color: #fff;
    margin: 0 0 6px;
}

.svc-card-teaser {
    margin: 0;
    color: rgba(255, 255, 255, 0.52);
    font-size: 0.68rem;
    line-height: 1.38;
}

.svc-card-media {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.svc-card-media::after {
    content: "";
    position: absolute;
    inset: -1px;
    background:
        linear-gradient(90deg, #080909 0%, rgba(8, 9, 9, 0.96) 42%, rgba(8, 9, 9, 0.48) 56%, transparent 68%),
        linear-gradient(to right, #0a0a0a, transparent 9%),
        linear-gradient(to left, #0a0a0a, transparent 9%),
        linear-gradient(to bottom, #0a0a0a, transparent 9%),
        linear-gradient(to top, #0a0a0a, transparent 9%);
    pointer-events: none;
}

.svc-card-media img {
    width: 100%;
    height: 100%;
    max-height: none;
    object-fit: cover;
    object-position: center right;
    transform: scale(1.1);
    filter: brightness(1.04) contrast(1.08);
}

.svc-card-media img[src*="svc-registration"] {
    transform: scale(1.1) translateX(14%);
}

.svc-card-price {
    margin-top: auto;
    padding-top: 10px;
    font-size: 0.96rem;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: 0;
}

.svc-card-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 4px;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.7rem;
    transition: color 0.2s ease;
}

.svc-card:hover .svc-card-more,
.svc-card:focus-visible .svc-card-more {
    color: #fff;
}

.svc-card-more svg {
    width: 14px;
    height: 14px;
}

.services-also {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 36px;
    margin-top: 14px;
    padding: 16px 0 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.services-also-label {
    font-family: var(--font-body);
    font-size: 1.05rem;
    font-weight: 600;
    color: #fff;
    padding-left: 22px;
    border-left: 2px solid rgba(255, 255, 255, 0.28);
    line-height: 1.1;
    white-space: nowrap;
}

.services-also-text {
    margin: 0;
    color: rgba(255, 255, 255, 0.42);
    font-size: 0.92rem;
    line-height: 1.5;
}

.services-also-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #fff;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    white-space: nowrap;
    transition: color 0.2s ease;
}

.services-also-link:hover {
    color: #ff4d4d;
}

.svc-modal {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: grid;
    place-items: center;
    padding: 24px;
}

.svc-modal[hidden] {
    display: none;
}

.svc-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.72);
    border: 0;
    padding: 0;
    cursor: pointer;
}

.svc-modal-dialog {
    position: relative;
    width: min(560px, 100%);
    max-height: min(86vh, 720px);
    overflow: auto;
    background: #0b0b0b;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 32px 32px 28px;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
}

.svc-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    cursor: pointer;
    font-size: 22px;
    line-height: 1;
}

.svc-modal-kicker {
    margin: 0 0 8px;
    color: rgba(255, 255, 255, 0.42);
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.svc-modal-title {
    font-family: var(--font-display);
    font-size: 1.45rem;
    line-height: 1.2;
    margin: 0 0 10px;
}

.svc-modal-price {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.svc-modal-body {
    color: rgba(255, 255, 255, 0.68);
    font-size: 0.95rem;
    line-height: 1.6;
}

.svc-modal-body p {
    margin: 0 0 12px;
}

.svc-modal-body ul {
    margin: 0 0 16px;
    padding-left: 18px;
}

.svc-modal-body li + li {
    margin-top: 6px;
}

.svc-modal-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}

.svc-modal-actions a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 16px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
}

.svc-modal-actions .cta-button {
    border: 0;
}

.svc-modal-secondary {
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.16);
}

@media (max-width: 1100px) {
    .services-hero-copy {
        max-width: 450px;
    }

    .services-title {
        font-size: 2.75rem;
    }

    .services-lead {
        margin-top: 12px;
        font-size: 0.82rem;
    }

    .services-tab {
        min-width: 145px;
    }

    .services-grid {
        gap: 10px;
    }

    .svc-card {
        min-height: 158px;
        padding: 14px 12px 11px;
    }

    .svc-card-copy {
        width: 53%;
    }

    .svc-card-title {
        font-size: 0.76rem;
    }

    .svc-card-teaser {
        font-size: 0.6rem;
    }

    .svc-card-price {
        padding-top: 7px;
        font-size: 0.8rem;
    }

    .svc-card-more {
        font-size: 0.6rem;
    }
}

@media (max-width: 900px) {
    .services-hero {
        flex-direction: column;
        gap: 28px;
        margin-bottom: 36px;
    }

    .services-tabs {
        width: 100%;
        justify-content: space-between;
        gap: 12px;
        padding-top: 0;
    }

    .services-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .services-also {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .services-also-label {
        font-size: 1.3rem;
    }
}

@media (max-width: 640px) {
    .services {
        padding: 88px 0 48px;
    }

    .services-title {
        white-space: normal;
    }

    .services-tabs {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .svc-card {
        min-height: 190px;
    }

    .svc-card-copy {
        width: 58%;
    }

    .svc-modal-dialog {
        padding: 28px 20px 22px;
    }
}
