/* ============================================
   AMBT Auto Detailing — v4
   Fonts: Bebas Neue + DM Sans
   ============================================ */

:root {
    --gold: #d4a853;
    --gold-dark: #b8860b;
    --gold-light: #f0d68a;
    --gold-glow: rgba(212,168,83,0.1);
    --bg: #08080c;
    --bg-alt: #0c0c12;
    --bg-card: #111118;
    --text: #eae5db;
    --text-dim: #827b6e;
    --text-muted: #3e3b36;
    --border: #1a1a24;
    --border-gold: rgba(212,168,83,0.12);
    --r: 12px;
    --ease: cubic-bezier(.4,0,.2,1);
    --ease-out: cubic-bezier(0,0,.2,1);
    --display: 'Bebas Neue', 'Arial Narrow', sans-serif;
    --body: 'DM Sans', system-ui, -apple-system, sans-serif;
    --max-w: 1180px;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
section[id], [id="hero"] { scroll-margin-top: 84px; }
html { scroll-padding-top: 80px; overflow-y: scroll; }
body {
    font-family: var(--body); font-size: 15px; font-weight: 300;
    line-height: 1.75; color: var(--text); background: var(--bg);
    overflow-x: hidden; -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold); text-decoration: none; transition: color .3s var(--ease); }
a:hover { color: var(--gold-light); }
::selection { background: rgba(212,168,83,.2); color: var(--text); }
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
.gold { color: var(--gold); }

/* ── Nav ── */
.nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    padding: 20px 0; background: rgba(8,8,12,0);
    border-bottom: 1px solid transparent;
    transition: padding .4s var(--ease), background .4s var(--ease), border-color .4s var(--ease);
}
.nav--scrolled {
    padding: 10px 0; background: rgba(8,8,12,.94);
    -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px);
    border-bottom: 1px solid var(--border-gold);
}
.nav__container {
    max-width: var(--max-w); margin: 0 auto; padding: 0 24px;
    display: flex; align-items: center; justify-content: space-between;
}
.nav__logo img { height: 40px; width: auto; }
.nav__menu { display: flex; list-style: none; gap: 2px; align-items: center; }
.nav__link {
    color: var(--text-dim); font-size: 11px; font-weight: 500;
    letter-spacing: .12em; text-transform: uppercase;
    padding: 8px 16px; border-radius: 100px;
    transition: all .3s var(--ease);
}
.nav__link:hover, .nav__link--active { color: var(--text); background: rgba(255,255,255,.04); }
.nav__link--cta {
    color: var(--bg) !important; font-weight: 600;
    background: var(--gold); margin-left: 8px;
}
.nav__link--cta:hover { background: var(--gold-light); }
.nav__toggle {
    display: none; flex-direction: column; gap: 5px;
    background: none; border: none; cursor: pointer; padding: 8px; z-index: 101;
}
.nav__toggle span {
    display: block; width: 20px; height: 1.5px; background: var(--gold);
    transition: all .3s var(--ease);
}
.nav__toggle--active span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav__toggle--active span:nth-child(2) { opacity: 0; }
.nav__toggle--active span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ── Buttons ── */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 15px 36px; font-family: var(--body);
    font-size: 11px; font-weight: 600; letter-spacing: .14em;
    text-transform: uppercase; border-radius: 100px; border: none;
    cursor: pointer; transition: all .4s var(--ease);
    position: relative; overflow: hidden;
}
.btn span { position: relative; z-index: 1; }
.btn--primary {
    color: var(--bg); background: var(--gold);
    box-shadow: 0 0 0 0 rgba(212,168,83,0);
}
.btn--primary:hover {
    color: var(--bg); background: var(--gold-light);
    box-shadow: 0 0 50px rgba(212,168,83,.25);
    transform: translateY(-2px);
}
.btn--ghost {
    color: var(--gold); background: transparent;
    border: 1px solid rgba(212,168,83,.25);
}
.btn--ghost:hover {
    color: var(--bg); background: var(--gold); border-color: var(--gold);
}
.btn--small { padding: 10px 22px; font-size: 10px; }

