.nav,
.topbar {
    display: flex
}

.dropdown,
.topbar {
    backdrop-filter: blur(14px)
}

body,
h1 {
    margin: 0
}

.btn,
.contact-data a,
.footer-column a,
.footer-cta,
.heading-link,
.nav a,
.product-tile {
    text-decoration: none
}

:root {
    --blue: #0f73b7;
    --blue-dark: #073a62;
    --dark-blue: #073a62;
    --red: #d91f28;
    --accent: #c68a3e;
    --dark: #121212;
    --muted: #5f6d7a;
    --light: #f4f7fb;
    --surface: #f9fbff;
    --white: #ffffff;
    --line: #e5e9f1;
    --shadow: 0 18px 50px rgba(4, 26, 44, .10);
    --radius: 18px
}

* {
    box-sizing: border-box
}

html {
    scroll-behavior: smooth
}

body {
    font-family: Arial, Helvetica, sans-serif;
    color: var(--dark);
    background: radial-gradient(circle at top, rgb(15 115 183 / .05), transparent 22%), linear-gradient(180deg, #f9fbfe 0, var(--white) 100%);
    overflow-x: hidden
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image: linear-gradient(rgb(15 115 183 / .02) 1px, transparent 1px), linear-gradient(90deg, rgb(15 115 183 / .02) 1px, transparent 1px);
    background-size: 28px 28px;
    opacity: .4
}

img {
    max-width: 100%;
    height: auto;
    display: block
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    height: 88px;
    align-items: center;
    justify-content: space-between;
    padding: 0 5vw;
    background: rgb(255 255 255 / .92);
    border-bottom: 1px solid rgb(7 58 98 / .08);
    box-shadow: 0 10px 30px rgb(7 58 98 / .08)
}

.nav,
.nav-link {
    align-items: center
}

.brand img {
    width: 150px;
    max-height: 60px;
    object-fit: contain;
    display: block
}

.nav {
    gap: 38px
}

.nav a {
    color: #111;
    font-size: 18px;
    font-weight: 700;
    transition: color .2s, opacity .2s
}

.dropdown a,
h1 {
    color: var(--dark-blue)
}

.heading-link:hover,
.nav a:hover {
    color: var(--blue)
}

.contact-data a,
.heading-link,
.nav a,
.nav-item,
.section {
    position: relative
}

.nav-link {
    display: inline-flex;
    min-height: 88px
}

.dropdown {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: min(720px, 92vw);
    max-height: calc(100vh - 130px);
    display: none;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding: 18px;
    background: rgb(255 255 255 / .98);
    border: 1px solid rgb(15 115 183 / .16);
    border-radius: 24px;
    box-shadow: 0 24px 70px rgb(5 35 55 / .22);
    overflow-y: auto
}

.category-hero,
.dropdown a {
    position: relative;
    display: flex
}

.card,
.steel-box {
    box-shadow: var(--shadow)
}

.dropdown::before {
    content: '';
    position: absolute;
    top: -9px;
    left: 50%;
    width: 18px;
    height: 18px;
    transform: translateX(-50%) rotate(45deg);
    background: #fff;
    border-left: 1px solid rgb(15 115 183 / .16);
    border-top: 1px solid rgb(15 115 183 / .16)
}

@media (min-width:761px) {

    .has-dropdown:focus-within .dropdown,
    .has-dropdown:hover .dropdown {
        display: grid
    }
}

.dropdown a {
    align-items: center;
    min-height: 46px;
    padding: 11px 14px 11px 18px;
    text-align: left;
    font-size: 15px;
    font-weight: 800;
    border: 1px solid #fff0;
    border-radius: 15px;
    background: linear-gradient(135deg, #fff, #f7fbff)
}

.dropdown a::before {
    content: '';
    width: 7px;
    height: 7px;
    margin-right: 10px;
    border-radius: 50%;
    background: var(--red);
    flex: 0 0 auto
}

.dropdown a:hover {
    background: linear-gradient(135deg, var(--blue), var(--dark-blue));
    color: #fff;
    border-color: rgb(255 255 255 / .3)
}

.category-hero {
    min-height: 220px;
    align-items: center;
    padding: 38px 8vw;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat
}

.category-hero .category-hero-sklep .category-hero-stal .category-hero-cnc .section-label {
    color: rgb(255 255 255 / .88);
    margin-bottom: 10px
}

.category-hero h1,
.category-hero-cnc h1,
.category-hero-sklep h1,
.category-hero-stal h1 {
    color: #fff;
    font-size: clamp(38px, 5vw, 68px);
    letter-spacing: -2px;
    line-height: .95;
    text-shadow: 0 6px 28px rgb(0 0 0 / .35)
}

.category-hero-content {
    max-width: 1500px;
    width: 100%
}

.category-content {
    max-width: 1500px;
    margin: 0 auto
}

.category-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 28px
}

.menu-btn {
    display: none;
    background: 0 0;
    border: 0;
    font-size: 32px
}

.btn,
.hero::before {
    border-radius: 999px
}

.hero::after,
.hero::before,
.mobile-dropdown-toggle {
    display: none !important
}

.hero {
    display: flex;
    align-items: center;
    isolation: isolate
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgb(255 255 255 / .96) 0, #fff 48%, rgb(255 255 255 / .18) 100%), linear-gradient(90deg, rgb(7 58 98 / .06), #fff0), url(assets/glowne/test.webp) center right/58% 100% no-repeat
}

.hero-bg::after {
    content: '';
    position: absolute;
    inset: auto 0 0 auto;
    width: 48%;
    height: 100%;
    background: linear-gradient(90deg, #fff0, rgb(255 255 255 / .12));
    pointer-events: none
}

.hero::before {
    content: '';
    position: absolute;
    top: 12%;
    right: 6%;
    width: 160px;
    height: 160px;
    background: radial-gradient(circle, rgb(15 115 183 / .18), #fff0 72%);
    z-index: 0
}

.hero::after {
    content: '';
    position: absolute;
    right: -90px;
    bottom: -120px;
    width: 360px;
    height: 360px;
    background: radial-gradient(circle, rgb(15 115 183 / .16), #fff0 68%);
    border-radius: 50%
}

.hero-content {
    position: relative;
    max-width: 760px;
    padding: 38px 0
}

.eyebrow,
.section-label {
    margin: 0 0 12px;
    color: var(--red);
    font-weight: 900;
    letter-spacing: 2px;
    text-transform: uppercase
}

h1 {
    font-size: clamp(68px, 11vw, 150px);
    line-height: .84;
    letter-spacing: -5px;
    text-wrap: balance
}

.lead {
    max-width: 670px;
    margin: 28px 0 34px;
    font-size: clamp(20px, 1.8vw, 26px);
    line-height: 1.5;
    color: #26323c
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap
}

.btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-height: 52px;
    padding: 0 26px;
    border: none;
    font-weight: 900;
    cursor: pointer
}

.btn:hover {
    box-shadow: 0 12px 24px rgb(7 58 98 / .18)
}

.btn.primary {
    color: #fff;
    background: var(--blue)
}

.btn.secondary,
h3 {
    color: var(--dark-blue)
}

.btn.secondary {
    background: #fff;
    border: 2px solid var(--blue)
}

.white-btn {
    background: #fff !important;
    color: var(--dark-blue) !important
}

.section {
    padding: 76px 8vw;
    scroll-margin-top: 110px
}

.split,
.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: center
}

h2 {
    margin: 0 0 18px;
    font-size: clamp(34px, 5vw, 62px);
    letter-spacing: -2px;
    line-height: 1
}

p {
    font-size: 19px;
    line-height: 1.7;
    color: var(--muted)
}

.card {
    background: linear-gradient(180deg, #fff, #f8fbff);
    border: 1px solid var(--line);
    border-radius: 28px;
    padding: 34px
}

.image-card {
    padding: 0;
    overflow: hidden
}

@media (max-width:750px) {
    .card iframe {
        width: auto !important;
        height: auto !important;
        object-fit: cover;
        display: block
    }
}

.card iframe {
    width: 100%;
    height: 310px;
    object-fit: cover;
    display: block
}

.alt,
.services {
    background: var(--light)
}

.section-head {
    max-width: auto;
    margin-bottom: 0 auto 38px
}

.grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px
}

.cards-3 {
    grid-template-columns: repeat(3, 1fr)
}

.service-card span {
    display: block;
    color: var(--red);
    font-weight: 900;
    margin-bottom: 18px
}

h3 {
    margin: 0 0 14px;
    font-size: 25px
}

.cta-box {
    margin: 80px 8vw;
    padding: 70px;
    background: linear-gradient(135deg, var(--dark-blue), var(--blue));
    color: #fff;
    border-radius: 34px
}

.cta-box .section-label,
.cta-box p {
    color: rgb(255 255 255 / .88)
}

.mini-section {
    border-bottom: 1px solid var(--line)
}

.checklist {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 14px
}

.checklist li {
    padding: 18px 20px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 18px;
    font-size: 20px;
    font-weight: 800;
    color: var(--dark-blue)
}

.checklist li::before {
    content: '✓';
    color: var(--red);
    margin-right: 12px
}

.steel-box {
    min-height: 300px;
    padding: 32px;
    border-radius: 28px;
    background: #111;
    color: #fff;
    display: grid;
    gap: 12px
}

.steel-box strong {
    color: #fff;
    font-size: 28px;
    margin-bottom: 8px
}

.steel-box span {
    background: rgb(255 255 255 / .09);
    border: 1px solid rgb(255 255 255 / .16);
    border-radius: 14px;
    padding: 14px 16px;
    font-size: 18px
}

.contact {
    display: grid;
    grid-template-columns: 1fr 460px;
    gap: 40px;
    align-items: stretch;
    background: radial-gradient(circle at top left, rgb(15 115 183 / .08), transparent 18%), linear-gradient(180deg, #f7f9fc, #eef5fb);
    border-radius: 32px;
    overflow: hidden
}

.contact-data {
    margin-top: 26px;
    padding: 28px;
    background: linear-gradient(180deg, #fff, #f9fbff);
    border-radius: 24px;
    border: 1px solid var(--line);
    box-shadow: inset 0 1px 0 rgb(255 255 255 / .65)
}

.contact-data p {
    margin: 6px 0
}

.contact-data a {
    color: var(--blue);
    font-weight: 800
}

.contact-data a:hover {
    color: var(--red)
}

.contact-form,
.faq-list {
    display: grid;
    gap: 14px
}

input,
textarea {
    width: 100%;
    padding: 16px 18px;
    border: 1px solid var(--line);
    border-radius: 16px;
    font: inherit
}

footer {
    padding: 30px 8vw;
    background: #111
}

footer p {
    margin: 0;
    color: #fff
}

.category-template {
    display: flex;
    flex-direction: column;
    gap: 32px
}

.description-box,
.gallery-box,
.subcategory-box,
.blog-article-card {
    width: 100%;
    background: rgb(255 255 255 / .96);
    border: 1px solid var(--line);
    border-radius: 28px;
    padding: clamp(26px, 3vw, 44px);
    box-shadow: 0 16px 45px rgb(0 0 0 / .08)
}

.description-box {
    min-height: 210px
}

.description-box h3,
.gallery-box h3,
.opis-box h3,
.opis-box h2 {
    margin: 0 0 18px;
    font-size: clamp(24px, 3vw, 34px);
    letter-spacing: -1px;
    text-align: center
}

.description-box p,
.description-box ul {
    max-width: 1180px;
    font-size: 18px
}

.description-box p {
    text-align: center;
    text-wrap: pretty
}

.description-box p:last-child {
    margin-bottom: 0
}

.gallery-box {
    min-height: 330px
}

.photo-gallery {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 16px
}

.photo-gallery figure {
    display: inline-flex;
    flex-direction: column;
    flex: 0 0 auto;
    max-width: 100%;
    margin: 0;
    border-radius: 18px;
    overflow: hidden;
    background: #f0f3f6;
    border: 1px solid var(--line);
    box-shadow: 0 8px 24px rgb(0 0 0 / .07);
    transition: transform .22s, box-shadow .22s, border-color .22s
}

.photo-gallery img {
    display: block;
    height: 175px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    object-position: center;
    background: #f0f3f6
}

.photo-gallery figcaption {
    max-width: 260px;
    padding: 10px 12px;
    background: #fff;
    font-size: 14px;
    color: #333
}

.product-slide img,
.realizacja-slide img {
    display: block;
    width: auto;
    background: #eef2f5;
    object-fit: contain
}

.product-links {
    margin-top: 34px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px
}

.product-tile {
    position: relative;
    display: flex;
    align-items: flex-end;
    min-height: 132px;
    padding: 20px;
    overflow: hidden;
    border-radius: 24px;

    box-shadow: 0 14px 34px rgb(5 35 55 / .12)
}

.product-tile::after {
    content: '→';
    position: absolute;
    top: 16px;
    right: 18px;
    color: #fff;
    font-size: 24px;
    font-weight: 900;
    opacity: .82;
    z-index: 3;
}

.product-tile span {
    color: var(--text-color, #fff);
    font-size: 18px;
    font-weight: 900;
    line-height: 1.15;
    text-shadow: 0 2px 14px rgb(0 0 0 / .25)
}

.product-tile:hover {
    transform: translateY(-4px);
    box-shadow: 0 24px 52px rgb(5 35 55 / .2)
}

@media (max-width:1100px) {
    .nav {
        gap: 22px
    }

    .cards-3,
    .grid {
        grid-template-columns: repeat(2, 1fr)
    }

    .contact,
    .split,
    .two-col {
        grid-template-columns: 1fr
    }

    .product-links {
        grid-template-columns: repeat(3, 1fr)
    }
}

.category-toggle {
    margin: 8px auto 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 0;
    border-radius: 999px;
    padding: 14px 22px;
    background: linear-gradient(135deg, var(--blue-dark), var(--blue));
    color: #fff;
    font-weight: 900;
    font-size: 15px;
    cursor: pointer;
    box-shadow: 0 14px 34px rgb(5 35 55 / .16);
    transition: transform .18s, box-shadow .18s
}

.category-toggle:hover,
.show-more-tiles:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 44px rgb(5 35 55 / .24)
}

.category-toggle::after {
    content: '⌄';
    font-size: 18px;
    transition: transform .2s
}

.category-toggle[aria-expanded=true]::after,
.show-more-tiles[aria-expanded=true]::after {
    transform: rotate(180deg)
}

.category-panel {
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transform: translateY(-8px);
    transition: max-height .45s, opacity .25s, transform .25s
}

.category-panel.open {
    max-height: 2400px;
    opacity: 1;
    transform: translateY(0)
}

.product-tile::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgb(0 0 0 / .04);
    z-index: -1
}

.nav-item {
    padding: 0 4px
}

.has-dropdown {
    display: flex;
    align-items: center;
    min-height: 88px
}

.has-dropdown::after {
    content: '';
    position: absolute;
    left: -20px;
    right: -20px;
    top: 70px;
    height: 28px
}

.simple-dropdown .dropdown {
    width: min(340px, 90vw);
    grid-template-columns: 1fr
}

.heading-link {
    color: inherit
}

.compact-head h2 {
    font-size: clamp(30px, 4vw, 48px)
}

.photo-gallery figure:hover {
    transform: scale(1.035);
    box-shadow: 0 18px 42px rgb(5 35 55 / .18);
    border-color: rgb(15 115 183 / .35);
    z-index: 2
}

.photo-gallery figure:hover img {
    filter: saturate(1.06) contrast(1.03)
}

.realizacje-section {
    padding-top: clamp(56px, 7vw, 96px)
}

.realizacje-carousel {
    position: relative;
    max-width: 1480px;
    margin: 34px auto 0;
    padding: 0 74px
}

.realizacje-stage {
    position: relative;
    min-height: 335px;
    overflow: hidden;
    border-radius: 34px;
    background: linear-gradient(135deg, rgb(7 58 98 / .06), rgb(15 115 183 / .1))
}

.product-slide,
.realizacja-slide {
    position: absolute;
    top: 50%;
    left: 50%;
    margin: 0;
    opacity: 0;
    transform: translate(-50%, -50%) scale(.72);
    transition: transform .55s, opacity .55s, filter .55s;
    pointer-events: none
}

.realizacja-slide img {
    height: 255px;
    max-width: 72vw;
    border-radius: 24px;
    box-shadow: 0 22px 54px rgb(5 35 55 / .22)
}

.product-slide.active,
.realizacja-slide.active {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
    z-index: 3;
    pointer-events: auto
}

.filmik iframe,
.footer-glow,
.hero::after,
.section::before,
.showcase-navigation {
    pointer-events: none
}

.realizacja-slide.prev {
    opacity: .42;
    filter: grayscale(.75);
    transform: translate(calc(-50% - 330px), -50%) scale(.78);
    z-index: 2
}

.realizacja-slide.next {
    opacity: .42;
    filter: grayscale(.75);
    transform: translate(calc(-50% + 330px), -50%) scale(.78);
    z-index: 2
}

.product-carousel-arrow,
.realizacje-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    width: 52px;
    height: 52px;
    border: 0;
    border-radius: 999px;
    background: #fff;
    color: var(--blue-dark);
    font-size: 42px;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 14px 36px rgb(5 35 55 / .16)
}

.product-carousel-arrow:hover,
.realizacje-arrow:hover {
    transform: translateY(-50%) scale(1.06);
    color: var(--blue);
    box-shadow: 0 18px 44px rgb(5 35 55 / .24)
}

.product-carousel-prev,
.realizacje-prev {
    left: 8px
}

.product-carousel-next,
.realizacje-next {
    right: 8px
}

@media (max-width:900px) {
    .realizacje-carousel {
        padding: 0 54px
    }

    .realizacje-stage {
        min-height: 285px
    }

    .realizacja-slide img {
        height: 210px
    }

    .realizacja-slide.prev {
        transform: translate(calc(-50% - 230px), -50%) scale(.72)
    }

    .realizacja-slide.next {
        transform: translate(calc(-50% + 230px), -50%) scale(.72)
    }
}

.product-slide.next,
.product-slide.prev {
    opacity: .42;
    filter: grayscale(.75);
    z-index: 2
}

.product-carousel {
    position: relative;
    width: 100%;
    max-width: 1480px;
    margin: 0 auto;
    padding: 0 74px
}

.product-carousel-stage {
    position: relative;
    min-height: 315px;
    overflow: hidden;
    background: 0 0
}

.product-slide img {
    height: 245px;
    max-width: 72vw;
    border-radius: 24px;
    box-shadow: 0 22px 54px rgb(5 35 55 / .2)
}

.product-slide figcaption {
    display: none
}

.product-slide.prev {
    transform: translate(calc(-50% - 320px), -50%) scale(.78)
}

.product-slide.next {
    transform: translate(calc(-50% + 320px), -50%) scale(.78)
}

@media (max-width:900px) {
    .product-carousel {
        padding: 0 54px
    }

    .product-carousel-stage {
        min-height: 275px
    }

    .product-slide img {
        height: 205px
    }

    .product-slide.prev {
        transform: translate(calc(-50% - 225px), -50%) scale(.72)
    }

    .product-slide.next {
        transform: translate(calc(-50% + 225px), -50%) scale(.72)
    }
}

@media (max-width:620px) {

    .product-carousel,
    .realizacje-carousel {
        padding: 0 42px
    }

    .realizacje-stage {
        min-height: 235px;
        border-radius: 24px
    }

    .realizacja-slide img {
        height: 170px;
        max-width: 78vw;
        border-radius: 18px
    }

    .product-slide.next,
    .product-slide.prev,
    .realizacja-slide.next,
    .realizacja-slide.prev {
        opacity: 0
    }

    .product-carousel-arrow,
    .realizacje-arrow {
        width: 42px;
        height: 42px;
        font-size: 34px
    }

    .product-carousel-stage {
        min-height: 225px
    }

    .product-slide img {
        height: 165px;
        max-width: 78vw;
        border-radius: 18px
    }
}

.filmik,
.partner {
    text-align: center
}

.stal-punkty-lewe,
.stal-punkty-prawe {
    width: 50%;
    float: left
}

.category-hero-sklep {
    min-height: 220px;
    position: relative;
    display: flex;
    align-items: center;
    padding: 38px 8vw;
    overflow: hidden;
    background: linear-gradient(90deg, rgb(119 1 16 / .6), rgb(143 0 19 / .4)), url(assets/sklep/sklep_38.webp) center/cover no-repeat
}

.category-hero-cnc,
.category-hero-stal {
    min-height: 220px;
    position: relative;
    display: flex;
    align-items: center;
    padding: 38px 8vw;
    overflow: hidden
}

.category-hero-stal {
    background: linear-gradient(90deg, rgb(48 48 48 / .92), rgb(75 75 75 / .68)), url(assets/stal/stal_01.webp) center/cover no-repeat
}

.category-hero-cnc {
    background: linear-gradient(90deg, rgba(113, 255, 220, 0.3), rgb(224 255 84 / .2)), url(assets/cnc/tlo.webp) center/cover no-repeat
}

.expandable-tiles {
    overflow: hidden;
    transition: max-height .42s
}

.show-more-tiles {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 24px auto 0;
    min-width: 168px;
    border: 0;
    border-radius: 999px;
    padding: 14px 24px;
    background: linear-gradient(135deg, var(--blue-dark), var(--blue));
    color: #fff;
    font-weight: 900;
    font-size: 15px;
    cursor: pointer;
    box-shadow: 0 14px 34px rgb(5 35 55 / .16)
}

.show-more-tiles::after {
    content: '▼';
    margin-left: 10px;
    font-size: 18px;
    transition: transform .2s
}

.product-tile {
    isolation: isolate;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat
}

.carousel-dots {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 9px;
    margin: 18px auto 0;
    max-width: 92%
}

.carousel-dot::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  
  /* Minimalny zalecany rozmiar pola dotykowego */
  width: 44px;
  height: 44px;
}

.carousel-dot {
    width: 9px;
    height: 9px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgb(7 58 98 / .24);
    cursor: pointer;
    transition: width .2s, background .2s, transform .2s
}

.carousel-dot:hover {
    transform: scale(1.2);
    background: rgb(15 115 183 / .55)
}

.carousel-dot.active {
    width: 28px;
    background: linear-gradient(135deg, #073a62, #0f73b7)
}

.product-slide.active img,
.realizacja-slide.active img {
    cursor: zoom-in
}

body.lightbox-open {
    overflow: hidden
}

.image-lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 34px 96px;
    background: rgb(3 15 24 / .92);
    backdrop-filter: blur(8px)
}

.lightbox-arrow,
.lightbox-close {
    position: fixed;
    z-index: 3;
    line-height: 1
}

.image-lightbox.open {
    display: flex
}

.lightbox-frame {
    margin: 0;
    max-width: 100%;
    max-height: 100%
}

.lightbox-img {
    display: block;
    max-width: calc(100vw - 210px);
    max-height: calc(100vh - 90px);
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 18px;
    box-shadow: 0 30px 90px rgb(0 0 0 / .48);
    background: #eef2f5
}

.lightbox-arrow,
.lightbox-close {
    border: 0;
    border-radius: 999px;
    background: rgb(255 255 255 / .94);
    color: var(--blue-dark);
    cursor: pointer;
    box-shadow: 0 18px 54px rgb(0 0 0 / .3)
}

.lightbox-arrow:hover,
.lightbox-close:hover {
    transform: scale(1.06);
    background: #fff;
    color: var(--blue)
}

.lightbox-close {
    top: 24px;
    right: 24px;
    width: 48px;
    height: 48px;
    font-size: 34px
}

.lightbox-arrow {
    top: 50%;
    width: 58px;
    height: 58px;
    font-size: 46px
}

.lightbox-prev {
    left: 24px;
    transform: translateY(-50%)
}

.lightbox-next {
    right: 24px;
    transform: translateY(-50%)
}

.lightbox-next:hover,
.lightbox-prev:hover {
    transform: translateY(-50%) scale(1.06)
}

@media (max-width:760px) {

    .cards-3,
    .dropdown,
    .grid {
        grid-template-columns: 1fr
    }

    .topbar {
        height: 78px
    }

    .brand img {
        width: 160px
    }

    .dropdown,
    .nav a,
    .nav-item,
    .photo-gallery figure,
    .simple-dropdown .dropdown {
        width: 100%
    }

    .menu-btn {
        display: block
    }

    .nav {
        position: absolute;
        top: 78px;
        left: 0;
        right: 0;
        display: none;
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        background: rgb(255 255 255 / .98);
        border-bottom: 1px solid rgb(7 58 98 / .08);
        padding: 16px 5vw;
        box-shadow: 0 18px 40px rgb(7 58 98 / .08)
    }

    .nav.open {
        display: flex
    }

    .dropdown,
    .dropdown::before,
    .has-dropdown::after {
        display: none
    }

    .nav a {
        padding: 14px 0
    }

    .nav-link {
        min-height: auto
    }

    .dropdown {
        position: static;
        transform: none;
        max-height: 360px;
        box-shadow: none;
        border: 0;
        border-radius: 18px;
        padding: 10px;
        background: var(--light)
    }

    .hero,
    .section {
        padding: 70px 6vw
    }

    .dropdown a {
        text-align: left;
        font-size: 15px;
        padding: 10px 12px;
        border: 0
    }

    .hero {
        min-height: 720px;
        align-items: flex-end
    }

    .hero-bg {
        background: linear-gradient(0deg, rgb(255 255 255 / .98) 0, rgb(255 255 255 / .84) 56%, rgb(255 255 255 / .18) 100%), url(assets/tartak.webp) center/cover no-repeat
    }

    h1 {
        letter-spacing: -3px
    }

    .lead {
        font-size: 20px
    }

    .cta-box {
        margin: 50px 6vw;
        padding: 44px 28px
    }

    .contact {
        gap: 24px;
        border-radius: 24px
    }

    .contact-data {
        padding: 22px
    }

    .description-box,
    .gallery-box,
    .blog-article-card {
        border-radius: 20px
    }

    .photo-gallery {
        display: grid;
        grid-template-columns: 1fr 1fr
    }

    .photo-gallery img {
        width: 100%;
        height: 135px;
        object-fit: contain
    }

    .photo-gallery figcaption {
        max-width: none
    }

    .category-hero {
        min-height: 180px;
        padding: 32px 6vw
    }

    .product-links {
        grid-template-columns: repeat(2, 1fr)
    }

    .product-tile {
        min-height: 112px;
        border-radius: 20px
    }

    .has-dropdown {
        min-height: auto;
        display: block
    }

    .carousel-dots {
        gap: 7px;
        margin-top: 14px
    }

    .carousel-dot {
        width: 8px;
        height: 8px
    }

    .carousel-dot.active {
        width: 22px
    }

    .image-lightbox {
        padding: 78px 18px 90px
    }

    .lightbox-img {
        max-width: calc(100vw - 36px);
        max-height: calc(100vh - 190px);
        border-radius: 14px
    }

    .lightbox-close {
        width: 44px;
        height: 44px;
        font-size: 30px;
        top: 18px;
        right: 18px
    }

    .lightbox-arrow {
        top: auto;
        bottom: 22px;
        width: 48px;
        height: 48px;
        font-size: 38px
    }

    .lightbox-prev {
        left: calc(50% - 62px)
    }

    .lightbox-next {
        right: calc(50% - 62px)
    }
}



.category-hero-content,
.hero-content {
    z-index: 2
}

.hero::after {
    z-index: 1
}

.hero-bg {
    z-index: 0
}

@media (max-width:1180px) {
    .topbar {
        padding: 0 4vw
    }

    .nav {
        gap: 20px
    }

    .nav a {
        font-size: 16px
    }

    .brand img {
        width: 180px
    }

    .hero {
        min-height: 620px
    }

    h1 {
        font-size: clamp(54px, 10vw, 120px);
        letter-spacing: -4px
    }
}

@media (max-width:900px) {
    .hero {
        min-height: auto;
        padding: 88px 6vw 72px;
        align-items: center
    }

    .hero-bg {
        background: linear-gradient(90deg, rgb(255 255 255 / .94) 0, rgb(255 255 255 / .88) 58%, rgb(255 255 255 / .3) 100%), linear-gradient(90deg, rgb(7 58 98 / .04), #fff0), url(assets/glowne/test.webp) center right/58% 100% no-repeat
    }

    .hero::after {
        width: 260px;
        height: 260px;
        right: -110px;
        bottom: -95px;
        opacity: .08
    }

    .hero-content {
        max-width: 620px
    }

    h1 {
        font-size: clamp(50px, 13vw, 96px);
        line-height: .92;
        letter-spacing: -3px;
        overflow-wrap: anywhere
    }

    .lead {
        max-width: 560px;
        font-size: 20px
    }

    .hero-actions {
        gap: 12px
    }

    .btn {
        min-height: 50px;
        padding: 0 22px
    }

    .image-card img {
        height: 320px
    }

    .contact {
        grid-template-columns: 1fr
    }
}

@media (max-width:760px) {

    .menu-btn,
    .mobile-dropdown-toggle {
        background: #f3f7fb;
        color: var(--dark-blue)
    }

    .topbar {
        height: 72px;
        padding: 0 5vw;
        border-bottom-width: 3px
    }

    .brand img {
        width: 145px;
        max-height: 48px
    }

    .menu-btn {
        position: relative;
        z-index: 50;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 46px;
        height: 46px;
        border-radius: 14px
    }

    .nav {
        top: 72px;
        max-height: calc(100vh - 72px);
        overflow-y: auto;
        padding: 10px 5vw 18px;
        box-shadow: 0 22px 50px rgb(5 35 55 / .14)
    }

    .nav a,
    .nav-link {
        min-height: auto;
        padding: 13px 0;
        font-size: 17px
    }

    .has-dropdown {
        width: 100%;
        display: flex !important;
        flex-wrap: wrap !important;
        align-items: center !important;
        justify-content: space-between !important
    }

    .has-dropdown>.nav-link {
        flex: 1;
        margin-right: 12px
    }

    .has-dropdown>.nav-link::after {
        display: none !important
    }

    .mobile-dropdown-toggle {
        display: flex !important;
        align-items: center;
        justify-content: center;
        border: 1px solid var(--line);
        padding: 0;
        width: 44px;
        height: 44px;
        cursor: pointer;
        border-radius: 12px;
        transition: transform .25s, background-color .2s, border-color .2s
    }

    .dropdown,
    .hero::after,
    .hero::before {
        display: none
    }

    .mobile-dropdown-toggle:active,
    .mobile-dropdown-toggle:hover {
        background-color: rgb(15 115 183 / .08);
        border-color: var(--blue)
    }

    .mobile-dropdown-toggle svg {
        width: 20px;
        height: 20px;
        stroke: var(--dark-blue);
        transition: transform .25s
    }

    .has-dropdown.open .mobile-dropdown-toggle {
        background-color: var(--blue);
        border-color: var(--blue)
    }

    .has-dropdown.open .mobile-dropdown-toggle svg {
        stroke: #fff;
        transform: rotate(180deg)
    }

    .dropdown {
        max-height: none;
        margin: 8px 0;
        padding: 8px;
        overflow: visible;
        width: 100% !important
    }

    .has-dropdown.open>.dropdown {
        display: grid
    }

    .dropdown a {
        min-height: 42px;
        padding: 10px 12px;
        font-size: 14px
    }

    .hero {
        min-height: auto;
        padding: 62px 6vw 54px
    }

    .hero-bg {
        background: linear-gradient(0deg, rgb(255 255 255 / .91) 0, rgb(255 255 255 / .8) 68%, rgb(255 255 255 / .45) 100%), url(assets/glowne/test.webp) center top/cover no-repeat
    }

    .hero-content {
        padding: 0;
        max-width: 100%
    }

    .eyebrow,
    .section-label {
        font-size: 12px;
        letter-spacing: 1.5px
    }

    h1 {
        font-size: clamp(44px, 15vw, 72px);
        letter-spacing: -2px
    }

    .lead {
        margin: 22px 0 26px;
        font-size: 18px;
        line-height: 1.55
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        max-width: 360px
    }

    .hero-actions .btn {
        width: 100%
    }

    .section {
        padding: 54px 6vw
    }

    h2 {
        font-size: clamp(30px, 10vw, 46px);
        letter-spacing: -1.4px
    }

    p {
        font-size: 17px
    }

    .card,
    .description-box,
    .gallery-box,
    .subcategory-box,
    .blog-article-card {
        padding: 24px;
        border-radius: 22px
    }

    .category-hero,
    .category-hero-cnc,
    .category-hero-sklep,
    .category-hero-stal {
        min-height: 150px;
        padding: 28px 6vw
    }

    .category-hero h1,
    .category-hero-cnc h1,
    .category-hero-sklep h1,
    .category-hero-stal h1 {
        font-size: clamp(32px, 11vw, 52px);
        line-height: 1;
        letter-spacing: -1.4px
    }

    .product-links {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px
    }

    .product-tile {
        min-height: 104px;
        padding: 15px;
        border-radius: 18px
    }

    .product-tile span {
        font-size: 15px
    }

    .product-tile::after {
        top: 10px;
        right: 13px;
        font-size: 20px
    }

    .product-carousel,
    .realizacje-carousel {
        padding: 0 38px
    }

    .product-carousel-stage,
    .realizacje-stage {
        min-height: 220px
    }

    .product-slide img,
    .realizacja-slide img {
        height: 160px;
        max-width: calc(100vw - 110px)
    }

    .product-slide.next,
    .product-slide.prev,
    .realizacja-slide.next,
    .realizacja-slide.prev {
        opacity: 0
    }

    .product-carousel-arrow,
    .realizacje-arrow {
        width: 40px;
        height: 40px;
        font-size: 32px
    }

    .product-carousel-prev,
    .realizacje-prev {
        left: 0
    }

    .product-carousel-next,
    .realizacje-next {
        right: 0
    }

    .carousel-dots {
        gap: 6px
    }

    .carousel-dot {
        width: 7px;
        height: 7px
    }

    .carousel-dot.active {
        width: 20px
    }

    .cta-box {
        margin: 42px 6vw;
        padding: 34px 24px;
        border-radius: 24px
    }

    .stal-punkty-lewe,
    .stal-punkty-prawe {
        width: 100%;
        float: none
    }

    .filmik iframe {
        width: 100%;
        height: 100%
    }

    .checklist li {
        padding: 12px 14px;
        font-size: 16px;
        border-radius: 14px
    }

    .steel-box {
        min-height: auto;
        padding: 20px;
        border-radius: 20px
    }

    .steel-box span {
        padding: 10px 12px;
        font-size: 15px;
        border-radius: 10px
    }

    .menu-btn {
        font-size: 24px !important
    }
}

@media (max-width:480px) {
    .photo-gallery {
        grid-template-columns: 1fr
    }

    .photo-gallery img {
        height: auto;
        max-height: none
    }

    .topbar {
        height: 68px
    }

    .nav {
        top: 68px;
        max-height: calc(100vh - 68px)
    }

    .brand img {
        width: 128px
    }

    .hero {
        padding: 50px 5vw 46px
    }

    .hero-content {
        width: 100%
    }

    h1 {
        font-size: clamp(40px, 16vw, 62px);
        line-height: .96
    }

    .lead {
        font-size: 16.5px
    }

    .btn {
        min-height: 48px;
        padding: 0 18px;
        font-size: 15px
    }

    .section {
        padding: 46px 5vw
    }

    .product-links {
        grid-template-columns: repeat(2, minmax(0, 1fr))
    }

    .product-tile {
        min-height: 92px
    }

    .image-card img {
        height: 240px
    }

    .description-box p,
    .description-box ul {
        font-size: 16px;
        line-height: 1.65
    }

    .product-carousel,
    .realizacje-carousel {
        padding: 0 30px
    }

    .product-carousel-stage,
    .realizacje-stage {
        min-height: 195px
    }

    .product-slide img,
    .realizacja-slide img {
        height: 140px;
        max-width: calc(100vw - 86px);
        border-radius: 16px
    }

    .product-carousel-arrow,
    .realizacje-arrow {
        width: 34px;
        height: 34px;
        font-size: 28px
    }
}

footer.site-footer {
    background: #111;
    border-top: 4px solid var(--accent)
}

footer.site-footer p {
    margin: 4px 0;
    color: #fff;
    letter-spacing: .02em
}

footer.site-footer strong {
    font-size: 1.05rem
}

.topbar {
    transition: box-shadow .25s, background .25s, border-color .25s
}

.topbar:hover {
    box-shadow: 0 12px 34px rgb(5 35 55 / .1)
}

.contact-data a::after,
.heading-link::after,
.nav-link::after,
.nav>a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 100%;
    height: 2px;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform .24s
}

.contact-data a:hover::after,
.heading-link:hover::after,
.nav-link:hover::after,
.nav>a:hover::after {
    transform: scaleX(1);
    transform-origin: left
}

.btn,
.lightbox-arrow,
.lightbox-close,
.product-carousel-arrow,
.realizacje-arrow,
.show-more-tiles {
    transition: transform .22s, box-shadow .22s, color .22s, background .22s
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 34px rgb(5 35 55 / .16)
}

.btn.primary:hover,
.btn.secondary:hover {
    background: linear-gradient(135deg, var(--blue), var(--dark-blue));
    color: #fff;
    border-color: #fff0
}

.reveal.is-visible {
    opacity: 1;
    transform: translate3d(0, 0, 0);
    filter: blur(0)
}

.section::before {
    content: '';
    position: absolute;
    inset: 18px 4vw auto auto;
    width: 110px;
    height: 110px;
    border-radius: 999px;
    background: radial-gradient(circle, rgb(15 115 183 / .12), #fff0 68%)
}

.contact-panel::before,
.description-box::before,
.blog-article-card::before {
    content: '';
    background: linear-gradient(180deg, var(--blue), var(--red))
}

.card,
.checklist li,
.contact-data,
.description-box,
.gallery-box,
.product-tile,
.steel-box,
.subcategory-box,
.blog-article-card {
    transition: transform .25s, box-shadow .25s, border-color .25s, filter .25s
}

.card:hover,
.checklist li:hover,
.contact-data:hover,
.description-box:hover,
.gallery-box:hover,
.subcategory-box:hover,
.blog-article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 24px 58px rgb(5 35 55 / .16);
    border-color: rgb(15 115 183 / .26)
}

.image-card img,
.photo-gallery img,
.product-slide img,
.realizacja-slide img {
    transition: transform .45s, filter .35s
}

.image-card:hover img {
    transform: scale(1.045);
    filter: saturate(1.08) contrast(1.04)
}

.product-tile::after {
    transition: transform .22s, opacity .22s
}

.btn-hero-primary .arrow-icon,
.faq-item summary::after {
    transition: transform .2s
}

.product-tile:hover::after {
    transform: translateX(4px);
    opacity: 1
}

.product-tile:hover {
    transform: translateY(-7px) scale(1.015)
}

.checklist li:hover::before {
    filter: drop-shadow(0 0 8px rgb(217 31 40 / .35))
}

.steel-box span:hover {
    transform: translateX(6px);
    background: rgb(255 255 255 / .14)
}

.carousel-dot.active {
    box-shadow: 0 0 0 5px rgb(15 115 183 / .1)
}

@media (prefers-reduced-motion:reduce) {

    *,
    ::after,
    ::before {
        animation-duration: NaNs !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: NaNs !important
    }

    .reveal {
        opacity: 1;
        transform: none;
        filter: none
    }
}

.description-box,
.blog-article-card {
    position: relative;
    overflow: hidden;
    border: 1px solid rgb(15 115 183 / .12);
    background: radial-gradient(circle at top left, rgb(15 115 183 / .075), transparent 34%), linear-gradient(180deg, rgb(255 255 255 / .98), rgb(248 251 255 / .96))
}

.description-box::before,
.blog-article-card::before {
    position: absolute;
    left: 0;
    top: 30px;
    bottom: 30px;
    width: 5px;
    border-radius: 0 999px 999px 0;
    opacity: .9
}

.description-box h3 {
    position: relative;
    display: table;
    margin-left: auto;
    margin-right: auto;
    padding-bottom: 10px;
    color: #0b2940
}

.description-box h3::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 74px;
    height: 4px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--blue), var(--red));
    transform: translateX(-50%)
}

