/* ===== Reset & base ===== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #0d6efd;
    --primary-hover: #0b5ed7;
    --success: #198754;
    --success-hover: #157347;
    --text: #212529;
    --text-muted: #6c757d;
    --bg: #fff;
    --bg-alt: #f8f9fa;
    --border: #dee2e6;
    --radius: 12px;
    --radius-sm: 8px;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow-hover: 0 4px 16px rgba(0, 0, 0, 0.1);
    /* Promo HelpClinic */
    --promo-bg: #e6f4ea;
    --promo-border: #81c995;
    --promo-text: #0d3321;
    --promo-cta-bg: #0f766e;
    --promo-cta-hover: #0d5c56;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
}

.container {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 16px;
}

a {
    color: var(--primary);
    text-decoration: none;
}
a:hover {
    text-decoration: underline;
}

/* ===== Cookie banner ===== */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #1a1a1a;
    color: #eee;
    padding: 14px 16px;
    z-index: 9999;
    box-shadow: 0 -4px 12px rgba(0,0,0,0.15);
    transition: transform 0.3s ease;
}
.cookie-banner.hidden {
    transform: translateY(100%);
}
.cookie-content {
    max-width: 960px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}
.cookie-content p {
    margin: 0;
    font-size: 14px;
    flex: 1;
    min-width: 200px;
}
.cookie-content a {
    color: #7dd3fc;
}
.btn-accept {
    background: var(--success);
    color: #fff;
    border: none;
    padding: 10px 24px;
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}
.btn-accept:hover {
    background: var(--success-hover);
}

/* ===== Header ===== */
.header {
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 12px 0;
}
.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.logo {
    font-size: 22px;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
}
.logo:hover {
    text-decoration: none;
    color: var(--primary-hover);
}
.nav {
    display: flex;
    gap: 24px;
}
.nav a {
    color: var(--text);
    font-weight: 500;
    font-size: 15px;
}
.nav a:hover {
    color: var(--primary);
}
.nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    padding: 4px 8px;
    color: var(--text);
}

/* ===== Promo HelpClinic ===== */
.promo-bar {
    background: linear-gradient(135deg, var(--promo-bg) 0%, #d4edda 100%);
    border-left: 4px solid var(--promo-cta-bg);
    padding: 18px 0;
    box-shadow: 0 1px 0 0 var(--promo-border);
}
.promo-bar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}
.promo-text {
    margin: 0;
    color: var(--promo-text);
    font-size: 16px;
    line-height: 1.55;
    flex: 1;
    min-width: 200px;
}
.promo-text strong {
    font-weight: 700;
    color: #0a2d1c;
}
.promo-r {
    font-size: 0.7em;
    font-weight: 600;
    vertical-align: 0.25em;
    margin-left: 1px;
    opacity: 0.85;
}
.promo-cta {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--promo-cta-bg);
    color: #fff !important;
    padding: 12px 22px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 15px;
    text-decoration: none !important;
    transition: background 0.2s, transform 0.15s;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(15, 118, 110, 0.3);
}
.promo-cta:hover {
    background: var(--promo-cta-hover);
    text-decoration: none !important;
    transform: translateY(-1px);
}

/* ===== Quick actions (IKP + inne strony) ===== */
.quick-actions {
    padding: 24px 0;
    background: var(--bg-alt);
    border-bottom: 1px solid var(--border);
}
.quick-actions .container {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}
.quick-btn {
    flex: 1;
    min-width: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 20px;
    border-radius: var(--radius);
    font-size: 16px;
    font-weight: 600;
    text-decoration: none !important;
    transition: transform 0.2s, box-shadow 0.2s;
    border: 2px solid transparent;
}
.quick-btn:hover {
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}
.quick-btn-primary {
    background: var(--primary);
    color: #fff !important;
}
.quick-btn-primary:hover {
    background: var(--primary-hover);
    color: #fff !important;
}
.quick-btn-secondary {
    background: var(--bg);
    color: var(--text) !important;
    border-color: var(--border);
}
.quick-btn-secondary:hover {
    border-color: var(--primary);
    color: var(--primary) !important;
}
.quick-btn-icon {
    font-size: 20px;
}

/* ===== Hero (Czym jest Moje IKP) ===== */
.hero {
    padding: 40px 0 48px;
}
.hero-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 20px;
}
.hero-content {
    max-width: 720px;
}
.hero-lead {
    font-size: 17px;
    color: var(--text);
    margin-bottom: 16px;
    line-height: 1.65;
}
.hero-lead a {
    font-weight: 600;
}
.hero-p {
    font-size: 16px;
    color: var(--text);
    line-height: 1.65;
    margin-bottom: 20px;
}
.hero-list {
    margin: 0;
    padding-left: 22px;
    font-size: 15px;
    color: var(--text);
    line-height: 1.7;
}
.hero-list li {
    margin-bottom: 8px;
}
.hero-list li:last-child {
    margin-bottom: 0;
}
.hero-list strong {
    font-weight: 600;
}

/* ===== Sections ===== */
.section {
    padding: 48px 0;
}
.section h2 {
    font-size: 26px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 24px;
    text-align: center;
}

