/* Baner Mitoto pod „Najpopularniejsze produkty” */
#mitoto-spotlight.mitoto-spotlight,
.mitoto-spotlight {
    position: relative;
    max-width: var(--max-width);
    margin: 0 auto 80px;
    padding: 0 40px;
    box-sizing: border-box;
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
    transform: none !important;
}

#mitoto-spotlight .spotlight-track,
.spotlight-track {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    background: linear-gradient(135deg, #000000 0%, #1d1d1f 100%);
    box-shadow: var(--shadow-banner);
    min-height: 320px;
}
#mitoto-spotlight .spotlight-track.spotlight-track--banners,
.spotlight-track.spotlight-track--banners {
    position: relative;
    width: 100%;
    /* Desktop: stały box 2048×720 - rozmiar pliku NIE zmienia wysokości */
    aspect-ratio: 2048 / 720;
    min-height: 0;
    height: auto;
    max-height: none;
    overflow: hidden;
    background: transparent;
    background-image: none;
    box-shadow: 0 12px 32px rgba(0,0,0,.12);
    line-height: 0;
}

/* Crossfade grafik (bez display:none) - wszystkie panele absolute, box z aspect-ratio */
#mitoto-spotlight .spotlight-panel.spotlight-panel--banner,
.spotlight-panel.spotlight-panel--banner {
    display: block !important;
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    min-height: 0;
    background: transparent;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    z-index: 1;
    transition: opacity 0.55s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.55s step-end;
}
#mitoto-spotlight .spotlight-panel.spotlight-panel--banner.is-active,
.spotlight-panel.spotlight-panel--banner.is-active {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    z-index: 2;
    transition: opacity 0.55s cubic-bezier(0.16, 1, 0.3, 1), visibility 0s linear;
}
#mitoto-spotlight .spotlight-banner-link,
#mitoto-spotlight .spotlight-banner-link picture {
    display: block;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    line-height: 0;
}
#mitoto-spotlight .spotlight-banner-img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    object-fit: cover;
    object-position: center;
    border-radius: 0;
    flex: none;
}
#mitoto-spotlight .spotlight-banner-img.is-fading-in {
    animation: spotlightBannerIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
}
@keyframes spotlightBannerIn {
    from { opacity: 0.72; transform: scale(1.02); }
    to { opacity: 1; transform: scale(1); }
}
@media (prefers-reduced-motion: reduce) {
    #mitoto-spotlight .spotlight-panel.spotlight-panel--banner,
    #mitoto-spotlight .spotlight-panel.spotlight-panel--banner.is-active {
        transition: none;
    }
    #mitoto-spotlight .spotlight-banner-img.is-fading-in {
        animation: none;
    }
}
@media (max-width: 768px) {
    /* Mobile: ten sam format co kafelki (features) — stały box, grafika cover */
    #mitoto-spotlight .spotlight-track.spotlight-track--banners,
    .spotlight-track.spotlight-track--banners {
        aspect-ratio: 680 / 850;
        border-radius: var(--radius-lg, 16px);
        border: 1px solid var(--border-color, #e5e5ea);
        box-shadow: none;
    }

    #mitoto-spotlight .spotlight-banner-img {
        object-fit: cover;
        object-position: center;
    }
}

#mitoto-spotlight .spotlight-panel,
.spotlight-panel {
    box-sizing: border-box;
    width: 100%;
    min-height: 320px;
    padding: 64px 56px;
    color: #fff;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    position: relative;
}

#mitoto-spotlight .spotlight-panel:not(.is-active),
.spotlight-panel:not(.is-active) {
    display: none;
}

#mitoto-spotlight .spotlight-panel.is-active,
.spotlight-panel.is-active {
    display: flex !important;
    opacity: 1 !important;
    visibility: visible !important;
}

#mitoto-spotlight .spotlight-content,
.spotlight-content {
    max-width: 520px;
    text-align: left;
    z-index: 2;
}

#mitoto-spotlight .spotlight-tag,
.spotlight-tag {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    color: #4da3ff;
    background: rgba(0, 102, 204, 0.2);
    padding: 6px 14px;
    border-radius: var(--radius-pill);
    margin-bottom: 16px;
}

#mitoto-spotlight .spotlight-panel h2,
.spotlight-panel h2 {
    font-size: clamp(28px, 3.5vw, 40px);
    font-weight: 700;
    letter-spacing: -0.8px;
    margin: 0 0 14px;
    line-height: 1.15;
    color: #fff;
}

#mitoto-spotlight .spotlight-panel p,
.spotlight-panel p {
    font-size: 17px;
    color: #a1a1a6;
    margin: 0 0 28px;
    line-height: 1.5;
}