.description-box p,
.description-box ul {
    position: relative;
    margin-left: auto;
    margin-right: auto;
    color: #111416;
    font-size: clamp(17px, 1.15vw, 19px);
    line-height: 1.82;
    letter-spacing: .01em
}

.description-box li b,
.description-box p b {
    color: #102f45;
    font-weight: 650
}

.description-box ul {
    padding: 0;
    list-style: none
}

.description-box li {
    position: relative;
    margin: 10px 0;
    padding-left: 30px
}

.description-box li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--red);
    font-weight: 800
}

@media (max-width:700px) {
    .description-box::before,
    .blog-article-card::before {
        top: 22px;
        bottom: 22px;
        width: 4px
    }

    .description-box p {
        text-align: left;
        line-height: 1.72
    }
}

.product-faq {
    margin: 34px auto 10px;
    max-width: 980px;
    padding: clamp(22px, 4vw, 42px);
    border: 1px solid rgb(16 47 69 / .1);
    border-radius: 28px;
    background: radial-gradient(circle at top left, rgb(26 92 140 / .1), transparent 36%), linear-gradient(135deg, rgb(255 255 255 / .96), rgb(246 249 252 / .92));
    box-shadow: 0 24px 70px rgb(14 44 67 / .1)
}

.compact-head {
    margin-bottom: 22px;
    text-align: center !important
}

