/* ================================================
   RENPOL by EDUKOWSKI.PL — Główny arkusz stylów
   ================================================ */

/* --- Google Fonts import --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Syne:wght@500;700;800&display=swap');

/* --- Zmienne CSS (design tokens) --- */
:root {
    --brand-50:     #f8f9fa;
    --brand-100:    #eef1f4;
    --brand-400:    #8ca3b3;
    --brand-600:    #4d6370;
    --brand-800:    #3a4a54;
    --brand-900:    #282828;
    --brand-accent: #e94e51;
    --white:        #ffffff;
    --gray-500:     #6b7280;
    --gray-300:     #d1d5db;
    --gray-400:     #9ca3af;

    --font-sans:    'Inter', sans-serif;
    --font-display: 'Syne', sans-serif;

    --radius-sm:   0.5rem;
    --radius-md:   0.75rem;
    --radius-lg:   1rem;
    --radius-xl:   1.5rem;
    --radius-2xl:  2rem;
    --radius-3xl:  3rem;
    --radius-full: 9999px;

    --shadow-sm:  0 1px 2px rgba(0,0,0,0.05);
    --shadow-md:  0 4px 16px rgba(0,0,0,0.07);
    --shadow-lg:  0 8px 32px rgba(0,0,0,0.10);
    --shadow-xl:  0 20px 48px rgba(0,0,0,0.12);

    --transition: 0.3s ease;
    --max-width: 1280px;
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-sans);
    background-color: var(--brand-50);
    color: var(--brand-900);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; font-family: var(--font-sans); border: none; background: none; padding: 0; line-height: 1; -webkit-appearance: none; appearance: none; }
::selection { background: var(--brand-600); color: var(--white); }

/* ================================================
   UTILITY CLASSES
   ================================================ */
.container {
    max-width: var(--max-width);
    margin-inline: auto;
    padding-inline: clamp(1rem, 4vw, 2rem);
}

.font-display { font-family: var(--font-display); }

.text-gradient {
    background: linear-gradient(135deg, var(--brand-900) 0%, var(--brand-600) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.glass-nav {
    background: rgba(255,255,255,0.88);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(255,255,255,0.3);
}

.glass-card {
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255,255,255,0.5);
    box-shadow: 0 4px 30px rgba(0,0,0,0.05);
}

/* ================================================
   ANIMACJE
   ================================================ */
@keyframes blob {
    0%   { transform: translate(0px, 0px) scale(1); }
    33%  { transform: translate(30px, -50px) scale(1.1); }
    66%  { transform: translate(-20px, 20px) scale(0.9); }
    100% { transform: translate(0px, 0px) scale(1); }
}
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-15px); }
}
@keyframes ping {
    75%, 100% { transform: scale(2); opacity: 0; }
}
@keyframes spin {
    to { transform: rotate(360deg); }
}
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}

.animate-blob   { animation: blob 10s infinite; }
.animate-float  { animation: float 6s ease-in-out infinite; }
.animate-ping   { animation: ping 1.5s cubic-bezier(0,0,.2,1) infinite; }
.animate-spin-slow { animation: spin 20s linear infinite; }
.delay-2000     { animation-delay: 2s; }
.delay-4000     { animation-delay: 4s; }
.fade-in-up     { animation: fadeInUp 0.7s ease both; }

/* ================================================
   TOP BAR
   ================================================ */
.renpol-topbar {
    background: var(--brand-900);
    color: var(--white);
    font-size: 0.75rem;
    font-weight: 500;
    padding: 0.5rem 0;
    position: relative;
    z-index: 50;
}

.renpol-topbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.topbar-contacts {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.topbar-contacts a {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    color: rgba(255,255,255,0.8);
    transition: color var(--transition);
}
.topbar-contacts a:hover { color: var(--white); }
.topbar-contacts svg { color: var(--brand-accent); flex-shrink: 0; }
.topbar-contacts .hide-sm { display: none; }

/* ── Language Toggle — premium pill z flagami ── */
.lang-toggle {
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.lang-toggle__track {
    position: relative;
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.10);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    padding: 3px;
    gap: 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.25), inset 0 1px 0 rgba(255,255,255,0.08);
    backdrop-filter: blur(6px);
}

/* Sliding white pill indicator */
.lang-toggle__slider {
    position: absolute;
    top: 3px;
    left: 3px;
    width: calc(50% - 3px);
    bottom: 3px;
    background: linear-gradient(135deg, #ffffff 0%, #f0f0f0 100%);
    border-radius: 999px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.20), 0 1px 0 rgba(255,255,255,0.5);
    transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    z-index: 0;
}
.lang-toggle__slider--right {
    transform: translateX(100%);
}

/* Each language option */
.lang-toggle__opt {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px 4px 7px;
    border-radius: 999px;
    text-decoration: none;
    transition: color 0.22s ease, opacity 0.22s ease;
    cursor: pointer;
    white-space: nowrap;
    color: rgba(255, 255, 255, 0.55);
    min-width: 52px;
    justify-content: center;
}
.lang-toggle__opt--active {
    color: #1a1a2e;
}
.lang-toggle__opt:not(.lang-toggle__opt--active):hover {
    color: rgba(255, 255, 255, 0.90);
    background: rgba(255, 255, 255, 0.10);
}

/* Flag SVG */
.lang-flag {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    border-radius: 3px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.30);
    line-height: 0;
    width: 20px;
    height: 14px;
}
.lang-flag svg {
    display: block;
    width: 100%;
    height: 100%;
}

/* Label text */
.lang-label {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    line-height: 1;
    transition: color 0.22s ease;
}

/* Remove old styles if still in DOM */
.topbar-lang, .lang-btn, .lang-sep { display: none !important; }



/* ================================================
   HEADER / NAWIGACJA
   ================================================ */

.renpol-header {
    position: sticky;
    top: 0;
    z-index: 100;
    width: 100%;
    transition: box-shadow var(--transition), background var(--transition);
    background: var(--white);
}
/* Admin bar offset (tylko dla zalogowanych) */
body.admin-bar .renpol-header { top: 32px; }
@media screen and (max-width: 782px) {
    body.admin-bar .renpol-header { top: 46px; }
}

