* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background-color: var(--white);
    color: var(--text);
    line-height: 1.5;
}

:root {
    --primary: #2e7d32;
    --primary-dark: #1b5e20;
    --primary-light: #4caf50;
    --accent: #ff6f00;
    --accent-light: #ff9800;
    --text: #333333;
    --text-light: #666666;
    --bg: #fafafa;
    --white: #ffffff;
    --shadow: 0 4px 20px rgba(0,0,0,0.08);
    --shadow-hover: 0 8px 30px rgba(0,0,0,0.15);
    --radius: 12px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== HEADER ===== */
.main-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: linear-gradient(135deg, #9abb9b, #9abb9b);
    padding: 12px 20px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.2);
}
.header-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo a {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: white;
    font-weight: bold;
    font-size: 1.3rem;
}
.logo img {
    width: 257px;
    height: 90px;
}

/* ===== NAV ===== */
.navbar ul {
    display: flex;
    gap: 25px;
    list-style: none;
}
.navbar a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    padding: 8px 12px;
    border-radius: 30px;
    transition: var(--transition);
}
.navbar a:hover {
    background: rgba(255,255,255,0.2);
    transform: translateY(-2px);
}
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 28px;
    cursor: pointer;
}

/* ===== HERO ===== */
.hero {
    position: relative;
    min-height: 70vh;
    background: linear-gradient(135deg, #1a1a2e, #16213e, #0f3460);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    overflow: hidden;
}
.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.2s ease-in-out;
    z-index: 0;
}
.hero-slide.active {
    opacity: 1;
}
.hero .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0,0,0,0.6), rgba(0,0,0,0.4));
    z-index: 1;
}
.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1000px;
    padding: 40px 20px;
}
.badge {
    display: inline-block;
    background: #FF8E38;
    color: black;
    font-weight: bold;
    padding: 6px 16px;
    border-radius: 40px;
    font-size: 0.85rem;
    margin-bottom: 20px;
    animation: pulse 2s infinite;
}
@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.05); opacity: 0.9; }
    100% { transform: scale(1); opacity: 1; }
}
.hero h1 {
    font-size: clamp(2rem, 6vw, 3.8rem);
    margin-bottom: 20px;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.3);
}
.hero-sub {
    font-size: clamp(1rem, 3vw, 1.3rem);
    margin-bottom: 40px;
    opacity: 0.95;
}
.hero-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    margin-top: 30px;
}
.stat {
    text-align: center;
    font-weight: bold;
}
.stat-number {
    font-size: 1.8rem;
    color: var(--accent-light);
}

/* ===== SEKCJE ===== */
section {
    padding: 80px 20px;
    max-width: 1400px;
    margin: 0 auto;
}
.section-title {
    font-size: 2.2rem;
    text-align: center;
    margin-bottom: 50px;
    position: relative;
    display: inline-block;
    width: 100%;
}
.section-title:after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    margin: 15px auto 0;
    border-radius: 4px;
}

/* ===== ABOUT ===== */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}
.about-text p {
    margin-bottom: 20px;
}
.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 30px;
}
.feature {
    background: var(--bg);
    padding: 15px;
    border-radius: var(--radius);
    transition: var(--transition);
}
.feature:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow);
}
.about-img {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}
.about-img img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.4s;
}
.about-img:hover img {
    transform: scale(1.03);
}
.img-badge {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background: #FF8E38;
    color: black;
    padding: 6px 12px;
    border-radius: 30px;
    font-weight: bold;
}

/* ===== OFERTA ===== */
#oferta .category {
    margin-bottom: 42px;
    padding: 24px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(46, 125, 50, 0.08);
    box-shadow: var(--shadow);
    backdrop-filter: blur(6px);
}
#oferta .category h3 {
    font-size: 1.75rem;
    margin-bottom: 22px;
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
    color: var(--primary-dark);
}
#oferta .cat-badge {
    background: linear-gradient(135deg, var(--primary-light), #dff3e2);
    color: var(--primary-dark);
    padding: 5px 14px;
    border-radius: 999px;
    font-size: 0.78rem;
    letter-spacing: 0.02em;
}
#oferta .product-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(210px, 1fr));
    gap: 22px;
    align-items: stretch;
}
#oferta .product-card {
    background: linear-gradient(180deg, #ffffff 0%, #fbfbfb 100%);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
    transition: var(--transition);
    text-align: center;
    padding: 16px;
    border: 1px solid rgba(0, 0, 0, 0.04);
    display: flex;
    flex-direction: column;
    height: 100%;
}
#oferta .product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.12);
}
#oferta .product-card .img-wrapper {
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: 14px;
    position: relative;
    background: #eef4ee;
}
#oferta .product-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
    display: block;
}
#oferta .product-card:hover img {
    transform: scale(1.08);
}

/* ===== KATEGORIA LINK ===== */
.category-link {
    display: block;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}
.category-link .product-card {
    transition: var(--transition);
    cursor: pointer;
}
.category-link .product-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
}
.category-link:focus-visible {
    outline: 2px solid var(--primary-light);
    outline-offset: 4px;
    border-radius: var(--radius);
}

/* ===== FAQ ===== */
.faq-section {
    background: var(--white);
}
.faq-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}
.faq-column h3 {
    margin-bottom: 20px;
    font-size: 1.6rem;
}
.faq-item {
    background: var(--bg);
    margin-bottom: 15px;
    border-radius: 12px;
    padding: 0 15px;
    transition: 0.2s;
}
.faq-question {
    width: 100%;
    border: 0;
    background: transparent;
    color: inherit;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    font-weight: 700;
    text-align: left;
    cursor: pointer;
    font: inherit;
}
.faq-question span:first-child {
    flex: 1;
}
.faq-question:focus-visible {
    outline: 2px solid var(--primary-light);
    outline-offset: 4px;
    border-radius: 8px;
}
.arrow {
    transition: transform 0.3s;
    background: var(--primary-light);
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: black;
    font-size: 12px;
}
.faq-item.active .arrow {
    transform: rotate(180deg);
}
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    padding: 0;
}
.faq-item.active .faq-answer {
    max-height: 200px;
    padding-bottom: 16px;
}

