/*
 * Lejek oferty „strona za 47 zł” (Pages/Oferta/StronaZa47.cshtml).
 * Jeden ekran na jedno pytanie, pisany najpierw pod telefon: duże pola, duże przyciski, mało tekstu.
 * Kolory i kroje jak w reklamach: granat, żółty, Bricolage Grotesque do nagłówków, Figtree do reszty.
 */

/* Kroje z własnego serwera (te same pliki co w Google Fonts, licencja OFL): pierwsze wyświetlenie strony
   nie czeka na połączenie z obcym serwerem. Polskie znaki są w podzbiorze latin-ext. */
@font-face {
    font-family: 'Bricolage Grotesque';
    font-style: normal;
    font-weight: 800;
    font-stretch: 100%;
    font-display: swap;
    src: url('../../fonts/offer/bricolage-800-latin-ext.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: 'Bricolage Grotesque';
    font-style: normal;
    font-weight: 800;
    font-stretch: 100%;
    font-display: swap;
    src: url('../../fonts/offer/bricolage-800-latin.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: 'Figtree';
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url('../../fonts/offer/figtree-latin-ext.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: 'Figtree';
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url('../../fonts/offer/figtree-latin.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;
}

.fx {
    --navy: #0f1b3d;
    --navy-2: #1a2a57;
    --navy-3: #2a3c75;
    --chalk: #eef0f5;
    --sun: #ffc928;
    --sun-deep: #d99f00;
    --ink: #0f1b3d;
    --muted: #aab4d4;
    --ok: #46e0a0;
    --bad: #ffb3a8;
    --display: 'Bricolage Grotesque', 'Figtree', system-ui, sans-serif;
    --body: 'Figtree', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --pad: 20px;
    --ease: cubic-bezier(.2, .8, .2, 1);

    margin: 0;
    background: var(--navy);
    color: #fff;
    font: 400 17px/1.45 var(--body);
    -webkit-font-smoothing: antialiased;
    -webkit-text-size-adjust: 100%;
    overflow-x: hidden;
}

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

.fx [hidden] {
    display: none !important;
}

/* Reset w :where(), żeby nie przebijał klas przycisków, kafli i pól. */
.fx :where(button, input) {
    font: inherit;
    color: inherit;
}

.fx :where(button) {
    border: 0;
    background: none;
    padding: 0;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.fx :where(a) {
    color: inherit;
}

.fx :focus-visible {
    outline: 3px solid var(--sun);
    outline-offset: 3px;
}

.fx :where(svg) {
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.fx-sprite {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
}

.fx-app {
    display: flex;
    flex-direction: column;
    max-width: 560px;
    min-height: 100vh;
    min-height: 100dvh;
    margin: 0 auto;
    /* Nic nie może przesunąć ekranu w bok (bęben z podglądami wystaje poza krawędzie). Bez zapasowego
       „hidden”: w przeglądarkach bez „clip” odklejałby pasek postępu i przycisk na dole ekranu. */
    overflow-x: clip;
}

/* ───────── Pasek postępu ───────── */

.fx-bar {
    position: sticky;
    top: 0;
    z-index: 20;
    display: grid;
    grid-template-columns: 44px 1fr auto;
    align-items: center;
    gap: 12px;
    padding: calc(10px + env(safe-area-inset-top)) 16px 10px;
    background: rgba(15, 27, 61, .94);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.fx-bar__back {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: var(--navy-2);
    transition: opacity .2s, transform .12s;
}

.fx-bar__back svg {
    width: 22px;
    height: 22px;
    stroke-width: 2.4;
}

.fx-bar__back:active {
    transform: scale(.94);
}

.fx-bar__back.is-off {
    opacity: 0;
    pointer-events: none;
}

.fx-bar__mid {
    min-width: 0;
}

.fx-progress {
    height: 8px;
    border-radius: 99px;
    background: var(--navy-3);
    overflow: hidden;
}

.fx-progress i {
    display: block;
    width: var(--p, 0%);
    height: 100%;
    border-radius: inherit;
    background: var(--sun);
    transition: width .55s var(--ease);
}

.fx-bar__status {
    display: flex;
    align-items: center;
    gap: 7px;
    min-height: 1.25em;
    margin: 6px 0 0;
    color: var(--muted);
    font-size: .8rem;
    line-height: 1.25;
}

.fx-bar__status.is-live::before {
    content: '';
    flex: none;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--sun);
    animation: fx-pulse 1.4s ease-in-out infinite;
}

.fx-bar__status.is-note {
    color: var(--ok);
    font-weight: 600;
    animation: fx-note .35s var(--ease);
}

/* Uwaga (np. limit zaznaczeń) nie wygląda jak „Zapisane”. */
.fx-bar__status.is-note.is-warn {
    color: var(--sun);
}

.fx-bar__price {
    padding: 6px 11px;
    border-radius: 11px;
    background: var(--sun);
    color: var(--ink);
    font: 800 1rem/1.1 var(--display);
    white-space: nowrap;
}

/* ───────── Ekrany ───────── */

.fx-stage {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.fx-screen {
    display: none;
    flex: 1;
    flex-direction: column;
    padding: 18px var(--pad) calc(28px + env(safe-area-inset-bottom));
}

.fx-screen.is-active {
    display: flex;
    animation: fx-in .34s var(--ease) both;
}

.fx-stage[data-dir="back"] .fx-screen.is-active {
    animation-name: fx-in-back;
}

.fx-screen.is-leaving {
    display: flex;
    animation: fx-out .15s ease-in both;
    pointer-events: none;
}

.fx-stage[data-dir="back"] .fx-screen.is-leaving {
    animation-name: fx-out-back;
}

.fx-q__head {
    margin-bottom: 22px;
}

.fx-q__title {
    margin: 0 0 8px;
    font: 800 clamp(1.7rem, 7.4vw, 2.2rem)/1.08 var(--display);
    letter-spacing: -.02em;
    text-wrap: balance;
}

.fx-q__hint {
    margin: 0;
    color: var(--muted);
    font-size: 1.02rem;
    line-height: 1.45;
    text-wrap: pretty;
}

.fx-q__body {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.fx-q__foot {
    position: sticky;
    bottom: 0;
    z-index: 5;
    margin: auto calc(var(--pad) * -1) calc((28px + env(safe-area-inset-bottom)) * -1);
    padding: 26px var(--pad) calc(18px + env(safe-area-inset-bottom));
    background: linear-gradient(to top, var(--navy) 62%, rgba(15, 27, 61, 0));
}

/* ───────── Przyciski ───────── */

.fx-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    min-height: 60px;
    padding: 12px 22px;
    border-radius: 18px;
    font: 700 1.14rem/1.2 var(--body);
    text-align: center;
    text-decoration: none;
    transition: transform .1s, box-shadow .1s, opacity .2s, background .2s;
}

.fx .fx-btn--sun {
    background: var(--sun);
    color: var(--ink);
    box-shadow: 0 5px 0 var(--sun-deep);
}

.fx .fx-btn--sun:active:not(:disabled) {
    transform: translateY(4px);
    box-shadow: 0 1px 0 var(--sun-deep);
}

.fx .fx-btn--ghost {
    background: var(--navy-2);
    color: #fff;
    box-shadow: inset 0 0 0 2px var(--navy-3);
}

.fx-btn:disabled {
    cursor: default;
}

.fx .fx-btn--sun:disabled {
    background: #4a5680;
    color: #c3cbe4;
    box-shadow: 0 5px 0 #38426a;
}

.fx-btn.is-busy {
    color: transparent;
    pointer-events: none;
    position: relative;
}

.fx-btn.is-busy::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 24px;
    border: 3px solid rgba(15, 27, 61, .25);
    border-top-color: var(--ink);
    border-radius: 50%;
    animation: fx-spin .7s linear infinite;
}

.fx-btn--xl {
    min-height: 66px;
    font-size: 1.3rem;
    border-radius: 20px;
}

.fx-btn.is-nudge {
    animation: fx-nudge .5s var(--ease);
}

.fx-link {
    align-self: center;
    min-height: 44px;
    padding: 12px 8px;
    color: #fff;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 4px;
    text-decoration-color: rgba(255, 255, 255, .45);
}

.fx-link--quiet {
    color: var(--muted);
    font-weight: 500;
    font-size: .95rem;
}

/* Odnośnik wyłączony na czas płatności nie wygląda jak czynny. */
.fx .fx-link:disabled {
    opacity: .45;
    text-decoration: none;
    cursor: default;
}

.fx-other {
    align-self: flex-start;
    padding: 12px 4px;
    color: #fff;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 4px;
    text-decoration-color: rgba(255, 255, 255, .45);
}

/* ───────── Kafle, odpowiedzi, wiersze ───────── */

.fx-tiles {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.fx-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 96px;
    padding: 12px 6px;
    border-radius: 18px;
    background: var(--navy-2);
    color: #fff;
    font: 600 .93rem/1.2 var(--body);
    text-align: center;
    transition: transform .12s, background .18s, color .18s;
}

.fx .fx-tile svg {
    width: 30px;
    height: 30px;
    stroke: var(--sun);
    stroke-width: 1.7;
    transition: stroke .18s;
}

.fx-tile:active {
    transform: scale(.96);
}

.fx-tile.is-selected {
    background: var(--sun);
    color: var(--ink);
    animation: fx-pop .32s var(--ease);
}

.fx .fx-tile.is-selected svg {
    stroke: var(--ink);
}

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

/* Odpowiedź do zaznaczenia: ikona w kółku i nazwa. Zaznaczenie zmienia tylko kolory i dokłada znaczek
   na rogu ikony, więc szerokość zostaje ta sama i lista nie skacze. Ikona z odstępami zajmuje tyle, ile
   wcześniej same odstępy (62 px), więc w wierszu mieści się tyle samo odpowiedzi co bez ikon. */
.fx-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 50px;
    padding: 7px 15px 7px 7px;
    border-radius: 99px;
    background: var(--navy-2);
    color: #fff;
    font: 600 1rem/1.2 var(--body);
    text-align: left;
    transition: transform .12s, background .18s, color .18s;
}

.fx-chip__icon {
    position: relative;
    display: grid;
    flex: none;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--navy-3);
    color: var(--sun);
    transition: background .18s;
}

.fx .fx-chip__icon svg {
    width: 19px;
    height: 19px;
    stroke-width: 2;
}

/* Znaczek zaznaczenia: białe kółko z „ptaszkiem” na rogu ikony. */
.fx-chip__icon::after {
    content: '';
    position: absolute;
    right: -4px;
    bottom: -4px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230f1b3d' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 11px 11px no-repeat;
    box-shadow: 0 0 0 2px var(--sun);
    transform: scale(0);
    transition: transform .22s var(--ease);
}

.fx-chip__label {
    min-width: 0;
}

.fx-chip:active {
    transform: scale(.96);
}

.fx-chip.is-selected {
    background: var(--sun);
    color: var(--ink);
}

.fx-chip.is-selected .fx-chip__icon {
    background: var(--ink);
    animation: fx-pop .32s var(--ease);
}

.fx-chip.is-selected .fx-chip__icon::after {
    transform: scale(1);
}

.fx-chip.is-full {
    opacity: .45;
}

.fx-chips--quick .fx-chip {
    min-height: 44px;
    padding: 6px 16px 6px 7px;
    font-size: .95rem;
}

.fx-chips--quick .fx-chip__icon {
    width: 30px;
    height: 30px;
}

.fx .fx-chips--quick .fx-chip__icon svg {
    width: 17px;
    height: 17px;
}

/* Zarys odpowiedzi, gdy podpowiedzi usług jeszcze się pobierają. */
.fx-chip--ghost {
    padding: 0;
    pointer-events: none;
    animation: fx-ghost 1.1s ease-in-out infinite;
}

.fx-chip--ghost:nth-child(2n) {
    animation-delay: .18s;
}

.fx-chip--ghost:nth-child(3n) {
    animation-delay: .36s;
}

/* Podpowiedzi wchodzą jedna po drugiej, a dopisana usługa pojawia się już zaznaczona. */
.fx-chips.is-fresh .fx-chip {
    animation: fx-note .3s var(--ease) both;
}

.fx-chips.is-fresh .fx-chip:nth-child(2) { animation-delay: .04s; }
.fx-chips.is-fresh .fx-chip:nth-child(3) { animation-delay: .08s; }
.fx-chips.is-fresh .fx-chip:nth-child(4) { animation-delay: .12s; }
.fx-chips.is-fresh .fx-chip:nth-child(5) { animation-delay: .16s; }
.fx-chips.is-fresh .fx-chip:nth-child(6) { animation-delay: .2s; }
.fx-chips.is-fresh .fx-chip:nth-child(7) { animation-delay: .24s; }
.fx-chips.is-fresh .fx-chip:nth-child(n+8) { animation-delay: .28s; }

.fx-chip.is-new {
    animation: fx-pop .32s var(--ease);
}

.fx-other--quiet {
    padding-top: 4px;
    color: var(--muted);
    font-weight: 500;
    text-decoration-color: rgba(255, 255, 255, .25);
}

.fx-rows {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.fx-row {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    min-height: 68px;
    padding: 12px 16px;
    border-radius: 18px;
    background: var(--navy-2);
    color: #fff;
    text-align: left;
    cursor: pointer;
    transition: transform .12s, background .18s, color .18s;
}

.fx-row:active {
    transform: scale(.98);
}

.fx-row__icon {
    display: grid;
    flex: none;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 13px;
    background: var(--navy-3);
    color: var(--sun);
    overflow: hidden;
}

.fx-row__icon svg {
    width: 24px;
    height: 24px;
}

.fx-row__icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #fff;
}

.fx-row__text {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.fx-row__text b {
    font-weight: 700;
    font-size: 1.06rem;
    line-height: 1.25;
}

.fx-row__text small {
    color: var(--muted);
    font-size: .9rem;
}

.fx-row.is-selected {
    background: var(--sun);
    color: var(--ink);
    animation: fx-pop .32s var(--ease);
}

.fx-row.is-selected .fx-row__text small {
    color: rgba(15, 27, 61, .72);
}

.fx-row.is-selected .fx-row__icon {
    background: rgba(15, 27, 61, .12);
    color: var(--ink);
}

.fx-row.is-busy {
    opacity: .6;
    pointer-events: none;
}

/* ───────── Pola ───────── */

.fx-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.fx-label {
    display: block;
    margin-bottom: -6px;
    color: #dfe5f7;
    font-weight: 600;
    font-size: .98rem;
}

.fx-input,
.fx-addr,
.fx-phone {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 64px;
    border: 3px solid transparent;
    border-radius: 18px;
    background: #fff;
    color: var(--ink);
    font: 600 1.22rem/1.2 var(--body);
    transition: border-color .15s, box-shadow .15s;
}

.fx-input {
    padding: 0 18px;
    -webkit-appearance: none;
    appearance: none;
}

.fx-input::placeholder,
.fx-addr input::placeholder,
.fx-phone input::placeholder {
    color: #6c7594;
    font-weight: 500;
}

.fx-input:focus,
.fx-addr:focus-within,
.fx-phone:focus-within {
    outline: none;
    border-color: var(--sun);
    box-shadow: 0 0 0 4px rgba(255, 201, 40, .28);
}

.fx-addr,
.fx-phone {
    gap: 8px;
    padding: 0 16px;
}

.fx .fx-addr input,
.fx .fx-phone input {
    flex: 1;
    min-width: 0;
    height: 58px;
    border: 0;
    /* Obramowanie fokusu rysuje całe pole (focus-within), nie sam środek. */
    outline: none;
    background: none;
    color: var(--ink);
    font: inherit;
}

.fx-addr svg {
    flex: none;
    width: 20px;
    height: 20px;
    color: #1a7a43;
}

.fx-addr span,
.fx-phone span {
    flex: none;
    color: #5d6788;
    font-weight: 600;
}

.fx-addr__state {
    min-height: 1.4em;
    margin: -4px 2px 0;
    color: var(--muted);
    font-size: .95rem;
    font-weight: 600;
}

.fx-addr__state.is-ok {
    color: var(--ok);
}

.fx-addr__state.is-bad {
    color: var(--bad);
}

.fx-addr__state button {
    display: inline-block;
    min-height: 44px;
    padding: 10px 2px;
    color: #fff;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* Informacja pod przyciskiem rezerwacji: własną domenę da się podpiąć później. Kafel z ikoną jak w odpowiedziach
   do wyboru, ale sama obwódka zamiast wypełnienia, żeby nie wyglądała jak coś do dotknięcia. Wchodzi chwilę
   po ekranie, więc oko trafia najpierw na adres i przycisk. */
.fx-own,
.fx-tip {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 8px 0 0;
    padding: 12px 14px;
    border-radius: 18px;
    box-shadow: inset 0 0 0 2px var(--navy-2);
    color: var(--muted);
    font-size: .94rem;
    line-height: 1.35;
}

.fx-own {
    animation: fx-note .4s var(--ease) .3s both;
}

.fx-own__icon,
.fx-tip__icon {
    display: grid;
    flex: none;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 13px;
    background: var(--navy-2);
    color: var(--sun);
}

.fx-own__icon svg,
.fx-tip__icon svg {
    width: 24px;
    height: 24px;
}

.fx-own__text,
.fx-tip__text {
    display: flex;
    flex-direction: column;
    min-width: 0;
    text-wrap: balance;
}

.fx-own__text b,
.fx-tip__text b {
    color: #fff;
    font-weight: 700;
    font-size: 1.02rem;
    line-height: 1.25;
}

/* Informacja pod podglądem gotowej strony („Coś się nie zgadza?”): ikona mniejsza, bo to dopowiedzenie,
   a nie osobny krok. Odstępy nadaje ekran gotowej strony; stoi nad cieniem karty podglądu, żeby cień
   nie przyciemniał tekstu. */
.fx-tip {
    position: relative;
    margin: 0;
}

.fx-tip__icon {
    width: 38px;
    height: 38px;
    border-radius: 12px;
}

.fx-tip__icon svg {
    width: 20px;
    height: 20px;
    stroke-width: 2;
}

.fx-tip__text strong {
    color: #fff;
    font-weight: 700;
}

/* Zdanie łamie się zwyczajnie, wiersz po wierszu (bez wyrównywania długości wierszy, które odrywałoby
   „zmienisz” od początku zdania), a „w Panelu Szefa.” zostaje w jednym kawałku. */
.fx-tip__text > span {
    text-wrap: wrap;
}

.fx-tip__where {
    white-space: nowrap;
}

.fx-error {
    margin: 0;
    padding: 11px 14px;
    border-radius: 14px;
    background: rgba(255, 106, 90, .16);
    color: var(--bad);
    font-weight: 600;
    font-size: .98rem;
    animation: fx-shake .3s;
}

.fx-terms {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: .84rem;
    line-height: 1.45;
    text-align: center;
}

.fx-legal {
    margin: 18px 0 0;
    color: #7f8bb3;
    font-size: .74rem;
    line-height: 1.5;
    text-align: center;
}

.fx-legal a {
    display: inline-block;
    margin-left: 2px;
    padding: 10px 6px;
    white-space: nowrap;
}

/* Pole własnej usługi przewija się pod górną krawędź, z miejscem na nagłówek lejka. */
#fxServiceInput {
    scroll-margin-top: 120px;
}

/* ───────── Opinie w Google ───────── */

/* Biała karta jak wizytówka w Mapach: pięć gwiazdek, pod nimi szukanie, znaleziona firma albo przycisk,
   który dodamy na stronie. To jedyny jasny element ekranu, więc oko trafia na nią od razu. */
.fx-rv {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    padding: 22px 18px 18px;
    border-radius: 24px;
    background: #fff;
    color: var(--ink);
    text-align: center;
    box-shadow: 0 20px 46px rgba(3, 8, 24, .5);
}

.fx-stars {
    position: relative;
    display: inline-block;
    line-height: 0;
}

.fx-stars__row {
    display: flex;
    gap: 6px;
}

.fx .fx-stars svg {
    flex: none;
    width: 40px;
    height: 40px;
    fill: #dde2ee;
    stroke: none;
}

/* Złote gwiazdki leżą na szarych i są przycięte z prawej do oceny firmy (--fill ustawia skrypt). Przycięcie
   zostawia zapas z pozostałych stron, żeby gwiazdka mogła urosnąć w animacji. */
.fx-stars__gold {
    position: absolute;
    inset: 0;
    clip-path: inset(-16px calc(100% - var(--fill, 100%)) -16px -16px);
    transition: clip-path .5s var(--ease);
}

.fx .fx-stars__gold svg {
    fill: #fbbc05;
    transform-origin: 50% 55%;
}

/* Szukanie: światło biegnie po gwiazdkach od lewej do prawej. */
.fx-reviews[data-view="search"] .fx-stars__gold svg {
    animation: fx-star-seek 1.2s ease-in-out infinite;
    animation-delay: calc(var(--i) * 130ms);
}

.fx-rv.is-shown .fx-stars__gold svg {
    animation: fx-star-in .5s var(--ease) both;
    animation-delay: calc(var(--i) * 70ms);
}

.fx-rv.is-yes .fx-stars__gold svg {
    animation: fx-star-cheer .75s var(--ease) both;
    animation-delay: calc(var(--i) * 60ms);
}

.fx-rv.is-yes {
    animation: fx-rv-glow .9s ease-out both;
}

/* Iskry po „Tak”: kilka kropek rozchodzi się od gwiazdek. */
.fx-rv.is-yes::after {
    content: '';
    position: absolute;
    top: 42px;
    left: 50%;
    width: 8px;
    height: 8px;
    margin-left: -4px;
    border-radius: 50%;
    box-shadow:
        -126px -16px 0 1px #ffc928, -92px 28px 0 #46e0a0, -50px -32px 0 1px #ea4335, -6px 36px 0 #ffc928,
        44px -34px 0 1px #4285f4, 94px 26px 0 #ffc928, 130px -12px 0 1px #46e0a0;
    animation: fx-burst .8s ease-out both;
    pointer-events: none;
}

.fx-rv__wait {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 44px;
    margin: 0;
    color: #3a4568;
    font-weight: 700;
    font-size: 1.04rem;
}

.fx-rv__pin {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    width: 100%;
    padding-top: 16px;
    border-top: 2px solid #eef0f6;
    text-align: left;
}

.fx-rv__mark {
    display: grid;
    flex: none;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: 50% 50% 50% 6px;
    background: #ea4335;
    color: #fff;
    transform-origin: 20% 100%;
    animation: fx-pin-drop .6s .12s cubic-bezier(.3, 1.5, .5, 1) both;
}

.fx-rv__mark svg {
    width: 24px;
    height: 24px;
    stroke-width: 2;
}

.fx-rv__text {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

/* Nazwy pinezek bywają długie (firma dopisuje w nich usługi): pokazujemy dwa wiersze nazwy i dwa adresu. */
.fx-rv__text b,
.fx-rv__text small:not(.fx-rv__rating) {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
}

.fx-rv__text b {
    font: 800 1.24rem/1.18 var(--display);
    letter-spacing: -.01em;
    overflow-wrap: anywhere;
}

.fx-rv__text small {
    color: #5d6788;
    font-size: .95rem;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.fx .fx-rv__other {
    align-self: flex-start;
    min-height: 44px;
    margin: 2px 0 -10px;
    padding: 8px 0;
    color: #3a4568;
    font-size: .95rem;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 4px;
    text-decoration-color: rgba(58, 69, 104, .45);
}

.fx-rv.is-yes .fx-rv__other {
    display: none;
}

.fx-rv__text .fx-rv__rating {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-top: 3px;
    color: #12703a;
    font-weight: 700;
}

.fx .fx-rv__rating .fx-g {
    width: 17px;
    height: 17px;
}

.fx-rv__demo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 9px;
}

/* Tak wygląda przycisk na stronie klienta (Snippets/GoogleReviews.cshtml). */
.fx-rv__google {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 50px;
    padding: 10px 22px;
    border: 1px solid #dadce0;
    border-radius: 99px;
    background: #fff;
    color: #1f1f1f;
    font-weight: 700;
    font-size: 1.04rem;
    line-height: 1.2;
    box-shadow: 0 2px 6px rgba(60, 64, 67, .2);
}

.fx .fx-g {
    flex: none;
    width: 20px;
    height: 20px;
    stroke: none;
}

.fx-rv__demo small {
    color: #5d6788;
    font-size: .88rem;
    font-weight: 600;
}

.fx-rv__done {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 9px 16px 9px 11px;
    border-radius: 99px;
    background: #dff6e8;
    color: #12703a;
    font-weight: 800;
    font-size: 1.02rem;
    animation: fx-pop .35s var(--ease) both;
}

.fx-rv__done svg {
    width: 20px;
    height: 20px;
    stroke-width: 3;
}

/* Po „Tak” karta pokazuje samo potwierdzenie: gwiazdki i zieloną plakietkę. */
.fx-rv.is-yes .fx-rv__demo small {
    display: none;
}

.fx-rv__foot {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Odstęp pod komunikatem daje już przerwa między elementami stopki. */
.fx-q__foot.fx-rv__foot .fx-error {
    margin-bottom: 0;
}

/* Lista firm: „Żadna z nich” i „Nie, dziękuję” stoją obok siebie w stałej stopce, zawsze widoczne. */
.fx-reviews[data-view="pick"] .fx-rv__foot {
    flex-direction: row;
    flex-wrap: wrap;
}

.fx-reviews[data-view="pick"] .fx-rv__foot .fx-btn {
    flex: 1 1 0;
    width: auto;
    min-width: 0;
    padding-inline: 8px;
    font-size: clamp(.94rem, 4.2vw, 1.05rem);
}

.fx-reviews[data-view="pick"] .fx-rv__foot .fx-error {
    flex: 0 0 100%;
}

/* Odpowiedź zapisana wcześniej („Nie, dziękuję”) jest zaznaczona, gdy gość wraca na pytanie. */
.fx .fx-btn--ghost.is-chosen {
    box-shadow: inset 0 0 0 2px var(--sun);
    color: var(--sun);
}

/* Na białej karcie obwódka fokusu jest granatowa, żeby było ją widać. */
.fx-rv :focus-visible {
    outline-color: var(--ink);
}

/* Lista firm do wskazania stoi bez karty nad nią: wiersze same są wizytówkami. */
.fx-reviews[data-view="pick"] .fx-rv {
    display: none;
}

.fx-row--pin .fx-row__icon {
    border-radius: 50% 50% 50% 6px;
    background: #ea4335;
    color: #fff;
}

.fx-row--pin .fx-row__text {
    flex: 1;
}

.fx-row__rate {
    display: inline-flex;
    flex: none;
    align-items: center;
    gap: 4px;
    padding: 5px 9px 5px 10px;
    border-radius: 99px;
    background: rgba(255, 255, 255, .1);
    font-weight: 700;
    font-size: .95rem;
}

.fx-row__rate i {
    font-style: normal;
}

.fx .fx-row__rate svg {
    width: 15px;
    height: 15px;
    fill: #fbbc05;
    stroke: none;
}

.fx-row.is-selected .fx-row__rate {
    background: rgba(15, 27, 61, .12);
}

.fx .fx-row.is-selected .fx-row__rate svg {
    fill: var(--ink);
}

/* Po „Tak” liczy się samo potwierdzenie na karcie: przyciski gasną, a pole z nazwą znika do następnego pytania
   (na niskich ekranach nie mieściło się pod kartą z potwierdzeniem). */
.fx-reviews.is-cheering .fx-rv__foot {
    opacity: .28;
    pointer-events: none;
    transition: opacity .2s;
}

.fx-reviews.is-cheering .fx-form {
    display: none;
}

.fx-row--pin .fx-row__text b,
.fx-row--pin .fx-row__text small {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
    overflow-wrap: anywhere;
}

.fx-row--pin.is-selected .fx-row__icon {
    background: var(--ink);
    color: var(--sun);
}

/* ───────── Kolory ───────── */

.fx-colorpreview {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 18px 16px;
    border-radius: 18px;
    background: #fff;
}

.fx-colorpreview small {
    color: #5d6788;
    font-size: .86rem;
    font-weight: 600;
}

.fx-colorpreview span {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 13px 22px;
    border-radius: 10px;
    background: var(--pick, #1565d8);
    color: #fff;
    font-weight: 700;
    font-size: 1.05rem;
    transition: background .25s;
}

.fx-colorpreview svg {
    width: 18px;
    height: 18px;
    stroke-width: 2.2;
}

.fx-swatches {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px 12px;
    justify-items: center;
}

.fx-swatch {
    display: block;
    width: 100%;
    max-width: 72px;
    padding: 4px;
}

.fx-swatch i {
    display: grid;
    place-items: center;
    width: 100%;
    aspect-ratio: 1;
    border-radius: 50%;
    background: var(--c);
    box-shadow: inset 0 0 0 3px rgba(255, 255, 255, .22);
    transition: transform .18s var(--ease), box-shadow .18s;
}

.fx-swatch i svg {
    width: 46%;
    height: 46%;
    stroke: #fff;
    stroke-width: 3;
    opacity: 0;
    transform: scale(.4);
    transition: opacity .18s, transform .22s var(--ease);
}

.fx-swatch.is-selected i {
    transform: scale(1.06);
    box-shadow: 0 0 0 3px var(--navy), 0 0 0 6px var(--sun);
}

.fx-swatch.is-selected i svg {
    opacity: 1;
    transform: none;
}

/* ───────── Ekran powitalny ───────── */

.fx-welcome {
    padding: 0 var(--pad) calc(20px + env(safe-area-inset-bottom));
}

/* Wszystko, co ma być widać bez przewijania: nagłówek, cena, podglądy i przycisk startu. */
.fx-welcome__fold {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-height: 100dvh;
    padding: calc(16px + env(safe-area-inset-top)) 0 18px;
}

.fx-welcome.is-active {
    animation: none;
}

.fx-brand {
    display: block;
    height: 30px;
    margin-bottom: 14px;
}

.fx-brand img {
    display: block;
    width: auto;
    height: 30px;
    /* Logo jest ciemne na przezroczystym tle; na granacie pokazujemy je na biało. */
    filter: brightness(0) invert(1);
    opacity: .92;
}

.fx-welcome__title {
    margin: 0;
    font: 800 clamp(2rem, 9.4vw, 2.9rem)/1.02 var(--display);
    letter-spacing: -.025em;
    text-wrap: balance;
}

.fx-tag {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 14px 0 0;
}

.fx-tag strong {
    display: inline-flex;
    align-items: baseline;
    gap: 5px;
    padding: 4px 16px 6px;
    border-radius: 16px;
    background: var(--sun);
    color: var(--ink);
    font: 800 clamp(2.5rem, 12vw, 3.4rem)/1 var(--display);
    letter-spacing: -.03em;
    transform: rotate(-3deg);
    box-shadow: 0 6px 0 var(--sun-deep);
}

.fx-tag strong small {
    font-size: .46em;
    letter-spacing: 0;
}

.fx-tag span {
    color: #dfe5f7;
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.2;
}

.fx-tag s {
    position: relative;
    display: table;
    padding: 0 3px;
    color: #fff;
    font: 800 1.55rem/1.15 var(--display);
    text-decoration: none;
}

.fx-tag s::after {
    content: '';
    position: absolute;
    left: -2px;
    right: -2px;
    top: 50%;
    height: 3px;
    border-radius: 2px;
    background: #ff6a5a;
    transform: rotate(-9deg);
}

/* Rotunda: bęben z podglądami stron obracany wokół pionowej osi, lekko pochylony. Powłoka trzyma miejsce
   w układzie ekranu; strzałki leżą w niej obok bębna, żeby nie obejmowała ich maska wygaszająca jego brzegi. */

.fx-rotunda-shell {
    position: relative;
    flex: 1 1 auto;
    min-height: 200px;
    max-height: 400px;
    margin: -6px calc(var(--pad) * -1) 0;
}

.fx-rotunda {
    position: absolute;
    inset: 0;
    perspective: 1100px;
    perspective-origin: 50% 45%;
    overflow: hidden;
    cursor: grab;
    touch-action: pan-y;
    -webkit-user-select: none;
    user-select: none;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 9%, #000 91%, transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0, #000 9%, #000 91%, transparent 100%);
}

.fx-rotunda.is-dragging {
    cursor: grabbing;
}

.fx-rotunda::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: min(92vw, 640px);
    aspect-ratio: 2.1;
    border-radius: 50%;
    background: radial-gradient(closest-side, rgba(255, 201, 40, .22), rgba(255, 201, 40, 0));
    transform: translate(-50%, -30%);
    pointer-events: none;
}

.fx-rotunda__tilt {
    /* Szerokość karty; skrypt zawęża ją do wysokości bębna, tu wartość na czas ładowania. */
    --w: min(34vw, 180px);
    --r: calc(var(--w) * 2.04);
    position: absolute;
    inset: 0;
    transform-style: preserve-3d;
    transform: rotateX(-7deg) rotateZ(-4deg);
    opacity: 0;
    animation: fx-drum-in .9s .1s var(--ease) forwards;
}

.fx-rotunda__drum {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 0;
    height: 0;
    transform-style: preserve-3d;
    transform: translateZ(calc(var(--r) * -1)) rotateY(var(--angle, 0deg));
}

.fx-card {
    position: absolute;
    left: calc(var(--w) / -2);
    top: calc(var(--w) * -.722);
    width: var(--w);
    height: calc(var(--w) * 1.444);
    margin: 0;
    border-radius: 14px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 22px 44px rgba(3, 8, 24, .6);
    transform: rotateY(calc(var(--i) * 30deg)) translateZ(var(--r));
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

.fx-card img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}

/* Strzałki przy bębnie: szklane kapsuły jak wskaźnik głośności w iPhonie. Wsuwają się od brzegów ekranu,
   stoją pod kątem jak ścianki bębna i kilka razy kiwają strzałką. Gdy bęben kręci się w ich stronę, rosną,
   a w środku podnosi się jasny poziom (im szybciej, tym wyżej); po pierwszym ruchu gościa chudną, bo
   podpowiedź zrobiła swoje. */

.fx-swipe {
    position: absolute;
    top: 50%;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 58px;
    height: 100px;
    margin-top: -50px;
    opacity: 0;
    cursor: pointer;
    touch-action: pan-y;
    -webkit-tap-highlight-color: transparent;
    -webkit-user-select: none;
    user-select: none;
    animation: fx-swipe-in .75s 1.15s cubic-bezier(.3, 1.45, .5, 1) forwards;
}

.fx-swipe--prev {
    left: 4px;
    --turn: 26deg;
    --lean: -9deg;
    --from: -70px;
    --nudge: -5px;
    --level: var(--prev, 0);
}

.fx-swipe--next {
    right: 4px;
    --turn: -26deg;
    --lean: 3deg;
    --from: 70px;
    --nudge: 5px;
    --level: var(--next, 0);
}

.fx-swipe__glass {
    position: relative;
    display: grid;
    place-items: center;
    width: 44px;
    height: 86px;
    border: 1px solid rgba(255, 255, 255, .44);
    border-radius: 22px;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(52, 72, 138, .58), rgba(15, 27, 61, .52));
    box-shadow: 0 16px 32px rgba(3, 8, 24, .55), inset 0 1px 0 rgba(255, 255, 255, .38);
    -webkit-backdrop-filter: blur(14px) saturate(170%);
    backdrop-filter: blur(14px) saturate(170%);
    color: #fff;
    transform: perspective(520px) rotateY(var(--turn)) rotateZ(var(--lean)) scale(var(--grow, 1));
    transition: transform .45s cubic-bezier(.3, 1.45, .5, 1), width .45s var(--ease), opacity .45s;
    pointer-events: none;
}

@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
    .fx-swipe__glass {
        background: rgba(30, 44, 92, .92);
    }
}

/* Poziom jak przy zmianie głośności: jasne wypełnienie od dołu kapsuły. */
.fx-swipe__glass::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: calc(var(--level, 0) * 100%);
    background: rgba(255, 255, 255, .36);
    transition: height .2s ease-out;
}

.fx-swipe__glass svg {
    position: relative;
    width: 26px;
    height: 26px;
    stroke-width: 3;
    animation: fx-swipe-nudge 2.6s 2.3s ease-in-out 4;
}

.fx-swipe.is-pressed .fx-swipe__glass {
    --grow: .9;
}

/* Po pierwszym ruchu gościa kapsuły chudną i przestają kiwać. */
.fx-rotunda-shell.is-used .fx-swipe__glass {
    width: 36px;
    opacity: .86;
}

.fx-rotunda-shell.is-used .fx-swipe__glass svg {
    animation: none;
}

/* Bęben kręci się w tę stronę (gość go pchnął albo dotknął strzałki): kapsuła po tej stronie rośnie. */
.fx-rotunda-shell[data-spin="prev"] .fx-swipe--prev .fx-swipe__glass,
.fx-rotunda-shell[data-spin="next"] .fx-swipe--next .fx-swipe__glass {
    --grow: 1.1;
    width: 44px;
    opacity: 1;
}

.fx-welcome__cta {
    display: flex;
    flex-direction: column;
    padding-top: 10px;
}

.fx-welcome__lead {
    margin: 0 0 12px;
    font: 600 1.1rem/1.3 var(--body);
    text-align: center;
    text-wrap: balance;
}

.fx-welcome__promise {
    margin: 16px 0 0;
    color: #dfe5f7;
    font-weight: 600;
    font-size: .98rem;
    text-align: center;
}

.fx-ticks {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px 16px;
    margin: 12px 0 0;
    padding: 0;
    list-style: none;
    color: #fff;
    font-size: .92rem;
    font-weight: 600;
}

.fx-ticks li {
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.fx-ticks li::before {
    content: '';
    flex: none;
    width: 16px;
    height: 16px;
    background: var(--sun);
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* ───────── Budowa w toku ───────── */

.fx-building {
    align-items: center;
    justify-content: center;
    gap: 22px;
    text-align: center;
}

.fx-building__ring {
    position: relative;
    display: grid;
    place-items: center;
    width: 168px;
    height: 168px;
}

.fx-building__ring svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.fx-building__track {
    stroke: var(--navy-3);
    stroke-width: 9;
}

.fx-building__arc {
    stroke: var(--sun);
    stroke-width: 9;
    stroke-dasharray: 326.73;
    stroke-dashoffset: 326.73;
    transition: stroke-dashoffset .5s linear;
}

.fx-building__ring strong {
    font: 800 2.5rem/1 var(--display);
    letter-spacing: -.02em;
    font-variant-numeric: tabular-nums;
}

.fx-building .fx-q__title {
    margin: 0;
}

.fx-checks {
    display: flex;
    flex-direction: column;
    gap: 11px;
    margin: 0;
    padding: 0;
    list-style: none;
    text-align: left;
}

.fx-checks li {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #7f8bb3;
    font-weight: 600;
    font-size: 1.04rem;
    transition: color .3s;
}

.fx-checks li::before {
    content: '';
    flex: none;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    box-shadow: inset 0 0 0 2.5px var(--navy-3);
    background: transparent center / 15px 15px no-repeat;
    transition: background-color .3s, box-shadow .3s, transform .3s var(--ease);
}

.fx-checks li.is-now {
    color: #fff;
}

.fx-checks li.is-now::before {
    box-shadow: inset 0 0 0 2.5px var(--sun);
    animation: fx-pulse 1.2s ease-in-out infinite;
}

.fx-checks li.is-done {
    color: #fff;
}

.fx-checks li.is-done::before {
    background-color: var(--sun);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230f1b3d' stroke-width='3.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E");
    box-shadow: none;
    animation: fx-pop .35s var(--ease);
}

.fx-building__fail {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}

.fx-building__fail p {
    margin: 0;
    color: var(--bad);
    font-weight: 600;
}

/* ───────── Gotowa strona i płatność ───────── */

.fx-ready {
    gap: 20px;
    padding-top: calc(22px + env(safe-area-inset-top));
    padding-bottom: calc(110px + env(safe-area-inset-bottom));
}

.fx-ready .fx-q__head {
    margin-bottom: 0;
}

.fx-ready__done {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin: 0 0 10px;
    padding: 5px 12px 5px 8px;
    border-radius: 99px;
    background: rgba(70, 224, 160, .16);
    color: var(--ok);
    font-weight: 700;
    font-size: .92rem;
}

.fx-ready__done svg {
    width: 18px;
    height: 18px;
    stroke-width: 3;
}

/* Karta podglądu w układzie „bento”: w prawym górnym rogu ma wcięcie, a we wcięciu stoi przycisk otwierający
   stronę na pełnym ekranie. Kartę składają zakładka z adresem (obok wcięcia) i część pod nią (własna domena
   i podgląd). Wcięcie ma trzy zaokrąglone rogi: róg zakładki, róg części dolnej i łuk w kącie między nimi.
   Łuk jest współśrodkowy z rogiem przycisku, więc szczelina wokół przycisku ma wszędzie tę samą szerokość. */
.fx-site {
    --site-chrome: #eef1f8;
    --site-gap: 7px;
    --site-zoom-radius: 15px;
    --site-inner: calc(var(--site-zoom-radius) + var(--site-gap));
    position: relative;
}

.fx-ready.is-active .fx-site {
    animation: fx-reveal .7s .12s var(--ease) both;
}

/* Zakładka i przycisk stoją nad częścią dolną, żeby jej cień nie kładł się na zakładce. */
.fx-site__top {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: stretch;
    gap: var(--site-gap);
}

.fx-site__tab {
    position: relative;
    display: flex;
    flex: 1;
    align-items: center;
    gap: 8px;
    min-width: 0;
    min-height: 50px;
    margin: 0;
    padding: 7px 10px 7px 13px;
    border-radius: 20px 16px 0 0;
    background: var(--site-chrome);
    color: var(--ink);
    /* Piksel zapasu w dół: między zakładką a częścią pod nią nie prześwituje tło. */
    box-shadow: 0 1px 0 var(--site-chrome);
}

/* Łuk w kącie wcięcia: narożnik w kolorze karty z wyciętym kołem o środku w rogu przycisku. Zachodzi piksel
   na zakładkę i na część pod nią, żeby na ekranach o ułamkowej gęstości nie było widać styku. Wycięcie to
   przezroczysty odcień koloru karty (--site-chrome): przy zwykłej przezroczystości brzeg łuku by szarzał. */
.fx-site__tab::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: calc(100% - 1px);
    width: calc(var(--site-inner) + 1px);
    height: calc(var(--site-inner) + 1px);
    background: radial-gradient(circle at 100% 0, rgba(238, 241, 248, 0) calc(var(--site-inner) - .6px), var(--site-chrome) var(--site-inner));
    pointer-events: none;
}

/* Kłódka przy adresie: szara, dopóki adresu nie ma i dopóki się wpisuje, potem zielona. Ruch liter, kłódki
   i dopisku zaczyna klasa is-typed, którą skrypt nadaje razem z adresem: przy wejściu prosto na gotową stronę
   ekran widać wcześniej niż adres. Po ruchu zostają zwykłe style, więc bez animacji wszystko też jest na miejscu. */
.fx-site__tab svg {
    flex: none;
    width: 17px;
    height: 17px;
    color: #9aa3bf;
    stroke-width: 2.2;
}

.fx-site.is-typed .fx-site__tab svg {
    color: #1a7a43;
    animation: fx-lock .5s calc(.6s + var(--fx-letters, 20) * 22ms) var(--ease) backwards;
}

/* Adres zawsze w całości, z widoczną końcówką „.ryf.pl”: obok wcięcia jest wąsko, więc zajmuje zwykle dwa
   wiersze, a bardzo długi (mniejszą czcionką) trzy. Wysokości nie ograniczamy: przy powiększonym tekście
   zakładka rośnie razem z adresem. Wiersz łamie się przed końcówką; nazwę dłuższą niż wiersz dzieli na równe
   wiersze skrypt. */
.fx-site__address {
    display: block;
    min-width: 0;
    overflow: hidden;
    font-weight: 700;
    font-size: clamp(.8rem, 3.6vw, .95rem);
    line-height: 1.16;
    overflow-wrap: anywhere;
}

/* Długi adres (rozmiar nadaje skrypt) ma na telefonie mniejszą czcionkę; na szerokim ekranie wraca do zwykłej. */
.fx-site__address[data-size="m"] {
    font-size: clamp(.74rem, 3.3vw, .95rem);
}

.fx-site__address[data-size="s"] {
    font-size: clamp(.68rem, 3vw, .95rem);
}

/* Nazwa dłuższa niż wiersz (klasę nadaje skrypt razem z końcami wierszy): gdyby któryś wiersz mimo to
   wyszedł za długi, łamie się w dowolnym miejscu, zamiast się uciąć. */
.fx-site__address.is-split {
    word-break: break-all;
}

/* Koniec wiersza wyznaczony przez skrypt. Znak nowego wiersza stoi w treści dopisanej przez arkusz,
   więc nie trafia do zaznaczenia ani do schowka: skopiowany adres jest w jednym kawałku. */
.fx-site__address .is-end::after {
    content: '\A';
    white-space: pre;
}

.fx-site__suffix {
    color: #5b678c;
    font-weight: 600;
    white-space: nowrap;
}

/* Bardzo duży tekst: końcówka nie mieści się w wierszu, więc też wolno ją łamać (klasę nadaje skrypt). */
.fx-site__address.is-tight .fx-site__suffix {
    white-space: normal;
}

/* Adres pojawia się litera po literze (numer litery nadaje skrypt). */
.fx-site.is-typed .fx-site__address > span > span {
    animation: fx-letter .2s calc(.6s + var(--i, 0) * 22ms) ease-out backwards;
}

/* Przycisk we wcięciu: dwa wiersze, w pierwszym znak powiększenia. Zajmuje najwyżej niecałą połowę karty:
   przy powiększonym tekście jego napis łamie się na więcej wierszy, a adres obok zachowuje miejsce. */
.fx .fx-site__zoom {
    position: relative;
    display: flex;
    flex: none;
    max-width: 46%;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 1px;
    margin-bottom: var(--site-gap);
    padding: 5px 14px 5px 12px;
    border-radius: var(--site-zoom-radius);
    background: var(--navy-2);
    box-shadow: inset 0 0 0 2px var(--navy-3);
    color: #fff;
    font: 700 clamp(.8rem, 3.5vw, .88rem)/1.16 var(--body);
    text-align: left;
    transition: transform .12s, background .18s;
}

/* Miejsce na palec większe niż sam przycisk: obejmuje też szczelinę wokół niego. */
.fx-site__zoom::after {
    content: '';
    position: absolute;
    inset: calc(var(--site-gap) * -1) 0 calc(var(--site-gap) * -1) calc(var(--site-gap) * -1);
}

.fx-site__zoom span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.fx-site__zoom svg {
    flex: none;
    width: 15px;
    height: 15px;
    color: var(--sun);
    stroke-width: 2.8;
}

.fx-site__zoom:active {
    background: var(--navy-3);
    transform: scale(.96);
}

/* Po wejściu przycisk wraca do własnych stylów, żeby wciśnięcie nadal go zmniejszało. */
.fx-ready.is-active .fx-site__zoom {
    animation: fx-zoom-in .55s .5s cubic-bezier(.3, 1.45, .5, 1) backwards;
}

.fx-site__body {
    position: relative;
    border-radius: 0 16px 20px 20px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 26px 60px rgba(3, 8, 24, .6);
}

/* Adres i drobny dopisek o własnej domenie pod nim: jedna kolumna w zakładce. */
.fx-site__lines {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.fx-site__domain {
    display: block;
    color: #6a7598;
    font-size: .66rem;
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: .005em;
    text-wrap: balance;
}

/* Dopisku nie widać, dopóki adresu nie ma; wchodzi, gdy adres jest już wpisany. */
.fx-site__domain > * {
    opacity: 0;
}

.fx-site.is-typed .fx-site__domain > * {
    opacity: 1;
    animation: fx-note .45s calc(.75s + var(--fx-letters, 20) * 22ms) var(--ease) backwards;
}

.fx-ready.is-active .fx-site__view::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg, rgba(255, 201, 40, 0) 38%, rgba(255, 201, 40, .5) 50%, rgba(255, 201, 40, 0) 62%);
    transform: translateX(-120%);
    animation: fx-shine 1.1s .55s ease-out forwards;
    pointer-events: none;
}

.fx-site__view {
    position: relative;
    height: min(58vh, 540px);
    min-height: 380px;
    /* Zanim podgląd się wczyta: zarys strony zamiast białego pola. */
    background:
        linear-gradient(#dfe3ee, #dfe3ee) 18px 22px / 44% 22px no-repeat,
        linear-gradient(#eceff6, #eceff6) 18px 62px / 78% 12px no-repeat,
        linear-gradient(#eceff6, #eceff6) 18px 84px / 62% 12px no-repeat,
        linear-gradient(#dfe3ee, #dfe3ee) 18px 122px / 38% 40px no-repeat,
        #fff;
}

.fx-site__view iframe {
    opacity: 0;
    transition: opacity .3s;
}

.fx-site__view.is-loaded iframe {
    opacity: 1;
}

/* Podgląd nie przechwytuje przewijania strony: całą jego powierzchnię zajmuje przycisk otwierający pełny ekran. */
.fx .fx-site__open {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    /* --fx-hint-lift ustawia skrypt: tyle podglądu chowa się pod paskiem płatności. */
    padding: 0 12px calc(6px + var(--fx-hint-lift, 0px));
    background: none;
}

/* Cień u dołu podglądu: widać, że strona ciągnie się dalej, a zachęta ma na czym stać. */
.fx-site__open::before {
    content: '';
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: calc(118px + var(--fx-hint-lift, 0px));
    background: linear-gradient(to bottom, rgba(15, 27, 61, 0), rgba(15, 27, 61, .66));
    transition: opacity .6s;
    pointer-events: none;
}

/* Zachęta „Dotknij, aby zobaczyć całą stronę”: duża, z żółtym znakiem powiększenia, lekko się unosi. */
.fx-site__hint {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    max-width: 100%;
    min-height: 58px;
    padding: 7px 24px 7px 8px;
    border-radius: 99px;
    background: var(--navy);
    color: #fff;
    text-align: left;
    box-shadow: 0 16px 36px rgba(3, 8, 24, .6), inset 0 0 0 2px rgba(255, 255, 255, .18);
    animation: fx-hint-in .5s .9s var(--ease) both, fx-hint-bob 2.4s 1.6s ease-in-out infinite;
    transition: filter .15s;
}

.fx-site__hint b {
    font: 800 clamp(1rem, 4.6vw, 1.16rem)/1.18 var(--body);
    /* Dwa wiersze równej długości zamiast jednego słowa w drugim. */
    text-wrap: balance;
}

.fx-site__hint i {
    position: relative;
    display: grid;
    flex: none;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--sun);
    color: var(--ink);
}

.fx-site__hint i::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    animation: fx-hint-ring 2.4s 1.6s ease-out infinite;
}

.fx-site__hint svg {
    width: 22px;
    height: 22px;
    stroke-width: 2.4;
}

.fx-site__open:active .fx-site__hint {
    filter: brightness(1.35);
}

/* Po chwili zachęta przestaje się ruszać i odsłania więcej strony klienta. Zostaje na podglądzie:
   to ona mówi, że stronę da się obejrzeć w całości. */
.fx-site__open.is-quiet::before {
    opacity: .5;
}

.fx-site__open.is-quiet .fx-site__hint,
.fx-site__open.is-quiet .fx-site__hint i::after {
    animation: none;
}

.fx-site__view {
    overflow: hidden;
}

.fx-site__view iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
    /* Skalę i wymiary ustawia skrypt (sizePreview): strona w szerokości telefonu, pomniejszona do ramki. */
    transform-origin: 0 0;
}

.fx-pay {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 20px 18px 18px;
    border-radius: 22px;
    background: #fff;
    color: var(--ink);
    scroll-margin-top: 16px;
}

.fx-pay__price {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px 12px;
    margin: 0;
}

.fx-pay__price strong {
    font: 800 3rem/1 var(--display);
    letter-spacing: -.03em;
}

.fx-pay__price s {
    color: #6b7493;
    font: 800 1.3rem/1 var(--display);
    text-decoration-color: #e2463a;
    text-decoration-thickness: 2.5px;
}

.fx-pay__price span {
    width: 100%;
    color: #4b557a;
    font-weight: 600;
}

.fx-pay__hold,
.fx-pay__note {
    margin: 0;
    padding: 10px 13px;
    border-radius: 13px;
    background: #fff6d6;
    color: #5b4400;
    font-size: .93rem;
    font-weight: 600;
    line-height: 1.4;
}

.fx-pay__note {
    background: #eef0f5;
    color: var(--ink);
}

.fx-pay .fx-label {
    margin-bottom: 8px;
    color: var(--ink);
    font-size: 1rem;
    font-weight: 700;
}

.fx-blik__row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    gap: 10px;
}

.fx-blik__row input {
    width: 100%;
    height: 60px;
    border: 3px solid #8791b0;
    border-radius: 16px;
    background: #fff;
    color: var(--ink);
    font: 800 1.5rem/1 var(--display);
    letter-spacing: .08em;
    text-align: center;
    -webkit-appearance: none;
    appearance: none;
}

.fx-blik__row input::placeholder {
    color: #7b84a3;
}

.fx-blik__row input:focus {
    outline: none;
    border-color: var(--ink);
    box-shadow: 0 0 0 4px rgba(255, 201, 40, .55);
}

.fx-blik__wait {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 12px 0 0;
    font-weight: 700;
}

.fx-spinner {
    flex: none;
    width: 20px;
    height: 20px;
    border: 3px solid #cfd5e6;
    border-top-color: var(--ink);
    border-radius: 50%;
    animation: fx-spin .7s linear infinite;
}

.fx-pay .fx-error {
    background: #ffe9e6;
    color: #a3190f;
}

.fx-or {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 12px;
    color: #6b7493;
    font-size: .88rem;
    font-weight: 600;
}

.fx-or::before,
.fx-or::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #dde1ec;
}

.fx .fx-pay .fx-link {
    padding: 6px 8px;
    color: var(--ink);
    text-decoration-color: rgba(15, 27, 61, .4);
}

.fx-safe {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding-top: 12px;
    border-top: 1px solid #e3e6f0;
    color: #4b557a;
    font-size: .84rem;
    font-weight: 600;
}

.fx-safe span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.fx-safe span svg {
    width: 15px;
    height: 15px;
    stroke-width: 2.2;
}

.fx .fx-safe__blik {
    flex: none;
    width: 47px;
    height: 22px;
    stroke: none;
}

.fx .fx-safe__blik path,
.fx .fx-safe__blik rect,
.fx .fx-safe__blik circle {
    stroke: none;
}

.fx-gets h3 {
    margin: 6px 0 14px;
    font: 800 1.45rem/1.1 var(--display);
    letter-spacing: -.02em;
}

.fx-gets ul {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.fx-gets li {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding-left: 38px;
}

.fx-gets li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 1px;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--sun) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230f1b3d' stroke-width='3.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 15px 15px no-repeat;
}

/* Lista kroków do zrobienia: numer zamiast znaczka „zrobione”. */
.fx-gets--todo ul {
    counter-reset: fx-todo;
}

.fx-gets--todo li::before {
    counter-increment: fx-todo;
    content: counter(fx-todo);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--sun);
    color: var(--ink);
    font: 800 .92rem/1 var(--body);
}

.fx-gets b {
    font-weight: 700;
    font-size: 1.08rem;
}

.fx-gets span {
    color: var(--muted);
    font-size: .96rem;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

.fx-faq {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.fx-faq details {
    border-radius: 16px;
    background: var(--navy-2);
}

.fx-faq summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 15px 16px;
    font-weight: 700;
    cursor: pointer;
    list-style: none;
}

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

.fx-faq summary::after {
    content: '';
    flex: none;
    width: 10px;
    height: 10px;
    border-right: 2.5px solid var(--sun);
    border-bottom: 2.5px solid var(--sun);
    transform: translateY(-3px) rotate(45deg);
    transition: transform .2s;
}

.fx-faq details[open] summary::after {
    transform: translateY(2px) rotate(-135deg);
}

.fx-faq p {
    margin: 0;
    padding: 0 16px 16px;
    color: #dfe5f7;
    font-size: .98rem;
}

.fx-paybar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 30;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    background: #fff;
    color: var(--ink);
    box-shadow: 0 -10px 30px rgba(3, 8, 24, .35);
    transform: translateY(110%);
    transition: transform .3s var(--ease);
}

.fx-paybar.is-visible {
    transform: none;
}

.fx-paybar p {
    display: flex;
    flex-direction: column;
    margin: 0;
    line-height: 1.05;
}

.fx-paybar strong {
    font: 800 1.6rem/1 var(--display);
    letter-spacing: -.02em;
    white-space: nowrap;
}

.fx-paybar s {
    color: #6b7493;
    font-size: .82rem;
    font-weight: 700;
    text-decoration-color: #e2463a;
}

.fx-paybar .fx-btn {
    flex: 1;
    max-width: 380px;
    min-height: 54px;
}

/* Pasek z kontem: sam przycisk na całą szerokość, z ikoną, tytułem i dopiskiem o domenie. */
.fx-paybar .fx-paybar__acct {
    max-width: 460px;
    min-height: 62px;
    gap: 12px;
    padding: 9px 16px;
}

.fx-paybar__acct svg {
    flex: none;
    width: 28px;
    height: 28px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.fx-paybar__text {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
    text-align: left;
}

.fx-paybar__text b {
    font: 700 clamp(.98rem, 4.5vw, 1.12rem)/1.15 var(--body);
}

.fx-paybar__text small {
    font: 600 clamp(.72rem, 3.3vw, .82rem)/1.2 var(--body);
    opacity: .78;
}

.fx-full {
    position: fixed;
    inset: 0;
    z-index: 40;
    display: flex;
    flex-direction: column;
    background: #fff;
    animation: fx-in .25s var(--ease);
}

.fx-full iframe {
    flex: 1;
    width: 100%;
    border: 0;
}

.fx-full__bar {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 10px;
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
    background: var(--navy);
}

.fx-full__bar .fx-btn {
    min-height: 54px;
    box-shadow: none;
}

.fx-full__bar .fx-btn--ghost {
    width: auto;
    padding: 0 20px;
    box-shadow: inset 0 0 0 2px var(--navy-3);
}

.fx-paid {
    justify-content: center;
}

/* Strona po płatności (Pages/Oferta/Dziekujemy.cshtml). */
.fx-thanks {
    gap: 26px;
    padding-top: calc(40px + env(safe-area-inset-top));
}

.fx-thanks .fx-q__head {
    margin-bottom: 0;
}

.fx-thanks .fx-q__hint a {
    color: #fff;
    font-weight: 700;
}

.fx-spinner--big {
    width: 54px;
    height: 54px;
    border-width: 5px;
    border-color: var(--navy-3);
    border-top-color: var(--sun);
}

.fx-noscript {
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    z-index: 60;
    margin: 0;
    padding: 14px 20px;
    background: var(--sun);
    color: var(--ink);
    font-weight: 700;
    text-align: center;
}

/* ───────── Poprawki po przeglądzie: dostępność, błędy, podwójne dotknięcia ───────── */

/* Tekst tylko dla czytników ekranu; pole pliku logo ukryte przed wzrokiem, ale nie przed klawiaturą. */
.fx-sr {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}

/* Chwila po zmianie ekranu bez dotknięć: drugie stuknięcie w to samo miejsce nie odpowiada na następne pytanie. */
.fx-stage.is-settling .fx-screen {
    pointer-events: none;
}

.fx-q__title:focus {
    outline: none;
}

/* Komunikat błędu w stopce stoi nad przyciskiem, a nie pod nim. */
.fx-q__foot .fx-error {
    margin-bottom: 10px;
}

.fx-input.is-invalid,
.fx-addr.is-invalid,
.fx-phone.is-invalid {
    border-color: #ff8a7a;
    box-shadow: 0 0 0 4px rgba(255, 106, 90, .28);
}

/* Cały rezerwowany adres pod polem (w wąskim polu długa nazwa się nie mieści). */
.fx-addr__full {
    min-height: 1.35em;
    margin: -6px 2px 0;
    color: #fff;
    font-size: .98rem;
    font-weight: 700;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.fx-tile.is-busy,
.fx-row.is-busy {
    position: relative;
    opacity: 1;
    pointer-events: none;
}

.fx-tile.is-busy::after,
.fx-row.is-busy::after {
    content: '';
    position: absolute;
    top: 10px;
    right: 10px;
    width: 18px;
    height: 18px;
    border: 3px solid rgba(15, 27, 61, .25);
    border-top-color: var(--ink);
    border-radius: 50%;
    animation: fx-spin .7s linear infinite;
}

.fx-row.is-busy::after {
    top: 50%;
    right: 18px;
    margin-top: -9px;
}

/* Zaznaczony szybki wybór miasta wygląda jak inne zaznaczone odpowiedzi, a wyszarzona odpowiedź nadal się czyta. */
.fx-chip.is-full {
    opacity: .6;
}

/* Ciemne kolory strony (granat, grafit) odcinają się od granatowego tła obwódką. */
.fx-swatch i {
    box-shadow: inset 0 0 0 3px rgba(255, 255, 255, .22), 0 0 0 2px rgba(255, 255, 255, .4);
}

/* Na jasnych powierzchniach (karta płatności, pasek płatności) obwódka fokusu jest granatowa, żeby było ją widać. */
.fx-pay :focus-visible,
.fx-paybar :focus-visible,
.fx-gets :focus-visible,
.fx-faq :focus-visible {
    outline-color: var(--ink);
}

/* Strona po płatności: wejście do panelu na szerokim ekranie, na telefonie informacja, gdzie go otworzyć. */
.fx-thanks__narrow {
    display: none;
    margin: 0;
    color: var(--muted);
    font-size: .98rem;
    line-height: 1.45;
    text-align: center;
}

@media (max-width: 899px) {
    .fx-thanks__wide {
        display: none;
    }

    .fx-thanks__narrow {
        display: block;
    }
}

/* Bęben z podglądami: kąt nie jest dziedziczony, więc obrót nie przelicza stylów każdej karty co klatkę. */
@property --angle {
    syntax: '<angle>';
    inherits: false;
    initial-value: 0deg;
}

/* ───────── Ruch ───────── */

@keyframes fx-in {
    from { opacity: 0; transform: translateX(26px); }
    to { opacity: 1; transform: none; }
}

@keyframes fx-in-back {
    from { opacity: 0; transform: translateX(-26px); }
    to { opacity: 1; transform: none; }
}

@keyframes fx-out {
    to { opacity: 0; transform: translateX(-18px); }
}

@keyframes fx-out-back {
    to { opacity: 0; transform: translateX(18px); }
}

@keyframes fx-pop {
    0% { transform: scale(.94); }
    60% { transform: scale(1.04); }
    100% { transform: none; }
}

@keyframes fx-nudge {
    0%, 100% { transform: none; }
    40% { transform: translateY(-5px); }
}

@keyframes fx-shake {
    0%, 100% { transform: none; }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

@keyframes fx-note {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: none; }
}

@keyframes fx-ghost {
    0%, 100% { opacity: .55; }
    50% { opacity: .25; }
}

@keyframes fx-pulse {
    0%, 100% { opacity: 1; transform: none; }
    50% { opacity: .45; transform: scale(.8); }
}

@keyframes fx-spin {
    to { transform: rotate(360deg); }
}

@keyframes fx-drum-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fx-swipe-in {
    from { opacity: 0; transform: translateX(var(--from)); }
    to { opacity: 1; transform: none; }
}

@keyframes fx-swipe-nudge {
    0%, 60%, 100% { transform: none; }
    74% { transform: translateX(var(--nudge)); }
    87% { transform: translateX(calc(var(--nudge) * -.3)); }
}

@keyframes fx-reveal {
    from { opacity: 0; transform: translateY(24px) scale(.94); }
    to { opacity: 1; transform: none; }
}

@keyframes fx-shine {
    to { transform: translateX(120%); }
}

@keyframes fx-letter {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fx-lock {
    0% { color: #9aa3bf; transform: none; }
    55% { color: #1a7a43; transform: scale(1.3); }
    100% { color: #1a7a43; transform: none; }
}

@keyframes fx-zoom-in {
    from { opacity: 0; transform: scale(.7); }
    to { opacity: 1; transform: none; }
}

@keyframes fx-hint-in {
    from { opacity: 0; transform: translateY(18px) scale(.9); }
    to { opacity: 1; transform: none; }
}

@keyframes fx-hint-bob {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

@keyframes fx-hint-ring {
    0% { box-shadow: 0 0 0 0 rgba(255, 201, 40, .75); }
    70%, 100% { box-shadow: 0 0 0 16px rgba(255, 201, 40, 0); }
}

@keyframes fx-star-seek {
    0%, 100% { opacity: .14; transform: scale(.9); }
    40% { opacity: 1; transform: scale(1.12); }
}

@keyframes fx-star-in {
    0% { opacity: 0; transform: scale(0) rotate(-40deg); }
    60% { opacity: 1; transform: scale(1.3) rotate(8deg); }
    100% { opacity: 1; transform: none; }
}

@keyframes fx-star-cheer {
    0% { transform: none; }
    35% { transform: scale(1.5) rotate(-14deg); }
    70% { transform: scale(.94) rotate(6deg); }
    100% { transform: none; }
}

@keyframes fx-pin-drop {
    0% { opacity: 0; transform: translateY(-34px) scale(.6); }
    60% { opacity: 1; transform: translateY(3px) scale(1.06); }
    100% { opacity: 1; transform: none; }
}

@keyframes fx-burst {
    0% { opacity: 1; transform: scale(.2); }
    100% { opacity: 0; transform: scale(1.45); }
}

@keyframes fx-rv-glow {
    0% { box-shadow: 0 20px 46px rgba(3, 8, 24, .5), 0 0 0 0 rgba(255, 201, 40, .85); }
    100% { box-shadow: 0 20px 46px rgba(3, 8, 24, .5), 0 0 0 22px rgba(255, 201, 40, 0); }
}

/* Węższe telefony: zachęta nad podglądem o włos niższa, żeby nie zasłaniała przycisku „Zadzwoń” strony klienta. */
@media (max-width: 380px) {
    .fx-site__hint {
        gap: 10px;
        min-height: 52px;
        padding: 6px 20px 6px 7px;
    }

    .fx-site__hint i {
        width: 40px;
        height: 40px;
    }
}

/* Wąskie telefony: kafle branż w dwóch kolumnach, kod BLIK nad przyciskiem. */
@media (max-width: 339px) {
    .fx-tiles {
        grid-template-columns: repeat(2, 1fr);
    }

    .fx-blik__row {
        grid-template-columns: 1fr;
    }
}

/* Niższe ekrany: wszystkie branże i „Nie ma mojej branży” mieszczą się bez przewijania. */
@media (max-height: 720px) {
    .fx-tiles {
        gap: 8px;
    }

    .fx-tile {
        min-height: 80px;
        padding: 8px 6px;
        gap: 6px;
    }

    .fx .fx-tile svg {
        width: 26px;
        height: 26px;
    }

    .fx-q__head {
        margin-bottom: 16px;
    }
}

/* Niskie ekrany (przeglądarka w aplikacji Facebooka): mniej powietrza, żeby przycisk startu był widoczny od razu. */
@media (max-height: 640px) {
    .fx-welcome__title {
        font-size: clamp(1.7rem, 8vw, 2.2rem);
    }

    .fx-tag strong {
        font-size: 2.3rem;
    }

    .fx-welcome__lead {
        margin-bottom: 8px;
        font-size: 1rem;
    }

    .fx-rotunda-shell {
        min-height: 150px;
    }

    .fx-swipe {
        height: 84px;
        margin-top: -42px;
    }

    .fx-swipe__glass {
        height: 70px;
    }
}

/* Gotowa strona na bardzo niskim ekranie (320x568): mniej powietrza nad podglądem, żeby przycisk „Zadzwoń”
   na stronie klienta było widać nad paskiem płatności. */
@media (max-height: 600px) {
    .fx-ready {
        gap: 12px;
        padding-top: calc(12px + env(safe-area-inset-top));
    }

    .fx-ready__done {
        margin-bottom: 6px;
        padding: 3px 10px 3px 6px;
        font-size: .84rem;
    }

    .fx-ready .fx-q__title {
        margin-bottom: 4px;
        font-size: 1.35rem;
    }

    .fx-ready .fx-q__hint {
        font-size: .86rem;
        line-height: 1.35;
    }

    .fx-site__tab {
        min-height: 46px;
        padding-top: 5px;
        padding-bottom: 5px;
    }
}

/* Bardzo niskie ekrany (360x560): korzyści w jednej linii, kafle branż niższe, przycisk ponowienia budowy widoczny. */
@media (max-height: 600px) {
    .fx-ticks {
        gap: 4px 12px;
        font-size: .82rem;
    }

    .fx-q__head {
        margin-bottom: 12px;
    }

    .fx-q__title {
        font-size: 1.55rem;
    }

    .fx-q__hint {
        font-size: .95rem;
    }

    .fx-tiles {
        gap: 6px;
    }

    .fx-tile {
        min-height: 62px;
        padding: 6px;
        gap: 4px;
        font-size: .88rem;
    }

    .fx .fx-tile svg {
        width: 20px;
        height: 20px;
    }

    .fx-other {
        margin-top: 0;
    }

    .fx-building__ring {
        width: 132px;
        height: 132px;
    }
}

/* Ekran opinii na niskim telefonie: mniejsza karta i gwiazdki, żeby pytanie, karta i przyciski mieściły się naraz. */
@media (max-height: 700px) {
    .fx-reviews .fx-q__title {
        font-size: clamp(1.45rem, 6.4vw, 1.9rem);
    }

    .fx-rv {
        gap: 10px;
        padding: 16px 16px 14px;
    }

    .fx .fx-stars svg {
        width: 34px;
        height: 34px;
    }

    .fx-rv__pin {
        padding-top: 12px;
    }

    .fx-reviews .fx-q__hint {
        font-size: .96rem;
        line-height: 1.4;
    }

    .fx-rv__google {
        min-height: 44px;
        padding: 8px 18px;
        font-size: .98rem;
    }

    .fx-rv__demo {
        gap: 6px;
    }

    .fx-reviews .fx-input {
        min-height: 58px;
    }

    .fx-rv__foot {
        gap: 8px;
        padding-top: 18px;
    }

    .fx-rv__foot .fx-btn {
        min-height: 52px;
    }

    .fx-row--pin {
        min-height: 60px;
        padding: 9px 14px;
    }
}

/* Niski ekran (telefon z paskami przeglądarki): zachęta nad podglądem jest niższa, a nagłówek ekranu gotowej
   strony ciaśniejszy, żeby nad zachętą zmieścił się przycisk „Zadzwoń” strony klienta. */
@media (max-height: 720px) {
    .fx-ready {
        gap: 14px;
        padding-top: calc(14px + env(safe-area-inset-top));
    }

    .fx-ready__done {
        margin-bottom: 6px;
    }

    .fx-site__hint {
        gap: 10px;
        min-height: 50px;
        padding: 4px 20px 4px 6px;
    }

    .fx-site__hint i {
        width: 40px;
        height: 40px;
    }
}

/* Ekran 360x640: podpis pod przyciskiem-wzorem ustępuje miejsca polu z nazwą pinezki. */
@media (max-height: 650px) {
    .fx-rv__demo small {
        display: none;
    }
}

@media (max-height: 600px) {
    .fx-screen.fx-reviews {
        padding-top: 10px;
    }

    .fx-reviews .fx-q__title {
        font-size: 1.3rem;
    }

    .fx-reviews .fx-q__hint {
        font-size: .9rem;
    }

    .fx-rv {
        gap: 8px;
        padding: 12px 14px;
        border-radius: 20px;
    }

    .fx-stars__row {
        gap: 4px;
    }

    .fx .fx-stars svg {
        width: 24px;
        height: 24px;
    }

    .fx-rv__pin {
        gap: 10px;
        padding-top: 10px;
    }

    .fx-rv__mark {
        width: 38px;
        height: 38px;
    }

    .fx-rv__text b {
        font-size: 1.08rem;
    }

    .fx-rv__text small {
        font-size: .88rem;
    }

    .fx .fx-rv__other {
        margin: -2px 0 -10px;
        font-size: .88rem;
    }

    .fx-rv__google {
        min-height: 40px;
        padding: 6px 16px;
        font-size: .92rem;
    }

    .fx-reviews .fx-input {
        min-height: 52px;
        font-size: 1.08rem;
    }

    .fx-rv__foot {
        gap: 6px;
        padding-top: 14px;
        padding-bottom: calc(12px + env(safe-area-inset-bottom));
    }

    .fx-rv__foot .fx-btn {
        min-height: 48px;
        font-size: 1.04rem;
    }

    .fx-site__hint {
        min-height: 54px;
    }

    .fx-site__hint i {
        width: 38px;
        height: 38px;
    }
}

@media (min-width: 700px) {
    .fx-welcome__copy,
    .fx-welcome__cta {
        text-align: center;
    }

    .fx-brand img {
        margin: 0 auto;
    }

    .fx-tag {
        justify-content: center;
    }

    .fx-rotunda-shell {
        max-height: 440px;
    }

    .fx-screen:not(.fx-welcome):not(.fx-ready) {
        padding-top: 34px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .fx *,
    .fx *::before,
    .fx *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }

    /* Adres na karcie podglądu i dopisek pod nim są od razu, bez czekania na kolejne litery. */
    .fx-site.is-typed .fx-site__address > span > span,
    .fx-site.is-typed .fx-site__tab svg,
    .fx-site.is-typed .fx-site__domain > *,
    .fx-ready.is-active .fx-site__zoom {
        animation-delay: 0s !important;
    }

    /* Bez ruchu gwiazdki w trakcie szukania po prostu świecą (animacja kończyłaby się na prawie niewidocznych). */
    .fx-reviews[data-view="search"] .fx-stars__gold svg {
        animation: none;
    }
}

/* ───────── Ekran z funkcją dla rodzaju firmy ─────────
   Podgląd to kawałek strony gościa: jasna karta z paskiem adresu, w niej przykładowa treść funkcji.
   Jedyny ruch: po chwili (klasa is-played) podgląd pokazuje, co funkcja robi (wybrany termin, dodane danie). */

.fx-feat .fx-q__head {
    margin-bottom: 14px;
}

.fx-feat .fx-q__title {
    margin-bottom: 6px;
}

.fx-feat .fx-q__title {
    font-size: clamp(1.5rem, 6.5vw, 1.95rem);
}

.fx-feat .fx-q__hint {
    font-size: .98rem;
}

/* Kłódka: pałąk podnosi się i odchyla, gdy ekran dostaje klasę is-open. */
.fx-lock {
    display: inline-grid;
    place-items: center;
}

.fx-lock svg {
    width: 100%;
    height: 100%;
    overflow: visible;
}

.fx-lock__bow {
    fill: none;
    stroke: currentColor;
    stroke-width: 2.4;
    stroke-linecap: round;
    transform-box: view-box;
    transform-origin: 16px 11px;
    transition: transform .5s cubic-bezier(.3, 1.6, .5, 1);
}

.fx-lock__body {
    fill: currentColor;
}

.fx-feat.is-open .fx-lock__bow {
    transform: translateY(-2.5px) rotate(24deg);
}

/* Plakietka nad tytułem: zamknięta jest przygaszona, po otwarciu robi się żółta. */
.fx-unlock {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    gap: 8px;
    margin: 0 0 10px;
    padding: 6px 13px 6px 9px;
    border-radius: 999px;
    background: var(--navy-2);
    color: var(--muted);
    font-size: .88rem;
    font-weight: 700;
    line-height: 1.2;
    box-shadow: inset 0 0 0 2px var(--navy-3);
    transition: background .35s .12s, color .35s .12s, box-shadow .35s .12s, transform .5s cubic-bezier(.3, 1.6, .5, 1) .12s;
}

.fx-unlock .fx-lock {
    width: 20px;
    height: 20px;
}

/* Słowo „odblokowana” dojeżdża, gdy kłódka się otwiera. */
.fx-unlock__on {
    display: inline-block;
    max-width: 0;
    overflow: hidden;
    font-weight: inherit;
    opacity: 0;
    vertical-align: bottom;
    white-space: pre;
    transition: max-width .45s var(--ease) .15s, opacity .3s .25s;
}

.fx-feat.is-open .fx-unlock__on {
    max-width: 8em;
    opacity: 1;
}

.fx-feat.is-open .fx-unlock {
    background: var(--sun);
    color: var(--ink);
    box-shadow: 0 3px 0 var(--sun-deep);
    transform: translateY(-1px);
}

/* Podgląd funkcji: zamknięty jest rozmyty pod dużą kłódką, po otwarciu kłódka znika, a podgląd się wyostrza. */
.fx-feat__stage {
    position: relative;
}

.fx-feat__stage .fx-mk {
    filter: blur(5px) saturate(.5);
    opacity: .5;
    transform: scale(.965);
    transition: filter .6s var(--ease) .38s, opacity .5s .38s, transform .6s var(--ease) .38s;
}

.fx-feat.is-open .fx-feat__stage .fx-mk {
    filter: none;
    opacity: 1;
    transform: none;
}

.fx-feat__veil {
    position: absolute;
    top: 50%;
    left: 50%;
    display: grid;
    place-items: center;
    width: 84px;
    height: 84px;
    margin: -42px 0 0 -42px;
    border-radius: 50%;
    background: var(--sun);
    color: var(--ink);
    box-shadow: 0 6px 0 var(--sun-deep), 0 18px 34px rgba(4, 9, 26, .5);
    pointer-events: none;
    transition: opacity .3s .5s, transform .45s cubic-bezier(.5, -.4, .8, .6) .42s;
}

.fx-feat__veil .fx-lock {
    width: 44px;
    height: 44px;
}

.fx-feat.is-open .fx-feat__veil {
    opacity: 0;
    transform: scale(1.5);
}

@media (prefers-reduced-motion: reduce) {
    .fx-feat .fx-lock__bow,
    .fx-feat .fx-unlock,
    .fx-feat .fx-unlock__on,
    .fx-feat__stage .fx-mk,
    .fx-feat__veil {
        transition: none !important;
    }
}

/* Podgląd nie chowa się pod przyklejonym przyciskiem „Dalej”. */
.fx-feat .fx-q__body {
    padding-bottom: 14px;
}

.fx-mk {
    --mk-line: #e3e7f2;
    --mk-soft: #f3f5fa;
    --mk-mute: #6a7598;
    overflow: hidden;
    border-radius: 22px;
    background: #fff;
    color: var(--ink);
    box-shadow: 0 18px 40px rgba(4, 9, 26, .45);
    font-size: .95rem;
    line-height: 1.25;
}

.fx-mk__bar {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 10px 14px;
    background: var(--mk-soft);
    border-bottom: 1px solid var(--mk-line);
    color: var(--mk-mute);
    font-size: .8rem;
    font-weight: 600;
}

.fx-mk__bar i {
    flex: none;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--ok);
}

.fx-mk__bar span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.fx-mk__body {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 12px 14px 14px;
}

.fx-mk__name {
    margin: 0;
    font: 800 1.18rem/1.1 var(--display);
    letter-spacing: -.01em;
}

.fx-mk__list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Przycisk podglądu: napis akcji zamienia się w potwierdzenie. */
.fx-mk__cta {
    position: relative;
    display: grid;
    place-items: center;
    min-height: 42px;
    border-radius: 13px;
    background: var(--navy);
    color: #fff;
    font-weight: 700;
    transition: background .35s var(--ease);
}

.fx-mk__cta span {
    grid-area: 1 / 1;
    transition: opacity .25s, transform .35s var(--ease);
}

.fx-mk__cta-b {
    opacity: 0;
    transform: translateY(8px);
}

.fx-mk__cta-b::before {
    content: '';
    display: inline-block;
    width: .42em;
    height: .78em;
    margin: 0 .55em .08em 0;
    border: solid currentColor;
    border-width: 0 .17em .17em 0;
    transform: rotate(42deg);
}

.fx-mk.is-played .fx-mk__cta {
    background: #12a36b;
}

.fx-mk.is-played .fx-mk__cta-a {
    opacity: 0;
    transform: translateY(-8px);
}

.fx-mk.is-played .fx-mk__cta-b {
    opacity: 1;
    transform: none;
}

/* Kalendarz terminów */

.fx-mk__chips {
    display: flex;
    gap: 6px;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(to right, #000 82%, transparent);
    mask-image: linear-gradient(to right, #000 82%, transparent);
}

.fx-mk__chips span {
    flex: none;
    max-width: 62%;
    overflow: hidden;
    padding: 7px 12px;
    border-radius: 999px;
    background: var(--mk-soft);
    color: var(--mk-mute);
    font-size: .86rem;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.fx-mk__chips .is-on {
    background: var(--navy);
    color: #fff;
}

.fx-mk__days {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 6px;
}

.fx-mk__days span {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1px;
    padding: 5px 0 6px;
    border-radius: 13px;
    box-shadow: inset 0 0 0 1px var(--mk-line);
}

.fx-mk__days small {
    color: var(--mk-mute);
    font-size: .72rem;
    font-weight: 600;
}

.fx-mk__days b {
    font: 800 1.12rem/1 var(--display);
}

.fx-mk__days .is-on {
    background: #fff6d6;
    box-shadow: inset 0 0 0 2px var(--sun);
}

.fx-mk__times {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
}

.fx-mk__times span {
    padding: 7px 0;
    border-radius: 11px;
    background: var(--mk-soft);
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    text-align: center;
    transition: background .3s, transform .35s var(--ease), box-shadow .3s;
}

.fx-mk__times .is-off {
    background: none;
    color: #b6bdd3;
    text-decoration: line-through;
}

.fx-mk.is-played .fx-mk__times .is-pick {
    background: var(--sun);
    box-shadow: 0 3px 0 var(--sun-deep);
    transform: translateY(-2px);
}

/* Menu z zamawianiem */

.fx-mk__dish {
    display: flex;
    align-items: center;
    gap: 11px;
}

.fx-mk__dish i {
    flex: none;
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: radial-gradient(circle at 50% 54%, #f6c35a 0 30%, #e2572b 31% 44%, #f1e3c4 45% 58%, #f7f1e3 59%);
}

.fx-mk__dish i[data-n="2"] {
    background: radial-gradient(circle at 36% 44%, #fff7e6 0 16%, transparent 17%), radial-gradient(circle at 64% 60%, #fff7e6 0 16%, transparent 17%), radial-gradient(circle at 50% 50%, #f1d9a7 0 52%, #e7ecf5 53%);
}

.fx-mk__dish i[data-n="3"] {
    background: linear-gradient(to top, #ffd95a 0 58%, #fff3bf 59% 66%, #e8f4f1 67%);
}

.fx-mk__dish span {
    display: flex;
    flex: 1;
    flex-direction: column;
    min-width: 0;
}

.fx-mk__dish small {
    color: var(--mk-mute);
    font-weight: 600;
}

.fx-mk__dish em {
    position: relative;
    flex: none;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    box-shadow: inset 0 0 0 2px var(--mk-line);
    transition: background .3s, box-shadow .3s, transform .35s var(--ease);
}

.fx-mk__dish em::before,
.fx-mk__dish em::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 12px;
    height: 2.5px;
    border-radius: 2px;
    background: var(--ink);
    transform: translate(-50%, -50%);
    transition: transform .35s var(--ease), width .3s;
}

.fx-mk__dish em::after {
    transform: translate(-50%, -50%) rotate(90deg);
}

.fx-mk.is-played .fx-mk__dish.is-add em {
    background: var(--sun);
    box-shadow: inset 0 0 0 2px var(--sun);
    transform: scale(1.08);
}

/* Plus zamienia się w ptaszek. */
.fx-mk.is-played .fx-mk__dish.is-add em::before {
    width: 7px;
    transform: translate(-115%, 55%) rotate(45deg);
}

.fx-mk.is-played .fx-mk__dish.is-add em::after {
    transform: translate(-32%, -50%) rotate(-50deg);
}

.fx-mk.is-played .fx-mk__dish:nth-child(2) em,
.fx-mk.is-played .fx-mk__dish:nth-child(2) em::before,
.fx-mk.is-played .fx-mk__dish:nth-child(2) em::after {
    transition-delay: .25s;
}

.fx-mk__cart {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 8px 8px 8px 14px;
    border-radius: 14px;
    background: var(--navy);
    color: #fff;
    font-weight: 600;
    opacity: .28;
    transform: translateY(6px);
    transition: opacity .35s .45s, transform .45s var(--ease) .45s;
}

.fx-mk__cart b {
    padding: 8px 16px;
    border-radius: 10px;
    background: var(--sun);
    color: var(--ink);
}

.fx-mk.is-played .fx-mk__cart {
    opacity: 1;
    transform: none;
}

/* Realizacje przed i po: ta sama łazienka w dwóch wersjach, suwak odsłania nową. */

.fx-mk__ba {
    --cut: 78%;
    position: relative;
    height: 168px;
    overflow: hidden;
    border-radius: 16px;
    transition: --cut 1.1s var(--ease);
}

@property --cut {
    syntax: '<percentage>';
    inherits: true;
    initial-value: 78%;
}

.fx-mk.is-played .fx-mk__ba {
    --cut: 38%;
}

.fx-mk__room {
    --wall: #fbfcff;
    --grout: #dfe5f1;
    --floor: #23346a;
    --tub: #fff;
    --trim: #ffc928;
    position: absolute;
    inset: 0;
}

.fx-mk__room.is-before {
    --wall: #cdbf9e;
    --grout: #a99876;
    --floor: #7a6a52;
    --tub: #e3d9bf;
    --trim: #8d7d5f;
    clip-path: inset(0 calc(100% - var(--cut)) 0 0);
}

.fx-mk__room i {
    position: absolute;
}

.fx-mk__wall {
    inset: 0 0 26% 0;
    background:
        linear-gradient(var(--grout), var(--grout)) 0 0 / 100% 1px repeat-y,
        repeating-linear-gradient(to right, var(--grout) 0 1px, transparent 1px 34px),
        repeating-linear-gradient(to bottom, var(--grout) 0 1px, transparent 1px 22px),
        var(--wall);
}

.fx-mk__room.is-before .fx-mk__wall {
    background:
        radial-gradient(60px 34px at 22% 30%, rgba(90, 70, 40, .35), transparent 70%),
        radial-gradient(70px 40px at 74% 62%, rgba(90, 70, 40, .28), transparent 70%),
        repeating-linear-gradient(to right, var(--grout) 0 1px, transparent 1px 34px),
        repeating-linear-gradient(to bottom, var(--grout) 0 1px, transparent 1px 22px),
        var(--wall);
}

.fx-mk__floor {
    inset: 74% 0 0 0;
    background: var(--floor);
}

.fx-mk__mirror {
    top: 14%;
    left: 12%;
    width: 21%;
    aspect-ratio: 1;
    border-radius: 50%;
    background: linear-gradient(135deg, #dff1ff, #b9d6f2);
    box-shadow: 0 0 0 4px var(--trim);
}

.fx-mk__room.is-before .fx-mk__mirror {
    border-radius: 6px;
    background: linear-gradient(135deg, #c9cfc4, #a7ad9f);
}

.fx-mk__tub {
    right: 8%;
    bottom: 18%;
    width: 50%;
    height: 30%;
    border-radius: 10px 10px 34px 34px;
    background: var(--tub);
    box-shadow: inset 0 7px 0 var(--trim), 0 3px 0 rgba(15, 27, 61, .14);
}

.fx-mk__tag {
    position: absolute;
    top: 9px;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(15, 27, 61, .82);
    color: #fff;
    font-size: .76rem;
    font-weight: 700;
}

.fx-mk__tag.is-before {
    left: 9px;
}

.fx-mk__tag.is-after {
    right: 9px;
    background: var(--sun);
    color: var(--ink);
}

.fx-mk__handle {
    position: absolute;
    top: 0;
    bottom: 0;
    left: var(--cut);
    width: 3px;
    margin-left: -1.5px;
    background: #fff;
    box-shadow: 0 0 0 1px rgba(15, 27, 61, .18);
}

.fx-mk__handle::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background:
        linear-gradient(var(--ink), var(--ink)) calc(50% - 4px) 50% / 2.5px 12px no-repeat,
        linear-gradient(var(--ink), var(--ink)) calc(50% + 4px) 50% / 2.5px 12px no-repeat,
        #fff;
    box-shadow: 0 3px 10px rgba(15, 27, 61, .35);
    transform: translate(-50%, -50%);
}

.fx-mk__cap {
    margin: 0;
    color: var(--mk-mute);
    font-weight: 600;
}

/* Zapisy na zajęcia */

.fx-mk__class {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 8px 12px;
    border-radius: 14px;
    box-shadow: inset 0 0 0 1px var(--mk-line);
    transition: background .3s, box-shadow .3s;
}

.fx-mk__class span {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.fx-mk__class small {
    color: var(--mk-mute);
    font-weight: 600;
}

.fx-mk__class em {
    flex: none;
    padding: 5px 10px;
    border-radius: 999px;
    background: var(--mk-soft);
    color: var(--mk-mute);
    font-size: .8rem;
    font-style: normal;
    font-weight: 700;
}

.fx-mk.is-played .fx-mk__class.is-pick {
    background: #fff6d6;
    box-shadow: inset 0 0 0 2px var(--sun);
}

/* Portfolio projektów */

.fx-mk__works {
    display: grid;
    grid-template-columns: 1.25fr 1fr;
    grid-template-rows: auto auto;
    gap: 9px;
}

.fx-mk__work {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
    font-size: .86rem;
    transition: transform .5s var(--ease);
}

.fx-mk__work[data-n="1"] {
    grid-row: 1 / 3;
}

.fx-mk__work i {
    position: relative;
    display: flex;
    flex: 1;
    flex-direction: column;
    justify-content: flex-end;
    gap: 5px;
    min-height: 62px;
    padding: 10px;
    border-radius: 13px;
    background: linear-gradient(150deg, #1a2a57, #3b55a8);
}

.fx-mk__work[data-n="2"] i {
    background: linear-gradient(150deg, #ffc928, #ff9d3c);
}

.fx-mk__work[data-n="3"] i {
    background: linear-gradient(150deg, #12a36b, #46e0a0);
}

.fx-mk__work u {
    height: 5px;
    border-radius: 3px;
    background: rgba(255, 255, 255, .85);
}

.fx-mk__work u:nth-child(1) {
    width: 62%;
    height: 9px;
}

.fx-mk__work u:nth-child(2) {
    width: 84%;
    opacity: .6;
}

.fx-mk__work u:nth-child(3) {
    width: 46%;
    opacity: .6;
}

.fx-mk__work b {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.fx-mk.is-played .fx-mk__work[data-n="1"] {
    transform: translateY(-3px);
}

/* Kalendarz pobytów */

.fx-mk__month {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin: 0;
    font-weight: 700;
    text-transform: capitalize;
}

.fx-mk__month span {
    color: var(--mk-mute);
    font-size: .86rem;
    font-weight: 600;
    text-transform: none;
}

.fx-mk__grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    row-gap: 3px;
    text-align: center;
    font-variant-numeric: tabular-nums;
}

.fx-mk__grid small {
    padding-bottom: 3px;
    color: var(--mk-mute);
    font-size: .72rem;
    font-weight: 700;
}

.fx-mk__grid span {
    padding: 4px 0;
    font-weight: 600;
    transition: background .35s, color .35s;
}

.fx-mk__grid .is-off {
    color: #b6bdd3;
    text-decoration: line-through;
}

.fx-mk.is-played .fx-mk__grid .is-in {
    background: #fff0b8;
}

.fx-mk.is-played .fx-mk__grid .is-from,
.fx-mk.is-played .fx-mk__grid .is-to {
    background: var(--sun);
    font-weight: 800;
}

.fx-mk.is-played .fx-mk__grid .is-from {
    border-radius: 11px 0 0 11px;
}

.fx-mk.is-played .fx-mk__grid .is-to {
    border-radius: 0 11px 11px 0;
}

.fx-mk.is-played .fx-mk__grid .is-in {
    transition-delay: .12s;
}

.fx-mk.is-played .fx-mk__grid .is-to {
    transition-delay: .24s;
}

/* Kalendarz wydarzeń */

.fx-mk__event {
    display: flex;
    align-items: center;
    gap: 11px;
}

.fx-mk__event i {
    display: flex;
    flex: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 13px;
    background: var(--navy);
    color: #fff;
    font-style: normal;
}

.fx-mk__event i b {
    font: 800 1.1rem/1 var(--display);
}

.fx-mk__event i small {
    font-size: .7rem;
    font-weight: 600;
    opacity: .8;
}

.fx-mk__event span {
    flex: 1;
    min-width: 0;
    font-weight: 700;
}

.fx-mk__event em {
    flex: none;
    padding: 6px 11px;
    border-radius: 999px;
    background: var(--sun);
    font-size: .8rem;
    font-style: normal;
    font-weight: 700;
    transition: background .35s, color .35s, box-shadow .35s, transform .4s var(--ease);
}

.fx-mk__event.is-off span {
    color: var(--mk-mute);
}

.fx-mk__event.is-off em {
    background: var(--mk-soft);
    color: var(--mk-mute);
}

.fx-mk__event.is-free i {
    background: #fff;
    color: var(--ink);
    box-shadow: inset 0 0 0 2px var(--mk-line);
}

.fx-mk__event.is-free em {
    background: none;
    box-shadow: inset 0 0 0 2px var(--navy);
}

.fx-mk.is-played .fx-mk__event.is-free em {
    background: var(--navy);
    color: #fff;
    transform: scale(1.06);
}

/* Formularz wyceny */

.fx-mk__field {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 8px 12px;
    border-radius: 13px;
    box-shadow: inset 0 0 0 1px var(--mk-line);
}

.fx-mk__field small {
    color: var(--mk-mute);
    font-size: .76rem;
    font-weight: 600;
}

@media (prefers-reduced-motion: reduce) {
    .fx-mk *,
    .fx-mk__ba {
        transition: none !important;
    }
}

/* ───────── Darmowy wariant (wejście ze strony głównej): formularz konta w miejscu płatności ───────── */

.fx-acct {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.fx-acct__lead {
    margin: 0 0 4px;
    font-weight: 700;
    font-size: 1.08rem;
}

.fx-acct .fx-label {
    margin-top: 4px;
}

.fx-acct .fx-btn {
    margin-top: 8px;
}

/* Pola na jasnej karcie: jasne tło i wyraźna ramka (pola pytań lejka są projektowane pod granatowe tło). */
.fx-acct .fx-input {
    background: #f3f5fa;
    color: var(--ink);
    box-shadow: inset 0 0 0 2px #cfd6e8;
}

.fx-acct .fx-input::placeholder {
    color: #7c87a8;
}

.fx-acct .fx-input:focus {
    background: #fff;
    box-shadow: inset 0 0 0 3px var(--navy);
    outline: none;
}

/* Przycisk „Kontynuuj z Google” w formularzu konta: biały z kolorowym znakiem, zgodnie z wytycznymi Google. */
.fx-google {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 60px;
    padding: 0 18px;
    border: 2px solid #cfd6e8;
    border-radius: 18px;
    background: #fff;
    color: #1f1f1f;
    font: 700 1.1rem/1.2 var(--body);
    text-decoration: none;
}

.fx-google:active {
    background: #f3f5fa;
}

.fx-google[hidden],
.fx-acct__or[hidden] {
    display: none;
}

.fx-acct__or {
    margin: 6px 0 0;
}

.fx-paid__next {
    margin: 12px 0 18px;
    color: var(--muted, #aab4d6);
    text-align: center;
}

/* ═════════ „Start w Panelu Szefa” (/panel-szefa/start): dalszy ciąg lejka po założeniu konta ═════════ */

.os-bar .fx-bar__back.is-off {
    visibility: hidden;
}

.os-bar__status b {
    color: var(--sun);
}

.os-bar__brand {
    flex: none;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .08);
    color: #fff;
    font: 700 .82rem/1 var(--body);
    white-space: nowrap;
}

.os-stage {
    display: block;
}

.os-screen {
    display: none;
    flex-direction: column;
    gap: 18px;
    min-height: calc(100dvh - 92px);
    padding: 8px 20px calc(24px + env(safe-area-inset-bottom));
    max-width: 560px;
    margin: 0 auto;
}

.os-screen.is-active {
    display: flex;
    animation: os-in .28s ease-out;
}

@keyframes os-in {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: none; }
}

.os-screen .fx-q__title:focus {
    outline: none;
}

.os-foot {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    margin-top: auto;
    padding-top: 8px;
}

.os-foot .fx-btn {
    width: 100%;
}

.os-count {
    margin: 0 0 8px;
    color: var(--sun);
    font: 700 .9rem/1 var(--body);
}

/* Podgląd własnej strony: karta z paskiem adresu, w środku pomniejszona strona. */
.os-site {
    display: block;
    overflow: hidden;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 14px 34px rgba(0, 0, 0, .35);
    text-decoration: none;
}

.os-site__bar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 14px;
    background: #eef1f8;
    color: #33406b;
    font: 600 .82rem/1.2 var(--body);
}

.os-site__bar i {
    flex: none;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #22b573;
}

.os-site__bar b {
    overflow: hidden;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.os-site__view {
    display: block;
    position: relative;
    height: 230px;
    overflow: hidden;
    background: #f3f5fa;
}

/* Podgląd po zapisaniu kroku bierze całą wolną wysokość ekranu: zmiana ma być dobrze widoczna. */
.os-saved .os-site {
    display: flex;
    flex: 1;
    flex-direction: column;
    min-height: 340px;
}

.os-site--small .os-site__view {
    flex: 1;
    height: auto;
    min-height: 300px;
}

.os-site__bar em {
    flex: none;
    margin-left: auto;
    padding: 4px 9px;
    border-radius: 999px;
    background: var(--sun);
    color: var(--ink);
    font: 700 .74rem/1 var(--body);
    white-space: nowrap;
}

.os-site__bar em[hidden] {
    display: none;
}

.os-site__view iframe {
    display: block;
    border: 0;
    transform-origin: 0 0;
    /* Ramka nie przechwytuje przewijania ani dotknięć: to podgląd, nie druga strona w stronie. */
    pointer-events: none;
}

/* Lista kroków */
.os-steps {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.os-step {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    padding: 14px 16px;
    border: 2px solid transparent;
    border-radius: 18px;
    background: #1a2955;
    color: #fff;
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.os-step:active {
    transform: scale(.985);
}

.os-step__icon {
    display: grid;
    flex: none;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: rgba(255, 201, 40, .14);
    color: var(--sun);
}

.os-step__icon svg,
.os-step__state svg,
.os-saved__mark svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.os-step__text {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.os-step__text b {
    font: 700 1.05rem/1.2 var(--body);
}

.os-step__text small {
    overflow: hidden;
    color: var(--muted);
    font-size: .88rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.os-step__state {
    display: grid;
    flex: none;
    place-items: center;
    width: 30px;
    height: 30px;
    border: 2px solid #44538a;
    border-radius: 50%;
    color: transparent;
}

.os-step.is-done {
    background: #14234d;
}

.os-step.is-done .os-step__state {
    border-color: #22b573;
    background: #22b573;
    color: #fff;
}

.os-step.is-done .os-step__icon {
    background: rgba(34, 181, 115, .16);
    color: #4fd79a;
}

/* Pola kroków */
.os-form {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 12px;
}

.os-form #osFields {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.os-form .fx-label {
    margin-top: 6px;
}

.os-choices {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.os-choice {
    padding: 18px;
    border: 2px solid transparent;
    border-radius: 18px;
    background: #1a2955;
    color: #fff;
    font: 600 1.08rem/1.25 var(--body);
    text-align: left;
    cursor: pointer;
}

.os-choice.is-selected {
    border-color: var(--sun);
    background: #22346b;
}

/* Potwierdzenie po zapisaniu */
.os-saved {
    align-items: stretch;
    text-align: center;
}

.os-saved__mark {
    display: grid;
    place-items: center;
    width: 64px;
    height: 64px;
    margin: 12px auto 0;
    border-radius: 50%;
    background: #22b573;
    color: #fff;
}

.os-saved.is-active .os-saved__mark {
    animation: os-pop .45s cubic-bezier(.2, 1.4, .4, 1);
}

@keyframes os-pop {
    from { transform: scale(.4); opacity: 0; }
    to { transform: none; opacity: 1; }
}

.os-saved__mark svg {
    width: 34px;
    height: 34px;
    stroke-width: 2.6;
}

.os-saved__gain {
    margin: -6px 0 0;
    color: var(--sun);
    font: 700 1.05rem/1.3 var(--body);
}

/* Koniec */
.os-link {
    margin: 0;
    padding: 16px 18px;
    border: 2px dashed #44538a;
    border-radius: 18px;
    color: #fff;
    font: 700 1.1rem/1.3 var(--body);
    text-align: center;
    overflow-wrap: anywhere;
}

.os-note {
    margin: -6px 0 0;
    color: var(--muted);
    font-size: .9rem;
    text-align: center;
}

@media (prefers-reduced-motion: reduce) {
    .os-screen.is-active,
    .os-saved.is-active .os-saved__mark {
        animation: none;
    }
}

/* Pytanie przed publikacją: karta jak okienko na środku ekranu. */
.os-help {
    justify-content: center;
}

.os-card {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 26px 22px 22px;
    border-radius: 26px;
    background: #fff;
    color: var(--ink);
    box-shadow: 0 24px 60px rgba(0, 0, 0, .45);
    text-align: center;
}

.os-help.is-active .os-card {
    animation: os-pop .4s cubic-bezier(.2, 1.3, .4, 1);
}

.os-card__mark {
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    margin: 0 auto;
    border-radius: 18px;
    background: var(--sun);
    color: var(--ink);
}

.os-card__mark svg {
    width: 30px;
    height: 30px;
    fill: currentColor;
}

.os-card .os-card__title {
    color: var(--ink);
    font-size: 1.55rem;
}

.os-card__text {
    margin: 0;
    color: #4a557d;
    font-size: 1.05rem;
    line-height: 1.45;
}

.os-card .os-foot {
    margin-top: 6px;
}

.os-card .fx-btn--ghost {
    border-color: #cfd6e8;
    background: #f3f5fa;
    color: var(--ink);
}

/* Publikacja: jasna karta z ceną, jak blok płatności w lejku. */
.os-pay {
    padding: 22px 20px;
    border-radius: 24px;
    background: #fff;
    color: var(--ink);
}

.os-pay__price {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin: 0 0 14px;
}

.os-pay__price strong {
    font: 800 2.6rem/1 var(--display);
}

.os-pay__price span {
    color: #4a557d;
    font-weight: 600;
}

.os-pay__list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.os-pay__list li {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding-left: 30px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2322b573' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.500l4.500 4.500L19 7.500'/%3E%3C/svg%3E") no-repeat 0 2px / 20px 20px;
}

.os-pay__list li[hidden] {
    display: none;
}

.os-pay__list b {
    font-weight: 700;
    overflow-wrap: anywhere;
}

.os-pay__list span {
    color: #4a557d;
    font-size: .92rem;
}

.os-pay__note {
    margin: 14px 0 0;
    padding: 10px 12px;
    border-radius: 12px;
    background: #fff4d6;
    color: #5b4300;
    font-size: .92rem;
}

.os-pay .fx-error {
    margin-top: 14px;
}

@media (prefers-reduced-motion: reduce) {
    .os-help.is-active .os-card {
        animation: none;
    }
}