.renpol-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 5rem;
    gap: 1rem;
}

/* Logo */
.site-logo {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.875rem;
    letter-spacing: -0.05em;
    color: var(--brand-900);
    line-height: 1;
    flex-shrink: 0;
}
.site-logo span { color: var(--brand-accent); }

/* Nav Desktop */
.main-nav {
    display: none;
    align-items: center;
    gap: 0.25rem;
}
.main-nav a {
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--brand-600);
    border-radius: var(--radius-full);
    transition: background var(--transition), color var(--transition);
}
.main-nav a:hover {
    background: rgba(238,241,244,0.8);
    color: var(--brand-600);
}

/* Dropdown podmenu */
.main-nav > ul,
.main-nav > .main-nav__list {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    list-style: none;
    margin: 0;
    padding: 0;
}
.main-nav li {
    position: relative;
    list-style: none;
}
.main-nav .sub-menu {
    display: flex;
    flex-direction: column;
    gap: 0;
    position: absolute;
    top: calc(100% + 0.35rem);
    left: 50%;
    transform: translateX(-50%) translateY(8px);
    min-width: 230px;
    background: #fff;
    border: 1px solid rgba(0,0,0,0.09);
    border-radius: 14px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.13);
    padding: 0.5rem;
    z-index: 9999;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s;
    list-style: none;
    margin: 0;
}
/* Mostek — zapobiega "wypadaniu" z hover przy przesuwaniu kursora */
.main-nav .sub-menu::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 0; right: 0;
    height: 12px;
}
.main-nav li:hover > .sub-menu,
.main-nav li:focus-within > .sub-menu {
    visibility: visible;
    opacity: 1;
    pointer-events: all;
    transform: translateX(-50%) translateY(0);
}
.main-nav .sub-menu li { width: 100%; }
.main-nav .sub-menu a {
    display: block;
    padding: 0.6rem 1.1rem;
    font-size: 0.84rem;
    font-weight: 600;
    color: var(--brand-600);
    border-radius: 9px;
    white-space: nowrap;
    background: transparent;
    transition: background 0.15s ease, color 0.15s ease;
}
.main-nav .sub-menu a:hover {
    background: var(--brand-50);
    color: var(--brand-600);
}
/* Strzałka przy pozycji z podmenu */
.main-nav li.menu-item-has-children > a::after {
    content: " ▾";
    font-size: 0.7rem;
    opacity: 0.55;
    margin-left: 2px;
    display: inline-block;
    transition: transform 0.2s ease;
}
.main-nav li.menu-item-has-children:hover > a::after {
    transform: rotate(180deg);
}

.header-cta { display: none; gap: 0.625rem; align-items: center; }
.btn-cta {
    background: var(--brand-600);
    color: var(--white);
    padding: 0.625rem 1.5rem;
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    font-weight: 700;
    line-height: 1.2;
    transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
    box-shadow: var(--shadow-md);
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    border: 1.5px solid transparent;
    -webkit-appearance: none;
    appearance: none;
    white-space: nowrap;
    vertical-align: middle;
}
.btn-cta:hover {
    background: var(--brand-900);
    transform: translateY(-1px);
    box-shadow: var(--shadow-lg);
}
/* Przycisk Katalog — outline w headerze */
.btn-cta--catalog {
    background: transparent;
    color: var(--brand-600);
    border: 1.5px solid var(--brand-600);
    box-shadow: none;
    font-weight: 600;
}
.btn-cta--catalog:hover {
    background: var(--brand-600);
    border-color: var(--brand-600);
    color: var(--white);
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

/* Hamburger */
.menu-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 0.5rem;
    cursor: pointer;
    background: none;
    border: none;
}
.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--brand-900);
    border-radius: 2px;
    transition: transform var(--transition), opacity var(--transition);
}
.menu-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── MOBILE MENU OVERLAY ─────────────────────────────────────────── */
.mobile-menu-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(10, 14, 18, 0.5);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    z-index: 998;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.mobile-menu-overlay.active {
    display: block;
    opacity: 1;
}

/* ── MOBILE MENU DRAWER (z PRAWEJ) ───────────────────────────────── */
.mobile-menu {
    position: fixed;
    top: 0;
    right: 0;
    left: auto;
    height: 100dvh;
    width: min(320px, 88vw);
    background: #ffffff;
    z-index: 999;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -4px 0 40px rgba(0,0,0,0.15);
    overflow: hidden;
}
.mobile-menu.open {
    transform: translateX(0);
}

/* ── HEADER DRAWERA ── */
.mobile-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.25rem 1rem 1.25rem;
    border-bottom: 2px solid var(--brand-100);
    flex-shrink: 0;
    background: #ffffff;
}
.mobile-logo-link {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    color: var(--brand-900);
    line-height: 1;
    text-decoration: none;
}
.mobile-logo-link span { color: var(--brand-accent); }

/* Jeśli logo jest obrazkiem — nadaj mu właściwy rozmiar */
.mobile-logo-link img {
    height: 36px;
    width: auto;
    max-width: 150px;
    object-fit: contain;
    display: block;
}

.mobile-menu-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background: var(--brand-100);
    color: var(--brand-600);
    border: none;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
    flex-shrink: 0;
}
.mobile-menu-close:hover {
    background: var(--brand-accent);
    color: #ffffff;
    transform: rotate(90deg);
}

/* ── BODY DRAWERA ── */
.mobile-menu-body {
    flex: 1;
    overflow-y: auto;
    overscroll-behavior: contain;
    background: #ffffff;
}

/* Reset list */
.mobile-menu-body ul,
.mobile-menu-body .mobile-nav-list {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    display: block !important;
    width: 100%;
}

/* Każde li to pełna szerokość, pod sobą */
.mobile-menu-body li {
    list-style: none !important;
    display: block !important;
    width: 100%;
    margin: 0;
    padding: 0;
    border-bottom: 1px solid var(--brand-100);
}
.mobile-menu-body li:last-child {
    border-bottom: none;
}

