/*
 * Biblioteka aplikacji Roma Solutions — publiczny katalog i podstrony.
 * Minimalistyczny styl w duchu App Store w ciemnym motywie ekosystemu Roma
 * (tło #1A1A1A, powierzchnie #202020, czcionka Poppins2 z css/style.css).
 * Akcent aplikacji: zmienna --accent na elemencie głównym.
 *
 * Zasady ruchu:
 * - animacje wejścia są progresywne (bez JS treść jest widoczna),
 * - prefers-reduced-motion wyłącza ruch i przejścia,
 * - odznaki sklepów (App Store) nie są animowane ani modyfikowane.
 */

@font-face {
    font-family: 'Poppins2';
    font-weight: 600 800;
    font-display: swap;
    src: url('/fonts/Poppins-Bold.ttf');
}

@font-face {
    font-family: 'Poppins2b';
    font-weight: 100 900;
    font-display: swap;
    src: url('/fonts/Poppins-Bold.ttf');
}

:root {
    --al-bg: #1a1a1a;
    --al-surface: #212124;
    --al-surface-2: #28282c;
    --al-surface-glass: rgba(255, 255, 255, 0.04);
    --al-line: rgba(255, 255, 255, 0.08);
    --al-line-bright: rgba(255, 255, 255, 0.14);
    --al-text: #f5f5f7;
    --al-muted: #9e9ea3;
    --al-subtle: #7a7a80;
    --al-focus: #2194d8;
    --al-apple-blue: #2194d8;
    --al-apple-blue-hover: #1b7db9;
    --al-radius-lg: 18px;
    --al-radius-sm: 10px;
    --al-max: 1140px;
    --al-ease: cubic-bezier(0.2, 0.8, 0.2, 1);
    --al-font: 'Poppins2', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --al-font-strong: 'Poppins2b', 'Poppins2', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

/* Globalny body z css/style.css to kolumna flex, co zwęża .al-main przy margin: auto. Używamy zwykłego układu. */
.al-body {
    display: block;
    margin: 0;
    background: var(--al-bg);
    color: var(--al-text);
    font-family: var(--al-font);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    overflow-x: clip;
}

/* Globalny css/style.css ustawia nav jako stały pasek 45 px na górze. Treść zaczyna się pod nim. */
.al-main {
    max-width: var(--al-max);
    margin: 0 auto;
    padding: 48px 20px 80px;
}

.al-body :focus-visible {
    outline: 2px solid var(--al-focus);
    outline-offset: 3px;
    border-radius: 8px;
}

section[id] {
    scroll-margin-top: 84px;
}

.al-link,
.al-btn-link {
    color: var(--al-focus);
    text-decoration: none;
    font-weight: 600;
}

.al-link:hover,
.al-btn-link:hover {
    text-decoration: underline;
}

/* Okruszki. Element to <nav>, więc nadpisujemy stały pasek nawigacji z globalnego css/style.css. */
nav.al-crumbs {
    position: relative;
    top: auto;
    left: auto;
    width: auto;
    height: auto;
    min-height: 0;
    max-height: none;
    z-index: auto;
    background: none;
    user-select: auto;
    margin: 0 auto;
    padding: 0;
    font-size: 0.85rem;
    color: var(--al-muted);
}

.al-crumbs ol {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.al-crumbs li + li::before {
    content: '›';
    margin-right: 6px;
    color: var(--al-muted);
}

.al-crumbs a {
    color: var(--al-muted);
    text-decoration: none;
}

.al-crumbs a:hover {
    color: var(--al-text);
    text-decoration: underline;
}

.al-crumbs [aria-current="page"] {
    color: var(--al-text);
}

/* Animacje wejścia (ładowanie strony, bez JS) */
@keyframes al-rise {
    from {
        opacity: 0;
        transform: translateY(16px);
        filter: blur(6px);
    }

    to {
        opacity: 1;
        transform: none;
        filter: none;
    }
}

.al-enter {
    animation: al-rise 0.9s var(--al-ease) both;
    animation-delay: var(--d, 0ms);
}

/* Animacje przewijania (uruchamiane przez al-motion.js, tylko gdy JS działa) */
.al-js .al-reveal {
    opacity: 0;
    transform: translateY(24px);
    transition:
        opacity 0.75s var(--al-ease) calc(var(--i, 0) * 70ms),
        transform 0.75s var(--al-ease) calc(var(--i, 0) * 70ms);
}

.al-js .al-reveal.is-in {
    opacity: 1;
    transform: none;
}

/* Nagłówek Biblioteki Aplikacji */
.al-store-header {
    position: relative;
    padding: 18px 0 24px;
    margin-bottom: 28px;
    border-bottom: none;
}

.al-store-title {
    margin: 0 0 8px;
    font-family: var(--al-font-strong);
    font-size: clamp(1.75rem, 3.2vw, 2.35rem);
    font-weight: 700;
    letter-spacing: -0.025em;
    line-height: 1.15;
    color: #ffffff;
}

.al-store-lead {
    margin: 0;
    max-width: 680px;
    color: var(--al-muted);
    font-size: clamp(1rem, 1.4vw, 1.15rem);
    line-height: 1.5;
}

/* Przycisk akcji w stylu Apple App Store GET */
.al-btn-get {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 76px;
    padding: 6px 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    color: var(--al-focus);
    font-family: var(--al-font-strong);
    font-size: 0.8rem;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.al-btn-get:hover {
    background: var(--al-focus);
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(33, 148, 216, 0.4);
    transform: translateY(-1px);
}

.al-btn-get--lg {
    padding: 10px 24px;
    font-size: 0.9rem;
    background: var(--al-focus);
    color: #ffffff;
    border: none;
}

.al-btn-get--lg:hover {
    background: var(--al-apple-blue-hover);
    box-shadow: 0 6px 18px rgba(33, 148, 216, 0.45);
}

/* Nagłówek sekcji katalogu */
.al-list-section {
    max-width: var(--al-max);
    margin: 0 auto;
    padding-top: 16px;
}

.al-section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--al-line);
}

.al-section-title {
    margin: 0 0 4px;
    font-family: var(--al-font-strong);
    font-size: clamp(1.4rem, 2.5vw, 1.85rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #ffffff;
}

.al-section-subtitle {
    margin: 0;
    color: var(--al-muted);
    font-size: 0.95rem;
}

.al-count-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--al-muted);
}

