html, body {
    overflow-x: hidden;
}

body {
    font-family: Arial, sans-serif;
    margin: 0;
    color: #333;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;

    background: linear-gradient(
        to right,
        #ffffff 0%,
        #f7f7f8 20%,
        #e5e5e7 50%,
        #f7f7f8 80%,
        #ffffff 100%
    );
}

header {
    background: whitesmoke;
    color: #333;
    padding: 1rem 0;
    display: flex;
    justify-content: center;
    position: relative;
}
header .inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    padding: 0 2rem;
}
header::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0; right: 0;
    height: 1px;
    background: linear-gradient(
        to right,
        transparent,
        rgba(0,0,0,0.35),
        transparent
    );
}

header .logo {
    font-size: 1.5rem;
    font-weight: bold;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    width: 30px;
    gap: 5px;
    z-index: 1001;
}
.menu-toggle span {
    display: block;
    height: 3px;
    width: 100%;
    background: #333;
    border-radius: 3px;
    transition: 0.3s;
}

.menu-toggle.open span:nth-child(1) {
    transform: rotate(45deg) translateY(8px);
}
.menu-toggle.open span:nth-child(2) {
    opacity: 0;
}
.menu-toggle.open span:nth-child(3) {
    transform: rotate(-45deg) translateY(-8px);
}

main {
    flex: 1;
    max-width: 900px;
    margin: 2rem auto;
    padding: 0 1rem;
}
main img {
    width: 100%;
    border-radius: 5px;
    margin: 1rem 0;
}

footer {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 80px;
    background: whitesmoke;
    text-align: center;
    padding: 1rem;
    font-size: 0.9rem;
    margin-top: auto;
    position: relative;
    font-family: 'Cormorant Garamond', serif;
}
footer::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0; right: 0;
    height: 1px;
    background: linear-gradient(
        to right,
        transparent,
        rgba(0,0,0,0.35),
        transparent
    );
}

.privacy-policy {
    font-size: 13px;
    line-height: 1.7;
    color: #555;
}

.privacy-policy h1,
.privacy-policy h2,
.privacy-policy h3,
.privacy-policy h4 {
    font-size: 14px;
    font-weight: normal;
    margin-top: 2rem;
    margin-bottom: .5rem;
    color: #444;
}

.privacy-policy p {
    margin-bottom: 1rem;
}

.privacy-policy ul {
    padding-left: 1.2rem;
    margin-bottom: 1rem;
}

.privacy-policy li {
    margin-bottom: .3rem;
}

.section-title {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 300;
    font-size: 2rem;
    text-align: center;
    color: #2e2e2e;
    margin: 2.5rem 0 1.5rem;
    letter-spacing: 0.5px;
    text-transform: none;
    line-height: 1.3;
    opacity: 0.95;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -0.6rem;
    transform: translateX(-50%);
    width: 60%;
    height: 1px;
    background: radial-gradient(
        ellipse at center,
        rgba(40, 40, 40, 0.8) 0%,
        rgba(40, 40, 40, 0.4) 35%,
        rgba(40, 40, 40, 0.1) 70%,
        rgba(40, 40, 40, 0.0) 100%
    );
    border-radius: 2px;
    pointer-events: none;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.article-content {
    text-align: justify;
    hyphens: auto;
}

/*animacja na kafelki a artykulami*/
.article-card {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    height: 240px;
    isolation: isolate;
    cursor: pointer;
    transform: translateY(0);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.15);
}

.article-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: brightness(0.95) saturate(0.9);
    transition: filter 0.5s ease;
}

.article-card:hover img {
    filter: brightness(1.08) saturate(1.1);
}

.article-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 0.8rem 1rem;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.75),
        rgba(0, 0, 0, 0.1) 50%,
        rgba(0, 0, 0, 0)
    );
    pointer-events: none;
    border-radius: 8px;
}

.article-meta-grid {
    font-family: 'Cormorant Garamond', serif;
    font-size: 0.85rem;
    color: #e0e0e0;
    margin: 0 0 0.3rem;
    opacity: 0.9;
}

.article-title-grid {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
    color: #fff;
    line-height: 1.3;
}
/*end anime article card*/


.section-divider-full {
    border: none;
    height: 1px;
    /*width: 100vw;*/
    width: 100%;
    /*margin: 3rem 0 3rem calc(50% - 50vw);*/
    margin: 3rem 0;
    background: radial-gradient(
        circle at center,
        rgba(40, 40, 40, 0.9) 0%,
        rgba(40, 40, 40, 0.7) 25%,
        rgba(40, 40, 40, 0.3) 55%,
        rgba(40, 40, 40, 0.0) 100%
    );
}

.flat-tag-cloud {
    max-width: 800px;
    margin: 3rem auto;
    text-align: center;
    background: transparent;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.4rem 0.8rem;
    line-height: 1.2;
}

.tag {
    text-decoration: none;
    font-family: 'Poppins', sans-serif;
    transition: transform 0.25s ease, color 0.25s ease;
    display: inline-block;
    transform-origin: center;
    white-space: nowrap;
}

