/* ============================================
   PPUH EMAR – arkusz stylów
   Schemat 2: granat + stalowy + akcent czerwieni
   ============================================ */

:root {
    /* Główne kolory marki */
    --color-primary: #0F3460;        /* granat – główny kolor marki */
    --color-primary-dark: #0A2444;   /* ciemniejszy granat – hover */
    --color-primary-light: #E8EEF7;  /* delikatne tło granatowe */
    --color-blue: #1E78C2;           /* niebieski z logo – akcent */
    --color-red: #DC2626;            /* czerwień – wyłącznie dla CTA */
    --color-red-dark: #B91C1C;
    --color-steel: #64748B;          /* stalowy szary */

    /* Tekst i tła */
    --color-graphite: #1F2937;
    --color-text: #1F2937;
    --color-text-muted: #4B5563;
    --color-bg: #FFFFFF;
    --color-bg-alt: #F4F6FB;
    --color-border: #E5E7EB;

    /* Wymiary */
    --container: 1180px;
    --radius: 10px;
    --radius-lg: 16px;
    --shadow-sm: 0 1px 2px rgba(17, 24, 39, .06);
    --shadow-md: 0 6px 24px rgba(17, 24, 39, .08);
    --shadow-lg: 0 18px 40px rgba(17, 24, 39, .12);

    --font: 'Inter', system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

/* ---------- RESET ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: var(--font);
    color: var(--color-text);
    background: var(--color-bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--color-primary); text-decoration: none; }
a:hover { text-decoration: underline; }
ul { list-style: none; padding: 0; margin: 0; }

h1, h2, h3 { font-weight: 700; line-height: 1.2; margin: 0 0 .6em; color: var(--color-graphite); }
h1 { font-size: clamp(2rem, 4.5vw, 3.25rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); }
h3 { font-size: 1.15rem; }
p  { margin: 0 0 1em; color: var(--color-text-muted); }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 22px; }

.center { text-align: center; }

.eyebrow,
.section-eyebrow {
    display: inline-block;
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--color-primary);
    background: var(--color-primary-light);
    padding: 6px 12px;
    border-radius: 999px;
    margin-bottom: 16px;
}
.section-eyebrow.light {
    color: #93C5FD;
    background: rgba(147, 197, 253, .12);
}

/* ---------- HEADER ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, .92);
    backdrop-filter: saturate(140%) blur(8px);
    border-bottom: 1px solid var(--color-border);
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
    gap: 16px;
}
.logo {
    display: flex;
    align-items: center;
    gap: 14px;
    color: var(--color-graphite);
    text-decoration: none;
    line-height: 1;
}
.logo:hover { text-decoration: none; }
.logo-svg {
    width: 110px;
    height: auto;
    display: block;
}
.logo-tagline {
    display: block;
    padding-left: 14px;
    border-left: 2px solid var(--color-border);
    font-size: .72rem;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: .12em;
    line-height: 1.3;
    max-width: 110px;
}
@media (max-width: 520px) {
    .logo-tagline { display: none; }
    .logo-svg { width: 92px; }
}

.main-nav ul {
    display: flex;
    align-items: center;
    gap: 8px;
}
.main-nav a {
    color: var(--color-graphite);
    font-weight: 500;
    padding: 10px 14px;
    border-radius: 8px;
    transition: background .15s, color .15s;
}
.main-nav a:hover {
    background: var(--color-primary-light);
    color: var(--color-primary-dark);
    text-decoration: none;
}

.nav-toggle {
    display: none;
    background: transparent;
    border: 0;
    width: 44px;
    height: 44px;
    cursor: pointer;
    padding: 10px;
}
.nav-toggle span {
    display: block;
    height: 2px;
    background: var(--color-graphite);
    margin: 6px 0;
    border-radius: 2px;
    transition: transform .25s, opacity .25s;
}
.nav-toggle.is-open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- BUTTONS ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 22px;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: .98rem;
    border: 2px solid transparent;
    cursor: pointer;
    transition: transform .12s, background .15s, color .15s, border-color .15s, box-shadow .15s;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }

.btn-primary {
    background: var(--color-primary);
    color: #fff;
    box-shadow: 0 6px 14px rgba(15, 52, 96, .35);
}
.btn-primary:hover { background: var(--color-primary-dark); }

.btn-secondary {
    background: transparent;
    color: var(--color-graphite);
    border-color: var(--color-graphite);
}
.btn-secondary:hover { background: var(--color-graphite); color: #fff; }

.btn-cta-small {
    background: var(--color-red);
    color: #FFFFFF !important;
    font-weight: 700;
    padding: 10px 16px !important;
    border-radius: 8px;
}
.btn-cta-small:hover { background: var(--color-red-dark); }

/* ---------- HERO ---------- */
.hero {
    position: relative;
    background:
        radial-gradient(1200px 500px at 90% -10%, rgba(30, 120, 194, .10), transparent 60%),
        linear-gradient(180deg, #FFFFFF 0%, var(--color-bg-alt) 100%);
    padding: 80px 0 110px;
    overflow: hidden;
}
.hero-stripe {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 6px;
    background: linear-gradient(
        90deg,
        var(--color-primary) 0%,
        var(--color-primary) 70%,
        var(--color-red) 70%,
        var(--color-red) 100%
    );
}
.hero-inner {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 56px;
    align-items: center;
}
.hero-content { max-width: 100%; }
.hero-art {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}
.hero-image {
    width: 100%;
    max-width: 520px;
    height: auto;
    display: block;
    /* Miękkie wytłumienie krawędzi – obrazek płynnie znika ku brzegom */
    -webkit-mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, #000 55%, rgba(0,0,0,0.7) 75%, transparent 100%);
            mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, #000 55%, rgba(0,0,0,0.7) 75%, transparent 100%);
    animation: heroFloat 6s ease-in-out infinite;
}
@keyframes heroFloat {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-8px); }
}
@media (prefers-reduced-motion: reduce) {
    .hero-image { animation: none; }
}
.hero h1 .accent { color: var(--color-primary); }
.lead {
    font-size: 1.12rem;
    color: var(--color-text-muted);
    max-width: 640px;
}
.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 28px 0 32px;
}
.hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 22px;
    color: var(--color-text-muted);
    font-size: .95rem;
}
.hero-badges li { display: inline-flex; align-items: center; gap: 8px; }
.hero-badges span {
    width: 22px;
    height: 22px;
    display: inline-grid;
    place-items: center;
    border-radius: 50%;
    background: var(--color-primary-light);
    color: var(--color-primary);
    font-weight: 700;
    font-size: .8rem;
}

