/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
    --navy: #1a2744;
    --navy-dark: #111b30;
    --accent: #e8421a;
    --accent-hover: #c93510;
    --white: #ffffff;
    --light: #f5f6fa;
    --mid: #e8eaf0;
    --text: #1a2744;
    --muted: #5c6680;
    --radius: 12px;
    --shadow: 0 4px 24px rgba(26,39,68,.10);
}
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
    font-family: 'DM Sans', Arial, sans-serif;
    color: var(--text);
    background: var(--white);
    line-height: 1.6;
    font-size: 16px;
    overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4 { font-family: 'Syne', sans-serif; line-height: 1.15; }
h1 { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.5rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 700; }
h4 { font-size: 1rem; font-weight: 600; }
.section-label {
    display: inline-block;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: .6rem;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-block;
    padding: .75rem 1.75rem;
    border-radius: 6px;
    font-family: 'DM Sans', sans-serif;
    font-weight: 600;
    font-size: .95rem;
    cursor: pointer;
    border: 2px solid transparent;
    transition: background .2s, color .2s, border-color .2s, transform .15s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn-outline { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.btn-outline:hover { background: rgba(255,255,255,.12); border-color: #fff; }
.btn-outline-dark { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-outline-dark:hover { background: var(--navy); color: #fff; }
.btn-sm { padding: .5rem 1.2rem; font-size: .85rem; }

/* ===== LAYOUT ===== */
.container { max-width: 1180px; margin: 0 auto; padding: 0 1.5rem; }
.section-pad { padding: 5rem 0; }
.section-pad-sm { padding: 3.5rem 0; }

/* ===== NAV ===== */
.nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--white);
    box-shadow: 0 2px 12px rgba(26,39,68,.08);
}
.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 68px;
}
.nav-logo img { height: 48px; width: auto; }
.nav-links {
    display: flex;
    align-items: center;
    gap: .25rem;
}
.nav-links a {
    font-weight: 600;
    font-size: .88rem;
    padding: .5rem .9rem;
    border-radius: 6px;
    color: var(--navy);
    transition: background .2s, color .2s;
}
.nav-links a:hover { background: var(--light); color: var(--accent); }
.nav-cta { margin-left: .75rem; }
.nav-hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: .4rem;
    flex-direction: column;
    gap: 5px;
}
.nav-hamburger span {
    display: block;
    width: 26px;
    height: 2.5px;
    background: var(--navy);
    border-radius: 2px;
    transition: all .3s;
}
.nav-mobile {
    display: none;
    flex-direction: column;
    background: var(--white);
    padding: 1rem 1.5rem 1.5rem;
    border-top: 1px solid var(--mid);
    gap: .25rem;
}
.nav-mobile a {
    font-weight: 600;
    padding: .7rem .5rem;
    color: var(--navy);
    border-bottom: 1px solid var(--mid);
    font-size: .95rem;
}
.nav-mobile a:last-child { border-bottom: none; }
.nav-mobile .btn { margin-top: .75rem; text-align: center; }

/* ===== HERO ===== */
.hero {
    background: var(--navy) url('images/sciana.png') center center / cover no-repeat;
    color: #fff;
    padding: 5rem 0 4rem;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(17,27,48,.92) 0%, rgba(26,39,68,.85) 60%, rgba(32,48,96,.88) 100%);
}
.hero-inner {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}
.hero-inner > * { min-width: 0; }
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    background: rgba(232,66,26,.18);
    border: 1px solid rgba(232,66,26,.35);
    color: #ff8060;
    border-radius: 20px;
    padding: .35rem 1rem;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    margin-bottom: 1.25rem;
}
.hero h1 { margin-bottom: 1.25rem; }
.hero h1 .accent { color: var(--accent); }
.hero-sub {
    font-size: 1.1rem;
    color: rgba(255,255,255,.78);
    margin-bottom: 2.25rem;
    line-height: 1.7;
    max-width: 480px;
}
.hero-btns { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-img {
    display: flex;
    justify-content: center;
    align-items: flex-end;
}
.hero-img img {
    max-height: 360px;
    width: auto;
    filter: drop-shadow(0 8px 32px rgba(0,0,0,.3));
}
.hero-stats {
    display: flex;
    gap: 2rem;
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,.12);
}
.hero-stat-num {
    font-family: 'Syne', sans-serif;
    font-size: 2rem;
    font-weight: 800;
    color: var(--accent);
    line-height: 1;
}
.hero-stat-label { font-size: .78rem; color: rgba(255,255,255,.6); margin-top: .2rem; }

/* ===== FEATURES ===== */
.features { background: var(--light); }
.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}
.feature-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 2rem 1.5rem;
    box-shadow: var(--shadow);
    border-top: 4px solid transparent;
    transition: border-color .25s, transform .25s;
}
.feature-card:hover { border-color: var(--accent); transform: translateY(-4px); }
.feature-icon {
    font-size: 2.2rem;
    margin-bottom: 1rem;
    line-height: 1;
}
.feature-card h3 { margin-bottom: .5rem; font-size: 1rem; }
.feature-card p { font-size: .88rem; color: var(--muted); line-height: 1.6; }

