:root {
    --primary-color: #3f607d;
    --primary-hover: #2d455b;
    --dark-color: #2b2b2b;
    --light-bg: #f4f5f7;
    --text-color: #4a4a4a;
    --border-color: #e0e0e0;
}

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

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--text-color);
    line-height: 1.7;
}

html {
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) #f4f5f7;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.text-center {
    text-align: center;
}

.section-title-on-dark {
    color: #fff;
}

.btn-inline-contact {
    margin-top: 30px;
    display: inline-block;
}

.contact-help-grid {
    margin-top: 50px;
}

.contact-form-title {
    margin-bottom: 30px;
    color: var(--primary-color);
}

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

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

.text-white {
    color: #fff;
}

.border-top {
    border-top: 1px solid var(--border-color);
}

h1,
h2,
h3 {
    color: var(--dark-color);
    margin-bottom: 15px;
    font-weight: 700;
}

.bg-dark h2,
.bg-dark h3 {
    color: #fff;
}

.section-title {
    font-size: 2.2rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.section-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 60px;
    height: 3px;
    background: var(--primary-color);
}

.text-center.section-title::after {
    left: 50%;
    transform: translateX(-50%);
}

.section-subtitle {
    max-width: 700px;
    margin: 0 auto 40px auto;
    font-size: 1.1rem;
}

.navbar {
    background: #fff;
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 45px;
    width: auto;
    aspect-ratio: 300 / 54;
    display: block;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 20px;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--dark-color);
    font-weight: 600;
    transition: 0.3s;
}

.nav-links a:hover {
    color: var(--primary-color);
}

.btn-nav {
    background: var(--primary-color);
    color: #fff !important;
    padding: 8px 15px;
    border-radius: 4px;
}

.btn-nav:hover {
    background: var(--primary-hover);
}

/* Przełącznik języków */
.lang-switcher {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-left: 20px;
}

.lang-switcher a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 600;
    font-size: 0.85rem;
    padding: 5px 8px;
    border-radius: 4px;
    border: 1px solid transparent;
    transition: 0.3s;
}

.lang-switcher a:hover {
    color: var(--primary-color);
    border-color: var(--border-color);
}

.lang-switcher a.active {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

.hamburger {
    display: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--dark-color);
}

.hero {
    position: relative;
    height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    overflow: hidden;
}

#bg-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: -2;
    transform: translateX(-50%) translateY(-50%);
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(43, 43, 43, 0.7);
    z-index: -1;
}

.hero-content {
    max-width: 800px;
    padding: 20px;
    z-index: 1;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 20px;
    color: #fff;
    letter-spacing: 2px;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

.btn {
    display: inline-block;
    background: var(--primary-color);
    color: #fff;
    padding: 14px 30px;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(215, 107, 45, 0.2);
}

.btn:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(215, 107, 45, 0.3);
}

.btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(215, 107, 45, 0.2);
}

.btn-full {
    width: 100%;
    padding: 16px 30px;
    font-size: 1rem;
    letter-spacing: 0.5px;
}

.section {
    padding: 90px 0;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.responsive-img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    image-rendering: -webkit-optimize-contrast;
}

