/*
Theme Name: RM Business Group Premium
Theme URI: https://rmbg.pl
Author: RM Business Group
Description: Dedykowany motyw premium dla RM Business Group — szkolenia sprzedażowe B2B, doradztwo i coaching. Architektura: ACF + Custom Post Types, zoptymalizowana pod SEO i konwersję.
Version: 2.0.0
Requires at least: 6.2
Requires PHP: 7.4
License: Proprietary
Text Domain: rmbg
*/

/* =========================================================
   1. DESIGN TOKENS
   ========================================================= */
:root {
    /* Kolory — ewolucja obecnej palety */
    --rmb-bg: #FFFFFF;
    --rmb-bg-soft: #F8F7F5;
    --rmb-text: #14100E;
    --rmb-steel: #4A4E59;
    --rmb-muted: #6E7280;
    --rmb-primary: #7C2230;
    --rmb-primary-dark: #611A25;
    --rmb-primary-tint: #F7EEEF;
    --rmb-gray-light: #F3F4F6;
    --rmb-border: #E7E5E4;
    --rmb-white: #FFFFFF;
    --rmb-success: #1B7A43;
    --rmb-error: #B3261E;

    /* Typografia */
    --rmb-font: 'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --rmb-h1: clamp(2.2rem, 3.8vw, 2.9rem);
    --rmb-h2: clamp(1.8rem, 3.2vw, 2.5rem);
    --rmb-h3: clamp(1.2rem, 2vw, 1.45rem);
    --rmb-lead: clamp(1.05rem, 1.6vw, 1.2rem);

    /* Cienie */
    --rmb-shadow-sm: 0 1px 2px rgba(20, 16, 14, 0.05), 0 2px 8px rgba(20, 16, 14, 0.04);
    --rmb-shadow: 0 10px 15px -3px rgba(20, 16, 14, 0.08), 0 4px 6px -2px rgba(20, 16, 14, 0.04);
    --rmb-shadow-lg: 0 20px 40px -12px rgba(20, 16, 14, 0.14);
    --rmb-shadow-primary: 0 10px 24px -8px rgba(124, 34, 48, 0.45);

    /* Rytm i geometria */
    --rmb-radius: 12px;
    --rmb-radius-lg: 18px;
    --rmb-section-pad: clamp(64px, 9vw, 110px);
    --rmb-container: 1200px;

    /* Ruch */
    --rmb-ease: cubic-bezier(0.22, 1, 0.36, 1);
    --rmb-speed: 0.3s;
}

/* =========================================================
   2. RESET / BAZA
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: var(--rmb-primary) var(--rmb-bg);
    overflow-x: hidden;
    -webkit-text-size-adjust: 100%;
}

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--rmb-bg); }
::-webkit-scrollbar-thumb { background: var(--rmb-primary); border-radius: 6px; }

body {
    margin: 0;
    font-family: var(--rmb-font);
    font-size: 1rem;
    line-height: 1.65;
    color: var(--rmb-text);
    background: var(--rmb-bg);
    -webkit-font-smoothing: antialiased;
    /* UWAGA: żadnego overflow-x:hidden na body — łamie position:sticky
       nagłówka (poziomy scroll blokuje overflow-x na html powyżej) */
}

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

h1, h2, h3, h4 {
    line-height: 1.18;
    font-weight: 900;
    letter-spacing: -0.015em;
    margin: 0 0 0.6em;
    color: var(--rmb-text);
}

h1 { font-size: var(--rmb-h1); }
h2 { font-size: var(--rmb-h2); }
h3 { font-size: var(--rmb-h3); font-weight: 700; }

p { margin: 0 0 1.1em; }

a { color: var(--rmb-primary); text-decoration: none; transition: color var(--rmb-speed) var(--rmb-ease); }
a:hover { color: var(--rmb-primary-dark); }

::selection { background: var(--rmb-primary); color: #fff; }

/* Dostępność */
:focus-visible {
    outline: 3px solid var(--rmb-primary);
    outline-offset: 3px;
    border-radius: 4px;
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    background: var(--rmb-primary);
    color: #fff;
    padding: 12px 22px;
    z-index: 10000;
    border-radius: 0 0 8px 0;
    font-weight: 700;
}
.skip-link:focus { left: 0; color: #fff; }

.screen-reader-text {
    position: absolute !important;
    width: 1px; height: 1px;
    overflow: hidden;
    clip: rect(1px, 1px, 1px, 1px);
    word-wrap: normal !important;
}

/* =========================================================
   3. LAYOUT / NARZĘDZIA
   ========================================================= */
.rmb-container {
    max-width: var(--rmb-container);
    margin: 0 auto;
    padding: 0 24px;
}

.rmb-section { padding: var(--rmb-section-pad) 0; }
.rmb-section--soft { background: var(--rmb-bg-soft); }
.rmb-section--gray { background: var(--rmb-gray-light); }
.rmb-text-center { text-align: center; }

.rmb-section-head { max-width: 720px; margin: 0 auto 56px; text-align: center; }
.rmb-section-head--left { margin: 0 0 48px; text-align: left; }
.rmb-section-head p { color: var(--rmb-steel); font-size: var(--rmb-lead); margin-bottom: 0; }

.rmb-section-label {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--rmb-primary);
    background: var(--rmb-primary-tint);
    padding: 6px 14px;
    border-radius: 100px;
    margin-bottom: 16px;
}

.rmb-accent { color: var(--rmb-primary); }

/* Animacje wejścia (JS dodaje .is-visible) */
.rmb-reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s var(--rmb-ease), transform 0.7s var(--rmb-ease);
}
.rmb-reveal.is-visible { opacity: 1; transform: none; }
.rmb-reveal-stagger > * {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s var(--rmb-ease), transform 0.7s var(--rmb-ease);
}
.rmb-reveal-stagger.is-visible > * { opacity: 1; transform: none; }
.rmb-reveal-stagger.is-visible > *:nth-child(2) { transition-delay: 0.1s; }
.rmb-reveal-stagger.is-visible > *:nth-child(3) { transition-delay: 0.2s; }
.rmb-reveal-stagger.is-visible > *:nth-child(4) { transition-delay: 0.3s; }
.rmb-reveal-stagger.is-visible > *:nth-child(5) { transition-delay: 0.4s; }
.rmb-reveal-stagger.is-visible > *:nth-child(6) { transition-delay: 0.5s; }

/* =========================================================
   4. PRZYCISKI
   ========================================================= */
.rmb-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 30px;
    min-height: 50px;
    font-family: var(--rmb-font);
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.2;
    border-radius: 10px;
    border: 2px solid transparent;
    cursor: pointer;
    text-align: center;
    transition: transform var(--rmb-speed) var(--rmb-ease),
                box-shadow var(--rmb-speed) var(--rmb-ease),
                background-color var(--rmb-speed) var(--rmb-ease),
                color var(--rmb-speed) var(--rmb-ease),
                border-color var(--rmb-speed) var(--rmb-ease);
}

.rmb-btn-primary {
    background: var(--rmb-primary);
    color: #fff;
    box-shadow: var(--rmb-shadow-primary);
}
.rmb-btn-primary:hover {
    background: var(--rmb-primary-dark);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 16px 30px -10px rgba(124, 34, 48, 0.55);
}
.rmb-btn-primary:active { transform: translateY(0); }