.faq-item {
    overflow: hidden;
    border: 1px solid rgb(16 47 69 / .1);
    border-radius: 18px;
    background: rgb(255 255 255 / .82);
    box-shadow: 0 14px 34px rgb(14 44 67 / .07);
    transition: transform .2s, box-shadow .2s, border-color .2s
}

.contact-map-section iframe,
.contact-panel {
    box-shadow: 0 24px 70px rgb(14 44 67 / .1);
    overflow: hidden
}

.faq-item:hover,
.faq-item[open] {
    transform: translateY(-2px);
    border-color: rgb(179 33 45 / .22);
    box-shadow: 0 18px 42px rgb(14 44 67 / .11)
}

.faq-item summary {
    position: relative;
    cursor: pointer;
    list-style: none;
    padding: 20px 58px 20px 22px;
    color: #102f45;
    font-weight: 750;
    font-size: clamp(17px, 1.4vw, 20px)
}

.faq-item summary::-webkit-details-marker {
    display: none
}

.faq-item summary::after {
    content: '+';
    position: absolute;
    right: 20px;
    top: 50%;
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--blue), var(--red));
    color: #fff;
    font-size: 22px;
    line-height: 1;
    transform: translateY(-50%)
}

.btn-hero-primary:hover .arrow-icon,
.footer-column a:hover {
    transform: translateX(4px)
}

