/* --- 1. FUNDAMENTY I ZMIENNE --- */

:root {
    --blue: #005A9C;
    --gold: #E1AD01;
    --light-blue: #87CEEB;
    --bg-light: #f9fbfd;
    --sand-light: #fdfaf3;
    --text-dark: #1a1a1a;
    --header-h: 70px;
    --primary: #023E8A;
    --accent: #E1AD01;
    --text: #333;
    --white: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', 'Segoe UI', sans-serif;
    color: var(--text);
    background: var(--white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}


/* --- 2. HEADER --- */
header {
    background: var(--white);
    height: var(--header-h);
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 9999;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
}

.nav-container {
    width: 95%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}


/* --- 3. LOGO --- */
.logo a {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo-icon svg {
    width: 45px;
    height: 45px;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-brand {
    font-family: 'Playfair Display', serif;
    font-weight: 900;
    font-size: 1.6rem;
    color: var(--primary);
    line-height: 1;
}

.logo-slogan {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--accent);
}

/* Efekty Hover logo */
.logo:hover .logo-icon svg {
    transform: rotate(-10deg) scale(1.1);
}

.logo:hover .logo-brand {
    filter: brightness(1.2);
}

.logo:hover .logo-slogan {
    color: #0077B6;
    letter-spacing: 4px;
    transition: all 0.4s ease;
}


/* --- 4. MENU DESKTOP --- */
.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 5px;
}

.nav-menu>li {
    position: relative;
}

.nav-menu a {
    display: block;
    padding: 10px 15px;
    color: var(--text);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: 0.3s;
}

.nav-menu a:hover {
    color: var(--primary);
}

/* Dropdown Desktop */
.dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    min-width: 220px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    list-style: none;
    padding: 10px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: 0.3s;
    border-radius: 4px;
}

.has-children:hover .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown li a {
    padding: 10px 20px;
    font-size: 0.9rem;
    font-weight: 400;
}

/* Hamburger – ukryty domyślnie na desktopie */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--primary);
}


/* --- 5. HERO --- */
.hero {
    height: 85vh;
    margin-top: 70px;
    background-color: #005A9C;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    color: white;
    text-align: center;
    overflow: hidden;
}

.hero-inner-container {
    max-width: 1050px;
    padding: 0 25px;
    z-index: 2;
}

.hero-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(5px);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    animation: fadeInDown 0.8s ease-out;
}

.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 900;
    line-height: 1.15;
    margin-bottom: 20px;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
    animation: fadeInUp 1s ease-out;
}

.hero-description {
    font-family: 'Inter', sans-serif;
    font-size: clamp(1rem, 1.8vw, 1.2rem);
    max-width: 600px;
    margin: 0 auto 30px;
    opacity: 0.95;
    font-weight: 300;
    animation: fadeInUp 1.2s ease-out;
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.8);
}

.hero-btn-primary {
    background-color: #E1AD01;
    color: #1a1a1a;
    padding: 14px 28px;
    text-decoration: none;
    font-weight: 700;
    border-radius: 4px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
}

.hero-btn-primary:hover {
    background-color: #f7c102;
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.3);
}

.hero-btn-secondary {
    background-color: transparent;
    color: white;
    padding: 14px 28px;
    text-decoration: none;
    font-weight: 600;
    border-radius: 4px;
    border: 2px solid white;
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-size: 0.85rem;
}

.hero-btn-secondary:hover {
    background-color: white;
    color: #005A9C;
}


.hero-meta {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
}

.hero-meta-pill {
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(5px);
    padding: 8px 20px;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    gap: 15px;
    align-items: center;
    color: #ffffff;
    font-size: 0.85rem;
    font-weight: 400;
}

.hero-meta-pill .material-symbols-outlined {
    font-size: 16px;
    color: var(--gold);
}

.meta-separator {
    color: rgba(255, 255, 255, 0.3);
}