.rmb-btn-ghost {
    background: transparent;
    color: var(--rmb-text);
    border-color: var(--rmb-border);
}
.rmb-btn-ghost:hover {
    border-color: var(--rmb-primary);
    color: var(--rmb-primary);
    transform: translateY(-2px);
}

.rmb-btn-light {
    background: #fff;
    color: var(--rmb-primary);
}
.rmb-btn-light:hover { background: var(--rmb-primary-tint); color: var(--rmb-primary-dark); transform: translateY(-2px); }

.rmb-btn.is-loading { pointer-events: none; opacity: 0.7; }
.rmb-btn.is-loading::after {
    content: '';
    width: 16px; height: 16px;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: rmbSpin 0.7s linear infinite;
}
@keyframes rmbSpin { to { transform: rotate(360deg); } }

/* =========================================================
   5. NAGŁÓWEK / NAWIGACJA
   ========================================================= */
.rmb-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid transparent;
    transition: box-shadow var(--rmb-speed) var(--rmb-ease), border-color var(--rmb-speed) var(--rmb-ease);
}
.rmb-header.is-scrolled {
    border-bottom-color: var(--rmb-border);
    box-shadow: var(--rmb-shadow-sm);
}
/* zalogowany admin: sticky pasek pod czarnym paskiem WordPressa */
.admin-bar .rmb-header { top: 32px; }
@media (max-width: 782px) {
    .admin-bar .rmb-header { top: 46px; }
}

.rmb-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 76px;
}

.rmb-logo { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.rmb-logo img { height: 44px; width: auto; }

.rmb-nav-menu { display: flex; align-items: center; gap: 2px; }

.rmb-nav-link {
    position: relative;
    display: inline-block;
    padding: 10px 11px;
    font-weight: 400;
    font-size: 0.95rem;
    color: var(--rmb-text);
    border-radius: 8px;
    white-space: nowrap;
}
.rmb-nav-link::after {
    content: '';
    position: absolute;
    left: 11px; right: 11px; bottom: 4px;
    height: 2px;
    background: var(--rmb-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--rmb-speed) var(--rmb-ease);
}
.rmb-nav-link:hover { color: var(--rmb-primary); }
.rmb-nav-link:hover::after,
.rmb-nav-link.is-active::after { transform: scaleX(1); }

.rmb-nav-cta {
    margin-left: 12px;
    padding: 12px 22px;
    min-height: 44px;
    white-space: nowrap;
    background: var(--rmb-primary);
    color: #fff !important;
    font-weight: 700;
    font-size: 0.95rem;
    border-radius: 10px;
    box-shadow: var(--rmb-shadow-primary);
    transition: transform var(--rmb-speed) var(--rmb-ease), background-color var(--rmb-speed) var(--rmb-ease);
    display: inline-flex;
    align-items: center;
}
.rmb-nav-cta:hover { background: var(--rmb-primary-dark); transform: translateY(-2px); }

/* Ikony social media w pasku nawigacji */
.rmb-nav-socials {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: 10px;
    padding-left: 14px;
    border-left: 1px solid var(--rmb-border);
}
.rmb-nav-socials a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 9px;
    color: var(--rmb-steel);
    transition: color var(--rmb-speed) var(--rmb-ease), background-color var(--rmb-speed) var(--rmb-ease), transform var(--rmb-speed) var(--rmb-ease);
}
.rmb-nav-socials a:hover {
    color: var(--rmb-primary);
    background: var(--rmb-primary-tint);
    transform: translateY(-2px);
}

/* Dropdown */
.rmb-dropdown { position: relative; }
.rmb-dropdown-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: none;
    border: 0;
    font: inherit;
    cursor: pointer;
}
.rmb-dropdown-toggle .rmb-caret {
    width: 10px; height: 10px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg) translateY(-2px);
    transition: transform var(--rmb-speed) var(--rmb-ease);
}
.rmb-dropdown-content {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    min-width: 300px;
}
/* niewidzialny "mostek" — kursor nie gubi hovera w 8px przerwie
   między przyciskiem a rozwiniętym panelem */
.rmb-dropdown-content::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 0;
    right: 0;
    height: 10px;
}
.rmb-dropdown-content {
    background: #fff;
    border: 1px solid var(--rmb-border);
    border-radius: var(--rmb-radius);
    box-shadow: var(--rmb-shadow-lg);
    padding: 10px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity var(--rmb-speed) var(--rmb-ease), transform var(--rmb-speed) var(--rmb-ease), visibility var(--rmb-speed);
    z-index: 100;
}
.rmb-dropdown:hover .rmb-dropdown-content,
.rmb-dropdown:focus-within .rmb-dropdown-content,
.rmb-dropdown.is-open .rmb-dropdown-content {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.rmb-dropdown-item {
    display: block;
    padding: 11px 14px;
    color: var(--rmb-text);
    font-weight: 400;
    font-size: 0.95rem;
    border-radius: 8px;
    transition: background-color var(--rmb-speed) var(--rmb-ease), color var(--rmb-speed) var(--rmb-ease), padding-left var(--rmb-speed) var(--rmb-ease);
}
.rmb-dropdown-item:hover {
    background: var(--rmb-primary-tint);
    color: var(--rmb-primary);
    padding-left: 20px;
}

/* Hamburger */
.rmb-burger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 48px; height: 48px;
    padding: 12px;
    background: none;
    border: 0;
    cursor: pointer;
}
.rmb-burger span {
    display: block;
    height: 2.5px;
    background: var(--rmb-text);
    border-radius: 2px;
    transition: transform var(--rmb-speed) var(--rmb-ease), opacity var(--rmb-speed) var(--rmb-ease);
}
.rmb-burger.is-open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.rmb-burger.is-open span:nth-child(2) { opacity: 0; }
.rmb-burger.is-open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* =========================================================
   6. HERO
   ========================================================= */
.rmb-hero {
    position: relative;
    padding: clamp(56px, 8vw, 96px) 0 clamp(48px, 7vw, 80px);
    background:
        radial-gradient(1000px 500px at 85% -10%, var(--rmb-primary-tint) 0%, transparent 60%),
        var(--rmb-bg);
    overflow: hidden;
}

.rmb-hero-grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: clamp(32px, 5vw, 56px);
    align-items: start;
}
/* Klucz stabilności layoutu: szeroka karuzela logotypów nie może
   rozpychać kolumn gridu (domyślne min-width:auto na to pozwala). */
.rmb-hero-grid > *,
.rmb-about-grid > *,
.rmb-contact-grid > *,
.rmb-lead-box > * { min-width: 0; }

.rmb-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--rmb-primary);
    background: var(--rmb-primary-tint);
    border: 1px solid rgba(124, 34, 48, 0.15);
    padding: 7px 16px;
    border-radius: 100px;
    margin-bottom: 22px;
}
.rmb-hero-badge::before {
    content: '';
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--rmb-primary);
    animation: rmbPulse 2s infinite;
}
@keyframes rmbPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(124, 34, 48, 0.35); }
    50% { box-shadow: 0 0 0 6px rgba(124, 34, 48, 0); }
}

