/* ============================================================
   RESET & GLOBAL
============================================================ */
* {
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html, body {
    margin: 0;
    padding: 0;
    font-family: "Quicksand", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    scroll-behavior: smooth;
}


/* ============================================================
   DESKTOP MENU
============================================================ */
.menu {
    width: 100%;
    background-color: #C08CCC;
    position: sticky;
    top: 0;
    z-index: 5000;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.menu-inner {
    width: 100%;
    padding: 1.2rem 3vw;
    max-width: 1920px;
    margin: 0 auto;

    display: flex;
    justify-content: space-between;
    align-items: center;

    position: relative;
}

.menu-logo {
    height: clamp(2rem, 5vh, 3.2rem);
    width: auto;
    display: block;
}

.menu-left,
.menu-right {
    display: flex;
    align-items: center;
    gap: 1.6rem;
}

.menu-link {
    font-size: clamp(1.2rem, 1.4vw, 1.5rem);
    font-weight: 400;
    text-decoration: none;
    color: white;
    opacity: 0.95;
    transition: opacity .2s ease;
}

.menu-link:hover,
.menu-link:focus {
    opacity: 1;
}

.menu-buy {
    font-weight: 900;
}


/* ============================================================
   HAMBURGER ICON
============================================================ */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: .33rem;

    background: none;
    border: none;
    cursor: pointer;
    appearance: none;

    position: absolute;
    right: 2rem;
    top: 50%;
    transform: translateY(-50%);

    padding: .5rem;
    z-index: 9001;
}

.menu-toggle:focus {
    outline: 2px solid white;
    outline-offset: 2px;
}

.burger-line {
    width: 2rem;
    height: .22rem;
    background: white;
    border-radius: 1rem;
    transition: all .3s ease;
}

.menu-toggle[aria-expanded="true"] .burger-line:nth-child(1) {
    transform: translateY(.55rem) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .burger-line:nth-child(2) {
    opacity: 0;
}

.menu-toggle[aria-expanded="true"] .burger-line:nth-child(3) {
    transform: translateY(-.55rem) rotate(-45deg);
}


/* ============================================================
   MOBILE MENU (FULLSCREEN)
============================================================ */
.mobile-menu {
    display: none;
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;

    background: rgba(192, 140, 204, .97);
    backdrop-filter: blur(2px);

    padding-top: 14vh;

    display: none;
    flex-direction: column;
    align-items: center;
    gap: 3vh;

    z-index: 9000;
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s ease;
}

.mobile-menu.active {
    display: flex;
    opacity: 1;
    pointer-events: auto;
}

.mobile-menu-logo {
    width: clamp(3rem, 12vw, 5rem);
    margin-bottom: 2vh;
}

.mobile-menu-item {
    font-size: clamp(1.4rem, 6vw, 2.5rem);
    color: white;
    text-decoration: none;
    transition: color .2s ease;
}

.mobile-menu-item:hover {
    color: rgba(255,255,255,0.8);
}

.mobile-buy {
    font-weight: 900;
}

.mobile-menu-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;

    background: none;
    border: none;
    color: white;
    font-size: 2.4rem;

    cursor: pointer;
    z-index: 9100;
    transition: opacity .2s ease;
}

.mobile-menu-close:hover,
.mobile-menu-close:focus {
    opacity: 0.8;
}


/* ============================================================
   MENU – RESPONSYWNOŚĆ
============================================================ */
@media (max-width: 1080px) {
    .menu-right {
        display: none;
    }

    .menu-link {
        display: none;
    }

    .menu-toggle {
        display: flex;
    }
}

@media (max-width: 600px) {
    .menu-inner {
        padding: 1rem 2.5vw;
    }

    .menu-toggle {
        right: 1.5rem;
    }
}


/* ============================================================
   HERO SECTION
============================================================ */
.hero {
    width: 100%;
    position: relative;

    background-image: url("/img/header-1.webp");
    background-repeat: no-repeat;
    background-size: 100% auto;
    background-position: center -100px;
    background-attachment: fixed;
    background-color: #ffffff;

    padding-bottom: 20vh;
    overflow: visible;
}

/* LOGO NA TLE */
.hero-logo-top {
    position: absolute;
    top: 4vh;
    left: 3vw;
    width: clamp(12rem, 19vw, 22rem);
    pointer-events: none;
    opacity: 0;
    animation: fadeInScale 0.8s ease 0.2s forwards;
    will-change: opacity, transform;
    backface-visibility: hidden;
}

/* GRID HERO */
.hero-inner {
    max-width: 1500px;
    margin: 0 auto;

    padding: 28vh 6vw 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4vw;
}

.hero-book {
    width: clamp(22rem, 34vw, 38rem);
    margin-top: -8vh;
    filter: drop-shadow(0 0.8rem 1.7rem rgba(0,0,0,.28));
    opacity: 0;
    animation: slideInLeft 0.8s ease 0.3s forwards;
    will-change: opacity, transform;
    backface-visibility: hidden;
}

.hero-right {
    text-align: center;
    opacity: 0;
    animation: slideInRight 0.8s ease 0.4s forwards;
    will-change: opacity, transform;
    backface-visibility: hidden;
}

.hero-small-text {
    font-size: clamp(1.4rem, 1.7vw, 2rem);
    font-weight: 600;
    color: black;
}

.hero-title-img {
    width: clamp(14rem, 22vw, 28rem);
    margin: 1rem auto;
    display: block;
}

.hero-description {
    font-size: clamp(1.2rem, 1.5vw, 1.65rem);
    font-weight: 600;
    max-width: 520px;
    margin: 1.6rem auto 3rem;
    color: black;
    line-height: 1.45;
}

.hero-btn {
    display: inline-block;
    width: auto;

    padding: 1.3rem 3rem;
    background: #d48476;
    color: white;

    border: none;
    border-radius: 1rem;
    text-decoration: none;
    font-weight: 700;
    font-size: clamp(1.1rem, 1.2vw, 1.35rem);
    cursor: pointer;

    transition: background .25s ease, transform .25s ease;
    appearance: none;
}

.hero-btn:hover,
.hero-btn:focus {
    background: #e19c8c;
    transform: translateY(-.15rem);
}


/* ============================================================
   HERO ANIMATIONS
============================================================ */
@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}


