﻿/* ===================================================
   Badanie Sluchu - Oczami Elektroradiologa
   Wspolny arkusz stylow dla wszystkich podstron
   =================================================== */

:root {
    --primary: #1565c0;
    --primary-light: #1e88e5;
    --primary-dark: #0d47a1;
    --secondary: #00897b;
    --secondary-light: #26a69a;
    --accent: #ff6f00;
    --accent-light: #ffa000;
    --error: #c62828;
    --bg: #f5f7fa;
    --surface: #ffffff;
    --text: #1a1a2e;
    --text-light: #546e7a;
    --shadow: 0 2px 12px rgba(0,0,0,0.1);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.15);
    --radius: 12px;
    --radius-lg: 20px;
    --transition: all 0.3s ease;
}
[data-theme="dark"] {
    --bg: #0a1628;
    --surface: #121e32;
    --text: #e0e0e0;
    --text-light: #90a4ae;
    --shadow: 0 2px 12px rgba(0,0,0,0.4);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.5);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 70px; }
body {
    font-family: 'Roboto', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
}

/* === NAVBAR === */
.sluch-nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    background: rgba(13, 71, 161, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 2px 20px rgba(0,0,0,0.3);
    padding: 0 20px;
    transition: var(--transition);
}
.sluch-nav.scrolled { background: rgba(13, 71, 161, 0.98); }
.nav-inner {
    max-width: 1400px; margin: 0 auto;
    display: flex; align-items: center; justify-content: space-between;
    height: 64px;
}
.nav-logo {
    display: flex; align-items: center; gap: 10px;
    color: white; text-decoration: none; font-weight: 700; font-size: 1.15rem;
    white-space: nowrap;
}
.nav-logo i { font-size: 1.5rem; color: #64b5f6; }
.nav-links {
    display: flex; list-style: none; gap: 2px; align-items: center;
    flex-wrap: nowrap;
}
.nav-links a {
    color: rgba(255,255,255,0.85); text-decoration: none;
    padding: 8px 12px; border-radius: 8px; font-size: 0.85rem;
    font-weight: 500; transition: var(--transition); white-space: nowrap;
}
.nav-links a:hover,
.nav-links a.active {
    background: rgba(255,255,255,0.15); color: white;
}
.nav-links a.active {
    background: rgba(255,255,255,0.2);
    border-bottom: 2px solid #64b5f6;
}
.nav-back {
    color: rgba(255,255,255,0.7); text-decoration: none; font-size: 0.85rem;
    display: flex; align-items: center; gap: 6px; padding: 6px 12px;
    border: 1px solid rgba(255,255,255,0.3); border-radius: 8px;
    transition: var(--transition); white-space: nowrap;
}
.nav-back:hover { background: rgba(255,255,255,0.1); color: white; }
.hamburger {
    display: none; background: none; border: none; color: white;
    font-size: 1.5rem; cursor: pointer; padding: 8px;
}

/* === PAGE HEADER (subpage hero) === */
.page-header {
    padding: 120px 20px 60px;
    text-align: center;
    position: relative; overflow: hidden;
}
.page-header.blue {
    background: linear-gradient(135deg, #0d47a1 0%, #1565c0 50%, #1e88e5 100%);
    color: white;
}
.page-header.teal {
    background: linear-gradient(135deg, #004d40 0%, #00695c 50%, #00897b 100%);
    color: white;
}
.page-header.orange {
    background: linear-gradient(135deg, #bf360c 0%, #e65100 50%, #ff6f00 100%);
    color: white;
}
.page-header.purple {
    background: linear-gradient(135deg, #4a148c 0%, #6a1b9a 50%, #7b1fa2 100%);
    color: white;
}
.page-header.red {
    background: linear-gradient(135deg, #b71c1c 0%, #c62828 50%, #d32f2f 100%);
    color: white;
}
.page-header.green {
    background: linear-gradient(135deg, #1b5e20 0%, #2e7d32 50%, #388e3c 100%);
    color: white;
}
.page-header::before {
    content: ''; position: absolute; inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.page-header .header-content { position: relative; z-index: 1; max-width: 800px; margin: 0 auto; }
.page-header h1 {
    font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 900; margin-bottom: 16px;
}
.page-header h1 i { margin-right: 12px; opacity: 0.8; }
.page-header .lead {
    font-size: clamp(1rem, 2vw, 1.2rem); opacity: 0.85; max-width: 600px;
    margin: 0 auto;
}

/* === BREADCRUMB === */
.breadcrumb {
    background: var(--surface); padding: 12px 20px; border-bottom: 1px solid rgba(0,0,0,0.08);
}
.breadcrumb .container { display: flex; align-items: center; gap: 8px; font-size: 0.85rem; }
.breadcrumb a { color: var(--primary); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb span { color: var(--text-light); }
.breadcrumb i { font-size: 0.7rem; color: var(--text-light); }

/* === SECTIONS === */
.section-block { padding: 80px 20px; }
.section-block.alt { background: var(--surface); }
.section-block.gradient {
    background: linear-gradient(135deg, #e3f2fd 0%, #f5f7fa 50%, #e0f2f1 100%);
}
[data-theme="dark"] .section-block.gradient {
    background: linear-gradient(135deg, #0d2137 0%, #0a1628 50%, #0d2a27 100%);
}
.section-block.dark-gradient {
    background: linear-gradient(135deg, #0d47a1 0%, #1565c0 50%, #00897b 100%);
    color: white;
}
.container { max-width: 1200px; margin: 0 auto; }
.container-narrow { max-width: 900px; margin: 0 auto; }
.section-title {
    font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 800;
    margin-bottom: 12px;
}
.section-title.center { text-align: center; }
.section-title i { margin-right: 10px; color: var(--primary); }
.section-subtitle {
    color: var(--text-light); font-size: 1.05rem;
    margin-bottom: 40px; max-width: 600px;
}
.section-subtitle.center { text-align: center; margin-left: auto; margin-right: auto; }
.dark-gradient .section-title i { color: #64b5f6; }
.dark-gradient .section-subtitle { color: rgba(255,255,255,0.7); }

/* === CARDS === */
.card-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}
.card-grid.cols-2 { grid-template-columns: repeat(auto-fit, minmax(380px, 1fr)); }
.card-grid.cols-3 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.card {
    background: var(--surface); border-radius: var(--radius);
    box-shadow: var(--shadow); padding: 28px; transition: var(--transition);
    border: 1px solid rgba(0,0,0,0.06);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card-icon {
    width: 56px; height: 56px; border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem; margin-bottom: 16px; color: white;
}
.card h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 10px; }
.card p { color: var(--text-light); font-size: 0.95rem; line-height: 1.7; }
.card ul { color: var(--text-light); font-size: 0.95rem; padding-left: 20px; margin-top: 8px; }
.card ul li { margin-bottom: 4px; }
.tag {
    display: inline-block; padding: 4px 12px; border-radius: 20px;
    font-size: 0.75rem; font-weight: 700; margin-bottom: 12px;
}

/* === LANDING CARDS === */
.landing-card {
    background: var(--surface); border-radius: var(--radius-lg);
    box-shadow: var(--shadow); overflow: hidden; transition: var(--transition);
    border: 1px solid rgba(0,0,0,0.06); text-decoration: none; color: inherit;
    display: block;
}
.landing-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.landing-card .card-banner {
    height: 140px; display: flex; align-items: center; justify-content: center;
    color: white; font-size: 2.5rem;
}
.landing-card .card-body { padding: 24px; }
.landing-card h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 8px; }
.landing-card p { color: var(--text-light); font-size: 0.92rem; }
.landing-card .card-footer {
    padding: 12px 24px; border-top: 1px solid rgba(0,0,0,0.06);
    display: flex; align-items: center; justify-content: space-between;
    font-size: 0.85rem; color: var(--primary); font-weight: 600;
}
.landing-card.card-blue .card-banner { background: linear-gradient(135deg, #0d47a1, #1e88e5); }
.landing-card.card-orange .card-banner { background: linear-gradient(135deg, #bf360c, #ff6f00); }
.landing-card.card-teal .card-banner { background: linear-gradient(135deg, #004d40, #00897b); }
.landing-card.card-cyan .card-banner { background: linear-gradient(135deg, #006064, #00acc1); }
.landing-card.card-purple .card-banner { background: linear-gradient(135deg, #4a148c, #7b1fa2); }
.landing-card.card-fusion .card-banner { background: linear-gradient(135deg, #1565c0, #00897b); }
.landing-card.card-red .card-banner { background: linear-gradient(135deg, #b71c1c, #d32f2f); }
.landing-card.card-amber .card-banner { background: linear-gradient(135deg, #e65100, #ff9800); }
.landing-card.card-lime .card-banner { background: linear-gradient(135deg, #2e7d32, #66bb6a); }
.landing-card.card-patient .card-banner { background: linear-gradient(135deg, #1565c0, #64b5f6); }

.quick-facts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 22px;
    margin-top: 36px;
}

.fact-card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    padding: 24px;
    border: 1px solid rgba(0,0,0,0.06);
}

.fact-card .eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 12px;
}

.fact-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.fact-card p {
    color: var(--text-light);
    font-size: 0.94rem;
}

.pill-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin: 26px 0 0;
}

.pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 14px;
    border-radius: 999px;
    background: rgba(30,136,229,0.12);
    color: var(--primary-dark);
    font-size: 0.84rem;
    font-weight: 600;
}

.info-list {
    list-style: none;
    margin-top: 18px;
}

.info-list li {
    position: relative;
    padding-left: 26px;
    margin-bottom: 12px;
    color: var(--text-light);
}

.info-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
}

.note-box {
    margin-top: 30px;
    background: rgba(30,136,229,0.08);
    border: 1px solid rgba(30,136,229,0.16);
    border-radius: var(--radius-lg);
    padding: 26px 28px;
}

.note-box.teal {
    background: rgba(0,137,123,0.08);
    border-color: rgba(0,137,123,0.16);
}

.note-box.red {
    background: rgba(198,40,40,0.08);
    border-color: rgba(198,40,40,0.16);
}

.note-box h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.02rem;
    margin-bottom: 10px;
}

.note-box p {
    color: var(--text-light);
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 22px;
    margin-top: 30px;
}

.faq-item {
    background: var(--surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    padding: 24px;
    border: 1px solid rgba(0,0,0,0.06);
}

.faq-item h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.faq-item h3 i {
    color: var(--primary);
    margin-right: 8px;
}

.faq-item p {
    color: var(--text-light);
    font-size: 0.93rem;
}

[data-theme="dark"] .breadcrumb {
    background: #101c2f;
    border-bottom-color: rgba(255,255,255,0.08);
}

[data-theme="dark"] .note-box {
    background: rgba(30,136,229,0.08);
    border-color: rgba(30,136,229,0.16);
}

[data-theme="dark"] .note-box.teal {
    background: rgba(0,137,123,0.1);
    border-color: rgba(0,137,123,0.18);
}

[data-theme="dark"] .note-box.red {
    background: rgba(239,154,154,0.08);
    border-color: rgba(239,154,154,0.16);
}

/* === TIMELINE === */
.timeline { position: relative; max-width: 800px; margin: 0 auto; }
.timeline::before {
    content: ''; position: absolute; left: 50%; top: 0; bottom: 0;
    width: 3px; background: linear-gradient(to bottom, var(--primary), var(--secondary));
    transform: translateX(-50%);
}
.timeline-item {
    display: flex; align-items: flex-start; margin-bottom: 40px; position: relative;
}
.timeline-item:nth-child(odd) { flex-direction: row-reverse; }
.timeline-dot {
    width: 48px; height: 48px; border-radius: 50%;
    background: var(--primary); color: white; font-weight: 700;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.75rem; position: absolute; left: 50%; transform: translateX(-50%);
    z-index: 2; box-shadow: 0 0 0 4px var(--bg);
}
.timeline-content {
    width: 42%; background: var(--surface); border-radius: var(--radius);
    padding: 24px; box-shadow: var(--shadow);
}
.timeline-content h3 { font-size: 1.05rem; font-weight: 700; color: var(--primary); margin-bottom: 8px; }
.timeline-content p { font-size: 0.92rem; color: var(--text-light); }

/* === INFO BOX === */
.info-box {
    background: var(--surface); border-radius: var(--radius-lg);
    padding: 40px; box-shadow: var(--shadow);
}
.info-box h3 {
    font-size: 1.1rem; font-weight: 700; margin-bottom: 8px;
    display: flex; align-items: center; gap: 10px;
}
.info-box h3 i { font-size: 1.2rem; }
.info-box p { color: var(--text-light); margin-bottom: 16px; }
.info-box .block {
    margin-bottom: 28px; padding-bottom: 28px; border-bottom: 1px solid rgba(0,0,0,0.08);
}
.info-box .block:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: none; }

/* === DETAIL SECTION === */
.detail-row {
    display: grid; grid-template-columns: 1fr 1fr; gap: 40px;
    align-items: start; margin-bottom: 60px;
}
.detail-row.reverse { direction: rtl; }
.detail-row.reverse > * { direction: ltr; }
.detail-text h3 {
    font-size: 1.3rem; font-weight: 700; margin-bottom: 12px;
    display: flex; align-items: center; gap: 10px;
}
.detail-text p { color: var(--text-light); margin-bottom: 12px; }
.detail-box {
    background: var(--surface); border-radius: var(--radius-lg);
    padding: 32px; box-shadow: var(--shadow);
    border-left: 4px solid var(--primary);
}
.detail-box.teal { border-left-color: var(--secondary); }
.detail-box.orange { border-left-color: var(--accent); }
.detail-box.red { border-left-color: var(--error); }

/* === STEP === */
.step-num {
    width: 40px; height: 40px; border-radius: 50%; color: white;
    display: flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: 1.1rem; margin-bottom: 14px;
}

/* === TABLE === */
.data-table {
    width: 100%; border-collapse: collapse; margin-top: 20px;
    background: var(--surface); border-radius: var(--radius); overflow: hidden;
    box-shadow: var(--shadow);
}
.data-table th {
    background: var(--primary); color: white; padding: 14px 16px;
    font-weight: 600; font-size: 0.9rem; text-align: left;
}
.data-table td {
    padding: 12px 16px; border-bottom: 1px solid rgba(0,0,0,0.06);
    font-size: 0.9rem; color: var(--text);
}
.data-table tr:hover td { background: rgba(21,101,192,0.04); }
.data-table .highlight { font-weight: 700; color: var(--primary); }

/* === STATS ROW === */
.stats-row {
    display: flex; gap: 24px; justify-content: center; flex-wrap: wrap;
    margin: 40px 0;
}
.stat-box {
    text-align: center; padding: 24px 32px; background: var(--surface);
    border-radius: var(--radius); box-shadow: var(--shadow); min-width: 160px;
}
.stat-box .num { font-size: 2rem; font-weight: 900; color: var(--primary); }
.stat-box .label { font-size: 0.85rem; color: var(--text-light); margin-top: 4px; }

/* === CTA BANNER === */
.cta-banner {
    background: linear-gradient(135deg, var(--primary-dark), var(--secondary));
    color: white; border-radius: var(--radius-lg); padding: 40px;
    text-align: center; margin-top: 40px;
}
.cta-banner h3 { font-size: 1.4rem; font-weight: 700; margin-bottom: 12px; }
.cta-banner p { opacity: 0.85; margin-bottom: 24px; max-width: 500px; margin-left: auto; margin-right: auto; }
.cta-banner .btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 12px 28px; border-radius: 50px; background: white;
    color: var(--primary-dark); font-weight: 700; text-decoration: none;
    transition: var(--transition);
}
.cta-banner .btn:hover { transform: translateY(-2px); box-shadow: 0 4px 20px rgba(0,0,0,0.2); }

/* === PREV / NEXT NAV === */
.page-nav {
    display: flex; justify-content: space-between; gap: 20px;
    padding: 40px 0; margin-top: 40px;
    border-top: 1px solid rgba(0,0,0,0.08);
}
.page-nav a {
    display: flex; align-items: center; gap: 12px;
    text-decoration: none; color: var(--text); padding: 16px 24px;
    background: var(--surface); border-radius: var(--radius);
    box-shadow: var(--shadow); transition: var(--transition);
    max-width: 45%;
}
.page-nav a:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); color: var(--primary); }
.page-nav .label { font-size: 0.8rem; color: var(--text-light); }
.page-nav .title { font-weight: 700; font-size: 0.95rem; }
.page-nav .next { margin-left: auto; text-align: right; }

/* === FOOTER === */
.sluch-footer {
    background: #0a1628; color: rgba(255,255,255,0.7);
    text-align: center; padding: 40px 20px;
}
.sluch-footer a { color: #64b5f6; text-decoration: none; }
.sluch-footer a:hover { text-decoration: underline; }
.footer-links {
    display: flex; gap: 20px; justify-content: center; flex-wrap: wrap;
    margin-bottom: 20px;
}

/* === HERO (landing only) === */
.hero {
    min-height: 100vh; display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, #0d47a1 0%, #1565c0 40%, #00897b 100%);
    position: relative; overflow: hidden; text-align: center;
    padding: 100px 20px 60px;
}
.hero::before {
    content: ''; position: absolute; inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-content { position: relative; z-index: 1; max-width: 800px; }
.hero h1 {
    font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 900; color: white;
    margin-bottom: 20px; line-height: 1.2;
}
.hero h1 span { color: #64b5f6; }
.hero p {
    font-size: clamp(1rem, 2vw, 1.25rem); color: rgba(255,255,255,0.85);
    margin-bottom: 36px; max-width: 600px; margin-left: auto; margin-right: auto;
}
.hero-btns { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.btn-hero {
    padding: 14px 32px; border-radius: 50px; text-decoration: none;
    font-weight: 700; font-size: 1rem; transition: var(--transition);
    display: inline-flex; align-items: center; gap: 8px;
}
.btn-hero.primary {
    background: white; color: var(--primary-dark);
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}
.btn-hero.primary:hover { transform: translateY(-2px); box-shadow: 0 6px 28px rgba(0,0,0,0.3); }
.btn-hero.secondary {
    background: transparent; color: white;
    border: 2px solid rgba(255,255,255,0.5);
}
.btn-hero.secondary:hover { border-color: white; background: rgba(255,255,255,0.1); }
.hero-stats {
    display: flex; gap: 40px; justify-content: center; margin-top: 50px; flex-wrap: wrap;
}
.hero-stat { text-align: center; }
.hero-stat .num { font-size: 2rem; font-weight: 900; color: #64b5f6; }
.hero-stat .label { font-size: 0.85rem; color: rgba(255,255,255,0.7); }

/* === RESPONSIVE === */
@media (max-width: 900px) {
    .nav-links {
        display: none; flex-direction: column; position: absolute;
        top: 64px; left: 0; right: 0; background: rgba(13,71,161,0.98);
        padding: 16px; gap: 4px;
    }
    .nav-links.open { display: flex; }
    .nav-links a { padding: 12px 16px; }
    .hamburger { display: block; }
    .nav-back { display: none; }
    .timeline::before { left: 20px; }
    .timeline-item, .timeline-item:nth-child(odd) { flex-direction: column; padding-left: 60px; }
    .timeline-dot { left: 20px; transform: translateX(-50%); }
    .timeline-content { width: 100%; }
    .card-grid.cols-2 { grid-template-columns: 1fr; }
    .detail-row, .detail-row.reverse { grid-template-columns: 1fr; }
    .page-nav { flex-direction: column; }
    .page-nav a { max-width: 100%; }
    .hero-stats { gap: 24px; }
}
@media (max-width: 600px) {
    .card-grid { grid-template-columns: 1fr; }
    .card-grid.cols-3 { grid-template-columns: 1fr; }
    .stats-row { flex-direction: column; align-items: center; }
    .page-header { padding: 100px 16px 40px; }
    .section-block { padding: 50px 16px; }
    .quick-facts { grid-template-columns: 1fr; }
}
