/* Reset i base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: #333;
    color: #333;
    overflow-x: clip;
    /* Changed from hidden to clip to allow position: sticky to work */
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
    /* Fix for fixed header covering section titles */
}

/* Variables */
:root {
    --primary-red: #dc2626;
    --primary-black: #1a1a1a;
    --gray-100: #f5f5f5;
    --gray-200: #e5e5e5;
    --gray-300: #d1d5db;
    --gray-600: #6b7280;
    --gray-800: #374151;
    --white: #ffffff;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    position: relative;
    display: flex;
    flex-direction: column;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="%23ffffff" stroke-width="0.3" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

/* Header */
.header {
    position: relative;
    z-index: 100;
    /* Increased z-index for mobile menu */
    padding: 1.5rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-image {
    max-width: 150px;
    height: auto;
    filter: drop-shadow(0 0 12px rgba(0, 0, 0, 0.9)) drop-shadow(0 0 6px rgba(0, 0, 0, 0.8)) drop-shadow(0 0 3px rgba(255, 255, 255, 0.2));
    transition: transform 0.3s ease, filter 0.3s ease;
}

.logo-image:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 0 16px rgba(0, 0, 0, 1)) drop-shadow(0 0 8px rgba(0, 0, 0, 0.9)) drop-shadow(0 0 4px rgba(255, 255, 255, 0.3));
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 101;
}

.mobile-menu-btn span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--white);
    margin: 5px 0;
    transition: all 0.3s ease;
}

/* Hero Content */
.hero-content {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: flex-start;
    position: relative;
    z-index: 5;
    padding: 2rem 0;
}

.hero-left {
    color: var(--white);
    position: sticky;
    top: 2rem;
    align-self: start;
    /* Essential for sticky to work in Grid columns */
}

/* Video Placeholder */
.video-placeholder {
    background: #f8fafc;
    border: 2px dashed #cbd5e1;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    margin-bottom: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.video-placeholder:hover {
    border-color: var(--primary-red);
    background: #fef2f2;
}

.video-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--primary-red);
    color: white;
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 500;
    font-size: 14px;
    border: none;
    cursor: pointer;
    transition: background 0.3s ease;
}

.video-btn:hover {
    background: #b91c1c;
}


.hero-title {
    font-size: 4rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 2rem;
}

.highlight {
    color: var(--primary-red);
}

