/* ============================================================
   Service Pages — industry, energy, security
   ============================================================ */

/* ===== Hero ===== */
.sp-hero {
    position: relative;
    width: 100%;
    margin-top: -72px;
    padding-top: 72px;
    overflow: hidden;
    min-height: 420px;
    background: linear-gradient(135deg, #0f1d45 0%, #1a2a5e 30%, #243674 60%, #2e4a8a 100%);
    display: flex;
    align-items: center;
}

.sp-hero-bg {
    position: absolute;
    top: 0; right: 0;
    width: 55%;
    height: 100%;
    background-image: var(--hero-bg);
    background-size: cover;
    background-position: center;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,0.5) 35%, rgba(0,0,0,0.85) 100%);
    mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,0.5) 35%, rgba(0,0,0,0.85) 100%);
}

.sp-hero-bg-no-image {
    position: absolute;
    top: 10%; right: 0;
    width: 55%;
    height: 100%;
    background-image: var(--hero-bg-no-image);
    background-size: 25%;
    background-repeat: no-repeat;
    background-position: center;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,0.15) 35%, rgba(0,0,0,0.55) 100%);
    mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,0.15) 35%, rgba(0,0,0,0.55) 100%);
}

.sp-hero-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 75% 20%, rgba(100,140,255,0.1) 0%, transparent 55%),
        radial-gradient(ellipse at 20% 80%, rgba(60,100,200,0.07) 0%, transparent 50%);
    pointer-events: none;
}

.sp-hero-inner {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 80px 40px 64px;
}

.sp-hero-text {
    max-width: 580px;
}

.sp-hero h1 {
    color: #fff;
    font-size: 2.4rem;
    font-weight: 400;
    margin: 0 0 16px;
    line-height: 1.15;
    letter-spacing: -0.5px;
}

.sp-hero-subtitle {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.75);
    font-weight: 400;
    margin: 0 0 32px;
    line-height: 1.65;
}

.sp-hero-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    color: #243674;
    font-size: 1rem;
    padding: 14px 32px;
    border-radius: 12px;
    font-weight: 500;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}

.sp-hero-btn:hover {
    background: #e8edf5;
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(36, 54, 116, 0.2);
}

/* ===== Container ===== */
.sp-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px 72px;
}

/* ===== Card ===== */
.sp-card {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 2px 16px rgba(36, 54, 116, 0.06);
    padding: 40px 48px 36px;
    margin: 32px 0;
    transition: box-shadow 0.3s;
}

.sp-card:hover {
    box-shadow: 0 4px 28px rgba(36, 54, 116, 0.1);
}

.sp-card-title {
    font-size: 1.55rem;
    font-weight: 400;
    color: #243674;
    margin: 0 0 20px;
    padding-bottom: 14px;
    position: relative;
}

.sp-card-title::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 48px;
    height: 3px;
    background: linear-gradient(90deg, #243674, #4a6cb3);
    border-radius: 2px;
}

.sp-card-text {
    font-size: 1.05rem;
    color: #555;
    line-height: 1.8;
    margin: 0 0 28px;
}

/* ===== Section with media (text + video/image) ===== */
.sp-section {
    display: flex;
    flex-wrap: wrap;
    gap: 36px;
    align-items: flex-start;
}

.sp-section-content {
    flex: 2 1 300px;
    min-width: 260px;
}

.sp-section-media {
    flex: 1 1 360px;
    max-width: 560px;
}

.sp-section-media video,
.sp-section-media img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 14px;
    box-shadow: 0 4px 24px rgba(36, 54, 116, 0.13);
    display: block;
}

/* Full-width works block (label + list + result + badge) */
.sp-works {
    margin-top: 28px;
}

/* ===== Works list (numbered) ===== */
.sp-works-label {
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #243674;
    opacity: 0.6;
    margin: 0 0 14px;
}

.sp-works-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sp-works-list li {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 11px 0;
    border-bottom: 1px solid #f0f2f9;
    font-size: 1.02rem;
    color: #333;
    line-height: 1.55;
}

.sp-works-list li:last-child {
    border-bottom: none;
}

.sp-works-num {
    flex-shrink: 0;
    width: 26px;
    height: 26px;
    background: #243674;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    margin-top: 2px;
}

/* Two-column works grid for long lists */
.sp-works-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0 32px;
}

/* ===== Documents card (dark) ===== */
.sp-docs-card {
    background: linear-gradient(135deg, #0f1d45 0%, #1a2a5e 40%, #243674 100%);
    border-radius: 20px;
    padding: 36px 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 24px;
    margin: 32px 0;
}

.sp-docs-info {
    flex: 1 1 260px;
}

.sp-docs-card-title {
    font-size: 1.4rem;
    font-weight: 400;
    color: #fff;
    margin: 0 0 6px;
}

.sp-docs-card-sub {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
}

.sp-docs-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.sp-download {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    color: #fff;
    text-decoration: none;
    padding: 12px 22px;
    border-radius: 10px;
    border: 1.5px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(4px);
    transition: background 0.2s, border-color 0.2s;
}

.sp-download:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.55);
}

.sp-download svg {
    width: 17px;
    height: 17px;
    flex-shrink: 0;
}

.sp-consult-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    font-weight: 500;
    color: #243674;
    text-decoration: none;
    padding: 12px 22px;
    border-radius: 10px;
    background: #fff;
    cursor: pointer;
    border: none;
    transition: background 0.2s, transform 0.15s;
}

.sp-consult-btn:hover {
    background: #eef1fb;
    transform: translateY(-1px);
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
    .sp-hero-bg {
        width: 100%;
        opacity: 0.25;
        -webkit-mask-image: none;
        mask-image: none;
    }

    .sp-hero-bg-no-image {
        width: 100%;
        background-size: 160px;
        -webkit-mask-image: none;
        mask-image: none;
        opacity: 0.12;
    }

    .sp-works-grid {
        grid-template-columns: 1fr;
    }

    .sp-card {
        padding: 28px 24px;
    }

    .sp-docs-card {
        padding: 28px 24px;
    }
}

@media (max-width: 600px) {
    .sp-hero-inner {
        padding: 64px 20px 48px;
    }

    .sp-hero h1 {
        font-size: 1.85rem;
    }

    .sp-hero-subtitle {
        font-size: 1rem;
    }

    .sp-container {
        padding: 0 12px 56px;
    }

    .sp-section {
        gap: 20px;
    }

    .sp-section-media {
        max-width: 100%;
    }

    .sp-docs-card {
        flex-direction: column;
        align-items:flex-start;
    }

    .sp-docs-info {
        flex: none;
        width: 100%;
    }

    .sp-docs-buttons {
        flex-direction: column;
        width: 100%;
    }

    .sp-download,
    .sp-consult-btn {
        width: 100%;
        justify-content: center;
    }
}

/* Result block + БАС badge */
.sp-result-block {
    background: #f0f5ff;
    border-left: 4px solid #243674;
    border-radius: 0 12px 12px 0;
    padding: 18px 24px;
    margin: 20px 0 8px 0;
    font-size: 1.05rem;
    color: #222;
    line-height: 1.65;
}

.sp-result-block strong {
    color: #243674;
}

.sp-bas-badge {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    background: #eef2fb;
    border-left: 4px solid #243674;
    border-radius: 0 10px 10px 0;
    padding: 14px 24px;
    margin: 20px 0 0 0;
    font-size: 0.98rem;
    color: #243674;
}

.sp-bas-badge span {
    font-weight: 700;
    font-size: 1.03rem;
}
