:root {
    --primary: #b00020;
    --primary-dark: #850018;
    --primary-light: #ff6f86;
    --dark: #202328;
    --dark-2: #2d3137;
    --light: #f4f5f6;
    --text: #24272b;
    --muted: #646a72;
    --border: #dfe2e5;
    --white: #fff;
    --radius: 12px;
    --shadow: 0 18px 50px rgba(22, 25, 29, .12);
    --max: 1240px
}

* {
    box-sizing: border-box
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 88px
}

body {
    margin: 0;
    color: var(--text);
    font-family: Inter, "Segoe UI", Arial, sans-serif;
    line-height: 1.65;
    background: #fff
}

img {
    max-width: 100%;
    display: block
}

a {
    color: inherit;
    text-decoration: none
}

button,
summary {
    font: inherit
}

.container {
    width: min(var(--max), calc(100% - 40px));
    margin: auto
}

.skip {
    position: fixed;
    left: 12px;
    top: -60px;
    z-index: 9999;
    background: #fff;
    padding: 10px 14px
}

.skip:focus {
    top: 12px
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0)
}

:focus-visible {
    outline: 3px solid #ff5574;
    outline-offset: 3px
}

.site-header {
    height: 78px;
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(32, 35, 40, .97);
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    transition: .25s
}

.site-header.scrolled {
    box-shadow: 0 10px 25px rgba(0, 0, 0, .2)
}

.nav-wrap {
    height: 100%;
    display: flex;
    align-items: center;
    gap: 32px
}

.brand img {
    width: 166px;
    height: auto
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 26px;
    margin-left: auto
}

.main-nav a {
    color: #fff;
    font-size: .91rem;
    font-weight: 600;
    position: relative
}

.main-nav a:after {
    content: "";
    position: absolute;
    left: 0;
    right: 100%;
    bottom: -7px;
    height: 2px;
    background: var(--primary);
    transition: .2s
}

.main-nav a:hover:after {
    right: 0
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 10px
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 6px;
    background: var(--primary);
    color: #fff;
    font-weight: 750;
    padding: 13px 20px;
    line-height: 1.2;
    transition: .2s
}

.btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px)
}

.btn-small {
    font-size: .78rem;
    padding: 10px 13px
}

.languages {
    position: relative;
    color: #fff
}

.languages summary {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 7px;
    cursor: pointer;
    background: #373b41;
    border-radius: 6px;
    padding: 9px 10px;
    font-weight: 700;
    font-size: .78rem
}

.languages summary::-webkit-details-marker {
    display: none
}

.language-menu {
    position: absolute;
    right: 0;
    top: calc(100% + 10px);
    width: 270px;
    max-height: min(62vh, 510px);
    overflow: auto;
    background: #fff;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    border-radius: 10px;
    padding: 8px;
    color: var(--text);
    display: grid;
    grid-template-columns: 1fr
}

.language-menu a {
    display: grid;
    grid-template-columns: 24px 1fr auto;
    align-items: center;
    gap: 9px;
    padding: 8px 10px;
    border-radius: 6px;
    font-size: .85rem
}

.language-menu a:hover,
.language-menu a[aria-current] {
    background: #f4f5f6
}

.language-menu img {
    width: 24px;
    height: 18px;
    object-fit: cover
}

.language-menu b {
    font-size: .7rem;
    color: var(--muted)
}

.nav-toggle {
    display: none
}

.hero {
    height: min(810px, calc(100vh - 35px));
    min-height: 650px;
    position: relative;
    display: grid;
    align-items: center;
    color: #fff;
    background: var(--dark);
    overflow: hidden
}

.hero-bg,
.hero-shade {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover
}

.hero-bg {
    filter: saturate(.65)
}

.hero-shade {
    background-image: linear-gradient(90deg, rgba(20, 22, 25, .94) 0%, rgba(20, 22, 25, .76) 46%, rgba(20, 22, 25, .25) 100%)
}

.hero-content {
    position: relative;
    z-index: 1
}

.eyebrow,
.section-kicker {
    letter-spacing: .13em;
    font-size: .76rem;
    font-weight: 800;
    color: var(--primary);
    margin: 0 0 16px
}

