/* Certificates page /sertifikatyi-i-liczenzii/ — scoped, does not affect other templates */

body.cert-no-hero .header-content {
    display: none !important;
}
body.cert-no-hero .header {
    min-height: 0;
}
body.cert-no-hero .header-inner {
    min-height: 0 !important;
    padding-bottom: 0;
}
body.cert-no-hero .header-media,
body.cert-no-hero .header-img,
body.cert-no-hero .header-img-overlay {
    display: none;
}
body.cert-no-hero .breadcrumb-section,
body.inner-no-hero.cert-no-hero .breadcrumb-section,
body.cert-no-hero .breadcrumbs-section,
body.inner-no-hero.cert-no-hero .breadcrumbs-section {
    padding-top: 0;
}

.cert-page-section {
    --sg-primary: #1E2631;
    --sg-accent: #F39912;
    --sg-accent-hover: #E0870B;
    --sg-bg-light: #F8FAFC;
    --sg-card-border: #E2E8F0;
    --sg-text-main: #2D3748;
    --sg-text-muted: #64748B;
    --sg-white: #FFFFFF;
    --sg-green: #10B981;
    --sg-radius: 14px;
    --sg-transition: all 0.25s ease-in-out;
    background-color: var(--sg-bg-light);
    color: var(--sg-text-main);
    padding: 12px 0 72px;
}

.cert-page {
    padding: 18px 0 8px;
}

.cert-page h1,
.cert-page h2,
.cert-page h3,
.cert-page h4 {
    text-transform: none;
    letter-spacing: -0.02em;
    color: var(--sg-primary);
}

.cert-hero {
    margin-bottom: 44px;
}

.cert-title {
    font-size: 38px;
    font-weight: 800;
    color: var(--sg-primary);
    line-height: 1.2;
    margin: 0 0 16px;
}

.cert-lead {
    font-size: 17px;
    line-height: 1.6;
    color: var(--sg-text-muted);
    max-width: 880px;
    margin: 0 0 32px;
}

.cert-sro-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.cert-sro-card {
    background: var(--sg-white);
    border: 1px solid var(--sg-card-border);
    border-radius: var(--sg-radius);
    padding: 22px 20px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.cert-sro-badge {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--sg-accent);
}

.cert-sro-val {
    font-size: 20px;
    font-weight: 800;
    color: var(--sg-primary);
    line-height: 1.2;
}

.cert-sro-desc {
    font-size: 13px;
    color: var(--sg-text-muted);
    line-height: 1.4;
}

.cert-sro-card--accent {
    background: linear-gradient(135deg, var(--sg-primary) 0%, #2D3A4B 100%);
}

.cert-sro-card--accent .cert-sro-badge {
    color: var(--sg-accent);
}

.cert-sro-card--accent .cert-sro-val {
    color: var(--sg-white);
}

.cert-sro-card--accent .cert-sro-desc {
    color: #CBD5E1;
}

.cert-verify-banner {
    background: var(--sg-white);
    border: 1px solid var(--sg-card-border);
    border-radius: 16px;
    padding: 24px 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    margin-bottom: 50px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
}

.cert-verify-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.cert-verify-icon {
    width: 52px;
    height: 52px;
    background: rgba(243, 153, 18, 0.12);
    color: var(--sg-accent);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.cert-verify-left h2 {
    font-size: 18px;
    font-weight: 700;
    color: var(--sg-primary);
    margin: 0 0 4px;
}

.cert-verify-left p {
    font-size: 13.5px;
    color: var(--sg-text-muted);
    margin: 0 0 10px;
    line-height: 1.5;
}

.cert-inn-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--sg-text-main);
}

.cert-inn-row code {
    background: var(--sg-bg-light);
    border: 1px solid var(--sg-card-border);
    border-radius: 6px;
    padding: 4px 8px;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.cert-copy-inn {
    background: transparent;
    border: 1px solid var(--sg-card-border);
    border-radius: 6px;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 600;
    color: var(--sg-primary);
    cursor: pointer;
    transition: var(--sg-transition);
}

.cert-copy-inn:hover,
.cert-copy-inn:focus {
    border-color: var(--sg-accent);
    color: var(--sg-accent);
    outline: none;
}

.cert-verify-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex-shrink: 0;
}

.cert-btn-verify {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--sg-primary);
    color: var(--sg-white);
    padding: 12px 20px;
    border-radius: 10px;
    font-size: 13.5px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: var(--sg-transition);
}

.cert-btn-verify:hover {
    background: #334155;
    color: var(--sg-white);
    transform: translateY(-2px);
}

.cert-catalog-section {
    margin-bottom: 60px;
}

.cert-section-head {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 28px;
}

.cert-section-head h2 {
    font-size: 28px;
    font-weight: 700;
    color: var(--sg-primary);
    margin: 0 0 10px;
    line-height: 1.25;
}

.cert-section-head p {
    color: var(--sg-text-muted);
    font-size: 15px;
    margin: 0;
    line-height: 1.5;
}

.cert-tabs-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 32px;
}

.cert-tab-btn {
    background: var(--sg-white);
    border: 1px solid var(--sg-card-border);
    border-radius: 30px;
    padding: 10px 22px;
    font-size: 14px;
    font-weight: 600;
    color: var(--sg-text-muted);
    cursor: pointer;
    transition: var(--sg-transition);
}

.cert-tab-btn:hover,
.cert-tab-btn:focus {
    border-color: var(--sg-accent);
    color: var(--sg-primary);
    outline: none;
}

