.programs-grid img.tool-icon[src*="handbrake.fr"] {
    width: 42px !important;
    height: 42px !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    object-fit: contain;
    transition: transform 220ms ease, filter 220ms ease;
}

.programs-grid .tool-item:hover img.tool-icon[src*="handbrake.fr"],
.programs-grid .tool-item:focus-within img.tool-icon[src*="handbrake.fr"] {
    transform: translateY(-2px) scale(1.06);
    filter: brightness(1.08);
}

@media (max-width: 560px) {
    .programs-grid img.tool-icon[src*="handbrake.fr"] {
        width: 40px !important;
        height: 40px !important;
    }
}

/* Szerszy i czytelniejszy przycisk prowadzący do sekcji narzędzi AI. */
@media (min-width: 681px) {
    .hero-ai-note {
        width: min(100%, 330px) !important;
        min-height: 68px;
        grid-template-columns: 42px minmax(0, 1fr) !important;
        grid-template-rows: auto !important;
        column-gap: 0.9rem !important;
        padding: 0.68rem 1rem 0.68rem 0.7rem !important;
        border-radius: 22px !important;
    }

    .hero-ai-icon {
        grid-column: 1 !important;
        grid-row: 1 !important;
        width: 42px !important;
        height: 42px !important;
        flex-basis: 42px !important;
    }

    .hero-ai-content {
        display: flex !important;
        min-width: 0;
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
        gap: 0.22rem !important;
    }

    .hero-ai-description,
    .hero-ai-cta {
        grid-column: auto !important;
        grid-row: auto !important;
        justify-self: auto !important;
        text-align: left !important;
    }

    .hero-ai-description {
        font-size: 0.86rem !important;
    }

    .hero-ai-cta {
        font-size: 0.74rem !important;
    }
}

/* Logo marki w gornym pasku nawigacji. */
.site-nav .brand {
    display: flex !important;
    align-items: center;
    gap: 0.62rem !important;
}

.site-nav .brand-logo-wrap {
    position: relative;
    display: grid;
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    place-items: center;
    overflow: hidden;
    border-radius: 9px;
}

.site-nav .brand-logo {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.site-nav .brand-logo-wrap::after {
    content: "";
    position: absolute;
    top: 15%;
    left: -120%;
    width: 72%;
    height: 240%;
    pointer-events: none;
    opacity: 0;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.025) 16%,
        rgba(255, 255, 255, 0.12) 31%,
        rgba(255, 250, 224, 0.48) 46%,
        rgba(255, 255, 255, 0.72) 50%,
        rgba(255, 250, 224, 0.48) 54%,
        rgba(255, 255, 255, 0.12) 69%,
        rgba(255, 255, 255, 0.025) 84%,
        transparent 100%
    );
    filter: blur(1.15px);
    transform: rotate(32deg);
    will-change: left, top, opacity;
}

.site-nav .brand-logo-wrap:hover::after {
    animation: brand-logo-light-sweep 1700ms cubic-bezier(0.22, 0.62, 0.22, 1) both;
}

@keyframes brand-logo-light-sweep {
    0% {
        opacity: 0;
        left: -120%;
        top: 15%;
    }
    16% {
        opacity: 0.82;
    }
    76% {
        opacity: 0.82;
    }
    100% {
        opacity: 0;
        left: 165%;
        top: -125%;
    }
}

.site-nav .brand-copy {
    display: grid;
    gap: 0.08rem;
    color: var(--text) !important;
    font-family: "Space Grotesk", system-ui, sans-serif;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
}

.site-nav .brand-copy > span {
    color: var(--quiet) !important;
    font-family: "Outfit", system-ui, sans-serif;
    font-size: 0.78rem;
    font-weight: 500;
}

@media (max-width: 680px) {
    .site-nav .brand {
        gap: 0.48rem !important;
    }

    .site-nav .brand-logo-wrap {
        width: 30px;
        height: 30px;
        flex-basis: 30px;
        border-radius: 8px;
    }

    .site-nav .brand-copy > span {
        display: none;
    }
}

/* Ten sam miekki light sweep na oznaczeniach AI/KI/IA. */
.hero-ai-icon::before,
.ai-section-mark::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    border-radius: inherit;
    pointer-events: none;
    opacity: 0;
    background: linear-gradient(
        112deg,
        transparent 0%,
        rgba(255, 255, 255, 0.025) 16%,
        rgba(255, 255, 255, 0.12) 31%,
        rgba(255, 250, 224, 0.48) 46%,
        rgba(255, 255, 255, 0.72) 50%,
        rgba(255, 250, 224, 0.48) 54%,
        rgba(255, 255, 255, 0.12) 69%,
        rgba(255, 255, 255, 0.025) 84%,
        transparent 100%
    );
    background-position: 100% 50%;
    background-size: 250% 100%;
    background-repeat: no-repeat;
    filter: blur(0.7px);
}

