/* ===== Proksima – nowoczesna wersja ===== */

:root {
    /* kolory z logo */
    --brand: #8a0a0a;
    --brand-2: #c62e2e;
    --brand-dark: #4d0000;
    --brand-grad: linear-gradient(135deg, #7b0000 0%, #c62e2e 100%);
    --brand-soft: #fbeeee;

    --ink: #111111;
    --text: #3d3d45;
    --muted: #6b6b75;
    --line: #ece7e5;
    --bg: #ffffff;
    --tint: #faf6f5;

    --radius: 18px;
    --radius-sm: 12px;
    --shadow-sm: 0 1px 2px rgba(17, 17, 17, .05), 0 2px 8px rgba(17, 17, 17, .04);
    --shadow: 0 10px 30px -12px rgba(77, 0, 0, .18), 0 4px 12px rgba(17, 17, 17, .05);
    --shadow-lg: 0 30px 60px -20px rgba(77, 0, 0, .35);

    --header-h: 92px;
    --font: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); }

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font: 16px/1.65 var(--font);
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-2); }
[hidden] { display: none !important; }

h1, h2, h3 { color: var(--ink); line-height: 1.15; letter-spacing: -.02em; margin: 0; }
h2 { font-size: clamp(28px, 4vw, 42px); font-weight: 800; }
h3 { font-size: 19px; font-weight: 700; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }

.ico {
    width: 1.25em;
    height: 1.25em;
    flex: none;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

:focus-visible { outline: 2px solid var(--brand-2); outline-offset: 3px; border-radius: 6px; }

/* ===== Przyciski ===== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 26px;
    border: 0;
    border-radius: 999px;
    font: inherit;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    transition: transform .2s, box-shadow .2s, background .2s, color .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--brand-grad); color: #fff; box-shadow: 0 8px 20px -8px rgba(198, 46, 46, .7); }
.btn-primary:hover { color: #fff; box-shadow: 0 14px 28px -10px rgba(198, 46, 46, .8); }
.btn-ghost { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn-ghost:hover { color: var(--brand); box-shadow: inset 0 0 0 1.5px var(--brand-2); }
.btn-light { background: #fff; color: var(--brand); }
.btn-light:hover { color: var(--brand-dark); box-shadow: 0 12px 24px -10px rgba(0, 0, 0, .4); }
.btn-sm { padding: 10px 18px; font-size: 15px; }
.btn-block { width: 100%; }

.eyebrow {
    display: inline-block;
    margin: 0 0 14px;
    padding: 6px 14px;
    border-radius: 999px;
    background: var(--brand-soft);
    color: var(--brand);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
}
.eyebrow-light { background: rgba(255, 255, 255, .15); color: #fff; }

/* ===== Nagłówek ===== */

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, .85);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid transparent;
    transition: box-shadow .3s, border-color .3s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 24px -12px rgba(17, 17, 17, .18); }

.header-inner { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.logo img { height: 50px; width: auto; }

.main-nav { display: flex; align-items: center; gap: 8px; }
.main-nav a:not(.btn) {
    position: relative;
    padding: 10px 17px;
    color: var(--text);
    font-weight: 600;
    font-size: 17px;
    border-radius: 999px;
    transition: color .2s, background .2s;
}
.main-nav a:not(.btn):hover { color: var(--brand); background: var(--brand-soft); }
.main-nav a.is-active { color: var(--brand); }
.main-nav a.is-active::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 18px;
    height: 3px;
    margin-left: -9px;
    border-radius: 3px;
    background: var(--brand-grad);
}
.nav-cta { margin-left: 12px; padding: 12px 22px; font-size: 17px; }