/* ===== COURSES ===== */
.courses-header {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}
.filter-tabs { display: flex; gap: .5rem; flex-wrap: wrap; }
.filter-btn {
    padding: .5rem 1.2rem;
    border-radius: 20px;
    border: 2px solid var(--mid);
    background: transparent;
    color: var(--muted);
    font-weight: 600;
    font-size: .82rem;
    cursor: pointer;
    transition: all .2s;
    font-family: 'DM Sans', sans-serif;
}
.filter-btn.active, .filter-btn:hover {
    background: var(--navy);
    border-color: var(--navy);
    color: #fff;
}
.courses-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}
.course-card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform .25s, box-shadow .25s;
}
.course-card:hover { transform: translateY(-4px); box-shadow: 0 8px 32px rgba(26,39,68,.14); }
.course-card.hidden { display: none; }
.course-img-wrap {
    position: relative;
    height: 160px;
    overflow: hidden;
    background: var(--mid);
}
.course-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
}
.course-badge {
    position: absolute;
    top: .75rem;
    right: .75rem;
    background: var(--navy);
    color: #fff;
    font-size: .72rem;
    font-weight: 700;
    padding: .25rem .65rem;
    border-radius: 20px;
    letter-spacing: .04em;
}
.course-badge.zaoczny { background: var(--accent); }

/* Course icon (CSS gradient + emoji, no img) */
.course-icon-bg {
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.75rem;
    line-height: 1;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}
