/* RESET + VARIABLES */
* { margin:0; padding:0; box-sizing:border-box; }

:root {
    --blue:#003087;
    --light:#E6F0FA;
    --text:#1A1A1A;
}

body {
    font-family: 'Roboto', sans-serif;
    background: var(--light);
}

/* CONTAINER */
.container {
    max-width: 1200px;
    margin: auto;
    padding: 0 20px;
}

/* HEADER */
.header {
    background: var(--blue);
    color:#fff;
    padding:15px 0;
}

.navbar {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    align-items: center;
}

/* LEWA */
.nav-menu {
    display: flex;
    gap: 25px;
    justify-content: flex-start;
    list-style: none;
}
/* ŚRODEK */
.logo {
    text-align: center;
}

.logo img {
    display: block;
    margin: 0 auto 10px;
}
.nav-menu a {
    color:#fff;
}
/* PRAWA */
.header-photo {
    display: flex;
    justify-content: flex-end;
}
.header-photo img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
}
/* HERO */
.hero {
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    min-height: 300px;
    padding: 40px 20px 45px;
    text-align: center;
    background-repeat: no-repeat;
    background-position: center center;

    background-size: auto 100%;
}
/* HERO TEXT */
.hero-content {
    max-width: 700px;
    position: relative;
    z-index: 2;

}
.hero h1 {
    font-size: 2rem;
    color: var(--blue);
    margin-bottom: 10px;
}

.hero p {
    font-size: 1.2rem;
    color: #000;
}

/* WARIANDY HERO DLA INDEX i PODSTRON */
.hero-home {
    background-image: url('index.png');
    background-color: #dfe5ee;
}

.hero-oferta {
    background-image: url('oferta.jpg');
    background-color: #dfe5ee;
}

.hero-kontakt {
    background-image: url('kontakt.jpg');
    background-color: #dfe5ee;
}
.hero-zycie {
    background-image: url('zycie.jpg');
    background-color: #dfe5ee;
}
.hero-turystyka {
    background-image: url('turystyka.jpg');
    background-color: #dfe5ee;
}
.hero-turystyka .hero-content {
    margin-bottom: 0;
    padding-bottom: 0;
}
.hero-dom {
    background-image: url('dom.jpg');
    background-color: #dfe5ee;

    padding-top: 160px;
    padding-bottom: 5px;
}
.hero-dom .hero-content {
    margin-bottom: 0;
    padding-bottom: 0;
}
.hero-oc {
    background-image: url('oc.jpg');
    background-color: #dfe5ee;

    padding-top: 160px;
    padding-bottom: 5px;
}
.hero-oc .hero-content {
    margin-bottom: 0;
    padding-bottom: 0;
}
.hero-medycyna {
    background-image: url('medycyna.jpg');
    background-color: #dfe5ee;

    padding-top: 160px;
    padding-bottom: 5px;
}
.hero-medycyna .hero-content {
    margin-bottom: 0;
    padding-bottom: 0;
}

.hero-home::before,
.hero-oferta::before,
.hero-zycie::before,
.hero-dom::before,
.hero-turystyka::before,
.hero-oc::before,
.hero-medycyna::before{
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,0.45);
}

/* =========================================
   O mnie
   ========================================= */
.about-hero {
    background: #dfe5ee;
    min-height: auto;
    padding: 70px 20px;
    display: flex;
    justify-content: center;
}

.about-hero-content {
    width: 100%;
    max-width: 1100px;

    display: flex;
    align-items: center;
    justify-content: center;

    gap: 60px;

    position: relative;
    z-index: 2;
}

.about-hero-text {
    flex: 1;
}

.about-hero-text h1 {
    font-size: 3rem;
    color: var(--blue);
    margin-bottom: 15px;
}

.about-hero-text h2 {
    font-size: 2rem;
    color: var(--blue);
    margin-bottom: 15px;
}

.about-hero-text p {
    font-size: 1.1rem;
    color: #333;
}

