/* Import czcionki z Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap');

/* Definicje zmiennych kolorystycznych i globalne style */
:root {
    --primary-color: #060644;
    --background-color: #FFFFFF;
    --text-color: #060644;
    --accent-color: #CE2F20;
    --utility-color: #EDF5F9;
    --shadow-black: #cccccc;
    --white: #FFFFFF;
    --border-color: #e0e0e0;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
    font-size: 17px;
    line-height: 1.7;
    color: var(--text-color);
    background-color: var(--background-color);
}

body.mobile-menu-open {
    overflow: hidden;
}

/* Kontener */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Sekcje */
section {
    padding: 80px 0;
    overflow: hidden;
}

.section-bg {
    background-color: var(--utility-color);
}

/* Animacje przy przewijaniu */
.fade-in-section {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-section.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Typografia */
h1, h2, h3 {
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 20px;
}

h1 {
    font-size: 32px;
    line-height: 1.2;
}

h2 {
    font-size: 32px;
    text-align: center;
    margin-bottom: 40px;
}

h2 .line-accent {
    position: relative;
    display: inline-block;
}

h2 .line-accent::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 4px;
    background-color: var(--accent-color);
    bottom: -8px;
    left: 0;
}

h3 {
    font-size: 24px;
}

p {
    margin-bottom: 16px;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Komponenty */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border: 2px solid var(--primary-color);
    border-radius: 100px;
    background-color: transparent;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 700;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn:hover {
    background-color: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

/* Nagłówek i Nawigacja */
.main-header {
    padding: 15px 0;
    position: sticky;
    top: 0;
    background: var(--background-color);
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 40px;
    width: auto;
}

.main-nav {
    display: none;
    align-items: center;
    gap: 25px;
}

.main-nav ul {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 25px;
}

.main-nav a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 700;
    transition: color 0.3s ease;
    font-size: 15px;
}

.main-nav a:hover {
    color: var(--accent-color);
}

.header-phone-badge {
    display: inline-block;
    background-color: var(--accent-color);
    color: var(--white) !important;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color 0.3s ease;
}

.header-phone-badge:hover {
    background-color: #b8261a;
    color: var(--white) !important;
}

.btn-menu {
    padding: 8px 20px;
    font-size: 15px;
    border-color: var(--accent-color);
    color: var(--accent-color);
}

.main-nav .btn-menu:hover {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    color: var(--white);
}

/* Hamburger Menu */
.hamburger-button {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1010;
}

.hamburger-button span {
    width: 30px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 10px;
    transition: all 0.3s linear;
}

/* Mobile Menu */
.mobile-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--primary-color);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transform: translateX(-100%);
    transition: transform 0.3s ease-in-out;
    overflow-y: auto;
}

.mobile-nav.is-open {
    transform: translateX(0);
}

.mobile-nav ul {
    list-style: none;
    text-align: center;
    margin-bottom: 20px;
}

.mobile-nav li {
    margin-bottom: 30px;
}

.mobile-nav a {
    color: var(--white);
    text-decoration: none;
    font-size: 24px;
    font-weight: 700;
}

.mobile-nav-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 0 20px;
    margin-top: 20px;
    margin-bottom: 40px;
    align-items: center;
    width: 100%;
}

.mobile-phone-badge {
    display: inline-block;
    background-color: var(--accent-color);
    color: var(--white) !important;
    padding: 12px 24px;
    border-radius: 20px;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    text-align: center;
    width: 100%;
    max-width: 300px;
    transition: background-color 0.3s ease;
}

.mobile-phone-badge:hover {
    background-color: #b8261a;
    color: var(--white) !important;
}

.btn-mobile-menu {
    width: 100%;
    max-width: 300px;
    text-align: center;
    border-color: var(--accent-color);
    color: var(--accent-color);
}

.btn-mobile-menu:hover {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    color: var(--white);
}

