/* ==============================================
   Решения и услуги — Clean Professional Styles
   ============================================== */

.img-block img {
    left: 0%;
    width: 100%;
    object-fit: cover;
}

main {
    width: 100%;
    overflow: hidden;
}

/* ========== TITLE STYLES ========== */
.title {
    font-weight: 800;
    font-size: 30px;
    line-height: 1.3;
    width: 100%;
    padding: 60px 8% 20px;
    color: #041832;
    position: relative;
    background: transparent;
    letter-spacing: -0.3px;
}

.title::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 8%;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #041832, white);
    border-radius: 2px;
}

/* ========== SECTION BACKGROUNDS ========== */
.industries-section {
    background: #ffffff;
    padding: 10px 0 40px;
}

.services-section {
    background: #f0f4f8;
    padding: 10px 0 60px;
}

/* ========== DESC BLOCKS (Industry Cards) ========== */
.desc, .desc.right {
    height: 280px;
    margin: 24px 0;
    padding: 0 8%;
    display: flex;
    align-items: stretch;
}

.desc:hover, .desc.right:hover,
.desc-artic-block:hover, .desc-img-block:hover {
    transform: none !important;
}

.desc-artic-block {
    width: 74%;
    height: 100%;
    padding: 32px 36px;
    background: linear-gradient(160deg, #041832 0%, #0a2d4a 100%);
    border-radius: 20px 0 0 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 20px 48px rgba(4,24,50,0.12);
    position: relative;
    overflow: hidden;
}

.desc-artic-block::after {
    content: '';
    position: absolute;
    right: -60px;
    bottom: -60px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(74,158,255,0.08), transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.desc.right .desc-artic-block {
    border-radius: 0 20px 20px 0;
}

.desc-artic-block:hover {
    box-shadow: 0 24px 56px rgba(4,24,50,0.18);
}

.desc-artic-block span {
    width: 100%;
    margin: 0 0 16px;
    font-weight: 700;
    font-size: 22px;
    line-height: 1.4;
    color: #ffffff;
    position: relative;
    letter-spacing: -0.2px;
}

.desc-artic-block span::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 48px;
    height: 2px;
    background: linear-gradient(90deg, rgba(74,158,255,0.6), transparent);
    border-radius: 2px;
}

.desc-artic-block p {
    font-size: 14px;
    line-height: 1.7;
    color: rgba(255,255,255,0.85);
    margin: 0;
    overflow-y: auto;
    max-height: 180px;
    padding-right: 5px;
    position: relative;
    z-index: 1;
}

.desc-artic-block p::-webkit-scrollbar { width: 4px; }
.desc-artic-block p::-webkit-scrollbar-track { background: rgba(255,255,255,0.1); border-radius: 4px; }
.desc-artic-block p::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.3); border-radius: 4px; }

