:root {
    --red: #dd2a1b;
    --red-dark: #b52316;
    --dark: #1a1a1a;
    --gray: #4a5568;
    --light: #f4f6f9;
    --white: #ffffff;
    --shadow: 0 4px 20px rgba(0,0,0,0.06);
    --shadow-hover: 0 12px 30px rgba(0,0,0,0.12);
    --radius: 12px;
    --transition: all 0.25s ease;
    --font-heading: 'Oswald', sans-serif;
    --font-body: 'Roboto', sans-serif;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--dark);
    background: #f9fafb;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeSpeed;
}

h1, h2, h3 {
    font-family: var(--font-heading);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--dark);
}

a {
    color: var(--red);
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: var(--transition);
}

a:hover {
    color: var(--red-dark);
    text-decoration-thickness: 2px;
}

.container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Przyciski z jawnym kontrastem */
.btn {
    display: inline-block;
    background: var(--red);
    color: #fff !important;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 700;
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-size: 1rem;
    text-decoration: none !important;
}

.btn:hover {
    background: var(--red-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(221,42,27,0.3);
}

/* ---------- PASEK JĘZYKOWY ---------- */
.lang-nav {
    background: #1a1a1a;
    padding: 8px 0;
    text-align: center;
    border-bottom: 2px solid var(--red);
}

.lang-nav ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    padding: 0;
}

.lang-nav a {
    color: #ddd;
    font-size: 0.8rem;
    font-weight: 600;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 4px 8px;
    border-radius: 6px;
    transition: var(--transition);
    text-decoration: none;
}

.lang-nav a.active,
.lang-nav a:hover {
    color: #fff;
    background: var(--red);
}

.lang-nav img {
    width: 18px;
    height: 12px;
    border-radius: 2px;
    border: 0;
}

/* ==========================================
   HEADER - wersja desktop (3 loga)
   ========================================== */
.headercontainer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1320px;
    margin: 20px auto;
    padding: 0 24px;
    flex-wrap: wrap;
    gap: 20px;
}

.headercontainer div {
    flex: 1;
    display: flex;
    align-items: center;
}

.headercontainer div:first-child {
    justify-content: flex-start;
}

.headercontainer div:last-child {
    justify-content: flex-end;
}

.headercontainer img {
    max-height: 80px;
    width: auto;
    height: auto;
}

.logo-center {
    text-align: center;
    flex: 2 !important;
    justify-content: center !important;
}

.logo-center img {
    max-height: 100px;
}

/* ==========================================
   MOBILE - tylko centralne logo
   ========================================== */
.mobile-logo {
    display: none !important;
}

@media screen and (max-width: 768px) {
    /* ukryj stare 3 logotypy */
    .headercontainer {
        display: none !important;
    }

    /* pokaż pojedyncze logo */
    .mobile-logo {
        display: flex !important;
        justify-content: center;
        align-items: center;
        padding: 15px 10px;
        background: #ffffff;
        border-bottom: 2px solid var(--red);
    }

    .mobile-logo img {
        display: block;
        width: 370px;
        max-width: 100%;
        height: 34px;
        object-fit: contain;
    }

    /* Poprawa nawigacji na mobile */
    .nav-links {
        gap: 12px;
    }

    .nav-links a {
        font-size: 0.9rem;
        padding: 6px 10px;
    }
}

/* ---------- SLIDER ---------- */
.slidercontainer {
    width: 100%;
    max-width: 1320px;
    margin: 0 auto 30px;
    padding: 0 24px;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    background: #e9ecef;
}

.slidercontainer img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: var(--radius);
    aspect-ratio: 16/9;
    object-fit: cover;
}

/* ---------- NAWIGACJA ---------- */
.main-navbar {
    background: var(--white);
    box-shadow: 0 2px 20px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 14px 0;
}

.nav-flex {
    display: flex;
    justify-content: center;
}