.nav-toggle {
    display: none;
    width: 52px;
    height: 52px;
    padding: 0;
    border: 0;
    border-radius: 14px;
    background: var(--brand-soft);
    cursor: pointer;
    position: relative;
}
.nav-toggle span {
    position: absolute;
    left: 15px;
    width: 22px;
    height: 2px;
    border-radius: 2px;
    background: var(--brand);
    transition: transform .3s, opacity .2s;
}
.nav-toggle span:nth-child(1) { top: 18px; }
.nav-toggle span:nth-child(2) { top: 25px; }
.nav-toggle span:nth-child(3) { top: 32px; }
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 960px) {
    :root { --header-h: 82px; }
    .logo img { height: 43px; }
    .nav-toggle { display: block; }
    .main-nav {
        position: fixed;
        top: var(--header-h);
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
        padding: 16px 20px 24px;
        background: #fff;
        border-bottom: 1px solid var(--line);
        box-shadow: 0 20px 40px -20px rgba(17, 17, 17, .25);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        transition: opacity .25s, transform .25s, visibility .25s;
    }
    .nav-open .main-nav { opacity: 1; visibility: visible; transform: none; }
    .main-nav a:not(.btn) { padding: 14px 16px; font-size: 17px; border-radius: 12px; }
    .main-nav a.is-active::after { display: none; }
    .main-nav a.is-active { background: var(--brand-soft); }
    .nav-cta { margin: 10px 0 0; }
}
/* bez JS menu mobilne jest po prostu widoczne pod logo */
html:not(.js) .nav-toggle { display: none; }
@media (max-width: 960px) {
    html:not(.js) .header-inner { height: auto; flex-direction: column; padding: 12px 20px; }
    html:not(.js) .main-nav { position: static; opacity: 1; visibility: visible; transform: none; flex-direction: row; flex-wrap: wrap; justify-content: center; box-shadow: none; border: 0; padding: 0; }
}

/* ===== Hero ===== */

.hero {
    position: relative;
    overflow: hidden;
    padding: 72px 0 40px;
    background:
        radial-gradient(600px 400px at 85% 10%, rgba(198, 46, 46, .14), transparent 70%),
        radial-gradient(500px 400px at 0% 90%, rgba(123, 0, 0, .08), transparent 70%),
        var(--tint);
}
.hero::before {
    /* delikatna siatka w tle */
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(77, 0, 0, .05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(77, 0, 0, .05) 1px, transparent 1px);
    background-size: 44px 44px;
    -webkit-mask-image: radial-gradient(ellipse at 70% 30%, #000 20%, transparent 75%);
    mask-image: radial-gradient(ellipse at 70% 30%, #000 20%, transparent 75%);
    pointer-events: none;
}
.hero-inner {
    position: relative;
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: 56px;
    align-items: center;
}
.hero h1 {
    font-size: clamp(38px, 6vw, 68px);
    font-weight: 800;
    letter-spacing: -.035em;
    line-height: 1.04;
    margin-bottom: 22px;
}
.hero-title span { display: block; } /* każdy wyraz w osobnej linii */
.grad {
    background: var(--brand-grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.hero-lead { font-size: clamp(17px, 1.6vw, 19px); color: var(--muted); max-width: 540px; margin: 0 0 32px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 32px; }
.hero-values { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 24px; font-weight: 700; color: var(--ink); }
.hero-values li { display: flex; align-items: center; gap: 8px; }
.hero-values .ico { color: #fff; background: var(--brand-grad); border-radius: 50%; padding: 4px; width: 24px; height: 24px; stroke-width: 3; }

.hero-visual { position: relative; padding: 24px 0 24px 24px; }

/* ===== Slider w hero ===== */
.hero-slider {
    position: relative;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    aspect-ratio: 5 / 4;
    background: #2a1510;
    touch-action: pan-y;
}
.slides { position: absolute; inset: 0; }
.slide {
    position: absolute;
    inset: 0;
    margin: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity .9s ease, visibility 0s linear .9s;
}
.slide.is-active { opacity: 1; visibility: visible; transition: opacity .9s ease; z-index: 1; }
.slide img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); }
.slide.is-active img { animation: kenburns 7s ease-out both; }
@keyframes kenburns { from { transform: scale(1.12); } to { transform: scale(1.02); } }
.slide::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(160deg, rgba(198, 46, 46, .05) 30%, rgba(77, 0, 0, .5));
    pointer-events: none;
}
.slide figcaption { position: absolute; left: 18px; bottom: 18px; right: 18px; z-index: 2; }
.slide-caption {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    max-width: 100%;
    padding: 10px 16px 10px 10px;
    border-radius: 16px;
    background: rgba(255, 255, 255, .94);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow);
    color: var(--ink);
    opacity: 0;
    transform: translateY(14px);
    transition: opacity .5s ease .35s, transform .5s ease .35s;
}
.slide.is-active .slide-caption { opacity: 1; transform: none; }
.slide-caption:hover { color: var(--ink); }
.slide-caption strong { display: block; font-size: 15px; line-height: 1.3; }
.slide-caption small { display: block; color: var(--muted); font-size: 13px; }
.slide-go { color: var(--brand); transition: transform .2s; }
.slide-caption:hover .slide-go { transform: translateX(3px); }
.fc-icon { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 12px; background: var(--brand-grad); color: #fff; }

.slider-controls {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .9);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow);
}
.slider-btn {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--ink);
    cursor: pointer;
    transition: background .2s, color .2s;
}
.slider-btn:hover { background: var(--brand-soft); color: var(--brand); }
.slider-dots { display: flex; gap: 6px; padding: 0 4px; }
.slider-dot {
    width: 8px;
    height: 8px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(17, 17, 17, .25);
    cursor: pointer;
    transition: width .3s, background .3s;
}
.slider-dot[aria-current="true"] { width: 22px; background: var(--brand-2); }
html:not(.js) .slider-controls { display: none; }
html:not(.js) .slide-caption { opacity: 1; transform: none; }

