/* style.css */

/* Variables */
:root {
    --brand-red: #E30613;
    --brand-red-dark: #C20510;
    --brand-dark: #111827;
    --brand-light: #F9FAFB;
    --white: #ffffff;
    --gray-50: #F9FAFB;
    --gray-100: #F3F4F6;
    --gray-200: #E5E7EB;
    --gray-300: #D1D5DB;
    --gray-400: #9CA3AF;
    --gray-500: #6B7280;
    --gray-600: #4B5563;
    --gray-700: #374151;
    --gray-800: #1F2937;
    --gray-900: #111827;
    --green-100: #DCFCE7;
    --green-500: #22C55E;
    --green-600: #16A34A;
    --green-800: #166534;
    --green-900: #14532D;
    --red-50: #FEF2F2;
    --red-100: #FEE2E2;
    --red-500: #EF4444;
    --red-900: #7F1D1D;
    
    --font-sans: 'Inter', sans-serif;
    --font-heading: 'Sora', sans-serif;
    
    --radius-2xl: 1rem;
    --radius-3xl: 1.5rem;
    --radius-4xl: 2rem;
    
    --container-max-width: 1280px;
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--white);
    color: var(--brand-dark);
    font-family: var(--font-sans);
    line-height: 1.625;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
}

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

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

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

/* Layout */
.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 1rem;
}

/* Typography Utility */
.text-brand-red { color: var(--brand-red); }
.text-white { color: var(--white); }
.text-gray-400 { color: var(--gray-400); }
.text-gray-500 { color: var(--gray-500); }
.text-gray-600 { color: var(--gray-600); }
.text-gray-700 { color: var(--gray-700); }
.font-bold { font-weight: 700; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-extrabold { font-weight: 800; }
.uppercase { text-transform: uppercase; }
.tracking-wider { letter-spacing: 0.05em; }
.tracking-widest { letter-spacing: 0.1em; }
.tracking-tighter { letter-spacing: -0.05em; }
.leading-tight { line-height: 1.25; }
.text-sm { font-size: 0.875rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }
.text-2xl { font-size: 1.5rem; }
.text-3xl { font-size: 1.875rem; }
.text-4xl { font-size: 2.25rem; }

@media (min-width: 1024px) {
    .text-6xl { font-size: 3.75rem; }
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--gray-100);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
}

.nav-logo img {
    height: 2.5rem;
    width: auto;
}

.nav-links {
    display: none;
    align-items: center;
    gap: 2rem;
    font-weight: 500;
}

@media (min-width: 768px) {
    .nav-links {
        display: flex;
    }
}

.nav-link {
    transition: color 0.2s;
}

