* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --color-blue: #1B4E9B;
    --color-blue-dark: #0E3A7E;
    --color-blue-light: #4A7BC4;
    --color-yellow: #FFD000;
    --color-yellow-dark: #F4B400;
    --color-white: #FFFFFF;
    --color-text: #2C3E50;
    --color-text-light: #5A6B7D;
}

body {
    font-family: 'Montserrat', 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    background: var(--color-white);
    color: var(--color-text);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

.top-bar {
    background: var(--color-blue);
    color: var(--color-white);
    padding: 18px 0;
    font-size: 16px;
}

.top-bar a {
    color: var(--color-white);
    text-decoration: none;
    transition: color 0.2s ease;
}

.top-bar a:hover {
    color: var(--color-yellow);
}

.top-bar-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 28px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.top-bar-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.top-icon {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    color: currentColor;
    display: inline-block;
}

.header {
    background: var(--color-white);
    position: relative;
    z-index: 10;
}

.header-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 28px 0 20px 28px;
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    gap: 40px;
    flex-wrap: wrap;
}

.logo {
    flex-shrink: 0;
    display: flex;
    align-items: flex-start;
    padding-top: 8px;
}

.logo-img {
    height: 160px;
    width: auto;
    display: block;
}

.header-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: space-between;
    min-width: 0;
}

.tagline {
    font-family: 'Montserrat', sans-serif;
    font-size: 22px;
    letter-spacing: 4px;
    color: var(--color-text-light);
    font-weight: 500;
    text-align: center;
    margin: 0;
    width: 720px;
    max-width: 100%;
    margin-right: min(0px, 700px - 50vw);
}

.tagline span {
    font-weight: 300;
}

.main-nav {
    display: flex;
    gap: 4px;
    margin-right: min(0px, 700px - 50vw);
    margin-bottom: -20px;
}

.nav-btn {
    background: var(--color-blue);
    color: var(--color-white);
    border: none;
    border-radius: 8px 0 0 0;
    padding: 18px 50px;
    font-size: 22px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.25s ease, color 0.25s ease;
    font-family: 'Montserrat', sans-serif;
    letter-spacing: 0.5px;
    min-width: 0;
    text-align: center;
}

.nav-btn:hover {
    background: var(--color-blue-dark);
}

.nav-btn.active {
    background: var(--color-yellow);
    color: var(--color-blue);
}

.hero {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: var(--color-blue);
    height: 680px;
}

.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 60%;
    z-index: 1;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: left center;
    display: block;
}

.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        rgba(27, 78, 155, 0) 0%,
        rgba(27, 78, 155, 0) 25%,
        rgba(27, 78, 155, 0.6) 40%,
        rgba(27, 78, 155, 1) 55%,
        rgba(27, 78, 155, 1) 100%
    );
    z-index: 2;
    pointer-events: none;
}

.hero-statements {
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 18px;
    z-index: 4;
    padding-right: 0;
    width: 50vw;
}

.statement {
    width: 100%;
    color: var(--color-white);
    padding: 18px 56px 18px 56px;
    font-family: 'Montserrat', sans-serif;
    font-size: 28px;
    font-weight: 600;
    letter-spacing: 0.3px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.15);
    transform: translateX(120%);
    opacity: 0;
    border-radius: 10px 0 0 0;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    white-space: nowrap;
}

.statement-1 {
    background: rgba(255, 255, 255, 0.10);
    border-top: 1px solid rgba(255,255,255,0.35);
    border-left: 1px solid rgba(255,255,255,0.35);
}

.statement-2 {
    background: rgba(255, 255, 255, 0.30);
    border-top: 1px solid rgba(255,255,255,0.45);
    border-left: 1px solid rgba(255,255,255,0.45);
}

.statement-3 {
    background: rgba(255, 255, 255, 0.85);
    color: var(--color-blue);
    border-top: 1px solid rgba(255,255,255,0.6);
    border-left: 1px solid rgba(255,255,255,0.6);
}

