: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);
    overflow-x: hidden;
}

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

/* 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: none;
    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;
}

.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: 48px;
    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: var(--white);
    color: var(--text-main);
    padding: 0;
    text-align: left;
    border-bottom: none;
    position: relative;
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0;
    align-items: center;
}

.hero-content {
    max-width: none;
    padding: 30px 0;
}

.hero h1 {
    font-size: 2.8rem;
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--text-main);
    line-height: 1.15;
    letter-spacing: -0.01em;
}

.hero p {
    font-size: 1.125rem;
    margin-bottom: 1.25rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.hero-features {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.hero-feature {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
    color: var(--text-main);
    white-space: nowrap;
}

.hero-feature-icon {
    width: 18px;
    height: 18px;
    stroke-width: 2;
    color: var(--text-secondary);
}

.hero-feature-sep {
    color: var(--border-light);
    font-weight: 300;
}

.hero-buttons {
    display: flex;
    flex-direction: row;
    gap: 16px;
    flex-wrap: wrap;
    align-items: center;
}

.hero-image {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.hero-image img {
    max-width: 280px;
    max-height: 325px;
    height: auto;
    object-fit: contain;
}

.hero-image-mobile {
    display: none;
}

.btn-large {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    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: transform 0.22s cubic-bezier(.34, 1.56, .64, 1), box-shadow 0.22s ease, background 0.2s ease;
    position: relative;
    overflow: hidden;
}

/* Ripple shine on hover */
.btn-large::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(255, 255, 255, 0) 30%, rgba(255, 255, 255, 0.18) 50%, rgba(255, 255, 255, 0) 70%);
    transform: translateX(-100%);
    transition: transform 0.5s ease;
}

.btn-large:hover::after {
    transform: translateX(100%);
}

.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(-3px) scale(1.02);
    box-shadow: 0 8px 24px rgba(223, 63, 63, 0.38);
}

.btn-white:active {
    transform: translateY(-1px) scale(0.99);
    box-shadow: 0 3px 10px rgba(223, 63, 63, 0.25);
}

.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: transform 0.22s cubic-bezier(.34, 1.56, .64, 1), box-shadow 0.22s ease, background 0.2s ease;
    text-align: center;
    display: inline-block;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.btn-outline:hover {
    background: var(--navy-hover);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 24px rgba(35, 39, 46, 0.38);
}

.btn-outline:active {
    transform: translateY(-1px) scale(0.99);
}