.faq-item[open] summary::after {
    content: '−';
    transform: translateY(-50%) rotate(180deg)
}

.faq-item p {
    margin: 0;
    padding: 0 22px 22px;
    color: #31485a;
    font-size: 17px;
    line-height: 1.75
}

.contact-hero {
    min-height: 360px
}

.contact-page-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(280px, .9fr);
    gap: 24px;
    align-items: stretch
}

.contact-panel {
    position: relative;
    padding: clamp(24px, 4vw, 42px);
    border-radius: 28px;
    border: 1px solid rgb(16 47 69 / .1);
    background: radial-gradient(circle at top right, rgb(179 33 45 / .11), transparent 34%), linear-gradient(135deg, rgb(255 255 255 / .98), rgb(246 249 252 / .93))
}

.contact-panel::before {
    position: absolute;
    inset: 0 auto 0 0;
    width: 6px
}

.clean-contact-data p,
.hours-list p {
    color: #31485a;
    font-size: 17px;
    line-height: 1.7
}

.hours-list {
    display: grid;
    gap: 16px;
    margin-top: 18px
}

.hours-list div {
    padding: 18px;
    border-radius: 18px;
    background: rgb(255 255 255 / .74);
    border: 1px solid rgb(16 47 69 / .08)
}

.hours-list span {
    display: block;
    margin-bottom: 6px;
    color: #102f45;
    font-weight: 650
}

