/*
 * NaszeMarki module styles
 * Wzorowane na stylu /o-nas (modul aboutus): font Sora, badge z lime accent,
 * miekkie sekcje rozdzielone duzymi marginesami.
 */

#module-naszemarki-brands #wrapper,
#module-naszemarki-brand #wrapper {
    padding-top: 0;
}

#module-naszemarki-brands #wrapper .page-content.card.card-block,
#module-naszemarki-brand #wrapper .page-content.card.card-block {
    background-color: transparent;
    padding: 0;
    border: 0;
    box-shadow: none;
}

#module-naszemarki-brands .breadcrumb-wrapper,
#module-naszemarki-brand .breadcrumb-wrapper {
    /* Domyslnie chowamy okruszki - na /o-nas tez sa schowane */
    display: none;
}

.naszemarki-page {
    font-family: var(--font-family-family-primary, "Sora", sans-serif);
    color: #000;
    background-color: #fff;
}

.naszemarki-page .container-fluid {
    max-width: 1280px;
    margin: 0 auto;
    padding-left: 24px;
    padding-right: 24px;
}

/* ---------- HERO ---------- */

.naszemarki-hero {
    padding: 80px 0 56px;
    background-color: transparent;
}

.naszemarki-hero-inner {
    display: flex;
    flex-direction: column;
    gap: 24px;
    max-width: 820px;
}

.naszemarki-hero-inner-detail {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 48px;
    max-width: none;
}

.naszemarki-hero-inner-detail .naszemarki-hero-content {
    flex: 1 1 0;
    min-width: 0;
}

.naszemarki-hero-media {
    flex: 0 0 auto;
    width: 280px;
    max-width: 100%;
}

.naszemarki-hero-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 1px solid #ECECEC;
    border-radius: 16px;
    padding: 24px;
    aspect-ratio: 4 / 3;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.04);
}

.naszemarki-hero-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.naszemarki-badge {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.naszemarki-badge-circle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 58.333px;
    background: var(--background-color-brand-1-normal, #E4FD71);
    box-shadow: 0 0 57.75px 0 #E4FD71;
    flex-shrink: 0;
}

.naszemarki-badge-text {
    color: #6c757d;
    font-size: 16px;
    line-height: 1.4;
    text-decoration: none;
}

a.naszemarki-badge-text:hover,
a.naszemarki-back-link:hover {
    color: #000;
    text-decoration: underline;
}

.naszemarki-hero-title {
    color: var(--text-color-base-primary, #000);
    font-family: var(--font-family-family-primary, "Sora", sans-serif);
    font-size: 40px;
    font-style: normal;
    font-weight: 400;
    line-height: 54px;
    margin: 0 0 16px;
}

.naszemarki-hero-subtitle {
    color: #4A4A4A;
    font-family: var(--font-family-family-primary, "Sora", sans-serif);
    font-size: 18px;
    line-height: 28px;
    margin: 0;
    max-width: 720px;
}

.naszemarki-hero-actions {
    margin-top: 32px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* ---------- BUTTONS ---------- */

.naszemarki-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 999px;
    font-family: var(--font-family-family-primary, "Sora", sans-serif);
    font-size: 14px;
    font-weight: 600;
    line-height: 20px;
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.1s ease;
    cursor: pointer;
    border: 1px solid transparent;
}

.naszemarki-btn:hover {
    transform: translateY(-1px);
    text-decoration: none;
}

.naszemarki-btn-primary {
    background: #000;
    color: #fff;
}

.naszemarki-btn-primary:hover {
    background: #1a1a1a;
    color: #E4FD71;
}

.naszemarki-btn-secondary {
    background: #E4FD71;
    color: #000;
    margin-top: 20px;
}

.naszemarki-btn-secondary:hover {
    background: #D6F35E;
    color: #000;
}

.naszemarki-btn-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 999px;
    padding: 2px 8px;
    font-size: 12px;
    font-weight: 600;
}

/* ---------- LISTA MAREK ---------- */

.naszemarki-list {
    padding: 24px 0 96px;
}

.naszemarki-list-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
}