.rmb-hero h1 { margin-bottom: 20px; }
.rmb-hero-sub {
    font-size: var(--rmb-lead);
    color: var(--rmb-steel);
    max-width: 540px;
    margin-bottom: 32px;
}

.rmb-hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 40px; }

/* margines wyrównuje górę zdjęcia z górą nagłówka H1
   (kompensuje plakietkę nad nagłówkiem) */
.rmb-hero-image { position: relative; margin-top: 58px; }
.rmb-hero-slider {
    position: relative;
    border-radius: var(--rmb-radius-lg);
    overflow: hidden;
    box-shadow: var(--rmb-shadow-lg);
    background: var(--rmb-gray-light);
}
.rmb-hero-slider::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--rmb-radius-lg);
    box-shadow: inset 0 0 0 1px rgba(20, 16, 14, 0.06);
    pointer-events: none;
}
.rmb-hero-slider-track {
    display: flex;
    width: 200%;
    animation: rmbHeroSlide 11s var(--rmb-ease) infinite;
}
.rmb-hero-slider-track img { width: 50%; object-fit: cover; }
.rmb-hero-slider--static .rmb-hero-slider-track { width: 100%; animation: none; }
.rmb-hero-slider--static .rmb-hero-slider-track img { width: 100%; }

@keyframes rmbHeroSlide {
    0%, 45% { transform: translateX(0); }
    52%, 95% { transform: translateX(-50%); }
    100% { transform: translateX(0); }
}

