/*
 * Strona firmowa roomstroll (roomstroll.com). Projekt: Claude Design, „Strona główna – wersja 2”.
 * Identyfikacja jak w aplikacji: beż #ECE9DA, tekst #272727, Mona Sans 400 bez pogrubień (hierarchię robi
 * wielkość i kolor), akcent butelkowa zieleń #2E6048. Animacje są subtelne i wyłączają się przy
 * „ogranicz ruch” w systemie.
 */
@font-face {
    font-family: 'Mona Sans';
    font-weight: 400;
    font-display: swap;
    src: url('/viewer/fonts/mona-sans-latin-400.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: 'Mona Sans';
    font-weight: 400;
    font-display: swap;
    src: url('/viewer/fonts/mona-sans-latin-ext-400.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;
}

:root {
    --bg: #ece9da;
    --field: #faf9f5;
    --card: #f3f1e7;
    --sunken: #dfdbc8;
    --line: #c9c5b6;
    --line-strong: #8a8574; /* obrys pól, przygaszony tekst na dużych literach (≥ 3:1) */
    --ink: #272727;
    --ink-2: #3a3a3a;
    --muted: #5f5b4e; /* tekst drugoplanowy (≥ 4,5:1 na tle i na karcie) */
    --accent: #2e6048;
    --on-accent: #ece9da;
    --warn: #855400;
    --error: #b3261e;

    --pad: clamp(20px, 4vw, 48px);
    --section: clamp(72px, 9vw, 128px);
    --radius: 24px;
    --ease: cubic-bezier(0.2, 0.7, 0.2, 1);

    color-scheme: light;
    font-family: 'Mona Sans', 'Helvetica Neue', Arial, sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.5;
    letter-spacing: 0.01em;
    font-synthesis: none;
    -webkit-text-size-adjust: 100%;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    overflow-x: clip;
}

h1,
h2,
h3,
th,
summary {
    font-weight: 400;
}

a {
    color: var(--ink);
    text-underline-offset: 3px;
    text-decoration-thickness: 1px;
}

a:hover {
    color: var(--accent);
}

img,
video,
svg {
    display: block;
}

::selection {
    background: var(--accent);
    color: var(--on-accent);
}

:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.wrap {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--pad);
}

section[id] {
    scroll-margin-top: 88px;
}

/* --- przyciski -------------------------------------------------------------------------------- */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    height: 52px;
    padding: 0 10px 0 22px;
    border: 0;
    border-radius: 999px;
    font: inherit;
    font-size: 16px;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
}

.btn__icon svg {
    transition: transform 0.3s ease;
}

.btn:hover .btn__icon svg {
    transform: translateX(3px);
}

.btn--accent,
.btn--accent:hover {
    background: var(--accent);
    color: var(--on-accent);
}

.btn--accent .btn__icon {
    background: var(--on-accent);
    color: var(--ink);
}

.btn--dark,
.btn--dark:hover {
    background: var(--ink);
    color: var(--on-accent);
}

.btn--dark .btn__icon {
    width: 36px;
    height: 36px;
    background: var(--accent);
    color: var(--on-accent);
}

.btn[disabled] {
    opacity: 0.6;
    cursor: progress;
    transform: none;
}

/* --- nawigacja: „pigułka” na środku u góry ------------------------------------------------------ */

.nav {
    position: fixed;
    top: 16px;
    left: 0;
    right: 0;
    z-index: 50;
    display: flex;
    justify-content: center;
    padding: 0 12px;
    pointer-events: none;
}

.nav__pill {
    pointer-events: auto;
    display: flex;
    align-items: center;
    gap: 6px;
    max-width: 100%;
    padding: 6px;
    border-radius: 999px;
    background: var(--ink);
    box-shadow: 0 10px 30px rgba(39, 39, 39, 0.16);
}

.nav__logo {
    display: flex;
    align-items: center;
    height: 44px;
    padding: 0 14px 0 16px;
}

.nav__logo img {
    height: 17px;
    width: auto;
}

.nav__links {
    display: flex;
    align-items: center;
    gap: 2px;
}

.nav__links a {
    padding: 8px 14px;
    border-radius: 999px;
    color: var(--on-accent);
    text-decoration: none;
    font-size: 15px;
    white-space: nowrap;
    transition: background-color 0.25s ease;
}

.nav__links a:hover {
    background: #4a4a4a;
    color: var(--on-accent);
}

.nav__cta,
.nav__cta:hover {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    height: 44px;
    padding: 0 8px 0 18px;
    border-radius: 999px;
    background: var(--bg);
    color: var(--ink);
    text-decoration: none;
    font-size: 15px;
    white-space: nowrap;
}