.hero-subtitle {
    font-size: 1.4rem;
    color: var(--gray-300);
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

.features {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.feature {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1rem;
    font-weight: 500;
}

.feature-icon {
    font-size: 1.5rem;
    width: 2.5rem;
    text-align: center;
}

/* Calculator Card */
.calculator-card {
    background: var(--white);
    border-radius: 1.5rem;
    padding: 2.5rem;
    box-shadow: var(--shadow-xl);
    position: relative;
}

.calculator-header {
    text-align: center;
    margin-bottom: 2rem;
}

.calculator-header h2 {
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--primary-black);
    margin-bottom: 0.5rem;
}

.text-primary {
    color: var(--primary-red);
}

.calculator-header p {
    color: var(--gray-600);
    font-size: 0.975rem;
}

/* Form Styles */
.calculator-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

label {
    font-weight: 600;
    color: var(--primary-black);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

select,
input {
    padding: 0.875rem 1rem;
    border: 2px solid var(--gray-200);
    border-radius: 0.75rem;
    font-size: 0.95rem;
    background: var(--white);
    transition: all 0.2s ease;
    font-family: inherit;
}

select:focus,
input:focus {
    outline: none;
    border-color: var(--primary-red);
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

select:hover,
input:hover {
    border-color: var(--gray-300);
}

optgroup {
    font-weight: 600;
    color: var(--gray-800);
}

option {
    color: var(--gray-800);
    font-weight: 400;
}

.form-note {
    font-size: 0.8rem;
    color: var(--gray-600);
    margin-top: 0.375rem;
    font-style: italic;
}

/* Buttons */
.btn-primary,
.btn-cta {
    background: linear-gradient(135deg, var(--primary-red) 0%, #b91c1c 100%);
    color: var(--white);
    border: none;
    padding: 1rem 1.5rem;
    border-radius: 0.75rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-decoration: none;
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background: linear-gradient(135deg, var(--gray-600) 0%, var(--gray-800) 100%);
    color: var(--white);
    border: none;
    padding: 0.875rem 1.25rem;
    border-radius: 0.75rem;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-decoration: none;
    box-shadow: var(--shadow-md);
}

.btn-white {
    background: #ffffff;
    color: #2563eb;
    border: 2px solid #2563eb;
    padding: 0.875rem 1.25rem;
    border-radius: 0.75rem;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-decoration: none;
    box-shadow: var(--shadow-md);
}

.btn-white:hover {
    background: #eff6ff;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-primary:hover,
.btn-cta:hover,
.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-primary:active,
.btn-cta:active,
.btn-secondary:active {
    transform: translateY(0);
}

.calculate-btn {
    margin-top: 1rem;
    font-size: 1.1rem;
    padding: 1.25rem 1.5rem;
}

/* Price Result */
.price-result {
    margin-top: 2rem;
    padding: 2rem;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 1rem;
    border: 2px solid #e2e8f0;
}

.price-summary {
    margin-bottom: 2rem;
}

.price-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 2px solid var(--gray-200);
    margin-bottom: 1rem;
}

.price-label {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--gray-800);
}

.price-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-red);
}

.price-details {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.95rem;
    color: var(--gray-600);
}

.price-row span:last-child {
    font-weight: 600;
    color: var(--gray-800);
}

/* CTA Section */
.cta-section {
    text-align: center;
}

.quote-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.btn-cta {
    width: 100%;
    font-size: 1.1rem;
    padding: 1.25rem;
    margin-bottom: 1rem;
}

.cta-note {
    font-size: 0.9rem;
    color: var(--gray-600);
    font-style: italic;
}

/* Loading State */
.loading {
    opacity: 0.7;
    pointer-events: none;
}

.loading .btn-text {
    opacity: 0;
}

.loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid var(--white);
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }

    .hero-title {
        font-size: 3rem;
    }

    .calculator-card {
        padding: 2rem;
    }
}

/* Media Queries moved to end of file */

/* Animation dla form elements */
.form-group {
    animation: slideInUp 0.6s ease-out;
    animation-fill-mode: both;
}

.form-group:nth-child(1) {
    animation-delay: 0.1s;
}

.form-group:nth-child(2) {
    animation-delay: 0.2s;
}

.form-group:nth-child(3) {
    animation-delay: 0.3s;
}

.form-group:nth-child(4) {
    animation-delay: 0.4s;
}

.form-group:nth-child(5) {
    animation-delay: 0.5s;
}

.form-group:nth-child(6) {
    animation-delay: 0.6s;
}

.form-group:nth-child(7) {
    animation-delay: 0.7s;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Success states */
.form-group.filled select,
.form-group.filled input {
    border-color: #10b981;
    background-color: #f0fdf4;
}

/* Error states */
.form-group.error select,
.form-group.error input {
    border-color: #ef4444;
    background-color: #fef2f2;
}

.error-message {
    color: #ef4444;
    font-size: 0.8rem;
    margin-top: 0.25rem;
}

/* Navigation */
.logo-link {
    display: block;
    text-decoration: none;
}

.main-nav {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s ease;
    padding: 0.5rem 0;
    border-bottom: 2px solid transparent;
}

.nav-link:hover {
    color: var(--primary-red);
    border-bottom-color: var(--primary-red);
}

.nav-link-primary {
    background: var(--primary-red);
    color: var(--white);
    padding: 0.5rem 1.5rem;
    border-radius: 4px;
    border: none;
    text-decoration: none;
    /* Ensure no underline */
}

.nav-link-primary:hover {
    background: #b91c1c;
    border-bottom-color: transparent;
    color: var(--white);
    /* Ensure text stays white */
}

/* Section Shared Styles */
section {
    padding: 5rem 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--primary-black);
}

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

/* 8 Filarów Section */
.pillars-section {
    background: var(--white);
}

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

.pillar-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 8px;
    padding: 2rem;
    transition: all 0.3s ease;
}

.pillar-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-red);
}

.pillar-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: block;
}

