/* [RW-3664] Informacje techniczne — nadpisania stylów Inspirii (css_0/css_1) i style stron sklepu */

.technical-info {
    padding: 0 10px 30px;
    box-sizing: border-box;
}

.technical-info-title {
    margin: 10px 0 20px;
    font-family: 'Exo 2', sans-serif;
    font-size: 28px;
    font-weight: 700;
    line-height: 1.25;
}

.technical-info-sections {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    /* wszystkie wiersze mają wysokość najwyższego kafelka */
    grid-auto-rows: 1fr;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.technical-info-sections-link {
    display: flex;
    align-items: center;
    box-sizing: border-box;
    height: 100%;
    padding: 16px 20px;
    border: 1px solid rgba(0, 0, 0, 0.18);
    border-radius: 8px;
    color: #1a1a1a;
    font-weight: 600;
    text-decoration: none;
}

.technical-info-sections-link:hover,
.technical-info-sections-link:focus {
    border-color: #e30613;
    color: #e30613;
}

.technical-info-empty {
    margin: 0;
}

/* Szerokie tabele działów przewijamy w poziomie zamiast rozpychać stronę */
.technical-info-content {
    overflow-x: auto;
}

/* container-type:size z css_0 daje kontenerowi wysokość 0 — wystarczy pomiar szerokości dla reguł @container */
.technical-info-content .rtloadcnt_informacje {
    container-type: inline-size;
    --header-font-family: 'Exo 2', sans-serif;
}

/* Baner w css_0 jest wysunięty -170px w górę (pod nagłówek strony rawpol.com) */
.technical-info-content .rtloadcnt_informacje .topbanner-ctr {
    margin-top: 0;
    padding-top: 0;
}

.technical-info-content .rtloadcnt_informacje .topbanner-ctr[uivariant=cover] .topbanner {
    margin-top: 0;
    padding-top: 0;
}

.technical-info-content .rtloadcnt_informacje .topbanner {
    max-height: 360px;
}

/* Treść działu: css_0 daje kolumnie 150% — zmniejszamy o 0.3em, by tekst był spójny z resztą sklepu */
.technical-info-content .rtloadcnt_informacje .main-column {
    font-size: 120%;
}

/* Lista działów nie rozciąga się na całą szerokość dużych ekranów */
.technical-info-list {
    max-width: 1200px;
    margin: 0 auto;
}

.technical-info-back {
    margin-top: 30px;
    text-align: center;
}

.technical-info-back-link {
    display: inline-block;
    padding: 0.7em 1.6em;
    border-radius: 0.4em;
    background-color: #e30613;
    color: #ffffff;
    font-weight: 600;
    text-decoration: none;
}

.technical-info-back-link:hover,
.technical-info-back-link:focus {
    background-color: #b0050f;
    color: #ffffff;
}

@media (max-width: 768px) {
    .technical-info-title {
        font-size: 22px;
    }

    .technical-info-content .rtloadcnt_informacje .topbanner {
        max-height: 200px;
    }
}
