/* Główne Zmienne i Resety */
:root {
    --navy: #00294B;
    --teal: #5ECDFC;
    --text-dark: #444;
    --text-light: #777;
    --star-green: #4caf50; 
    --bg-light: #f8f9fb;
    --faq-border: #e0e6ed;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Montserrat', sans-serif; color: var(--text-dark); line-height: 1.6; overflow-x: hidden; }
.container { max-width: 1140px; margin: 0 auto; padding: 0 20px; width: 100%; }
.section-padding { padding: 80px 0; }
.bg-light { background-color: var(--bg-light); }

/* Typografia ogólna */
h1 { font-size: 32px; font-weight: 800; margin-bottom: 20px; line-height: 1.2; }
h1 span { color: var(--teal); }
h2.section-title { text-align: center; font-size: 28px; margin-bottom: 40px; color: var(--navy); font-weight: 800; }
h2.section-title-left { font-size: 24px; margin-bottom: 10px; color: var(--navy); font-weight: 800; }

/* Header */
header { padding: 15px 0; border-bottom: 1px solid #eee; background: #fff; position: sticky; top: 0; z-index: 1000; }
.nav-wrapper { display: flex; justify-content: space-between; align-items: center; }
.logo { font-size: 24px; font-weight: 800; color: var(--navy); flex-shrink: 0; }
.logo span { color: var(--teal); }
nav ul { display: flex; list-style: none; gap: 20px; }
nav a { text-decoration: none; color: var(--navy); font-size: 14px; font-weight: 600; transition: 0.3s; }
nav a:hover { color: var(--teal); }
.contact-info { display: flex; align-items: center; gap: 15px; }
.contact-info span { font-weight: 700; color: var(--navy); font-size: 14px; }
.btn-cta { background: var(--teal); color: white; padding: 10px 20px; border-radius: 5px; text-decoration: none; font-weight: 700; font-size: 13px; transition: 0.3s; }
.btn-cta:hover { background: var(--navy); }

/* Hero */
.hero { background: var(--navy); color: white; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 30px; }
.hero-content { padding: 60px 0; }
.hero-img img { width: 100%; display: block; height: auto; }
.btn-hero { background: var(--teal); color: white; padding: 15px 35px; border-radius: 5px; text-decoration: none; display: inline-block; font-weight: bold; transition: 0.3s; margin-top: 30px;}
.btn-hero:hover { background: #fff; color: var(--navy); }

/* Trust Bar */
.trust-bar { background: #fff; padding: 15px 0; border-bottom: 1px solid #eee; }
.trust-wrapper { display: flex; justify-content: center; gap: 40px; font-size: 14px; color: var(--navy); font-weight: 600; flex-wrap: wrap; text-align: center; }
.trust-wrapper i { color: var(--teal); margin-right: 8px; }

/* Why Us */
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.why-card { border: 1px solid #e0e0e0; padding: 40px 20px; border-radius: 10px; text-align: center; background: #fff; }
.why-card i { font-size: 40px; color: var(--navy); margin-bottom: 20px; }
.why-card h3 { font-size: 16px; margin-bottom: 15px; color: var(--navy); text-transform: uppercase; }

/* Wskazania */
.wskazania-wrapper { text-align: center; }
.section-subtitle { font-size: 22px; color: var(--text-light); margin-bottom: 40px; max-width: 600px; margin-left: auto; margin-right: auto; }
.wskazania-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 15px; text-align: center; margin-top: 30px; }
.ws-item { padding: 10px; }
.ws-item i { font-size: 30px; color: var(--teal); margin-bottom: 10px; }
.ws-item p { font-size: 12px; font-weight: 600; }

/* Cennik */
.table-wrapper { border-radius: 10px; overflow-x: auto; border: 1px solid #eee; background: #fff; }
table { width: 100%; border-collapse: collapse; min-width: 600px; }
thead { background: var(--teal); color: white; }
th, td { padding: 15px; text-align: left; border-bottom: 1px solid #eee; }

/* Specjaliści */
.specialists-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.spec-card { background: white; border-radius: 15px; display: flex; align-items: center; padding: 20px; box-shadow: 0 5px 15px rgba(0,0,0,0.05); }
.spec-card img { width: 100px; height: 100px; border-radius: 50%; object-fit: cover; margin-right: 20px; flex-shrink: 0; }

/* Opinie */
.opinie-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.opinia-card { background: white; padding: 40px; border-radius: 10px; box-shadow: 0 10px 30px rgba(0,0,0,0.1); border: 1px solid #eee; text-align: left; }
.stars { color: var(--star-green); font-size: 18px; margin-bottom: 20px; }
.opinia-title { font-weight: bold; margin-bottom: 10px; color: var(--navy); }
.opinia-text { font-size: 14px; color: var(--text-dark); margin-bottom: 20px; }
.author-meta { display: flex; justify-content: flex-start; gap: 20px; font-weight: bold; }
.author-initials { color: var(--navy); }
.opinia-year { color: var(--text-light); }

/* FAQ & Form */
.grid-split-faq { display: grid; grid-template-columns: 1.5fr 1fr; gap: 50px; }
.accordion { border: 1px solid var(--faq-border); border-radius: 10px; overflow: hidden; background: #fff; }
details { border-bottom: 1px solid var(--faq-border); }
details:last-child { border-bottom: none; }
summary { padding: 15px 20px; cursor: pointer; display: flex; justify-content: space-between; align-items: center; font-weight: bold; list-style: none; color: var(--navy); }
summary::-webkit-details-marker { display: none; }
.content { padding: 20px; font-size: 14px; color: var(--text-dark); background-color: var(--bg-light); border-top: 1px solid var(--faq-border); }
.form-card { background: white; padding: 30px; border-radius: 10px; box-shadow: 0 10px 30px rgba(0,0,0,0.1); border: 1px solid #eee; }
.form-card input { width: 100%; padding: 12px; margin: 10px 0 20px 0; border: 1px solid #ddd; border-radius: 5px; }
.form-card button { width: 100%; background: var(--teal); color: white; border: none; padding: 15px; border-radius: 5px; font-weight: bold; cursor: pointer; transition: 0.3s; }
.form-card button:hover { background: var(--navy); }

/* Footer */
footer { background: var(--navy); color: white; padding: 60px 0 20px 0; }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 40px; }
.logo-footer { font-size: 24px; font-weight: 800; margin-bottom: 20px; }
.logo-footer span { color: var(--teal); }
.footer-bottom-links a { display: block; color: white; text-decoration: none; margin-bottom: 10px; font-size: 12px; opacity: 0.7; }
.socials { font-size: 24px; display: flex; gap: 15px; margin-bottom: 20px; }
.footer-bottom-text { border-top: 1px solid rgba(255,255,255,0.1); margin-top: 40px; padding-top: 20px; text-align: center; font-size: 12px; opacity: 0.7; }

/* ==========================================
   MEDIA QUERIES (RWD)
   ========================================== */

/* Tablety i mniejsze laptopy (poniżej 1024px) */
@media (max-width: 992px) {
    .why-grid { grid-template-columns: 1fr 1fr; }
    .wskazania-grid { grid-template-columns: repeat(3, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .hero-content h1 { font-size: 28px; }
}

/* Duże telefony i małe tablety (poniżej 768px) */
@media (max-width: 768px) {
    .section-padding { padding: 50px 0; }
    
    .nav-wrapper { flex-direction: column; gap: 15px; text-align: center; }
    nav ul { gap: 10px; flex-wrap: wrap; justify-content: center; }
    .contact-info { flex-direction: column; gap: 10px; }

    .hero-grid { grid-template-columns: 1fr; text-align: center; }
    .hero-content { padding: 40px 0 20px 0; }
    .hero-img { order: -1; max-width: 300px; margin: 0 auto; }

    .why-grid { grid-template-columns: 1fr; }
    .specialists-grid { grid-template-columns: 1fr; }
    .opinie-grid { grid-template-columns: 1fr; }
    .grid-split-faq { grid-template-columns: 1fr; gap: 30px; }
    
    .wskazania-grid { grid-template-columns: 1fr 1fr; }
    
    .trust-wrapper { gap: 15px; font-size: 12px; }
    
    h2.section-title { font-size: 24px; }
}

/* Małe telefony (poniżej 480px) */
@media (max-width: 480px) {
    h1 { font-size: 24px; }
    .btn-hero { width: 100%; padding: 15px 20px; }
    .wskazania-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; text-align: center; }
    .socials { justify-content: center; }
    .spec-card { flex-direction: column; text-align: center; }
    .spec-card img { margin-right: 0; margin-bottom: 15px; }
}


.hidden-field {
    position: absolute;
    left: -9999px;
    opacity: 0;
    pointer-events: none;
}

.popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: 0.25s ease;
    z-index: 9999;
}

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

.popup-box {
    background: #fff;
    width: 100%;
    max-width: 460px;
    padding: 32px 24px;
    border-radius: 16px;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    text-align: center;
}

.popup-box h3 {
    margin-bottom: 12px;
    font-size: 24px;
}

.popup-box p {
    margin: 0;
    line-height: 1.6;
}

.popup-close {
    position: absolute;
    top: 10px;
    right: 14px;
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    line-height: 1;
}

button[disabled] {
    opacity: 0.7;
    cursor: not-allowed;
}
a {
	    text-decoration: none;
    color: var(--navy);
    font-size: 14px;
    font-weight: 600;
    transition: 0.3s;
}
a:hover {
    color: var(--teal);
}