/* SEKCJA HERO - POPRAWIONA */
#hero {
    padding: 60px 0 0 0;
    min-height: 80vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    background-color: #FFFFFF;
}

/* Hero Background */
.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #FFFFFF;
    z-index: -1;
}
#hero .container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}
.hero-text {
    max-width: 600px;
}
.hero-text h2 {
    font-size: 20px;
    font-weight: 400;
    max-width: 700px;
    margin: 20px 0 30px;
    color: var(--text-color);
    text-align: left;
}
.hero-image-wrapper {
    margin-top: 40px;
    margin-bottom: -100px;
    width: 100%;
    max-width: 650px;
    position: relative;
    z-index: 10;
}
.hero-image-wrapper img {
    position: relative;
    z-index: 2;
}
.hero-decoration {
    position: absolute;
    background-color: rgba(206, 47, 32, 0.3);
    border-radius: 8px;
    z-index: 1;
    width: 80%;
    height: 80%;
    bottom: -25px;
    right: -25px;
    display: none;
}

/* Hero Benefits List */
.hero-benefits {
    list-style: none;
    margin: 30px 0;
    padding: 0;
}

.hero-benefits li {
    position: relative;
    padding-left: 35px;
    margin-bottom: 15px;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-color);
}

.hero-benefits li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 0;
    width: 25px;
    height: 25px;
    background-color: var(--accent-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
}

/* Hero Badge */
.hero-badge {
    display: inline-block;
    background-color: var(--accent-color);
    color: var(--white);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 20px;
}

/* Hero Subtitle */
.hero-subtitle {
    font-size: 18px;
    color: #666;
    line-height: 1.5;
    margin-bottom: 30px;
    max-width: 500px;
}

/* Hero H1 - Smaller font size */
.hero-text h1 {
    font-size: 28px;
}

/* CTA Group */
.hero-cta-group {
    display: flex;
    flex-direction: column;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
}

.hero-cta-group .btn {
    width: 100%;
    max-width: 100%;
    text-align: center;
    box-sizing: border-box;
}

.btn-phone {
    background-color: var(--accent-color);
    color: var(--white);
    border: 2px solid var(--accent-color);
}

.btn-phone:hover {
    background-color: #b8261a;
    border-color: #b8261a;
    color: var(--white);
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
    border: 2px solid var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

/* Hero Stats */
.hero-stats {
    position: absolute;
    bottom: -20px;
    right: 20px;
    background: var(--white);
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    display: none;
    gap: 30px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 24px;
    font-weight: 700;
    color: var(--accent-color);
}

.stat-label {
    font-size: 12px;
    color: #666;
    text-transform: uppercase;
}

/* Why Us Section - Add padding to title */
#why-us {
    padding-top: 0;
}

#why-us h2 {
    padding-top: 60px;
}

/* Target Audience Section */
.target-audience-grid {
    display: grid;
    gap: 30px;
    grid-template-columns: 1fr;
    margin-bottom: 50px;
}

@media (min-width: 768px) {
    .target-audience-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.audience-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 30px 25px;
    text-align: center;
    transition: all 0.3s ease;
}

.audience-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(6, 6, 68, 0.1);
}

.audience-card .icon {
    margin: 0 auto 20px;
    width: 50px;
    height: 50px;
}

