/**
 * Ekoinstal powiat page template.
 */

.eip-page {
    color: var(--eko-text-primary, #1e293b);
    font-family: var(--eko-font-family, 'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif);
}

.eip-container {
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
}

.eip-hero {
    padding: 64px 0 42px;
    background:
        linear-gradient(135deg, rgba(0, 7, 63, .95), rgba(15, 23, 42, .88)),
        var(--eko-navy, #00073f);
    color: #fff;
}

.eip-kicker {
    margin: 0 0 10px;
    color: var(--eko-green, #70b221);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.eip-hero h1 {
    max-width: 850px;
    margin: 0;
    color: #fff;
    font-size: clamp(34px, 5vw, 62px);
    font-weight: 850;
    line-height: 1.03;
    letter-spacing: 0;
}

.eip-lead {
    max-width: 720px;
    margin: 18px 0 0;
    color: #dbeafe;
    font-size: 18px;
    line-height: 1.65;
}

.eip-band {
    padding: 22px 0;
    background: var(--eko-green-light, #f0fdf4);
    border-bottom: 1px solid rgba(112, 178, 33, .24);
}

.eip-band__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.eip-band__grid div {
    padding: 16px;
    border: 1px solid rgba(112, 178, 33, .24);
    border-radius: 8px;
    background: #fff;
}

.eip-band span,
.eim-gmina-card span {
    display: block;
    color: var(--eko-green-dark, #5a9a18);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.eip-band strong {
    display: block;
    margin-top: 4px;
    font-size: 30px;
    font-weight: 850;
    line-height: 1;
}

.eip-band small {
    display: block;
    margin-top: 5px;
    color: var(--eko-text-muted, #64748b);
    font-size: 12px;
}

.eip-band p {
    grid-column: 1 / -1;
    margin: 0;
    color: var(--eko-text-secondary, #475569);
    font-size: 13px;
}

.eip-section {
    padding: 42px 0;
}

.eip-section__head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 18px;
}

.eip-section__head h2 {
    margin: 0;
    color: var(--eko-text-primary, #1e293b);
    font-size: 28px;
    font-weight: 850;
    line-height: 1.15;
}

.eip-section__head p {
    max-width: 480px;
    margin: 0;
    color: var(--eko-text-muted, #64748b);
    font-size: 14px;
    line-height: 1.6;
}

.eip-gmina-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.eim-gmina-card {
    display: flex;
    min-height: 156px;
    flex-direction: column;
    justify-content: space-between;
    padding: 18px;
    border: 1px solid var(--eko-border, #e5e7eb);
    border-radius: 8px;
    background: #fff;
    color: inherit;
    text-decoration: none;
    transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}

.eim-gmina-card:hover {
    border-color: rgba(112, 178, 33, .55);
    box-shadow: 0 12px 24px rgba(15, 23, 42, .08);
    transform: translateY(-1px);
}

.eim-gmina-card:active {
    transform: translateY(0);
}

.eim-gmina-card strong {
    display: block;
    margin-top: 10px;
    color: var(--eko-text-primary, #1e293b);
    font-size: 22px;
    line-height: 1.15;
}

.eim-gmina-card small,
.eim-gmina-card em {
    display: block;
    color: var(--eko-text-muted, #64748b);
    font-size: 13px;
    font-style: normal;
    line-height: 1.45;
}

.eim-gmina-card em {
    margin-top: 10px;
    color: var(--eko-orange, #e85d26);
    font-weight: 800;
}

.eip-section--services {
    background: var(--eko-bg-secondary, #f8fafc);
}

.eip-service-links {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.eip-service-links a {
    min-height: 44px;
    padding: 13px 14px;
    border: 1px solid var(--eko-border, #e5e7eb);
    border-radius: 8px;
    background: #fff;
    color: var(--eko-text-primary, #1e293b);
    font-size: 14px;
    font-weight: 800;
    text-align: center;
    text-decoration: none;
    transition: border-color .2s ease, color .2s ease, transform .2s ease;
}

.eip-service-links a:hover {
    border-color: var(--eko-green, #70b221);
    color: var(--eko-green-dark, #5a9a18);
    transform: translateY(-1px);
}

@media (max-width: 768px) {
    .eip-hero {
        padding: 44px 0 34px;
    }

    .eip-band__grid,
    .eip-gmina-grid {
        grid-template-columns: 1fr;
    }

    .eip-section__head {
        align-items: start;
        flex-direction: column;
    }

    .eip-service-links {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 480px) {
    .eip-container {
        width: min(100% - 24px, 1120px);
    }

    .eip-hero h1 {
        font-size: 32px;
    }

    .eip-lead {
        font-size: 16px;
    }

    .eip-service-links {
        grid-template-columns: 1fr;
    }
}
