/* Import modern fonts */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700;800;900&family=Inter:wght@300;400;500;600;700&display=swap');

/* Reset i podstawowe style */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --color-primary: #05702D;      /* Zielony - główny kolor */
    --color-secondary: #700549;    /* Bordo - akcenty */
    --color-accent: #F4870B;       /* Pomarańczowy - przyciski */
    --color-cyan: #00D9C0;         /* Cyjan - jak na kfk.pl */
    --color-text: #2d3748;
    --color-text-light: #718096;
    --color-bg: #ffffff;
    --color-light-gray: #f7fafc;
    --color-dark: #1a202c;
    --font-heading: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --transition-base: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.7;
    color: var(--color-text);
    background-color: var(--color-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* Selection */
::selection {
    background: var(--color-cyan);
    color: white;
}

::-moz-selection {
    background: var(--color-cyan);
    color: white;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: var(--color-light-gray);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-cyan) 100%);
    border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, var(--color-cyan) 0%, var(--color-primary) 100%);
}

/* Typografia */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--color-dark);
    letter-spacing: -0.02em;
}

h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    margin-bottom: 1rem;
}

h2 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 1rem;
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 600;
    margin-bottom: 0.75rem;
}

h4 {
    font-size: clamp(1.25rem, 2.5vw, 1.5rem);
    font-weight: 600;
    margin-bottom: 0.75rem;
}

p {
    margin-bottom: 1.25rem;
    line-height: 1.8;
    color: var(--color-text);
}

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

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

ul, ol {
    margin-left: 1.5em;
    margin-bottom: 1.25em;
}

li {
    margin-bottom: 0.5em;
    line-height: 1.8;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Container */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
    width: 100%;
}

@media (min-width: 640px) {
    .container {
        padding: 0 2rem;
    }
}

@media (min-width: 1024px) {
    .container {
        padding: 0 3rem;
    }
}

/* Header i nawigacja - Modern Design */
header {
    background: linear-gradient(135deg, var(--color-cyan) 0%, var(--color-primary) 100%);
    color: white;
    padding: 0;
    box-shadow: var(--shadow-lg);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.header-top {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    gap: 2rem;
}

.logo {
    height: 50px;
    transition: var(--transition-base);
    filter: brightness(0) invert(1);
}

.logo:hover {
    transform: scale(1.05);
    filter: brightness(0) invert(1) drop-shadow(0 0 10px rgba(255, 255, 255, 0.5));
}

.header-contact {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.5rem;
    font-size: 0.875rem;
}

.header-contact a {
    color: white;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition-base);
    font-family: var(--font-heading);
}

.header-contact a:hover {
    color: var(--color-accent);
    transform: translateX(-3px);
}

nav {
    background: rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(20px);
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 0;
    margin: 0;
    flex-wrap: wrap;
}

nav li {
    margin: 0;
}

nav a {
    color: white;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.8125rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 1rem 1.25rem;
    display: block;
    transition: var(--transition-base);
    border-bottom: 3px solid transparent;
    position: relative;
}

nav a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background: var(--color-accent);
    transition: var(--transition-base);
    transform: translateX(-50%);
}

nav a:hover::before,
nav a.active::before {
    width: 80%;
}

nav a:hover,
nav a.active {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--color-accent);
}

/* Hero Section - Modern Design */
.hero {
    background: linear-gradient(135deg, rgba(5, 112, 45, 0.03) 0%, rgba(0, 217, 192, 0.03) 100%);
    padding: clamp(3rem, 8vw, 6rem) 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--color-primary) 0%, transparent 70%);
    opacity: 0.05;
    border-radius: 50%;
    animation: pulse 8s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.05; }
    50% { transform: translate(-50%, -50%) scale(1.1); opacity: 0.08; }
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-icon {
    width: clamp(150px, 20vw, 200px);
    height: clamp(150px, 20vw, 200px);
    margin: 0 auto 2rem;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-cyan) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 20px 60px rgba(5, 112, 45, 0.25);
    animation: float 6s ease-in-out infinite;
    position: relative;
}