@media (max-width: 768px) {
    .hero-meta-pill {
        flex-direction: column;
        gap: 5px;
        padding: 12px 20px;
        border-radius: 15px;
    }

    .meta-separator {
        display: none;
    }
}

/* Scroll Indicator */
.scroll-down {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.scroll-down:hover {
    opacity: 1;
}

.scroll-mouse {
    width: 26px;
    height: 42px;
    border: 2px solid white;
    border-radius: 20px;
    display: block;
    position: relative;
}

.scroll-wheel {
    width: 4px;
    height: 8px;
    background: white;
    border-radius: 2px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll-anim 2s infinite;
}

/* Animacje */
@keyframes scroll-anim {
    0% {
        transform: translate(-50%, 0);
        opacity: 1;
    }

    100% {
        transform: translate(-50%, 15px);
        opacity: 0;
    }
}

/* Zachowane niższe (aktualniejsze) wersje keyframes */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile (np. 768px and below) */
@media (max-width: 768px) {
    .hero-actions {
        display: flex !important;
        flex-direction: column !important;
        gap: 15px !important;
        width: 100%;
        max-width: 320px;
        margin: 0 auto;
    }

    .hero-btn-primary,
    .hero-btn-secondary {
        width: 100% !important;
        text-align: center;
        display: block;
        padding: 14px 20px;
    }
}


/* --- 6. WSTĘP MAGAZYNOWY --- */
.mag-intro {
    padding: 70px 0;
    background: var(--white);
}

.mag-container {
    max-width: 1050px;
    margin: 0 auto;
    padding: 0 25px;
}

.mag-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.mag-tag {
    color: var(--blue);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.75rem;
    white-space: nowrap;
}

.mag-line {
    height: 1px;
    background: #eee;
    width: 100%;
}

.mag-headline {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 35px;
    line-height: 1.2;
}

.mag-quote {
    background: var(--bg-light);
    padding: 30px 45px;
    border-radius: 4px;
    margin-bottom: 45px;
    text-align: center;
}

.mag-quote p {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: 1.2rem;
    color: #444;
    line-height: 1.6;
}

.mag-main-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 50px;
    margin-bottom: 35px;
}

.mag-text-column {
    font-size: 1.05rem;
    line-height: 1.75;
}

.drop-cap {
    float: left;
    font-family: 'Playfair Display', serif;
    font-size: 4rem;
    line-height: 0.8;
    margin-right: 12px;
    margin-top: 6px;
    color: var(--blue);
    font-weight: 700;
}

.mag-lead {
    font-size: 1.15rem;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.mag-features {
    background: var(--sand-light);
    padding: 25px;
    border-top: 3px solid var(--gold);
}

.mag-features h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    margin-bottom: 15px;
}

.mag-list {
    list-style: none;
}

.mag-list li {
    font-size: 0.95rem;
    margin-bottom: 12px;
    padding-left: 20px;
    position: relative;
}

.mag-list li::before {
    content: "•";
    color: var(--gold);
    position: absolute;
    left: 0;
    font-size: 1.2rem;
}

.mag-footer-area {
    border-top: 1px solid #eee;
    padding-top: 30px;
    font-size: 1rem;
}

.mag-final-call {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--blue);
    margin-top: 20px;
}

/* RWD dla wstępu i hero – unikalne reguły bez duplikatów menu */
@media (max-width: 768px) {
    .mag-main-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .hero {
        height: 100vh;
    }
}


/* --- 7. DLACZEGO KOS --- */
.mag-reasons {
    padding: 100px 0;
    background-color: #fff;
}

.mag-reasons-header {
    margin-bottom: 60px;
    text-align: left;
}

.mag-reasons-header .italic {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-weight: 400;
    color: var(--blue);
}

.mag-reasons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.reason-card {
    display: flex;
    gap: 20px;
    padding: 20px;
    transition: transform 0.3s ease;
    border-bottom: 1px solid #f0f0f0;
}

.reason-card:hover {
    transform: translateY(-5px);
}