/* ---------- SECTIONS ---------- */
.section { padding: 84px 0; }
.section-alt { background: var(--color-bg-alt); }
.section-dark {
    background: var(--color-primary);
    color: #E5E7EB;
}
.section-dark h2 { color: #fff; }
.section-dark p { color: #CBD5E1; }
.section-intro { max-width: 720px; margin: 0 auto 48px; font-size: 1.05rem; }

.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: center;
}

/* ---------- O FIRMIE ---------- */
.stats {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}
.stat {
    display: flex;
    align-items: center;
    gap: 22px;
    padding: 22px 26px;
    background: #fff;
    border: 1px solid var(--color-border);
    border-left: 4px solid var(--color-primary);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}
.stat strong {
    font-size: 1.6rem;
    color: var(--color-primary);
    font-weight: 800;
    min-width: 60px;
}
.stat span { color: var(--color-text-muted); }

/* ---------- OFERTA – KARTY ---------- */
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
    margin-top: 12px;
}
.card {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 26px 24px;
    transition: transform .18s, box-shadow .18s, border-color .18s;
}
.card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--color-primary-light);
}
.card-icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background: var(--color-primary-light);
    color: var(--color-primary);
    display: grid;
    place-items: center;
    margin-bottom: 18px;
}
.card-icon svg { width: 26px; height: 26px; }
.card h3 { color: var(--color-graphite); margin-bottom: 6px; }
.card p { margin: 0; font-size: .95rem; }

.oferta-cta {
    margin-top: 40px;
    padding: 22px 24px;
    background: #fff;
    border: 1px dashed var(--color-primary);
    border-radius: var(--radius);
    color: var(--color-graphite);
    font-weight: 500;
}
.oferta-cta a { font-weight: 700; }