.nav__cta .btn__icon {
    width: 28px;
    height: 28px;
    background: var(--accent);
    color: var(--on-accent);
}

/* logowanie klientów do panelu (tour.roomstroll.com/klient) — widoczne na każdym ekranie */
.nav__login {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 44px;
    min-width: 44px;
    padding: 0 14px;
    border-radius: 999px;
    color: var(--on-accent);
    text-decoration: none;
    font-size: 15px;
    white-space: nowrap;
    transition: background-color 0.25s ease;
}

.nav__login:hover {
    background: #4a4a4a;
    color: var(--on-accent);
}

/* przełącznik języka: na polskiej stronie „EN” prowadzi do /en, na angielskiej „PL” wraca do polskiej */
.nav__lang {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: none;
    width: 38px;
    height: 38px;
    margin: 0 3px;
    border: 1px solid rgba(250, 249, 245, 0.3);
    border-radius: 999px;
    color: var(--on-accent);
    text-decoration: none;
    font-size: 13px;
    letter-spacing: 0.06em;
    transition: background-color 0.25s ease;
}

.nav__lang:hover {
    background: #4a4a4a;
    color: var(--on-accent);
}

/* pięć linków + język + panel klienta + przycisk zajmuje ok. 1020 px (z paskiem przewijania i marginesem ok. 1060) —
   węższy ekran zostawia logo, język, ikonkę panelu i przycisk */
@media (max-width: 1080px) {
    .nav__links {
        display: none;
    }
}

/* telefon: z panelu klienta zostaje ikonka, a ciaśniejsze odstępy i mniejszy przycisk mieszczą logo, język, ikonkę
   i przycisk od 360 px (ok. 337 px z 344 dostępnych) */
@media (max-width: 480px) {
    .nav__pill {
        gap: 2px;
    }

    .nav__logo {
        padding: 0 5px 0 9px;
    }

    .nav__logo img {
        height: 14px;
    }

    .nav__lang {
        width: 28px;
        height: 28px;
        margin: 0;
        font-size: 11px;
    }

    .nav__login {
        min-width: 36px;
        padding: 0;
    }

    .nav__login-text {
        display: none;
    }

    .nav__cta,
    .nav__cta:hover {
        gap: 6px;
        padding: 0 6px 0 11px;
        font-size: 14px;
    }

    .nav__cta .btn__icon {
        width: 24px;
        height: 24px;
    }
}

@media (max-width: 374px) {
    .nav {
        padding: 0 8px;
    }
}

/* --- wstęp: nagłówek odjeżdża w lewo, z dołu wjeżdża telefon ze spacerem (strona.js) ------------- */

.hero {
    position: relative;
    height: 100svh; /* strona.js wydłuża o drogę przewijania */
}

.hero__sticky {
    position: sticky;
    top: 0;
    height: 100svh;
    min-height: 560px;
    overflow: hidden;
}

.hero__head {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    white-space: nowrap;
    will-change: transform;
}

.hero__eyebrow {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 24px;
    font-size: 16px;
    color: var(--muted);
}

.hero__title {
    margin: 0;
    font-size: clamp(56px, 6.6vw, 128px);
    line-height: 1.02;
    letter-spacing: -0.03em;
}

.hero__sub {
    position: absolute;
    margin: 0;
    font-size: 18px;
    line-height: 1.5;
    color: var(--muted);
    opacity: 0;
}

.phone {
    position: absolute;
    left: 50%;
    top: 100%;
    width: 300px;
    height: 650px;
    will-change: transform;
}

.phone__body {
    width: 100%;
    height: 100%;
    padding: var(--phone-pad, 10px);
    border-radius: var(--phone-r, 52px);
    background: #1e1e1e;
    box-shadow: 0 40px 80px rgba(39, 39, 39, 0.22), inset 0 0 0 2px var(--ink-2);
}

.phone__screen {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: var(--phone-ir, 40px);
    overflow: hidden;
    background: var(--sunken);
}

.phone__screen video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.phone__island {
    position: absolute;
    left: 50%;
    top: var(--island-top, 10px);
    width: var(--island-w, 90px);
    height: var(--island-h, 26px);
    transform: translateX(-50%);
    border-radius: 999px;
    background: #111;
}

/* „Przewijaj dalej” pod telefonem — widać, że trzeba przewijać, a pasek pokazuje, ile zostało spaceru */
.hero__more {
    position: absolute;
    left: 50%;
    bottom: 22px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--muted);
    white-space: nowrap;
    opacity: 0;
    transform: translateX(-50%);
}