/* Siatka kart — spójny efekt hover dla całego ekosystemu */
.al-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 350px), 1fr));
    gap: 16px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.al-card {
    height: 100%;
    border-radius: var(--al-radius-lg);
    background: #212124;
    border: 1px solid rgba(255, 255, 255, 0.07);
    transition:
        transform 0.26s var(--al-ease),
        background-color 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.26s var(--al-ease);
}

.al-card:hover {
    transform: translateY(-3px);
    background: #26262a;
    border-color: rgba(255, 255, 255, 0.16);
    box-shadow: 0 14px 30px -8px rgba(0, 0, 0, 0.45);
}

.al-card__link {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 18px 20px;
    color: inherit;
    text-decoration: none;
    border-radius: var(--al-radius-lg);
}

.al-card__top {
    margin-bottom: 10px;
}

.al-card__category {
    display: block;
    font-family: var(--al-font);
    font-size: 0.72rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--al-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.al-card__body {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1 1 auto;
}

.al-card__icon-wrap {
    flex: 0 0 auto;
}

.al-card__info {
    min-width: 0;
    flex: 1 1 auto;
}

.al-card__name {
    margin: 0;
    font-family: var(--al-font-strong);
    font-size: 1.18rem;
    font-weight: 700;
    line-height: 1.25;
    color: #ffffff;
}

.al-card__tagline {
    margin: 3px 0 8px;
    color: #a1a1a6;
    font-size: 0.88rem;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.al-card__meta-bar {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    color: var(--al-muted);
}

.al-card__platforms {
    font-size: 0.78rem;
    color: var(--al-muted);
}

.al-card__action {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Ikony aplikacji (squircle z bezpiecznym marginesem wewnętrznym) */
.al-icon {
    display: block;
    flex: 0 0 auto;
    border-radius: 22.37%;
    box-sizing: border-box;
    object-fit: contain;
    padding: 12px;
    background: var(--al-surface-2, #28282c);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1), 0 4px 14px rgba(0, 0, 0, 0.35);
    transition: transform 0.5s var(--al-ease), box-shadow 0.3s ease;
}

.al-card:hover .al-icon {
    transform: scale(1.05) rotate(-2deg);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18), 0 8px 24px rgba(0, 0, 0, 0.5);
}

.al-icon--md {
    width: 76px;
    height: 76px;
    padding: 12px;
}

.al-icon--lg {
    width: 180px;
    height: 180px;
    padding: 26px;
}

.al-icon--monogram {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    background: linear-gradient(145deg, var(--accent, #2194d8), #0d0d0d);
    color: #fff;
    font-family: var(--al-font-strong);
    font-weight: 700;
    user-select: none;
}

.al-icon--md.al-icon--monogram {
    font-size: 1.9rem;
}

.al-icon--lg.al-icon--monogram {
    font-size: 5rem;
}

/* Stan pusty */
.al-empty {
    max-width: var(--al-max);
    margin: 0 auto;
    padding: 72px 20px;
    text-align: center;
    border-radius: var(--al-radius-lg);
    border: 1px dashed var(--al-line);
}

.al-empty__icon {
    font-size: 2.6rem;
    color: var(--al-focus);
    margin-bottom: 16px;
}

.al-empty__title {
    margin: 0 0 8px;
    font-family: var(--al-font-strong);
    font-size: 1.5rem;
    font-weight: 700;
}

.al-empty__text {
    margin: 0 0 14px;
    color: var(--al-muted);
}

/* Przyciski sklepów. Odznaka Apple to oficjalna grafika: bez zmian, bez animacji, z marginesem ochronnym. */
.al-stores {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 14px;
}

.al-badge {
    display: inline-block;
    padding: 10px;
    border-radius: 12px;
    line-height: 0;
}

.al-badge img {
    display: block;
    width: auto;
    height: 40px;
}

.al-store-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 54px;
    padding: 0 20px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.04);
    color: var(--al-text);
    font-family: var(--al-font-strong);
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    transition: background-color 0.25s ease, border-color 0.25s ease, transform 0.25s var(--al-ease);
}

.al-store-link:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
}

.al-store-link i {
    font-size: 0.8rem;
    opacity: 0.7;
}

.al-soon {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 54px;
    padding: 0 18px;
    border-radius: 14px;
    background: var(--al-surface-2);
    color: #8d8d93;
    font-size: 0.92rem;
    font-weight: 600;
}

/* Nawigacja powrotna na podstronie produktu */
.al-detail-nav {
    margin-bottom: 24px;
}

.al-back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--al-apple-blue);
    text-decoration: none;
    transition: color 0.2s ease, transform 0.2s ease;
}