.partners-strip {
    position: relative;
    margin-top: 64px;
    display: flex;
    align-items: center;
    gap: 32px;
}
.partners-strip p { margin: 0; flex: none; color: var(--muted); font-size: 14px; font-weight: 600; }
/* przesuwany pasek logo: dwie identyczne kopie jadą w lewo o połowę szerokości i pętla się zamyka */
.partners {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.partners-track {
    display: flex;
    width: max-content;
    animation: partners-scroll 25s linear infinite;
}
.partners:hover .partners-track { animation-play-state: paused; }
.partners-row {
    display: flex;
    align-items: center;
    gap: 64px;
    padding-right: 64px;
}
@keyframes partners-scroll { to { transform: translateX(-50%); } }
.partners img {
    flex: none;
    height: 44px;
    width: auto;
    border-radius: 8px;
    filter: grayscale(1);
    opacity: .6;
    mix-blend-mode: multiply;
    transition: filter .3s, opacity .3s;
}
.partners img:hover { filter: none; opacity: 1; }

@media (max-width: 960px) {
    .hero { padding-top: 48px; }
    .hero-inner { grid-template-columns: 1fr; gap: 40px; }
    .hero-visual { max-width: 560px; width: 100%; margin: 0 auto; padding-left: 0; }
    .partners-strip { flex-direction: column; gap: 16px; margin-top: 48px; }
    .partners { width: 100%; }
}
@media (max-width: 480px) {
    .hero-actions .btn { flex: 1 1 100%; }
    .slide figcaption { left: 12px; right: 12px; bottom: 12px; }
    .slide-caption { padding: 8px 12px 8px 8px; gap: 10px; }
    .slide-caption small { display: none; }
    .fc-icon { width: 36px; height: 36px; }
    .slider-controls { top: 10px; right: 10px; }
    .slider-btn { width: 30px; height: 30px; }
    .partners img { height: 34px; }
    .partners-row { gap: 40px; padding-right: 40px; }
}

/* ===== Sekcje ===== */

.section { padding: 104px 0; }
.section-tint { background: var(--tint); }
.section-head { max-width: 680px; margin: 0 auto 48px; text-align: center; }
.section-head p:last-child { color: var(--muted); font-size: 18px; margin: 16px 0 0; }

@media (max-width: 640px) {
    .section { padding: 72px 0; }
}

/* ===== O firmie ===== */

.about { display: grid; grid-template-columns: 1fr 1.3fr; gap: 56px; align-items: start; margin-bottom: 56px; }
.about-text p { margin: 0 0 16px; font-size: 17px; }
.about-text p:first-child { color: var(--ink); font-size: 19px; font-weight: 500; }
@media (max-width: 860px) {
    .about { grid-template-columns: 1fr; gap: 20px; }
}

.services { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 1080px) { .services { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 580px) { .services { grid-template-columns: 1fr; } }

.service-card {
    position: relative;
    padding: 28px 24px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    transition: transform .3s, box-shadow .3s, border-color .3s;
}
.service-card::before {
    content: "";
    position: absolute;
    left: 24px;
    right: 24px;
    top: -1px;
    height: 3px;
    border-radius: 0 0 3px 3px;
    background: var(--brand-grad);
    transform: scaleX(0);
    transition: transform .35s;
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.service-card:hover::before { transform: scaleX(1); }
.service-card h3 { margin: 20px 0 14px; }

.icon-badge {
    display: inline-grid;
    place-items: center;
    width: 54px;
    height: 54px;
    border-radius: 16px;
    background: var(--brand-soft);
    color: var(--brand);
    transition: background .3s, color .3s;
}
.icon-badge .ico { width: 26px; height: 26px; }
.service-card:hover .icon-badge,
.offer-card:hover .icon-badge { background: var(--brand-grad); color: #fff; }

.checks { list-style: none; margin: 0; padding: 0; }
.checks li { position: relative; padding-left: 26px; margin-bottom: 10px; font-size: 15px; line-height: 1.5; }
.checks li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 3px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--brand-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238a0a0a' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 10px no-repeat;
}

/* ===== Oferta ===== */

.filter {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    width: fit-content;
    max-width: 100%;
    margin: 0 auto 40px;
    padding: 6px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 999px;
}
.filter button {
    padding: 10px 20px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: var(--text);
    font: inherit;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: background .25s, color .25s;
}
.filter button:hover { color: var(--brand); }
.filter button[aria-pressed="true"] { background: var(--brand-grad); color: #fff; box-shadow: 0 6px 16px -6px rgba(198, 46, 46, .7); }
@media (max-width: 560px) {
    .filter { border-radius: 20px; }
    .filter button { padding: 8px 14px; font-size: 14px; }
}

/* flex, żeby przefiltrowane karty były wyśrodkowane */
.offer-grid {
    --cols: 4;
    --gap: 20px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--gap);
}
.offer-card {
    flex: 0 0 calc((100% - (var(--cols) - 1) * var(--gap)) / var(--cols));
    padding: 26px 22px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    transition: transform .3s, box-shadow .3s, border-color .3s;
}
.offer-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.offer-card .tag {
    display: block;
    margin: 18px 0 4px;
    color: var(--brand-2);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
}
.offer-card h3 { margin-bottom: 6px; }
.offer-card p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.5; }
.offer-card.pop { animation: pop .45s ease both; }
@keyframes pop { from { opacity: 0; transform: translateY(12px) scale(.98); } }

@media (max-width: 1080px) { .offer-grid { --cols: 3; } }
@media (max-width: 760px) { .offer-grid { --cols: 2; --gap: 14px; } }
.offer-card { min-width: 0; }
.offer-card h3 { overflow-wrap: anywhere; hyphens: auto; }
@media (max-width: 480px) {
    .offer-card { padding: 18px 14px; }
    .offer-card .icon-badge { width: 46px; height: 46px; border-radius: 14px; }
    .offer-card .tag { font-size: 10.5px; letter-spacing: .04em; }
    .offer-card h3 { font-size: 16px; }
    .offer-card p { font-size: 13.5px; }
}

/* ===== Pomoc zdalna ===== */

.help-banner {
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 48px;
    align-items: center;
    padding: clamp(32px, 5vw, 64px);
    border-radius: 28px;
    background: var(--brand-grad);
    color: rgba(255, 255, 255, .88);
    box-shadow: var(--shadow-lg);
}
.help-banner::before,
.help-banner::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, .15);
    pointer-events: none;
}
.help-banner::before { width: 420px; height: 420px; right: -120px; top: -180px; }
.help-banner::after { width: 260px; height: 260px; right: -40px; top: -100px; }
.help-banner h2 { color: #fff; margin-bottom: 14px; }
.help-text p { margin: 0 0 28px; font-size: 17px; }

.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; position: relative; }
.steps li {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding: 18px 20px;
    border-radius: 16px;
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .15);
    font-size: 15px;
    line-height: 1.5;
}
.steps span {
    flex: none;
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #fff;
    color: var(--brand);
    font-weight: 800;
}
.steps strong { display: block; color: #fff; font-size: 16px; }

@media (max-width: 860px) {
    .help-banner { grid-template-columns: 1fr; gap: 32px; }
}

/* ===== Kontakt ===== */

.contact {
    display: grid;
    grid-template-columns: 1fr 1.6fr;
    background: #fff;
    border-radius: 28px;
    box-shadow: var(--shadow);
    overflow: hidden;
}
.contact-panel {
    position: relative;
    padding: 40px 36px;
    background: var(--ink);
    color: rgba(255, 255, 255, .8);
    overflow: hidden;
}
.contact-panel::after {
    content: "";
    position: absolute;
    width: 300px;
    height: 300px;
    right: -120px;
    bottom: -120px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(198, 46, 46, .55), transparent 70%);
    pointer-events: none;
}
.contact-panel h3 { color: #fff; font-size: 24px; margin-bottom: 24px; }
.contact-list { list-style: none; margin: 0 0 32px; padding: 0; display: grid; gap: 14px; }
.contact-list li { display: flex; align-items: center; gap: 14px; }
.contact-list a { color: #fff; font-weight: 600; font-size: 17px; word-break: break-word; }
.contact-list a:hover { color: #ffb3b3; }
.ci { display: grid; place-items: center; width: 42px; height: 42px; flex: none; border-radius: 12px; background: rgba(255, 255, 255, .08); color: #ff8a8a; }

.qr-box { position: relative; z-index: 1; display: flex; align-items: center; gap: 16px; padding: 14px; border-radius: 16px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); }
.qr-box img { width: 96px; border-radius: 10px; background: #fff; padding: 6px; flex: none; }
.qr-box p { margin: 0; font-size: 14px; line-height: 1.5; }

.contact-form { padding: 40px 36px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: block; }
.field-full { grid-column: 1 / -1; }
.field span { display: block; margin-bottom: 6px; font-size: 14px; font-weight: 600; color: var(--ink); }
.field input,
.field textarea {
    display: block;
    width: 100%;
    padding: 13px 16px;
    border: 1.5px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--tint);
    font: inherit;
    font-size: 16px;
    color: var(--ink);
    transition: border-color .2s, box-shadow .2s, background .2s;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus,
.field textarea:focus { outline: none; border-color: var(--brand-2); background: #fff; box-shadow: 0 0 0 4px rgba(198, 46, 46, .12); }

.consent { display: flex; gap: 12px; align-items: flex-start; margin: 20px 0 24px; font-size: 13px; line-height: 1.5; color: var(--muted); cursor: pointer; }
.consent input { width: 18px; height: 18px; margin: 1px 0 0; flex: none; accent-color: var(--brand); }
.hp { position: absolute; left: -9999px; }

@media (max-width: 900px) {
    .contact { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
    .contact-panel, .contact-form { padding: 28px 16px; }  /* widżet Turnstile ma min. 300 px szerokości */
    .form-grid { grid-template-columns: 1fr; }
}

/* ===== Stopka ===== */

.site-footer { background: var(--tint); border-top: 1px solid var(--line); padding-top: 56px; font-size: 15px; }
.footer-inner { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 32px; padding-bottom: 40px; }
.footer-brand img { height: 36px; width: auto; margin-bottom: 12px; }
.footer-brand p { margin: 0; color: var(--muted); }
.footer-nav, .footer-contact { display: flex; flex-direction: column; gap: 8px; }
.footer-nav a, .footer-contact a { color: var(--text); font-weight: 600; }
.footer-nav a:hover, .footer-contact a:hover { color: var(--brand); }
.footer-bottom { border-top: 1px solid var(--line); padding-top: 20px; padding-bottom: 24px; }
.footer-bottom p { margin: 0; color: var(--muted); font-size: 13px; }
@media (max-width: 760px) {
    .footer-inner { grid-template-columns: 1fr; text-align: center; }
    .footer-brand img { margin: 0 auto 12px; }
    .footer-nav { flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 8px 20px; }
    .footer-bottom { text-align: center; }
}

.to-top {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 90;
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--brand-grad);
    color: #fff;
    box-shadow: 0 8px 20px -6px rgba(198, 46, 46, .7);
    transition: opacity .3s, transform .3s;
}
.to-top:hover { color: #fff; transform: translateY(-3px); }
.js .to-top:not(.is-visible) { opacity: 0; transform: translateY(16px); pointer-events: none; }

/* ===== Animacje przy przewijaniu (tylko z JS) ===== */

.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.is-in { opacity: 1; transform: none; }
.hero .reveal:nth-child(2) { transition-delay: .08s; }
.hero .reveal:nth-child(3) { transition-delay: .16s; }
.hero .reveal:nth-child(4) { transition-delay: .24s; }
.hero .reveal:nth-child(5) { transition-delay: .32s; }
.services .reveal:nth-child(2) { transition-delay: .08s; }
.services .reveal:nth-child(3) { transition-delay: .16s; }
.services .reveal:nth-child(4) { transition-delay: .24s; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ===== Strona podziękowania ===== */

.thanks { min-height: 100vh; display: grid; place-items: center; text-align: center; padding: 20px; background: var(--tint); }
.thanks img { margin: 0 auto 24px; height: 44px; width: auto; }
.thanks h1 { font-size: clamp(28px, 5vw, 40px); margin-bottom: 12px; }

/* ===================================================================
   Podstrony oferty i polityka prywatności (nowa22)
   =================================================================== */

/* kafelek oferty jako link do podstrony */
a.offer-card { display: flex; flex-direction: column; align-items: flex-start; color: inherit; }
a.offer-card:hover { color: inherit; }
.offer-card .more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: auto;
    padding-top: 14px;
    color: var(--brand);
    font-size: 14px;
    font-weight: 700;
}
.offer-card .more .ico { width: 1.1em; height: 1.1em; transition: transform .2s; }
.offer-card:hover .more .ico { transform: translateX(4px); }
.offer-card .more { white-space: nowrap; }
.more-short { display: none; }
@media (max-width: 480px) {
    .offer-card .more { font-size: 13px; padding-top: 10px; }
    .more-full { display: none; }
    .more-short { display: inline; }
}

/* stopka: link do polityki prywatności */
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }
.footer-bottom a { color: var(--muted); font-size: 13px; text-decoration: underline; text-underline-offset: 3px; }
.footer-bottom a:hover { color: var(--brand); }
@media (max-width: 760px) { .footer-bottom { flex-direction: column; align-items: center; } }

.consent a { color: var(--brand); text-decoration: underline; text-underline-offset: 2px; }

/* nagłówek podstrony */
.page-hero {
    position: relative;
    overflow: hidden;
    padding: 56px 0 64px;
    background:
        radial-gradient(600px 400px at 90% 0%, rgba(198, 46, 46, .14), transparent 70%),
        var(--tint);
    border-bottom: 1px solid var(--line);
}
.page-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(77, 0, 0, .05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(77, 0, 0, .05) 1px, transparent 1px);
    background-size: 44px 44px;
    -webkit-mask-image: radial-gradient(ellipse at 80% 20%, #000 15%, transparent 70%);
    mask-image: radial-gradient(ellipse at 80% 20%, #000 15%, transparent 70%);
    pointer-events: none;
}
.page-hero .container { position: relative; }
.page-hero-inner { display: grid; grid-template-columns: 1fr auto; gap: 48px; align-items: center; }
.page-hero h1 { font-size: clamp(34px, 5vw, 56px); font-weight: 800; letter-spacing: -.03em; line-height: 1.05; margin-bottom: 18px; }
.page-hero .hero-lead { max-width: 640px; }
.page-hero .hero-actions { margin-bottom: 0; }
.page-hero-sm { padding-bottom: 48px; }
.page-hero-icon {
    display: grid;
    place-items: center;
    width: 200px;
    height: 200px;
    border-radius: 40px;
    background: var(--brand-grad);
    color: #fff;
    box-shadow: var(--shadow-lg);
    transform: rotate(-6deg);
}
.page-hero-icon .ico { width: 96px; height: 96px; stroke-width: 1.4; }
@media (max-width: 860px) {
    .page-hero-inner { grid-template-columns: 1fr; }
    .page-hero-icon { display: none; }
}

.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 22px; font-size: 14px; color: var(--muted); }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--brand); }
.breadcrumb .sep { opacity: .5; }
.breadcrumb [aria-current] { color: var(--ink); font-weight: 600; }

/* treść podstrony */
.page-grid { display: grid; grid-template-columns: 1fr 340px; gap: 56px; align-items: start; }
.page-content h2 { font-size: clamp(24px, 3vw, 32px); margin: 0 0 22px; }
.page-content h2:not(:first-child) { margin-top: 48px; }
.checks-lg li { font-size: 17px; margin-bottom: 14px; padding-left: 30px; }
.checks-lg li::before { width: 20px; height: 20px; top: 3px; background-size: 12px; }
.page-note {
    margin: 28px 0 0;
    padding: 20px 24px;
    border-left: 4px solid var(--brand-2);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    background: var(--tint);
    font-size: 16px;
}
.page-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.page-steps li {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding: 18px 20px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #fff;
    line-height: 1.5;
}
.page-steps span {
    flex: none;
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--brand-grad);
    color: #fff;
    font-weight: 800;
}
.page-steps strong { display: block; color: var(--ink); }

.page-aside { position: sticky; top: calc(var(--header-h) + 24px); }
.aside-card {
    position: relative;
    overflow: hidden;
    padding: 30px 28px;
    border-radius: var(--radius);
    background: var(--ink);
    color: rgba(255, 255, 255, .8);
}
.aside-card::after {
    content: "";
    position: absolute;
    width: 260px;
    height: 260px;
    right: -110px;
    bottom: -110px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(198, 46, 46, .55), transparent 70%);
    pointer-events: none;
}
.aside-card h3 { color: #fff; font-size: 22px; margin-bottom: 10px; }
.aside-card p { margin: 0 0 20px; font-size: 15px; }
.aside-link { position: relative; z-index: 1; display: flex; align-items: center; gap: 10px; margin-bottom: 12px; color: #fff; font-weight: 600; }
.aside-link .ico { color: #ff8a8a; }
.aside-link:hover { color: #ffb3b3; }
.aside-card .btn { position: relative; z-index: 1; margin-top: 10px; }
@media (max-width: 960px) {
    .page-grid { grid-template-columns: 1fr; gap: 40px; }
    .page-aside { position: static; }
}

.back-link { margin: 32px 0 0; text-align: center; font-weight: 700; }

/* polityka prywatności */
.prose { max-width: 820px; }
.prose h2 { font-size: clamp(21px, 2.6vw, 26px); margin: 40px 0 14px; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { font-size: 16px; }
.prose ul { padding-left: 22px; margin: 0 0 16px; }
.prose li { margin-bottom: 8px; }
.prose a { text-decoration: underline; text-underline-offset: 2px; }
.prose .updated { margin-top: 40px; color: var(--muted); font-size: 14px; }
mark.todo { background: #fff3b0; color: #6b4e00; padding: 1px 4px; border-radius: 4px; }

/* Cloudflare Turnstile w formularzu */
.cf-turnstile { min-height: 65px; margin-top: 4px; }