.hero-icon::after {
    content: '';
    position: absolute;
    inset: -10px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-cyan) 100%);
    opacity: 0.2;
    filter: blur(20px);
    z-index: -1;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}

.hero h1 {
    font-size: clamp(1.75rem, 5vw, 3rem);
    font-weight: 800;
    text-transform: uppercase;
    margin: 1.5rem 0 1rem;
    color: var(--color-dark);
    line-height: 1.15;
    letter-spacing: -0.02em;
}

.hero .subtitle {
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 1rem;
    font-family: var(--font-heading);
}

.hero p {
    font-size: clamp(1rem, 2vw, 1.125rem);
    color: var(--color-text-light);
    max-width: 700px;
    margin: 0 auto 2rem;
    line-height: 1.7;
}

/* Buttons - Modern Design */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: var(--color-cyan);
    color: var(--color-dark);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 50px;
    transition: var(--transition-base);
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0, 217, 192, 0.3);
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn:hover {
    background: var(--color-accent);
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(244, 135, 11, 0.4);
    color: white;
}

.btn:active {
    transform: translateY(-1px);
}

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

.btn-secondary:hover {
    background: var(--color-cyan);
    color: var(--color-dark);
    border-color: var(--color-cyan);
    box-shadow: 0 4px 20px rgba(0, 217, 192, 0.3);
}

.btn-group {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

/* Search bar - Modern Design */
.search-bar {
    max-width: 650px;
    margin: 0 auto;
    position: relative;
}

.search-bar form {
    position: relative;
}

.search-bar input {
    width: 100%;
    padding: 1.125rem 4.5rem 1.125rem 1.75rem;
    border: 2px solid rgba(0, 0, 0, 0.08);
    border-radius: 60px;
    font-size: 1rem;
    font-family: var(--font-body);
    transition: var(--transition-base);
    background: white;
    box-shadow: var(--shadow-sm);
}

.search-bar input:focus {
    outline: none;
    border-color: var(--color-cyan);
    box-shadow: 0 0 0 4px rgba(0, 217, 192, 0.1), var(--shadow-md);
    transform: translateY(-2px);
}

.search-bar input::placeholder {
    color: var(--color-text-light);
}

.search-bar button {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    background: linear-gradient(135deg, var(--color-cyan) 0%, var(--color-primary) 100%);
    border: none;
    padding: 0.875rem 1.75rem;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition-base);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 217, 192, 0.3);
}

.search-bar button:hover {
    transform: translateY(-50%) scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 217, 192, 0.4);
}

.search-bar button:active {
    transform: translateY(-50%) scale(0.98);
}

/* Main content */
main {
    min-height: calc(100vh - 200px);
    padding: 0;
}

/* Footer - Modern Design */
footer {
    background: linear-gradient(135deg, #1a202c 0%, var(--color-primary) 100%);
    color: white;
    padding: 4rem 0 1.5rem;
    margin-top: 0;
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--color-cyan), transparent);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-section h3 {
    color: var(--color-cyan);
    font-size: 1.125rem;
    margin-bottom: 1.25rem;
    font-weight: 700;
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.9375rem;
    line-height: 1.8;
    margin-bottom: 0.75rem;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.9375rem;
    line-height: 1.8;
    transition: var(--transition-base);
    display: inline-block;
}

.footer-section a:hover {
    color: var(--color-cyan);
    transform: translateX(3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
}

.footer-bottom p {
    margin: 0.5rem 0;
}

/* Section */
section {
    padding: clamp(3rem, 8vw, 5rem) 0;
}

section.bg-light {
    background: var(--color-light-gray);
}

/* Grid kategorii - Modern Design */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 500px), 1fr));
    gap: 2.5rem;
    margin: 0;
    padding: 1rem 0;
}