.naszemarki-card {
    background: #fff;
    border: 1px solid #ECECEC;
    border-radius: 20px;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    height: 100%;
}

.naszemarki-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.08);
    border-color: #DADADA;
}

.naszemarki-card-link {
    display: flex;
    flex-direction: column;
    height: 100%;
    color: inherit;
    text-decoration: none;
}

.naszemarki-card-link:hover,
.naszemarki-card-link:focus {
    color: inherit;
    text-decoration: none;
}

.naszemarki-card-media {
    background: #fff;
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.naszemarki-card-logo-fallback {
    font-size: 28px;
    font-weight: 600;
    color: #000;
    text-align: center;
}

.naszemarki-card-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1 1 auto;
}

.naszemarki-card-title {
    color: #000;
    font-family: var(--font-family-family-primary, "Sora", sans-serif);
    font-size: 22px;
    font-weight: 500;
    line-height: 30px;
    margin: 0;
}

.naszemarki-card-tagline {
    color: #5A5A5A;
    font-family: var(--font-family-family-primary, "Sora", sans-serif);
    font-size: 15px;
    line-height: 24px;
    margin: 0;
    flex: 1 1 auto;
}

.naszemarki-card-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #000;
    font-size: 14px;
    font-weight: 600;
    line-height: 20px;
    margin-top: 4px;
}

.naszemarki-card-cta svg {
    transition: transform 0.2s ease;
}

.naszemarki-card:hover .naszemarki-card-cta svg {
    transform: translateX(4px);
}

/* ---------- DETAL: GLOWNY OPIS ---------- */

.naszemarki-section {
    padding: 56px 0;
}

.naszemarki-section-eyebrow {
    display: inline-block;
    font-family: var(--font-family-family-primary, "Sora", sans-serif);
    font-size: 12px;
    font-weight: 600;
    line-height: 16px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #6C757D;
    background: #FAFAF6;
    padding: 6px 12px;
    border-radius: 999px;
    margin-bottom: 16px;
}

.naszemarki-section-heading {
    color: #000;
    font-family: var(--font-family-family-primary, "Sora", sans-serif);
    font-size: 32px;
    font-weight: 400;
    line-height: 42px;
    margin: 0 0 24px;
}

.naszemarki-description-grid {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
    gap: 32px;
    align-items: start;
}

/* ---------- CMS PAPER (regulamin-like wrapper) ---------- */

.naszemarki-cms-paper {
    background: #fff;
    border-radius: 14px;
    padding: 36px 40px;
    color: #2b2b2b;
    box-shadow: 0 2px 18px rgba(0, 0, 0, 0.04);
}

.naszemarki-cms-paper-header {
    margin-bottom: 24px;
}

.naszemarki-cms-paper-title {
    color: #183030;
    font-family: var(--font-family-family-primary, "Sora", sans-serif);
    font-size: 28px;
    line-height: 36px;
    font-weight: 600;
    margin: 8px 0 0;
}

.naszemarki-lead {
    color: #1A1A1A;
    font-family: var(--font-family-family-primary, "Sora", sans-serif);
    font-size: 18px;
    line-height: 30px;
    margin-bottom: 24px;
    font-weight: 400;
    padding-bottom: 20px;
    border-bottom: 1px solid #E9E5DE;
}

.naszemarki-lead p {
    margin: 0 0 12px;
}

.naszemarki-lead p:last-child {
    margin-bottom: 0;
}

/* === Rich content - ostylowanie jak na stronach prawnych (regulamin/CMS) === */
.naszemarki-rich-content {
    font-family: var(--font-family-family-primary, "Sora", sans-serif);
    color: #323232;
}