#mitoto-spotlight .spotlight-panel .btn,
.spotlight-panel .btn-light {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: var(--radius-pill);
    background: #fff;
    color: #000;
    font-weight: 600;
    text-decoration: none;
    font-size: 16px;
}

#mitoto-spotlight .spotlight-visual,
.spotlight-visual {
    flex: 0 0 280px;
    height: 200px;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(0, 102, 204, 0.35) 0%, rgba(255, 255, 255, 0.08) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.65);
}

#mitoto-spotlight .spotlight-visual svg,
.spotlight-visual svg {
    width: 80px;
    height: 80px;
    stroke: currentColor;
    stroke-width: 1.4;
    fill: none;
}

#mitoto-spotlight .spotlight-controls,
.spotlight-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 20px;
}

#mitoto-spotlight .spotlight-dots,
.spotlight-dots {
    display: flex;
    gap: 8px;
}

#mitoto-spotlight .spotlight-dot,
.spotlight-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.15);
    transition: all var(--transition-fast);
    border: none;
    padding: 0;
    cursor: pointer;
}

#mitoto-spotlight .spotlight-dot.is-active,
.spotlight-dot.is-active {
    background: var(--accent-blue);
    width: 24px;
    border-radius: 4px;
}

#mitoto-spotlight .spotlight-nav-btn,
.spotlight-nav-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    background: #fff;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
    cursor: pointer;
}

#mitoto-spotlight .spotlight-nav-btn:hover,
.spotlight-nav-btn:hover {
    border-color: var(--accent-blue);
    color: var(--accent-blue);
}

#mitoto-spotlight .spotlight-nav-btn svg,
.spotlight-nav-btn svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    stroke-width: 2;
    fill: none;
}

.features {
    background: transparent;
    padding: 24px 0 80px;
    margin-bottom: 0;
}

.features .section-header {
    text-align: center;
    flex-direction: column;
    align-items: center;
    margin-bottom: 48px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
}

.features-carousel {
    position: relative;
}

.features-carousel__controls {
    display: none;
}

.features-carousel__viewport {
    width: 100%;
}

/* Desktop >4: viewport clip + transform track */
.features-carousel.is-desktop-carousel .features-carousel__viewport {
    overflow: hidden;
    width: 100%;
}

.features-carousel.is-desktop-carousel .features-grid {
    --features-cols: 4;
    --features-gap: 28px;
    display: flex;
    flex-wrap: nowrap;
    gap: var(--features-gap);
    padding: 0;
    margin: 0;
    width: 100%;
    overflow: visible;
    box-sizing: border-box;
    will-change: transform;
    touch-action: pan-y;
}

.features-carousel.is-desktop-carousel .feature-card.feature-card--image {
    flex: 0 0
        calc(
            (100% - (var(--features-cols) - 1) * var(--features-gap)) /
                var(--features-cols)
        );
    width: calc(
        (100% - (var(--features-cols) - 1) * var(--features-gap)) /
            var(--features-cols)
    );
    max-width: none;
    min-width: 0;
    aspect-ratio: 720 / 900;
    border: 1px solid var(--border-color);
    box-shadow: none;
    background: var(--bg-secondary);
}

.features-carousel.is-desktop-carousel .feature-card.feature-card--image:hover {
    transform: none;
    box-shadow: none;
}

.features-carousel.is-desktop-carousel .features-carousel__controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 20px;
    line-height: normal;
}

.features-carousel.is-desktop-carousel .features-carousel__controls[hidden] {
    display: none !important;
}

.features-carousel.is-desktop-carousel .features-carousel__nav {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    background: #fff;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    flex: 0 0 auto;
    transition: all var(--transition-fast);
}

.features-carousel.is-desktop-carousel .features-carousel__nav:hover {
    border-color: var(--accent-blue);
    color: var(--accent-blue);
}

.features-carousel.is-desktop-carousel .features-carousel__nav svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.features-carousel.is-desktop-carousel .features-carousel__dots {
    display: flex;
    align-items: center;
    gap: 8px;
}

.features-carousel__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    padding: 0;
    background: rgba(0, 0, 0, 0.15);
    cursor: pointer;
    transition: width 0.2s ease, background 0.2s ease, border-radius 0.2s ease;
}

.features-carousel__dot.is-active {
    background: var(--accent-blue);
    width: 24px;
    border-radius: 4px;
}

.feature-card {
    text-align: center;
    padding: 32px 24px;
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    transition: box-shadow var(--transition-base);
}

.feature-card:hover {
    transform: none;
    box-shadow: var(--shadow-md);
}

