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

body {
    font-family: 'Arial', sans-serif;
    background-color: #f8f8f8;
    line-height: 1.6;
}

/* Kolory */
:root {
    --primary-dark: #0A3C59;
    --accent-orange: #FF7B00;
    --light-bg: #E9F4F8;
    --text-color: #333;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* LOGO */
.logo-text {
    font-size: 30px;
    font-weight: 800;
    color: var(--primary-dark);
    position: relative;
    padding-bottom: 5px;
}
.logo-accent {
    color: var(--accent-orange);
}
.logo-text::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--accent-orange);
}

/* --- HEADER --- */
.main-header {
    background-color: #fff;
    border-bottom: 2px solid var(--light-bg);
    position: sticky;
    top: 0;
    z-index: 100;
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

/* Nawigacja desktopowa */
.main-nav {
    display: flex;
    align-items: center;
}

.main-nav a {
    text-decoration: none;
    color: var(--text-color);
    margin-left: 20px;
    font-size: 16px;
    transition: color 0.2s;
}

.main-nav a:hover {
    color: var(--accent-orange);
}

.main-nav .phone-link {
    color: white;
    background-color: var(--primary-dark);
    padding: 8px 15px;
    border-radius: 5px;
    font-weight: bold;
}

/* Ikona menu (hamburger) - domyślnie ukryta */
.menu-toggle {
    display: none;
    font-size: 26px;
    color: var(--primary-dark);
    cursor: pointer;
}

/* --- HERO --- */
.hero-section {
    padding: 80px 0;
    color: white;
    background-color: var(--primary-dark);
    background-image: url('https://images.pexels.com/photos/3771069/pexels-photo-3771069.jpeg?auto=compress&cs=tinysrgb&w=1260&h=750&dpr=1');
    background-size: cover;
    background-position: center;
    position: relative;
}
.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.55);
}
.hero-content {
    position: relative;
    z-index: 10;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 30px;
}
.hero-left {
    font-size: 25px;
    flex: 1;
    padding-top: 20px;
}
.hero-left h2 {
    font-size: 45px;
    color: var(--accent-orange);
    margin-bottom: 15px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}
.hero-left p {
    font-size: 18px;
    margin-bottom: 25px;
}
.hero-left ul {
    list-style: none;
}
.hero-left ul li {
    margin-bottom: 10px;
}
.hero-left ul li i {
    color: var(--accent-orange);
    margin-right: 10px;
}
.hero-right {
    flex: 0 0 380px;
}

/* Formularz */
.loan-form-box {
    background-color: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}
.loan-form-box h3 {
    text-align: center;
    color: var(--primary-dark);
    margin-bottom: 25px;
    font-size: 24px;
}
.input-row {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}
.input-row .input-group {
    flex: 1;
    margin-bottom: 0;
}
.input-group {
    position: relative;
    margin-bottom: 15px;
}
.input-group input {
    width: 100%;
    padding: 12px 12px 12px 40px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
    transition: border-color 0.2s;
}
.input-group input:focus {
    border-color: var(--primary-dark);
    outline: none;
}
.input-group i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary-dark);
}
.checkbox-group {
    margin-top: 15px;
    margin-bottom: 20px;
    font-size: 14px;
    color: #555;
}
.cta-button {
    width: 100%;
    background-color: var(--accent-orange);
    color: white;
    padding: 15px;
    border: none;
    border-radius: 5px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.1s;
    letter-spacing: 1px;
}
.cta-button:hover {
    background-color: #E06C00;
}

/* --- FEATURES --- */
.features-section {
    padding: 60px 0;
    text-align: center;
    background-color: var(--light-bg);
}
.features-section h3 {
    font-size: 34px;
    margin-bottom: 40px;
    color: var(--primary-dark);
}
.feature-cards {
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    gap: 20px;
}
.card {
    flex: 1;
    background-color: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
}
.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}
.card i {
    font-size: 45px;
    color: var(--accent-orange);
    margin-bottom: 15px;
}
.card h4 {
    margin-bottom: 10px;
    color: var(--primary-dark);
    font-size: 20px;
}

