/* 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;
}

/* 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-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; }
    .auth-buttons .sign-in { display:none; }

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

/* 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; }
}
