/* --- GLOBALNE STYLE --- */
:root {
    --bg-main: #FDFBF7;
    --text-main: #4E4239;
    --accent: #B87333;
    --accent-hover: #a1642a;
    --bg-secondary: #D8CFC5;
    --font-header: 'Playfair Display', serif;
    --font-body: 'Lato', sans-serif;
    --white: #FFFFFF;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
}

.container { max-width: 1100px; margin: 0 auto; padding: 5rem 2rem; }
h1, h2 { font-family: var(--font-header); margin-bottom: 1.5rem; line-height: 1.2; }
h1 { font-size: clamp(2.5rem, 5vw, 3rem); }
h2 { font-size: clamp(2rem, 4vw, 2.5rem); text-align: center; }
p { margin-bottom: 1rem; }

.cta-button {
    display: inline-block;
    background-color: var(--accent);
    color: var(--white);
    padding: 1rem 2rem;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
    transition: background-color 0.3s ease;
    cursor: pointer;
    border: none;
    font-size: 1rem;
}
.cta-button:hover { background-color: var(--accent-hover); }

/* --- SEKCJE --- */
.hero-section { display: flex; align-items: center; gap: 2rem; }
.hero-text { flex: 1; }
.hero-image { flex: 1; text-align: center; }
.hero-image img { max-width: 100%; height: auto; border-radius: 10px; }
.hero-text p { font-size: 1.2rem; }

.problems-section h2 { margin-bottom: 1rem; }
.problems-section .subtitle { text-align: center; max-width: 800px; margin: 0 auto 3rem auto; }
.problems-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.problem-card { text-align: center; }
.problem-card h3 { margin: 1rem 0; }
.problem-card .icon { font-size: 3rem; color: var(--accent); }

.process-section { background-color: var(--bg-secondary); }
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.process-step { background-color: var(--bg-main); padding: 1.5rem; border-radius: 5px; }
.process-step .step-number { font-family: var(--font-header); font-size: 2rem; color: var(--accent); }
.process-step h3 { margin: 0.5rem 0; }

.about-section { display: flex; align-items: center; gap: 3rem; }
.about-image { flex-basis: 300px; text-align: center; }
.about-image img { width: 300px; height: 300px; object-fit: cover; border-radius: 50%; }
.about-text { flex: 1; }

.faq-section .faq-item { border-bottom: 1px solid var(--bg-secondary); padding: 1.5rem 0; }
.faq-question { font-weight: bold; cursor: pointer; display: flex; justify-content: space-between; align-items: center; }
.faq-question::after { content: '+'; font-size: 1.5rem; color: var(--accent); transition: transform 0.3s ease; }
.faq-item.active .faq-question::after { transform: rotate(45deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.5s ease; }
.faq-answer p { padding-top: 1rem; }

.final-cta-section { background-color: var(--text-main); color: var(--bg-main); text-align: center; }
.final-cta-section .cta-button { margin-top: 1rem; }

.sticky-cta {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 60px;
    height: 60px;
    background-color: var(--accent);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    text-decoration: none;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    cursor: pointer;
    transition: transform 0.3s ease, opacity 0.3s ease;
    opacity: 0;
    transform: translateY(100px);
    z-index: 1000;
}
.sticky-cta.visible { opacity: 1; transform: translateY(0); }

/* --- POP-UP Z FORMULARZEM --- */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 2000;
}
.popup-overlay.visible { opacity: 1; visibility: visible; }
.popup-content {
    background-color: var(--bg-main);
    padding: 2rem;
    border-radius: 10px;
    width: 90%;
    max-width: 500px;
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}
.popup-overlay.visible .popup-content { transform: scale(1); }
.popup-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 1.5rem;
    cursor: pointer;
    border: none;
    background: none;
    color: var(--text-main);
}
.popup-content h3 { text-align: center; }
.popup-content form label { display: block; margin-bottom: 0.5rem; font-weight: bold; }
.popup-content form input, .popup-content form select, .popup-content form textarea {
    width: 100%;
    padding: 0.8rem;
    margin-bottom: 1rem;
    border: 1px solid var(--bg-secondary);
    border-radius: 5px;
    font-family: var(--font-body);
}
.popup-content form .rodo-label { display: flex; align-items: center; }
.popup-content form input[type="checkbox"] { width: auto; margin-right: 0.5rem; }

/* --- MEDIA QUERIES --- */
@media (max-width: 768px) {
    .container { padding: 3rem 1rem; }
    .hero-section, .about-section { flex-direction: column; text-align: center; }
    .hero-section { flex-direction: column-reverse; }
    .problems-grid, .process-grid { grid-template-columns: 1fr; }
    .about-section { gap: 1.5rem; }
    .about-image { margin-bottom: 1rem; }
    .about-image img { width: 200px; height: 200px; }
}

.is-invalid { border-color:#ef4444 !important; box-shadow:0 0 0 1px #ef4444 inset; }
.invalid-feedback { color:#b91c1c; font-size:.875rem; margin-top:4px; }
.rodo-label.is-invalid { color:#b91c1c; }

/*
COOKIE
*/

.cookie-info {
    position:fixed;
    bottom:0;left:0;right:0;
    padding: 10px;
    font-size: 12px;
    background:#fff;
    border-bottom:1px solid #000;
    box-shadow:0px 0px 3px #000;
    z-index: 99999;
    opacity: 0.8;
}

.cookie-info-content {
    color: #000 ;
}

.cookie-info-button {
    text-align: center;
}

.cookie-info-title {

}

.cookie-info blockquote {
    background: #007bff !important;
    color: #fff;
    font-size: 24px;
    font-weight: 700;
    font-style: italic;
    position: relative;
    padding: 0px 0px 0px 20px;
}
