/* ===================== RESET ===================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
/* --sticky-h = wysokość paska CTA (ustawia forcen.js; 52px tylko do pierwszego pomiaru). Kotwica (#kontakt) nie może trafić
   pod menu przesunięte o pasek: 88px = menu po przewinięciu (69px) + odstęp */
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--sticky-h, 52px) + 88px); max-width: 100%; overflow-x: hidden; }
body { max-width: 100%; overflow-x: hidden; }
/* R-MOBILE-OVERFLOW (S20): clip > hidden (nie tworzy scroll-kontenera, bezpieczne dla sticky); hidden = fallback Safari <15.4 */
@supports (overflow: clip) { html, body { overflow-x: clip; } }

/* ===================== CSS VARIABLES - CLASSIC THEME ===================== */
:root {
    --forcen-red: #D6001C;
    --forcen-red-hover: #b50018;
    --forcen-red-light: rgba(214, 0, 28, 0.07);
    --forcen-red-glow: rgba(214, 0, 28, 0.18);
    --dark-brown: #31261D;
    --deep-brown: #674736;
    --medium-brown: #94795D;
    --light-beige: #CDA786;
    --bg-warm: #f9f5f0;
    --bg-white: #ffffff;
    --text-main: #31261D;
    --text-muted: #674736;
    --border-color: #e0d5c8;
    --card-shadow: rgba(49,38,29,0.08);
    --nav-bg: rgba(255,255,255,0.97);
    --nav-shadow: 0 1px 3px rgba(49,38,29,0.1);
    --warning-bg: #fff8f5;
}

/* ===================== BASE ===================== */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--text-main);
    line-height: 1.6;
    background: var(--bg-white);
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
/* Długie słowa (malajalam, gruziński, niemiecko długie złożenia) łamią się, zamiast wychodzić poza ekran -
   overflow-x: clip na html ukrywa takie wyjście, więc bez tego słowo byłoby po prostu ucięte */
body { overflow-wrap: break-word; }
a { color: var(--forcen-red); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--forcen-red-hover); }

/* ===================== SKIP LINK ===================== */
.skip-link {
    position: absolute; top: -100px; left: 0;
    background: var(--forcen-red); color: #fff;
    padding: 0.75rem 1.5rem; z-index: 10000;
    font-weight: 600; border-radius: 0 0 0.5rem 0;
}
.skip-link:focus { top: 0; color: #fff; }

/* ===================== LAYOUT ===================== */
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.25rem; }
.section { padding: 5rem 0; }
.section-alt { background: var(--bg-warm); }
.section-dark { background: var(--dark-brown); color: #fff; }
.section-header { text-align: center; margin-bottom: 3rem; }
.section-header h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); margin-bottom: 0.75rem; }
.section-dark .section-header h2 { color: #fff; }
.section-header p { font-size: 1.125rem; color: var(--text-muted); max-width: 650px; margin: 0 auto; }
.section-dark .section-header p { color: var(--light-beige); }

/* ===================== NAVIGATION ===================== */
.nav {
    position: fixed; top: 0; left: 0; right: 0;
    background: transparent;
    z-index: 1000; transition: all 0.3s;
    border-bottom: 1px solid transparent;
}
.nav.scrolled {
    background: var(--nav-bg);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border-bottom-color: var(--border-color); box-shadow: var(--nav-shadow);
}
.nav-inner {
    display: flex; align-items: center; justify-content: space-between;
    max-width: 1200px; margin: 0 auto; padding: 0.75rem 1.25rem;
    transition: padding 0.3s;
}
.nav.scrolled .nav-inner { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.nav-logo { display: flex; flex-direction: column; align-items: flex-start; gap: 0; }
.nav-logo-img { height: 72px; width: auto; transition: height 0.3s; }
.nav.scrolled .nav-logo-img { height: 52px; }

.nav-links { display: none; gap: 2rem; align-items: center; }
.nav-links a {
    color: var(--text-main); font-size: 0.95rem; font-weight: 500;
    padding: 0.25rem 0; position: relative; transition: color 0.2s;
}
.nav-links a::after {
    content: ''; position: absolute; bottom: -2px; left: 0;
    width: 0; height: 2px; background: var(--forcen-red); transition: width 0.3s;
}
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-links a:hover { color: var(--forcen-red); }


.hamburger {
    display: flex; flex-direction: column; gap: 5px;
    background: none; border: none; cursor: pointer; padding: 4px;
}
.hamburger span { width: 24px; height: 2px; background: var(--text-main); transition: all 0.3s; display: block; }
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

.mobile-menu {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--bg-white); border-bottom: 1px solid var(--border-color);
    box-shadow: 0 8px 30px var(--card-shadow); padding: 1rem 1.25rem;
    /* menu + 13 języków jest wyższe niż ekran telefonu (375x667: 778 px) - przewija się samo, bo nav jest fixed
       i przewinięcie strony go nie przesuwa (przegląd 2026-10-14); 100px = nav, 152px = nav + pasek CTA */
    max-height: calc(100vh - 100px); max-height: calc(100dvh - 100px);
    overflow-y: auto; overscroll-behavior: contain;
}
.nav.has-sticky .mobile-menu { max-height: calc(100vh - 100px - var(--sticky-h, 52px)); max-height: calc(100dvh - 100px - var(--sticky-h, 52px)); }
.mobile-menu.open { display: block; }
.mobile-menu a {
    display: block; padding: 0.75rem 0; color: var(--text-main);
    font-weight: 500; border-bottom: 1px solid var(--border-color);
}
.mobile-menu a:last-of-type { border-bottom: none; }

/* ===================== LANGUAGE SWITCHER ===================== */
.lang-switcher { position: relative; margin-left: 1rem; }
.lang-current {
    display: flex; align-items: center; gap: 5px;
    padding: 5px 8px; border-radius: 0.375rem;
    font-size: 0.85rem; font-weight: 600;
    color: var(--text-main); background: transparent;
    border: 1px solid var(--border-color);
    cursor: pointer; transition: all 0.2s; font-family: inherit;
}
.lang-current:hover { border-color: var(--forcen-red); color: var(--forcen-red); }
/* 13 języków: flaga i kod języka na przycisku, flagi i endonimy na liście (flagi od 2026-10-13, decyzja właściciela;
   nazwa języka zostaje obok flagi, bo flaga to państwo - np. arabski, angielski, hiszpański) */
.lang-flag { width: 20px; height: 15px; flex-shrink: 0; object-fit: cover; border-radius: 2px; box-shadow: 0 0 0 1px rgba(0,0,0,0.12); }
.lang-code { letter-spacing: 0.04em; }
.lang-dropdown {
    position: absolute; top: calc(100% + 6px); right: 0;
    min-width: 180px; max-height: min(70vh, 560px); overflow-y: auto; background: var(--bg-white);
    border: 1px solid var(--border-color); border-radius: 0.375rem;
    box-shadow: 0 8px 24px var(--card-shadow);
    opacity: 0; visibility: hidden; transform: translateY(-6px);
    transition: all 0.2s ease; z-index: 200;
}
.lang-dropdown.open { opacity: 1; visibility: visible; transform: translateY(0); }
.lang-option {
    display: flex; align-items: center; gap: 8px;
    width: 100%; padding: 10px 14px;
    font-size: 0.85rem; font-weight: 500;
    color: var(--text-muted); background: none;
    border: none; cursor: pointer;
    transition: all 0.2s; font-family: inherit;
}
.lang-option:hover { background: rgba(214,0,28,0.06); color: var(--forcen-red); }
a.lang-option { text-decoration: none; }
.lang-option.active { color: var(--forcen-red); font-weight: 600; background: rgba(214,0,28,0.06); }
.mobile-lang {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(8.5rem, 1fr)); gap: 4px;
    padding: 0.75rem 0; margin-top: 0.5rem; border-top: 1px solid var(--border-color);
}
.mobile-menu .mobile-lang a.lang-option { padding: 8px 10px; border-radius: 0.375rem; width: auto; border-bottom: none; }