/* ===== SŁOWNICZEK ===== */
.def-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}
.def-card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    overflow: hidden;
    border-top: 4px solid;
    border-image: linear-gradient(90deg, var(--primary), var(--accent));
    border-image-slice: 1;
}
.def-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}
.def-card .def-header {
    padding: 20px 20px 0;
    display: flex;
    align-items: center;
    gap: 12px;
}
.def-term {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-dark);
}
.def-card p {
    padding: 15px 20px;
    color: var(--text-light);
    font-size: 0.9rem;
}

/* ===== KONTAKT ===== */
.contact-section {
    background: linear-gradient(135deg, #1b5e20, #2e7d32);
    color: white;
    border-radius: 0;
}
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}
.contact-info .contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}
.contact-info a {
    color: white;
    text-decoration: underline;
}
.map-button-wrapper {
    text-align: center;
    margin-top: 15px;
}
.btn-map {
    display: inline-block;
    background-color: #08630c;
    color: #fff;
    padding: 12px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 2px 8px rgba(66, 133, 244, 0.3);
}
.btn-map:hover {
    background-color: #08630c;
    transform: scale(1.03);
}
.btn-map:active {
    transform: scale(0.97);
}

/* ===== PASEK JĘZYKÓW ===== */
.lang-footer {
    background: linear-gradient(135deg, #1b5e20, #2e7d32);
    padding: 20px;
    margin-top: 0;
}
.lang-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    max-width: 1400px;
    margin: 0 auto;
}
.lang-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(4px);
    border-radius: 40px;
    padding: 6px 12px;
    text-decoration: none;
    color: white;
    font-size: 11px;
    font-weight: 600;
    transition: var(--transition);
    min-width: 52px;
}
.lang-link img {
    width: 22px;
    height: 16px;
    object-fit: cover;
    border-radius: 3px;
    margin-bottom: 3px;
}
.lang-link:hover {
    background: white;
    color: var(--primary-dark);
    transform: translateY(-2px);
}

/* ===== FOOTER ===== */
.site-footer {
    background: #111827;
    color: rgba(255, 255, 255, 0.82);
}
.footer-main {
    padding: 36px 20px 28px;
}
.footer-main .container {
    max-width: 1400px;
    margin: 0 auto;
}
.footer-columns {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    align-items: start;
}
.footer-col {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    padding: 22px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}
.footer-col p {
    margin: 0;
    line-height: 1.75;
}
.footer-col p + p {
    margin-top: 0.75rem;
}
.site-footer a {
    color: #9de36a;
    text-decoration: none;
}
.site-footer a:hover {
    text-decoration: underline;
}
.footer-copyright {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}
.footer-copyright p {
    margin: 0.65rem 0;
    line-height: 1.7;
}
.copyright-main {
    color: rgba(255, 255, 255, 0.92);
}
.ai-meta {
    color: rgba(255, 255, 255, 0.68);
    font-size: 0.92rem;
}
.footer-copyright span {
    display: inline-block;
    margin: 0.25rem 0;
    color: #9de36a;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.78rem;
}

/* ===== FADE-IN ===== */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== MEDIA QUERIES ===== */
@media (min-width: 601px) {
    .lang-container {
        display: grid;
        grid-template-columns: repeat(13, auto);
        justify-content: center;
        gap: 8px;
    }
}

@media (max-width: 900px) {
    .about-grid,
    .faq-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }
    .features-grid {
        grid-template-columns: 1fr;
    }
    .footer-columns {
        grid-template-columns: 1fr;
    }
    section {
        padding: 50px 20px;
    }
}

@media (max-width: 700px) {
    .mobile-menu-btn {
        display: block;
    }
    .navbar {
        position: fixed;
        top: 65px;
        left: -100%;
        width: 80%;
        height: auto;
        max-height: calc(100vh - 80px);
        background: #1b5e20;
        transition: left 0.3s ease;
        z-index: 999;
        overflow-y: auto;
        padding-bottom: 10px;
    }
    .navbar.active {
        left: 0;
    }
    .navbar ul {
        flex-direction: column;
        padding: 30px;
        gap: 20px;
    }
    .navbar a {
        display: block;
        font-size: 1.2rem;
    }
}

@media (max-width: 600px) {
    #oferta .category {
        padding: 18px;
    }
    #oferta .product-grid {
        grid-template-columns: 1fr 1fr;
        gap: 14px;
    }
    #oferta .product-card {
        padding: 12px;
        border-radius: 16px;
    }
    .def-grid {
        grid-template-columns: 1fr;
    }
    .hero-stats {
        flex-direction: column;
        gap: 15px;
    }
    .footer-main {
        padding: 28px 14px 22px;
    }
    .footer-col {
        padding: 18px;
    }
    .lang-link {
        padding: 4px 8px;
        font-size: 9px;
        min-width: 44px;
    }
    .lang-link img {
        width: 18px;
        height: 13px;
    }
}

@media (max-width: 700px) {
    .fade-in {

        transform: translateY(20px);
        transition: opacity 0.5s ease, transform 0.5s ease;
    }
    .fade-in.visible {
        transform: translateY(0);
    }
}

.hero-slide img {
    will-change: transform;

}

.product-card {
    will-change: transform;
}