/* ==========================================================================
   Dane Otwarte GOV – menu, sekcja darmowego audytu i sekcja „Dla grup deweloperskich”.
   Kolory i elementy jak w panelu wtyczki (zieleń #0c9256, karty, pigułki statusu).
   ========================================================================== */

:root {
    --x-ink: #101c19;
    --x-muted: #5f6b66;
    --x-line: #e1e9e4;
    --x-g: #0c9256;
    --x-g-700: #0a7a48;
    --x-g-100: #e5f5e9;
    --x-g-50: #ebf7f0;
    --x-bg: #f7faf8;
    --x-warn: #9a5b00;
    --x-warn-bg: #fff6e5;
    --x-bad: #b42318;
    --x-bad-bg: #fdecea;
    --x-shadow: 0 1px 2px rgba(16, 28, 25, .04), 0 4px 16px rgba(16, 28, 25, .04);
}

html { scroll-behavior: smooth; }
body { overflow-x: hidden; }
section[id] { scroll-margin-top: 104px; }

/* ---------- Menu (pływający pasek jak w szablonie Metrivello) ---------- */

.site-nav {
    position: fixed;
    top: 20px;
    left: 20px;
    right: 20px;
    z-index: 60;
    font-family: 'Inter', 'Inter Fallback', Arial, sans-serif;
    background: #ffffff;
    border: 1px solid transparent;
    border-radius: 26px;
    transition: top .35s cubic-bezier(.22, 1, .36, 1), border-color .3s, box-shadow .3s;
}

.site-nav.is-scrolled {
    top: 16px;
    border-color: #e3ebe5;
    box-shadow: 0 8px 30px rgba(16, 28, 25, .06);
}

.site-nav-inner {
    position: relative;
    min-height: 67px;
    padding: 10px 10px 10px 24px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.site-nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--x-ink);
    font-size: 21px;
    font-weight: 500;
    letter-spacing: -.7px;
    text-decoration: none;
    white-space: nowrap;
}

.site-nav-brand img { width: 32px; height: 32px; }

/* Linki na środku paska */
.site-nav-links {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    gap: 14px;
}

.site-nav-links a {
    position: relative;
    padding: 0 0 3px;
    color: var(--x-ink);
    font-size: 13px;
    line-height: 19.5px;
    text-decoration: none;
    white-space: nowrap;
    transition: color .2s;
}

.site-nav-links a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 1.5px;
    background: var(--x-g);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .35s cubic-bezier(.22, 1, .36, 1);
}

.site-nav-links a:hover { color: var(--x-g); }
.site-nav-links a:hover::after { transform: scaleX(1); }

.site-nav-links .is-audit { color: var(--x-g); font-weight: 500; }

.site-nav-actions { margin-left: auto; display: flex; }

/* Przycisk-pigułka: zielone wypełnienie od dołu i przesuwająca się strzałka */
.nav-cta {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    height: 46px;
    padding: 0 22px;
    border-radius: 99px;
    background: var(--x-ink);
    color: #ffffff;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
}

.nav-cta::before {
    content: "";
    position: absolute;
    inset: auto 0 0 0;
    height: 0;
    z-index: -1;
    background: #129761;
    border-radius: 99px 99px 0 0;
    transition: height .45s cubic-bezier(.22, 1, .36, 1), border-radius .45s;
}

.nav-cta:hover::before { height: 100%; border-radius: 0; }

.nav-cta-arrow { position: relative; width: 16px; height: 16px; overflow: hidden; }

.nav-cta-arrow svg {
    position: absolute;
    inset: 0;
    width: 16px;
    height: 16px;
    transition: transform .45s cubic-bezier(.22, 1, .36, 1);
}

.nav-cta-arrow svg + svg { transform: translateX(-120%); }
.nav-cta:hover .nav-cta-arrow svg:first-child { transform: translateX(120%); }
.nav-cta:hover .nav-cta-arrow svg + svg { transform: translateX(0); }

.nav-cta:focus-visible { outline: 2px solid var(--x-g); outline-offset: 3px; }

.site-nav-toggle {
    display: none;
    position: relative;
    width: 44px;
    height: 44px;
    margin-left: 8px;
    border: 0;
    border-radius: 99px;
    background: #eef5ec;
    cursor: pointer;
}

.site-nav-toggle span,
.site-nav-toggle span::before,
.site-nav-toggle span::after {
    content: "";
    position: absolute;
    left: 50%;
    width: 16px;
    height: 1.6px;
    margin-left: -8px;
    border-radius: 2px;
    background: var(--x-ink);
    transition: transform .35s cubic-bezier(.22, 1, .36, 1), background .2s;
}

