/* Sztuczny Śnieg — design system: biel / jasny błękit / szarość, klimat kinowy */

:root {
    --white: #ffffff;
    --ice-50: #f5fafd;
    --ice-100: #e9f4fb;
    --ice-200: #d3e9f6;
    --blue-300: #9cc9e8;
    --blue-500: #5197c9;
    --blue-600: #35789f;
    --blue-900: #10293a;
    --navy-950: #0a1a26;
    --gray-100: #f3f5f7;
    --gray-300: #dde2e6;
    --gray-500: #8b96a1;
    --gray-700: #4c5761;
    --gray-900: #1b2329;

    --font-display: 'Space Grotesk', 'Manrope', -apple-system, sans-serif;
    --font-body: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    --container: 1180px;
    --radius: 14px;
    --shadow-soft: 0 20px 50px -20px rgba(16, 41, 58, 0.25);
    --shadow-card: 0 10px 30px -14px rgba(16, 41, 58, 0.18);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: var(--font-body);
    color: var(--gray-900);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
    line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.15;
    margin: 0 0 0.5em;
    color: var(--navy-950);
}
h2 { color: var(--blue-600); }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }
.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}
.eyebrow {
    display: inline-block;
    font-size: 0.75rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--blue-600);
    font-weight: 700;
    margin-bottom: 0.9em;
}
.section { padding: 88px 0; }
.section--tight { padding: 56px 0; }
.category-copy h2 { font-size: 1.5rem; margin-top: 1.4em; }
.category-copy h2:first-child { margin-top: 0; }
.category-copy h3 { font-size: 1.15rem; color: var(--navy-950); margin-top: 1.2em; }
.category-copy p { color: var(--gray-700); line-height: 1.7; }
.category-copy ul { margin: 0 0 1em; padding-left: 1.3em; list-style: disc; color: var(--gray-700); }
.category-copy li { margin-bottom: 0.4em; line-height: 1.6; }
.section--ice { background: linear-gradient(180deg, var(--ice-50) 0%, var(--white) 100%); }
.section--navy {
    background: radial-gradient(120% 140% at 20% 0%, #163b53 0%, var(--navy-950) 70%);
    color: var(--ice-100);
}
.section--navy h2, .section--navy h3 { color: var(--white); }
.section-head { max-width: 640px; margin: 0 0 48px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.lead { font-size: 1.1rem; color: var(--gray-700); }
.section--navy .lead { color: var(--ice-200); }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.95rem;
    border: 1px solid transparent;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.btn-primary {
    background: linear-gradient(135deg, var(--blue-500), var(--blue-600));
    color: var(--white);
    box-shadow: 0 14px 30px -12px rgba(53, 120, 159, 0.55);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 36px -12px rgba(53, 120, 159, 0.65); }
.btn-ghost {
    background: rgba(255,255,255,0.06);
    color: var(--white);
    border-color: rgba(255,255,255,0.35);
}
.btn-ghost:hover { background: rgba(255,255,255,0.14); }
.btn-outline {
    background: transparent;
    color: var(--blue-600);
    border-color: var(--blue-300);
}
.btn-outline:hover { background: var(--ice-100); }
.btn-sm { padding: 9px 18px; font-size: 0.82rem; }

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--gray-300);
}
.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1360px;
    height: 84px;
}
.logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.logo svg { height: 50px; width: auto; }

/* Animowany sygnet: śnieżynka -> ikonki oferty -> powrót, w pętli */
.logo-mark .frame {
    opacity: 0;
    transform: scale(0.72) rotate(-14deg);
    transition: opacity 0.5s ease, transform 0.55s cubic-bezier(.34,1.56,.64,1);
}
.logo-mark .frame.visible {
    opacity: 1;
    transform: none;
}
.nav-primary { display: flex; align-items: center; gap: 2px; flex-shrink: 0; }
.nav-primary > li { position: relative; }
.nav-primary > li > a {
    display: block;
    padding: 10px 12px;
    font-weight: 600;
    font-size: 0.92rem;
    color: var(--gray-900);
    border-radius: 8px;
    white-space: nowrap;
}
.nav-primary > li > a:hover { color: var(--blue-600); background: var(--ice-100); }
.nav-primary > li.active > a { color: var(--blue-600); background: var(--ice-100); }
.nav-primary { list-style: none; margin: 0; }
.has-dropdown { display: flex; }
.dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    border-radius: 12px;
    box-shadow: var(--shadow-soft);
    padding: 10px;
    min-width: 260px;
    border: 1px solid var(--gray-300);
}
.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown { display: block; }
.dropdown a {
    display: block;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--gray-900);
}
.dropdown a:hover { background: var(--ice-100); color: var(--blue-600); }