/* Główne linki menu */
.mobile-menu-body li > a {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 1rem 1.25rem;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--brand-900);
    background: transparent;
    border: none;
    border-left: 3px solid transparent;
    text-decoration: none;
    box-sizing: border-box;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.mobile-menu-body li > a:hover {
    background: var(--brand-50);
    border-left-color: var(--brand-accent);
    color: var(--brand-600);
}
.mobile-menu-body li.current-menu-item > a {
    border-left-color: var(--brand-accent);
    color: var(--brand-accent);
    background: rgba(233, 78, 81, 0.05);
}

/* Strzałka przy elementach z podmenu */
.mobile-menu-body li.menu-item-has-children > a::after {
    content: '';
    display: block;
    flex-shrink: 0;
    width: 8px;
    height: 8px;
    border-right: 2px solid var(--brand-400);
    border-bottom: 2px solid var(--brand-400);
    transform: rotate(45deg);
    transition: transform 0.22s ease;
    margin-left: auto;
}
.mobile-menu-body li.menu-item-has-children.sub-open > a::after {
    transform: rotate(-135deg);
}
.mobile-menu-body li.menu-item-has-children.sub-open > a {
    background: var(--brand-50);
    border-left-color: var(--brand-accent);
}

/* Podmenu — ukryte domyślnie, rozwijane przez JS */
.mobile-menu-body .sub-menu {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    display: block !important;
    width: 100%;
    background: var(--brand-50);
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.3s ease;
    border-top: 1px solid var(--brand-100);
}
.mobile-menu-body .sub-menu li {
    border-bottom: 1px solid rgba(0,0,0,0.05) !important;
}
.mobile-menu-body .sub-menu li:last-child {
    border-bottom: none !important;
}
.mobile-menu-body .sub-menu li > a {
    padding: 0.75rem 1.25rem 0.75rem 2.25rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--brand-600);
    border-left: 3px solid transparent;
}
.mobile-menu-body .sub-menu li > a:hover {
    background: rgba(0,0,0,0.03);
    border-left-color: var(--brand-accent);
    color: var(--brand-900);
}
.mobile-menu-body .sub-menu li > a::after {
    display: none !important;
}

/* ── FOOTER DRAWERA ── */
.mobile-menu-footer {
    flex-shrink: 0;
    padding: 1rem 1.25rem;
    border-top: 2px solid var(--brand-100);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    background: #ffffff;
}
.mobile-cta {
    display: block !important;
    text-align: center;
    width: 100%;
    padding: 0.875rem 1.5rem;
    border-radius: var(--radius-md);
    font-size: 0.9375rem;
    font-weight: 700;
    background: var(--brand-accent) !important;
    color: #ffffff !important;
    transition: background 0.2s ease, transform 0.2s ease;
    box-shadow: 0 4px 16px rgba(233,78,81,0.25);
}
.mobile-cta:hover {
    background: #c93d40 !important;
    transform: translateY(-1px);
}
.mobile-phone-link {
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--brand-600);
    padding: 0.4rem;
    text-decoration: none;
    transition: color 0.15s ease;
}
.mobile-phone-link:hover { color: var(--brand-accent); }
.mobile-phone-link svg { color: var(--brand-accent); flex-shrink: 0; }

/* ── Mobile language toggle ──────────────────────────────────── */
.mobile-lang-toggle {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    border-bottom: 1px solid var(--brand-100);
    padding-block: 0.875rem;
}

.mobile-lang-label {
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--brand-400);
}

/* Override track colors for white mobile drawer */
.mobile-lang-track {
    background: var(--brand-100) !important;
    border-color: var(--brand-200, #d4dde4) !important;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.08) !important;
}

/* Slider na białym tle — ciemny */
.mobile-lang-track .lang-toggle__slider {
    background: linear-gradient(135deg, var(--brand-900) 0%, var(--brand-800) 100%) !important;
    box-shadow: 0 2px 6px rgba(0,0,0,0.20) !important;
}

/* Opcje na białym tle */
.mobile-lang-track .lang-toggle__opt {
    color: var(--brand-400);
    min-width: 62px;
    padding: 6px 12px 6px 9px;
}
.mobile-lang-track .lang-toggle__opt--active-dark {
    color: #ffffff !important;
}
.mobile-lang-track .lang-toggle__opt:not(.lang-toggle__opt--active):hover {
    color: var(--brand-600);
    background: rgba(0,0,0,0.04);
}

/* Większa flaga na mobile */
.mobile-lang-track .lang-flag {
    width: 22px;
    height: 15px;
}

/* Ukryj topbar na małych ekranach (lang jest w menu mobilnym) */
@media (max-width: 639px) {
    .renpol-topbar {
        display: none;
    }
}


/* ================================================
   HERO SECTION
   ================================================ */
.renpol-hero {
    position: relative;
    padding-top: clamp(3rem, 6vw, 6rem);
    padding-bottom: clamp(4rem, 8vw, 8rem);
    overflow: hidden;
    background: var(--white);
}

/* blobs */
.blob {
    position: absolute;
    border-radius: 9999px;
    filter: blur(80px);
    mix-blend-mode: multiply;
    pointer-events: none;
}
.blob-1 {
    width: clamp(250px, 40vw, 500px);
    height: clamp(250px, 40vw, 500px);
    background: rgba(77,99,112,0.18);
    top: -5rem;
    left: -5rem;
    opacity: 0.7;
}
.blob-2 {
    width: clamp(220px, 35vw, 450px);
    height: clamp(220px, 35vw, 450px);
    background: rgba(233,78,81,0.09);
    top: 8rem;
    right: -5rem;
    opacity: 0.7;
}
.blob-3 {
    width: clamp(300px, 50vw, 600px);
    height: clamp(300px, 50vw, 600px);
    background: rgba(140,163,179,0.18);
    bottom: -8rem;
    left: 33%;
    opacity: 0.6;
    filter: blur(100px);
}

.hero-inner {
    position: relative;
    z-index: 10;
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
}

.hero-content { max-width: 42rem; }

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--white);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-full);
    margin-bottom: 1.5rem;
    border: 1px solid var(--brand-100);
    box-shadow: var(--shadow-sm);
}
.badge-dot {
    position: relative;
    display: flex;
    width: 0.5rem;
    height: 0.5rem;
}
.badge-dot-ping {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: var(--brand-accent);
    opacity: 0.75;
}
.badge-dot-core {
    position: relative;
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background: var(--brand-accent);
}
.hero-badge span {
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--brand-600);
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 6vw, 3.75rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.03em;
    margin-bottom: 1.5rem;
    color: var(--brand-900);
}

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--gray-500);
    margin-bottom: 2rem;
    line-height: 1.7;
    font-weight: 300;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; }

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: var(--brand-600);
    color: var(--white);
    border-radius: var(--radius-md);
    font-weight: 700;
    transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
    box-shadow: var(--shadow-md);
}
.btn-primary:hover {
    background: var(--brand-900);
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: var(--brand-50);
    color: var(--brand-900);
    border: 1px solid var(--brand-100);
    border-radius: var(--radius-md);
    font-weight: 700;
    transition: background var(--transition), transform var(--transition);
}
.btn-secondary:hover {
    background: var(--brand-100);
    transform: translateY(-2px);
}