.site-nav-toggle span { top: 50%; }
.site-nav-toggle span::before { top: -5px; left: 0; margin: 0; }
.site-nav-toggle span::after { top: 5px; left: 0; margin: 0; }
.site-nav.is-open .site-nav-toggle span { background: transparent; }
.site-nav.is-open .site-nav-toggle span::before { transform: translateY(5px) rotate(45deg); }
.site-nav.is-open .site-nav-toggle span::after { transform: translateY(-5px) rotate(-45deg); }

/* Hero pod pływającym menu */
.header-main-section { padding-top: 144px; }

@media (max-width: 1180px) {
    .site-nav-links { gap: 12px; }
    .site-nav-links a { font-size: 12.5px; }
    .site-nav-brand { font-size: 19px; }
}

@media (max-width: 1040px) {
    .site-nav { top: 10px; left: 10px; right: 10px; border-radius: 22px; }
    .site-nav.is-scrolled { top: 10px; }
    .site-nav-inner { min-height: 58px; padding: 7px 7px 7px 16px; }
    .site-nav-brand { font-size: 18px; }
    .site-nav-brand img { width: 28px; height: 28px; }
    .site-nav-toggle { display: block; }
    .nav-cta { height: 44px; padding: 0 18px; }
    .site-nav-links {
        position: static;
        transform: none;
        order: 3;
        width: 100%;
        flex-direction: column;
        gap: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height .45s cubic-bezier(.22, 1, .36, 1), padding .45s;
    }
    .site-nav.is-open .site-nav-links { max-height: 520px; padding: 8px 9px 6px 0; }
    .site-nav-links a { padding: 12px 0; font-size: 16px; border-top: 1px solid #f0f4f1; }
    .site-nav-links a::after { display: none; }
    .header-main-section { padding-top: 100px; }
}

@media (max-width: 480px) {
    .nav-cta-label { display: none; }
    .nav-cta { width: 44px; padding: 0; justify-content: center; }
}

/* ---------- Darmowy audyt ---------- */

.audit-band {
    padding: 100px 20px;
    background: #ffffff;
    font-family: 'Inter', 'Inter Fallback', Arial, sans-serif;
}

.audit-band-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 56px;
    border-radius: 24px;
    background: var(--x-ink);
    color: #ffffff;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    gap: 56px;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.audit-band-inner::before {
    content: "";
    position: absolute;
    right: -160px;
    top: -200px;
    width: 520px;
    height: 520px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(12, 146, 86, .45), transparent 65%);
    pointer-events: none;
}

.audit-band-copy { position: relative; }