.naszemarki-rich-content p,
.naszemarki-rich-content li {
    font-size: 16px;
    line-height: 1.72;
    letter-spacing: 0.01em;
    color: #323232;
    margin: 0 0 12px;
}

.naszemarki-rich-content p:last-child {
    margin-bottom: 0;
}

.naszemarki-rich-content h2 {
    margin: 28px 0 14px;
    padding: 10px 14px;
    border-left: 4px solid #183030;
    background: linear-gradient(90deg, rgba(219, 207, 193, 0.28) 0%, rgba(219, 207, 193, 0) 100%);
    font-size: 24px;
    line-height: 1.35;
    font-weight: 700;
    color: #183030;
}

.naszemarki-rich-content h3 {
    margin: 24px 0 12px;
    font-size: 20px;
    line-height: 1.4;
    font-weight: 600;
    color: #183030;
}

.naszemarki-rich-content section {
    margin-top: 18px;
}

.naszemarki-rich-content ul,
.naszemarki-rich-content ol {
    margin: 12px 0 18px;
    padding-left: 22px;
}

.naszemarki-rich-content ul {
    list-style: disc;
}

.naszemarki-rich-content ol {
    list-style: decimal;
}

.naszemarki-rich-content ol ol {
    margin-top: 10px;
}

.naszemarki-rich-content li {
    margin-bottom: 8px;
}

.naszemarki-rich-content a {
    color: #183030;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
    word-break: break-word;
}

.naszemarki-rich-content a:hover {
    color: #354d39;
}

.naszemarki-rich-content strong,
.naszemarki-rich-content b {
    color: #111;
}

.naszemarki-rich-content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 16px 0;
}

.naszemarki-rich-content blockquote {
    margin: 16px 0;
    padding: 12px 18px;
    border-left: 3px solid #E4FD71;
    background: #FAFAF6;
    color: #2b2b2b;
    font-style: italic;
}

.naszemarki-fallback-info {
    color: #6C757D;
    font-size: 16px;
    line-height: 26px;
    background: #FAFAF6;
    border-radius: 12px;
    padding: 20px 24px;
    margin: 0;
}

/* ---------- HIGHLIGHTS ---------- */

.naszemarki-highlights {
    position: sticky;
    top: 100px;
}

.naszemarki-highlights-card {
    background: #FAFAF6;
    border: 1px solid #ECECEC;
    border-radius: 20px;
    padding: 28px;
}

.naszemarki-highlights-title {
    font-family: var(--font-family-family-primary, "Sora", sans-serif);
    font-size: 14px;
    font-weight: 600;
    line-height: 20px;
    color: #000;
    margin-bottom: 16px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.naszemarki-highlights-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.naszemarki-highlights-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    font-size: 15px;
    line-height: 22px;
    color: #1A1A1A;
}

.naszemarki-highlights-item:last-child {
    border-bottom: none;
}

.naszemarki-highlights-bullet {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 999px;
    background: #E4FD71;
    color: #000;
    flex-shrink: 0;
    margin-top: 1px;
}

.naszemarki-highlights-text {
    flex: 1 1 auto;
}

/* ---------- PRODUKTY MARKI ---------- */
/* Karuzela "tyres-related" przeniesiona ze strony produktu (#product .tyres-related).
   Reguly skopiowane 1:1, tylko prefix scope-u zmieniony na nasze body id, zeby
   selektory zadzialaly takze na /pl/nasze-marki/<slug>. */

.naszemarki-section-products {
    background: #fff;
    padding: 32px 0 64px;
}

body#module-naszemarki-brand .category-same-other-products {
    margin-top: 0;
}

body#module-naszemarki-brand .category-products-title {
    color: #000;
    font-family: var(--font-family-family-primary, "Sora", sans-serif);
    font-size: 32px;
    line-height: 42px;
    font-weight: 400;
    margin: 0 0 8px;
}

body#module-naszemarki-brand .category-same-other-products .single-header {
    margin-bottom: 32px;
}

