/* =========================================
   ZMIENNE
   ========================================= */
:root {
    --primary-color: #000;
    --secondary-color: #151617;
    --light-gray: #F5F5F5;
    --white: #FFFFFF;
    --accent-gold: #BA9A72;
    --accent-dark-gold: #BE914B;
    --gradient-gold: linear-gradient(120deg, #BE914B 0%, #E0C397 55%, #BE914B 100%);
}

/* =========================================
   UTILITIES
   ========================================= */
html { scroll-behavior: smooth; }

.font-gold {
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.bg-contain {
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
}

.anniversary-lg .lg-has-video.lg-video-loaded .lg-video-object {
    visibility: visible;
}

/* =========================================
   STRZAŁKI / PRZYCISKI (scalone: circle-btn + historia-arrow-btn)
   ========================================= */
.circle-btn,
.historia-arrow-btn {
    background: transparent;
    border: 1px solid #C9A84C;
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    border-radius: 50%;
    cursor: pointer;
    pointer-events: all;
    padding: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.circle-btn:hover,
.historia-arrow-btn:hover {
    border: 1px solid #C9A84C;
    background: #C9A84C;
    transform: scale(1.08);
}

.circle-btn:active,
.historia-arrow-btn:active {
    transform: scale(0.95);
}

.arrow-left { background: url(img/arrow-next.svg); }
.arrow-right { background: url(img/arrow-prev.svg); }

.arrow-right,
.arrow-left {
    opacity: 0.5;
    width: 15px;
    height: 15px;
    background-repeat: no-repeat;
    background-size: contain;
    filter: brightness(0) invert(1);
}

.circle-btn:hover > .arrow-right,
.circle-btn:hover > .arrow-left,
.historia-arrow-btn:hover > .arrow-right,
.historia-arrow-btn:hover > .arrow-left {
    opacity: 1;
    filter: brightness(0) saturate(100%) invert(65%) sepia(40%) saturate(600%) hue-rotate(5deg);
}

/* Białe strzałki (wishes + historia desktop na ciemnym tle) */
.btn-light-arrow > .arrow-right,
.btn-light-arrow > .arrow-left {
    filter: brightness(0) invert(1);
    opacity: 0.6;
}
.btn-light-arrow:hover > .arrow-right,
.btn-light-arrow:hover > .arrow-left {
    filter: brightness(0) invert(1);
    opacity: 1;
}

/* Czarne strzałki (produkty na białym tle) */
.nasze-produkty-section .circle-btn > .arrow-right,
.nasze-produkty-section .circle-btn > .arrow-left,
.nasze-produkty-section .historia-arrow-btn > .arrow-right,
.nasze-produkty-section .historia-arrow-btn > .arrow-left {
    filter: brightness(0);
    opacity: 0.5;
}

/* Strzałki mobilne historia — mniejsze */
.historia-arrows-mobile .circle-btn {
    width: 40px;
    height: 40px;
    padding: 11px;
}

/* Kursory drag na sliderach */
.produkty-viewport,
.historia-img-wrap {
    cursor: grab;
    touch-action: pan-y;
}
.produkty-viewport:active,
.historia-img-wrap:active {
    cursor: grabbing;
}

/* Blokuj natywny HTML5 drag obrazków w przewijanych sekcjach (fix dla Kroku 7) */
.produkty-viewport img,
.historia-img-wrap img {
    -webkit-user-drag: none;
    user-drag: none;
    -webkit-touch-callout: none;
}

.play-button {
    width: 64px;
    height: 64px;
    background: var(--primary-color);
    cursor: pointer;
    position: absolute;
    top: 50%;
    left: 50%;
    border: none;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.play-button:hover {
    transform: translate(-50%, -50%) scale(1.08);
    opacity: 0.9;
}

/* =========================================
   HERO
   ========================================= */
.hero-section {
    min-height: 90vh;
    background-image: url(img/bg-hero-light.jpg);
    background-size: cover;
    background-position: center bottom;
    background-color: #fff;
}

.hero-white-section {
    position: relative;
    z-index: 5;
    padding: 8rem 1rem;
}

.hero-title {
    font-size: calc(1.8rem + 1vw);
    font-weight: 700;
    line-height: 1.3;
    color: #000;
}

.hero-title--main {
    font-size: clamp(2rem, 3vw, 3.5rem);
}

.section-title-big {
    font-size: clamp(1.6rem, 2.5vw, 2.8rem);
    font-weight: 700;
    line-height: 1.1;
}

.hero-description {
    font-weight: 300;
    font-size: 22px;
    font-family: "Open Sans";
    text-align: left;
}

.hero-years {
    font-size: 14px;
    letter-spacing: 10px;
    color: var(--accent-dark-gold);
    font-weight: 600;
    text-transform: uppercase;
    line-height: 150%;
    text-align: center;
    margin: 50px 10px 0;
}

.years-image {
    background-image: url(img/40lat-drutex.png);
    height: 280px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

/* =========================================
   ŻYCZENIA
   ========================================= */
.wishes-section {
    background-color: #fff;
    padding: 0 !important;
}

.bg-gold {
    background-color: #0e0d0b;
    background-image: url(img/bg-wishes.jpg);
    background-size: cover;
    background-position: left top;
}

.wishes-left {
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.wishes-pic-wrap {
    position: relative;
    display: inline-block;
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
}

.wishes-pic {
    width: 100%;
    border-radius: 16px;
    display: block;
}

.wishes-play {
    position: absolute;
    bottom: 60px;
    left: 50%;
    transform: translateX(-50%);
}

.wishes-arrows {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 20px;
}

.wishes-right h3 {
    font-size: calc(1.8rem + 1.5vw);
    font-weight: 700;
    color: #fff;
    line-height: 1.1;
    margin-bottom: 24px;
}

.wishes-right h3 span {
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.wishes-right p {
    color: rgba(255, 255, 255, 0.82);
    font-size: 20px;
    line-height: 1.75;
    font-weight: 300;
}

.wishes-see-link {
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 600;
    font-size: 20px;
    line-height: 1.2;
}

/* =========================================
   HISTORIA
   ========================================= */
.historia-section {
    background-color: #0e0d0b;
    padding: 80px 0 !important;
}

.historia-nav {
    display: flex;
    gap: 32px;
    list-style: none;
    padding: 0;
    margin: 0 0 48px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    flex-wrap: wrap;
}

.historia-nav li a {
    color: rgba(255, 255, 255, 0.45);
    font-size: 25px;
    font-weight: 300;
    text-decoration: none;
    padding-bottom: 12px;
    display: block;
    transition: color 0.2s;
}

.historia-nav li a.active,
.historia-nav li a:hover {
    color: #fff;
    border-bottom: 2px solid #C9A84C;
}

.historia-slider-wrap {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
}

.historia-arrow-btn {
    background: transparent;
    border: 1px solid #C9A84C;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 12px;
}

.historia-arrow-btn:hover {
    border: 1px solid #C9A84C;
    background: #C9A84C;
}

.historia-arrow-btn > .arrow-right,
.historia-arrow-btn > .arrow-left {
    filter: brightness(0);
    opacity: 0.45;
}

.historia-arrow-btn:hover > .arrow-right,
.historia-arrow-btn:hover > .arrow-left {
    filter: brightness(0) invert(1);
    opacity: 1;
}

/* Fixed-height image container — prevents height jumps between slides */
.historia-img-wrap {
    flex: 1;
    height: 420px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.historia-img-wrap img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 4px;
    display: block;
}

.historia-content { padding: 3rem; }

.historia-year {
    font-size: clamp(2rem, 7vw, 6rem);
    font-weight: 300;
    color: #fff;
    line-height: 1;
    margin-bottom: 12px;
    text-align: right;
    font-style: italic;
    margin-bottom: 30px;
}

.historia-desc {
    color: rgba(255, 255, 255, 0.7);
    font-size: 18px;
    font-weight: 300;
    line-height: 1.6;
    text-align: right;
}

.historia-mini-card { text-align: center; }

.historia-mini-card img {
    border-radius: 8px;
    max-width: 220px;
}

.historia-title {
    padding-bottom: 40px;
}

/* =========================================
   STATS
   ========================================= */
.stats-section {
    background-color: #0e0d0b;
    background-image: url(img/bg-wishes.jpg);
    background-size: cover;
    background-position: center;
    padding: 80px 0 !important;
}

.stat-item {
    text-align: center;
}

.stat-icon {
    height: 60px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-icon img {
    height: 52px;
    width: auto;
    object-fit: contain;
}

.stat-number {
    font-size: clamp(3rem, 3.5vw, 2.8rem);
    font-weight: 300;
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
    padding: 15px 0;
}

.stat-label {
    font-size: 15px;
    color: #fff;
    font-weight: 300;
}

/* =========================================
   NAGRODY
   ========================================= */
.awards-section {
    background-color: #111210;
    background-image: url(img/bg-nagrody.jpg);
    background-size: cover;
    background-position: left center;
    padding: 10rem 0;
    display: flex !important;
    align-items: center;
}

.awards-section p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 20px;
    line-height: 1.5;
    font-weight: 300;
    max-width: 500px;
}

.awards-logos {
    display: flex;
    align-items: stretch;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 50px;
    margin-top: 3rem;
    margin-left: 0;
    opacity: 0.9;
}

.awards-logos img {
    height: 70px;
    width: auto;
    object-fit: contain;
    opacity: 0.9;
    transition: all 0.3s ease-in-out;
}

.awards-logos img:hover {
    opacity: 1;
    transform: scale(1.1);
}

.awards-img-mobile {
    display: block;
    width: 100%;
    max-height: 100%;
    object-fit: cover;
    object-position: top center;
    margin-bottom: 50px;
}

@media (max-width: 767px) {
    .awards-section {
        background-image: none !important;
    }
}

/* =========================================
   NASZE PRODUKTY
   ========================================= */
.nasze-produkty-section {
    background: #fff;
    padding: 80px 0;
    overflow: hidden;
}

.nasze-produkty-section .row {
    margin-left: 0;
    margin-right: 0;
}

.produkt-kolumna {
    text-align: center;
    padding: 20px 16px;
}

.produkt-kolumna .produkt-kategoria {
    font-size: 11px;
    letter-spacing: 6px;
    text-transform: uppercase;
    color: #888;
    margin-bottom: 4px;
}

.produkt-kolumna h4 {
    font-weight: 700;
    font-size: 20px;
    margin-bottom: 24px;
}

.produkt-arch {
    position: relative;
    display: inline-block;
}

.produkt-arch img {
    position: relative;
    z-index: 1;
    max-height: 540px;
    width: auto;
    object-fit: contain;
}

.produkty-slider-wrap {
    display: flex;
    align-items: center;
    gap: 16px;
}

.produkty-viewport {
    overflow: hidden;
    flex: 1;
}

.produkty-track {
    display: flex;
    gap: 24px;
    transition: transform 0.4s ease;
    will-change: transform;
}

.produkty-track .produkt-kolumna {
    flex: 0 0 calc(25% - 18px);
    min-width: 0;
}

@media (max-width: 991px) {
    .produkty-track .produkt-kolumna { flex: 0 0 calc(50% - 12px); }
}

@media (max-width: 767px) {
    .produkty-track .produkt-kolumna { flex: 0 0 80%; }
}

/* =========================================
   PRODUKCJA
   ========================================= */
.produkcja-section {
    position: relative;
    min-height: 620px;
    background-image: url(img/baner-produkcja.jpg);
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-end;
    padding-bottom: 120px !important;
    padding-top: 0 !important;
}

.produkcja-content {
    position: relative;
    z-index: 2;
}

.produkcja-title {
    font-size: clamp(3rem, 5vw, 3.5rem);
    font-weight: 600;
    color: #fff;
    line-height: 1.1;
}

.produkcja-title span {
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.spirit {
    font-size: 12px;
    letter-spacing: 6px;
    color: var(--accent-dark-gold);
    font-weight: 600;
    text-transform: uppercase;
}

.produkcja-img-mobile {
    display: block;
    width: 100%;
    max-height: 280px;
    object-fit: cover;
    object-position: center;
}

@media (max-width: 767px) {
    .produkcja-section {
        background-image: url(img/baner-produkcja-mobile.jpg) !important;
        background-position: top left;
        min-height: 520px;
        align-items: flex-start;
        padding-bottom: 40px !important;
        padding-top: 0 !important;
    }
    .produkcja-section::before {
        content: '';
        position: absolute;
        inset: 0;
        background: linear-gradient(to right, rgba(0, 0, 0, 0.4) 20%, transparent 100%);
    }
    .produkcja-content {
        padding: 8rem 0 0;
        text-align: center;
    }
}

/* =========================================
   RESPONSIVE
   ========================================= */

/* Breakpoint 1366px — layout tuning (v3) */
@media (max-width: 1366px) {
    .produkty-track .produkt-kolumna { flex: 0 0 calc(33% - 12px); }
    .produkt-arch img { max-height: 240px; }
    .stat-number { font-size: 2rem; }
    .wishes-section,
    .awards-section { position: relative; }
    .wishes-section .wishes,
    .awards-section .container { position: relative; z-index: 1; }
    .d-flex.d-lg-none.justify-content-end,
    .historia-arrows-mobile {
        justify-content: space-between !important;
        margin-bottom: 22px;
    }
    .hero-white-section { padding: 3rem 1rem; }
    .bg-gold { background-position: center; }
    .wishes-section { padding: 2rem 0; }
    .historia-section { padding: 2rem 1rem !important; }
}

/* Breakpoint 1200px — awards mobile image */
@media (max-width: 1200px) {
    .awards-section {
        background-image: url(img/bg-nagrody-mobile2.jpg);
        background-position: top center;
        padding: 5rem 3rem;
    }
    .award-block { display: none !important; }
}

/* Breakpoint 1024px (+ min 768px) — tablety stats 3-kol */
@media (max-width: 1024px) and (min-width: 768px) {
    .stat-item { flex: 0 0 33.333%; max-width: 33.333%; }
    .stat-number { font-size: 1.8rem; }
    .stat-label { font-size: 13px; }
    .wishes-section { padding: 2rem 0; }
    .wishes-section .wishes { padding-bottom: 3rem; }
    .bg-gold { background-position: right top; }
    .awards-section p { max-width: 100%; }
    .wishes-right { padding: 32px 16px !important; text-align: center; }
}

@media (max-width: 768px) {
    .awards-logos img { height: 36px; }
    .produkcja-section { min-height: 340px; }
    .wishes-left { min-height: auto; }
    .historia-slider-wrap { flex-direction: column; }
    .historia-content { padding: 1rem; }
    .stat-number { font-size: 1.5rem; }
    .historia-title { padding-bottom: 20px; }
    .historia-img-wrap { height: 260px; }
    .hero-section { min-height: 100vh; }
}

@media (max-width: 767px) {
    /* HERO */
    .hero-white-section { padding: 32px 20px; }
    .hero-title, .hero-title--main { text-align: center; font-size: 1.8rem; }
    .hero-description { text-align: center !important; font-size: 16px !important; }
    .years-image { height: 200px; margin-top: 20px; }
    .hero-years { margin-top: 8px; font-size: 10px; letter-spacing: 5px; }

    /* ŻYCZENIA */
    .wishes-left { min-height: auto; padding: 32px 16px; }
    .wishes-right { padding: 32px 16px !important; text-align: center; }
    .wishes-right h3 { font-size: 1.8rem; text-align: center; }
    .wishes-right p { font-size: 16px; text-align: center; }
    .wishes-see-link { font-size: 16px; text-align: center; }
    .wishes-pic-wrap { max-width: 220px; }

    /* HISTORIA */
    .historia-section { padding: 32px 0 32px !important; }
    .historia-nav { gap: 10px; margin-bottom: 16px; white-space: nowrap; overflow-x: auto; padding-bottom: 4px; }
    .historia-nav li a { font-size: 14px; padding-bottom: 6px; }
    .historia-slider-wrap { flex-direction: row; gap: 8px; align-items: center; }
    .historia-img-wrap { height: 220px; }
    .historia-img-wrap img { margin: 0; }
    .historia-content { padding: 16px 0 0; }
    .historia-year { font-size: clamp(2.5rem, 12vw, 4rem); text-align: center; margin-bottom: 8px; }
    .historia-desc { text-align: center; font-size: 15px; }
    .historia-mini-card { display: none; }

    /* NAGRODY */
    .awards-section {
        min-height: auto !important;
        display: block !important;
        background-position: top center;
        padding: 18rem 1rem 3rem;
    }
    .awards-section .col-lg-5 { display: block !important; }
    .awards-section .section-title { text-align: center; font-size: 1.8rem; }
    .awards-section p { text-align: center; font-size: 16px; max-width: 100%; }
    .awards-logos {
        margin-left: 0 !important;
        margin-top: 24px;
        gap: 30px 11px;
        justify-content: center;
    }
    .awards-logos img { height: 60px; flex: 0 0 calc(33.333% - 12px); }

    /* PRODUKTY */
    .produkty-slider-wrap { gap: 6px; padding: 0 4px; }
    .produkty-track .produkt-kolumna { flex: 0 0 100%; }
    .produkty-viewport { overflow: hidden; }
    .produkt-arch img { max-height: 180px; }
    .produkt-kolumna h4 { font-size: 15px; margin-bottom: 16px; }

    /* PRODUKCJA */
    .produkcja-section {
        align-items: flex-end;
        padding-bottom: 40px !important;
        background-position: top center;
    }
    .produkcja-section::before {
        background: linear-gradient(to top, rgba(0,0,0,0.85) 40%, rgba(0,0,0,0.2) 100%);
    }
    .produkcja-title { font-size: 2rem; }
    .spirit { font-size: 10px; }
}

/* =========================================
   GLOBAL FIXES (overflow, arrow sizing, mobile alignment)
   ========================================= */
.historia-arrow-btn,
.circle-btn { flex-shrink: 0; }

.nasze-produkty-section,
.awards-section { overflow: hidden; }

@media (max-width: 767px) {
    .historia-img-wrap { overflow: hidden; min-width: 0; }
    .historia-img-wrap img { width: 100%; margin: 0; }
    .produkty-slider-wrap { overflow: hidden; }
    .d-flex.d-lg-none.justify-content-end,
    .historia-arrows-mobile {
        justify-content: center !important;
    }
}

/* =========================================
   WISH SLIDES (JS controlled)
   ========================================= */
.wish-slide { position: relative; }

/* LightGallery trigger wrapper */
.wish-slide a.gallery-item {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