.about-hero-photo img {
    width: 320px;
    height: 420px;
    object-fit: contain;
    background: white;
    border-radius: 30px;
    border: 8px solid white;
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.about-hero h2 {
    font-size: 1.55rem;
    color: var(--blue);
    margin-bottom: 12px;
}

/* TIMELINE */

.about-timeline,
.why-me {
    max-width: 900px;
    margin: 0 auto;
    padding: 60px 20px;
}

.about-timeline h2,
.certificates h2,
.why-me h2,
.cta-section h2 {
    text-align: center;
    color: var(--blue);
    margin-bottom: 35px;
    font-size: 2rem;
}

.timeline {
    position: relative;
    border-left: 3px solid var(--blue);
    margin-left: 20px;
    padding-left: 30px;
}

.timeline-item {
    position: relative;
    margin-bottom: 36px;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -39px;
    top: 5px;
    width: 15px;
    height: 15px;
    background: white;
    border: 3px solid var(--blue);
    border-radius: 50%;
}

.timeline-year {
    color: #d4a94d;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.timeline-content {
    background: white;
    padding: 22px;
    border-radius: 14px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

.timeline-content h3 {
    color: var(--blue);
    margin-bottom: 8px;
}

.timeline-content p,
.cert-item p {
    color: #555;
}

/* CERTYFIKATY */

.certificates {
    padding: 60px 20px;
    background: white;
}

.cert-grid {
    display: grid;
    grid-template-columns:
        repeat(auto-fit, minmax(240px, 1fr));
    gap: 25px;
    max-width: 1000px;
    margin: 0 auto;
}

.cert-item {
    background: #eef3fa;
    padding: 30px;
    border-radius: 14px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
    text-align: center;
    border-top: 4px solid var(--blue);
}

.cert-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: white;
    font-size: 1.2rem;
}

.cert-icon.uniqa {
    background: var(--blue);
}

.cert-icon.knf {
    background: #e30613;
}

.cert-icon.piu {
    background: #222;
}

/* BENEFITY */

.benefits-list {
    list-style: none;
    display: grid;
    gap: 14px;
}

.benefits-list li {
    background: white;
    border-radius: 14px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
    padding: 18px 20px;
    color: #222;
}

.benefits-list li strong {
    color: var(--blue);
}

/* CTA */

.cta-section {
    text-align: center;
    padding: 60px 20px;
    background: white;
}

.cta-section p {
    margin-bottom: 24px;
}

/* KATEGORIE */
.blog-categories {
    text-align:center;
    padding:40px 20px;
}

.categories {
    display:flex;
    flex-wrap:wrap;
    justify-content:center;
    gap:15px;
}

.category-btn {
    padding: 12px 25px;

    background: #fff;
    border: 1px solid #ddd;
    border-radius: 50px;

    color: #333;
    text-decoration: none;

    transition: 0.3s;
}

.category-btn:hover {
    background: var(--blue);
    color: #fff;
}
/* TABLE */

.policies-grid {
    max-width: 1200px;
    margin: 60px auto;
    padding: 0 20px;
}

.policies-grid h2 {
    text-align: center;
    color: var(--blue);
    margin-bottom: 35px;
    font-size: 2rem;
}

.policies-table {
    background: #fff;
    border-radius: 20px;
    padding: 25px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.06);
    overflow-x: auto;
}

.policies-table table {
    width: 100%;
    border-collapse: collapse;
}

.policies-table th {
    background: #f3f6fb;
    color: var(--blue);
    font-weight: 700;
    padding: 18px 15px;
    text-align: center;
}

.policies-table td {
    padding: 18px 15px;
    border-bottom: 1px solid #e5e5e5;
    text-align: center;
}

.policies-table tbody tr:hover {
    background: #f8fbff;
}

.policies-table td:first-child {
    font-weight: bold;
    color: #222;
}

/* CTA - ostatnia stopka index*/
.cta-section h2 {
    margin-bottom: 20px;
}

.cta-section p {
    margin-bottom: 40px;
}

.cta-button {
    padding:12px 25px;
    background:var(--blue);
    color:#fff;
    border-radius:30px;
    display: inline-block;
}
.section-title {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 30px;
    color: var(--blue);
    position: relative;
}

/* ozdobna kreska */
.section-title::after {
    content: "";
    display: block;
    width: 80px;
    height: 4px;
    background: #d4a24c;
    margin: 15px auto 0;
    border-radius: 10px;
}
/* AKTUALNOŚCI - KAFELKI */

