@font-face {
    font-family: 'HelveticaAF-Bold';
    src: url('../assets/fonts/Helvetica/HelveticaAF-Test2-Bold.otf') format('opentype');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'MS-Gothic';
    src: url('../assets/fonts/MsGothic/MS\ Gothic.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

body {
    background-color: var(--color-bg-grey);
    background-image: url('../assets/images/desktop_background.png'); 
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: fixed;
    background-position: center top;
    font-family: var(--font-body);
    font-size: 18px; 
    color: var(--color-black);
    margin: 0;
    padding: 0;
    line-height: 1.5;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2 {
    font-family: var(--font-heading);
    text-transform: uppercase;
    margin: 0;
    font-weight: normal; 
}

h1 {
    font-size: 122px;
    line-height: 1;
    margin-bottom: 0;
    white-space: nowrap;
    letter-spacing: -4px;
}

h2 {
    text-align: center;
    font-size: 90px;
    letter-spacing: 2px;
    line-height: 1.1;
    margin-bottom: 2rem;
}

h3 {
    font-family: var(--font-h3);
    font-size: 25px;
    font-weight: bold;
    margin: 0 0 0.5rem 0;
}

/* --- Marquee --- */
/* Z-index 100 na wrapperze gwarantuje, że przycisk nie chowa się pod hero-section */
.marquee-wrapper { position: relative; width: 100%; z-index: 100; }
.marquee-bar { background-color: var(--color-mint-main); color: var(--color-white); padding: 10px 0; overflow: hidden; white-space: nowrap; }

/* Przyspieszenie animacji do 20s, by była płynna i widoczna */
.marquee-content { display: inline-block; white-space: nowrap; animation: marquee-scroll 20s linear infinite; }
.marquee-content span { font-family: var(--font-marquee); letter-spacing: 2px; }
.marquee-bar.paused .marquee-content { animation-play-state: paused !important; }

@keyframes marquee-scroll { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

.marquee-controls-container { display: flex; justify-content: flex-end; position: absolute; right: 20px; top: calc(100% + 10px); z-index: 100; pointer-events: none; }
.marquee-toggle-btn { width: 44px; height: 44px; border-radius: 50%; background-color: var(--color-white); border: none; cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; color: var(--color-black); box-shadow: 0 2px 8px rgba(0,0,0,0.15); transition: transform 0.2s, background-color 0.2s; pointer-events: auto; }
.marquee-toggle-btn:hover { transform: scale(1.05); background-color: #f9f9f9; }

/* --- Hero --- */
.hero-section { position: relative; z-index: 10; pointer-events: none; }
.hero-section * { pointer-events: auto; }
.main-header { padding: 2rem 0 4rem 0; }
.logos-container { display: flex; justify-content: center; align-items: center; gap: 30px; }
.logos-container img { max-height: 36px; width: auto; }
.logos-container .logo-x { max-height: 16px; }
.hero-container { display: flex; flex-direction: column; }
.hero-heading-wrapper { width: 100%; }
.hero-columns-wrapper { display: flex; width: 100%; align-items: flex-start; gap: 0; margin-top: -15px; }
.hero-col-left { flex: 0 0 40%; display: flex; flex-direction: column; align-items: center; }
.canvas-img { width: 100%; max-width: 80%; height: auto; display: block; margin-bottom: 1.2rem; }
.btn-primary { display: inline-block; padding: 12px 32px; border: 2px solid var(--color-black); border-radius: 30px; text-decoration: none; color: var(--color-black); font-family: var(--font-body); font-size: 18px; font-weight: bold; transition: background-color 0.3s, color 0.3s; }
.btn-primary:hover { background-color: var(--color-black); color: var(--color-white); }
.hero-cta .btn-primary { font-size: 24px; padding: 14px 46px; }
.hero-col-right { flex: 0 0 60%; position: relative; text-align: left; margin-left: -40px; }

.hero-img { 
    width: 100%; 
    max-width: 600px; 
    margin-top: -60px; 
    margin-bottom: 0; 
    height: auto; 
    display: block; 
    filter: drop-shadow(0px 8px 10px rgba(0, 0, 0, 0.15)); 
}

/* --- Info Section (Biały boks) --- */
.info-section { position: relative; z-index: 5; margin-top: -80px; padding: 0 60px; }
.info-box { 
    background: var(--color-white); 
    border-radius: 20px; 
    padding: 4rem 120px; 
    max-width: 1080px; 
    margin: 0 auto; 
    box-sizing: border-box;
}

/* --- Nagrody --- */
.prizes-container { position: relative; margin-bottom: 9rem; }
.prizes-container h2 { text-align: left; margin-bottom: 2rem; }

.subtitle-2 {
    font-family: var(--font-h3);
    font-size: 20px;
    font-weight: bold;
    text-transform: uppercase;
    margin: 0 0 0.5rem 0;
    letter-spacing: 1px;
}

.splash-bg {
    background-image: url('../assets/icons/glowna-splash.png');
    background-size: 100% 100%;
    background-position: center;
    background-repeat: no-repeat;
    color: #ffffff !important;
    padding: 16px 40px;
    display: inline-block;
    margin-top: 10px;
    white-space: nowrap;
}

.coming-soon-box {
    font-family: var(--font-heading);
    font-size: clamp(48px, 8vw, 96px);
    color: var(--color-mint-main);
    text-align: center;
    padding: 4rem 0 5rem;
    letter-spacing: 4px;
}

/* Dwukolumnowy layout nagród */
.prizes-two-col {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.prizes-main-col {
    flex: 0 0 58%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.prizes-secondary-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

/* Kolaż zdjęć nagród głównych */
.prizes-collage {
    position: relative;
    width: 100%;
    height: 340px;
    margin: 24px 0 28px;
}

.prizes-collage img { position: absolute; }

.collage-torba   { width: 42%; left: 0;   top: 30px; z-index: 1; }
.collage-portret { width: 52%; left: 22%; top: 0;    z-index: 2; }
.collage-bilety  { width: 46%; left: 46%; top: 50px; z-index: 1; }
.collage-badge   { width: 26%; left: 12%; bottom: 0; z-index: 3; }

/* Lista opisów nagrody głównej */
.prizes-main-list p {
    font-family: var(--font-h3);
    font-weight: bold;
    font-size: 15px;
    text-transform: uppercase;
    color: var(--color-black);
    margin: 0 0 8px 0;
    line-height: 1.3;
}

/* Nagrody pozostałe — prawa kolumna */
.prize-img-wrapper {
    position: relative;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 16px;
}

.prize-img-wrapper img {
    max-height: 265px;
    width: auto;
    display: block;
    position: relative;
    z-index: 1;
}

.secondary-prize-title {
    font-family: var(--font-h3);
    font-size: 20px;
    font-weight: bold;
    text-transform: uppercase;
    margin: 0 0 8px 0;
    line-height: 1.2;
    color: var(--color-black);
}

.prize-item-note {
    font-size: 0.85rem;
    color: #888;
    margin-top: 0.25rem;
    font-style: italic;
}

.prize-img-wrapper { 
    position: relative; 
    display: inline-flex; 
    flex-direction: column; 
    align-items: center; 
    margin-bottom: 16px; 
}

.prize-img-wrapper img {
    max-height: 265px;
    width: auto;
    display: block;
    position: relative;
    z-index: 1;
}

.prize-badge {
    position: relative;
    margin-top: -60px;
    width: 140px;
    height: auto;
    display: block;
    z-index: 2;
}

.section-heading-img {
    display: block;
    max-width: 420px;
    width: 100%;
    height: auto;
    margin: 0 auto 2rem auto;
}

.prize-item h3 { 
    font-family: var(--font-h3);
    font-size: 24px; 
    font-weight: bold; 
    text-transform: uppercase; 
    margin: 0; 
    line-height: 1.2; 
    position: relative; 
    z-index: 3; 
    text-align: center; 
}

/* --- Zasady --- */
.rules-container { margin-top: 4rem; } 
.rules-container h2 { text-align: center !important; color: #7DDDCF; margin-bottom: 1rem; }
.rules-steps { display: flex; flex-direction: column; gap: 12px; text-align: center; margin-bottom: 2.5rem; }

.rules-row { display: grid; justify-content: center; align-items: center; gap: 12px; }
.rules-row:first-of-type { grid-template-columns: 1fr auto 1fr; }
.rules-row:last-of-type { grid-template-columns: 1fr auto 1fr auto 1fr; }
.step { min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; }
.step h4, .step h3 { color: #7DDDCF; font-family: var(--font-h3); font-size: 25px; font-weight: bold; margin: 0 0 0.8rem 0; text-transform: uppercase; }
.step p { color: #666; margin: 0; line-height: 1.4; font-family: var(--font-body); font-weight: 500; }

.step-arrow, .step-icon-final { width: auto; height: 220px; object-fit: contain; }

.rules-footer { display: flex; flex-direction: row; align-items: center; justify-content: center; gap: 30px; padding-top: 3rem; }
.rules-products-img { max-width: 320px; height: auto; position: relative; margin-bottom: -132px; z-index: 10; }
.rules-text { text-align: center; }
.rules-text p { margin-bottom: 0.8rem; font-size: 0.95rem; font-family: var(--font-body); }
.link-mint { color: var(--color-mint-dark); font-weight: bold; text-decoration: none; text-transform: uppercase; transition: text-decoration 0.2s ease; }
.link-mint:hover { text-decoration: underline; }

/* --- Bestsellery --- */
.bestsellers-section { padding: 5rem 0; text-align: center; }
.bestsellers-section .container { max-width: 1080px; } 
.bestsellers-logo { display: block; margin: -1.5rem auto 3rem auto; height: 35px; filter: brightness(0) invert(1); }
.carousel-container { display: flex; align-items: center; justify-content: center; gap: 1rem; position: relative; }
.carousel-track-wrapper { overflow: hidden; width: 100%; }
.carousel-track { display: flex; gap: 8px; padding: 0; margin: 0; list-style: none; overflow-x: auto; scroll-behavior: smooth; scrollbar-width: none; }
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-slide { flex: 0 0 calc(22% - 8px); background: transparent; text-align: center; padding: 1rem; box-sizing: border-box; display: flex; flex-direction: column; align-items: center; }
.carousel-slide img { width: auto; height: 350px; max-width: 100%; object-fit: contain; margin-bottom: 0.5rem; display: block; }

.slide-img-link { display: block; overflow: hidden; }
.slide-img-link img { transition: transform 0.35s ease; }
.slide-img-link:hover img { transform: scale(1.07); }

.carousel-slide h4 { font-family: var(--font-h3); font-weight: 500; font-size: 18px; margin: 0 0 0.5rem 0; color: var(--color-black); }
.carousel-slide h4 a { color: inherit; text-decoration: none; transition: color 0.3s ease, text-decoration 0.3s ease; }
.carousel-slide h4 a:hover { color: #006556; text-decoration: underline; }

.carousel-slide p { font-family: var(--font-body); font-weight: 400; font-size: 18px; margin: 0; color: #666; }
.carousel-btn { background: transparent; border: none; box-shadow: none; cursor: pointer; padding: 0; display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: transform 0.2s; }
.carousel-btn:hover { transform: scale(1.1); }
.carousel-btn img { max-height: 25px; width: auto; object-fit: contain; }

.bestsellers-cta { margin-top: 3rem; text-align: center; }

/* --- Stopka --- */
footer { padding: 0 0 4rem 0; text-align: center; background-color: transparent; }
.footer-box { background-color: var(--color-black); border-radius: 20px; padding: 2rem 3rem; max-width: 1080px; width: calc(100% - 120px); margin: 0 auto 1.5rem auto; box-sizing: border-box; }
.footer-top-row { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; margin-bottom: 2rem; padding-bottom: 2rem; border-bottom: 1px solid rgba(255,255,255,0.1); }
.footer-logos { display: flex; align-items: center; gap: 20px; }
.footer-logos img { max-height: 20px; filter: brightness(0) invert(1); } 
.footer-links { display: flex; gap: 30px; justify-content: flex-start; flex-wrap: wrap; }
.footer-links a { color: var(--color-white); text-decoration: none; font-size: 0.9rem; font-family: var(--font-body); }
.footer-links a:hover { text-decoration: underline; } 
.footer-contact { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.contact-item { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--color-white); text-align: left; transition: opacity 0.3s; }
.contact-item:hover { opacity: 0.8; }
.contact-icon { width: 32px; height: 32px; object-fit: contain; }
.contact-text { display: flex; flex-direction: column; font-family: var(--font-body); }
.contact-text strong { font-weight: bold; font-size: 0.85rem; letter-spacing: 1px; margin-bottom: 2px; }
.contact-text span { font-weight: normal; font-size: 0.85rem; color: #ffffff; }
.contact-text small { font-size: 0.75rem; color: rgba(255,255,255,0.6); }
.copyright-text { color: var(--color-copyright); font-size: 0.9rem; font-family: var(--font-body); }

/* --- Globalne wymuszenie fontów --- */
body, p, a, span, .contact-text, .footer-links a, .carousel-slide p, .rules-text p, .main-prize-desc {
    font-family: var(--font-body) !important;
}

h4, h3 {
    font-family: var(--font-h3) !important;
}

.link-mint {
    font-family: var(--font-body) !important;
}

/* --- RWD --- */

@media (max-width: 1240px) {
    .hero-container { padding-left: 60px; padding-right: 60px; }
    h1 { font-size: 9.5vw; }
    
    .hero-col-left { flex: 0 0 45%; }
    .hero-col-right { flex: 0 0 55%; margin-left: -20px; }
    .canvas-img { max-width: 100%; margin-bottom: 1.2rem; }
    .hero-img { margin-top: 0; max-width: 95%; transform: none; }
    
    .info-section { margin-top: -50px; } 
    .info-box { padding: 4rem 80px; } 
}

@media (max-width: 992px) {
    body { background-image: url('../assets/images/tablet_background.png'); }

    .info-section { margin-top: -20px; } 
    .info-box { padding: 3rem 40px; }
    
    .prizes-container h2 { margin-top: 2.5rem; }
    
    .hero-col-left { flex: 0 0 50%; }
    .hero-col-right { flex: 0 0 50%; margin-left: 0; display: flex; justify-content: flex-end; }
    .canvas-img { max-width: 95%; } 
    .hero-img { max-width: 90%; } 

    .main-prize-wrapper { gap: 30px; }
    .main-prize-subtitle { font-size: 28px; }
    
    .main-prize-img-wrapper img { max-height: 380px; } 

    .prizes-grid { gap: 0; }
    .prize-item h3 { font-size: 18px; } 
    
    .bestsellers-section .container { max-width: 800px; }
    .carousel-track { gap: 10px; } 
    .carousel-slide { flex: 0 0 calc(33.333% - 6.66px); padding: 1rem; }
    .carousel-slide img { height: 280px; margin-bottom: 1rem; } 
    
    .step-arrow, .step-icon-final { height: 200px; }
    
    h1 { font-size: 10vw; }
    h2 { font-size: 64px; }

    .footer-links { flex-direction: column; gap: 10px; align-items: flex-start; }
    .footer-contact { display: grid; grid-template-columns: 1fr 1fr; width: 100%; gap: 20px; }
}

@media (max-width: 768px) {
    body { background-image: url('../assets/images/mobile_background.png'); }

    body { font-size: 16px; } 
    
    .hero-heading-wrapper { text-align: center; }
    .hero-columns-wrapper { flex-direction: column; align-items: center; gap: 30px; }
    .hero-col-left, .hero-col-right { flex: 0 0 100%; width: 100%; align-items: center; text-align: center; margin-left: 0; display: block; }
    .canvas-img { margin: 15px auto 2rem auto; max-width: 50%; transform: none; }
    
    .hero-img { 
        max-width: 80%; 
        transform: none; 
        margin-left: auto; 
        margin-right: auto; 
    }

    .info-section { padding: 0 42px; margin-top: -40px; }
    .info-box { padding: 2rem 20px; }

    .prizes-container h2 { text-align: left; margin-top: 0; }

    .prizes-two-col { flex-direction: column; gap: 40px; }
    .prizes-main-col { flex: unset; width: 100%; }
    .prizes-secondary-col { flex: unset; width: 100%; align-items: center; text-align: center; }
    .prizes-collage { height: 260px; }
    .collage-torba   { width: 38%; }
    .collage-portret { width: 48%; }
    .collage-bilety  { width: 42%; }
    .collage-badge   { width: 22%; }
    
    .rules-steps { flex-direction: column; gap: 20px; align-items: stretch; }
    
    .step-arrow, .step-icon-final { height: 160px; }
    .step-arrow { display: none; }

    .rules-row { display: block; }
    .rules-steps { padding: 0 24px; }
    
    .rules-row > .step {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: flex-start;
        position: relative;
        padding-left: 92px;
        padding-top: 8px;
        padding-bottom: 8px;
        min-height: 80px;
        margin-bottom: 16px;
    }

    .rules-row > .step h4, .rules-row > .step p {
        text-align: left;
        margin: 0;
    }

    .rules-row > .step::before {
        content: "";
        position: absolute;
        left: 0;
        top: 50%;
        transform: translateY(-50%);
        width: 76px;
        height: 76px;
        background-image: url('../assets/icons/rules_1.png');
        background-size: contain;
        background-repeat: no-repeat;
        background-position: center;
    }
    
    .step-icon-final { margin: 10px 0; }
    .rules-footer { flex-direction: column-reverse; gap: 30px; }
    .rules-products-img { margin-bottom: -92px; }

    .carousel-track { gap: 10px; }
    .carousel-slide { flex: 0 0 calc(50% - 5px); padding: 0.5rem; }
    
    .logos-container { gap: 15px; }
    .logos-container img { max-height: 24px; } 
    .logos-container .logo-x { max-height: 10px; } 
    .hero-container { padding-left: 24px; padding-right: 24px; }
    h1 { font-size: 11.5vw; } 
    h2 { font-size: 42px; }
    .prize-item h3 { font-size: 20px; }
    .btn-primary { font-size: 16px; }
    .canvas-img { max-width: 44%; transform: none; }
    
    .footer-box { width: calc(100% - 84px); padding: 1.5rem 1rem; }
    .contact-item { align-items: flex-start; flex-direction: column; gap: 8px; }
}

@media (max-width: 480px) {
    .carousel-slide { flex: 0 0 calc(33.333% - 6.66px); }
    h1 { font-size: 12.5vw; }
    h2 { font-size: 32px; }
    .canvas-img { max-width: 55%; }
    .step-arrow, .step-icon-final { height: 120px; }
    .prize-badge { width: 100px; margin-top: -40px; }
    .section-heading-img { max-width: 320px; }
}