.category-card {
    background: white;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08), 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    height: 480px;
    display: block;
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.category-card:hover {
    transform: translateY(-16px) scale(1.02);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.15), 0 12px 24px rgba(0, 0, 0, 0.1);
    border-color: rgba(0, 217, 192, 0.2);
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg,
        rgba(0,0,0,0) 0%,
        rgba(0,0,0,0.3) 40%,
        rgba(0,0,0,0.85) 100%);
    z-index: 1;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.category-card:hover::before {
    background: linear-gradient(180deg,
        rgba(0,0,0,0) 0%,
        rgba(0,0,0,0.4) 30%,
        rgba(0,0,0,0.92) 100%);
}

/* Accent border on hover */
.category-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 24px;
    border: 3px solid transparent;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 3;
    pointer-events: none;
}

.category-card:hover::after {
    border-color: rgba(0, 217, 192, 0.4);
}

.category-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    filter: brightness(0.95) contrast(1.05);
}

.category-card:hover img {
    transform: scale(1.1);
    filter: brightness(1) contrast(1.1);
}

.category-card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 3rem;
    z-index: 2;
    color: white;
    transform: translateY(0);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.category-card:hover .category-card-content {
    transform: translateY(-12px);
    padding-bottom: 3.5rem;
}

.category-card h2 {
    margin: 0 0 1rem 0;
    font-size: clamp(1.625rem, 3.5vw, 2.25rem);
    color: white;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: -0.02em;
    line-height: 1.15;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
    position: relative;
    padding-bottom: 0.75rem;
}

/* Accent underline */
.category-card h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--color-cyan), var(--color-accent));
    border-radius: 2px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.category-card:hover h2::after {
    width: 100px;
    background: linear-gradient(90deg, var(--color-cyan), var(--color-accent), var(--color-cyan));
}

.category-card p {
    color: rgba(255, 255, 255, 0.95);
    margin: 0;
    font-size: 1rem;
    line-height: 1.7;
    opacity: 0.85;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
    font-weight: 400;
}

.category-card:hover p {
    opacity: 1;
    transform: translateY(-4px);
}

/* Lista szkoleń - Modern Design */
.training-list {
    margin: 3rem 0;
    display: grid;
    gap: 1.5rem;
}

.training-item {
    background: white;
    border-left: 4px solid var(--color-accent);
    padding: 0;
    margin-bottom: 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition-base);
}

.training-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
    border-left-color: var(--color-cyan);
}

.training-title {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-cyan) 100%);
    color: white;
    padding: 1.25rem 1.75rem;
    margin: 0;
    font-size: 1.25rem;
    font-weight: 700;
    font-family: var(--font-heading);
}

.training-title a {
    color: white;
    transition: var(--transition-base);
}

.training-title a:hover {
    color: var(--color-accent);
}

.training-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.25rem;
    padding: 1.75rem;
}

.training-detail {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9375rem;
}

.training-detail strong {
    color: var(--color-primary);
    font-weight: 600;
}

/* Lista artykułów - Modern Design */
.articles-list {
    display: grid;
    gap: 2rem;
    margin: 3rem 0;
}

.article-card {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 0;
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition-base);
}

.article-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
}

.article-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.article-card:hover img {
    transform: scale(1.05);
}

