/* =========================================================
   Activio – oferta dla klubów sportowych
   Style frontu. Zmienne kolorów na górze – łatwe do strojenia.
   ========================================================= */

:root {
    --color-primary: #0f5bd7;
    --color-primary-dark: #0a4aaf;
    --color-accent: #ff6b35;
    --color-text: #1a2332;
    --color-text-muted: #5d6b82;
    --color-bg: #ffffff;
    --color-bg-alt: #f5f7fb;
    --color-border: #e4e8ef;
    --color-surface: #ffffff;
    --shadow-sm: 0 1px 2px rgba(15, 30, 60, 0.04);
    --shadow-md: 0 6px 20px rgba(15, 30, 60, 0.06);
    --shadow-lg: 0 12px 32px rgba(15, 30, 60, 0.10);
    --radius: 12px;
    --radius-lg: 16px;
    --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "Inter", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
    --max-width: 1200px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--font-sans);
    color: var(--color-text);
    background: var(--color-bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    font-size: 16px;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== Header ===== */
.site-header {
    padding: 15px 0;
    border-bottom: 1px solid var(--color-border);
    background: #fff;
    position: sticky;
    top: 0;
    z-index: 10;
    backdrop-filter: saturate(1.1) blur(8px);
    background: rgba(255,255,255,0.92);
}
.site-header .container {
    position: relative;
}
.site-header .logo-link {
    display: block;
    width: fit-content;
    margin: 0 auto;
}
.site-header .logo {
    display: block;
    height: 60px;
    width: auto;
}

/* ===== Hamburger (widoczny poniżej 1280px) ===== */
.nav-toggle {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    padding: 0;
    background: transparent;
    border: 1px solid var(--color-border);
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    transition: background-color 0.15s ease, border-color 0.15s ease;
}
.nav-toggle:hover {
    background: var(--color-bg-alt);
    border-color: var(--color-primary);
}
.nav-toggle-bar {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--color-text);
    border-radius: 2px;
}
@media (min-width: 1280px) {
    .nav-toggle {
        display: none;
    }
}

/* ===== Mobilny drawer ===== */
.mobile-nav {
    position: fixed;
    inset: 0;
    z-index: 100;
}
.mobile-nav[hidden] {
    display: none;
}
.mobile-nav-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(10, 15, 28, 0.45);
    opacity: 0;
    transition: opacity 0.2s ease;
}
.mobile-nav.is-open .mobile-nav-backdrop {
    opacity: 1;
}
.mobile-nav-panel {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: min(320px, 85vw);
    background: #fff;
    box-shadow: var(--shadow-lg);
    transform: translateX(-100%);
    transition: transform 0.22s ease;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}
.mobile-nav.is-open .mobile-nav-panel {
    transform: translateX(0);
}
.mobile-nav-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--color-border);
}
.mobile-nav-title {
    font-weight: 600;
    font-size: 1.05rem;
}
.mobile-nav-close {
    width: 36px;
    height: 36px;
    border: none;
    background: transparent;
    font-size: 1.8rem;
    line-height: 1;
    color: var(--color-text-muted);
    cursor: pointer;
    border-radius: 8px;
}
.mobile-nav-close:hover {
    background: var(--color-bg-alt);
    color: var(--color-text);
}
.mobile-nav ul {
    list-style: none;
    margin: 0;
    padding: 12px 0;
}
.mobile-nav a {
    display: block;
    padding: 10px 20px;
    color: var(--color-text);
    text-decoration: none;
    border-left: 3px solid transparent;
    transition: color 0.15s ease, border-color 0.15s ease, background-color 0.15s ease;
}
.mobile-nav a:hover {
    background: var(--color-bg-alt);
    color: var(--color-primary);
}
.mobile-nav a.is-active {
    color: var(--color-primary);
    border-left-color: var(--color-primary);
    font-weight: 600;
    background: var(--color-bg-alt);
}
.mobile-nav-contact {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid var(--color-border);
}

/* ===== Hero ===== */
.hero {
    padding: 72px 0 56px;
    background: linear-gradient(100deg, #312782 0%, #6a2286 45%, #a13576 80%, #c93a74 100%);
    color: #fff;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: "";
    position: absolute;
    top: 50%;
    left: -80px;
    transform: translateY(-50%) rotate(-20deg);
    width: 420px;
    height: 420px;
    background: url('activio-icon.svg') center / contain no-repeat;
    color: #fff;
    opacity: 0.12;
    pointer-events: none;
}
.hero .container {
    position: relative;
    z-index: 1;
}
.hero h1 {
    margin: 0 0 16px;
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
    color: #fff;
}
.hero-subtitle {
    margin: 0 auto;
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.85);
    max-width: 720px;
}