.audience-card .custom-icon {
    margin: 0 auto 20px;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.audience-card h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.audience-card p {
    font-size: 15px;
    color: #555;
    line-height: 1.6;
    margin-bottom: 0;
}

/* CTA Section */
.cta-section {
    background-color: #060645;
    color: var(--white);
    text-align: center;
    padding: 80px 0;
}

.cta-section h2 {
    color: var(--white);
    font-size: 32px;
    margin-bottom: 20px;
}

.cta-section p {
    color: var(--white);
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.btn-cta {
    background-color: var(--white);
    color: var(--accent-color);
    border-color: var(--white);
    font-weight: 700;
    padding: 15px 35px;
    font-size: 16px;
}

.btn-cta:hover {
    background-color: var(--accent-color);
    color: var(--white);
    border-color: var(--accent-color);
}

/* Comparison Grid */
.comparison-grid {
    margin-top: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    overflow: hidden;
    background: var(--white);
}

@media (max-width: 767px) {
    .comparison-grid {
        background: transparent;
        box-shadow: none;
    }
}

.comparison-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    border-bottom: 1px solid var(--border-color);
}

.comparison-row:last-child {
    border-bottom: none;
}

.comparison-header {
    border-bottom: 3px solid var(--border-color);
}

.comparison-cell {
    padding: 20px 15px;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.feature-header,
.feature-name {
    background-color: var(--white);
    color: var(--primary-color);
    font-weight: 700;
    justify-content: flex-start;
}

.spotmed-header {
    background-color: var(--white);
    color: var(--primary-color);
    font-weight: 700;
    justify-content: center;
}

.others-header {
    background-color: var(--white);
    color: var(--primary-color);
    font-weight: 700;
    justify-content: center;
}

.feature-name {
    font-size: 15px;
}

.spotmed-feature {
    background-color: var(--white);
    border-left: 4px solid var(--white);
    font-size: 14px;
}

.others-feature {
    background-color: var(--white);
    border-left: 4px solid var(--white);
    font-size: 14px;
}

.spotmed-feature span:last-child,
.others-feature span:last-child {
    flex: 1;
    line-height: 1.4;
}

.check-icon {
    display: inline-block;
    width: 20px;
    height: 20px;
    background-color: #28a745;
    color: var(--white);
    border-radius: 50%;
    text-align: center;
    line-height: 20px;
    font-size: 12px;
    font-weight: 700;
    flex-shrink: 0;
}

.cross-icon {
    display: inline-block;
    width: 20px;
    height: 20px;
    background-color: #dc3545;
    color: var(--white);
    border-radius: 50%;
    text-align: center;
    line-height: 20px;
    font-size: 12px;
    font-weight: 700;
    flex-shrink: 0;
}


/* Testimonials Section */
.testimonials-grid {
    display: grid;
    gap: 30px;
    grid-template-columns: 1fr;
    margin-top: 40px;
}

.testimonial-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    position: relative;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(6, 6, 68, 0.1);
}

.testimonial-content {
    margin-bottom: 20px;
}

.testimonial-content p {
    font-style: italic;
    color: #555;
    line-height: 1.6;
    margin-bottom: 0;
    font-size: 16px;
}

.testimonial-author {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.testimonial-author strong {
    color: var(--primary-color);
    font-size: 16px;
}

.testimonial-author span {
    color: var(--accent-color);
    font-size: 14px;
    font-weight: 500;
}

/* Pozostałe sekcje */
.products-grid { display: grid; gap: 30px; grid-template-columns: 1fr; }
.product-card { background: var(--white); border: 1px solid var(--border-color); border-radius: 8px; text-align: center; padding: 20px; transition: all 0.3s ease; display: flex; flex-direction: column; }
.product-card:hover { transform: translateY(-5px); box-shadow: 0 10px 25px rgba(6, 6, 68, 0.1); }
.product-card img { height: 200px; width: auto; margin: 0 auto 20px; object-fit: contain; }
.product-card h3 { font-size: 22px; margin-bottom: 10px; }
.product-card p { font-size: 15px; color: #555; flex-grow: 1; }
.btn-view-product { margin-top: auto; }
.why-us-grid { display: grid; gap: 20px; grid-template-columns: 1fr; }
.why-us-card { 
    text-align: center; 
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 30px 25px;
    transition: all 0.3s ease;
}
.why-us-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(6, 6, 68, 0.1);
}
.why-us-card .icon { margin: 0 auto 20px; width: 50px; height: 50px; }
.why-us-card h3 { font-size: 20px; margin-bottom: 10px; }
.why-us-card p { font-size: 15px; color: #555; line-height: 1.6; margin-bottom: 0; }
.pain-points-list { display: grid; gap: 30px; margin-top: 40px; grid-template-columns: 1fr; }
.pain-point { background: var(--white); padding: 25px; border-radius: 8px; box-shadow: 0 4px 15px rgba(0,0,0,0.05); border-left: 5px solid var(--accent-color); position: relative; }
.pain-point h3 { margin-bottom: 10px; font-size: 20px; }
.pain-point-icon {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 32px;
    color: var(--accent-color);
    font-weight: 700;
    line-height: 1;
}
#solution .solution-benefits { display: grid; gap: 30px; grid-template-columns: 1fr; margin-top: 40px; }
.benefit-card { background-color: var(--white); border: 1px solid var(--border-color); border-radius: 8px; padding: 25px; display: flex; flex-direction: column; align-items: flex-start; text-align: left; transition: all 0.3s ease; }
.benefit-card:hover { transform: translateY(-5px); box-shadow: 0 10px 25px rgba(6, 6, 68, 0.1); }
.benefit-card .icon-placeholder { width: 50px; height: 50px; border-radius: 50%; background-color: var(--accent-color); margin-bottom: 20px; display: flex; align-items: center; justify-content: center; color: var(--white); font-size: 24px; font-weight: 700; }
.benefit-card h3 { font-size: 20px; margin-bottom: 10px; }
.social-proof-content { display: grid; gap: 40px; }
.testimonial { background: var(--white); padding: 25px; border-radius: 8px; border-left: 5px solid var(--primary-color); }
.testimonial blockquote { margin: 0 0 15px 0; font-style: italic; color: #555; }
.testimonial footer { margin-top: 15px; font-weight: 700; text-align: right; }
.process-reworked-list { display: flex; flex-direction: column; gap: 40px; }
.process-reworked-item { display: flex; flex-direction: column; gap: 20px; }
.process-text-content { display: flex; gap: 20px; align-items: flex-start; }
.process-text-content .number { font-weight: 700; font-size: 24px; color: var(--white); background: var(--primary-color); width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.process-text-content h3 { font-size: 20px; margin-bottom: 5px; }
.process-image { border-radius: 8px; overflow: hidden; box-shadow: 0 5px 15px rgba(0,0,0,0.08); }
.process-image img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/3; }
#team { text-align: center; }
#team p { max-width: 800px; margin-left: auto; margin-right: auto; margin-bottom: 40px; }
.team-gallery { border-radius: 8px; overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,0.1); max-width: 900px; margin: 0 auto; }
#faq .container { max-width: 900px; }
.faq-list { margin-top: 40px; border-top: 1px solid var(--border-color); }
.faq-item { border-bottom: 1px solid var(--border-color); }
.faq-question { padding: 20px 0; cursor: pointer; display: flex; justify-content: space-between; align-items: center; font-weight: 700; font-size: 18px; }
.faq-question:hover { color: var(--accent-color); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.3s ease, padding 0.3s ease; padding: 0 20px; }
.faq-answer p { margin: 0; }
.faq-item.active .faq-answer { max-height: 300px; padding: 0 20px 20px 0; }
.faq-toggle { position: relative; width: 20px; height: 20px; transition: transform 0.3s ease; flex-shrink: 0; margin-left: 20px; }
.faq-toggle::before, .faq-toggle::after { content: ''; position: absolute; background-color: var(--primary-color); transition: transform 0.3s ease; }
.faq-toggle::before { width: 100%; height: 2px; top: 50%; transform: translateY(-50%); }
.faq-toggle::after { width: 2px; height: 100%; left: 50%; transform: translateX(-50%); }
.faq-item.active .faq-toggle { transform: rotate(45deg); }
.faq-item.active .faq-toggle::after { transform: translateX(-50%) scale(0); }
#contact { padding: 0; position: relative; background-color: var(--primary-color); }
.contact-background { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.25; }
#contact .container { position: relative; z-index: 2; padding: 60px 20px; display: flex; justify-content: flex-end; align-items: center; min-height: 70vh; }
.contact-form-wrapper { background: var(--white); padding: 40px; border-radius: 8px; box-shadow: 0 10px 40px rgba(0,0,0,0.1); width: 100%; }
.contact-form-wrapper h2 { text-align: left; font-size: 28px; }
.contact-form-wrapper p { margin-bottom: 30px; }
.contact-form { display: grid; gap: 15px; }
.form-input { width: 100%; padding: 12px 15px; border: 1px solid var(--border-color); border-radius: 4px; font-size: 16px; transition: all 0.3s ease; background-color: var(--white); }
.form-input:focus { outline: none; border-color: var(--primary-color); box-shadow: 0 0 0 2px rgba(6, 6, 68, 0.2); }
textarea.form-input { resize: vertical; min-height: 100px; }
.form-select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L6 6L11 1' stroke='%23060644' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 15px center; padding-right: 40px; cursor: pointer; }
.form-checkbox-field { margin-top: 10px; }
.form-checkbox-label { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; font-size: 14px; line-height: 1.5; color: var(--text-color); }
.form-checkbox { margin-top: 3px; width: 18px; height: 18px; min-width: 18px; cursor: pointer; accent-color: var(--primary-color); }
.form-checkbox-label span { flex: 1; }
.btn-submit { background-color: var(--white); color: var(--primary-color); border: 2px solid var(--primary-color); display: flex; align-items: center; justify-content: center; gap: 8px; }
.btn-submit:hover { background-color: var(--primary-color); color: var(--white); border-color: var(--primary-color); }
.btn-submit:hover .submit-icon path { stroke: var(--white); }
.submit-icon { flex-shrink: 0; }
.main-footer { 
    background-color: var(--primary-color); 
    color: var(--white); 
    padding: 60px 0 20px; 
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    color: var(--white);
    font-size: 24px;
    margin-bottom: 15px;
}

.footer-section h4 {
    color: var(--white);
    font-size: 18px;
    margin-bottom: 20px;
    font-weight: 700;
}

.footer-section p {
    color: #ccc;
    line-height: 1.6;
    margin-bottom: 15px;
}

.footer-logo {
    height: 40px;
    width: auto;
    margin-bottom: 15px;
    filter: brightness(0) invert(1);
}

.contact-info p {
    margin-bottom: 20px;
}

.contact-info strong {
    color: var(--white);
}

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

.footer-links li {
    padding: 5px 0;
    color: #ccc;
}

.footer-social {
    margin-top: 25px;
}

.footer-social h4 {
    font-size: 16px;
    margin-bottom: 15px;
    color: var(--white);
}

.social-icons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.social-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--accent-color);
    border-radius: 8px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-icon:hover {
    background-color: #b8261a;
    transform: translateY(-2px);
}

.social-icon svg {
    width: 24px;
    height: 24px;
}

.social-icon-instagram {
    border-radius: 12px;
}

.social-icon-youtube {
    border-radius: 8px;
}

.legal-info p {
    font-size: 14px;
    margin-bottom: 10px;
    color: #ccc;
    line-height: 1.5;
}

.footer-phone, .footer-email {
    display: block;
    color: var(--white);
    text-decoration: none;
    font-weight: 700;
    font-size: 18px;
    margin: 10px 0;
    padding: 10px 15px;
    background-color: var(--accent-color);
    border-radius: 6px;
    text-align: center;
    transition: all 0.3s ease;
}

.footer-phone:hover, .footer-email:hover {
    background-color: #b8261a;
    transform: translateY(-2px);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.2);
    padding-top: 30px;
    text-align: center;
}

.footer-bottom p {
    color: #ccc;
    font-size: 14px;
    margin-bottom: 5px;
}

/* Responsywność dla porównania */
@media (max-width: 767px) {
    .comparison-grid {
        display: flex;
        flex-direction: column;
        gap: 20px;
        margin-left: -20px;
        margin-right: -20px;
        padding: 0 20px;
        width: calc(100% + 40px);
    }
    
    .comparison-row {
        grid-template-columns: 1fr;
        gap: 0;
        border: 1px solid var(--border-color);
        border-radius: 8px;
        overflow: hidden;
        background: var(--white);
        box-shadow: 0 2px 8px rgba(0,0,0,0.05);
        width: 100%;
        max-width: 100%;
    }
    
    .comparison-header {
        display: none;
    }
    
    .comparison-cell {
        border-bottom: 1px solid var(--border-color);
        padding: 15px;
        background-color: var(--white);
    }
    
    .comparison-row .comparison-cell:first-child {
        background-color: var(--utility-color);
        font-weight: 700;
        font-size: 16px;
        color: var(--primary-color);
        border-bottom: 2px solid var(--primary-color);
    }
    
    .spotmed-feature,
    .others-feature {
        background-color: var(--white) !important;
    }
    
    .comparison-row .comparison-cell:last-child {
        border-bottom: none;
    }
    
    .spotmed-feature {
        background-color: transparent !important;
        border-left: 4px solid #28a745;
        padding-left: 20px;
        position: relative;
    }
    
    .spotmed-feature::before {
        content: '✓ Spotmed';
        display: block;
        font-weight: 700;
        color: #28a745;
        margin-bottom: 8px;
        font-size: 14px;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }
    
    .others-feature {
        background-color: transparent !important;
        border-left: 4px solid #dc3545;
        padding-left: 20px;
        position: relative;
    }
    
    .others-feature::before {
        content: '✗ Konkurencja';
        display: block;
        font-weight: 700;
        color: #dc3545;
        margin-bottom: 8px;
        font-size: 14px;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }
    
    .spotmed-feature .check-icon,
    .others-feature .cross-icon {
        display: none;
    }
    
    .spotmed-feature span:last-child,
    .others-feature span:last-child {
        display: block;
        margin-top: 0;
    }
}

/* Product Popup Styles */
.product-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.product-popup.active {
    opacity: 1;
    visibility: visible;
}

.product-popup-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    cursor: pointer;
}