.hero__more-text {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.mouse--small {
    width: 16px;
    height: 24px;
    border-radius: 8px;
}

.mouse--small::after {
    top: 5px;
    width: 3px;
    height: 5px;
    margin-left: -1.5px;
}

.hero__more-bar {
    width: 140px;
    height: 2px;
    border-radius: 1px;
    background: var(--line);
    overflow: hidden;
}

.hero__more-bar span {
    display: block;
    width: 100%;
    height: 100%;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: 0 50%;
}

/* nagłówek wjeżdża, gdy znika ekran ładowania */
.hero__title {
    transition: opacity 0.9s var(--ease) 0.2s, transform 0.9s var(--ease) 0.2s;
}

.is-loading .hero__title {
    opacity: 0;
    transform: translateY(28px);
}

/* prawa strona wstępu: tylko kod QR w rogu (projekt „Wstęp – wersja C”), telefon gra główną rolę */
.hero__qr {
    position: absolute;
    right: var(--pad);
    bottom: 28px;
    display: flex;
    align-items: flex-end;
    gap: 14px;
    text-decoration: none;
    opacity: 0;
}

.hero__qr span {
    font-size: 14px;
    line-height: 1.4;
    text-align: right;
}

.hero__qr img {
    width: 84px;
    height: 84px;
}

.hero__hint {
    position: absolute;
    left: 50%;
    bottom: 28px;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--muted);
    white-space: nowrap;
}

.mouse {
    position: relative;
    width: 22px;
    height: 34px;
    border: 1.5px solid var(--ink);
    border-radius: 12px;
}

.mouse::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 7px;
    width: 4px;
    height: 7px;
    margin-left: -2px;
    border-radius: 2px;
    background: var(--ink);
    animation: scroll-dot 1.8s ease-in-out infinite;
}

@keyframes scroll-dot {
    0% {
        transform: translateY(0);
        opacity: 0;
    }
    30% {
        opacity: 1;
    }
    100% {
        transform: translateY(12px);
        opacity: 0;
    }
}

@media (max-width: 899px) {
    .hero__sub,
    .hero__qr {
        display: none;
    }

    .hero__head {
        white-space: normal;
    }

    /* „Przewijaj dalej” na telefonie mniejsze, żeby zostało miejsce na nagłówek i telefon */
    .hero__more {
        bottom: 16px;
        gap: 7px;
        font-size: 12px;
    }

    .hero__more-text {
        gap: 7px;
    }

    .hero__more .mouse--small {
        width: 12px;
        height: 18px;
        border-width: 1.2px;
        border-radius: 6px;
    }

    .hero__more .mouse--small::after {
        top: 3px;
        width: 2px;
        height: 4px;
        margin-left: -1px;
    }

    .hero__more-bar {
        width: 96px;
    }

    .hero__title {
        font-size: clamp(38px, 11.5vw, 72px);
    }
}

/* --- wspólne elementy sekcji ---------------------------------------------------------------- */

.section {
    padding: var(--section) 0;
}

.section--line {
    border-top: 1px solid var(--line);
}

.label {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 20px;
    font-size: 16px;
    color: var(--muted);
}

.dot,
.label::before {
    content: '';
    flex: none;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
}

.h2 {
    margin: 0;
    font-size: clamp(36px, 4.8vw, 72px);
    line-height: 1.04;
    letter-spacing: -0.025em;
}

.section-head {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-end;
    gap: 24px 48px;
}

.section-head > p {
    margin: 0;
    max-width: 400px;
    font-size: 18px;
    line-height: 1.5;
    color: var(--muted);
}

.grid {
    display: grid;
    gap: 20px;
    margin-top: clamp(48px, 6vw, 80px);
}

/* łagodne wejście sekcji przy przewijaniu (tylko gdy działa JS — strona.js dodaje .js) */
.js .reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}

.js .reveal.is-visible {
    opacity: 1;
    transform: none;
}

/* --- czym jest roomstroll i dla kogo -------------------------------------------------------- */

.intro {
    padding: clamp(96px, 12vw, 176px) 0 var(--section);
}

.statement {
    margin: 0;
    max-width: 1120px;
    font-size: clamp(30px, 3.8vw, 58px);
    line-height: 1.12;
    letter-spacing: -0.02em;
}

.statement span {
    color: var(--line-strong);
}

.audience {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
    margin-top: clamp(64px, 8vw, 112px);
}

.audience article {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: clamp(24px, 2.6vw, 36px);
    border-radius: var(--radius);
    background: var(--card);
}