.al-back-link:hover {
    color: #ffffff;
    transform: translateX(-3px);
}

.al-back-link i {
    font-size: 0.78rem;
}

/* Podstrona produktu */
.al-product {
    position: relative;
    max-width: var(--al-max);
    margin: 0 auto;
    padding: 10px 0 0;
}

.al-product__head {
    display: flex;
    align-items: center;
    gap: 36px;
    margin-bottom: 24px;
}

.al-product__developer {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--al-apple-blue);
    margin-bottom: 4px;
}

.al-product__info {
    min-width: 0;
    flex: 1 1 auto;
}

.al-product__name {
    margin: 0 0 6px;
    font-family: var(--al-font-strong);
    font-size: clamp(2.2rem, 5vw, 3.4rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.05;
    color: #ffffff;
}

.al-product__subtitle {
    margin: 0 0 22px;
    color: var(--al-muted);
    font-size: 1.12rem;
    line-height: 1.45;
    max-width: 58ch;
}

/* Apple App Store Metrics Strip */
.al-metrics-bar {
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 18px 20px;
    margin: 28px 0 0;
    border-top: 1px solid var(--al-line);
    border-bottom: 1px solid var(--al-line);
    overflow-x: auto;
    scrollbar-width: none;
}

.al-metrics-bar::-webkit-scrollbar {
    display: none;
}

.al-metric-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-width: 90px;
}

