@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600&display=swap');

html, body {
    margin: 0;
    padding: 0;
    font-family: 'Inter', sans-serif;
    height: 100vh;
    width: 100vw;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    background-color: #323232;
}

/* 🔹 MENU NAD LOGO */
.menu {
    width: 100%;
    text-align: center;
    padding-top: 10px;
}

.menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    gap: 40px;
}

.menu a {
    text-decoration: none;
    color: white;
    font-size: 20px;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    text-transform: uppercase;
    transition: color 0.3s ease-in-out;
}

.menu a:hover {
    color: #0099cc;
}

/* 🔹 LOGO + INPUT + PRZYCISK */
.container {
    text-align: center;
    width: 100%;
    max-width: 900px;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 80px; /* 📌 Możesz zmieniać ten odstęp */
}

/* 🔹 LOGO */
.logo {
    width: 85vw;
    max-width: 700px;
    height: auto;
    display: block;
    margin-bottom: 30px;
}

/* 🔹 SEARCH WRAPPER */
.search-wrapper {
    position: relative;
    width: 85vw; /* 📌 Na desktopie szerokość dopasowana do logo */
    max-width: 500px;
}

/* 🔹 INPUT */
.search-box {
    width: 100%;
    padding: 18px 20px 18px 50px;
    font-size: 22px;
    border: none;
    border-radius: 4px;
    text-align: left;
    outline: none;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 10;
}

/* 🔹 IKONKA LUPY */
.search-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 22px;
    color: rgba(255, 255, 255, 0.7);
    pointer-events: none;
}

/* 🔹 PRZYCISK ASK */
.search-btn {
    margin-top: 15px;
    width: auto;
    padding: 14px 28px;
    font-size: 20px;
    font-weight: 600;
    color: white;
    background: #0080db;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    transition: background 0.3s ease-in-out, transform 0.2s ease-in-out;
}

.search-btn:hover {
    background: #0080db;
    transform: scale(1.05);
}

.search-btn:active {
    transform: scale(0.98);
}

/* 🔹 STOPKA */
.footer {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.7);
    font-size: 16px;
    font-weight: 400;
    font-family: 'Inter', sans-serif;
}

/* 📱 🔹 MEDIA QUERIES – PEŁNA POPRAWA MOBILNYCH */
@media screen and (max-width: 768px) {
    html, body {
        height: 100vh;
        overflow: hidden;
    }

    .menu {
        top: 5px;
    }

    .menu ul {
        gap: 15px;
    }

    .menu a {
        font-size: 16px;
    }

    /* 📌 LOGO I INPUT NA MOBILKACH */
    .container {
        margin-top: 20px; /* 📌 Możesz zmieniać ten odstęp na mobilkach */
    }

    .logo {
        max-width: 280px;
        margin-bottom: 15px;
    }

    /* 📌 Input na mobilkach – dokładnie szerokość logo */
    .search-wrapper {
        width: 280px; /* 📌 DOKŁADNIE TYLE SAMO CO LOGO */
        max-width: 280px;
    }

    .search-box {
        width: 100%; /* 📌 Input NIE może być szerszy niż search-wrapper */
        font-size: 18px;
        padding: 14px 16px 14px 40px;
        max-width: 220px;
    }

    .search-icon {
        font-size: 18px;
        left: 14px;
    }

    /* 📌 Przycisk „Ask” na mobilkach */
    .search-btn {
        font-size: 18px;
        padding: 12px 22px;
    }

    /* 🔥 KLUCZOWA POPRAWKA: Input NIE PRZESKAKUJE po kliknięciu */
    .search-box:focus {
        position: relative;
        top: unset;
        left: unset;
        transform: unset;
        z-index: 1000;
    }
}