.reason-number {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 900;
    color: rgba(0, 90, 156, 0.15);
    line-height: 1;
}

.reason-content h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.25rem;
    color: var(--text-dark);
    margin-bottom: 10px;
    font-weight: 700;
}

.reason-content p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #555;
    margin: 0;
}

@media (max-width: 768px) {
    .mag-reasons {
        padding: 60px 0;
    }

    .mag-reasons-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .reason-card {
        padding: 10px 0;
    }
}


/* --- 8. ATRAKCJE --- */
.mag-attractions {
    padding: 80px 0;
    background-color: #fdfdfd;
}

.mag-attractions .italic {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-weight: 400;
}

.mag-attractions-grid {
    display: flex;
    flex-direction: column;
    gap: 80px;
    margin-top: 50px;
}

.attraction-featured {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    align-items: center;
}

.attraction-featured.reverse {
    grid-template-columns: 1fr 1.2fr;
}

.attraction-img-wrapper {
    position: relative;
}

.attraction-img-wrapper img {
    width: 100%;
    height: 450px;
    object-fit: cover;
    border-radius: 2px;
    box-shadow: 20px 20px 0px #f1f1f1;
}

.img-caption {
    position: absolute;
    bottom: -20px;
    right: 20px;
    background: var(--blue);
    color: white;
    padding: 8px 15px;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.attraction-info h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.attraction-info p {
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 25px;
    color: #444;
}

.attractions-secondary-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.attraction-small img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    margin-bottom: 15px;
    filter: grayscale(20%);
    transition: 0.3s;
}

.attraction-small:hover img {
    filter: grayscale(0%);
}

.attraction-small h4 {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.attraction-small p {
    font-size: 0.9rem;
    line-height: 1.5;
}

.center {
    text-align: center;
}

@media (max-width: 992px) {

    .attraction-featured,
    .attraction-featured.reverse {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .attractions-secondary-grid {
        grid-template-columns: 1fr 1fr;
    }

    .attraction-img-wrapper img {
        height: 300px;
    }
}

@media (max-width: 600px) {
    .attractions-secondary-grid {
        grid-template-columns: 1fr;
    }
}


/* --- 9. LINK MAGAZYNOWY --- */
.mag-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--blue);
    text-decoration: none;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    position: relative;
    padding: 10px 0;
    transition: all 0.3s ease;
}

.mag-link span {
    transition: transform 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.mag-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: #E1AD01;
    transition: width 0.3s ease;
}

.mag-link:hover {
    color: #1a1a1a;
}

.mag-link:hover::after {
    width: 100%;
}

.mag-link:hover span {
    transform: translateX(8px);
}


/* --- 10. CTA MINIMALISTYCZNE --- */
.minimal-cta {
    padding: 100px 0;
    background-color: #ffffff;
}

.minimal-header {
    text-align: left;
    margin-bottom: 60px;
    border-left: 3px solid #E1AD01;
    padding-left: 25px;
}

.minimal-tag {
    font-family: 'Inter', sans-serif;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: #999;
    font-weight: 700;
}

.minimal-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    margin-top: 10px;
    color: #1a1a1a;
}

.minimal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 0;
    border-top: 1px solid #eee;
    border-left: 1px solid #eee;
}

.min-card {
    padding: 40px;
    background: #fff;
    border-right: 1px solid #eee;
    border-bottom: 1px solid #eee;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    transition: all 0.4s ease;
}

.min-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    color: #E1AD01;
}

.min-number {
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    color: #ddd;
}

.min-card-body h4 {
    font-family: 'Playfair Display', serif;
    font-size: 1.25rem;
    margin-bottom: 15px;
    transition: color 0.3s ease;
}

.min-card-body p {
    font-size: 0.9rem;
    color: #777;
    line-height: 1.6;
    margin-bottom: 30px;
}

.min-card-footer {
    margin-top: auto;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 1px;
    color: #1a1a1a;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.min-card-footer span:last-child {
    font-size: 1rem;
}

