/**
 * Dla architekta — spójnie z landing / produkty / karta produktu (dokumenty).
 */

body.page-architect {
    overflow-x: clip;
}

/* --- Hero (layout z products.css) --- */
.arch-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 8px;
}

.arch-hero-cta-secondary {
    background-color: transparent;
    border: 1px solid rgba(255, 255, 255, 0.85);
    color: #fff;
}

.arch-hero-cta-secondary:hover {
    background-color: rgba(255, 255, 255, 0.15);
    border-color: #fff;
    color: #fff;
}

/* --- Nagłówek sekcji zasobów --- */
.arch-page-head {
    padding: 56px 0 32px;
    background: #fff;
}

.arch-page-head__inner {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 30px;
}

.arch-page-head__title {
    font-family: 'Inter', sans-serif;
    font-size: clamp(20px, 2vw, 26px);
    font-weight: 700;
    color: #111;
    margin: 0 0 14px;
    letter-spacing: -0.02em;
}

.arch-page-head__rule {
    height: 3px;
    width: 56px;
    margin: 0;
    background: var(--primary-color, #4a7c37);
    border-radius: 2px;
}

/* --- Lista zasobów --- */
.arch-resources {
    width: 100%;
    padding: 0 30px 100px;
    box-sizing: border-box;
    background: #fafafa;
}

.arch-resources-inner {
    max-width: 1080px;
    margin: 0 auto;
}

.arch-empty {
    text-align: center;
    padding: 48px 20px;
    color: #666;
    font-size: 15px;
    margin: 0;
}

.arch-accordion-item {
    margin-bottom: 20px;
}

/* Pasek: wspólne */
.resource-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 22px;
    border-radius: 10px;
    text-decoration: none;
    position: relative;
    z-index: 2;
    transition: background-color 0.25s ease, box-shadow 0.25s ease, padding-left 0.3s ease;
}

.resource-title {
    font-size: 15px;
    font-weight: 600;
    margin: 0;
    letter-spacing: 0.01em;
    color: inherit;
}

.resource-icon {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    transition: transform 0.3s ease, background-color 0.25s ease;
    flex-shrink: 0;
}

.resource-icon i {
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Kategoria */
.resource-bar--category {
    background-color: var(--primary-color, #4a7c37);
    color: #fff;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(74, 124, 55, 0.22);
    margin-bottom: 8px;
}

.resource-bar--category:hover {
    background-color: var(--primary-dark, #3a632b);
    box-shadow: 0 4px 16px rgba(74, 124, 55, 0.28);
}

.resource-bar--category .resource-icon i {
    transform: rotate(180deg);
}

.resource-bar--category[aria-expanded='true'] .resource-icon i {
    transform: rotate(0deg);
}

.arch-accordion-category-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.45s cubic-bezier(0.32, 0.72, 0.38, 1);
}

.resource-bar--category[aria-expanded='true'] + .arch-accordion-category-body {
    overflow: visible;
}

.resource-icon--category {
    background-color: rgba(255, 255, 255, 0.2);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.25);
}

/* Produkt */
.resource-bar--product {
    background-color: #fff;
    color: #111;
    border: 1px solid var(--border-color, #e0e0e0);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    cursor: pointer;
}

.resource-bar--product:hover {
    background-color: #f7f8f7;
}

.resource-bar--product[aria-expanded='true'] {
    background-color: #f3f5f3;
    border-color: rgba(74, 124, 55, 0.25);
    padding-left: 26px;
}

.resource-bar--product .resource-icon {
    background-color: #3d4c3d;
    color: #fff;
    border: none;
}

.resource-bar--product:hover .resource-icon {
    background-color: #354235;
}

.resource-bar--product:not([aria-expanded='true']) .resource-icon i {
    transform: rotate(180deg);
}

.resource-bar--product[aria-expanded='true'] .resource-icon i {
    transform: rotate(0deg);
}

/* Panel treści */
.arch-accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.32, 0.72, 0.38, 1);
    background: #fff;
    border-radius: 0 0 10px 10px;
    margin-top: -4px;
    border: 1px solid var(--border-color, #e0e0e0);
    border-top: none;
    box-sizing: border-box;
}

.arch-accordion-content.open {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.06);
}

.arch-panel {
    padding: 0;
}

.arch-panel__inner {
    display: grid;
    grid-template-columns: minmax(0, 340px) minmax(0, 1fr);
    gap: 40px 48px;
    padding: 36px 32px 40px;
    max-width: 100%;
    align-items: start;
}

.arch-panel__media {
    margin: 0;
    border-radius: 10px;
    overflow: hidden;
    background: #f0f1f0;
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.arch-panel__img {
    display: block;
    width: 100%;
    height: auto;
}

.arch-panel__title {
    font-family: 'Inter', sans-serif;
    font-size: clamp(20px, 2.2vw, 26px);
    font-weight: 700;
    color: #111;
    margin: 0 0 12px;
    line-height: 1.25;
    letter-spacing: -0.02em;
}

.arch-panel__kicker {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--primary-color, #4a7c37);
    margin: 0 0 16px;
}

.arch-panel__text {
    font-size: 15px;
    line-height: 1.75;
    color: #444;
}

.arch-panel__text p {
    margin: 0 0 1em;
}

.arch-panel__text p:last-child {
    margin-bottom: 0;
}

.arch-panel__cta-wrap {
    margin: 28px 0 0;
}

.arch-panel__cta {
    display: inline-flex;
}

/* Dokumenty — jak doc-card na produkcie */
.arch-docs {
    margin-top: 32px;
    padding-top: 28px;
    border-top: 1px solid var(--border-color, #e0e0e0);
}

.arch-docs__heading {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #111;
    margin: 0 0 18px;
}

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

.arch-doc-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    min-height: 72px;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    align-items: stretch;
}

.arch-doc-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    border-color: rgba(74, 124, 55, 0.22);
}

.arch-doc-card:focus-visible {
    outline: 2px solid var(--primary-color, #4a7c37);
    outline-offset: 2px;
}

.arch-doc-card__body {
    flex: 1;
    padding: 0 18px 0 20px;
    display: flex;
    align-items: center;
    min-width: 0;
}

.arch-doc-card__title {
    font-size: var(--font-tiny, 11px);
    font-weight: 500;
    color: #111;
    line-height: 1.35;
    letter-spacing: 0.04em;
    word-wrap: break-word;
}

.arch-doc-card__icon {
    width: 52px;
    min-width: 52px;
    align-self: stretch;
    background: #4a5249;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    flex-shrink: 0;
    transition: background 0.2s ease;
}

.arch-doc-card:hover .arch-doc-card__icon {
    background: #3d4540;
}

@media (max-width: 992px) {
    .arch-panel__inner {
        grid-template-columns: 1fr;
        gap: 28px;
        padding: 28px 22px 32px;
    }

    .arch-panel__media {
        max-width: 420px;
        margin: 0 auto;
        width: 100%;
    }
}

@media (max-width: 768px) {
    .arch-resources {
        padding: 0 20px 72px;
    }

    .arch-page-head__inner {
        padding: 0 20px;
    }

    .products-hero-content {
        padding-left: 20px;
        padding-right: 20px;
    }

    .products-hero-title {
        font-size: 28px;
    }

    .arch-hero-actions {
        flex-direction: column;
    }

    .arch-hero-actions .products-hero-cta {
        width: 100%;
        justify-content: center;
        text-align: center;
    }

    .resource-bar {
        padding: 18px 20px;
    }

    .resource-title {
        font-size: 15px;
    }

    .arch-docs__grid {
        grid-template-columns: 1fr;
    }
}
