/* main.css - extracted from index.html */

:root {
    --col-kontroler-red: #d90429;
    --col-banita-violet: #7b2cbf;
    --col-ulisses-cyan: #00f2ff;
    --col-ulisses-bg: #000000;
    --bg-light: #ffffff;
    --bg-offset: #f8f9fa;
    --text-dark: #1a1a1a;
    --text-light: #f0f0f0;
    --nav-bg: #0b0c10;
}
/* --- NAWIGACJA GŁÓWNA --- */
.nav-links {
    display: flex;
    gap: 30px;
}
a.nav-link, .nav-link {
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    color: #aaa;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    text-decoration: none;
}
.nav-link:hover {
    color: #fff;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
}
.nav-link.active {
    color: #fff;
}
.nav-link.active::after {
    width: 100%;
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0%;
    height: 2px;
    background: #00f2ff;
    transition: 0.3s;
}
.nav-link:hover::after {
    width: 100%;
}
/* --- SEKCJA KULA ŚWIATÓW / ULISSES (CIEMNA) --- */
.worlds-wrapper {
    display: flex; min-height: 100vh; width: 100%; position: relative; color: var(--text-light);
}
.world-panel {
    flex: 1; position: relative; display: flex; flex-direction: column;
    align-items: center; padding: 80px 20px;
    transition: all 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    overflow: visible;
}
.worlds-wrapper:hover .world-panel:not(:hover) {
    filter: brightness(0.4) grayscale(50%);
    flex: 0.8;
}
.worlds-wrapper .world-panel:hover {
    flex: 1.4;
    filter: brightness(1) grayscale(0%);
    cursor: pointer;
}
.panel-content-fixed {
    width: 600px;
    max-width: 90vw;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
}
/* Panel Kula - hover and pointer */
.panel-kula {
    background-color: #050505;
    border-right: 1px solid #222;
    position: relative;
    overflow: visible;
}
.panel-kula::before {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background-image: url('https://images.unsplash.com/photo-1451187580459-43490279c0fa?q=80&w=2072&auto=format&fit=crop');
    background-size: cover; background-position: center;
    opacity: 0.25; z-index: 0; filter: contrast(1.2) brightness(0.8);
}
.panel-kula::after {
    content: ''; position: absolute; top:0; left:0; width:100%; height:100%;
    background: repeating-linear-gradient(0deg, rgba(0,0,0,0.2) 0px, rgba(0,0,0,0.2) 1px, transparent 1px, transparent 4px);
    z-index: 1; pointer-events: none;
}
.kula-header { 
    text-align: center; 
    margin-bottom: 40px; 
    z-index: 10; 
    position: relative; 
    width: 100%;
    cursor: pointer;
    transition: 0.3s;
    padding: 20px;
    border-radius: 8px;
}
.kula-header:hover {
    box-shadow: 0 0 30px rgba(217, 4, 41, 0.25);
    transform: translateY(-10px);
    background: rgba(217, 4, 41, 0.05);
}
.genre-badge {
    font-family: 'Rajdhani', sans-serif; font-weight: 700; font-size: 0.8rem; letter-spacing: 2px;
    text-transform: uppercase; padding: 6px 12px; border-radius: 4px;
    margin-bottom: 20px; display: inline-block;
}
.genre-kula { color: var(--col-kontroler-red); border: 1px solid var(--col-kontroler-red); background: rgba(217, 4, 41, 0.1); }
.kula-title { color: #fff; font-size: 2.5rem; font-weight: 900; letter-spacing: 1px; text-shadow: 0 0 10px rgba(0,0,0,0.8); margin-bottom: 20px; }
.kula-desc {
    font-size: 0.95rem; color: #ccc; line-height: 1.6; font-weight: 300; text-align: center;
    background: rgba(0,0,0,0.7); padding: 20px; border-radius: 4px; border-top: 2px solid var(--col-kontroler-red);
}
.books-grid { display: flex; gap: 40px; flex-wrap: wrap; justify-content: center; z-index: 5; width: 100%; }
.book-card {
    width: 280px; background: rgba(10, 10, 12, 0.9); border: 1px solid #333;
    padding: 0 0 20px 0; position: relative; transition: 0.3s; -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px);
    display: flex; flex-direction: column;
}
.book-link-area {
    display: block; padding: 20px 20px 0 20px; cursor: pointer; text-decoration: none; color: inherit;
}
.book-link-area:hover .book-cover-img { transform: scale(1.05); }
.card-kontroler { border-top: 4px solid var(--col-kontroler-red); }
.card-kontroler:hover {
    box-shadow: 0 0 30px rgba(204, 0, 0, 0.25); transform: translateY(-10px); border-color: var(--col-kontroler-red);
}
.card-kontroler .book-meta { color: var(--col-kontroler-red); }
.card-kontroler .btn-cart { background: var(--col-kontroler-red); border: none; color: #fff; }
.card-banita { border-top: 4px solid var(--col-banita-violet); }
.card-banita:hover {
    box-shadow: 0 0 30px rgba(123, 44, 191, 0.25); transform: translateY(-10px); border-color: var(--col-banita-violet);
}
.card-banita .book-meta { color: var(--col-banita-violet); }
.card-banita .btn-cart { background: var(--col-banita-violet); border: none; color: #fff; }
.book-cover-wrap { width: 100%; margin-bottom: 20px; overflow: hidden; border: 1px solid #333; }
.book-cover-img { width: 100%; transition: 0.4s; }
.book-title { font-family: 'Montserrat', sans-serif; font-weight: 800; font-size: 1.4rem; color: #fff; margin-bottom: 5px; text-transform: uppercase; }
.book-meta { font-family: 'Courier Prime', monospace; font-size: 0.7rem; font-weight: 700; display: block; margin-bottom: 15px; }
.books-grid .book-desc {
    margin: 0 0 14px;
    padding: 10px 12px;
    font-family: 'Roboto', sans-serif;
    font-size: 0.84rem;
    line-height: 1.55;
    color: #bfc3cb;
    text-align: left;
    background: rgba(255, 255, 255, 0.03);
    border-left: 2px solid rgba(255, 255, 255, 0.22);
    border-radius: 2px;
}
.books-grid .card-kontroler .book-desc { border-left-color: rgba(217, 4, 41, 0.65); }
.books-grid .card-banita .book-desc { border-left-color: rgba(123, 44, 191, 0.65); }
.book-actions { display: flex; flex-direction: column; gap: 10px; padding: 0 20px; margin-top: auto; }
.shops-row { display: flex; gap: 5px; margin-top: 10px; }
.shop-link {
    flex: 1; font-size: 0.7rem; text-align: center; color: #999; padding: 6px;
    border: 1px solid #333; transition: 0.2s; background: rgba(0,0,0,0.5);
}
.shop-link:hover { color: #fff; border-color: #666; background: #222; }
.btn-cart {
    padding: 12px; font-weight: 700; font-size: 0.9rem; font-family: 'Montserrat', sans-serif;
    display: flex; justify-content: center; align-items: center; gap: 10px; transition: 0.3s;
}
.btn-cart:hover { filter: brightness(1.2); }
.panel-ulisses {
    background-color: var(--col-ulisses-bg);
    background-image: url('https://www.transparenttextures.com/patterns/stardust.png');
}
.panel-ulisses::before {
    content: ''; position: absolute; top: 10%; right: 10%; width: 80%; height: 80%;
    background:
        linear-gradient(to right, rgba(0, 242, 255, 0.05) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(0, 242, 255, 0.05) 1px, transparent 1px);
    background-size: 50px 50px; pointer-events: none; -webkit-mask-image: radial-gradient(circle, black 40%, transparent 80%); mask-image: radial-gradient(circle, black 40%, transparent 80%);
}
.ulisses-header { 
    text-align: center; 
    margin-bottom: 50px; 
    z-index: 10; 
    width: 100%;
    cursor: pointer;
    transition: 0.3s;
    padding: 20px;
    border-radius: 8px;
}
.ulisses-header:hover {
    box-shadow: 0 0 30px rgba(0, 242, 255, 0.25);
    transform: translateY(-10px);
    background: rgba(0, 242, 255, 0.05);
}
.genre-ulisses { color: var(--col-ulisses-cyan); border: 1px solid var(--col-ulisses-cyan); background: rgba(0, 242, 255, 0.1); }
.ulisses-title { font-family: 'Orbitron', sans-serif; font-size: 3rem; font-weight: 700; color: #fff; line-height: 1; letter-spacing: 2px; margin-bottom: 10px; }
.ulisses-subtitle {
    color: #aaa; font-family: 'Rajdhani', sans-serif; letter-spacing: 3px; font-size: 1rem;
}
.db-form-container {
    background: rgba(0, 20, 30, 0.8); border: 1px solid #222; border-left: 3px solid var(--col-ulisses-cyan);
    padding: 30px; width: 100%; max-width: 420px; position: relative;
    box-shadow: 0 0 30px rgba(0, 242, 255, 0.05); margin-top: 20px;
}
.db-label { font-family: 'Rajdhani', sans-serif; color: var(--col-ulisses-cyan); font-size: 1.1rem; margin-bottom: 10px; display: block; font-weight: 700; }
.db-text { font-size: 0.9rem; color: #999; margin-bottom: 25px; font-family: 'Roboto', sans-serif; }
.db-input-group { display: flex; border: 1px solid #333; background: #050505; }
.db-input { flex: 1; background: transparent; border: none; padding: 15px; color: var(--col-ulisses-cyan); font-family: 'Rajdhani', sans-serif; outline: none; }
.db-submit { background: var(--col-ulisses-cyan); color: #000; border: none; padding: 0 30px; font-weight: 700; transition: 0.3s; font-family: 'Rajdhani'; }
.db-submit:hover { background: #fff; box-shadow: 0 0 20px var(--col-ulisses-cyan); }
/* --- SEKCJA BLOG --- */
.section-blog {
    padding: 100px 5%; background-color: var(--bg-offset); color: var(--text-dark); border-top: 1px solid #e0e0e0;
}
.section-head { text-align: center; margin-bottom: 60px; }
.section-head h2 { font-size: 2.5rem; margin-bottom: 10px; color: #111; font-weight: 900;}
.section-head p { 
    font-family: 'Rajdhani', sans-serif; font-weight: 700; font-size: 0.95rem; 
    color: #555; letter-spacing: 3px; text-transform: uppercase;
    display: inline-block;
}
.blog-container {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px;
    max-width: 1200px; margin: 0 auto 50px auto; grid-auto-rows: 1fr;
}
.blog-post-link {
    text-decoration: none; display: flex; flex-direction: column; color: inherit;
}
.blog-post {
    background: #fff; border-radius: 0; overflow: hidden; 
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
    transition: all 0.3s ease; display: flex; flex-direction: column; height: 100%;
    border: 1px solid #e5e7eb; border-left: 3px solid #d90429;
}
.blog-post:hover { transform: translateY(-3px); box-shadow: 0 8px 16px rgba(0,0,0,0.12); }
.blog-img-box { height: 180px; background: #e5e7eb; overflow: hidden; position: relative; }
.blog-img { width: 100%; height: 100%; object-fit: cover; transition: 0.4s ease; }
.blog-post:hover .blog-img { transform: scale(1.08); }
.blog-content { padding: 22px; flex: 1; display: flex; flex-direction: column; }
.blog-date { font-size: 0.7rem; color: #9ca3af; margin-bottom: 10px; 
    font-family: 'Roboto Mono', monospace; letter-spacing: 0.5px; text-transform: uppercase; }
.blog-post h3 { font-size: 1.05rem; margin-bottom: 12px; 
    line-height: 1.3; font-weight: 700; color: #0f1729; }
.blog-post p { font-size: 0.85rem; color: #6b7280; margin-bottom: 18px; flex: 1; 
    line-height: 1.55; font-family: 'Courier Prime', monospace; }
.blog-link { color: #0f1729; font-weight: 700; font-size: 0.8rem; 
    text-decoration: none; display: inline-flex; align-items: center; gap: 6px;
    transition: 0.3s ease; cursor: pointer; }
.blog-post-link:hover .blog-link { color: #d90429; }
.blog-footer { text-align: center; }
.btn-all-posts {
    display: inline-block; padding: 12px 35px; background: #0f1729; color: #fff;
    font-weight: 700; letter-spacing: 2px; text-transform: uppercase; 
    border-radius: 0; transition: all 0.3s ease; font-size: 0.8rem;
    border-left: 4px solid #d90429; position: relative;
}
.btn-all-posts:hover { 
    background: #1a2847; transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* --- SEKCJA AUDIO --- */
.section-audio {
    padding: 100px 5%;
    background-color: #f3f4f6;
    color: var(--text-dark);
    border-top: 1px solid #e5e7eb;
}
.section-audio .section-head { text-align: center; margin-bottom: 60px; }
.section-audio .section-head h2 { font-size: 2.5rem; margin-bottom: 10px; color: #111; font-weight: 900; }
.section-audio .section-head p {
    font-family: 'Rajdhani', sans-serif; font-weight: 700; font-size: 0.95rem;
    color: #555; letter-spacing: 3px; text-transform: uppercase;
    display: inline-block;
}
.audio-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
}
.audio-card {
    overflow: hidden;
    background: #fff;
    border: 1px solid #e5e7eb;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
/* Miniaturka - aspect ratio 16:9 */
.audio-thumb-wrap {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    overflow: hidden;
    background: #0b0c10;
    cursor: pointer;
}
.audio-thumb {
    position: absolute; top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    opacity: 0.9;
    transition: opacity 0.4s, transform 0.4s;
    display: block;
}
.audio-thumb-wrap:hover .audio-thumb {
    opacity: 0.2;
    transform: scale(1.05);
}
/* Overlay z opisem — pojawia się po hover na obrazku */
.audio-hover-overlay {
    position: absolute; inset: 0;
    background: rgba(10, 10, 15, 0.88);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 28px 30px;
    opacity: 0;
    transition: opacity 0.35s;
    gap: 16px;
    text-align: center;
}
.audio-thumb-wrap:hover .audio-hover-overlay { opacity: 1; }
.audio-play-btn {
    width: 60px; height: 60px;
    border-radius: 50%;
    background: #d90429;
    display: flex; align-items: center; justify-content: center;
    color: #fff;
    font-size: 1.25rem;
    padding-left: 4px;
    flex-shrink: 0;
    box-shadow: 0 0 28px rgba(217, 4, 41, 0.6);
    transition: transform 0.2s;
}
.audio-thumb-wrap:hover .audio-play-btn { transform: scale(1.1); }
.audio-desc {
    font-size: 0.82rem;
    color: #ccc;
    line-height: 1.6;
    font-family: 'Courier Prime', monospace;
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.audio-listen-btn {
    color: #fff;
    font-weight: 700;
    font-size: 0.8rem;
    font-family: 'Rajdhani', sans-serif;
    letter-spacing: 2px;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    border-bottom: 1px solid #d90429;
    padding-bottom: 2px;
    transition: color 0.2s;
}
.audio-thumb-wrap:hover .audio-listen-btn { color: #d90429; }
/* Panel informacyjny pod obrazkiem */
.audio-info {
    padding: 14px 18px 16px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    border-top: 2px solid #d90429;
}
.audio-info-left { display: flex; flex-direction: column; gap: 5px; }
.audio-title {
    font-size: 1rem;
    font-weight: 700;
    color: #0f1729;
    line-height: 1.3;
    font-family: 'Montserrat', sans-serif;
}
.audio-reader {
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    font-size: 0.78rem;
    color: #555;
    letter-spacing: 1px;
    text-transform: uppercase;
}
.audio-reader i { margin-right: 4px; color: #d90429; }
.audio-reader-link {
    color: #d90429;
    text-decoration: none;
    transition: color 0.2s;
}
.audio-reader-link:hover { color: #0f1729; text-decoration: underline; }
.audio-date {
    font-size: 0.68rem;
    color: #9ca3af;
    font-family: 'Roboto Mono', monospace;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    white-space: nowrap;
    flex-shrink: 0;
    align-self: flex-end;
    padding-bottom: 2px;
}
@media (max-width: 700px) {
    .audio-grid { grid-template-columns: 1fr; }
}
* { margin: 0; padding: 0; box-sizing: border-box; }
/* --- FOOTER --- */
footer {
    border-top: 1px solid #222; padding: 50px 5%; background: #050505; text-align: center; color: #666;
}
.socials {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 24px;
    margin-bottom: 20px;
}
.socials a { font-size: 1.5rem; color: #666; transition: 0.3s; }
.socials a:hover { color: #fff; transform: scale(1.2); }
.footer-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}
.footer-link {
    color: #8f8f8f;
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 1.4px;
    text-transform: uppercase;
}
.footer-link:hover { color: #fff; }
.footer-link-button {
    background: transparent;
    border: none;
    padding: 0;
}
.copyright { color: #444; font-size: 0.85rem; }
body { font-family: 'Roboto', sans-serif; background-color: var(--bg-light); overflow-x: hidden; line-height: 1.6; color: var(--text-dark); }
body.modal-open { overflow: hidden; }
/* --- MODAL --- */
.modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.95); z-index: 2000; display: none;
    justify-content: center; align-items: center;
}
.modal-overlay.active { display: flex; }
.modal-content { width: 90%; max-width: 900px; position: relative; background: #000; }
.modal-content-video { background: #0f1118; }
.modal-close { position: absolute; top: -40px; right: 0; color: #fff; font-size: 2rem; cursor: pointer; }
.modal-video-box { position: relative; padding-bottom: 56.25%; height: 0; }
.modal-video-box iframe { position: absolute; top:0; left:0; width:100%; height:100%; }
.modal-video-meta {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 20px 16px;
    border-top: 2px solid #d90429;
    background: #fff;
}
.modal-video-meta-left { display: flex; flex-direction: column; gap: 5px; }
.modal-video-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: #0f1729;
    line-height: 1.3;
}
.modal-video-reader {
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    font-size: 0.78rem;
    color: #555;
    letter-spacing: 1px;
    text-transform: uppercase;
}
.modal-video-reader i { margin-right: 4px; color: #d90429; }
.modal-video-reader a { color: #d90429; text-decoration: none; transition: color 0.2s; }
.modal-video-reader a:hover { color: #0f1729; text-decoration: underline; }
.modal-video-date {
    font-size: 0.68rem;
    color: #9ca3af;
    font-family: 'Roboto Mono', monospace;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    white-space: nowrap;
    flex-shrink: 0;
    align-self: flex-end;
    padding-bottom: 2px;
}
.modal-overlay-legal {
    padding: 24px;
    background:
        radial-gradient(circle at top left, rgba(0, 199, 212, 0.16), transparent 32%),
        radial-gradient(circle at bottom right, rgba(217, 4, 41, 0.12), transparent 28%),
        rgba(6, 8, 12, 0.82);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
}
.modal-content-legal {
    max-width: 850px;
    width: min(850px, 100%);
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    background: linear-gradient(180deg, #ffffff 0%, #fbfbfd 100%);
    color: #121212;
    border: 1px solid rgba(255, 255, 255, 0.65);
    border-radius: 24px;
    overflow: hidden;
    max-height: calc(100vh - 48px);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.28);
}
.modal-content-legal .modal-close.modal-close-legal {
    top: 18px;
    right: 18px;
    width: 20px;
    height: 20px;
    border: 1px solid rgba(17, 17, 17, 0.14);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.62);
    color: rgba(17, 17, 17, 0.52);
    font-size: 0.62rem;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: none;
    opacity: 0.72;
    transition: 0.2s ease;
    z-index: 1;
}

.modal-content-legal .modal-close.modal-close-legal:hover {
    border-color: rgba(17, 17, 17, 0.26);
    color: rgba(17, 17, 17, 0.78);
    background: rgba(255, 255, 255, 0.78);
    opacity: 0.95;
}
.legal-modal-header {
    position: relative;
    padding: 32px 32px 22px;
    padding-right: 84px;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.02), rgba(0, 199, 212, 0.05));
}
.legal-modal-eyebrow {
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #666;
    margin-bottom: 10px;
}
.modal-content-legal h2 {
    font-size: 1.7rem;
    line-height: 1.1;
    color: #111;
    margin-bottom: 14px;
}
.legal-modal-intro {
    color: #4b5563;
    font-size: 1rem;
    line-height: 1.7;
}
.legal-modal-body {
    overflow-y: auto;
    padding: 24px 32px 28px;
}
.legal-modal-body::-webkit-scrollbar {
    width: 10px;
}
.legal-modal-body::-webkit-scrollbar-track {
    background: #0a0a0a;
    border-radius: 999px;
}
.legal-modal-body::-webkit-scrollbar-thumb {
    background: #cfcfcf;
    border-radius: 999px;
    border: 2px solid #0a0a0a;
}
.legal-modal-body::-webkit-scrollbar-thumb:hover {
    background: #f0f0f0;
}
.legal-modal-sections {
    display: grid;
    gap: 18px;
    margin-top: 24px;
}
.legal-section {
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 18px;
    padding: 20px 22px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
}
.legal-section h3,
.consent-option h3 {
    font-size: 1rem;
    margin-bottom: 8px;
    color: #111;
}
.legal-section p,
.consent-option p {
    color: #4b5563;
    font-size: 0.95rem;
    line-height: 1.7;
}
.legal-section p + p,
.consent-option p + p {
    margin-top: 10px;
}
.consent-preferences {
    display: grid;
    gap: 14px;
    margin-bottom: 0;
}
.consent-option {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 18px;
    padding: 18px 20px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
}
.consent-option-required {
    background: linear-gradient(180deg, #f9fafb 0%, #f3f4f6 100%);
}
.consent-option-copy {
    flex: 1;
}
.consent-switch {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    min-width: 88px;
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #374151;
}
.consent-switch input {
    width: 22px;
    height: 22px;
    accent-color: #111;
}
.legal-modal-footer {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-end;
    gap: 18px;
    padding: 18px 32px 22px;
    border-top: 1px solid rgba(15, 23, 42, 0.08);
    background: rgba(255, 255, 255, 0.94);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}
.legal-modal-footer-note {
    margin: 0;
    max-width: 760px;
    width: 100%;
    font-size: 0.72rem;
    line-height: 1.45;
    color: #667085;
    text-align: center;
}

.legal-section p.legal-paragraph-note,
.consent-option p.legal-paragraph-note {
    margin-top: 6px;
    font-size: 0.72rem;
    line-height: 1.45;
    color: #667085;
}
.consent-actions {
    display: flex;
    justify-content: flex-end;
    flex-wrap: nowrap;
    gap: 12px;
}
.btn-consent {
    min-height: 48px;
    padding: 0 20px;
    border-radius: 999px;
    border: 1px solid rgba(15, 23, 42, 0.12);
    background: #fff;
    color: #111;
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.06);
    transition: 0.25s ease;
}
.btn-consent:hover {
    transform: translateY(-1px);
    border-color: #111;
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.1);
}
.btn-consent-primary {
    background: linear-gradient(135deg, #111827 0%, #0f172a 100%);
    color: #fff;
    border-color: #111827;
}
.btn-consent-primary:hover {
    background: linear-gradient(135deg, #0b1220 0%, #020617 100%);
}
h1, h2, h3 { font-family: 'Montserrat', sans-serif; text-transform: uppercase; }
/* --- RWD (base — modal legalny) --- */
@media (max-width: 900px) {
    .modal-overlay-legal { padding: 12px; align-items: center; }
    .modal-content-legal { width: 100%; max-height: calc(100vh - 24px); border-radius: 22px; }
    .legal-modal-header { padding: 24px 20px 18px; padding-right: 58px; }
    .legal-modal-body { padding: 20px; }
    .modal-content-legal h2 { font-size: 1.4rem; }
    .consent-option { flex-direction: column; align-items: flex-start; }
    .consent-switch { align-items: flex-start; }
    .legal-modal-footer { padding: 16px 20px 20px; }
    .legal-modal-footer-note { max-width: none; text-align: center; width: 100%; font-size: 0.7rem; }
    .legal-section p.legal-paragraph-note,
    .consent-option p.legal-paragraph-note { font-size: 0.7rem; }
    .consent-actions { justify-content: flex-end; width: 100%; flex-wrap: wrap; }
    .btn-consent { width: auto; }
}
a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
button { cursor: pointer; }

nav {
    position: fixed; top: 0; width: 100%; padding: 0 5%; height: 80px;
    background: rgba(11, 12, 16, 0.95); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255,255,255,0.1); z-index: 1000;
    display: flex; justify-content: space-between; align-items: center;
    box-shadow: none;
}
.nav-logo {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: 1.4rem;
    letter-spacing: 0.5px;
    color: #e0e0e0;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}
.nav-logo span {
    font-weight: 300;
    color: #e0e0e0;
    vertical-align: baseline;
}

.nav-purchase-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border: 1px solid rgba(255, 255, 255, 0.36);
    background: var(--col-kontroler-red);
    color: #fff;
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.82rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: 0.25s ease;
    box-shadow: 0 0 0 1px rgba(255,255,255,0.12), 0 10px 24px rgba(217, 4, 41, 0.35);
    animation: purchaseCtaPulse 2.2s ease-in-out infinite;
}

.nav-purchase-btn-label {
    display: inline-flex;
}

.nav-purchase-btn-icon {
    display: none;
    font-size: 1rem;
}

.nav-purchase-btn:hover {
    border-color: #fff;
    background: #b40321;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 0 0 1px rgba(255,255,255,0.22), 0 14px 28px rgba(217, 4, 41, 0.48);
}

@keyframes purchaseCtaPulse {
    0%, 100% {
        box-shadow: 0 0 0 1px rgba(255,255,255,0.12), 0 10px 24px rgba(217, 4, 41, 0.35);
    }
    50% {
        box-shadow: 0 0 0 1px rgba(255,255,255,0.22), 0 14px 30px rgba(217, 4, 41, 0.52);
    }
}

.nav-right-container { display: flex; align-items: center; gap: 24px; }

.nav-links { display: flex; gap: 30px; }

.nav-right-container .nav-purchase-btn {
    order: 3;
}

.nav-right-container .nav-links {
    order: 2;
}

/* --- HERO: O AUTORZE (JASNY, CLEAN) --- */
.hero-section {
    position: relative; min-height: 100vh; display: flex; align-items: center; justify-content: center;
    padding: 120px 5% 80px; overflow: hidden;
    background-color: #fff;
    /* Tło: Tylko siatka */
    background-image: 
        linear-gradient(#f5f5f5 1px, transparent 1px),
        linear-gradient(90deg, #f5f5f5 1px, transparent 1px);
    background-size: 40px 40px;
}

.hero-circle-decor {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    width: 85vh; height: 85vh; border: 1px solid rgba(0,0,0,0.04); border-radius: 50%;
    z-index: 0; pointer-events: none;
}

.hero-container {
    position: relative; z-index: 2; display: flex; align-items: center;
    justify-content: space-between; max-width: 1200px; width: 100%; gap: 60px;
}

.hero-content { flex: 1; max-width: 600px; }

.hero-intro {
    font-family: 'Rajdhani', sans-serif; font-weight: 700; font-size: 1.1rem; 
    color: #555; letter-spacing: 3px; text-transform: uppercase;
    margin-bottom: 15px; border-left: 4px solid var(--text-dark); padding-left: 15px;
}

.hero-title {
    font-size: 4.5rem; font-weight: 900; line-height: 1; margin-bottom: 30px; color: #000; letter-spacing: -2px;
}
.hero-title span { color: var(--col-kontroler-red); }

.hero-desc {
    font-size: 1rem; color: #444; margin-bottom: 40px; line-height: 1.75; max-width: 580px; font-weight: 400; text-align: justify;
}

.hero-desc a,
.legal-modal-intro a,
.legal-modal-body a,
.legal-modal-footer-note a {
    color: #111;
    font-weight: 700;
    text-decoration: none;
    border-bottom: none;
    box-shadow: inset 0 -0.18em 0 rgba(0, 0, 0, 0.08);
    padding: 0 0.08em;
    transition: color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.hero-desc a:hover,
.hero-desc a:focus-visible,
.legal-modal-intro a:hover,
.legal-modal-intro a:focus-visible,
.legal-modal-body a:hover,
.legal-modal-body a:focus-visible,
.legal-modal-footer-note a:hover,
.legal-modal-footer-note a:focus-visible {
    color: #000;
    border-bottom-color: transparent;
    box-shadow: inset 0 -1.05em 0 rgba(0, 0, 0, 0.12);
    outline: none;
}

.hero-connect { display: flex; gap: 15px; align-items: center; flex-wrap: wrap; }
.btn-round {
    width: 50px; height: 50px; border-radius: 50%; background: #fff; border: 1px solid #ddd;
    display: flex; align-items: center; justify-content: center; color: #333; font-size: 1.3rem;
    transition: 0.3s; box-shadow: 0 5px 15px rgba(0,0,0,0.05); position: relative;
}
.btn-round:hover { transform: translateY(-3px); border-color: #000; color: #000; box-shadow: 0 10px 20px rgba(0,0,0,0.1); }
.btn-facebook:hover { color: #1877f2; border-color: #1877f2; }
.btn-instagram:hover { color: #e1306c; border-color: #e1306c; }
.btn-blog:hover { color: #00c7d4; border-color: #00c7d4; }
.btn-round::after {
    content: attr(title); position: absolute; bottom: -30px; left: 50%; transform: translateX(-50%);
    font-size: 0.7rem; background: #000; color: #fff; padding: 4px 8px; border-radius: 4px;
    opacity: 0; transition: 0.3s; pointer-events: none; white-space: nowrap; font-family: 'Roboto', sans-serif;
}
.btn-round:hover::after { opacity: 1; bottom: -35px; }
.btn-warbook:hover { color: #000; border-color: #000; }

.hero-visual { flex: 1; display: flex; justify-content: center; position: relative; }
.author-box {
    position: relative;
    width: 390px;
    aspect-ratio: 719 / 1080;
    height: auto;
    z-index: 2;
    padding: 10px;
    border-radius: 0;
    overflow: hidden;
    background: transparent;
    border: 1px solid #ff0033;
    box-shadow: none;
}
.author-img {
    position: relative;
    z-index: 1;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: 0;
    border: none;
    filter: grayscale(0.18) contrast(1.14) saturate(0.85) brightness(0.97);
    box-shadow: none;
}
.author-box::before {
    content: none;
    position: absolute;
    inset: 0;
    z-index: 3;
    border-radius: 0;
    border: none;
    box-shadow: none;
    pointer-events: none;
}

.author-box::after {
    content: none;
}

@media (prefers-reduced-motion: reduce) {
    .author-img {
        animation: none;
    }
}


.play-btn { font-size: 3rem; color: #fff; margin-bottom: 10px; filter: drop-shadow(0 0 10px rgba(0,0,0,0.8)); }

.back-arrow {
    color: #aaa !important; 
    font-weight: 400 !important;
    margin-right: 5px;
    font-size: 1.4rem;
    transition: 0.3s;
}
.nav-logo:hover { opacity: 1; }
.nav-logo:hover .back-arrow { color: #fff !important; }
.nav-logo:hover span, .nav-logo:hover { color: #fff; }

.series-hero {
    position: relative;
    min-height: 100vh; 
    display: flex; flex-direction: column; justify-content: center; align-items: center;
    padding-top: 80px; 
    padding-bottom: 50px;
    text-align: center;
    background: linear-gradient(rgba(0,0,0,0.6), rgba(5,5,7,1)), url('https://images.unsplash.com/photo-1451187580459-43490279c0fa?q=80&w=2072&auto=format&fit=crop');
    background-size: cover; background-position: center;
    border-bottom: 1px solid #222;
}

.genre-tags { display: inline-flex; gap: 10px; margin-bottom: 30px; }
.genre-tag {
    font-family: 'Rajdhani', sans-serif; font-weight: 700; color: var(--col-ui); 
    font-size: 0.9rem; letter-spacing: 2px; text-transform: uppercase;
    padding: 8px 20px; border: 1px solid rgba(0, 242, 255, 0.3);
    background: rgba(0, 242, 255, 0.05);
}

.series-title {
    font-size: 4.5rem; font-weight: 900; letter-spacing: 2px; margin-bottom: 30px; color: #fff;
    text-shadow: 0 0 30px rgba(0,0,0,0.8);
}
.series-desc { 
    max-width: 900px; margin: 0 auto; color: #ddd; font-size: 1.15rem; 
    line-height: 1.8; padding: 0 20px; text-align: justify;
}
.series-desc p { margin-bottom: 20px; }

.book-section { padding: 100px 5%; border-bottom: 1px solid #222; }
.book-layout {
    display: grid; grid-template-columns: 350px 1fr; gap: 60px; max-width: 1300px; margin: 0 auto; align-items: start;
}
.book-visual { perspective: 1000px; }
.book-cover { width: 100%; border-radius: 4px; box-shadow: 20px 20px 50px rgba(0,0,0,0.5); transition: transform 0.3s; }
.book-cover:hover { transform: rotateY(-5deg) scale(1.02); }
.book-info { min-width: 0; width: 100%; overflow: hidden; }
.book-info h2 { font-family: 'Montserrat'; font-size: 3rem; font-weight: 900; line-height: 1; margin-bottom: 10px; }
.book-tagline { font-family: 'Courier Prime', monospace; font-size: 1rem; margin-bottom: 25px; display: block; font-weight: 700; }
.book-desc { font-size: 1.05rem; color: #ccc; margin-bottom: 30px; text-align: justify; }

.lubimy-badge { background: #d45b00; color: #fff; padding: 2px 6px; font-size: 0.6rem; border-radius: 2px; font-weight: 700; display: inline-block; margin-bottom: 5px; font-family: sans-serif; }

.swiper { width: 100%; padding-bottom: 40px; }
.swiper-slide {
    background: #111; border: 1px solid #333; 
    padding: 40px 60px; border-radius: 4px; 
    height: auto; min-height: 250px; display: flex; align-items: center; box-sizing: border-box;
}
.fragment-text { font-family: 'Courier Prime', monospace; font-size: 0.9rem; color: #bbb; line-height: 1.6; font-style: italic; margin: 0; }
.fragment-text::before { content: '"'; font-family: 'Times New Roman'; font-size: 3rem; line-height: 0; color: #333; margin-right: 10px; vertical-align: -15px; }

.swiper-pagination-bullet {
    background: #666;
    opacity: 0.5;
}
.swiper-pagination-bullet-active {
    background: #fff;
    opacity: 1;
}

.btn-main-buy { padding: 15px 40px; font-weight: 800; font-family: 'Montserrat'; text-transform: uppercase; border: none; color: #fff; flex: 1; width: 100%; transition: 0.3s; cursor: pointer; }
.btn-main-buy:hover { filter: brightness(1.2); transform: translateY(-2px); }
.btn-store { flex: 1; text-align: center; padding: 12px; border: 1px solid #444; color: #888; font-family: 'Rajdhani'; font-weight: 700; text-transform: uppercase; font-size: 0.85rem; transition: 0.3s; background: transparent; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px; }
.btn-store:hover { border-color: #fff; color: #fff; background: rgba(255,255,255,0.05); }

.style-kontroler h2, .style-kontroler .book-tagline { color: var(--col-kontroler); }
.style-kontroler .swiper-slide { border-left: 3px solid var(--col-kontroler); }
.style-kontroler .swiper-pagination-bullet-active { background: var(--col-kontroler); }
.style-kontroler .swiper-button-next, .style-kontroler .swiper-button-prev { color: var(--col-kontroler); }
.style-kontroler .btn-main-buy { background: var(--col-kontroler); }

.style-banita h2, .style-banita .book-tagline { color: var(--col-banita); }
.style-banita .swiper-slide { border-left: 3px solid var(--col-banita); }
.style-banita .swiper-pagination-bullet-active { background: var(--col-banita); }
.style-banita .swiper-button-next, .style-banita .swiper-button-prev { color: var(--col-banita); }
.style-banita .btn-main-buy { background: var(--col-banita); }

.map-section { position: relative; width: 100%; height: 750px; background: #000; overflow: hidden; border-top: 1px solid #222; }
.map-ui-layer { position: absolute; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; z-index: 10; }
.map-header {
    position: absolute; top: 30px; left: 50%; transform: translateX(-50%); text-align: center;
    pointer-events: auto; background: rgba(0,0,0,0.8); padding: 15px 30px; border: 1px solid #333; -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px); border-radius: 4px;
}
.map-header h3 { font-family: 'Rajdhani'; font-size: 1.8rem; color: #fff; margin: 0; letter-spacing: 2px; }
.map-header p { font-family: 'Courier Prime'; font-size: 0.75rem; color: var(--col-ui); margin: 0; }

#globeViz { width: 100%; height: 100%; display: block; cursor: grab; }
#globeViz:active { cursor: grabbing; }

.map-regions-panel {
    position: absolute; top: 120px; left: 40px; 
    display: flex; flex-direction: column; gap: 5px; z-index: 20; pointer-events: auto; width: 220px;
}
.region-group { position: relative; }
.region-btn {
    background: rgba(0,0,0,0.8); border: 1px solid #444; color: #aaa;
    padding: 10px 15px; text-align: left; font-family: 'Rajdhani'; font-weight: 700; font-size: 0.9rem;
    cursor: pointer; transition: 0.3s; text-transform: uppercase; letter-spacing: 1px;
    width: 100%; display: flex; justify-content: space-between; align-items: center;
}
.region-btn:hover { background: rgba(0, 242, 255, 0.1); border-color: var(--col-ui); color: #fff; }
.region-btn.active { border-color: var(--col-ui); color: var(--col-ui); background: rgba(0, 242, 255, 0.05); }

.sub-locations {
    position: absolute; left: 105%; top: 0; width: 200px;
    background: rgba(10, 15, 20, 0.95); border: 1px solid #444;
    max-height: 0; overflow: hidden; opacity: 0; transition: opacity 0.3s, max-height 0s 0.3s;
}
.sub-locations.open { 
    max-height: 500px; opacity: 1; border-color: var(--col-ui); transition: opacity 0.3s, max-height 0s; 
}
.loc-item {
    padding: 10px 15px; color: #888; font-family: 'Courier Prime'; font-size: 0.8rem;
    cursor: pointer; transition: 0.2s; border-bottom: 1px solid rgba(255,255,255,0.05);
}
.loc-item:hover { color: var(--col-highlight); background: rgba(255,0,0,0.1); padding-left: 20px; }

.zoom-controls {
    position: absolute; bottom: 40px; left: 40px;
    display: flex; flex-direction: column; gap: 5px; z-index: 20; pointer-events: auto;
}
.zoom-btn { width: 40px; height: 40px; background: rgba(0,0,0,0.8); border: 1px solid #333; color: var(--col-ui); border-radius: 4px; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: 0.3s; font-size: 1.2rem; }
.zoom-btn:hover { background: var(--col-ui); color: #000; }

.moon-btn {
    position: absolute; bottom: 40px; right: 40px; width: 100px; height: 100px; border-radius: 50%; border: 2px solid #333; background: #050505; cursor: pointer; pointer-events: auto; transition: 0.3s; display: flex; flex-direction: column; align-items: center; justify-content: center; overflow: hidden; z-index: 20; box-shadow: 0 0 20px rgba(0,0,0,0.5);
}
.moon-btn:hover { border-color: var(--col-ui); box-shadow: 0 0 30px rgba(0, 242, 255, 0.4); transform: scale(1.1); }
.moon-btn img { position: absolute; width: 100%; height: 100%; object-fit: cover; opacity: 0.7; }
.moon-label { position: relative; z-index: 2; font-family: 'Rajdhani'; color: #fff; font-weight: 700; text-shadow: 0 0 5px #000; font-size: 0.8rem; letter-spacing: 1px; }

.map-modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.95); z-index: 3000; display: none;
    justify-content: center; align-items: center; opacity: 0; transition: opacity 0.4s;
}
.map-modal-overlay.active { display: flex; opacity: 1; }
.map-modal-content {
    width: 90vw; height: 90vh; background: #0b0c10;
    display: grid; grid-template-columns: 60% 40%; position: relative; border: 1px solid #333;
    transform: scale(0.9); transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.map-modal-overlay.active .map-modal-content { transform: scale(1); }
.modal-img-box { position: relative; overflow: hidden; height: 100%; }
.modal-img { width: 100%; height: 100%; object-fit: cover; filter: brightness(0.8); transition: 0.5s; }
.modal-img-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(to right, transparent 80%, #0b0c10 100%); }
.modal-info { padding: 40px; display: flex; flex-direction: column; justify-content: center; border-left: 1px solid #222; position: relative; overflow-y: auto; }
.modal-coords { font-family: 'Courier Prime'; color: var(--col-ui); font-size: 0.9rem; display: block; margin-bottom: 10px; border-bottom: 1px solid var(--col-ui); padding-bottom: 10px; display: inline-block;}
.modal-title { font-family: 'Montserrat'; font-size: 2.2rem; color: #fff; line-height: 1; margin: 15px 0; font-weight: 800; text-transform: uppercase; }
.modal-desc { font-size: 0.98rem; color: #b2b2b2; line-height: 1.45; margin-bottom: 18px; font-family: 'Courier Prime', 'Roboto Mono', monospace; text-align: left; background: #181818; border-radius: 4px; padding: 10px 14px; box-shadow: 0 1px 4px rgba(0,0,0,0.08); }
.modal-desc p { margin: 0; padding-top: 8px; font-family: inherit; }
.modal-source {
    font-size: 0.75em;
    color: #888;
    text-align: right;
    margin-top: 0;
    margin-bottom: 0.2em;
    letter-spacing: 0.02em;
    font-style: italic;
    position: absolute;
    right: 0;
    top: -26px;
    z-index: 2;
    background: none;
    border: none;
    box-shadow: none;
}
.modal-nav {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    border-top: 1px solid #333;
    padding-top: 20px;
    position: relative;
    min-height: 48px;
}
.modal-nav-btn { background: transparent; border: 1px solid #444; color: #aaa; padding: 10px 20px; font-size: 0.8rem; transition: 0.3s; display: flex; align-items: center; gap: 10px; font-family: 'Rajdhani'; font-weight: 700; }
.modal-nav-btn:hover { border-color: var(--col-ui); color: #fff; background: rgba(0, 242, 255, 0.05); }
.modal-close { position: absolute; top: 20px; right: 20px; color: #fff; font-size: 2rem; cursor: pointer; z-index: 10; transition: 0.3s; background: rgba(0,0,0,0.5); width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; border-radius: 50%; }
.modal-close:hover { color: var(--col-ui); background: #000; }

.modal-overlay-purchase {
    padding: 24px;
    background:
        radial-gradient(circle at top right, rgba(0, 242, 255, 0.14), transparent 34%),
        radial-gradient(circle at bottom left, rgba(217, 4, 41, 0.18), transparent 32%),
        rgba(4, 5, 8, 0.88);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.modal-content-purchase {
    width: min(1020px, 95%);
    max-height: none;
    overflow: hidden;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: linear-gradient(180deg, #0a0d12 0%, #07090d 100%);
    color: #f0f3f8;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
}

.modal-close.modal-close-purchase {
    top: 18px;
    right: 18px;
    width: 34px;
    height: 34px;
    font-size: 1rem;
    line-height: 1;
    color: rgba(17, 17, 17, 0.78);
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(17, 17, 17, 0.14);
    border-radius: 999px;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.16);
    z-index: 5;
    opacity: 0.96;
    transition: 0.2s ease;
}

.modal-close.modal-close-purchase:hover {
    color: #111;
    background: #fff;
    border-color: rgba(17, 17, 17, 0.3);
    opacity: 1;
}

.purchase-modal-header {
    position: relative;
    padding: 16px 18px 11px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.12);
    background: #ffffff;
}

.purchase-modal-header h2 {
    font-size: 1.15rem;
    margin-bottom: 6px;
    color: #111;
}

.purchase-modal-intro {
    color: #555;
    font-size: 0.82rem;
    line-height: 1.4;
}

.purchase-modal-footer {
    padding: 9px 18px;
    background: #ffffff;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 0 0 18px 18px;
    text-align: center;
    font-size: 0.68rem;
    color: #aaa;
    letter-spacing: 0.5px;
}

.purchase-modal-body {
    overflow: visible;
    padding: 12px 16px 14px;
}

.purchase-books-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.purchase-book-card {
    background: rgba(12, 15, 22, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-top-width: 3px;
    padding: 10px;
    display: flex;
    flex-direction: row;
    align-items: stretch;
    gap: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    min-height: 280px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.purchase-book-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
}

.purchase-book-card-kontroler { border-top-color: var(--col-kontroler-red); }
.purchase-book-card-banita { border-top-color: var(--col-banita-violet); }

.purchase-book-cover-wrap {
    flex: 0 0 58%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.purchase-book-cover-img {
    width: 100%;
    height: auto;
    display: block;
    filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.6));
}

.purchase-book-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.purchase-book-meta {
    font-family: 'Courier Prime', monospace;
    font-size: 0.65rem;
    font-weight: 700;
    color: #9ca3af;
}

.purchase-book-title {
    font-size: 0.92rem;
    color: #fff;
    letter-spacing: 0.5px;
}

.purchase-book-links {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: auto;
}

.purchase-shop-link {
    color: #fff;
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    text-align: center;
    padding: 10px 8px;
    border-radius: 0;
    border: 2px solid;
    background: #000;
    transition: filter 0.2s ease, transform 0.15s ease;
    display: block;
}

.purchase-shop-link:hover {
    filter: brightness(1.3);
    transform: translateY(-1px);
    color: #fff;
}

.purchase-book-card-kontroler .purchase-shop-link {
    border-color: var(--col-kontroler-red);
}

.purchase-book-card-banita .purchase-shop-link {
    border-color: var(--col-banita-violet);
}

.purchase-shop-link-empik {
    text-shadow: none;
}

.purchase-shop-link-warbook {
    text-shadow: none;
}

.purchase-newsletter-row {
    margin-top: 8px;
}

.purchase-newsletter-box {
    max-width: 100%;
    margin-top: 0;
    padding: 14px 16px;
    background: rgba(6, 9, 14, 0.95);
    border: none;
    border-left: 2px solid var(--col-ulisses-cyan);
    box-shadow: none;
}

.purchase-newsletter-box .db-text {
    font-size: 0.78rem;
    line-height: 1.4;
    margin-bottom: 11px;
}

.purchase-newsletter-box .db-input {
    padding: 12px;
}

.purchase-newsletter-box .db-submit {
    padding: 0 22px;
    background: #000;
    color: #fff;
    border: 2px solid var(--col-ulisses-cyan);
    border-radius: 0;
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    transition: filter 0.2s ease;
}

.purchase-newsletter-box .db-submit:hover {
    filter: brightness(1.3);
    background: #000;
}

@media (max-width: 900px) {
    .nav-purchase-btn {
        padding: 8px 11px;
        font-size: 0.74rem;
        letter-spacing: 0.9px;
    }

    .purchase-books-row {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .modal-overlay-purchase {
        padding: 12px;
    }

    .modal-content-purchase {
        max-height: calc(100vh - 24px);
        width: min(760px, 100%);
    }

    .modal-close.modal-close-purchase {
        top: 14px;
        right: 14px;
        width: 38px;
        height: 38px;
    }

    .purchase-modal-header {
        padding: 18px 56px 14px 18px;
    }

    .purchase-modal-header h2 {
        font-size: 1.05rem;
        margin-bottom: 4px;
    }

    .purchase-modal-intro {
        font-size: 0.78rem;
    }

    .purchase-modal-body {
        overflow-y: auto;
        padding: 14px 16px 18px;
    }

    .purchase-book-card {
        min-height: 0;
        padding: 12px;
    }

    .purchase-book-cover-wrap {
        flex-basis: 42%;
    }

    .purchase-newsletter-box {
        padding: 12px 14px;
    }
}

@media (max-width: 600px) {
    .modal-overlay-purchase {
        padding: 8px;
        align-items: center;
    }

    .modal-content-purchase {
        width: 100%;
        max-height: calc(100vh - 16px);
        border-radius: 14px;
    }

    .modal-close.modal-close-purchase {
        top: 10px;
        right: 10px;
        width: 42px;
        height: 42px;
        font-size: 1.1rem;
    }

    .purchase-modal-header {
        padding: 14px 58px 12px 14px;
    }

    .purchase-modal-header h2 {
        font-size: 0.96rem;
        line-height: 1.2;
    }

    .purchase-modal-intro {
        font-size: 0.74rem;
        line-height: 1.35;
    }

    .purchase-modal-body {
        padding: 10px 10px 12px;
    }

    .purchase-books-row {
        gap: 10px;
    }

    .purchase-book-card {
        padding: 10px;
        gap: 10px;
        border-radius: 6px;
    }

    .purchase-book-cover-wrap {
        flex-basis: 40%;
    }

    .purchase-book-info {
        gap: 5px;
    }

    .purchase-book-meta {
        font-size: 0.58rem;
    }

    .purchase-book-title {
        font-size: 0.82rem;
        letter-spacing: 0.3px;
    }

    .purchase-book-links {
        gap: 5px;
    }

    .purchase-shop-link {
        font-size: 0.66rem;
        letter-spacing: 0.9px;
        padding: 8px 6px;
    }

    .purchase-newsletter-row {
        margin-top: 6px;
    }

    .purchase-newsletter-box {
        padding: 10px 10px 12px;
    }

    .purchase-newsletter-box .db-label {
        font-size: 0.95rem;
        margin-bottom: 6px;
    }

    .purchase-newsletter-box .db-text {
        font-size: 0.72rem;
        line-height: 1.35;
        margin-bottom: 8px;
    }

    .purchase-newsletter-box .db-input-group {
        flex-direction: column;
    }

    .purchase-newsletter-box .db-input {
        padding: 11px 12px;
    }

    .purchase-newsletter-box .db-submit {
        min-height: 42px;
        padding: 0 14px;
        font-size: 0.7rem;
        width: 100%;
    }

    .purchase-modal-footer {
        padding: 7px 10px;
        font-size: 0.62rem;
        border-radius: 0 0 14px 14px;
    }
}

/* Artystyczne litery A i Ó (poprawka: overflow, line-height, bez background-clip) */
.art-a {
        text-shadow: none !important;
    display: inline-block;
    width: 0.75em;
    height: 0.75em;
    background: #7b2cbf !important;
        color: transparent !important;
    position: relative;
    clip-path: polygon(50% 0%, 100% 100%, 0% 100%);
    vertical-align: middle;
    margin: 0 0.1em;
    transform: translateY(-0.11em);
    overflow: hidden;
    line-height: 1;
}
.art-a-violet {
        text-shadow: none !important;
    display: inline-block;
    width: 0.75em;
    height: 0.75em;
    background: #7b2cbf !important;
    color: transparent !important;
    position: relative;
    clip-path: polygon(50% 0%, 100% 100%, 0% 100%);
    vertical-align: middle;
    margin: 0 0.1em;
    transform: translateX(-0.05em) translateY(-0.10em);
    overflow: hidden;
    line-height: 1;
}
.art-o {
        text-shadow: none !important;
    display: inline-block;
    width: 0.75em;
    height: 0.75em;
    background: #d90429 !important;
    color: transparent !important;
    border-radius: 50%;
    position: relative;
    vertical-align: middle;
    margin: 0 0.1em;
    transform: translateY(-0.11em);
    overflow: hidden;
    line-height: 1;
}
.art-o-red {
        text-shadow: none !important;
    display: inline-block;
    width: 0.76em;
    height: 0.76em;
    background: #d90429 !important;
    color: transparent !important;
    border-radius: 50%;
    position: relative;
    vertical-align: middle;
    margin: 0 0.1em;
    transform: translateY(-0.09em);
    overflow: hidden;
    line-height: 1;
}

/* Form Message Styles */
.form-message {
    margin-top: 15px;
    padding: 12px 16px;
    border-radius: 4px;
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.9rem;
    text-align: center;
    animation: slideIn 0.3s ease-in-out;
}

.form-message.success {
    background-color: #28a745;
    color: #fff;
    border: 1px solid #20c997;
}

.form-message.error {
    background-color: #dc3545;
    color: #fff;
    border: 1px solid #e8606b;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =============================================
   RWD — TABLET (≤ 1024px)
   ============================================= */
@media (max-width: 1024px) {
    .hero-container { gap: 40px; }
    .hero-title { font-size: 4rem; }
    .author-box { width: 300px; }

    .audio-grid { grid-template-columns: repeat(2, 1fr); }

    .worlds-wrapper:hover .world-panel:not(:hover) { filter: none; flex: 1; }
    .worlds-wrapper .world-panel:hover { flex: 1; filter: none; }
}

/* =============================================
   RWD — TABLET (≤ 900px) — uzupełnienie
   ============================================= */
@media (max-width: 900px) {
    .nav-links { display: none; }
    .nav-right-container { gap: 0; }

    /* Hero */
    .hero-section { padding: 100px 5% 60px; }
    .hero-container { flex-direction: column-reverse; align-items: center; text-align: center; gap: 30px; padding-top: 20px; }
    .hero-content { max-width: 100%; }
    .hero-intro { display: inline-block; margin-bottom: 12px; }
    .hero-title { font-size: 3.2rem; letter-spacing: -1px; margin-bottom: 20px; }
    .hero-desc { font-size: 0.95rem; max-width: 100%; text-align: center; margin-bottom: 30px; }
    .hero-connect { justify-content: center; }
    .author-box { width: 100%; max-width: 250px; }

    /* Sekcja Kula / Ulisses */
    .worlds-wrapper { flex-direction: column; }
    .world-panel { padding: 60px 5%; min-height: 0; }
    .worlds-wrapper:hover .world-panel:not(:hover) { filter: none; flex: 1; }
    .worlds-wrapper .world-panel:hover { flex: 1; filter: none; }
    .panel-content-fixed { width: 100%; max-width: 100%; }
    .kula-title { font-size: 2rem; }
    .ulisses-title { font-size: 2.2rem; }
    .books-grid { flex-direction: column; align-items: center; }
    .book-card { width: 100%; max-width: 400px; }

    /* Blog */
    .section-blog { padding: 70px 5%; }
    .section-head h2 { font-size: 2rem; }
    .blog-container { grid-template-columns: 1fr; max-width: 520px; }

    /* Audio */
    .section-audio { padding: 70px 5%; }
    .section-audio .section-head h2 { font-size: 2rem; }
    .audio-grid { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; }
}

/* =============================================
   RWD — TELEFON (≤ 600px)
   ============================================= */
@media (max-width: 600px) {
    /* Nav */
    .nav-logo { font-size: 1.1rem; }
    nav { padding: 0 4%; }
    .nav-right-container { margin-left: auto; }
    .nav-purchase-btn {
        width: 46px;
        height: 46px;
        min-width: 46px;
        padding: 0;
        border-radius: 999px;
        justify-content: center;
        gap: 0;
        box-shadow: 0 0 0 1px rgba(255,255,255,0.12), 0 8px 18px rgba(217, 4, 41, 0.32);
    }
    .nav-purchase-btn-label { display: none; }
    .nav-purchase-btn-icon {
        display: inline-flex;
        font-size: 1.05rem;
        line-height: 1;
    }

    /* Hero */
    .hero-section { padding: 90px 4% 50px; }
    .hero-title { font-size: 2.6rem; letter-spacing: -0.5px; }
    .hero-intro { font-size: 0.85rem; letter-spacing: 2px; }
    .hero-desc { font-size: 0.9rem; line-height: 1.7; }
    .hero-connect { gap: 10px; }
    .btn-round { width: 44px; height: 44px; font-size: 1.1rem; }
    .author-box { max-width: 210px; }

    /* Kula światów */
    .world-panel { padding: 50px 4%; }
    .kula-title { font-size: 1.7rem; }
    .ulisses-title { font-size: 1.8rem; }
    .kula-desc { font-size: 0.88rem; }
    .genre-badge { font-size: 0.72rem; }
    .book-card { max-width: 100%; }
    .db-form-container { padding: 20px; }
    .db-submit { padding: 0 18px; font-size: 0.82rem; }

    /* Blog */
    .section-blog { padding: 50px 4%; }
    .section-head h2 { font-size: 1.7rem; }
    .section-head p { font-size: 0.8rem; letter-spacing: 2px; }
    .blog-container { max-width: 100%; gap: 20px; }
    .blog-img-box { height: 160px; }

    /* Audio */
    .section-audio { padding: 50px 4%; }
    .section-audio .section-head h2 { font-size: 1.7rem; }
    .audio-grid { max-width: 100%; gap: 16px; }

    /* Footer */
    footer { padding: 18px 4% 16px; }
    .socials { gap: 10px; margin-bottom: 10px; }
    .socials a { font-size: 1rem; }
    .footer-links { gap: 8px 12px; margin-bottom: 8px; }
    .footer-link { font-size: 0.68rem; letter-spacing: 0.8px; }
    .copyright { font-size: 0.66rem; line-height: 1.35; }

    /* Modals */
    .modal-overlay-legal { padding: 8px; }
    .modal-content-legal { border-radius: 16px; max-height: calc(100vh - 16px); }
    .legal-modal-header { padding: 20px 16px 16px; padding-right: 52px; }
    .legal-modal-body { padding: 16px; }
    .modal-content-legal h2 { font-size: 1.2rem; }
    .consent-actions { flex-direction: column; }
    .btn-consent { width: 100%; justify-content: center; }
}

/* =============================================
   RWD — BARDZO MAŁY TELEFON (≤ 380px)
   ============================================= */
@media (max-width: 380px) {
    .hero-title { font-size: 2.1rem; }
    .author-box { max-width: 180px; }
    .nav-logo { font-size: 1rem; }
    .nav-purchase-btn {
        width: 42px;
        height: 42px;
        min-width: 42px;
    }
    .kula-title { font-size: 1.5rem; }
    .ulisses-title { font-size: 1.55rem; }
}