/* ============================================================
   HERO – MOBILE OPTIMIZED
============================================================ */
@media (max-width: 960px) {
    .hero {
        background-size: 150% auto;
        background-position: center -40px;
        padding-bottom: 15vh;
    }
}

@media (max-width: 768px) {
    .hero {
        background-size: 180% auto;
        background-position: center -20px;
        padding-bottom: 10vh;
    }

    .hero-logo-top {
        display: none;
    }

    .hero-inner {
        grid-template-columns: 1fr;
        padding: 18vh 6vw 4vh;
        text-align: center;
    }

    .hero-book {
        width: 68%;
        margin: 1vh auto 4vh;
    }

    .hero-title-img {
        width: 65%;
        margin: 1rem auto;
    }

    .hero-description {
        max-width: 90%;
        font-size: 1.3rem;
    }

    .hero-btn {
        width: 100%;
        padding: 1.3rem 0;
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {
    .hero {
        background-size: 200% auto;
        background-position: center 0;
        padding-bottom: 8vh;
    }

    .hero-logo-top {
        width: 50vw;
        top: 5vh;
    }

    .hero-inner {
        padding: 15vh 4vw 3vh;
        gap: 2vh;
    }

    .hero-book {
        width: 75%;
        margin: 0.5vh auto 3vh;
    }

    .hero-title-img {
        width: 70%;
    }

    .hero-btn {
        padding: 1rem 1.5rem;
    }
}


/* ============================================================
   POZNAJ BOHATERÓW
============================================================ */

.heroes {
    width: 100%;
    background: #F7E5D9;
    padding: 5rem 5vw;
    text-align: center;
    max-width: 100%;
}

.heroes-title {
    font-size: clamp(2rem, 3vw, 3.2rem);
    font-weight: 700;
    margin-bottom: 4rem;
    color: #333;
    opacity: 0;
    animation: fadeIn 0.6s ease forwards;
}

.heroes-grid {
    max-width: 1400px;
    margin: 0 auto;

    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 4rem 3rem;
}

.hero-card {
    text-align: center;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.hero-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.hero-img {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    margin: 0 auto 1.8rem;
    border: 6px solid white;
    box-shadow: 0 0.3rem 1.2rem rgba(0,0,0,0.15);
    transition: transform .3s ease;
}

.hero-card:hover .hero-img {
    transform: scale(1.05);
}

.hero-name {
    font-size: clamp(1.3rem, 1.7vw, 1.9rem);
    font-weight: 700;
    margin-bottom: 1rem;
}

.hero-text {
    font-size: clamp(1rem, 1.2vw, 1.2rem);
    line-height: 1.55;
    color: #333;
    max-width: 300px;
    margin: 0 auto;
}


/* ============================================================
   HEROES – RESPONSYWNOŚĆ
============================================================ */
@media (max-width: 1024px) {
    .heroes-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 3rem 2rem;
    }
}

@media (max-width: 768px) {
    .heroes {
        padding: 4rem 4vw;
    }

    .heroes-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2.5rem 1.5rem;
    }

    .hero-img {
        width: 180px;
        height: 180px;
    }
}

@media (max-width: 480px) {
    .heroes {
        padding: 3rem 3vw;
    }

    .heroes-grid {
        grid-template-columns: 1fr;
        gap: 2rem 0;
    }

    .hero-img {
        width: 150px;
        height: 150px;
        border-width: 4px;
    }

    .hero-name {
        font-size: 1.3rem;
        margin-bottom: 0.8rem;
    }

    .hero-text {
        font-size: 1rem;
        max-width: 90%;
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}


/* =======================================
   AUDIO SECTION — BASE
======================================= */

.audio-section {
    width: 100%;
    padding: 60px 0;
    background: #f5dcd2;
    text-align: center;
    overflow: hidden;
    max-width: 100%;
}

.audio-title {
    font-family: "Quicksand", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 700;
    margin-bottom: clamp(25px, 4vw, 45px);
    color: #3a2e2c;
    opacity: 0;
    animation: fadeIn 0.6s ease forwards;
}


/* WRAPPER */
.audio-wrapper {
    width: 100%;
    max-width: 1500px;
    margin: 0 auto;

    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 0;
}


/* COLUMNS */
.audio-column {
    width: 50%;
    padding: clamp(100px, 18vw, 170px) 0 clamp(60px, 10vw, 120px);
    background-size: cover;
    background-position: top center;
    border-radius: 25px;
    overflow: hidden;
    position: relative;
    flex: 1;
}

.audio-column.sun {
    background-image: url("/img/sun_mobile.webp");
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.audio-column.moon {
    background-image: url("/img/moon_mobile.webp");
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

/* INNER WRAPPER */
.audio-col-inner {
    max-width: 420px;
    width: 90%;
    margin: clamp(260px, 34vw, 360px) auto 0 auto;
    text-align: center;
}


/* TITLES */
.audio-column h3 {
    font-family: "Quicksand", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: clamp(26px, 3.2vw, 36px);
    font-weight: 700;
    margin-bottom: 4px;
    opacity: 0;
    animation: fadeIn 0.5s ease forwards;
}

.audio-sub {
    font-family: "Quicksand", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: clamp(20px, 3vw, 28px);
    font-weight: 500;
    color: #3a2e2c;
    margin-bottom: clamp(18px, 3vw, 28px);
}


/* BUTTONS */
.audio-btn {
    display: block;
    width: 100%;
    padding: clamp(12px, 1.2vw, 16px) clamp(16px, 1.8vw, 22px);
    margin: clamp(9px, 1vw, 14px) 0;
    border-radius: 12px;
    border: none;
    text-decoration: none;
    font-weight: 600;
    color: white;
    appearance: none;
    cursor: pointer;

    transition: transform .25s ease, box-shadow .3s ease;
    opacity: 0;
    animation: fadeUp 0.6s ease forwards;
}

.sun-btn { background: #cb9867; }
.moon-btn { background: #c9a3ef; }

.audio-btn span {
    font-size: clamp(15px, 1.6vw, 18px);
}

.audio-btn small {
    opacity: 0.9;
    font-size: clamp(12px, 1.4vw, 15px);
}

/* ALL FILES BUTTON */
.audio-all {
    width: 70%;
    margin: 35px auto 0;
    padding: clamp(14px, 1.3vw, 18px);
    border-radius: 14px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    color: white;
    font-size: clamp(15px, 1.7vw, 18px);
    appearance: none;

    transition: transform .25s ease, box-shadow .3s ease;
    opacity: 0;
    animation: fadeUp 0.6s ease forwards;
}

.sun-all { background: #cb9867; }
.moon-all { background: #c9a3ef; }

.audio-btn:hover,
.audio-all:hover,
.audio-btn:focus,
.audio-all:focus {
    transform: translateY(-4px);
    box-shadow: 0 10px 18px rgba(0,0,0,0.18);
}

/* ANIMATION DELAYS */
.audio-btn:nth-of-type(1).show { animation-delay: 0s; }
.audio-btn:nth-of-type(2).show { animation-delay: .05s; }
.audio-btn:nth-of-type(3).show { animation-delay: .10s; }
.audio-btn:nth-of-type(4).show { animation-delay: .15s; }
.audio-btn:nth-of-type(5).show { animation-delay: .20s; }
.audio-all.show { animation-delay: .30s; }

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(22px); }
    to   { opacity: 1; transform: translateY(0); }
}


/* RESPONSIVE — AUDIO */
@media (max-width: 1200px) {
    .audio-column {
        padding: clamp(80px, 15vw, 140px) 0 clamp(50px, 8vw, 100px);
    }

    .audio-col-inner {
        margin-top: clamp(240px, 32vw, 320px);
    }
}

@media (max-width: 900px) {
    .audio-wrapper {
        flex-direction: column;
        gap: 30px;
    }

    .audio-column {
        width: 100%;
        border-radius: 0 !important;
        padding: 140px 0 90px;
    }

    .audio-col-inner {
        margin-top: clamp(220px, 50vw, 300px);
    }

    .audio-all {
        width: 90%;
    }
}

@media (max-width: 600px) {
    .audio-section {
        padding: 40px 0;
    }

    .audio-title {
        font-size: clamp(24px, 3.5vw, 32px);
        margin-bottom: clamp(20px, 3vw, 35px);
    }

    .audio-column {
        padding: 120px 0 70px;
    }

    .audio-col-inner {
        margin-top: clamp(200px, 50vw, 280px);
        width: 95%;
    }

    .audio-column h3 {
        font-size: clamp(22px, 2.8vw, 28px);
    }

    .audio-btn {
        padding: clamp(10px, 1vw, 14px) clamp(14px, 1.5vw, 18px);
        margin: clamp(8px, 0.8vw, 12px) 0;
    }
}

@media (max-width: 480px) {
    .audio-col-inner {
        margin-top: clamp(180px, 60vw, 260px);
    }

    .audio-all {
        width: 95%;
        margin-top: 25px;
    }
}


/* ============================================================
   ULTRA SMALL PHONES (< 360px)
============================================================ */
@media (max-width: 360px) {
    html, body {
        font-size: 14px;
    }

    .menu-inner {
        padding: 0.9rem 2vw;
    }

    .menu-logo {
        height: clamp(1.8rem, 4vh, 2.5rem);
    }

    .menu-link {
        font-size: 1.1rem;
    }

    .hero-inner {
        padding: 14vh 3vw 2vh;
    }

    .hero-logo-top {
        width: 48vw;
    }

    .heroes-title {
        margin-bottom: 2rem;
    }

    .heroes {
        padding: 2.5rem 2vw;
    }

    .audio-section {
        padding: 30px 0;
    }
}


/* ============================================================
   PRINT STYLES
============================================================ */
@media print {
    .menu,
    .mobile-menu,
    .menu-toggle,
    .hero-btn,
    .audio-btn,
    .audio-all {
        display: none !important;
    }

    body {
        font-size: 12pt;
        line-height: 1.5;
    }
}


/* ============================================================
   OPTIMIZATION: REDUCED MOTION FOR ACCESSIBILITY
============================================================ */
@media (prefers-reduced-motion: reduce) {
    * ,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .author-block {
        opacity: 1 !important;
        transform: translateY(0) !important;
    }

    .authors-title {
        opacity: 1 !important;
        transform: translateY(0) !important;
    }

    .characters {
        opacity: 1 !important;
        transform: translateX(-50%) translateY(0) !important;
    }
}


/* ============================================================
   DARK MODE SUPPORT
============================================================ */
@media (prefers-color-scheme: dark) {
    .heroes {
        background: #E8D7CE;
    }

    .audio-section {
        background: #EECEBC;
    }

    .hero-text,
    .hero-name {
        color: #2a2a2a;
    }
}


/* ============================================================
   OPTIMIZATION: SLOW 3G & MOBILE NETWORKS
============================================================ */
@media (prefers-reduced-data: reduce) {
    * ,
    *::before,
    *::after {
        background-attachment: scroll !important;
        animation-duration: 0.01ms !important;
    }

    .hero {
        background-attachment: scroll;
    }

    img {
        background-size: contain;
    }
}


/* -------------------------
   Sekcja Poznaj Autorów
--------------------------*/
.authors-section {
    width: 100%;
    padding: clamp(50px, 8vw, 80px) 5vw;
    background: url("/img/authorsbackground.webp") center/cover no-repeat;
    text-align: center;
    max-width: 100%;
    position: relative;
}

.authors-title {
    font-size: clamp(40px, 5vw, 52px);
    font-weight: 900;
    margin-bottom: clamp(40px, 6vw, 60px);
    color: #1a1a1a;
    letter-spacing: -0.5px;
    opacity: 0;
    animation: fadeInDown 0.7s ease 0.1s forwards;
    backface-visibility: hidden;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* GŁÓWNY UKŁAD (2 kolumny) */
.authors-wrapper {
    display: flex;
    justify-content: center;
    gap: clamp(60px, 8vw, 100px);
    padding-bottom: 140px;
    max-width: 1200px;
    margin: 0 auto;
}

.author-block {
    width: 100%;
    max-width: 420px;
    position: relative;
    padding-bottom: clamp(100px, 15vw, 140px);
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.34, 1.56, 0.64, 1),
                transform 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
    backface-visibility: hidden;
    will-change: opacity, transform;
}

.author-block.visible {
    opacity: 1;
    transform: translateY(0);
}

.author-photo {
    width: clamp(160px, 30vw, 240px);
    height: auto;
    border-radius: 50%;
    margin-bottom: clamp(20px, 3vw, 30px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    transition: transform .3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.author-block:hover .author-photo {
    transform: scale(1.08);
}

.author-block h3 {
    font-size: clamp(28px, 4vw, 38px);
    font-weight: 900;
    margin-bottom: 8px;
    color: #1a1a1a;
    letter-spacing: -0.3px;
}

.role {
    font-size: clamp(16px, 2.2vw, 24px);
    font-weight: 700;
    margin-bottom: clamp(18px, 3vw, 28px);
    opacity: 0.75;
    color: #444;
    text-transform: capitalize;
}

.author-text {
    font-size: clamp(15px, 2vw, 20px);
    line-height: 1.7;
    width: 100%;
    margin: 0 auto clamp(20px, 3vw, 30px);
    font-weight: 500;
    color: #2a2a2a;
    letter-spacing: 0.2px;
}

/* POSTACIE NA DOLE */
.characters {
    width: 100%;
    max-width: clamp(300px, 45vw, 420px);
    height: auto;
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    filter: drop-shadow(0 4px 12px rgba(0,0,0,0.12));
    opacity: 0;
    animation: fadeInUp 0.8s ease 0.3s forwards;
    backface-visibility: hidden;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

.characters-left { max-width: clamp(300px, 42vw, 400px); }
.characters-right { max-width: clamp(300px, 45vw, 420px); }


/* RESPONSYWNOŚĆ — AUTORZY */
@media (min-width: 1440px) {
    .authors-wrapper { gap: 120px; }
    .author-block { max-width: 480px; }
    .author-photo { width: 260px; }
    .characters { max-width: 480px; }
}

@media (max-width: 1200px) {
    .authors-wrapper { gap: clamp(70px, 8vw, 100px); }
    .author-block { max-width: 420px; }
    .characters { max-width: clamp(320px, 42vw, 400px); }
}

@media (max-width: 1024px) {
    .authors-section {
        padding: clamp(40px, 6vw, 70px) 5vw;
    }

    .authors-wrapper {
        gap: clamp(60px, 6vw, 80px);
    }

    .author-block {
        max-width: 380px;
        padding-bottom: 110px;
    }

    .author-photo {
        width: clamp(150px, 28vw, 220px);
    }

    .author-block h3 {
        font-size: clamp(26px, 3.5vw, 36px);
    }

    .role {
        font-size: clamp(15px, 2vw, 22px);
    }

    .author-text {
        font-size: clamp(15px, 1.9vw, 19px);
    }

    .characters {
        max-width: clamp(280px, 38vw, 360px);
    }
}

@media (max-width: 768px) {
    .authors-section {
        padding: clamp(35px, 5vw, 50px) 4vw;
    }

    .authors-wrapper {
        flex-direction: column;
        gap: clamp(60px, 10vw, 90px);
    }

    .author-block {
        max-width: 100%;
        width: 100%;
        padding-bottom: clamp(80px, 20vw, 110px);
    }

    .author-photo {
        width: clamp(140px, 35vw, 200px);
    }

    .authors-title {
        font-size: clamp(32px, 4.5vw, 44px);
        margin-bottom: clamp(30px, 5vw, 45px);
    }

    .author-block h3 {
        font-size: clamp(24px, 3.5vw, 32px);
    }

    .role {
        font-size: clamp(14px, 2vw, 20px);
        margin-bottom: clamp(15px, 2.5vw, 24px);
    }

    .author-text {
        font-size: clamp(14px, 1.8vw, 18px);
        margin-bottom: clamp(18px, 3vw, 25px);
    }

    .characters {
        max-width: clamp(260px, 60vw, 340px);
        bottom: -8px;
    }
}

@media (max-width: 600px) {
    .authors-section {
        padding: clamp(30px, 4vw, 40px) 3.5vw;
    }

    .authors-title {
        font-size: clamp(28px, 4vw, 36px);
        margin-bottom: clamp(25px, 4vw, 35px);
    }

    .author-block {
        padding-bottom: clamp(70px, 18vw, 95px);
    }

    .author-photo {
        width: clamp(130px, 32vw, 180px);
        margin-bottom: clamp(15px, 2.5vw, 22px);
    }

    .author-block h3 {
        font-size: clamp(22px, 3.2vw, 28px);
    }

    .role {
        font-size: clamp(13px, 1.8vw, 18px);
        margin-bottom: clamp(12px, 2vw, 18px);
    }

    .author-text {
        font-size: clamp(13px, 1.6vw, 16px);
        line-height: 1.65;
        margin-bottom: clamp(15px, 2.5vw, 22px);
    }

    .characters {
        max-width: clamp(220px, 55vw, 300px);
        bottom: -5px;
    }
}

@media (max-width: 480px) {
    .authors-section {
        padding: 25px 3vw 40px;
    }

    .authors-wrapper {
        gap: clamp(50px, 12vw, 70px);
    }

    .authors-title {
        font-size: clamp(26px, 3.8vw, 32px);
        margin-bottom: clamp(20px, 3.5vw, 30px);
    }

    .author-block {
        padding-bottom: clamp(65px, 16vw, 85px);
    }

    .author-photo {
        width: clamp(120px, 28vw, 160px);
        margin-bottom: 12px;
    }

    .author-block h3 {
        font-size: clamp(20px, 3vw, 26px);
        margin-bottom: 6px;
    }

    .role {
        font-size: clamp(12px, 1.6vw, 16px);
        margin-bottom: 12px;
    }

    .author-text {
        font-size: clamp(12px, 1.5vw, 15px);
        line-height: 1.6;
        margin-bottom: 12px;
    }

    .characters {
        max-width: clamp(200px, 50vw, 280px);
        bottom: 0;
    }
}

@media (max-width: 360px) {
    .authors-section {
        padding: 20px 2.5vw 35px;
    }

    .authors-title {
        font-size: clamp(24px, 3.5vw, 28px);
        margin-bottom: clamp(18px, 3vw, 25px);
    }

    .author-block {
        padding-bottom: clamp(60px, 15vw, 75px);
    }

    .author-photo {
        width: clamp(110px, 26vw, 145px);
        margin-bottom: 10px;
    }

    .author-block h3 {
        font-size: clamp(18px, 2.8vw, 24px);
    }

    .role {
        font-size: clamp(11px, 1.4vw, 14px);
    }

    .author-text {
        font-size: clamp(11px, 1.3vw, 14px);
        margin-bottom: 10px;
    }

    .characters {
        max-width: clamp(180px, 48vw, 260px);
    }
}

@media (max-height: 600px) and (orientation: landscape) {
    .authors-section {
        padding: 20px 5vw 30px;
    }

    .authors-title {
        margin-bottom: 20px;
    }

    .author-block {
        padding-bottom: 80px;
    }

    .characters {
        max-width: clamp(200px, 25vw, 300px);
    }
}

/* FIX tła chomika – zostawiam logikę jak u Ciebie */
@media (max-width: 1920px) {
    .authors-section {
        background-size: 100%;
        background-position: center bottom 0px;
    }
}

@media (max-width: 1440px) {
    .authors-section {
        background-size: 100%;
        background-position: center bottom 0px;
    }
}

@media (max-width: 1080px) {
    .authors-section {
        background-size: 100%;
        background-position: center bottom 0px;
    }
}

@media (max-width: 768px) {
    .authors-section {
        background-size: 100%;
        background-position: center bottom 0px;
    }
}

@media (max-width: 600px) {
    .authors-section {
        background-size: 100%;
        background-position: center bottom 0px;
    }
}

@media (max-width: 480px) {
    .authors-section {
        background-size: 100%;
        background-position: center bottom 0px;
    }
}

@media (max-width: 360px) {
    .authors-section {
        background-size: 100%;
        background-position: center bottom 0px;
    }
}

/* ============================================================
   SEKCJA KUP KSIĄŻKĘ
============================================================ */

.buy-section {
    width: 100%;
    padding: clamp(60px, 8vw, 120px) 5vw;
    background: #fff3ef;
    text-align: center;
}

.buy-title {
    font-size: clamp(32px, 4.5vw, 48px);
    font-weight: 800;
    margin-bottom: clamp(36px, 6vw, 70px);
    color: #2c1c1b;

    opacity: 0;
    transform: translateY(-20px);
    transition: opacity .8s ease, transform .8s ease;
}

.buy-title.visible {
    opacity: 1;
    transform: translateY(0);
}

.buy-wrapper {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: clamp(28px, 6vw, 80px);
    max-width: 1300px;
    margin: 0 auto;

    opacity: 0;
    transform: translateY(40px);
    transition: opacity .9s cubic-bezier(0.34,1.56,0.64,1),
                transform .9s cubic-bezier(0.34,1.56,0.64,1);
}

.buy-wrapper.visible {
    opacity: 1;
    transform: translateY(0);
}

.book-cover {
    width: clamp(220px, 26vw, 340px);
    border-radius: 14px;
    box-shadow: 0 12px 22px rgba(0,0,0,0.15);
    transition: transform .35s cubic-bezier(0.34,1.56,0.64,1);
}

.buy-wrapper.visible .book-cover:hover {
    transform: scale(1.05);
}

.book-info {
    max-width: 520px;
    text-align: left;
}

.facts-title {
    font-size: clamp(20px, 2.3vw, 28px);
    font-weight: 700;
    margin-bottom: clamp(12px, 2.2vw, 18px);
}

.facts-list {
    list-style: disc;
    padding-left: 22px;
    margin-bottom: clamp(28px, 3.6vw, 40px);
}

.facts-list li {
    font-size: clamp(15px, 1.7vw, 18px);
    line-height: 1.65;
    margin-bottom: 10px;
    font-weight: 500;
}

.buy-button {
    display: block;
    width: fit-content;
    margin: 0 auto;
    padding: 15px 28px;
    background: #d77a5c;
    color: #fff;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 700;
    font-size: clamp(15px, 1.6vw, 18px);
    box-shadow: 0 6px 14px rgba(0,0,0,0.15);
    transition: background .25s ease, transform .25s ease, box-shadow .25s ease;
}

.buy-wrapper.visible .buy-button:hover {
    background: #c8694d;
    transform: translateY(-3px);
    box-shadow: 0 10px 18px rgba(0,0,0,0.18);
}


/* BUY – BREAKPOINTS */
@media (min-width: 1440px) {
    .book-cover { width: 360px; }
    .book-info { max-width: 560px; }
}

@media (max-width: 1200px) {
    .book-cover { width: clamp(220px, 30vw, 300px); }
}

@media (max-width: 1024px) {
    .buy-wrapper {
        gap: clamp(20px, 5vw, 40px);
    }
    .book-info { max-width: 480px; }
}

@media (max-width: 900px) {
    .buy-wrapper {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }
    .book-info { text-align: center; }
    .facts-list { padding-left: 0; list-style: none; }
}

@media (max-width: 768px) {
    .book-cover { width: clamp(180px, 40vw, 260px); }
}

@media (max-width: 600px) {
    .facts-list li { font-size: clamp(14px, 2vw, 17px); }
}

@media (max-width: 480px) {
    .buy-title { font-size: clamp(28px, 6vw, 36px); }
}

@media (max-width: 360px) {
    .book-cover { width: 180px; }
}


/* ============================================================
   SEKCJA AUTOGRAF
============================================================ */

.buy-section-autograph {
    width: 100%;
    padding: clamp(40px, 6vw, 60px) 5vw;
    display: flex;
    justify-content: center;
}

.autograph-inner {
    background: #f0dfc8;
    border-radius: 28px;
    padding: clamp(40px, 5vw, 60px);
    max-width: 1400px;
    width: 100%;
    position: relative;
    overflow: hidden;

    display: flex;
    gap: clamp(20px, 4vw, 60px);

    opacity: 0;
    transform: translateY(40px) scale(.98);
    transition: opacity .9s cubic-bezier(0.34,1.56,0.64,1),
                transform .9s cubic-bezier(0.34,1.56,0.64,1);
}

.autograph-inner.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.autograph-left {
    flex: 1.2;
    z-index: 2;

    opacity: 0;
    transform: translateY(40px);
    transition: opacity .8s ease, transform .8s ease;
}

.autograph-left.visible {
    opacity: 1;
    transform: translateY(0);
}

.autograph-right {
    position: absolute;
    bottom: 0;
    right: 0;
    display: flex;
    align-items: flex-end;
    z-index: 1;

    opacity: 0;
    transform: translateY(50px);
    transition: opacity 1s cubic-bezier(0.34,1.56,0.64,1),
                transform 1s cubic-bezier(0.34,1.56,0.64,1);
    transition-delay: .15s;
}

.autograph-right.visible {
    opacity: 1;
    transform: translateY(0);
}

.autograph-img {
    width: clamp(220px, 28vw, 360px);
    transform: translateY(10px);
    pointer-events: none;
    user-select: none;
    filter: drop-shadow(0 10px 18px rgba(0,0,0,0.15));
}

.autograph-title {
    font-size: clamp(22px, 2.4vw, 32px);
    font-weight: 900;
    color: #cc6d29;
    margin-bottom: clamp(12px, 2vw, 20px);
}

.autograph-strong {
    font-size: clamp(16px, 1.9vw, 20px);
    font-weight: 700;
    margin-bottom: clamp(18px, 3vw, 26px);
}

.autograph-text {
    font-size: clamp(14px, 1.6vw, 18px);
    line-height: 1.55;
    margin-bottom: clamp(20px, 3vw, 30px);
    max-width: 500px;
}

.autograph-btn {
    display: inline-block;
    background: #d77a5c;
    padding: 14px 28px;
    color: white;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 700;
    font-size: clamp(15px, 1.6vw, 18px);
    box-shadow: 0 6px 14px rgba(0,0,0,0.12);
    transition: .25s ease;
}

.autograph-btn:hover {
    background: #ca6b4c;
    transform: translateY(-3px);
    box-shadow: 0 10px 18px rgba(0,0,0,0.18);
}

.autograph-shipping {
    margin-top: 10px;
    font-size: clamp(12px, 1.4vw, 15px);
    opacity: 0.8;
}

/* AUTOGRAF – BREAKPOINTS */
@media (min-width: 1440px) {
    .autograph-img { width: 380px; }
}

@media (max-width: 1200px) {
    .autograph-img { width: clamp(200px, 26vw, 320px); }
}

@media (max-width: 1024px) {
    .autograph-inner { gap: clamp(20px, 4vw, 40px); }
}

@media (max-width: 900px) {
    .autograph-inner {
        flex-direction: column;
        text-align: center;
        padding-bottom: 80px;
    }

    .autograph-right {
        display: none;
    }

    .autograph-img {
        width: clamp(160px, 45vw, 260px);
        transform: none;
    }

    .autograph-left {
        max-width: 90%;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .autograph-inner { padding: clamp(32px, 6vw, 50px); }
}

@media (max-width: 600px) {
    .autograph-img { width: clamp(150px, 50vw, 240px); }
}

@media (max-width: 480px) {
    .autograph-title { font-size: clamp(20px, 5vw, 26px); }
}

@media (max-width: 360px) {
    .autograph-img { width: clamp(130px, 60vw, 200px); }
}


/* ============================================================
   SEKCJA PAKIETU — RAZEM RAŹNIEJ
============================================================ */

.bundle-section {
    width: 100%;
    padding: clamp(20px, 4vw, 40px) 5vw;
    display: flex;
    justify-content: center;
}

.bundle-inner {
    background: #f0dfc8;
    border-radius: 28px;
    padding: clamp(30px, 4vw, 50px);
    max-width: 1400px;
    width: 100%;
    min-height: clamp(180px, 20vw, 260px);
    position: relative;

    display: flex;
    justify-content: flex-start;
    align-items: center;

    opacity: 0;
    transform: translateY(40px) scale(.98);
    transition: opacity .9s cubic-bezier(0.34,1.56,0.64,1),
                transform .9s cubic-bezier(0.34,1.56,0.64,1);
}

.bundle-inner.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.bundle-left {
    z-index: 5;
    max-width: 600px;
}

.bundle-title {
    font-size: clamp(26px, 3vw, 40px);
    font-weight: 900;
    color: #d96e68;
    margin-bottom: clamp(16px, 2vw, 26px);
}

.bundle-subtitle {
    font-size: clamp(15px, 1.6vw, 18px);
    line-height: 1.55;
    margin-bottom: clamp(18px, 3vw, 30px);
}

.bundle-btn {
    display: inline-block;
    background: #d77a5c;
    padding: 14px 32px;
    color: #fff;
    border-radius: 10px;
    font-weight: 700;
    text-decoration: none;
    font-size: clamp(15px, 1.5vw, 18px);
    box-shadow: 0 6px 14px rgba(0,0,0,0.12);
    transition: .25s ease;
}

.bundle-btn:hover {
    background: #ca6b4c;
    transform: translateY(-3px);
}

.bundle-right {
    position: absolute;
    right: clamp(20px, 4vw, 60px);
    display: flex;
    align-items: flex-end;
    gap: clamp(10px, 2vw, 25px);
    pointer-events: none;
}

.bundle-book {
    width: clamp(450px, 20vw, 240px);
    height: auto;
    transform: translateX(60px) translateY(20px);
    filter: drop-shadow(0 10px 18px rgba(0,0,0,0.15));
    user-select: none;
    pointer-events: none;
}



@media (max-width: 900px) {
    .bundle-inner {
        flex-direction: column;
        text-align: center;
        min-height: auto;
        padding-bottom: 40px;
    }

    .bundle-right {
        position: static;
        margin: 30px auto 0;
        transform: none;
        display: flex;
        justify-content: center;
        gap: 20px;
    }

    .small-book{
        transform: none !important;
        width: clamp(160px, 35vw, 180px);
        z-index: 1;
    }
}


/* ===========================================
  Stopka
=========================================== */
.footer {
    background: #d68777;
    padding: clamp(30px, 4vw, 50px) 5vw;
    color: white;
    font-weight: 500;
}

.footer-inner {
    max-width: 1300px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
}

.footer-logo img {
    width: clamp(70px, 10vw, 110px);
    height: auto;
}

.footer-links a,
.footer-contact a {
    color: white;
    text-decoration: none;
    font-size: clamp(14px, 1.3vw, 16px);
    display: block;
    margin-bottom: 6px;
}

.footer-contact p {
    margin-top: 6px;
    line-height: 1.4;
    font-size: clamp(13px, 1.2vw, 15px);
}

.social-icon {
    width: 28px;
    height: 28px;
    object-fit: contain;
    transition: transform .2s ease, opacity .2s ease;
}

.social-icon:hover {
    transform: scale(1.15);
    opacity: 0.85;
}

.footer-social {
    display: flex;
    gap: 18px;
}

@media (max-width: 900px) {
    .footer-inner {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

    .footer-links a {
        margin-bottom: 4px;
    }

    .footer-social {
        justify-content: center;
    }
}