.rmb-hero-dots { display: flex; gap: 8px; justify-content: center; margin-top: 16px; }
.rmb-hero-dot { width: 22px; height: 5px; border-radius: 5px; background: #D6D3D1; }
.rmb-hero-dot-1 { animation: rmbDot1 11s infinite; }
.rmb-hero-dot-2 { animation: rmbDot2 11s infinite; }
@keyframes rmbDot1 {
    0%, 45% { background: var(--rmb-primary); width: 34px; }
    52%, 95% { background: #D6D3D1; width: 22px; }
    100% { background: var(--rmb-primary); width: 34px; }
}
@keyframes rmbDot2 {
    0%, 45% { background: #D6D3D1; width: 22px; }
    52%, 95% { background: var(--rmb-primary); width: 34px; }
    100% { background: #D6D3D1; width: 22px; }
}

/* Social proof — karuzela logotypów */
.rmb-social-proof p {
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--rmb-muted);
    margin-bottom: 14px;
}
.rmb-logo-marquee {
    position: relative;
    overflow: hidden;
    max-width: 100%;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.rmb-logo-marquee-track {
    display: flex;
    align-items: center;
    gap: 48px;
    width: max-content;
    animation: rmbMarquee 30s linear infinite;
}
.rmb-logo-marquee:hover .rmb-logo-marquee-track { animation-play-state: paused; }
.rmb-logo-marquee-item img {
    height: 40px;
    width: auto;
    max-width: 140px;
    object-fit: contain;
    filter: grayscale(1);
    opacity: 0.6;
    transition: filter var(--rmb-speed) var(--rmb-ease), opacity var(--rmb-speed) var(--rmb-ease);
}
.rmb-logo-marquee-item img:hover { filter: none; opacity: 1; }
@keyframes rmbMarquee {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

/* =========================================================
   7. LEAD MAGNET
   ========================================================= */
.rmb-lead-magnet { padding: 0; }
.rmb-lead-box {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: clamp(24px, 4vw, 56px);
    align-items: center;
    background: linear-gradient(120deg, var(--rmb-primary) 0%, var(--rmb-primary-dark) 100%);
    color: #fff;
    border-radius: var(--rmb-radius-lg);
    padding: clamp(32px, 5vw, 56px);
    box-shadow: var(--rmb-shadow-lg);
    overflow: hidden;
}
.rmb-lead-box::before {
    content: '';
    position: absolute;
    right: -80px; top: -80px;
    width: 280px; height: 280px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
}
.rmb-lead-box::after {
    content: '';
    position: absolute;
    right: 40px; bottom: -110px;
    width: 220px; height: 220px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
}
.rmb-lead-text h2 { color: #fff; margin-bottom: 10px; }
.rmb-lead-text p { color: rgba(255, 255, 255, 0.85); font-size: 1.05rem; margin: 0; }

.rmb-lead-form { position: relative; z-index: 1; }
.rmb-lead-form-row { display: flex; gap: 12px; flex-wrap: wrap; }
.rmb-lead-form-row .rmb-input { flex: 1 1 180px; }
.rmb-lead-form-row .rmb-btn { flex: 1 0 auto; }

/* =========================================================
   8. FORMULARZE
   ========================================================= */
.rmb-input,
.rmb-textarea,
.rmb-select {
    width: 100%;
    padding: 14px 16px;
    min-height: 50px;
    font-family: var(--rmb-font);
    font-size: 1rem;
    color: var(--rmb-text);
    background: #fff;
    border: 1.5px solid var(--rmb-border);
    border-radius: 10px;
    transition: border-color var(--rmb-speed) var(--rmb-ease), box-shadow var(--rmb-speed) var(--rmb-ease);
}
.rmb-textarea { min-height: 140px; resize: vertical; }
.rmb-input:focus, .rmb-textarea:focus, .rmb-select:focus {
    outline: none;
    border-color: var(--rmb-primary);
    box-shadow: 0 0 0 4px rgba(124, 34, 48, 0.12);
}

.rmb-form-group { margin-bottom: 18px; }
.rmb-form-label { display: block; font-weight: 700; font-size: 0.92rem; margin-bottom: 7px; }

.rmb-consent {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.83rem;
    color: var(--rmb-muted);
    margin-top: 14px;
}
.rmb-lead-box .rmb-consent { color: rgba(255, 255, 255, 0.75); }
.rmb-consent input[type="checkbox"] {
    width: 18px; height: 18px;
    margin-top: 2px;
    accent-color: var(--rmb-primary);
    flex-shrink: 0;
    cursor: pointer;
}
.rmb-lead-box .rmb-consent input[type="checkbox"] { accent-color: #fff; }
.rmb-consent label { cursor: pointer; }
.rmb-consent a { color: inherit; text-decoration: underline; }

/* Tekst informacyjny pod formularzem — nie jest zgodą, brak checkboxa */
.rmb-consent-note {
    margin: 14px 0 0;
    font-size: 0.76rem;
    line-height: 1.6;
    color: var(--rmb-muted);
}
.rmb-consent-note a { color: inherit; text-decoration: underline; }
.rmb-lead-box .rmb-consent-note { color: rgba(255, 255, 255, 0.65); }

/* Walidacja: pole z błędem + komunikat pod polem */
.rmb-input.has-error,
.rmb-textarea.has-error,
.rmb-select.has-error {
    border-color: var(--rmb-error);
    box-shadow: 0 0 0 4px rgba(179, 38, 30, 0.1);
}
.rmb-field-error {
    margin: 6px 0 0;
    font-size: 0.83rem;
    font-weight: 600;
    color: var(--rmb-error);
    animation: rmbFadeIn 0.25s var(--rmb-ease);
}
.rmb-lead-box .rmb-field-error { color: #FFD9D6; }
.rmb-lead-box .rmb-input.has-error { border-color: #FFB4AE; }

/* Honeypot — ukryty dla ludzi */
.rmb-hp { position: absolute !important; left: -9999px !important; opacity: 0; height: 0; overflow: hidden; }

.rmb-form-msg {
    display: none;
    padding: 14px 18px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.95rem;
    margin-top: 14px;
}
.rmb-form-msg.is-visible { display: block; animation: rmbFadeIn 0.4s var(--rmb-ease); }
.rmb-form-msg--success { background: #E8F5EE; color: var(--rmb-success); border: 1px solid #BFE3CF; }
.rmb-form-msg--error { background: #FDECEA; color: var(--rmb-error); border: 1px solid #F5C6C2; }
.rmb-lead-box .rmb-form-msg--success { background: rgba(255,255,255,0.95); }
.rmb-lead-box .rmb-form-msg--error { background: rgba(255,255,255,0.95); }
@keyframes rmbFadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* =========================================================
   9. KARTY USŁUG
   ========================================================= */
.rmb-services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 26px;
}

.rmb-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: #fff;
    border: 1px solid var(--rmb-border);
    border-radius: var(--rmb-radius-lg);
    padding: 32px 28px;
    transition: transform var(--rmb-speed) var(--rmb-ease),
                box-shadow var(--rmb-speed) var(--rmb-ease),
                border-color var(--rmb-speed) var(--rmb-ease);
}
.rmb-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--rmb-shadow-lg);
    border-color: rgba(124, 34, 48, 0.25);
}

.rmb-card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 54px; height: 54px;
    border-radius: 14px;
    background: var(--rmb-primary-tint);
    color: var(--rmb-primary);
    margin-bottom: 20px;
    transition: background-color var(--rmb-speed) var(--rmb-ease), color var(--rmb-speed) var(--rmb-ease), transform var(--rmb-speed) var(--rmb-ease);
}
.rmb-card:hover .rmb-card-icon {
    background: var(--rmb-primary);
    color: #fff;
    transform: scale(1.06) rotate(-3deg);
}

.rmb-card-tagline {
    display: block;
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--rmb-primary);
    margin-bottom: 8px;
}
.rmb-card h3 { margin-bottom: 12px; }
.rmb-card-desc { color: var(--rmb-steel); font-size: 0.95rem; }

.rmb-check-list { list-style: none; padding: 0; margin: 18px 0 22px; }
.rmb-check-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.92rem;
    color: var(--rmb-steel);
    padding: 5px 0;
}
.rmb-check-item svg { flex-shrink: 0; margin-top: 3px; color: var(--rmb-primary); }

.rmb-card-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    color: var(--rmb-primary);
    margin-top: auto;
}
.rmb-card-link .rmb-arrow { transition: transform var(--rmb-speed) var(--rmb-ease); }
.rmb-card-link:hover .rmb-arrow { transform: translateX(5px); }

/* =========================================================
   10. SPECJALIZACJE / BRANŻE
   ========================================================= */
.rmb-industries-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}
.rmb-industry {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    background: #fff;
    border: 1px solid var(--rmb-border);
    border-radius: var(--rmb-radius);
    padding: 20px 18px;
    transition: transform var(--rmb-speed) var(--rmb-ease), box-shadow var(--rmb-speed) var(--rmb-ease), border-color var(--rmb-speed) var(--rmb-ease);
}
.rmb-industry:hover {
    transform: translateY(-4px);
    box-shadow: var(--rmb-shadow);
    border-color: rgba(124, 34, 48, 0.25);
}
.rmb-industry-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: var(--rmb-primary-tint);
    color: var(--rmb-primary);
    flex-shrink: 0;
    transition: background-color var(--rmb-speed) var(--rmb-ease), color var(--rmb-speed) var(--rmb-ease);
}
.rmb-industry:hover .rmb-industry-icon { background: var(--rmb-primary); color: #fff; }
.rmb-industry h3 { font-size: 1.02rem; margin-bottom: 4px; }
.rmb-industry p { font-size: 0.87rem; color: var(--rmb-muted); margin: 0; }

/* =========================================================
   11. CASE STUDIES / OPINIE
   ========================================================= */
.rmb-cases-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 26px;
}
.rmb-case {
    background: #fff;
    border: 1px solid var(--rmb-border);
    border-radius: var(--rmb-radius-lg);
    overflow: hidden;
    transition: transform var(--rmb-speed) var(--rmb-ease), box-shadow var(--rmb-speed) var(--rmb-ease);
}
.rmb-case:hover { transform: translateY(-6px); box-shadow: var(--rmb-shadow-lg); }
.rmb-case-media { height: 210px; overflow: hidden; background: var(--rmb-gray-light); }
/* case study bez zdjęcia: ozdobny pasek z ikoną zamiast pustki */
.rmb-case-media--ph {
    height: 110px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(120deg, var(--rmb-primary-tint) 0%, #FDF7F8 60%, #fff 100%);
    color: rgba(124, 34, 48, 0.35);
}
.rmb-case-media img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--rmb-ease);
}
.rmb-case:hover .rmb-case-media img { transform: scale(1.05); }
.rmb-case-body { padding: 26px 28px 28px; }
.rmb-case-industry { font-size: 0.85rem; color: var(--rmb-muted); margin-bottom: 16px; }
.rmb-case-row { margin-bottom: 10px; font-size: 0.95rem; color: var(--rmb-steel); }
.rmb-case-row strong { color: var(--rmb-text); }
.rmb-case-result {
    display: inline-block;
    margin-top: 14px;
    padding: 10px 18px;
    background: var(--rmb-primary-tint);
    color: var(--rmb-primary);
    font-weight: 900;
    font-size: 1.05rem;
    border-radius: 10px;
}

/* Dofinansowania: karty źródeł + oś czasu */
.rmb-fund-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 26px;
    max-width: 980px;
    margin: 0 auto;
}
.rmb-fund-card {
    background: #fff;
    border: 1px solid var(--rmb-border);
    border-radius: var(--rmb-radius-lg);
    padding: 32px 30px;
    transition: transform var(--rmb-speed) var(--rmb-ease), box-shadow var(--rmb-speed) var(--rmb-ease), border-color var(--rmb-speed) var(--rmb-ease);
}
.rmb-fund-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--rmb-shadow-lg);
    border-color: rgba(124, 34, 48, 0.25);
}
.rmb-fund-card h3 { margin: 0 0 6px; }
.rmb-fund-amount {
    font-size: clamp(1.9rem, 3vw, 2.4rem);
    font-weight: 900;
    color: var(--rmb-primary);
    line-height: 1.1;
    margin-bottom: 16px;
    font-variant-numeric: tabular-nums;
}
.rmb-fund-amount span {
    display: block;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--rmb-muted);
}
.rmb-fund-card .rmb-check-list { margin-bottom: 0; }