body#module-naszemarki-brand .category-same-other-products .single-header p {
    color: var(--text-color-base-primary, #000);
    font-family: var(--font-family-family-primary, "Sora", sans-serif);
    font-size: 18px;
    font-weight: 400;
    line-height: 28px;
    margin-bottom: 0;
}

body#module-naszemarki-brand .tyres-related {
    margin-top: 0;
}

body#module-naszemarki-brand .tyres-related .tyres-card {
    overflow: hidden;
    text-decoration: none;
    color: inherit;
}

body#module-naszemarki-brand .tyres-related .photos img {
    width: 100%;
    border: 1px solid #e5e5e5;
    border-radius: 16px;
    display: block;
}

body#module-naszemarki-brand .tyres-related .title1 {
    position: relative;
    margin-top: 12px;
    margin-bottom: 2px;
    padding-right: 20px;
}

body#module-naszemarki-brand .tyres-related .title1 .title-product,
body#module-naszemarki-brand .tyres-related .title1 h2,
body#module-naszemarki-brand .tyres-related .title1 h3 {
    color: #000;
    font-size: 16px;
    font-weight: 400;
    line-height: 24px;
    margin-bottom: 0;
}

body#module-naszemarki-brand .tyres-related .title1 svg {
    position: absolute;
    top: 6px;
    right: 4px;
    fill: #b2b2b2;
}

body#module-naszemarki-brand .tyres-related .price1 p {
    color: #595959;
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
    margin: 0;
}

body#module-naszemarki-brand .tyres-related .discount {
    text-decoration: line-through;
    color: #888;
}

/* Pasek postepu - 3 segmenty */
body#module-naszemarki-brand .tyres-related .tyres-progress {
    --seg-index: 0;
    position: relative;
    width: 100%;
    height: 4px;
}

body#module-naszemarki-brand .tyres-related .tyres-progress .track {
    position: absolute;
    inset: 0;
    border-radius: 999px;
    background: #ececec;
    background-image: linear-gradient(#d0d0d0, #d0d0d0), linear-gradient(#d0d0d0, #d0d0d0), linear-gradient(#ececec, #ececec);
    background-size: 1px 100%, 1px 100%, 100% 100%;
    background-position: 33.333% 0, 66.666% 0, 0 0;
    background-repeat: no-repeat;
}

body#module-naszemarki-brand .tyres-related .tyres-progress .dot {
    position: absolute;
    top: 0;
    bottom: 0;
    left: calc(var(--seg-index) * 33.333%);
    width: 33.333%;
    border-radius: 999px;
    background: #b5b5b5;
    transition: left 0.25s ease;
}

body#module-naszemarki-brand .tyres-related .tyres-nav .btn {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    margin: 0 2px;
}

body#module-naszemarki-brand .tyres-related .tyres-nav .btn-dark {
    background-color: #000;
}

body#module-naszemarki-brand .tyres-related .tyres-controls {
    margin-top: 20px;
}

@media (max-width: 991.98px) {
    body#module-naszemarki-brand .tyres-related .tyres-progress {
        display: none;
    }
}

/* === Karuzela: 4 widoczne na desktop, 2 tablet, 1 mobile === */
body#module-naszemarki-brand .tyres-related .carousel {
    overflow: hidden;
}

body#module-naszemarki-brand .tyres-related .carousel .carousel-inner {
    display: flex !important;
    flex-wrap: nowrap !important;
    height: auto !important;
    overflow: hidden !important;
}

body#module-naszemarki-brand .tyres-related .carousel .carousel-item {
    display: none !important;
    flex: 0 0 100% !important;
    width: 100% !important;
    max-width: 100% !important;
    margin-right: 0 !important;
    opacity: 0;
    position: relative;
    transform: none !important;
    padding: 0 8px;
}

/* Mobile: 1 widoczny */
body#module-naszemarki-brand .tyres-related .carousel .carousel-item.active {
    display: block !important;
    opacity: 1;
}