.min-card:hover {
    background: #fafafa;
}

.min-card:hover .min-card-body h4 {
    color: #005A9C;
}

.min-card:hover .min-card-footer {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 768px) {
    .minimal-grid {
        border-right: 1px solid #eee;
    }

    .min-card {
        padding: 30px;
    }
}


/* --- 11. STOPKA --- */
.mag-footer {
    padding: 80px 0 40px;
    background-color: #fcfcfc;
    border-top: 1px solid #eee;
    color: #444;
}

.footer-top-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 900;
    letter-spacing: 2px;
    margin-bottom: 20px;
    color: #1a1a1a;
}

.footer-logo span {
    color: #E1AD01;
    font-size: 0.9rem;
    vertical-align: top;
    margin-left: 5px;
}

.footer-about p {
    font-size: 0.9rem;
    line-height: 1.7;
    color: #666;
    max-width: 350px;
}

.footer-nav h3 {
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 25px;
    color: #999;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    text-decoration: none;
    color: #1a1a1a;
    font-size: 0.95rem;
    transition: color 0.3s ease, padding-left 0.3s ease;
}

.footer-links a:hover {
    color: #005A9C;
    padding-left: 5px;
}

.footer-bottom-bar {
    border-top: 1px solid #eee;
    padding-top: 40px;
}

.footer-disclaimer {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
    border: 1px solid #f0f0f0;
}

.footer-disclaimer span {
    color: #E1AD01;
}

.footer-disclaimer p {
    font-size: 0.85rem;
    color: #777;
    line-height: 1.5;
    margin: 0;
}

.footer-copyright {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: #999;
}

.footer-legal-nav {
    display: flex;
    gap: 20px;
}

.footer-legal-nav a {
    color: #999;
    text-decoration: none;
}

.footer-social-link {
    margin-top: 25px;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: #888;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 700;
    transition: all 0.3s ease;
    border: 1px solid #eee;
    padding: 10px 18px;
    border-radius: 4px;
}

.footer-social-link span.material-symbols-outlined {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.footer-social-link:hover {
    color: #005A9C;
    border-color: #005A9C;
    background-color: rgba(0, 90, 156, 0.03);
}

.footer-social-link:hover span.material-symbols-outlined {
    transform: rotate(15deg) scale(1.1);
}

.social-text {
    position: relative;
}

@media (max-width: 992px) {
    .footer-top-grid {
        grid-template-columns: 1fr 1fr;
    }

    .footer-about {
        grid-column: span 2;
        margin-bottom: 20px;
    }
}

@media (max-width: 600px) {
    .footer-top-grid {
        grid-template-columns: 1fr;
    }

    .footer-about {
        grid-column: span 1;
    }

    .footer-copyright {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}


/* --- 12. MOBILE STYLES (max 768px) --- */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .nav-menu {
        position: fixed;
        top: var(--header-h);
        left: -100%;
        width: 100%;
        height: calc(100vh - var(--header-h));
        background: var(--white);
        flex-direction: column;
        padding: 20px 0;
        transition: 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
        overflow-y: auto;
        gap: 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        width: 100%;
    }

    .nav-menu a {
        padding: 15px 25px;
        border-bottom: 1px solid #f5f5f5;
        font-size: 1.1rem;
    }

    /* Dropdown Mobile */
    .dropdown {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: #f9fbfd;
        display: none;
        padding: 0;
    }

    .dropdown.show {
        display: block;
    }

    .dropdown li a {
        padding-left: 45px;
        border-bottom: 1px solid #eee;
    }

    .has-children>.expand-btn::after {
        content: '';
    }
}

/* --- 13. DODATKI: PASEK POSTĘPU I BACK TO TOP --- */

/* Pasek postępu czytania */
.progress-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: transparent;
    z-index: 10001;
    /* Powyżej headera */
}

.progress-bar {
    height: 100%;
    background: var(--gold);
    width: 0%;
    transition: width 0.1s ease;
}