.nav-link:hover {
    color: var(--brand-red);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-phone {
    display: none;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    color: var(--brand-red);
}

@media (min-width: 640px) {
    .nav-phone {
        display: flex;
    }
}

.menu-toggle {
    display: block;
    padding: 0.5rem;
}

@media (min-width: 768px) {
    .menu-toggle {
        display: none;
    }
}

.mobile-menu {
    display: none;
    background-color: var(--white);
    border-bottom: 1px solid var(--gray-100);
    padding: 1.5rem 1rem;
}

.mobile-menu.active {
    display: block;
}

@media (min-width: 768px) {
    .mobile-menu.active {
        display: none;
    }
}

.mobile-menu a {
    display: block;
    font-size: 1.125rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

.mobile-menu .nav-phone-mobile {
    font-weight: 700;
    color: var(--brand-red);
}

/* Hero Section */
.hero-section {
    position: relative;
    padding-top: 8rem;
    padding-bottom: 5rem;
    overflow: hidden;
    background: radial-gradient(circle at 10% 20%, rgba(227, 6, 19, 0.05) 0%, rgba(255, 255, 255, 0) 50%);
}

@media (min-width: 1024px) {
    .hero-section {
        padding-top: 12rem;
        padding-bottom: 8rem;
    }
}

.hero-content {
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

@media (min-width: 1024px) {
    .hero-content {
        flex-direction: row;
        align-items: center;
    }
}

.hero-text {
    width: 100%;
}

@media (min-width: 1024px) {
    .hero-content .hero-text {
        width: 50%;
    }
}

.badge {
    display: inline-block;
    padding: 0.375rem 1rem;
    margin-bottom: 1.5rem;
    border-radius: 9999px;
    background-color: rgba(227, 6, 19, 0.1);
    color: var(--brand-red);
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 2.25rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

@media (min-width: 1024px) {
    .hero-title {
        font-size: 3.75rem;
    }
}

.hero-description {
    font-size: 1.25rem;
    color: var(--gray-600);
    margin-bottom: 2rem;
    max-width: 36rem;
}

.hero-features {
    display: grid;
    gap: 1rem;
    margin-bottom: 2.5rem;
    color: var(--gray-700);
}

@media (min-width: 640px) {
    .hero-features {
        grid-template-columns: repeat(2, 1fr);
    }
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.feature-icon {
    flex-shrink: 0;
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 9999px;
    background-color: var(--green-100);
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    background-color: var(--brand-red);
    color: var(--white);
    font-weight: 700;
    border-radius: 1.5rem;
    transition: all 0.3s;
    box-shadow: 0 10px 15px -3px rgba(227, 6, 19, 0.3);
}

.btn-primary:hover {
    background-color: var(--brand-red-dark);
    transform: translateY(-4px);
}

.hero-image-wrapper {
    width: 100%;
    position: relative;
}

@media (min-width: 1024px) {
    .hero-image-wrapper {
        width: 50%;
    }
}

.hero-image {
    border-radius: var(--radius-4xl);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    z-index: 10;
    position: relative;
    cursor: pointer;
}

.hero-stats {
    position: absolute;
    bottom: -1.5rem;
    left: -1.5rem;
    background-color: var(--white);
    padding: 1.5rem;
    border-radius: 1.5rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    z-index: 20;
    display: none;
}

@media (min-width: 640px) {
    .hero-stats {
        display: block;
    }
}

.hero-stats .stat-value {
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--brand-red);
    margin-bottom: 0.25rem;
}

.hero-stats .stat-label {
    color: var(--gray-500);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: -0.05em;
    font-size: 0.75rem;
}

/* Sections */
.section-padding {
    padding: 6rem 0;
}

.bg-brand-light {
    background-color: var(--brand-light);
}

.bg-brand-dark {
    background-color: var(--brand-dark);
}

.section-header {
    max-width: 48rem;
    margin: 0 auto 4rem;
    text-align: center;
}

.section-title {
    font-size: 1.875rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

@media (min-width: 1024px) {
    .section-title {
        font-size: 2.25rem;
    }
}

.section-description {
    font-size: 1.125rem;
    color: var(--gray-600);
}

/* Info Grid */
.info-grid {
    display: grid;
    gap: 3rem;
    align-items: center;
}

@media (min-width: 1024px) {
    .info-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.rounded-4xl { border-radius: var(--radius-4xl); }
.shadow-lg { box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1); }
.shadow-2xl { box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25); }

.feature-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.check-item {
    display: flex;
    gap: 1rem;
}

.check-icon {
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 9999px;
    background-color: var(--brand-red);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 0.25rem;
    font-size: 0.75rem;
}

.card {
    background-color: var(--white);
    padding: 2rem;
    border-radius: var(--radius-4xl);
    border: 1px solid var(--gray-100);
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

/* Comparison Section */
.comparison-grid {
    display: grid;
    gap: 2rem;
    max-width: 64rem;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .comparison-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.comp-card {
    padding: 2.5rem;
    border-radius: var(--radius-4xl);
    border-width: 1px;
    border-style: solid;
}

.comp-card-yes {
    background-color: #f0fdf4; /* green-50 */
    border-color: #dcfce7; /* green-100 */
}

.comp-card-no {
    background-color: #fef2f2; /* red-50 */
    border-color: #fee2e2; /* red-100 */
}

.comp-icon {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
}

.bg-green-500 { background-color: var(--green-500); }
.bg-red-500 { background-color: var(--red-500); }

.comp-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
}

.text-green-900 { color: var(--green-900); }
.text-red-900 { color: var(--red-900); }

.comp-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.comp-list-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.text-green-600 { color: var(--green-600); }
.text-red-600 { color: var(--red-600); }
.text-green-800 { color: var(--green-800); }
.text-red-800 { color: var(--red-800); }

/* Benefits Section */
.benefits-section {
    background-color: var(--brand-dark);
    color: var(--white);
    border-top-left-radius: var(--radius-4xl);
    border-top-right-radius: var(--radius-4xl);
}

@media (min-width: 1024px) {
    .benefits-section {
        border-top-left-radius: 4rem;
        border-top-right-radius: 4rem;
    }
}

.benefits-mobile-grid {
    display: grid;
    gap: 2rem;
}

@media (min-width: 768px) {
    .benefits-mobile-grid {
        display: none;
    }
}

.benefit-card {
    background-color: rgba(255, 255, 255, 0.03);
    padding: 2.5rem;
    border-radius: var(--radius-3xl);
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: all 0.3s ease;
    height: 100%;
}

.benefit-card:hover {
    background-color: rgba(255, 255, 255, 0.08);
    border-color: var(--brand-red);
    transform: translateY(-5px);
}

.benefit-icon-inner {
    width: 3.5rem;
    height: 3.5rem;
    background-color: rgba(227, 6, 19, 0.1);
    color: var(--brand-red);
    padding: 0.75rem;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.benefit-card:hover .benefit-icon-inner {
    background-color: var(--brand-red);
    color: var(--white);
}

.benefit-tag {
    color: var(--brand-red);
    font-weight: 700;
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.benefit-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.benefit-item-title {
    font-weight: 700;
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
}

/* Carousel */
.carousel-container {
    display: none;
    position: relative;
}

@media (min-width: 768px) {
    .carousel-container {
        display: block;
    }
}

.carousel {
    overflow: hidden;
    border-radius: var(--radius-4xl);
    padding: 0 4rem;
}

.carousel-inner {
    display: flex;
    gap: 1rem;
    transition: transform 0.3s ease-in-out;
}

.carousel-slide {
    flex-shrink: 0;
    width: calc(100% / 3 - 0.66rem);
    min-height: 400px;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: var(--brand-red);
    color: var(--white);
    padding: 0.75rem;
    border-radius: 9999px;
    transition: background-color 0.2s;
    z-index: 10;
}

.carousel-btn:hover {
    background-color: var(--brand-red-dark);
}

.carousel-btn.prev { left: 0; }
.carousel-btn.next { right: 0; }

/* Process Section */
.process-grid {
    display: grid;
    gap: 2rem;
    max-width: 72rem;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .process-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .process-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.features-grid {
    display: grid;
    gap: 2rem;
    max-width: 72rem;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.feature-svg {
    width: 4rem;
    height: 4rem;
}

@media (min-width: 1024px) {
    .feature-svg {
        width: 2rem;
        height: 2rem;
    }
}

.process-step {
    position: relative;
    background-color: var(--white);
    padding: 2.5rem;
    border-radius: var(--radius-4xl);
    border: 1px solid var(--gray-100);
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.step-number {
    position: absolute;
    top: -1rem;
    left: -1rem;
    width: 3rem;
    height: 3rem;
    background-color: var(--brand-red);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 1rem;
    font-weight: 700;
    font-size: 1.25rem;
    box-shadow: 0 10px 15px -3px rgba(227, 6, 19, 0.2);
}

/* Table */
.table-wrapper {
    overflow-x: auto;
    border: 1px solid var(--gray-100);
    border-radius: 1.5rem;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.data-table {
    width: 100%;
    text-align: left;
    border-collapse: collapse;
}

.data-table tr {
    border-bottom: 1px solid var(--gray-100);
}

.data-table tr:nth-child(odd) {
    background-color: var(--gray-50);
}

.data-table th, .data-table td {
    padding: 1.25rem;
}

.data-table th {
    font-weight: 700;
}

/* Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.gallery-item {
    border-radius: 1.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    width: 100%;
    height: 12rem;
    object-fit: cover;
    cursor: pointer;
}

.gallery-item-large {
    grid-column: span 2;
    height: 16rem;
}

/* Why Us Section */
.why-us-content {
    max-width: 56rem;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

@media (min-width: 1024px) {
    .why-us-content {
        flex-direction: row;
        align-items: center;
    }
}

.why-us-text, .why-us-card {
    width: 100%;
}

@media (min-width: 1024px) {
    .why-us-text, .why-us-card {
        width: 50%;
    }
}

.why-us-card {
    background-color: var(--white);
    padding: 2.5rem;
    border-radius: var(--radius-4xl);
    border: 1px solid var(--gray-100);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

/* FAQ */
.faq-container {
    max-width: 56rem;
    margin: 0 auto;
}

.faq-item {
    background-color: var(--gray-50);
    border-radius: 1rem;
    border: 1px solid var(--gray-100);
    overflow: hidden;
    margin-bottom: 1rem;
}

.faq-item summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem;
    cursor: pointer;
    list-style: none;
    font-weight: 700;
    font-size: 1.125rem;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary svg {
    width: 1.5rem;
    height: 1.5rem;
    transition: transform 0.2s;
}

.faq-item[open] summary svg {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 1.5rem 1.5rem;
    color: var(--gray-600);
}

/* Final CTA */
.final-cta {
    background-color: var(--brand-red);
    color: var(--white);
    padding: 6rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.final-cta-content {
    position: relative;
    z-index: 10;
}

.final-cta h2 {
    font-size: 2.25rem;
    font-weight: 800;
    margin-bottom: 2rem;
    line-height: 1.1;
}

@media (min-width: 1024px) {
    .final-cta h2 {
        font-size: 3.75rem;
    }
}

.btn-white {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background-color: var(--white);
    color: var(--brand-red);
    padding: 1.25rem 3rem;
    border-radius: 1rem;
    font-weight: 700;
    font-size: 1.25rem;
    transition: transform 0.2s;
}

.btn-white:hover {
    transform: scale(1.05);
}

.decoration-circle {
    position: absolute;
    width: 24rem;
    height: 24rem;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 9999px;
    filter: blur(64px);
}

.decoration-circle-1 { top: -5rem; right: -5rem; }
.decoration-circle-2 { bottom: -5rem; left: -5rem; background-color: rgba(0, 0, 0, 0.1); }

/* Footer */
.footer {
    background-color: var(--gray-900);
    color: var(--gray-400);
    padding: 3rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

@media (min-width: 768px) {
    .footer-content {
        flex-direction: row;
        text-align: left;
    }
}

.footer-logo {
    height: 2rem;
    opacity: 0.75;
    margin-bottom: 1rem;
}

.footer-legal {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
    font-size: 0.75rem;
}

/* Modal */
.modal {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.75);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 50;
    display: none;
}

.modal.active {
    display: flex;
}

.modal-content {
    position: relative;
    max-width: 56rem;
    max-height: 100%;
    padding: 1rem;
}

.modal-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.modal-close {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    color: var(--white);
    font-size: 2rem;
    font-weight: 700;
}

.modal-close:hover {
    color: var(--gray-300);
}

/* Utilities */
.hidden { display: none; }
.relative { position: relative; }
.z-10 { z-index: 10; }
.z-20 { z-index: 20; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-center { justify-content: center; }
.flex-shrink-0 { flex-shrink: 0; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-10 { margin-bottom: 2.5rem; }
.mb-12 { margin-bottom: 3rem; }
.mb-16 { margin-bottom: 4rem; }
.mt-4 { margin-top: 1rem; }
.mt-8 { margin-top: 2rem; }
.mt-12 { margin-top: 3rem; }
.mt-20 { margin-top: 5rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-5 { padding-top: 1.25rem; padding-bottom: 1.25rem; }
.py-6 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.py-12 { padding-top: 3rem; padding-bottom: 3rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-8 { padding-left: 2rem; padding-right: 2rem; }
.px-10 { padding-left: 2.5rem; padding-right: 2.5rem; }
.w-4 { width: 1rem; }
.h-4 { height: 1rem; }
.w-5 { width: 1.25rem; }
.h-5 { height: 1.25rem; }
.w-6 { width: 1.5rem; }
.h-6 { height: 1.5rem; }
.w-8 { width: 2rem; }
.h-8 { height: 2rem; }
.w-full { width: 100%; }
.h-full { height: 100%; }
.bg-white { background-color: var(--white); }
.italic { font-style: italic; }
.text-center { text-align: center; }
.opacity-50 { opacity: 0.5; }
.opacity-75 { opacity: 0.75; }
.opacity-90 { opacity: 0.9; }

@media (min-width: 640px) {
    .sm\:flex-row { flex-direction: row; }
}

/* =====================================================
   NASZE REALIZACJE – Cards Grid
   ===================================================== */

.realizacje-grid {
    display: grid;
    gap: 2rem;
    grid-template-columns: 1fr;
}

@media (min-width: 768px) {
    .realizacje-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1100px) {
    .realizacje-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Card */
.realizacja-card {
    background: var(--white);
    border-radius: var(--radius-4xl);
    border: 1px solid var(--gray-100);
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
    display: flex;
    flex-direction: column;
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    outline: none;
}

.realizacja-card:hover,
.realizacja-card:focus-visible {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(0,0,0,0.13);
}

.realizacja-card:focus-visible {
    outline: 3px solid var(--brand-red);
    outline-offset: 2px;
}

/* Thumbnail */
.realizacja-thumb-wrap {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    flex-shrink: 0;
    background: var(--gray-100);
}

.realizacja-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.realizacja-card:hover .realizacja-thumb {
    transform: scale(1.05);
}

/* Zoom icon overlay */
.realizacja-overlay-icon {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(17, 24, 39, 0.0);
    transition: background 0.3s ease;
    pointer-events: none;
}

.realizacja-overlay-icon svg {
    width: 3rem;
    height: 3rem;
    color: var(--white);
    opacity: 0;
    transform: scale(0.7);
    transition: opacity 0.3s ease, transform 0.3s ease;
    filter: drop-shadow(0 2px 8px rgba(0,0,0,0.4));
}

.realizacja-card:hover .realizacja-overlay-icon,
.realizacja-card:focus-visible .realizacja-overlay-icon {
    background: rgba(17, 24, 39, 0.35);
}

.realizacja-card:hover .realizacja-overlay-icon svg,
.realizacja-card:focus-visible .realizacja-overlay-icon svg {
    opacity: 1;
    transform: scale(1);
}

/* Card body */
.realizacja-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    flex: 1;
}

.realizacja-title {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--brand-dark);
    line-height: 1.3;
}

.realizacja-desc {
    font-size: 0.875rem;
    color: var(--gray-600);
    line-height: 1.6;
    flex: 1;
}

/* PDF links */
.realizacja-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.realizacja-link {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.35rem 0.75rem;
    border-radius: 9999px;
    border: 1.5px solid;
    transition: background 0.2s, color 0.2s;
    white-space: nowrap;
}

.realizacja-link svg {
    width: 0.875rem;
    height: 0.875rem;
    flex-shrink: 0;
}

.realizacja-link--article {
    color: var(--gray-700);
    border-color: var(--gray-300);
    background: var(--gray-50);
}
.realizacja-link--article:hover {
    background: var(--gray-200);
    color: var(--brand-dark);
}

.realizacja-link--cert {
    color: var(--brand-red);
    border-color: rgba(227,6,19,0.3);
    background: rgba(227,6,19,0.05);
}
.realizacja-link--cert:hover {
    background: rgba(227,6,19,0.12);
}

/* =====================================================
   GALLERY LIGHTBOX
   ===================================================== */

.gl-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(10, 10, 15, 0.94);
    backdrop-filter: blur(6px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0;
    animation: glFadeIn 0.22s ease;
}

.gl-overlay[hidden] {
    display: none !important;
}

@keyframes glFadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* Close button */
.gl-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 10;
    width: 2.75rem;
    height: 2.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255,255,255,0.12);
    color: var(--white);
    transition: background 0.2s;
}

.gl-close:hover {
    background: var(--brand-red);
}

.gl-close svg {
    width: 1.25rem;
    height: 1.25rem;
}

/* Main image area */
.gl-main {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    flex: 1;
    min-height: 0;
    padding: 2rem 4rem;
}

.gl-img-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    min-height: 0;
}

.gl-main-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 0.75rem;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
    display: block;
    user-select: none;
    transition: opacity 0.18s ease;
}

.gl-main-img.gl-fade {
    opacity: 0;
}

/* Nav arrows */
.gl-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255,255,255,0.12);
    color: var(--white);
    transition: background 0.2s, transform 0.2s;
    flex-shrink: 0;
}

.gl-nav:hover {
    background: var(--brand-red);
    transform: translateY(-50%) scale(1.08);
}

.gl-nav--prev { left: 0.75rem; }
.gl-nav--next { right: 0.75rem; }

.gl-nav svg {
    width: 1.25rem;
    height: 1.25rem;
}

/* Counter */
.gl-counter {
    font-size: 0.8125rem;
    color: rgba(255,255,255,0.55);
    letter-spacing: 0.04em;
    padding: 0.25rem 0;
    flex-shrink: 0;
}

/* Thumbnail strip */
.gl-thumbs-outer {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem 1.25rem;
    width: 100%;
    max-width: 100%;
    flex-shrink: 0;
}

.gl-thumbs-nav {
    flex-shrink: 0;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    color: var(--white);
    transition: background 0.2s;
}

.gl-thumbs-nav:hover {
    background: var(--brand-red);
}

.gl-thumbs-nav svg {
    width: 1rem;
    height: 1rem;
}

.gl-thumbs-viewport {
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.gl-thumbs-strip {
    display: flex;
    gap: 0.5rem;
    transition: transform 0.3s ease;
}

.gl-thumb {
    flex-shrink: 0;
    width: 5rem;
    height: 3.75rem;
    object-fit: cover;
    border-radius: 0.5rem;
    cursor: pointer;
    border: 2.5px solid transparent;
    opacity: 0.6;
    transition: opacity 0.2s, border-color 0.2s, transform 0.2s;
}

.gl-thumb:hover {
    opacity: 0.9;
    transform: scale(1.05);
}

.gl-thumb.active {
    border-color: var(--brand-red);
    opacity: 1;
}