/* ===== Serwisy ===== */
.services-section {
    background: var(--bg-alt);
}
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
}
.service-card {
    display: block;
    background: var(--bg);
    padding: 20px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    transition: box-shadow 0.2s, border-color 0.2s;
    text-decoration: none !important;
    color: inherit;
}
.service-card:hover {
    box-shadow: var(--shadow-hover);
    border-color: var(--primary);
    text-decoration: none;
}
.service-card h3 {
    font-size: 17px;
    margin-bottom: 8px;
    color: var(--text);
}
.service-card p {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 12px;
    line-height: 1.5;
}
.service-link {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary);
}

/* ===== Funkcje ===== */
.features-section {
    background: var(--bg);
}
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 16px;
}
.feature-item {
    padding: 20px;
    background: var(--bg-alt);
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.feature-item:hover {
    border-color: var(--border);
    box-shadow: var(--shadow);
}
.feature-icon {
    font-size: 32px;
    display: block;
    margin-bottom: 12px;
}
.feature-item h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 6px;
}
.feature-item p {
    font-size: 14px;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.5;
}

/* ===== CTA section ===== */
.cta-section {
    background: var(--primary);
    color: #fff;
    padding: 48px 0;
    text-align: center;
}
.cta-section h2 {
    color: #fff;
    margin-bottom: 8px;
}
.cta-section p {
    margin-bottom: 24px;
    opacity: 0.95;
    font-size: 17px;
}
.btn-primary {
    display: inline-block;
    background: #fff;
    color: var(--primary) !important;
    padding: 14px 32px;
    border-radius: var(--radius-sm);
    font-size: 16px;
    font-weight: 600;
    text-decoration: none !important;
    transition: opacity 0.2s, transform 0.2s;
}
.btn-primary:hover {
    text-decoration: none !important;
    opacity: 0.95;
    transform: translateY(-1px);
}
.btn-large {
    padding: 16px 40px;
    font-size: 17px;
}

/* ===== FAQ ===== */
.faq-section {
    background: var(--bg-alt);
}
.faq-list {
    max-width: 640px;
    margin: 0 auto;
}
.faq-item {
    background: var(--bg);
    margin-bottom: 10px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 1px solid var(--border);
}
.faq-question {
    width: 100%;
    padding: 18px 20px;
    text-align: left;
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.faq-question::after {
    content: '+';
    font-size: 22px;
    color: var(--primary);
    font-weight: 400;
}
.faq-item.active .faq-question::after {
    transform: rotate(45deg);
}
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
}
.faq-item.active .faq-answer {
    max-height: 400px;
}
.faq-answer p {
    padding: 0 20px 18px;
    margin: 0;
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ===== Disclaimer (informacja o stronie) ===== */
.disclaimer {
    padding: 32px 0;
    background: var(--bg-alt);
    border-top: 1px solid var(--border);
}
.disclaimer-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 12px;
    text-align: center;
}
.disclaimer-text {
    max-width: 720px;
    margin: 0 auto;
    font-size: 15px;
    line-height: 1.65;
    color: var(--text-muted);
    text-align: center;
}
.disclaimer-text strong {
    color: var(--text);
}
.disclaimer-text a {
    font-weight: 600;
}

/* ===== Footer ===== */
.footer {
    background: #2d3748;
    color: #e2e8f0;
    padding: 40px 0 24px;
}
.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 32px;
    margin-bottom: 32px;
}
.footer-section h4 {
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 12px;
}
.footer-section p,
.footer-section ul {
    font-size: 14px;
    line-height: 1.6;
}
.footer-section ul {
    list-style: none;
}
.footer-section li {
    margin-bottom: 8px;
}
.footer-section a {
    color: #a0aec0;
}
.footer-section a:hover {
    color: #fff;
}
.stats strong {
    color: #68d391;
}
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
    text-align: center;
    font-size: 13px;
    color: #a0aec0;
}
.footer-bottom a {
    color: #68d391;
}

/* ===== Mobile ===== */
@media (max-width: 768px) {
    .nav-toggle {
        display: block;
    }
    .nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg);
        flex-direction: column;
        padding: 16px;
        gap: 0;
        border-bottom: 1px solid var(--border);
        display: none;
        box-shadow: var(--shadow);
    }
    .nav.is-open {
        display: flex;
    }
    .nav a {
        padding: 14px 0;
        border-bottom: 1px solid var(--border);
    }
    .nav a:last-child {
        border-bottom: none;
    }

    .promo-bar-inner {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }
    .promo-cta {
        align-self: center;
    }

    .quick-actions .container {
        flex-direction: column;
    }
    .quick-btn {
        min-width: 100%;
        padding: 18px 20px;
    }

    .hero {
        padding: 28px 0 36px;
    }
    .hero-title {
        font-size: 24px;
    }
    .hero-lead {
        font-size: 16px;
    }
    .section {
        padding: 36px 0;
    }
    .section h2 {
        font-size: 22px;
    }
    .services-grid {
        grid-template-columns: 1fr;
    }
    .features-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 12px;
    }
    .logo {
        font-size: 20px;
    }
    .promo-text {
        font-size: 14px;
    }
    .promo-cta {
        padding: 12px 24px;
    }
}