/* ===== Products (lista: 1 produkt w linii na desktopie) ===== */
.products {
    padding: 48px 0;
}
.products-grid {
    display: flex;
    flex-direction: column;
    gap: 24px;
    max-width: 1000px;
    margin: 0 auto;
}

.product-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: row;
    align-items: stretch;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: var(--shadow-sm);
    scroll-margin-top: 100px;
}

.contact {
    scroll-margin-top: 100px;
}
.product-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.product-gallery {
    flex: 0 0 320px;
    width: 320px;
    align-self: stretch;
    display: flex;
    flex-direction: column;
    background: var(--color-bg-alt);
}
.product-image {
    flex: 1;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 260px;
    /* Pionowy scroll i pinch-zoom zostają natywne, poziomy gest przejmuje JS (swipe). */
    touch-action: pan-y pinch-zoom;
}
.product-image-trigger {
    display: block;
    width: 100%;
    height: 100%;
    padding: 0;
    margin: 0;
    border: 0;
    background: none;
    cursor: zoom-in;
}
.product-image-trigger:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: -4px;
}
.product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    padding: 20px;
    transition: opacity 0.15s ease;
}
.product-image-trigger:hover img {
    opacity: 0.92;
}

.product-thumbs {
    display: flex;
    gap: 6px;
    padding: 8px 10px 10px;
    background: var(--color-bg-alt);
    border-top: 1px solid var(--color-border);
    overflow-x: auto;
    scrollbar-width: thin;
    scrollbar-color: #c5cdda transparent;
}
.product-thumbs::-webkit-scrollbar {
    height: 6px;
}
.product-thumbs::-webkit-scrollbar-track {
    background: transparent;
}
.product-thumbs::-webkit-scrollbar-thumb {
    background: #c5cdda;
    border-radius: 3px;
}
.product-thumbs::-webkit-scrollbar-thumb:hover {
    background: #9aa5b8;
}
.product-thumb {
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    padding: 0;
    background: #fff;
    border: 2px solid transparent;
    border-radius: 6px;
    cursor: pointer;
    overflow: hidden;
    transition: border-color 0.15s ease, transform 0.1s ease;
}
.product-thumb:hover {
    border-color: var(--color-primary);
}
.product-thumb.is-active {
    border-color: var(--color-primary);
}
.product-thumb:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}
.product-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 3px;
    display: block;
}

.product-body {
    padding: 26px 30px;
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0; /* umożliwia skracanie długich słów w tabeli */
}

.product-title {
    margin: 0 0 12px;
    font-size: 1.35rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
    line-height: 1.3;
    letter-spacing: -0.01em;
}
.product-emoji {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.product-desc {
    margin: 0 0 16px;
    color: var(--color-text-muted);
    font-size: 0.98rem;
}

.product-features {
    list-style: none;
    padding: 0;
    margin: 0 0 20px;
}
.product-features li {
    position: relative;
    padding: 4px 0 4px 22px;
    font-size: 0.92rem;
    color: var(--color-text);
}
.product-features li::before {
    content: "";
    position: absolute;
    left: 6px;
    top: 12px;
    width: 6px;
    height: 6px;
    background: var(--color-primary);
    border-radius: 50%;
}

.product-pricing {
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px dashed var(--color-border);
}

.pricing-label {
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 0.92rem;
    color: var(--color-text);
}

.pricing-table-wrap {
    overflow-x: auto;
    margin: 0 -4px;
}

.pricing-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}
.pricing-table th,
.pricing-table td {
    padding: 8px 10px;
    text-align: left;
    border-bottom: 1px solid var(--color-border);
    white-space: nowrap;
}
.pricing-table thead th {
    background: var(--color-bg-alt);
    font-weight: 600;
    color: var(--color-text-muted);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}
.pricing-table tbody tr:last-child td {
    border-bottom: none;
}
.pricing-table tbody td:first-child {
    font-weight: 500;
}

.pricing-custom {
    margin: 6px 0 0;
    padding: 10px 14px;
    background: var(--color-bg-alt);
    border-radius: 8px;
    font-size: 0.92rem;
    color: var(--color-text);
    font-style: italic;
}

/* ===== Why us ===== */
.why-us {
    padding: 56px 0;
    background: var(--color-bg-alt);
}
.why-us h2 {
    text-align: center;
    margin: 0 0 32px;
    font-size: clamp(1.5rem, 3vw, 2rem);
    letter-spacing: -0.01em;
}
.why-us-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 14px;
    max-width: 900px;
    margin: 0 auto;
}
.why-us-list li {
    background: #fff;
    padding: 18px 20px 18px 52px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    position: relative;
    font-weight: 500;
}
.why-us-list li::before {
    content: "✓";
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    background: var(--color-primary);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 700;
}