/* ---------- DLACZEGO MY ---------- */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 28px;
    margin-top: 24px;
}
.feature { padding: 4px 0; }
.feature-num {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--color-primary);
    line-height: 1;
    margin-bottom: 10px;
}
.feature h3 { margin-bottom: 6px; }
.feature p { font-size: .95rem; }

/* ---------- KONTAKT ---------- */
.lead-light { color: #CBD5E1; font-size: 1.05rem; max-width: 540px; }
.contact-list {
    display: grid;
    gap: 14px;
    margin-top: 26px;
}
.contact-list li {
    display: grid;
    grid-template-columns: 110px 1fr;
    align-items: baseline;
    gap: 16px;
    padding: 14px 0;
    border-bottom: 1px solid rgba(255, 255, 255, .12);
}
.contact-list li:last-child { border-bottom: 0; }
.contact-label {
    font-size: .78rem;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: #93C5FD;
    font-weight: 700;
}
.contact-list a {
    color: #fff;
    font-weight: 600;
    font-size: 1.1rem;
}
.contact-list a:hover { color: #93C5FD; text-decoration: none; }
.contact-list span:not(.contact-label) { color: #E5E7EB; }

.map-wrap {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    background: #fff;
    border: 4px solid var(--color-primary-dark);
}
.map-wrap iframe {
    width: 100%;
    height: 380px;
    border: 0;
    display: block;
}
.map-link {
    display: block;
    background: #fff;
    color: var(--color-graphite);
    padding: 12px 16px;
    text-align: right;
    font-size: .9rem;
    font-weight: 600;
}

/* ---------- FOOTER ---------- */
.site-footer {
    background: #0A2444;
    color: #9CA3AF;
    padding: 40px 0 28px;
    font-size: .92rem;
}
.footer-brand p { margin: 12px 0 0; color: #C7D2FE; }
.logo-svg--footer { width: 120px; margin-bottom: 4px; }
.footer-inner {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 28px;
    align-items: start;
}
.footer-links { display: flex; flex-direction: column; gap: 8px; }
.footer-links a { color: #C7D2FE; }
.footer-links a:hover { color: #FFFFFF; text-decoration: none; }
.footer-meta { text-align: right; }
.footer-meta p { margin: 0 0 6px; color: #93C5FD; }

/* ---------- BACK TO TOP ---------- */
.back-to-top {
    position: fixed;
    right: 22px;
    bottom: 22px;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--color-primary);
    color: #fff !important;
    display: grid;
    place-items: center;
    font-size: 1.4rem;
    font-weight: 700;
    box-shadow: var(--shadow-md);
    opacity: 0;
    transform: translateY(10px);
    pointer-events: none;
    transition: opacity .2s, transform .2s, background .15s;
    z-index: 40;
}
.back-to-top:hover { background: var(--color-primary-dark); text-decoration: none; }
.back-to-top.is-visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 860px) {
    .nav-toggle { display: block; }
    .main-nav {
        position: absolute;
        top: 72px;
        left: 0; right: 0;
        background: #fff;
        border-bottom: 1px solid var(--color-border);
        max-height: 0;
        overflow: hidden;
        transition: max-height .3s ease;
    }
    .main-nav.is-open { max-height: 480px; }
    .main-nav ul {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 12px 16px 18px;
    }
    .main-nav a {
        display: block;
        padding: 14px 12px;
        border-radius: 6px;
    }
    .btn-cta-small { text-align: center; }

    .two-col { grid-template-columns: 1fr; gap: 36px; }
    .footer-inner { grid-template-columns: 1fr; }
    .footer-meta { text-align: left; }
    .contact-list li { grid-template-columns: 1fr; gap: 4px; }

    .hero-inner { grid-template-columns: 1fr; gap: 24px; }
    .hero-art { order: -1; max-width: 360px; margin: 0 auto; }
    .hero-image { max-width: 360px; }

    .hero { padding: 56px 0 90px; }
    .section { padding: 60px 0; }
    .map-wrap iframe { height: 280px; }
}

@media (max-width: 480px) {
    .hero-actions { flex-direction: column; align-items: stretch; }
    .hero-actions .btn { justify-content: center; }
}