.nav-links {
    display: flex;
    gap: 28px;
    flex-wrap: wrap;
    list-style: none;
    padding: 0;
}

.nav-links a {
    font-weight: 600;
    color: var(--dark);
    font-size: 1.05rem;
    position: relative;
    padding-bottom: 4px;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--red);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--red);
    border-radius: 2px;
    transition: width 0.3s;
}

.nav-links a:hover::after {
    width: 100%;
}

/* ---------- SEKCJE ---------- */
section {
    padding: 70px 0;
}

.bg-light {
    background: var(--light);
}

.bg-white {
    background: var(--white);
}

.section-title {
    text-align: center;
    font-size: 2.4rem;
    margin-bottom: 12px;
    position: relative;
    color: #1a1a1a;
}

.section-title::after {
    content: '';
    display: block;
    width: 70px;
    height: 4px;
    background: var(--red);
    margin: 14px auto 0;
    border-radius: 2px;
}

/* ---------- PODTYTUŁ Z LEPSZYM KONTRASTEM ---------- */
.offer-subtitle {
    text-align: center;
    font-size: 1.15rem;
    color: #2d3748;
    font-weight: 500;
    letter-spacing: 0.3px;
}

/* ---------- ARTYKUŁ O FIRMIE ---------- */
.article-content {
    max-width: 900px;
    margin: 0 auto;
    background: #fff;
    padding: 40px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.article-content img.floating {
    float: left;
    margin: 0 20px 15px 0;
    border-radius: var(--radius);
    max-width: 280px;
    height: auto;
    box-shadow: var(--shadow);
}

.clearfix::after {
    content: "";
    display: table;
    clear: both;
}

/* ---------- OFERTA ---------- */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.product-card {
    background: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-align: center;
    border: 1px solid transparent;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
    border-color: var(--red);
}

.product-card .card-img {
    width: 100%;
    height: 220px;
    background: #f0f2f5;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 16px;
}

.product-card .card-img img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
    transition: transform 0.35s ease;
}

.product-card:hover .card-img img {
    transform: scale(1.06);
}

.product-card-content {
    padding: 20px 16px 22px;
}

.product-card-content h2 {
    font-size: 1.3rem;
    margin-bottom: 8px;
}

.product-card-content p {
    color: var(--gray);
    font-size: 0.95rem;
}

.badge {
    display: inline-block;
    background: var(--red);
    color: #fff;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    margin-top: 10px;
}

/* ---------- DEFINICJE ---------- */
.definitions-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    margin-top: 40px;
}

.def-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 30px 24px;
    box-shadow: var(--shadow);
    border-top: 5px solid var(--red);
    text-align: center;
    transition: var(--transition);
}

.def-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.def-icon {
    font-size: 2.4rem;
    color: var(--red);
    margin-bottom: 14px;
    opacity: 0.85;
}

.def-card h2 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    letter-spacing: 0.5px;
}

.def-card p {
    color: var(--gray);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ---------- FAQ ---------- */
.faq-list {
    max-width: 800px;
    margin: 40px auto 0;
}

.faq-item {
    background: #fff;
    border-radius: var(--radius);
    margin-bottom: 14px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.faq-question {
    padding: 18px 26px;
    font-weight: 700;
    font-size: 1.05rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #1a1a1a;
    background: #fff;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s;
    background: #fafafa;
    padding: 0 26px;
}

.faq-answer p {
    padding: 14px 0;
}

.faq-item.active .faq-answer {
    max-height: 250px;
}

/* ---------- KONTAKT ---------- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    background: #fff;
    border-radius: var(--radius);
    padding: 40px;
    box-shadow: var(--shadow);
    margin-top: 40px;
}

.contact-info p {
    margin-bottom: 10px;
    color: #2d3748;
}

.contact-info i {
    color: var(--red);
    width: 22px;
}

/* ---------- STOPKA: FLAGI ---------- */
.lang-section {
    background: #eef0f2;
    padding: 20px 0;
}

.lang-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    list-style: none;
    padding: 0;
}

.lang-item {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #fff;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: var(--transition);
    box-shadow: 0 2px 6px rgba(0,0,0,0.04);
    color: #333;
    text-decoration: none;
}

.lang-item:hover {
    background: var(--red);
    color: #fff;
}

.lang-item img {
    width: 40px;
    height: 20px;
    border-radius: 2px;
    border: 0;
    display: inline-block;
    object-fit: contain;
    aspect-ratio: 40 / 20;
}

/* ========== STOPKA GŁÓWNA ========== */
.site-footer {
    background: #1a1a1a;
    color: #ccc;
    width: 100%;
    border-top: 4px solid var(--red);
}

.footer-main {
    padding: 50px 0 30px;
    text-align: left;
}

.footer-columns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2.5rem;
    margin-bottom: 2.5rem;
}