/* Tablet: 2 widoczne (active + nastepny) */
@media (min-width: 768px) {
    body#module-naszemarki-brand .tyres-related .carousel .carousel-item {
        flex: 0 0 50% !important;
        max-width: 50% !important;
    }

    body#module-naszemarki-brand .tyres-related .carousel .carousel-item.active + .carousel-item {
        display: block !important;
        opacity: 1;
    }
}

/* Desktop: 4 widoczne (active + 3 nastepne) */
@media (min-width: 1200px) {
    body#module-naszemarki-brand .tyres-related .carousel .carousel-item {
        flex: 0 0 25% !important;
        max-width: 25% !important;
    }

    body#module-naszemarki-brand .tyres-related .carousel .carousel-item.active + .carousel-item,
    body#module-naszemarki-brand .tyres-related .carousel .carousel-item.active + .carousel-item + .carousel-item,
    body#module-naszemarki-brand .tyres-related .carousel .carousel-item.active + .carousel-item + .carousel-item + .carousel-item {
        display: block !important;
        opacity: 1;
    }
}

/* CTA pod karuzela */
.naszemarki-products-footer {
    margin-top: 40px;
    text-align: center;
}

.naszemarki-products-footer .naszemarki-btn {
    margin: 0 auto;
}

/* ---------- INNE MARKI ---------- */

.naszemarki-section-others {
    /* background-color: #FAFAF6; */
    /* border-top: 1px solid #ECECEC; */
}

.naszemarki-others-header {
    margin-bottom: 32px;
}

/* ---------- 404 ---------- */

.naszemarki-notfound {
    padding: 32px 0 0;
}

.naszemarki-notfound-inner {
    background: #FFF6F6;
    border: 1px solid #F4D6D6;
    border-radius: 16px;
    padding: 24px 28px;
}

.naszemarki-notfound-badge {
    display: inline-block;
    background: #C3392F;
    color: #fff;
    font-weight: 600;
    font-size: 12px;
    letter-spacing: 0.08em;
    padding: 4px 10px;
    border-radius: 999px;
    margin-bottom: 8px;
}

.naszemarki-notfound-title {
    font-size: 20px;
    margin: 0 0 4px;
}

.naszemarki-notfound-text {
    margin: 0;
    color: #6C757D;
}

/* ---------- RESPONSYWNOSC ---------- */

@media (max-width: 991.98px) {
    .naszemarki-hero {
        padding: 56px 0 32px;
    }

    .naszemarki-hero-title {
        font-size: 32px;
        line-height: 42px;
    }

    .naszemarki-hero-subtitle {
        font-size: 16px;
        line-height: 24px;
    }

    .naszemarki-hero-inner-detail {
        flex-direction: column;
        align-items: flex-start;
        gap: 24px;
    }

    .naszemarki-hero-media {
        width: 100%;
        max-width: 320px;
    }

    .naszemarki-description-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .naszemarki-highlights {
        position: static;
    }

    .naszemarki-section-heading {
        font-size: 26px;
        line-height: 34px;
    }

    .naszemarki-cms-paper {
        padding: 24px 18px;
        border-radius: 10px;
    }

    .naszemarki-cms-paper-title {
        font-size: 22px;
        line-height: 30px;
    }

    .naszemarki-rich-content h2 {
        font-size: 20px;
        margin-top: 22px;
    }

    .naszemarki-rich-content p,
    .naszemarki-rich-content li {
        font-size: 15px;
    }
}

@media (max-width: 575.98px) {
    .naszemarki-page .container-fluid {
        padding-left: 16px;
        padding-right: 16px;
    }

    .naszemarki-hero-title {
        font-size: 26px;
        line-height: 34px;
    }

    .naszemarki-card-media {
        height: 160px;
    }

    .naszemarki-card-body {
        padding: 20px;
    }

    .naszemarki-card-title {
        font-size: 20px;
        line-height: 28px;
    }
}
