/* Wspólna skala strony (porządek 27.11) — opis i zasady: docs/llm/styl.md.
   Wczytywany po style-orbis.css / website.css w layouts/site i layouts/website. */
:root {
    --section-y: 64px;          /* odstęp pionowy sekcji (desktop) */
    --h1: 4rem;
    --h2: 2.6rem;
    --h3: 1.8rem;
    --radius: 8px;
    --card-border: 1px solid #e2e8f0;
    --card-pad: 24px;
    --brand: #126691;
    --logo-h: 30px;             /* wszystkie rzędy logotypów */
}
@media (max-width: 767px) {
    :root { --section-y: 40px; --h1: 3rem; --h2: 2.2rem; --h3: 1.7rem; --card-pad: 18px; }
}

/* Sekcje: jedna skala odstępów, bez pustych pasów */
.home-section, .idd-section, .prc-section, .apb-section, .csd-section,
.methodology-section, .case-studies-section { padding: var(--section-y) 0; }

/* Nagłówki */
.hero-h1, .jumbotron .text-box h1 { font-size: var(--h1); line-height: 1.15; }
.sec-h2, .idd-h2, .prc-h2, .apb-h2, .csd-h2 { font-size: var(--h2); font-weight: 700; line-height: 1.25; letter-spacing: -0.3px; margin-bottom: 16px; }
.method-title, .idd-card h3, .prc-card h3, .apb-card h3, .etp-step h3 { font-size: var(--h3); }

/* Przyciski: główny i pomocniczy */
.btn-primary-color, .btn-hero-primary, .btn-cta-nav {
    background: var(--brand); color: #fff !important; border: 1px solid var(--brand);
    border-radius: 6px; padding: 10px 20px; font-weight: 600; display: inline-block;
}
.btn-primary-color:hover, .btn-hero-primary:hover, .btn-cta-nav:hover { background: #0e5274; border-color: #0e5274; }
.btn-outline-primary-color, .btn-hero-ghost, .btn-outline-brand {
    background: transparent; color: var(--brand) !important; border: 1px solid var(--brand);
    border-radius: 6px; padding: 10px 20px; font-weight: 600; display: inline-block;
}

/* Karty */
.idd-card, .prc-card, .apb-card, .method-card, .home-situations li {
    background: #fff; border: var(--card-border); border-radius: var(--radius); padding: var(--card-pad); box-shadow: none;
}
/* Karty z wynikami mają własne (ciemne) tło z website.css — wspólny jest tylko promień i odstęp wewnętrzny */
.cs-metric-card { border-radius: var(--radius); padding: var(--card-pad); }

/* „Jak pracujemy”: trzy kolumny obok siebie (layout website nie ma siatki Bootstrapa) */
.methodology-section .row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 0; }
.methodology-section .row > [class*="col-"] { width: auto; max-width: none; padding: 0; }
@media (max-width: 767px) { .methodology-section .row { grid-template-columns: 1fr; } }

/* Rzędy logotypów: jedna wysokość, skala szarości, równe odstępy, wyśrodkowane */
.logo-row { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 32px; margin: 0; padding: 0; list-style: none; }
.logo-row img, .logo-slider .items img, .partner-logos img, .p-logo-img img {
    height: var(--logo-h) !important; width: auto !important; max-width: 160px; object-fit: contain;
    filter: grayscale(1); opacity: 0.7;
}
.logo-slider .items, .partner-logos { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 32px; }

/* Nagłówek i stopka (przeniesione ze style-orbis.css — layout website go nie wczytuje) */
/* ── Porządek strony 27.11: nagłówek ─────────────────────────────────────────
   Przycisk diagnozy: na desktopie w menu, na telefonie obok hamburgera (widoczny bez rozwijania). */
header .logo img { height: 38px; width: auto; }
.btn-cta-mobile { display: none; }
@media (max-width: 991px) {
    .btn-cta-mobile { display: inline-block; margin-left: auto; margin-right: 12px; padding: 8px 14px !important; font-size: 1.4rem; white-space: nowrap; flex-shrink: 0; }
    .nav-cta-desktop { display: none; }
    header .logo { flex-shrink: 1; min-width: 0; }
    header .logo img { height: auto; width: 100%; max-width: 230px; max-height: 28px; }
}
@media (max-width: 599px) {
    header .logo { margin-right: 10px; }
    header .logo img { max-width: 40vw; }
}
@media (max-width: 429px) {
    .btn-cta-mobile { padding: 6px 10px !important; font-size: 1.3rem; margin-right: 8px; }
}

/* ── Porządek strony 27.11: stopka — 5 kolumn linków nad danymi firmy i newsletterem ── */
footer .footer-links { display: grid; grid-template-columns: repeat(5, 1fr); gap: 24px; margin: 24px 0 32px; }
footer .footer-links a { display: block; font-size: 14px; padding: 4px 0; color: var(--primary-gray-color); font-weight: 500; transition: 0.3s; }
footer .footer-links a:hover { color: var(--primary-color); }
footer .footer-links .footer-social a { display: inline-block; font-size: 18px; margin-right: 10px; }
footer .footer-logo img { width: auto; height: 38px; }
@media (max-width: 991px) { footer .footer-links { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 599px) { footer .footer-links { grid-template-columns: 1fr 1fr; } }
