/* Resetowanie domyślnych stylów */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

html, body {
    height: 100%;

}

body {
  background-color: #f8f9f3;
  color: #333;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1;
}

/* Stylizacja nagłówka */
header {
    background: #ffffff;
    color: #333;
    padding: 0;
    text-align: center;
    box-shadow: 0 3px 18px rgba(10, 28, 18, 0.09);
    position: relative;
    z-index: 100;
}

/* Stylizacja nawigacji */
.navbar {
    display: block;
    background: rgba(255, 255, 255, .97);
    padding: 0 clamp(18px, 4vw, 64px);
    border: 0;
    border-bottom: 1px solid #e4ebe5;
    border-radius: 0;
    width: 100%;
    max-width: none;
    margin: 0 auto;
}

.navbar-inner {
    width: 100%;
    max-width: 1600px;
    min-height: 78px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: clamp(20px, 3vw, 52px);
}

.brand-logo {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    gap: 11px;
    color: #203128;
    text-decoration: none;
    text-align: left;
}

.brand-mark {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 48px;
    height: 48px;
    overflow: hidden;
    border-radius: 13px 5px 13px 5px;
    color: #fff;
    background: linear-gradient(145deg, #172a20 0%, #315b3e 48%, #70ab68 100%);
    box-shadow: 0 8px 20px rgba(42, 92, 55, .22);
    transform: rotate(-2deg);
}
.brand-mark::after {
    content: '';
    position: absolute;
    inset: 4px;
    border: 1px solid rgba(255,255,255,.26);
    border-radius: 9px 3px 9px 3px;
}
.brand-mark span,.brand-mark strong { display:grid; place-items:center; font-size:17px; line-height:1; letter-spacing:-.08em; z-index:1; }
.brand-mark strong { background:rgba(255,255,255,.14); font-size:19px; }
.brand-name { display:grid; grid-template-columns:auto auto auto; align-items:baseline; color:#24352b; font-size:23px; font-weight:750; line-height:1; letter-spacing:-.045em; }
.brand-name strong { color:#568f5a; font-weight:900; }
.brand-name em { color:#849087; font-size:16px; font-style:normal; letter-spacing:-.02em; }
.brand-name small { grid-column:1/-1; margin-top:5px; color:#819087; font-size:8px; font-weight:800; letter-spacing:.2em; text-transform:uppercase; }
.brand-logo:hover .brand-mark { transform:rotate(0) translateY(-1px); box-shadow:0 10px 24px rgba(42,92,55,.3); }
.brand-mark { transition:transform .2s ease,box-shadow .2s ease; }
.brand-logo:focus-visible { outline:3px solid rgba(86,143,90,.35); outline-offset:5px; border-radius:8px; }

.nav-links {
    flex: 1 1 auto;
    justify-content: center;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 20px;
}

.nav-links a {
    text-decoration: none;
    color: #374a3d;
    font-size: 16px;
    font-weight: 650;
    transition: color 0.2s ease;
}

.nav-links a:hover,
.nav-links .active {
    color: #66a766;
    border-bottom: 2px solid #66a766;
    padding-bottom: 2px;
}

/* Przyciski logowania */
.auth-buttons {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 0 0 auto;
}

.auth-buttons a,.auth-buttons button {
    text-decoration: none;
    padding: 8px 15px;
    border-radius: 5px;
    font-size: 14px;
    border: 1px solid #66a766;
    font-family: inherit;
}

.auth-buttons .sign-in {
    color: #374a3d;
}

.auth-buttons .sign-up {
    background-color: #66a766;
    color: white;
}

.auth-buttons .sign-up:hover {
    background-color: #4f8c4f;
}

/* Panel ucznia */
.student-dashboard{max-width:1440px;margin:0 auto;padding:32px 28px 70px;color:#17243d}.student-hero{display:flex;justify-content:space-between;align-items:center;gap:30px;padding:38px 42px;margin-bottom:24px;border-radius:26px;color:#fff;background:radial-gradient(circle at 80% 10%,rgba(0,153,255,.42),transparent 34%),linear-gradient(125deg,#17243d,#253b64);box-shadow:0 18px 45px rgba(19,38,72,.2)}.student-hero p,.student-section-title p{margin:0 0 7px;color:#1398ff;font-size:12px;font-weight:800;letter-spacing:.12em;text-transform:uppercase}.student-hero h1{margin:0 0 8px;font-size:clamp(30px,4vw,48px)}.student-hero span{color:#d9e5f8}.student-hero>a{padding:13px 20px;border-radius:12px;background:#078df2;color:#fff;text-decoration:none;font-weight:800;white-space:nowrap}.student-flash{margin:0 0 22px;padding:14px 18px;border-radius:12px;background:#e7f7ef;color:#147246;border:1px solid #bce7d1}.student-flash.error{background:#fff0f0;color:#a63232;border-color:#f2c5c5}.student-layout{display:grid;grid-template-columns:minmax(0,1fr) 330px;gap:24px;align-items:start}.student-section,.student-profile,.student-tests{margin-bottom:24px;padding:25px;border:1px solid #e2e8f1;border-radius:20px;background:#fff;box-shadow:0 8px 30px rgba(31,49,79,.07)}.student-section-title{display:flex;justify-content:space-between;align-items:flex-start;gap:15px;margin-bottom:20px}.student-section-title h2,.student-profile h2,.student-tests h2{margin:0;font-size:22px}.student-section-title>span{padding:7px 11px;border-radius:20px;background:#edf7ff;color:#087ccc;font-size:12px;font-weight:800}.student-enrollment{display:flex;justify-content:space-between;align-items:center;gap:20px;padding:18px 0;border-top:1px solid #edf0f5}.student-enrollment:first-of-type{border-top:0}.student-enrollment h3{margin:8px 0 4px;font-size:18px}.student-enrollment p{margin:0;color:#68758a}.student-status{padding:4px 9px;border-radius:12px;font-size:11px;font-weight:800;text-transform:uppercase}.student-status.active{background:#dcf7e8;color:#147246}.student-status.withdrawn{background:#eef1f5;color:#6a7380}.student-card-actions{display:flex;align-items:center;gap:10px}.student-card-actions>a,.student-module-open{padding:10px 13px;border-radius:9px;background:#078df2;color:#fff;text-decoration:none;font-weight:700}.student-card-actions form{margin:0}.student-card-actions button{border:0;background:transparent;color:#a54a4a;cursor:pointer}.student-empty{display:flex;flex-direction:column;gap:5px;padding:22px;border-radius:14px;background:#f5f8fc;color:#637087}.student-empty strong{color:#24334e}.student-profile form{display:grid;gap:13px;margin-top:18px}.student-profile label{display:grid;gap:6px;color:#58657a;font-size:12px;font-weight:700}.student-profile input{box-sizing:border-box;width:100%;padding:11px 12px;border:1px solid #d8e0eb;border-radius:9px;background:#fff}.student-profile input:disabled{background:#f3f5f8}.student-profile button,.student-module-card button{padding:11px 14px;border:0;border-radius:9px;background:#172f55;color:#fff;font-weight:800;cursor:pointer}.student-tests ul{padding:0;margin:14px 0 0;list-style:none}.student-tests li{display:flex;justify-content:space-between;gap:12px;padding:12px 0;border-top:1px solid #edf0f4}.student-tests li div{display:grid;gap:4px}.student-tests li span{color:#8993a3;font-size:11px}.student-tests li b{color:#078df2}.student-table-wrap{overflow:auto}.student-table{width:100%;border-collapse:collapse}.student-table th{padding:10px;text-align:left;color:#748096;font-size:11px;text-transform:uppercase}.student-table td{padding:13px 10px;border-top:1px solid #edf0f4;color:#5f6b7d}.student-table td small{display:block;margin-top:4px;color:#99a2b0}.student-grade{display:inline-flex;min-width:32px;height:32px;align-items:center;justify-content:center;border-radius:50%;background:#e7f5ff;color:#067bc5;font-weight:900}.student-table-empty{text-align:center!important;color:#8b95a4!important;padding:25px!important}.student-catalog{margin-top:0}.student-module-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.student-module-card{display:flex;flex-direction:column;padding:20px;border:1px solid #e2e8f1;border-radius:15px;background:linear-gradient(180deg,#fff,#f9fbfe)}.student-module-card>span{align-self:flex-start;padding:4px 8px;border-radius:10px;background:#edf7ff;color:#087dcc;font-size:11px;font-weight:800}.student-module-card h3{margin:13px 0 8px;font-size:18px}.student-module-card>p{flex:1;margin:0;color:#68758a;line-height:1.55}.student-module-meta{display:flex;flex-wrap:wrap;gap:6px;margin:16px 0}.student-module-meta span{padding:5px 7px;border-radius:7px;background:#eef2f7;color:#697589;font-size:11px}.student-module-card form{margin:0}.student-module-card button,.student-module-open{display:block;width:100%;box-sizing:border-box;text-align:center}.student-panel-link{border-color:#078df2!important;color:#078df2!important}
@media(max-width:1050px){.student-layout{grid-template-columns:1fr}.student-layout aside{display:grid;grid-template-columns:1fr 1fr;gap:20px}.student-module-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:700px){.student-dashboard{padding:18px 14px 45px}.student-hero{align-items:flex-start;flex-direction:column;padding:28px 23px;border-radius:18px}.student-layout aside{display:block}.student-section,.student-profile,.student-tests{padding:18px;border-radius:15px}.student-module-grid{grid-template-columns:1fr}.student-enrollment{align-items:flex-start;flex-direction:column}.student-card-actions{width:100%;justify-content:space-between}.student-table{min-width:690px}}

/* Panel nauczyciela i administracja kadry */
.teacher-dashboard,.teacher-admin{max-width:1440px;margin:0 auto;padding:32px 28px 70px;color:#17243d}.teacher-hero{display:flex;justify-content:space-between;align-items:center;padding:34px 40px;margin-bottom:24px;border-radius:24px;background:linear-gradient(125deg,#342252,#6c3fa0);color:#fff}.teacher-hero p,.teacher-admin>header p{margin:0 0 6px;color:#d8b9ff;font-size:12px;font-weight:800;text-transform:uppercase;letter-spacing:.14em}.teacher-hero h1,.teacher-admin>header h2{margin:0 0 7px}.teacher-hero span{color:#eadff7}.teacher-hero b{padding:10px 14px;border-radius:12px;background:rgba(255,255,255,.14)}.teacher-layout{display:grid;grid-template-columns:minmax(0,1fr) 330px;gap:24px;align-items:start}.teacher-class,.teacher-profile,.teacher-rules,.teacher-admin-card,.teacher-admin-section{margin-bottom:20px;border:1px solid #e4ddeb;border-radius:17px;background:#fff;box-shadow:0 8px 28px rgba(54,34,78,.07)}.teacher-class summary{display:flex;justify-content:space-between;align-items:center;padding:20px 24px;cursor:pointer}.teacher-class summary span{color:#8b6aa9;font-size:11px;text-transform:uppercase}.teacher-class summary h2{margin:4px 0 0;font-size:21px}.teacher-class summary>strong{padding:7px 10px;border-radius:10px;background:#f3eafa;color:#6a3e92}.teacher-roster{padding:0 24px 20px}.teacher-student{display:grid;grid-template-columns:minmax(230px,1fr) minmax(420px,1.4fr);gap:20px;padding:17px 0;border-top:1px solid #eee8f3}.teacher-grades{display:flex;flex-wrap:wrap;gap:6px;margin-top:9px}.teacher-grades em{color:#9a91a2;font-size:12px}.teacher-grade{position:relative;display:inline-flex;align-items:center;gap:5px;padding:6px 9px;border-radius:9px;background:#eee5f7;color:#5d3285;font-weight:900}.teacher-grade small{font-weight:500;font-size:9px}.teacher-grade form{display:inline}.teacher-grade button{padding:0;border:0;background:transparent;color:#9c5d79;cursor:pointer}.teacher-grade-form{display:grid;grid-template-columns:70px 1fr 135px 70px;gap:7px;align-items:center}.teacher-grade-form input,.teacher-profile input,.teacher-profile textarea,.teacher-assignment-form select,.teacher-admin-names input{box-sizing:border-box;width:100%;padding:10px;border:1px solid #ddd3e6;border-radius:8px}.teacher-grade-form button,.teacher-profile button,.teacher-admin button{padding:10px 14px;border:0;border-radius:8px;background:#6b3d96;color:#fff;font-weight:800;cursor:pointer}.teacher-profile,.teacher-rules{padding:21px}.teacher-profile h2,.teacher-rules h2{margin-top:0;font-size:19px}.teacher-profile form{display:grid;gap:12px}.teacher-profile label{display:grid;gap:5px;color:#6e6476;font-size:12px;font-weight:700}.teacher-rules p{color:#766d7d;line-height:1.6}.teacher-empty{padding:25px;border-radius:14px;background:#f7f3fa;color:#75647f}.teacher-flash{margin-bottom:20px;padding:13px 16px;border:1px solid #bfe2cf;border-radius:10px;background:#eaf8f0;color:#236d46}.teacher-flash.error{border-color:#ecc7c7;background:#fff0f0;color:#973b3b}.teacher-admin>header{display:flex;justify-content:space-between;align-items:center;margin-bottom:25px}.teacher-admin>header p{color:#7447a0}.teacher-admin>header a{padding:9px 13px;border-radius:9px;background:#283c60;color:#fff;text-decoration:none}.teacher-admin-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px;margin-bottom:25px}.teacher-admin-card{padding:20px}.teacher-admin-card h3{margin:0}.teacher-admin-card p{margin:5px 0 15px;color:#81778a}.teacher-admin-names{display:grid;grid-template-columns:1fr 1fr;gap:8px}.teacher-admin-card>strong{display:block;margin:15px 0 8px}.teacher-admin-checks{display:grid;gap:7px;margin-bottom:15px}.teacher-admin-section{padding:23px}.teacher-admin-section>h3{margin-top:0}.teacher-admin-section>p{color:#807687}.teacher-assignment-form{display:grid;grid-template-columns:1fr 1fr 1fr auto;gap:10px;margin:18px 0 24px}.teacher-admin-remove{background:#b64f62!important}.student-table td small{display:block;color:#8d8493;margin-top:4px}
@media(max-width:1000px){.teacher-layout{grid-template-columns:1fr}.teacher-admin-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.teacher-student{grid-template-columns:1fr}.teacher-grade-form{grid-template-columns:70px 1fr 135px 70px}}
@media(max-width:700px){.teacher-dashboard,.teacher-admin{padding:18px 14px 45px}.teacher-hero{align-items:flex-start;flex-direction:column;gap:18px;padding:26px 22px}.teacher-admin-grid{grid-template-columns:1fr}.teacher-assignment-form,.teacher-grade-form{grid-template-columns:1fr}.teacher-class summary{align-items:flex-start;flex-direction:column;gap:10px}.teacher-roster{padding:0 16px 16px}}

.admin-role-filters{display:flex;flex-wrap:wrap;gap:10px;margin:0 0 18px}.admin-role-filters a{display:flex;align-items:center;gap:9px;padding:10px 14px;border:1px solid #dfe5ed;border-radius:10px;background:#fff;color:#4f5b6d;text-decoration:none;font-weight:700}.admin-role-filters a:hover,.admin-role-filters a.active{border-color:#44628f;background:#edf3fb;color:#263f68}.admin-role-filters a.admin{border-left:4px solid #d9534f}.admin-role-filters a.teacher{border-left:4px solid #7647a4}.admin-role-filters a.student{border-left:4px solid #1688d4}.admin-role-filters b{display:inline-grid;min-width:23px;height:23px;place-items:center;border-radius:12px;background:#eef1f5;font-size:11px}.admin-role-badge{display:inline-flex;align-items:center;padding:5px 10px;border-radius:14px;font-size:11px;font-weight:900;letter-spacing:.02em}.admin-role-badge--admin{background:#ffe8e8;color:#aa3434}.admin-role-badge--teacher{background:#efe5f8;color:#67358e}.admin-role-badge--student{background:#e5f4ff;color:#0877bd}

/* Stylizacja sekcji hero */
.hero {
    background: #EAF6E9;
    color: #333;
    padding: 80px 20px;
    text-align: center;
}

.hero-home {
    position: relative;
    overflow: hidden;
    min-height: 420px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 74px 20px 86px;
    background:
        linear-gradient(120deg, rgba(248, 253, 246, 0.94), rgba(234, 246, 233, 0.9)),
        repeating-linear-gradient(135deg, rgba(55, 74, 61, 0.06) 0 1px, transparent 1px 16px);
    isolation: isolate;
}

.hero-home::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(110deg, transparent 0%, rgba(255, 255, 255, 0.5) 45%, transparent 62%);
    transform: translateX(-120%);
    animation: hero-sheen 7s ease-in-out infinite;
    z-index: -1;
}

.hero-content {
    width: min(980px, 100%);
    margin: 0 auto;
}

.hero-kicker {
    display: inline-block;
    margin: 0 0 14px;
    padding: 7px 14px;
    border: 1px solid rgba(102, 167, 102, 0.35);
    border-radius: 999px;
    color: #4f7d54;
    background: rgba(255, 255, 255, 0.7);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0;
}

.hero-brand {
    margin: 0;
    color: #243329;
    font-size: clamp(46px, 9vw, 112px);
    line-height: 0.95;
    font-weight: 900;
    letter-spacing: 0;
    text-shadow: 0 12px 28px rgba(55, 74, 61, 0.14);
}

.hero-brand span,
.hero-brand strong,
.hero-brand em {
    font-style: normal;
}

.hero-brand strong {
    color: #4f8c4f;
    position: relative;
}

.hero-brand strong::after {
    content: "";
    position: absolute;
    left: 2px;
    right: 2px;
    bottom: 8px;
    height: 12px;
    background: rgba(116, 168, 74, 0.22);
    z-index: -1;
    border-radius: 2px;
}

.hero-brand em {
    color: #6b7c70;
    font-weight: 800;
}

.hero-lead {
    max-width: 720px;
    margin: 20px auto 0;
    color: #52635a;
    font-size: 19px;
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 30px;
}

.hero-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 11px 22px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 15px;
    font-weight: 800;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.hero-button:hover {
    transform: translateY(-2px);
}

.hero-button.primary {
    color: #fff;
    background: #5b895f;
    box-shadow: 0 10px 22px rgba(91, 137, 95, 0.25);
}

.hero-button.primary:hover {
    background: #4f7d54;
}

.hero-button.secondary {
    color: #374a3d;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid #cce5cc;
}

.hero-button.secondary:hover {
    box-shadow: 0 8px 20px rgba(55, 74, 61, 0.12);
}

@keyframes hero-sheen {
    0%, 45% {
        transform: translateX(-120%);
    }
    70%, 100% {
        transform: translateX(120%);
    }
}

/* Slider kursów na stronie głównej */
.hero-home {
    display: block;
    min-height: clamp(430px, 56vw, 640px);
    padding: 0;
    color: #fff;
    background: #071426;
    text-align: left;
    isolation: isolate;
}

.hero-home::before { display: none; }
.hero-slides { min-height: inherit; }

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    align-items: center;
    min-height: inherit;
    padding: 64px clamp(28px, 8vw, 130px) 86px;
    background-color: #071426;
    background-image: var(--hero-image, linear-gradient(135deg, #071426, #244b4f));
    background-position: center;
    background-size: cover;
    opacity: 0;
    visibility: hidden;
    transform: scale(1.015);
    transition: opacity .65s ease, visibility .65s ease, transform 6.5s linear;
}

.hero-slide.is-active {
    position: relative;
    opacity: 1;
    visibility: visible;
    transform: scale(1);
    z-index: 1;
}

.hero-slide-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(3, 12, 27, .96) 0%, rgba(3, 12, 27, .83) 35%, rgba(3, 12, 27, .28) 68%, rgba(3, 12, 27, .12) 100%);
}

.hero-home .hero-content {
    position: relative;
    z-index: 2;
    width: min(650px, 60%);
    margin: 0;
}

.hero-home .hero-kicker {
    color: #d9f6e2;
    border-color: rgba(199, 240, 210, .35);
    background: rgba(12, 31, 43, .52);
    backdrop-filter: blur(8px);
}

.hero-title {
    max-width: 760px;
    margin: 0;
    color: #fff;
    font-size: clamp(38px, 5.6vw, 76px);
    line-height: 1.03;
    letter-spacing: -.035em;
    text-wrap: balance;
    text-shadow: 0 8px 32px rgba(0, 0, 0, .38);
}

.hero-home .hero-lead {
    max-width: 620px;
    margin: 20px 0 0;
    color: rgba(255, 255, 255, .86);
    font-size: clamp(16px, 1.7vw, 20px);
    line-height: 1.6;
}

.hero-home .hero-actions { justify-content: flex-start; margin-top: 28px; }
.hero-home .hero-button.primary { background: #5f9f68; box-shadow: 0 12px 32px rgba(44, 113, 61, .34); }
.hero-home .hero-button.primary:hover { background: #72b67b; }

.hero-arrow {
    position: absolute;
    top: 50%;
    z-index: 4;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(255, 255, 255, .32);
    border-radius: 50%;
    color: #fff;
    background: rgba(5, 17, 31, .42);
    backdrop-filter: blur(8px);
    font-size: 22px;
    cursor: pointer;
    transform: translateY(-50%);
    transition: background .2s ease, transform .2s ease;
}
.hero-arrow:hover { background: rgba(95, 159, 104, .9); transform: translateY(-50%) scale(1.06); }
.hero-prev { left: 20px; }
.hero-next { right: 20px; }

.hero-dots {
    position: absolute;
    bottom: 34px;
    left: 50%;
    z-index: 4;
    display: flex;
    gap: 9px;
    transform: translateX(-50%);
}
.hero-dot {
    width: 9px;
    height: 9px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, .5);
    cursor: pointer;
    transition: width .25s ease, background .25s ease;
}
.hero-dot.is-active { width: 28px; background: #fff; }
.hero-progress { position: absolute; right: 0; bottom: 0; left: 0; z-index: 4; height: 3px; background: rgba(255,255,255,.12); }
.hero-progress span { display: block; width: 0; height: 100%; background: #72b67b; }
.hero-home.is-running .hero-progress span { animation: hero-progress 6.5s linear forwards; }
.hero-home.is-single .hero-arrow, .hero-home.is-single .hero-dots, .hero-home.is-single .hero-progress { display: none; }
@keyframes hero-progress { to { width: 100%; } }

@media (prefers-reduced-motion: reduce) {
    .hero-slide { transition: none; transform: none; }
    .hero-progress { display: none; }
}

@media (max-width: 640px) {
    .hero-home {
        min-height: 510px;
        padding: 0;
    }

    .hero-slide { align-items: end; padding: 70px 24px 82px; background-position: 68% center; }
    .hero-slide-shade { background: linear-gradient(0deg, rgba(3,12,27,.98) 0%, rgba(3,12,27,.82) 48%, rgba(3,12,27,.2) 100%); }
    .hero-home .hero-content { width: 100%; }
    .hero-title { font-size: clamp(34px, 11vw, 50px); }
    .hero-arrow { top: 42%; width: 38px; height: 38px; }
    .hero-prev { left: 10px; }
    .hero-next { right: 10px; }

    .hero-lead {
        font-size: 16px;
    }

    .hero-actions {
        align-items: stretch;
        flex-direction: column;
    }
}

button {
    background: #74A84A;
    border: none;
    padding: 12px 25px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    border-radius: 5px;
    transition: background 0.3s;
    color: white;
}

button:hover {
    background: #5C8A3E;
}

/* Sekcja kursów */
section.courses {
    padding: 30px 20px;
    text-align: center;
    background: #f1faef;
    border-top: 1px solid #dcefd8;
    border-bottom: 1px solid #dcefd8;
}

section.learning-modules-section {
    background: #f6f0fb;
    border-top-color: #eadcf6;
    border-bottom-color: #eadcf6;
}

section.courses:hover {

}

h2.courses{
  padding: 0;
  margin: 0 auto 18px;
  max-width: 820px;
  background: transparent;
  font-size: 24px;
  line-height: 1.35;
  color: #374a3d;
}


.course-list {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 18px;
}

.course {
    background: white;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    width: 300px;
    transition: transform 0.3s ease-in-out;
    border: 1px solid #E0E0E0;
}

.course:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.course h3 {
  padding: 5px;
}

.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin-top: 30px;
    margin-bottom: 30px;
}

.login-box {
    display: flex;
    background-color: white;
    border-radius: 10px;
    border: 1px solid #cce5cc;
    padding: 20px;
    width: 700px;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.1);
}

/* Stylizacja sekcji z obrazkiem */
.login-image {
    background-color: #ecf7e9;
    border-radius: 10px;
    padding: 20px;
    width: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.login-image img {
    width: 80%;
}

/* Stylizacja formularza logowania */
.login-form {
    width: 50%;
    padding: 20px;
}

.login-form h2 {
    font-size: 24px;
    font-weight: bold;
    color: #374a3d;
    margin-bottom: 15px;
}

.login-form h2 span {
    color: #66a766;
    border-bottom: 2px solid #66a766;
    padding-bottom: 2px;
}

.login-form input {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #cce5cc;
    border-radius: 5px;
    font-size: 16px;
}

.login-btn {
    width: 100%;
    padding: 10px;
    background-color: #5b895f;
    color: white;
    font-size: 16px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin-bottom: 10px;
}

.login-btn:hover {
    background-color: #4f7d54;
}

.google-btn {
    width: 100%;
    padding: 10px;
    background-color: #ecf7e9;
    color: #374a3d;
    font-size: 16px;
    border: 1px solid #cce5cc;
    border-radius: 5px;
    cursor: pointer;
}

.google-btn:hover {
    background-color: #e0f0da;
}

.login-alert {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #fff5f5;
    border-left: 4px solid #e74c3c;
    border-radius: 5px;
    padding: 10px 14px;
    margin-bottom: 15px;
    color: #c0392b;
    font-size: 14px;
    font-weight: 500;
    animation: loginAlertIn 0.3s ease;
}

.login-alert-icon {
    font-size: 16px;
    flex-shrink: 0;
}

/* Rejestracja konta */
.register-page {
    padding: clamp(28px, 5vw, 72px) clamp(18px, 4vw, 60px);
    background:
        radial-gradient(circle at 8% 12%, rgba(102,167,102,.13), transparent 26%),
        linear-gradient(145deg, #f3f7f1 0%, #fbfcf9 48%, #eef5ed 100%);
}
.register-shell {
    display:grid;
    grid-template-columns:minmax(360px,.92fr) minmax(480px,1.08fr);
    width:min(1160px,100%);
    min-height:680px;
    margin:0 auto;
    overflow:hidden;
    border:1px solid #dbe6dc;
    border-radius:22px 7px 22px 7px;
    background:#fff;
    box-shadow:0 28px 70px rgba(38,67,47,.13);
}
.register-visual { position:relative; min-height:680px; overflow:hidden; background:#16271e; }
.register-visual > img { width:100%; height:100%; object-fit:cover; object-position:center; }
.register-visual-shade { position:absolute; inset:0; background:linear-gradient(180deg,rgba(9,24,15,.18) 15%,rgba(9,24,15,.42) 52%,rgba(9,24,15,.94) 100%); }
.register-visual-copy { position:absolute; right:0; bottom:0; left:0; z-index:1; padding:44px; color:#fff; }
.register-badge { display:inline-block; margin-bottom:15px; padding:6px 10px; border:1px solid rgba(196,231,199,.38); border-radius:99px; background:rgba(22,50,31,.46); font-size:10px; font-weight:850; letter-spacing:.12em; text-transform:uppercase; backdrop-filter:blur(7px); }
.register-visual-copy h1 { max-width:480px; margin:0 0 23px; font-size:clamp(29px,3vw,43px); line-height:1.12; letter-spacing:-.035em; text-wrap:balance; }
.register-visual-copy ul { display:grid; gap:10px; margin:0; padding:0; list-style:none; color:#dce8de; font-size:13px; }
.register-visual-copy li { display:flex; align-items:center; gap:9px; }
.register-visual-copy li span { display:grid; place-items:center; width:21px; height:21px; border-radius:50%; color:#19321f; background:#91ca95; font-size:11px; font-weight:900; }
.register-form-panel { display:flex; flex-direction:column; justify-content:center; padding:clamp(38px,5vw,72px); }
.register-form-head > p { margin:0 0 8px; color:#568f5a; font-size:11px; font-weight:850; letter-spacing:.11em; text-transform:uppercase; }
.register-form-head h2 { margin:0 0 10px; color:#24352b; font-size:clamp(31px,3.5vw,47px); line-height:1.08; letter-spacing:-.045em; }
.register-form-head h2 span { color:#5b965f; }
.register-form-head > div { color:#7a887e; font-size:13px; }
.register-form-head a { color:#4f8353; font-weight:800; }
.register-message { min-height:20px; margin:18px 0 2px; color:#9c3f3f; font-size:13px; font-weight:650; }
.register-message:empty { min-height:8px; margin-top:8px; }
.register-form { display:grid; grid-template-columns:1fr 1fr; gap:17px 15px; }
.register-form label { color:#3d4c42; font-size:12px; font-weight:750; }
.register-form .register-wide { grid-column:1/-1; }
.register-form input { width:100%; margin-top:7px; padding:12px 13px; border:1px solid #d4ddd5; border-radius:7px; outline:0; color:#26372c; background:#fbfcfa; font:inherit; font-size:14px; transition:border-color .2s ease,box-shadow .2s ease,background .2s ease; }
.register-form input::placeholder { color:#a3ada6; }
.register-form input:focus { border-color:#70a874; background:#fff; box-shadow:0 0 0 4px rgba(91,150,95,.11); }
.register-terms { margin:-2px 0 0; color:#8b968e; font-size:11px; font-weight:400; line-height:1.55; }
.register-submit { display:flex; align-items:center; justify-content:space-between; width:100%; min-height:48px; padding:12px 18px; border:0; border-radius:7px; color:#fff; background:linear-gradient(135deg,#477b4d,#67a66c); box-shadow:0 12px 24px rgba(71,123,77,.22); font-size:14px; font-weight:850; cursor:pointer; transition:transform .2s ease,box-shadow .2s ease; }
.register-submit:hover { transform:translateY(-2px); box-shadow:0 15px 30px rgba(71,123,77,.3); }
.register-submit span { font-size:20px; }
@media(max-width:900px){.register-shell{grid-template-columns:1fr;max-width:680px}.register-visual{min-height:390px}.register-visual > img{object-position:center 58%}.register-visual-copy{padding:30px}.register-form-panel{padding:38px}}
@media(max-width:560px){.register-page{padding:18px 12px}.register-shell{border-radius:15px}.register-visual{min-height:330px}.register-visual-copy h1{font-size:27px}.register-form-panel{padding:28px 20px}.register-form{grid-template-columns:1fr}.register-form .register-wide{grid-column:auto}}

/* Nowoczesny ekran logowania */
.login-page { padding:clamp(28px,5vw,72px) clamp(18px,4vw,60px); background:radial-gradient(circle at 90% 12%,rgba(102,167,102,.12),transparent 28%),linear-gradient(145deg,#f3f7f1,#fbfcf9 50%,#edf4ec); }
.login-shell-modern { display:grid; grid-template-columns:minmax(380px,1fr) minmax(420px,.9fr); width:min(1080px,100%); min-height:620px; margin:0 auto; overflow:hidden; border:1px solid #dbe6dc; border-radius:22px 7px 22px 7px; background:#fff; box-shadow:0 28px 70px rgba(38,67,47,.13); }
.login-visual-modern { position:relative; min-height:620px; overflow:hidden; background:#10241a; }
.login-visual-modern > img { width:100%; height:100%; object-fit:cover; object-position:center; }
.login-visual-shade { position:absolute; inset:0; background:linear-gradient(180deg,rgba(5,19,11,.12),rgba(5,19,11,.28) 45%,rgba(5,19,11,.94)); }
.login-visual-copy { position:absolute; right:0; bottom:0; left:0; z-index:1; padding:44px; color:#fff; }
.login-visual-copy h1 { max-width:490px; margin:0 0 14px; font-size:clamp(31px,3.4vw,47px); line-height:1.1; letter-spacing:-.04em; text-wrap:balance; }
.login-visual-copy > p { max-width:440px; margin:0; color:#d7e3d9; font-size:14px; line-height:1.65; }
.login-panel-modern { display:flex; flex-direction:column; justify-content:center; padding:clamp(42px,6vw,78px); }
.login-panel-modern .login-alert { margin:24px 0 0; }
.login-form-modern { display:grid; gap:18px; margin-top:28px; }
.login-form-modern label { color:#3d4c42; font-size:12px; font-weight:750; }
.login-form-modern input { width:100%; margin-top:7px; padding:13px 14px; border:1px solid #d4ddd5; border-radius:7px; outline:0; color:#26372c; background:#fbfcfa; font:inherit; font-size:14px; transition:border-color .2s,box-shadow .2s,background .2s; }
.login-form-modern input:focus { border-color:#70a874; background:#fff; box-shadow:0 0 0 4px rgba(91,150,95,.11); }
.login-help { display:flex; justify-content:space-between; gap:15px; color:#8c9890; font-size:11px; }
.login-help a { color:#568f5a; font-weight:750; }
.login-submit-modern { display:flex; align-items:center; justify-content:space-between; min-height:49px; padding:12px 18px; border:0; border-radius:7px; color:#fff; background:linear-gradient(135deg,#477b4d,#67a66c); box-shadow:0 12px 24px rgba(71,123,77,.22); font-size:14px; font-weight:850; cursor:pointer; transition:transform .2s,box-shadow .2s; }
.login-submit-modern:hover { transform:translateY(-2px); box-shadow:0 15px 30px rgba(71,123,77,.3); }
.login-submit-modern span { font-size:20px; }
@media(max-width:860px){.login-shell-modern{grid-template-columns:1fr;max-width:650px}.login-visual-modern{min-height:370px}.login-visual-copy{padding:30px}.login-panel-modern{padding:38px}}
@media(max-width:520px){.login-page{padding:18px 12px}.login-shell-modern{border-radius:15px}.login-visual-modern{min-height:320px}.login-visual-copy h1{font-size:28px}.login-panel-modern{padding:30px 21px}.login-help{align-items:flex-start;flex-direction:column}}

/* Strona kontaktowa */
.contact-page { padding:clamp(42px,6vw,86px) clamp(18px,4vw,60px); background:radial-gradient(circle at 8% 12%,rgba(102,167,102,.13),transparent 25%),linear-gradient(145deg,#f3f7f1,#fbfcf9 52%,#eef5ed); }
.contact-hero { max-width:820px; margin:0 auto 42px; padding:0; color:inherit; background:none; box-shadow:none; text-align:center; }
.contact-hero > p { margin:0 0 10px; color:#568f5a; font-size:11px; font-weight:850; letter-spacing:.12em; text-transform:uppercase; }
.contact-hero h1 { margin:0 0 16px; color:#25372c; font-size:clamp(38px,5vw,66px); line-height:1.03; letter-spacing:-.05em; text-wrap:balance; }
.contact-hero h1 span { color:#5b965f; }
.contact-hero > div { max-width:650px; margin:0 auto; color:#718077; font-size:16px; line-height:1.65; }
.contact-layout { display:grid; grid-template-columns:minmax(340px,.82fr) minmax(480px,1.18fr); gap:24px; width:min(1180px,100%); margin:0 auto; }
.contact-details-modern { display:grid; gap:13px; }
.contact-card-modern { display:flex; align-items:center; gap:17px; padding:20px; border:1px solid #dce5dd; border-radius:11px; background:#fff; box-shadow:0 7px 20px rgba(36,65,45,.055); }
.contact-icon { display:grid; place-items:center; flex:0 0 48px; width:48px; height:48px; border-radius:12px 4px 12px 4px; color:#fff; background:linear-gradient(145deg,#315b3e,#70ab68); font-size:20px; }
.contact-card-modern small { color:#78907e; font-size:9px; font-weight:850; letter-spacing:.13em; text-transform:uppercase; }
.contact-card-modern h2 { margin:3px 0 4px; color:#293a30; font-size:17px; }
.contact-card-modern a,.contact-card-modern p { margin:0; color:#647168; font-size:13px; text-decoration:none; }
.contact-card-modern a:hover { color:#568f5a; }
.contact-action-card { margin-top:5px; padding:27px; border-radius:15px 5px 15px 5px; color:#d9e6db; background:linear-gradient(145deg,#17291f,#284834); box-shadow:0 18px 35px rgba(23,48,31,.16); }
.contact-action-card > p { margin:0 0 7px; color:#8fc895; font-size:10px; font-weight:850; letter-spacing:.12em; text-transform:uppercase; }
.contact-action-card h2 { margin:0 0 10px; color:#fff; font-size:25px; letter-spacing:-.025em; }
.contact-action-card > div { color:#aebfb2; font-size:13px; line-height:1.6; }
.contact-action-card a { display:flex; align-items:center; justify-content:space-between; margin-top:20px; padding:11px 14px; border-radius:6px; color:#fff; background:#5c9862; font-size:12px; font-weight:850; text-decoration:none; }
.contact-map-modern { position:relative; min-height:620px; overflow:hidden; border:1px solid #d5e0d7; border-radius:20px 7px 20px 7px; background:#dfe8df; box-shadow:0 24px 60px rgba(38,67,47,.13); }
.contact-map-modern iframe { width:100%; height:100%; min-height:620px; border:0; filter:saturate(.72) contrast(.94); }
.contact-map-label { position:absolute; right:22px; bottom:22px; display:grid; gap:2px; min-width:210px; padding:15px 17px; border:1px solid rgba(255,255,255,.55); border-radius:10px; color:#26372c; background:rgba(255,255,255,.9); box-shadow:0 12px 28px rgba(20,45,28,.16); backdrop-filter:blur(10px); }
.contact-map-label span { color:#718077; font-size:12px; }
@media(max-width:900px){.contact-layout{grid-template-columns:1fr;max-width:680px}.contact-map-modern,.contact-map-modern iframe{min-height:440px}}
@media(max-width:520px){.contact-page{padding:38px 12px}.contact-hero h1{font-size:38px}.contact-card-modern{padding:16px}.contact-map-modern,.contact-map-modern iframe{min-height:360px}.contact-map-label{right:12px;bottom:12px;left:12px}}

/* Panel aktualizacji / deploy */
.deploy-page { width:min(1320px,calc(100% - 32px)); margin:28px auto 60px; color:#2c3b31; }
.deploy-header { display:flex; justify-content:space-between; align-items:flex-end; gap:24px; margin-bottom:22px; padding:0; background:none; box-shadow:none; text-align:left; }
.deploy-header h2 { margin:2px 0 7px; font-size:clamp(30px,4vw,48px); line-height:1.05; letter-spacing:-.045em; }
.deploy-header > div > p:last-child { color:#718077; }
.deploy-header > a { padding:9px 14px; border:1px solid #cedbd0; border-radius:7px; color:#466f4b; background:#fff; font-size:12px; font-weight:800; text-decoration:none; white-space:nowrap; }
.deploy-eyebrow { margin:0; color:#568f5a!important; font-size:10px; font-weight:850; letter-spacing:.13em; text-transform:uppercase; }
.deploy-overview { display:grid; grid-template-columns:repeat(4,1fr); gap:12px; margin-bottom:18px; }
.deploy-overview article { display:grid; gap:4px; min-width:0; padding:17px 18px; border:1px solid #dce5dd; border-radius:10px; background:#fff; box-shadow:0 5px 16px rgba(35,65,44,.045); }
.deploy-overview span { color:#829087; font-size:9px; font-weight:850; letter-spacing:.1em; text-transform:uppercase; }
.deploy-overview strong { overflow:hidden; color:#293a30; font-size:16px; text-overflow:ellipsis; white-space:nowrap; }
.deploy-overview strong.ok { color:#397943; }.deploy-overview strong.warning { color:#ad6d16; }
.deploy-overview small { overflow:hidden; color:#89958d; font-size:10px; text-overflow:ellipsis; white-space:nowrap; }
.deploy-jump { position:sticky; top:8px; z-index:20; display:flex; gap:7px; margin-bottom:22px; padding:7px; border:1px solid #dce5dd; border-radius:10px; background:rgba(247,250,247,.94); box-shadow:0 8px 24px rgba(35,65,44,.08); backdrop-filter:blur(12px); }
.deploy-jump a { flex:1; padding:9px 12px; border-radius:6px; color:#637268; font-size:11px; font-weight:800; text-align:center; text-decoration:none; }
.deploy-jump a:hover { color:#fff; background:#568f5a; }
.deploy-section { margin-bottom:24px; scroll-margin-top:75px; }
.deploy-section-title { display:flex; align-items:center; gap:13px; margin-bottom:12px; }
.deploy-section-title > span { display:grid; place-items:center; flex:0 0 35px; width:35px; height:35px; border-radius:10px 3px 10px 3px; color:#fff; background:linear-gradient(145deg,#315b3e,#70ab68); font-weight:900; }
.deploy-section-title h3 { margin:0 0 2px; color:#293a30; font-size:20px; }
.deploy-section-title p { margin:0; color:#849087; font-size:11px; }
.deploy-grid { display:grid; gap:14px; }.deploy-grid.two { grid-template-columns:1fr 1fr; }
.deploy-card { padding:22px; border:1px solid #dce5dd; border-radius:11px; background:#fff; box-shadow:0 7px 22px rgba(35,65,44,.05); }
.deploy-card-head > span { color:#65986a; font-size:9px; font-weight:900; letter-spacing:.12em; }
.deploy-card-head h4 { margin:4px 0 10px; color:#293a30; font-size:18px; }
.deploy-card > p { margin:0 0 16px; color:#718077; font-size:12px; line-height:1.6; }
.deploy-form { display:grid; gap:11px; }.deploy-form label { color:#4c5b51; font-size:11px; font-weight:800; }.deploy-form input { display:block; width:100%; margin-top:5px; padding:9px 10px; border:1px solid #d2ddd4; border-radius:6px; font:inherit; }
.deploy-actions { display:flex; gap:8px; flex-wrap:wrap; margin-top:14px; }.deploy-actions form { margin:0; }
.deploy-btn { padding:9px 14px!important; border:0!important; border-radius:6px!important; font:inherit!important; font-size:11px!important; font-weight:850!important; cursor:pointer!important; }
.deploy-btn.primary { color:#fff!important; background:#568f5a!important; }.deploy-btn.secondary { border:1px solid #ced9d0!important; color:#405047!important; background:#fff!important; }.deploy-btn.danger { color:#a23535!important; background:#fbe9e9!important; }
.deploy-key { display:flex; align-items:center; flex-wrap:wrap; gap:6px; margin:14px 0; }
.deploy-muted { margin:12px 0 0; color:#929d95; font-size:11px; }
.deploy-external-card > div { margin:0!important; height:100%; box-shadow:none!important; border:1px solid #dce5dd!important; border-radius:11px!important; }
.deploy-external-card h3 { font-size:18px!important; }.deploy-external-card p { line-height:1.55; }
.deploy-details { margin-bottom:10px; overflow:hidden; border:1px solid #dce5dd; border-radius:10px; background:#fff; }
.deploy-details summary { display:flex; justify-content:space-between; gap:15px; padding:15px 18px; color:#34463a; background:#f8faf8; font-size:13px; font-weight:850; cursor:pointer; }
.deploy-details summary span { color:#849087; font-size:10px; font-weight:650; }
.deploy-table-wrap { overflow-x:auto; padding:8px 14px 15px; }.deploy-table-wrap table { width:100%; border-collapse:collapse; }.deploy-table-wrap th { padding:8px 10px; color:#68766d; background:#f4f7f4; font-size:10px; text-align:left; }.deploy-table-wrap td { border-bottom:1px solid #edf1ed; }
@media(max-width:960px){.deploy-overview{grid-template-columns:1fr 1fr}.deploy-grid.two{grid-template-columns:1fr}.deploy-jump{position:static}}
@media(max-width:600px){.deploy-page{width:min(100% - 20px,1320px)}.deploy-header{align-items:flex-start;flex-direction:column}.deploy-overview{grid-template-columns:1fr}.deploy-jump{display:grid;grid-template-columns:1fr 1fr}.deploy-section-title{align-items:flex-start}.deploy-section-title p{line-height:1.45}}

@keyframes loginAlertIn {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}

.course-card {
    width: 300px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    border: 1px solid #E0E0E0;
    padding: 15px;
    margin-top: 8px;
    margin-bottom: 8px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    min-height: 210px;
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out, border-color 0.3s ease-in-out;
}
/* Równa wysokość kafelków niezależnie od długości opisu; „zobacz" zawsze na dole. */
.course-card .course-info {
    display: flex;
    flex-direction: column;
    flex: 1;
}
.course-card .course-info .rating {
    margin-top: auto;
    padding-top: 10px;
}

.course-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.16);
    border-color: #d9b8e2;
}
.course-image {
    width: 100%;
    border-radius: 10px;
}
.course-info {
    padding: 10px 0;
}
.course-title {
    font-size: 16px;
    font-weight: bold;
    color: #374a3d;
    margin-bottom: 5px;
}
.course-instructor {
    font-size: 12px;
    color: #6a6a6a;
    margin-bottom: 10px;
}
.progress-bar {
    height: 5px;
    background: #ddd;
    border-radius: 5px;
    margin-bottom: 10px;
    position: relative;
}
.progress-bar div {
    height: 100%;
    width: 38%; /* Przyklad */
    background: #66a766;
    border-radius: 5px;
}
.rating {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: #6a6a6a;
}
.stars {
    color: gold;
}

.course-container {
    display: flex;
    max-width: 1100px;
    margin: auto;
    gap: 20px;
    margin-top: 15px;
    margin-bottom: 15px;
}

/* Style ogólne */
.course-main {
    width: 95%; /* Użyj procentów, aby dostosować się do mniejszych ekranów */
    background: white;
    padding: 15px; /* Zmniejsz padding dla mniejszych ekranów */
    border-radius: 8px;
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.1); /* Zmniejsz cień */
    margin: 10px auto; /* Dodaj marginesy */
}

.video-container {
    width: 100%;
    height: auto; /* Dostosuj wysokość automatycznie */
    aspect-ratio: 16 / 9; /* Zachowaj proporcje 16:9 */
    position: relative;
    border-radius: 8px;
    overflow: hidden;
}

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

.course-main.no-video {
    padding-top: 5px;
}

.course-main.no-video h1 {
    margin-top: 0;
}

.video-unavailable {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #1a1a2e;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #888;
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.video-unavailable span {
    font-size: 28px;
    color: #444;
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 30px; /* Zmniejsz rozmiar ikony */
    color: white;
    background: rgba(0, 0, 0, 0.6);
    padding: 15px; /* Zmniejsz padding */
    border-radius: 50%;
    cursor: pointer;
}

h1 {
    font-size: 20px; /* Zmniejsz rozmiar nagłówka */
    margin: 15px 0;
}

.instructor {
    display: flex;
    align-items: center;
    gap: 8px; /* Zmniejsz odstęp */
    font-size: 12px; /* Zmniejsz rozmiar tekstu */
}

.instructor img {
    width: 30px; /* Zmniejsz rozmiar obrazka */
    height: 30px;
    border-radius: 50%;
}

.instructor .name {
    font-weight: bold;
}

.tabs {
    margin: 15px 0;
    overflow-x: auto; /* Dodaj przewijanie poziome dla kart */
    white-space: nowrap; /* Zapobiegaj zawijaniu tekstu */
}

.tabs button {
    padding: 8px 12px; /* Zmniejsz padding */
    border: none;
    background: #e4e4e4;
    cursor: pointer;
    margin-right: 3px; /* Zmniejsz margines */
    border-radius: 4px;
    font-size: 14px;
}

.tabs .active {
    background: #4CAF50;
    color: white;
}

.description img {
    max-width: 100%;
    height: auto;
    display: block;
    margin-top: 8px;
    margin-bottom: 15px;
}

.description h2 {
    margin-top: 12px;
    font-size: 16px; /* Zmniejsz rozmiar nagłówka */
}

/* Style dla sidebaru na urządzeniach mobilnych */
.course-sidebar {
    width: 45%; /* Użyj procentów, aby dostosować się do mniejszych ekranów */
    max-height: 300px; /* Usuń ograniczenie wysokości */
    background: #ecf8ee;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.1);
    text-align: center;
    margin: 10px auto; /* Dodaj marginesy */
}

.price {
    font-size: 20px; /* Zmniejsz rozmiar ceny */
    font-weight: bold;
    color: #4CAF50;
    margin-bottom: 8px;
}

.course-info {
    list-style: none;
    text-align: left;
    font-size: 12px; /* Zmniejsz rozmiar tekstu */
}

.course-info li {
    margin: 4px 0;
}

.enroll {
    width: 100%;
    padding: 8px; /* Zmniejsz padding */
    margin-top: 12px;
    background: #4CAF50;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 14px; /* Zmniejsz rozmiar tekstu */
    cursor: pointer;
}

.share {
    margin-top: 15px;
    text-align: center;
}

.icons a {
    display: inline-block;
    font-size: 18px; /* Zmniejsz rozmiar ikon */
    margin: 3px; /* Zmniejsz margines */
    color: #333;
    text-decoration: none;
}

/* Media query dla mniejszych ekranów */
@media (max-width: 768px) {
    .course-main, .course-sidebar {
        width: 100%; /* Pełna szerokość na małych ekranach */
        padding: 10px; /* Jeszcze mniejszy padding */
        border-radius: 5px;
    }

    .video-container {
      aspect-ratio: 16 / 9;
    }
}

/* Stylizacja formularza dodawania kursu */
section.add-course {
    width: 100%;
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
}

section.add-course h2 {
    margin-bottom: 15px;
}

form.add-course {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

label.add-course {
    font-weight: bold;
}

input.add-course, textarea.add-course {
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 5px;
    width: 100%;
}

textarea.add-course {
    min-height: 300x;
    resize: none;
}

section.course-list {
    width: 80%;
    margin: 20px auto;
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
}

section.course-list h2 {
    margin-bottom: 20px;
}

.course_list {
    border: 1px solid #ddd;
    padding: 15px;
    margin-bottom: 10px;
    border-radius: 5px;
    display: flex;
    justify-content: space-between;
}

.course h3 {
    margin-bottom: 5px;
}

.course p {
    margin-bottom: 10px;
    float: left;
}

.course .course-actions {
    display: flex;
    gap: 10px;

}

.course_list .course-actions a {
    padding: 5px 10px;
    background: #1ABC9C;
    color: white;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    float: left;
    margin-left: 5px;
    margin-top: 5px;
}

.course_list .course-actions a.delete {
    background: #E74C3C;
}

section.add-course {
    width: 80%;
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    margin: 0 auto;
    margin-bottom: 20px;
    margin-top: 20px;
}

section.add-course h2 {
    margin-bottom: 15px;
}

section.add-course form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

section.add-course label {
    font-weight: bold;
}

section.add-course input, section.add-course textarea {
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 5px;
    width: 100%;
}

section.add-course textarea {
    min-height: 450px;
    resize: none;
}

section.add-course button {
    padding: 10px;
    background: #1ABC9C;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: 0.3s;
}

section.add-course button:hover {
    background: #16A085;
}

section.add-category {
    width: 40%;
    margin: 20px auto;
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
}
.category-link a {
    display: inline-block;  /* Sprawia, że link zachowuje się jak przycisk */
    padding: 10px 20px;
    background-color: #4a7c4a; /* Zielone tło */
    color: white; /* Biały tekst */
    text-decoration: none; /* Usunięcie podkreślenia */
    font-weight: bold;
    border-radius: 5px; /* Zaokrąglone rogi */
    transition: background 0.3s ease;
}

.category-link a:hover {
    background-color: #3a6a3a; /* Ciemniejszy zielony po najechaniu */
}

.category-link {
    text-align: center; /* Wyśrodkowanie linka */
    margin-top: 10px;
}

section.add-category h2 {
    margin-bottom: 15px;
    text-align: center;
}

section.add-category form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

section.add-category label {
    font-weight: bold;
}

section.add-category input[type="text"],
section.add-category textarea {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
}

section.add-category textarea {
    resize: vertical;
    min-height: 100px;
}

section.add-category button[type="submit"] {
    padding: 12px 20px;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

section.add-category button[type="submit"]:hover {
    background-color: #2980b9;
}

section.category-list {
    width: 80%;
    margin: 20px auto;
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
}

.category {
    border: 1px solid #ddd;
    padding: 15px;
    margin-bottom: 10px;
    border-radius: 5px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.category-title {
    font-size: 1.2em;
    margin-bottom: 5px;
}

.category-description {
    margin-bottom: 10px;
}

.category-actions {
    display: flex;
    gap: 10px;
}

.category-actions a {
    padding: 5px 10px;
    background: #1ABC9C;
    color: white;
    border: none;
    border-radius: 5px;
    text-decoration: none;
}

.category-actions a.delete {
    background: #E74C3C;
}

/* Responsywność */
@media (max-width: 768px) {
    section.category-list {
        width: 95%;
    }

    .category {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .category-actions {
        width: 100%;
        justify-content: flex-end;
    }
}

/* Stylizacja formularza przesyłania plików */
form[enctype="multipart/form-data"] {
    background-color: #f9f9f9;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 5px;
    margin-bottom: 20px;
}

form[enctype="multipart/form-data"] label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

form[enctype="multipart/form-data"] input[type="file"] {
    margin-bottom: 10px;
}

form[enctype="multipart/form-data"] input[type="submit"] {
    background-color: #007bff;
    color: white;
    padding: 10px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

form[enctype="multipart/form-data"] input[type="submit"]:hover {
    background-color: #0056b3;
}

/* Stylizacja listy plików */
ul.file-list {
    list-style-type: none;
    padding: 0;
}

ul.file-list li {
    margin-bottom: 5px;
}

ul.file-list li a {
    color: #007bff;
    text-decoration: none;
}

ul.file-list li a:hover {
    text-decoration: underline;
}

h2.file-list-title {
    color: #333;
    margin-top: 20px;
}

div.upload {
    max-width: 1200px;
    margin: 24px auto;
    padding: 24px;
    background: #ffffff;
    border: 1px solid #dcefd8;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(55, 74, 61, 0.08);
}

.upload-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
    padding-bottom: 16px;
    border-bottom: 1px solid #edf4ea;
}

.upload-header h2 {
    margin: 0;
    color: #2f3d34;
    font-size: 24px;
}

.upload-kicker {
    margin: 0 0 4px;
    color: #5b895f;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0;
}

.upload-status {
    flex-shrink: 0;
    padding: 7px 12px;
    border: 1px solid #b9dfb6;
    border-radius: 999px;
    background: #f1faef;
    color: #3f7a45;
    font-size: 12px;
    font-weight: 800;
}

div.message-upload, div.message-info {
  background-color: #f8fdf6;
  padding: 14px 16px;
  border: 1px solid #dcefd8;
  border-radius: 6px;
  margin-bottom: 18px;
  color: #374a3d;
}

.upload-form {
    display: grid;
    grid-template-columns: minmax(260px, 1.2fr) minmax(220px, 1fr) auto;
    gap: 14px;
    align-items: end;
    padding: 18px;
    background: #fbfdf9;
    border: 1px solid #e5f1e0;
    border-radius: 8px;
    margin-bottom: 14px;
}

.upload-field label {
    display: block;
    margin-bottom: 6px;
    color: #374a3d;
    font-size: 13px;
    font-weight: 800;
}

.upload-field input[type="password"],
.upload-field input[type="file"] {
    width: 100%;
    min-height: 41px;
    padding: 9px 10px;
    border: 1px solid #cdddc8;
    border-radius: 6px;
    background: #fff;
    color: #333;
}

.upload-field span {
    display: block;
    margin-top: 5px;
    color: #6f7d72;
    font-size: 12px;
}

.upload-actions input[type="submit"] {
    min-height: 41px;
    padding: 9px 18px;
    border: 0;
    border-radius: 6px;
    background: #5b895f;
    color: #fff;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.upload-actions input[type="submit"]:hover {
    background: #4f7d54;
    transform: translateY(-1px);
}

.upload-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 22px;
}

.upload-meta span {
    padding: 6px 10px;
    border-radius: 6px;
    background: #f4f6f2;
    color: #647067;
    font-size: 12px;
}

.upload-library > div {
    box-shadow: none;
}

@media (max-width: 820px) {
    div.upload {
        margin: 16px 10px;
        padding: 16px;
    }

    .upload-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .upload-form {
        grid-template-columns: 1fr;
    }
}

.contact-container {
     max-width: 900px;
     margin: auto;
     background: white;
     padding: 20px;
     border-radius: 10px;
     box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.1);

     margin-top: 30px;
     margin-bottom: 30px;
 }

 .map-container {
     width: 100%;
     height: 300px;
     border-radius: 10px;
     overflow: hidden;
 }

 .map-container iframe {
     width: 100%;
     height: 100%;
     border: none;
 }

 .contact-content {
     display: flex;
     gap: 20px;
     margin-top: 20px;
 }

 /* Sekcja z danymi kontaktowymi */
 .contact-info {
     flex: 1;
     background: #e6f0e6;
     padding: 20px;
     border-radius: 10px;
     display: flex;
     flex-direction: column;
     align-items: center;
 }

 .info-box {
     width: 100%;
     text-align: center;
     padding: 15px 0;
     border-bottom: 1px solid #c9e0c9;
 }

 .info-box:last-child {
     border-bottom: none;
 }

 .info-box img {
     width: 40px;
     height: 40px;
     margin-bottom: 5px;
 }

 .info-box h3 {
     font-size: 14px;
     color: #6c8b6c;
 }

 .info-box p {
     font-size: 16px;
     font-weight: bold;
     color: #333;
 }

 /* Sekcja formularza */
 .contact-form {
     flex: 1;
 }

 .contact-form h2 {
     font-size: 24px;
     margin-bottom: 10px;
 }

 .contact-form h2 span {
     color: #4a7c4a;
 }

 .contact-form input,
 .contact-form textarea {
     width: 100%;
     padding: 10px;
     margin-top: 10px;
     border: 1px solid #ccc;
     border-radius: 5px;
 }

 .contact-form button {
     width: 100%;
     background: #4a7c4a;
     color: white;
     padding: 12px;
     border: none;
     border-radius: 5px;
     font-size: 16px;
     margin-top: 10px;
     cursor: pointer;
 }

 .contact-form button:hover {
     background: #3a6a3a;
 }

/* Rozbudowana stopka AdobePro */
.site-footer {
    margin-top: auto;
    padding: 68px clamp(22px, 4vw, 68px) 0;
    color: #d6dfd8;
    background:
        radial-gradient(circle at 88% 12%, rgba(102, 167, 102, .14), transparent 28%),
        linear-gradient(145deg, #14241c 0%, #1c3025 52%, #17281f 100%);
    text-align: left;
}

.footer-inner {
    display: grid;
    grid-template-columns: minmax(230px, 1.35fr) repeat(3, minmax(130px, .72fr)) minmax(280px, 1.35fr);
    gap: clamp(28px, 4vw, 64px);
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    padding-bottom: 52px;
}

.footer-logo { width: max-content; margin-bottom: 21px; }
.footer-logo .brand-name { color: #f6faf7; }
.footer-logo .brand-name em { color: #9cb0a1; }
.footer-logo .brand-name small { color: #7fa487; }
.footer-brand > p { max-width: 290px; margin: 0 0 22px; color: #9fb0a4; font-size: 14px; line-height: 1.65; }
.footer-contact { display:flex; align-items:center; gap:9px; width:max-content; margin:9px 0; color:#cfdbd1; text-decoration:none; font-size:13px; }
.footer-contact span { display:grid; place-items:center; width:25px; height:25px; border-radius:7px; color:#a9d4ae; background:rgba(112,171,104,.12); }
.footer-contact:hover { color:#8fca94; }

.footer-column h2 {
    margin: 4px 0 22px;
    color: #fff;
    font-size: 13px;
    letter-spacing: .075em;
    text-transform: uppercase;
}
.footer-column a { display:block; width:max-content; max-width:100%; margin:0 0 14px; color:#aebdb2; font-size:13px; line-height:1.4; text-decoration:none; transition:color .2s ease,transform .2s ease; }
.footer-column a:hover { color:#8fca94; transform:translateX(3px); }

.footer-cta {
    align-self: start;
    padding: 26px;
    border: 1px solid rgba(151, 197, 153, .18);
    border-radius: 15px 5px 15px 5px;
    background: rgba(255,255,255,.045);
    box-shadow: 0 18px 38px rgba(4,15,9,.16);
}
.footer-cta-kicker { margin:0 0 8px; color:#86c58c; font-size:10px; font-weight:850; letter-spacing:.14em; text-transform:uppercase; }
.footer-cta h2 { margin:0 0 11px; color:#fff; font-size:clamp(22px,2vw,30px); line-height:1.15; letter-spacing:-.03em; }
.footer-cta > p:not(.footer-cta-kicker) { margin:0; color:#9fb0a4; font-size:13px; line-height:1.6; }
.footer-cta-actions { display:flex; gap:9px; flex-wrap:wrap; margin-top:20px; }
.footer-cta-actions a { display:inline-flex; align-items:center; justify-content:center; min-height:40px; padding:9px 14px; border:1px solid rgba(143,202,148,.35); border-radius:6px; color:#dce8de; text-decoration:none; font-size:12px; font-weight:800; }
.footer-cta-actions .footer-cta-primary { border-color:#66a766; color:#fff; background:#5b965f; }
.footer-cta-actions a:hover { border-color:#8fca94; }

.footer-bottom {
    display:grid;
    grid-template-columns:1fr auto auto;
    align-items:center;
    gap:24px;
    width:100%;
    max-width:1600px;
    margin:0 auto;
    padding:22px 0 25px;
    border-top:1px solid rgba(212,230,216,.16);
    color:#84968a;
    font-size:11px;
}
.footer-bottom p { margin:0; }
.footer-bottom-links { display:flex; gap:20px; }
.footer-bottom-links a { color:#a1b0a5; text-decoration:none; }
.site-footer .app-version { margin:0; color:#78907e; font-family:monospace; font-size:10px; letter-spacing:.03em; white-space:nowrap; }

@media(max-width:1200px){.footer-inner{grid-template-columns:1.3fr repeat(3,1fr)}.footer-cta{grid-column:1/-1;display:grid;grid-template-columns:1fr 1.4fr auto;align-items:center;gap:20px}.footer-cta h2,.footer-cta p{margin:0}.footer-cta-actions{margin:0}}
@media(max-width:760px){.site-footer{padding-top:48px}.footer-inner{grid-template-columns:1fr 1fr}.footer-brand,.footer-cta{grid-column:1/-1}.footer-cta{display:block}.footer-cta-actions{margin-top:20px}.footer-bottom{grid-template-columns:1fr;gap:12px}.footer-bottom-links{order:2}.site-footer .app-version{order:3}}
@media(max-width:460px){.footer-inner{grid-template-columns:1fr}.footer-column{padding-top:4px;border-top:1px solid rgba(212,230,216,.1)}.footer-column h2{margin-top:15px}.footer-bottom-links{flex-wrap:wrap}}

/* Panel konfiguracji slidera */
.slider-admin { max-width: 1240px; margin: 0 auto; }
.slider-admin-heading { display:flex; justify-content:space-between; gap:20px; align-items:center; margin-bottom:24px; }
.slider-admin-heading h2 { margin:2px 0 8px; }
.slider-eyebrow { margin:0; color:#5b895f; font-size:12px; font-weight:800; letter-spacing:.12em; text-transform:uppercase; }
.slider-preview { padding:10px 16px; border-radius:6px; color:#fff; background:#25384b; text-decoration:none; font-weight:700; white-space:nowrap; }
.admin-alert { padding:12px 16px; margin-bottom:18px; border-radius:7px; font-weight:700; }
.admin-alert.success { color:#155724; background:#d4edda; }
.admin-alert.error { color:#721c24; background:#f8d7da; }
.slider-admin-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(300px,1fr)); gap:18px; margin-bottom:28px; }
.slider-admin-card { overflow:hidden; border-radius:10px; background:#fff; box-shadow:0 3px 14px rgba(20,35,28,.1); }
.slider-admin-card > img { display:block; width:100%; aspect-ratio:16/7; object-fit:cover; background:#e8ece9; }
.slider-admin-card-body { padding:16px; }
.slider-admin-card h3 { margin:10px 0 7px; color:#253329; font-size:19px; }
.slider-admin-card p { min-height:42px; margin:0 0 10px; color:#637067; font-size:13px; line-height:1.55; }
.slider-admin-card small { color:#7b867f; }
.slider-state,.slider-order { display:inline-block; padding:3px 8px; border-radius:99px; color:#666; background:#eee; font-size:11px; font-weight:700; }
.slider-state.active { color:#21642d; background:#dff2e3; }
.slider-order { margin-left:6px; }
.slider-admin-actions { display:flex; align-items:center; gap:9px; margin-top:14px; }
.slider-admin-actions a,.slider-admin-actions button { padding:7px 12px; border:0; border-radius:5px; font:inherit; font-size:12px; font-weight:700; cursor:pointer; text-decoration:none; }
.slider-admin-actions a { color:#754c00; background:#fff0cf; }
.slider-admin-actions button { color:#9d2835; background:#fde5e8; }
.slider-admin-actions form { margin:0; }
.slider-admin-actions{flex-wrap:wrap}.slider-admin-actions button.slider-move-button{border:1px solid #b9cbbb;color:#426347;background:#f3f7f4}.slider-admin-actions button.slider-move-button:hover:not(:disabled){background:#e2f1e5}.slider-admin-actions button.slider-move-button:disabled{opacity:.35;cursor:not-allowed}
.slider-reorder-actions{display:grid;grid-template-columns:1fr auto 1fr;gap:7px;align-items:center;margin-top:15px;padding:9px;border-radius:8px;background:#f3f7f4}.slider-reorder-actions form{margin:0}.slider-reorder-actions form:last-child{text-align:right}.slider-reorder-actions strong{color:#5e6c62;font-size:10px;white-space:nowrap}.slider-reorder-actions button{padding:7px 9px;border:1px solid #b9cbbb;border-radius:6px;background:#fff;color:#426347;font-size:11px;font-weight:800;cursor:pointer}.slider-reorder-actions button:hover:not(:disabled){background:#e3f2e5}.slider-reorder-actions button:disabled{opacity:.35;cursor:not-allowed}
.slider-form-card { padding:24px; border-top:4px solid #5b895f; border-radius:10px; background:#fff; box-shadow:0 3px 14px rgba(20,35,28,.1); }
.slider-form-card h3 { margin-top:0; }
.slider-form-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; }
.slider-form-grid label { color:#36463b; font-size:13px; font-weight:700; }
.slider-form-grid .wide { grid-column:1/-1; }
.slider-form-grid input,.slider-form-grid textarea,.slider-form-grid select { width:100%; margin-top:6px; padding:10px; border:1px solid #cbd3cd; border-radius:6px; box-sizing:border-box; font:inherit; }
.slider-form-grid small { display:block; margin-top:5px; color:#7c877f; font-weight:400; }
.slider-checkbox { display:flex; gap:8px; align-items:center; margin:18px 0; font-weight:700; }
.slider-form-actions { display:flex; gap:10px; align-items:center; }
.slider-form-actions button { padding:10px 20px; border:0; border-radius:6px; color:#fff; background:#5b895f; font-weight:800; cursor:pointer; }
.slider-cancel { color:#687068; }
.slider-empty { padding:24px; border:1px dashed #bbc5bd; border-radius:8px; text-align:center; }
@media(max-width:700px){.slider-admin-heading{align-items:flex-start;flex-direction:column}.slider-form-grid{grid-template-columns:1fr}.slider-form-grid .wide{grid-column:auto}}

/* Responsywność */
@media (max-width: 768px) {
    .navbar {
        padding: 0 16px;
    }

    .navbar-inner {
        min-height: 0;
        padding: 13px 0;
        flex-wrap: wrap;
        gap: 12px 18px;
    }

    .nav-links {
        order: 3;
        width: 100%;
        flex: 1 0 100%;
        flex-direction: row;
        justify-content: flex-start;
        gap: 6px 16px;
        margin-top: 4px;
        overflow-x: auto;
        padding: 7px 0 2px;
    }

    .auth-buttons {
        margin-left: auto;
        gap: 6px;
    }

    .auth-buttons a,.auth-buttons button { padding:7px 10px; font-size:12px; }
    .brand-mark { width:42px; height:42px; }
    .brand-name { font-size:20px; }

    .course-list {
        flex-direction: column;
        gap: 20px;
    }

    .course {
        width: 100%;
        max-width: 400px;
    }
}



@media (max-width: 480px) {
    .nav-links a {
        font-size: 14px;
    }

    .brand-name small { display:none; }
    .brand-name { font-size:18px; }
    .brand-name em { font-size:13px; }

    /* Przyciski konta w osobnym wierszu — na tej szerokosci nie mieszcza sie
       obok logo, a ukrywanie .sign-in zabieralo dostep do logowania
       oraz do linkow "Moj panel" / "Panel nauczyciela". */
    .auth-buttons {
        order: 2;
        flex: 1 0 100%;
        margin-left: 0;
    }

    .auth-buttons a,.auth-buttons form { flex: 1; }
    .auth-buttons a,.auth-buttons button { text-align: center; }

    button {
        width: 100%;
        padding: 12px;
    }

    .auth-buttons button { padding: 7px 10px; }
}

/* Poprawka dla kafelków z testami - elastyczna wysokość i pozycjonowanie przycisków na dole */
.course {
    height: auto !important;
    min-height: 280px;
    display: flex;
    flex-direction: column;
    padding-bottom: 20px !important;
}
.course .category-link {
    margin-top: auto;
}

/* =========================================
   STYLIZACJA MENU ADMINISTRATORA (JASNA)
========================================= */
.admin-navbar {
    padding: 0 clamp(18px, 4vw, 64px) !important;
    background: #fff !important;
    border: 0 !important;
    border-bottom: 1px solid #e4ebe5 !important;
    border-radius: 0 !important;
    margin-bottom: 25px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.admin-navbar-inner { justify-content:flex-start; }
.admin-navbar-inner .brand-logo { margin-right:auto; }

.admin-nav-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    padding: 0;
    margin: 0;
}

.admin-nav-links li {
    list-style: none;
}

.admin-nav-links a {
    display: inline-flex;
    align-items: center;
    padding: 8px 15px;
    background: #fff;
    color: #333 !important; /* Ciemny, czytelny tekst */
    text-decoration: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: bold;
    transition: all 0.3s ease;
    border: 1px solid #e0e0e0;
}

.admin-nav-links a:hover {
    background: #4a7c4a;
    color: #fff !important;
    border-color: #4a7c4a;
    box-shadow: 0 4px 8px rgba(74, 124, 74, 0.2);
    transform: translateY(-2px);
}

/* === DROPDOWN MENU === */
.admin-nav-links li.has-dropdown {
    position: relative;
}

.admin-nav-links li.has-dropdown > a::after {
    content: ' ▾';
    font-size: 11px;
    opacity: 0.7;
}

.admin-nav-links .dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    background: #fff;
    border: 1px solid #d0e8d0;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    min-width: 200px;
    z-index: 9999;
    padding: 6px 0;
    list-style: none;
}

.admin-nav-links li.has-dropdown.open .dropdown-menu {
    display: block;
}

.admin-nav-links .dropdown-menu li {
    list-style: none;
}

.admin-nav-links .dropdown-menu a {
    display: flex;
    align-items: center;
    padding: 9px 16px;
    border: none;
    border-radius: 0;
    background: transparent;
    white-space: nowrap;
    font-size: 13px;
    transform: none !important;
    box-shadow: none !important;
}

.admin-nav-links .dropdown-menu a:hover {
    background: #f0f9f0;
    color: #4a7c4a !important;
    border-color: transparent;
    transform: none !important;
    box-shadow: none !important;
}

.admin-nav-links .dropdown-menu .dropdown-divider {
    height: 1px;
    background: #eee;
    margin: 4px 10px;
}

/* ===== Uniwersalny modal (popup) do formularzy edycji ===== */
.ap-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 2000;
    align-items: flex-start;
    justify-content: center;
    padding: 30px 15px;
    overflow-y: auto;
}
.ap-modal.open { display: flex; }
.ap-modal-box {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 12px 45px rgba(0, 0, 0, 0.3);
    width: 100%;
    max-width: 640px;
    margin: auto;
    animation: apModalIn 0.15s ease;
}
.ap-modal-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 22px;
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 0;
    background: #fff;
    border-radius: 10px 10px 0 0;
}
.ap-modal-head h3 { margin: 0; font-size: 18px; color: #333; }
.ap-modal-body { padding: 20px 22px 24px; }
@keyframes apModalIn {
    from { transform: translateY(-14px); opacity: 0; }
    to   { transform: none; opacity: 1; }
}

/* ===== Obrazki w opisach kursów/artykułów: skalowanie + klikalny podgląd ===== */
.description img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 12px auto;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
    cursor: zoom-in;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.description img:hover {
    transform: scale(1.01);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

/* Lightbox (popup pełnoekranowy z krzyżykiem) */
.img-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    z-index: 3000;
    align-items: center;
    justify-content: center;
    padding: 30px;
    box-sizing: border-box;
    overscroll-behavior: contain;
}
.img-lightbox.open { display: flex; }
.img-lightbox-stage {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.img-lightbox-content {
    display: block;
    width: auto;
    height: auto;
    max-width: 95%;
    max-height: calc(100vh - 60px);
    object-fit: contain;
    border-radius: 6px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.6);
    cursor: default;
    opacity: 0;
    transition: opacity .15s ease;
}
.img-lightbox.is-loaded .img-lightbox-content { opacity: 1; }
.img-lightbox-loader {
    position: absolute;
    width: 46px;
    height: 46px;
    border: 4px solid rgba(255,255,255,.25);
    border-top-color: #fff;
    border-radius: 50%;
    animation: lightboxSpin .8s linear infinite;
}
.img-lightbox.is-loaded .img-lightbox-loader,
.img-lightbox.has-error .img-lightbox-loader { display: none; }
.img-lightbox-error { display: none; color: #fff; font-size: 16px; text-align: center; }
.img-lightbox.has-error .img-lightbox-content { display: none; }
.img-lightbox.has-error .img-lightbox-error { display: block; }
.img-lightbox-close {
    position: fixed;
    top: 18px;
    right: 24px;
    width: 48px;
    height: 48px;
    padding: 0;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 32px;
    line-height: 46px;
    text-align: center;
    cursor: pointer;
    transition: background 0.15s ease;
    z-index: 2;
}
.img-lightbox-close:hover { background: rgba(255, 255, 255, 0.32); }
@keyframes lightboxSpin { to { transform: rotate(360deg); } }

/* ===== Strona 404 ===== */
.error-page {
    position: relative;
    min-height: 640px;
    display: grid;
    place-items: center;
    overflow: hidden;
    padding: 70px 20px;
    background: radial-gradient(circle at 50% 15%, #f2fff0 0, #f8f9f3 48%, #eef3eb 100%);
}
.error-page__glow { position: absolute; border-radius: 50%; filter: blur(4px); opacity: .65; }
.error-page__glow--one { width: 280px; height: 280px; background: #bfe6b9; top: -90px; right: 8%; }
.error-page__glow--two { width: 220px; height: 220px; background: #dcefd8; bottom: -80px; left: 10%; }
.error-page__card {
    position: relative;
    width: min(720px, 100%);
    padding: 54px 44px;
    text-align: center;
    background: rgba(255,255,255,.88);
    border: 1px solid rgba(102,167,102,.25);
    border-radius: 28px;
    box-shadow: 0 24px 70px rgba(55,74,61,.14);
    backdrop-filter: blur(12px);
}
.error-page__code { font-size: clamp(92px, 18vw, 170px); line-height: .82; font-weight: 800; letter-spacing: -.08em; color: #dbeed8; }
.error-page__eyebrow { margin: 24px 0 8px; color: #4f8c4f; font-size: 13px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.error-page h1 { margin: 0; color: #2d3d32; font-size: clamp(30px, 5vw, 48px); }
.error-page__text { max-width: 560px; margin: 18px auto 0; color: #647068; font-size: 17px; line-height: 1.7; }
.error-page__actions { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin-top: 30px; }
.error-page__button { padding: 12px 22px; border-radius: 10px; text-decoration: none; font-weight: 700; transition: transform .15s, box-shadow .15s; }
.error-page__button:hover { transform: translateY(-2px); }
.error-page__button--primary { background: #4f8c4f; color: #fff; box-shadow: 0 8px 20px rgba(79,140,79,.25); }
.error-page__button--secondary { border: 1px solid #b9d8b5; color: #3f6743; background: #f8fff7; }

/* ===== Panel logów PHP ===== */
.log-panel { max-width: 1120px; margin: 28px auto; padding: 0 20px; }
.log-panel__header { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; margin-bottom: 18px; }
.log-panel__eyebrow { color: #4f8c4f !important; font-size: 12px !important; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.log-panel__header h2 { margin: 3px 0 5px; font-size: 28px; color: #27372c; }
.log-panel__header p { margin: 0; color: #788179; font-size: 14px; }
.log-clear-button { padding: 10px 17px; border: 1px solid #e0aaaa; border-radius: 8px; background: #fff7f7; color: #b43b3b; font-weight: 700; cursor: pointer; }
.log-clear-button:disabled { opacity: .45; cursor: not-allowed; }
.log-panel__meta { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 12px 16px; background: #fff; border: 1px solid #e0e8dd; border-radius: 10px 10px 0 0; color: #687269; font-size: 13px; }
.log-status-dot { display: inline-block; width: 8px; height: 8px; margin-right: 6px; border-radius: 50%; background: #58a85a; box-shadow: 0 0 0 4px #e3f3e2; }
.log-viewer { min-height: 420px; max-height: 640px; overflow: auto; margin: 0; padding: 20px; white-space: pre-wrap; overflow-wrap: anywhere; background: #18211b; color: #d7e5d9; border-radius: 0 0 10px 10px; font: 12px/1.65 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; box-shadow: 0 14px 35px rgba(36,50,40,.15); text-align: left; }
.log-empty { min-height: 360px; display: grid; place-content: center; text-align: center; background: #fff; border: 1px solid #e0e8dd; border-top: 0; border-radius: 0 0 10px 10px; color: #667168; }
.log-empty span { width: 58px; height: 58px; display: grid; place-items: center; margin: 0 auto 14px; border-radius: 50%; background: #e7f5e5; color: #4f8c4f; font-size: 28px; }
.log-empty strong { color: #35493a; font-size: 18px; }
.log-empty p { margin-top: 7px; }
.log-alert { padding: 12px 16px; margin-bottom: 14px; border-radius: 8px; font-size: 14px; }
.log-alert--success { color: #256b2d; background: #eaf7e9; border: 1px solid #b9dfb6; }
.log-alert--error { color: #9e3030; background: #fff0f0; border: 1px solid #ecc1c1; }
.log-panel__hint { margin-top: 12px; color: #7b847c; font-size: 12px; }

@media (max-width: 600px) {
    .img-lightbox { padding: 64px 10px 18px; }
    .img-lightbox-content { max-width: 100%; max-height: calc(100vh - 82px); }
    .img-lightbox-close { top: 10px; right: 10px; }
    .error-page { min-height: 520px; padding: 35px 14px; }
    .error-page__card { padding: 38px 22px; border-radius: 20px; }
    .error-page__actions { flex-direction: column; }
    .error-page__button { width: 100%; }
    .log-panel { padding: 0 12px; }
    .log-panel__header { align-items: flex-start; }
}

/* Dziennik i obecność w panelu nauczyciela */
.teacher-navbar{border-bottom:3px solid #6b3d96}.teacher-navbar .brand-name small{color:#9c73bd}.teacher-nav-links>li>a:hover,.teacher-nav-links>li.has-dropdown.open>a{background:#6b3d96!important;color:#fff!important;border-radius:6px}.teacher-auth-buttons{margin-left:auto}.teacher-anchor{display:block;position:relative;top:-18px;visibility:hidden}
.student-navbar{border-bottom:3px solid #078df2}.student-navbar .brand-name small{color:#0781dc}.student-nav-links>li>a:hover,.student-nav-links>li.has-dropdown.open>a{background:#078df2!important;color:#fff!important;border-radius:6px}.student-auth-buttons{margin-left:auto}.student-dashboard [id]{scroll-margin-top:22px}
.student-attendance-badge{display:inline-flex;margin-top:9px;padding:5px 9px;border-radius:11px;font-size:11px;font-weight:800}.student-attendance-badge.present{background:#dcf7e8;color:#147246}.student-attendance-badge.absent{background:#f1f2f4;color:#727b88}
.student-attendance-alerts{margin:0 0 24px}.student-attendance-alerts>h2{margin:0 0 10px;font-size:15px;color:#4e5e73}.student-attendance-alert{display:grid;grid-template-columns:48px minmax(0,1fr) auto;gap:15px;align-items:center;padding:18px 20px;margin-bottom:10px;border-radius:15px;box-shadow:0 8px 26px rgba(26,74,117,.1)}.student-attendance-alert.waiting{border:1px solid #94c9ef;background:linear-gradient(110deg,#f3faff,#e6f5ff)}.student-attendance-alert.confirmed{border:1px solid #abdcc0;background:#effaf4}.student-attendance-alert-icon{display:grid;width:44px;height:44px;place-items:center;border-radius:50%;background:#078df2;color:#fff;font-size:24px;font-weight:900}.student-attendance-alert.confirmed .student-attendance-alert-icon{background:#2c9a5d}.student-attendance-alert p{margin:0;color:#0878c5;font-size:11px;font-weight:900;text-transform:uppercase;letter-spacing:.08em}.student-attendance-alert.confirmed p{color:#278250}.student-attendance-alert h2{margin:4px 0 3px;font-size:18px}.student-attendance-alert small{color:#768396}.student-attendance-alert a{padding:11px 15px;border-radius:9px;background:#078df2;color:#fff;text-decoration:none;font-weight:900}.student-attendance-alert>strong{color:#26804e}@media(max-width:650px){.student-attendance-alert{grid-template-columns:44px 1fr}.student-attendance-alert a,.student-attendance-alert>strong{grid-column:1/-1;text-align:center}}
.teacher-panel-nav{display:flex;gap:9px;margin:-8px 0 22px}.teacher-panel-nav a{padding:10px 14px;border:1px solid #ded3e8;border-radius:10px;background:#fff;color:#60378a;text-decoration:none;font-weight:800}.teacher-attendance{margin:0 0 22px;padding:18px;border:1px solid #cfe7d8;border-radius:14px;background:#f8fcf9}.teacher-attendance>header{display:flex;justify-content:space-between;align-items:center;gap:15px}.teacher-attendance>header p{margin:0;color:#288250;font-size:11px;font-weight:900;letter-spacing:.1em;text-transform:uppercase}.teacher-attendance>header h3{margin:4px 0 0;color:#225c3b}.teacher-attendance>header>span{padding:6px 9px;border-radius:10px;background:#e0f3e7;color:#267447;font-size:11px;font-weight:800}.teacher-attendance-hint{margin:10px 0 15px;color:#68796f;font-size:12px;line-height:1.55}.teacher-attendance-list{display:grid;gap:8px}.teacher-attendance-row{display:grid;grid-template-columns:105px minmax(150px,.8fr) 82px minmax(240px,1.5fr);gap:10px;align-items:center;padding:10px;border-radius:10px;background:#fff;border:1px solid #e3ece6}.teacher-presence{padding:5px 7px;border-radius:10px;text-align:center;font-size:10px;font-weight:900}.teacher-presence.present{background:#dff5e8;color:#187344}.teacher-presence.absent{background:#f0f2f4;color:#777f88}.teacher-attendance-total{color:#778279;font-size:11px}.teacher-attendance-link{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:6px}.teacher-attendance-link input{min-width:0;padding:8px;border:1px solid #dce5df;border-radius:7px;background:#fafcfb;color:#68746b;font-size:10px}.teacher-attendance-link button{padding:8px 10px;border:0;border-radius:7px;background:#258454;color:#fff;font-size:11px;font-weight:800;cursor:pointer}.teacher-journal-heading{display:flex;justify-content:space-between;align-items:center;margin:3px 0 8px}.teacher-journal-heading h3{margin:0;font-size:16px}.teacher-journal-heading span{color:#8d8394;font-size:11px}
@media(max-width:900px){.teacher-attendance-row{grid-template-columns:100px 1fr 80px}.teacher-attendance-link{grid-column:1/-1}}
@media(max-width:600px){.teacher-panel-nav{flex-direction:column}.teacher-attendance>header{align-items:flex-start;flex-direction:column}.teacher-attendance-row{grid-template-columns:1fr 1fr}.teacher-attendance-row strong{grid-column:1/-1;grid-row:1}.teacher-attendance-link{grid-column:1/-1}.teacher-journal-heading{align-items:flex-start;flex-direction:column;gap:5px}}
.teacher-group-link{margin:15px 0;padding:16px;border:1px dashed #a9cbb7;border-radius:12px;background:#fff}.teacher-group-link>p{margin:6px 0 13px;color:#68776e;font-size:12px}.teacher-group-link form{display:inline}.teacher-group-link button{padding:10px 13px;border:0;border-radius:8px;background:#258454;color:#fff;font-weight:800;cursor:pointer}.teacher-group-link.active{border-style:solid;border-color:#83b99a;background:#f2fbf5}.teacher-group-link label{display:block;margin-bottom:7px;color:#21663e;font-size:12px;font-weight:900}.teacher-group-link>div{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:7px}.teacher-group-link input{min-width:0;padding:10px;border:1px solid #bbd6c6;border-radius:8px;background:#fff;color:#3e5e49}.teacher-group-link small{display:block;margin:7px 0 10px;color:#6c7e72}.teacher-group-link button.danger{background:#a94755}.teacher-attendance-details{margin-top:14px}.teacher-attendance-details summary{cursor:pointer;color:#326d4a;font-weight:800}.teacher-attendance-details .teacher-attendance-list{margin-top:10px}.teacher-attendance-row--group{grid-template-columns:110px minmax(160px,1fr) 90px}.group-attendance-result{max-width:620px;margin:55px auto;padding:42px;text-align:center;border-radius:22px;background:#fff;box-shadow:0 18px 55px rgba(36,58,83,.13)}.group-attendance-result>span{display:grid;width:68px;height:68px;place-items:center;margin:0 auto 14px;border-radius:50%;background:#daf5e5;color:#20804b;font-size:35px}.group-attendance-result>p{margin:0;color:#288354;font-size:12px;font-weight:900;text-transform:uppercase;letter-spacing:.12em}.group-attendance-result h1{margin:8px 0 15px}.group-attendance-result strong,.group-attendance-result small{display:block;margin:5px}.group-attendance-result small{color:#7d8793}.group-attendance-result a{display:inline-block;margin-top:20px;padding:11px 16px;border-radius:9px;background:#1684d8;color:#fff;text-decoration:none;font-weight:800}.group-attendance-result.error{border-top:5px solid #c95151}.group-attendance-result.error>span{display:none}@media(max-width:600px){.teacher-group-link>div{grid-template-columns:1fr}.teacher-attendance-row--group{grid-template-columns:1fr 1fr}.group-attendance-result{margin:25px 14px;padding:30px 20px}}
.class-student-count-link{transition:transform .15s ease,box-shadow .15s ease,background .15s ease}.class-student-count-link:hover{transform:translateY(-2px);background:#d4ecff!important;box-shadow:0 5px 14px rgba(2,117,216,.2)}.class-student-count-link:focus-visible{outline:3px solid rgba(2,117,216,.28);outline-offset:2px}
.admin-auth-buttons{margin-left:auto}.admin-auth-buttons .sign-up{white-space:nowrap;background:#bd3f4d;color:#fff}.admin-auth-buttons .sign-up:hover{background:#9e303d}

/* Wybór nauczyciela i specjalizacji w panelu administratora */
.teacher-onboarding{border-color:#d9c8e8;background:linear-gradient(135deg,#fff 0,#faf6fd 100%)}.teacher-onboarding form{display:grid;grid-template-columns:minmax(220px,1.15fr) minmax(260px,1fr);gap:15px 20px;align-items:start}.teacher-onboarding form>select{box-sizing:border-box;width:100%;padding:11px;border:1px solid #d8cde2;border-radius:9px;background:#fff;color:#332a3b}.teacher-onboarding form>strong,.teacher-onboarding .teacher-admin-checks{grid-column:1/-1}.teacher-onboarding form>button{justify-self:start}.teacher-admin-picker{display:flex;justify-content:space-between;align-items:center;gap:25px;margin:0 0 18px;padding:18px 22px;border:1px solid #e2d8ea;border-radius:15px;background:#f9f6fb}.teacher-admin-picker h3{margin:0 0 4px;color:#38284a}.teacher-admin-picker p{margin:0;color:#81758b;font-size:13px}.teacher-admin-picker select{box-sizing:border-box;min-width:310px;max-width:100%;padding:11px 38px 11px 12px;border:1px solid #d4c6df;border-radius:9px;background:#fff;color:#44334f}.teacher-onboarding .teacher-admin-checks,.teacher-admin-card .teacher-admin-checks{grid-template-columns:repeat(auto-fit,minmax(160px,1fr));padding:12px;border-radius:10px;background:rgba(239,231,246,.55)}.teacher-admin-checks label{display:flex;gap:7px;align-items:center;cursor:pointer}.teacher-admin-checks input{accent-color:#6b3d96}
@media(max-width:700px){.teacher-onboarding form{grid-template-columns:1fr}.teacher-onboarding form>strong,.teacher-onboarding .teacher-admin-checks{grid-column:auto}.teacher-admin-picker{align-items:stretch;flex-direction:column;gap:12px}.teacher-admin-picker select{min-width:0;width:100%}.teacher-admin-names{grid-template-columns:1fr}}

/* Panel wyników testów */
.test-results-admin{max-width:1320px;margin:0 auto;padding:34px 28px 70px;color:#1d293d}.test-results-header{display:flex;justify-content:space-between;align-items:center;gap:28px;margin-bottom:22px;padding:30px 34px;border-radius:22px;background:linear-gradient(125deg,#243653,#3d587e);color:#fff;box-shadow:0 15px 36px rgba(28,48,77,.18)}.test-results-header p{margin:0 0 7px;color:#87c6ff;font-size:11px;font-weight:900;letter-spacing:.15em;text-transform:uppercase}.test-results-header h2{margin:0 0 8px;border:0;color:#fff;font-size:29px}.test-results-header>div>span{color:#cfdaea;font-size:14px}.test-results-total{display:grid;min-width:145px;padding:16px 20px;border:1px solid rgba(255,255,255,.18);border-radius:15px;background:rgba(255,255,255,.09);text-align:center}.test-results-total strong{font-size:29px}.test-results-total span{color:#d4dfec;font-size:11px}.test-results-filter{margin-bottom:18px;padding:16px 18px;border:1px solid #dfe6ed;border-radius:14px;background:#fff;box-shadow:0 7px 24px rgba(35,53,76,.06)}.test-results-filter form{display:flex;align-items:flex-end;gap:12px;margin:0}.test-results-filter form>div{flex:1}.test-results-filter label{display:block;margin:0 0 6px;color:#5c6879;font-size:11px;font-weight:900;text-transform:uppercase;letter-spacing:.06em}.test-results-filter select{box-sizing:border-box;width:100%;padding:11px 38px 11px 12px;border:1px solid #ced8e3;border-radius:9px;background:#fafdff;color:#27374d}.test-results-filter a{padding:11px 15px;border-radius:9px;background:#edf2f7;color:#42536a;text-decoration:none;font-size:13px;font-weight:800;white-space:nowrap}.test-results-list{display:grid;gap:11px}.test-result-card{display:grid;grid-template-columns:64px minmax(0,1fr) auto;gap:17px;align-items:center;padding:17px 19px;border:1px solid #e0e6ec;border-radius:15px;background:#fff;box-shadow:0 6px 22px rgba(35,53,76,.055);transition:transform .15s ease,box-shadow .15s ease,border-color .15s ease}.test-result-card:hover{transform:translateY(-2px);border-color:#bad5e9;box-shadow:0 12px 28px rgba(35,75,111,.1)}.test-result-card__icon{display:grid;width:58px;height:58px;place-content:center;border-radius:15px;background:#eaf5ff;color:#1677b8;font-size:19px;font-weight:900;text-align:center}.test-result-card__icon small{font-size:10px}.test-result-card__eyebrow{margin:0 0 4px;color:#087fc9;font-size:10px;font-weight:900;letter-spacing:.08em;text-transform:uppercase}.test-result-card h3{margin:0 0 8px;color:#26364b;font-size:16px}.test-result-card__meta{display:flex;gap:8px 20px;flex-wrap:wrap;color:#657386;font-size:12px}.test-result-card__meta span{display:flex;align-items:center;gap:6px}.test-result-card__meta strong{color:#38485c}.test-status{display:inline-flex;padding:4px 7px;border-radius:8px;font-size:9px;font-weight:900;letter-spacing:.04em;text-transform:uppercase}.test-status--passed{background:#dcf6e8;color:#187247}.test-status--failed{background:#fde7e7;color:#a23e48}.test-result-card__actions{display:flex;gap:7px}.test-result-card__actions a{display:inline-flex;align-items:center;justify-content:center;text-decoration:none;font-weight:900}.test-result-card__details{gap:6px;padding:9px 12px;border-radius:8px;background:#137fca;color:#fff;font-size:12px}.test-result-card__delete{width:34px;height:34px;border-radius:8px;background:#fff0f1;color:#b64250;font-size:21px}.test-results-pagination{display:flex;justify-content:center;gap:7px;flex-wrap:wrap;margin:25px 0}.test-results-pagination a{display:grid;min-width:36px;height:36px;place-items:center;border:1px solid #dce4eb;border-radius:8px;background:#fff;color:#4d5e73;text-decoration:none;font-weight:800}.test-results-pagination a.active{border-color:#167fc6;background:#167fc6;color:#fff}.test-results-empty{padding:45px 20px;border:1px dashed #cbd9e4;border-radius:15px;background:#fafdff;text-align:center}.test-results-empty span{display:grid;width:50px;height:50px;place-items:center;margin:0 auto 12px;border-radius:50%;background:#e1f3ff;color:#1683cb;font-size:24px}.test-results-empty h3{margin:0 0 5px}.test-results-empty p{margin:0;color:#718094}.test-results-danger{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-top:28px;padding:17px 19px;border:1px solid #efd1d3;border-radius:13px;background:#fff8f8}.test-results-danger div{display:grid;gap:3px}.test-results-danger strong{color:#743d43}.test-results-danger span{color:#946f73;font-size:11px}.test-results-danger a{padding:9px 12px;border-radius:8px;background:#b84753;color:#fff;text-decoration:none;font-size:11px;font-weight:900}.test-results-admin>.teacher-flash,.test-results-admin>div[style]{border-radius:11px!important}
@media(max-width:700px){.test-results-admin{padding:18px 14px 45px}.test-results-header{align-items:flex-start;flex-direction:column;padding:25px 22px}.test-results-total{box-sizing:border-box;width:100%}.test-results-filter form{align-items:stretch;flex-direction:column}.test-results-filter a{text-align:center}.test-result-card{grid-template-columns:52px minmax(0,1fr);padding:15px}.test-result-card__icon{width:48px;height:48px}.test-result-card__actions{grid-column:1/-1}.test-result-card__details{flex:1}.test-results-danger{align-items:stretch;flex-direction:column}.test-results-danger a{text-align:center}}
.test-result-detail__summary{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 25px;margin-bottom:25px;padding:20px 22px;border:1px solid #dfe7ee;border-radius:14px;background:#fff}.test-result-detail__summary p{margin:0;color:#647286}.test-result-detail__summary p strong{color:#32445a}.test-result-detail__summary a{grid-column:1/-1;justify-self:start;margin-top:7px;padding:9px 13px;border-radius:8px;background:#edf3f8;color:#40556e;text-decoration:none;font-size:12px;font-weight:900}.test-result-detail__heading{margin:0 0 12px;color:#273a51}.test-answer-card{margin-bottom:11px;padding:17px 19px;border:1px solid #dfe6ec;border-left-width:5px;border-radius:12px;background:#fff}.test-answer-card.correct{border-left-color:#2c9a62}.test-answer-card.incorrect{border-left-color:#cf5360}.test-answer-card p{margin:5px 0;color:#4c5d71}.test-answer-card p:first-child{color:#26384e}@media(max-width:700px){.test-result-detail__summary{grid-template-columns:1fr}.test-result-detail__summary a{grid-column:auto}}
.student-list-identity{display:inline-flex;align-items:flex-start;vertical-align:middle}.student-list-identity>span:last-child{display:inline-grid}.student-list-email{margin-top:2px;color:#66788c;font-size:10px;font-weight:500}.student-list-email.missing{color:#b17b7f}.student-tests-link{display:inline-flex;align-items:center;gap:6px;padding:6px 9px;border-radius:8px;background:#e6f3fd;color:#0877bb;text-decoration:none;font-size:11px;font-weight:900;white-space:nowrap}.student-tests-link strong{display:grid;min-width:19px;height:19px;place-items:center;border-radius:10px;background:#1284cb;color:#fff}.student-tests-link.empty{background:#f0f2f4;color:#89919a;font-weight:700}
.shared-tests{margin-top:22px;padding:22px;border:1px solid #dce7ef;border-radius:14px;background:#f9fcff}.shared-tests>header{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:14px}.shared-tests>header p{margin:0 0 4px;color:#1682c8;font-size:10px;font-weight:900;letter-spacing:.1em;text-transform:uppercase}.shared-tests>header h2{margin:0;color:#273b53;font-size:20px}.shared-tests>header>span{padding:6px 9px;border-radius:9px;background:#e3f2fd;color:#1577b5;font-size:10px;font-weight:900}.shared-tests-list{display:grid;gap:9px}.shared-test-result{display:grid;grid-template-columns:50px minmax(0,1fr) auto;gap:13px;align-items:center;padding:13px 15px;border:1px solid #e1e7ed;border-left:4px solid #c8535f;border-radius:11px;background:#fff}.shared-test-result.passed{border-left-color:#29935d}.shared-test-result__score{display:flex;align-items:baseline;justify-content:center;color:#b74450}.shared-test-result.passed .shared-test-result__score{color:#238052}.shared-test-result__score strong{font-size:20px}.shared-test-result__score span{font-size:9px;font-weight:900}.shared-test-result p{margin:0;color:#7a8795;font-size:9px;font-weight:900;text-transform:uppercase}.shared-test-result h3{margin:3px 0;color:#304258;font-size:14px}.shared-test-result div>span{color:#7b8795;font-size:10px}.shared-test-result>b{padding:5px 8px;border-radius:8px;background:#fde8e9;color:#a63e49;font-size:9px;text-transform:uppercase}.shared-test-result.passed>b{background:#def5e8;color:#1d7649}.shared-tests-empty{padding:24px;border:1px dashed #cad8e3;border-radius:10px;color:#82909e;text-align:center}@media(max-width:600px){.shared-tests{padding:17px}.shared-tests>header{align-items:flex-start;flex-direction:column}.shared-test-result{grid-template-columns:45px 1fr}.shared-test-result>b{grid-column:1/-1;text-align:center}}
.student-no-grades-link{display:inline-flex;align-items:center;gap:5px;margin-left:8px;padding:3px 9px;border:1px solid #ef9a9a;border-radius:10px;background:#fbe4e4;color:#b52f27;text-decoration:none;font-size:11px;font-weight:900;white-space:nowrap;transition:transform .15s,background .15s}.student-no-grades-link:hover{transform:translateY(-1px);background:#f7d2d2}.student-no-grades-link span{font-size:13px}.grade-empty-action{display:grid;gap:2px;margin-top:3px;padding:8px 10px;border:1px dashed #e49a9a;border-radius:8px;background:#fff4f4;color:#a73d3d;text-decoration:none;transition:background .15s,border-color .15s}.grade-empty-action span{font-size:10px}.grade-empty-action strong{font-size:11px}.grade-empty-action:hover{border-color:#c34a4a;background:#ffe5e5}.grade-add-action{display:inline-block;margin-top:4px;padding:3px 9px;border-radius:4px;background:#0275d8;color:#fff;text-decoration:none;font-size:12px;font-weight:bold}tr[id^='oceny-student-']{scroll-margin-top:18px}tr[id^='oceny-student-']:target td{animation:gradeRowTarget 2.2s ease}@keyframes gradeRowTarget{0%,35%{background:#fff2b8;box-shadow:inset 0 2px #e9b832,inset 0 -2px #e9b832}100%{}}
.class-share-test{display:flex;justify-content:space-between;gap:8px;margin:3px 0;padding:5px 7px;border-radius:7px;background:#fff0f1;color:#923b45;font-size:10px}.class-share-test.passed{background:#e3f5ea;color:#21734a}.class-share-test span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.class-share-test span em{margin-left:5px;color:inherit;font-size:8px;font-style:normal;opacity:.7}.class-share-test small{flex:none;font-size:8px;font-weight:900;text-transform:uppercase}.class-share-tests-history{margin-top:5px}.class-share-tests-history summary{display:flex;align-items:center;justify-content:space-between;gap:7px;padding:6px 8px;border:1px solid #d7e2ea;border-radius:7px;background:#f6f9fb;color:#42647c;font-size:9px;font-weight:900;list-style:none;cursor:pointer;user-select:none}.class-share-tests-history summary::-webkit-details-marker{display:none}.class-share-tests-history summary b{font-size:13px;line-height:1;transition:transform .18s}.class-share-tests-history[open] summary b{transform:rotate(180deg)}.class-share-tests-history .hide-tests{display:none}.class-share-tests-history[open] .show-tests{display:none}.class-share-tests-history[open] .hide-tests{display:inline}.class-share-tests-history__items{padding-top:3px}
.class-share-login{box-sizing:border-box;width:min(470px,calc(100% - 28px));margin:55px auto 75px;padding:38px 40px;border:1px solid #dce4ec;border-top:5px solid #1685cc;border-radius:20px;background:#fff;box-shadow:0 22px 60px rgba(26,54,83,.14);text-align:center}.class-share-login__mark{display:grid;width:58px;height:58px;place-items:center;margin:0 auto 17px;border-radius:17px;background:linear-gradient(135deg,#172d48,#1688d2);color:#fff;font-weight:900;letter-spacing:-.06em}.class-share-login__eyebrow{margin:0 0 6px;color:#1683ca;font-size:10px;font-weight:900;letter-spacing:.13em;text-transform:uppercase}.class-share-login h1{margin:0;color:#20334c;font-size:28px}.class-share-login h2{margin:7px 0 0;color:#53677e;font-size:15px}.class-share-login__lead{margin:17px auto 22px;color:#758395;font-size:13px;line-height:1.55}.class-share-login form{text-align:left}.class-share-login label{display:grid;gap:7px;color:#40536b;font-size:11px;font-weight:900;text-transform:uppercase}.class-share-login input{box-sizing:border-box;width:100%;padding:13px 14px;border:1px solid #cbd7e2;border-radius:9px;background:#fbfdff;color:#26394f;font-size:16px}.class-share-login input:focus{border-color:#1685cc;outline:3px solid rgba(22,133,204,.13)}.class-share-login button{display:flex;justify-content:space-between;width:100%;margin-top:11px;padding:13px 15px;border:0;border-radius:9px;background:#1685cc;color:#fff;font-weight:900;cursor:pointer}.class-share-login>small{display:block;margin-top:16px;color:#929daa;font-size:10px}.class-share-login__error{padding:10px 12px;border:1px solid #efc2c6;border-radius:8px;background:#fff0f1;color:#a33d47;font-size:12px}.class-share-view{max-width:1440px;margin:0 auto;padding:32px 28px 65px;color:#24364d}.class-share-hero{display:flex;justify-content:space-between;align-items:center;gap:30px;margin-bottom:20px;padding:28px 32px;border-radius:20px;background:linear-gradient(125deg,#192f4a,#315d7c);color:#fff;box-shadow:0 15px 38px rgba(24,48,73,.18)}.class-share-hero p{margin:0 0 6px;color:#80c9f4;font-size:10px;font-weight:900;letter-spacing:.13em;text-transform:uppercase}.class-share-hero h1{margin:0 0 7px;font-size:28px}.class-share-hero>div>span{color:#c6d7e4;font-size:13px}.class-share-scope{min-width:250px;padding:14px 16px;border:1px solid rgba(255,255,255,.16);border-radius:13px;background:rgba(255,255,255,.08)}.class-share-scope small{display:block;margin-bottom:8px;color:#bfcede;font-size:9px;font-weight:900;text-transform:uppercase}.class-share-scope div{display:flex;gap:5px;flex-wrap:wrap}.class-share-scope span{padding:4px 7px;border-radius:7px;background:rgba(128,201,244,.16);color:#dcf2ff;font-size:9px;font-weight:800}.class-share-card{overflow:hidden;border:1px solid #dfe6ec;border-radius:16px;background:#fff;box-shadow:0 9px 30px rgba(31,55,79,.08)}.class-share-card>header{display:flex;justify-content:space-between;align-items:center;gap:20px;padding:20px 23px;border-bottom:1px solid #e5ebf0}.class-share-card>header p{margin:0 0 4px;color:#1684ca;font-size:9px;font-weight:900;letter-spacing:.1em;text-transform:uppercase}.class-share-card>header h2{margin:0 0 4px;color:#263b53;font-size:20px}.class-share-card>header span{color:#788697;font-size:11px}.class-share-card>header>strong{padding:7px 10px;border-radius:9px;background:#e9f5fc;color:#1479b8;font-size:11px}.class-share-table-wrap{overflow:auto;max-height:70vh}.class-share-card table{width:100%!important;border-collapse:separate!important;border-spacing:0!important}.class-share-card th{position:sticky;top:0;z-index:3;background:#294c68!important;color:#fff!important;font-size:11px!important;letter-spacing:.02em}.class-share-card th:first-child{z-index:4;background:#203d56!important}.class-share-card td{border-bottom:1px solid #e7ecf0!important}.class-share-card tbody tr:hover td{background:#f0f8fd!important}.class-share-card td:first-child{z-index:1;box-shadow:5px 0 9px rgba(38,57,78,.035)}.class-share-card>footer{display:none;padding:10px 15px;background:#f5f9fc;color:#778797;font-size:10px;text-align:center}.class-share-security{margin:15px 0 0;color:#84919e;font-size:10px;text-align:center}
@media(max-width:760px){.class-share-login{margin-top:28px;padding:30px 23px}.class-share-view{padding:18px 12px 45px}.class-share-hero{align-items:flex-start;flex-direction:column;padding:24px 21px}.class-share-scope{box-sizing:border-box;width:100%;min-width:0}.class-share-card>header{align-items:flex-start;flex-direction:column}.class-share-card>footer{display:block}.class-share-table-wrap{max-height:68vh}.class-share-card th,.class-share-card td{padding:10px!important}}

/* Pełna szerokość i mobilne karty publicznego dziennika */
.class-share-view{box-sizing:border-box;width:100%;max-width:none;margin-left:0;margin-right:0}.class-share-table-wrap{width:100%}
@media(max-width:760px){.class-share-card{overflow:visible;border:0;background:transparent;box-shadow:none}.class-share-card>header{border:1px solid #dfe6ec;border-radius:14px;background:#fff}.class-share-table-wrap{max-height:none;overflow:visible}.class-share-card table,.class-share-card tbody{display:block;width:100%!important}.class-share-card thead{display:none}.class-share-card tbody{display:grid;gap:12px;margin-top:12px}.class-share-card tr{display:block;overflow:hidden;border:1px solid #dce5ec;border-radius:13px;background:#fff!important;box-shadow:0 6px 20px rgba(34,58,81,.07)}.class-share-card td{box-sizing:border-box;display:flex!important;justify-content:space-between;align-items:flex-start;gap:16px;width:100%;min-height:43px;padding:11px 13px!important;border-bottom:1px solid #edf1f4!important;background:#fff!important;text-align:right!important;white-space:normal!important}.class-share-card td::before{content:attr(data-label);flex:0 0 40%;color:#6f7f90;font-size:10px;font-weight:900;letter-spacing:.03em;text-align:left;text-transform:uppercase}.class-share-card td:last-child{border-bottom:0!important}.class-share-card td.class-share-student-name{position:static!important;display:block!important;padding:15px!important;background:linear-gradient(110deg,#213f59,#315f7e)!important;color:#fff!important;font-size:16px;text-align:left!important;box-shadow:none}.class-share-card td.class-share-student-name::before{display:block;margin-bottom:4px;color:#9cd2f2;font-size:8px}.class-share-card td>.class-share-test,.class-share-card td>span,.class-share-card td>strong{max-width:60%}.class-share-card td[data-label='Wyniki testów']{display:block!important;text-align:left!important}.class-share-card td[data-label='Wyniki testów']::before{display:block;margin-bottom:7px}.class-share-card td[data-label='Wyniki testów'] .class-share-test{max-width:none}.class-share-card>footer{display:none}}

/* Biblioteka cyfrowa */
.digital-library{max-width:1240px;margin:0 auto;padding:42px 24px 70px}.digital-library>header{padding:34px;border-radius:22px;background:linear-gradient(125deg,#172f48,#356783);color:#fff}.digital-library>header p{margin:0 0 7px;color:#8ed0f4;font-size:11px;font-weight:900;letter-spacing:.14em;text-transform:uppercase}.digital-library>header h1{margin:0 0 8px;font-size:34px}.digital-library>header span{color:#d5e4ec}.digital-library-search{display:grid;grid-template-columns:1fr 240px auto;gap:10px;margin:22px 0}.digital-library-search input,.digital-library-search select{padding:13px;border:1px solid #ccd8e2;border-radius:9px;background:#fff}.digital-library-search button{padding:0 22px;border:0;border-radius:9px;background:#1685cc;color:#fff;font-weight:900}.digital-library-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:18px}.digital-book{overflow:hidden;border:1px solid #dde6ed;border-radius:16px;background:#fff;box-shadow:0 8px 25px rgba(27,54,78,.08)}.digital-book>img,.digital-book-placeholder{display:grid;width:100%;height:190px;object-fit:cover;place-items:center;background:linear-gradient(135deg,#c92e3d,#781b28);color:#fff;font-size:38px;font-weight:900}.digital-book>div{padding:20px}.digital-book p{margin:0 0 7px;color:#788a99;font-size:10px;font-weight:800}.digital-book h2{margin:0 0 10px;color:#243b50;font-size:19px}.digital-book-description{min-height:62px;color:#5d6b76;font-size:13px;line-height:1.5}.digital-book a{display:inline-block;margin-top:15px;padding:10px 13px;border-radius:8px;text-decoration:none;font-size:12px;font-weight:900}.digital-book-download{background:#1685cc;color:#fff}.digital-book-login{background:#eef4f8;color:#345d76}.digital-library-empty{grid-column:1/-1;display:grid;gap:5px;padding:40px;border:1px dashed #bdcad4;border-radius:14px;color:#7c8b97;text-align:center}.library-login-required{max-width:560px;margin:60px auto;padding:40px;border:1px solid #dbe4eb;border-radius:18px;background:#fff;text-align:center}.library-login-required a{display:inline-block;margin:8px 4px;padding:10px 14px;border-radius:8px;background:#1685cc;color:#fff;text-decoration:none}.library-admin{max-width:1250px;margin:0 auto;padding:25px}.library-admin>header{display:flex;justify-content:space-between;align-items:center;margin-bottom:20px}.library-admin>header p{margin:0;color:#1685cc;font-size:10px;font-weight:900;text-transform:uppercase}.library-admin>header h2{margin:3px 0}.library-admin>header a{padding:9px 13px;border-radius:8px;background:#1685cc;color:#fff;text-decoration:none}.library-admin-grid{display:grid;grid-template-columns:minmax(330px,440px) 1fr;gap:20px}.library-admin-form,.library-admin-list{padding:22px;border:1px solid #dfe6ec;border-radius:14px;background:#fff}.library-admin-form{display:grid;gap:13px}.library-admin-form label{display:grid;gap:6px;color:#43576a;font-size:11px;font-weight:900}.library-admin-form input,.library-admin-form textarea{box-sizing:border-box;width:100%;padding:10px;border:1px solid #cbd6df;border-radius:7px}.library-form-pair{display:grid;grid-template-columns:1fr 1fr;gap:10px}.library-admin-form .library-check{display:flex;align-items:center}.library-check input{width:auto}.library-admin-form>button{padding:12px;border:0;border-radius:8px;background:#1685cc;color:#fff;font-weight:900}.library-admin-row{display:grid;grid-template-columns:1fr auto auto auto;gap:10px;align-items:center;padding:12px;border-bottom:1px solid #edf1f4}.library-admin-row div{display:grid}.library-admin-row span{color:#7b8995;font-size:10px}.library-admin-row b{padding:4px 7px;border-radius:6px;font-size:9px}.library-admin-row .published{background:#e2f4e9;color:#287348}.library-admin-row .draft{background:#f0f1f2;color:#6f7880}.library-admin-row form{margin:0}.library-admin-row button{border:0;background:#f8d7da;color:#9c2732;cursor:pointer}.library-alert{margin-bottom:15px;padding:12px;border-radius:8px}.library-alert.success{background:#dff2e5;color:#246c42}.library-alert.error{background:#f8d7da;color:#842029}.library-upload-progress{position:relative;height:25px;overflow:hidden;border-radius:8px;background:#e9eff3}.library-upload-progress span{display:block;height:100%;width:0;background:#1685cc;transition:width .15s}.library-upload-progress b{position:absolute;inset:0;display:grid;place-items:center;color:#17344a;font-size:10px}.library-empty{color:#89949d;text-align:center}@media(max-width:760px){.digital-library{padding:20px 12px}.digital-library-search{grid-template-columns:1fr}.digital-library-search button{padding:12px}.library-admin-grid{grid-template-columns:1fr}.library-form-pair{grid-template-columns:1fr}.library-admin-row{grid-template-columns:1fr auto}.library-admin-row div{grid-column:1/-1}}

/* Artykuły kursów AI: grafiki redakcyjne i linki do narzędzi */
.course-container .description .course-article-image{display:block;width:100%;max-height:520px;margin:0 0 28px;border-radius:18px;object-fit:cover;box-shadow:0 16px 40px rgba(24,41,67,.16)}.course-container .description .course-resource-link{display:inline-flex;align-items:center;gap:5px;margin:2px 3px;padding:5px 9px;border:1px solid #b9d9ef;border-radius:8px;background:#edf7fe;color:#086da9;text-decoration:none;font-weight:800;line-height:1.25;transition:transform .15s,background .15s,border-color .15s,box-shadow .15s}.course-container .description .course-resource-link span{font-size:10px;opacity:.7}.course-container .description .course-resource-link:hover{transform:translateY(-1px);border-color:#72b6df;background:#dff2ff;box-shadow:0 5px 13px rgba(20,120,180,.12)}.course-container .description .course-resource-link:focus-visible{outline:3px solid rgba(20,130,200,.2);outline-offset:2px}@media(max-width:650px){.course-container .description .course-article-image{margin-bottom:20px;border-radius:12px}.course-container .description .course-resource-link{padding:5px 7px;font-size:12px}}
/* Statystyki odwiedzin i odcisk urządzenia */
.visitor-stats{width:min(1440px,calc(100% - 32px));margin:30px auto 60px;color:#18343e}.visitor-stats>header{display:flex;justify-content:space-between;gap:24px;align-items:flex-end;padding:28px;border-radius:20px;background:linear-gradient(135deg,#123f4b,#176b87);color:#fff;box-shadow:0 18px 45px rgba(18,63,75,.18)}.visitor-stats>header p{margin:0 0 7px;color:#f4b942;font-size:12px;font-weight:900;letter-spacing:.14em}.visitor-stats>header h1{margin:0 0 6px;font-size:clamp(26px,4vw,40px)}.visitor-stats>header span{color:#d9edf1}.visitor-stats>header nav{display:flex;gap:7px;flex-wrap:wrap}.visitor-stats>header nav a{padding:9px 12px;border:1px solid rgba(255,255,255,.25);border-radius:10px;color:#fff;text-decoration:none;font-weight:700;font-size:13px}.visitor-stats>header nav a.active,.visitor-stats>header nav a:hover{background:#f4b942;color:#18343e;border-color:#f4b942}.visitor-stat-cards{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin:18px 0}.visitor-stat-cards article{position:relative;display:flex;flex-direction:column;padding:20px;border:1px solid #dce8eb;border-radius:16px;background:#fff;box-shadow:0 8px 24px rgba(20,65,78,.07)}.visitor-stat-cards article>span{position:absolute;right:18px;font-size:25px}.visitor-stat-cards strong{font-size:32px;color:#176b87}.visitor-stat-cards small{color:#647c84;font-weight:700}.visitor-filters{display:flex;gap:10px;align-items:center;padding:14px;background:#edf5f6;border-radius:14px;margin-bottom:18px}.visitor-filters input{flex:1;min-width:180px}.visitor-filters input,.visitor-filters select{height:44px;padding:0 13px;border:1px solid #c8dade;border-radius:9px;background:#fff}.visitor-filters button,.visitor-filters>a{display:inline-flex;align-items:center;justify-content:center;height:44px;padding:0 17px;border:0;border-radius:9px;background:#176b87;color:#fff;text-decoration:none;font-weight:800;cursor:pointer}.visitor-filters>a{background:#fff;color:#176b87;border:1px solid #c8dade}.visitor-insights{display:grid;grid-template-columns:1fr 1fr;gap:18px}.visitor-insights>article{padding:20px;border:1px solid #dce8eb;border-radius:16px;background:#fff}.visitor-insights h2,.visitor-log-heading h2{margin:0 0 15px;font-size:19px}.visitor-insights ol{list-style:none;margin:0;padding:0}.visitor-insights li{margin:11px 0}.visitor-insights li div{display:flex;justify-content:space-between;gap:15px;font-size:13px}.visitor-insights li span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.visitor-insights li i{display:block;height:5px;margin-top:5px;background:linear-gradient(90deg,#176b87,#52b4b0);border-radius:9px}.visitor-log-heading{display:flex;justify-content:space-between;margin:25px 0 10px}.visitor-log-heading h2{margin-bottom:2px}.visitor-log-heading p{margin:0;color:#71858b;font-size:13px}.visitor-table-wrap{overflow:auto;border:1px solid #dce8eb;border-radius:16px;background:#fff}.visitor-table-wrap table{width:100%;min-width:1050px;border-collapse:collapse}.visitor-table-wrap th{padding:13px;text-align:left;background:#edf5f6;color:#49636b;font-size:12px;text-transform:uppercase;letter-spacing:.05em}.visitor-table-wrap td{padding:13px;border-top:1px solid #e5edef;vertical-align:top;font-size:13px}.visitor-table-wrap td>b,.visitor-table-wrap td>small,.visitor-table-wrap td>code{display:block;margin-bottom:5px}.visitor-table-wrap td>small{color:#71858b}.visitor-table-wrap code{max-width:260px;overflow-wrap:anywhere;color:#176b87;font-size:11px}.visitor-table-wrap td>a{color:#176b87;font-weight:800;text-decoration:none}.visitor-table-wrap details summary{cursor:pointer;color:#176b87;font-weight:700}.visitor-table-wrap details code{display:block;max-width:320px;margin-top:8px;white-space:normal;overflow-wrap:anywhere}.stats-error,.stats-empty{padding:24px;color:#a23434;background:#fff0f0;border-radius:14px}.stats-empty{text-align:center;color:#71858b;background:#fff}
@media(max-width:900px){.visitor-stats>header{align-items:flex-start;flex-direction:column}.visitor-stat-cards{grid-template-columns:repeat(2,1fr)}.visitor-insights{grid-template-columns:1fr}.visitor-filters{flex-wrap:wrap}.visitor-filters input{flex-basis:100%}}
@media(max-width:520px){.visitor-stats{width:min(100% - 18px,1440px);margin-top:14px}.visitor-stats>header{padding:20px}.visitor-stat-cards{grid-template-columns:1fr 1fr;gap:8px}.visitor-stat-cards article{padding:15px}.visitor-stat-cards strong{font-size:25px}.visitor-stat-cards article>span{right:12px;font-size:20px}.visitor-filters select,.visitor-filters button,.visitor-filters>a{flex:1}}
/* Panel mapy witryny SEO */
.sitemap-admin{width:min(1180px,calc(100% - 32px));margin:30px auto 60px;color:#18343e}.sitemap-admin>header{display:flex;align-items:flex-end;justify-content:space-between;gap:24px;padding:28px;border-radius:20px;background:linear-gradient(135deg,#123f4b,#176b87);color:#fff}.sitemap-admin>header p{margin:0 0 6px;color:#f4b942;font-size:12px;font-weight:900;letter-spacing:.14em}.sitemap-admin>header h1{margin:0 0 6px;font-size:36px}.sitemap-admin>header span{color:#d9edf1}.sitemap-admin>header>a{padding:11px 15px;border-radius:10px;background:#f4b942;color:#18343e;text-decoration:none;font-weight:900;white-space:nowrap}.sitemap-counts{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin:18px 0}.sitemap-counts article{display:flex;flex-direction:column;padding:18px;border:1px solid #dce8eb;border-radius:14px;background:#fff}.sitemap-counts strong{font-size:29px;color:#176b87}.sitemap-counts span{font-size:13px;color:#667f87;font-weight:700}.sitemap-admin-grid{display:grid;grid-template-columns:1.2fr .8fr;gap:18px}.sitemap-admin-grid>article{padding:24px;border:1px solid #dce8eb;border-radius:16px;background:#fff;box-shadow:0 8px 25px rgba(20,65,78,.06)}.sitemap-admin-grid h2{margin:0 0 17px}.sitemap-admin-grid dl{margin:0}.sitemap-admin-grid dl div{display:flex;justify-content:space-between;gap:20px;padding:11px 0;border-bottom:1px solid #e7eff1}.sitemap-admin-grid dt{color:#6b8188}.sitemap-admin-grid dd{margin:0;text-align:right;font-weight:800}.sitemap-admin-grid a{color:#176b87}.sitemap-admin-grid button{margin-top:18px;padding:12px 17px;border:0;border-radius:9px;background:#176b87;color:#fff;font-weight:900;cursor:pointer}.sitemap-admin-grid li{margin:10px 0}.sitemap-admin-grid p{color:#647c84;line-height:1.6}
@media(max-width:760px){.sitemap-admin>header{align-items:flex-start;flex-direction:column}.sitemap-counts{grid-template-columns:1fr 1fr}.sitemap-admin-grid{grid-template-columns:1fr}.sitemap-admin-grid dl div{align-items:flex-start;flex-direction:column;gap:4px}.sitemap-admin-grid dd{text-align:left;overflow-wrap:anywhere}}
/* Publiczny system testów */
.knowledge-test{box-sizing:border-box;width:min(1100px,calc(100% - 36px));margin:36px auto 70px;color:#1d2d43}.knowledge-test *{box-sizing:border-box}.knowledge-test__eyebrow{margin:0 0 7px;color:#1595e8;font-size:11px;font-weight:900;letter-spacing:.14em;text-transform:uppercase}.knowledge-test__hero,.test-run-header,.test-result-hero{display:flex;align-items:center;justify-content:space-between;gap:30px;padding:34px 38px;border-radius:24px;background:radial-gradient(circle at 85% 5%,rgba(23,151,238,.38),transparent 35%),linear-gradient(125deg,#182c4b,#294d76);color:#fff;box-shadow:0 18px 44px rgba(24,47,78,.2)}.knowledge-test__hero h1,.test-run-header h1,.test-result-hero h1{margin:0 0 9px;color:#fff;font-size:clamp(27px,4vw,40px);line-height:1.12}.knowledge-test__hero h1 span{color:#8fd4ff}.knowledge-test__hero>div>div,.test-run-header>div>span{display:block;max-width:650px;color:#cfdaea;line-height:1.55}.knowledge-test__pass{display:grid;flex:0 0 145px;min-height:110px;place-content:center;border:1px solid rgba(255,255,255,.18);border-radius:17px;background:rgba(255,255,255,.09);text-align:center}.knowledge-test__pass strong{font-size:34px}.knowledge-test__pass small{color:#d5e2ef;font-weight:700}.test-start-grid{display:grid;grid-template-columns:.9fr 1.1fr;gap:20px;margin-top:20px}.test-rules-card,.test-start-form{padding:28px;border:1px solid #dfe7ef;border-radius:18px;background:#fff;box-shadow:0 8px 28px rgba(30,55,84,.065)}.test-rules-card h2,.test-start-form h2{margin:0 0 20px;font-size:23px}.test-rules-card ol{display:grid;gap:3px;margin:0;padding:0;list-style:none}.test-rules-card li{display:flex;align-items:flex-start;gap:13px;padding:13px 0;border-top:1px solid #edf1f5}.test-rules-card li>span{display:grid;flex:0 0 30px;height:30px;place-items:center;border-radius:9px;background:#eaf6ff;color:#087dc8;font-weight:900}.test-rules-card li div{display:grid;gap:3px}.test-rules-card li small{color:#6d7a8c;line-height:1.45}.test-start-form>label{display:block;margin:16px 0 7px;color:#536176;font-size:12px;font-weight:900}.test-start-form select,.test-start-form input[type=email]{width:100%;min-height:50px;padding:0 14px;border:1px solid #ccd8e4;border-radius:11px;background:#fafdff;color:#27384f;font-size:15px;outline:0}.test-start-form select:focus,.test-start-form input[type=email]:focus{border-color:#168fdc;box-shadow:0 0 0 4px rgba(22,143,220,.11)}.test-account-note,.test-start-form__note{display:flex;align-items:flex-start;gap:10px;margin-top:18px;padding:13px;border-radius:11px;background:#edf8f3;color:#28704e}.test-account-note>span,.test-start-form__note>span{font-weight:900}.test-account-note div{display:grid;gap:2px}.test-account-note small{color:#5d7c6d}.test-start-form__note{background:#f1f6fb;color:#587086;font-size:12px;line-height:1.45}.test-start-form>button{display:flex;width:100%;min-height:52px;align-items:center;justify-content:center;gap:10px;margin-top:20px;border:0;border-radius:11px;background:#128bd7;color:#fff;font-size:16px;font-weight:900;cursor:pointer;box-shadow:0 9px 20px rgba(18,139,215,.2);transition:transform .15s,background .15s}.test-start-form>button:hover{transform:translateY(-1px);background:#087cc6}
.test-run-header{padding:27px 31px;border-radius:20px}.test-run-header h1{font-size:29px}.test-timer{display:grid;flex:0 0 150px;padding:12px 18px;border:1px solid rgba(255,255,255,.2);border-radius:14px;background:rgba(255,255,255,.1);text-align:center}.test-timer small{color:#cce2f3;font-size:10px;font-weight:900;text-transform:uppercase}.test-timer strong{font-variant-numeric:tabular-nums;font-size:29px;letter-spacing:.04em}.test-progress{overflow:hidden;height:7px;margin:17px 4px 22px;border-radius:10px;background:#dfe9f1}.test-progress span{display:block;width:0;height:100%;border-radius:inherit;background:linear-gradient(90deg,#168fdc,#48b7ef);transition:width .35s ease}.question-step{padding:32px;border:1px solid #dfe7ee;border-radius:19px;background:#fff;box-shadow:0 10px 32px rgba(29,51,79,.07)}.question-step__meta{display:flex;align-items:center;justify-content:space-between;margin-bottom:13px}.question-step__meta span{color:#1086d0;font-size:11px;font-weight:900;letter-spacing:.12em;text-transform:uppercase}.question-step__meta small{padding:5px 9px;border-radius:9px;background:#eef4f8;color:#607286;font-weight:800}.question-step h2{max-width:850px;margin:0 0 25px;color:#22344d;font-size:clamp(20px,3vw,27px);line-height:1.32}.question-step__answers{display:grid;gap:10px}.test-answer-option label{display:flex;align-items:center;gap:13px;padding:15px 17px;border:1px solid #dce5ed;border-radius:12px;background:#fbfdff;color:#3e4f64;cursor:pointer;line-height:1.4;transition:border-color .15s,background .15s,transform .15s}.test-answer-option label:hover{transform:translateX(2px);border-color:#9fcceb;background:#f2faff}.test-answer-option input{position:absolute;opacity:0;pointer-events:none}.test-answer-option__mark{display:grid;flex:0 0 22px;height:22px;place-items:center;border:2px solid #b8c6d3;border-radius:50%;background:#fff}.test-answer-option input:checked+.test-answer-option__mark{border:6px solid #128bd7}.test-answer-option label:has(input:checked){border-color:#128bd7;background:#eaf6fe;color:#153e5c;font-weight:700}.test-answer-option label:has(input:focus-visible){outline:3px solid rgba(18,139,215,.2);outline-offset:2px}.test-run-actions{display:flex;align-items:center;justify-content:flex-end;gap:18px;margin-top:17px}.test-run-actions>div{margin-right:auto;color:#5f7083;font-size:13px;font-weight:900}.test-run-actions button{min-height:47px;padding:0 19px;border:0;border-radius:10px;background:#128bd7;color:#fff;font-weight:900;cursor:pointer}.test-run-actions #btnSubmit{display:none;background:#23865b}
.test-result-hero{justify-content:flex-start}.test-result-score{display:grid;flex:0 0 145px;min-height:145px;place-content:center;border:1px solid rgba(255,255,255,.22);border-radius:50%;background:rgba(255,255,255,.1);text-align:center}.test-result-score strong{font-size:45px;line-height:.95}.test-result-score>span{font-size:15px;font-weight:900}.test-result-score small{margin-top:7px;color:#d4e1ed}.test-result-copy{flex:1}.test-result-copy>p,.test-result-section-heading p{margin:0 0 6px;color:#85cfff;font-size:10px;font-weight:900;letter-spacing:.14em;text-transform:uppercase}.test-result-copy>span{color:#d2deea;line-height:1.5}.test-result-actions{display:grid;gap:8px;flex:0 0 165px}.test-result-actions a{padding:11px 13px;border:1px solid rgba(255,255,255,.25);border-radius:9px;color:#fff;text-align:center;text-decoration:none;font-size:12px;font-weight:900}.test-result-actions a.primary{border-color:#168fdc;background:#168fdc}.test-result-hero.failed{background:radial-gradient(circle at 85% 5%,rgba(205,91,102,.35),transparent 35%),linear-gradient(125deg,#292e43,#594052)}.test-result-section-heading{margin:30px 0 15px}.test-result-section-heading p{color:#1085cf}.test-result-section-heading h2{margin:0;font-size:25px}.test-review-list{display:grid;gap:12px}.test-review-card{padding:21px 23px;border:1px solid #dfe7ed;border-left:5px solid #2b9564;border-radius:14px;background:#fff;box-shadow:0 6px 23px rgba(30,52,78,.055)}.test-review-card.incorrect{border-left-color:#c9515d}.test-review-card>header{display:flex;justify-content:space-between;align-items:center}.test-review-card>header span{padding:5px 8px;border-radius:8px;background:#ddf5e8;color:#20744c;font-size:10px;font-weight:900;text-transform:uppercase}.test-review-card.incorrect>header span{background:#fde8e9;color:#a33f49}.test-review-card>header small{color:#8390a0;font-weight:800}.test-review-card h3{margin:13px 0 16px;color:#293b52;font-size:17px}.test-review-card__choice,.test-review-card__correct{display:grid;gap:3px;margin:9px 0;color:#59697b}.test-review-card__choice strong,.test-review-card__correct strong{color:#8390a0;font-size:9px;letter-spacing:.08em;text-transform:uppercase}.test-review-card__correct span{color:#24734d;font-weight:700}.test-review-card__explanation{margin-top:15px;padding:14px 16px;border-radius:10px;background:#f2f6f9;color:#536476}.test-review-card__explanation strong{color:#334860}.test-review-card__explanation p{margin:5px 0 0;line-height:1.55}
@media(max-width:760px){.knowledge-test{width:min(100% - 24px,1100px);margin:18px auto 45px}.knowledge-test__hero,.test-run-header,.test-result-hero{align-items:flex-start;flex-direction:column;padding:25px 22px;border-radius:18px}.knowledge-test__pass{box-sizing:border-box;width:100%;min-height:82px}.test-start-grid{grid-template-columns:1fr}.test-rules-card,.test-start-form,.question-step{padding:21px 18px}.test-timer{box-sizing:border-box;width:100%;flex-basis:auto}.question-step h2{font-size:20px}.test-answer-option label{padding:13px}.test-run-actions{align-items:stretch;flex-direction:column}.test-run-actions>div{margin:0;text-align:center}.test-run-actions button{width:100%}.test-result-score{flex-basis:120px;min-height:120px}.test-result-actions{width:100%;flex-basis:auto}.test-review-card{padding:18px 16px}}
.library-pdf-drop{position:relative;display:flex!important;align-items:center;justify-content:center;flex-direction:column;min-height:190px;padding:24px!important;border:2px dashed #a8bdcc!important;border-radius:15px!important;background:linear-gradient(145deg,#f8fbfd,#eef5f9);color:#3e6178!important;text-align:center;cursor:pointer;transition:.18s}.library-pdf-drop:hover,.library-pdf-drop.is-dragging{border-color:#1685cc!important;background:#e9f6fd;box-shadow:0 9px 25px rgba(22,133,204,.14);transform:translateY(-2px)}.library-pdf-drop.has-file{border-style:solid!important;border-color:#35a267!important;background:#edf9f1;color:#246b43!important}.library-pdf-drop.is-uploading{pointer-events:none;opacity:.72}.library-pdf-drop input{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;overflow:hidden;opacity:0}.library-pdf-drop__icon{display:grid;width:58px;height:68px;place-items:center;margin-bottom:13px;border-radius:7px 15px 7px 7px;background:linear-gradient(145deg,#d83b4a,#8f1f2c);box-shadow:0 7px 17px rgba(151,30,44,.22);color:#fff;font-size:14px;font-weight:950}.library-pdf-drop strong{font-size:16px}.library-pdf-drop small{margin-top:5px;color:#758b9a;font-size:11px;font-weight:600}.library-pdf-drop em{max-width:100%;margin-top:13px;padding:7px 10px;border-radius:7px;background:rgba(255,255,255,.85);font-size:11px;font-style:normal;overflow-wrap:anywhere}.library-upload-progress{height:34px!important;border:1px solid #c9d8e2}.library-upload-progress span{background:linear-gradient(90deg,#1685cc,#35a267)!important}.library-upload-progress b{color:#24455a!important;font-size:11px!important}

/* Warstwy menu i nagłówek panelu biblioteki */
body>header{position:relative;z-index:10000!important;overflow:visible}.navbar,.navbar-inner,.admin-navbar,.admin-navbar-inner{overflow:visible}.admin-nav-links li.has-dropdown{z-index:10001}.admin-nav-links .dropdown-menu{z-index:10002!important}
.library-admin>header{position:relative;z-index:1;isolation:isolate;display:flex;align-items:center;justify-content:space-between;gap:28px;overflow:hidden;margin:0 0 24px;padding:28px 30px;border:1px solid rgba(255,255,255,.12);border-radius:20px;background:radial-gradient(circle at 78% 0,rgba(54,177,231,.28),transparent 35%),linear-gradient(125deg,#142d46,#285c78);box-shadow:0 18px 42px rgba(20,47,71,.17);color:#fff;text-align:left}.library-admin>header::after{content:'PDF';position:absolute;right:145px;bottom:-35px;z-index:-1;color:rgba(255,255,255,.045);font-size:115px;font-weight:950;line-height:1}.library-admin>header>div{position:relative;padding-left:58px}.library-admin>header>div::before{content:'PDF';position:absolute;left:0;top:2px;display:grid;width:43px;height:52px;place-items:center;border-radius:6px 13px 6px 6px;background:linear-gradient(145deg,#e24a56,#9a2632);box-shadow:0 8px 18px rgba(0,0,0,.2);color:#fff;font-size:10px;font-weight:950;letter-spacing:.05em}.library-admin>header p{margin:0 0 5px;color:#8ed5f6;font-size:10px;font-weight:950;letter-spacing:.15em;text-transform:uppercase}.library-admin>header h2{margin:0 0 6px;color:#fff;font-size:clamp(25px,3vw,34px);line-height:1.1}.library-admin>header span{display:block;color:#cbdde8;font-size:13px}.library-admin>header>a{display:inline-flex;align-items:center;gap:8px;flex:0 0 auto;margin:0;padding:12px 16px;border:1px solid rgba(255,255,255,.22);border-radius:10px;background:rgba(255,255,255,.12);box-shadow:none;color:#fff;text-decoration:none;font-size:12px;font-weight:900;transition:.18s}.library-admin>header>a::after{content:'↗';font-size:14px}.library-admin>header>a:hover{background:#fff;color:#1c4d69;transform:translateY(-1px)}
@media(max-width:680px){.library-admin{padding:14px}.library-admin>header{align-items:flex-start;flex-direction:column;padding:23px 20px}.library-admin>header>div{padding-left:52px}.library-admin>header>a{align-self:stretch;justify-content:center}.library-admin>header::after{display:none}}