.statement.animate-in {
    animation: slideInRight 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.statement-1.animate-in { animation-delay: 0.3s; }
.statement-2.animate-in { animation-delay: 0.9s; }
.statement-3.animate-in { animation-delay: 1.5s; }

@keyframes slideInRight {
    0% {
        transform: translateX(120%);
        opacity: 0;
    }
    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

.yellow-bar {
    height: 54px;
    background: var(--color-yellow);
    width: 100%;
}

.content {
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    padding: 60px 28px;
    min-height: 400px;
    flex: 1;
}

.tab-content {
    display: none;
    animation: fadeIn 0.4s ease;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.section-title {
    text-align: center;
    font-family: 'Montserrat', sans-serif;
    font-size: 56px;
    font-weight: 500;
    color: var(--color-blue);
    margin-bottom: 44px;
    letter-spacing: 0.5px;
}

#realizacje.active {
    position: relative;
    margin: -60px 0;
    padding: 80px 0 90px;
}

#realizacje.active::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100vw;
    min-width: 100%;
    background: linear-gradient(
        45deg,
        var(--color-blue) 0%,
        var(--color-blue) 30%,
        #3A6DB5 45%,
        #B8D4EE 55%,
        #FFFFFF 75%,
        #FFFFFF 100%
    );
    z-index: -1;
}

#oferta.active {
    position: relative;
    margin: -60px 0;
    padding: 80px 0 90px;
}

#oferta.active::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100vw;
    background: linear-gradient(
        180deg,
        #FFFFFF 0%,
        #D9E8F5 2%,
        #8FB1D8 5%,
        #4A7BC4 9%,
        var(--color-blue) 13%,
        var(--color-blue) 100%
    );
    z-index: -1;
}

.contact-box {
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 0;
    display: flex;
    flex-direction: column;
    gap: 28px;
    font-size: 20px;
}

.contact-row {
    display: flex;
    align-items: center;
    gap: 16px;
}

.contact-icon {
    color: #000000;
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    display: inline-block;
}

.contact-link {
    display: block;
    color: var(--color-text);
    text-decoration: none;
    font-weight: 700;
    transition: color 0.2s ease, transform 0.2s ease;
    position: relative;
}

.contact-link:hover {
    color: var(--color-blue);
    transform: translateX(2px);
}

.contact-link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0;
    height: 2px;
    background: var(--color-yellow);
    transition: width 0.3s ease;
}

.contact-link:hover::after {
    width: 100%;
}

.contact-row-split {
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 20px;
}

