/* =======================
   RESET & TYPOGRAPHY
   ======================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    background: #ffffff;
    color: #222;
    line-height: 1.6;
}

/* Kolor przewodni */
:root {
    --turkus: #0e6673;
    --turkus-dark: #08444d;
    --light: #f4f8f9;
}
/* ================================== */
/*   HEADER – LIGHT + DARK VERSIONS   */
/* ================================== */

.main-header {
    width: 100%;
    padding: 15px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
}

/* Light header */
.header-light {
    background: #ffffff;
    border-bottom: 1px solid #e5e5e5;
}

.header-light .main-nav a {
    color: #333;
}

.header-light .main-nav a:hover,
.header-light .main-nav .active {
    color: #d40000;
}

/* Dark header (Rotarex only) */
.header-dark {
    background: #0f0f0f;
}

.header-dark .main-nav a {
    color: #ffffff;
}

.header-dark .main-nav a:hover,
.header-dark .main-nav .active {
    color: #ff3333;
}

/* Shared nav styling */
.main-nav {
    display: flex;
    gap: 25px;
}

.main-nav a {
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s;
}

.logo-area img {
    height: 70px;
    width: auto;
}


/* =======================
   LANG BAR
   ======================= */
.lang-bar {
    width: 100%;
    text-align: right;
    background: var(--light);
    padding: 5px 20px;
    border-bottom: 1px solid #ddd;
}

.lang-bar a {
    margin-left: 10px;
    text-decoration: none;
    color: var(--turkus-dark);
    font-weight: 600;
}

.lang-bar .active-lang {
    color: #000;
    text-decoration: underline;
}

/* =======================
   HERO SECTIONS
   ======================= */
.hero-home,
.hero-rotarex,
.hero-naturhilfe,
.hero-contact,
.hero-dotacje {
    text-align: center;
    padding: 90px 20px;
    background: var(--light);
    border-bottom: 2px solid var(--turkus);
}

.hero-home h1,
.hero-rotarex h1,
.hero-naturhilfe h1,
.hero-contact h1,
.hero-dotacje h1 {
    font-size: 34px;
    font-weight: 700;
    color: var(--turkus-dark);
}

.hero-home p,
.hero-naturhilfe p,
.hero-contact p,
.hero-dotacje p {
    font-size: 18px;
    margin-top: 10px;
}

/* =======================
   HOME GRID
   ======================= */
.home-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
    gap: 25px;
    padding: 40px 20px;
}

.home-card {
    background: var(--light);
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    text-decoration: none;
    color: #000;
    border: 1px solid #ccc;
    transition: 0.3s;
}

.home-card img {
    width: 100%;
    border-radius: 8px;
}

.home-card:hover {
    transform: translateY(-4px);
    border-color: var(--turkus);
}

/* =======================
   ROTAREX GRID
   ======================= */
.rotarex-section {
    padding: 50px 20px;
}

.rotarex-title {
    text-align: center;
    font-size: 28px;
    margin-bottom: 30px;
    color: var(--turkus-dark);
}

.rotarex-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.product-card {
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    border: 1px solid #ccc;
    background: var(--light);
}

.product-card.dark {
    background: #e8f1f2;
}

.product-card img {
    width: 100%;
    border-radius: 8px;
}

.product-card h3 {
    margin-top: 15px;
    font-size: 20px;
    color: var(--turkus-dark);
}

/* =======================
   NATURHILFE GRID
   ======================= */
.natur-section {
    padding: 40px 20px;
}

.natur-title {
    text-align: center;
    font-size: 28px;
    color: var(--turkus-dark);
    margin-bottom: 10px;
}

.natur-subtitle {
    text-align: center;
    color: #444;
    margin-bottom: 40px;
}

.natur-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 25px;
}

.btn-light {
    display: inline-block;
    margin-top: 12px;
    padding: 8px 16px;
    background: var(--turkus);
    color: #fff;
    border-radius: 5px;
    text-decoration: none;
}

.btn-light:hover {
    background: var(--turkus-dark);
}

/* =======================
   MASECZKI
   ======================= */
.masks-section {
    padding: 50px 20px;
}

.masks-box {
    max-width: 900px;
    margin: auto;
    background: var(--light);
    padding: 30px;
    border-left: 4px solid var(--turkus);
    border-radius: 8px;
}

/* =======================
   KONTAKT
   ======================= */
.contact-section {
    padding: 40px 20px;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.contact-info h3 {
    margin-bottom: 10px;
    color: var(--turkus-dark);
}

.contact-form form input,
.contact-form form textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #bbb;
    border-radius: 6px;
}

.contact-form button {
    background: var(--turkus);
    color: #fff;
    padding: 12px 25px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: 0.3s;
}

.contact-form button:hover {
    background: var(--turkus-dark);
}

/* =======================
   DOTACJE
   ======================= */
.dotacje-banner {
    margin: 30px auto;
    max-width: 700px;
    text-align: center;
}

.dotacje-banner img {
    width: 160px;
    margin-bottom: 10px;
}

.dotacje-banner a {
    display: block;
    text-decoration: none;
    color: var(--turkus-dark);
    font-weight: 600;
}

.dotacje-logo img {
    width: 240px;
    display: block;
    margin: 25px auto;
}

/* =======================
   FOOTER
   ======================= */
.footer {
    margin-top: 50px;
    background: var(--turkus);
    color: white;
    text-align: center;
    padding: 15px;
    font-size: 14px;
}

/* =======================
   RESPONSYWNOŚĆ
   ======================= */
@media(max-width: 900px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

@media(max-width: 600px) {
    .main-nav a {
        margin: 0 6px;
        font-size: 14px;
    }
    .hero-home h1 {
        font-size: 26px;
    }
}

/* ===== MODAL OKNA ===== */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.6);
}

.modal-content {
    background: #fff;
    margin: 10% auto;
    padding: 20px;
    border-radius: 8px;
    width: 90%;
    max-width: 600px;
    border-left: 5px solid var(--turkus);
}

.close {
    float: right;
    font-size: 26px;
    cursor: pointer;
    color: var(--turkus-dark);
}
