/* Основные стили и переменные */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #0a2e52;
    --secondary-color: #1a5490;
    --accent-color: #2d89ef;
    --light-bg: #f5f7fa;
    --white: #ffffff;
    --text-dark: #1a1a1a;
    --text-light: #ffffff;
    --gray: #6c757d;
    --success: #28a745;
    --border-radius: 8px;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 8px 15px rgba(0, 0, 0, 0.2);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--light-bg);
}

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

/* Блок 1: Hero секция - темный фон */
#hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--text-light);
    padding: 80px 20px;
    text-align: center;
}

#hero h1 {
    font-size: 2.8rem;
    margin-bottom: 20px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

#hero p {
    font-size: 1.2rem;
    margin-bottom: 15px;
    opacity: 0.95;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.cta-button {
    display: inline-block;
    background-color: var(--accent-color);
    color: var(--text-light);
    padding: 15px 40px;
    text-decoration: none;
    border-radius: var(--border-radius);
    font-size: 1.1rem;
    font-weight: 600;
    margin-top: 20px;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
}

.cta-button:hover {
    background-color: #2575d0;
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

/* Блок 5: Opinie - светлый фон */
#reviews {
    background-color: var(--white);
    padding: 70px 20px;
}

#reviews h2 {
    text-align: center;
    font-size: 2.4rem;
    margin-bottom: 50px;
    color: var(--primary-color);
    font-weight: 700;
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.review-item {
    background-color: var(--light-bg);
    padding: 30px;
    border-radius: var(--border-radius);
    border-left: 4px solid var(--accent-color);
    transition: all 0.3s ease;
}

.review-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.review-item h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.3rem;
    font-weight: 600;
}

.review-item p {
    color: var(--text-dark);
    font-style: italic;
    line-height: 1.7;
}

/* Блок 5.2: Zostaw opinię - акцентный синий фон */
#leave-review {
    background-color: var(--secondary-color);
    color: var(--text-light);
    padding: 60px 20px;
    text-align: center;
}

#leave-review h2 {
    font-size: 2.2rem;
    margin-bottom: 20px;
    font-weight: 700;
}

#leave-review p {
    font-size: 1.1rem;
    margin-bottom: 25px;
    opacity: 0.95;
}

.review-button {
    display: inline-block;
    background-color: var(--white);
    color: var(--secondary-color);
    padding: 14px 35px;
    text-decoration: none;
    border-radius: var(--border-radius);
    font-size: 1.05rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
}

.review-button:hover {
    background-color: var(--light-bg);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

/* Блок 4: Nasi specjaliści - светлый серый фон */
#specialists {
    background-color: var(--light-bg);
    padding: 70px 20px;
}

#specialists h2 {
    text-align: center;
    font-size: 2.4rem;
    margin-bottom: 50px;
    color: var(--primary-color);
    font-weight: 700;
}

.specialists-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
}

.specialist-item {
    background-color: var(--white);
    padding: 35px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    border-top: 3px solid var(--accent-color);
}

.specialist-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.specialist-item h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.4rem;
    font-weight: 600;
}

.specialist-item p {
    color: var(--text-dark);
    line-height: 1.7;
}

/* Блок 2: Newsletter - темный градиент */
#newsletter {
    background: linear-gradient(135deg, #0d3d66 0%, var(--secondary-color) 100%);
    color: var(--text-light);
    padding: 70px 20px;
    text-align: center;
}

#newsletter h2 {
    font-size: 2.4rem;
    margin-bottom: 20px;
    font-weight: 700;
}

#newsletter p {
    font-size: 1.1rem;
    margin-bottom: 35px;
    opacity: 0.95;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

#newsletter form {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
}

#newsletter input[type="email"] {
    flex: 1;
    min-width: 280px;
    padding: 15px 20px;
    border: 2px solid transparent;
    border-radius: var(--border-radius);
    font-size: 1rem;
    outline: none;
    transition: all 0.3s ease;
}

#newsletter input[type="email"]:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(45, 137, 239, 0.2);
}

.subscribe-button {
    padding: 15px 35px;
    background-color: var(--accent-color);
    color: var(--text-light);
    border: none;
    border-radius: var(--border-radius);
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
}