/* ── Hero ── */
.hero {
    position: relative; min-height: 100vh; min-height: 100dvh;
    display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.hero__bg {
    position: absolute; inset: 0;
    background:
        radial-gradient(ellipse 70% 50% at 50% 35%, rgba(212,168,83,.04) 0%, transparent 55%),
        radial-gradient(ellipse 40% 50% at 80% 70%, rgba(184,134,11,.025) 0%, transparent 45%),
        var(--bg);
}
.hero__grain {
    position: absolute; inset: 0; pointer-events: none; opacity: .035;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
    background-size: 200px;
}
.hero__particles { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.hero__particle {
    position: absolute; width: 2px; height: 2px; background: var(--gold);
    border-radius: 50%; opacity: 0; animation: particle-float linear infinite;
}
@keyframes particle-float {
    0% { opacity: 0; transform: translateY(100vh) scale(0); }
    10% { opacity: .4; }
    90% { opacity: .4; }
    100% { opacity: 0; transform: translateY(-10vh) scale(1); }
}

.hero__content {
    position: relative; z-index: 2; text-align: center;
    padding: 120px 24px 100px; max-width: 720px;
    will-change: transform, opacity;
}
.hero__badge { margin-bottom: 28px; }
.hero__badge span {
    display: inline-block; font-size: 11px; font-weight: 500;
    letter-spacing: .3em; text-transform: uppercase; color: var(--text-dim);
    padding: 6px 20px; border: 1px solid var(--border); border-radius: 100px;
}
.hero__logo { position: relative; display: inline-block; margin-bottom: 28px; will-change: transform, opacity; }
.hero__logo img {
    width: 150px; height: 150px; margin: 0 auto;
    filter: drop-shadow(0 0 30px rgba(212,168,83,.12));
    object-fit: contain; position: relative; z-index: 1;
}
.hero__logo-ring {
    position: absolute; inset: -20px;
    border: 1px solid rgba(212,168,83,.08);
    border-radius: 50%; animation: ring-rotate 20s linear infinite;
}
@keyframes ring-rotate { to { transform: rotate(360deg); } }

.hero__title { font-family: var(--display); margin-bottom: 28px; will-change: transform, opacity; }
.hero__word {
    display: block;
    font-size: clamp(4rem, 10vw, 7.5rem);
    font-weight: 400; /* Bebas Neue only has 400 */
    letter-spacing: .06em; line-height: .95;
    background: linear-gradient(135deg, var(--gold-dark), var(--gold), var(--gold-light), var(--gold), var(--gold-dark));
    background-size: 300% auto;
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shimmer 6s ease-in-out infinite;
}
@keyframes shimmer {
    0%, 100% { background-position: 0% center; }
    50% { background-position: 300% center; }
}
.hero__word--sub {
    font-family: var(--body);
    font-size: clamp(.85rem, 2vw, 1.1rem);
    font-weight: 300; letter-spacing: .25em;
    -webkit-text-fill-color: var(--text-dim);
    background: none; margin-top: 8px; line-height: 1.4;
}
.hero__divider {
    display: block; width: 50px; height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    margin: 20px auto;
}
.hero__subtitle {
    font-size: clamp(.8rem, 1.2vw, .95rem);
    color: var(--text-muted); font-weight: 400;
    letter-spacing: .08em; text-transform: uppercase; margin-bottom: 44px;
}
.hero__actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.hero__scroll-wrap {
    position: absolute; bottom: 32px; left: 50%;
    transform: translateX(-50%); z-index: 2;
}
.hero__scroll {
    display: flex; flex-direction: column; align-items: center;
    gap: 12px; color: var(--text-muted); text-decoration: none;
}
.hero__scroll span {
    font-size: 9px; font-weight: 500; letter-spacing: .3em;
    text-transform: uppercase; writing-mode: vertical-lr;
}
.hero__scroll-line {
    width: 1px; height: 40px; position: relative;
    overflow: hidden; background: rgba(212,168,83,.1);
}
.hero__scroll-line::after {
    content: ''; position: absolute; top: -40px; left: 0;
    width: 1px; height: 40px; background: var(--gold);
    animation: scroll-line 2.5s ease-in-out infinite;
}
@keyframes scroll-line {
    0% { transform: translateY(0); }
    100% { transform: translateY(80px); }
}

/* ── Sections ── */
.section { padding: 104px 0; position: relative; }
.section--alt { background: var(--bg-alt); }
.section__header { text-align: center; margin-bottom: 56px; }
.section__label {
    display: inline-block; font-size: 11px; font-weight: 500;
    letter-spacing: .25em; text-transform: uppercase;
    color: var(--gold); margin-bottom: 20px;
}
.section__title {
    font-family: var(--display);
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 400; letter-spacing: .06em; line-height: 1.1;
}
.section__desc {
    max-width: 520px; margin: 20px auto 0;
    color: var(--text-dim); font-size: .95rem; font-weight: 300; line-height: 1.8;
}

/* ── About ── */
.about__grid {
    display: grid; grid-template-columns: 1fr;
    gap: 64px;
}
.about__text p {
    font-size: .95rem; color: var(--text-dim); line-height: 1.9;
    margin-bottom: 20px; font-weight: 300; text-align: justify;
}
.about__text em { color: var(--gold); font-style: normal; font-weight: 500; }
.about__stats {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
.stat {
    text-align: center; padding: 40px 20px;
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--r); transition: all .5s var(--ease);
}
.stat:hover {
    border-color: var(--border-gold);
    box-shadow: 0 8px 40px rgba(212,168,83,.06);
    transform: translateY(-3px);
}
.stat__number {
    font-family: var(--display); font-size: 4rem;
    font-weight: 400; line-height: 1; color: var(--gold);
}
.stat__suffix {
    font-family: var(--display); font-size: 2rem;
    font-weight: 400; color: var(--gold);
}
.stat__label {
    display: block; margin-top: 8px; font-size: 10px;
    color: var(--text-dim); letter-spacing: .08em;
    text-transform: uppercase; font-weight: 500;
}

/* ── Services ── */
.services__hero {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 1px; background: var(--border); margin-bottom: 1px;
}
/* Dwie glowne uslugi ze zdjeciem w tle — klient chce, zeby PPF i powloki
   byly widoczne przed reszta oferty. */
.service-hero {
    position: relative; overflow: hidden; min-height: 460px;
    display: flex; align-items: flex-end; background: var(--bg-card);
}
.service-hero__bg {
    position: absolute; inset: 0; width: 100%; height: 100%;
    object-fit: cover; filter: saturate(1.06) contrast(1.03);
    transform: scale(1.02);
    transition: transform 1.1s var(--ease-out), filter .6s var(--ease);
}
.service-hero::before {
    content: ''; position: absolute; inset: 0; z-index: 1;
    background: linear-gradient(to top, rgba(8,8,12,.97) 0%, rgba(8,8,12,.88) 34%, rgba(8,8,12,.45) 62%, rgba(8,8,12,.12) 100%);
}
.service-hero:hover .service-hero__bg { transform: scale(1.06); filter: saturate(1.12) contrast(1.05) brightness(1.05); }
.service-hero__body { position: relative; z-index: 2; padding: 44px 40px 40px; }
.service-hero__title {
    font-family: var(--display); font-size: 2.3rem; font-weight: 400;
    letter-spacing: .03em; color: var(--text); margin-bottom: 14px; line-height: 1;
}
.service-hero .service-card__price {
    font-size: .78rem; letter-spacing: .1em; text-transform: uppercase;
    color: var(--gold); margin-bottom: 12px;
}
.service-hero .service-card__price { font-size: .84rem; margin-bottom: 14px; }
.service-card__desc { font-size: .92rem; max-width: 44ch; color: #cfc8bc; }

.services__grid {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 1px; background: var(--border);
}
.service-card {
    padding: 40px 32px 44px; background: var(--bg-card);
    position: relative; overflow: hidden; transition: background .5s var(--ease);
}
.service-card::after {
    content: ''; position: absolute; bottom: 0; left: 32px; right: 32px;
    height: 1px; background: var(--gold);
    transform: scaleX(0); transform-origin: left;
    transition: transform .5s var(--ease);
}
.service-card:hover::after { transform: scaleX(1); }
.service-card:hover { background: rgba(17,17,24,.9); }
.service-card__iconwrap {
    width: 52px; height: 52px; margin-bottom: 22px;
    display: flex; align-items: center; justify-content: center;
    border: 1px solid rgba(212,168,83,.22); border-radius: 50%;
    color: var(--gold);
    transition: border-color .45s var(--ease), background .45s var(--ease), transform .45s var(--ease);
}
.service-card:hover .service-card__iconwrap {
    border-color: rgba(212,168,83,.6); background: rgba(212,168,83,.08);
    transform: translateY(-3px);
}
.service-card__icon { width: 24px; height: 24px; }
.service-card__title {
    font-family: var(--display); font-size: 1.35rem;
    font-weight: 400; letter-spacing: .04em;
    margin-bottom: 10px; color: var(--text);
}
.service-card__desc {
    font-size: .85rem; color: var(--text-dim);
    line-height: 1.7; font-weight: 300;
}
.service-card__tag {
    display: inline-block; margin-bottom: 16px;
    font-size: .66rem; letter-spacing: .18em; text-transform: uppercase;
    color: var(--gold); border: 1px solid rgba(212,168,83,.38);
    border-radius: 2px; padding: 5px 12px; background: rgba(8,8,12,.4);
}
.service-card__cta {
    display: inline-flex; align-items: center; gap: 8px;
    margin-top: 22px; font-size: .78rem; letter-spacing: .14em;
    text-transform: uppercase; color: var(--gold);
    border-bottom: 1px solid rgba(212,168,83,.35); padding-bottom: 4px;
    transition: border-color .3s var(--ease), gap .3s var(--ease);
}
.service-card__cta::after { content: '→'; }
.service-card__cta:hover { border-color: var(--gold); gap: 14px; }

/* ── Configurator ── */
/* sekcja ma zmiescic sie w oknie razem z konfiguratorem, stad mniejsze odstepy
   niz w pozostalych sekcjach (140 px) */
.section--quote { padding: 44px 0 72px; }
/* Nagłówek obok konfiguratora zamiast nad nim — inaczej sekcja nie mieści się
   na ekranie i wycena zaczyna się poniżej krawędzi. */
.quote__layout {
    display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    gap: 56px; align-items: start;
}
.quote__intro { padding-top: 2px; }
.quote__intro .section__title { font-size: clamp(1.9rem, 3.2vw, 2.6rem); margin-bottom: 18px; }
.quote__intro .section__desc { margin: 0 0 24px; max-width: 42ch; }
.quote__steps { list-style: none; display: grid; gap: 12px; margin-bottom: 22px; }
.quote__steps li {
    display: flex; gap: 12px; align-items: baseline;
    font-size: .86rem; color: var(--text-dim); line-height: 1.6;
}
.quote__steps span {
    font-family: var(--display); font-size: .95rem; color: var(--gold);
    letter-spacing: .06em; flex-shrink: 0;
}
.quote__note {
    font-size: .78rem; color: var(--text-dim); line-height: 1.65;
    padding-top: 18px; border-top: 1px solid var(--border); max-width: 42ch;
}
/* Miejsce pod konfigurator zarezerwowane z gory. Widget doladowuje sie leniwie
   i urosl o 372 px juz po tym, jak przegladarka policzyla pozycje kolejnych
   sekcji — klikniecie "Realizacje" w tym oknie ladowalo obok celu. */
.configurator__widget { min-height: 792px; }

/* ── Gallery ── */
.gallery__grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px;
}
.gallery__item {
    position: relative; overflow: hidden; aspect-ratio: 1; cursor: pointer;
}
.gallery__item img,
.gallery__item video {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform .7s var(--ease-out), filter .5s var(--ease);
    filter: brightness(.97);
}
.gallery__item:hover img,
.gallery__item:hover video { transform: scale(1.04); filter: brightness(1.06); }
.gallery__multi {
    position: absolute; top: 10px; right: 10px; z-index: 2;
    width: 26px; height: 26px; display: flex; align-items: center; justify-content: center;
    color: #fff; filter: drop-shadow(0 1px 3px rgba(0,0,0,.7));
    pointer-events: none;
}
.gallery__multi svg { width: 17px; height: 17px; }
.gallery__item figcaption {
    position: absolute; bottom: 0; left: 0; right: 0;
    padding: 40px 20px 20px;
    background: linear-gradient(to top, rgba(8,8,12,.85) 0%, transparent 100%);
    font-family: var(--display); font-size: 1.1rem;
    font-weight: 400; letter-spacing: .06em; color: var(--gold);
    text-transform: uppercase;
    transform: translateY(100%); transition: transform .5s var(--ease);
}
.gallery__item:hover figcaption { transform: translateY(0); }

/* ── Contact ── */
.contact__grid {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 40px; align-items: stretch;
}
.contact__left {
    display: flex; flex-direction: column; justify-content: space-between;
}
.contact__items { display: flex; flex-direction: column; }
.contact__item {
    display: flex; align-items: center; gap: 20px;
    padding: 22px 0; border-bottom: 1px solid var(--border);
    transition: all .3s var(--ease); text-decoration: none; color: inherit;
}
.contact__items .contact__item:first-child { border-top: 1px solid var(--border); }
a.contact__item:hover { padding-left: 8px; }
.contact__icon-wrap {
    width: 40px; height: 40px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    border: 1px solid var(--border); border-radius: 50%;
    color: var(--gold); transition: all .3s var(--ease);
}
.contact__icon-wrap svg { width: 16px; height: 16px; }
a.contact__item:hover .contact__icon-wrap {
    border-color: var(--gold); background: var(--gold-glow);
}
.contact__item strong {
    display: block; font-size: 9px; font-weight: 600;
    letter-spacing: .18em; text-transform: uppercase;
    color: var(--gold); margin-bottom: 2px;
}
.contact__item span { font-size: .9rem; color: var(--text-dim); font-weight: 300; }
.contact__social { display: flex; gap: 12px; margin-top: 28px; }
.contact__social a {
    width: 40px; height: 40px; display: flex; align-items: center; justify-content: center;
    border: 1px solid var(--border); border-radius: 50%;
    color: var(--text-dim); transition: all .3s var(--ease);
}
.contact__social a:hover {
    color: var(--gold); border-color: var(--gold); background: var(--gold-glow);
}
.contact__social svg { width: 16px; height: 16px; }
.contact__map {
    min-height: 380px; border-radius: var(--r);
    overflow: hidden; border: 1px solid var(--border);
}
.mapka {
    display: block; position: relative; width: 100%; height: 100%; min-height: 380px;
    overflow: hidden;
}
.mapka img {
    width: 100%; height: 100%; min-height: 380px; object-fit: cover;
    display: block; transform: scale(1);
    transition: transform .6s var(--ease), opacity .4s var(--ease);
    opacity: .92;
}
.mapka:hover img { transform: scale(1.04); opacity: 1; }
.mapka__cta {
    position: absolute; left: 18px; bottom: 18px;
    padding: 9px 18px; border-radius: 100px;
    background: rgba(8,8,12,.82); border: 1px solid rgba(212,168,83,.45);
    color: var(--gold); font-size: 10px; font-weight: 600;
    letter-spacing: .12em; text-transform: uppercase;
    transition: background .3s var(--ease), border-color .3s var(--ease);
}
.mapka:hover .mapka__cta { background: rgba(212,168,83,.16); border-color: var(--gold); }
.mapka__zrodlo {
    position: absolute; right: 10px; bottom: 8px;
    font-size: 9px; letter-spacing: .04em; color: rgba(234,229,219,.45);
    text-shadow: 0 1px 2px rgba(0,0,0,.8);
}

/* ── Footer ── */
.footer { border-top: 1px solid var(--border); background: var(--bg); }
.footer__top {
    display: flex; align-items: center; justify-content: space-between;
    padding: 24px 0; border-bottom: 1px solid rgba(255,255,255,.02);
}
.footer__brand {
    display: flex; align-items: center; gap: 10px;
    font-size: 13px; color: var(--text-dim); font-weight: 400;
}
.footer__brand img { width: 32px; height: 32px; object-fit: contain; }
.footer__copy { font-size: 11px; color: var(--text-muted); }
.footer__bottom { padding: 14px 0; text-align: center; display: flex; justify-content: space-between; align-items: center; }
.footer__privacy { font-size: 10px; color: var(--text-muted); letter-spacing: .06em; }
.footer__privacy a { color: var(--text-dim); font-weight: 400; transition: color .3s var(--ease); }
.footer__privacy a:hover { color: var(--gold); }
.footer__dms { font-size: 10px; color: var(--text-muted); letter-spacing: .06em; }
.footer__dms a { color: var(--text-dim); font-weight: 500; transition: color .3s var(--ease); }
.footer__dms a:hover { color: var(--gold); }

/* ── Cookie ── */
.cookie-banner {
    position: fixed; bottom: 0; left: 0; right: 0; z-index: 9999;
    background: var(--bg-card); border-top: 1px solid var(--border); padding: 14px 0;
}
.cookie-banner[hidden] { display: none; }
.cookie-banner__content {
    max-width: var(--max-w); margin: 0 auto; padding: 0 24px;
    display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.cookie-banner__content p { font-size: 12px; color: var(--text-dim); font-weight: 300; line-height: 1.6; }
.cookie-banner__content a { color: var(--gold); text-decoration: underline; text-underline-offset: 2px; }
.cookie-banner__actions { display: flex; gap: 8px; flex-shrink: 0; }

/* ── Podglad realizacji (karuzela) ── */
.lightbox {
    position: fixed; inset: 0; z-index: 9000;
    display: flex; align-items: center; justify-content: center; padding: 24px;
}
.lightbox[hidden] { display: none; }
.lightbox__backdrop {
    position: absolute; inset: 0;
    background: rgba(6,6,9,.97);
    -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
    opacity: 0; transition: opacity .35s var(--ease);
}
.lightbox--open .lightbox__backdrop { opacity: 1; }
.lightbox__content {
    position: relative; z-index: 1;
    /* kadr zawsze kwadratowy, pasy wypelnia rozmyta kopia zdjecia — proby
       dopasowania szerokosci do proporcji dawaly zbyt waskie okno przy pionowych */
    width: auto; max-width: 96vw; height: min(78vh, 820px);
    display: grid; grid-template-columns: auto 340px;
    transition: opacity .35s var(--ease), transform .35s var(--ease);
    background: #0d0d13; border: 1px solid rgba(255,255,255,.07);
    border-radius: 4px; overflow: hidden;
    box-shadow: 0 40px 90px rgba(0,0,0,.75);
    opacity: 0; transform: scale(.96);
    transition: opacity .35s var(--ease), transform .35s var(--ease),
                height .38s cubic-bezier(.16,1,.3,1), grid-template-columns .38s cubic-bezier(.16,1,.3,1);
}
.lightbox--open .lightbox__content { opacity: 1; transform: scale(1); }
.lightbox__content { will-change: grid-template-columns; }
.lightbox__stage {
    position: relative; background: #07070a;
    display: flex; align-items: center; justify-content: center;
    height: 100%; min-height: 0; overflow: hidden;
    aspect-ratio: 1 / 1;
}
.lightbox__media {
    position: relative; width: 100%; height: 100%; overflow: hidden;
}
/* kazdy kadr to osobna warstwa — dzieki temu zmiana jest przenikaniem,
   a nie podmiana zawartosci, ktora migala */
.lightbox__slide {
    position: absolute; inset: 0;
    display: flex; align-items: center; justify-content: center;
    opacity: 1; transform: translateX(0);
    transition: opacity .42s cubic-bezier(.16,1,.3,1), transform .42s cubic-bezier(.16,1,.3,1);
    will-change: opacity, transform;
}
.lightbox__blur {
    position: absolute; inset: -10%;
    background-size: cover; background-position: center;
    filter: blur(34px) brightness(.4) saturate(1.1);
    transform: scale(1.1);
}
.lightbox__el { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: contain; display: block; }
.lightbox__nav {
    position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
    width: 42px; height: 42px; display: flex; align-items: center; justify-content: center;
    background: rgba(8,8,12,.55); border: 1px solid rgba(255,255,255,.12);
    border-radius: 50%; color: var(--text); cursor: pointer;
    transition: background .3s var(--ease), border-color .3s var(--ease);
}
.lightbox__nav:hover { background: rgba(212,168,83,.2); border-color: var(--gold); }
.lightbox__nav svg { width: 20px; height: 20px; }
.lightbox__nav[hidden] { display: none; }
.lightbox__nav--prev { left: 14px; }
.lightbox__nav--next { right: 14px; }

.lightbox__panel {
    display: flex; flex-direction: column; height: 100%; overflow: hidden;
    border-left: 1px solid rgba(255,255,255,.07);
    background: #0d0d13; min-height: 0;
}
.lightbox__head {
    display: flex; align-items: center; gap: 11px;
    padding: 16px 20px; border-bottom: 1px solid rgba(255,255,255,.07);
    flex-shrink: 0;
}
.lightbox__avatar {
    width: 34px; height: 34px; border-radius: 50%; object-fit: contain;
    background: #14141c; padding: 3px; border: 1px solid rgba(212,168,83,.25);
}
.lightbox__brandname { display: block; font-size: .84rem; color: var(--text); }
.lightbox__place {
    display: block; font-size: .68rem; color: var(--text-dim);
    letter-spacing: .08em; text-transform: uppercase;
}
/* watek — podpis i kolejne wpisy, jak rozmowa pod wpisem */
.lightbox__thread {
    flex: 1 1 auto; min-height: 0; overflow-y: auto;
    padding: 16px 20px; display: flex; flex-direction: column; gap: 15px;
}
/* delikatne wygaszenie u dolu sygnalizuje, ze watek ma dalszy ciag */
.lightbox__thread {
    -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 22px), transparent 100%);
    mask-image: linear-gradient(to bottom, #000 calc(100% - 22px), transparent 100%);
}
.lightbox__thread::-webkit-scrollbar { width: 3px; }
.lightbox__thread::-webkit-scrollbar-thumb { background: rgba(212,168,83,.25); }
.lb-entry { display: flex; gap: 10px; align-items: flex-start; }
/* Każdy sygnet w wątku ma ten sam rozmiar i kształt — okrąg 28 px, niezależnie
   od tego, czy niesie logo, znak marki, znak literowy czy inicjał. */
.lb-entry__av {
    width: 28px; height: 28px; flex-shrink: 0;
    border-radius: 50%; box-sizing: border-box;
    background: #14141c; border: 1px solid rgba(255,255,255,.08);
    object-fit: contain; padding: 2px;
    display: flex; align-items: center; justify-content: center;
}
.lb-entry--caption .lb-entry__av { border-color: rgba(212,168,83,.25); }
.lb-entry__body { min-width: 0; }
.lb-entry__text {
    margin: 0; font-size: .82rem; line-height: 1.62; color: #cfc8bc;
}
.lb-entry__who { color: var(--text); margin-right: 5px; }
.lb-entry--caption .lb-entry__text { color: #ded7cb; }
.lb-entry__meta {
    display: inline-block; margin-top: 5px;
    font-size: .68rem; color: var(--text-dim); letter-spacing: .04em;
}
/* znak marki — maska w środku okręgu, nie zamiast niego */
.lb-entry__av--marka {
    padding: 0;
    background:
        var(--gold) var(--znak) center / 15px 15px no-repeat;
    -webkit-mask: none; mask: none;
    position: relative; overflow: hidden;
}
.lb-entry__av--marka::after {
    content: ''; position: absolute; inset: 0;
    background: #14141c;
    -webkit-mask: var(--znak) center / 15px 15px no-repeat;
    mask: var(--znak) center / 15px 15px no-repeat;
    -webkit-mask-composite: xor; mask-composite: exclude;
}
.lb-entry__av--word {
    padding: 0; background: rgba(212,168,83,.12);
    border-color: rgba(212,168,83,.3);
    color: var(--gold); font-size: .46rem; font-weight: 600;
    letter-spacing: .02em; line-height: 1;
}
.lb-entry__av--txt {
    padding: 0; background: rgba(212,168,83,.1);
    border-color: rgba(212,168,83,.22);
    color: var(--gold); font-size: .72rem;
}
.lb-entry__role {
    display: inline-block; margin: 0 5px 0 -2px; padding: 1px 6px;
    font-size: .58rem; letter-spacing: .12em; text-transform: uppercase;
    color: var(--text-dim); border: 1px solid rgba(255,255,255,.14); border-radius: 2px;
    vertical-align: 1px;
}
.lb-entry--caption .lb-entry__text { color: #ded7cb; }
.lb-entry__meta {
    display: inline-block; margin-top: 5px;
    font-size: .68rem; color: var(--text-dim); letter-spacing: .04em;
}
.lightbox__panelfoot {
    flex-shrink: 0; padding: 14px 20px 18px;
    border-top: 1px solid rgba(255,255,255,.07);
    display: flex; flex-direction: column; gap: 12px;
}
.lightbox__tags { display: flex; flex-wrap: wrap; gap: 7px; }
.lightbox__tag {
    font-size: .64rem; letter-spacing: .14em; text-transform: uppercase;
    color: var(--gold); border: 1px solid rgba(212,168,83,.3);
    border-radius: 2px; padding: 4px 9px;
}
.lightbox__tag--auto {
    color: var(--text-dim); border-color: rgba(255,255,255,.14);
    letter-spacing: .06em; text-transform: none; font-size: .7rem;
}
.lightbox__dots { display: flex; flex-wrap: wrap; gap: 7px; }
.lightbox__dot {
    width: 6px; height: 6px; border-radius: 50%;
    background: rgba(255,255,255,.18); cursor: pointer;
    transition: background .3s var(--ease), transform .3s var(--ease);
}
.lightbox__dot:hover { background: rgba(212,168,83,.6); }
.lightbox__dot.is-active { background: var(--gold); transform: scale(1.35); }
.lightbox__foot {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding-top: 14px; border-top: 1px solid rgba(255,255,255,.07);
}
.lightbox__counter { font-size: .74rem; color: var(--text-dim); letter-spacing: .08em; }
.lightbox__cta {
    font-size: .74rem; letter-spacing: .12em; text-transform: uppercase;
    color: var(--gold); border-bottom: 1px solid rgba(212,168,83,.35); padding-bottom: 3px;
}
.lightbox__cta:hover { border-color: var(--gold); }
.lightbox__jump {
    position: fixed; top: 50%; transform: translateY(-50%); z-index: 3;
    width: 46px; height: 46px; display: flex; align-items: center; justify-content: center;
    background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12);
    border-radius: 50%; color: var(--text); cursor: pointer;
    transition: background .3s var(--ease), border-color .3s var(--ease), transform .3s var(--ease);
}
.lightbox__jump:hover {
    background: rgba(212,168,83,.18); border-color: var(--gold);
}
.lightbox__jump--prev { left: 22px; }
.lightbox__jump--next { right: 22px; }
.lightbox__jump--prev:hover { transform: translateY(-50%) translateX(-3px); }
.lightbox__jump--next:hover { transform: translateY(-50%) translateX(3px); }
.lightbox__jump svg { width: 22px; height: 22px; }

.lightbox__close {
    position: fixed; top: 24px; right: 24px; z-index: 2;
    width: 44px; height: 44px; display: flex; align-items: center; justify-content: center;
    background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1);
    border-radius: 50%; color: var(--text); cursor: pointer;
    transition: background .3s var(--ease), border-color .3s var(--ease), transform .3s var(--ease);
}
.lightbox__close:hover { background: rgba(212,168,83,.15); border-color: var(--gold); transform: rotate(90deg); }
.lightbox__close svg { width: 20px; height: 20px; }

/* ── Panel zgody na cookies ── */
.cookie-banner {
    max-height: 86vh; overflow-y: auto;
    background: linear-gradient(to top, #0b0b10 0%, #12121a 100%);
    border-top: 1px solid rgba(212,168,83,.22);
    box-shadow: 0 -18px 50px rgba(0,0,0,.55);
    padding: 18px 0 20px;
}
.cookie-banner__content { align-items: flex-start; }
.cookie-banner__intro p { margin: 0; }
.cookie-banner__intro p:first-child {
    font-family: var(--display); font-size: 1.05rem; letter-spacing: .05em;
    color: var(--text); text-transform: uppercase; margin-bottom: 6px;
}
.cookie-banner__intro p strong { font-weight: 400; }
.cookie-banner__actions { align-items: center; }

.cookie-prefs {
    max-width: var(--max-w); margin: 18px auto 0; padding: 18px 24px 0;
    border-top: 1px solid rgba(255,255,255,.07);
}
.cookie-prefs__grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px;
}
.cookie-pref {
    display: block; padding: 16px 18px; cursor: pointer;
    background: rgba(255,255,255,.02);
    border: 1px solid var(--border); border-radius: 3px;
    transition: border-color .35s var(--ease), background .35s var(--ease);
}
.cookie-pref:hover { border-color: rgba(212,168,83,.35); background: rgba(255,255,255,.035); }
.cookie-pref--locked { cursor: default; opacity: .78; }
.cookie-pref--locked:hover { border-color: var(--border); background: rgba(255,255,255,.02); }
.cookie-pref__head {
    display: flex; align-items: center; justify-content: space-between;
    gap: 12px; margin-bottom: 8px;
}
.cookie-pref__name {
    font-size: .88rem; color: var(--text); letter-spacing: .02em;
}
.cookie-pref__always {
    font-size: .64rem; letter-spacing: .16em; text-transform: uppercase;
    color: var(--gold); border: 1px solid rgba(212,168,83,.3);
    border-radius: 2px; padding: 3px 8px;
}
.cookie-pref__desc {
    display: block; font-size: .76rem; color: var(--text-dim); line-height: 1.65;
}
/* przelacznik */
.cookie-pref__input { position: absolute; opacity: 0; width: 0; height: 0; }
.cookie-pref__switch {
    position: relative; flex-shrink: 0;
    width: 40px; height: 22px; border-radius: 11px;
    background: rgba(255,255,255,.1);
    border: 1px solid rgba(255,255,255,.14);
    transition: background .3s var(--ease), border-color .3s var(--ease);
}
.cookie-pref__switch::after {
    content: ''; position: absolute; top: 2px; left: 2px;
    width: 16px; height: 16px; border-radius: 50%;
    background: #8d8d95;
    transition: transform .3s var(--ease), background .3s var(--ease);
}
.cookie-pref__input:checked + .cookie-pref__switch {
    background: rgba(212,168,83,.32); border-color: var(--gold);
}
.cookie-pref__input:checked + .cookie-pref__switch::after {
    transform: translateX(18px); background: var(--gold);
}
.cookie-pref__input:focus-visible + .cookie-pref__switch {
    outline: 2px solid var(--gold); outline-offset: 2px;
}
.cookie-prefs__stamp {
    margin-top: 16px; font-size: 11px; color: var(--gold);
    letter-spacing: .02em; opacity: .9;
}
.cookie-prefs__stamp:empty { display: none; }
.cookie-prefs__note {
    margin-top: 6px; font-size: 11px; color: var(--text-dim); font-weight: 300;
}
.cookie-prefs__actions {
    display: flex; justify-content: space-between; align-items: center;
    gap: 12px; margin-top: 16px;
}
.cookie-pref__desc code {
    font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
    font-size: .92em; color: var(--text-dim);
    background: rgba(255,255,255,.05); border-radius: 3px; padding: 1px 4px;
}

/* Odmowa i zgoda musza wygladac tak samo. Gdy akceptacja jest zlotym przyciskiem,
   a odmowa bladym obrysem, wybor przestaje byc swobodny w rozumieniu RODO
   (wytyczne EDPB 03/2022 o zwodniczych wzorcach). Stad wspolna klasa zamiast
   pary btn--primary / btn--ghost. */
.btn--consent {
    color: var(--gold); background: rgba(212,168,83,.10);
    border: 1px solid rgba(212,168,83,.55);
}
.btn--consent:hover {
    background: rgba(212,168,83,.2); border-color: var(--gold);
    color: var(--gold-light); transform: translateY(-1px);
}
.footer__sep { color: var(--text-dim); margin: 0 6px; }
.footer__cookiebtn {
    background: none; border: none; padding: 0; cursor: pointer;
    font: inherit; color: inherit; text-decoration: underline;
    text-underline-offset: 3px;
}
.footer__cookiebtn:hover { color: var(--gold); }

/* ── Zgoda na mape ── */

/* ── Responsive ── */
@media (max-width: 1024px) {
    .services__grid { grid-template-columns: repeat(2, 1fr); }
    .quote__layout { grid-template-columns: 1fr; gap: 40px; }
    .configurator__widget { min-height: 771px; }
    .quote__intro .section__desc, .quote__note { max-width: none; }
    .service-hero { min-height: 400px; }
    .service-hero__title { font-size: 1.9rem; }
    .service-card, .service-card--main { grid-column: span 1; }
    .service-card--main { padding: 44px 32px; }
    .service-card--main .service-card__title { font-size: 1.6rem; }
}
@media (max-width: 768px) {
    .nav__toggle { display: flex; position: relative; z-index: 200; }
    .nav__menu {
        position: fixed; top: 0; left: 0; width: 100%; height: 100dvh;
        background: var(--bg); flex-direction: column;
        justify-content: center; align-items: center;
        padding: 0; gap: 0; list-style: none;
        transform: translateX(100%); transition: transform .38s var(--ease);
        z-index: 150; will-change: transform;
        border: none;
    }
    .nav__menu--open { transform: translateX(0); }
    .nav__menu li { width: 100%; display: flex; justify-content: center; }
    .nav__link {
        display: block; width: 260px; max-width: 80vw;
        font-size: 16px; padding: 18px 0; text-align: center;
        border-bottom: 1px solid var(--border); border-radius: 0;
        letter-spacing: .18em;
    }
    .nav__menu li:first-child .nav__link { border-top: 1px solid var(--border); }
    .nav__link--cta {
        margin-left: 0; margin-top: 28px; border: 1px solid var(--gold) !important;
        border-radius: 100px !important; padding: 14px 0; width: 200px;
        background: var(--gold); color: var(--bg) !important;
    }
    .about__stats { grid-template-columns: repeat(3, 1fr); }
    .services__grid { grid-template-columns: 1fr; gap: 0; }
    .cookie-prefs__grid { grid-template-columns: 1fr; }
    .cookie-banner__actions { flex-wrap: wrap; width: 100%; }
    .cookie-banner__actions .btn--consent { flex: 1 1 calc(50% - 4px); }
    .cookie-banner__actions #cookieSettings { flex: 1 1 100%; order: 3; }
    .cookie-prefs__actions { flex-direction: column-reverse; align-items: stretch; }
    .cookie-banner__content { flex-direction: column; align-items: stretch; }
    .cookie-banner__actions { flex-wrap: wrap; }
    .services__hero { grid-template-columns: 1fr; }
    /* Na waskim ekranie tekst zajmuje niemal cala karte, wiec gradient musi
       siegac wyzej — inaczej naglowek lezy na jasnych partiach zdjecia. */
    .service-hero::before {
        background: linear-gradient(to top, rgba(8,8,12,.97) 0%, rgba(8,8,12,.93) 55%, rgba(8,8,12,.7) 80%, rgba(8,8,12,.35) 100%);
    }
    .service-hero { min-height: 340px; }
    .service-hero__body { padding: 32px 24px 28px; }
    .service-hero__title { font-size: 1.7rem; }
    .service-card, .service-card--main { grid-column: span 1; }
    .gallery__grid { grid-template-columns: repeat(2, 1fr); gap: 3px; }
    .lightbox { padding: 0; align-items: stretch; }
    .lightbox__content {
        grid-template-columns: 1fr; grid-template-rows: auto minmax(0, 1fr);
        width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh;
        border-radius: 0; border: none;
    }
    .lightbox__stage { height: 44vh; flex: 0 0 auto; }
    .lightbox__el { height: 100%; }
    .lightbox__panel { border-left: none; border-top: 1px solid rgba(255,255,255,.07); }
    .lightbox__head { padding: 12px 16px; }
    .lightbox__thread { padding: 13px 16px; gap: 13px; }
    .lb-entry__text { font-size: .8rem; line-height: 1.58; }
    .lightbox__panelfoot { padding: 11px 16px 14px; gap: 10px; }
        .lightbox__brand img { width: 34px; height: 34px; }
    .lightbox__foot { padding-top: 10px; }
    .lightbox__close { top: 12px; right: 12px; width: 38px; height: 38px; }
    .lightbox__jump { width: 38px; height: 38px; top: 26vh; }
    .lightbox__jump--prev { left: 8px; }
    .lightbox__jump--next { right: 8px; }
    .contact__grid { grid-template-columns: 1fr; gap: 32px; }
    .section { padding: 100px 0; }
    .hero__logo img { width: 120px; height: 120px; }
    .footer__top { flex-direction: column; gap: 8px; text-align: center; }
    .footer__bottom { flex-direction: column; gap: 6px; text-align: center; }
    .cookie-banner__content { flex-direction: column; text-align: center; }
}
@media (max-width: 480px) {
    .about__stats { grid-template-columns: 1fr; }
    .hero__actions { flex-direction: column; align-items: center; }
    .hero__actions .btn { width: 100%; max-width: 250px; }
    .gallery__grid { grid-template-columns: repeat(2, 1fr); gap: 2px; }
    .section { padding: 80px 0; }
}
@media print {
    .nav, .hero__particles, .hero__grain, .hero__scroll-wrap,
    .cookie-banner, .configurator__widget, .contact__map { display: none !important; }
    body { background: #fff; color: #000; }
}