/* Mega menu — Oferta */
.dropdown.mega {
    width: 640px;
    min-width: 0;
    padding: 16px;
    overflow: hidden;
}
.mega-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
    width: 270px;
}
.dropdown.mega .mega-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 14px;
    border-radius: 12px;
    position: relative;
}
.mega-item:hover, .mega-item:focus { background: var(--ice-100); color: inherit; }
.mega-icon {
    width: 42px;
    height: 42px;
    border-radius: 11px;
    background: var(--ice-100);
    color: var(--blue-600);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background 0.15s ease, color 0.15s ease;
}
.mega-item:hover .mega-icon { background: var(--blue-600); color: var(--white); }
.mega-name { font-weight: 700; font-size: 1rem; color: var(--navy-950); }
.mega-desc {
    display: none;
    position: absolute;
    top: 0;
    left: 284px;
    width: 300px;
    min-height: 100%;
    align-items: center;
    padding: 16px 20px;
    background: var(--ice-50);
    border-radius: 12px;
    font-size: 0.9rem;
    line-height: 1.55;
    color: var(--gray-700);
    font-weight: 500;
}
.mega-item:hover .mega-desc { display: flex; }
.header-cta { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.header-phone {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    color: var(--blue-600);
    font-size: 0.92rem;
    white-space: nowrap;
}
.nav-toggle { display: none; }

/* Hero */
.hero {
    position: relative;
    min-height: 92vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: var(--navy-950);
    color: var(--white);
}
.hero-media {
    position: absolute;
    inset: 0;
    z-index: 0;
}
.hero-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.55;
}
.hero-media::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(10,26,38,0.55) 0%, rgba(10,26,38,0.85) 70%, var(--navy-950) 100%);
}
.snowfall {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
}
.snowfall span {
    position: absolute;
    top: -10%;
    display: block;
    background: rgba(255,255,255,0.85);
    border-radius: 50%;
    filter: blur(0.3px);
    animation: fall linear infinite;
}
@keyframes fall {
    to { transform: translateY(115vh) translateX(var(--drift, 20px)); }
}
.hero-content { position: relative; z-index: 2; padding: 140px 0 100px; }
.hero-content .eyebrow { color: var(--blue-300); }
.hero-content h1 {
    color: var(--white);
    font-size: clamp(2.6rem, 5.5vw, 4.4rem);
    max-width: 780px;
}
.hero-content .lead {
    color: var(--ice-200);
    font-size: 1.2rem;
    max-width: 560px;
}
.hero-actions { display: flex; gap: 16px; margin-top: 36px; flex-wrap: wrap; }
.hero-stats {
    display: flex;
    gap: 56px;
    margin-top: 76px;
    flex-wrap: wrap;
}
.hero-stat {
    padding-top: 20px;
    border-top: 2px solid rgba(255,255,255,0.25);
}
.hero-stat strong {
    display: block;
    font-family: var(--font-display);
    font-size: clamp(2.6rem, 4.2vw, 3.6rem);
    font-weight: 700;
    color: var(--white);
    line-height: 1;
    margin-bottom: 8px;
}
.hero-stat span {
    font-size: 1rem;
    color: var(--ice-200);
    letter-spacing: 0.02em;
    font-weight: 500;
}

/* USP strip */
.usp-strip {
    background: var(--white);
    border-bottom: 1px solid var(--gray-300);
}
.usp-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
}
.usp-item {
    padding: 44px 32px;
    text-align: center;
    border-left: 1px solid var(--gray-300);
}
.usp-item:first-child { border-left: none; }
.usp-item strong {
    display: block;
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 2.4vw, 2rem);
    font-weight: 700;
    color: var(--blue-600);
    margin-bottom: 10px;
    letter-spacing: -0.01em;
}
.usp-item span {
    display: block;
    font-size: 1rem;
    color: var(--gray-700);
    max-width: 280px;
    margin: 0 auto;
    line-height: 1.5;
}

/* Cards grid */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.category-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    border: 1px solid var(--gray-300);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    display: flex;
    flex-direction: column;
}
.category-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-soft); }
.category-card .thumb { aspect-ratio: 4/3; overflow: hidden; background: var(--ice-100); }
.category-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.category-card:hover .thumb img { transform: scale(1.06); }
.category-card .body { padding: 22px 24px 26px; flex: 1; display: flex; flex-direction: column; }
.category-card h3 { font-size: 1.2rem; margin-bottom: 8px; }
.category-card p { color: var(--gray-700); font-size: 0.92rem; flex: 1; }
.category-card .more { color: var(--blue-600); font-weight: 700; font-size: 0.88rem; margin-top: 12px; }