.blog-posts {
    max-width: 1200px;
    margin: 60px auto;
    padding: 0 20px;

    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

/* nagłówek sekcji */
.blog-posts > .section-title {
    grid-column: 1 / -1;
}

/* pojedynczy artykuł */
.blog-post {
    background: #fff;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    gap: 15px;
    transition: transform 0.2s ease;
}

.blog-post:hover {
    transform: translateY(-5px);
}

/* wyróżniony */
.blog-post.featured {
    border-left: 5px solid var(--blue);
    background: #f0f7ff;
}

/* meta */
.post-meta {
    display: flex;
    gap: 12px;

    font-size: 0.9rem;
    color: #777;
}

/* kategoria */
.post-meta .category {
    color: var(--blue);
    font-weight: bold;
}

/* tytuł */
.blog-post h2 {
    font-size: 1.3rem;
    color: #222;
    line-height: 1.4;
}

/* opis */
.blog-post p {
    color: #555;
    line-height: 1.6;
}

/* link */
.read-more {
    margin-top: auto;
    color: var(--blue);
    font-weight: bold;
}

/* cały kafelek klikalny */
.blog-post a {
    text-decoration: none;
    color: inherit;

    display: flex;
    flex-direction: column;
    gap: 15px;

    height: 100%;
}
/* KONTAKT */
.contact-grid {
    background: #dfe5ee;
    padding: 70px 20px;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.contact-card {
    max-width: 1000px;
    width: 100%;
    margin: 0 auto;
    background: white;
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.06);
}

.contact-card h2 {
    font-size: 2rem;
    color: var(--blue);
    margin-bottom: 25px;
}

.contact-link {
    display: block;
    font-size: 1.2rem;
    color: #222;
    text-decoration: none;
    margin-bottom: 20px;
    transition: 0.3s;
}

.contact-link:hover {
    color: var(--blue);
}

.contact-link strong {
    color: var(--blue);
    font-size: 1.5rem;
}

.agent-direct p {
    margin-top: 25px;
    color: #555;
    font-size: 1rem;
}

/* =========================================
   FORMULARZ KONTAKTOWY
   ========================================= */
.contact-form-section {
    background: #dfe5ee;

    padding: 20px 20px 80px;
}

.contact-form-section h2 {
    text-align: center;
    color: var(--blue);
    font-size: 2.2rem;
    margin-bottom: 40px;
}

.contact-form {
    max-width: 1000px;
    margin: 0 auto;
    background: white;
    padding: 45px;
    border-radius: 24px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.06);
}

.form-row {
    display: flex;
    gap: 25px;
    margin-bottom: 25px;
}

.form-group {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 700;
    color: var(--blue);
    margin-bottom: 10px;
    font-size: 1rem;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
    width: 100%;
    padding: 16px 18px;
    border: 1px solid #d8dce5;
    border-radius: 14px;
    font-size: 1rem;
    font-family: inherit;
    background: #f8fbff;
    transition: 0.3s;
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
    outline: none;
    border-color: var(--blue);
    background: white;
    box-shadow: 0 0 0 3px rgba(0,48,135,0.08);
}
.contact-form textarea {
    resize: vertical;
    min-height: 160px;
}
.contact-form button {
    margin-top: 20px;
    border: none;
    cursor: pointer;
    font-size: 1.05rem;
}

/* =========================================
               BACK BUTTON
   ========================================= */
.back-button{
    display:block;
    width:fit-content;
    margin:40px auto;
}

/* =========================================
               MOBILE
   ========================================= */
@media(max-width:768px){

    /* HEADER MOBILE */
   .navbar {
    display: flex;
    flex-direction: column;

    align-items: center;
    justify-content: center;

    gap: 15px;
    padding: 20px;
    }

    .nav-menu {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 18px;
    }
    
    .nav-menu a {
        font-size: 1.2rem;
    }
    
    /* LOGO */
    .logo img {
        width: 90px;
    }

    /* ZDJĘCIE */
    .header-photo {
        display: none;
    }

    /* HERO MOBILE */
    .hero {
        min-height: 220px;
        padding: 20px 15px 25px;
        background-size: cover;
        background-position: center;
    }
    .hero-home {
    background-size: cover;
    background-position: center;
    }

    .hero h1 {
        font-size: 2.2rem;
        line-height: 1.15;
        color: var(--blue);
    }
    
    .hero p {
        font-size: 1.1rem;
        color: #333;
    }

    /* KATEGORIE */
    .categories {
        flex-direction: column;
        align-items: center;
    }
    .category-btn {
        width: 90%;
        max-width: 320px;
        text-align: center;
    }
    
    /* BLOG */
    .blog-posts {
        grid-template-columns: 1fr;
    }
    .policies-table {
    overflow-x: auto;
    }
    
    /* O MNIE */
    .about-hero-content {
        flex-direction: column;
        text-align: center;
    }
    .about-hero-text h1 {
        font-size: 2.2rem;
    }
    .about-hero-text h2 {
        font-size: 1.5rem;
    }
    .about-hero-photo img {
        width: 220px;
        height: 300px;
    }
    .contact-form {
        padding: 25px;
    }

    .form-row {
        flex-direction: column;
        gap: 20px;
    }
    .contact-form-section h2 {
        font-size: 1.9rem;
    }
    .hero-zycie,
    .hero-dom,
    .hero-turystyka,
    .hero-oc,
    .hero-medycyna {
        background-size: auto 100%;
        background-position: center bottom;
    }
}