.subscribe-button:hover {
    background-color: #2575d0;
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

/* Блок 4.1: Szkolenia - белый фон */
#training-media {
    background-color: var(--white);
    padding: 70px 20px;
}

#training-media h2 {
    text-align: center;
    font-size: 2.4rem;
    margin-bottom: 35px;
    color: var(--primary-color);
    font-weight: 700;
}

#training-media p {
    max-width: 900px;
    margin: 0 auto;
    font-size: 1.1rem;
    line-height: 1.9;
    color: var(--text-dark);
    text-align: justify;
}

/* Блок 3: Produkty - контрастный темный фон */
#products {
    background-color: #0a2540;
    color: var(--text-light);
    padding: 70px 20px;
}

#products h2 {
    text-align: center;
    font-size: 2.4rem;
    margin-bottom: 50px;
    font-weight: 700;
    color: var(--text-light);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.product-item {
    background-color: rgba(255, 255, 255, 0.05);
    padding: 35px;
    border-radius: var(--border-radius);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.product-item:hover {
    background-color: rgba(255, 255, 255, 0.08);
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    border-color: var(--accent-color);
}

.product-item h3 {
    color: var(--accent-color);
    margin-bottom: 15px;
    font-size: 1.4rem;
    font-weight: 600;
}

.product-item p {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.7;
}

/* Артикл внутри блока продуктов */
.blog-article {
    max-width: 900px;
    margin: 60px auto 0;
    padding: 45px;
    background-color: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-hover);
    color: var(--text-dark);
}

.blog-article h2 {
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 25px;
    text-align: left;
}

.blog-article p {
    margin-bottom: 20px;
    line-height: 1.8;
    font-size: 1.05rem;
    text-align: justify;
}

/* Блок 6: Location - светлый фон */
#location {
    background-color: var(--light-bg);
    padding: 70px 20px;
}

#location h2 {
    text-align: center;
    font-size: 2.4rem;
    margin-bottom: 30px;
    color: var(--primary-color);
    font-weight: 700;
}

#location p {
    text-align: center;
    font-size: 1.2rem;
    margin-bottom: 35px;
    color: var(--text-dark);
}

.map-container {
    max-width: 1000px;
    margin: 0 auto;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-hover);
}

.map-container iframe {
    display: block;
}

/* Footer - темный фон */
footer {
    background-color: var(--primary-color);
    color: var(--text-light);
    padding: 30px 20px;
    text-align: center;
}

footer p {
    font-size: 0.95rem;
    opacity: 0.9;
}

/* Мобильная версия */
@media (max-width: 768px) {
    #hero h1 {
        font-size: 2rem;
    }

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

    .cta-button {
        padding: 12px 30px;
        font-size: 1rem;
    }

    #reviews h2,
    #specialists h2,
    #newsletter h2,
    #training-media h2,
    #products h2,
    #location h2 {
        font-size: 1.8rem;
    }

    .reviews-grid,
    .specialists-grid,
    .products-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .review-item,
    .specialist-item,
    .product-item {
        padding: 25px;
    }

    #newsletter form {
        flex-direction: column;
        align-items: stretch;
    }

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

    .subscribe-button {
        width: 100%;
    }

    .blog-article {
        padding: 30px 20px;
    }

    .blog-article h2 {
        font-size: 1.6rem;
    }

    .blog-article p {
        font-size: 1rem;
    }

    #training-media p {
        font-size: 1rem;
        text-align: left;
    }
}

@media (max-width: 480px) {
    #hero {
        padding: 60px 15px;
    }

    #hero h1 {
        font-size: 1.7rem;
    }

    .container {
        padding: 0 15px;
    }

    #reviews,
    #specialists,
    #newsletter,
    #training-media,
    #products,
    #location,
    #leave-review {
        padding: 50px 15px;
    }

    .review-item h3,
    .specialist-item h3,
    .product-item h3 {
        font-size: 1.2rem;
    }
}

/* Дополнительные улучшения для банковского стиля */
section {
    position: relative;
}

/* Анимация появления при скролле */
@media (prefers-reduced-motion: no-preference) {
    .review-item,
    .specialist-item,
    .product-item {
        animation: fadeInUp 0.6s ease-out;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Улучшенная доступность */
a:focus,
button:focus,
input:focus {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

/* Стиль для скрытых элементов */
input[type="hidden"] {
    display: none;
}
