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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Helvetica', 'Arial', sans-serif;
    line-height: 1.6;
    color: #0F172A;
    background-color: #ffffff;
}

/* Typografia */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Times New Roman', 'Georgia', serif;
    font-weight: 700;
    color: #0F172A;
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.5rem;
    color: #0F172A;
    margin-bottom: 1.5rem;
}

h2 {
    font-size: 2rem;
    margin-bottom: 1.2rem;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1rem;
    color: #475569;
}

/* Kolorystyka według wytycznych */
:root {
    --navy-blue: #0F172A;
    --gold: #B8860B;
    --light-gray: #F8FAFC;
    --gray: #64748B;
    --white: #ffffff;
    --accent: #1E293B;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background-color: var(--white);
    border-bottom: 3px solid var(--gold);
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.1);
    position: relative;
    z-index: 1000;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    height: 80px;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

/* Nawigacja */
.nav {
    display: flex;
    align-items: center;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: var(--navy-blue);
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
    border-radius: 4px;
}

.nav-link:hover {
    color: var(--gold);
    background-color: var(--light-gray);
}

/* Menu mobilne */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--navy-blue);
    cursor: pointer;
    padding: 0.5rem;
}

.menu-toggle:hover {
    color: var(--gold);
}

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

.page-title {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.page-title::after {
    content: '';
    display: block;
    width: 100px;
    height: 3px;
    background-color: var(--gold);
    margin: 1rem auto;
}

/* Sekcje */
.section {
    margin-bottom: 3rem;
}

.section-content {
    background-color: var(--white);
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(15, 23, 42, 0.05);
    border-left: 4px solid var(--gold);
}

/* Listy */
ul, ol {
    margin-left: 2rem;
    margin-bottom: 0;
}

li {
    margin-bottom: 0.5rem;
    color: #475569;
}

/* Tabele */
.table-container {
    overflow-x: auto;
    margin: 2rem 0;
}

table {
    width: 100%;
    border-collapse: collapse;
    background-color: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(15, 23, 42, 0.05);
}

th, td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #E2E8F0;
}

th {
    background-color: var(--navy-blue);
    color: var(--white);
    font-weight: 600;
}

tr:nth-child(even) {
    background-color: var(--light-gray);
}

tr:hover {
    background-color: #E2E8F0;
}

/* Formularz */
.form-container {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(15, 23, 42, 0.05);
    border-left: 4px solid var(--gold);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--navy-blue);
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #E2E8F0;
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--gold);
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
}

.form-button {
    background-color: var(--navy-blue);
    color: var(--white);
    padding: 1rem 2rem;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.form-button:hover {
    background-color: var(--accent);
    transform: translateY(-2px);
}

/* Sekcja sponsorów */
.sponsors-section {
    background-color: var(--light-gray);
    padding: 3rem 0;
    margin-top: 3rem;
}

.sponsors-title {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--navy-blue);
}

.sponsors-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.sponsor-logo {
    max-height: 80px;
    max-width: 200px;
    filter: grayscale(100%);
    transition: all 0.3s ease;
}

.sponsor-logo:hover {
    filter: grayscale(0%);
    transform: scale(1.05);
}

/* Footer */
.footer {
    background-color: var(--navy-blue);
    color: var(--white);
    padding: 2rem 0;
    margin-top: 3rem;
    border-top: 3px solid var(--gold);
}

.footer-content {
    text-align: center;
}

.footer p {
    color: #CBD5E1;
    margin-bottom: 0.5rem;
}

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

.footer-link {
    color: #CBD5E1;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: var(--gold);
}

/* Responsywność */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-list {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--white);
        border-top: 1px solid #E2E8F0;
        flex-direction: column;
        padding: 1rem 0;
        box-shadow: 0 4px 6px rgba(15, 23, 42, 0.1);
    }
    
    .nav-list.active {
        display: flex;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .container {
        padding: 0 15px;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .section-content {
        padding: 1.5rem;
    }
    
    .sponsors-grid {
        gap: 1rem;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 1rem;
    }
    
    .table-container {
        font-size: 0.9rem;
    }
    
    th, td {
        padding: 0.5rem;
    }
}

@media (max-width: 480px) {
    .logo {
        height: 50px;
    }
    
    .main {
        padding: 2rem 0;
    }
    
    h1 {
        font-size: 1.75rem;
    }
    
    .section-content {
        padding: 1rem;
    }
    
    .form-container {
        padding: 1.5rem;
    }
}

/* Animacje */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section-content {
    animation: fadeIn 0.6s ease-out;
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus states dla dostępności */
.nav-link:focus,
.form-input:focus,
.form-select:focus,
.form-textarea:focus,
.form-button:focus {
    outline: 2px solid var(--gold);
    outline-offset: 2px;
}
