/* Hero Section dla Kryteria Ilosciowe */
.criteria-hero {
    background:
        linear-gradient(135deg, rgba(26, 35, 50, 0.88) 0%, rgba(44, 57, 71, 0.80) 50%, rgba(26, 35, 50, 0.88) 100%),
        url('../images/hero-kryteria-ilosciowe.jpg') center/cover no-repeat;
    color: #ffffff;
    padding: 80px 0;
    text-align: center;
    border-bottom: 3px solid var(--navy-dark);
    position: relative;
}

.criteria-hero h1 {
    font-size: 2.5rem;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1.25rem;
    line-height: 1.2;
}

.criteria-hero p {
    font-size: 1.125rem;
    color: #f5f5f5;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .criteria-hero {
        padding: 2.7778rem 1.1111rem 2.2222rem;
    }

    .criteria-hero h1 {
        font-size: 1.6667rem;
    }

    .criteria-hero p {
        font-size: 1rem;
    }
}

/* Article Content */
.article-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.625rem 1.875rem 7.5rem;
    font-family: 'Inter', 'Segoe UI', sans-serif;
    background: #f5f5f5;
}

.article-content h2 {
    font-size: 1.75rem;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    color: #1a2332;
    margin-top: 3.75rem;
    margin-bottom: 1.5625rem;
    line-height: 1.3;
}

.article-content h3 {
    font-size: 1.375rem;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    color: #1a2332;
    margin-top: 2.5rem;
    margin-bottom: 1.25rem;
    line-height: 1.3;
}

.article-content p {
    font-size: 1.0625rem;
    color: #2c2c2c;
    line-height: 1.6;
    margin-bottom: 1.5625rem;
}

.article-content a {
    color: var(--navy-dark);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: all 0.2s;
}

.article-content a:hover {
    color: var(--navy-hover);
    border-bottom-color: var(--navy-hover);
}

.article-content ul {
    list-style: none;
    padding-left: 0;
    margin: 25px 0;
}

.article-content li {
    font-size: 1.0625rem;
    color: #2c2c2c;
    line-height: 1.6;
    margin-bottom: 1.125rem;
    padding-left: 1.5625rem;
    position: relative;
}

.article-content li::before {
    content: "—";
    position: absolute;
    left: 0;
    color: var(--navy-dark);
}

/* Costs Table */
.costs-table {
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    margin: 30px 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.cost-row {
    display: flex;
    align-items: center;
    padding: 20px 30px;
    border-bottom: 1px solid #e0e0e0;
    transition: background-color 0.2s;
}

.cost-row:last-child {
    border-bottom: none;
}

.cost-row:hover {
    background-color: #f9f9f9;
}

.cost-row.highlight {
    background-color: #fff9f0;
    border-left: 4px solid var(--navy-dark);
}

.cost-amount {
    font-size: 1.375rem;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    color: #1a2332;
    min-width: 8.75rem;
    flex-shrink: 0;
}

.cost-condition {
    font-size: 1.0625rem;
    color: #2c2c2c;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .cost-row {
        flex-direction: column;
        align-items: flex-start;
        padding: 15px 20px;
    }

    .cost-amount {
        margin-bottom: 10px;
        font-size: 1.2rem;
    }

    .cost-condition {
        font-size: 0.95rem;
    }
}

/* Info Box */
.info-box {
    background: #ffffff;
    border-left: 3px solid var(--navy-dark);
    padding: 25px 30px;
    margin: 30px 0;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.info-box p {
    margin-bottom: 15px;
}

.info-box p:last-child {
    margin-bottom: 0;
}

/* Special Info Box */
.special-info-box {
    background: #fff9f0;
    border-left: 4px solid var(--navy-dark);
    padding: 25px 30px;
    margin: 30px 0;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(212, 165, 116, 0.15);
}

.special-info-box p {
    margin-bottom: 15px;
    color: #2c2c2c;
}

.special-info-box ul {
    margin-top: 15px;
    margin-bottom: 0;
}

.special-info-box li {
    margin-bottom: 12px;
}

.special-info-box li:last-child {
    margin-bottom: 0;
}

/* Warning Box */
.warning-box {
    background: #fff4e6;
    border-left: 4px solid #ff9800;
    padding: 25px 30px;
    margin: 30px 0;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.warning-box p {
    margin-bottom: 0;
    color: #2c2c2c;
}

/* Categories Grid */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin: 30px 0;
}

.category-card {
    background: #ffffff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    border-top: 4px solid var(--navy-dark);
}

.category-card h3 {
    font-size: 1.25rem;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    color: #1a2332;
    margin-top: 0;
    margin-bottom: 1.25rem;
}

.category-card p {
    margin-bottom: 15px;
}

.category-card ul {
    margin-top: 20px;
}

/* Article Footer */
.article-footer {
    margin-top: 80px;
    padding-top: 40px;
    border-top: 1px solid var(--navy-dark);
    text-align: center;
}

.article-footer p {
    color: #5a5a5a;
    font-size: 1rem;
    margin-bottom: 25px;
}

.article-footer a {
    display: inline-block;
    color: var(--navy-dark);
    text-decoration: none;
    font-size: 1rem;
    padding: 0 20px;
    transition: color 0.2s;
}

.article-footer a:hover {
    color: var(--navy-hover);
    text-decoration: underline;
}

@media (max-width: 768px) {
    .article-content {
        padding: 2.2222rem 1.1111rem 4.4444rem;
    }

    .article-content h2 {
        font-size: 1.5556rem;
        margin-top: 2.2222rem;
    }

    .article-content h3 {
        font-size: 1.2222rem;
    }

    .article-content p,
    .article-content li {
        font-size: 1rem;
    }

    .categories-grid {
        grid-template-columns: 1fr;
    }

    .article-footer a {
        display: block;
        margin: 10px 0;
        padding: 10px 0;
    }
}