.audit-band .highlight-above-heading { color: #8fd3ae; }

.audit-band h2 { color: #ffffff; }

.audit-band-lead {
    margin-top: 20px;
    max-width: 460px;
    font-size: 16px;
    line-height: 26px;
    letter-spacing: -.3px;
    color: #c9d4cc;
}

.audit-band-form {
    margin-top: 28px;
    display: flex;
    gap: 8px;
    max-width: 520px;
    padding: 6px;
    border-radius: 14px;
    background: #ffffff;
}

.audit-band-form label {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 10px;
    color: #8a948f;
}

.audit-band-form svg { width: 18px; height: 18px; flex: none; }

.audit-band-form input {
    flex: 1;
    min-width: 0;
    height: 44px;
    border: 0;
    outline: 0;
    background: transparent;
    font: inherit;
    font-size: 15px;
    color: var(--x-ink);
}

.audit-band-form button {
    min-height: 44px;
    padding: 0 18px;
    border: 0;
    border-radius: 10px;
    background: var(--x-g);
    color: #ffffff;
    font: inherit;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    white-space: nowrap;
    transition: background .15s;
}

.audit-band-form button:hover { background: var(--x-g-700); }

.audit-band-points {
    margin-top: 22px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 20px;
    list-style: none;
    font-size: 13px;
    color: #c9d4cc;
}

.audit-band-points li { display: flex; align-items: center; gap: 8px; }
.audit-band-points li::before { content: "✓"; color: #8fd3ae; font-weight: 700; }

/* Makieta wyniku audytu – jak w aplikacji audytu i na pulpicie wtyczki */
.am {
    position: relative;
    border-radius: 16px;
    background: var(--x-bg);
    padding: 16px;
    color: var(--x-ink);
    font-size: 13px;
    line-height: 1.45;
    box-shadow: 0 30px 60px rgba(0, 0, 0, .35);
}

.am-top { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; font-weight: 700; color: var(--x-g); }
.am-top img { width: 22px; height: 22px; }
.am-top small { font-weight: 500; color: var(--x-muted); margin-left: auto; font-size: 11px; }

.am-row { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 10px; }

.am-signal {
    padding: 14px;
    border-radius: 12px;
    background: var(--x-warn-bg);
    border: 1px solid #f3dfb8;
}

.am-kicker { font-size: 10px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--x-warn); }
.am-signal b { display: block; margin-top: 6px; font-size: 16px; line-height: 1.25; font-weight: 600; letter-spacing: -.2px; }
.am-signal p { margin-top: 6px; font-size: 12px; color: #4a5752; }

.am-score {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 12px;
    border-radius: 12px;
    background: #ffffff;
    border: 1px solid var(--x-line);
}

.am-ring { position: relative; width: 84px; height: 84px; }
.am-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.am-ring span { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: 17px; letter-spacing: -.3px; }
.am-score small { font-size: 11px; color: var(--x-muted); }

.am-tests {
    margin-top: 10px;
    padding: 4px 14px;
    border-radius: 12px;
    background: #ffffff;
    border: 1px solid var(--x-line);
    list-style: none;
}

.am-tests li {
    display: grid;
    grid-template-columns: 22px minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    padding: 9px 0;
    border-bottom: 1px solid var(--x-line);
}

.am-tests li:last-child { border-bottom: 0; }
.am-tests em { font-style: normal; width: 22px; height: 22px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 10px; font-weight: 600; background: var(--x-g-100); color: var(--x-g-700); }
.am-tests .is-warn em { background: var(--x-warn-bg); color: var(--x-warn); }
.am-tests b { font-weight: 600; }
.am-tests span { display: block; font-size: 11px; color: var(--x-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.x-pill { display: inline-block; padding: 1px 8px; border-radius: 999px; font-size: 11px; font-weight: 600; line-height: 1.6; white-space: nowrap; background: var(--x-g-100); color: var(--x-g-700); }
.x-pill-warn { background: var(--x-warn-bg); color: var(--x-warn); }
.x-pill-muted { background: #f1f3f2; color: var(--x-muted); }

/* ---------- Dla grup deweloperskich ---------- */

.groups-section { padding: 100px 20px; background: #F1F5ED; font-family: 'Inter', 'Inter Fallback', Arial, sans-serif; }
.groups-wrap { max-width: 1200px; margin: 0 auto; }
.groups-head { max-width: 720px; margin: 0 auto; text-align: center; display: flex; flex-direction: column; align-items: center; }

.groups-grid {
    margin-top: 48px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.groups-card {
    display: flex;
    flex-direction: column;
    padding: 26px 26px 0;
    border-radius: 20px;
    background: #ffffff;
    overflow: hidden;
    min-height: 420px;
}

.groups-card h3 { font-size: 20px; line-height: 27px; font-weight: 600; letter-spacing: -.5px; color: var(--x-ink); }
.groups-card > p { margin-top: 10px; font-size: 15px; line-height: 23px; color: #3f4a46; letter-spacing: -.2px; }

/* mini-okno panelu w karcie */
.gm {
    margin-top: auto;
    margin-right: -26px;
    padding: 14px;
    border: 1px solid var(--x-line);
    border-bottom: 0;
    border-right: 0;
    border-radius: 14px 0 0 0;
    background: var(--x-bg);
    font-size: 12px;
    color: var(--x-ink);
    transform: translateY(12px);
    transition: transform .4s cubic-bezier(.22, 1, .36, 1);
}

.groups-card:hover .gm { transform: translateY(4px); }
.groups-card .gm { margin-top: 26px; }
.groups-card > p + .gm { margin-top: auto; }

.gm-title { display: block; margin-bottom: 8px; font-size: 10px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--x-muted); }

.gm-list { list-style: none; padding: 4px 12px; border-radius: 10px; background: #ffffff; border: 1px solid var(--x-line); }

.gm-list li {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 0;
    border-bottom: 1px solid var(--x-line);
}

.gm-list li:last-child { border-bottom: 0; }
.gm-list b { font-weight: 600; }
.gm-list .x-pill { margin-left: auto; }

.gm-dot { width: 8px; height: 8px; border-radius: 50%; flex: none; background: var(--x-g); box-shadow: 0 0 0 3px var(--x-g-50); }

.gm-field { padding: 10px 12px; border-radius: 10px; background: #ffffff; border: 1px solid var(--x-line); }
.gm-field label { display: block; font-size: 11px; color: var(--x-muted); }
.gm-field code { display: block; margin-top: 4px; padding: 6px 8px; border-radius: 8px; border: 1px solid #cfdad4; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11.5px; color: var(--x-ink); background: #ffffff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gm-field + .gm-field { margin-top: 8px; }
.gm-note { display: flex; align-items: center; gap: 6px; margin-top: 8px; font-size: 11px; color: var(--x-g-700); }

.gm-steps { list-style: none; display: grid; gap: 6px; }
.gm-steps li { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 10px; background: #ffffff; border: 1px solid var(--x-line); }
.gm-steps i { width: 20px; height: 20px; flex: none; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-style: normal; font-size: 10px; font-weight: 700; background: var(--x-g); color: #ffffff; }
.gm-steps span { margin-left: auto; font-size: 11px; color: var(--x-muted); }

/* ---------- Responsywność ---------- */

@media (max-width: 991px) {
    .audit-band-inner { grid-template-columns: minmax(0, 1fr); padding: 40px 28px; gap: 40px; }
    .groups-grid { grid-template-columns: minmax(0, 1fr); max-width: 560px; margin-left: auto; margin-right: auto; }
    .groups-card { min-height: 0; }
}

@media (max-width: 640px) {
    .audit-band, .groups-section { padding: 60px 16px; }
    .audit-band-inner { padding: 32px 20px; border-radius: 20px; }
    .audit-band-form { flex-direction: column; }
    .audit-band-form label { min-height: 44px; }
    .am-row { grid-template-columns: minmax(0, 1fr); }
    .am-score { flex-direction: row; justify-content: flex-start; gap: 14px; }
    .am-ring { width: 64px; height: 64px; }
    .am-ring span { font-size: 14px; }
    .groups-grid { margin-top: 32px; gap: 14px; }
    .groups-card { padding: 22px 22px 0; }
    .gm { margin-right: -22px; }
}

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

/* Stopka: znak na jasnym tle */
.site-footer-logo { background: #ffffff; }
.site-footer-logo img { width: 28px; height: 28px; }

/* Sekcje „feat”: bez przewijania w poziomie przy wąskich ekranach */
.feat { overflow-x: clip; }

/* Sekcja „Działa z tym, czego już używasz”: logo z biblioteki Simple Icons, a gdy się nie wczyta – ikona zastępcza */
.tools-logo { color: #087443; background: #ffffff; }
.tools-logo .tools-gen { width: 24px; height: 24px; }
.tools-logo.has-logo .tools-gen { display: none; }
.tools-logo img { width: 28px; height: 28px; }
.tools-logos { display: flex; gap: 8px; }
.tools-logo-xlsx { position: relative; color: #1d6f42; }
.tools-logo-xlsx::after { content: "XLSX"; position: absolute; right: -6px; bottom: -6px; padding: 1px 4px; border-radius: 4px; background: #1d6f42; color: #ffffff; font-family: 'Inter', 'Inter Fallback', Arial, sans-serif; font-size: 8px; font-weight: 700; letter-spacing: .04em; }

/* Zapewnienia pod przyciskami („Wdrożenie w cenie · Start w 24 h …”) */
.assure { margin: 16px 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; font-family: 'Inter', 'Inter Fallback', Arial, sans-serif; font-size: 13.5px; line-height: 20px; color: #3f4a46; }
.assure li { display: inline-flex; align-items: center; gap: 6px; }
.assure li::before { content: ""; flex: none; width: 16px; height: 16px; border-radius: 50%; background: #dcefe3 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.6 2.5L12 5.5' stroke='%23087443' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 11px no-repeat; }
.assure-left { justify-content: flex-start; }
.assure-hero { margin-top: 20px; color: #101c19; font-weight: 500; }
.hero-price { margin-top: 8px !important; }
.pricing-alert-tag { display: inline-block; margin-right: 8px; padding: 1px 7px; border-radius: 5px; background: #e0a100; color: #ffffff; font-size: 11px; font-weight: 700; letter-spacing: .6px; vertical-align: 1px; }

/* Tytuł w hero – szerszy, żeby mieścił się w dwóch liniach */
@media (min-width: 992px) { .header-main-section .heading-one-home { max-width: 1000px; } }
.hero-price { text-align: center; }

/* ===== Poprawki wizualne (PC) ===== */
/* Menu wyśrodkowane na szerokość sekcji */
.site-nav { left: 50%; right: auto; width: calc(100% - 40px); max-width: 1200px; transform: translateX(-50%); }
/* Opis w hero – szerszy, żeby mieścił się w 2 liniach */
@media (min-width: 992px) { .header-main-section .header-paragraph-home { max-width: 860px; } }
