/* Paint Service: paleta „ciepły beton” */

/* ---------- Fonty (lokalnie, latin + latin-ext dla polskich znaków) ---------- */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/inter-latin-400.f837d382a885.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/inter-latin-ext-400.9159859e7aa8.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/inter-latin-500.42b95430773b.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/inter-latin-ext-500.656e8d21838c.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/poppins-latin-600.72993dddf88a.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/poppins-latin-ext-600.4bf15962191b.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/poppins-latin-700.25b0e113ca7c.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/poppins-latin-ext-700.08561ea67d7f.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

/* ---------- Kolory i podstawy ---------- */
:root {
    --page: #e9e4dc;
    --alt: #dfd8cd;
    --card: #f3efe9;
    --line: #d3cbbd;
    --text: #1d1b18;
    --muted: #6f685e;
    --dark: #1b1a18;
    --accent: #e8501a;
    --on-dark-muted: #a7a29a;

    --font-head: "Poppins", system-ui, sans-serif;
    --font-body: "Inter", system-ui, sans-serif;
    --gutter: clamp(16px, 4vw, 48px);
    --section-y: clamp(64px, 10vw, 120px);
    --mobile-bar-h: 0px;
    /* Wspólna lewa/prawa krawędź treści: kolumna 1200 px albo margines na wąskich ekranach. */
    --edge: max(var(--gutter), calc((100% - 1200px) / 2 + var(--gutter)));
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    background: var(--page);
    color: var(--text);
    font: 400 17px/1.6 var(--font-body);
    -webkit-font-smoothing: antialiased;
    padding-bottom: var(--mobile-bar-h);
}

h1, h2, h3 { font-family: var(--font-head); font-weight: 700; margin: 0; line-height: 1.1; }
p { margin: 0; }
a { color: inherit; }
.accent { color: var(--accent); }

.container { padding-inline: var(--edge); }

.section-label {
    display: inline-block;
    color: var(--accent);
    font: 600 12px/1 var(--font-body);
    letter-spacing: .16em;
    text-transform: uppercase;
}
.section-title { font-size: clamp(30px, 4.4vw, 48px); margin-top: 14px; letter-spacing: -.01em; }
.section-intro { color: var(--muted); margin-top: 12px; max-width: 560px; }

/* Placeholder zdjęcia: ciemne, ciepłe tony; zastępowane przez background-image. */
.photo {
    background-color: #2c2b28;
    background-image:
        radial-gradient(ellipse 60% 50% at 75% 20%, rgba(232, 80, 26, .16), transparent 70%),
        radial-gradient(ellipse 50% 60% at 15% 85%, rgba(233, 228, 220, .07), transparent 70%),
        linear-gradient(160deg, #3d3c38 0%, #262522 60%, #1d1c1a 100%);
    background-size: cover;
    background-position: center;
}

/* ---------- Menu ---------- */
.site-header {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 50;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 20px var(--edge);
    color: #fff;
    transition: background-color .25s, padding .25s;
}
.site-header.is-scrolled {
    background: rgba(27, 26, 24, .94);
    backdrop-filter: blur(8px);
    padding-top: 12px;
    padding-bottom: 12px;
}
.site-header__brand { font: 700 19px/1 var(--font-head); text-decoration: none; }
.site-header__nav { display: flex; gap: clamp(16px, 3vw, 32px); }
.site-header__nav a { text-decoration: none; font-size: 15px; opacity: .85; transition: color .2s, opacity .2s; }
.site-header__nav a:hover { opacity: 1; color: var(--accent); }

/* ---------- 1. Baner ---------- */
.hero {
    position: relative;
    min-height: 100vh;
    min-height: 100svh;
    display: grid;
    place-items: center;
    text-align: center;
    color: #fff;
    padding: 96px var(--gutter);
    overflow: hidden;
    background: #1d1c1a; /* ciemny podkład, z którego wyłania się tło */
}
.hero__bg { position: absolute; inset: 0; }
.hero__bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(20, 19, 17, .45) 0%, rgba(20, 19, 17, .25) 45%, rgba(20, 19, 17, .6) 100%);
}
/* Zdjęcie w tle mocno przyciemnione: nastrój, a napis zostaje czytelny.
   --hero-dim: 0 = zdjęcie w pełni widoczne, 1 = całkiem czarne. */