/* Hero Image Column */
.hero-image-col {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-img-wrapper {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 28rem;
}

.hero-img-wrapper img {
    width: 100%;
    height: 31.25rem;
    object-fit: cover;
    border-radius: var(--radius-3xl);
    box-shadow: var(--shadow-xl);
    border: 4px solid var(--white);
}

.hero-float-card {
    position: absolute;
    padding: 1rem;
    border-radius: var(--radius-xl);
    display: none;
    align-items: center;
    gap: 0.75rem;
}
.hero-float-card-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.hero-float-card-icon.light {
    background: var(--brand-50);
    color: var(--brand-accent);
}
.hero-float-card-icon.dark {
    background: var(--brand-900);
    color: var(--white);
}
.hero-float-card h5 {
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--brand-900);
    letter-spacing: 0.05em;
}
.hero-float-card p {
    font-size: 0.6875rem;
    color: var(--brand-600);
    font-weight: 500;
}
.card-left  { left: -2rem; top: 25%; }
.card-right { right: -3rem; bottom: 25%; }

.hero-orbit {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 0;
}
.hero-orbit div {
    width: clamp(280px, 40vw, 450px);
    height: clamp(280px, 40vw, 450px);
    border: 1px dashed rgba(77,99,112,0.3);
    border-radius: 50%;
}

/* ================================================
   SEKCJA: SPIDERSUIT KATALOG
   ================================================ */
.renpol-katalog {
    padding: clamp(4rem, 8vw, 6rem) 0;
    background: var(--brand-50);
    border-top: 1px solid var(--brand-100);
}

.section-header-row {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 3.5rem;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 2.5rem);
    font-weight: 700;
    color: var(--brand-900);
    margin-bottom: 0.75rem;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--brand-600);
    line-height: 1.6;
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--brand-600);
    background: var(--white);
    border: 1px solid var(--brand-100);
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-full);
    box-shadow: var(--shadow-sm);
    transition: color var(--transition), transform var(--transition), box-shadow var(--transition);
    white-space: nowrap;
    flex-shrink: 0;
}
.btn-outline:hover {
    color: var(--brand-900);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.product-card {
    background: var(--white);
    border-radius: var(--radius-2xl);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--brand-100);
}

.product-img-col {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    background: var(--brand-50);
    height: 22rem;
    max-height: 22rem;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.product-img-col img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    padding: 0.5rem;
}

.product-info { display: flex; flex-direction: column; flex-grow: 1; }
.product-info h3 {
    font-family: var(--font-display);
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--brand-900);
    margin-bottom: 1rem;
}
.product-info p {
    color: var(--gray-500);
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 2rem;
}

.sizes-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--brand-600);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.75rem;
}
.sizes-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 2.5rem;
}
.size-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border: 1px solid var(--brand-100);
    background: var(--brand-50);
    color: var(--brand-900);
    font-size: 0.875rem;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
}
.size-dot { width: 0.75rem; height: 0.75rem; border-radius: 50%; flex-shrink: 0; }
.dot-yellow  { background: #facc15; }
.dot-red     { background: var(--brand-accent); }
.dot-green   { background: #22c55e; }
.dot-blue    { background: #3b82f6; }

.product-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: auto;
}

/* ================================================
   SEKCJA: ATUTY
   ================================================ */
.renpol-atuty {
    padding: clamp(3.5rem, 7vw, 5rem) 0;
    background: var(--white);
    border-top: 1px solid var(--brand-100);
}

.atuty-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
}

.atut-item { text-align: center; padding: 0 1rem; }

.atut-icon {
    width: 4rem;
    height: 4rem;
    margin: 0 auto 1.5rem;
    background: var(--brand-50);
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--brand-600);
    border: 1px solid var(--brand-100);
    box-shadow: var(--shadow-sm);
}
.atut-item h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--brand-900);
    margin-bottom: 0.75rem;
}
.atut-item p {
    color: var(--gray-500);
    font-size: 0.875rem;
    line-height: 1.7;
}

/* ================================================
   SEKCJA: BIOMECHANIKA (BENTO)
   ================================================ */
.renpol-biomechanika {
    padding: clamp(4rem, 8vw, 6rem) 0;
    background: var(--brand-50);
    border-top: 1px solid var(--brand-100);
    position: relative;
}

.section-intro { margin-bottom: 4rem; max-width: 48rem; }
.section-intro h2 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 2.5rem);
    font-weight: 700;
    color: var(--brand-900);
    margin-bottom: 1.25rem;
}
.section-intro p { font-size: 1.125rem; color: var(--brand-600); line-height: 1.6; }

.bento-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}

.bento-card {
    border-radius: var(--radius-3xl);
    padding: 2rem;
    transition: transform var(--transition), box-shadow var(--transition);
    box-shadow: var(--shadow-sm);
    min-height: 15rem;
}
.bento-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px -10px rgba(40,40,40,0.08);
}

.bento-light {
    background: var(--white);
    border: 1px solid var(--brand-100);
    position: relative;
    overflow: hidden;
}
.bento-light h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--brand-900);
    margin-bottom: 1rem;
}
.bento-light p { font-size: 0.875rem; color: var(--gray-500); line-height: 1.7; }
.bento-light .inner { position: relative; z-index: 10; }