.course-icon-bg::before {
    content: '';
    position: absolute;
    bottom: -24px; right: -24px;
    width: 90px; height: 90px;
    border-radius: 50%;
    background: rgba(255,255,255,.22);
}
.course-icon-bg::after {
    content: '';
    position: absolute;
    top: -18px; left: -18px;
    width: 60px; height: 60px;
    border-radius: 50%;
    background: rgba(255,255,255,.14);
}
/* Fee badge in card meta */
.fee-tag {
    display: inline-flex;
    align-items: center;
    gap: .25rem;
    font-size: .72rem;
    font-weight: 700;
    color: #059669;
    background: #d1fae5;
    border-radius: 20px;
    padding: .18rem .55rem;
}
.fee-tag.free { color: #0369a1; background: #dbeafe; }
.course-body { padding: 1.25rem 1.25rem 1rem; flex: 1; display: flex; flex-direction: column; }
.course-meta {
    display: flex;
    gap: .75rem;
    font-size: .75rem;
    font-weight: 600;
    color: var(--muted);
    margin-bottom: .6rem;
}
.course-meta span { display: flex; align-items: center; gap: .3rem; }
.course-body h3 { margin-bottom: .5rem; font-size: 1rem; line-height: 1.3; }
.course-body p { font-size: .85rem; color: var(--muted); line-height: 1.6; flex: 1; }
.course-expand-btn {
    margin-top: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: none;
    border: none;
    border-top: 1px solid var(--mid);
    padding-top: .85rem;
    width: 100%;
    cursor: pointer;
    font-family: 'DM Sans', sans-serif;
    font-weight: 600;
    font-size: .82rem;
    color: var(--accent);
    transition: color .2s;
}
.course-expand-btn:hover { color: var(--accent-hover); }
.course-expand-btn svg { transition: transform .3s; }
.course-expand-btn.open svg { transform: rotate(180deg); }
.plan-download-btn {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    margin-top: 1rem;
    padding: .5rem 1rem;
    background: var(--accent);
    color: #fff;
    border-radius: 6px;
    font-size: .8rem;
    font-weight: 600;
    text-decoration: none;
    transition: background .2s;
}
.plan-download-btn:hover { background: var(--accent-hover); }
.course-details {
    display: none;
    padding: 0 1.25rem 1.25rem;
    font-size: .85rem;
    color: var(--muted);
    line-height: 1.7;
    border-top: none;
}
.course-details.open { display: block; }
.course-details ul { margin-top: .6rem; padding-left: 1rem; list-style: disc; }
.course-details ul li { margin-bottom: .3rem; }

/* ===== REKRUTACJA ===== */
.rekrutacja { background: var(--navy); color: #fff; }
.rekrutacja .section-label { color: #ff8060; }
.rekrutacja h2 { color: #fff; margin-bottom: .75rem; }
.rekrutacja-intro { color: rgba(255,255,255,.72); max-width: 560px; margin-bottom: 3rem; font-size: .95rem; }
.steps {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0;
    position: relative;
}
.steps::before {
    content: '';
    position: absolute;
    top: 28px;
    left: calc(10% + 28px);
    right: calc(10% + 28px);
    height: 2px;
    background: rgba(255,255,255,.15);
}
.step { text-align: center; padding: 0 .75rem; }
.step-num {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(255,255,255,.1);
    border: 2px solid rgba(255,255,255,.25);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
    font-family: 'Syne', sans-serif;
    font-weight: 800;
    font-size: 1.2rem;
    color: var(--accent);
    position: relative;
    z-index: 1;
    transition: background .25s, border-color .25s;
}
.step:hover .step-num { background: var(--accent); border-color: var(--accent); color: #fff; }
.step h4 { color: #fff; margin-bottom: .4rem; font-size: .92rem; }
.step p { font-size: .8rem; color: rgba(255,255,255,.6); line-height: 1.6; }

.docs-box {
    background: rgba(255,255,255,.07);
    border: 1px solid rgba(255,255,255,.15);
    border-radius: var(--radius);
    padding: 2rem 2.5rem;
    margin-top: 3rem;
}
.docs-box h3 { color: #fff; margin-bottom: 1.25rem; font-size: 1.05rem; }
.docs-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .5rem .75rem;
}
.docs-list li {
    font-size: .85rem;
    color: rgba(255,255,255,.75);
    display: flex;
    gap: .5rem;
    align-items: flex-start;
    line-height: 1.5;
}
.docs-list li::before {
    content: '✓';
    color: var(--accent);
    font-weight: 700;
    flex-shrink: 0;
    margin-top: .05rem;
}

/* ===== FAQ ===== */
.faq { background: var(--light); }
.faq-list { max-width: 780px; margin: 0 auto; display: flex; flex-direction: column; gap: .75rem; }
.faq-item {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: 0 2px 8px rgba(26,39,68,.06);
    overflow: hidden;
}
.faq-q {
    width: 100%;
    background: none;
    border: none;
    padding: 1.25rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    cursor: pointer;
    font-family: 'DM Sans', sans-serif;
    font-weight: 600;
    font-size: .95rem;
    color: var(--navy);
    text-align: left;
    transition: background .2s;
}
.faq-q:hover { background: var(--light); }
.faq-q svg { flex-shrink: 0; transition: transform .3s; color: var(--accent); }
.faq-q.open svg { transform: rotate(180deg); }
.faq-a {
    display: none;
    padding: 0 1.5rem 1.25rem;
    font-size: .9rem;
    color: var(--muted);
    line-height: 1.75;
}
.faq-a.open { display: block; }

/* ===== CONTACT ===== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: stretch;
}
.contact-info h2 { margin-bottom: .75rem; }
.contact-info p { color: var(--muted); margin-bottom: 2rem; font-size: .95rem; }
.contact-detail {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    margin-bottom: 1.25rem;
}
.contact-detail-icon {
    width: 44px;
    height: 44px;
    background: var(--light);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.contact-detail-icon img { width: 22px; height: 22px; background: none; }
.contact-detail strong { display: block; font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: .1rem; }
.contact-detail span, .contact-detail a { font-size: .95rem; font-weight: 500; color: var(--navy); }
.contact-detail a:hover { color: var(--accent); }
.hours-box {
    background: var(--light);
    border-radius: var(--radius);
    padding: 1.25rem 1.5rem;
    margin-top: 1.5rem;
}
.hours-box p { margin: 0; font-size: .88rem; color: var(--muted); line-height: 1.8; }
.hours-box strong { color: var(--navy); }
.map-wrap {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
}
.map-wrap iframe { display: block; flex: 1; }


/* ===== FOOTER ===== */
.footer-bar {
    background: var(--navy-dark);
    color: rgba(255,255,255,.5);
    padding: 1.5rem 0;
    font-size: .8rem;
}
.footer-bar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}
.footer-bar a { color: rgba(255,255,255,.6); }
.footer-bar a:hover { color: #fff; }
.footer-fb img { width: 32px; height: 32px; opacity: .7; transition: opacity .2s; }
.footer-fb img:hover { opacity: 1; }
.nav-fb-link { display: flex; align-items: center; padding: .3rem .5rem !important; }
.nav-fb-link img { width: 24px; height: 24px; opacity: .7; transition: opacity .2s; }
.nav-fb-link:hover img { opacity: 1; }
.nav-fb-link:hover { background: transparent !important; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .courses-grid { grid-template-columns: repeat(2, 1fr); }
    .steps { grid-template-columns: repeat(3, 1fr); gap: 2rem; }
    .steps::before { display: none; }
}
@media (max-width: 768px) {
    .nav-links, .nav-cta { display: none; }
    .nav-hamburger { display: flex; }
    .hero-inner { grid-template-columns: 1fr; overflow: hidden; }
    .hero-img { display: none !important; width: 0; overflow: hidden; }
    .hero-stats { gap: 1.25rem; }
    .features-grid { grid-template-columns: 1fr; }
    .courses-grid { grid-template-columns: 1fr; }
    .steps { grid-template-columns: 1fr 1fr; }
    .docs-list { grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: 1fr; }
    .section-pad { padding: 3.5rem 0; }
    h1 { font-size: 1.65rem; }
}
@media (max-width: 480px) {
    .steps { grid-template-columns: 1fr; }
    .hero-stats { flex-direction: column; gap: 1rem; }
    .hero-btns { flex-direction: column; }
    .hero-btns .btn { text-align: center; }
    .filter-tabs { justify-content: center; }
}