.audience__top {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.audience__top span {
    font-size: 14px;
    color: var(--accent);
}

.audience h3 {
    margin: 24px 0 0;
    font-size: 28px;
    line-height: 1.15;
    letter-spacing: -0.01em;
}

.audience p {
    margin: 0;
    font-size: 17px;
    line-height: 1.55;
    color: var(--muted);
}

/* --- zdjęcia a spacer ------------------------------------------------------------------------ */

.versus {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
}

.versus__box {
    padding: clamp(28px, 3.4vw, 48px);
    border-radius: var(--radius);
    border: 1px solid var(--line);
}

.versus__box > p {
    margin: 0 0 28px;
    font-size: 22px;
    color: var(--muted);
}

.versus__box--dark {
    border-color: var(--ink);
    background: var(--ink);
    color: var(--on-accent);
}

.versus__box--dark > p {
    color: var(--on-accent);
}

.ticks {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 18px;
    font-size: 18px;
    line-height: 1.45;
}

.versus__box:not(.versus__box--dark) .ticks {
    color: var(--muted);
}

.ticks li {
    display: flex;
    gap: 14px;
}

.ticks svg {
    flex: none;
    margin-top: 3px;
}

/* --- jak to działa ---------------------------------------------------------------------------- */

.steps {
    list-style: none;
    padding: 0;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
}

.step {
    display: flex;
    flex-direction: column;
    gap: 22px;
    padding: 16px 16px 28px;
    border-radius: var(--radius);
    background: var(--card);
}

.step__media {
    aspect-ratio: 4 / 5;
    border-radius: 16px;
    overflow: hidden;
    background: var(--bg);
}

.step__media > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.step__media--framed {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.step__media--framed > img {
    height: auto;
    border: 1px solid var(--line);
    border-radius: 12px;
}

.step__body {
    padding: 0 8px;
}

.step__num {
    margin: 0 0 10px;
    font-size: 14px;
    color: var(--accent);
}

.step h3 {
    margin: 0 0 8px;
    font-size: 24px;
    line-height: 1.2;
}

.step__body > p:last-child {
    margin: 0;
    font-size: 16px;
    line-height: 1.55;
    color: var(--muted);
}

.check {
    width: 100%;
    background: var(--field);
    border: 1px solid var(--line);
    border-radius: 12px;
    overflow: hidden;
}

.check__row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
}

.check__row + .check__row {
    border-top: 1px solid var(--line);
}

.check__row svg {
    flex: none;
    margin-top: 1px;
}

.check__row p {
    margin: 0;
    font-size: 14px;
    line-height: 1.35;
}

.check__row p + p {
    margin-top: 2px;
    font-size: 13px;
    line-height: 1.4;
}

.check__ok {
    color: var(--accent);
}

.check__fix {
    color: var(--warn);
}

.cta-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px 24px;
    margin-top: 40px;
}

/* tylko dopisek obok przycisku, nie napis w przycisku (też <span>) */
.cta-row > span {
    font-size: 15px;
    color: var(--muted);
}

/* --- co dostaje klient --------------------------------------------------------------------- */

.features {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
}

.feature {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 40px;
    padding: 32px;
    border-radius: var(--radius);
    background: var(--card);
}

.feature h3 {
    margin: 0 0 8px;
    font-size: 24px;
    line-height: 1.2;
}

.feature p {
    margin: 0;
    font-size: 16px;
    line-height: 1.55;
    color: var(--muted);
}

.feature--photo {
    justify-content: flex-start;
    gap: 0;
    padding: 0;
    overflow: hidden;
}

.feature--photo > div:first-child {
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--sunken);
}

.feature--photo > div:last-child {
    padding: 28px 32px 32px;
}

.feature--dark {
    background: var(--ink);
    color: var(--on-accent);
}

.feature--dark p {
    color: var(--line);
}

.devices {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.devices span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 999px;
    border: 1px solid var(--muted);
    font-size: 15px;
}

.minimap {
    width: 100%;
    height: auto;
    max-height: 190px;
}

.zoom img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s var(--ease);
}

.zoom:hover img {
    transform: scale(1.03);
}

/* --- jeden link ----------------------------------------------------------------------------- */

.links {
    overflow: hidden;
}

.links__head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 32px 48px;
}

.links__head > div:first-child {
    flex: 1 1 520px;
    min-width: 0;
}

.linkbox {
    flex: 1 1 360px;
    min-width: 0;
    max-width: 460px;
}

.linkbox__label {
    margin: 0 0 8px;
    font-size: 14px;
    color: var(--muted);
}

.linkbox__row {
    display: flex;
    gap: 8px;
}

.linkbox__field {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    align-items: center;
    height: 52px;
    padding: 0 16px;
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    background: var(--field);
    font-size: 15px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.linkbox__copy {
    flex: none;
    display: flex;
    align-items: center;
    height: 52px;
    padding: 0 20px;
    border-radius: 999px;
    background: var(--ink);
    color: var(--on-accent);
    font-size: 15px;
}

.marquee {
    margin-top: clamp(48px, 6vw, 72px);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}

.marquee ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 12px;
    width: max-content;
    animation: marquee 48s linear infinite;
}