.bento-color {
    background: var(--brand-600);
    color: var(--white);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.bento-color-icon {
    width: 3rem;
    height: 3rem;
    background: rgba(255,255,255,0.1);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: rgba(248,249,250,1);
}
.bento-color h3 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}
.bento-color p { font-size: 0.875rem; color: rgba(255,255,255,0.8); }

.bento-dark {
    background: var(--brand-900);
    color: var(--white);
    border: 1px solid var(--brand-800);
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.bento-dark h3 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}
.bento-dark p { font-size: 0.875rem; color: var(--gray-400); margin-bottom: 1.5rem; }

.bento-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.bento-tag {
    font-size: 0.75rem;
    font-weight: 600;
    background: var(--brand-800);
    color: var(--white);
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
    border: 1px solid rgba(77,99,112,0.3);
}

.bento-img {
    position: relative;
    overflow: hidden;
    min-height: 15rem;
    padding: 0;
}
.bento-img img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}
.bento-img-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, var(--brand-900) 0%, rgba(40,40,40,0.5) 50%, transparent 100%);
}
.bento-img-text {
    position: absolute;
    bottom: 0;
    left: 0;
    padding: 2rem;
    width: 100%;
}
.bento-img-text h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 0.5rem;
}
.bento-img-text p { font-size: 0.875rem; color: var(--gray-300); max-width: 28rem; }

/* ================================================
   SEKCJA: O FIRMIE
   ================================================ */
.renpol-ofirmie {
    padding: clamp(4rem, 8vw, 6rem) 0;
    background: var(--white);
    border-top: 1px solid var(--brand-100);
    position: relative;
}

.ofirmie-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
    align-items: center;
}

.ofirmie-img-col { position: relative; }
.ofirmie-img-col img {
    border-radius: var(--radius-xl);
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    width: 100%;
    position: relative;
    z-index: 10;
    background: #fff;
    padding: 2rem;
    box-sizing: border-box;
    border: 1px solid var(--brand-100);
    max-height: 260px;
    object-fit: contain;
}
.ofirmie-badge {
    position: absolute;
    bottom: -2rem;
    right: -1.5rem;
    background: var(--white);
    padding: 1.5rem;
    border-radius: var(--radius-3xl);
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--brand-50);
    max-width: 15rem;
    z-index: 20;
}
.ofirmie-badge .year {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--brand-900);
    line-height: 1;
    margin-bottom: 0.25rem;
}
.ofirmie-badge p { font-size: 0.875rem; color: var(--brand-600); font-weight: 500; }
.ofirmie-glow {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 100%; height: 100%;
    background: rgba(77,99,112,0.1);
    filter: blur(60px);
    border-radius: 50%;
    z-index: 0;
}

.ofirmie-content h2 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 2.5rem);
    font-weight: 700;
    color: var(--brand-900);
    margin-bottom: 1.5rem;
}
.ofirmie-content p {
    font-size: 1.125rem;
    color: var(--gray-500);
    line-height: 1.7;
    margin-bottom: 1rem;
}

.patent-box {
    background: var(--brand-50);
    border-left: 4px solid var(--brand-accent);
    padding: 1.25rem 1.5rem;
    border-radius: 0 var(--radius-xl) var(--radius-xl) 0;
    box-shadow: var(--shadow-sm);
    margin: 2rem 0;
}
.patent-box-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.25rem;
}
.patent-box-title svg { color: var(--brand-accent); flex-shrink: 0; }
.patent-box-title h4 { font-weight: 700; color: var(--brand-900); }
.patent-box p { font-size: 0.875rem; color: var(--brand-600); font-weight: 500; padding-left: 2rem; }

.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--brand-600);
    font-weight: 700;
    transition: color var(--transition), gap var(--transition);
}
.link-arrow:hover { color: var(--brand-900); gap: 0.75rem; }

/* ================================================
   SEKCJA: CERTYFIKATY
   ================================================ */
.renpol-certyfikaty {
    padding: clamp(4rem, 8vw, 6rem) 0;
    background: var(--brand-50);
    border-top: 1px solid var(--brand-100);
}

.section-header-center {
    text-align: center;
    max-width: 48rem;
    margin: 0 auto 4rem;
}
.section-header-center h2 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 2.5rem);
    font-weight: 700;
    color: var(--brand-900);
    margin-bottom: 1rem;
}
.section-header-center p { font-size: 1.125rem; color: var(--brand-600); }

.certs-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
}

.cert-card {
    background: var(--white);
    padding: 0.5rem;
    border-radius: var(--radius-xl);
    border: 1px solid var(--brand-100);
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 3/4;
    overflow: hidden;
    transition: transform var(--transition), box-shadow var(--transition);
}
.cert-card:hover {
    transform: translateY(-0.5rem);
    box-shadow: var(--shadow-xl);
}
.cert-card img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.5s ease;
}
.cert-card:hover img { transform: scale(1.05); }

/* ================================================
   SEKCJA: WYPOSAŻENIE GABINETÓW
   ================================================ */
.renpol-gabinety {
    padding: clamp(4rem, 8vw, 6rem) 0;
    background: var(--white);
    border-top: 1px solid var(--brand-100);
}

.gabinety-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.gabinet-card {
    background: var(--brand-50);
    padding: 2rem;
    border-radius: var(--radius-3xl);
    border: 1px solid var(--brand-100);
    text-align: center;
    transition: box-shadow var(--transition);
}
.gabinet-card:hover { box-shadow: var(--shadow-lg); }

.gabinet-icon {
    width: 4rem;
    height: 4rem;
    background: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--brand-600);
    margin: 0 auto 1.5rem;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition);
}
.gabinet-card:hover .gabinet-icon { transform: scale(1.1); }

.gabinet-card h3 { font-weight: 700; color: var(--brand-900); font-size: 1.125rem; margin-bottom: 0.5rem; }
.gabinet-card p  { font-size: 0.875rem; color: var(--gray-500); line-height: 1.6; }

/* ================================================
   SEKCJA: SZKOLENIA
   ================================================ */
