/* Zmienne i Reset */
:root {
    --primary: #2a9d8f;
    --secondary: #264653;
    --accent: #e76f51;
    --light-bg: #f8f9fa;
    --white: #ffffff;
    --text-dark: #333333;
    --text-light: #6c757d;
    --border: #eeeeee;
    --shadow: 0 4px 15px rgba(0,0,0,0.05);
}

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

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--white);
}

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

/* Header */
.header {
    padding: 20px 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--secondary);
    font-weight: 700;
    font-size: 1.2rem;
}

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

.nav-list a {
    text-decoration: none;
    color: var(--text-dark);
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-list a:hover {
    color: var(--primary);
}

/* Ticker */
.ticker-bar {
    background: var(--light-bg);
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
}

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

.ticker-label {
    background: var(--secondary);
    color: white;
    padding: 4px 12px;
    font-size: 0.75rem;
    font-weight: bold;
    border-radius: 2px;
    flex-shrink: 0;
    z-index: 2;
}

.ticker-content {
    font-size: 0.85rem;
    color: var(--text-dark);
    height: 24px;
    overflow: hidden;
    position: relative;
    flex-grow: 1;
}

.ticker-slider {
    display: flex;
    flex-direction: column;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.ticker-item {
    height: 24px;
    line-height: 24px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Grid & Cards */
.main-content {
    padding: 40px 20px;
}

.featured-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    margin-bottom: 60px;
}

.card {
    background: var(--white);
    transition: transform 0.3s;
}

.card-img {
    position: relative;
    overflow: hidden;
}

.card-img img {
    width: 100%;
    display: block;
    transition: transform 0.5s;
}

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

.badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--accent);
    color: white;
    padding: 4px 8px;
    font-size: 0.65rem;
    font-weight: bold;
}

.card-body {
    padding: 20px 0;
}

.card-meta {
    font-size: 0.7rem;
    color: var(--text-light);
    margin: 10px 0;
    letter-spacing: 1px;
}

.card h2, .card h3 {
    margin-bottom: 10px;
    line-height: 1.3;
}

.card-text {
    font-size: 0.95rem;
    color: var(--text-light);
}

.card-mini {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
}

.card-mini img {
    width: 100px;
    height: 70px;
    object-fit: cover;
}

.badge-sm {
    color: var(--accent);
    font-size: 0.6rem;
    font-weight: bold;
    display: block;
}

.card-mini-info h3 {
    font-size: 0.9rem;
    margin: 5px 0;
}

.card-mini-info p {
    font-size: 0.7rem;
    color: var(--text-light);
}

.section-title {
    padding-bottom: 15px;
    margin-bottom: 30px;
    border-bottom: 2px solid var(--accent);
    display: inline-block;
}

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

/* Footer */
.footer {
    background: #111;
    color: white;
    padding: 60px 0 20px;
    margin-top: 60px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: bold;
}

.footer-links a {
    color: #ccc;
    text-decoration: none;
    margin-left: 20px;
    font-size: 0.85rem;
}

.footer-bottom {
    border-top: 1px solid #333;
    padding-top: 20px;
    font-size: 0.75rem;
    color: #777;
}

/* Cookie Modal */
.cookie-modal {
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 320px;
    background: var(--white);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    padding: 20px;
    border-radius: 8px;
    z-index: 1000;
    display: none;
    animation: slideUp 0.4s ease-out;
}

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

.cookie-content h3 {
    font-size: 1rem;
    margin-bottom: 10px;
}

.cookie-content p {
    font-size: 0.8rem;
    color: var(--text-light);
    margin-bottom: 15px;
}

.cookie-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.btn-primary {
    background: var(--primary);
    color: white;
    border: none;
    padding: 8px 16px;
    cursor: pointer;
    border-radius: 4px;
    font-size: 0.8rem;
}

.link-secondary {
    font-size: 0.8rem;
    color: var(--text-light);
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
    .featured-grid {
        grid-template-columns: 1fr;
    }
    
    .header-top {
        flex-direction: column;
        text-align: center;
    }

    .nav-list {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .cookie-modal {
        width: calc(100% - 40px);
        left: 20px;
    }

    .ticker-item {
        font-size: 0.75rem;
    }
}
.article-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 0;
}
.article-hero-img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 30px;
    display: block;
}
.article-content h1 {
    font-size: 2.5rem;
    color: var(--secondary);
    margin-bottom: 20px;
    line-height: 1.2;
}
.article-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-dark);
    margin-bottom: 20px;
}
.article-content div.highlight-box {
    background: var(--light-bg);
    padding: 20px;
    border-left: 4px solid var(--primary);
    margin: 30px 0;
    font-style: italic;
}
.article-content ul, .article-content ol {
    margin: 20px 0 20px 25px;
    color: var(--text-dark);
}
.article-content li {
    margin-bottom: 10px;
    padding-left: 5px;
}
.comments-section {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid var(--border);
}
.comments-title {
    font-size: 1.5rem;
    margin-bottom: 25px;
    color: var(--secondary);
}
.comment-form {
    display: grid;
    gap: 15px;
    background: var(--light-bg);
    padding: 30px;
    border-radius: 8px;
}
.form-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.form-group label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--secondary);
}
.form-group input, .form-group textarea {
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
}
.btn-submit {
    background: var(--primary);
    color: white;
    border: none;
    padding: 15px 25px;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s;
    width: fit-content;
}
.footer-disclaimer {
    font-size: 0.7rem;
    color: #888;
    line-height: 1.5;
    margin-bottom: 30px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    border-left: 3px solid var(--primary);
}
/* ===== KONTAKT PAGE ===== */

.page-contact {
    max-width: 760px;
    margin: 0 auto;
    padding: 40px 20px 60px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    line-height: 1.7;
    color: #2b2b2b;
}

.page-contact h1 {
    font-size: 34px;
    margin-bottom: 20px;
    font-weight: 600;
    color: #1f3c88;
}

.page-contact p {
    margin-bottom: 18px;
    font-size: 16px;
}

/* ===== FORM ===== */

.contact-form {
    margin-top: 30px;
    padding: 30px;
    background: #f7f9fc;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.04);
    border: 1px solid #e6ecf5;
}

.form-row {
    display: flex;
    flex-direction: column;
    margin-bottom: 22px;
}

.contact-form label {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #334155;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
    padding: 12px 14px;
    border-radius: 8px;
    border: 1px solid #cbd5e1;
    font-size: 15px;
    background: #ffffff;
    transition: all 0.2s ease;
    outline: none;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: #1f3c88;
    box-shadow: 0 0 0 3px rgba(31, 60, 136, 0.1);
}

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

/* ===== CHECKBOX ===== */

.form-consent {
    flex-direction: row;
    align-items: flex-start;
}

.form-consent input[type="checkbox"] {
    margin-right: 10px;
    margin-top: 4px;
    transform: scale(1.1);
}

.form-consent label {
    font-size: 13px;
    font-weight: 400;
    line-height: 1.5;
}

/* ===== BUTTON ===== */

.form-actions {
    margin-top: 10px;
}

.contact-form button {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 8px;
    border: none;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    background: #1f3c88;
    color: #ffffff;
    transition: all 0.2s ease;
}

.contact-form button:hover {
    background: #162f6b;
}

.contact-form button:active {
    transform: translateY(1px);
}

/* ===== RESPONSIVE ===== */

@media (max-width: 600px) {
    .contact-form {
        padding: 20px;
    }

    .page-contact h1 {
        font-size: 26px;
    }
}