:root {
    --bg-color: #F5F7FA;
    --surface-color: #FFFFFF;
    --surface-muted: #EEF4F0;

    --text-color: #1F2D26;
    --text-muted: #5B6B63;
    --heading-color: #173625;

    --primary-color: #089700;
    --secondary-color: #047690;
    --primary-hover: #067500;
    --primary-soft: #E8F5E8;

    --link-color: #089700;
    --link-hover: #067500;

    --badge-bg: #E8F5E8;
    --badge-text: #067500;

    --border-color: #D8E3DB;
    --header-bg: rgba(255, 255, 255, 0.88);

    --on-primary: #FFFFFF;

    --border-radius: 16px;
    --transition: 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --shadow: 0 6px 24px rgba(23, 54, 37, 0.08);
    --shadow-hover: 0 14px 36px rgba(23, 54, 37, 0.14);
}

.dark-mode {
    --bg-color: #0E1720;
    --surface-color: #162231;
    --surface-muted: #1C2B3C;

    --text-color: #EAF2EE;
    --text-muted: #B7C5BE;
    --heading-color: #F4FBF7;

    --primary-color: #51D74A;
    --secondary-color: #409AAF;
    --primary-hover: #2CD023;
    --primary-soft: #1C3320;

    --link-color: #51D74A;
    --link-hover: #2CD023;

    --badge-bg: #1C3320;
    --badge-text: #51D74A;

    --border-color: #2D3D48;
    --header-bg: rgba(14, 23, 32, 0.84);

    --on-primary: #000000;

    --shadow: 0 8px 28px rgba(0, 0, 0, 0.28);
    --shadow-hover: 0 16px 40px rgba(0, 0, 0, 0.38);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    hyphens: auto;
    transition: background-color 0.4s ease, color 0.4s ease;
}

.dark-mode img {
    filter: brightness(0.85) contrast(1.1);
}

.dark-mode .logo {
    content: url('orzeł negatyw.png');
}

h1, h2, h3, h4 {
    color: var(--heading-color);
    margin-bottom: 1.5rem;
    font-weight: 700;
}

ul, ol {
    margin-bottom: 1rem;
}

a {
    transition: var(--transition);
    text-decoration: none;
    color: var(--link-color);
}

a:hover {
    color: var(--link-hover);
}

/* Header */
.main-header {
    background-color: var(--header-bg);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
    border-bottom: 1px solid var(--border-color);
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo {
    height: 70px;
    width: auto;
    object-fit: contain;
}

.slogan {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: 0.2px;
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 35px;
    margin: 0;
}

.main-nav a {
    color: var(--text-color);
    font-weight: 600;
    font-size: 1.05rem;
    position: relative;
    padding: 5px 0;
}

.main-nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.main-nav a:hover::after {
    width: 100%;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
    padding: 10px;
}

.mobile-menu-toggle span {
    width: 32px;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 3px;
    transition: var(--transition);
}

/* Theme Toggle Button */
.theme-toggle {
    background: var(--surface-muted);
    border: 1px solid var(--border-color);
    color: var(--primary-color);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    transition: var(--transition);
}

.theme-toggle:hover {
    transform: scale(1.1) rotate(15deg);
    background: var(--surface-color);
    box-shadow: var(--shadow);
}

/* Buttons */
.cta-button {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--on-primary);
    padding: 1.2rem 2.8rem;
    border-radius: 120px;
    font-weight: 700;
    font-size: 1.15rem;
    transition: var(--transition);
    box-shadow: 0 8px 25px rgba(0, 100, 0, 0.15);
    border: 2px solid var(--primary-color);
    text-align: center;
}

.cta-button:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
    background-color: var(--surface-color);
    color: var(--primary-color);
}

.cta-button.secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--border-color);
    box-shadow: none;
}

.cta-button.secondary:hover {
    background-color: var(--surface-muted);
    border-color: var(--primary-color);
}

/* Section Container */
.section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 6rem 5%;
}

