/* Reset i zmienne - Otwock Theme 2025 */
:root {
    --primary-color: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #818cf8;
    --secondary-color: #6366f1;
    --accent-color: #6366f1;
    --accent-light: #818cf8;
    --text-color: #1e293b;
    --light-text: #64748b;
    --background: #ffffff;
    --bg-light: #eef2ff;
    --gradient-primary: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    --gradient-secondary: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    --gradient-accent: linear-gradient(135deg, #818cf8 0%, #6366f1 100%);
    --shadow: 0 4px 20px rgba(99, 102, 241, 0.1);
    --shadow-lg: 0 20px 60px rgba(99, 102, 241, 0.2);
    --shadow-xl: 0 30px 80px rgba(99, 102, 241, 0.25);
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --border-radius: 16px;
    --border-radius-lg: 24px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background: var(--background);
    overflow-x: hidden;
}

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

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.95) 0%, rgba(79, 70, 229, 0.9) 100%);
    backdrop-filter: blur(2px);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    padding: 2rem 0;
}

.hero-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.hero-badge i {
    margin-right: 0.5rem;
}

.hero-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.3rem);
    line-height: 1.6;
    margin-bottom: 2.5rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.95;
}



.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: var(--border-radius);
    transition: var(--transition);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: white;
    color: var(--primary-color);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.3);
}

.btn-lg {
    padding: 1.25rem 3rem;
    font-size: 1.2rem;
}

.btn i {
    margin-right: 0.75rem;
}

.hero-features {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.05rem;
}

.feature-item i {
    font-size: 1.5rem;
    color: var(--primary-light);
}