.footer-col {
    color: #ccc;
    font-size: 0.9rem;
    line-height: 1.7;
}

.footer-col strong {
    color: #fff;
    display: block;
    margin-bottom: 0.8rem;
    font-size: 1rem;
}

.footer-col a {
    color: #ddd;
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: var(--transition);
}

.footer-col a:hover {
    color: var(--red);
}

.footer-copyright {
    border-top: 1px solid rgba(255,255,255,0.15);
    padding-top: 2rem;
    text-align: center;
    font-size: 0.85rem;
    color: #999;
    line-height: 1.7;
}

.footer-copyright .copyright-main {
    color: #fff;
    font-size: 1rem;
    margin-bottom: 0.8rem;
    line-height: 1.8;
}

.footer-copyright p {
    margin: 0.5rem 0;
}

.footer-copyright a {
    color: #fff;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.footer-copyright a:hover {
    color: var(--red);
}

.ai-meta {
    margin-top: 1rem;
    font-size: 0.8rem;
    color: #888;
}

/* ==========================================
   RESPONSYWNOŚĆ
   ========================================== */

@media (max-width: 992px) {
    .definitions-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .headercontainer {
        flex-direction: column;
    }

    .article-content {
        padding: 24px;
    }

    .article-content img.floating {
        float: none;
        display: block;
        margin: 0 auto 20px;
        max-width: 100%;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        padding: 24px;
    }

    .footer-columns {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-col {
        text-align: center;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 20px;
    }

    .product-card .card-img {
        height: 160px;
    }

    .lang-grid {
        gap: 6px;
    }

    .lang-item {
        font-size: 0.75rem;
        padding: 4px 10px;
    }

    .lang-item img {
        width: 30px;
        height: 15px;
    }
}

@media (max-width: 600px) {
    .definitions-grid {
        grid-template-columns: 1fr;
    }

    .container {
        padding: 0 16px;
    }

    section {
        padding: 40px 0;
    }

    .slidercontainer {
        padding: 0 16px;
    }

    .footer-main {
        padding: 30px 0 20px;
    }

    .footer-columns {
        gap: 1.5rem;
    }

    .nav-links {
        gap: 8px;
    }

    .nav-links a {
        font-size: 0.8rem;
        padding: 4px 8px;
    }

    .contact-grid {
        padding: 16px;
    }
}

/* ==========================================
   DOSTĘPNOŚĆ - preferencje ruchu
   ========================================== */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ==========================================
   FOCUS - widoczność dla klawiatury
   ========================================== */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 3px solid var(--red);
    outline-offset: 2px;
}

/* ==========================================
   SKIP LINK - pomijanie nawigacji
   ========================================== */
.skip-link {
    position: absolute;
    top: -100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--red);
    color: #fff !important;
    padding: 12px 24px;
    border-radius: 4px;
    z-index: 9999;
    text-decoration: none !important;
    font-weight: 600;
}

.skip-link:focus {
    top: 20px;
}