.rmb-steps {
    list-style: none;
    padding: 0;
    margin: 0 auto;
    max-width: 720px;
    position: relative;
}
.rmb-steps::before {
    content: '';
    position: absolute;
    left: 23px;
    top: 10px;
    bottom: 10px;
    width: 3px;
    border-radius: 3px;
    background: var(--rmb-primary-tint);
}
.rmb-step {
    position: relative;
    display: flex;
    gap: 22px;
    padding: 0 0 34px;
}
.rmb-step:last-child { padding-bottom: 0; }
.rmb-step-num {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    flex-shrink: 0;
    background: var(--rmb-primary);
    color: #fff;
    font-weight: 900;
    font-size: 1.1rem;
    box-shadow: var(--rmb-shadow-primary);
}
.rmb-step h3 { margin: 10px 0 6px; font-size: 1.15rem; }
.rmb-step p { margin: 0; color: var(--rmb-steel); }
/* wariant z datą zamiast numeru (oś czasu "O nas") */
.rmb-step-num--date {
    width: auto;
    min-width: 48px;
    padding: 0 16px;
    border-radius: 100px;
    font-size: 0.95rem;
    white-space: nowrap;
}

/* O nas: zdjęcie + bio */
.rmb-onas-grid {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: clamp(28px, 4.5vw, 64px);
    align-items: start;
}
.rmb-onas-grid > * { min-width: 0; }
.rmb-onas-photo img {
    width: 100%;
    max-width: 420px;
    border-radius: var(--rmb-radius-lg);
    box-shadow: var(--rmb-shadow-lg);
    object-fit: cover;
    position: sticky;
    top: 100px;
}
.rmb-onas-bio h2 {
    font-size: clamp(1.6rem, 2.6vw, 2.1rem);
    margin-bottom: 0.7em;
    position: relative;
    padding-bottom: 14px;
}
.rmb-onas-bio h2::after {
    content: '';
    position: absolute;
    left: 0; bottom: 0;
    width: 56px; height: 4px;
    border-radius: 4px;
    background: var(--rmb-primary);
}
.rmb-onas-bio h3 { margin-top: 1.4em; }
.rmb-onas-bio p { color: var(--rmb-steel); }

/* karty metodologii */
.rmb-method-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 1000px;
    margin: 0 auto;
}
.rmb-method-card {
    background: #fff;
    border: 1px solid var(--rmb-border);
    border-radius: var(--rmb-radius-lg);
    padding: 28px 26px;
    text-align: center;
    transition: transform var(--rmb-speed) var(--rmb-ease), box-shadow var(--rmb-speed) var(--rmb-ease), border-color var(--rmb-speed) var(--rmb-ease);
}
.rmb-method-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--rmb-shadow-lg);
    border-color: rgba(124, 34, 48, 0.25);
}
.rmb-method-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px; height: 52px;
    border-radius: 14px;
    background: var(--rmb-primary-tint);
    color: var(--rmb-primary);
    margin-bottom: 14px;
}
.rmb-method-card h3 { font-size: 1.1rem; margin-bottom: 8px; }
.rmb-method-card p { margin: 0; font-size: 0.92rem; color: var(--rmb-steel); }

@media (max-width: 900px) {
    .rmb-onas-grid { grid-template-columns: 1fr; }
    .rmb-onas-photo img { position: static; margin: 0 auto; }
    .rmb-method-grid { grid-template-columns: 1fr; max-width: 480px; }
}

@media (max-width: 760px) {
    .rmb-fund-grid { grid-template-columns: 1fr; }
}

/* "Wall of Love" — mozaika opinii klientów */
.rmb-t-hero p strong { color: var(--rmb-text); }
.rmb-t-rating {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 18px;
    font-size: 0.95rem;
    color: var(--rmb-steel);
}
.rmb-t-rating strong { color: var(--rmb-text); }
.rmb-t-stars { display: flex; gap: 3px; color: #E9A13B; }
.rmb-t-stars svg { width: 18px; height: 18px; }

.rmb-t-wall {
    column-count: 3;
    column-gap: 24px;
}
.rmb-t-card {
    break-inside: avoid;
    margin: 0 0 24px;
    background: #fff;
    border: 1px solid var(--rmb-border);
    border-radius: var(--rmb-radius-lg);
    padding: 28px 26px;
    box-shadow: var(--rmb-shadow-sm);
    transition: transform var(--rmb-speed) var(--rmb-ease), box-shadow var(--rmb-speed) var(--rmb-ease), border-color var(--rmb-speed) var(--rmb-ease);
}
.rmb-t-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--rmb-shadow-lg);
    border-color: rgba(124, 34, 48, 0.22);
}
.rmb-t-head {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 14px;
}
.rmb-t-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    flex-shrink: 0;
    background: var(--rmb-primary-tint);
    color: var(--rmb-primary);
    font-weight: 900;
    letter-spacing: 0.02em;
}
.rmb-t-avatar--photo { object-fit: cover; }
.rmb-t-name { display: block; line-height: 1.25; }
.rmb-t-role { display: block; font-size: 0.85rem; color: var(--rmb-muted); }
.rmb-t-card .rmb-t-stars { margin-bottom: 12px; }
.rmb-t-card blockquote {
    margin: 0;
    font-size: 0.98rem;
    font-style: italic;
    color: var(--rmb-steel);
}
.rmb-t-card blockquote strong { color: var(--rmb-primary); font-style: normal; }

@media (max-width: 1024px) { .rmb-t-wall { column-count: 2; } }
@media (max-width: 640px) { .rmb-t-wall { column-count: 1; } }

/* Cytat / opinia */
.rmb-quote {
    background: #fff;
    border: 1px solid var(--rmb-border);
    border-left: 4px solid var(--rmb-primary);
    border-radius: var(--rmb-radius);
    padding: 28px 30px;
    font-size: 1.02rem;
    color: var(--rmb-steel);
}
.rmb-quote footer { margin-top: 14px; font-weight: 700; color: var(--rmb-text); font-size: 0.92rem; }

/* =========================================================
   12. O NAS
   ========================================================= */
.rmb-about-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: clamp(32px, 5vw, 72px);
    align-items: center;
}
.rmb-about-image { position: relative; }
.rmb-about-image img {
    border-radius: var(--rmb-radius-lg);
    box-shadow: var(--rmb-shadow-lg);
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
    object-fit: cover;
}
.rmb-about-image::before {
    content: '';
    position: absolute;
    left: -18px; top: 22px;
    width: 100%; height: 100%;
    max-width: 420px;
    border: 2px solid var(--rmb-primary-tint);
    border-radius: var(--rmb-radius-lg);
    z-index: -1;
}
.rmb-about-role { font-size: 1.05rem; color: var(--rmb-primary); font-weight: 700; margin-bottom: 22px; }
.rmb-about-text p { color: var(--rmb-steel); }
.rmb-about-text .rmb-about-quote { font-size: 1.15rem; font-weight: 700; color: var(--rmb-text); }

.rmb-stats { display: flex; gap: clamp(28px, 5vw, 64px); margin-top: 34px; }
.rmb-stat-number {
    font-size: clamp(2.2rem, 4vw, 3rem);
    font-weight: 900;
    color: var(--rmb-primary);
    line-height: 1;
}
.rmb-stat-label { font-size: 0.9rem; color: var(--rmb-muted); margin-top: 6px; font-weight: 600; }