.pillar-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--primary-black);
    margin-bottom: 0.75rem;
}

.pillar-text {
    color: var(--gray-600);
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Process Section */
.process-section {
    background: linear-gradient(135deg, #f5f5f5 0%, #e5e5e5 100%);
}

.process-timeline {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.process-timeline::before {
    content: '';
    position: absolute;
    left: 30px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--primary-red);
}

.process-step {
    display: flex;
    gap: 2rem;
    margin-bottom: 3rem;
    position: relative;
}

.step-number {
    width: 60px;
    height: 60px;
    background: var(--primary-red);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    flex-shrink: 0;
    z-index: 2;
    box-shadow: 0 4px 6px rgba(220, 38, 38, 0.3);
}

.step-content {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 8px;
    flex: 1;
    box-shadow: var(--shadow-md);
}

.step-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary-black);
    margin-bottom: 0.5rem;
}

.step-text {
    color: var(--gray-600);
    line-height: 1.6;
}

/* FAQ Section */
.faq-section {
    background: var(--white);
}

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

/* Updated FAQ Item Style (Permanent Gray Background) */
.faq-item {
    border: 1px solid var(--gray-200);
    border-radius: 8px;
    margin-bottom: 1rem;
    overflow: hidden;
    background-color: #f9fafb;
    /* Permanent gray background */
}

.faq-question {
    width: 100%;
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: none;
    border: none;
    text-align: left;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-black);
    transition: all 0.3s ease;
}

.faq-question:hover {
    color: var(--primary-red);
}

.faq-icon {
    font-size: 1.5rem;
    font-weight: 400;
    transition: transform 0.3s ease;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    background: var(--white);
    /* White background for answer content */
}

.faq-answer p {
    padding: 1.5rem;
    color: var(--gray-600);
    line-height: 1.6;
    border-top: 1px solid var(--gray-200);
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-item.active .faq-question {
    color: var(--primary-red);
}

.faq-item.active .faq-answer {
    max-height: 1000px;
    /* Allow expansion */
    border-top: 1px solid var(--gray-200);
}

/* Trust Section */
.trust-section {
    background: #f8fafc;
    padding: 5rem 0;
}

.section-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px;
    line-height: 1.7;
    font-size: 1.05em;
    color: #444;
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin: 25px 0;
}

.partner-logo {
    text-align: center;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100px;
}

/* Founders Section */
.founders-section {
    margin-top: 60px;
}

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

.founder-card {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.founder-photo {
    width: 100%;
    height: 250px;
    background: #eee;
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
}

.founder-bio {
    font-size: 0.95em;
    line-height: 1.6;
    color: #444;
}

/* Certificates Section */
.certificates-section {
    background: var(--white);
}

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

.certificate-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
}

.certificate-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-red);
}

.cert-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.cert-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--primary-black);
}

.cert-desc {
    font-size: 0.9rem;
    color: var(--gray-600);
    margin-bottom: 1.5rem;
}

/* Footer */
.footer {
    background: var(--primary-black);
    color: var(--white);
    padding: 4rem 0 2rem;
    /* Restored top padding for separation */
    margin-top: 4rem;
    /* Added margin to separate from content above */
}

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

.footer-col h3 {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    color: var(--white);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: var(--gray-300);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary-red);
}

/* Final CTA Section */
.final-cta-section {
    background: var(--primary-black);
    color: var(--white);
    padding: 4rem 0 2rem;
    text-align: center;
}

.final-cta-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--white);
}

.final-cta-text {
    font-size: 1.1rem;
    color: var(--gray-300);
    margin-bottom: 2rem;
}

.btn-primary-large {
    display: inline-block;
    background: var(--primary-red);
    color: var(--white);
    padding: 1rem 2rem;
    border-radius: 8px;
    font-size: 1.2rem;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.3s ease;
    margin-bottom: 1.5rem;
}

.btn-primary-large:hover {
    background: #b91c1c;
}

.final-cta-note {
    font-size: 0.9rem;
    color: var(--gray-600);
    line-height: 1.5;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    text-align: center;
    color: var(--gray-600);
    font-size: 0.9rem;
}

/* =========================================
   SUBPAGE STYLES (Hero, Content, Typography)
   ========================================= */