.marquee li {
    padding: 14px 24px;
    border-radius: 999px;
    background: var(--card);
    font-size: 18px;
    white-space: nowrap;
}

.marquee li.is-dark {
    background: var(--ink);
    color: var(--on-accent);
}

.marquee li.is-accent {
    background: var(--accent);
    color: var(--on-accent);
}

@keyframes marquee {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}

/* --- przykłady ------------------------------------------------------------------------------ */

.examples {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
}

.example {
    display: flex;
    flex-direction: column;
    gap: 20px;
    text-decoration: none;
}

.example > div:first-child {
    aspect-ratio: 1200 / 630;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--sunken);
}

.example__meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 0 4px;
}

.example__meta > span:first-child {
    font-size: 26px;
    line-height: 1.2;
}

.example__meta > span:last-child {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
}

.qrbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-top: 20px;
    padding: 24px clamp(24px, 3vw, 40px);
    border-radius: var(--radius);
    background: var(--card);
}

.qrbar p {
    flex: 1 1 320px;
    margin: 0;
    font-size: clamp(20px, 2vw, 26px);
    line-height: 1.3;
    letter-spacing: -0.01em;
}

.qrbar img {
    width: 104px;
    height: 104px;
    padding: 10px;
    border-radius: 12px;
    background: var(--field);
}

/* --- porównanie ------------------------------------------------------------------------------ */

.table-wrap {
    margin-top: clamp(48px, 6vw, 80px);
    overflow-x: auto;
    border-radius: var(--radius);
    border: 1px solid var(--line);
}

.cmp {
    width: 100%;
    min-width: 720px;
    border-collapse: collapse;
    font-size: 17px;
    line-height: 1.45;
    text-align: left;
}

.cmp th,
.cmp td {
    padding: 20px 28px;
    border-top: 1px solid var(--line);
}

.cmp thead th {
    padding-top: 24px;
    padding-bottom: 24px;
    border-top: 0;
    color: var(--muted);
}

.cmp tbody th {
    color: var(--muted);
}

.cmp .is-ours {
    background: var(--ink);
    color: var(--on-accent);
    border-top-color: var(--ink-2);
}

.cmp thead .is-ours {
    color: var(--on-accent);
}

/* gdy tabela nie mieści się na ekranie (telefon), nad nią podpowiedź, żeby przesunąć ją w bok (strona.js) */
.table-hint {
    display: none;
    align-items: center;
    gap: 8px;
    margin: clamp(48px, 6vw, 80px) 0 12px;
    font-size: 14px;
    color: var(--muted);
}

.table-hint svg {
    animation: hint-side 1.6s ease-in-out infinite;
}

@keyframes hint-side {
    0%,
    100% {
        transform: translateX(0);
    }
    50% {
        transform: translateX(4px);
    }
}

.table-hint.is-on {
    display: flex;
}

.table-hint.is-on + .table-wrap {
    margin-top: 0;
}

/* --- cennik: jedno mieszkanie i wycena dla kilku ------------------------------------------------ */

.pricing {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
}

.price {
    display: flex;
    flex-direction: column;
    padding: clamp(28px, 3.4vw, 48px);
    border-radius: var(--radius);
    border: 1px solid var(--line);
    background: var(--card);
}

/* obok siebie kafelki dzielą wiersze: „W cenie” i przyciski są na tej samej wysokości */
@supports (grid-template-rows: subgrid) {
    .price {
        display: grid;
        grid-template-rows: subgrid;
        grid-row: span 6;
        row-gap: 0;
        align-content: start;
    }
}

.price--dark {
    border-color: var(--ink);
    background: var(--ink);
    color: var(--on-accent);
}

.price__name {
    margin: 0;
    font-size: 22px;
    color: var(--muted);
}

.price--dark .price__name {
    color: var(--on-accent);
}

.price__value {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 6px 14px;
    margin: 28px 0 0;
    font-size: clamp(56px, 6.4vw, 96px);
    line-height: 1;
    letter-spacing: -0.03em;
}

.price__value span {
    font-size: 18px;
    letter-spacing: 0;
    color: var(--line);
}

/* promocja (Worker podmienia kwotę, worker/src/site.ts): zwykła cena przekreślona, mniejsza i przygaszona */
.price__value s {
    font-size: 0.5em;
    color: var(--line-strong);
    text-decoration-thickness: 2px;
}

.price__badge {
    display: block;
    width: fit-content;
    margin-top: 10px;
    padding: 4px 12px;
    border-radius: 999px;
    background: var(--accent);
    color: var(--on-accent);
    font-size: 15px;
    vertical-align: middle;
}