/* Kafelki - stały box; grafika zawsze cover (nawet większe uploady) */
.feature-card.feature-card--image {
    padding: 0;
    position: relative;
    overflow: hidden;
    text-align: left;
    aspect-ratio: 720 / 900;
    width: 100%;
    height: auto;
    max-height: none;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    box-shadow: none;
}
.feature-card.feature-card--image.is-empty {
    display: none !important;
}
.feature-card.feature-card--image:hover {
    transform: none;
    box-shadow: var(--shadow-sm);
}
.feature-card.feature-card--image .feature-tile-link {
    position: absolute;
    inset: 0;
    display: block;
    margin: 0;
    padding: 0;
    line-height: 0;
    color: inherit;
    text-decoration: none;
    overflow: hidden;
}
.feature-card.feature-card--image .feature-tile-link picture {
    display: block;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    line-height: 0;
}
.feature-card.feature-card--image .feature-tile-img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    object-fit: cover;
    object-position: center;
    pointer-events: none;
    user-select: none;
    flex: none;
}
/* Tylko delikatny fade przy pierwszym załadowaniu - bez scale */
.feature-card.feature-card--image .feature-tile-img.is-fading-in {
    animation: featureTileIn 0.55s cubic-bezier(0.16, 1, 0.3, 1) both;
}
@keyframes featureTileIn {
    from { opacity: 0.55; }
    to { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
    .feature-card.feature-card--image .feature-tile-img.is-fading-in {
        animation: none;
    }
}


.footer {
    background-color: var(--bg-secondary);
    padding: 80px 40px 40px;
    border-top: 1px solid var(--border-color);
}

.footer-grid {
    max-width: var(--max-width);
    margin: 0 auto 60px;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
}

.brand-col .footer-logo {
    height: 40px;
    width: auto;
    margin-bottom: 16px;
    object-fit: contain;
}

.brand-col p {
    color: var(--text-secondary);
    font-size: 14px;
    max-width: 320px;
    line-height: 1.6;
}

.footer-company {
    margin-top: 18px;
    max-width: 320px;
}

.footer-company__title {
    margin: 0 0 8px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: -0.2px;
    color: var(--text-primary);
}

.footer-company__name {
    margin: 0 0 6px !important;
    font-size: 13px !important;
    font-weight: 600;
    color: var(--text-primary) !important;
    max-width: none !important;
}

.footer-company__meta,
.footer-company__address {
    margin: 0 0 6px !important;
    font-size: 13px !important;
    line-height: 1.5 !important;
    color: var(--text-secondary) !important;
    max-width: none !important;
}

.footer-company__address {
    margin-bottom: 0 !important;
}

.footer-social {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.04);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.footer-social a:hover {
    background: var(--accent-blue-soft);
    color: var(--accent-blue);
}

.footer-social svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    stroke-width: 1.5;
    fill: none;
}

.footer-social svg .icon-fill {
    fill: currentColor;
    stroke: none;
}

.footer-apps {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 10px;
    margin-top: 22px;
    width: 100%;
    max-width: 300px;
}
.footer-apps__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 163px;
    height: 48px;
    flex: 0 0 auto;
    line-height: 0;
    border-radius: 11px;
    overflow: hidden;
    background: #000;
}
.footer-apps__btn img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: 100%;
    object-fit: cover;
    object-position: center;
    margin: 0;
    border-radius: 11px;
}
@media (max-width: 480px) {
    .footer-apps {
        margin-top: 24px;
        gap: 24px;
    }
    .footer-apps__btn {
        width: 150px;
        height: 44px;
        border-radius: 10px;
    }
    .footer-apps__btn img {
        border-radius: 10px;
    }
}


.footer-col h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 20px;
}

/* Drugi nagłówek w kolumnie (np. Pomoc) - jak odstępy między linkami listy */
.footer-col .footer-subheading {
    margin-top: 12px;
    margin-bottom: 12px;
}
.footer-col--stacked > ul {
    margin: 0;
    padding: 0;
    list-style: none;
}
.footer-col--stacked > ul > li:last-child {
    margin-bottom: 0;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    color: var(--text-secondary);
    font-size: 14px;
    transition: color var(--transition-fast);
}

.footer-col ul li a:hover {
    color: var(--text-primary);
}

.footer-bottom {
    max-width: var(--max-width);
    margin: 0 auto;
    border-top: 1px solid var(--border-color);
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    color: var(--text-secondary);
    font-size: 12px;
}

.footer-links {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-links a:hover {
    color: var(--text-primary);
}

.footer-owner {
    margin: 0;
    color: var(--text-secondary);
    font-size: 12px;
}