.desc-img-block {
    width: 26%;
    height: 100%;
    border-radius: 0 20px 20px 0;
    overflow: hidden;
    box-shadow: 0 20px 48px rgba(4,24,50,0.12);
    transition: box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.desc.right .desc-img-block {
    border-radius: 20px 0 0 20px;
}

.desc-img-block:hover {
    box-shadow: 0 24px 56px rgba(4,24,50,0.18);
}

.desc-img-block:hover img {
    transform: scale(1.05);
}

.desc-img-block img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Featured service card */
.desc.featured-service {
    height: 280px;
}

/* ========== SERVICES CARDS ========== */
.services-container {
    max-width: 100%;
    margin: 30px auto 0;
    padding: 0 8%;
}

.service-row {
    display: flex;
    align-items: flex-start;
    gap: 24px;
    margin-bottom: 24px;
    background: white;
    border-radius: 20px;
    padding: 36px;
    box-shadow: 0 4px 16px rgba(4,24,50,0.06);
    border: 1px solid rgba(4,24,50,0.05);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    width: 100%;
    position: relative;
    overflow: hidden;
}

.service-row:hover {
    transform: translateY(-5px);
}

.service-row:nth-child(odd) { margin-left: 0; margin-right: auto; }
.service-row:nth-child(even) { margin-left: auto; margin-right: 0; }

.service-icon {
    width: 72px;
    height: 72px;
    background: linear-gradient(160deg, #041832 0%, #0a2d4a 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: white;
    flex-shrink: 0;
    box-shadow: 0 8px 24px rgba(4,24,50,0.15);
    position: relative;
    overflow: hidden;
}

.service-icon::after {
    content: '';
    position: absolute;
    right: -10px;
    bottom: -10px;
    width: 40px;
    height: 40px;
    background: radial-gradient(circle, rgba(74,158,255,0.2), transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.service-content { flex: 1; }

.service-content h3 {
    font-size: 20px;
    font-weight: 700;
    color: #041832;
    margin: 0 0 12px;
    position: relative;
    padding-bottom: 12px;
    letter-spacing: -0.2px;
}

.service-content h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, #041832, #3369b0);
    border-radius: 2px;
}

.service-content p {
    font-size: 15px;
    line-height: 1.7;
    color: #3d4f63;
    margin: 0;
}

/* Hero override for solutions */
.chapter-info .text-content {
    height: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    min-height: 300px;
}

.chapter-info .text-block {
    display: flex;
    align-items: center;
}

/* Other components */
.other-components {
    width: 100%;
    padding: 30px 8% 50px;
    position: relative;
    z-index: 5;
    overflow: visible;
}

/* ========== RESPONSIVE ========== */
@media screen and (max-width: 1200px) {
    .desc, .desc.right {
        padding-left: 4%;
        padding-right: 4%;
        height: 300px;
    }

    .desc-artic-block p {
        font-size: 13px;
        max-height: 170px;
    }

    .service-row { width: 90%; }
    .services-container { padding: 0 4%; }
}

@media screen and (max-width: 992px) {
    .desc, .desc.right { height: 320px; }
    .desc-artic-block { padding: 24px 28px; }
    .desc-artic-block span { font-size: 18px; }
    .desc-artic-block p { font-size: 12.5px; max-height: 180px; }

    .service-row,
    .service-row:nth-child(odd),
    .service-row:nth-child(even) {
        width: 100%;
        margin-left: 0;
        margin-right: 0;
        flex-direction: column;
        gap: 20px;
        padding: 28px;
    }

    .service-icon {
        width: 56px;
        height: 56px;
        font-size: 22px;
        border-radius: 16px;
    }

    .title { padding-top: 40px; }
    .industries-section { padding: 10px 0 30px; }
    .services-section { padding: 10px 0 50px; }
}

@media screen and (max-width: 780px) {
    .title {
        padding-left: 4%;
        padding-right: 4%;
        font-size: 24px;
        padding-top: 40px;
    }

    .title::after { left: 4%; }

    .desc, .desc.right {
        height: auto;
        min-height: auto;
        margin: 16px 0;
        padding: 0 4%;
        display: flex;
        flex-direction: column;
        gap: 0;
        background: transparent;
        box-shadow: none;
    }

    .desc-artic-block {
        width: 100%;
        height: auto;
        padding: 28px;
        border-radius: 20px 20px 0 0;
        margin: 0;
        box-shadow: 0 12px 28px rgba(4,24,50,0.12);
    }

    .desc.right .desc-artic-block {
        border-radius: 20px 20px 0 0;
        order: 1;
    }

    .desc-artic-block span { font-size: 20px; margin-bottom: 16px; }
    .desc-artic-block span::after { width: 48px; height: 2px; bottom: -8px; }
    .desc-artic-block p { font-size: 14px; line-height: 1.7; max-height: none; overflow-y: visible; margin: 0; }

    .desc-img-block {
        width: 100%;
        height: 220px;
        border-radius: 0 0 20px 20px;
        margin: 0;
        box-shadow: 0 12px 28px rgba(4,24,50,0.12);
    }

    .desc.right .desc-img-block {
        border-radius: 0 0 20px 20px;
        order: 2;
    }

    .desc-img-block img { width: 100%; height: 100%; object-fit: cover; }

    .desc-artic-block:hover,
    .desc-img-block:hover { transform: none; }

    .other-components { padding-left: 4%; padding-right: 4%; }

    .chapter-info .text-content {
        justify-content: center;
        min-height: 250px;
        padding: 20px 0;
    }

    .services-container { padding: 0 4%; }
    .industries-section,
    .services-section { padding-left: 0; padding-right: 0; }
}

@media screen and (max-width: 500px) {
    .title { font-size: 22px; padding-top: 35px; }
    .desc-artic-block { padding: 22px; }
    .desc-artic-block span { font-size: 18px; }
    .desc-artic-block p { font-size: 13px; }
    .desc-img-block { height: 200px; }
    .service-content h3 { font-size: 18px; }
    .service-content p { font-size: 14px; }
    .industries-section { padding: 5px 0 20px; }
    .services-section { padding: 5px 0 40px; }
}

@media screen and (max-width: 380px) {
    .desc-img-block { height: 180px; }
}

/* Large screens */
@media screen and (min-width: 2000px) {
    .chapter-info { height: 800px; }
    .title { padding-left: 12.5%; padding-top: 70px; }
    .title::after { left: 12.5%; }
    .desc, .desc.right { padding: 0 12.5%; height: 320px; }
    .other-components { padding: 40px 12.5%; }
    .services-container { padding: 0 12.5%; }
}

@media screen and (max-width: 2500px) and (min-width: 2000px) {
    .desc, .desc.right { height: 320px; }
}

@media screen and (min-width: 2500px) {
    .desc, .desc.right { height: 350px; }
    .other-components { padding: 50px 17.5%; }
    .services-container { padding: 0 17.5%; }
}