/* Services Section */
.services-section {
    padding: 6rem 0;
    background: var(--background);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.service-card {
    background: white;
    padding: 2.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-align: center;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: var(--gradient-primary);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.service-card p {
    color: var(--light-text);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.service-features {
    list-style: none;
    text-align: left;
}

.service-features li {
    padding: 0.5rem 0;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.service-features li::before {
    content: "✓";
    color: var(--primary-color);
    font-weight: bold;
    font-size: 1.2rem;
}

/* Phone Lead Section */
.phone-lead-section {
    padding: 5rem 0;
    background: var(--gradient-primary);
    color: white;
}

.phone-lead-content {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.phone-lead-content h2 {
    font-size: clamp(2rem, 4vw, 2.5rem);
    margin-bottom: 1rem;
}

.highlight-orange {
    color: #fbbf24;
}

.lead-subtitle {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.phone-form {
    margin-bottom: 2rem;
}

.form-group {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.form-group input[type="tel"] {
    flex: 1;
    min-width: 250px;
    padding: 1.25rem 1.5rem;
    font-size: 1.1rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--border-radius);
    background: rgba(255, 255, 255, 0.1);
    color: white;
    backdrop-filter: blur(10px);
}

.form-group input[type="tel"]::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.form-group input[type="tel"]:focus {
    outline: none;
    border-color: white;
    background: rgba(255, 255, 255, 0.15);
}

.form-note {
    font-size: 0.9rem;
    opacity: 0.8;
}

.form-note i {
    margin-right: 0.5rem;
}

.trust-badges {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.trust-badges .badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.trust-badges .badge i {
    font-size: 1.2rem;
}

/* Footer */
.footer {
    background: #1e293b;
    color: white;
    padding: 3rem 0 1.5rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
    color: var(--primary-light);
}

.footer-section p {
    margin-bottom: 0.5rem;
    opacity: 0.8;
}

.footer-section i {
    margin-right: 0.5rem;
    color: var(--primary-light);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0.7;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-features {
        gap: 1.5rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .form-group {
        flex-direction: column;
    }
    
    .form-group input[type="tel"] {
        min-width: 100%;
    }
    
    .trust-badges {
        gap: 1rem;
    }
}

/* FAQ Section */
.faq-section {
    padding: 5rem 0;
    background: var(--background);
}

.faq-section .section-title {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    text-align: center;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.faq-section .section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: var(--light-text);
    margin-bottom: 3rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.faq-list {
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    background: white;
    border-radius: var(--border-radius);
    padding: 2rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
    scroll-margin-top: 100px;
}

.faq-item:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.faq-item:target {
    animation: highlight 2s ease;
}

@keyframes highlight {
    0%, 100% { background: white; }
    50% { background: var(--bg-light); }
}

.faq-question {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.faq-answer {
    color: var(--text-color);
    line-height: 1.8;
    font-size: 1.05rem;
}


/* CTA Box */
.cta-box {
    padding: 3rem 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    margin: 3rem 0;
}

.cta-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}

.cta-text h3 {
    color: white;
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cta-text h3 i {
    color: #fbbf24;
}

.cta-text p {
    color: rgba(255, 255, 255, 0.95);
    font-size: 1.1rem;
    margin: 0;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.cta-primary {
    background: white;
    color: var(--primary-color);
}

.cta-primary:hover {
    background: #f3f4f6;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.cta-secondary {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid white;
}

.cta-secondary:hover {
    background: white;
    color: var(--primary-color);
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .cta-content {
        flex-direction: column;
        text-align: center;
    }
    
    .cta-buttons {
        width: 100%;
        justify-content: center;
    }
    
    .cta-btn {
        flex: 1;
        justify-content: center;
        min-width: 150px;
    }
    
    .cta-text h3 {
        font-size: 1.5rem;
        justify-content: center;
    }
    
    .cta-text p {
        font-size: 1rem;
    }
}


/* Author Section */
.author-section {
    padding: 5rem 0;
    background: var(--bg-light);
}

.author-card {
    max-width: 1000px;
    margin: 0 auto;
    background: white;
    border-radius: var(--border-radius-lg);
    padding: 3rem;
    box-shadow: var(--shadow-lg);
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 3rem;
}

.author-image img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    border: 5px solid var(--primary-color);
}

.author-name {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.author-title {
    font-size: 1.1rem;
    color: var(--light-text);
    margin-bottom: 1.5rem;
}

.author-bio {
    margin-bottom: 2rem;
    line-height: 1.8;
}

.author-contact {
    background: var(--bg-light);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    margin-bottom: 2rem;
}

.author-contact p {
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.author-contact a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.author-contact a:hover {
    text-decoration: underline;
}

.author-expertise ul {
    list-style: none;
    padding: 0;
}

.author-expertise li {
    padding: 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

@media (max-width: 768px) {
    .author-card {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 2rem;
    }
    .author-image img {
        width: 150px;
        height: 150px;
    }
}

/* FAQ Accordion Section */
.faq-accordion-section {
    padding: 5rem 0;
    background: var(--bg-light);
}

.faq-accordion-wrapper {
    max-width: 900px;
    margin: 0 auto;
}

.faq-hidden {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease;
}

.faq-hidden.expanded {
    max-height: 100000px;
    transition: max-height 2s ease;
}

.faq-toggle-wrapper {
    text-align: center;
    margin-top: 2rem;
}

.faq-toggle-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.faq-toggle-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.faq-toggle-btn i {
    margin-right: 0.5rem;
}


/* Mobile Optimizations - Enhanced */
@media (max-width: 768px) {
    /* Sekcje - lepsze odstępy */
    section {
        padding: 2.5rem 0;
    }
    
    .container {
        padding: 0 1.25rem;
    }
    
    /* Hero - mobile */
    .hero {
        min-height: 500px;
        padding: 3rem 0;
    }
    
    .hero-title {
        font-size: 1.75rem;
        line-height: 1.3;
        margin-bottom: 1rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        line-height: 1.6;
    }
    
    .hero-badge {
        font-size: 0.9rem;
        padding: 0.5rem 1rem;
    }
    
    /* Przyciski - touch targets min 48px */
    .btn {
        min-height: 48px;
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }
    
    .btn-lg {
        min-height: 56px;
        padding: 1rem 2rem;
        font-size: 1.1rem;
    }
    
    /* Hero features - stack on mobile */
    .hero-features {
        flex-direction: column;
        gap: 0.75rem;
        align-items: flex-start;
    }
    
    .feature-item {
        font-size: 0.95rem;
    }
    
    /* Services grid - 1 kolumna na mobile */
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .service-card {
        padding: 2rem 1.5rem;
    }
    
    /* FAQ - lepsze odstępy na mobile */
    .faq-section {
        padding: 2.5rem 0;
    }
    
    .faq-item {
        padding: 1.25rem;
        margin-bottom: 1rem;
    }
    
    .faq-question {
        font-size: 1.1rem;
        line-height: 1.4;
        display: flex;
        align-items: flex-start;
        gap: 0.75rem;
    }
    
    .faq-question i {
        margin-top: 0.2rem;
        flex-shrink: 0;
    }
    
    .faq-answer {
        font-size: 0.95rem;
        line-height: 1.6;
        margin-top: 0.75rem;
    }
    
    /* FAQ Toggle Button - touch target */
    .faq-toggle-btn {
        min-height: 56px;
        padding: 1rem 2rem;
        font-size: 1.05rem;
        width: 100%;
        max-width: 100%;
    }
    
    /* Author section - mobile */
    .author-card {
        padding: 2rem 1.5rem;
    }
    
    .author-header {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }
    
    .author-avatar {
        width: 100px;
        height: 100px;
    }
    
    .author-name {
        font-size: 1.5rem;
    }
    
    .author-title {
        font-size: 1rem;
    }
    
    /* Stats - 2 kolumny na mobile */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .stat-card {
        padding: 1.5rem 1rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .stat-label {
        font-size: 0.85rem;
    }
    
    /* Phone form - mobile */
    .phone-form {
        padding: 2rem 1.5rem;
    }
    
    .form-group input,
    .form-group textarea {
        min-height: 48px;
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    .form-group textarea {
        min-height: 120px;
    }
    
    /* Section titles - mobile */
    .section-title {
        font-size: 1.75rem;
        line-height: 1.3;
        margin-bottom: 1.5rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
        line-height: 1.6;
    }
    
    /* Footer - mobile */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .footer-column {
        align-items: center;
    }
    
    .footer-links {
        align-items: center;
    }
    
    /* Back to top button - touch target */
    #backToTop,
    #scrollTopBtn {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
    }
    
    /* Floating call button - touch target */
    .floating-call-btn {
        width: 60px;
        height: 60px;
        bottom: 80px;
        right: 20px;
    }
}

/* Small mobile - extra optimizations */
@media (max-width: 480px) {
    .hero-title {
        font-size: 1.5rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .cta-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .cta-btn {
        width: 100%;
        justify-content: center;
    }
}

/* Landscape mobile - optimizations */
@media (max-width: 768px) and (orientation: landscape) {
    .hero {
        min-height: 400px;
    }
    
    .hero-title {
        font-size: 1.5rem;
    }
}



/* FAQ Section - Always Expanded */
.faq-answer {
    max-height: none !important;
    overflow: visible !important;
    display: block !important;
    opacity: 1 !important;
}

.faq-question {
    cursor: default !important;
}

.faq-question i.fa-chevron-down {
    display: none !important;
}


/* Hero CTA - Centered and Limited Width */
.hero-cta {
    margin-bottom: 3rem;
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    justify-content: center;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-cta .btn {
    flex: 0 1 auto;
    min-width: 200px;
}

/* Hero Stats - Centered */
.hero-stats {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 3rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 768px) {
    .hero-cta {
        flex-direction: column;
        align-items: stretch;
        max-width: 100%;
    }
    
    .hero-cta .btn {
        width: 100%;
        min-width: auto;
    }
    
    .hero-stats {
        gap: 1rem;
    }
}
