/*

Theme Name: 	Qmotyw
Theme URI: 		https://qmotyw.pl
Description: 	Blog parentingowy — zabawki, rozwój dziecka i porady dla rodziców.
Version: 		1.67
Author: 		MK
Author URI: 	https://mateuszkosiorek.pl
License:
License URI:

*/
/* Reset & Basic Styles */
:root {
    --pm-primary: #5c3d99;
    --pm-accent: #ff6b35;
    --pm-body-font: 'Nunito', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --pm-heading-font: 'Nunito', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --pm-radius-sm: 10px;
    --pm-radius-md: 16px;
    --pm-radius-lg: 22px;
    --pm-radius-xl: 28px;
    --pm-shadow-sm: 0 4px 12px rgba(92, 61, 153, 0.07);
    --pm-shadow-md: 0 12px 30px rgba(92, 61, 153, 0.10);
    --pm-shadow-lg: 0 25px 60px rgba(92, 61, 153, 0.15);
    --pm-transition: 0.25s ease;
    --pm-text-muted: #7a6b94;
    --pm-border: #e8def8;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body, h1, h2, h3, h4, h5, p, ul, li, a {
    margin: 0;
    padding: 0;
    font-family: var(--pm-body-font, 'Nunito', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif);
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: #fef9f6;
    color: #333;
    line-height: 1.65;
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

h1, h2, h3, h4, h5 {
    font-family: var(--pm-heading-font, 'Nunito', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif);
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.container {
    width: 94%;
    max-width: 1360px;
    margin: auto;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    display: block;
}

/* Skip link */
.skip-link {
    position: absolute;
    top: -100%;
    left: 1rem;
    background: var(--pm-accent);
    color: #fff;
    padding: 0.5rem 1.2rem;
    border-radius: 0 0 var(--pm-radius-sm) var(--pm-radius-sm);
    font-weight: 600;
    font-size: 0.9rem;
    z-index: 9999;
    transition: top 0.2s ease;
    text-decoration: none;
}
.skip-link:focus {
    top: 0;
    outline: 3px solid #fff;
    outline-offset: -3px;
}

/* Global focus styles */
:focus-visible {
    outline: 3px solid var(--pm-accent);
    outline-offset: 3px;
    border-radius: 3px;
}

/* Header */
.site-header {
    background: var(--pm-primary);
    padding: 1rem 0;
    border-bottom: 3px solid var(--pm-accent);
}

.site-header--light {
    background: #ffffff;
    border-bottom-color: rgba(0, 0, 0, 0.08);
}

.site-header--light .logo-text a,
.site-header--light .social-media a {
    color: #5c3d99;
}

.site-header--light .menu-toggle {
    color: #5c3d99;
    border-color: rgba(0, 0, 0, 0.2);
}

.site-header--light .main-nav a {
    color: var(--pm-primary);
}

.site-header--light .main-nav a:hover {
    color: var(--pm-accent);
}

.site-header--gradient {
    background: linear-gradient(90deg, var(--pm-primary) 0%, var(--pm-accent) 100%);
    border-bottom-color: transparent;
}
.site-header--gradient .logo-text a,
.site-header--gradient .social-media a {
    color: #fff;
}
.site-header--gradient .menu-toggle {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.4);
}
.site-header--gradient .main-nav a {
    color: rgba(255, 255, 255, 0.92);
}
.site-header--gradient .main-nav a:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.15);
}

.site-header--pastel {
    background: linear-gradient(90deg, #f0e8ff 0%, #fff0ea 100%);
    border-bottom: 1px solid var(--pm-border);
}
.site-header--pastel .logo-text a,
.site-header--pastel .social-media a {
    color: var(--pm-primary);
}
.site-header--pastel .menu-toggle {
    color: var(--pm-primary);
    border-color: var(--pm-border);
}
.site-header--pastel .main-nav a {
    color: var(--pm-primary);
}
.site-header--pastel .main-nav a:hover {
    color: var(--pm-accent);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 94%;
    max-width: 1360px;
    margin: auto;
    gap: 1rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-image img {
    max-height: 60px;
    max-width: 320px;
    width: auto;
    display: block;
}

.logo-image--custom {
    display: inline-flex;
    align-items: center;
}

.logo-box {
    width: 50px;
    height: 50px;
    background-color: var(--pm-accent);
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    font-weight: bold;
}

.logo-text a {
    font-size: 2rem;
    font-weight: bold;
    color: #fff;
    letter-spacing: -1px;
}

.main-nav ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: center;
}

.main-nav a {
    font-weight: 600;
    color: #f1f1f1;
    transition: color 0.3s ease;
}

.main-nav a:hover {
    color: var(--pm-accent);
}

.social-media {
    display: flex;
    gap: 1rem;
}

.social-media a {
    font-size: 1.2rem;
    color: #f1f1f1;
    transition: color 0.3s ease;
}

.social-media a:hover {
    color: var(--pm-accent);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.35);
    color: #fff;
    padding: 0.5rem 0.85rem;
    border-radius: var(--pm-radius-sm);
    cursor: pointer;
    min-height: 44px;
    min-width: 48px;
    transition: background var(--pm-transition), border-color var(--pm-transition);
}
.menu-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.6);
}

.menu-toggle__line {
    width: 24px;
    height: 2px;
    background: currentColor;
    display: block;
}

.menu-toggle__text {
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

/* Urgent Section */
/* ── Ticker PILNE ── */
.urgent-section {
    display: flex;
    align-items: stretch;
    background: var(--pm-accent);
    color: #fff;
    overflow: hidden;
    min-height: 42px;
}

.newsletter-bar {
    background: #0b1f3a;
    color: #fff;
    padding: 2.5rem 0;
    margin: 2rem 0;
}

.newsletter-bar__content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.newsletter-bar__kicker {
    text-transform: uppercase;
    letter-spacing: 0.2rem;
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
    color: #9fc1ff;
}

.newsletter-bar__text h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.newsletter-bar__text p {
    max-width: 560px;
    color: #d2dcf2;
}

.newsletter-bar__form {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.newsletter-bar__form input {
    padding: 0.9rem 1rem;
    min-width: 260px;
    border-radius: 3px;
    border: none;
    font-size: 1rem;
    color: #0b1f3a;
}

.newsletter-bar__form input::placeholder {
    color: #555;
}

.newsletter-bar__form button {
    background: #ff6b35;
    color: #fff;
    padding: 0.9rem 1.6rem;
    border: none;
    border-radius: 3px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}

.newsletter-bar__form button:hover {
    background: #e85520;
}

/* Badge "PILNE" po lewej */
.urgent-badge {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0 1.4rem 0 1.1rem;
    background: #b03028;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    position: relative;
    z-index: 2;
    /* Chevron po prawej stronie badge */
    clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 50%, calc(100% - 10px) 100%, 0 100%);
}

.urgent-badge i {
    font-size: 0.75rem;
    animation: bolt-flash 1.8s ease-in-out infinite;
}

@keyframes bolt-flash {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.45; }
}

/* Obszar tickera */
.urgent-ticker {
    flex: 1;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
}

/* Zanikanie na krawędziach */
.urgent-ticker::before,
.urgent-ticker::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 2.5rem;
    z-index: 2;
    pointer-events: none;
}
.urgent-ticker::before {
    left: 0;
    background: linear-gradient(to right, var(--pm-accent) 20%, transparent);
}
.urgent-ticker::after {
    right: 0;
    background: linear-gradient(to left, var(--pm-accent) 20%, transparent);
}

/* Taśma z elementami */
.urgent-ticker__track {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    animation: ticker-scroll 20s linear infinite;
    /* animation-duration nadpisywany przez inline style z PHP */
}

.urgent-ticker:hover .urgent-ticker__track {
    animation-play-state: paused;
}

/* Pojedynczy element tickera */
.urgent-ticker__item {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0 2rem;
    color: #fff;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
    transition: opacity 0.2s;
}