.contact-map-section iframe {
    border-radius: 28px
}

@media (max-width:820px) {
    .contact-page-grid {
        grid-template-columns: 1fr
    }

    .product-faq {
        border-radius: 22px
    }

    .faq-item summary {
        padding-right: 54px
    }
}

footer.site-footer {
    position: relative;
    overflow: hidden;
    padding: 0;
    margin-top: 70px;
    background: radial-gradient(circle at 12% 0, rgb(198 138 62 / .22), transparent 34%), linear-gradient(135deg, #12100d 0, #1d1710 48%, #0d0d0c 100%);
    color: rgb(255 255 255 / .88);
    text-align: left;
    border-top: 1px solid rgb(198 138 62 / .45);
    box-shadow: 0 -20px 60px rgb(0 0 0 / .18)
}

.footer-glow {
    position: absolute;
    inset: -120px auto auto 50%;
    width: 560px;
    height: 560px;
    transform: translateX(-50%);
    background: radial-gradient(circle, rgb(198 138 62 / .12), transparent 68%)
}

.showcase-slide,
.showcase-slider {
    inset: 0;
    height: 100%;
    position: absolute
}

.footer-inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(240px, 1.35fr) .8fr .8fr minmax(250px, 1fr);
    gap: 34px;
    max-width: 1240px;
    margin: 0 auto;
    padding: 54px 8vw 36px
}

.footer-brand-block,
.footer-column,
.footer-contact-card {
    min-width: 0
}

.footer-logo {
    display: inline-flex;
    align-items: center;
    padding: 10px 14px;
    border-radius: 18px;
    background: rgb(255 255 255 / .94);
    box-shadow: 0 16px 40px rgb(0 0 0 / .2);
    transition: transform .2s, box-shadow .2s
}

.footer-logo:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 48px rgb(0 0 0 / .28)
}

.footer-logo img {
    display: block;
    width: 148px;
    max-width: 100%;
    height: auto
}

.footer-tagline {
    max-width: 360px;
    margin: 20px 0 18px !important;
    color: rgb(255 255 255 / .78) !important;
    font-size: .98rem;
    line-height: 1.65;
    letter-spacing: 0 !important
}

.footer-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px
}

.footer-badges span,
.footer-cta {
    display: inline-flex;
    align-items: center
}

.footer-badges span {
    border: 1px solid rgb(198 138 62 / .38);
    border-radius: 999px;
    padding: 7px 11px;
    background: rgb(255 255 255 / .06);
    color: rgb(255 255 255 / .86);
    font-size: .82rem;
    font-weight: 650
}