.renpol-szkolenia {
    padding: clamp(4rem, 8vw, 6rem) 0;
    background: var(--brand-50);
    border-top: 1px solid var(--brand-100);
}

.szkolenia-box {
    background: var(--brand-900);
    border-radius: var(--radius-3xl);
    padding: clamp(2.5rem, 5vw, 4rem);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}
.szkolenia-glow {
    position: absolute;
    top: -6rem;
    right: -6rem;
    width: 24rem;
    height: 24rem;
    background: var(--brand-800);
    border-radius: 50%;
    mix-blend-mode: multiply;
    opacity: 0.5;
    filter: blur(48px);
    pointer-events: none;
}
.szkolenia-inner {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    gap: 3rem;
    align-items: flex-start;
}
.szkolenia-content h2 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 2.5rem);
    font-weight: 700;
    color: var(--white);
    margin-bottom: 1rem;
}
.szkolenia-content > p {
    color: rgba(248,249,250,0.85);
    font-size: 1.125rem;
    line-height: 1.7;
    font-weight: 300;
    margin-bottom: 2rem;
}

.szkolenia-list { display: flex; flex-direction: column; gap: 1rem; }
.szkolenia-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    color: var(--brand-50);
    font-size: 1rem;
    line-height: 1.6;
}
.szkolenia-list li svg { color: var(--brand-accent); flex-shrink: 0; margin-top: 0.2rem; }

.btn-white {
    display: inline-block;
    background: var(--white);
    color: var(--brand-900);
    font-weight: 700;
    padding: 1.25rem 2.5rem;
    border-radius: var(--radius-xl);
    transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
    box-shadow: var(--shadow-lg);
    white-space: nowrap;
    text-align: center;
}
.btn-white:hover {
    background: var(--brand-50);
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
}

/* ================================================
   FOOTER / KONTAKT
   ================================================ */
.renpol-footer {
    background: var(--brand-900);
    color: var(--white);
    padding-top: clamp(4rem, 8vw, 6rem);
    padding-bottom: 3rem;
    border-top: 1px solid var(--brand-800);
}

.footer-main {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-contact h2 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
}
.footer-contact > p {
    color: rgba(248,249,250,0.8);
    font-size: 1.125rem;
    line-height: 1.7;
    font-weight: 300;
    max-width: 28rem;
    margin-bottom: 2.5rem;
}

.contact-list { display: flex; flex-direction: column; gap: 1.25rem; }
.contact-list a {
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: color var(--transition);
}
.contact-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background: var(--brand-800);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background var(--transition);
}
.contact-list a:hover .contact-icon { background: var(--brand-600); }
.contact-list span {
    font-weight: 500;
    color: rgba(248,249,250,0.8);
    transition: color var(--transition);
}
.contact-list a:hover span { color: var(--white); }

/* Formularz kontaktowy */
.footer-form-wrap {
    background: rgba(58,74,84,0.3);
    border: 1px solid rgba(58,74,84,0.5);
    border-radius: var(--radius-2xl);
    padding: clamp(2rem, 4vw, 2.5rem);
}
.form-label {
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--brand-400);
    display: block;
    margin-bottom: 1.5rem;
}
.renpol-form { display: flex; flex-direction: column; gap: 1.5rem; }
.form-row { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }

.form-input,
.form-textarea {
    width: 100%;
    background: rgba(40,40,40,0.5);
    border: 1px solid var(--brand-800);
    border-radius: var(--radius-md);
    padding: 1rem 1.25rem;
    font-size: 0.875rem;
    color: var(--white);
    font-family: var(--font-sans);
    transition: border-color var(--transition);
    outline: none;
    resize: none;
}
.form-input::placeholder,
.form-textarea::placeholder { color: rgba(77,99,112,0.7); }
.form-input:focus,
.form-textarea:focus { border-color: var(--brand-600); }

.btn-submit {
    width: 100%;
    background: var(--brand-600);
    color: var(--white);
    font-weight: 700;
    font-size: 1rem;
    padding: 1rem;
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
    box-shadow: var(--shadow-md);
}
.btn-submit:hover {
    background: var(--brand-900);
    transform: translateY(-1px);
    box-shadow: var(--shadow-lg);
}

/* ---- Contact Form 7 — stylowanie jak oryginalny formularz ---- */

/* Wiersz z dwoma polami obok siebie (imię + email) */
.renpol-cf7-wrap .cf7-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    grid-column: 1 / -1;
}
.renpol-cf7-wrap .cf7-row .wpcf7-form-control-wrap { display: block; }
@media (max-width: 600px) {
    .renpol-cf7-wrap .cf7-row { grid-template-columns: 1fr; }
}

/* CF7 v6: wrapper i formularz */
.renpol-cf7-wrap .wpcf7 { margin: 0; }
.renpol-cf7-wrap .wpcf7-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.85rem;
}

/* CF7 owija tagi w <p> — resetujemy margin */
.renpol-cf7-wrap .wpcf7-form > p {
    margin: 0;
    display: flex;
    flex-direction: column;
}

/* Pole 1 (imię) i 2 (email) — każde po jednej kolumnie */
.renpol-cf7-wrap .wpcf7-form > p:nth-child(1),
.renpol-cf7-wrap .wpcf7-form > p:nth-child(2) {
    grid-column: span 1;
}

/* Pole 3+ (telefon, textarea, submit, response) — pełna szerokość */
.renpol-cf7-wrap .wpcf7-form > p:nth-child(n+3),
.renpol-cf7-wrap .wpcf7-response-output {
    grid-column: 1 / -1;
}

/* Skryte pola CF7 niech nie zajmują miejsca w gridzie */
.renpol-cf7-wrap fieldset.hidden-fields-container {
    display: contents;
}
.renpol-cf7-wrap fieldset.hidden-fields-container input {
    display: none;
}