/* Subpage Hero */
.page-hero {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    padding: 2rem 0 4rem;
    color: var(--white);
    position: relative;
    margin-bottom: 0;
}

.page-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="%23ffffff" stroke-width="0.3" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
    pointer-events: none;
}

.hero-text-content {
    text-align: center;
    max-width: 800px;
    margin: 3rem auto 0;
    position: relative;
    z-index: 1;
}

.hero-text-content h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
    color: var(--white);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--gray-300);
}

/* Content Section & Typography */
.content-section {
    padding: 4rem 0;
    background: var(--white);
}

.blog-article {
    max-width: 800px;
    margin: 0 auto;
}

.article-tag {
    display: inline-block;
    background: var(--gray-100);
    color: var(--primary-red);
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.blog-article h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-black);
    margin-bottom: 1.5rem;
    line-height: 1.3;
}

.article-content {
    font-size: 1.125rem;
    color: var(--gray-800);
    line-height: 1.8;
}

.article-content p {
    margin-bottom: 1.5rem;
}

.article-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-black);
    margin: 2rem 0 1rem;
}

.article-divider {
    border: 0;
    border-top: 1px solid var(--gray-200);
    margin: 4rem 0;
}

/* Footer Logo Fix */
.footer-logo {
    max-width: 150px;
    height: auto;
    margin-bottom: 1rem;
}

/* =========================================
   CONTENT BLOCKS (O Nas & General)
   ========================================= */
.content-block {
    max-width: 800px;
    margin: 0 auto 3rem;
    font-size: 1.1rem;
    color: var(--gray-800);
    line-height: 1.8;
}

.content-block h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-black);
    margin-bottom: 1.5rem;
}

.content-block p {
    margin-bottom: 1.5rem;
}

.highlight-block {
    background: var(--gray-100);
    padding: 2.5rem;
    border-radius: 1rem;
    border-left: 4px solid var(--primary-red);
}

.feature-list,
.check-list {
    list-style: none;
    margin: 1.5rem 0;
}

.feature-list li,
.check-list li {
    margin-bottom: 0.75rem;
    padding-left: 1.5rem;
    position: relative;
}

.feature-list li::before {
    content: '•';
    color: var(--primary-red);
    font-weight: bold;
    position: absolute;
    left: 0;
}

.check-list li::before {
    content: '✓';
    color: var(--primary-red);
    font-weight: bold;
    position: absolute;
    left: 0;
}

/* =========================================
   COMPARISON TABLE (Baza Wiedzy)
   ========================================= */
.table-responsive {
    overflow-x: auto;
    margin: 2rem 0;
    border-radius: 0.5rem;
    box-shadow: var(--shadow-sm);
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
    min-width: 600px;
    /* Ensure it doesn't squish too much */
}

.comparison-table th,
.comparison-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--gray-200);
}

.comparison-table th {
    background: var(--primary-black);
    color: var(--white);
    font-weight: 600;
}

.comparison-table tr:last-child td {
    border-bottom: none;
}

.comparison-table tr:nth-child(even) {
    background: var(--gray-100);
}

/* =========================================
   CONTACT PAGE STYLES
   ========================================= */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.contact-info-card h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--primary-black);
}

.contact-info-card>p {
    color: var(--gray-600);
    margin-bottom: 3rem;
    font-size: 1.1rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.contact-item .icon-wrapper {
    width: 50px;
    height: 50px;
    background: #fef2f2;
    /* Light red background */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary-red);
    flex-shrink: 0;
}

.contact-item strong {
    display: block;
    font-size: 1.1rem;
    color: var(--primary-black);
    margin-bottom: 0.25rem;
}

.contact-item p {
    color: var(--gray-600);
    margin: 0;
    line-height: 1.4;
}

.map-container {
    height: 100%;
    min-height: 500px;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.map-container iframe {
    width: 100%;
    height: 100%;
    min-height: 500px;
}

/* =========================================
   TEAM / FOUNDERS SECTION STYLES
   ========================================= */
.founders-section {
    padding: 0 0 6rem;
    /* Reduced top padding from 4rem to 0 */
    background: var(--white);
}

.founders-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 4rem;
    color: var(--primary-black);
}

