/* ==========================================================================
   SPA LUXURY MOBILE – Serwis Telefonów Nowej Generacji
   Hero z kinowym wejściem złotego napisu, Serwis Audio, Galeria Stylizacji (karuzela),
   Konfigurator Napraw i Stylizacji oraz tło stopki.
   Zdjęcia treści idą przez Netlify Image CDN (/.netlify/images); tła sekcji
   są wyłącznie proceduralne (gradienty, aura Jacuzzi).
   ========================================================================== */

:root {
    --nx-neon: #3fc8ff;
    --nx-neon-soft: rgba(63, 200, 255, 0.18);
    --nx-line: rgba(223, 186, 107, 0.22);
    --nx-glass: rgba(18, 18, 22, 0.72);
}

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

#configurator, #stylizacje, #serwis-audio { scroll-margin-top: 16px; }

/* --- Przyciski ----------------------------------------------------------- */
.nx-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 52px;
    padding: 14px 30px;
    border-radius: 999px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    border: 1px solid transparent;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease;
}
.nx-btn::before { content: '['; opacity: 0.55; }
.nx-btn::after { content: ']'; opacity: 0.55; }
.nx-btn--primary {
    color: #0c0c0c;
    background: linear-gradient(135deg, #f3d58d 0%, var(--gold) 45%, var(--gold-dark) 100%);
    box-shadow: 0 10px 30px rgba(223, 186, 107, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.45);
}
.nx-btn--primary:hover,
.nx-btn--primary:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 16px 40px rgba(223, 186, 107, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.2) inset;
}
.nx-btn--ghost {
    color: #fff;
    background: rgba(10, 16, 24, 0.45);
    border-color: rgba(63, 200, 255, 0.55);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    box-shadow: 0 0 22px var(--nx-neon-soft);
}
.nx-btn--ghost:hover,
.nx-btn--ghost:focus-visible {
    transform: translateY(-2px);
    border-color: var(--nx-neon);
    box-shadow: 0 0 34px rgba(63, 200, 255, 0.35);
}
.nx-btn--block { width: 100%; }
.nx-btn:focus-visible { outline: 2px solid var(--nx-neon); outline-offset: 3px; }

/* --- HERO ---------------------------------------------------------------- */
header.nx-hero {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    min-height: min(100svh, 920px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 90px 20px 70px;
    background: #050507;
    border-bottom: 1px solid var(--nx-line);
}
/* Tło hero bez zdjęcia: głęboka czerń i oddychająca aura (krolewski-motyw.css) */
.nx-hero__inner {
    position: relative;
    max-width: 920px;
    margin: 0 auto;
    text-align: center;
}
.nx-hero .logo-container { margin-bottom: 28px; }
.nx-hero .logo-box {
    padding: 12px 28px;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}
.nx-hero .logo-box .sm-tag { font-size: 1.2rem; margin: 2px 0 0; }
.nx-hero__lead {
    max-width: 680px;
    margin: 24px auto 0;
    font-size: clamp(1rem, 2.2vw, 1.15rem);
    font-weight: 300;
    color: #e8e8ec;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.9);
}
.nx-hero__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
    margin-top: 36px;
}
.nx-hero .tagline { margin-top: 38px; font-size: 0.85rem; }
@media (max-width: 560px) {
    header.nx-hero { padding: 70px 18px 56px; min-height: 92svh; }
    .nx-hero__actions { flex-direction: column; align-items: stretch; }
    .nx-btn { padding: 14px 22px; letter-spacing: 1.4px; }
}

/* --- Wspólne sekcji ------------------------------------------------------- */
.nx-section {
    position: relative;
    padding: clamp(64px, 9vw, 110px) 20px;
    border-top: 1px solid rgba(223, 186, 107, 0.1);
}
.nx-head { max-width: 720px; margin: 0 auto 44px; text-align: center; }
.nx-eyebrow {
    display: inline-block;
    font-size: 0.72rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--nx-neon);
    margin-bottom: 14px;
    text-shadow: 0 0 12px rgba(63, 200, 255, 0.5);
}
.nx-title {
    font-family: 'Cinzel', serif;
    font-size: clamp(1.7rem, 4vw, 2.7rem);
    line-height: 1.15;
    color: var(--gold);
    letter-spacing: 1.5px;
    margin-bottom: 16px;
}
.nx-text { color: #c9c9cf; font-size: 1.02rem; }
.nx-center { text-align: center; margin-top: 40px; }
.nx-hidden { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.nx-js .nx-reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.8s ease, transform 0.8s ease; }
.nx-js .nx-reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    .nx-js .nx-reveal { opacity: 1; transform: none; transition: none; }
}

