:root {
    /* Kolory podstawowe */
    --navy-dark: #23272e;
    --gray-light: #f5f5f5;
    --white: #ffffff;

    /* Kolory akcent */
    --accent-red: #df3f3f;
    --accent-red-hover: #c23535;

    /* Szarości */
    --text-main: #2c2c2c;
    --text-secondary: #666666;
    --border-light: #e0e0e0;

    /* Granat hover */
    --navy-hover: #3a3f48;
}

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 1rem;
    line-height: 1.5;
    color: var(--text-main);
    background: var(--gray-light);
}

/* Nagłówek i Menu */
header {
    background: var(--white);
    color: var(--navy-dark);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 3px solid var(--border-light);
    transition: box-shadow 0.3s ease;
}

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

.header-top {
    background: var(--white);
    padding: 10px 0;
    font-size: 0.875rem;
    color: var(--text-secondary);
    border-bottom: 1px solid #f0f0f0;
}

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

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

.contact-info {
    display: flex;
    gap: 20px;
    align-items: center;
}

.contact-info span {
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 5px;
}

.contact-info .icon {
    color: var(--text-secondary);
    font-size: 1rem;
}

.contact-info a {
    color: var(--navy-dark);
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 500;
}

.contact-info a:hover {
    color: var(--navy-dark);
}

.free-consultation {
    color: var(--navy-dark);
    font-weight: 600;
    font-size: 0.875rem;
}

nav {
    padding: 15px 0;
    background: var(--white);
}

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

.logo {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.logo-img {
    display: block;
    height: 60px;
    width: auto;
    object-fit: contain;
    margin-right: 25px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 0;
    align-items: center;
}

.nav-menu>li {
    margin: 0;
    position: relative;
}

.nav-menu>li>a {
    color: var(--navy-dark);
    text-decoration: none;
    padding: 0.625rem 1.25rem;
    border-radius: 5px;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 1rem;
    font-family: 'Montserrat', 'Inter', sans-serif;
    display: block;
}

.nav-menu>li>a:hover,
.nav-menu>li>a.active {
    color: var(--navy-hover);
}

/* Wyjątek dla przycisku - biały tekst */
.nav-menu>li>a.btn-primary {
    color: var(--white);
}

/* Upewnij się, że przycisk zachowuje prawidłowe kolory nawet w stanie active */
.nav-menu>li>a.btn-primary.active,
.nav-menu>li>a.btn-primary:hover {
    color: var(--white);
    background: var(--accent-red-hover);
}

/* Dropdown Styles */
.has-dropdown {
    position: relative;
}

.dropdown-toggle {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
}

.dropdown-arrow {
    font-size: 0.75rem;
    transition: transform 0.2s ease;
}

.has-dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    min-width: 250px;
    padding: 10px 0;
    margin-top: 5px;
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
    z-index: 100;
}

.has-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    margin: 0;
}

.dropdown-menu li>a {
    color: var(--text-main);
    font-size: 0.9375rem;
    padding: 0.75rem 1.5625rem;
    display: block;
    text-decoration: none;
    transition: all 0.2s ease;
}

.dropdown-menu li>a:hover {
    background: var(--gray-light);
    color: var(--navy-hover);
    padding-left: 1.875rem;
}

/* Submenu Styles */
.has-submenu {
    position: relative;
}

.submenu-arrow {
    float: right;
    font-size: 0.75rem;
    margin-left: 0.625rem;
}

.submenu {
    position: absolute;
    top: 0;
    left: 100%;
    background: var(--white);
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    min-width: 220px;
    padding: 10px 0;
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transform: translateX(-10px);
    transition: all 0.2s ease;
    z-index: 101;
}

.has-submenu:hover .submenu {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.submenu li {
    margin: 0;
}

.submenu li>a {
    color: var(--text-main);
    font-size: 0.875rem;
    padding: 0.625rem 1.5625rem;
    display: block;
    text-decoration: none;
    transition: all 0.2s ease;
}

.submenu li>a:hover {
    background: var(--gray-light);
    color: var(--navy-hover);
    padding-left: 1.875rem;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 10px;
    gap: 5px;
}

.hamburger span {
    width: 30px;
    height: 3px;
    background: var(--navy-dark);
    transition: all 0.3s;
    border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -8px);
}