/* pasek promocji na dole ekranu — tylko w czasie promocji (poza nią Worker go usuwa) */
.promo-bar {
    position: fixed;
    left: 50%;
    bottom: 16px;
    z-index: 40;
    display: flex;
    align-items: center;
    gap: 14px;
    width: max-content;
    max-width: calc(100% - 32px);
    padding: 10px 10px 10px 20px;
    border-radius: 999px;
    background: var(--accent);
    color: var(--on-accent);
    font-size: 15px;
    line-height: 1.3;
    text-decoration: none;
    box-shadow: 0 8px 24px rgb(39 39 39 / 0.18);
    transform: translateX(-50%);
}

.promo-bar[hidden] {
    display: none;
}

/* pasek nie może zasłaniać stopki na dole strony */
.promo-bar:not([hidden]) + footer {
    padding-bottom: 96px;
}

.promo-bar__cta {
    flex: none;
    padding: 8px 14px;
    border-radius: 999px;
    background: var(--on-accent);
    color: var(--ink);
}

@media (max-width: 480px) {
    .promo-bar {
        font-size: 13px;
        padding-left: 16px;
    }
}

/* „Wycena indywidualna” w tym samym miejscu co kwota, ale mniejsza, żeby zmieściła się w dwóch liniach */
.price__value--text {
    font-size: clamp(36px, 3.6vw, 52px);
    line-height: 1.05;
    letter-spacing: -0.02em;
}

.price__note {
    margin: 16px 0 0;
    max-width: 460px;
    font-size: 17px;
    line-height: 1.5;
    color: var(--muted);
}

.price--dark .price__note {
    color: var(--line);
}

.price__incl {
    margin: 32px 0 20px;
    padding-top: 28px;
    border-top: 1px solid var(--line);
    font-size: 15px;
    color: var(--muted);
}

.price--dark .price__incl {
    border-top-color: #4a4a4a;
    color: var(--line);
}

.price .ticks {
    gap: 14px;
    margin-bottom: 40px;
    font-size: 17px;
}

.price:not(.price--dark) .ticks svg {
    color: var(--accent);
}

/* przycisk zawsze na dole kafelka, także gdy lista obok jest dłuższa */
.price .btn {
    align-self: flex-start;
    justify-self: start;
    margin-top: auto;
}

@supports (grid-template-rows: subgrid) {
    .price .btn {
        align-self: end;
    }
}

/* --- ekran ładowania: rysuje się plan mieszkania, a kropka idzie przez pokoje w tempie wczytywania strony --- */

.loader {
    display: none;
}

.js:not(.no-loader) .loader {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: grid;
    grid-template-rows: auto 1fr auto;
    padding: 28px var(--pad) 24px;
    background: var(--bg);
    transition: transform 1s cubic-bezier(0.76, 0, 0.24, 1);
}

.is-loading {
    overflow: hidden;
}

.loader.is-done {
    transform: translateY(-100%);
}

.loader > * {
    transition: opacity 0.4s ease;
}

.loader.is-done > * {
    opacity: 0;
}

.loader__top {
    display: flex;
    justify-content: center;
}

.loader__top img {
    height: 22px;
    width: auto;
}

.loader__mid {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 28px;
    min-height: 0;
}

.loader__plan {
    width: min(520px, 86vw);
    max-height: 52vh;
    height: auto;
    overflow: visible;
}

.loader__wall {
    fill: none;
    stroke: var(--ink);
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
    animation: loader-draw 1.1s var(--ease) forwards;
}

.loader__wall--inner {
    stroke-width: 1.8;
    animation-delay: 0.45s;
}

.loader__path {
    fill: none;
    stroke: var(--line);
    stroke-width: 1.6;
    stroke-dasharray: 3 5;
    stroke-linecap: round;
}