.shadow-img {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.partners-section {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid var(--border-color);
}

.partners-logos {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 40px;
    margin-top: 20px;
}

.partners-logos span {
    font-size: 1.5rem;
    font-weight: 700;
    color: #5a5a5a;
    text-transform: uppercase;
    transition: 0.3s;
}

.partners-logos span:hover {
    color: var(--primary-color);
}

.card {
    background: #fff;
    padding: 40px 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: 0.3s;
    border-bottom: 4px solid transparent;
    content-visibility: auto;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border-bottom: 4px solid var(--primary-color);
    will-change: transform;
}

.card-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.eko-card {
    border-bottom: 4px solid #27ae60;
}

.eko-card .card-icon {
    color: #27ae60;
}

.services-list {
    list-style: none;
    max-width: 800px;
    margin: 0 auto;
}

.services-list li {
    background: rgba(255, 255, 255, 0.05);
    margin-bottom: 15px;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
    display: flex;
    align-items: center;
    gap: 15px;
}

.services-list i {
    font-size: 1.5rem;
    color: var(--primary-color);
    min-width: 30px;
    text-align: center;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.portfolio-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    cursor: pointer;
    content-visibility: auto;
    aspect-ratio: 1 / 1;
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: 0.5s;
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(63, 96, 125, 0.8);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 600;
    opacity: 0;
    transition: 0.3s;
}

.portfolio-item:hover img {
    transform: scale(1.1);
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.more-projects-link {
    margin-top: 32px;
}

.privacy-header {
    position: relative;
    box-shadow: none;
    border-bottom: 1px solid #eee;
}

.lang-switcher-right {
    margin-left: auto;
}

.privacy-back-wrap {
    margin-top: 40px;
    text-align: center;
}

.privacy-content h1 {
    margin-bottom: 40px;
}

.privacy-content h2 {
    margin-top: 30px;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.privacy-content ul {
    margin-left: 20px;
    margin-bottom: 20px;
}

.privacy-content li {
    margin-bottom: 10px;
}

.privacy-content p {
    margin-bottom: 15px;
    line-height: 1.6;
}

.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.88);
    z-index: 10001;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.lightbox.open {
    display: flex;
}

.lightbox img {
    max-width: min(96vw, 1100px);
    max-height: 88vh;
    border-radius: 8px;
    border: 2px solid #fff;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.45);
}

.lightbox-close {
    position: absolute;
    top: 16px;
    right: 20px;
    border: none;
    background: transparent;
    color: #fff;
    font-size: 2.2rem;
    cursor: pointer;
    line-height: 1;
}

.cases-grid,
.refs-grid {
    align-items: stretch;
}

.case-card,
.ref-card {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 24px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
}

.case-card h3 {
    font-size: 1.15rem;
}

.case-card p {
    margin-bottom: 10px;
}

.ref-card p {
    font-style: italic;
    margin-bottom: 14px;
}

.ref-card span {
    font-weight: 600;
    color: var(--dark-color);
    font-size: 0.95rem;
}

.download-box {
    margin-top: 35px;
    background: linear-gradient(135deg, #2d455b 0%, #3f607d 100%);
    color: #fff;
    border-radius: 8px;
    padding: 28px;
    text-align: center;
}

.download-box h3 {
    color: #fff;
}

.download-box p {
    max-width: 760px;
    margin: 0 auto 18px auto;
}

.faq-wrap {
    max-width: 900px;
}

.faq-item {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: #fff;
    margin-bottom: 14px;
    padding: 12px 16px;
}

.faq-item summary {
    cursor: pointer;
    font-weight: 700;
    color: var(--dark-color);
}

.faq-item p {
    margin-top: 10px;
}

.timeline-container {
    position: relative;
    margin-top: 50px;
}

.timeline-line {
    position: absolute;
    top: 30px;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--border-color);
    z-index: 1;
}

.timeline {
    display: flex;
    justify-content: space-between;
    position: relative;
    z-index: 2;
}

.timeline-step {
    text-align: center;
    width: 12%;
    background: var(--light-bg);
}

.step-icon {
    width: 60px;
    height: 60px;
    background: #fff;
    border: 3px solid var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary-color);
    margin: 0 auto 15px auto;
    transition: 0.3s;
}

.timeline-step:hover .step-icon {
    background: var(--primary-color);
    color: #fff;
}

.contact-info {
    list-style: none;
    margin-top: 30px;
}

.contact-info li {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1.1rem;
    font-weight: 500;
}

.contact-info i {
    color: var(--primary-color);
    font-size: 1.5rem;
}

.form-wrapper {
    background: linear-gradient(135deg, #fff 0%, #f9f9f9 100%);
    padding: 50px 45px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.contact-form label {
    font-weight: 600;
    color: #2a2a2a;
    margin-bottom: -10px;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    color: var(--primary-color);
}

.hp-field {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.form-status {
    margin-bottom: 16px;
    padding: 15px 18px;
    border-radius: 6px;
    font-weight: 600;
    border-left: 4px solid;
    animation: slideDown 0.3s ease;
}

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

.form-status.success {
    background: #e6f7ec;
    color: #0f5a1f;
    border-left-color: #0f5a1f;
}

.form-status.error {
    background: #fdecec;
    color: #7a1a1a;
    border-left-color: #7a1a1a;
}

.noscript-note {
    padding: 14px 20px;
    background: #fff3cd;
    color: #7a5a00;
    text-align: center;
    border-top: 1px solid #ffe08a;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.95rem;
    background: #fff;
    transition: all 0.3s ease;
    color: #333;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: #aaa;
}

.contact-form input:hover,
.contact-form textarea:hover {
    border-color: #c0c0c0;
    background: #fafafa;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(215, 107, 45, 0.1);
}

.contact-form textarea {
    resize: vertical;
    min-height: 120px;
}

.privacy-note {
    font-size: 0.85rem;
    color: #888;
    margin-top: 8px;
    display: flex;
    gap: 8px;
    align-items: flex-start;
    line-height: 1.4;
}

.footer {
    background: #1a1a1a;
    color: #888;
    padding: 30px 0;
}

.footer a {
    color: #888;
    text-decoration: underline;
}

.footer a:hover {
    color: #fff;
}

.contact-page-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: start;
    margin-top: 40px;
    width: 100%;
}

.contact-info-block {
    background: #fff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}

.contact-info-block h2 {
    color: var(--primary-color);
    margin-bottom: 30px;
    font-size: 1.5rem;
    text-align: left;
}

.contact-info-block .contact-info li {
    margin-bottom: 25px;
    line-height: 1.6;
    gap: 12px;
}

.contact-info-block .contact-info strong {
    display: inline;
    margin-right: 8px;
    color: #333;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

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

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-bottom: 0;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.95rem;
    background: #fff;
    transition: all 0.3s ease;
    color: #333;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #aaa;
}

.form-group input:hover,
.form-group textarea:hover {
    border-color: #c0c0c0;
    background: #fafafa;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(215, 107, 45, 0.1);
}

.contact-cta {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-top: 40px;
}

.cta-box {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    border-top: 4px solid var(--primary-color);
    transition: all 0.3s ease;
}

.cta-box:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    transform: translateY(-5px);
}

.cta-box i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    display: block;
}

.cta-box h3 {
    color: #333;
    margin-bottom: 12px;
    font-size: 1.1rem;
}

.cta-box p {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.5;
}

@media(max-width: 992px) {

    .grid-2,
    .grid-3 {
        grid-template-columns: 1fr;
    }

    .contact-page-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .contact-cta {
        grid-template-columns: 1fr;
    }

    .timeline {
        flex-wrap: wrap;
        justify-content: center;
        gap: 30px;
    }

    .timeline-line {
        display: none;
    }

    .timeline-step {
        width: 40%;
        background: transparent;
    }

    .nav-container {
        flex-wrap: wrap;
    }

    .lang-switcher {
        margin-left: auto;
        margin-right: 20px;
    }
}

@media(max-width: 768px) {
    .hamburger {
        display: block;
    }

    #nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #fff;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        display: none;
        padding: 20px;
    }

    #nav-menu.active {
        display: block;
    }

    .nav-links {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .btn-nav {
        display: inline-block;
        text-align: center;
        width: 100%;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .timeline-step {
        width: 100%;
        display: flex;
        align-items: center;
        text-align: left;
        gap: 20px;
    }

    .timeline-step .step-icon {
        margin: 0;
        flex-shrink: 0;
    }

    .section {
        padding: 60px 0;
    }

    body {
        font-size: 14px;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .card {
        padding: 25px 20px;
    }
}

/* --- COOKIE BANNER --- */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #1a1a1a;
    color: #f4f5f7;
    padding: 20px 0;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
    z-index: 9999;
    transform: translateY(100%);
    transition: transform 0.4s ease-in-out;
}

.cookie-banner.show {
    transform: translateY(0);
}

.cookie-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.cookie-text p {
    font-size: 0.95rem;
    margin: 0;
}

.cookie-text a {
    color: var(--primary-color);
    text-decoration: underline;
}

.cookie-btn {
    background-color: var(--primary-color);
    color: #fff;
    border: none;
    padding: 10px 25px;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: background-color 0.3s;
}

.cookie-btn:hover {
    background-color: var(--primary-hover);
}

@media(max-width: 768px) {
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }

    .cookie-btn {
        width: 100%;
    }
}

/* --- ACCESSIBILITY --- */
@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }
}