/* ============================================================
   Interlinking — contextual cross-links between pages
   Light green theme
   ============================================================ */

.il-section {
    padding: 56px 0;
    background: linear-gradient(180deg, #f0fdf4 0%, #ecfdf5 100%);
}

.il-section + .il-section {
    padding-top: 0;
}

.il-title {
    color: #111827;
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 30px;
    text-align: center;
    line-height: 1.3;
    position: relative;
    padding-bottom: 16px;
}

/* Акцент — короткое центрированное подчёркивание под заголовком
   (раньше бар был прибит к left:0 и «висел» слева от центрированного текста). */
.il-title::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 0;
    width: 48px;
    height: 4px;
    background: linear-gradient(90deg, #059669, #34d399);
    border-radius: 2px;
}

/* ---- Grid layouts ---- */

.il-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

.il-grid--compact {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 12px;
}

.il-grid--cases {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

/* ---- Service link cards ---- */

.il-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    background: #fff;
    border: 1px solid #d1fae5;
    border-radius: 14px;
    color: #111827;
    text-decoration: none;
    transition: color 0.3s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.3s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1), transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.il-card:hover {
    background: #ecfdf5;
    border-color: #a7f3d0;
    color: #111827;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(5, 150, 105, 0.1);
    text-decoration: none;
}

.il-card--sm {
    padding: 14px 18px;
}

.il-card__name {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.3;
    flex: 1;
    color: #111827;
}

.il-card--sm .il-card__name {
    font-size: 14px;
}

.il-card__arrow {
    flex-shrink: 0;
    margin-left: 12px;
    opacity: 0.6;
    color: #059669;
    transition: opacity 0.3s, transform 0.3s;
    display: flex;
    align-items: center;
}

.il-card__arrow svg {
    stroke: #059669;
}

.il-card:hover .il-card__arrow {
    opacity: 1;
    transform: translateX(4px);
}

/* ---- Case cards ---- */

.il-case {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #d1fae5;
    border-radius: 16px;
    overflow: hidden;
    color: #111827;
    text-decoration: none;
    transition: color 0.3s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.3s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1), transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.il-case:hover {
    border-color: #a7f3d0;
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(5, 150, 105, 0.12);
    text-decoration: none;
    color: #111827;
}

.il-case__img {
    aspect-ratio: 16 / 10;
    overflow: hidden;
}

.il-case__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}

.il-case:hover .il-case__img img {
    transform: scale(1.05);
}

.il-case__body {
    padding: 16px 20px;
    background: transparent;
}

.il-case__title {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.3;
    color: #111827;
}

/* ---- "More" link ---- */

.il-more {
    text-align: center;
    margin-top: 24px;
}

.il-more__link {
    display: inline-block;
    background: linear-gradient(135deg, #059669, #047857);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    padding: 14px 36px;
    border: none;
    border-radius: 12px;
    transition: color 0.3s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.3s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1), transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.il-more__link:hover {
    background: linear-gradient(135deg, #047857, #065f46);
    color: #fff;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(5, 150, 105, 0.25);
}

/* ---- Responsive ---- */

@media (max-width: 991px) {
    .il-grid--cases {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .il-section {
        padding: 40px 0;
    }

    .il-title {
        font-size: 22px;
        margin-bottom: 20px;
    }

    .il-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .il-grid--compact {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .il-grid--cases {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .il-card {
        padding: 16px 18px;
    }

    .il-card__name {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .il-grid--compact {
        grid-template-columns: 1fr;
    }
}