.eyebrow {
    color: #fff
}

.eyebrow span {
    color: var(--primary-light);
    padding: 0 6px
}

.hero h1 {
    font-size: clamp(2.7rem, 6vw, 5.7rem);
    line-height: .98;
    max-width: 920px;
    margin: 0 0 28px;
    letter-spacing: -.045em
}

.lead {
    font-size: clamp(1.05rem, 1.7vw, 1.28rem);
    max-width: 700px;
    color: #e3e5e8
}

.hero-buttons {
    display: flex;
    gap: 12px;
    margin: 34px 0
}

.btn-ghost {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, .7)
}

.btn-ghost:hover {
    background: #fff;
    color: var(--dark)
}

.process {
    font-size: .78rem;
    font-weight: 750;
    letter-spacing: .08em;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 60px
}

.process i {
    width: 4px;
    height: 4px;
    background: var(--primary);
    border-radius: 50%
}

.section {
    padding: 110px 0
}

.section h2 {
    font-size: clamp(2rem, 4vw, 3.5rem);
    line-height: 1.08;
    letter-spacing: -.035em;
    margin: 0 0 24px
}

.section p {
    color: var(--muted)
}

.about-grid {
    display: grid;
    grid-template-columns: 1.04fr .96fr;
    gap: 8vw;
    align-items: center
}

.about-visual {
    position: relative
}

.about-visual>img {
    width: 100%;
    height: 570px;
    object-fit: cover
}

.visual-label {
    position: absolute;
    right: -35px;
    bottom: 30px;
    background: var(--dark);
    color: #fff;
    padding: 22px 25px;
    border-left: 4px solid var(--primary);
    display: grid
}

.visual-label span {
    font-size: .8rem;
    color: #c9cdd2
}

.feature-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin: 30px 0
}

.feature-list span {
    padding: 13px 12px 13px 32px;
    background: var(--light);
    font-size: .88rem;
    font-weight: 700;
    position: relative
}

.feature-list span:before {
    content: "";
    position: absolute;
    left: 13px;
    top: 19px;
    width: 8px;
    height: 8px;
    background: var(--primary)
}

.text-link {
    display: inline-flex;
    gap: 10px;
    align-items: center;
    font-weight: 750;
    border-bottom: 1px solid var(--primary);
    padding-bottom: 4px
}

.text-link b {
    color: var(--primary)
}

.section-muted {
    background: var(--light)
}

.section-heading {
    display: flex;
    justify-content: space-between;
    align-items: end;
    margin-bottom: 40px
}

.section-heading h2,
.section-heading p {
    margin-bottom: 6px
}

.category-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px
}

.category {
    display: grid;
    grid-template-columns: 42% 1fr;
    background: #fff;
    border: 1px solid #e6e8ea;
    min-height: 320px;
    overflow: hidden
}

.category>img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    image-rendering: auto
}

.category>div {
    padding: 30px
}

.category small,
.product-card span {
    color: var(--primary);
    font-size: .68rem;
    letter-spacing: .1em;
    font-weight: 800
}

.category h3 {
    font-size: 1.55rem;
    line-height: 1.15;
    margin: 12px 0
}

.category p {
    font-size: .9rem
}

.category a {
    font-weight: 750;
    font-size: .86rem
}

.category a:after {
    content: " →";
    color: var(--primary)
}

.products-title {
    font-size: 1.45rem;
    margin: 65px 0 20px
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px
}

.product-card {
    background: #fff;
    border: 1px solid var(--border);
    padding-bottom: 22px;
    transition: .25s
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow)
}

.product-card img {
    width: 100%;
    aspect-ratio: 1.65;
    object-fit: cover;
    margin-bottom: 20px
}

.product-card span,
.product-card strong,
.product-card em {
    display: block;
    margin-inline: 20px
}

.product-card strong {
    line-height: 1.3;
    margin-top: 7px;
    min-height: 46px
}

.product-card em {
    font-size: .78rem;
    font-style: normal;
    margin-top: 18px;
    color: var(--muted)
}

