.works-gallery-section {
    padding-top: 40px;
}

.works-grid .works-card-col {
    display: flex;
}

.works-card {
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    overflow: hidden;
    background: #111826;
    color: #ecf3ff;
    text-decoration: none;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
}

.works-card:hover {
    transform: translateY(-4px);
    border-color: rgba(87, 163, 255, 0.9);
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.35);
}

.works-card-media {
    position: relative;
    width: 100%;
    aspect-ratio: 3 / 2;
    background: linear-gradient(145deg, rgb(13 14 15 / 98%), rgb(146 61 43 / 31%)), radial-gradient(circle at 20% 20%, rgba(95, 183, 255, 0.35), transparent 65%);
    overflow: hidden;
}

.works-card-media img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.works-card-text-slide {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 16px;
    text-align: center;
    background:
    linear-gradient(145deg, rgb(13 14 15 / 98%), rgb(146 61 43 / 31%)), radial-gradient(circle at 20% 20%, rgba(95, 183, 255, 0.35), transparent 65%);
}

.works-card-text-line {
    display: block;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.works-card-text-line + .works-card-text-line {
    margin-top: 6px;
}

.works-card-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
    border-radius: 999px;
    padding: 5px 11px;
    font-size: 11px;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #fff;
    background: rgba(0, 0, 0, 0.62);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.works-card-body {
    padding: 14px 14px 15px;
    display: none;
}

.works-card-title {
    margin: 0 0 5px;
    font-size: 16px;
    color: #fff;
}

.works-card-meta {
    margin: 0;
    color: rgba(220, 232, 248, 0.75);
    font-size: 13px;
}

.works-status {
    text-align: center;
    margin-top: 24px;
    min-height: 24px;
    color: rgba(231, 240, 252, 0.85);
}

.works-indexing-note {
    margin: 20px auto 0;
    max-width: 860px;
    text-align: center;
    padding: 12px 16px;
    border-radius: 12px;
    color: rgba(228, 239, 255, 0.88);
    border: 1px solid rgba(142, 196, 255, 0.32);
    background: rgba(15, 26, 42, 0.62);
}

.works-status[data-state="loading"] {
    color: #89beff;
}

.works-status[data-state="error"] {
    color: #ff9e9e;
}

.works-status[data-state="empty"] {
    color: rgba(231, 240, 252, 0.65);
}

.works-empty {
    margin: 20px auto 0;
    max-width: 680px;
    text-align: center;
    padding: 14px 18px;
    border-radius: 14px;
    color: rgba(228, 239, 255, 0.9);
    border: 1px dashed rgba(255, 255, 255, 0.22);
    background: rgba(16, 24, 38, 0.7);
}

.works-sentinel {
    width: 100%;
    height: 1px;
    margin-top: 2px;
}

.works-seo-content {
    padding-top: 36px;
}

.works-seo-text p {
    font-size: 17px;
    line-height: 1.75;
    color: rgba(231, 240, 252, 0.92);
}

.works-seo-text p + p {
    margin-top: 16px;
}

.works-modal {
    position: fixed;
    inset: 0;
    z-index: 10060;
    display: none;
    align-items: center;
    justify-content: center;
}

.works-modal.is-open {
    display: flex;
}

.works-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(3, 7, 15, 0.82);
    backdrop-filter: blur(2px);
}

.works-modal-dialog {
    position: relative;
    width: min(96vw, 980px);
    max-height: 92vh;
    display: flex;
    flex-direction: column;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: #0c1321;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
}

.works-modal-close {
    position: absolute;
    top: 10px;
    right: 12px;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
    z-index: 3;
}

.works-modal-body {
    padding: 16px;
    min-height: 320px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: auto;
}

.works-modal-image {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: calc(92vh - 180px);
    border-radius: 10px;
}

.works-modal-text {
    width: min(94%, 520px);
    border-radius: 12px;
    padding: 30px 24px;
    text-align: center;
    background:
        linear-gradient(150deg, rgba(29, 44, 70, 0.96), rgba(9, 13, 22, 0.96)),
        radial-gradient(circle at 20% 20%, rgba(77, 168, 255, 0.4), transparent 70%);
}

.works-modal-text-line {
    display: block;
    font-size: 28px;
    font-weight: 700;
    line-height: 1.35;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #eef5ff;
}

.works-modal-text-line + .works-modal-text-line {
    margin-top: 8px;
}

.works-modal-footer {
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(7, 10, 18, 0.78);
}

.works-modal-title {
    color: #eef5ff;
    font-size: 15px;
}

.works-modal-open {
    overflow: hidden;
}

@media (max-width: 991px) {
    .works-gallery-section {
        padding-top: 10px;
    }

    .works-modal-dialog {
        width: min(96vw, 860px);
    }
}

@media (max-width: 767px) {
    .works-card-text-line {
        font-size: 15px;
    }

    .works-modal-footer {
        flex-direction: column;
        align-items: stretch;
    }

    .works-modal-title {
        text-align: center;
    }

    .works-modal-text-line {
        font-size: 22px;
    }
}