/* ===== Contact ===== */
.contact {
    padding: 64px 0;
    text-align: center;
}
.contact h2 {
    margin: 0 0 12px;
    font-size: clamp(1.5rem, 3vw, 2rem);
    letter-spacing: -0.01em;
}
.contact-intro {
    margin: 0 auto 32px;
    max-width: 600px;
    color: var(--color-text-muted);
}
.contact-methods {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}
.contact-method {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 24px 32px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    text-decoration: none;
    color: var(--color-text);
    transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
    min-width: 220px;
    box-shadow: var(--shadow-sm);
}
.contact-method:hover {
    border-color: var(--color-primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}
.contact-icon {
    font-size: 1.6rem;
    color: var(--color-primary);
    margin-bottom: 4px;
}
.contact-label {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.contact-value {
    font-weight: 600;
    font-size: 1.05rem;
}

/* ===== Inspiration ===== */
.inspiration {
    padding: 64px 0;
    background: var(--color-bg-alt);
    text-align: center;
}
.inspiration h2 {
    margin: 0 0 12px;
    font-size: clamp(1.5rem, 3vw, 2rem);
    letter-spacing: -0.01em;
}
.inspiration-intro {
    margin: 0 auto 32px;
    max-width: 600px;
    color: var(--color-text-muted);
}
.inspiration-slider {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
}
.inspiration-grid {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 4px 0;
    cursor: grab;
}
.inspiration-grid::-webkit-scrollbar {
    display: none;
}
.inspiration-grid.is-dragging {
    cursor: grabbing;
    scroll-snap-type: none;
    scroll-behavior: auto;
    user-select: none;
}
.inspiration-grid.is-dragging img {
    pointer-events: none;
}
.inspiration-tile {
    flex: 0 0 240px;
    width: 240px;
    aspect-ratio: 1 / 1;
    display: block;
    overflow: hidden;
    border-radius: var(--radius);
    cursor: pointer;
    background: #eee;
    padding: 0;
    border: 0;
    font: inherit;
    color: inherit;
    scroll-snap-align: start;
}
.inspiration-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--color-border);
    background: #fff;
    color: var(--color-text);
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
    z-index: 2;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: background 0.15s ease, transform 0.15s ease;
}
.inspiration-nav:hover {
    background: var(--color-bg-alt);
}
.inspiration-nav:active {
    transform: translateY(-50%) scale(0.96);
}
.inspiration-nav-prev {
    left: -22px;
}
.inspiration-nav-next {
    right: -22px;
}
@media (hover: none) {
    .inspiration-nav {
        display: none;
    }
}
.inspiration-tile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}
.inspiration-tile:hover img {
    transform: scale(1.05);
}

/* ===== Footer ===== */
.site-footer {
    padding: 24px 0;
    border-top: 1px solid var(--color-border);
    text-align: center;
    color: var(--color-text-muted);
    font-size: 0.9rem;
    background: var(--color-bg-alt);
}
.site-footer p {
    margin: 0;
}

/* ===== Responsive ===== */

/* Tablet — węższe zdjęcie i mniejsze paddingi, nadal horyzontalnie */
@media (max-width: 900px) {
    .product-gallery {
        flex: 0 0 240px;
        width: 240px;
    }
    .product-image {
        min-height: 220px;
    }
    .product-body {
        padding: 22px 24px;
    }
    .product-thumb {
        flex: 0 0 44px;
        width: 44px;
        height: 44px;
    }
}

/* Mobile — pionowy stack: zdjęcie na górze, treść pod spodem */
@media (max-width: 720px) {
    .container {
        padding: 0 16px;
    }
    .hero {
        padding: 48px 0 32px;
    }
    .hero::before {
        width: auto;
        height: 120%;
        aspect-ratio: 320 / 245;
        left: -80px;
        opacity: 0.10;
    }
    .products {
        padding: 28px 0;
    }
    .products-grid {
        gap: 18px;
    }
    .product-card {
        flex-direction: column;
    }
    .product-gallery {
        flex: 0 0 auto;
        width: 100%;
    }
    .product-image {
        aspect-ratio: 16 / 10;
        min-height: 0;
    }
    .product-image img {
        padding: 14px;
    }
    .product-thumbs {
        padding: 8px 12px 12px;
    }
    .product-thumb {
        flex: 0 0 48px;
        width: 48px;
        height: 48px;
    }
    .product-body {
        padding: 20px 20px 24px;
    }
    .product-title {
        font-size: 1.2rem;
    }
    .pricing-table th,
    .pricing-table td {
        padding: 7px 8px;
        font-size: 0.82rem;
    }
    .contact-method {
        min-width: 160px;
        padding: 18px 20px;
    }
    .inspiration {
        padding: 40px 0;
    }
    .inspiration-grid {
        gap: 8px;
        padding: 0 16px 12px;
        margin: 0 -16px;
    }
    .inspiration-tile {
        flex: 0 0 180px;
        width: 180px;
    }
}