.industry-grid {
    display: grid;
    grid-template-columns: 1.25fr 1fr 1fr;
    grid-template-rows: 300px 300px;
    gap: 16px;
    margin-top: 45px
}

.industry {
    position: relative;
    overflow: hidden;
    color: #fff;
    background: var(--dark)
}

.industry.large {
    grid-row: 1/3
}

.industry img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: .63;
    transition: .4s
}

.industry:after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(18, 20, 22, .85), transparent 70%)
}

.industry>div {
    position: absolute;
    z-index: 2;
    left: 24px;
    right: 24px;
    bottom: 22px
}

.industry b {
    color: var(--primary-light)
}

.industry h3 {
    font-size: 1.35rem;
    margin: 4px 0
}

.industry p {
    color: #fff;
    margin: 0;
    font-size: .84rem
}

.industry:hover img {
    transform: scale(1.04);
    opacity: .75
}

.dark {
    background: var(--dark);
    color: #fff
}

.dark .section-kicker {
    color: var(--primary-light)
}

.dark-heading {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 9vw;
    align-items: end
}

.dark-heading p {
    color: #b7bcc3
}

.advantages {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    margin-top: 65px;
    border-top: 1px solid #44484f
}

.advantages article {
    padding: 34px 25px 20px 0;
    border-right: 1px solid #44484f
}

.advantages article+article {
    padding-left: 25px
}

.advantages b {
    color: var(--primary-light);
    font-size: .8rem
}

.advantages h3 {
    font-size: 1.15rem;
    min-height: 52px
}

.advantages p {
    font-size: .86rem;
    color: #aeb3ba
}

.certs {
    display: flex;
    gap: 12px;
    margin-top: 55px
}

.certs span {
    display: grid;
    padding: 15px 20px;
    border: 1px solid #4c5159;
    font-weight: 800
}

.certs small {
    font-weight: 400;
    color: #aeb3ba
}

.cta {
    padding: 75px 0;
    background: var(--primary);
    color: #fff
}

.cta .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px
}

.cta .section-kicker {
    color: #fff
}

.cta h2 {
    font-size: clamp(2rem, 4vw, 3.3rem);
    line-height: 1.08;
    max-width: 800px;
    margin: 0
}

.cta p {
    max-width: 740px
}

.btn-light {
    background: #fff;
    color: var(--dark);
    min-width: 235px
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    gap: 60px;
    margin-top: 40px
}

.contact-data h3 {
    font-size: 1.4rem
}

.contact-data dl {
    margin: 30px 0
}

.contact-data dl div {
    display: grid;
    grid-template-columns: 100px 1fr;
    padding: 12px 0;
    border-top: 1px solid var(--border)
}

.contact-data dt {
    font-size: .78rem;
    color: var(--muted);
    text-transform: uppercase
}

.contact-data dd {
    margin: 0;
    font-weight: 700
}

.contact-card {
    background: var(--light);
    padding: 50px;
    border-top: 5px solid var(--primary)
}

.contact-card>span {
    color: var(--primary);
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .12em
}

.contact-card h3 {
    font-size: 2rem;
    line-height: 1.1
}

.contact-card>div {
    display: flex;
    gap: 10px;
    margin-top: 28px
}

.btn-dark {
    background: var(--dark)
}

footer {
    background: #181a1e;
    color: #c6cad0;
    padding: 70px 0 25px
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.7fr 1fr 1.2fr 1.2fr;
    gap: 50px
}

.footer-grid>div {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 9px
}

.footer-grid img {
    margin-bottom: 14px
}

.footer-grid p {
    font-size: .85rem
}

.footer-grid h3 {
    color: #fff;
    font-size: .9rem;
    margin: 0 0 12px
}

.footer-grid a {
    font-size: .85rem
}

.footer-grid a:hover {
    color: #fff
}

.footer-bottom {
    border-top: 1px solid #35383e;
    margin-top: 50px;
    padding-top: 22px;
    display: flex;
    justify-content: space-between;
    gap: 25px;
    font-size: .75rem
}

.footer-bottom p {
    margin: 0;
    max-width: 850px
}

.footer-bottom p a {
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-thickness: 1px
}