.tag:hover {
    transform: scale(1.4);
    color: #000;
    z-index: 2;
}

@media (hover: hover) {
    .tag:hover {
        transform: scale(1.4);
    }
}


:root {
    --tile-base: #d8d8da;
    --tile-hover: #cfcfd1;
    --text-color: #2c2c2c;
}

.category-section {
    max-width: 900px;
    margin: 3rem auto;
    padding: 0 1rem;
    text-align: center;
}

.category-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
}

.category-tile {
    width: 200px;
    padding: 1.8rem 0.8rem;
    background: var(--tile-base);
    border-radius: 10px;
    text-decoration: none;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    color: var(--text-color);
    transition: all 0.25s ease;
    text-align: center;
}

.category-tile {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.8rem 0.8rem;
    background: var(--tile-base);
    border-radius: 10px;
    text-decoration: none;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    color: var(--text-color);
    transition: all 0.25s ease;
}

.category-tile:hover {
    background: var(--tile-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}

/* ✴️ tekst */
.category-name {
    font-size: 1.1rem;
    letter-spacing: 0.25px;
}

.article-title {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 300;
    font-size: 2.4rem;
    line-height: 1.2;
    text-align: center;
    color: #2c2c2c;
    margin: 2rem 0 0.5rem;
    letter-spacing: 0.3px;
}

.article-meta {
    font-family: 'Poppins', sans-serif;
    text-align: center;
    color: #555;
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
    display: inline-block;
    width: 100%;
}

.article-meta .separator {
    color: #aaa;
    opacity: 0.75;
    margin: 0 0.3rem;
}

.article-category {
    font-style: italic;
    font-weight: 500;
    color: #444;
}

.article-date {
    font-style: italic;
    color: #555;
    opacity: 0.9;
}

.article-tags {
    font-family: 'Poppins', sans-serif;
    text-align: center;
    color: #777;
    font-size: 0.8rem;
    margin-bottom: 2.5rem;
    opacity: 0.85;
}

#photoCarousel .carousel-article-image {
    height: 400px;
    object-fit: cover;
}

/*breadcrumbs*/
.breadcrumbs {
    font-family: 'Cormorant Garamond', serif;
    font-size: 0.85rem;
    color: #4a4a4a;
    text-align: center;
    margin: 0.8rem 0;
}

.breadcrumbs ol {
    list-style: none;
    display: inline-flex;
    gap: 0.25rem;
    padding: 0;
    margin: 0;
    align-items: center;
}

.breadcrumbs li + li:before {
    content: "›";
    margin: 0 0.35rem;
    color: #7a7a7a;
}

.breadcrumbs a {
    text-decoration: none;
    color: #4a4a4a;
}

.breadcrumbs a:hover {
    text-decoration: none;
    color: #333;
}
/*end breadcrumbs*/

@media (max-width: 600px) {
    .category-tile {
        padding: 1.2rem;
    }
}

@media (max-width: 768px) {
    .article-card {
        height: 200px;
    }
}

@media (min-width: 1200px) {
    .article-card {
        height: 260px;
    }
}

/*kategorie wersja mobilna 2 w rzedzie*/
@media (max-width: 640px) {
    .category-grid {
        justify-content: center;
    }

    .category-tile {
        width: calc(50% - 0.75rem);
    }
}

/*about-me*/
.about-me-wrapper {
    display: flow-root;
    margin-top: 2rem;
}

.about-me-image {
    float: left;
    width: 300px;
    height: 300px;
    object-fit: cover;
    margin-right: 2rem;
    margin-bottom: 1rem;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.about-me-text {
    text-align: justify;
    font-family: 'Cormorant Garamond', serif;font-size: 1.3rem;
    line-height: 1.5rem;
}

.about-me-text ul,
.about-me-text ol {
    margin-top: 1rem;
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.about-me-text li {
    margin-bottom: 0.5rem;
    padding-left: 0.5rem;
}

@media (max-width: 768px) {
    .about-me-image {
        float: none;
        display: block;
        width: 100%;
        height: auto;
        aspect-ratio: 1/1;
        margin-right: 0;
        margin-bottom: 1.5rem;
    }
    .about-me-text {
        text-align: justify;
        hyphens: auto;
    }
}
/*end about-me*/

#blog-map {
    width: 100%;
    height: 600px;
    border-radius: 5px;
    overflow: hidden;
    /*box-shadow: 0 8px 10px rgba(0, 0, 0, 0.1);*/
    transition: transform 0.3s ease;
}

#blog-map:hover {
    transform: scale(1.01);
}

.map-section {
    max-width: 1000px;
    width: 100%;
    margin: 3rem auto;
    padding: 0 1rem;
}

.contact-section {
    max-width: 1000px;
    width: 100%;
    margin: 3rem auto;
    padding: 0 1rem;
}

.logo-link {
    text-decoration: none;
    color: inherit;
}