/* Cards */
.school-card, .feature-item, .info-card, .faq-item, .profession-card, .media-card {
    background: var(--surface-color);
    border-radius: var(--border-radius);
    padding: 2.5rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.school-card:hover, .feature-item:hover, .info-card:hover, .faq-item:hover, .profession-card:hover, .media-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.dark-mode .school-card, 
.dark-mode .feature-item, 
.dark-mode .info-card, 
.dark-mode .profession-card,
.dark-mode .media-card {
    background: linear-gradient(180deg, var(--surface-color) 0%, var(--surface-muted) 100%);
}

/* Hero Section */
.hero-section {
    padding: 8rem 5% 6rem;
    background: radial-gradient(circle at top center, var(--primary-soft) 0%, var(--bg-color) 100%);
    text-align: center;
}

.hero-content {
    max-width: 1000px;
    margin: 0 auto;
}

.hero-content h1 {
    font-size: 3.8rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--heading-color) 0%, var(--primary-color) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.4rem;
    color: var(--text-muted);
    max-width: 800px;
    margin: 0 auto 3.5rem;
}

.schools-info {
    display: flex;
    justify-content: center;
    gap: 35px;
    flex-wrap: wrap;
    margin-top: 4rem;
}

.school-card {
    flex: 1 1 350px;
    max-width: 450px;
    text-align: left;
}

.school-card h3 {
    margin-bottom: 1.2rem;
    color: var(--primary-color);
}

.school-card ul {
    list-style: none;
    padding: 0;
}

.school-card ul li {
    margin-bottom: 12px;
    padding-left: 30px;
    position: relative;
    color: var(--text-color);
}

.school-card ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: 700;
}

/* Stats */
.stats-section {
    padding: 4rem 0;
    border-top: 1px solid var(--border-color);
}

.stats-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 60px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 4rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

/* Why Us */
.why-us {
    background-color: var(--surface-muted);
}

.why-us h2 {
    text-align: center;
    margin-bottom: 4rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-item .icon {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
}

.feature-item h4 {
    color: var(--primary-color);
}

/* Badges */
.media-badge, .news-badge, .press-badge, .media-tag, .equip-item {
    display: inline-block;
    padding: 0.4rem 1.2rem;
    background: var(--badge-bg);
    color: var(--badge-text);
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.85rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

/* FAQ */
.faq-section {
    max-width: 800px;
    margin: 0 auto;
}

.faq-question {
    width: 100%;
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 700;
    color: var(--heading-color);
    background: transparent;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: 1.1rem;
}

.faq-question:hover {
    background: var(--primary-soft);
}

.faq-question::after {
    content: '+';
    font-size: 1.5rem;
    color: var(--primary-color);
}

.faq-question.active::after {
    content: '-';
}

.faq-answer p {
    padding: 0 1.5rem 1.5rem;
    color: var(--text-muted);
}

/* Instructions */
.instructions-box {
    background: var(--surface-muted);
    border-left: 6px solid var(--primary-color);
    padding: 3.5rem;
    border-radius: var(--border-radius);
    margin: 4rem 0;
}

.instructions-box ol {
    padding-left: 1.5rem;
}

.instructions-box ol li {
    margin-bottom: 1rem;
    color: var(--text-color);
}

/* Footer */
.main-footer {
    background-color: var(--primary-color);
    color: var(--on-primary);
    padding: 6rem 5% 3rem;
    text-align: center;
}

.footer-logo {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.footer-links {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--on-primary);
    opacity: 0.8;
}

.footer-links a:hover {
    opacity: 1;
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.8rem;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--surface-color);
        padding: 2rem;
        box-shadow: var(--shadow);
        border-top: 1px solid var(--border-color);
    }
    
    .main-nav.active {
        display: block;
    }
    
    .main-nav ul {
        flex-direction: column;
        gap: 20px;
    }

    .stat-number {
        font-size: 3rem;
    }
}