.hero-ai-note:hover .hero-ai-icon::before,
.ai-section-mark:hover::before {
    animation: ai-mark-light-sweep 1700ms cubic-bezier(0.22, 0.62, 0.22, 1) both;
}

@keyframes ai-mark-light-sweep {
    0% {
        opacity: 0;
        background-position: 100% 50%;
    }
    16% {
        opacity: 0.82;
    }
    76% {
        opacity: 0.82;
    }
    100% {
        opacity: 0;
        background-position: 0% 50%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-ai-note:hover .hero-ai-icon::before,
    .ai-section-mark:hover::before {
        animation: none !important;
    }
}

/* Light sweep na zakladkach glownej nawigacji. */
.site-nav .nav-links a {
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.site-nav .nav-links a::after {
    content: "";
    position: absolute;
    top: 10%;
    left: -105%;
    width: 58%;
    height: 220%;
    pointer-events: none;
    opacity: 0;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.02) 16%,
        rgba(255, 255, 255, 0.09) 31%,
        rgba(255, 246, 213, 0.34) 46%,
        rgba(255, 255, 255, 0.54) 50%,
        rgba(255, 246, 213, 0.34) 54%,
        rgba(255, 255, 255, 0.09) 69%,
        rgba(255, 255, 255, 0.02) 84%,
        transparent 100%
    );
    filter: blur(1px);
    transform: rotate(24deg);
    will-change: left, top, opacity;
}

.site-nav .nav-links a:hover::after,
.site-nav .nav-links a:focus-visible::after {
    animation: nav-link-light-sweep 1700ms cubic-bezier(0.22, 0.62, 0.22, 1) both;
}

@keyframes nav-link-light-sweep {
    0% {
        left: -105%;
        top: 10%;
        opacity: 0;
    }
    16% {
        opacity: 0.72;
    }
    76% {
        opacity: 0.72;
    }
    100% {
        left: 155%;
        top: -115%;
        opacity: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .site-nav .nav-links a:hover::after,
    .site-nav .nav-links a:focus-visible::after {
        animation: none !important;
    }
}

/* Naglowek sekcji AI bez dekoracyjnej kreski po lewej. */
#ai-tools .ai-tools-heading h3::before {
    content: none !important;
    display: none !important;
    animation: none !important;
}

/* Jedna, czytelna ikona aplikacji przy naglowku programow. */
#programs-title {
    display: flex;
    width: fit-content;
    align-items: center;
    justify-content: center;
    gap: 0.72rem;
}

#programs-title::before {
    content: "";
    display: block;
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    background: center / contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e5c46f' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2.75' y='3.75' width='18.5' height='16.5' rx='3'/%3E%3Cpath d='M2.75 9h18.5M7 13h5M7 16.5h10'/%3E%3Ccircle cx='6.5' cy='6.4' r='.7' fill='%23e5c46f' stroke='none'/%3E%3Ccircle cx='9.2' cy='6.4' r='.7' fill='%23e5c46f' stroke='none'/%3E%3C/svg%3E");
    filter: drop-shadow(0 5px 13px rgba(229, 196, 111, 0.16));
}

@media (max-width: 680px) {
    #programs-title {
        gap: 0.58rem;
    }

    #programs-title::before {
        width: 30px;
        height: 30px;
        flex-basis: 30px;
    }
}

/* Ikony uslug przechodza z neutralnych w zlote na aktywnym kafelku. */
#services .service-icon {
    color: rgba(247, 244, 236, 0.64) !important;
    transition: color 280ms var(--ease);
}

#services .service-icon svg {
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.06)) !important;
    transition: transform 240ms var(--ease), filter 280ms var(--ease) !important;
}

#services .service-card:hover .service-icon,
#services .service-card:focus-within .service-icon,
#services .service-card:focus-visible .service-icon {
    color: var(--accent) !important;
}

#services .service-card:hover .service-icon svg,
#services .service-card:focus-within .service-icon svg,
#services .service-card:focus-visible .service-icon svg {
    transform: translateY(-2px) scale(1.06);
    filter: drop-shadow(0 0 13px rgba(215, 177, 85, 0.42)) !important;
}

/* Liniowe ikony poszczegolnych kategorii portfolio. */
#showreel .section-header .section-kicker::after,
#client-reels .category-top .section-kicker::after,
#long-form .category-top .section-kicker::after,
#music-videos .category-top .section-kicker::after,
#ai-reels .category-top .section-kicker::after {
    content: "";
    display: block;
    order: -1;
    width: 1.45rem;
    height: 1.45rem;
    flex: 0 0 1.45rem;
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
    filter: drop-shadow(0 4px 11px rgba(229, 196, 111, 0.2));
}