/* Product cards */
.product-card {
    background: var(--white);
    border: 1px solid var(--gray-300);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    display: flex;
    flex-direction: column;
}
.product-card .thumb {
    display: block;
    aspect-ratio: 1/1;
    background: var(--ice-100);
    overflow: hidden;
    position: relative;
    cursor: zoom-in;
}
.product-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s cubic-bezier(.22,.61,.36,1); }
.product-card .thumb:hover img { transform: scale(0.98); }
.product-card .badge {
    position: absolute;
    top: 14px;
    left: 14px;
    background: var(--navy-950);
    color: var(--white);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 6px 12px;
    border-radius: 999px;
}
.product-card .body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.product-card h3 { font-size: 1.08rem; margin: 0; }
.product-card p { font-size: 0.88rem; color: var(--gray-700); margin: 0; flex: 1; }
.product-price {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    padding-top: 12px;
    border-top: 1px dashed var(--gray-300);
}
.product-price .amount { font-family: var(--font-display); font-size: 1.5rem; color: var(--navy-950); }
.product-price .amount small { font-size: 0.9rem; font-weight: 600; }
.product-phone {
    display: inline-flex;
    align-self: center;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--blue-600);
    background: var(--ice-100);
    padding: 10px 16px;
    border-radius: 999px;
    white-space: nowrap;
}

/* Gallery — regularna siatka (przewidywalne rzędy) + shared-element lightbox */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}
.gallery-grid a {
    display: block;
    aspect-ratio: 2/3;
    border-radius: 14px;
    overflow: hidden;
    background: var(--ice-100);
    cursor: zoom-in;
    position: relative;
}
.gallery-grid img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    border-radius: 14px;
    transition: transform 0.3s cubic-bezier(.22,.61,.36,1);
}
.gallery-grid a::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(10, 26, 38, 0.12);
    opacity: 0;
    transition: opacity 0.2s ease;
    pointer-events: none;
}
.gallery-grid a:hover img { transform: scale(0.98); }
.gallery-grid a:hover::after { opacity: 1; }

/* Lightbox — shared-element style zoom viewer */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
}
.lightbox.open { display: flex; }
.lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(10, 26, 38, 0.82);
    backdrop-filter: blur(28px);
    -webkit-backdrop-filter: blur(28px);
    opacity: 0;
    transition: opacity 0.3s ease;
    cursor: zoom-out;
}
.lightbox.visible .lightbox-backdrop { opacity: 1; }
.lightbox-stage {
    position: relative;
    z-index: 1;
    max-width: 95vw;
    max-height: 90vh;
    cursor: grab;
    touch-action: none;
}
.lightbox-stage:active { cursor: grabbing; }
.lightbox-stage img {
    display: block;
    max-width: 95vw;
    max-height: 90vh;
    width: auto;
    height: auto;
    border-radius: 14px;
    box-shadow: 0 30px 80px -20px rgba(0,0,0,0.6);
    will-change: transform, opacity;
}
.lightbox-close {
    position: absolute;
    top: 24px;
    right: 24px;
    z-index: 2;
    width: 42px;
    height: 42px;
    border-radius: 999px;
    border: none;
    background: rgba(255,255,255,0.12);
    color: var(--white);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transform: translateY(-12px);
    transition: opacity 0.2s ease, transform 0.2s ease, background 0.15s ease;
}
.lightbox.visible .lightbox-close { opacity: 1; transform: translateY(0); }
.lightbox-close:hover { background: rgba(255,255,255,0.22); }