.cert-tab-btn.active,
.cert-tab-btn[aria-pressed="true"] {
    background: var(--sg-primary);
    color: var(--sg-white);
    border-color: var(--sg-primary);
}

.cert-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.cert-card {
    background: var(--sg-white);
    border: 1px solid var(--sg-card-border);
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
    transition: var(--sg-transition);
}

.cert-card:hover {
    transform: translateY(-4px);
    border-color: #CBD5E1;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.06);
}

.cert-card-preview {
    height: 250px;
    background: #F1F5F9;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cert-zoom-link {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
}

.cert-card-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    transition: transform 0.3s ease;
}

.cert-zoom-link:hover img {
    transform: scale(1.04);
}

.cert-zoom-badge {
    position: absolute;
    inset: 0;
    background: rgba(30, 38, 49, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--sg-white);
    opacity: 0;
    transition: var(--sg-transition);
}

.cert-zoom-link:hover .cert-zoom-badge {
    opacity: 1;
}

.cert-card-info {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.cert-card-status {
    display: inline-block;
    align-self: flex-start;
    font-size: 11px;
    font-weight: 700;
    color: var(--sg-green);
    background: rgba(16, 185, 129, 0.1);
    padding: 3px 8px;
    border-radius: 4px;
    margin-bottom: 10px;
}

.cert-card-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--sg-primary);
    margin: 0 0 12px;
    line-height: 1.4;
}

.cert-meta-list {
    margin: 0 0 16px;
    padding: 0;
    font-size: 12.5px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.cert-meta-row {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    color: var(--sg-text-muted);
}

.cert-meta-row dt {
    font-weight: 500;
}

.cert-meta-row dd {
    margin: 0;
    font-weight: 600;
    color: var(--sg-primary);
    text-align: right;
}

.cert-card-actions {
    margin-top: auto;
    border-top: 1px solid var(--sg-bg-light);
    padding-top: 14px;
}

.cert-dl-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--sg-bg-light);
    color: var(--sg-primary);
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--sg-transition);
}

.cert-dl-btn:hover {
    background: var(--sg-accent);
    color: var(--sg-white);
}

.cert-filter-empty {
    grid-column: 1 / -1;
    background: var(--sg-white);
    border: 1px dashed var(--sg-card-border);
    border-radius: 16px;
    padding: 28px 24px;
    text-align: center;
    color: var(--sg-text-muted);
    font-size: 15px;
    line-height: 1.6;
}

.cert-filter-empty a {
    color: var(--sg-accent-hover);
    font-weight: 600;
}

.cert-archive-banner {
    background: var(--sg-primary);
    color: var(--sg-white);
    border-radius: 20px;
    padding: 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 32px;
    margin-bottom: 60px;
}

.cert-archive-tag {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--sg-accent);
    font-weight: 700;
    display: block;
    margin-bottom: 8px;
}

.cert-archive-content h2 {
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 8px;
    color: var(--sg-white);
}

.cert-archive-content p {
    font-size: 14.5px;
    color: #CBD5E1;
    margin: 0;
    max-width: 720px;
    line-height: 1.5;
}

.cert-btn-gold {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--sg-accent);
    color: var(--sg-white);
    padding: 14px 24px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    white-space: nowrap;
    transition: var(--sg-transition);
}

.cert-btn-gold:hover {
    background: var(--sg-accent-hover);
    color: var(--sg-white);
    transform: translateY(-2px);
}

.cert-faq-section {
    max-width: 860px;
    margin: 0 auto 48px;
}

.cert-faq-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cert-faq-item {
    background: var(--sg-white);
    border: 1px solid var(--sg-card-border);
    border-radius: 12px;
    overflow: hidden;
    transition: var(--sg-transition);
}

.cert-faq-item[open] {
    border-color: #CBD5E1;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.cert-faq-question {
    padding: 20px 24px;
    font-weight: 600;
    font-size: 16px;
    color: var(--sg-primary);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    user-select: none;
    list-style: none;
}

.cert-faq-question::-webkit-details-marker,
.cert-faq-question::marker {
    display: none;
    content: "";
}

.cert-faq-arrow {
    width: 12px;
    height: 12px;
    border-right: 2px solid var(--sg-accent);
    border-bottom: 2px solid var(--sg-accent);
    transform: rotate(45deg);
    transition: var(--sg-transition);
    flex-shrink: 0;
}

.cert-faq-item[open] .cert-faq-arrow {
    transform: rotate(-135deg);
}

.cert-faq-answer {
    padding: 0 24px 20px;
    color: var(--sg-text-muted);
    font-size: 14.5px;
    line-height: 1.6;
}

.cert-faq-answer p {
    margin: 0;
}

@media (max-width: 1100px) {
    .cert-grid,
    .cert-sro-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .cert-page-section {
        padding: 8px 0 48px;
    }

    .cert-title {
        font-size: 26px;
    }

    .cert-section-head h2,
    .cert-archive-content h2 {
        font-size: 22px;
    }

    .cert-grid,
    .cert-sro-grid {
        grid-template-columns: 1fr;
    }

    .cert-verify-banner,
    .cert-archive-banner {
        flex-direction: column;
        text-align: center;
        padding: 24px 20px;
    }

    .cert-verify-left {
        flex-direction: column;
    }

    .cert-inn-row {
        justify-content: center;
    }

    .cert-btn-verify,
    .cert-btn-gold {
        width: 100%;
        justify-content: center;
        white-space: normal;
    }

    .cert-faq-question {
        padding: 16px;
        font-size: 15px;
    }
}

@media (max-width: 360px) {
    .cert-title {
        font-size: 22px;
    }

    .cert-lead {
        font-size: 15px;
    }
}