.article-card-content {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.article-card h2 {
    margin-top: 0;
    margin-bottom: 0.75rem;
    font-size: clamp(1.25rem, 2.5vw, 1.5rem);
}

.article-meta {
    color: var(--color-text-light);
    font-size: 0.875rem;
    margin-top: 0.75rem;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Pojedynczy artykuł - Modern Design */
.article-header {
    margin-bottom: 3rem;
    text-align: center;
}

.article-image {
    width: 100%;
    max-height: 600px;
    object-fit: cover;
    border-radius: 20px;
    margin-bottom: 3rem;
    box-shadow: var(--shadow-lg);
}

.article-content {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.0625rem;
    line-height: 1.8;
}

.article-content h2,
.article-content h3 {
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}

.article-content p {
    margin-bottom: 1.5rem;
}

.author-box {
    display: flex;
    gap: 1.5rem;
    background: linear-gradient(135deg, var(--color-light-gray) 0%, white 100%);
    padding: 2rem;
    border-radius: 16px;
    margin: 3rem 0;
    border-left: 4px solid var(--color-cyan);
    box-shadow: var(--shadow-sm);
}

.author-image {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: var(--shadow-md);
}

.author-info h4 {
    margin-top: 0;
    margin-bottom: 0.5rem;
    color: var(--color-primary);
    font-family: var(--font-heading);
}

.author-info p {
    margin-bottom: 0;
    font-size: 0.9375rem;
    color: var(--color-text-light);
}

/* Badges & Labels */
.badge {
    display: inline-block;
    padding: 0.375rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 50px;
    line-height: 1;
}

.badge-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
}

.badge-secondary {
    background: #e5e7eb;
    color: #6b7280;
}

.badge-primary {
    background: linear-gradient(135deg, var(--color-cyan) 0%, var(--color-primary) 100%);
    color: white;
}

.badge-warning {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
}

/* Cards */
.card {
    background: white;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    overflow: hidden;
    transition: var(--transition-base);
}

.card:hover {
    box-shadow: var(--shadow-lg);
}

.card-header {
    padding: 1.5rem 2rem;
    background: linear-gradient(135deg, var(--color-light-gray) 0%, white 100%);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.card-body {
    padding: 2rem;
}

.card-footer {
    padding: 1.5rem 2rem;
    background: var(--color-light-gray);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

/* Alerts */
.alert {
    padding: 1.25rem 1.5rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    border-left: 4px solid;
    font-size: 0.9375rem;
}

.alert-success {
    background: #d1fae5;
    border-left-color: #10b981;
    color: #065f46;
}

.alert-danger {
    background: #fee2e2;
    border-left-color: #ef4444;
    color: #991b1b;
}

.alert-warning {
    background: #fef3c7;
    border-left-color: #f59e0b;
    color: #92400e;
}

.alert-info {
    background: #dbeafe;
    border-left-color: #3b82f6;
    color: #1e40af;
}

/* SVG Icons - Flat Design */
svg {
    display: inline-block;
    vertical-align: middle;
}

.icon {
    width: 1.25rem;
    height: 1.25rem;
    fill: currentColor;
    transition: var(--transition-base);
}

.icon-lg {
    width: 2rem;
    height: 2rem;
}

.icon-xl {
    width: 3rem;
    height: 3rem;
}

.icon-primary {
    color: var(--color-primary);
}

.icon-secondary {
    color: var(--color-secondary);
}

.icon-accent {
    color: var(--color-accent);
}

.icon-cyan {
    color: var(--color-cyan);
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mt-5 { margin-top: 3rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mb-5 { margin-bottom: 3rem; }

.p-1 { padding: 0.5rem; }
.p-2 { padding: 1rem; }
.p-3 { padding: 1.5rem; }
.p-4 { padding: 2rem; }
.p-5 { padding: 3rem; }

.d-flex {
    display: flex;
}

.flex-column {
    flex-direction: column;
}

.align-items-center {
    align-items: center;
}

.justify-content-center {
    justify-content: center;
}

.justify-content-between {
    justify-content: space-between;
}

.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }
.gap-4 { gap: 2rem; }

/* Animations */
@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 1000px 100%;
    animation: shimmer 2s infinite;
    border-radius: 8px;
}

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

.slide-in-left {
    animation: slideInLeft 0.6s ease-out;
}

.slide-in-right {
    animation: slideInRight 0.6s ease-out;
}

/* Stagger animations for lists */
.category-card:nth-child(1) {
    animation: fadeInUp 0.6s ease-out 0.1s both;
}

.category-card:nth-child(2) {
    animation: fadeInUp 0.6s ease-out 0.2s both;
}

.category-card:nth-child(3) {
    animation: fadeInUp 0.6s ease-out 0.3s both;
}

.category-card:nth-child(4) {
    animation: fadeInUp 0.6s ease-out 0.4s both;
}

/* Smooth Transitions */
* {
    transition-property: background-color, border-color, color, fill, stroke, opacity, box-shadow, transform;
    transition-duration: 0.3s;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

/* Focus States */
*:focus {
    outline: 2px solid var(--color-cyan);
    outline-offset: 2px;
}

button:focus,
a:focus,
input:focus,
textarea:focus,
select:focus {
    outline: 2px solid var(--color-cyan);
    outline-offset: 2px;
}

/* Responsywność - Mobile First */
@media (max-width: 1024px) {
    .categories-grid {
        gap: 1.75rem;
    }

    .category-card {
        height: 420px;
        border-radius: 20px;
    }

    .category-card-content {
        padding: 2.5rem;
    }

    .category-card h2 {
        font-size: clamp(1.5rem, 3vw, 2rem);
    }
}

@media (max-width: 768px) {
    .header-top {
        padding: 0.75rem 0;
    }

    .header-content {
        padding: 0.75rem 0;
    }

    .logo {
        height: 40px;
    }

    .header-contact {
        display: none;
    }

    nav ul {
        flex-direction: column;
        gap: 0;
    }

    nav a {
        padding: 0.875rem 1rem;
        text-align: center;
        font-size: 0.75rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    nav a::before {
        display: none;
    }

    .hero {
        padding: 2.5rem 0;
    }

    .categories-grid {
        gap: 1.25rem;
    }

    .category-card {
        height: 380px;
        border-radius: 18px;
    }

    .category-card-content {
        padding: 2rem;
    }

    .category-card h2 {
        font-size: clamp(1.375rem, 3vw, 1.75rem);
        padding-bottom: 0.5rem;
    }

    .category-card h2::after {
        width: 50px;
        height: 3px;
    }

    .category-card:hover h2::after {
        width: 80px;
    }

    .category-card p {
        font-size: 0.9375rem;
    }

    .article-card {
        grid-template-columns: 1fr;
    }

    .article-card-content {
        padding: 1.5rem;
    }

    .training-details {
        grid-template-columns: 1fr;
    }

    .author-box {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem;
    }

    .author-image {
        margin: 0 auto;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .btn {
        width: 100%;
        max-width: 320px;
        padding: 1rem 1.5rem;
    }

    .btn-group {
        flex-direction: column;
        align-items: center;
        width: 100%;
    }

    .search-bar {
        margin-top: 1.5rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }

    .logo {
        height: 36px;
    }

    nav a {
        padding: 0.75rem 0.875rem;
        font-size: 0.6875rem;
    }

    .hero {
        padding: 2rem 0;
    }

    .category-card {
        height: 320px;
        border-radius: 16px;
    }

    .category-card-content {
        padding: 1.75rem;
    }

    .category-card h2 {
        font-size: 1.375rem;
        padding-bottom: 0.5rem;
    }

    .category-card h2::after {
        width: 40px;
        height: 3px;
    }

    .category-card:hover h2::after {
        width: 60px;
    }

    .category-card p {
        font-size: 0.875rem;
        line-height: 1.6;
    }

    .search-bar input {
        padding: 0.875rem 3.5rem 0.875rem 1.25rem;
        font-size: 0.875rem;
    }

    .search-bar button {
        padding: 0.625rem 1rem;
        right: 4px;
    }

    .btn {
        font-size: 0.8125rem;
        padding: 0.875rem 1.25rem;
    }

    .article-card-content {
        padding: 1.25rem;
    }

    .footer-content {
        gap: 1.5rem;
    }
}

/* Print Styles */
@media print {
    header,
    footer,
    .search-bar,
    .btn,
    nav {
        display: none;
    }

    body {
        font-size: 12pt;
        line-height: 1.5;
        color: #000;
    }

    a {
        text-decoration: underline;
        color: #000;
    }

    .category-card,
    .article-card,
    .training-item {
        page-break-inside: avoid;
    }
}