.logo-link:hover,
.logo-link:focus,
.logo-link:visited,
.logo-link:active {
    text-decoration: none;
    color: inherit;
}

/*image gallery*/
.gallery-title {
    font-size: 1.4rem;
    margin-bottom: 2rem;
    color: #333;
}

/* Masonry-like grid */
.gallery-grid {
    column-count: 3;
    column-gap: 1rem;
}

@media (max-width: 992px) {
    .gallery-grid {
        column-count: 2;
    }
}

@media (max-width: 576px) {
    .gallery-grid {
        column-count: 1;
    }
}

.gallery-item {
    position: relative;
    margin-bottom: 1rem;
    break-inside: avoid;
    cursor: pointer;
    border-radius: 14px;
    overflow: hidden;
}

.gallery-item img {
    width: 100%;
    display: block;
    transition: transform .4s ease;
}

/* Hover zoom */
.gallery-item:hover img {
    transform: scale(1.05);
}

/* Overlay */
.gallery-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.35);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity .3s ease;
}

.gallery-overlay span {
    font-size: 2rem;
    color: #fff;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.modal {
    position: fixed;
    inset: 0;
    z-index: 9999;

    display: none;
    align-items: center;
    justify-content: center;

    background: rgba(0,0,0,.35);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}


.modal-inner {
    text-align: center;
}

.modal-content {
    max-width: 90vw;
    max-height: 80vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 16px;
}

/* PODPIS */
.modal-caption {
    display: inline-block;
    margin-top: 12px;
    font-size: .9rem;
    color: #ddd;
    text-decoration: none;
    opacity: .85;
}

.modal-caption:hover {
    opacity: 1;
}

/* close */
.modal-close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 2rem;
    color: #fff;
    cursor: pointer;
}

.modal-nav {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 14px;
}

.modal-nav button {
    background: transparent;
    border: none;
    color: #aaa;
    font-size: .85rem;
    cursor: pointer;
    transition: color .2s ease, opacity .2s ease;
}

.modal-nav button:hover {
    color: #fff;
}

.modal-nav button:disabled {
    opacity: .3;
    cursor: default;
}
/*end image gallery*/

/*menu*/
#navMenu {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 400;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-align: center;
}

#navMenu > ul {
    list-style: none;
    margin: 0;
    padding: 0;

    display: flex;
    justify-content: center;
    gap: 1.5rem;
}


/* Każdy element menu */
#navMenu li {
    position: relative;
}

/* Linki */
#navMenu a {
    text-decoration: none;
    color: #2b2b2b;
    transition: color 0.3s ease;
    padding: 0.5rem 0.8rem;
    display: block;
}

#navMenu a:hover {
    color: #555;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;

    background: white;
    min-width: 180px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);

    flex-direction: column;
    z-index: 1000;
}

.dropdown-submenu {
    position: relative;
}

.dropdown-submenu > ul {
    display: none;
    position: absolute;
    top: 0;
    left: 100%;

    background: white;
    min-width: 180px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);

    flex-direction: column;
    z-index: 1000;
}

/* pokazuje kraje */
.dropdown:hover > .dropdown-content {
    display: flex;
}

/* pokazuje miasta */
.dropdown-submenu:hover > ul {
    display: flex;
}
.dropdown-content li a {
    white-space: nowrap;
}
.dropdown-submenu > a::after {
    content: " ▶";
    font-size: 0.7em;
}

/*.cookie-settings-link {*/
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(0,0,0,.85);
    color: #fff;
    padding: 1rem;
    display: none;
    justify-content: space-between;
    align-items: center;
    z-index: 9999;
    font-size: 0.9rem;

    transform: translateY(100%);
    transition: transform 0.4s ease;
}

.cookie-banner.show {
    display: flex;
    transform: translateY(0);
}

.cookie-settings-link {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
}


@media (max-width: 768px) {

    /* hamburger */
    .menu-toggle {
        display: flex;
    }

    /* menu */
    #navMenu {
        overflow: hidden;
        max-height: 0;
        opacity: 0;
        transition: max-height 0.4s ease, opacity 0.3s ease;
        width: 100%;
        background: whitesmoke;
        position: absolute;
        top: 100%;
        left: 0;
        border-top: 1px solid rgba(0,0,0,0.1);
        z-index: 1000;
    }

    #navMenu.active {
        max-height: 90vh;
        opacity: 1;
    }

    #navMenu > ul {
        flex-direction: column;
        padding: 1rem;
        gap: 1rem;
    }

    /* WAŻNE: wymuszamy brak hover na mobile */
    .dropdown:hover > .dropdown-content,
    .dropdown-submenu:hover > ul {
        display: none !important;
    }

    /* dropdowny statyczne */
    .dropdown-content,
    .dropdown-submenu > ul {
        display: none !important;
        position: static !important;
        box-shadow: none !important;
        min-width: 100% !important;
    }

    /* otwarte po kliknięciu */
    .dropdown.open > .dropdown-content {
        display: block !important;
    }

    .dropdown-submenu.open > ul {
        display: block !important;
    }
}

