/* =========================================
   1. CZCIONKI
========================================= */
@font-face {
    font-family: "Inter";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("fonts/inter-regular.woff2") format("woff2");
}

@font-face {
    font-family: "Inter";
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url("fonts/inter-600.woff2") format("woff2");
}

@font-face {
    font-family: "Playfair Display";
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url("fonts/playfair-600.woff2") format("woff2");
}

/* =========================================
   2. ZMIENNE I STYLE BAZOWE
========================================= */
:root {
    --navy: #0a2540;
    --blue: #1e3a8a;
    --light-blue: #4a90e2;
    --text: #334155;
    --muted: #64748b;
    --border: #e2e8f0;
    --surface: #f8fafc;
    --surface-strong: #f1f5f9;
    --white: #ffffff;
    --focus: #f59e0b;
    --header-offset: 120px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-width: 320px;
    font-family: "Inter", sans-serif;
    background-color: var(--white);
    color: var(--text);
    line-height: 1.65;
    text-rendering: optimizeLegibility;
}

h1,
h2,
h3,
h4 {
    margin-top: 0;
    font-family: "Playfair Display", serif;
    color: var(--navy);
    letter-spacing: 0.2px;
    line-height: 1.25;
}

p,
ul,
ol {
    margin-top: 0;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

a {
    color: var(--blue);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

button,
input,
textarea,
select {
    font: inherit;
}

#home,
#services,
#faq,
#contact,
.article-content h2,
.article-content h3,
.faq-item {
    scroll-margin-top: var(--header-offset);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
summary:focus-visible {
    outline: 3px solid var(--focus);
    outline-offset: 3px;
}

/* =========================================
   3. ELEMENTY WSPÓLNE
========================================= */
.container {
    width: min(1200px, calc(100% - 40px));
    margin: 80px auto;
}

.section-title {
    margin-bottom: 20px;
    text-align: center;
    color: var(--navy);
    font-size: clamp(2rem, 4vw, 2.5rem);
}

.section-subtitle {
    max-width: 680px;
    margin: 0 auto 40px;
    text-align: center;
    color: var(--muted);
}

.btn,
.submit-btn {
    display: inline-block;
    border: 0;
    border-radius: 5px;
    background-color: var(--navy);
    color: var(--white);
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.1s ease;
}

.btn {
    padding: 14px 35px;
    font-size: 1.05rem;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn:hover,
.submit-btn:hover {
    background-color: var(--blue);
    color: var(--white);
    text-decoration: none;
}

.btn:hover {
    transform: translateY(-1px);
}

/* =========================================
   4. NAGŁÓWEK I NAWIGACJA
========================================= */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: var(--navy);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: min(1200px, calc(100% - 40px));
    min-height: 95px;
    margin: 0 auto;
    gap: 30px;
}

.logo a {
    display: block;
}

.logo img {
    width: 220px;
    height: 75px;
    object-fit: contain;
}

.site-header nav ul {
    display: flex;
    align-items: center;
    gap: 30px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-header nav a {
    display: inline-block;
    padding: 10px 0;
    color: var(--white);
    font-size: 1rem;
    font-weight: 600;
    opacity: 0.92;
    transition: color 0.2s ease, opacity 0.2s ease;
}

.site-header nav a:hover,
.site-header nav a[aria-current="page"] {
    color: #93c5fd;
    text-decoration: none;
    opacity: 1;
}

/* =========================================
   5. STRONA GŁÓWNA
========================================= */
.hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: 120px 20px;
    background: linear-gradient(135deg, var(--blue) 0%, var(--light-blue) 100%);
    color: var(--white);
    text-align: center;
}

.hero::before {
    position: absolute;
    z-index: -2;
    inset: 0;
    background-image: url("../images/mapa.webp");
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    content: "";
}

.hero::after {
    position: absolute;
    z-index: -1;
    inset: 0;
    background: rgba(10, 37, 64, 0.44);
    content: "";
}

.hero-content {
    max-width: 850px;
    margin: 0 auto;
}

.hero h1 {
    margin-bottom: 25px;
    color: var(--white);
    font-size: clamp(2.3rem, 5vw, 3.2rem);
}

.hero p {
    max-width: 680px;
    margin: 0 auto 35px;
    color: #f8fafc;
    font-size: clamp(1.05rem, 2.5vw, 1.3rem);
}

.services-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 35px;
    margin-top: 50px;
}

.service-card {
    display: flex;
    flex: 1 1 350px;
    flex-direction: column;
    max-width: 500px;
    padding: 35px;
    border-top: 5px solid var(--navy);
    border-radius: 10px;
    background: var(--surface-strong);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.04);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 24px rgba(10, 37, 64, 0.08);
}

.service-card h3 {
    margin-bottom: 18px;
    font-size: 1.4rem;
}

.service-card p {
    margin-bottom: 18px;
    color: #475569;
    font-size: 1.03rem;
}

.service-card p a {
    color: var(--navy);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.service-card .btn {
    width: auto;
    margin-top: auto;
    padding: 10px 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--navy);
    font-size: 0.95rem;
    font-weight: 600;
    box-shadow: none;
    text-align: left;
}

.service-card .btn::after {
    content: " →";
}

.service-card .btn:hover {
    background: transparent;
    color: var(--blue);
    text-decoration: underline;
    transform: none;
}

/* =========================================
   6. KONTAKT I FORMULARZ
========================================= */
.contact-wrapper {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 50px;
    align-items: start;
    margin-top: 40px;
}

.agent-card {
    margin-top: 40px;
    margin-bottom: 20px;
    padding: 24px;
    border-left: 4px solid var(--light-blue);
    border-radius: 0 8px 8px 0;
    background: var(--white);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.agent-details p {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 10px;
}

.agent-details a[href*="wa.me"] {
    color: #168447;
    font-weight: 600;
}

.agent-details a[href*="wa.me"]:hover {
    text-decoration: underline;
}

.contact-section {
    padding: 40px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--white);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 7px;
    color: var(--text);
    font-weight: 600;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 13px;
    border: 1px solid #cbd5e1;
    border-radius: 5px;
    background: var(--white);
    color: var(--text);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--light-blue);
}

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