.contact-row-left {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.contact-row-right {
    text-align: right;
    line-height: 1.8;
    color: var(--color-text);
}

.contact-row-right strong {
    color: var(--color-text);
    font-weight: 700;
}

.contact-map {
    margin-top: 18px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(27, 78, 155, 0.15);
    border: 1px solid rgba(27, 78, 155, 0.1);
}

.contact-map iframe {
    display: block;
    width: 100%;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
    width: 92vw;
    max-width: 1700px;
    margin-left: 50%;
    transform: translateX(-50%);
    position: relative;
}

.gallery-item {
    aspect-ratio: 4 / 3;
    background: linear-gradient(135deg, #B8C9DE 0%, #8FA8C2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
    border-radius: 4px;
    transition: transform 0.3s ease, box-shadow 0.3s ease, z-index 0s 0.3s;
    cursor: pointer;
    overflow: hidden;
    position: relative;
}

.gallery-item-extra {
    display: none;
}

.gallery.expanded .gallery-item-extra {
    display: flex;
    animation: galleryItemReveal 0.5s cubic-bezier(0.16, 1, 0.3, 1) backwards;
}

.gallery.expanded .gallery-item-extra:nth-child(13) { animation-delay: 0.00s; }
.gallery.expanded .gallery-item-extra:nth-child(14) { animation-delay: 0.04s; }
.gallery.expanded .gallery-item-extra:nth-child(15) { animation-delay: 0.08s; }
.gallery.expanded .gallery-item-extra:nth-child(16) { animation-delay: 0.12s; }
.gallery.expanded .gallery-item-extra:nth-child(17) { animation-delay: 0.16s; }
.gallery.expanded .gallery-item-extra:nth-child(18) { animation-delay: 0.20s; }
.gallery.expanded .gallery-item-extra:nth-child(19) { animation-delay: 0.24s; }
.gallery.expanded .gallery-item-extra:nth-child(20) { animation-delay: 0.28s; }
.gallery.expanded .gallery-item-extra:nth-child(21) { animation-delay: 0.32s; }
.gallery.expanded .gallery-item-extra:nth-child(22) { animation-delay: 0.36s; }
.gallery.expanded .gallery-item-extra:nth-child(23) { animation-delay: 0.40s; }
.gallery.expanded .gallery-item-extra:nth-child(24) { animation-delay: 0.44s; }
.gallery.expanded .gallery-item-extra:nth-child(25) { animation-delay: 0.48s; }
.gallery.expanded .gallery-item-extra:nth-child(26) { animation-delay: 0.52s; }
.gallery.expanded .gallery-item-extra:nth-child(27) { animation-delay: 0.56s; }
.gallery.expanded .gallery-item-extra:nth-child(28) { animation-delay: 0.60s; }
.gallery.expanded .gallery-item-extra:nth-child(29) { animation-delay: 0.64s; }
.gallery.expanded .gallery-item-extra:nth-child(30) { animation-delay: 0.68s; }
.gallery.expanded .gallery-item-extra:nth-child(31) { animation-delay: 0.72s; }
.gallery.expanded .gallery-item-extra:nth-child(32) { animation-delay: 0.76s; }

@keyframes galleryItemReveal {
    from {
        opacity: 0;
        transform: translateY(24px) scale(0.96);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.gallery-controls {
    display: flex;
    justify-content: center;
    margin-top: 50px;
    width: 92vw;
    max-width: 1700px;
    margin-left: 50%;
    transform: translateX(-50%);
    position: relative;
}

.gallery-toggle {
    background: var(--color-white);
    color: var(--color-blue);
    border: 2px solid var(--color-white);
    border-radius: 8px;
    padding: 16px 40px;
    font-family: 'Montserrat', sans-serif;
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 0.5px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.gallery-toggle:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.22);
    background: var(--color-yellow);
}

.gallery-toggle:hover svg {
    transform: translateY(2px);
}

.gallery-toggle-less:hover svg {
    transform: translateY(-2px);
}

.gallery-toggle svg {
    transition: transform 0.25s ease;
}

.gallery-toggle[hidden] {
    display: none;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery-item::after {
    content: '';
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(27, 78, 155, 0.85) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23FFFFFF'><path d='M11.742 10.344a6.5 6.5 0 1 0-1.397 1.398h-.001q.044.06.098.115l3.85 3.85a1 1 0 0 0 1.415-1.414l-3.85-3.85a1 1 0 0 0-.115-.1zM12 6.5a5.5 5.5 0 1 1-11 0 5.5 5.5 0 0 1 11 0'/></svg>") center / 60% no-repeat;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    opacity: 0;
    transform: scale(0.5);
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 2;
    pointer-events: none;
}

.gallery-item:hover {
    transform: translateY(-4px) scale(1.08);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
    z-index: 5;
    transition: transform 0.3s ease, box-shadow 0.3s ease, z-index 0s;
}

.gallery-item:hover img {
    transform: scale(1.15);
}

.gallery-item:hover::after {
    opacity: 1;
    transform: scale(1);
}

.offer-block {
    display: grid;
    grid-template-columns: 1fr 480px;
    gap: 50px;
    margin-bottom: 50px;
    align-items: stretch;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0;
    transform: translateY(20px);
    animation: offerSlideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

#oferta.active .offer-block:nth-child(2) { animation-delay: 0.1s; }
#oferta.active .offer-block:nth-child(3) { animation-delay: 0.25s; }
#oferta.active .offer-block:nth-child(4) { animation-delay: 0.4s; }

@keyframes offerSlideUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.offer-heading {
    font-family: 'Montserrat', sans-serif;
    font-size: 48px;
    color: var(--color-white);
    font-weight: 500;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 22px;
    padding-bottom: 0;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.offer-icon {
    width: 84px;
    height: 84px;
    display: inline-block;
    flex-shrink: 0;
    filter: drop-shadow(0 3px 8px rgba(0,0,0,0.25));
}

.offer-list {
    list-style: none;
    padding-left: 10px;
}

.offer-list li {
    position: relative;
    padding: 12px 0 12px 28px;
    font-size: 24px;
    color: var(--color-white);
    font-weight: 500;
    text-shadow: 0 1px 3px rgba(0,0,0,0.1);
    line-height: 1.4;
}

.offer-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--color-white);
    font-weight: bold;
    font-size: 24px;
    line-height: 1;
    top: 7px;
}

.offer-image-placeholder {
    background: linear-gradient(135deg, #B8C9DE 0%, #8FA8C2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 0;
    position: relative;
    box-shadow: 4px 4px 14px rgba(0, 0, 0, 0.15);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    height: 100%;
    margin-right: min(0px, 600px - 50vw);
}

.offer-image-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.offer-image-placeholder::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        var(--color-blue) 0%,
        rgba(27, 78, 155, 0.9) 8%,
        rgba(27, 78, 155, 0.5) 18%,
        rgba(27, 78, 155, 0.2) 28%,
        rgba(27, 78, 155, 0) 40%
    );
    pointer-events: none;
    z-index: 1;
}

.offer-image-placeholder:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.25);
}

.firma-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: justify;
}