/* Przycisk Powrót na górę */
#backToTop {
    position: fixed;
    bottom: 120px;
    /* Wyższa pozycja ze względu na reklamy */
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--primary);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 9998;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

#backToTop.show {
    opacity: 1;
    visibility: visible;
}

#backToTop:hover {
    background-color: var(--gold);
    transform: translateY(-5px);
}

#backToTop span {
    font-size: 24px;
}

@media (max-width: 768px) {
    #backToTop {
        bottom: 130px;
        /* Jeszcze nieco wyżej na mobile, gdzie reklamy bywają większe */
        right: 20px;
        width: 45px;
        height: 45px;
    }
}


/* --- FAQ MODERN ACCORDION --- */
.faq-wrapper {
    padding: 80px 0;
    background-color: var(--bg-light);
}

.faq-accordion {
    max-width: 800px;
    margin: 40px auto 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.faq-item {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.faq-item:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.faq-question {
    width: 100%;
    padding: 20px 25px;
    background: none;
    border: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    text-align: left;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary);
    font-family: inherit;
}

.faq-question .icon {
    transition: transform 0.3s ease;
    color: var(--gold);
}

.faq-item.active {
    border-color: var(--gold);
}

.faq-item.active .faq-question .icon {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    background: #fff;
}

.faq-content {
    padding: 0 25px 25px 25px;
    color: var(--text);
    line-height: 1.7;
}

.faq-content strong {
    color: var(--gold);
}

/* Pomocnicze klasy nagłówków (jeśli ich nie masz) */
.section-title {
    text-align: center;
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 10px;
}

.section-subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 30px;
}

/* --- SPIS TREŚCI (DISCREET TOC) --- */
.mag-toc-box {
    margin-top: 30px;
    padding-top: 25px;
    border-top: 1px dashed #ddd;
}

.mag-toc-box h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.mag-toc-list {
    list-style: none;
    padding: 0;
}

.mag-toc-list li {
    margin-bottom: 10px;
    display: flex;
    align-items: baseline;
    gap: 10px;
}

.toc-number {
    font-family: 'Inter', sans-serif;
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--gold);
    min-width: 20px;
}

.mag-toc-list a {
    text-decoration: none;
    color: var(--text);
    font-size: 0.9rem;
    transition: color 0.3s ease;
    border-bottom: 1px solid transparent;
}

.mag-toc-list a:hover {
    color: var(--primary);
    border-bottom: 1px solid var(--gold);
}

@media (max-width: 768px) {
    .mag-toc-box {
        background: var(--sand-light);
        padding: 20px;
        margin-top: 20px;
        border-top: none;
        border-radius: 4px;
    }
}

/* --- KONTENER REKLAMOWY --- */
.ad-container {
    margin: 40px auto;
    text-align: center;
    width: 100%;
    clear: both;
    min-height: 100px;
    display: block;
}

/* Informacja nad reklamą */
.ad-container::before {
    content: "REKLAMA";
    display: block;
    font-size: 10px;
    color: #bbb;
    letter-spacing: 1px;
    margin-bottom: 12px;
    font-family: 'Inter', sans-serif;
    text-align: center;
}

/* Wymuszenie wyśrodkowania samej jednostki AdSense w środku */
.ad-container ins {
    margin: 0 auto !important;
    display: block !important;
}

/* --- GRAPH / TIMELINE STYLE --- */
.weather-graph {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding-left: 50px;
}

.graph-step {
    position: relative;
    padding-bottom: 50px;
    display: flex;
}

.step-marker {
    position: absolute;
    left: -50px;
    width: 40px;
    height: 40px;
    background: var(--white);
    border: 2px solid #eee;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.step-marker span {
    font-size: 20px;
    color: var(--text-dark);
}

.step-line {
    position: absolute;
    top: 40px;
    left: 19px;
    width: 2px;
    height: calc(100% + 10px);
    background: #eee;
    z-index: 1;
}