.submit-btn {
    width: 100%;
    padding: 14px;
}

.hidden-field {
    position: absolute !important;
    left: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

/* =========================================
   7. ARTYKUŁY I FAQ
========================================= */
.article-header {
    padding: 80px 20px;
    background: linear-gradient(135deg, var(--blue) 0%, var(--light-blue) 100%);
    color: var(--white);
    text-align: center;
}

.article-header h1 {
    max-width: 1000px;
    margin: 0 auto;
    color: var(--white);
    font-size: clamp(2rem, 4.5vw, 3rem);
}

.article-content {
    max-width: 840px;
    margin: 60px auto;
    padding: 0 20px;
}

.article-content p {
    margin-bottom: 20px;
}

.article-content h2 {
    margin-top: 44px;
    margin-bottom: 18px;
    font-size: clamp(1.65rem, 3vw, 2rem);
}

.article-content h3 {
    margin-top: 30px;
    margin-bottom: 14px;
}

.article-content ul,
.article-content ol {
    margin: 0 0 24px;
    padding-left: 28px;
}

.article-content li {
    margin-bottom: 10px;
}

.article-content a:not(.btn) {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.faq-item {
    padding: 15px 10px;
    border-bottom: 1px solid var(--border);
    background: var(--white);
}

.faq-item summary {
    cursor: pointer;
    color: var(--navy);
}

.faq-item[open] summary {
    margin-bottom: 10px;
}

/* =========================================
   8. STOPKA
========================================= */
.site-footer {
    margin-top: 100px;
    padding: 48px 20px 36px;
    background: var(--navy);
    color: #e2e8f0;
}

.footer-inner {
    width: min(900px, 100%);
    margin: 0 auto;
    text-align: center;
}

.footer-title {
    margin-bottom: 12px;
    color: var(--white);
    font-size: 1.15rem;
}

.site-footer p,
.site-footer address {
    margin: 0 0 10px;
    color: #cbd5e1;
    font-style: normal;
}

.site-footer a {
    color: #93c5fd;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.site-footer a:hover {
    color: var(--white);
}

.footer-bottom {
    width: min(900px, 100%);
    margin: 24px auto 0;
    padding-top: 20px;
    border-top: 1px solid rgba(226, 232, 240, 0.2);
    text-align: center;
}

.privacy-notice {
    display: block;
    margin-top: 10px;
    color: #cbd5e1;
    font-size: 0.9rem;
}

/* =========================================
   9. RESPONSYWNOŚĆ
========================================= */
@media (max-width: 768px) {
    :root {
        --header-offset: 155px;
    }

    .nav-container {
        flex-direction: column;
        justify-content: center;
        min-height: auto;
        padding: 12px 0 14px;
        gap: 8px;
    }

    .logo img {
        width: 176px;
        height: 60px;
    }

    .site-header nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 4px 18px;
    }

    .site-header nav a {
        padding: 7px 0;
        font-size: 0.95rem;
    }

    .hero {
        padding: 82px 20px;
    }

    .container {
        width: min(100% - 30px, 1200px);
        margin: 60px auto;
    }

    .services-grid {
        gap: 20px;
    }

    .service-card {
        flex-basis: 100%;
        padding: 26px 22px;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .contact-section {
        padding: 26px 20px;
    }

    .article-header {
        padding: 60px 20px;
    }

    .article-content {
        margin: 45px auto;
    }

    .footer-inner {
        text-align: center;
    }
}

@media (max-width: 420px) {
    .site-header nav ul {
        gap: 2px 14px;
    }

    .btn {
        width: 100%;
        padding-right: 18px;
        padding-left: 18px;
    }

    .hero h1 {
        font-size: 2rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}


/* Zwykły znak & w nazwie P&P wewnątrz ozdobnych nagłówków */
.brand-ampersand {
    font-family: "Inter", Arial, sans-serif;
    font-weight: 600;
    font-size: 0.88em;
    vertical-align: 0.03em;
    letter-spacing: 0;
}