/* About / split */
.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}
.split img { border-radius: var(--radius); box-shadow: var(--shadow-soft); }
.stat-row { display: flex; gap: 36px; margin-top: 32px; flex-wrap: wrap; }
.stat-row .num { font-family: var(--font-display); font-size: 2.4rem; color: var(--blue-600); display: block; }
.stat-row .label { font-size: 0.82rem; color: var(--gray-700); }
.check-list li {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    margin-bottom: 12px;
    font-size: 0.96rem;
    color: var(--gray-700);
}
.check-list li::before {
    content: '✓';
    color: var(--blue-600);
    font-weight: 800;
    flex-shrink: 0;
}

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; }
.contact-card {
    background: var(--white);
    border: 1px solid var(--gray-300);
    border-radius: var(--radius);
    padding: 32px;
    box-shadow: var(--shadow-card);
}
.contact-card h3 { font-size: 1.1rem; margin-bottom: 18px; }
.contact-line { display: flex; gap: 14px; margin-bottom: 16px; align-items: flex-start; }
.contact-line .ico {
    width: 38px; height: 38px; border-radius: 10px;
    background: var(--ice-100); color: var(--blue-600);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.contact-line strong { display: block; font-size: 0.95rem; }
.contact-line span, .contact-line a { font-size: 0.9rem; color: var(--gray-700); }
.map-frame {
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--gray-300);
    box-shadow: var(--shadow-card);
    min-height: 420px;
}
.map-frame iframe { width: 100%; height: 100%; min-height: 420px; border: 0; display: block; }

/* Blog / poradnik */
.article-card {
    background: var(--white);
    border: 1px solid var(--gray-300);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-card);
}
.article-card .thumb { aspect-ratio: 16/10; background: var(--ice-100); overflow: hidden; }
.article-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.article-card .body { padding: 22px 24px; }
.article-card .cat { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--blue-600); font-weight: 700; }
.article-card h3 { font-size: 1.15rem; margin: 8px 0 10px; }
.article-card p { color: var(--gray-700); font-size: 0.9rem; }

/* CTA band */
.cta-band {
    background: linear-gradient(120deg, var(--blue-600), var(--navy-950));
    color: var(--white);
    border-radius: 24px;
    padding: 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    flex-wrap: wrap;
}
.cta-band h2 { color: var(--white); margin-bottom: 6px; }
.cta-band p { color: var(--ice-200); margin: 0; }

/* Breadcrumb */
.breadcrumb { font-size: 0.82rem; color: var(--gray-500); margin-bottom: 18px; }
.breadcrumb a { color: var(--blue-600); font-weight: 600; }

/* Footer */
.site-footer {
    background: var(--navy-950);
    color: var(--ice-200);
    padding: 72px 0 28px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 48px;
    border-bottom: 1px solid rgba(255,255,255,0.12);
}
.footer-grid h4 {
    color: var(--white);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 18px;
    font-family: var(--font-body);
}
.footer-grid li { margin-bottom: 10px; font-size: 0.9rem; }
.footer-grid a:hover { color: var(--white); }
.footer-logo svg { height: 48px; margin-bottom: 16px; }
.footer-desc { font-size: 0.88rem; color: var(--ice-200); max-width: 320px; }
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 24px;
    font-size: 0.8rem;
    color: var(--gray-500);
    flex-wrap: wrap;
    gap: 12px;
}
.footer-bottom a { color: var(--blue-300); font-weight: 600; }
.footer-bottom a:hover { color: var(--white); text-decoration: underline; }

/* Responsive */
@media (max-width: 980px) {
    .usp-grid { grid-template-columns: 1fr; }
    .usp-item { border-left: none; border-top: 1px solid var(--gray-300); }
    .usp-item:first-child { border-top: none; }
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .split { grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .gallery-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 1140px) {
    .header-cta .btn-outline { display: none; }
    .nav-toggle { display: block; background: none; border: none; font-size: 1.4rem; cursor: pointer; color: var(--navy-950); }
    .nav-primary {
        display: none;
        position: absolute;
        top: 84px;
        left: 0;
        right: 0;
        background: var(--white);
        border-bottom: 1px solid var(--gray-300);
        flex-direction: column;
        padding: 12px;
        box-shadow: var(--shadow-soft);
        gap: 0;
    }
    .nav-primary.open { display: flex; }
    .nav-primary > li > a { white-space: normal; }
    .has-dropdown .dropdown { display: none; position: static; box-shadow: none; border: none; padding-left: 14px; }
    .has-dropdown.open .dropdown { display: block; }
    .dropdown.mega { width: auto; padding: 4px 0; }
    .mega-list { width: auto; }
    .dropdown.mega .mega-item { padding: 10px 8px; }
    .mega-desc { display: none !important; }
}
@media (max-width: 720px) {
    .grid-3, .grid-2 { grid-template-columns: 1fr; }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .gallery-grid a { border-radius: 10px; }
    .gallery-grid img { border-radius: 10px; }
    .hero-stats { gap: 24px; }
    .cta-band { padding: 36px; flex-direction: column; text-align: center; }
    .footer-grid { grid-template-columns: 1fr; }
}