/* Hero CTA buttons */
.btn-hero-primary {
    background: var(--accent-red);
    color: var(--white);
    border: 2px solid var(--accent-red);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.95rem;
    padding: 0.8rem 2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-hero-primary:hover {
    background: var(--accent-red-hover);
    border-color: var(--accent-red-hover);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 24px rgba(223, 63, 63, 0.38);
}

.btn-hero-primary:active {
    transform: translateY(-1px) scale(0.99);
    box-shadow: 0 3px 10px rgba(223, 63, 63, 0.25);
}

.btn-hero-outline {
    background: transparent;
    color: var(--text-main);
    border: 2px solid var(--border-light);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.95rem;
    padding: 0.8rem 2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-hero-outline:hover {
    border-color: var(--accent-red);
    color: var(--accent-red);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.btn-hero-outline:active {
    transform: translateY(-1px) scale(0.99);
}

/* 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: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(12px) saturate(1.3);
    -webkit-backdrop-filter: blur(12px) saturate(1.3);
    padding: 35px 25px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.07), 0 1px 4px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.85);
    transition: transform 0.28s cubic-bezier(.34, 1.4, .64, 1), box-shadow 0.28s ease, border-color 0.2s ease;
    text-align: center;
    min-height: 280px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 48px rgba(35, 39, 46, 0.13), 0 4px 12px rgba(0, 0, 0, 0.06);
    border-color: rgba(223, 63, 63, 0.25);
}

.feature-card:hover .feature-icon {
    transform: scale(1.12);
}

.feature-icon {
    transition: transform 0.25s cubic-bezier(.34, 1.56, .64, 1);
}

.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(--accent-red);
    text-decoration: underline;
}

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

.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: 16px;
    }

    body {
        font-size: 1rem;
    }

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

    .contact-info {
        flex-direction: column;
        gap: 0.5rem;
        font-size: 0.875rem;
        align-items: flex-start;
    }

    .contact-info span {
        font-size: 0.875rem;
    }

    .hamburger {
        display: flex;
    }

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

    .container {
        padding: 0 15px;
    }

    /* 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: 1.5rem 0 1rem;
    }

    .hero-grid {
        grid-template-columns: 1fr auto;
        gap: 0;
    }

    .hero-content {
        max-width: 100%;
    }

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

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

    .hero-image img {
        max-width: 295px;
    }

    .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;
    }
}

/* Zapobiega automatycznemu powiększaniu czcionek na iOS Safari */
@media (max-width: 768px) {
    * {
        -webkit-text-size-adjust: 100%;
        -moz-text-size-adjust: 100%;
        -ms-text-size-adjust: 100%;
        text-size-adjust: 100%;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .hero-buttons .btn-large,
    .hero-buttons .btn-hero-primary,
    .hero-buttons .btn-hero-outline,
    .hero-buttons .btn-white,
    .hero-buttons .btn-outline {
        width: auto;
        max-width: none;
        text-align: center;
        padding: 0.65rem 2rem;
        font-size: 0.85rem;
    }

    .hero {
        position: relative;
        overflow: hidden;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 0;
        position: relative;
        min-height: auto;
        padding-bottom: 0;
    }

    .hero-image-desktop {
        display: none;
    }

    .hero-image-mobile {
        display: flex;
        justify-content: center;
        position: static;
        width: 100%;
        max-width: 100%;
        opacity: 1;
        margin-top: 1rem;
    }

    .hero-image-mobile img {
        max-width: 340px;
        width: 80%;
        max-height: none;
        height: auto;
    }

    .hero-content {
        position: relative;
        z-index: 1;
        padding: 10px 0 0;
    }

    .hero h1 {
        font-size: 1.6rem;
        max-width: 100%;
    }

    .hero p {
        max-width: 100%;
    }

    .hero-features {
        font-size: 0.8rem;
        gap: 6px;
    }

    .hero-feature-sep {
        display: none;
    }

    .feature-card {
        min-height: auto;
    }

    input,
    textarea,
    select,
    button {
        font-size: 16px !important;
    }
}

/* Bardzo małe ekrany */
@media (max-width: 480px) {
    .container {
        padding: 0 12px;
        max-width: 100%;
    }

    .header-top {
        padding: 8px 0;
    }

    .contact-info {
        gap: 5px;
        font-size: 0.8rem;
    }

    .logo-img {
        height: 40px;
    }

    .hero {
        padding: 0.5rem 0 0;
    }

    .hero h1 {
        font-size: 1.4rem;
        max-width: 100%;
    }

    .hero p {
        font-size: 0.85rem;
        margin-bottom: 0.5rem;
        max-width: 100%;
    }

    .hero-grid {
        grid-template-columns: 1fr;
    }

    .hero-image-mobile img {
        max-width: 280px;
        width: 75%;
    }

    .hero-features {
        font-size: 0.75rem;
        gap: 4px;
    }

    .hero-content {
        padding: 5px 0 15px;
    }

    .hero-buttons {
        gap: 8px;
    }

    .hero-buttons .btn-large,
    .hero-buttons .btn-hero-primary,
    .hero-buttons .btn-hero-outline {
        padding: 0.5rem 1.5rem;
        font-size: 0.78rem;
    }

    .btn-large {
        padding: 0.6rem 1.2rem;
        font-size: 1rem;
    }

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

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

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

    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .cookie-text {
        min-width: auto;
    }

    .cookie-content {
        flex-direction: column;
        gap: 12px;
    }

    .hero p {
        font-size: 0.95rem;
    }
}

/* 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;
}

/* ================================================
   HERO – lead text enhancement
   ================================================ */
.hero-lead {
    font-size: 1.15rem;
    color: var(--text-secondary) !important;
    margin-bottom: 1.5rem !important;
    line-height: 1.7;
    max-width: 100%;
    font-weight: 400;
}

/* ================================================
   STATS BAR
   ================================================ */
.stats-bar {
    background: var(--navy-dark);
    color: var(--white);
    padding: 24px 0;
    border-top: 3px solid var(--accent-red);
}

.stats-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px 12px;
}

.stat-item {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 14px;
    background: none;
    border: none;
    padding: 0;
    transition: transform 0.25s cubic-bezier(.34, 1.4, .64, 1);
}

.stat-item:hover {
    transform: translateY(-3px);
}

.stat-icon {
    width: 32px;
    height: 32px;
    color: var(--accent-red);
    stroke-width: 1.5;
    flex-shrink: 0;
}

.stat-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.stat-number {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--white);
    line-height: 1;
    letter-spacing: -0.01em;
}

.stat-label {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.55);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 500;
}

/* ================================================
   GUIDE SECTION
   ================================================ */
.section-guide {
    padding: 80px 0;
    background: var(--white);
}

.section-lead {
    font-size: 1.0rem;
    color: var(--text-secondary);
    line-height: 1.7;
    max-width: 720px;
    margin: -1.25rem auto 3rem;
    text-align: center;
}

.guide-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    max-width: 1100px;
    margin: 0 auto;
    position: relative;
}

/* Dashed connector line through the icon circles */
.guide-steps::before {
    content: '';
    position: absolute;
    top: 35px;
    /* half of 70px circle */
    left: 12.5%;
    right: 12.5%;
    height: 2px;
    background: repeating-linear-gradient(to right,
            rgba(223, 63, 63, 0.45) 0,
            rgba(223, 63, 63, 0.45) 8px,
            transparent 8px,
            transparent 18px);
    z-index: 0;
}

.guide-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0 18px;
    position: relative;
    z-index: 1;
    transition: transform 0.28s cubic-bezier(.34, 1.4, .64, 1);
}

.guide-step:hover {
    transform: translateY(-4px);
}