.al-metric-label {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--al-muted);
    margin-bottom: 4px;
}

.al-metric-val {
    font-family: var(--al-font-strong);
    font-size: 1.35rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.2;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.al-star-gold {
    color: #ffd60a;
    font-size: 0.9rem;
}

.al-metric-sub {
    font-size: 0.76rem;
    color: var(--al-muted);
    margin-top: 2px;
}

.al-metric-divider {
    width: 1px;
    height: 36px;
    background: var(--al-line);
    flex: 0 0 auto;
}

.al-store-link--web {
    background: rgba(33, 148, 216, 0.12);
    border-color: rgba(33, 148, 216, 0.4);
    color: #ffffff;
}

.al-store-link--web i {
    font-size: 0.85rem;
    color: #2194D8;
    transition: color 0.2s ease;
}

.al-store-link--web:hover {
    background: #2194D8;
    border-color: #2194D8;
    color: #ffffff;
    box-shadow: 0 4px 16px rgba(33, 148, 216, 0.3);
}

.al-store-link--web:hover i {
    color: #ffffff;
}

.al-section {
    margin-top: 48px;
    padding-top: 0;
    border-top: none;
}

.al-metrics-bar + .al-section,
.al-product > .al-section:first-of-type {
    margin-top: 40px;
    padding-top: 0;
    border-top: none;
}

.al-section__title {
    margin: 0 0 18px;
    font-family: var(--al-font-strong);
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

/* Pasek sekcji (przyklejony po przewinięciu) */
.al-sticky {
    position: fixed;
    top: 43px;
    left: 0;
    right: 0;
    z-index: 40;
    background: rgba(26, 26, 26, 0.92);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--al-line);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 0.25s ease, transform 0.25s var(--al-ease), visibility 0.25s ease;
}

.al-sticky.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

.al-sticky__inner {
    max-width: var(--al-max);
    margin: 0 auto;
    padding: 12px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    box-sizing: border-box;
}

.al-sticky__app {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    font-family: var(--al-font-strong);
    font-weight: 700;
    font-size: 0.95rem;
    color: #ffffff;
}

.al-sticky__icon {
    width: 30px;
    height: 30px;
    flex: 0 0 auto;
    border-radius: 8px;
    object-fit: cover;
}

.al-sticky__icon--mono {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, var(--accent, #2194d8), #0d0d0d);
    color: #fff;
    font-size: 0.85rem;
}

.al-sticky__name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Reset globalnego stylu nav z css/style.css, który narzuca position: fixed, top: -2px, left: 0 */
nav.al-sticky__nav,
.al-sticky__nav {
    position: static;
    top: auto;
    left: auto;
    right: auto;
    bottom: auto;
    width: auto;
    height: auto;
    min-height: 0;
    max-height: none;
    z-index: auto;
    background: transparent;
    padding: 0;
    margin: 0;
    float: none;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: nowrap;
}

.al-sticky__nav a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 36px;
    padding: 0 18px;
    border-radius: 999px;
    color: var(--al-muted);
    font-family: var(--al-font);
    font-size: 0.88rem;
    font-weight: 500;
    line-height: 1;
    text-align: center;
    text-decoration: none;
    white-space: nowrap;
    background: transparent;
    border: 1px solid transparent;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
    box-sizing: border-box;
}

.al-sticky__nav a:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
}