a.urgent-ticker__item:hover {
    opacity: 0.82;
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* Separator — małe kółko między elementami */
.urgent-ticker__item .fa-circle {
    font-size: 0.28rem;
    opacity: 0.55;
    flex-shrink: 0;
}

@keyframes ticker-scroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

/* Dostępność — wyłącz animację gdy użytkownik woli */
@media (prefers-reduced-motion: reduce) {
    .urgent-ticker__track {
        animation: none;
    }
    .urgent-ticker {
        overflow-x: auto;
    }
    .urgent-badge i {
        animation: none;
    }
}

/* Main Content & Section Styling */
.site-content {
    background-color: #f4f4f4;
}

.section-wrapper {
    padding: 2.5rem 0;
}

.section-wrapper:nth-child(odd) {
    background-color: #fff;
}
.section-wrapper:nth-child(even) {
    background-color: #f9f9f9;
}

/* Top Stories (Wideo/Artyku� Tygodnia) */
.top-stories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.25rem;
}
/* ── Feature Cards (Wideo / Artykuł tygodnia) ── */
.section-wrapper--features {
    background: var(--pm-primary);
    padding: 2rem 0;
}

.top-stories.slim {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
}
.top-stories.slim.top-stories--single {
    grid-template-columns: 1fr;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}

.feature-card {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    height: 360px;
    display: block;
    color: #fff;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

/* full-card clickable link via stretched pseudo-element on title */
.feature-card__title a::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 4;
}

.feature-card__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.55s ease, filter 0.55s ease;
    filter: brightness(0.72);
    z-index: 0;
}

.feature-card:hover .feature-card__img {
    transform: scale(1.05);
    filter: brightness(0.55);
}

/* gradient overlay */
.feature-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(5, 10, 25, 0) 20%,
        rgba(5, 10, 25, 0.55) 55%,
        rgba(5, 10, 25, 0.92) 100%
    );
    z-index: 1;
}

/* badge top-left */
.feature-card__badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    z-index: 3;
    background: var(--pm-accent);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    padding: 0.3rem 0.8rem 0.3rem 0.65rem;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.45);
}

/* play button — only on video card */
.feature-card__play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 3;
    width: 66px;
    height: 66px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.14);
    border: 2px solid rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: #fff;
    padding-left: 4px; /* optical centre for play arrow */
    transition:
        background var(--pm-transition),
        border-color var(--pm-transition),
        transform var(--pm-transition),
        box-shadow var(--pm-transition);
}

.feature-card--article .feature-card__play {
    display: none;
}

.feature-card:hover .feature-card__play {
    background: var(--pm-accent);
    border-color: var(--pm-accent);
    transform: translate(-50%, -50%) scale(1.1);
    box-shadow: 0 8px 24px rgba(231, 76, 60, 0.5);
}

/* content block */
.feature-card__body {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem 1.5rem 1.4rem;
    z-index: 3;
}

.feature-card__title {
    font-size: clamp(1.1rem, 2vw, 1.35rem);
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 0.45rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.feature-card__title a {
    color: #fff;
    text-decoration: none;
}

.feature-card__desc {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.78);
    margin-bottom: 0.6rem;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.feature-card__meta {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.55);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

@media (max-width: 768px) {
    .top-stories.slim {
        grid-template-columns: 1fr;
    }
    .feature-card {
        height: 300px;
    }
    .feature-card__play {
        width: 54px;
        height: 54px;
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .feature-card {
        height: 260px;
    }
    .feature-card__title {
        font-size: 1.05rem;
    }
}

/* Latest News Section */
.latest-news-header {
    display: flex;
    align-items: center;
    border-bottom: 2px solid #edf0f5;
    margin-bottom: 1.75rem;
    padding-bottom: 1rem;
}

.latest-news-header h2 {
    font-size: 1.9rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    position: relative;
    padding-left: 1rem;
}

.latest-news-header h2::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8%;
    height: 84%;
    width: 4px;
    background: var(--pm-accent);
    border-radius: 2px;
}

.latest-articles-grid {
    display: flex;
    gap: 2rem;
}

.main-column {
    flex: 2;
}

.latest-feature-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.2rem;
}

.latest-feature-grid .article-main:first-child {
    grid-column: span 2;
}

@media (max-width: 900px) {
    .latest-feature-grid {
        grid-template-columns: 1fr;
    }
    .latest-feature-grid .article-main:first-child {
        grid-column: span 1;
    }
}

.side-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

.article-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 1.2rem;
}

.article-main {
    background: #fff;
    border: 1px solid var(--pm-border);
    padding: 1.4rem;
    border-radius: 18px;
    box-shadow: var(--pm-shadow-md);
    transition: transform var(--pm-transition), box-shadow var(--pm-transition);
}
.article-main:hover {
    transform: translateY(-3px);
    box-shadow: var(--pm-shadow-lg);
}

.article-main__thumb {
    position: relative;
    margin-bottom: 0.85rem;
    border-radius: 12px;
    overflow: hidden;
}

.article-main__thumb img {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
    transition: transform 0.45s ease;
}

.article-main:hover .article-main__thumb img {
    transform: scale(1.04);
}

/* Category badge on image */
.article-cat-badge {
    position: absolute;
    bottom: 0.6rem;
    left: 0.6rem;
    background: var(--pm-accent);
    color: #fff;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    text-decoration: none;
    transition: background var(--pm-transition);
    z-index: 2;
}
.article-cat-badge:hover {
    background: #e85520;
}

/* Fallback: keep old img selector working if thumb wrapper absent */
.article-main > img {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 0.8rem;
}

.article-main h3 {
    font-size: 1.55rem;
    line-height: 1.2;
    margin-bottom: 0.4rem;
    font-weight: 600;
}

.article-main h3 a:hover {
    color: #ff6b35;
}

.article-main p {
    font-size: 0.95rem;
    color: #4e5b6c;
    margin-bottom: 0.45rem;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    flex-wrap: wrap;
    font-size: 0.75rem;
    color: #6c7a8c;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.article-meta i {
    font-size: 0.7rem;
    opacity: 0.75;
}
.article-meta__sep {
    opacity: 0.4;
}

/* Category label on article-side */
.article-side__cat {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--pm-accent);
    margin-bottom: 0.3rem;
    text-decoration: none;
}
.article-side__cat:hover {
    text-decoration: underline;
}

.article-main--dark {
    background: linear-gradient(135deg, #1a273a, #0d1626);
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 30px 60px rgba(5, 10, 20, 0.45);
}

.article-main--dark h3 a {
    color: #f5f8ff;
}

.article-main--dark p {
    color: #cfd8ef;
}

.article-main--dark .article-meta {
    color: #9db5dc;
}

.article-side {
    display: flex;
    gap: 0.9rem;
    align-items: flex-start;
    padding: 0.8rem;
    border-radius: 14px;
    border: 1px solid #edf0f5;
    background: #fff;
    box-shadow: 0 4px 16px rgba(92, 61, 153, 0.05);
    transition: transform var(--pm-transition), box-shadow var(--pm-transition), border-color var(--pm-transition);
    text-decoration: none;
}

.article-side:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(92, 61, 153, 0.1);
    border-color: #d8dfe8;
}

.article-side img {
    width: 96px;
    height: 72px;
    object-fit: cover;
    border-radius: 10px;
    flex-shrink: 0;
    transition: transform 0.4s ease;
}

.article-side:hover img {
    transform: scale(1.04);
}

.article-side .article-content {
    overflow: hidden;
}

.article-side h4 {
    font-size: 0.93rem;
    line-height: 1.4;
    font-weight: 600;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-side h4 a:hover {
    color: #ff6b35;
}

.article-side p {
    font-size: 0.85rem;
    color: #5c6b7a;
    margin: 0.3rem 0;
}

.article-side .article-meta {
    margin-top: 0.45rem;
    font-size: 0.7rem;
}

.article-side--overlay {
    position: relative;
    padding: 0;
    border: none;
    border-radius: 20px;
    overflow: hidden;
    min-height: 240px;
    display: block;
    box-shadow: none;
}

.article-side--overlay:hover {
    transform: translateY(-4px);
    box-shadow: 0 25px 45px rgba(0, 0, 0, 0.35);
}

.article-side--overlay img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.65);
    border-radius: 0;
    transition: transform 0.35s ease, filter 0.35s ease;
}

.article-side--overlay img:hover {
    transform: scale(1.05);
    filter: brightness(0.75);
}

.article-side--overlay .article-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 3rem 1.2rem 1.2rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    z-index: 2;
    background: linear-gradient(180deg, rgba(5, 8, 20, 0) 0%, rgba(5, 8, 20, 0.88) 75%);
    color: #f8fbff;
}

