/* ============================================
   PODSTRONY — Oferta / Sprzedaż hurtowa
   wspólny layout: hero zdjęciowe, sidebar,
   karta treści, sekcje wsparcia, ozdoby tła
   ============================================ */
body.subpage {
    background: #16181C;
    font-family: var(--mv-sans, 'IBM Plex Sans', sans-serif);
    margin: 0;
}

body.subpage *,
body.subpage *::before,
body.subpage *::after { box-sizing: border-box; }

body.subpage a { text-decoration: none; }
body.subpage .article p a,
body.subpage .docs__note a { text-decoration: underline; }

/* ---------- aktywna pozycja w menu ---------- */
.hdr__nav a.is-active { color: var(--mv-orange, #F0921F); }

/* ---------- hero podstrony ---------- */
.phero {
    position: relative;
    overflow: hidden;
    min-height: 240px;
    background-color: #16181C;
    background-image:
        linear-gradient(90deg, rgba(22, 24, 28, .94) 0%, rgba(22, 24, 28, .68) 44%, rgba(22, 24, 28, .34) 100%),
        linear-gradient(180deg, rgba(22, 24, 28, .28) 0%, rgba(22, 24, 28, .78) 100%),
        url('../images/site/motiva-oils-wide.webp');
    background-size: cover;
    background-position: center;
}

.phero::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 5px;
    background: var(--mv-orange, #F0921F);
}

.phero--offer {
    background-image:
        linear-gradient(90deg, rgba(22, 24, 28, .94) 0%, rgba(22, 24, 28, .66) 44%, rgba(22, 24, 28, .32) 100%),
        linear-gradient(180deg, rgba(22, 24, 28, .24) 0%, rgba(22, 24, 28, .78) 100%),
        url('../images/site/motiva-oils-wide.webp');
    background-position: center 48%;
}

.phero--wholesale {
    background-image:
        linear-gradient(90deg, rgba(22, 24, 28, .94) 0%, rgba(22, 24, 28, .68) 44%, rgba(22, 24, 28, .36) 100%),
        linear-gradient(180deg, rgba(22, 24, 28, .26) 0%, rgba(22, 24, 28, .80) 100%),
        url('../images/site/motiva-wholesale-full-wide.webp');
    background-position: center 52%;
}

.phero--blog {
    background-image:
        linear-gradient(90deg, rgba(22, 24, 28, .95) 0%, rgba(22, 24, 28, .70) 44%, rgba(22, 24, 28, .38) 100%),
        linear-gradient(180deg, rgba(22, 24, 28, .24) 0%, rgba(22, 24, 28, .82) 100%),
        url('../images/site/motiva-wholesale-full-wide.webp');
    background-position: center 45%;
}

.phero--docs {
    background-image:
        linear-gradient(90deg, rgba(22, 24, 28, .95) 0%, rgba(22, 24, 28, .70) 44%, rgba(22, 24, 28, .38) 100%),
        linear-gradient(180deg, rgba(22, 24, 28, .24) 0%, rgba(22, 24, 28, .82) 100%),
        url('../blog/karty-tds-sds.webp');
    background-position: center 54%;
}

.phero--contact {
    background-image:
        linear-gradient(90deg, rgba(22, 24, 28, .95) 0%, rgba(22, 24, 28, .66) 46%, rgba(22, 24, 28, .34) 100%),
        linear-gradient(180deg, rgba(22, 24, 28, .20) 0%, rgba(22, 24, 28, .82) 100%),
        url('../images/site/motiva-store-full-wide.webp');
    background-position: center 50%;
}

.phero__waves {
    display: none;
    width: 100%;
    height: 130px;
}

.phero__title {
    position: absolute;
    left: max(24px, calc((100% - 1200px) / 2 + 24px));
    bottom: 30px;
    z-index: 2;
    margin: 0;
    color: #fff;
    font-size: 44px;
    font-weight: 800;
    letter-spacing: 0;
    padding-bottom: 10px;
    border-bottom: 3px solid var(--mv-orange, #F0921F);
    text-shadow: 0 6px 22px rgba(0, 0, 0, .55);
}

/* ---------- kontener główny ---------- */
.sub {
    position: relative;
    overflow: clip;
    background: #16181C;
    padding: 56px 0 110px;
}

.sub__inner {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.sub__row {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 34px;
    align-items: start;
}

.sub__row + .sub__row { margin-top: 72px; }

/* ---------- ozdoby tła: jeden ciągły tor z grotami ---------- */
.sub__decor {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

.sub-route {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
}

.sub-route__line {
    fill: none;
    stroke: var(--mv-orange, #F0921F);
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
    vector-effect: non-scaling-stroke;
    filter: drop-shadow(0 5px 12px rgba(240, 146, 31, .24));
}

.sub-route__line--soft {
    opacity: .48;
}

/* ---------- sidebar (białe menu kategorii) ---------- */
.sidemenu {
    background: #fff;
    border-radius: 2px;
    padding: 18px 18px 8px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, .35);
}

.sub__row:first-child > .sidemenu {
    position: sticky;
    top: 84px;
    max-height: calc(100vh - 104px);
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--mv-orange, #F0921F) #ECEEF1;
}

.sub__row:first-child > .sidemenu::-webkit-scrollbar { width: 5px; }
.sub__row:first-child > .sidemenu::-webkit-scrollbar-track { background: #ECEEF1; }
.sub__row:first-child > .sidemenu::-webkit-scrollbar-thumb { background: var(--mv-orange, #F0921F); }

.sidemenu__title {
    display: block;
    color: #16181C;
    font-size: 15px;
    font-weight: 800;
    text-decoration: none;
    padding: 6px 2px 12px;
    border-bottom: 2px solid var(--mv-orange, #F0921F);
    margin-bottom: 4px;
}

.sidemenu__link {
    display: block;
    color: #4A4F58;
    font-size: 13.5px;
    font-weight: 600;
    text-decoration: none;
    padding: 11px 2px;
    border-bottom: 2px solid var(--mv-orange, #F0921F);
}

.sidemenu__link:last-child { border-bottom: none; }
.sidemenu__link:hover { color: var(--mv-orange, #F0921F); }

.sidemenu--panel {
    padding-bottom: 18px;
}

.sidemenu__copy {
    color: #5F6570;
    font-size: 13px;
    line-height: 1.55;
    margin: 12px 0 16px;
}

/* ---------- karta treści ---------- */
.contentcard {
    background: #fff;
    border-radius: 2px;
    padding: 34px 38px 46px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, .35);
}

.contentcard__title {
    margin: 0 0 8px;
    color: #16181C;
    font-size: 34px;
    font-weight: 800;
    line-height: 1.15;
}

.contentcard__rule {
    width: 240px;
    max-width: 70%;
    height: 3px;
    background: var(--mv-orange, #F0921F);
    margin-bottom: 22px;
}

.contentcard__desc {
    color: #4A4F58;
    font-size: 14px;
    line-height: 1.65;
    margin: 0 0 26px;
}

.contentcard__img {
    position: relative;
    width: 100%;
    aspect-ratio: 21 / 9;
    margin-bottom: 26px;
    overflow: hidden;
}

.contentcard__img svg,
.prodcard__img svg,
.contentcard__img--small svg,
.contentcard__img img,
.prodcard__img img,
.contentcard__img--small img {
    width: 100%;
    height: 100%;
    display: block;
}

.contentcard__img img,
.prodcard__img img,
.contentcard__img--small img {
    object-fit: cover;
}

.contentcard__bottom {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 34px;
    align-items: start;
}

.contentcard__img--small {
    width: 300px;
    aspect-ratio: 4 / 3.4;
    margin: 0;
}

/* ---------- sekcje wsparcia ---------- */
.supportcards {
    display: grid;
    gap: 28px;
}

.supportcard {
    display: grid;
    grid-template-columns: minmax(220px, 300px) 1fr;
    background: #fff;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 18px 40px rgba(0, 0, 0, .35);
}

.supportcard--dark {
    background: #20242D;
}

.supportcard__media {
    min-height: 250px;
    background: #111318;
}

.supportcard__media img {
    width: 100%;
    height: 100%;
    min-height: 250px;
    display: block;
    object-fit: cover;
}

.supportcard__body {
    padding: 30px 34px 32px;
}

.supportcard__kicker {
    margin: 0 0 9px;
    color: var(--mv-orange, #F0921F);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.supportcard__title {
    margin: 0 0 12px;
    color: #16181C;
    font-size: 24px;
    font-weight: 800;
    line-height: 1.18;
}

.supportcard--dark .supportcard__title {
    color: #fff;
}

.supportcard__text,
.supportcard__list {
    color: #4A4F58;
    font-size: 14px;
    line-height: 1.65;
}

.supportcard--dark .supportcard__text,
.supportcard--dark .supportcard__list {
    color: #D7DBE2;
}

.supportcard__text {
    margin: 0;
}

.supportcard__list {
    margin: 16px 0 0;
    padding-left: 18px;
}

.supportcard__list li + li {
    margin-top: 6px;
}

.supportcard__link {
    display: inline-block;
    margin-top: 22px;
    color: var(--mv-orange, #F0921F);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.supportcard__link:hover {
    text-decoration: underline;
}

/* ============================================
   DOKUMENTY — centrum TDS / SDS
   ============================================ */
.docs { padding-top: 110px; }

.docs__head {
    text-align: center;
    margin-bottom: 72px;
}

.docs__title {
    margin: 0 0 14px;
    color: #fff;
    font-size: 36px;
    font-weight: 800;
}

.docs__lead {
    margin: 0;
    color: #B7BCC5;
    font-size: 15px;
}

.docs__grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 60px;
    align-items: start;
    margin-bottom: 110px;
}

.docs__label {
    color: var(--mv-orange, #F0921F);
    font-size: 13px;
    font-weight: 700;
    margin: 0 0 12px;
}

.docs__heading {
    margin: 0 0 14px;
    color: #fff;
    font-size: 26px;
    font-weight: 800;
}

.docs__desc {
    margin: 0;
    color: #B7BCC5;
    font-size: 14px;
    line-height: 1.65;
    max-width: 380px;
}

.docs__types {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.doctype {
    display: flex;
    align-items: center;
    gap: 20px;
    background: #1C202A;
    border-radius: 4px;
    padding: 16px 20px;
}

.doctype__badge {
    flex-shrink: 0;
    width: 58px;
    height: 58px;
    background: var(--mv-orange, #F0921F);
    color: #16181C;
    font-size: 17px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 2px;
}

.doctype__name {
    margin: 0 0 3px;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
}

.doctype__sub {
    margin: 0;
    color: #B7BCC5;
    font-size: 12.5px;
}

.docs__tabletitle {
    text-align: center;
    color: #fff;
    font-size: 30px;
    font-weight: 800;
    margin: 0 0 40px;
}

.docs__tablewrap {
    max-width: 960px;
    margin: 0 auto;
}

.docs__tablelead {
    text-align: center;
    color: #B7BCC5;
    font-size: 14px;
    line-height: 1.6;
    margin: -24px auto 36px;
    max-width: 640px;
}

.docstable {
    width: 100%;
    border-collapse: collapse;
    font-size: 13.5px;
}

.docstable th {
    background: var(--mv-orange, #F0921F);
    color: #16181C;
    font-weight: 800;
    text-align: center;
    padding: 13px 16px;
    border: 2px solid #16181C;
}

.docstable th:first-child { text-align: center; }

.docstable td {
    color: #E7E9EE;
    padding: 15px 16px;
    border: 1px solid rgba(255, 255, 255, .14);
    text-align: center;
}

.docstable td:first-child { text-align: left; font-weight: 700; white-space: nowrap; }
.docstable td:last-child { text-align: left; white-space: nowrap; }

/* Wiersz kategorii (Oleje silnikowe / hydrauliczne / ...) */
.docstable__cat td {
    background: rgba(240, 146, 31, .12);
    color: var(--mv-orange, #F0921F);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .06em;
    font-size: 12px;
    text-align: left;
    padding: 10px 16px;
}

.docstable td a {
    color: var(--mv-orange, #F0921F);
    text-decoration: none;
    font-weight: 600;
}

.docstable td a:hover { text-decoration: underline; }

.docs__note {
    text-align: center;
    color: #E7E9EE;
    font-size: 13.5px;
    font-weight: 700;
    margin: 32px 0 0;
}

.docs__note a {
    color: var(--mv-orange, #F0921F);
    text-decoration: none;
}

.docs__note a:hover { text-decoration: underline; }

/* ============================================
   KONTAKT
   ============================================ */
.kt {
    position: relative;
    overflow: hidden;
    background: #16181C;
}

.kt__decor {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

.kt__lines {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
}

.kthead {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 56px 24px 10px;
}

.kthead h1,
.kthead h2 {
    margin: 0 0 18px;
    color: #fff;
    font-size: 54px;
    font-weight: 800;
    letter-spacing: 0;
}

.kthead p {
    margin: 0;
    color: #C6CBD4;
    font-size: 15px;
}

/* sekcja kontaktowa osadzona na wspólnym tle strony */
.kt .contact2 {
    position: relative;
    z-index: 2;
    background: transparent;
    padding: 44px 0 120px;
}

.cf-note {
    margin: 16px 0 0;
    color: #79808C;
    font-size: 10.5px;
    text-align: center;
    line-height: 1.5;
}

/* ============================================
   BLOG — lista wpisów + artykuły
   ============================================ */
.phero--blog .phero__title {
    border-bottom-color: var(--mv-orange, #F0921F);
    bottom: 30px;
}

.blogzone {
    position: relative;
    background: #16181C;
    padding: 0 0 100px;
}

.blogcard {
    position: relative;
    z-index: 2;
    max-width: 1020px;
    margin: -40px auto 0;
    background: #fff;
    border-radius: 2px;
    padding: 44px 44px 36px;
    box-shadow: 0 24px 50px rgba(0, 0, 0, .4);
}

.blogintro {
    text-align: center;
    color: #6B7078;
    font-size: 14.5px;
    margin: 0 0 30px;
}

.bloggrid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
}

.btile {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    background: #fff;
    border: 1px solid #E7E9EE;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(22, 24, 28, .07);
    transition: transform .2s ease, box-shadow .2s ease;
}

.btile:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 30px rgba(22, 24, 28, .16);
}

.btile__imgwrap {
    position: relative;
    display: block;
    overflow: hidden;
}

.btile__img {
    width: 100%;
    aspect-ratio: 16 / 9.5;
    object-fit: cover;
    display: block;
    transition: transform .3s ease;
}

.btile:hover .btile__img { transform: scale(1.05); }

.btile__cat {
    position: absolute;
    left: 12px;
    top: 12px;
    background: var(--mv-orange, #F0921F);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    padding: 5px 10px;
    border-radius: 3px;
}

.btile__bar {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
    background: linear-gradient(135deg, #1C202A 0%, #343943 100%);
    border-top: 3px solid var(--mv-orange, #F0921F);
    color: #fff;
    padding: 14px 18px 15px;
    line-height: 1.35;
}

.btile__title {
    font-size: 15.5px;
    font-weight: 800;
}

.btile__meta {
    font-size: 12px;
    font-weight: 600;
    opacity: .85;
}

/* paginacja */
.bpag {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 14px;
    padding-top: 38px;
}

.bpag__num {
    color: #16181C;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background .15s ease, color .15s ease;
}

a.bpag__num:hover {
    background: #F3E2CC;
    color: var(--mv-orange, #F0921F);
}

.bpag__num.is-current {
    background: var(--mv-orange, #F0921F);
    color: #fff;
}

.bpag__arrow {
    color: var(--mv-orange, #F0921F);
    text-decoration: none;
    font-size: 24px;
    font-weight: 800;
    line-height: 1;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background .15s ease;
}

a.bpag__arrow:hover { background: #F3E2CC; }

.bpag__arrow.is-disabled {
    opacity: .3;
    pointer-events: none;
}

/* artykuł */
.article {
    position: relative;
    z-index: 2;
    max-width: 920px;
    margin: -40px auto 0;
    background: #fff;
    border-radius: 2px;
    padding: 46px 50px 52px;
    box-shadow: 0 24px 50px rgba(0, 0, 0, .4);
}

.article__meta {
    color: #8E9198;
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    margin: 0 0 10px;
}

.article__meta span { color: var(--mv-orange, #F0921F); }

.article__title {
    color: #16181C;
    font-size: 32px;
    font-weight: 800;
    line-height: 1.2;
    margin: 0 0 6px;
}

.article__rule {
    width: 220px;
    height: 3px;
    background: var(--mv-orange, #F0921F);
    margin: 14px 0 24px;
}

.article__img {
    width: 100%;
    aspect-ratio: 16 / 8;
    object-fit: cover;
    display: block;
    margin-bottom: 30px;
}

.article h2 {
    color: #16181C;
    font-size: 20px;
    font-weight: 800;
    margin: 30px 0 10px;
}

.article p,
.article li {
    color: #4A4F58;
    font-size: 14.5px;
    line-height: 1.75;
}

.article p { margin: 0 0 14px; }

.article ul,
.article ol {
    margin: 0 0 14px;
    padding-left: 22px;
}

.article__back {
    display: inline-block;
    margin-top: 26px;
    color: var(--mv-orange, #F0921F);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    text-decoration: none;
}

.article__back:hover { text-decoration: underline; }

/* ---------- responsywność ---------- */
@media (max-width: 960px) {
    .bloggrid { grid-template-columns: 1fr; }
    .blogcard { margin: -30px 16px 0; padding: 24px 20px; }
    .article { margin: -30px 16px 0; padding: 30px 22px 36px; }
    .article__title { font-size: 24px; }

    .docs__grid { grid-template-columns: 1fr; gap: 40px; margin-bottom: 72px; }
    .docs__title { font-size: 27px; }
    .docs__head { margin-bottom: 52px; }

    /* Tabela kart: przewijana w poziomie na małych ekranach */
    .docs__tablewrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .docstable { min-width: 720px; }

    .sub__row { grid-template-columns: 1fr; }
    .sub__row .sidemenu { display: none; }
    .sub__row:first-child .sidemenu { display: block; }
    .sub__row:first-child > .sidemenu {
        position: static;
        max-height: none;
        overflow: visible;
    }
    .contentcard__bottom { grid-template-columns: 1fr; }
    .contentcard__img--small { width: 100%; }
    .supportcard { grid-template-columns: 1fr; }
    .supportcard__media,
    .supportcard__media img { min-height: 220px; }
    .sub__row--support .sidemenu { display: block; }
    .phero { min-height: 220px; }
    .phero__title {
        left: 24px;
        right: 24px;
        bottom: 30px;
        font-size: 32px;
    }
    .phero--blog .phero__title { bottom: 30px; }
    .phero--docs .phero__title { font-size: 26px; }
    .sub-route { width: 140%; left: -20%; opacity: .34; }
}

@media (max-width: 560px) {
    .contentcard { padding: 24px 20px 32px; }
    .supportcard__body { padding: 24px 20px 28px; }
    .supportcard__title { font-size: 21px; }
    .kthead h1,
    .kthead h2 { font-size: 36px; }
    .kt__lines { opacity: .5; }
    .sub-route { opacity: .24; }
}
