/* Reset i podstawowe style */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #2c3e50;
    background-color: #f8f9fa;
    max-width: 1090px;
    margin: 0 auto;
}

.container {
    padding: 60px 40px;
}

h1 {
    font-size: 2.8em;
    margin-bottom: 25px;
    line-height: 1.2;
    font-weight: 700;
}

h2 {
    font-size: 2.2em;
    margin-bottom: 30px;
    font-weight: 700;
}

h3 {
    font-size: 1.4em;
    margin-bottom: 12px;
    font-weight: 600;
}

p {
    margin-bottom: 18px;
    font-size: 1.05em;
}

/* Blok 1: Hero - Oferta sprzedażowa */
#hero {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: #ffffff;
    min-height: 470px;
    display: flex;
    align-items: center;
    padding: 80px 40px;
}

#hero h1 {
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

#hero p {
    color: #e8f0fe;
    font-size: 1.15em;
    margin-bottom: 20px;
    max-width: 900px;
}

/* Przycisk CTA w pierwszym bloku */
.cta-button {
    display: inline-block;
    background: #ff6b35;
    color: #ffffff;
    padding: 16px 40px;
    text-decoration: none;
    border-radius: 8px;
    font-size: 1.15em;
    font-weight: 600;
    margin-top: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
}

.cta-button:hover {
    background: #e55a2b;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
}

/* Blok 2: Formularz zapisu */
#subscribe-form {
    background-color: #f0f4f8;
    color: #2c3e50;
}

#subscribe-form h2 {
    color: #1e3c72;
}

#subscribe-form p {
    color: #546e7a;
    margin-bottom: 30px;
}

#subscribe-form form {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

#subscribe-form input[type="email"] {
    flex: 1;
    min-width: 280px;
    padding: 14px 20px;
    border: 2px solid #cbd5e0;
    border-radius: 6px;
    font-size: 1.05em;
    transition: border-color 0.3s ease;
}

#subscribe-form input[type="email"]:focus {
    outline: none;
    border-color: #2a5298;
}

#subscribe-form button[type="submit"] {
    padding: 14px 35px;
    background: #2a5298;
    color: #ffffff;
    border: none;
    border-radius: 6px;
    font-size: 1.05em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

#subscribe-form button[type="submit"]:hover {
    background: #1e3c72;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(42, 82, 152, 0.3);
}

/* Blok 3: Usługi i produkty */
#services {
    background-color: #ffffff;
    color: #2c3e50;
}

#services h2 {
    color: #1e3c72;
    text-align: center;
}

.service {
    background: #f8fafc;
    padding: 30px;
    margin-bottom: 25px;
    border-radius: 10px;
    border-left: 5px solid #ff6b35;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.service:hover {
    transform: translateX(8px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.service h3 {
    color: #1e3c72;
    margin-bottom: 15px;
}

.service p {
    color: #546e7a;
}

/* Artykuł tematyczny - wyróżnienie */
.themed-article {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    padding: 50px 40px;
    border-radius: 12px;
    margin-top: 50px;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.themed-article h2 {
    color: #ffffff;
    border-bottom: 3px solid #ffffff;
    padding-bottom: 20px;
    margin-bottom: 30px;
}

.themed-article p {
    color: #f0f4ff;
    font-size: 1.08em;
    line-height: 1.8;
}

.themed-article strong {
    color: #ffffff;
    font-weight: 700;
}

/* Blok 4: Specjaliści */
#specialists {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: #ffffff;
}

#specialists h2 {
    color: #ffffff;
    text-align: center;
}

.specialist {
    background: rgba(255, 255, 255, 0.1);
    padding: 30px;
    margin-bottom: 25px;
    border-radius: 10px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.specialist:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: scale(1.02);
}

.specialist h3 {
    color: #ff6b35;
    margin-bottom: 8px;
}

.specialist .role {
    color: #a8d0e6;
    font-style: italic;
    font-size: 1.05em;
    margin-bottom: 15px;
}

.specialist p {
    color: #e8f0fe;
}

/* Blok 4.1: Działalność dydaktyczna */
#teaching-media {
    background-color: #e3f2fd;
    color: #1a237e;
}

#teaching-media h2 {
    color: #0d47a1;
    text-align: center;
}

#teaching-media p {
    color: #1565c0;
    font-size: 1.08em;
    line-height: 1.8;
    text-align: justify;
}

/* Blok 5: Opinie */
#reviews {
    background-color: #fff8e1;
    color: #2c3e50;
}

#reviews h2 {
    color: #f57c00;
    text-align: center;
}

.review {
    background: #ffffff;
    padding: 30px;
    margin-bottom: 25px;
    border-radius: 10px;
    box-shadow: 0 3px 12px rgba(245, 124, 0, 0.15);
    border-top: 4px solid #ff9800;
    transition: all 0.3s ease;
}

.review:hover {
    box-shadow: 0 6px 20px rgba(245, 124, 0, 0.25);
    transform: translateY(-3px);
}