.footer-column h3,
.footer-contact-card h3 {
    margin: 0 0 16px;
    color: #fff;
    font-size: .95rem;
    letter-spacing: .09em;
    text-transform: uppercase
}

.footer-column h3::after,
.footer-contact-card h3::after {
    content: "";
    display: block;
    width: 34px;
    height: 2px;
    margin-top: 9px;
    border-radius: 999px;
    background: var(--accent)
}

.footer-column a {
    position: relative;
    display: block;
    width: fit-content;
    margin: 10px 0;
    color: rgb(255 255 255 / .72);
    transition: color .2s, transform .2s
}

.footer-column a::before {
    content: "›";
    margin-right: 8px;
    color: var(--accent);
    opacity: .95
}

.footer-column a:hover {
    color: #fff
}

.footer-contact-card {
    padding: 18px;
    border: 1px solid rgb(255 255 255 / .1);
    border-radius: 24px;
    background: linear-gradient(180deg, rgb(255 255 255 / .1), rgb(255 255 255 / .045));
    box-shadow: inset 0 1px 0 rgb(255 255 255 / .12), 0 22px 55px rgb(0 0 0 / .16);
    backdrop-filter: blur(10px)
}

.footer-contact-card p {
    margin: 13px 0 !important;
    color: rgb(255 255 255 / .82) !important;
    line-height: 1.45;
    letter-spacing: 0 !important
}

.footer-contact-card span {
    display: block;
    margin-bottom: 3px;
    color: rgb(255 255 255 / .48);
    font-size: .76rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase
}

.footer-bottom a,
.footer-contact-card a {
    color: #fff;
    text-decoration: none
}

.footer-bottom a:hover,
.footer-contact-card a:hover {
    color: var(--accent)
}

.footer-cta {
    justify-content: center;
    width: 100%;
    margin-top: 10px;
    padding: 12px 16px;
    border-radius: 999px;
    background: var(--accent);
    color: #ffffff !important;
    font-weight: 800;
    box-shadow: 0 14px 30px rgb(198 138 62 / .22);
    transition: transform .2s, filter .2s
}

.footer-bottom,
.hero {
    display: flex;
    align-items: center
}

.filmik iframe,
.mapka iframe {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    border: 0
}

.footer-cta:hover {
    transform: translateY(-2px);
    filter: brightness(1.06)
}

.footer-bottom {
    position: relative;
    z-index: 1;
    justify-content: space-between;
    gap: 18px;
    max-width: 1240px;
    margin: 0 auto;
    padding: 18px 8vw 24px;
    border-top: 1px solid rgb(255 255 255 / .1)
}

.filmik,
.mapka {
    max-width: 100%;
    aspect-ratio: 16/9;
    position: relative
}

footer.site-footer .footer-bottom p {
    margin: 0 !important;
    color: rgb(255 255 255 / .62) !important;
    font-size: .88rem;
    letter-spacing: 0 !important
}

footer.site-footer .footer-bottom strong {
    color: #fff;
    font-size: .95rem
}

.footer-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px
}

.footer-cta-secondary {
    background: 0 0;
    border: 1px solid rgb(255 255 255 / .18);
    color: #fff !important;
    box-shadow: none
}

@media (max-width:980px) {

    .split,
    .two-col {
        gap: 36px
    }

    .footer-inner {
        grid-template-columns: 1fr 1fr
    }

    .footer-brand-block,
    .footer-contact-card {
        grid-column: 1/-1
    }
}

@media (max-width:640px) {
    footer.site-footer {
        margin-top: 46px
    }

    .footer-inner {
        grid-template-columns: 1fr;
        gap: 26px;
        padding: 42px 6vw 28px
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        padding: 18px 6vw 24px
    }

    .footer-logo img {
        width: 132px
    }
}

.filmik,
.filmik iframe {
    width: 100%
}

.mapka {
    width: 100%;
    margin-top: 150px
}

.mapka iframe {
    width: 100%
}

.faq-item ul,
.glowing-dot,
.hero {
    position: relative
}

@media (max-width:1100px) {
    .mapka {
        margin-top: 0 !important
    }
}

@media (min-width:1100px) and (max-width:1200px) {
    .mapka {
        margin-top: 230px !important
    }
}

.opinie {
    padding: 0 8vw;
    max-width: 1500px;
    margin: 48px auto
}

.hero {
    min-height: calc(100vh - 88px);
    padding: 80px 8vw;
    background: radial-gradient(circle at 85% 15%, rgb(15 115 183 / .08), transparent 40%), radial-gradient(circle at 15% 85%, rgb(198 138 62 / .04), transparent 40%), linear-gradient(180deg, #fcfdfe 0, #fff 100%);
    overflow: hidden
}

.hero-split-container {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 64px;
    max-width: 1440px;
    margin: 0 auto;
    width: 100%;
    align-items: center
}

.hero-text-side {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left
}

.hero-badge-container {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgb(15 115 183 / .06);
    border: 1px solid rgb(15 115 183 / .12);
    padding: 8px 16px;
    border-radius: 999px;
    margin-bottom: 24px;
    box-shadow: 0 4px 15px rgb(15 115 183 / .03)
}

.glowing-dot {
    width: 8px;
    height: 8px;
    background-color: var(--red);
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 0 rgb(217 31 40 / .4);
    animation: 2s infinite pulse-dot
}

@keyframes pulse-dot {
    0% {
        box-shadow: 0 0 0 0 rgb(217 31 40 / .7)
    }

    70% {
        box-shadow: 0 0 0 8px #fff0
    }

    100% {
        box-shadow: 0 0 0 0 #fff0
    }
}

.eyebrow-text {
    margin: 0;
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--blue-dark)
}

.hero-text-side h1 {
    font-size: clamp(52px, 5.5vw, 88px);
    font-weight: 900;
    line-height: .95;
    letter-spacing: -3px;
    color: var(--dark-blue);
    margin: 0 0 20px
}

.hero-text-side .lead {
    font-size: clamp(17px, 1.3vw, 20px);
    line-height: 1.6;
    color: #374151;
    margin: 0 0 32px;
    max-width: 680px
}

.hero-pillars-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    width: 100%;
    margin-bottom: 36px
}

.pillar-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: #fff;
    padding: 16px;
    border-radius: 18px;
    border: 1px solid var(--line);
    box-shadow: 0 4px 15px rgb(4 26 44 / .03);
    transition: transform .25s cubic-bezier(.16, 1, .3, 1), border-color .25s, box-shadow .25s
}

.pillar-item:hover {
    transform: translateY(-3px);
    border-color: var(--blue);
    box-shadow: 0 12px 28px rgb(4 26 44 / .08)
}

.pillar-icon {
    font-size: 24px;
    line-height: 1
}

.pillar-info {
    display: flex;
    flex-direction: column
}

.pillar-info strong {
    font-size: 14px;
    font-weight: 800;
    color: var(--dark-blue);
    line-height: 1.25
}

.pillar-info span {
    font-size: 11px;
    color: var(--muted);
    margin-top: 3px;
    line-height: 1.2
}

.hero-actions-container {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    width: 100%
}

.btn-hero-primary,
.btn-hero-secondary {
    display: inline-flex;
    align-items: center;
    font-weight: 800;
    font-size: 16px;
    text-decoration: none
}

.btn-hero-primary {
    justify-content: center;
    gap: 10px;
    background: var(--blue);
    color: #fff;
    padding: 16px 36px;
    border-radius: 999px;
    box-shadow: 0 8px 24px rgb(15 115 183 / .25);
    transition: background .2s, transform .2s, box-shadow .2s
}

.btn-hero-primary:hover {
    background: var(--blue-dark);
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgb(15 115 183 / .35)
}

.btn-hero-secondary {
    justify-content: center;
    background: #fff;
    color: var(--dark-blue);
    border: 2px solid var(--line);
    padding: 14px 36px;
    border-radius: 999px;
    transition: background .2s, border-color .2s, transform .2s
}

.btn-hero-secondary:hover {
    background: var(--light);
    border-color: var(--blue);
    transform: translateY(-2px)
}

.hero-showcase-side {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%
}

.showcase-card-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 4/3;
    border-radius: 32px;
    overflow: hidden;
    box-shadow: 0 24px 60px rgb(4 26 44 / .16);
    border: 1px solid rgb(255 255 255 / .6);
    background: #f0f4f8
}

.showcase-slider {
    width: 100%
}

.showcase-slide {
    width: 100%;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    opacity: 0;
    transform: scale(1.02);
    transition: opacity 1.2s cubic-bezier(.4, 0, .2, 1), transform 5s linear;
    z-index: 1
}

.showcase-navigation,
.social-sidebar {
    left: 0;
    top: 50%;
    transform: translateY(-50%)
}

.showcase-slide.active {
    opacity: 1;
    transform: scale(1.08);
    z-index: 2
}

.showcase-caption-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 24px 28px;
    background: linear-gradient(180deg, #fff0 0, rgb(7 58 98 / .85) 50%, rgb(7 58 98 / .95) 100%);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-top: 1px solid rgb(255 255 255 / .1);
    z-index: 3;
    display: flex;
    flex-direction: column;
    gap: 4px;
    color: #fff;
    pointer-events: none
}

.showcase-dots,
.showcase-navigation {
    position: absolute;
    display: flex;
    z-index: 4
}

.showcase-caption-tag {
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--accent)
}