/* --- FOOTER --- */
.main-footer {
    background-color: var(--primary-dark);
    color: #eee;
    padding-top: 50px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 3fr;
    gap: 30px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.footer-logo-col .logo-text {
    color: #fff;
}
.footer-logo-col .logo-accent {
    color: var(--accent-orange);
}
.footer-logo-col .logo-text::after {
    background-color: var(--accent-orange);
}
.footer-grid h4 {
    color: var(--accent-orange);
    margin-bottom: 15px;
    font-size: 18px;
    font-weight: bold;
}
.footer-menu-col ul {
    list-style: none;
}
.footer-menu-col a {
    color: #eee;
    text-decoration: none;
    display: block;
    margin-bottom: 8px;
    font-size: 15px;
    transition: color 0.2s;
}
.footer-menu-col a:hover {
    color: var(--accent-orange);
}
.company-info,
.representative-example {
    font-size: 14px;
    margin-top: 15px;
}
.representative-example {
    margin-top: 15px;
    padding-left: 10px;
    border-left: 3px solid var(--accent-orange);
    font-style: italic;
    opacity: 0.8;
}
.copyright {
    background-color: #06283B;
    padding: 15px 0;
    font-size: 13px;
    text-align: center;
}

/* --- RESPONSYWNOŚĆ --- */
@media (max-width: 992px) {
    .hero-content {
        flex-direction: column;
        align-items: center;
    }
    .hero-right {
        flex: 0 0 100%;
        width: 100%;
        max-width: 450px;
    }
    .hero-left {
        text-align: center;
        margin-bottom: 30px;
    }
    .hero-left ul {
        text-align: left;
        display: inline-block;
    }
    .feature-cards {
        flex-direction: column;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    .footer-logo-col {
        grid-column: 1 / 3;
    }
    .footer-info-col {
        grid-column: 1 / 3;
    }
}

/* --- MOBILE MENU + FOOTER --- */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    .main-nav {
        position: absolute;
        top: 65px;
        right: 0;
        width: 100%;
        background-color: #fff;
        border-top: 2px solid var(--light-bg);
        flex-direction: column;
        align-items: flex-start;
        padding: 15px 25px;
        display: none;
    }
    .main-nav a {
        display: block;
        margin: 10px 0;
        font-size: 17px;
    }
    .main-nav.active {
        display: flex;
    }
}

@media (max-width: 600px) {
    .footer-grid {
        grid-template-columns: 1fr;
        padding: 0 20px 30px;
    }
    .footer-logo-col {
        text-align: center;
    }
    .footer-menu-col h4,
    .footer-info-col h4 {
        margin-top: 20px;
    }
    .hero-section {
        padding: 40px 0;
    }
    .loan-form-box {
        padding: 20px;
    }
    .input-row {
        flex-direction: column;
        gap: 0;
    }
    .input-row .input-group {
        margin-bottom: 15px;
    }
}

##### mobile

/* === MOBILNE MENU WYSUWANE Z PRAWEJ === */
.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 98;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.overlay.visible {
    display: block;
    opacity: 1;
}

@media (max-width: 768px) {
    .main-nav {
        position: fixed;
        top: 0;
        right: -260px;
        width: 250px;
        height: 100%;
        background-color: #fff;
        box-shadow: -3px 0 10px rgba(0, 0, 0, 0.1);
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        padding: 70px 25px 25px;
        gap: 20px;
        transition: right 0.3s ease;
        z-index: 99;
    }

    .main-nav a {
        width: 100%;
        font-size: 17px;
        color: var(--text-color);
    }

    .main-nav a.phone-link {
        background-color: var(--primary-dark);
        color: #fff;
        padding: 10px 15px;
        border-radius: 5px;
        font-weight: bold;
        text-align: center;
        width: 100%;
    }

    .main-nav.open {
        right: 0;
    }

    .menu-toggle {
        display: block;
        cursor: pointer;
        font-size: 26px;
        color: var(--primary-dark);
        z-index: 100;
    }

    /* Ukryj menu desktopowe */
    .main-header .container {
        position: relative;
    }

    .main-nav a {
        margin-left: 0;
    }

    /* Domyślnie ukryj menu */
    .main-nav:not(.open) {
        right: -260px;
    }

    /* Ukryj menu na starcie */
    .main-nav,
    .main-nav a {
        text-decoration: none;
    }
}