/* Pełne menu od 1040 px: przy 7 pozycjach mieści się wtedy w każdym języku poza malajalam i gruzińskim
   (pomiar 2026-10-08: es potrzebuje ok. 1020 px). Te dwa języki mają data-nav="menu" (_meta.nav w src/i18n) -
   ich etykiety nie mieszczą się w kontenerze 1200 px, więc menu jest zawsze rozwijane. */
.nav-logo { flex-shrink: 0; }
.nav-links a { white-space: nowrap; }
@media (min-width: 1040px) {
    .nav-links { display: flex; }
    .hamburger { display: none; }
    [data-nav="menu"] .nav-links { display: none; }
    [data-nav="menu"] .hamburger { display: flex; margin-inline-start: 0.75rem; }
    [data-nav="menu"] .lang-switcher { margin-inline-start: auto; }
}
@media (min-width: 1040px) and (max-width: 1399px) {
    .nav-links { gap: 0.9rem; }
    .nav-links a { font-size: 0.85rem; }
    .lang-current { padding: 4px 6px; font-size: 0.8rem; }
}
@media (max-width: 1039px) {
    .lang-switcher { display: none; }
}

/* ===================== STICKY CTA BAR ===================== */
.sticky-cta {
    position: fixed; top: 0; left: 0; right: 0; z-index: 999;
    background: var(--dark-brown); color: #fff;
    /* schowany pasek bez visibility: hidden był w kolejności Tab - fokus trafiał na niewidoczny przycisk nad ekranem */
    transform: translateY(-100%); visibility: hidden; transition: transform 0.4s ease, visibility 0.4s;
    display: flex; align-items: center; justify-content: center;
    gap: 1.25rem; padding: 0.7rem 1.25rem; font-size: 0.9rem;
}
.sticky-cta.visible { transform: translateY(0); visibility: visible; }
.sticky-cta-text { font-weight: 500; opacity: 0.9; }
.sticky-cta .btn-sm {
    background: var(--forcen-red); color: #fff; padding: 0.45rem 1.1rem;
    border-radius: 0.4rem; font-weight: 600; font-size: 0.85rem;
    border: none; cursor: pointer; transition: background 0.2s;
}
.sticky-cta .btn-sm:hover { background: var(--forcen-red-hover); color: #fff; }
/* przesunięcie o rzeczywistą wysokość paska (58 px, w malajalam przy 641 px 80 px) - stałe 52 px zasłaniało jego dół */
.nav.has-sticky { transform: translateY(var(--sticky-h, 52px)); }
@media (max-width: 640px) { .sticky-cta-text { display: none; } }

/* ===================== HERO ===================== */
.hero {
    min-height: max(560px, min(70vh, 880px)); display: flex; align-items: center;
    background: linear-gradient(180deg, var(--bg-white) 0%, var(--bg-warm) 100%);
    padding: 7rem 0 4rem; text-align: center; position: relative; overflow: hidden;
}
.hero::before {
    content: ''; position: absolute; top: -50%; right: -20%;
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(205,167,134,0.15) 0%, transparent 70%);
    border-radius: 50%; opacity: 0.6;
}
/* width + min-width: element flex nie może być szerszy niż ekran przez jedno długie słowo (malajalam „ടെൻഷനില്ലാതെ”
   ma 361 px przy 36 px - na 320-375 px nagłówek był ucięty, przegląd 2026-10-14); słowo łamie overflow-wrap z body */