/* =========================================================
   13. FAQ (AKORDEON)
   ========================================================= */
.rmb-faq { max-width: 800px; margin: 0 auto; }
.rmb-accordion-item {
    background: #fff;
    border: 1px solid var(--rmb-border);
    border-radius: var(--rmb-radius);
    margin-bottom: 12px;
    overflow: hidden;
    transition: border-color var(--rmb-speed) var(--rmb-ease), box-shadow var(--rmb-speed) var(--rmb-ease);
}
.rmb-accordion-item.is-open {
    border-color: rgba(124, 34, 48, 0.3);
    box-shadow: var(--rmb-shadow-sm);
}
.rmb-accordion-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    width: 100%;
    padding: 20px 24px;
    background: none;
    border: 0;
    font-family: var(--rmb-font);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--rmb-text);
    text-align: left;
    cursor: pointer;
}
.rmb-accordion-header:hover { color: var(--rmb-primary); }
.rmb-accordion-icon {
    flex-shrink: 0;
    width: 28px; height: 28px;
    border-radius: 50%;
    background: var(--rmb-primary-tint);
    color: var(--rmb-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: transform var(--rmb-speed) var(--rmb-ease), background-color var(--rmb-speed) var(--rmb-ease);
}
.rmb-accordion-icon::before,
.rmb-accordion-icon::after {
    content: '';
    position: absolute;
    background: currentColor;
    border-radius: 2px;
}
.rmb-accordion-icon::before { width: 12px; height: 2px; }
.rmb-accordion-icon::after { width: 2px; height: 12px; transition: transform var(--rmb-speed) var(--rmb-ease); }
.rmb-accordion-item.is-open .rmb-accordion-icon { transform: rotate(180deg); background: var(--rmb-primary); color: #fff; }
.rmb-accordion-item.is-open .rmb-accordion-icon::after { transform: scaleY(0); }

.rmb-accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.45s var(--rmb-ease);
}
.rmb-accordion-body { padding: 0 24px 22px; color: var(--rmb-steel); }
.rmb-accordion-body p:last-child { margin-bottom: 0; }

/* =========================================================
   14. CTA KOŃCOWE
   ========================================================= */
.rmb-final-cta {
    background: linear-gradient(120deg, var(--rmb-primary) 0%, var(--rmb-primary-dark) 100%);
    border-radius: var(--rmb-radius-lg);
    padding: clamp(40px, 6vw, 72px);
    text-align: center;
    color: #fff;
    position: relative;
    overflow: hidden;
    box-shadow: var(--rmb-shadow-lg);
}
.rmb-final-cta::before {
    content: '';
    position: absolute;
    left: 50%; top: -60%;
    width: 600px; height: 600px;
    transform: translateX(-50%);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 70%);
}
.rmb-final-cta h2 { color: #fff; }
.rmb-final-cta p { color: rgba(255, 255, 255, 0.85); font-size: var(--rmb-lead); max-width: 620px; margin: 0 auto 30px; }
.rmb-final-cta .rmb-btn { position: relative; z-index: 1; }

/* =========================================================
   15. BLOG
   ========================================================= */
.rmb-page-hero {
    padding: clamp(40px, 5.5vw, 64px) 0 clamp(32px, 4.5vw, 48px);
    background:
        radial-gradient(800px 400px at 90% -20%, var(--rmb-primary-tint) 0%, transparent 60%),
        var(--rmb-bg-soft);
    border-bottom: 1px solid var(--rmb-border);
}
.rmb-page-hero h1 { margin-bottom: 12px; }
.rmb-page-hero p { font-size: var(--rmb-lead); color: var(--rmb-steel); max-width: 680px; margin: 0; }
.rmb-page-hero .rmb-hero-intro { font-size: var(--rmb-lead); color: var(--rmb-steel); max-width: 680px; }
.rmb-page-hero .rmb-hero-intro p { margin: 0 0 0.6em; }
.rmb-page-hero .rmb-hero-intro p:last-child { margin-bottom: 0; }

/* pierwszy blok po hero bez podwójnej pustki */
.rmb-page-hero + .rmb-section { padding-top: clamp(36px, 4.5vw, 56px); }
.rmb-page-hero + .rmb-designed > .rmb-cs:first-child,
.rmb-page-hero + div > .rmb-designed > .rmb-cs:first-child { padding-top: clamp(36px, 4.5vw, 56px); }

.rmb-blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 26px;
}
/* karty w jednym rzędzie zawsze równej wysokości */
.rmb-blog-grid > article { display: flex; }
.rmb-blog-grid > article > .rmb-blog-card { flex: 1; }
.rmb-blog-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--rmb-border);
    border-radius: var(--rmb-radius-lg);
    overflow: hidden;
    color: var(--rmb-text);
    transition: transform var(--rmb-speed) var(--rmb-ease), box-shadow var(--rmb-speed) var(--rmb-ease);
}
.rmb-blog-card:hover { transform: translateY(-6px); box-shadow: var(--rmb-shadow-lg); color: var(--rmb-text); }
.rmb-blog-media { height: 200px; overflow: hidden; background: var(--rmb-gray-light); }
.rmb-blog-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--rmb-ease); }
.rmb-blog-card:hover .rmb-blog-media img { transform: scale(1.05); }
.rmb-blog-body { display: flex; flex-direction: column; flex: 1; padding: 24px 26px 26px; }
.rmb-blog-tag {
    align-self: flex-start;
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--rmb-primary);
    background: var(--rmb-primary-tint);
    padding: 4px 10px;
    border-radius: 100px;
    margin-bottom: 14px;
}
.rmb-blog-title { font-size: 1.18rem; margin-bottom: 10px; }
.rmb-blog-card:hover .rmb-blog-title { color: var(--rmb-primary); }
.rmb-blog-excerpt { font-size: 0.93rem; color: var(--rmb-steel); flex: 1; }
.rmb-blog-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid var(--rmb-border);
    font-size: 0.82rem;
    color: var(--rmb-muted);
}