/* Pola tekstowe CF7 — identyczne z .form-input */
.renpol-cf7-wrap input[type="text"],
.renpol-cf7-wrap input[type="email"],
.renpol-cf7-wrap input[type="tel"] {
    width: 100%;
    background: rgba(40,40,40,0.5);
    border: 1px solid var(--brand-800);
    border-radius: var(--radius-md);
    padding: 1rem 1.25rem;
    font-size: 0.875rem;
    color: var(--white);
    font-family: var(--font-sans);
    transition: border-color var(--transition);
    outline: none;
    box-sizing: border-box;
}
.renpol-cf7-wrap input[type="text"]::placeholder,
.renpol-cf7-wrap input[type="email"]::placeholder,
.renpol-cf7-wrap input[type="tel"]::placeholder { color: rgba(180,180,200,0.5); }
.renpol-cf7-wrap input[type="text"]:focus,
.renpol-cf7-wrap input[type="email"]:focus,
.renpol-cf7-wrap input[type="tel"]:focus { border-color: var(--brand-600); box-shadow: 0 0 0 3px rgba(192,57,43,0.15); }

/* Textarea CF7 */
.renpol-cf7-wrap textarea {
    width: 100%;
    background: rgba(40,40,40,0.5);
    border: 1px solid var(--brand-800);
    border-radius: var(--radius-md);
    padding: 1rem 1.25rem;
    font-size: 0.875rem;
    color: var(--white);
    font-family: var(--font-sans);
    transition: border-color var(--transition);
    outline: none;
    resize: none;
    height: 90px !important;
    min-height: unset;
    box-sizing: border-box;
}
.renpol-cf7-wrap textarea::placeholder { color: rgba(180,180,200,0.5); }
.renpol-cf7-wrap textarea:focus { border-color: var(--brand-600); box-shadow: 0 0 0 3px rgba(192,57,43,0.15); }

/* Span wrapper wokół inputów */
.renpol-cf7-wrap .wpcf7-form-control-wrap {
    display: block;
    width: 100%;
}

/* Przycisk submit CF7 */
.renpol-cf7-wrap input[type="submit"],
.renpol-cf7-wrap .wpcf7-submit {
    width: 100%;
    background: var(--brand-600);
    color: var(--white);
    font-weight: 700;
    font-size: 1rem;
    padding: 1rem;
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    font-family: var(--font-sans);
    transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
    box-shadow: var(--shadow-md);
    box-sizing: border-box;
    margin-top: 0.25rem;
}
.renpol-cf7-wrap input[type="submit"]:hover,
.renpol-cf7-wrap .wpcf7-submit:hover {
    background: var(--brand-900);
    transform: translateY(-1px);
    box-shadow: var(--shadow-lg);
}
.renpol-cf7-wrap .wpcf7-submit:disabled {
    opacity: 0.65; cursor: not-allowed; transform: none;
}

/* Komunikaty CF7 */
.renpol-cf7-wrap .wpcf7-response-output {
    margin: 0;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
    font-size: 0.875rem;
}
.renpol-cf7-wrap .wpcf7-mail-sent-ok {
    background: rgba(34,197,94,0.15) !important;
    color: #4ade80 !important;
    border: 1px solid rgba(34,197,94,0.3) !important;
}
.renpol-cf7-wrap .wpcf7-validation-errors,
.renpol-cf7-wrap .wpcf7-mail-sent-ng,
.renpol-cf7-wrap .wpcf7-spam-blocked {
    background: rgba(239,68,68,0.12) !important;
    color: #f87171 !important;
    border: 1px solid rgba(239,68,68,0.3) !important;
}
.renpol-cf7-wrap .wpcf7-not-valid-tip {
    color: #f87171;
    font-size: 0.75rem;
    margin-top: 0.25rem;
    display: block;
}

/* Mobile: jedno pole w wierszu */
@media (max-width: 600px) {
    .renpol-cf7-wrap .wpcf7-form { grid-template-columns: 1fr; }
    .renpol-cf7-wrap .wpcf7-form > p:nth-child(1),
    .renpol-cf7-wrap .wpcf7-form > p:nth-child(2) { grid-column: 1 / -1; }
}



/* CF7 generuje <p> wokół pól — resetujemy go do flex-column */
.renpol-cf7-wrap .wpcf7-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.renpol-cf7-wrap .wpcf7-form p {
    margin: 0;
    display: contents; /* flatten <p> wrappers */
}
.renpol-cf7-wrap .wpcf7-form br { display: none; }

/* Pola tekstowe CF7 — identyczne z .form-input */
.renpol-cf7-wrap input[type="text"],
.renpol-cf7-wrap input[type="email"],
.renpol-cf7-wrap input[type="tel"] {
    width: 100%;
    background: rgba(40,40,40,0.5);
    border: 1px solid var(--brand-800);
    border-radius: var(--radius-md);
    padding: 1rem 1.25rem;
    font-size: 0.875rem;
    color: var(--white);
    font-family: var(--font-sans);
    transition: border-color var(--transition);
    outline: none;
    box-sizing: border-box;
}
.renpol-cf7-wrap input[type="text"]::placeholder,
.renpol-cf7-wrap input[type="email"]::placeholder,
.renpol-cf7-wrap input[type="tel"]::placeholder { color: rgba(77,99,112,0.7); }
.renpol-cf7-wrap input[type="text"]:focus,
.renpol-cf7-wrap input[type="email"]:focus,
.renpol-cf7-wrap input[type="tel"]:focus { border-color: var(--brand-600); }

/* Textarea CF7 */
.renpol-cf7-wrap textarea {
    width: 100%;
    background: rgba(40,40,40,0.5);
    border: 1px solid var(--brand-800);
    border-radius: var(--radius-md);
    padding: 1rem 1.25rem;
    font-size: 0.875rem;
    color: var(--white);
    font-family: var(--font-sans);
    transition: border-color var(--transition);
    outline: none;
    resize: none;
    min-height: 70px;
    box-sizing: border-box;
}
.renpol-cf7-wrap textarea::placeholder { color: rgba(77,99,112,0.7); }
.renpol-cf7-wrap textarea:focus { border-color: var(--brand-600); }