.hero__bg--image { --hero-dim: .68; background-position: 58% 60%; } /* 58%: logo na środku przy wąskim ekranie */
.hero__bg--image::after {
    background:
        linear-gradient(180deg, rgba(20, 19, 17, .35) 0%, rgba(20, 19, 17, 0) 40%, rgba(20, 19, 17, .55) 100%),
        rgba(20, 19, 17, var(--hero-dim));
}
.hero__inner { position: relative; }
.hero__word { display: inline-block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; vertical-align: bottom; }
.hero__word > span { display: inline-block; }

/* Wejście banera przy załadowaniu strony. */
.hero__bg { animation: hero-bg 1.8s cubic-bezier(.2, .7, .2, 1) both; }
.hero__word > span { animation: hero-rise .9s cubic-bezier(.2, .8, .2, 1) both; animation-delay: .15s; }
.hero__word + .hero__word > span { animation-delay: .3s; }
.hero__subtitle { animation: hero-fade .8s ease both; animation-delay: .7s; }
.site-header { animation: hero-fade .8s ease both; animation-delay: 1s; }
@keyframes hero-bg { from { transform: scale(1.08); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes hero-rise { from { transform: translateY(105%); } to { transform: none; } }
@keyframes hero-fade { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.hero__title { font-size: clamp(52px, 11vw, 132px); letter-spacing: -.025em; line-height: .95; }
.hero__subtitle { margin-top: 18px; font-size: clamp(18px, 2.3vw, 24px); color: rgba(255, 255, 255, .85); }
.hero__scroll {
    position: absolute;
    bottom: calc(28px + var(--mobile-bar-h));
    left: 50%;
    translate: -50% 0;
    color: rgba(255, 255, 255, .7);
    animation: hero-fade .8s ease 1.2s both, bob 2.4s ease-in-out 2s infinite;
}
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(6px); } }

/* ---------- 2. Usługi: pokaz slajdów ---------- */
.services__head { padding-block: var(--section-y) clamp(40px, 6vw, 64px); }

.slider { position: relative; color: #fff; }
/* Bez JavaScriptu slajdy da się przewijać w bok; z JS przesuwa je skrypt. */
.slider__viewport { overflow-x: auto; scroll-snap-type: x mandatory; }
.js .slider__viewport { overflow: hidden; touch-action: pan-y; }
.slider__track { display: flex; }
.js .slider__track { transition: transform .7s cubic-bezier(.65, 0, .35, 1); }

.service {
    flex: 0 0 100%;
    scroll-snap-align: start;
    min-height: clamp(500px, 66vh, 680px);
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(32px, 5vw, 80px);
    align-items: center;
    padding: clamp(40px, 5vw, 72px) var(--edge) clamp(20px, 2.5vw, 32px);
    position: relative;
    overflow: hidden;
}
.service__body { position: relative; z-index: 1; grid-column: 1; max-width: 620px; }
.service__title { font-size: clamp(38px, 6.4vw, 76px); margin: 0 0 18px; letter-spacing: -.02em; color: var(--accent); }
.service__text { font-size: clamp(16px, 1.6vw, 19px); color: rgba(255, 255, 255, .88); }
.service__tags { list-style: none; margin: 22px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
/* Zdjęcie na prawej części bloku, na całą wysokość, przechodzące gradientem w tło pod opisem.
   --photo-alpha: przezroczystość zdjęcia (1 = w pełni widoczne). */
.service__photo {
    --photo-alpha: .7;
    position: absolute;
    inset: 0 0 0 auto;
    width: 62%;
    margin: 0;
}
.service__photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: var(--photo-alpha);
    /* Gradient z lewej (w opis) i wąski od dołu (ostatnie 7% wysokości). */
    -webkit-mask-image: linear-gradient(to right, transparent 0%, rgba(0, 0, 0, .55) 28%, #000 60%), linear-gradient(to bottom, #000 93%, transparent 100%);
    -webkit-mask-composite: source-in;
    mask-image: linear-gradient(to right, transparent 0%, rgba(0, 0, 0, .55) 28%, #000 60%), linear-gradient(to bottom, #000 93%, transparent 100%);
    mask-composite: intersect;
}

/* Wjazd tekstu: tytuł, opis i hasła po kolei. */
.js [data-reveal] > * {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1);
}
.js [data-reveal].is-visible > * { opacity: 1; transform: none; }
.js [data-reveal].is-visible > :nth-child(2) { transition-delay: .1s; }
.js [data-reveal].is-visible > :nth-child(3) { transition-delay: .2s; }
.js [data-reveal].is-visible > :nth-child(4) { transition-delay: .3s; }
/* Zdjęcie wjeżdża z prawej, gdy tekst już się pojawia. */
.js .service__photo {
    opacity: 0;
    transform: translateX(48px) scale(1.04);
    transition: opacity .9s ease, transform 1.2s cubic-bezier(.2, .7, .2, 1);
}
.js .service__body.is-visible + .service__photo { opacity: 1; transform: none; transition-delay: .35s; }
.service__tags li { font-size: 14px; padding: 6px 14px; border: 1px solid rgba(255, 255, 255, .35); border-radius: 999px; }

/* Sterowanie pokazem: strzałki i kropki z paskiem czasu. */
.slider__controls { display: none; }
/* Niski pasek pod slajdem. */
.js .slider__controls { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 6px var(--edge) 10px; }
.slider__arrow {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, .25);
    background: rgba(255, 255, 255, .04);
    color: #fff;
    cursor: pointer;
    transition: background-color .2s, border-color .2s, color .2s;
}
.slider__arrow:hover { background: var(--accent); border-color: var(--accent); }
.slider__arrow:focus-visible, .slider__dot:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.slider__dots { display: flex; margin: 0 4px; }
.slider__dot { position: relative; width: 22px; height: 32px; padding: 0; border: 0; background: none; cursor: pointer; transition: width .35s ease; }
.slider__dot::before, .slider__dot::after {
    content: "";
    position: absolute;
    inset: 11px 6px;
    border-radius: 999px;
}
.slider__dot::before { background: rgba(255, 255, 255, .28); }
.slider__dot:hover::before { background: rgba(255, 255, 255, .5); }
.slider__dot.is-active { width: 60px; }
/* Pasek czasu w aktywnej kropce: gdy się zapełni, skrypt przechodzi do następnego slajdu. */
.slider__dot.is-active::after {
    background: var(--accent);
    animation: slider-progress var(--slider-interval, 6s) linear forwards;
    animation-play-state: paused;
}
.slider.is-playing .slider__dot.is-active::after { animation-play-state: running; }
@keyframes slider-progress { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }

/* Szeroki ekran: strzałki po bokach slajdu. */
@media (min-width: 1320px) {
    .js .slider__arrow { position: absolute; top: calc(50% - 46px); z-index: 2; } /* środek slajdu nad paskiem */
    .js .slider__arrow--prev { left: calc(var(--edge) - 88px); }
    .js .slider__arrow--next { right: calc(var(--edge) - 88px); }
}

/* ---------- 3. Opinie ---------- */
.reviews {
    background: var(--alt);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    padding: var(--section-y) 0;
}
.reviews__head { margin-bottom: clamp(32px, 5vw, 48px); }

.review, .review__text { margin: 0; }
.review {
    flex: none;
    width: min(340px, 82vw);
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.review__stars { color: var(--accent); letter-spacing: 3px; font-size: 15px; }
.review__text {
    font-size: 15.5px;
    display: -webkit-box;
    -webkit-line-clamp: 8;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.review__author { margin-top: auto; font-weight: 500; font-size: 14px; }
.review__source { color: var(--muted); font-weight: 400; }

.reviews__more { margin-top: clamp(28px, 4vw, 40px); text-align: center; }
.reviews__google { font-weight: 500; color: var(--text); text-decoration: none; border-bottom: 1px solid var(--accent); padding-bottom: 2px; transition: color .2s; }
.reviews__google:hover { color: var(--accent); }

.reviews-static { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; }

.marquee {
    overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.marquee__track { display: flex; width: max-content; animation: marquee var(--marquee-duration, 70s) linear infinite; }
.marquee:hover .marquee__track, .marquee:focus-within .marquee__track { animation-play-state: paused; }
.marquee__group { display: flex; gap: 20px; padding-right: 20px; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(var(--marquee-shift, -50%)); } }

/* ---------- 4. Kontakt ---------- */
.contact { padding: var(--section-y) 0; }
.contact-tile {
    position: relative;
    overflow: hidden;
    background: var(--dark);
    color: #fff;
    border-radius: 10px;
    padding: clamp(32px, 5.5vw, 72px);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(32px, 5vw, 64px);
    align-items: center;
}
.contact-tile::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 5px; background: var(--accent); }
.contact-tile__title { font-size: clamp(32px, 4.4vw, 52px); }
.contact-tile__text { margin-top: 16px; color: var(--on-dark-muted); max-width: 400px; }
.contact-tile__lines { border-left: 1px solid rgba(255, 255, 255, .12); padding-left: clamp(24px, 4vw, 56px); }
.contact-line { display: block; padding: 18px 0; text-decoration: none; }
.contact-line + .contact-line { border-top: 1px solid rgba(255, 255, 255, .12); }
.contact-line__label { display: block; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: 6px; }
.contact-line__value { display: block; font: 700 clamp(28px, 3.6vw, 44px)/1.15 var(--font-head); overflow-wrap: anywhere; transition: color .2s; }
.contact-line--mail .contact-line__value { font-size: clamp(20px, 2.4vw, 28px); }
.contact-line:hover .contact-line__value { color: var(--accent); }

/* ---------- 5. Stopka ---------- */
.site-footer {
    background: var(--dark);
    color: var(--on-dark-muted);
    text-align: center;
    font-size: 15px;
    padding: 56px 0 28px;
}
.nowrap { white-space: nowrap; }
.site-footer__brand { font: 700 20px/1 var(--font-head); color: #fff; margin-bottom: 10px; }
.site-footer__nav { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 28px; margin: 22px 0 28px; }
.site-footer__nav a { color: #e6e1d9; text-decoration: none; }
.site-footer__nav a:hover { color: var(--accent); }
.site-footer__bar { border-top: 1px solid rgba(255, 255, 255, .08); padding-top: 18px; font-size: 13px; opacity: .7; }

/* ---------- Pasek kontaktu na telefonie ---------- */
.mobile-bar { display: none; }

@media (max-width: 719px) {
    :root { --mobile-bar-h: 56px; }
    .mobile-bar {
        display: grid;
        grid-template-columns: 1fr 1fr;
        position: fixed;
        inset: auto 0 0 0;
        z-index: 60;
        padding-bottom: env(safe-area-inset-bottom);
        background: var(--dark);
    }
    .mobile-bar a {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        height: var(--mobile-bar-h);
        color: #fff;
        text-decoration: none;
        font: 600 16px/1 var(--font-head);
    }
    .mobile-bar__call { background: var(--accent); }

    .site-header__brand { font-size: 17px; }
    .site-header__nav a { font-size: 14px; }

    .contact-tile { grid-template-columns: 1fr; }
    .contact-tile__lines { border-left: 0; border-top: 1px solid rgba(255, 255, 255, .12); padding-left: 0; padding-top: 8px; }

    /* Telefon: zdjęcie nad tekstem. */
    /* Telefon: zdjęcie u góry bloku, przechodzące gradientem w dół, w opis. */
    .service { grid-template-columns: minmax(0, 1fr); align-content: start; min-height: 0; padding-block: 0 20px; }
    .service__photo { inset: 0 0 auto 0; width: auto; height: 300px; }
    .service__photo img {
        -webkit-mask-image: linear-gradient(to bottom, #000 35%, transparent 100%);
        -webkit-mask-composite: source-over;
        mask-image: linear-gradient(to bottom, #000 35%, transparent 100%);
        mask-composite: add;
    }
    .service__body { padding-top: 210px; }
}

/* ---------- Mniej ruchu ---------- */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .hero__scroll, .hero__bg, .hero__word > span, .hero__subtitle, .site-header { animation: none; }
    .js [data-reveal] > *, .js .service__photo { opacity: 1; transform: none; transition: none; }
    .js .slider__track { transition: none; }
    .slider__dot.is-active::after { animation: none; }
    .marquee { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
    .marquee__track { animation: none; }
    .marquee__group[aria-hidden="true"] { display: none; }
}