.loader__walked {
    fill: none;
    stroke: var(--accent);
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.loader__dot {
    fill: var(--accent);
}

.loader__halo {
    fill: var(--accent);
    opacity: 0.18;
    transform-box: fill-box;
    transform-origin: center;
    animation: loader-pulse 1.6s ease-in-out infinite;
}

.loader__room {
    font-family: 'Mona Sans', 'Helvetica Neue', Arial, sans-serif;
    font-size: 11px;
    letter-spacing: 0.02em;
    fill: var(--muted);
    opacity: 0;
    transition: opacity 0.5s ease, fill 0.5s ease;
}

.loader__room.is-on {
    opacity: 1;
    fill: var(--ink);
}

.loader__line {
    margin: 0;
    font-size: clamp(18px, 2vw, 24px);
    letter-spacing: -0.01em;
    text-align: center;
}

.loader__bottom {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 24px;
}

.loader__bottom p {
    margin: 0;
}

.loader__note {
    font-size: 14px;
    color: var(--muted);
}

.loader__count {
    font-size: clamp(72px, 12.5vw, 192px);
    line-height: 0.8;
    letter-spacing: -0.04em;
    font-variant-numeric: tabular-nums;
}

.loader__count small {
    font-size: 0.34em;
    letter-spacing: 0;
}

@keyframes loader-draw {
    to {
        stroke-dashoffset: 0;
    }
}

@keyframes loader-pulse {
    0%,
    100% {
        transform: scale(0.7);
    }
    50% {
        transform: scale(1.25);
    }
}

/* --- pytania -------------------------------------------------------------------------------- */

.faq {
    display: flex;
    flex-wrap: wrap;
    gap: 40px 48px;
}

.faq__head {
    flex: 1 1 300px;
}

.faq__head .h2 {
    margin-bottom: 24px;
}

.faq__head p {
    margin: 0;
    max-width: 340px;
    font-size: 16px;
    line-height: 1.55;
    color: var(--muted);
}

.faq__list {
    flex: 999 1 560px;
    min-width: 0;
    border-top: 1px solid var(--ink);
}

.faq details {
    border-bottom: 1px solid var(--line);
}

.faq summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    min-height: 44px;
    padding: 24px 0;
    font-size: 21px;
    line-height: 1.3;
    list-style: none;
    cursor: pointer;
}

.faq summary::-webkit-details-marker {
    display: none;
}

.faq summary svg {
    flex: none;
}

.faq summary .plus-v {
    transition: opacity 0.25s ease;
}

.faq details[open] .plus-v {
    opacity: 0;
}

.faq details p {
    margin: 0;
    padding: 0 0 26px;
    max-width: 640px;
    font-size: 17px;
    line-height: 1.55;
    color: var(--muted);
}

/* --- kontakt --------------------------------------------------------------------------------- */

.contact {
    padding: clamp(24px, 4vw, 48px) 0 var(--section);
}

.contact__box {
    display: flex;
    flex-wrap: wrap;
    gap: 48px;
    padding: clamp(28px, 5vw, 72px);
    border-radius: clamp(24px, 3vw, 40px);
    background: var(--accent);
    color: var(--on-accent);
}

.contact__info {
    flex: 1 1 380px;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 40px;
}

.contact__info .label {
    color: var(--on-accent);
}

.contact__info .label::before {
    background: var(--on-accent);
}

.contact__info .h2 {
    margin-bottom: 24px;
    font-size: clamp(36px, 4.6vw, 68px);
}

.contact__info p {
    margin: 0;
    max-width: 460px;
    font-size: 18px;
    line-height: 1.5;
}

/* ograniczenie usługi widoczne przed wysłaniem zapytania (też w „Częstych pytaniach”) */
.contact__info p.contact__limit {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
    padding: 9px 16px;
    border: 1px solid rgba(236, 233, 218, 0.45);
    border-radius: 18px; /* na telefonie napis łamie się na dwie linie */
    font-size: 15px;
    line-height: 1.4;
}

.contact__limit svg {
    flex: none;
}

.contact__info .ticks {
    gap: 14px;
    font-size: 16px;
}

.contact__info .ticks svg {
    margin-top: 2px;
}

.form {
    flex: 1 1 420px;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: clamp(24px, 3vw, 40px);
    border-radius: var(--radius);
    background: var(--bg);
    color: var(--ink);
}

.form label {
    display: block;
    margin-bottom: 8px;
    font-size: 16px;
}

.form input,
.form textarea {
    display: block;
    width: 100%;
    padding: 0 18px;
    border: 1px solid var(--line-strong);
    border-radius: 14px;
    background: var(--field);
    color: var(--ink);
    font: inherit;
    font-size: 16px;
}

.form input {
    height: 54px;
}

.form textarea {
    padding: 16px 18px;
    line-height: 1.5;
    resize: vertical;
}

.form input:focus,
.form textarea:focus {
    outline: 2px solid var(--accent);
    outline-offset: 0;
    border-color: var(--accent);
}