.review h3 {
    color: #e65100;
    margin-bottom: 12px;
}

.review p {
    color: #424242;
    font-style: italic;
    line-height: 1.7;
}

/* Blok 5.2: Zostaw opinię */
#leave-review {
    background-color: #f3e5f5;
    color: #4a148c;
}

#leave-review h2 {
    color: #6a1b9a;
    text-align: center;
}

#leave-review p {
    color: #7b1fa2;
    text-align: center;
    margin-bottom: 30px;
}

#leave-review form {
    max-width: 700px;
    margin: 0 auto;
}

#leave-review input[type="text"],
#leave-review textarea {
    width: 100%;
    padding: 14px 20px;
    margin-bottom: 20px;
    border: 2px solid #ce93d8;
    border-radius: 6px;
    font-size: 1.05em;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

#leave-review input[type="text"]:focus,
#leave-review textarea:focus {
    outline: none;
    border-color: #8e24aa;
}

#leave-review textarea {
    resize: vertical;
    min-height: 120px;
}

#leave-review button[type="submit"] {
    width: 100%;
    padding: 16px;
    background: #8e24aa;
    color: #ffffff;
    border: none;
    border-radius: 6px;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

#leave-review button[type="submit"]:hover {
    background: #6a1b9a;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(142, 36, 170, 0.3);
}

/* Blok 6: Kontakt i mapa */
#contact {
    background-color: #e8f5e9;
    color: #1b5e20;
}

#contact h2 {
    color: #2e7d32;
    text-align: center;
}

#contact p {
    color: #33691e;
    font-size: 1.1em;
    text-align: center;
    margin-bottom: 40px;
}

#contact strong {
    color: #1b5e20;
    font-size: 1.15em;
}

.map-container {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(46, 125, 50, 0.2);
}

.map-container iframe {
    display: block;
}

/* Blok 7: Footer */
footer {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: #e8f0fe;
    text-align: center;
    padding: 40px;
}

footer p {
    margin: 0;
    font-size: 1em;
}

footer .domainName {
    color: #ff6b35;
    font-weight: 600;
}

/* Responsywność - wersja mobilna */
@media (max-width: 768px) {
    body {
        font-size: 16px;
    }

    .container {
        padding: 40px 20px;
    }

    h1 {
        font-size: 2em;
    }

    h2 {
        font-size: 1.7em;
    }

    h3 {
        font-size: 1.25em;
    }

    /* Hero dla mobile */
    #hero {
        min-height: 470px;
        padding: 50px 20px;
        text-align: center;
    }

    #hero h1 {
        font-size: 1.8em;
    }

    #hero p {
        font-size: 1em;
    }

    .cta-button {
        padding: 14px 30px;
        font-size: 1em;
        display: block;
        text-align: center;
    }

    /* Formularz zapisu */
    #subscribe-form form {
        flex-direction: column;
    }

    #subscribe-form input[type="email"] {
        width: 100%;
        min-width: 100%;
    }

    #subscribe-form button[type="submit"] {
        width: 100%;
    }

    /* Usługi */
    .service {
        padding: 20px;
        margin-bottom: 20px;
    }

    .service:hover {
        transform: none;
    }

    /* Artykuł */
    .themed-article {
        padding: 30px 20px;
        margin-top: 30px;
    }

    .themed-article h2 {
        font-size: 1.6em;
    }

    .themed-article p {
        font-size: 1em;
    }

    /* Specjaliści */
    .specialist {
        padding: 20px;
        margin-bottom: 20px;
    }

    .specialist:hover {
        transform: none;
    }

    /* Opinie */
    .review {
        padding: 20px;
        margin-bottom: 20px;
    }

    .review:hover {
        transform: none;
    }

    /* Działalność dydaktyczna */
    #teaching-media p {
        text-align: left;
    }

    /* Formularz opinii */
    #leave-review input[type="text"],
    #leave-review textarea {
        padding: 12px 16px;
    }

    /* Mapa */
    .map-container iframe {
        height: 300px;
    }

    /* Footer */
    footer {
        padding: 30px 20px;
    }

    footer p {
        font-size: 0.9em;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.6em;
    }

    h2 {
        font-size: 1.5em;
    }

    .container {
        padding: 30px 15px;
    }

    #hero {
        padding: 40px 15px;
    }

    .cta-button {
        padding: 12px 25px;
        font-size: 0.95em;
    }

    .themed-article {
        padding: 25px 15px;
    }

    .map-container iframe {
        height: 250px;
    }
}

/* Dodatkowe ulepszenia */
section {
    position: relative;
    overflow: hidden;
}

/* Płynne przewijanie */
html {
    scroll-behavior: smooth;
}

/* Fokus dla accessibility */
input:focus,
textarea:focus,
button:focus {
    outline: 3px solid rgba(42, 82, 152, 0.3);
    outline-offset: 2px;
}

/* Animacje ładowania */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

section {
    animation: fadeIn 0.6s ease-out;
}
