/* Główne style dla POLFINANS - Platforma Edukacyjna Tradingu */

/* Import czcionek z Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Lato:wght@300;400;700;900&family=Playfair+Display:wght@400;500;700;900&display=swap');

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

:root {
    /* Polskie kolory narodowe i uzupełniające */
    --polish-red: #dc143c;
    --polish-white: #f0f0f0;
    --dark-blue: #1a237e;
    --light-blue: #4fc3f7;
    --accent-gold: #ffd700;
    --text-dark: #333333;
    --text-light: #ffffff;
    --bg-light: #f9f9f9;
    --bg-dark: #2c3e50;
    --shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

body {
    font-family: 'Lato', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-light);
    max-width: 1180px;
    margin: 0 auto;
    padding: 0;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--dark-blue);
}

h1 {
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 1.5rem;
}

h2 {
    font-size: 2rem;
    margin-bottom: 1.2rem;
    position: relative;
    padding-bottom: 0.5rem;
}

h2:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 3px;
    background-color: var(--polish-red);
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1rem;
}

.container {
    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 60px 0;
    position: relative;
}

/* Przyciski */
.btn-primary, .btn-secondary {
    display: inline-block;
    padding: 12px 24px;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-size: 1rem;
    margin-top: 1rem;
    box-shadow: var(--shadow);
}

.btn-primary {
    background-color: var(--polish-red);
    color: var(--text-light);
}

.btn-primary:hover {
    background-color: #b01030;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.btn-secondary {
    background-color: var(--dark-blue);
    color: var(--text-light);
}

.btn-secondary:hover {
    background-color: #111a60;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

/* Blok 1: Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--polish-red) 0%, var(--dark-blue) 100%);
    color: var(--text-light);
    min-height: 430px;
    display: flex;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-section:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.1' fill-rule='evenodd'%3E%3Ccircle cx='3' cy='3' r='3'/%3E%3Ccircle cx='13' cy='13' r='3'/%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

.hero-section h1, .hero-section h2 {
    color: var(--text-light);
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.hero-section h1 {
    margin-bottom: 0.5rem;
}

.hero-section h2 {
    font-weight: 400;
    margin-bottom: 1.5rem;
}

.hero-section h2:after {
    background-color: var(--accent-gold);
    left: 50%;
    transform: translateX(-50%);
}

.hero-section p {
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 auto 1.5rem;
}

.hero-section .btn-primary {
    background-color: var(--text-light);
    color: var(--polish-red);
    font-size: 1.1rem;
    padding: 15px 30px;
    margin-top: 1.5rem;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
    z-index: 1;
    cursor: pointer;
    animation: pulse 2s infinite;
}

.hero-section .btn-primary:hover {
    background-color: transparent;
    color: var(--text-light);
    border: 2px solid var(--text-light);
    animation: none;
    transform: scale(1.05);
}

.hero-section .btn-primary:active {
    transform: scale(0.98);
}

.hero-section .btn-primary::after {
    content: '';
    position: absolute;
    width: 0;
    height: 100%;
    top: 0;
    left: 0;
    background-color: rgba(255,255,255,0.2);
    transition: width 0.3s;
    z-index: -1;
}

.hero-section .btn-primary:hover::after {
    width: 100%;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(255, 255, 255, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
    }
}

/* Blok 2: Formularz */
.signup-section {
    background-color: var(--light-blue);
    text-align: center;
    padding: 50px 0;
    position: relative;
}

.signup-section:before {
    content: "";
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    border-width: 0 20px 20px 20px;
    border-style: solid;
    border-color: transparent transparent var(--light-blue) transparent;
}

.signup-section h2 {
    color: var(--dark-blue);
}

.signup-section h2:after {
    left: 50%;
    transform: translateX(-50%);
}

.signup-form {
    max-width: 500px;
    margin: 30px auto 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.signup-form input[type="email"] {
    padding: 15px;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    width: 100%;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

.signup-form .btn-primary {
    width: 100%;
    margin-top: 10px;
}

/* Blok 3: Produkty i ceny */
.products-section {
    background-color: var(--bg-light);
    padding: 70px 0;
}

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

.product {
    background-color: white;
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}

.product:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.15);
}

.product:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background-color: var(--polish-red);
}

.product h3 {
    margin-top: 0.5rem;
}

.price {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--polish-red);
    margin: 15px 0;
}

/* Artykuł */
.article-section {
    margin-top: 60px;
    padding: 30px;
    background-color: white;
    border-radius: 8px;
    box-shadow: var(--shadow);
    border-left: 4px solid var(--polish-red);
}

.article-section h3 {
    color: var(--polish-red);
    margin-bottom: 20px;
}

.article-section p {
    text-align: justify;
    margin-bottom: 15px;
}

/* Blok 4: Specjaliści */
.experts-section {
    background-color: var(--dark-blue);
    color: var(--text-light);
    padding: 70px 0;
}

.experts-section h2 {
    color: var(--text-light);
    text-align: center;
}

.experts-section h2:after {
    background-color: var(--accent-gold);
    left: 50%;
    transform: translateX(-50%);
}

.experts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.expert {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 25px;
    text-align: center;
    transition: transform 0.3s ease;
}

.expert:hover {
    transform: translateY(-5px);
    background-color: rgba(255, 255, 255, 0.15);
}

.expert h3 {
    color: var(--accent-gold);
    margin-bottom: 0.5rem;
}

.expert p:first-of-type {
    font-weight: 700;
    color: var(--light-blue);
    margin-bottom: 15px;
}

/* Blok 5: Opinie */
.testimonials-section {
    background-color: var(--bg-light);
    padding: 70px 0;
    text-align: center;
}

.testimonials-section h2:after {
    left: 50%;
    transform: translateX(-50%);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.testimonial {
    background-color: white;
    border-radius: 8px;
    padding: 30px;
    box-shadow: var(--shadow);
    position: relative;
}

.testimonial:before {
    content: '"';
    position: absolute;
    top: 10px;
    left: 20px;
    font-size: 60px;
    color: rgba(0, 0, 0, 0.05);
    font-family: serif;
}

.testimonial h3 {
    color: var(--dark-blue);
    margin-bottom: 10px;
}

.rating {
    color: var(--accent-gold);
    font-size: 1.5rem;
    margin-top: 15px;
}

/* Blok 6: Kontakt i mapa */
.contact-section {
    background-color: var(--polish-white);
    padding: 70px 0;
    text-align: center;
}

.contact-section h2:after {
    left: 50%;
    transform: translateX(-50%);
}

.contact-section p {
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.map-container {
    margin-top: 30px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

/* Blok 7: Stopka */
.footer-section {
    background-color: var(--text-dark);
    color: var(--text-light);
    padding: 30px 0;
    text-align: center;
}

.footer-section p {
    margin-bottom: 0;
}

/* Responsywność */
@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.7rem;
    }

    section {
        padding: 40px 0;
    }

    .hero-section {
        padding: 60px 0;
    }

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

    .signup-form {
        max-width: 100%;
    }
}

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

    h2 {
        font-size: 1.5rem;
    }

    p {
        font-size: 0.95rem;
    }

    .container {
        padding: 0 15px;
    }

    .btn-primary, .btn-secondary {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    .product, .expert, .testimonial {
        padding: 20px;
    }

    .article-section {
        padding: 20px;
    }

    .price {
        font-size: 1.5rem;
    }
}