.guide-step__circle {
    width: 70px;
    height: 70px;
    background: var(--navy-dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    position: relative;
    z-index: 2;
    border: 3px solid #fff;
    box-shadow: 0 4px 18px rgba(10, 20, 50, 0.18);
    flex-shrink: 0;
    transition: background 0.25s ease, box-shadow 0.25s ease;
}

.guide-step:hover .guide-step__circle {
    background: var(--accent-red);
    box-shadow: 0 6px 22px rgba(223, 63, 63, 0.32);
}

.guide-step__icon {
    width: 26px;
    height: 26px;
    color: #fff;
    stroke-width: 1.5;
}

.guide-step__num {
    position: absolute;
    top: -5px;
    right: -5px;
    width: 22px;
    height: 22px;
    background: var(--accent-red);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.7rem;
    font-weight: 800;
    border: 2px solid #fff;
}

.guide-step:hover .guide-step__num {
    background: var(--navy-dark);
}

.guide-step h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--navy-dark);
    margin: 0 0 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    line-height: 1.3;
}

.guide-step p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0 0 0.75rem;
}

.guide-link {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent-red);
    text-decoration: none;
    transition: color 0.2s;
}

.guide-link:hover {
    color: var(--accent-red-hover);
    text-decoration: underline;
}

/* ================================================
   INTENSITY TABLE SECTION
   ================================================ */
.section-intensity {
    padding: 80px 0;
    background: var(--gray-light);
    border-top: 1px solid #e4e4e4;
}

.section-intensity .section-lead {
    text-align: center;
}

.intensity-table-wrap {
    overflow-x: auto;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.intensity-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    font-size: 0.9rem;
    min-width: 580px;
}

.intensity-table thead th {
    background: var(--navy-dark);
    color: #fff;
    padding: 13px 16px;
    text-align: left;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    white-space: nowrap;
}

.intensity-table thead th:first-child {
    border-radius: 12px 0 0 0;
}

.intensity-table thead th:last-child {
    border-radius: 0 12px 0 0;
}

.intensity-table tbody tr {
    border-bottom: 1px solid #eef0f3;
    transition: background 0.15s;
}

.intensity-table tbody tr:hover {
    background: #f5f7fb;
}

.intensity-table tbody td {
    padding: 10px 16px;
    color: var(--navy-dark);
    vertical-align: middle;
}

/* Intensity badges */
.ib {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    font-family: 'Montserrat', sans-serif;
    text-align: center;
    min-width: 42px;
}

.ib--h {
    background: #dcfce7;
    color: #15803d;
}

.ib--m {
    background: #fef3c7;
    color: #92400e;
}

.ib--l {
    background: #fee2e2;
    color: #b91c1c;
}

.ib--n {
    background: #f3f4f6;
    color: #6b7280;
}

.table-note {
    margin-top: 1.25rem;
    font-size: 0.84rem;
    color: #666;
    line-height: 1.6;
}

.table-note a {
    color: var(--accent-red);
    text-decoration: none;
}

.table-note a:hover {
    text-decoration: underline;
}

/* ================================================
   RESPONSIVE – new homepage sections
   ================================================ */
@media (max-width: 900px) {
    .guide-steps {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px 24px;
    }

    .guide-steps::before {
        display: none;
    }

    .guide-step {
        padding: 0 12px;
    }
}

@media (max-width: 520px) {
    .guide-steps {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

@media (max-width: 768px) {
    .stats-bar .container {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 18px 24px;
    }

    .stat-number {
        font-size: 1.4rem;
    }

    .stat-icon {
        width: 26px;
        height: 26px;
    }

    .section-guide,
    .section-intensity {
        padding: 50px 0;
    }

    .guide-step {
        padding: 0 8px;
    }
}

@media (max-width: 480px) {
    .stat-number {
        font-size: 1.2rem;
    }

    .stat-icon {
        width: 22px;
        height: 22px;
    }
}

/* ===== SCROLL-REVEAL ===== */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.55s ease, transform 0.55s cubic-bezier(.22, 1, .36, 1);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal--delay-1 {
    transition-delay: 0.10s;
}

.reveal--delay-2 {
    transition-delay: 0.20s;
}

.reveal--delay-3 {
    transition-delay: 0.30s;
}

.reveal--delay-4 {
    transition-delay: 0.40s;
}

@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* ===== Utility inline icon classes ===== */
.icon-xl {
    width: 36px;
    height: 36px;
    vertical-align: middle;
    margin-right: 12px;
}

.icon-md {
    width: 18px;
    height: 18px;
    vertical-align: middle;
    margin-right: 8px;
}

.icon-md-left {
    width: 18px;
    height: 18px;
    vertical-align: middle;
    margin-right: 6px;
}

.icon-warning {
    color: var(--accent-red);
}

.icon-sm-right {
    width: 16px;
    height: 16px;
    vertical-align: middle;
    margin-left: 4px;
}

.icon-xs {
    width: 14px;
    height: 14px;
    vertical-align: middle;
    margin-right: 6px;
    color: var(--text-secondary);
}

.info-box--mt {
    margin-top: 50px;
}