/* Artykuł */
.rmb-article { max-width: 760px; margin: 0 auto; }
.rmb-article-header { text-align: center; margin-bottom: 36px; }
.rmb-article-meta {
    display: flex;
    justify-content: center;
    gap: 14px;
    font-size: 0.88rem;
    color: var(--rmb-muted);
    margin-top: 16px;
}
.rmb-article-thumb {
    border-radius: var(--rmb-radius-lg);
    overflow: hidden;
    margin-bottom: 40px;
    box-shadow: var(--rmb-shadow);
}
.rmb-article-content { font-size: 1.08rem; color: #2A2622; }
.rmb-article-content h2 { font-size: 1.7rem; margin-top: 1.6em; }
.rmb-article-content h3 { font-size: 1.3rem; margin-top: 1.4em; }
.rmb-article-content img { border-radius: var(--rmb-radius); }
.rmb-article-content blockquote {
    margin: 1.6em 0;
    padding: 18px 26px;
    border-left: 4px solid var(--rmb-primary);
    background: var(--rmb-bg-soft);
    border-radius: 0 var(--rmb-radius) var(--rmb-radius) 0;
    font-style: italic;
}
.rmb-article-content ul li, .rmb-article-content ol li { margin-bottom: 0.5em; }
.rmb-article-content a { text-decoration: underline; text-underline-offset: 3px; }

.rmb-author-box {
    display: flex;
    gap: 20px;
    align-items: center;
    background: var(--rmb-bg-soft);
    border: 1px solid var(--rmb-border);
    border-radius: var(--rmb-radius-lg);
    padding: 26px 28px;
    margin-top: 48px;
}
.rmb-author-box img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.rmb-author-box h3 { margin-bottom: 4px; font-size: 1.1rem; }
.rmb-author-box p { margin: 0; font-size: 0.92rem; color: var(--rmb-steel); }

.rmb-related { margin-top: 64px; }
.rmb-related h2 { font-size: 1.6rem; margin-bottom: 28px; }

/* Paginacja */
.rmb-pagination { display: flex; justify-content: center; gap: 8px; margin-top: 56px; }
.rmb-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px; height: 44px;
    padding: 0 14px;
    border: 1.5px solid var(--rmb-border);
    border-radius: 10px;
    font-weight: 700;
    color: var(--rmb-text);
    transition: all var(--rmb-speed) var(--rmb-ease);
}
.rmb-pagination .page-numbers:hover { border-color: var(--rmb-primary); color: var(--rmb-primary); }
.rmb-pagination .page-numbers.current { background: var(--rmb-primary); border-color: var(--rmb-primary); color: #fff; }

/* =========================================================
   16. PODSTRONY / KONTAKT / STOPKA
   ========================================================= */
.rmb-contact-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: clamp(32px, 5vw, 64px);
    align-items: start;
}
.rmb-contact-card {
    display: flex;
    gap: 18px;
    align-items: flex-start;
    background: #fff;
    border: 1px solid var(--rmb-border);
    border-radius: var(--rmb-radius);
    padding: 22px 24px;
    margin-bottom: 16px;
    transition: transform var(--rmb-speed) var(--rmb-ease), box-shadow var(--rmb-speed) var(--rmb-ease);
}
.rmb-contact-card:hover { transform: translateY(-3px); box-shadow: var(--rmb-shadow); }
.rmb-contact-card .rmb-card-icon { margin-bottom: 0; width: 46px; height: 46px; }
.rmb-contact-card h2 { font-size: 1.05rem; margin-bottom: 4px; }
.rmb-contact-card p { margin: 0; color: var(--rmb-steel); font-size: 0.95rem; }
.rmb-contact-form-box {
    background: #fff;
    border: 1px solid var(--rmb-border);
    border-radius: var(--rmb-radius-lg);
    padding: clamp(26px, 4vw, 40px);
    box-shadow: var(--rmb-shadow);
}

/* Treść stron statycznych (Gutenberg) */
.rmb-page-content { max-width: 800px; margin: 0 auto; font-size: 1.05rem; }
.rmb-page-content h2 { font-size: 1.6rem; margin-top: 1.6em; }
.rmb-page-content h3 { font-size: 1.25rem; margin-top: 1.4em; }

/* =========================================================
   16b. PODSTRONY TREŚCIOWE — sekcje składane z treści edytora
   (formater: inc/content-formatter.php)
   ========================================================= */
.rmb-cs { padding: clamp(40px, 5.5vw, 64px) 0; }
.rmb-cs--soft { background: var(--rmb-bg-soft); }

/* akordeon FAQ osadzony w treści strony (formater) */
.rmb-cs-inner > .rmb-faq--inline { max-width: 780px; margin: 24px 0 0; }

/* zawartość czytelna: tekst zwężony, siatki pełna szerokość */
.rmb-cs-inner > h2,
.rmb-cs-inner > h3,
.rmb-cs-inner > h4,
.rmb-cs-inner > p,
.rmb-cs-inner > ul,
.rmb-cs-inner > ol,
.rmb-cs-inner > blockquote,
.rmb-cs-text { max-width: 780px; }

.rmb-cs h2 {
    font-size: clamp(1.6rem, 2.6vw, 2.1rem);
    margin-bottom: 0.7em;
    position: relative;
    padding-bottom: 14px;
}
.rmb-cs h2::after {
    content: '';
    position: absolute;
    left: 0; bottom: 0;
    width: 56px; height: 4px;
    border-radius: 4px;
    background: var(--rmb-primary);
}
.rmb-cs h3 { margin-top: 1.5em; }
.rmb-cs h4 {
    margin-top: 1.5em;
    font-size: 0.85rem;
    font-weight: 900;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--rmb-primary);
}
.rmb-cs p { color: var(--rmb-steel); }

/* listy: usługi dostają "ptaszki" w dwóch kolumnach */
.rmb-designed--usluga .rmb-cs ul:not(.rmb-modules-grid) {
    list-style: none;
    padding: 0;
    margin: 20px 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 10px 28px;
}
.rmb-designed--usluga .rmb-cs ul:not(.rmb-modules-grid) > li {
    position: relative;
    padding: 4px 0 4px 30px;
    color: var(--rmb-steel);
}
.rmb-designed--usluga .rmb-cs ul:not(.rmb-modules-grid) > li::before {
    content: '';
    position: absolute;
    left: 0; top: 0.55em;
    width: 18px; height: 18px;
    background-color: var(--rmb-primary);
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* strony ogólne: eleganckie markery */
.rmb-designed--page .rmb-cs ul { padding-left: 22px; color: var(--rmb-steel); }
.rmb-designed--page .rmb-cs ul li { margin-bottom: 0.5em; }
.rmb-designed--page .rmb-cs ul li::marker { color: var(--rmb-primary); }

/* karty modułów programu ("01. Tytuł" + opis) */
.rmb-modules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 20px;
    margin-top: 36px;
}
.rmb-module-card {
    position: relative;
    background: #fff;
    border: 1px solid var(--rmb-border);
    border-radius: var(--rmb-radius-lg);
    padding: 26px 24px 22px;
    transition: transform var(--rmb-speed) var(--rmb-ease), box-shadow var(--rmb-speed) var(--rmb-ease), border-color var(--rmb-speed) var(--rmb-ease);
}
.rmb-module-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--rmb-shadow-lg);
    border-color: rgba(124, 34, 48, 0.25);
}
.rmb-module-num {
    display: block;
    font-size: 2.4rem;
    font-weight: 900;
    line-height: 1;
    color: rgba(124, 34, 48, 0.18);
    margin-bottom: 10px;
    font-variant-numeric: tabular-nums;
}
.rmb-module-card h3 { margin: 0 0 8px; font-size: 1.12rem; }
.rmb-module-card p { margin: 0; font-size: 0.93rem; color: var(--rmb-steel); }

/* cytat klienta jako karta z dużym cudzysłowem */
.rmb-cs blockquote {
    position: relative;
    margin: 28px 0;
    padding: 30px 32px 26px 60px;
    background: #fff;
    border: 1px solid var(--rmb-border);
    border-left: 4px solid var(--rmb-primary);
    border-radius: var(--rmb-radius);
    box-shadow: var(--rmb-shadow-sm);
    font-size: 1.05rem;
    color: var(--rmb-text);
}
.rmb-cs blockquote::before {
    content: '\201D';
    position: absolute;
    left: 18px; top: 6px;
    font-size: 3.4rem;
    font-weight: 900;
    line-height: 1;
    color: var(--rmb-primary-tint);
    color: rgba(124, 34, 48, 0.25);
}
.rmb-cs blockquote p { color: inherit; }
.rmb-cs blockquote p:last-child { margin-bottom: 0; }