.footer-bottom a {
    color: #fff
}

.reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .6s, transform .6s
}

.reveal.visible {
    opacity: 1;
    transform: none
}

@media(max-width:1050px) {
    .main-nav {
        display: none
    }

    .nav-toggle {
        display: grid;
        margin-left: auto;
        background: transparent;
        border: 0;
        gap: 4px;
        padding: 8px
    }

    .nav-toggle span:not(.sr-only) {
        display: block;
        width: 24px;
        height: 2px;
        background: #fff
    }

    .main-nav.open {
        display: flex;
        position: absolute;
        top: 78px;
        left: 0;
        right: 0;
        background: var(--dark);
        padding: 22px;
        flex-direction: column;
        align-items: flex-start
    }

    .nav-actions .btn-small {
        display: none
    }

    .category {
        grid-template-columns: 1fr
    }

    .category>img {
        height: 210px
    }

    .product-grid {
        grid-template-columns: 1fr 1fr
    }

    .industry-grid {
        grid-template-columns: 1fr 1fr
    }

    .industry.large {
        grid-row: auto
    }

    .advantages {
        grid-template-columns: 1fr 1fr
    }

    .footer-grid {
        grid-template-columns: 1.5fr 1fr 1fr
    }

    .footer-grid>div:last-child {
        grid-column: 1/-1
    }
}

@media(max-width:720px) {
    .container {
        width: min(100% - 28px, var(--max))
    }

    .site-header {
        height: 68px
    }

    .brand img {
        width: 135px
    }

    .main-nav.open {
        top: 68px
    }

    .hero {
        min-height: 660px
    }

    .hero-shade {
        background: rgba(20, 22, 25, .78)
    }

    .hero h1 {
        font-size: 2.75rem
    }

    .process {
        flex-wrap: wrap
    }

    .section {
        padding: 75px 0
    }

    .about-grid,
    .dark-heading,
    .contact-grid {
        grid-template-columns: 1fr
    }

    .about-visual>img {
        height: 380px
    }

    .visual-label {
        right: 0
    }

    .feature-list,
    .category-grid,
    .industry-grid,
    .advantages,
    .footer-grid {
        grid-template-columns: 1fr
    }

    .category>img {
        height: 230px
    }

    .product-grid {
        grid-template-columns: 1fr
    }

    .industry-grid {
        grid-template-rows: none
    }

    .industry {
        height: 330px
    }

    .advantages article,
    .advantages article+article {
        padding: 24px 0;
        border-right: 0;
        border-bottom: 1px solid #44484f
    }

    .certs {
        flex-direction: column
    }

    .cta .container,
    .section-heading,
    .footer-bottom {
        align-items: flex-start;
        flex-direction: column
    }

    .contact-card {
        padding: 32px 24px
    }

    .contact-card>div {
        flex-direction: column
    }

    .footer-grid>div:last-child {
        grid-column: auto
    }

    .languages {
        position: static
    }

    .language-menu {
        position: fixed;
        left: 14px;
        right: 14px;
        top: 76px;
        width: auto;
        max-height: 70vh
    }

    .nav-wrap {
        gap: 12px
    }

    .nav-actions {
        margin-left: 0
    }

    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
        max-width: 290px
    }
}

@media(prefers-reduced-motion:reduce) {
    html {
        scroll-behavior: auto
    }

    *,
    *:before,
    *:after {
        animation: none !important;
        transition: none !important
    }

    .reveal {
        opacity: 1;
        transform: none
    }
}

/* Rozszerzony katalog i obrazy producenta */
.about-visual>img {
    height: 680px;
    object-position: center
}

.category {
    grid-template-columns: 150px 1fr;
    min-height: 280px
}

.category-icon {
    display: grid;
    place-items: center;
    background: #eceef0;
    padding: 28px
}

.category-icon img {
    width: 83px;
    height: 83px;
    object-fit: contain
}

.category>div:not(.category-icon) {
    padding: 30px
}

.catalog-heading {
    margin: 65px 0 22px
}

.catalog-heading .products-title {
    margin: 0 0 4px;
    font-size: 1.65rem
}