.firma-content p {
    margin-bottom: 20px;
    font-size: 17px;
    line-height: 1.8;
    color: var(--color-text);
}

.footer {
    background: var(--color-blue);
    color: var(--color-white);
    text-align: center;
    padding: 36px 20px;
    font-size: 15px;
    letter-spacing: 0.3px;
}

.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(10, 25, 50, 0.94);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.lightbox.open {
    display: flex;
    opacity: 1;
}

.lightbox-content {
    max-width: 92vw;
    max-height: 88vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    animation: lightboxZoomIn 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes lightboxZoomIn {
    from { opacity: 0; transform: scale(0.92); }
    to { opacity: 1; transform: scale(1); }
}

.lightbox-img {
    max-width: 100%;
    max-height: 82vh;
    object-fit: contain;
    border-radius: 6px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
    border: 4px solid var(--color-white);
}

.lightbox-counter {
    color: rgba(255, 255, 255, 0.85);
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    letter-spacing: 1.5px;
    font-weight: 500;
    background: rgba(0,0,0,0.4);
    padding: 6px 16px;
    border-radius: 20px;
}

.lightbox-close,
.lightbox-nav {
    position: absolute;
    background: rgba(255, 255, 255, 0.12);
    border: 1.5px solid rgba(255, 255, 255, 0.3);
    color: var(--color-white);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Montserrat', sans-serif;
    transition: background 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
    z-index: 1001;
}

.lightbox-close:hover,
.lightbox-nav:hover {
    background: var(--color-yellow);
    color: var(--color-blue);
    border-color: var(--color-yellow);
    transform: scale(1.08);
}

.lightbox-close {
    top: 24px;
    right: 24px;
    font-size: 32px;
    line-height: 1;
}

.lightbox-nav {
    top: 50%;
    transform: translateY(-50%);
    font-size: 22px;
}

.lightbox-nav:hover {
    transform: translateY(-50%) scale(1.08);
}

.lightbox-prev { left: 24px; }
.lightbox-next { right: 24px; }

@media (max-width: 900px) {
    .top-bar-inner {
        justify-content: center;
        text-align: center;
        font-size: 12px;
    }

    .header-inner {
        justify-content: center;
        gap: 20px;
        padding-bottom: 0;
    }

    .header-right {
        align-items: center;
        width: 100%;
        gap: 16px;
    }

    .logo-img {
        height: 110px;
    }

    .tagline {
        font-size: 14px;
        letter-spacing: 3px;
        text-align: center;
        margin-right: 0;
    }

    .main-nav {
        justify-content: center;
        flex-wrap: wrap;
        gap: 4px;
        width: 100%;
        margin-right: 0;
        margin-bottom: 0;
    }

    .nav-btn {
        flex: 1;
        min-width: 100px;
        padding: 10px 16px;
        font-size: 15px;
    }

    .hero {
        height: 280px;
    }

    .hero-image {
        width: 100%;
    }

    .hero-statements {
        right: 0;
        width: auto;
        max-width: 70%;
    }

    .statement {
        width: auto;
        font-size: 16px;
        padding: 10px 22px 10px 80px;
    }

    .gallery {
        grid-template-columns: repeat(3, 1fr);
    }

    .gallery-toggle {
        font-size: 16px;
        padding: 14px 32px;
    }

    .offer-block {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .offer-image-placeholder {
        max-width: 480px;
        margin: 0 auto;
        width: 100%;
        aspect-ratio: 4 / 3;
        min-height: 0;
    }

    .section-title {
        font-size: 36px;
    }
}

@media (max-width: 600px) {
    .top-bar {
        font-size: 11px;
    }

    .top-bar-inner {
        flex-direction: column;
        gap: 4px;
    }

    .header-inner {
        padding-bottom: 0;
    }

    .logo {
        padding-top: 0;
    }

    .logo-img {
        height: 85px;
    }

    .tagline {
        font-size: 12px;
        letter-spacing: 2px;
    }

    .main-nav {
        gap: 1px;
        padding: 0;
        margin-bottom: 0;
    }

    .nav-btn {
        padding: 9px 1px;
        font-size: clamp(6px, 2vw, 8px);
        min-width: 0;
        letter-spacing: -0.2px;
        flex: 1;
        white-space: nowrap;
        overflow: visible;
    }

    .hero {
        height: 240px;
    }

    .hero::after {
        background: linear-gradient(
            90deg,
            rgba(27, 78, 155, 0) 0%,
            rgba(27, 78, 155, 0.4) 20%,
            rgba(27, 78, 155, 0.9) 45%,
            rgba(27, 78, 155, 1) 75%
        );
    }

    .hero-statements {
        right: 0;
        max-width: 75%;
        gap: 8px;
    }

    .statement {
        font-size: 13px;
        padding: 8px 16px 8px 50px;
    }

    .gallery {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }

    .section-title {
        font-size: 30px;
        margin-bottom: 24px;
    }

    .offer-heading {
        font-size: 26px;
    }

    .offer-icon {
        width: 46px;
        height: 46px;
    }

    .offer-list li {
        font-size: 14px;
    }

    .contact-box {
        font-size: 14px;
    }

    .contact-row-split {
        flex-direction: column;
    }

    .contact-row-right {
        text-align: left;
        padding-left: 36px;
    }

    .firma-content p {
        font-size: 13px;
        text-align: left;
    }

    .contact-map iframe {
        height: 260px;
    }

    .content {
        padding: 30px 16px;
    }

    #realizacje.active,
    #oferta.active {
        margin: -30px 0;
        padding: 40px 0 50px;
    }

    .lightbox-close,
    .lightbox-nav {
        width: 42px;
        height: 42px;
        font-size: 18px;
    }

    .lightbox-close {
        top: 14px;
        right: 14px;
        font-size: 26px;
    }

    .lightbox-prev { left: 10px; }
    .lightbox-next { right: 10px; }

    .lightbox-img {
        max-height: 72vh;
    }
}

@media (max-width: 380px) {
    .nav-btn {
        padding: 7px 2px;
    }

    .statement {
        font-size: 12px;
        padding: 8px 12px 8px 40px;
    }

    .hero-statements {
        max-width: 80%;
    }
}

.nav-btn:focus-visible,
.contact-link:focus-visible,
.gallery-item:focus-visible,
.lightbox-close:focus-visible,
.lightbox-nav:focus-visible {
    outline: 3px solid var(--color-yellow);
    outline-offset: 3px;
}

.nav-btn:focus,
.contact-link:focus,
.gallery-item:focus,
.lightbox-close:focus,
.lightbox-nav:focus {
    outline: none;
}

@media (prefers-reduced-motion: reduce) {
    *:not(.statement),
    *:not(.statement)::before,
    *:not(.statement)::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .statement.animate-in {
        animation-duration: 0.7s !important;
    }
}

@media print {
    body {
        background: white !important;
        color: black !important;
    }
    .top-bar,
    .hero,
    .main-nav,
    .yellow-bar,
    .footer,
    .lightbox,
    .gallery,
    .offer-image-placeholder,
    .contact-map {
        display: none !important;
    }
    .tab-content {
        display: block !important;
        page-break-inside: avoid;
    }
    #realizacje.active::before,
    #oferta.active::before {
        display: none !important;
    }
    .header {
        box-shadow: none !important;
    }
    .section-title,
    .offer-heading {
        color: black !important;
    }
    .offer-list li,
    .offer-list li::before {
        color: black !important;
        text-shadow: none !important;
    }
    a {
        color: black !important;
        text-decoration: underline;
    }
    a[href^="tel:"]::after,
    a[href^="mailto:"]::after {
        content: " (" attr(href) ")";
        font-size: 0.9em;
    }
}