/* Glowny znacznik Portfolio pozostaje prosty; ikony oznaczaja konkretne formaty. */
#showreel .section-header .section-kicker::after {
    content: none !important;
    display: none !important;
    background-image: none !important;
}

#showreel .section-header .section-kicker::before,
#client-reels .category-top .section-kicker::before,
#long-form .category-top .section-kicker::before,
#music-videos .category-top .section-kicker::before,
#ai-reels .category-top .section-kicker::before {
    content: none !important;
    display: none !important;
}

#showreel .section-header .section-kicker,
#client-reels .category-top .section-kicker,
#long-form .category-top .section-kicker,
#music-videos .category-top .section-kicker,
#ai-reels .category-top .section-kicker {
    gap: 0.62rem;
}

/* Social media / Reels. */
#client-reels .category-top .section-kicker::after {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e5c46f' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='7' y='2.5' width='10' height='19' rx='2.5'/%3E%3Cpath d='m10.5 9 4.5 3-4.5 3V9ZM10 18h4'/%3E%3C/svg%3E");
}

/* Format 16:9. */
#long-form .category-top .section-kicker::after {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e5c46f' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2.5' y='5' width='19' height='14' rx='3'/%3E%3Cpath d='m10 9 5 3-5 3V9Z'/%3E%3C/svg%3E");
}

/* Music video. */
#music-videos .category-top .section-kicker::after {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e5c46f' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 18V6l10-2v12M9 9l10-2'/%3E%3Cellipse cx='6.5' cy='18' rx='2.5' ry='2'/%3E%3Cellipse cx='16.5' cy='16' rx='2.5' ry='2'/%3E%3C/svg%3E");
}

/* AI video. */
#ai-reels .category-top .section-kicker::after {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e5c46f' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m12 2 1.35 4.65L18 8l-4.65 1.35L12 14l-1.35-4.65L6 8l4.65-1.35L12 2ZM18.5 14l.8 2.7 2.7.8-2.7.8-.8 2.7-.8-2.7-2.7-.8 2.7-.8.8-2.7ZM5 13l.65 2.35L8 16l-2.35.65L5 19l-.65-2.35L2 16l2.35-.65L5 13Z'/%3E%3C/svg%3E");
}

@media (max-width: 680px) {
    #showreel .section-header .section-kicker::after,
    #client-reels .category-top .section-kicker::after,
    #long-form .category-top .section-kicker::after,
    #music-videos .category-top .section-kicker::after,
    #ai-reels .category-top .section-kicker::after {
        width: 1.3rem;
        height: 1.3rem;
        flex-basis: 1.3rem;
    }
}

#showreel .section-header {
    margin-bottom: 1.8rem;
}

#showreel .section-header .section-kicker {
    margin-bottom: 0.55rem;
}

#client-reels .category-top {
    margin-top: 0;
}

/* Wspolne rozmiary ikon procesu we wszystkich wersjach jezykowych. */
.process-icon {
    display: grid;
    width: 2.8rem !important;
    height: 2.4rem !important;
    margin-bottom: 0.85rem;
    flex: 0 0 auto;
    place-items: center start;
    color: var(--accent);
}

.process-icon svg {
    display: block;
    width: 1.75rem !important;
    height: 1.75rem !important;
    max-width: 1.75rem;
    max-height: 1.75rem;
}

@media (max-width: 680px) {
    .process-icon {
        width: 2rem !important;
        height: 1.8rem !important;
        margin-bottom: 0.55rem;
    }

    .process-icon svg {
        width: 1.45rem !important;
        height: 1.45rem !important;
        max-width: 1.45rem;
        max-height: 1.45rem;
    }
}

/* Ikony retencji i mechanizmow zasiegu staja sie zlote na aktywnym kafelku. */
#attention .process-icon,
#viral .process-icon {
    color: rgba(247, 244, 236, 0.64) !important;
    transition: color 280ms var(--ease);
}

#attention .process-icon svg,
#viral .process-icon svg {
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.06)) !important;
    transition: transform 240ms var(--ease), filter 280ms var(--ease) !important;
}

#attention .process-card:hover .process-icon,
#attention .process-card:focus-within .process-icon,
#attention .process-card:focus-visible .process-icon,
#viral .process-card:hover .process-icon,
#viral .process-card:focus-within .process-icon,
#viral .process-card:focus-visible .process-icon {
    color: var(--accent) !important;
}

#attention .process-card:hover .process-icon svg,
#attention .process-card:focus-within .process-icon svg,
#attention .process-card:focus-visible .process-icon svg,
#viral .process-card:hover .process-icon svg,
#viral .process-card:focus-within .process-icon svg,
#viral .process-card:focus-visible .process-icon svg {
    transform: translateY(-2px) scale(1.06);
    filter: drop-shadow(0 0 13px rgba(215, 177, 85, 0.42)) !important;
}