.hero-content { position: relative; z-index: 1; max-width: 800px; margin: 0 auto; width: 100%; min-width: 0; }
.hero h1 {
    font-size: clamp(2.25rem, 5.5vw, 3.75rem); color: var(--text-main);
    font-weight: 800; line-height: 1.15; margin-bottom: 0.25rem;
}
.hero-accent {
    font-size: clamp(2.25rem, 5.5vw, 3.75rem); font-weight: 800; line-height: 1.15;
    color: var(--forcen-red); margin-bottom: 1.25rem;
}
.hero-subtitle { font-size: clamp(1.05rem, 2.5vw, 1.3rem); color: var(--text-muted); margin-bottom: 2rem; line-height: 1.7; }
.success-badge {
    display: inline-flex; align-items: center; gap: 0.5rem;
    background: var(--forcen-red); color: #fff;
    padding: 0.7rem 1.5rem; border-radius: 2rem;
    font-weight: 700; font-size: 0.95rem;
    box-shadow: 0 4px 20px var(--forcen-red-glow); margin-bottom: 2.5rem;
}
.success-badge svg { width: 20px; height: 20px; flex-shrink: 0; }
.hero-buttons { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; margin-bottom: 1.25rem; }
.hero-callback { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 0.75rem; margin-bottom: 2.5rem; }
.hero-callback-label { font-size: 0.9rem; color: var(--text-muted); }
.hero-callback-form { display: flex; gap: 0; border-radius: 0.5rem; overflow: hidden; border: 1px solid var(--border-color); background: var(--bg-white); }
.hero-callback-form input { border: none; padding: 0.6rem 1rem; font-size: 0.9rem; outline: none; width: 180px; background: transparent; font-family: inherit; color: var(--text-main); }
.hero-callback-form button { background: var(--forcen-red); color: #fff; border: none; padding: 0.6rem 1rem; cursor: pointer; transition: background 0.2s; display: flex; align-items: center; }
.hero-callback-form button:hover { background: var(--forcen-red-hover); }
.hero-callback-success { display: none; color: var(--forcen-red); font-weight: 600; font-size: 0.9rem; }
.hero-callback-success.show { display: block; }
/* Link do polityki prywatności przy formularzach bez pól zgód (oddzwanianie w hero, okno „Sprawdź legalność”) */
.form-privacy { font-size: 0.8rem; color: var(--text-muted); margin: 0.5rem 0 0; }
.form-privacy a { color: inherit; text-decoration: underline; }
.hero-callback .form-privacy { flex-basis: 100%; text-align: center; margin: -0.25rem 0 0; }

.btn {
    display: inline-flex; align-items: center; gap: 0.5rem;
    padding: 0.9rem 2rem; border-radius: 0.625rem;
    font-family: inherit; font-weight: 600; font-size: 1rem; cursor: pointer;
    border: 2px solid transparent; transition: all 0.2s; text-decoration: none;
}
.btn-primary { background: var(--forcen-red); color: #fff; border-color: var(--forcen-red); }
.btn-primary:hover { background: var(--forcen-red-hover); border-color: var(--forcen-red-hover); color: #fff; transform: translateY(-2px); }
.btn-outline-light { background: transparent; color: var(--text-main); border-color: var(--border-color); }
.btn-outline-light:hover { border-color: var(--text-main); color: var(--text-main); transform: translateY(-2px); }
.btn-outline { background: transparent; color: var(--forcen-red); border-color: var(--forcen-red); }
.btn-outline:hover { background: var(--forcen-red); color: #fff; transform: translateY(-2px); }

.hero-trust { display: flex; flex-wrap: wrap; justify-content: center; gap: 2rem; }
.hero-trust-item { display: flex; align-items: center; gap: 0.5rem; color: var(--medium-brown); font-size: 0.9rem; }
.hero-trust-item svg { width: 20px; height: 20px; opacity: 0.7; }

/* ===================== PACKAGES ===================== */
.packages-intro { display: grid; grid-template-columns: 1fr; gap: 1.5rem; margin-bottom: 3rem; text-align: center; }
@media (min-width: 640px) { .packages-intro { grid-template-columns: repeat(3, 1fr); } }
.intro-item { display: flex; flex-direction: column; align-items: center; gap: 0.75rem; }
.intro-item svg { width: 40px; height: 40px; color: var(--forcen-red); }
.intro-item h3 { font-size: 1rem; font-weight: 600; }
.intro-item p { font-size: 0.9rem; color: var(--text-muted); }

.packages-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; margin-bottom: 2rem; }
/* Kolumna 1fr ma minimum = najdłuższe słowo: jedno słowo malajalam w cenie albo tytule rozpychało kartę poza ekran
   320-375 px (przegląd 2026-10-14). min-width: 0 - słowo łamie overflow-wrap z body */
.packages-grid > *, .service-grid > *, .packages-intro > *, .cards > *, .legal-check-grid > *, .legal-check-columns > *,
.stories-grid > *, .form-grid > * { min-width: 0; }
@media (min-width: 768px) { .packages-grid { grid-template-columns: 1fr 1fr; } }
.card {
    background: var(--bg-white); border: 1px solid var(--border-color);
    border-radius: 1rem; padding: 2.5rem 2rem;
    position: relative; transition: transform 0.2s, box-shadow 0.2s;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 12px 40px var(--card-shadow); }
.card-vip { border-color: var(--forcen-red); border-width: 2px; }
.card-badge {
    display: inline-flex; align-items: center; gap: 0.35rem;
    background: var(--bg-warm); color: var(--text-muted);
    padding: 0.35rem 0.85rem; border-radius: 1rem;
    font-size: 0.8rem; font-weight: 600; margin-bottom: 1rem;
}
.card-vip .card-badge { background: var(--forcen-red-light); color: var(--forcen-red); }
.card h3 { font-size: 1.5rem; font-weight: 700; margin-bottom: 0.5rem; }
.card-price { font-size: 2.25rem; font-weight: 800; color: var(--forcen-red); margin-bottom: 0.25rem; }
.card-price-note { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 1.5rem; }
.card-features { list-style: none; margin-bottom: 2rem; }
.card-features li { display: flex; align-items: flex-start; gap: 0.6rem; padding: 0.5rem 0; font-size: 0.95rem; }
.card-features li svg { width: 18px; height: 18px; color: var(--forcen-red); flex-shrink: 0; margin-top: 2px; }
.card .btn { width: 100%; justify-content: center; }
.disclaimer { text-align: center; font-size: 0.85rem; color: var(--text-muted); max-width: 650px; margin: 0 auto; }

/* ===================== SERVICE SECTIONS ===================== */
.service-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
@media (min-width: 768px) { .service-grid { grid-template-columns: 1fr 1fr; } }
.service-item {
    background: var(--bg-white); border: 1px solid var(--border-color);
    border-radius: 0.75rem; padding: 1.75rem;
    transition: transform 0.2s, box-shadow 0.2s;
}
.section-alt .service-item { background: var(--bg-white); }
.service-item:hover { transform: translateY(-2px); box-shadow: 0 8px 24px var(--card-shadow); }
.service-item svg { width: 32px; height: 32px; color: var(--forcen-red); margin-bottom: 0.75rem; }
.service-item h3 { font-size: 1.05rem; font-weight: 600; margin-bottom: 0.5rem; }
.service-item p { font-size: 0.9rem; color: var(--text-muted); line-height: 1.6; }

.callout-warning {
    background: var(--warning-bg); border-left: 4px solid var(--forcen-red);
    border-radius: 0 0.5rem 0.5rem 0; padding: 1.25rem 1.5rem;
    margin: 2rem 0; font-size: 0.95rem; line-height: 1.6;
}
.callout-warning strong { color: var(--forcen-red); }

.price-box {
    background: rgba(103, 71, 54, 0.08); border-radius: 0.75rem;
    padding: 1.5rem; text-align: center; margin: 2rem 0;
}
.price-box .price-value { font-size: 1.75rem; font-weight: 800; color: var(--deep-brown); }
.price-box .price-note { font-size: 0.9rem; color: var(--text-muted); margin-top: 0.25rem; }
.cta-center { text-align: center; margin-top: 2rem; }

.institution-badges { display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: center; margin-bottom: 2.5rem; }
.inst-badge {
    display: inline-flex; align-items: center; gap: 0.4rem;
    background: var(--bg-white); border: 1px solid var(--border-color);
    padding: 0.5rem 1rem; border-radius: 2rem; font-size: 0.85rem; font-weight: 500;
}
.inst-badge svg { width: 16px; height: 16px; color: var(--forcen-red); }

.service-list { list-style: none; }
.service-list li { display: flex; gap: 1rem; padding: 1.25rem 0; border-bottom: 1px solid var(--border-color); }
.service-list li:last-child { border-bottom: none; }
.service-list li svg { width: 24px; height: 24px; color: var(--forcen-red); flex-shrink: 0; margin-top: 2px; }
.service-list li h3 { font-size: 1rem; font-weight: 600; margin-bottom: 0.25rem; }
.service-list li p { font-size: 0.9rem; color: var(--text-muted); }

.two-col { display: grid; grid-template-columns: 1fr; gap: 2.5rem; align-items: start; }
@media (min-width: 768px) { .two-col { grid-template-columns: 1fr 1fr; } }
.checklist { list-style: none; }
.checklist li { display: flex; align-items: flex-start; gap: 0.6rem; padding: 0.6rem 0; font-size: 0.95rem; }
.checklist li svg { width: 18px; height: 18px; color: var(--forcen-red); flex-shrink: 0; margin-top: 3px; }

/* ===================== SUCCESS STORIES ===================== */
.stories-badge { display: flex; flex-direction: column; align-items: center; margin-bottom: 3rem; }
/* min 2rem: przy 3rem dłuższe hasło odznaki było szersze niż ekran 320-360 px i ucięte z obu stron (przegląd 2026-09-22) */
.stories-badge-number { font-size: clamp(2rem, 8vw, 5rem); font-weight: 900; color: var(--forcen-red); line-height: 1; transform: scale(1); text-align: center; overflow-wrap: break-word; max-width: 100%; }
.stories-badge-number.badge-pulse { animation: badgePulse 0.6s ease-out; }
@keyframes badgePulse { 0%{transform:scale(0.7);opacity:0.3} 50%{transform:scale(1.12);opacity:1} 100%{transform:scale(1);opacity:1} }
.stories-badge-text { font-size: 1.1rem; color: var(--light-beige); margin-top: 0.5rem; text-align: center; }
.stories-grid {
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem;
}
@media (min-width: 640px) { .stories-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 768px) { .stories-grid { grid-template-columns: repeat(5, 1fr); } }
.story-card { text-align: center; }
.story-photo {
    width: 120px; height: 120px; margin: 0 auto 1rem;
    border-radius: 50%; overflow: hidden; position: relative;
    border: 3px solid rgba(255,255,255,0.15);
}
/* 140px dopiero od 900px: przy 768-899px pięć zdjęć 140px nie mieści się w kontenerze i ostatnie jest ucięte */
@media (min-width: 900px) { .story-photo { width: 140px; height: 140px; } }
.story-photo img { width: 100%; height: 100%; object-fit: cover; }
/* checkmark removed */
.story-name { font-size: 1.1rem; font-weight: 700; color: #fff; }
.story-sub { font-size: 0.85rem; color: var(--light-beige); margin-top: 0.25rem; }

/* ===================== PRZYCISK „ZADZWOŃ DO NAS” ===================== */
.show-phone-btn {
    display: inline-flex; align-items: center; gap: 0.5rem;
    background: var(--bg-white); border: 2px solid var(--border-color);
    padding: 0.6rem 1.25rem; border-radius: 0.5rem; cursor: pointer;
    font-family: inherit; font-size: 0.95rem; font-weight: 600;
    color: var(--text-main); transition: all 0.2s;
}
.show-phone-btn:hover { border-color: var(--forcen-red); color: var(--forcen-red); }
.show-phone-btn svg { width: 18px; height: 18px; }
.show-phone-btn .phone-hidden { display: inline; }

/* ===================== MULTI-STEP FORM ===================== */
.form-steps-indicator {
    display: flex; gap: 0.5rem; margin-bottom: 2rem; justify-content: center;
}
.step-dot {
    width: 100%; max-width: 120px; height: 4px; border-radius: 2px;
    background: var(--border-color); transition: background 0.3s;
}
.step-dot.active { background: var(--forcen-red); }
.step-dot.completed { background: var(--forcen-red); }
.form-step-title {
    font-size: 0.85rem; font-weight: 600; color: var(--medium-brown);
    text-align: center; margin-bottom: 1.5rem; text-transform: uppercase;
    letter-spacing: 0.04em;
}
.form-step-title:focus { outline: none; } /* fokus z goToStep (tabindex="-1") - tylko dla czytnika i klawiatury */
.form-step { display: none; }
.form-step.active { display: block; }
/* Field validation error - widoczny czerwony stan dla inputow, labeli i kontenerow callback */
.field-error { border-color: var(--forcen-red) !important; box-shadow: 0 0 0 2px rgba(214,0,28,0.15) !important; outline: 2px solid var(--forcen-red) !important; outline-offset: 0 !important; }
.field-error:focus { box-shadow: 0 0 0 3px rgba(214,0,28,0.25) !important; }
/* Callback widgets (border na kontenerze, nie inpucie) - propaguj error wizualnie */
.hero-callback-form.field-error { border-color: var(--forcen-red) !important; box-shadow: 0 0 0 2px rgba(214,0,28,0.15) !important; outline: none !important; }
.hero-callback-form input.field-error { outline: none !important; background: rgba(214,0,28,0.05) !important; }
/* Required checkbox label error - wzmocniony border + tlo */
.consent-group label.field-error, .legal-checkboxes label.field-error, label.field-error { border: 1px solid var(--forcen-red) !important; background: rgba(214,0,28,0.06) !important; border-radius: 0.35rem; padding: 0.35rem 0.5rem; }
.form-nav { display: flex; justify-content: space-between; margin-top: 1.5rem; gap: 1rem; }
.form-nav .btn { min-width: 120px; justify-content: center; }

.form-grid { display: grid; grid-template-columns: 1fr; gap: 1rem; }
@media (min-width: 640px) { .form-grid { grid-template-columns: 1fr 1fr; } }
.form-group { display: flex; flex-direction: column; }
.form-group[hidden] { display: none; }
/* Kontakt: telefon i e-mail widoczne jako zwykłe linki (2026-10-13) */
.contact-value { margin: 0.15rem 0 0; font-size: 1.05rem; font-weight: 600; }
.contact-value a { color: var(--text-main); }
.contact-value a:hover { color: var(--forcen-red); }
.contact-apps { display: flex; gap: 1rem; margin: 0.25rem 0 0; font-size: 0.9rem; font-weight: 600; }
.contact-apps a { color: var(--forcen-red); }
.form-group.full { grid-column: 1 / -1; }
.form-group label, .form-group .group-label { font-size: 0.85rem; font-weight: 600; margin-bottom: 0.35rem; color: var(--text-main); }
/* nazwa grupy radio (role="radiogroup" + aria-labelledby) - <label> bez pola nie nazywał grupy dla czytników */
.form-group .group-label { display: block; }
.form-group .group-label .req { color: var(--forcen-red); }
.form-group label .req { color: var(--forcen-red); }
.form-group input, .form-group select, .form-group textarea {
    padding: 0.75rem 1rem; border: 1px solid var(--border-color);
    border-radius: 0.5rem; font-size: 0.95rem;
    font-family: inherit; background: var(--bg-white);
    color: var(--text-main); transition: border-color 0.2s;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    outline: none; border-color: var(--forcen-red);
    box-shadow: 0 0 0 3px var(--forcen-red-light);
}
.radio-group { display: flex; flex-wrap: wrap; gap: 1rem; padding: 0.5rem 0; }
.radio-group label { display: flex; align-items: center; gap: 0.4rem; font-weight: 400; cursor: pointer; font-size: 0.95rem; }
.radio-group input[type="radio"] { accent-color: var(--forcen-red); }
.consent-group { display: flex; flex-direction: column; gap: 0.75rem; margin-top: 0.5rem; }
.consent-group label {
    display: flex; align-items: flex-start; gap: 0.6rem;
    font-weight: 400; font-size: 0.875rem; cursor: pointer; color: var(--text-muted);
}
.consent-group input[type="checkbox"] { margin-top: 3px; accent-color: var(--forcen-red); flex-shrink: 0; }
/* tekst zgody w jednym elemencie: inaczej link i gwiazdka stają się osobnymi kolumnami flex (dziury, łamanie) */
.consent-group label > span { flex: 1; }
.btn-submit {
    width: 100%; padding: 1rem; font-family: inherit; font-size: 1.05rem;
    font-weight: 700; background: var(--forcen-red);
    color: #fff; border: none; border-radius: 0.625rem;
    cursor: pointer; transition: background 0.2s, transform 0.1s; margin-top: 0.5rem;
}
.btn-submit:hover { background: var(--forcen-red-hover); transform: translateY(-1px); }
.form-success { display: none; text-align: center; padding: 3rem 2rem; background: var(--forcen-red-light); border-radius: 1rem; }
.form-success.show { display: block; }
.form-success:focus, .hero-callback-success:focus { outline: none; } /* fokus z showSuccess() (tabindex="-1") - dla czytnika */
.form-success h3 { font-size: 1.5rem; color: var(--forcen-red); margin-bottom: 0.5rem; }
.form-success p { color: var(--text-muted); }
/* poza ekranem bez left:-9999px - w układzie RTL przesunięcie w lewo dawałoby przewijanie w bok */
.honeypot { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.form-api-error { flex-basis: 100%; color: #D6001C; margin-top: 0.75rem; font-size: 0.9rem; text-align: center; }
.hero-callback .form-api-error { margin-top: 0; }

/* ===================== CONTACT ===================== */
.contact-grid { display: grid; grid-template-columns: 1fr; gap: 3rem; }
@media (min-width: 768px) { .contact-grid { grid-template-columns: 1fr 1.3fr; } }
.contact-info-item { display: flex; align-items: flex-start; gap: 0.75rem; margin-bottom: 1.25rem; }
.contact-info-item svg { width: 20px; height: 20px; color: var(--forcen-red); flex-shrink: 0; margin-top: 2px; }
.contact-info-item a { font-weight: 500; }
.contact-info-item p { font-size: 0.95rem; color: var(--text-muted); }
.contact-info-item .label { font-size: 0.8rem; color: var(--text-muted); display: block; }

/* ===================== FOOTER ===================== */
.footer { background: var(--dark-brown); color: var(--light-beige); padding: 4rem 0 0; }
/* Grupa MatysArt - marki tej samej firmy (2026-10-13) */
.footer-brands { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 1.75rem; margin-bottom: 2rem; }
.footer-brands ul { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 1rem 1.5rem; }
.footer-brands a { display: flex; flex-direction: column; gap: 0.2rem; text-decoration: none; }
.footer-brands strong { color: #fff; font-size: 0.95rem; }
.footer-brands span { color: #c9ad8e; font-size: 0.85rem; line-height: 1.4; }
.footer-brands a:hover strong { color: var(--forcen-red); }
.footer-brands h3 a { color: inherit; text-decoration: none; }
.footer-brands h3 a:hover, .footer-copy a:hover { color: var(--forcen-red); }
.footer-copy a { color: inherit; text-decoration: none; }
@media (min-width: 1100px) { .footer-brands ul { grid-template-columns: repeat(6, 1fr); } }  /* wszystkie marki w jednym rzędzie */
.footer-tagline { margin: 0.5rem 0 1rem; font-size: 0.95rem; font-weight: 600; color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 2.5rem; margin-bottom: 3rem; }
.footer h3 a { color: inherit; font-size: inherit; }
@media (min-width: 768px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
    /* Desktop: wrapper transparentny dla grid - Linki i stempel wracaja jako bezposrednie grid items */
    .footer-linki-stamp { display: contents; }
    .footer-ps-stamp { grid-column: 1 / 2; justify-self: start; padding: 0.5rem 0 0; }
}
.footer-ps-stamp { display: flex; justify-content: center; align-items: center; padding: 1rem 0 0; }
/* Mobile: Linki (lewo) + stempel (prawo, gora) w jednym rzedzie - wykorzystuje puste miejsce po prawej */
@media (max-width: 767px) {
    /* flex-wrap: dłuższe podpisy linków (RU) i pieczątka nie mieszczą się w jednym rzędzie przy 320 px - pieczątka schodzi niżej */
    .footer-linki-stamp { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 1rem; }
    .footer-linki-stamp > div:first-child { flex: 0 1 auto; }
    .footer-ps-stamp { flex: 0 0 auto; padding: 1.75rem 0 0; align-self: flex-start; }
    .footer-ps-stamp .ps-stamp { height: 52px; width: calc(52px * 3.48); }
}
/* Szerokie ekrany: firma, wiedza, usługi, dla firm, kontakt, dokumenty w jednym rzędzie (pieczątka pod firmą) */
@media (min-width: 1100px) { .footer-grid { grid-template-columns: 1.2fr 1fr 1fr 1fr 1fr; gap: 2rem; } }
/* S15 LOGOSTEMPEL - animowany podpis wykonawcy (size 70px = matysart wzorzec, +25% od default 56px) */
.ps-stamp { position: relative; display: inline-block; vertical-align: middle; height: 70px; width: calc(70px * 3.48); overflow: visible; isolation: isolate; cursor: pointer; --ps-duration: 2200ms; --ps-delay: 100ms; }
.ps-stamp .ps-imprint { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; opacity: 0; transform: translate3d(0,0,0) scale(0.92); transform-origin: center; will-change: transform, opacity; backface-visibility: hidden; -webkit-backface-visibility: hidden; z-index: 0; }
.ps-stamp .ps-rig { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; opacity: 0; transform: translate3d(25%, 120%, 0) rotate(-7deg) scale(2.65); transform-origin: center; will-change: transform, opacity; z-index: 2; pointer-events: none; }  /* ręka 2,65x większa - nie może przykrywać linków obok (2026-10-13) */
.ps-stamp .ps-impact { position: absolute; left: -19.91%; top: -38.46%; width: 139.82%; height: 176.92%; overflow: visible; opacity: 0; transform: translate3d(0,0,0) scale(0.88); transform-origin: center; will-change: transform, opacity; z-index: 4; pointer-events: none; }
@keyframes ps-rig-travel {
    0%   { opacity: 0; transform: translate3d(25%, 120%, 0) rotate(-7deg) scale(2.65); }
    10%  { opacity: 0; transform: translate3d(25%, 120%, 0) rotate(-7deg) scale(2.65); }
    40%  { opacity: 1; transform: translate3d( 4%, -30%, 0) rotate(-5deg) scale(2.88); }
    46%  { opacity: 1; transform: translate3d( 1%, -54%, 0) rotate(-4deg) scale(2.70); }
    55%  { opacity: 1; transform: translate3d( 1%, -54%, 0) rotate(-4deg) scale(2.70); }
    64%  { opacity: 1; transform: translate3d( 5%, -30%, 0) rotate(-3deg) scale(2.76); }
    100% { opacity: 0; transform: translate3d(30%, 130%, 0) rotate(-1deg) scale(2.65); }
}
@keyframes ps-imprint-reveal {
    0%,42% { opacity: 0; transform: translate3d(0,0,0) scale(0.92); }
    46%    { opacity: 1; transform: translate3d(0,0,0) scale(1.03); }
    55%,100% { opacity: 1; transform: translate3d(0,0,0) scale(1); }
}
@keyframes ps-impact-burst {
    0%,42.2% { opacity: 0; transform: translate3d(0,0,0) scale(1.45); }
    44.6%    { opacity: 0.95; transform: translate3d(0,0,0) scale(1.65); }
    59%      { opacity: 0.62; transform: translate3d(0,0,0) scale(1.85); }
    66%      { opacity: 0; transform: translate3d(0,0,0) scale(2.10); }
    100%     { opacity: 0; transform: translate3d(0,0,0) scale(2.10); }
}
.ps-stamp.ps-run .ps-rig     { animation: ps-rig-travel    var(--ps-duration) cubic-bezier(0.22,0,0.18,1) var(--ps-delay) both; }
.ps-stamp.ps-run .ps-imprint { animation: ps-imprint-reveal var(--ps-duration) cubic-bezier(0.24,1.25,0.25,1) var(--ps-delay) both; }
.ps-stamp.ps-run .ps-impact  { animation: ps-impact-burst   var(--ps-duration) cubic-bezier(0.16,0,0.18,1) var(--ps-delay) both; }
.ps-stamp.ps-done .ps-imprint { opacity: 1; transform: scale(1); }
.ps-stamp.ps-done .ps-rig     { opacity: 0; }
@media (prefers-reduced-motion: reduce) {
    .ps-stamp .ps-rig, .ps-stamp .ps-impact { display: none; }
    .ps-stamp .ps-imprint { opacity: 1; transform: translate3d(0,0,0) scale(1); animation: none !important; }
}
.footer h3 { font-size: 1rem; font-weight: 700; margin-bottom: 1rem; color: var(--light-beige); }
.footer p, .footer a { font-size: 0.9rem; color: #fff; }
.footer a:hover { color: var(--forcen-red); }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 0.5rem; }
.footer-links a { display: inline-flex; align-items: center; gap: 0.35rem; min-height: 24px; } /* cel dotyku min. 24 px (WCAG 2.5.8) */
.footer-links a svg { width: 14px; height: 14px; }
.footer-logo { margin-bottom: 0.75rem; }
.footer-logo-img { height: 47px; width: auto; filter: brightness(0) invert(1); }
.footer-bottom {
    background: var(--dark-brown); color: var(--light-beige);
    padding: 2rem 0; margin-top: 2rem;
}
.footer-disclaimer {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 2rem;
    font-size: 0.8rem; color: var(--light-beige); line-height: 1.7;
    font-style: italic;
}

/* ===================== COOKIE BANNER ===================== */
.cookie-banner {
    position: fixed; bottom: 0; left: 0; right: 0; z-index: 9999;
    background: rgba(255,255,255,0.97); backdrop-filter: blur(20px);
    border-top: 1px solid var(--border-color);
    padding: 1.25rem 1.5rem;
    display: none; align-items: center; gap: 1rem; flex-wrap: wrap;
    box-shadow: 0 -4px 20px var(--card-shadow);
}
.cookie-banner.show { display: flex; }
/* ikona liniowa jak w kartach usług (emoji wyglądało inaczej w każdym systemie - decyzja właściciela 2026-10-13) */
.cookie-icon { width: 24px; height: 24px; flex-shrink: 0; color: var(--forcen-red); }
.cookie-text { flex: 1; min-width: 250px; font-size: 0.875rem; color: var(--text-muted); line-height: 1.5; }
.cookie-actions { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.cookie-btn {
    padding: 0.55rem 1.1rem; border-radius: 0.4rem; font-weight: 600;
    font-size: 0.85rem; border: none; cursor: pointer; font-family: inherit;
    transition: all 0.2s;
}
.cookie-accept { background: var(--forcen-red); color: #fff; }
.cookie-accept:hover { background: var(--forcen-red-hover); }

/* ===================== SCROLL TO TOP ===================== */
.scroll-top {
    position: fixed; bottom: 5rem; right: 1.5rem; z-index: 998;
    width: 44px; height: 44px; border-radius: 50%;
    background: var(--dark-brown); color: #fff; border: none;
    cursor: pointer; display: flex; align-items: center; justify-content: center;
    /* niewidoczny przycisk (opacity 0) nadal łapał dotknięcia i Tab - na telefonie zasłaniał treść pod sobą */
    opacity: 0; visibility: hidden; transform: translateY(10px);
    transition: opacity 0.3s, transform 0.3s, background 0.2s, visibility 0.3s;
    box-shadow: 0 4px 12px var(--card-shadow);
}
.scroll-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.scroll-top:hover { background: var(--forcen-red); }
.scroll-top svg { width: 20px; height: 20px; }

/* ===================== ANIMATIONS ===================== */
@media (prefers-reduced-motion: no-preference) {
    .animate { opacity: 0; transform: translateY(1.5rem); transition: opacity 0.6s ease, transform 0.6s ease; }
    .animate.visible { opacity: 1; transform: translateY(0); }
    .animate-stagger { transition-delay: calc(var(--delay, 0) * 150ms); }
}
@media (prefers-reduced-motion: reduce) {
    .animate { opacity: 1; transform: none; }
    html { scroll-behavior: auto; }
}
/* Bez JavaScriptu nic nie odsłoni animowanych elementów - treść ma być widoczna od razu (klasę js dodaje skrypt w <head>) */
html:not(.js) .animate, html:not(.js) .typewriter-box, html:not(.js) .ps-stamp .ps-imprint { opacity: 1; transform: none; }

/* ===================== FOCUS ===================== */
:focus-visible { outline: 2px solid var(--forcen-red); outline-offset: 2px; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: none; }

/* ===================== READING WAVE ANIMATION ===================== */
.wave-text .wave-char {
    display: inline;
    transition: color 0.15s ease;
}
.wave-text .wave-char.wave-active {
    display: inline-block;
    transform: scale(1.12);
    color: var(--forcen-red);
    font-weight: 700;
    transition: transform 0.15s ease, color 0.15s ease;
}
.wave-text .wave-space { display: inline; }

/* ===================== TYPEWRITER ANIMATION ===================== */
.typewriter-box {
    opacity: 0; transform: translateY(28px);
    transition: opacity 0.65s cubic-bezier(.16,1,.3,1), transform 0.65s cubic-bezier(.16,1,.3,1), box-shadow 0.3s ease, border-color 0.3s ease;
}
.typewriter-box.tw-revealed { opacity: 1; transform: translateY(0); }
.typewriter-box.tw-typing { border-color: var(--forcen-red) !important; box-shadow: 0 0 0 1px var(--forcen-red), 0 4px 24px var(--forcen-red-glow) !important; }
.typewriter-box .tw-title { font-weight: 600; }
.typewriter-box .tw-text { font-size: 0.9rem; color: var(--text-muted); min-height: 1.5em; }

@media (prefers-reduced-motion: reduce) {
    .wave-text .wave-char { display: inline !important; transform: none !important; color: inherit !important; }
    .typewriter-box { opacity: 1 !important; transform: none !important; }
    .typewriter-box .tw-text { opacity: 1 !important; }
    .seq-item { opacity: 1 !important; transform: none !important; }
    .seq-item h3, .seq-item p, .seq-item > svg { opacity: 1 !important; transform: none !important; }
    .story-card { opacity: 1 !important; transform: none !important; }
    .modal-overlay { backdrop-filter: none; }
}

/* ===================== OPINIE SPACING ===================== */
#opinie .section-header { margin-bottom: 1rem; }
#opinie .stories-badge { margin-bottom: 2rem; }

/* ===================== LEGAL CHECK SECTION ===================== */
.section-dark-alt { background: #3d3029; color: #fff; }
.section-dark-alt .section-header h2 { color: #fff; }
.section-dark-alt .section-header p { color: var(--light-beige); }
.legal-check-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; margin-bottom: 2rem; }
.legal-check-box {
    background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.12);
    border-radius: 1rem; padding: 2rem;
}
.legal-check-warning { border-color: var(--forcen-red); border-width: 2px; background: rgba(214,0,28,0.05); }
.legal-check-icon { margin-bottom: 1rem; }
.legal-check-icon svg { width: 40px; height: 40px; color: var(--light-beige); }
.legal-check-icon.warning svg { color: var(--forcen-red); }
.legal-check-box h3 { font-size: 1.25rem; font-weight: 700; color: #fff; margin-bottom: 0.75rem; }
.legal-check-box h4 { font-size: 0.95rem; font-weight: 600; color: var(--light-beige); margin: 1.25rem 0 0.5rem; }
.legal-check-desc { font-size: 0.95rem; color: var(--light-beige); margin-bottom: 0.75rem; line-height: 1.6; }
.legal-check-list { list-style: none; margin-bottom: 0.5rem; }
.legal-check-list li {
    position: relative; padding-left: 1.5rem; padding-top: 0.3rem; padding-bottom: 0.3rem;
    font-size: 0.9rem; color: var(--light-beige); line-height: 1.5;
}
.legal-check-columns { display: grid; gap: 1.5rem; }
.legal-check-2col { grid-template-columns: 1fr 1fr; }
.legal-check-3col { grid-template-columns: 1fr 1fr 1fr; }
.legal-check-col h4 { font-size: 0.95rem; font-weight: 600; color: var(--light-beige); margin: 0 0 0.5rem; }
@media (max-width: 640px) {
    .legal-check-2col, .legal-check-3col { grid-template-columns: 1fr; }
}
.legal-check-list li::before { content: '\00d7'; position: absolute; left: 0; color: var(--forcen-red); font-weight: 700; font-size: 1.1rem; }
.legal-check-list-positive li::before { content: '\2713'; color: #22c55e; }
.legal-check-price { font-size: 1.5rem; font-weight: 800; color: #fff; margin-top: 1.25rem; padding-top: 1rem; border-top: 1px solid rgba(255,255,255,0.12); }
.legal-alert {
    background: rgba(214,0,28,0.12); border: 1px solid rgba(214,0,28,0.3);
    border-radius: 0.75rem; padding: 1.25rem 1.5rem; margin: 2rem 0;
    font-size: 0.95rem; color: #fff; line-height: 1.6;
}
.legal-alert strong { color: var(--forcen-red); }
.section-dark-alt .legal-alert strong { color: #ff8080; }
.legal-footnote { text-align: center; margin: 1rem 0 2rem; }
.legal-footnote small { font-size: 0.75rem; color: var(--medium-brown); line-height: 1.5; }
.section-dark-alt .legal-footnote small { color: #c9ad8e; }

/* ===================== MODAL ===================== */
.modal-overlay {
    display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.6); backdrop-filter: blur(4px);
    z-index: 10000; align-items: center; justify-content: center; padding: 1rem;
}
.modal-overlay.open { display: flex; }
.modal-content {
    background: var(--bg-white); border-radius: 1rem; padding: 2.5rem 2rem;
    max-width: 520px; width: 100%; max-height: 90vh; overflow-y: auto;
    position: relative; box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}
.modal-close {
    position: absolute; top: 1rem; right: 1rem;
    background: none; border: none; font-size: 1.5rem; cursor: pointer;
    color: var(--text-muted); transition: color 0.2s; line-height: 1;
    width: 32px; height: 32px; display: flex; align-items: center; justify-content: center;
}
.modal-close:hover { color: var(--forcen-red); }
.modal-content:focus { outline: none; }
.modal-content h3 { font-size: 1.35rem; font-weight: 700; margin-bottom: 0.5rem; }
.legal-checkboxes { display: flex; flex-direction: column; gap: 0.75rem; }
.legal-checkboxes label {
    display: flex; align-items: center; gap: 0.6rem;
    padding: 0.75rem 1rem; border: 1px solid var(--border-color);
    border-radius: 0.5rem; cursor: pointer; font-size: 0.95rem;
    transition: all 0.2s; user-select: none;
}
.legal-checkboxes label:hover { border-color: var(--forcen-red); background: var(--forcen-red-light); }
.legal-checkboxes input[type="checkbox"] { accent-color: var(--forcen-red); width: 18px; height: 18px; flex-shrink: 0; }
/* S13: QHD/4K zoom scale - FHD-first */
@media (min-width: 1921px) { html { zoom: calc(100vw / 1920); } }

/* ===================== PODSTRONY (dokumenty, w kolejnych falach poradniki i usługi) ===================== */
/* Pod menu nie ma hero - menu od razu z tłem, treść zaczyna się pod nim */
.nav.nav-solid {
    background: var(--nav-bg);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border-bottom-color: var(--border-color); box-shadow: var(--nav-shadow);
}
.page-sub { background: var(--bg-warm); }
.page-sub main { padding-top: 6.5rem; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 0.4rem; font-size: 0.85rem; color: var(--text-muted); margin-bottom: 1.5rem; }
.breadcrumb a { color: var(--text-muted); text-decoration: underline; }
.breadcrumb a:hover { color: var(--forcen-red); }

/* Języki, w których odpowiada człowiek (pl/en/ru) - przy formularzach i w stopce */
.contact-langs { display: flex; align-items: center; justify-content: center; gap: 0.4rem; font-size: 0.85rem; color: var(--text-muted); margin-top: 0.75rem; }
.contact-langs svg { width: 16px; height: 16px; flex-shrink: 0; color: var(--forcen-red); }
.contact-grid .contact-langs { justify-content: flex-start; margin: 0 0 1.5rem; }
.footer-copy { margin-top: 1rem; font-size: 0.8rem; color: var(--light-beige); }

/* ===================== DOKUMENTY (regulamin, polityki) ===================== */
.doc { max-width: 1200px; margin: 0 auto; padding: 1.5rem 1.25rem 4rem; line-height: 1.7; }
.doc a { text-decoration: underline; }
.doc h1 { font-size: clamp(1.5rem, 4vw, 2rem); color: var(--dark-brown); margin-bottom: 0.5rem; line-height: 1.3; }
.doc .subtitle { font-size: 1.05rem; color: var(--text-muted); margin-bottom: 2.5rem; padding-bottom: 1.5rem; border-bottom: 2px solid var(--border-color); }
.doc h2 { font-size: 1.25rem; color: var(--deep-brown); margin-top: 2.5rem; margin-bottom: 1rem; padding-bottom: 0.4rem; border-bottom: 1px solid var(--border-color); }
.doc p { margin-bottom: 0.85rem; }
.doc ul, .doc ol { margin-bottom: 1rem; padding-inline-start: 1.5rem; }
.doc li { margin-bottom: 0.5rem; }
.doc ol ol { margin-top: 0.5rem; list-style-type: lower-alpha; }
.doc strong { color: var(--dark-brown); }
.doc .info-box, .doc-binding {
    background: var(--bg-white); border: 1px solid var(--border-color); border-inline-start: 3px solid var(--forcen-red);
    padding: 1rem 1.25rem; border-radius: 0.4rem; margin-bottom: 1.5rem;
}
.doc .info-box p { margin-bottom: 0.3rem; }
.doc .info-box p:last-child { margin-bottom: 0; }
.doc-binding { font-size: 0.9rem; color: var(--text-muted); }
.cookie-table {
    width: 100%; border-collapse: collapse; margin-bottom: 1.5rem; background: var(--bg-white);
    border-radius: 0.5rem; overflow: hidden; box-shadow: 0 1px 3px rgba(49,38,29,0.08);
}
.cookie-table th { background: var(--deep-brown); color: #fff; text-align: start; padding: 0.75rem 1rem; font-size: 0.9rem; font-weight: 600; }
.cookie-table td { padding: 0.7rem 1rem; border-bottom: 1px solid var(--border-color); font-size: 0.9rem; vertical-align: top; }
.cookie-table tr:last-child td { border-bottom: none; }
.cookie-table code { background: var(--bg-warm); padding: 0.15rem 0.4rem; border-radius: 0.25rem; font-size: 0.85rem; color: var(--deep-brown); }
.doc .back-link {
    display: inline-flex; align-items: center; gap: 0.4rem; margin-top: 3rem; padding: 0.7rem 1.5rem;
    background: var(--bg-white); border: 1px solid var(--border-color); border-radius: 0.5rem;
    font-weight: 500; text-decoration: none; transition: border-color 0.2s, box-shadow 0.2s;
}
.doc .back-link:hover { border-color: var(--forcen-red); box-shadow: 0 2px 8px rgba(214,0,28,0.1); }
.doc .back-link svg { width: 16px; height: 16px; }
.doc-updated { margin-top: 2rem; color: var(--text-muted); font-size: 0.9rem; }
@media (max-width: 600px) {
    .doc { padding: 1rem 1rem 3rem; }
    .doc h2 { font-size: 1.1rem; margin-top: 2rem; }
    /* Cztery kolumny nie mieszczą się na telefonie - tabela przewija się sama, a nie cała strona w bok */
    .cookie-table { font-size: 0.85rem; display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .cookie-table th, .cookie-table td { padding: 0.5rem 0.6rem; }
}

/* ===================== PISMO OD PRAWEJ (ar) ===================== */
/* Flex i grid odwracają się same; poprawiamy tylko właściwości fizyczne (left/right) */
[dir="rtl"] .skip-link { left: auto; right: 0; border-radius: 0 0 0 0.5rem; }
[dir="rtl"] .nav-links a::after { left: auto; right: 0; }
[dir="rtl"] .lang-switcher { margin-left: 0; margin-right: 1rem; }
[dir="rtl"] .lang-dropdown { right: auto; left: 0; }
[dir="rtl"] .callout-warning { border-left: none; border-right: 4px solid var(--forcen-red); border-radius: 0.5rem 0 0 0.5rem; }
[dir="rtl"] .legal-check-list li { padding-left: 0; padding-right: 1.5rem; }
[dir="rtl"] .legal-check-list li::before { left: auto; right: 0; }
[dir="rtl"] .modal-close { right: auto; left: 1rem; }
[dir="rtl"] .scroll-top { right: auto; left: 1.5rem; }
[dir="rtl"] .nav-back svg, [dir="rtl"] .back-link svg { transform: scaleX(-1); }
[dir="rtl"] .footer-ps-stamp { justify-self: end; }
/* Ceny: kierunek z treści („1 700 PLN” od lewej, „70% ...” po arabsku od prawej) */
[dir="rtl"] .price-table td, [dir="rtl"] .card-price, [dir="rtl"] .price-value, [dir="rtl"] .legal-check-price { unicode-bidi: plaintext; }
/* Numery telefonów, adresy e-mail i pola telefonu zawsze od lewej do prawej */
[dir="rtl"] input[type="tel"], [dir="rtl"] input[type="email"] { direction: ltr; text-align: right; }

/* ===================== STRONY USŁUG I HUBY ===================== */
.svc-more { text-align: center; margin-top: 1.25rem; font-size: 0.95rem; }
.svc-more a { font-weight: 600; text-decoration: underline; }
.section-dark-alt .svc-more a { color: #fff; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
/* Podstrony na szerokość strony głównej (.container 1200 px = 1160 px treści, równo z logo) - decyzja właściciela 2026-10-13 */
.page-head { max-width: 1200px; margin: 0 auto; padding: 1.5rem 1.25rem 0; }
.page-head h1 { font-size: clamp(1.75rem, 4.5vw, 2.6rem); line-height: 1.2; color: var(--dark-brown); margin-bottom: 0.75rem; }
.page-head .lead { font-size: 1.1rem; color: var(--text-muted); }
/* korzyść dla klienta nad opisem usługi, „Dlaczego Forcen” i wezwanie do działania pod treścią (2026-10-13) */
.page-head .lead-benefit { font-size: 1.2rem; font-weight: 600; color: var(--dark-brown); margin-bottom: 0.5rem; }
.why { max-width: 1200px; margin: 0 auto; padding: 1rem 1.25rem; }
.why .box { background: var(--bg-white); border: 1px solid var(--border-color); border-radius: 0.75rem; padding: 1.5rem; }
.why h2 { font-size: 1.15rem; margin-bottom: 0.75rem; color: var(--deep-brown); }
.why ul { display: grid; grid-template-columns: 1fr; gap: 0.5rem 2rem; padding-inline-start: 1.2rem; }
@media (min-width: 768px) { .why ul { grid-template-columns: 1fr 1fr; } }
.cta-end { max-width: 1200px; margin: 1rem auto 2rem; padding: 1.5rem 1.25rem; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; }
.cta-end p { flex: 1 1 320px; min-width: 0; font-size: 1.1rem; font-weight: 600; color: var(--dark-brown); } /* min-width: długie słowo ml przy 320 px */
.hub-note { max-width: 1200px; margin: 0 auto; padding: 0 1.25rem 2rem; font-size: 0.9rem; color: var(--text-muted); }
.b2b-cards { margin-top: 2rem; }
.page-head .head-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.5rem; align-items: center; }
.page-head .remote { font-size: 0.9rem; color: var(--medium-brown); }
.price-panel { max-width: 1200px; margin: 2rem auto 0; padding: 0 1.25rem; }
.price-panel .box { background: var(--bg-white); border: 1px solid var(--border-color); border-radius: 0.75rem; padding: 1.5rem; }
.price-panel h2 { font-size: 1.15rem; margin-bottom: 0.75rem; color: var(--deep-brown); }
.price-table { width: 100%; border-collapse: collapse; }
.price-table th, .price-table td { padding: 0.6rem 0; border-bottom: 1px solid var(--border-color); text-align: start; vertical-align: top; font-size: 0.95rem; }
.price-table tr:last-child th, .price-table tr:last-child td { border-bottom: none; }
.price-table th { font-weight: 500; padding-inline-end: 1rem; }
.price-table td { font-weight: 800; color: var(--forcen-red); white-space: nowrap; text-align: end; }
/* Telefon: „wycena indywidualna”, „70% ceny pakietu” (ml, ka, ru, tr...) bez łamania wychodziły za ekran i były ucinane
   (przegląd 2026-10-14) - kwota łamie się tylko, gdy się nie mieści */
@media (max-width: 600px) {
    .price-table td { white-space: normal; }
    /* malajalam: pojedyncze słowo nazwy usługi bywa szersze niż pół ekranu 320 px - może się złamać w środku */
    :lang(ml) .price-table th { overflow-wrap: anywhere; }
}
.price-panel .notes { margin-top: 0.75rem; font-size: 0.85rem; color: var(--text-muted); }
.price-panel .notes p + p { margin-top: 0.25rem; }
.service-body { max-width: 1200px; margin: 0 auto; padding: 2rem 1.25rem 1rem; line-height: 1.7; }
.service-body h2 { font-size: 1.35rem; color: var(--deep-brown); margin: 2rem 0 0.75rem; }
.service-body h3 { font-size: 1.05rem; margin: 1.25rem 0 0.4rem; }
.service-body p { margin-bottom: 0.75rem; }
.service-body ul, .service-body ol { padding-inline-start: 1.4rem; margin-bottom: 1rem; }
.service-body li { margin-bottom: 0.4rem; }
.service-body a { text-decoration: underline; }
.service-body .note { background: var(--warning-bg); border-inline-start: 4px solid var(--forcen-red); padding: 1rem 1.25rem; border-radius: 0.4rem; margin: 1.25rem 0; }
.cards { display: grid; grid-template-columns: 1fr; gap: 1.25rem; }
@media (min-width: 640px) { .cards { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .cards-3 { grid-template-columns: 1fr 1fr 1fr; } }
.svc-card { display: flex; flex-direction: column; gap: 0.5rem; background: var(--bg-white); border: 1px solid var(--border-color); border-radius: 0.75rem; padding: 1.4rem; color: var(--text-main); transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s; }
.svc-card:hover { border-color: var(--forcen-red); box-shadow: 0 8px 24px var(--card-shadow); transform: translateY(-2px); color: var(--text-main); }
.svc-card h2, .svc-card h3 { font-size: 1.1rem; color: var(--dark-brown); }
.svc-card p { font-size: 0.9rem; color: var(--text-muted); flex: 1; }
.svc-card .card-price { font-size: 1rem; font-weight: 800; color: var(--forcen-red); margin: 0; }
.hub-list, .related { max-width: 1200px; margin: 0 auto; padding: 2rem 1.25rem 3rem; }
.related h2 { font-size: 1.25rem; margin-bottom: 1rem; color: var(--deep-brown); }
.page-sub #kontakt { margin-top: 1rem; }
.sources { max-width: 1200px; margin: 0 auto; padding: 0 1.25rem 1rem; font-size: 0.85rem; color: var(--text-muted); }
.sources h2 { font-size: 1rem; color: var(--deep-brown); margin-bottom: 0.25rem; }
.sources .state { margin-bottom: 0.4rem; }
.sources ul { padding-inline-start: 1.2rem; }
.sources li { margin-bottom: 0.25rem; }
.sources a { color: var(--text-muted); text-decoration: underline; }
/* Poradniki (centrum wiedzy): stan prawny pod nagłówkiem, jedno CTA do usługi, lista poradników na stronie usługi */
.page-head .art-state { margin-top: 0.75rem; font-size: 0.85rem; color: var(--medium-brown); }
.art-cta { max-width: 1200px; margin: 1rem auto 2rem; padding: 0 1.25rem; }
.art-cta .box { background: var(--bg-white); border: 1px solid var(--border-color); border-inline-start: 4px solid var(--forcen-red); border-radius: 0.75rem; padding: 1.5rem; }
.art-cta h2 { font-size: 1.15rem; color: var(--deep-brown); margin-bottom: 0.4rem; }
.art-cta .box > p { margin-bottom: 1rem; color: var(--text-muted); }
.service-body table { width: 100%; border-collapse: collapse; margin: 0.5rem 0 1.25rem; font-size: 0.95rem; }
.service-body th, .service-body td { border: 1px solid var(--border-color); padding: 0.5rem 0.7rem; text-align: start; vertical-align: top; }
.service-body th { background: var(--bg-white); font-weight: 700; }
.table-wrap { overflow-x: auto; }
.guides { max-width: 1200px; margin: 0 auto; padding: 0 1.25rem 1rem; }
.guides h2 { font-size: 1.25rem; margin-bottom: 0.6rem; color: var(--deep-brown); }
.guides ul { padding-inline-start: 1.4rem; line-height: 1.7; }
.guides a { text-decoration: underline; }
.sources p:last-child { margin-top: 0.5rem; }

/* ===================== WYDRUK ===================== */
/* Animowane elementy, do których strona nie została przewinięta, są przezroczyste - na wydruku byłyby puste miejsca;
   menu, paski i okna przyklejone do ekranu zasłaniałyby treść na każdej stronie wydruku */
@media print {
    .animate, .typewriter-box, .typewriter-box .tw-text, .seq-item, .seq-item h3, .seq-item p, .seq-item > svg, .story-card {
        opacity: 1 !important; transform: none !important;
    }
    .nav, .sticky-cta, .cookie-banner, .scroll-top, .skip-link, .modal-overlay, .hero-callback, .footer-ps-stamp { display: none !important; }
    .page-sub main { padding-top: 0; }
    .hero { min-height: 0; padding: 1rem 0; }
}