.catalog-heading p {
    margin: 0
}

.catalog-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px
}

.catalog-group {
    background: #fff;
    border: 1px solid var(--border);
    padding: 26px 22px;
    display: flex;
    flex-direction: column;
    align-items: flex-start
}

.catalog-group>img {
    width: 58px;
    height: 58px;
    object-fit: contain;
    margin-bottom: 15px
}

.catalog-group h3 {
    font-size: 1.15rem;
    line-height: 1.2;
    min-height: 45px;
    margin: 0 0 14px
}

.catalog-group a {
    width: 100%;
    padding: 8px 20px 8px 0;
    border-top: 1px solid #eceef0;
    font-size: .82rem;
    font-weight: 650;
    position: relative
}

.catalog-group a:after {
    content: '→';
    position: absolute;
    right: 0;
    color: var(--primary)
}

.catalog-group a:hover {
    color: var(--primary)
}

.catalog-group p {
    font-size: .8rem
}

.external-back {
    flex-wrap: wrap
}

.external-back small {
    width: 100%;
    font-size: .65rem;
    color: var(--muted);
    font-weight: 500
}

@media(max-width:1050px) {
    .catalog-grid {
        grid-template-columns: 1fr 1fr
    }
}

@media(max-width:720px) {
    .about-visual>img {
        height: 480px
    }

    .category {
        grid-template-columns: 105px 1fr
    }

    .category-icon {
        padding: 18px
    }

    .category-icon img {
        width: 68px;
        height: 68px
    }

    .category>div:not(.category-icon) {
        padding: 24px 20px
    }

    .catalog-grid {
        grid-template-columns: 1fr
    }
}


/* Galeria realizacji Magnetix */
.gallery-section {
    overflow: hidden
}

.gallery-heading {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 24px;
    margin-bottom: 34px
}

.gallery-heading h2 {
    margin-bottom: 12px
}

.gallery-heading p {
    max-width: 720px;
    margin: 0
}

.gallery-count {
    flex-shrink: 0;
    font-size: .75rem;
    font-weight: 800;
    letter-spacing: .12em;
    color: var(--primary)
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.gallery-item {
    display: block;
    position: relative;
    overflow: hidden;
    background: #e1e3e5;
    aspect-ratio: 4/3;
    cursor: zoom-in
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s ease
}

.gallery-item:hover img,
.gallery-item:focus-visible img {
    transform: scale(1.055)
}

.gallery-item-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(20, 22, 25, .72), transparent 60%);
    color: #fff;
    display: flex;
    align-items: flex-end;
    gap: 9px;
    padding: 18px;
    font-size: .82rem;
    font-weight: 750;
    opacity: 0;
    transition: opacity .25s
}

.gallery-item:hover .gallery-item-overlay,
.gallery-item:focus-visible .gallery-item-overlay {
    opacity: 1
}

.gallery-zoom {
    font-size: 1.55rem;
    line-height: 1
}

.gallery-credit {
    font-size: .79rem;
    margin: 24px 0 0
}

.gallery-lightbox {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    margin: 0;
    padding: 16px;
    border: 0;
    background: rgba(13, 15, 18, .96);
    color: #fff;
    overflow: auto
}

.gallery-lightbox::backdrop {
    background: rgba(13, 15, 18, .96)
}

.gallery-dialog-inner {
    width: min(1200px, 100%);
    min-height: 100%;
    margin: auto;
    display: flex;
    flex-direction: column;
    justify-content: center
}

.gallery-lightbox-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 0 10px
}

.gallery-lightbox-counter {
    font-size: .85rem;
    color: #cbd0d7;
    font-weight: 700
}

.gallery-close,
.gallery-arrow {
    appearance: none;
    border: 1px solid rgba(255, 255, 255, .22);
    background: rgba(32, 35, 40, .8);
    color: #fff;
    cursor: pointer;
    display: grid;
    place-items: center;
    transition: background .2s
}

.gallery-close:hover,
.gallery-arrow:hover {
    background: var(--primary)
}

.gallery-close {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 2rem;
    line-height: 1
}

.gallery-lightbox-stage {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 240px;
    flex: 1
}