.founders-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.founder-card {
    background: var(--white);
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--gray-200);
}

.founder-image-placeholder {
    width: 100%;
    height: 300px;
    background-color: #e5e5e5;
    /* Gray placeholder */
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    color: var(--gray-600);
    font-weight: 600;
}

.founder-content {
    padding: 2rem;
}

.founder-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-black);
    margin-bottom: 0.5rem;
}

.founder-role {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--primary-red);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1.5rem;
}

.founder-bio {
    font-size: 1rem;
    color: var(--gray-600);
    line-height: 1.6;
}

/* =========================================
   MEDIA QUERIES (Must be at the end)
   ========================================= */
@media (max-width: 768px) {

    .contact-grid,
    .founders-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .map-container {
        min-height: 300px;
    }

    .map-container iframe {
        min-height: 300px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }

    /* Mobile Menu Styles */
    .mobile-menu-btn {
        display: block;
    }

    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(26, 26, 26, 0.98);
        flex-direction: column;
        padding: 2rem;
        gap: 1.5rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        backdrop-filter: blur(10px);
        z-index: 9998;
        /* Force above content */
    }

    .main-nav.active {
        display: flex;
    }

    .hero-content {
        grid-template-columns: 1fr;
        /* Fix for mobile overlap */
        gap: 2rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .calculator-card {
        padding: 1.5rem;
        border-radius: 1rem;
    }

    .calculator-header h2 {
        font-size: 1.5rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .features {
        align-items: center;
    }

    .logo-symbol {
        font-size: 2rem;
    }

    .company-name {
        font-size: 1.25rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .calculator-card {
        padding: 1rem;
    }

    .price-main {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }

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

    .quote-actions {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
}

/* =========================================
   CRITICAL MOBILE FIXES (2025-12-20 - Final)
   ========================================= */

/* 1. Global Overflow Protection */
html,
body {
    overflow-x: hidden;
    /* Prevent horizontal scroll */
    width: 100%;
    position: relative;
}

/* 2. Container & Layout Constraint */
.container {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    /* Ensure content doesn't spill */
    padding: 0 1.25rem;
    /* Ensure safe edges */
}

/* 3. Hero Section Fixes */
.hero-content {
    width: 100%;
    max-width: 100vw;
    box-sizing: border-box;
    /* Ensure grid doesn't overflow */
    display: flex;
    /* Switch to Flex on mobile for better control than grid */
    flex-direction: column;
    gap: 2rem;
}

.hero-left,
.hero-right {
    width: 100%;
    max-width: 100%;
}

.calculator-card {
    width: 100%;
    max-width: 100%;
    padding: 1.5rem !important;
    margin: 0 !important;
    box-sizing: border-box;
}

/* 4. Form Flex Row Stacking */
.form-flex-row {
    display: flex;
    flex-direction: column;
    /* Force vertical stack on mobile by default if screen small */
    gap: 1rem;
    width: 100%;
}

.flex-grow-2,
.flex-grow-1 {
    width: 100%;
    flex: auto;
}

/* 5. Menu Visibility & Clickability */
.mobile-menu-btn {
    z-index: 9999 !important;
    /* Force on top */
    position: relative;
    display: block;
    /* Ensure visible */
}

.mobile-menu-btn span {
    background-color: var(--white) !important;
    height: 3px;
    width: 30px;
    margin: 6px 0;
}

/* Desktop Overrides for Flex Row (restore for larger screens) */
@media (min-width: 769px) {
    .form-flex-row {
        flex-direction: row;
    }

    .hero-content {
        display: grid;
        /* Restore grid for desktop */
        grid-template-columns: 1fr 1fr;
    }

    .mobile-menu-btn {
        display: none;
    }
}

/* 6. Typography Scaling (Mobile Specific) */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.2rem !important;
        word-wrap: break-word;
        /* Prevent text overflow */
    }

    .price-value {
        font-size: 1.8rem !important;
    }

    .header {
        padding: 1rem 0;
    }

    /* Ensure Inputs don't overflow */
    select,
    input {
        width: 100%;
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.8rem !important;
    }

    .container {
        padding: 0 1rem;
    }
}