.graph-step.highlight .step-marker {
    border-color: var(--gold);
    background: var(--sand-light);
}

.graph-step.highlight .step-marker span {
    color: var(--gold);
}

.graph-step.highlight .step-line {
    background: var(--gold);
    opacity: 0.3;
}

.step-content {
    background: var(--white);
    padding: 25px;
    border-radius: 12px;
    border: 1px solid #f0f0f0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    width: 100%;
}

.graph-step:hover .step-content {
    transform: translateX(10px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.step-date {
    display: block;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 10px;
}

.step-content h3 {
    margin-bottom: 15px;
    font-size: 1.3rem;
    color: var(--primary);
}

.step-target {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px dashed #eee;
    font-size: 0.9rem;
    font-style: italic;
}

.graph-step.highlight .step-content {
    border-left: 4px solid var(--gold);
}

@media (max-width: 768px) {
    .weather-graph {
        padding-left: 30px;
    }
    .step-marker {
        left: -30px;
        width: 30px;
        height: 30px;
    }
    .step-line {
        left: 14px;
        top: 30px;
    }
}

/* --- RESPONSIVE COMPARISON TABLE --- */
.responsive-mag-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    margin-bottom: 30px;
}

.responsive-mag-table thead {
    background: var(--primary);
    color: var(--white);
}

.responsive-mag-table th, 
.responsive-mag-table td {
    padding: 15px 20px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.responsive-mag-table th {
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

.responsive-mag-table .param-name {
    background: var(--sand-light);
    color: var(--primary);
    width: 25%;
}

.stars {
    letter-spacing: 2px;
    filter: drop-shadow(0 0 1px rgba(0,0,0,0.1));
}

/* MOBILE UX: Zamiana tabeli w karty danych */
@media (max-width: 768px) {
    .responsive-mag-table thead {
        display: none; /* Ukrywamy nagłówki w poziomie */
    }

    .responsive-mag-table tr {
        display: block;
        margin-bottom: 20px;
        border: 1px solid var(--gold);
        border-radius: 8px;
        background: var(--white);
    }

    .responsive-mag-table td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        text-align: right;
        padding: 12px 15px;
        border-bottom: 1px solid #f0f0f0;
    }

    .responsive-mag-table td:last-child {
        border-bottom: none;
    }

    .responsive-mag-table td::before {
        content: attr(data-label); /* Pobieramy nazwę kolumny z HTML */
        font-weight: 700;
        text-transform: uppercase;
        font-size: 0.75rem;
        color: #666;
        margin-right: 15px;
        text-align: left;
    }

    .responsive-mag-table .param-name {
        width: 100%;
        background: var(--primary);
        color: var(--white);
        justify-content: center;
        font-size: 1rem;
    }

    .responsive-mag-table .param-name::before {
        display: none; /* Nie potrzebujemy etykiety dla nazwy parametru */
    }
}


/* --- FESTIVAL SECTION STYLES --- */
.festival-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.festival-card {
    background: var(--white);
    border: 1px solid #eee;
    padding: 30px;
    border-radius: 12px;
    position: relative;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.festival-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.07);
    border-color: var(--gold);
}

.highlight-fest {
    border: 2px solid var(--primary);
    background: var(--sand-light);
}

.fest-date {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 0.75rem;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

.fest-icon {
    font-size: 40px !important;
    color: var(--primary);
    margin-bottom: 20px;
}

.festival-card h4 {
    font-family: 'Inter', sans-serif;
    font-size: 1.2rem;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.festival-card p {
    font-size: 0.9rem;
    color: #555;
    flex-grow: 1;
    line-height: 1.6;
}

.fest-location {
    margin-top: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--primary);
    display: flex;
    align-items: center;
}

.fest-location::before {
    content: 'location_on';
    font-family: 'Material Symbols Outlined';
    margin-right: 5px;
    font-size: 16px;
}

@media (max-width: 768px) {
    .festival-grid {
        grid-template-columns: 1fr;
    }
}