.article-side--overlay h4 {
    font-size: 1.05rem;
    margin-bottom: 0.3rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.35;
}

.article-side--overlay h4 a {
    color: inherit;
}

.article-side--overlay p {
    font-size: 0.875rem;
    color: #dfe7ff;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0 0 0.25rem;
}

.article-side--overlay .article-meta {
    color: #a9b9de;
    font-size: 0.75rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* News Sections Grid */
.content-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2rem;
    align-items: start;
}

.news-section {
    background: rgba(255, 255, 255, 0.92);
    padding: 2rem;
    border-radius: 20px;
    border: 1px solid #d7e0ea;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    box-shadow: 0 25px 60px rgba(13, 27, 42, 0.08);
    backdrop-filter: blur(6px);
}

.content-grid .news-section {
    height: 100%;
}

.news-section--business {
    --section-bg-start: #2d1a5e;
    --section-bg-end: #1a0e3a;
}

.news-section--tech {
    --section-bg-start: #3a1a4f;
    --section-bg-end: #1e0a2e;
}

.news-section--opinions {
    --section-bg-start: #1a2a5e;
    --section-bg-end: #0d1638;
}

.news-section--video {
    --section-bg-start: #2a1a4e;
    --section-bg-end: #150d28;
}

.news-section--dark {
    background: linear-gradient(140deg, var(--section-bg-start, #2d1a5e), var(--section-bg-end, #1a0e3a));
    border-color: rgba(255, 255, 255, 0.15);
    color: #e7ecfa;
    box-shadow: 0 35px 80px rgba(2, 6, 15, 0.75);
}

.news-section--dark .section-title {
    color: #f8fbff;
    border-bottom-color: rgba(255, 255, 255, 0.25);
    margin-bottom: 0;
}

.news-section--dark .article-grid {
    margin-top: 0.5rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.news-section--dark .article-main--dark {
    border-radius: 14px;
    border-color: rgba(255, 255, 255, 0.12);
    background: rgba(10, 20, 35, 0.42);
}

.news-section--dark .article-main--dark h3 {
    font-size: 1.1rem;
}

.news-section--dark .article-side--overlay {
    min-height: 160px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
}

.news-section--dark .article-side--overlay h4 {
    font-size: 0.9rem;
}

.news-section--dark .article-side--overlay .article-content {
    padding: 2.5rem 0.85rem 0.85rem;
}

.news-section--dark .more-button {
    background: #f5f7ff;
    color: #5c3d99;
}

.news-section--dark .more-button:hover {
    background: #ff6b35;
    color: #fff;
}

.card-style-flat .news-section--dark {
    box-shadow: 0 25px 60px rgba(5, 10, 20, 0.4);
    backdrop-filter: none;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.card-style-flat .article-main--dark {
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
}

.card-style-flat .article-side--overlay {
    border-radius: 14px;
    min-height: 200px;
}

.section-title {
    font-size: 1.6rem;
    border-bottom: 2px solid #5c3d99;
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
}

.news-section .latest-articles-grid {
    flex-grow: 1;
}

.section-footer {
    margin-top: auto;
    width: 100%;
    display: flex;
    justify-content: flex-end;
}

.latest-more {
    justify-content: center;
    margin-top: 2.5rem;
}

.more-button {
    background-color: var(--pm-primary);
    color: #fff;
    padding: 0.65rem 1.35rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.875rem;
    letter-spacing: 0.03em;
    transition: background-color var(--pm-transition), transform var(--pm-transition), box-shadow var(--pm-transition);
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

.more-button:hover {
    background-color: var(--pm-accent);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(231, 76, 60, 0.35);
}

.more-button i {
    margin-left: 0.5rem;
}

/* Footer */
.site-footer {
    background: var(--footer-bg, #3d2570);
    color: var(--footer-text, #bdc3c7);
    padding: 3rem 0 0;
    margin-top: 2rem;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 2.5rem;
    width: 90%;
    max-width: 1200px;
    margin: auto;
    padding-bottom: 2rem;
}

.footer-column h4 {
    font-size: 1.1rem;
    color: var(--footer-heading, #fff);
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-column h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 2px;
    background-color: var(--footer-accent, #ff6b35);
}

.footer-column p {
    font-size: 0.9rem;
    line-height: 1.7;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 0.8rem;
}

.footer-column ul a {
    color: var(--footer-link, #bdc3c7);
    transition: color 0.3s ease;
}

.footer-column ul a:hover {
    color: var(--footer-accent, #fff);
    text-decoration: underline;
}

.footer-socials a {
    display: inline-block;
    margin-right: 1rem;
    font-size: 1.4rem;
    color: var(--footer-link, #bdc3c7);
    transition: color 0.3s ease;
}

.footer-socials a:hover {
    color: var(--footer-accent, #ff6b35);
}

.newsletter-form p {
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.newsletter-input-group {
    display: flex;
    margin-top: 1rem;
}

.newsletter-input-group input {
    flex-grow: 1;
    padding: 0.8rem;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-color: color-mix(in srgb, var(--footer-text, #bdc3c7) 28%, transparent);
    background: rgba(0, 0, 0, 0.24);
    background: color-mix(in srgb, var(--footer-bg, #3d2570) 72%, #000 28%);
    color: var(--footer-heading, #fff);
    border-radius: 3px 0 0 3px;
    outline: none;
}

.newsletter-input-group input::placeholder {
    color: #7f8c8d;
}

.newsletter-input-group button {
    padding: 0.8rem 1.2rem;
    border: 1px solid var(--footer-accent, #ff6b35);
    background: var(--footer-accent, #ff6b35);
    color: #fff;
    cursor: pointer;
    border-radius: 0 3px 3px 0;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.newsletter-input-group button:hover {
    background: var(--footer-accent, #ff6b35);
    background: color-mix(in srgb, var(--footer-accent, #ff6b35) 82%, #000 18%);
}

.footer-bottom {
    background: #000;
    color: #777;
    padding: 1.2rem 0;
    text-align: center;
    font-size: 0.85rem;
    margin-top: 2rem;
}

/* New footer bottom bar */
.footer-bottom-bar {
    border-top: 1px solid rgba(255, 255, 255, 0.16);
    border-top-color: color-mix(in srgb, var(--footer-text, #bdc3c7) 20%, transparent);
    margin-top: 1rem;
    background: var(--footer-bottom-bg, rgba(0, 0, 0, 0.3));
}
.footer-bottom-bar__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    width: 90%;
    max-width: 1200px;
    margin: auto;
    padding: 1.25rem 0;
    flex-wrap: wrap;
}
.footer-logo .logo-text a {
    font-size: 1.3rem;
    color: var(--footer-heading, #fff);
}
.footer-copyright {
    font-size: 0.85rem;
    color: var(--footer-text, #7f8c8d);
    flex: 1;
    text-align: center;
}
@media (max-width: 768px) {
    .footer-bottom-bar__inner {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    .footer-copyright {
        text-align: center;
    }
}

/* Responsive */
@media (max-width: 1024px) {
    .header-container {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }
    .main-nav {
        order: 3;
        width: 100%;
        display: flex;
        justify-content: center;
    }
    .top-stories {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
        order: 2;
    }
    .main-nav {
        width: 100%;
        order: 3;
        display: none;
        flex-direction: column;
        align-items: center;
        background: #5c3d99;
        padding: 1rem 0;
        border-radius: 8px;
    }
    .main-nav.is-open {
        display: flex;
    }
    .main-nav ul {
        flex-direction: column;
        gap: 0.8rem;
    }
    .main-nav a {
        font-size: 1rem;
    }
    .site-header--light .main-nav {
        background: rgba(255, 255, 255, 0.95);
    }
    .latest-articles-grid {
        flex-direction: column;
    }
    .content-grid {
        grid-template-columns: 1fr;
    }
    .feature-article {
        grid-template-columns: 1fr;
    }
    .feature-thumb {
        height: 180px;
    }
    .header-container {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
    .logo {
        flex: 1;
        min-width: 0;
    }
    .social-media {
        display: none;
    }
    .newsletter-bar__content {
        flex-direction: column;
        align-items: flex-start;
    }
    .newsletter-bar__form {
        width: 100%;
    }
    .newsletter-bar__form input {
        flex: 1;
        min-width: 100%;
    }
    .newsletter-bar__form button {
        width: 100%;
        text-align: center;
    }
}

/* Single Post */
.single-hero {
    position: relative;
    min-height: 60vh;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    color: #fff;
}

.single-hero__image,
.category-hero__image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.55);
}

.single-hero__overlay,
.category-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.85) 90%);
}

.single-hero__content,
.category-hero__content {
    position: relative;
    z-index: 2;
    padding: 4rem 0;
}

.single-hero__category,
.category-hero__kicker {
    text-transform: uppercase;
    letter-spacing: 0.3em;
    font-size: 0.85rem;
    margin-bottom: 1rem;
    color: #84a6ff;
}

.single-hero h1,
.category-hero h1 {
    font-size: clamp(2.4rem, 4vw, 3.2rem);
    max-width: 800px;
}

.single-hero__meta {
    margin-top: 1rem;
    display: flex;
    gap: 0.5rem;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
}

.single-article {
    background: #fff;
    margin-top: -4rem;
    padding: 3rem;
    border-radius: 24px;
    box-shadow: 0 35px 80px rgba(92, 61, 153, 0.18);
    position: relative;
    z-index: 3;
}

.single-article__body p {
    margin-bottom: 1.4rem;
    font-size: 1.05rem;
    color: #324155;
}

.single-article__body h2,
.single-article__body h3,
.single-article__body h4 {
    margin-top: 2.4rem;
    margin-bottom: 1rem;
    color: var(--pm-accent);
}

/* ── Listy ── */
.single-article__body ul,
.single-article__body ol {
    margin: 0 0 1.6rem;
    padding: 0;
    list-style: none;
}

.single-article__body ul li,
.single-article__body ol li {
    position: relative;
    padding: 0.6rem 0 0.6rem 1.85rem;
    font-size: 1.05rem;
    color: #324155;
    line-height: 1.65;
    border-bottom: 1px solid #f0f3f8;
}

.single-article__body ul li:last-child,
.single-article__body ol li:last-child {
    border-bottom: none;
}

/* Bullet – wypełnione kółko w kolorze akcentu */
.single-article__body ul li::before {
    content: '';
    position: absolute;
    left: 0.35rem;
    top: 50%;
    transform: translateY(-50%);
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--pm-accent);
}

/* Numeracja – ciemne kółka z białą cyfrą */
.single-article__body ol {
    counter-reset: pm-ol;
}
.single-article__body ol li {
    counter-increment: pm-ol;
}
.single-article__body ol li::before {
    content: counter(pm-ol);
    position: absolute;
    left: 0;
    top: 0.55rem;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--pm-primary);
    color: #fff;
    font-size: 0.68rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

/* Zagnieżdżone listy */
.single-article__body ul ul,
.single-article__body ol ol,
.single-article__body ul ol,
.single-article__body ol ul {
    margin: 0.4rem 0 0.4rem 1rem;
}

/* ── Cytat (blockquote) ── */
.single-article__body blockquote {
    position: relative;
    margin: 2.5rem 0;
    padding: 1.75rem 1.75rem 1.75rem 2.25rem;
    background: linear-gradient(135deg, #f8faff 0%, #f0f4ff 100%);
    border-left: 4px solid var(--pm-accent);
    border-radius: 0 16px 16px 0;
    font-size: 1.15rem;
    font-style: italic;
    color: #1e3050;
    line-height: 1.75;
    overflow: hidden;
}

/* Dekoracyjny cudzysłów */
.single-article__body blockquote::before {
    content: '\201C';
    position: absolute;
    top: -0.8rem;
    left: 1rem;
    font-size: 6rem;
    line-height: 1;
    color: var(--pm-accent);
    opacity: 0.12;
    font-family: Georgia, 'Times New Roman', serif;
    font-style: normal;
    pointer-events: none;
    user-select: none;
}

.single-article__body blockquote p {
    margin-bottom: 0;
    font-size: inherit;
    color: inherit;
    position: relative;
    z-index: 1;
}

.single-article__body blockquote cite,
.single-article__body blockquote footer {
    display: block;
    margin-top: 1rem;
    font-size: 0.875rem;
    font-style: normal;
    color: #6c7a8c;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.single-article__body blockquote cite::before,
.single-article__body blockquote footer::before {
    content: '— ';
    color: var(--pm-accent);
}

/* ── FAQ (details / summary) ── */
.single-article__body details {
    margin-bottom: 0.6rem;
    border: 1px solid #e8edf5;
    border-radius: 12px;
    background: #fff;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(92, 61, 153, 0.04);
    transition: box-shadow var(--pm-transition);
}

.single-article__body details[open] {
    box-shadow: 0 8px 24px rgba(92, 61, 153, 0.09);
    border-color: #d4dcec;
}

.single-article__body summary {
    cursor: pointer;
    padding: 1rem 1.25rem;
    font-weight: 700;
    font-size: 1rem;
    color: var(--pm-primary);
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    user-select: none;
    transition: background var(--pm-transition), color var(--pm-transition);
}

.single-article__body summary::-webkit-details-marker {
    display: none;
}

.single-article__body details[open] > summary {
    background: #f8faff;
    color: var(--pm-accent);
    border-bottom: 1px solid #edf0f5;
}

/* Ikona +/− po prawej */
.single-article__body summary::after {
    content: '+';
    flex-shrink: 0;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #f0f3f8;
    color: var(--pm-primary);
    font-size: 1.1rem;
    font-weight: 400;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background var(--pm-transition), color var(--pm-transition), transform var(--pm-transition);
}

.single-article__body details[open] > summary::after {
    content: '−';
    background: var(--pm-accent);
    color: #fff;
    transform: rotate(0deg);
}

/* Treść odpowiedzi */
.single-article__body details > :not(summary) {
    padding: 1rem 1.25rem;
    font-size: 1rem;
    color: #4a5770;
    line-height: 1.7;
}

.single-article__body details p {
    font-size: 1rem;
    color: #4a5770;
    margin-bottom: 0.5rem;
}

.single-article__body details p:last-child {
    margin-bottom: 0;
}

/* Grupowanie FAQ — nagłówek sekcji FAQ */
.single-article__body .faq-title,
.single-article__body h2.faq,
.single-article__body h3.faq {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 1.4rem;
    margin-bottom: 1.25rem;
}

.single-article__body .faq-title::before,
.single-article__body h2.faq::before,
.single-article__body h3.faq::before {
    content: 'FAQ';
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    background: var(--pm-accent);
    color: #fff;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    vertical-align: middle;
}

.single-article__footer {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 1rem;
    border-top: 1px solid #e3e8f2;
    margin-top: 2rem;
    padding-top: 1.5rem;
    align-items: center;
}

.single-article__tags {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #6c7a8c;
}

.single-article__share {
    display: flex;
    gap: 1rem;
    align-items: center;
    font-weight: 600;
}

.single-article__share-buttons {
    display: flex;
    gap: 0.5rem;
}
.single-article__share-buttons a {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid #d4dcec;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #5c3d99;
    font-size: 0.95rem;
    transition: background var(--pm-transition), color var(--pm-transition), border-color var(--pm-transition), transform var(--pm-transition);
}
.single-article__share-buttons a:hover {
    background: var(--pm-primary);
    color: #fff;
    border-color: var(--pm-primary);
    transform: scale(1.1);
}

.single-author-box {
    display: grid;
    grid-template-columns: 96px 1fr;
    gap: 1.25rem;
    align-items: center;
    margin-top: 2rem;
    padding: 1.5rem;
    border: 1px solid #e3e8f2;
    border-radius: 18px;
    background: linear-gradient(135deg, #f8faff 0%, #fff 100%);
}

.single-author-box__avatar {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--pm-primary);
    color: #fff;
    flex-shrink: 0;
}

.single-author-box__avatar-img,
.single-author-box__initials {
    width: 96px;
    height: 96px;
    border-radius: 50%;
}

.single-author-box__avatar-img {
    display: block;
    object-fit: cover;
}

.single-author-box__initials {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.single-author-box__eyebrow {
    display: block;
    margin-bottom: 0.25rem;
    color: var(--pm-accent);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.single-author-box__name {
    margin: 0 0 0.45rem;
    font-size: 1.25rem;
}

.single-author-box__name a {
    color: var(--pm-primary);
}

.single-author-box__bio {
    margin: 0;
    color: #4a5770;
    line-height: 1.65;
}

.related-posts {
    margin-top: 3rem;
    margin-bottom: 4rem;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.2rem;
}

/* Category */
.category-hero {
    position: relative;
    min-height: 50vh;
    display: flex;
    align-items: flex-end;
    color: #fff;
    overflow: hidden;
}

.category-hero__content p {
    max-width: 720px;
    color: #dfe8ff;
    font-size: 1.05rem;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    margin-top: -5rem;
    position: relative;
    z-index: 3;
}

.category-feature {
    grid-column: span 2;
    background: linear-gradient(135deg, #1a273a, #101d30);
    color: #fff;
}

.category-feature h2 a {
    color: #fff;
}

.category-feature p {
    color: #dfe3f1;
}

/* Contact Page */
.contact-page {
    background: #f4f4f4;
}

.contact-hero {
    position: relative;
    min-height: 45vh;
    background: linear-gradient(135deg, var(--pm-primary), #050912);
    color: #fff;
    display: flex;
    align-items: flex-end;
}

.contact-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.85) 90%);
}

.contact-hero__content {
    position: relative;
    z-index: 2;
    padding: 4rem 0 3rem;
}

.contact-hero__kicker {
    text-transform: uppercase;
    letter-spacing: 0.4em;
    font-size: 0.85rem;
    margin-bottom: 1rem;
    color: #9dc1ff;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.2rem;
    margin-top: -3rem;
    position: relative;
    z-index: 3;
}

.contact-card {
    background: #fff;
    border-radius: 18px;
    padding: 1.5rem;
    box-shadow: 0 20px 40px rgba(92, 61, 153, 0.15);
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.contact-card__icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(92, 61, 153, 0.08);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--pm-primary);
    font-size: 1.2rem;
}

.contact-card__label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: #6c7a8c;
}

.contact-card__value {
    font-size: 1.1rem;
    font-weight: 600;
    color: #5c3d99;
    text-decoration: none;
}

.contact-form-wrapper {
    margin-top: 3rem;
    background: #fff;
    border: 1px solid var(--pm-border);
    border-radius: var(--pm-radius-md);
    padding: clamp(1.5rem, 4vw, 2.5rem);
    box-shadow: 0 18px 44px rgba(92, 61, 153, 0.12);
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    gap: clamp(1.5rem, 4vw, 2.5rem);
    align-items: start;
}

.contact-form__content h2 {
    margin-bottom: 0.75rem;
}

.contact-form__content p {
    color: var(--pm-text-muted);
}

.contact-form__form form,
.contact-form__form .wpcf7-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-basic-form__group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.contact-basic-form__group label,
.contact-form__form label {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--pm-primary);
}

.contact-basic-form__group input,
.contact-basic-form__group textarea,
.contact-form__form input[type="text"],
.contact-form__form input[type="email"],
.contact-form__form input[type="tel"],
.contact-form__form textarea {
    width: 100%;
    padding: 0.85rem 0.95rem;
    border-radius: var(--pm-radius-sm);
    border: 1px solid var(--pm-border);
    font-size: 1rem;
    font-family: var(--pm-body-font);
    background: #fbfcfe;
    transition: border-color var(--pm-transition), box-shadow var(--pm-transition), background var(--pm-transition);
}

.contact-basic-form__group input:focus,
.contact-basic-form__group textarea:focus,
.contact-form__form input[type="text"]:focus,
.contact-form__form input[type="email"]:focus,
.contact-form__form input[type="tel"]:focus,
.contact-form__form textarea:focus {
    outline: none;
    border-color: var(--pm-accent);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.14);
}

.contact-form__form textarea {
    min-height: 150px;
    resize: vertical;
}

.contact-form__form input[type="submit"],
.contact-basic-form .more-button {
    align-self: flex-start;
    border: 0;
    cursor: pointer;
}

.contact-map {
    margin-top: 2rem;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(92, 61, 153, 0.15);
}

.contact-map iframe {
    width: 100%;
    min-height: 360px;
    border: 0;
}

.contact-content {
    margin-top: 2rem;
    background: #fff;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 15px 45px rgba(92, 61, 153, 0.1);
}

@media (max-width: 900px) {
    .single-article {
        padding: 2rem;
        margin-top: -2rem;
    }
    .category-grid {
        grid-template-columns: 1fr;
    }
    .category-feature {
        grid-column: span 1;
    }
    .contact-form-wrapper {
        grid-template-columns: 1fr;
        padding: 2rem;
    }
    .contact-grid {
        margin-top: -1.5rem;
    }
}

/* Extra small screens */
@media (max-width: 480px) {
    .logo-text a {
        font-size: 1.5rem;
    }
    .logo-box {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .newsletter-bar {
        padding: 2rem 0;
    }
    .newsletter-bar__text h2 {
        font-size: 1.5rem;
    }
    .section-title {
        font-size: 1.3rem;
    }
    .single-article {
        padding: 1.25rem;
        margin-top: -1rem;
        border-radius: 16px;
    }
    .single-hero h1 {
        font-size: clamp(1.6rem, 6vw, 2.4rem);
    }
    .related-grid {
        grid-template-columns: 1fr;
    }
    .footer-container {
        grid-template-columns: 1fr;
    }
    .latest-news-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    .category-links {
        display: flex;
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    .category-links a {
        margin-left: 0;
    }
    .single-article__footer {
        flex-direction: column;
    }
    .single-author-box {
        grid-template-columns: 1fr;
        text-align: center;
        justify-items: center;
    }
}

/* Reading progress bar */
.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: var(--pm-accent);
    z-index: 9999;
    width: 0%;
    transition: width 0.1s linear;
    pointer-events: none;
}

/* Pagination */
.nav-links {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin: 2rem 0;
    flex-wrap: wrap;
}
.page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 0.75rem;
    border-radius: var(--pm-radius-sm);
    border: 1px solid var(--pm-border);
    background: #fff;
    color: var(--pm-primary);
    font-weight: 600;
    font-size: 0.9rem;
    transition: background var(--pm-transition), color var(--pm-transition), border-color var(--pm-transition);
}
.page-numbers:hover,
.page-numbers.current {
    background: var(--pm-primary);
    color: #fff;
    border-color: var(--pm-primary);
}
.page-numbers.dots {
    border: none;
    background: transparent;
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    .reading-progress {
        transition: none;
    }
}

/* ═══════════════════════════════════════════════════════════
   LAYOUT: SIATKA
   ═══════════════════════════════════════════════════════════ */

/* 4-column equal grid for "Najnowsze" */
.latest-grid-4col {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.grid-card {
    background: #fff;
    border-radius: var(--pm-radius-md);
    box-shadow: var(--pm-shadow-sm);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform var(--pm-transition), box-shadow var(--pm-transition);
}
.grid-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--pm-shadow-md);
}
.grid-card__thumb {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/10;
}
.grid-card__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}
.grid-card:hover .grid-card__thumb img {
    transform: scale(1.04);
}
.grid-card__body {
    padding: 1rem 1.1rem 1.2rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.grid-card__body h3 {
    font-size: 0.95rem;
    line-height: 1.45;
    margin-bottom: 0.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.grid-card__body h3 a {
    color: var(--pm-primary);
    text-decoration: none;
}
.grid-card__body h3 a:hover {
    color: var(--pm-accent);
}
.grid-card__body p {
    font-size: 0.85rem;
    color: var(--pm-text-muted);
    margin-bottom: 0.75rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}
.grid-card__body .article-meta {
    margin-top: auto;
}

/* Section strip layout (Siatka content sections) */
.news-strip {
    background: #fff;
    border-radius: var(--pm-radius-lg);
    box-shadow: var(--pm-shadow-sm);
    padding: 1.75rem 2rem;
    margin-bottom: 2rem;
}
.news-strip__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--pm-border);
}
.news-strip__header .section-title {
    margin: 0;
    font-size: 1.15rem;
}
.news-strip__header .section-title::before {
    display: none;
}
.news-strip--accented {
    border-left: 4px solid var(--sec-color, var(--pm-primary));
    padding-left: calc(2rem - 4px);
}
.news-strip--accented .news-strip__header {
    border-bottom-color: var(--sec-color, var(--pm-border));
}
.news-strip--accented .news-strip__header .section-title {
    color: var(--sec-color, inherit);
}
.news-strip__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}
.news-strip__featured {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.news-strip__featured-img {
    overflow: hidden;
    border-radius: var(--pm-radius-sm);
    aspect-ratio: 16/9;
}
.news-strip__featured-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}
.news-strip__featured:hover .news-strip__featured-img img {
    transform: scale(1.03);
}
.news-strip__featured-body h3 {
    font-size: 1rem;
    line-height: 1.45;
    margin-bottom: 0.35rem;
}
.news-strip__featured-body h3 a {
    color: var(--pm-primary);
    text-decoration: none;
}
.news-strip__featured-body h3 a:hover {
    color: var(--pm-accent);
}
.news-strip__featured-body p {
    font-size: 0.88rem;
    color: var(--pm-text-muted);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 0.5rem;
}
.news-strip__aside {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
    border-left: 1px solid var(--pm-border);
    padding-left: 1.5rem;
}
.news-strip__item {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
}
.news-strip__item img {
    width: 72px;
    height: 54px;
    object-fit: cover;
    border-radius: var(--pm-radius-sm);
    flex-shrink: 0;
}
.news-strip__item h4 {
    font-size: 0.88rem;
    line-height: 1.4;
    margin-bottom: 0.25rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.news-strip__item h4 a {
    color: var(--pm-primary);
    text-decoration: none;
}
.news-strip__item h4 a:hover {
    color: var(--pm-accent);
}

/* ─── Section style: Grid ─── */
.news-strip__grid--equal {
    grid-template-columns: repeat(4, 1fr);
}
.news-strip__card {
    display: flex;
    flex-direction: column;
}
.news-strip__card-img {
    aspect-ratio: 4/3;
    overflow: hidden;
    border-radius: var(--pm-radius-sm);
    margin-bottom: 0.75rem;
}
.news-strip__card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.news-strip__card:hover .news-strip__card-img img {
    transform: scale(1.04);
}
.news-strip__card-body .article-cat-badge {
    display: inline-block;
    font-size: 0.7rem;
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    background: var(--pm-primary);
    color: #fff;
    text-decoration: none;
    margin-bottom: 0.4rem;
}
.news-strip__card-body h4 {
    font-size: 0.88rem;
    line-height: 1.45;
    margin-bottom: 0.3rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.news-strip__card-body h4 a {
    color: var(--pm-primary);
    text-decoration: none;
}
.news-strip__card-body h4 a:hover { color: var(--pm-accent); }

/* ─── Section style: Editorial ─── */
.news-strip__editorial {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 1.25rem;
    align-items: start;
}
.news-strip__ed-main {
    border-radius: var(--pm-radius-sm);
    overflow: hidden;
    background: var(--pm-surface, #fff);
    border: 1px solid var(--pm-border);
}
.news-strip__ed-img img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
}
.news-strip__ed-body {
    padding: 1rem;
}
.news-strip__ed-body h3 {
    font-size: 1.15rem;
    line-height: 1.35;
    margin: 0.4rem 0 0.5rem;
}
.news-strip__ed-body h3 a,
.news-strip__ed-item-body h4 a {
    color: var(--pm-primary);
    text-decoration: none;
}
.news-strip__ed-body h3 a:hover,
.news-strip__ed-item-body h4 a:hover {
    color: var(--pm-accent);
}
.news-strip__ed-body p {
    font-size: 0.875rem;
    color: var(--pm-text-muted);
    margin: 0 0 0.5rem;
}
.news-strip__ed-sidebar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.single-hero--page {
    min-height: 45vh;
    background: linear-gradient(135deg, var(--pm-primary), #111827);
}

.single-article--page {
    margin-bottom: 4rem;
}
.news-strip__ed-item {
    display: grid;
    grid-template-columns: 72px 1fr;
    gap: 0.6rem;
    align-items: center;
    background: var(--pm-surface, #fff);
    border: 1px solid var(--pm-border);
    border-radius: var(--pm-radius-sm);
    overflow: hidden;
}
.news-strip__ed-item-img img {
    width: 72px;
    height: 54px;
    object-fit: cover;
    display: block;
}
.news-strip__ed-item-body {
    padding: 0.35rem 0.5rem 0.35rem 0;
}
.news-strip__ed-item-body h4 {
    font-size: 0.85rem;
    line-height: 1.3;
    margin: 0 0 0.25rem;
}

/* ─── Section style: List ─── */
.news-strip__magazine {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}
.news-strip__mag-main {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.7fr);
    gap: 1.25rem;
    align-items: stretch;
    border: 1px solid var(--pm-border);
    border-radius: var(--pm-radius-md);
    overflow: hidden;
    background: #fff;
}
.news-strip__mag-img {
    min-height: 260px;
    overflow: hidden;
}
.news-strip__mag-img img,
.news-strip__mag-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}
.news-strip__mag-main:hover .news-strip__mag-img img,
.news-strip__mag-card:hover .news-strip__mag-card-img img {
    transform: scale(1.04);
}
.news-strip__mag-body {
    padding: 1.5rem 1.5rem 1.5rem 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.news-strip__mag-body h3 {
    font-size: 1.35rem;
    line-height: 1.28;
    margin-bottom: 0.75rem;
}
.news-strip__mag-body h3 a,
.news-strip__mag-card-body h4 a {
    color: var(--pm-primary);
    text-decoration: none;
}
.news-strip__mag-body h3 a:hover,
.news-strip__mag-card-body h4 a:hover {
    color: var(--pm-accent);
}
.news-strip__mag-body p {
    color: var(--pm-text-muted);
    margin-bottom: 0.85rem;
}
.news-strip__mag-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}
.news-strip__mag-card {
    border: 1px solid var(--pm-border);
    border-radius: var(--pm-radius-sm);
    overflow: hidden;
    background: #fff;
}
.news-strip__mag-card-img {
    aspect-ratio: 16 / 9;
    overflow: hidden;
}
.news-strip__mag-card-body {
    padding: 0.85rem 0.95rem 1rem;
}
.news-strip__mag-card-body h4 {
    font-size: 0.9rem;
    line-height: 1.42;
    margin-bottom: 0.4rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-strip__list {
    display: flex;
    flex-direction: column;
}
.news-strip__list-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--pm-border);
}
.news-strip__list-item:last-child { border-bottom: none; }
.news-strip__list-img {
    width: 110px;
    flex-shrink: 0;
    aspect-ratio: 4/3;
    overflow: hidden;
    border-radius: var(--pm-radius-sm);
}
.news-strip__list-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.news-strip__list-item:hover .news-strip__list-img img { transform: scale(1.04); }
.news-strip__list-body h4 {
    font-size: 0.92rem;
    line-height: 1.45;
    margin-bottom: 0.3rem;
}
.news-strip__list-body h4 a {
    color: var(--pm-primary);
    text-decoration: none;
}
.news-strip__list-body h4 a:hover { color: var(--pm-accent); }
.news-strip__list-body p {
    font-size: 0.82rem;
    color: var(--pm-muted);
    margin-bottom: 0.3rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ─── Single: Sidebar layout ─── */
.single-hero--compact {
    max-height: 380px;
}
.single-sidebar-wrap {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 2.5rem;
    padding-top: 2rem;
    padding-bottom: 3rem;
    align-items: start;
}
.single-sidebar {
    position: sticky;
    top: 90px;
}
.single-sidebar__widget {
    background: var(--pm-surface, #f8fafc);
    border-radius: var(--pm-radius);
    padding: 1.25rem;
    margin-bottom: 1.25rem;
    border: 1px solid var(--pm-border);
}
.single-sidebar__title {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--pm-muted);
    margin-bottom: 0.85rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--pm-primary);
}
.sidebar-post {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    padding: 0.6rem 0;
    border-bottom: 1px solid var(--pm-border);
}
.sidebar-post:last-child { border-bottom: none; }
.sidebar-post img {
    width: 64px;
    height: 48px;
    object-fit: cover;
    border-radius: var(--pm-radius-sm);
    flex-shrink: 0;
}
.sidebar-post h5 {
    font-size: 0.82rem;
    line-height: 1.4;
    margin-bottom: 0.2rem;
}
.sidebar-post h5 a {
    color: var(--pm-primary);
    text-decoration: none;
}
.sidebar-post h5 a:hover { color: var(--pm-accent); }
.sidebar-cats {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}
.sidebar-cats li a {
    font-size: 0.85rem;
    color: var(--pm-primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}
.sidebar-cats li a::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--pm-accent);
    flex-shrink: 0;
}
.sidebar-cats li a:hover { color: var(--pm-accent); }

/* ─── Single: Minimal layout ─── */
.single-content--minimal .single-minimal-header {
    padding-top: 3rem;
    padding-bottom: 1.5rem;
    text-align: center;
    max-width: 820px;
    margin: 0 auto;
}
.single-content--minimal .single-minimal-header h1 {
    font-size: clamp(1.6rem, 4vw, 2.4rem);
}
.single-content--minimal .single-minimal-header .single-hero__meta {
    justify-content: center;
}
.single-minimal-image {
    max-width: 900px;
    margin: 0 auto 2.5rem;
    border-radius: var(--pm-radius-lg);
    overflow: hidden;
    aspect-ratio: 16/9;
}
.single-minimal-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.single-article--centered {
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}

/* ─── Single: Magazine layout ─── */
.single-magazine-hero {
    width: 100%;
    max-height: 540px;
    overflow: hidden;
}
.single-magazine-hero__img {
    width: 100%;
    height: 540px;
    object-fit: cover;
    display: block;
}
.single-content--magazine .single-magazine-meta {
    max-width: 860px;
    margin: 0 auto 2rem;
    background: #fff;
    border: 1px solid var(--pm-border);
    border-top: none;
    border-radius: 0 0 var(--pm-radius-md) var(--pm-radius-md);
    padding: 2rem 2rem 1.5rem;
    box-shadow: var(--pm-shadow-sm);
}
.single-content--magazine .single-magazine-meta h1 {
    font-size: clamp(1.6rem, 3.5vw, 2.6rem);
    margin: 0.5rem 0 0.75rem;
}
.single-content--magazine .single-hero__category {
    margin-bottom: 0.25rem;
}

/* ─── Single: Split layout ─── */
.single-split-hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 480px;
}
.single-split-hero__image {
    overflow: hidden;
}
.single-split-hero__image img {
    width: 100%;
    height: 100%;
    min-height: 480px;
    object-fit: cover;
    display: block;
}
.single-split-hero__panel {
    background: linear-gradient(150deg, var(--pm-primary) 0%, #1a0e3a 100%);
    display: flex;
    align-items: center;
    padding: 3rem 2.5rem;
}
.single-split-hero__content {
    color: #fff;
}
.single-split-hero__content .single-hero__category {
    color: var(--pm-accent);
    background: rgba(255, 107, 53, 0.15);
    border-color: rgba(255, 107, 53, 0.4);
}
.single-split-hero__content h1 {
    color: #fff;
    font-size: clamp(1.4rem, 2.8vw, 2.2rem);
    margin: 0.75rem 0;
}
.single-split-hero__content .single-hero__meta {
    color: rgba(255, 255, 255, 0.75);
    justify-content: flex-start;
}

/* ─── Responsive: section styles & single layouts ─── */
@media (max-width: 900px) {
    .news-strip__grid--equal {
        grid-template-columns: repeat(2, 1fr);
    }
    .news-strip__editorial {
        grid-template-columns: 1fr;
    }
    .news-strip__ed-sidebar {
        grid-template-columns: repeat(2, 1fr);
    }
    .news-strip__mag-main {
        grid-template-columns: 1fr;
    }
    .news-strip__mag-body {
        padding: 1.25rem;
    }
    .news-strip__mag-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .single-sidebar-wrap {
        grid-template-columns: 1fr;
    }
    .single-sidebar {
        position: static;
    }
}
@media (max-width: 600px) {
    .news-strip__grid--equal {
        grid-template-columns: 1fr 1fr;
    }
    .news-strip__list-img {
        width: 80px;
    }
    .news-strip__ed-item {
        grid-template-columns: 72px 1fr;
    }
    .news-strip__ed-item-img img {
        width: 72px;
        height: 52px;
    }
    .news-strip__ed-sidebar {
        grid-template-columns: 1fr;
    }
    .news-strip__mag-grid {
        grid-template-columns: 1fr;
    }
    .news-section--dark .article-grid {
        grid-template-columns: 1fr;
    }
    .single-minimal-image {
        border-radius: 0;
        margin-left: -1rem;
        margin-right: -1rem;
        max-width: calc(100% + 2rem);
    }
}

/* Small "Więcej" variant */
.more-button--small {
    font-size: 0.8rem;
    padding: 0.35rem 0.85rem;
}

/* Light section wrapper for layouts that use a white background */
.section-wrapper--light {
    background: #f5f7fa;
}

/* Responsive: Siatka */
@media (max-width: 1100px) {
    .latest-grid-4col {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 640px) {
    .latest-grid-4col {
        grid-template-columns: 1fr;
    }
    .news-strip__grid {
        grid-template-columns: 1fr;
    }
    .news-strip__aside {
        border-left: none;
        padding-left: 0;
        border-top: 1px solid var(--pm-border);
        padding-top: 1rem;
    }
}


/* ═══════════════════════════════════════════════════════════
   LAYOUT: MAGAZYN
   ═══════════════════════════════════════════════════════════ */

/* Full-width hero article */
.mag-hero {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 2rem;
    align-items: center;
    margin-bottom: 2.5rem;
    background: #fff;
    border-radius: var(--pm-radius-lg);
    box-shadow: var(--pm-shadow-md);
    overflow: hidden;
}
.mag-hero__img {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/9;
}
.mag-hero__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}
.mag-hero:hover .mag-hero__img img {
    transform: scale(1.03);
}
.mag-hero__body {
    padding: 2rem 2rem 2rem 0;
}
.mag-hero__body h2 {
    font-size: clamp(1.25rem, 2vw, 1.6rem);
    line-height: 1.35;
    margin-bottom: 0.75rem;
}
.mag-hero__body h2 a {
    color: var(--pm-primary);
    text-decoration: none;
}
.mag-hero__body h2 a:hover {
    color: var(--pm-accent);
}
.mag-hero__body p {
    font-size: 0.95rem;
    color: var(--pm-text-muted);
    line-height: 1.65;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 3-column grid below hero */
.mag-grid-3col {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}
.mag-card {
    background: #fff;
    border-radius: var(--pm-radius-md);
    box-shadow: var(--pm-shadow-sm);
    overflow: hidden;
    transition: transform var(--pm-transition), box-shadow var(--pm-transition);
}
.mag-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--pm-shadow-md);
}
.mag-card__thumb {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/10;
}
.mag-card__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}
.mag-card:hover .mag-card__thumb img {
    transform: scale(1.04);
}
.mag-card__body {
    padding: 1rem 1.1rem 1.2rem;
}
.mag-card__body h3 {
    font-size: 0.95rem;
    line-height: 1.45;
    margin-bottom: 0.4rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.mag-card__body h3 a {
    color: var(--pm-primary);
    text-decoration: none;
}
.mag-card__body h3 a:hover {
    color: var(--pm-accent);
}

/* Magazine content sections (white background, featured + list) */
.mag-section {
    background: #fff;
    border-radius: var(--pm-radius-lg);
    box-shadow: var(--pm-shadow-sm);
    padding: 1.75rem 2rem;
    margin-bottom: 2rem;
}
.mag-section__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 3px solid var(--pm-accent);
}
.mag-section__header .section-title {
    margin: 0;
    font-size: 1.15rem;
    padding-left: 0;
}
.mag-section__header .section-title::before {
    display: none;
}
.mag-section__body {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 2rem;
    align-items: start;
}
.mag-section__featured {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.mag-section__featured img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    border-radius: var(--pm-radius-sm);
    display: block;
}
.mag-section__featured h3 {
    font-size: 1rem;
    line-height: 1.45;
    margin-bottom: 0.35rem;
}
.mag-section__featured h3 a {
    color: var(--pm-primary);
    text-decoration: none;
}
.mag-section__featured h3 a:hover {
    color: var(--pm-accent);
}
.mag-section__featured p {
    font-size: 0.88rem;
    color: var(--pm-text-muted);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 0.5rem;
}
.mag-section__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
    border-left: 1px solid var(--pm-border);
    padding-left: 1.75rem;
}
.mag-section__list-item {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--pm-border);
}
.mag-section__list-item:last-child {
    border-bottom: none;
}
.mag-section__list-item img {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: var(--pm-radius-sm);
    flex-shrink: 0;
}
.mag-section__list-item h4 {
    font-size: 0.88rem;
    line-height: 1.4;
    margin-bottom: 0.3rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.mag-section__list-item h4 a {
    color: var(--pm-primary);
    text-decoration: none;
}
.mag-section__list-item h4 a:hover {
    color: var(--pm-accent);
}

/* Układy stopki: Wyśrodkowany (Centered) */
.site-footer--layout-centered {
    text-align: center;
}

.site-footer--layout-centered .footer-column h4::after {
    left: 50%;
    transform: translateX(-50%);
}

.site-footer--layout-centered .newsletter-input-group {
    justify-content: center;
}

.site-footer--layout-centered .newsletter-input-group input {
    flex-grow: 0;
    width: 60%;
}

.site-footer--layout-centered .footer-bottom-bar__inner {
    flex-direction: column;
    justify-content: center;
    gap: 1.5rem;
}

/* Układy stopki: Minimalistyczny (Minimal) */
.site-footer--layout-minimal {
    padding-top: 0;
}

.site-footer--layout-minimal .footer-container {
    display: none;
    /* Całkowicie ukrywa 4 kolumny */
}

.site-footer--layout-minimal .footer-bottom-bar {
    border-top: none;
    margin-top: 0;
    background: transparent;
}

.site-footer--layout-minimal .footer-bottom-bar__inner {
    justify-content: center;
    flex-direction: column;
    text-align: center;
}

/* Układy nagłówka (desktop) */
@media (min-width: 1025px) {

    /* 1. Układ Wyśrodkowany (Centered) */
    .site-header--layout-centered .header-container {
        flex-direction: column;
        justify-content: center;
        gap: 1.25rem;
        position: relative;
    }

    .site-header--layout-centered .social-media {
        position: absolute;
        right: 0;
        top: 50%;
        transform: translateY(-50%);
    }

    /* 2. Układ Kompaktowy (Compact) */
    .site-header--layout-compact .main-nav {
        flex: 1;
        display: flex;
        justify-content: flex-end;
        padding-right: 1.5rem;
    }

    .site-header--layout-compact .main-nav ul {
        justify-content: flex-end;
    }

    .site-header--layout-compact .social-media {
        display: none;
    }

}

/* Responsive: Magazyn */
@media (max-width: 1024px) {
    .mag-hero {
        grid-template-columns: 1fr;
    }
    .mag-hero__body {
        padding: 0 1.5rem 1.5rem;
    }
    .mag-grid-3col {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 640px) {
    .mag-grid-3col {
        grid-template-columns: 1fr;
    }
    .mag-section__body {
        grid-template-columns: 1fr;
    }
    .mag-section__list {
        border-left: none;
        padding-left: 0;
        border-top: 1px solid var(--pm-border);
        padding-top: 1rem;
    }
}


/* ============================================================================
   HERO SLIDER (DYNAMICZNA KARUZELA WPISÓW)
   ============================================================================ */
.hero-slider-section {
    background: var(--hero-slider-section-bg, #f4f4f4);
    padding: 1.5rem 0 2rem;
}

.hero-slider {
    position: relative;
    height: var(--hero-slider-height, 480px);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.hero-slider__slides {
    position: relative;
    width: 100%;
    height: 100%;
}

.hero-slider__slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease-in-out, visibility 0.8s ease-in-out;
    display: flex;
    align-items: flex-end;
    padding: 3rem;
}

.hero-slider__slide--active {
    opacity: 1;
    visibility: visible;
}

.hero-slider__slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 6s ease-out;
}

.hero-slider__slide--active .hero-slider__slide-bg {
    transform: scale(1.05);
}

.hero-slider__slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.3) 50%, rgba(0,0,0,0.1) 100%);
}

.hero-slider--overlay-primary .hero-slider__slide-overlay {
    background: linear-gradient(to top, rgba(92,61,153,0.9) 0%, rgba(92,61,153,0.36) 52%, rgba(92,61,153,0.12) 100%);
}

.hero-slider--overlay-accent .hero-slider__slide-overlay {
    background: linear-gradient(to top, rgba(176,48,40,0.9) 0%, rgba(255,107,53,0.34) 52%, rgba(255,107,53,0.1) 100%);
}

.hero-slider__slide-content {
    position: relative;
    z-index: 10;
    max-width: 650px;
    background: var(--hero-slider-card-bg, rgba(255, 255, 255, 0.1));
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 2rem;
    border-radius: 12px;
    color: #ffffff;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    animation: sliderFadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-slider--split .hero-slider__slide {
    align-items: stretch;
    justify-content: flex-end;
    padding: 0;
}

.hero-slider--split .hero-slider__slide-content {
    width: min(460px, 44%);
    max-width: none;
    min-height: 100%;
    border-radius: 0;
    border: 0;
    border-left: 4px solid var(--pm-accent);
    background: rgba(17, 24, 39, 0.92);
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-shadow: -18px 0 50px rgba(0, 0, 0, 0.28);
}

.hero-slider--split .hero-slider__slide-overlay {
    background: linear-gradient(to right, rgba(0,0,0,0.12) 0%, rgba(0,0,0,0.45) 100%);
}

.hero-slider--split.hero-slider--overlay-primary .hero-slider__slide-content {
    background: rgba(50, 32, 92, 0.94);
}

.hero-slider--split.hero-slider--overlay-accent .hero-slider__slide-content {
    background: rgba(111, 43, 31, 0.94);
}

@keyframes sliderFadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-slider__category {
    display: inline-block;
    background: var(--accent-color, #ff6b35);
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 0.35rem 0.85rem;
    border-radius: 50px;
    margin-bottom: 1rem;
    box-shadow: 0 4px 10px rgba(255, 107, 53, 0.3);
}

.hero-slider__title {
    font-size: 2.25rem;
    font-weight: 800;
    line-height: 1.2;
    margin: 0 0 1rem 0;
    color: #ffffff;
}

.hero-slider__title a {
    color: #ffffff;
    text-decoration: none;
    transition: opacity 0.2s;
}

.hero-slider__title a:hover {
    opacity: 0.9;
}

.hero-slider__excerpt {
    font-size: 1rem;
    line-height: 1.5;
    margin: 0 0 1.5rem 0;
    color: rgba(255, 255, 255, 0.85);
}

.hero-slider__btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    font-size: 0.9rem;
    border-radius: 50px;
    transition: transform 0.2s, box-shadow 0.2s;
    background: var(--accent-color, #ff6b35);
    color: #ffffff;
    border: none;
    cursor: pointer;
    text-decoration: none;
}

.hero-slider__btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 107, 53, 0.4);
    background: var(--accent-dark, #e85520);
}

.hero-slider__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #ffffff;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 20;
    transition: background 0.3s, transform 0.2s;
}

.hero-slider__nav:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-50%) scale(1.05);
}

.hero-slider__nav--prev {
    left: 20px;
}

.hero-slider__nav--next {
    right: 20px;
}

.hero-slider__indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 20;
}

.hero-slider__indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    border: none;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
    padding: 0;
}

.hero-slider__indicator--active {
    background: var(--accent-color, #ff6b35);
    transform: scale(1.2);
    width: 24px;
    border-radius: 5px;
}

@media (max-width: 768px) {
    .hero-slider {
        height: 380px;
    }
    .hero-slider__slide {
        padding: 1.5rem;
    }
    .hero-slider__slide-content {
        padding: 1.25rem;
    }
    .hero-slider--split .hero-slider__slide {
        align-items: flex-end;
        padding: 1.5rem;
    }
    .hero-slider--split .hero-slider__slide-content {
        width: 100%;
        min-height: auto;
        border-radius: 12px;
        border-left: 0;
    }
    .hero-slider__title {
        font-size: 1.5rem;
    }
    .hero-slider__excerpt {
        font-size: 0.85rem;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        margin-bottom: 1rem;
    }
    .hero-slider__nav {
        display: none;
    }
}