/* Bardzo wąskie ekrany */
@media (max-width: 400px) {
    .product-body {
        padding: 16px 16px 20px;
    }
    .product-title {
        font-size: 1.1rem;
    }
}

/* ===== Boczne menu nawigacyjne (desktop) =====
   Widoczne dopiero od 1280px, bo na węższych ekranach
   nie zmieści się obok kart produktów. */
.products-nav {
    display: none;
}

@media (min-width: 1280px) {
    .products .container {
        max-width: 1280px;
        display: grid;
        grid-template-columns: 220px minmax(0, 1fr);
        column-gap: 48px;
    }
    .products-grid {
        max-width: none;
        margin: 0;
        min-width: 0;
    }
    .products-nav {
        display: block;
        font-size: 0.92rem;
    }
    .products-nav-inner {
        position: sticky;
        top: 100px;
        max-height: calc(100vh - 120px);
        overflow-y: auto;
        padding: 4px 8px 4px 0;
    }
    .products-nav ul {
        list-style: none;
        margin: 0;
        padding: 0;
    }
    .products-nav li {
        margin: 0;
    }
    .products-nav a {
        display: block;
        padding: 6px 12px;
        color: var(--color-text-muted);
        text-decoration: none;
        border-left: 2px solid transparent;
        border-radius: 0 6px 6px 0;
        line-height: 1.35;
        transition: color 0.15s ease, border-color 0.15s ease, background-color 0.15s ease;
    }
    .products-nav a:hover {
        color: var(--color-primary);
        background: var(--color-bg-alt);
    }
    .products-nav a.is-active {
        color: var(--color-primary);
        border-left-color: var(--color-primary);
        font-weight: 600;
    }
    .products-nav-contact {
        margin-top: 10px;
        padding-top: 10px;
        border-top: 1px solid var(--color-border);
    }
}

/* ===== Lightbox ===== */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(10, 15, 28, 0.92);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s ease;
}
.lightbox[hidden] {
    display: none;
}
.lightbox.is-open {
    opacity: 1;
}
.lightbox-stage {
    flex: 1;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 72px;
    cursor: zoom-out;
}
.lightbox-image {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.55);
    border-radius: 4px;
    cursor: default;
    user-select: none;
    -webkit-user-drag: none;
}
.lightbox-close,
.lightbox-prev,
.lightbox-next {
    position: absolute;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    border: 0;
    border-radius: 999px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s ease, transform 0.1s ease;
    padding: 0;
    line-height: 1;
    font-family: inherit;
}
.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(255, 255, 255, 0.2);
}
.lightbox-close:focus-visible,
.lightbox-prev:focus-visible,
.lightbox-next:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 3px;
}
.lightbox-close {
    top: 16px;
    right: 16px;
    width: 48px;
    height: 48px;
    font-size: 32px;
}
.lightbox-prev,
.lightbox-next {
    top: 50%;
    transform: translateY(-50%);
    width: 52px;
    height: 52px;
    font-size: 40px;
}
.lightbox-prev {
    left: 16px;
}
.lightbox-next {
    right: 16px;
}
.lightbox-prev:hover,
.lightbox-next:hover {
    transform: translateY(-50%) scale(1.05);
}
.lightbox-prev[hidden],
.lightbox-next[hidden],
.lightbox-counter[hidden] {
    display: none;
}
.lightbox-counter {
    position: absolute;
    bottom: 18px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    background: rgba(0, 0, 0, 0.35);
    padding: 6px 14px;
    border-radius: 999px;
    pointer-events: none;
}

@media (max-width: 640px) {
    .lightbox-stage {
        padding: 12px 12px 56px;
    }
    .lightbox-close {
        top: 10px;
        right: 10px;
        width: 42px;
        height: 42px;
        font-size: 28px;
    }
    .lightbox-prev,
    .lightbox-next {
        width: 44px;
        height: 44px;
        font-size: 32px;
    }
    .lightbox-prev { left: 8px; }
    .lightbox-next { right: 8px; }
    .lightbox-counter {
        bottom: 12px;
        font-size: 0.8rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .lightbox,
    .lightbox-prev,
    .lightbox-next,
    .product-image img {
        transition: none;
    }
    .lightbox-prev:hover,
    .lightbox-next:hover {
        transform: translateY(-50%);
    }
}