.showcase-caption-text {
    font-size: 16px;
    font-weight: 700;
    margin: 0;
    color: #fff;
    line-height: 1.3
}

.showcase-dots {
    bottom: 88px;
    right: 28px;
    gap: 6px
}

.showcase-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    background: rgb(255 255 255 / .45);
    cursor: pointer;
    padding: 0;
    transition: background .25s, width .25s, border-radius .25s
}

.showcase-dot.active {
    background: #fff;
    width: 22px;
    border-radius: 4px
}

.showcase-navigation {
    right: 0;
    justify-content: space-between;
    padding: 0 16px
}

.showcase-arrow {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgb(255 255 255 / .82);
    backdrop-filter: blur(4px);
    border: 1px solid rgb(255 255 255 / .4);
    color: var(--dark-blue);
    font-size: 26px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background .2s, transform .2s, color .2s, box-shadow .2s;
    box-shadow: 0 6px 18px rgb(0 0 0 / .12);
    pointer-events: auto
}

.showcase-arrow:hover {
    background: #fff;
    transform: scale(1.08);
    color: var(--blue);
    box-shadow: 0 8px 24px rgb(0 0 0 / .2)
}

.showcase-arrow.prev {
    padding-right: 2px
}

.showcase-arrow.next {
    padding-left: 2px
}

@media (max-width:1024px) {
    .hero {
        padding: 60px 6vw;
        min-height: auto;
        display: block
    }

    .hero-split-container {
        grid-template-columns: 1fr;
        gap: 48px
    }

    .hero-showcase-side {
        order: -1;
        width: 100%
    }

    .showcase-card-wrapper {
        aspect-ratio: 16/10;
        max-height: 420px;
        border-radius: 24px
    }
}

@media (max-width:760px) {

    .reveal-left,
    .reveal-right,
    .reveal-up {
        transform: translate3d(0, 28px, 0)
    }

    .nav-link::after {
        display: none
    }

    .section::before {
        width: 74px;
        height: 74px;
        opacity: .7
    }

    .opinie {
        padding: 0 6vw;
        margin: 32px auto
    }

    .hero {
        padding: 36px 5vw 48px
    }

    .hero-split-container {
        gap: 32px
    }

    .hero-text-side h1 {
        font-size: clamp(40px, 12vw, 64px);
        letter-spacing: -2px;
        margin-bottom: 16px
    }

    .hero-text-side .lead {
        margin-bottom: 24px
    }

    .hero-pillars-grid {
        grid-template-columns: 1fr;
        gap: 12px;
        margin-bottom: 28px
    }

    .pillar-item {
        padding: 14px;
        border-radius: 14px
    }

    .hero-actions-container {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        width: 100%
    }

    .btn-hero-primary,
    .btn-hero-secondary {
        width: 100%;
        padding: 14px 24px;
        font-size: 15px
    }

    .showcase-card-wrapper {
        aspect-ratio: 4/3;
        max-height: 320px;
        border-radius: 20px
    }

    .showcase-dots {
        bottom: 84px;
        right: 20px
    }

    .showcase-caption-bar {
        padding: 18px 20px
    }

    .showcase-caption-text {
        font-size: 14px
    }

    .showcase-arrow {
        width: 38px;
        height: 38px;
        font-size: 22px
    }
}

@media (max-width:480px) {
    .opinie {
        padding: 0 5vw;
        margin: 24px auto
    }

    .hero {
        padding: 24px 4vw 40px
    }

    .showcase-card-wrapper {
        aspect-ratio: 1.35/1;
        max-height: 260px;
        border-radius: 16px
    }

    .showcase-caption-bar {
        padding: 14px 16px
    }

    .showcase-caption-text {
        font-size: 13px
    }

    .showcase-dots {
        bottom: 74px;
        right: 16px
    }
}

body,
html {
    background-color: #fff;
    overscroll-behavior: none
}

.social-sidebar {
    position: fixed;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: flex-start
}

.social-item {
    display: flex;
    flex-direction: row;
    align-items: center;
    text-decoration: none;
    color: #fff;
    margin-bottom: 8px;
    transition: .4s cubic-bezier(.175, .885, .32, 1.275);
    width: 45px;
    height: 45px;
    white-space: nowrap;
    overflow: hidden;
    border-radius: 0 30px 30px 0;
    box-shadow: 2px 4px 10px rgb(0 0 0 / .2);
    opacity: .9
}

.social-item:hover {
    width: 150px;
    opacity: 1;
    transform: translateX(5px)
}

.social-item i {
    font-size: 20px;
    min-width: 45px;
    display: flex;
    justify-content: center;
    align-items: center
}

.social-item span {
    margin-left: 10px;
    font-family: 'Segoe UI', Roboto, sans-serif;
    font-size: 14px;
    font-weight: 600;
    opacity: 0;
    transition: opacity .3s
}

.social-item:hover span {
    opacity: 1
}

.facebook {
    background-color: #1877f2
}

.instagram {
    background: linear-gradient(45deg, #f09433 0, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%)
}

.tiktok {
    background-color: #000
}

@media (max-width:768px) {
    .social-sidebar {
        top: auto;
        bottom: 20px
    }

    .social-item {
        width: 40px;
        height: 40px
    }

    .social-item:hover {
        width: 40px;
        transform: none
    }

    .social-item span {
        display: none
    }
}

.hours-grid {
    display: grid;
    grid-template-columns: 150px auto;
    gap: 12px clamp(10px, 3vw, 35px)
}

.faq-item ul {
    color: #31485a;
    font-size: clamp(17px, 1.15vw, 19px);
    line-height: 1.75;
    letter-spacing: .01em;
    margin-left: 20px;
    padding: 0 22px 22px
}

.social-item svg {
    width: 1em;
    height: 1em;
    display: block;
    fill: currentColor;
    flex-shrink: 0;
    margin-left: 4px
}

.lewe-punkty,
.prawe-punkty {
    width: 100%;
    float: none;
    box-sizing: border-box
}

@media (min-width:768px) {

    .lewe-punkty,
    .prawe-punkty {
        width: 50%;
        float: left
    }
}

.lewe-punkty li::before,
.prawe-punkty li::before {
    content: none
}

.arrow-icon {
    color: #d91f28
}

.pelletomat-zdjecie {
    height: 10%;
    width: auto;
    margin: auto;
    margin-bottom: 19px;
    border-radius: 10px
}

.pelletomat-zdjecie:hover {
    transform: scale(1.02);
    transition: transform 0.3s ease-in-out;
    border: 3px solid darkgreen
}

.czysty-link {
    text-decoration: none
}

.pellet-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 14px
}

.pellet-list li {
    padding: 18px 20px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 18px;
    font-size: 20px;
    font-weight: 800;
    color: var(--dark-blue)
}

.pelletomat-zdjecie {
    height: 10%;
    width: auto;
    margin: auto;
    margin-bottom: 19px;
    border-radius: 10px
}

.pelletomat-zdjecie:hover {
    transform: scale(1.02);
    transition: transform 0.3s ease-in-out;
    border: 3px solid darkgreen
}

.czysty-link {
    text-decoration: none
}

.pellet-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 14px
}

.pellet-list li {
    padding: 18px 20px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 18px;
    font-size: 20px;
    font-weight: 800;
    color: var(--dark-blue)
}

/* Kontekst pozycjonowania dla kafelka */
.product-tile {
  position: relative;
  overflow: hidden;
align-items: flex-end;
  justify-content: flex-start; 
  padding: 16px 18px;
  background: var(--tile-img);
}

/* Stylizacja obrazka tła z natywnym lazy-loading */
.product-tile img.tile-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover; /* Odpowiednik 'cover' z background-size */
  z-index: 1;
}

/* Gradient / Przyciemnienie tła */
.product-tile::before {
  content: "";
  position: absolute;
  inset: 0;
background: linear-gradient(rgba(0,0,0,.45), rgba(0,0,0,.45));
  z-index: 2;
}

/* Nakładka tekstu na samej górze */
.product-tile span {
  position: relative;
  z-index: 3;
  
}

.faq-list h3 {
    margin-top: 10px;
    padding: 0;
    font-size: inherit;     /* Przejmuje rozmiar tekstu od rodzica */
    font-weight: inherit;   /* Przejmuje grubość tekstu (wyłącza pogrubienie) */
    line-height: inherit;   /* Przejmuje wysokość linii */
}

/* 1. Podstawowe style dla linków w FAQ */
/* 1. Podstawowe style dla linków w FAQ oraz w Description Box */
.faq-list a,
.faq-list a:visited,
.description-box a,
.description-box a:visited,
.blog-article-card a,
.blog-article-card a:visited {
    color: var(--primary, #399fff);
    text-decoration: none !important;
    position: relative;
    display: inline-block;
    transition: color 0.3s ease;
    font-weight: 500;
    font-size: 1.1rem;
    padding: 5px 0;
}

.faq-list a,
.faq-list a:visited {
    font-weight: 530;
    font-size: 1.2rem;
}

.faq-list a:hover,
.description-box a:hover,
.blog-article-card a:hover {
    color: var(--primary-dark, #001f3f);
}

/* 2. Ukryta linia pod linkiem */
.faq-list a::after,
.description-box a::after,
.blog-article-card a::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    bottom: 0;
    left: 0;
    background: linear-gradient(90deg, #0f73b7, #d91f28);
    transform: scaleX(0);
    transform-origin: bottom right;
    transition: transform 0.4s cubic-bezier(0.86, 0, 0.07, 1);
}

/* 3. Animacja podkreślenia po najechaniu myszką (:hover) */
.faq-list a:hover::after,
.description-box a:hover::after,
.blog-article-card a:hover::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

.contact-p {
    color: white;
    width: 55%;
}

.social-media-contact {
    display: flex;
    flex-direction: row;
    justify-content: center; /* wyśrodkowanie w poziomie */
    align-items: center;     /* wyśrodkowanie w pionie */
    gap: 15px;               /* odstęp między ikonkami */
    width: 100%;             /* upewnia się, że kontener zajmuje całą szerokość */
}


.description-box h2 {
    margin: 0 0 18px;
    font-size: clamp(24px, 3vw, 34px);
    letter-spacing: -1px;
    text-align: center;
    position: relative;
    display: table;
    margin-left: auto;
    margin-right: auto;
    padding-bottom: 10px;
    color: #0b2940
}

.description-box h2::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 74px;
    height: 4px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--blue), var(--red));
    transform: translateX(-50%)
}