.product-popup-content {
    position: relative;
    background: var(--white);
    width: 95%;
    max-width: 1200px;
    max-height: 90vh;
    overflow-y: auto;
    border-radius: 12px;
    padding: 40px;
    z-index: 2001;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.product-popup-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: transparent;
    border: none;
    font-size: 36px;
    color: var(--primary-color);
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transition: color 0.3s ease;
    z-index: 2002;
}

.product-popup-close:hover {
    color: var(--accent-color);
}

.product-popup-header {
    text-align: center;
    margin-bottom: 30px;
}

.product-popup-header h2 {
    font-size: 32px;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.product-popup-title-line {
    width: 100px;
    height: 4px;
    background-color: var(--accent-color);
    margin: 0 auto;
}

.product-popup-body {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

.product-popup-gallery {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.product-main-image-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 8px;
    background: #f5f5f5;
}

.product-main-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.product-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    border: 3px solid var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.badge-content {
    text-align: center;
    font-size: 12px;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1.3;
}

.badge-text {
    margin: 2px 0;
}

.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: var(--white);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
    z-index: 10;
}

.gallery-nav-prev {
    left: 10px;
}

.gallery-nav-next {
    right: 10px;
}

.gallery-nav:hover {
    background: rgba(0, 0, 0, 0.7);
}

.product-thumbnails {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.thumbnail {
    width: 120px;
    height: 120px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 3px solid transparent;
    transition: border-color 0.3s ease;
}

.thumbnail.active {
    border-color: var(--accent-color);
}

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

.product-popup-specs {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.product-description {
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-color);
}

.product-features-section {
    margin-top: 20px;
}

.product-features-section h3 {
    font-size: 20px;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: 700;
}

.product-features-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.product-features-list li {
    padding: 8px 0;
    padding-left: 30px;
    position: relative;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-color);
}

.product-features-list .checkmark {
    position: absolute;
    left: 0;
    top: 8px;
    color: var(--accent-color);
    font-weight: 700;
    font-size: 18px;
}

.product-popup-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.btn-view-product {
    margin-top: 20px;
    width: 100%;
}

.btn-popup-contact,
.btn-popup-phone {
    flex: 1;
    min-width: 200px;
    text-align: center;
    padding: 15px 30px;
    font-size: 16px;
    border: 2px solid var(--primary-color);
    background: transparent;
    color: var(--primary-color);
}

.btn-popup-contact:hover,
.btn-popup-phone:hover {
    background: var(--primary-color);
    color: var(--white);
}

/* Funding Popup Styles */
.funding-popup-image-wrapper {
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
}

.funding-popup-image-wrapper img {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
}

.funding-popup-content {
    width: 100%;
}

.funding-popup-content .product-description {
    margin-bottom: 30px;
}

.btn-view-funding {
    margin-top: auto;
}

/* Funding popup layout - zdjęcie po lewej, treść po prawej na desktopie */
@media (min-width: 1024px) {
    #funding-popup .product-popup-body {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
    
    .funding-popup-image-wrapper {
        align-self: start;
    }
}

/* --- STYLE RESPONSYWNE --- */
@media (min-width: 768px) {
    h1 { font-size: 36px; }
    .hero-text h1 { font-size: 32px; }
    h2 { font-size: 37px; }
    .products-grid { grid-template-columns: repeat(3, 1fr); }
    #funding .products-grid { grid-template-columns: repeat(2, 1fr); }
    .why-us-grid { grid-template-columns: repeat(2, 1fr); }
    .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
    #solution .solution-benefits { grid-template-columns: repeat(3, 1fr); }
    .social-proof-content { grid-template-columns: repeat(2, 1fr); gap: 30px; }
    .process-reworked-item { flex-direction: row; align-items: center; }
    .process-reworked-item:nth-child(even) { flex-direction: row-reverse; }
    .process-text-content { flex: 1; }
    .process-image { flex: 1; }
    .contact-form { grid-template-columns: repeat(2, 1fr); }
    .form-field-full { grid-column: 1 / -1; }
    .contact-form-wrapper { width: 80%; max-width: 650px; }
    .footer-content { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
    section { padding: 120px 0; }
    .hamburger-button { display: none; }
    .main-nav { display: flex; }
    h1 { font-size: 40px; }
    .hero-text h1 { font-size: 36px; }
    #hero .container {
        flex-direction: row;
        text-align: left;
        gap: 80px;
    }
    .hero-text {
        flex: 1 1 40%;
        text-align: left;
    }
    .hero-text h1, .hero-text h2 {
        text-align: left;
    }
    .hero-subtitle {
        text-align: left;
    }
    .hero-cta-group {
        justify-content: flex-start;
        flex-direction: row;
        align-items: center;
    }
    
    .hero-cta-group .btn {
        flex: 1;
        min-width: 0;
        width: auto;
    }
    .hero-image-wrapper {
        flex: 1 1 60%;
        margin-top: 0;
        margin-bottom: -150px;
        position: relative;
    }
    .hero-decoration {
        display: none;
    }
    .hero-stats {
        display: flex;
    }
    .why-us-grid { grid-template-columns: repeat(3, 1fr); }
    .testimonials-grid { grid-template-columns: repeat(3, 1fr); }
    .footer-content { grid-template-columns: repeat(4, 1fr); }
    
    /* Product Popup Desktop Styles */
    .product-popup-body {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
    
    .product-popup-content {
        padding: 50px;
    }
    
    .product-popup-header h2 {
        font-size: 40px;
    }
    
    .btn-view-product {
        width: auto;
        margin-top: 20px;
    }
}