/* Przyciski */
.btn-primary {
    background: var(--accent-red);
    color: var(--white);
    padding: 0.75rem 1.5625rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    font-size: 1.125rem;
    cursor: pointer;
    display: inline-block;
    font-family: 'Montserrat', 'Inter', sans-serif;
}

.btn-primary:hover {
    background: var(--accent-red-hover);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(223, 63, 63, 0.3);
}

/* Hero Section */
.hero {
    background:
        linear-gradient(135deg, rgba(26, 35, 50, 0.85) 0%, rgba(44, 57, 71, 0.75) 50%, rgba(26, 35, 50, 0.85) 100%),
        url('../images/hero-gminy-artykuly.jpg') center/cover no-repeat;
    color: var(--white);
    padding: 120px 0;
    text-align: center;
    border-bottom: 3px solid var(--border-light);
    position: relative;
}

.hero h1 {
    font-size: 2.75rem;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    margin-bottom: 1.25rem;
    color: var(--white);
    line-height: 1.2;
}

.hero p {
    font-size: 1.125rem;
    margin-bottom: 1.875rem;
    color: var(--gray-light);
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-large {
    padding: 0.9375rem 2.5rem;
    font-size: 1.25rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 700;
    font-family: 'Montserrat', 'Inter', sans-serif;
    transition: all 0.3s;
}

.btn-white {
    background: var(--accent-red);
    color: var(--white);
    border: 2px solid var(--accent-red);
}

.btn-white:hover {
    background: var(--accent-red-hover);
    border-color: var(--accent-red-hover);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(223, 63, 63, 0.3);
}

.btn-outline {
    background: var(--navy-dark);
    color: var(--white);
    border: none;
    padding: 0.9375rem 2.5rem;
    border-radius: 30px;
    font-weight: 700;
    font-size: 1.25rem;
    font-family: 'Montserrat', 'Inter', sans-serif;
    transition: all 0.3s ease;
    text-align: center;
    display: inline-block;
    text-decoration: none;
}

.btn-outline:hover {
    background: var(--navy-hover);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(35, 39, 46, 0.4);
}

/* Features Section */
.features {
    padding: 20px 0 80px;
    background: var(--gray-light);
}

.section-title {
    text-align: center;
    font-size: 2rem;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    margin-bottom: 3.125rem;
    color: var(--navy-dark);
    line-height: 1.2;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    max-width: 900px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .features-grid {
        grid-template-columns: 1fr;
    }
}

.feature-card {
    background: var(--white);
    padding: 35px 25px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
    text-align: center;
    min-height: 280px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(35, 39, 46, 0.15);
    border-top: 3px solid var(--navy-dark);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 0.9375rem;
    color: var(--navy-dark);
}

.feature-card h3 {
    color: var(--navy-dark);
    margin-bottom: 0.75rem;
    font-size: 1.375rem;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    line-height: 1.3;
}

.feature-card p {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 1rem;
}

/* CTA Section */
.cta-section {
    background: var(--white);
    color: var(--navy-dark);
    padding: 80px 0;
    text-align: center;
    border-top: 3px solid var(--border-light);
    border-bottom: 3px solid var(--border-light);
    margin-bottom: 40px;
}

.cta-section h2 {
    font-size: 2rem;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    margin-bottom: 1.25rem;
    color: var(--navy-dark);
    line-height: 1.2;
}

.cta-section p {
    font-size: 1.125rem;
    margin-bottom: 1.875rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Disclaimer Section */
.disclaimer {
    background: var(--gray-light);
    color: var(--text-secondary);
    padding: 0.9375rem 1.25rem 0.625rem;
    text-align: center;
    font-size: 0.875rem;
    font-style: italic;
    border-top: 1px solid #e0e0e0;
    line-height: 1.6;
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .disclaimer {
        padding: 0.9375rem;
        font-size: 0.8125rem;
    }
}

/* Footer */
footer {
    background: var(--navy-dark);
    color: var(--gray-light);
    padding: 40px 0 20px;
    margin-top: 0;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 30px;
}

.footer-section h3 {
    margin-bottom: 1.25rem;
    color: var(--navy-dark);
    font-family: 'Montserrat', sans-serif;
    font-size: 1.125rem;
    font-weight: 600;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section a {
    color: var(--gray-light);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: var(--navy-hover);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid var(--border-light);
    color: var(--text-secondary);
}

.footer-bottom a {
    color: var(--navy-dark);
    text-decoration: underline;
}

.footer-bottom a:hover {
    color: var(--white);
}

.legal-notice {
    margin-top: 1.25rem;
    padding-top: 0.9375rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.8125rem;
    color: #999999;
    line-height: 1.6;
}

/* Footer Tools Section */
.footer-tools {
    margin: 0 0 50px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(224, 224, 224, 0.5);
}

.footer-tools-title {
    text-align: center;
    font-size: 1.75rem;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    color: var(--navy-dark);
    margin-bottom: 35px;
    margin-top: 0;
}

.footer-tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.footer-tool-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 30px;
    border-radius: 8px;
    border-top: 4px solid var(--navy-dark);
    text-align: center;
    transition: all 0.3s ease;
}

.footer-tool-card:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(35, 39, 46, 0.2);
}

.footer-tool-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.footer-tool-card h4 {
    font-size: 1.375rem;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    color: var(--white);
    margin: 0 0 15px 0;
}

.footer-tool-card p {
    color: var(--gray-light);
    margin-bottom: 20px;
    line-height: 1.6;
    font-size: 0.95rem;
}

.footer-btn-tool {
    display: inline-block;
    background: var(--accent-red);
    color: #ffffff !important;
    padding: 0.75rem 1.5625rem;
    border-radius: 5px;
    text-decoration: none;
    font-size: 1rem;
    font-family: 'Montserrat', 'Inter', sans-serif;
    font-weight: 600;
    transition: background-color 0.3s, transform 0.2s;
}

.footer-btn-tool:hover {
    background: var(--accent-red-hover);
    color: #ffffff !important;
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .footer-tools-grid {
        grid-template-columns: 1fr;
    }

    .footer-tools-title {
        font-size: 1.5rem;
    }
}

/* Hide mobile close button on desktop */
.close-menu {
    display: none;
}

/* Cookie Consent Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--navy-dark);
    color: var(--white);
    padding: 20px;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.3);
    z-index: 9999;
    display: none;
    animation: slideUp 0.4s ease;
}

.cookie-banner.show {
    display: block;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }

    to {
        transform: translateY(0);
    }
}

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

.cookie-text {
    flex: 1;
    min-width: 300px;
}

.cookie-text h4 {
    margin: 0 0 0.5rem 0;
    color: var(--navy-dark);
    font-size: 1.125rem;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
}

.cookie-text p {
    margin: 0;
    font-size: 0.9375rem;
    line-height: 1.5;
    color: #d0d0d0;
}

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

.cookie-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.cookie-btn {
    padding: 0.625rem 1.25rem;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9375rem;
    font-family: 'Montserrat', 'Inter', sans-serif;
    transition: all 0.3s ease;
}

.cookie-btn-accept {
    background: var(--accent-red);
    color: var(--white);
}

.cookie-btn-accept:hover {
    background: var(--accent-red-hover);
    transform: translateY(-2px);
}

.cookie-btn-reject {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.cookie-btn-reject:hover {
    background: rgba(255, 255, 255, 0.1);
}

@media (max-width: 1024px) {
    html {
        font-size: 18px;
    }

    body {
        font-size: 1rem;
    }

    .header-top {
        padding: 0.5rem 0;
        font-size: 0.8333rem;
    }

    .contact-info {
        flex-direction: column;
        gap: 0.3125rem;
        font-size: 0.8333rem;
    }

    .hamburger {
        display: flex;
    }

    .logo-img {
        height: 45px;
        margin-right: 0;
    }

    /* Mobile Menu Overlay */
    .menu-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(0, 0, 0, 0.5);
        z-index: 998;
        display: none;
    }

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

    /* Mobile Menu */
    .nav-menu {
        display: none;
        flex-direction: column;
        gap: 0;
        position: fixed;
        top: 0;
        left: 0;
        width: 80%;
        max-width: 320px;
        height: 100vh;
        background: var(--white);
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.2);
        padding: 60px 0 0 0;
        overflow-y: auto;
        z-index: 999;
        animation: slideInLeft 0.3s ease;
    }

    @keyframes slideInLeft {
        from {
            transform: translateX(-100%);
        }

        to {
            transform: translateX(0);
        }
    }

    .nav-menu.active {
        display: flex;
    }

    /* Close Button */
    .close-menu {
        position: absolute;
        top: 15px;
        right: 15px;
        font-size: 30px;
        color: var(--navy-dark);
        cursor: pointer;
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: none;
        border: none;
        z-index: 1000;
    }

    .nav-menu>li {
        border-bottom: 1px solid #f0f0f0;
        position: relative;
    }

    .nav-menu>li>a {
        display: block;
        padding: 0.8333rem 1.3889rem;
        border-radius: 0;
        color: var(--navy-dark);
        border-bottom: none;
        font-size: 1rem;
        position: relative;
        text-align: center;
    }

    .nav-menu>li>a:hover {
        background: rgba(35, 39, 46, 0.05);
        color: var(--navy-hover);
    }

    /* Dropdown arrow */
    .has-dropdown>a {
        padding-right: 40px !important;
    }

    .dropdown-arrow {
        margin-left: 8px;
        font-size: 12px;
    }

    /* Mobile Dropdown (Accordion Style) */
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        border-radius: 0;
        padding: 0;
        margin: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        background: #f8f8f8;
    }

    .has-dropdown.open .dropdown-menu {
        max-height: 500px;
    }

    .dropdown-menu li>a {
        padding: 0.6667rem 2.2222rem;
        font-size: 0.9444rem;
    }

    /* Submenu styles */
    .has-submenu>a {
        padding-right: 40px !important;
    }

    .submenu-arrow {
        margin-left: 8px;
        font-size: 12px;
    }

    /* Mobile Submenu */
    .submenu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        border-radius: 0;
        padding: 0;
        margin: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        background: #e8e8e8;
    }

    .has-submenu.open .submenu {
        max-height: 300px;
    }

    .submenu li>a {
        padding: 0.5556rem 3.0556rem;
        font-size: 0.8889rem;
    }

    nav {
        padding: 10px 0;
        position: relative;
    }

    .nav-menu .btn-primary {
        border-radius: 6px;
        text-align: center;
        margin: 10px 25px;
    }

    .hero {
        padding: 3.3333rem 0 2.2222rem;
    }

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

    .hero p {
        font-size: 1rem;
        margin-bottom: 1.1111rem;
    }

    .btn-large {
        padding: 0.6667rem 1.3889rem;
        font-size: 1.1111rem;
    }

    .features {
        padding: 2.7778rem 0;
    }

    .section-title {
        font-size: 1.6667rem;
        margin-bottom: 1.6667rem;
    }

    .feature-card {
        padding: 1.3889rem 1.1111rem;
        min-height: auto;
    }

    .cta-section {
        padding: 2.7778rem 0;
    }

    .cta-section h2 {
        font-size: 1.6667rem;
    }

    .cta-section p {
        font-size: 1rem;
    }

    .footer-content {
        gap: 1.6667rem;
    }
}

/* Lucide Icons Styling */
.feature-icon i,
.footer-tool-icon i {
    width: 40px;
    height: 40px;
    stroke-width: 1.5;
}

.contact-info i {
    width: 16px;
    height: 16px;
    stroke-width: 2;
    vertical-align: middle;
}