/* --- SERWIS AUDIO -------------------------------------------------------- */
.nx-audio {
    background:
        radial-gradient(circle at 20% 40%, rgba(63, 200, 255, 0.09), transparent 55%),
        linear-gradient(180deg, #0a0a0d 0%, #0c0c0c 100%);
}
.nx-audio__grid {
    max-width: 1140px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: center;
}
.nx-audio__media {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    max-width: 520px;
    margin: 0 auto;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.65), 0 0 60px rgba(63, 200, 255, 0.15);
    border: 1px solid rgba(63, 200, 255, 0.25);
}
.nx-audio__media img { display: block; width: 100%; height: auto; }
.nx-audio__copy { text-align: center; }
.nx-audio__copy .nx-text { margin-bottom: 22px; }
.nx-points { list-style: none; margin: 0 0 32px; padding: 0; display: grid; gap: 10px; }
.nx-points li {
    position: relative;
    padding-left: 26px;
    color: #dcdce2;
    text-align: left;
    display: inline-block;
}
.nx-points li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--nx-neon);
    box-shadow: 0 0 10px var(--nx-neon);
}
@media (min-width: 900px) {
    .nx-audio__grid { grid-template-columns: 1fr 1fr; gap: 70px; }
    .nx-audio__copy { text-align: left; }
    .nx-points li { display: block; }
}