.form__trap {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.form__note {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    color: var(--muted);
}

.form__note a {
    color: var(--muted);
}

.form .btn {
    justify-content: space-between;
    height: 56px;
    padding: 0 10px 0 24px;
}

.form__error {
    display: flex;
    gap: 10px;
    margin: 0;
    font-size: 15px;
    line-height: 1.45;
    color: var(--error);
}

.form__error[hidden] {
    display: none;
}

.form__error svg {
    flex: none;
    margin-top: 2px;
}

.form__done {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 16px;
    min-height: 100%;
}

.form__done svg {
    color: var(--accent);
}

.form__done h3 {
    margin: 0;
    font-size: 28px;
    line-height: 1.2;
}

.form__done p {
    margin: 0;
    font-size: 17px;
    line-height: 1.55;
    color: var(--muted);
}

.contact__alt {
    margin: 24px 0 0;
    text-align: center;
    font-size: 16px;
    color: var(--muted);
}

/* --- stopka ---------------------------------------------------------------------------------- */

/* .footer siedzi w .wrap — boki i linia nad stopką równo z resztą sekcji */
.footer {
    padding: clamp(48px, 6vw, 80px) 0 32px;
    border-top: 1px solid var(--line);
}

.footer__logo {
    width: 100%;
    height: auto;
}

.footer__row {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 16px 32px;
    margin-top: clamp(32px, 4vw, 56px);
    font-size: 15px;
    color: var(--muted);
}

.footer__row nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 28px;
}

.footer__row nav a {
    text-decoration: none;
}

/* --- polityka prywatności i inne strony tekstowe ---------------------------------------------- */

.doc {
    max-width: 760px;
    margin: 0 auto;
    padding: 128px var(--pad) var(--section);
}

.doc h1 {
    margin: 0 0 16px;
    font-size: clamp(36px, 4.8vw, 56px);
    line-height: 1.05;
    letter-spacing: -0.025em;
}

.doc h2 {
    margin: 48px 0 12px;
    font-size: 24px;
    line-height: 1.25;
}

.doc p,
.doc li {
    font-size: 17px;
    line-height: 1.6;
}

.doc p {
    margin: 0 0 14px;
}

.doc ul {
    margin: 0 0 14px;
    padding-left: 22px;
}

.doc .doc__date {
    color: var(--muted);
}

/* --- zakup spaceru (/kup) --------------------------------------------------------------------- */

.buy .buy__lead {
    font-size: 19px;
    color: var(--muted);
}

.buy__promo {
    display: inline-block;
    margin: 8px 0 0;
    padding: 10px 18px;
    border-radius: 18px;
    background: var(--accent);
    color: var(--on-accent);
}

.doc .buy__promo {
    font-size: 16px;
}

.buy__form {
    display: flex;
    flex-direction: column;
    gap: 28px;
    margin: 32px 0 0;
    padding: clamp(24px, 3vw, 40px);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--card);
}

.doc .buy__label {
    display: block;
    margin: 0 0 8px;
    font-size: 16px;
    color: var(--muted);
}

.doc .buy__price {
    margin: 0;
    font-size: clamp(44px, 5vw, 64px);
    line-height: 1;
}

.buy__price span {
    color: var(--line-strong);
}

/* „Razem do zapłaty” — mniejsza od ceny za mieszkanie, żeby przy 1 mieszkaniu nie było dwóch takich samych wielkich liczb */
.doc .buy__price--total {
    font-size: clamp(34px, 3.6vw, 46px);
}

.buy__form select {
    display: block;
    width: 100%;
    max-width: 320px;
    height: 54px;
    padding: 0 18px;
    border: 1px solid var(--line-strong);
    border-radius: 14px;
    background: var(--field);
    color: var(--ink);
    font: inherit;
    font-size: 16px;
}

.buy__form select:focus {
    outline: 2px solid var(--accent);
    border-color: var(--accent);
}

.doc .buy__hint {
    margin: 8px 0 0;
    font-size: 15px;
    color: var(--muted);
}

.buy__checks {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin: 0;
    padding: 0;
    border: 0;
}

.buy__checks label {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    font-size: 16px;
    line-height: 1.5;
    cursor: pointer;
}

.buy__checks input {
    flex: none;
    width: 22px;
    height: 22px;
    margin: 1px 0 0;
    accent-color: var(--accent);
}

.buy__form .btn {
    align-self: flex-start;
    justify-content: space-between;
    height: 56px;
    min-width: 260px;
    padding: 0 10px 0 24px;
    background: var(--accent);
    color: var(--on-accent);
}

.buy__off {
    margin-top: 32px;
    padding: 20px 24px;
    border-radius: var(--radius);
    background: var(--card);
}

.buy__steps {
    margin: 0;
    padding-left: 22px;
}

.buy__steps li {
    margin: 0 0 8px;
}

@media (max-width: 480px) {
    .buy__form .btn {
        align-self: stretch;
        min-width: 0;
    }
}

/* --- ruch ograniczony w systemie: bez animacji ------------------------------------------------ */

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .js .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .mouse::after,
    .table-hint svg {
        animation: none;
    }

    .marquee ul {
        animation: none;
        flex-wrap: wrap;
        width: auto;
    }

    .marquee li[aria-hidden] {
        display: none;
    }
}