.gallery-lightbox-image {
    display: block;
    max-width: 100%;
    max-height: calc(100dvh - 180px);
    width: auto;
    height: auto;
    object-fit: contain;
    box-shadow: 0 10px 45px rgba(0, 0, 0, .3)
}

.gallery-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    width: 48px;
    height: 56px;
    border-radius: 8px;
    font-size: 2.8rem;
    line-height: 1
}

.gallery-prev {
    left: 8px
}

.gallery-next {
    right: 8px
}

.gallery-lightbox-caption {
    color: #e0e2e5;
    text-align: center;
    max-width: 850px;
    margin: 18px auto 2px;
    font-size: .94rem
}

body.gallery-open {
    overflow: hidden
}

@media(max-width:1050px) {
    .gallery-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr))
    }
}

@media(max-width:720px) {
    .gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px
    }

    .gallery-heading {
        align-items: flex-start;
        flex-direction: column
    }

    .gallery-item-overlay {
        opacity: 1;
        padding: 10px;
        font-size: .7rem
    }

    .gallery-arrow {
        width: 38px;
        height: 46px;
        font-size: 2.2rem
    }

    .gallery-prev {
        left: 0
    }

    .gallery-next {
        right: 0
    }

    .gallery-lightbox {
        padding: 12px
    }

    .gallery-lightbox-image {
        max-height: calc(100dvh - 210px)
    }
}

@media(max-width:390px) {
    .gallery-grid {
        grid-template-columns: 1fr 1fr
    }

    .gallery-item-overlay span:last-child {
        display: none
    }
}

@media(prefers-reduced-motion:reduce) {

    .gallery-item img,
    .gallery-item-overlay {
        transition: none
    }
}

/* GALERIA MAGNETIX – RESPONSYWNY UKŁAD */

/* Komputer – 5 kolumn, 2 rzędy */
@media (min-width: 1051px) {
  .gallery-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 14px;
  }
}

/* Tablet – 3 kolumny */
@media (min-width: 721px) and (max-width: 1050px) {
  .gallery-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
  }
}

/* Telefon – 2 kolumny */
@media (max-width: 720px) {
  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
}

/* Efekt hover – Zobacz produkty */
.category a {
  display: inline-block;
  transform-origin: left center;
  transition: color 0.3s ease, transform 0.3s ease;
}

.category a:hover {
  color: var(--primary);
  transform: scale(1.08) translateX(3px);
}

/* Efekt również przy nawigacji klawiaturą */
.category a:focus-visible {
  color: var(--primary);
  transform: scale(1.08) translateX(3px);
}

/* Ograniczenie animacji dla osób preferujących mniej ruchu */
@media (prefers-reduced-motion: reduce) {
  .category a {
    transition: none;
  }

  .category a:hover,
  .category a:focus-visible {
    transform: none;
  }
}

/* Klikalne karty branż */
.industry {
  display: block;
  cursor: pointer;
  transition: box-shadow 0.3s ease;
}

.industry:hover,
.industry:focus-visible {
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

/* Podświetlenie nazwy branży */
.industry h3 {
  transition: color 0.3s ease;
}

.industry:hover h3,
.industry:focus-visible h3 {
  color: var(--primary-light);
}

/* Obsługa ograniczonych animacji */
@media (prefers-reduced-motion: reduce) {
  .industry,
  .industry h3 {
    transition: none;
  }
}

/* Polityka prywatności */
.privacy-main {
    background: var(--light)
}

.privacy-content {
    max-width: 860px;
    padding: 90px 0 110px
}

.privacy-content h1 {
    margin: 0 0 28px;
    font-size: clamp(2.4rem, 5vw, 4.4rem);
    line-height: 1;
    letter-spacing: -.035em
}

.privacy-content h2 {
    margin: 40px 0 12px;
    font-size: 1.45rem;
    line-height: 1.2
}

.privacy-content p,
.privacy-content li {
    color: var(--muted)
}

.privacy-content a {
    color: var(--primary);
    text-decoration: underline;
    text-underline-offset: 3px
}

.privacy-updated {
    font-weight: 700
}