/* --- STYLIZACJE: karuzela (mobile) / siatka (desktop) --------------------- */
.nx-style {
    background:
        radial-gradient(circle at 80% 20%, rgba(223, 186, 107, 0.08), transparent 55%),
        radial-gradient(circle at 10% 90%, rgba(190, 70, 255, 0.07), transparent 50%),
        #0b0b0d;
}
.nx-carousel {
    display: flex;
    gap: 18px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    padding: 6px 10vw 18px;
    margin: 0 -20px;
    scrollbar-width: none;
}
.nx-carousel::-webkit-scrollbar { display: none; }
.nx-carousel:focus-visible { outline: 2px solid var(--nx-neon); outline-offset: 4px; }
.nx-slide {
    position: relative;
    flex: 0 0 80%;
    max-width: 380px;
    scroll-snap-align: center;
    border-radius: 22px;
    overflow: hidden;
    background: #111;
    border: 1px solid rgba(223, 186, 107, 0.2);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
    aspect-ratio: 4 / 5.4;
    transition: transform 0.45s ease, box-shadow 0.45s ease, border-color 0.45s ease;
}
.nx-slide img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}
.nx-slide__caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 70px 22px 22px;
    background: linear-gradient(180deg, transparent 0%, rgba(5, 5, 8, 0.88) 55%, rgba(5, 5, 8, 0.96) 100%);
}
.nx-slide__caption h3 {
    font-family: 'Cinzel', serif;
    color: #fff;
    font-size: 1.25rem;
    letter-spacing: 1px;
    margin-bottom: 4px;
}
.nx-slide__caption p { color: #bdbdc4; font-size: 0.9rem; margin-bottom: 10px; }
.nx-slide__link {
    color: var(--gold);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-decoration: none;
}
.nx-slide__link:hover { color: #fff; }
.nx-dots { display: flex; justify-content: center; gap: 8px; margin-top: 8px; }
.nx-dots i {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.2);
    transition: width 0.3s ease, background 0.3s ease;
}
.nx-dots i.is-active { width: 26px; background: var(--gold); }

@media (min-width: 900px) {
    .nx-carousel {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 26px;
        max-width: 1180px;
        margin: 0 auto;
        padding: 6px 0 0;
        overflow: visible;
    }
    .nx-slide { max-width: none; }
    .nx-slide:hover {
        transform: translateY(-8px);
        border-color: rgba(223, 186, 107, 0.55);
        box-shadow: 0 34px 80px rgba(0, 0, 0, 0.7), 0 0 40px rgba(223, 186, 107, 0.15);
    }
    .nx-slide:hover img { transform: scale(1.05); }
    .nx-dots { display: none; }
}

/* --- KONFIGURATOR -------------------------------------------------------- */
.nx-config {
    background:
        radial-gradient(circle at 50% 0%, rgba(63, 200, 255, 0.07), transparent 55%),
        linear-gradient(180deg, #0c0c0c 0%, #08080a 100%);
}
.nx-config__form {
    max-width: 1140px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    align-items: start;
}
.nx-config__main { display: grid; gap: 20px; }
.nx-step {
    position: relative;
    padding: 28px 22px 24px;
    border-radius: 20px;
    background: var(--nx-glass);
    border: 1px solid rgba(255, 255, 255, 0.07);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.nx-step h3 {
    font-family: 'Cinzel', serif;
    color: #fff;
    font-size: 1.15rem;
    letter-spacing: 1px;
    margin-bottom: 18px;
}
.nx-step__no {
    position: absolute;
    top: 18px;
    right: 22px;
    font-family: 'Cinzel', serif;
    font-size: 1.8rem;
    color: rgba(223, 186, 107, 0.18);
}
.nx-row { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 620px) { .nx-row { grid-template-columns: 1fr 1fr; } }
.nx-field { display: block; margin-bottom: 14px; }
.nx-row .nx-field { margin-bottom: 0; }
.nx-row + .nx-field { margin-top: 14px; }
.nx-field > span {
    display: block;
    font-size: 0.74rem;
    letter-spacing: 1.6px;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 8px;
}
.nx-field select,
.nx-field input,
.nx-field textarea {
    width: 100%;
    padding: 14px 16px;
    font: inherit;
    font-size: 16px; /* brak auto-zoomu na iOS */
    color: #fff;
    background: #0e0e11;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.nx-field select {
    appearance: none;
    -webkit-appearance: none;
    background-image: linear-gradient(45deg, transparent 50%, var(--gold) 50%), linear-gradient(135deg, var(--gold) 50%, transparent 50%);
    background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%;
    background-size: 6px 6px;
    background-repeat: no-repeat;
    padding-right: 40px;
}
.nx-field select:disabled { opacity: 0.5; }
.nx-field textarea { resize: vertical; min-height: 110px; }
.nx-field select:focus,
.nx-field input:focus,
.nx-field textarea:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(223, 186, 107, 0.18);
}

.nx-services { display: grid; grid-template-columns: 1fr; gap: 12px; }
@media (min-width: 620px) { .nx-services { grid-template-columns: 1fr 1fr; } }
.nx-service { position: relative; display: block; cursor: pointer; }
.nx-service input { position: absolute; opacity: 0; pointer-events: none; }
.nx-service__body {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-areas: 'name price' 'desc price';
    gap: 2px 12px;
    align-items: center;
    padding: 16px 18px 16px 50px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: #0f0f12;
    transition: border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease, transform 0.2s ease;
}
.nx-service__body::before {
    content: '';
    position: absolute;
    left: 18px;
    top: 50%;
    width: 20px;
    height: 20px;
    margin-top: -10px;
    border-radius: 6px;
    border: 1.5px solid rgba(223, 186, 107, 0.6);
    transition: background 0.2s ease, box-shadow 0.2s ease;
}
.nx-service__body strong { grid-area: name; color: #fff; font-weight: 600; font-size: 0.95rem; }
.nx-service__body small { grid-area: desc; color: var(--text-muted); font-size: 0.8rem; }
.nx-service__body em { grid-area: price; font-style: normal; color: var(--gold); font-weight: 600; font-size: 0.9rem; white-space: nowrap; }
.nx-service:hover .nx-service__body { border-color: rgba(223, 186, 107, 0.4); }
.nx-service input:focus-visible + .nx-service__body { outline: 2px solid var(--nx-neon); outline-offset: 2px; }
.nx-service input:checked + .nx-service__body {
    border-color: var(--gold);
    background: linear-gradient(135deg, rgba(223, 186, 107, 0.14), rgba(15, 15, 18, 0.9));
    box-shadow: 0 0 26px rgba(223, 186, 107, 0.14);
}
.nx-service input:checked + .nx-service__body::before {
    background: var(--gold) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%230c0c0c' stroke-width='3.5' d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 14px no-repeat;
    box-shadow: 0 0 12px rgba(223, 186, 107, 0.6);
}
.nx-service.is-flash .nx-service__body { animation: nx-flash 1.2s ease; }
@keyframes nx-flash {
    0%, 100% { box-shadow: 0 0 26px rgba(223, 186, 107, 0.14); }
    40% { box-shadow: 0 0 0 4px rgba(63, 200, 255, 0.55), 0 0 40px rgba(63, 200, 255, 0.45); }
}

.nx-summary {
    padding: 28px 24px;
    border-radius: 22px;
    background:
        radial-gradient(circle at 100% 0%, rgba(223, 186, 107, 0.16), transparent 60%),
        linear-gradient(160deg, #15151a 0%, #0b0b0e 100%);
    border: 1px solid rgba(223, 186, 107, 0.35);
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.6), 0 0 50px rgba(223, 186, 107, 0.08);
}
.nx-summary__label {
    font-size: 0.72rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--text-muted);
}
.nx-summary__price {
    font-family: 'Cinzel', serif;
    font-size: clamp(2.6rem, 7vw, 3.4rem);
    line-height: 1.1;
    color: var(--gold);
    margin: 6px 0 4px;
    text-shadow: 0 0 24px rgba(223, 186, 107, 0.35);
    transition: transform 0.25s ease;
}
.nx-summary__price.is-bump { transform: scale(1.06); }
.nx-summary__price small { font-size: 1rem; color: #bbb; letter-spacing: 2px; }
.nx-summary__device { color: #fff; font-weight: 600; margin-bottom: 14px; }
.nx-summary__list {
    list-style: none;
    margin: 0 0 16px;
    padding: 14px 0 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: grid;
    gap: 8px;
}
.nx-summary__list li { display: flex; justify-content: space-between; gap: 12px; font-size: 0.9rem; color: #d6d6dc; }
.nx-summary__list li span:last-child { color: var(--gold); white-space: nowrap; }
.nx-summary__list li.is-empty { color: var(--text-muted); font-style: italic; }
.nx-summary__note { font-size: 0.78rem; color: var(--text-muted); margin-bottom: 20px; }
.nx-summary__error { margin-top: 12px; color: #ff8f8f; font-size: 0.85rem; text-align: center; }

@media (min-width: 960px) {
    .nx-config__form { grid-template-columns: minmax(0, 1fr) 360px; gap: 30px; }
    .nx-summary { position: sticky; top: 24px; }
    .nx-step { padding: 32px 30px 28px; }
}

/* --- STOPKA: przyciemniona szyba nad aurą Jacuzzi ------------------------ */
footer.nx-footer {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    padding-top: clamp(70px, 9vw, 110px);
    background: transparent;
}
footer.nx-footer::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(180deg, #050505 0%, rgba(5, 5, 5, 0.55) 30%, rgba(5, 5, 5, 0.7) 70%, #050505 100%);
}
footer.nx-footer .footer-info {
    padding: 22px;
    border-radius: 18px;
    background: rgba(8, 8, 10, 0.55);
    border: 1px solid rgba(223, 186, 107, 0.12);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

/* Konfigurator – krok 04: dostawa i płatność (radio w stylu kafelków usług) */
.nx-choices { margin-bottom: 14px; }
@media (min-width: 620px) { .nx-choices--pay { grid-template-columns: repeat(3, 1fr); } }
.nx-service--radio .nx-service__body::before { border-radius: 50%; }
.nx-field input.is-invalid { border-color: #e06666; box-shadow: 0 0 0 3px rgba(224, 102, 102, 0.18); }