.blog-article-card {
    font-size: clamp(24px, 3vw, 34px);
    letter-spacing: -1px;
    text-align: left;
    position: relative;
    display: table;
    margin-left: auto;
    margin-right: auto;
    padding-bottom: 10px;
    color: #0b2940
}
/* Główny kontener wpisu */
/* Główny kontener wpisu */
.blog-article-card {
    display: flex;
    align-items: flex-start; /* Do samej góry */
    gap: 20px;
    width: 80%;
    margin: 20px auto 0 auto;
}

/* Obrazek bez żadnych dodatkowych odstępów */
.blog-article-card img {
    width: 20%;
    max-width: 300px;
    height: auto;
    border-radius: 10px;
    flex-shrink: 0;
    margin: 0;
    padding: 0;
    display: block; /* Usuwa dolną przestrzeń inline obrazka */
}

/* Kontener na tekst */
.blog-article-snippet {
    display: flex;
    flex-direction: column;
}

/* Tytuł - klucz do idealnego wyrównania góry tekstu do obrazka */
.blog-article-snippet h2 {
    margin: 0 0 8px 0;
    font-size: clamp(20px, 2.5vw, 28px);
    letter-spacing: -1px;
    line-height: 1.1;        /* Zmniejszamy wysokość linii, aby tekst wyciągnąć wyżej */
    margin-top: -2px;        /* Kompensacja światła czcionki (pustego miejsca nad literami) */
}

/* Opis pod tytułem */
.blog-article-snippet p {
    margin: 0;
    font-size: 18px;
    color: #303030;
    line-height: 1.4;
}

.blog-article-snippet a {
 all: unset;
}

/* Zmniejszamy lub całkowicie usuwamy górny odstęp wewnątrz karty */
.blog-article-card {
    padding-top: 20px !important;    /* Dopasuj tę wartość (np. 15px lub 20px), żeby podnieść wszystko do góry */
    align-items: flex-start !important;
}

/* Wyrównujemy obrazek do samej góry bloku */
.blog-article-card img {
    margin-top: 0 !important;
    align-self: flex-start !important;
}

/* Podciągamy tekst/tytuł w górę, kasując margines nad nagłówkiem */
.blog-article-snippet {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

.blog-article-snippet h2 {
    margin-top: 0 !important;
    padding-top: 0 !important;
    line-height: 1.1 !important;
}

@media (max-width: 768px) {
    .blog-article-card {
        flex-direction: column !important; /* Przełącza układ z poziomego na pionowy */
        align-items: stretch !important;   /* Rozciąga elementy na pełną szerokość */
        width: 92% !important;             /* Poszerza kartę na ekranie telefonu */
        padding: 16px !important;          /* Lepsze proporcje marginesów wewnętrznych */
        gap: 16px !important;              /* Odstęp między zdjęciem a tekstem */
    }

    .blog-article-card img {
        width: 100% !important;            /* Zdjęcie na całą szerokość karty */
        max-width: 100% !important;
        height: 180px !important;          /* Stała, ładna wysokość zdjęcia */
        object-fit: cover !important;      /* Kadruje zdjęcie bez rozciągania proporcji */
        margin: 0 !important;
    }

    .blog-article-snippet {
        width: 100% !important;
    }

    .blog-article-snippet h2 {
        font-size: 20px !important;        /* Czysty, czytelny rozmiar tytułu */
        margin-bottom: 10px !important;
        line-height: 1.3 !important;
    }

    .blog-article-snippet p {
        font-size: 15px !important;        /* Wygodny w czytaniu rozmiar opisu */
        line-height: 1.5 !important;
    }
}

.article-photo-link a {
      all: unset !important;
  cursor: pointer;
}

.description-box.blog {
width: 100%;
}

/* Reset stylów dla linku zawierającego obrazek */
.image-link {
    display: block !important;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
    background: none !important;
    flex-shrink: 0 !important;
}

/* Wyłączenie linii podrzuconej przez pseudo-element ::after */
.image-link::after {
    display: none !important;
    content: none !important;
}

/* Obrazek wewnątrz linku ma zajmować 100% szerokości tego linku */
.image-link img {
    width: 100% !important;
    height: auto !important;
    display: block !important;
}

.ordered-list li::before {
    display: none !important;
    margin: 0 !important;
}

.ordered-list li {
    margin: 0;
    line-height: 1.5;
    font-size: 1.1rem;
}

.blog-article-image {
border-radius: 10px !important;
width: 80%;
margin: 0 auto;
transition: transform 0.3s ease-in-out;
}

.blog-article-image:hover {
transform: scale(1.02);
}

.description-box.blog p {
    text-align: left !important;
}

.description-box.blog h2 {
    scroll-margin-top: 100px;
}

.blog-title-photo p {
color: rgb(77, 76, 76);
font-size: small;
margin-top: 0;
margin-left: 10%;
}

.blog-title-photo {
    margin-bottom: 20px;
}

@media (max-width: 768px) {
    .blog-article-image {
width: 100%;
}
}

.description-box.blog select{
width: 100%;
  border: 2px solid transparent;
  border-radius: 16px;
  background: 
    linear-gradient(#ffffff, #ffffff) padding-box, 
    linear-gradient(to right, #0f73b7, #d91f28) border-box;
padding: 16px 18px;
background-color: rgb(221, 220, 220);
margin: 10px 0 15px 0;
}

.description-box.blog input[type="number"]{
background-color: rgb(221, 220, 220);
  border: 2px solid transparent;
  border-radius: 16px;
  background: 
    linear-gradient(#ffffff, #ffffff) padding-box, 
    linear-gradient(to right, #0f73b7, #d91f28) border-box;
    margin: 10px 0 15px 0;
}

.gradient-underline {
  position: relative;
  display: inline-block;
  padding-bottom: 4px; /* Space for the line */
}

.gradient-underline::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px; /* Thickness of the line */
  background: linear-gradient(to right, #0f73b7, #d91f28); /* Your gradient colors */
}

.oblicz {
    padding: 20px;
  border: 2px solid transparent;
  border-radius: 28px;
  background: 
      linear-gradient(to right, #0f73b7, #d91f28) padding-box, 
    linear-gradient(#ffffff, #ffffff) border-box;

width: 20%;
font-size: x-large;
display: block;
color: white;
}

.oblicz:hover {
    color: black;
    background:

        linear-gradient(#ffffff, #ffffff) padding-box, 
    linear-gradient(to right, #0f73b7, #d91f28) border-box;
}

@media (max-width: 768px) {
    .oblicz {
width: 50%;
}
}
math.equation {
    display: block !important;
    max-width: max-content;
    margin-left: auto !important;
    margin-right: auto !important;
    text-align: center !important;
    font-size: larger;
}

@media (max-width: 500px) {
    math.equation {
        font-size: 0.5em;
    }

    .tabela-zapotrzebowania {
        overflow-x: auto;
    }
    
    .tabela-zapotrzebowania td, th {
        padding: 0px !important;
        font-size: 1em !important;
    }
}

@media (min-width: 501px) and (max-width: 768px) {
    math.equation {
        font-size: 0.69em;
    }
}

@media (min-width: 769px) and (max-width: 880px) {
    math.equation {
        font-size: 0.9em;
    }
}

.kalkulator-informacja p {
    color: gray !important;
    font-size: small !important;
}

.kalkulator-informacja b {
    font-size: small;
}

.pellet-euroclas-zamow {
    width: 50%;
    margin-left: 20px;
    background-color: rgba(255, 232, 28, 0.3);
    border-radius: 16px;
    padding: 20px;
    display: none;
    font-size: 1.2em;
}

@media (max-width: 768px) {
    .pellet-euroclas-zamow {
        width: 100%;
        margin-left: 0;
        font-size: 1em;
        margin-bottom: 10px;
    }
}

.tabela-zapotrzebowania {
    width: 100%;
    border: solid black 1px;
    border-collapse: collapse;
    text-align: center;
    margin-bottom: 20px;
}

.tabela-zapotrzebowania td, th {
    border: solid black 2px;
    padding: 5px;
    font-size: 1.2em;
}

/*Important:*/
.link-spanner{
  position:absolute; 
  width:100%;
  height:100%;
  top:0;
  left: 0;
  z-index: 1;

  /* edit: fixes overlap error in IE7/8, 
     make sure you have an empty gif 
  background-image: url('empty.gif');*/
}




.inputy { 
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    justify-content: center;
    margin: 0 auto;
    gap: 0px 5%;
    margin-bottom: 15px;
}

.form-group {
    display: flex;
    flex-direction: column;
    width: 45%;

}