/* Mobile Styles - dla urządzeń o szerokości ekranu poniżej 992px */

/* Podstawowe style mobilne */
body {
    margin: 0;
    padding: 0;
    font-size: 16px;
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
}

/* Nawigacja mobilna */
nav {
    background-color: white;
    padding: 1rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border-radius: 0 0 15px 15px;
    margin: 0;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
    box-sizing: border-box;
}

nav {
    display: flex;
    justify-content: center;
    align-items: center;
}

.nav-logo a {
    text-decoration: none;
    color: black;
    font-weight: 700;
    font-size: 1.3rem;
    text-align: center;
}

.nav-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    width: 100%;
}

.nav-links a {
    text-decoration: none;
    color: black;
    font-weight: 500;
    transition: color 0.3s;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    width: 100%;
    text-align: center;
}

.nav-links a:hover {
    color: #666;
    background-color: #f5f5f5;
}

.nav-button {
    background-color: black;
    color: white !important;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    transition: background-color 0.3s;
    width: auto;
}

.nav-button:hover {
    background-color: #333;
    color: white !important;
}

/* Wrapper i sekcje */
.wrapper {
    background-color: white;
    margin: 1rem;
    padding: 1.5rem;
    border-radius: 15px;
    box-sizing: border-box;
    max-width: calc(100% - 2rem);
    width: calc(100% - 2rem);
}

/* Header */
header h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
    text-align: center;
}

header p {
    font-size: 1.1rem;
    text-align: center;
    margin-bottom: 1rem;
}

/* Hero section */
.hero iframe {
    width: 100%;
    height: 50vh;
    border-radius: 8px;
}

/* Funkcje section */
.funkcje h2 {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 1.8rem;
}

.funkcje .container {
    flex-direction: column;
    gap: 2rem;
}

.funkcje .container > div {
    flex: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1rem;
    border: 1px solid #eee;
    border-radius: 12px;
    background-color: #fafafa;
}

.funkcje .container img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.funkcje .container h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.funkcje .container p {
    font-size: 1rem;
    line-height: 1.5;
}

/* Technologie section */
.technologie h2 {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 1.8rem;
}

.technologie .container {
    flex-direction: column;
    gap: 2rem;
}

.technologie .container .left {
    flex: none;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.technologie .container .left > div {
    padding: 1rem;
    border: 1px solid #eee;
    border-radius: 8px;
    background-color: #fafafa;
}

.technologie .container .left h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: #333;
}

.technologie .container .left p {
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 0.5rem;
}

.technologie .container .right {
    flex: none;
    display: flex;
    justify-content: center;
    align-items: center;
}

.technologie .container .right img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* Formularz section */
.formularz h2 {
    text-align: center;
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
}

.formularz p {
    text-align: center;
    margin-bottom: 1rem;
    font-size: 1rem;
}

.form-row {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    max-width: 100%;
    margin: 0 auto;
}

.form-row input[type="email"] {
    width: 100%;
    max-width: 300px;
    padding: 0.75rem 1rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    outline: none;
    box-sizing: border-box;
}

.form-row input[type="email"]:focus {
    border-color: #666;
    box-shadow: 0 0 0 2px rgba(102, 102, 102, 0.2);
}

.form-row button[type="submit"] {
    width: 100%;
    max-width: 300px;
    padding: 0.75rem 1.5rem;
    background-color: #666;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s;
}

.form-row button[type="submit"]:hover {
    background-color: #555;
}

/* About section */
.about h2 {
    text-align: center;
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
}

.about p {
    text-align: center;
    margin-bottom: 1rem;
    font-size: 1rem;
    line-height: 1.6;
}

.about a {
    color: #666;
    text-decoration: none;
    font-weight: 500;
}

.about a:hover {
    text-decoration: underline;
}

/* Footer */
footer {
    width: 100%;
    padding: 1.5rem;
    text-align: center;
    font-size: 0.9em;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-top: 2rem;
}

/* Responsywność dla bardzo małych ekranów */
@media (max-width: 480px) {
    .wrapper {
        margin: 0.5rem;
        padding: 1rem;
    }
    
    nav {
        margin: 0 0.5rem;
        padding: 0.75rem;
    }
    
    header h1 {
        font-size: 1.8rem;
    }
    
    .funkcje .container > div,
    .technologie .container .left > div {
        padding: 0.75rem;
    }
    
    .form-row input[type="email"],
    .form-row button[type="submit"] {
        max-width: 100%;
    }
}

/* Style mobilne dla podstron kontakt i polityka prywatności */
.kontakt-info .container {
    flex-direction: column;
    gap: 0;
    align-items: center;
    justify-content: center;
}

.kontakt-dane {
    flex: none;
    width: 100%;
    max-width: 100%;
    text-align: center;
}

.kontakt-dane .kontakt-elements {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    justify-content: center;
    align-items: center;
}

.kontakt-element {
    flex: none;
    width: 100%;
    max-width: 300px;
    margin-bottom: 0;
}

.kontakt-header h1, .prywatnosc-header h1 {
    font-size: 2rem;
}

.kontakt-header p, .prywatnosc-header p {
    font-size: 1.1rem;
}

.kontakt-element {
    padding: 1rem;
    margin-bottom: 1.5rem;
}

.kontakt-element h3 {
    font-size: 1.2rem;
}

.form-group input,
.form-group textarea {
    font-size: 16px; /* Zapobiega zoom na iOS */
}

.faq-item {
    padding: 1.5rem;
}

.faq-item h3 {
    font-size: 1.2rem;
}

.prywatnosc-sekcja {
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.prywatnosc-sekcja h2 {
    font-size: 1.3rem;
}

/* Responsywność dla bardzo małych ekranów - podstrony */
@media (max-width: 480px) {
    .kontakt-header h1, .prywatnosc-header h1 {
        font-size: 1.8rem;
    }
    
    .kontakt-header p, .prywatnosc-header p {
        font-size: 1rem;
    }
    
    .kontakt-element {
        padding: 0.75rem;
    }
    
    .faq-item {
        padding: 1rem;
    }
    
    .prywatnosc-sekcja {
        padding: 1rem;
    }
}