/* pierwsza sekcja usługi ze zdjęciem obok tekstu */
.rmb-cs-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: clamp(28px, 4vw, 56px);
    align-items: center;
}
.rmb-cs-grid > * { min-width: 0; }
.rmb-cs-media img {
    border-radius: var(--rmb-radius-lg);
    box-shadow: var(--rmb-shadow-lg);
    width: 100%;
    object-fit: cover;
}

/* hero usługi: przyciski + pigułki z faktami */
.rmb-usluga-hero .rmb-hero-actions { margin: 26px 0 0; }
.rmb-usluga-facts {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 0;
    margin: 28px 0 0;
}
.rmb-fact {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 16px;
    background: #fff;
    border: 1px solid var(--rmb-border);
    border-radius: 100px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--rmb-steel);
    box-shadow: var(--rmb-shadow-sm);
}
.rmb-fact svg { color: var(--rmb-primary); flex-shrink: 0; }

@media (max-width: 900px) {
    .rmb-cs-grid { grid-template-columns: 1fr; }
    .rmb-cs-media { order: -1; }
}

/* Stopka */
.rmb-footer {
    background: #17130F;
    color: #B7B2AC;
    padding: 72px 0 0;
    font-size: 0.95rem;
}
.rmb-footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
    gap: 40px;
    padding-bottom: 56px;
}
.rmb-footer h3 {
    color: #fff;
    font-size: 0.85rem;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 20px;
}
.rmb-footer-brand img { height: 44px; margin-bottom: 18px; filter: brightness(0) invert(1); }
.rmb-footer-brand p { max-width: 300px; }
.rmb-footer ul { list-style: none; padding: 0; margin: 0; }
.rmb-footer ul li { margin-bottom: 11px; }
.rmb-footer a { color: #B7B2AC; }
.rmb-footer a:hover { color: #fff; }
.rmb-footer-contact li { display: flex; gap: 10px; align-items: flex-start; }
.rmb-footer-contact svg { flex-shrink: 0; margin-top: 4px; color: var(--rmb-primary); opacity: 0.9; }
.rmb-footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 22px 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px;
    font-size: 0.85rem;
}
.rmb-footer-legal { display: flex; flex-wrap: wrap; gap: 20px; }

/* 404 */
.rmb-404 { text-align: center; padding: clamp(80px, 12vw, 140px) 0; }
.rmb-404-code { font-size: clamp(5rem, 14vw, 9rem); font-weight: 900; color: var(--rmb-primary-tint); line-height: 1; -webkit-text-stroke: 2px var(--rmb-primary); }

/* =========================================================
   17. RESPONSYWNOŚĆ
   ========================================================= */
@media (max-width: 1024px) {
    .rmb-services-grid { grid-template-columns: repeat(2, 1fr); }
    .rmb-industries-grid { grid-template-columns: repeat(3, 1fr); }
    .rmb-blog-grid { grid-template-columns: repeat(2, 1fr); }
    .rmb-footer-grid { grid-template-columns: 1fr 1fr; }
}

/* Nawigacja mobilna — próg 1080px, bo pełne menu (8 pozycji + CTA
   + ikony social) nie mieści się poniżej tej szerokości */
@media (max-width: 1080px) {
    .rmb-burger { display: flex; }
    /* Panel rozwija się pod nagłówkiem na wysokość zawartości —
       wszystkie pozycje widać od razu, bez wewnętrznego przewijania.
       max-height chroni tylko bardzo niskie ekrany. */
    .rmb-nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0; right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 2px;
        background: #fff;
        padding: 10px 20px 18px;
        max-height: calc(100vh - 90px);
        overflow-y: auto;
        border-top: 1px solid var(--rmb-border);
        box-shadow: var(--rmb-shadow-lg);
        z-index: 999;
        animation: rmbMenuIn 0.25s var(--rmb-ease);
    }
    .rmb-nav-menu.is-open { display: flex; }
    @keyframes rmbMenuIn {
        from { opacity: 0; transform: translateY(-8px); }
        to { opacity: 1; transform: none; }
    }
    .rmb-nav-link { padding: 11px 8px; font-size: 1rem; font-weight: 400; border-bottom: 1px solid var(--rmb-gray-light); border-radius: 0; }
    .rmb-nav-link::after { display: none; }
    .rmb-nav-cta { margin: 12px 0 0; justify-content: center; padding: 13px; }
    .rmb-nav-socials { margin: 12px 0 0; padding: 14px 0 0; border-left: 0; border-top: 1px solid var(--rmb-border); justify-content: center; gap: 12px; }
    .rmb-nav-socials a { width: 42px; height: 42px; background: var(--rmb-primary-tint); color: var(--rmb-primary); }
    .rmb-dropdown { width: 100%; }
    .rmb-dropdown-toggle { width: 100%; justify-content: space-between; padding: 11px 8px; font-size: 1rem; font-weight: 700; border-bottom: 1px solid var(--rmb-gray-light); }
    .rmb-dropdown-content {
        position: static;
        min-width: 0;
        border: 0;
        box-shadow: none;
        padding: 0 0 0 16px;
        opacity: 1;
        visibility: hidden;
        max-height: 0;
        transform: none;
        transition: max-height 0.35s var(--rmb-ease);
        overflow: hidden;
    }
    .rmb-dropdown.is-open .rmb-dropdown-content { visibility: visible; max-height: 500px; }
}

@media (max-width: 900px) {
    .rmb-hero-grid,
    .rmb-about-grid,
    .rmb-contact-grid,
    .rmb-lead-box { grid-template-columns: 1fr; }
    .rmb-hero-image { order: -1; margin-top: 0; }
    .rmb-about-image::before { display: none; }
    .rmb-cases-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
    .rmb-services-grid,
    .rmb-blog-grid { grid-template-columns: 1fr; }
    .rmb-industries-grid { grid-template-columns: 1fr; }
    .rmb-footer-grid { grid-template-columns: 1fr; gap: 32px; }
    .rmb-hero-actions .rmb-btn { width: 100%; }
    .rmb-lead-form-row { flex-direction: column; }
    .rmb-stats { flex-wrap: wrap; gap: 24px; }
    .rmb-author-box { flex-direction: column; text-align: center; }
}

/* =========================================================
   18. PREFERS-REDUCED-MOTION
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    .rmb-reveal, .rmb-reveal-stagger > * { opacity: 1; transform: none; }
}

/* =========================================================
   19. WORDPRESS CORE
   ========================================================= */
.alignwide { max-width: 1000px; margin-left: auto; margin-right: auto; }
.alignfull { width: 100%; }
.aligncenter { margin-left: auto; margin-right: auto; }
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: 0.85rem; color: var(--rmb-muted); text-align: center; margin-top: 8px; }
.sticky { display: block; }
.bypostauthor { display: block; }