.al-sticky__nav a[aria-current="true"] {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.08);
    font-weight: 600;
}

/* Galeria zrzutów */
.al-gallery {
    position: relative;
    --accent-line: var(--accent, #2194d8);
}

.al-gallery__controls {
    position: absolute;
    left: 0;
    right: 0;
    top: 42%;
    display: flex;
    justify-content: space-between;
    padding: 0 4px;
    pointer-events: none;
    z-index: 2;
}

.al-gallery__nav {
    pointer-events: auto;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 1px solid var(--al-line);
    background: rgba(20, 20, 20, 0.72);
    color: #fff;
    cursor: pointer;
    opacity: 0;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    transition: opacity 0.3s ease, transform 0.3s var(--al-ease), background-color 0.2s ease;
}

.al-gallery:hover .al-gallery__nav,
.al-gallery:focus-within .al-gallery__nav {
    opacity: 1;
}

.al-gallery__nav:hover:not(:disabled) {
    background: rgba(40, 40, 40, 0.9);
    transform: scale(1.06);
}

.al-gallery__nav:disabled {
    opacity: 0 !important;
    cursor: default;
}

.al-shots {
    display: flex;
    gap: 16px;
    margin: 0;
    padding: 4px 20px 16px;
    list-style: none;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 20px;
    -webkit-overflow-scrolling: touch;
    margin-inline: -20px;
    scrollbar-width: none;
    cursor: grab;
    user-select: none;
}

.al-shots::-webkit-scrollbar {
    display: none;
}

.al-shots.is-dragging {
    cursor: grabbing;
    scroll-snap-type: none;
}

.al-shots:focus-visible {
    outline-offset: -2px;
}

.al-shots__item {
    flex: 0 0 auto;
    width: calc(min(68vh, 540px) * var(--ratio, 0.46));
    max-width: 82vw;
    scroll-snap-align: start;
}

.al-shots__button {
    display: block;
    padding: 0;
    border: 0;
    background: none;
    cursor: zoom-in;
    border-radius: 26px;
}

.al-shots__button img {
    display: block;
    width: 100%;
    height: min(68vh, 540px);
    object-fit: cover;
    border-radius: 26px;
    border: 1px solid var(--al-line);
    background: var(--al-surface);
    pointer-events: none;
    transition: transform 0.5s var(--al-ease), box-shadow 0.5s var(--al-ease);
}

.al-shots__button:hover img {
    transform: translateY(-4px);
    box-shadow: 0 24px 50px -20px rgba(0, 0, 0, 0.8);
}

.al-gallery__footer {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 6px;
}

.al-gallery__count {
    min-width: 64px;
    margin: 0;
    color: var(--al-muted);
    font-size: 0.82rem;
    font-variant-numeric: tabular-nums;
}

.al-gallery__progress {
    flex: 1 1 auto;
    height: 3px;
    border-radius: 3px;
    background: var(--al-surface-2);
    overflow: hidden;
}

.al-gallery__progress span {
    display: block;
    height: 100%;
    width: 0;
    background: var(--accent, #2194d8);
    transition: width 0.3s var(--al-ease);
}

/* Makieta (brak zrzutów) */
.al-mockup {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    padding: 8px 0 4px;
}

.al-mock {
    width: 210px;
    aspect-ratio: 9 / 19.5;
    padding: 9px;
    border-radius: 36px;
    background: #2a2a2c;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.al-mock__screen {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 28px;
    background: linear-gradient(170deg, color-mix(in srgb, var(--accent, #2194d8) 40%, #0d0d0d), #101010);
}

.al-mockup__text {
    margin: 0;
    color: var(--al-muted);
    font-size: 0.92rem;
    text-align: center;
}

/* Opis */
.al-desc {
    max-width: 68ch;
    margin: 0;
    color: #d6d6da;
    font-size: 1.02rem;
    line-height: 1.7;
}

.al-desc p {
    margin: 0;
}

.al-more {
    margin-top: 12px;
}

.al-more summary {
    display: inline-block;
    cursor: pointer;
    color: var(--al-focus);
    font-weight: 600;
    list-style: none;
}

.al-more summary::-webkit-details-marker {
    display: none;
}

.al-more summary::after {
    content: ' +';
    transition: content 0.2s;
}

.al-more[open] summary::after {
    content: ' −';
}

.al-more p {
    margin: 12px 0 0;
    color: #d6d6da;
    line-height: 1.7;
}

/* Informacje */
.al-facts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 20px 32px;
    margin: 0;
}

.al-fact {
    padding: 0;
    border: none;
}

.al-fact dt {
    color: var(--al-muted);
    font-size: 0.8rem;
    margin-bottom: 4px;
    font-weight: 500;
}

.al-fact dd {
    margin: 0;
    font-weight: 600;
    color: #ffffff;
    font-size: 0.95rem;
}

.al-credits {
    margin: 36px 0 0;
    max-width: 80ch;
    color: #636366;
    font-size: 0.75rem;
    line-height: 1.6;
    border: none;
}

/* CTA wizytówki */
.al-cta {
    max-width: var(--al-max);
    margin: 56px auto 0;
    padding: 22px 24px;
    border-radius: var(--al-radius-lg);
    background: var(--al-surface);
    border: 1px solid var(--al-line);
}

.al-cta__text {
    margin: 0 0 10px;
    color: var(--al-muted);
}

.al-cta__links {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
}

/* Pełnoekranowa galeria (natywny dialog) */
.al-lightbox {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100dvh;
    max-width: none;
    max-height: none;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: #fff;
    overflow: hidden;
}

.al-lightbox[open] {
    animation: al-fade 0.3s ease both;
}

.al-lightbox::backdrop {
    background: rgba(8, 8, 8, 0.94);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    animation: al-fade 0.3s ease both;
}

@keyframes al-fade {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes al-zoom {
    from {
        opacity: 0;
        transform: scale(0.94);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

.al-lightbox__bar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
}

.al-lightbox__count {
    margin: 0;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.75);
    font-variant-numeric: tabular-nums;
}

.al-lightbox__tools {
    display: flex;
    gap: 8px;
}

.al-lightbox__btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 0;
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.al-lightbox__btn:hover {
    background: rgba(255, 255, 255, 0.26);
}

.al-lightbox__stage {
    position: absolute;
    inset: 0;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 72px 84px;
    pointer-events: none;
}

.al-lightbox__img,
.al-lightbox__nav,
.al-lightbox__btn {
    pointer-events: auto;
}

.al-lightbox__img {
    display: block;
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 26px;
    box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.9);
}

.al-lightbox__img.is-swap {
    animation: al-zoom 0.4s var(--al-ease) both;
}

.al-lightbox__nav {
    position: absolute;
    top: 50%;
    z-index: 2;
    width: 52px;
    height: 52px;
    margin-top: -26px;
    border-radius: 50%;
    border: 0;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    font-size: 1.05rem;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.2s var(--al-ease), opacity 0.2s ease;
}

.al-lightbox__nav:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.26);
    transform: scale(1.05);
}

.al-lightbox__nav:disabled {
    opacity: 0.25;
    cursor: default;
}

.al-lightbox__nav--prev {
    left: 14px;
}

.al-lightbox__nav--next {
    right: 14px;
}

/* Przycisk „do góry” */
.al-totop {
    position: fixed;
    right: 20px;
    bottom: 24px;
    z-index: 55;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid var(--al-line);
    background: rgba(32, 32, 32, 0.85);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    color: #fff;
    cursor: pointer;
    transition: transform 0.3s var(--al-ease), background-color 0.2s ease;
}

.al-totop:hover {
    transform: translateY(-3px);
    background: rgba(50, 50, 50, 0.95);
}

.al-totop[hidden] {
    display: none;
}

/* Podgląd admina */
.al-preview-banner {
    position: sticky;
    top: 0;
    z-index: 50;
    padding: 9px 20px;
    background: #f7b733;
    color: #1a1a1a;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-align: center;
}

/* Przejścia między stronami (katalog ↔ podstrona). Ikona „przelatuje” między widokami dzięki view-transition-name. */
@view-transition {
    navigation: auto;
}

::view-transition-old(root),
::view-transition-new(root) {
    animation-duration: 0.45s;
    animation-timing-function: var(--al-ease);
}

/* Responsywność */
@media (max-width: 880px) {
    .al-ecosystem {
        padding: 36px 20px;
    }
}

@media (min-width: 720px) {
    .al-product {
        padding-top: 40px;
    }

    .al-product__head {
        gap: 40px;
    }
}

@media (max-width: 380px) {
    .al-sticky__inner {
        padding: 6px 10px;
        gap: 8px;
    }

    .al-sticky__name {
        display: none;
    }

    .al-sticky__nav {
        gap: 4px;
    }

    .al-sticky__nav a {
        padding: 0 10px;
        font-size: 0.76rem;
    }
}

@media (max-width: 600px) {
    .al-store-header {
        padding: 12px 0 16px;
    }

    .al-card__link {
        padding: 14px;
    }

    .al-card__body {
        gap: 12px;
    }

    .al-card .al-icon--md {
        width: 60px;
        height: 60px;
        padding: 9px;
    }

    .al-card__action {
        align-self: center;
    }

    .al-btn-get {
        padding: 6px 14px;
        font-size: 0.78rem;
    }

    .al-product__head {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 22px;
    }

    .al-product__info {
        width: 100%;
    }

    .al-product__subtitle {
        margin-inline: auto;
    }

    .al-icon--lg {
        width: 120px;
        height: 120px;
        padding: 18px;
    }

    .al-icon--lg.al-icon--monogram {
        font-size: 3.2rem;
    }

    .al-stores {
        justify-content: center;
    }

    .al-metrics-bar {
        padding: 12px 0;
        gap: 12px;
    }

    .al-metric-col {
        min-width: 70px;
    }

    .al-facts {
        grid-template-columns: 1fr 1fr;
    }

    .al-gallery__nav {
        display: none;
    }

    .al-sticky__inner {
        padding: 8px 16px;
        gap: 12px;
    }

    .al-sticky__app {
        gap: 8px;
    }

    .al-sticky__icon {
        width: 26px;
        height: 26px;
        border-radius: 6px;
    }

    .al-sticky__name {
        font-size: 0.88rem;
        max-width: 84px;
    }

    .al-sticky__nav {
        gap: 6px;
    }

    .al-sticky__nav a {
        height: 32px;
        padding: 0 12px;
        font-size: 0.8rem;
    }

    .al-lightbox__stage {
        padding: 70px 10px 24px;
    }

    .al-lightbox__nav {
        width: 42px;
        height: 42px;
        margin-top: -21px;
    }

    .al-lightbox__nav--prev {
        left: 6px;
    }

    .al-lightbox__nav--next {
        right: 6px;
    }
}

@media (hover: none) {
    .al-gallery__nav {
        opacity: 1;
    }
}

/* Cele dotyku: na ekranach dotykowych linki i przyciski mają co najmniej 44 px wysokości (WCAG 2.5.5). */
@media (pointer: coarse) {
    nav.al-crumbs a,
    .al-link,
    .al-btn-link,
    .al-cta__links a {
        display: inline-flex;
        align-items: center;
        min-height: 44px;
    }

    .al-sticky__nav a {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-height: 40px;
        padding: 0 16px;
    }

    .al-more summary,
    .al-scroll-cue {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
    }

    .al-totop {
        width: 52px;
        height: 52px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
    }

    .al-js .al-reveal {
        opacity: 1;
        transform: none;
    }

    @view-transition {
        navigation: none;
    }
}