/* Przycisk submit CF7 — identyczny z .btn-submit */
.renpol-cf7-wrap input[type="submit"],
.renpol-cf7-wrap .wpcf7-submit {
    width: 100%;
    background: var(--brand-600);
    color: var(--white);
    font-weight: 700;
    font-size: 1rem;
    padding: 1rem;
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    font-family: var(--font-sans);
    transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
    box-shadow: var(--shadow-md);
    box-sizing: border-box;
}
.renpol-cf7-wrap input[type="submit"]:hover,
.renpol-cf7-wrap .wpcf7-submit:hover {
    background: var(--brand-900);
    transform: translateY(-1px);
    box-shadow: var(--shadow-lg);
}
.renpol-cf7-wrap .wpcf7-submit:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    transform: none;
}

/* Span wrapper wokół inputów — traktuj jak blok */
.renpol-cf7-wrap .wpcf7-form-control-wrap {
    display: block;
    width: 100%;
}

/* Layout: imię + email w rzędzie, potem telefon, potem textarea */
.renpol-cf7-wrap .wpcf7-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}
.renpol-cf7-wrap .wpcf7-form .cf7-full {
    grid-column: 1 / -1;
}
/* Pole textarea i submit zajmują całą szerokość */
.renpol-cf7-wrap .wpcf7-form-control-wrap[data-name="renpol_phone"],
.renpol-cf7-wrap .wpcf7-form-control-wrap[data-name="renpol_message"],
.renpol-cf7-wrap p:has(textarea),
.renpol-cf7-wrap p:has(input[type="submit"]) {
    grid-column: 1 / -1;
}

/* Komunikaty CF7 */
.renpol-cf7-wrap .wpcf7-response-output {
    grid-column: 1 / -1;
    margin: 0;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    border: none;
}
.renpol-cf7-wrap .wpcf7-mail-sent-ok {
    background: rgba(34,197,94,0.15);
    color: #4ade80;
    border: 1px solid rgba(34,197,94,0.3) !important;
}
.renpol-cf7-wrap .wpcf7-validation-errors,
.renpol-cf7-wrap .wpcf7-mail-sent-ng,
.renpol-cf7-wrap .wpcf7-spam-blocked {
    background: rgba(239,68,68,0.12);
    color: #f87171;
    border: 1px solid rgba(239,68,68,0.3) !important;
}
.renpol-cf7-wrap .wpcf7-not-valid-tip {
    color: #f87171;
    font-size: 0.75rem;
    margin-top: 0.25rem;
    display: block;
}


/* Dane firmy */
.footer-company {
    background: rgba(58,74,84,0.2);
    border: 1px solid rgba(58,74,84,0.4);
    border-radius: var(--radius-2xl);
    padding: 2rem;
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    font-size: 0.875rem;
    color: rgba(248,249,250,0.8);
    margin-bottom: 3rem;
}
.company-name { font-weight: 700; color: var(--white); font-size: 1rem; margin-bottom: 0.5rem; }
.company-nip { margin-top: 1rem; }
.company-nip span { color: var(--brand-400); }

.bank-label {
    font-size: 0.625rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--brand-400);
    display: block;
    margin-bottom: 0.5rem;
}
.bank-number { font-family: monospace; font-size: 0.875rem; color: var(--white); }
.bank-swift { font-size: 0.75rem; color: var(--brand-400); margin-top: 0.25rem; }
.bank-accounts { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }

/* Footer bottom */
.footer-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    font-size: 0.75rem;
    color: var(--brand-400);
    border-top: 1px solid var(--brand-800);
    padding-top: 2rem;
    text-align: center;
}
.footer-links { display: flex; gap: 1.5rem; font-weight: 500; }
.footer-links a:hover { color: var(--white); transition: color var(--transition); }

/* ================================================
   RESPONSYWNOŚĆ
   ================================================ */
@media (min-width: 480px) {
    .topbar-contacts .hide-sm { display: flex; }
    .form-row { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 768px) {
    .main-nav { display: flex; }
    .header-cta { display: flex; }
    .menu-toggle { display: none; }
    /* Na desktopie ukryj drawer i overlay */
    .mobile-menu {
        visibility: hidden;
        pointer-events: none;
        transform: translateX(100%);
    }
    .mobile-menu-overlay { display: none !important; }

    .hero-inner { grid-template-columns: 1fr 1fr; }
    .hero-image-col { min-height: 37.5rem; }
    .hero-float-card { display: flex; }

    .atuty-grid { grid-template-columns: repeat(3, 1fr); }

    .bento-grid {
        grid-template-columns: repeat(3, 1fr);
        grid-template-rows: repeat(2, 15.625rem);
    }
    .bento-wide { grid-column: span 2; }

    .ofirmie-grid { grid-template-columns: 1fr 1fr; }
    .ofirmie-badge { right: -2rem; }

    .certs-grid { grid-template-columns: repeat(4, 1fr); }

    .gabinety-grid { grid-template-columns: repeat(2, 1fr); }

    .szkolenia-inner { flex-direction: row; align-items: center; }

    .footer-main { grid-template-columns: 1fr 1fr; }
    .footer-company { grid-template-columns: 1fr 2fr; }
    .bank-accounts { grid-template-columns: 1fr 1fr; }
    .footer-bottom { flex-direction: row; justify-content: space-between; text-align: left; }
}


@media (min-width: 1024px) {
    .section-header-row {
        flex-direction: row;
        align-items: flex-end;
        justify-content: space-between;
    }
    .product-card {
        flex-direction: row;
        align-items: stretch;
    }
    .product-img-col {
        width: 45%;
        height: auto;
        min-height: 20rem;
        max-height: 28rem;
    }
    .gabinety-grid { grid-template-columns: repeat(4, 1fr); }
}

/* ================================================
   FORM SUCCESS MESSAGE
   ================================================ */
.form-success {
    display: none;
    background: rgba(77,99,112,0.2);
    border: 1px solid var(--brand-600);
    border-radius: var(--radius-md);
    padding: 1rem 1.25rem;
    color: rgba(248,249,250,0.9);
    font-size: 0.875rem;
    text-align: center;
}
.form-success.show { display: block; }

/* ================================================
   WORDPRESS CORE CLASSES
   ================================================ */
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal !important;
}
.aligncenter { display: block; margin: 0 auto; }
.alignright  { float: right; margin: 0 0 1rem 1rem; }
.alignleft   { float: left; margin: 0 1rem 1rem 0; }