/* PAR24 homepage UX V106 - category product photos and refined product flags */
.home-v102-hero {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 12% 15%, rgba(37, 99, 235, .15), transparent 30%),
        linear-gradient(135deg, #102a7a 0%, #1d4ed8 58%, #2563eb 100%);
    color: #fff;
    margin-top: 0;
}

.home-v102-hero::after {
    content: "";
    position: absolute;
    inset: auto -120px -220px auto;
    width: 520px;
    height: 520px;
    border-radius: 999px;
    background: rgba(255,255,255,.12);
    filter: blur(4px);
}

.home-v102-hero__grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.02fr) minmax(360px, .98fr);
    gap: 34px;
    align-items: center;
    min-height: 340px;
    padding-top: 34px;
    padding-bottom: 34px;
}

.home-v102-eyebrow,
.home-v102-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    font-size: 12px;
    line-height: 1;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.home-v102-eyebrow {
    color: #bfdbfe;
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.20);
    padding: 10px 12px;
    border-radius: 999px;
    margin-bottom: 18px;
}

.home-v102-kicker {
    color: #e11d48;
    margin-bottom: 8px;
}

.home-v102-hero h1 {
    max-width: 740px;
    margin: 0;
    font-size: clamp(34px, 4.2vw, 56px);
    line-height: .98;
    letter-spacing: -.055em;
    color: #fff;
}

.home-v102-lead {
    max-width: 620px;
    margin: 16px 0 0;
    font-size: clamp(16px, 1.25vw, 18px);
    line-height: 1.55;
    color: rgba(255,255,255,.88);
}

.home-v102-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 16px;
}

.home-v102-actions .button.primary {
    background: #fff;
    color: #e11d48;
    border-color: #fff;
    box-shadow: 0 16px 36px rgba(15,23,42,.20);
}

.home-v102-actions .button.secondary {
    color: #fff;
    border-color: rgba(255,255,255,.38);
    background: rgba(255,255,255,.12);
}

.home-v102-proof {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}

.home-v102-proof span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: rgba(255,255,255,.92);
    background: rgba(15,23,42,.20);
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 999px;
    padding: 9px 12px;
    font-size: 13px;
    font-weight: 750;
}

.home-v102-proof span::before {
    content: "✓";
    display: grid;
    place-items: center;
    width: 18px;
    height: 18px;
    border-radius: 999px;
    background: rgba(34,197,94,.22);
    color: #bbf7d0;
    font-size: 12px;
}

.home-v102-quick {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
}

.home-v102-quick a {
    color: #e0f2fe;
    text-decoration: none;
    border: 1px solid rgba(255,255,255,.18);
    background: rgba(255,255,255,.09);
    border-radius: 12px;
    padding: 9px 11px;
    font-size: 13px;
    font-weight: 750;
}

.home-v102-quick a:hover {
    background: #fff;
    color: #e11d48;
    border-color: rgba(255,255,255,.85);
    transform: translateY(-1px);
}

.home-v102-hero__visual {
    position: relative;
    min-height: 285px;
}

.home-v102-hero__visual img {
    width: 100%;
    height: 285px;
    object-fit: cover;
    border-radius: 26px;
    box-shadow: 0 28px 80px rgba(15,23,42,.35);
    border: 1px solid rgba(255,255,255,.24);
}

.home-v102-card {
    position: absolute;
    width: min(270px, 75%);
    border-radius: 22px;
    background: rgba(255,255,255,.95);
    color: #0f172a;
    box-shadow: 0 24px 70px rgba(15,23,42,.28);
    padding: 18px;
    border: 1px solid rgba(226,232,240,.85);
}

.home-v102-card span,
.home-v102-card small {
    display: block;
    color: #64748b;
    font-size: 12px;
    font-weight: 750;
}

.home-v102-card strong {
    display: block;
    margin: 4px 0 5px;
    font-size: 18px;
    line-height: 1.2;
}

.home-v102-card--price {
    left: -24px;
    bottom: 42px;
}

.home-v102-card--catalog {
    right: -18px;
    top: 48px;
}

.home-v102-strip {
    background: #fff;
    border-bottom: 1px solid #e2e8f0;
}

.home-v102-strip__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1px;
    background: #e2e8f0;
    border-left: 1px solid #e2e8f0;
    border-right: 1px solid #e2e8f0;
}

.home-v102-strip__grid > div {
    background: #fff;
    padding: 20px 18px;
}

.home-v102-strip strong {
    display: block;
    color: #0f172a;
    font-size: 14px;
    margin-bottom: 4px;
}

.home-v102-strip span {
    color: #64748b;
    font-size: 13px;
    line-height: 1.45;
}

.home-v102-section-title {
    align-items: end;
}

.home-v102-section-title h2 {
    letter-spacing: -.035em;
}

.home-v102-categories {
    background: #f8fafc;
}

.home-v102-category-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.home-v102-category {
    display: flex;
    min-height: 220px;
    flex-direction: column;
    text-decoration: none;
    color: #0f172a;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 24px;
    padding: 22px;
    box-shadow: 0 14px 34px rgba(15,23,42,.05);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.home-v102-category:hover {
    transform: translateY(-4px);
    border-color: rgba(225,29,72,.30);
    box-shadow: 0 22px 48px rgba(15,23,42,.10);
}

.home-v102-category__icon {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    background: #eff6ff;
    font-size: 24px;
    margin-bottom: 18px;
}

.home-v102-category strong {
    font-size: 18px;
    line-height: 1.2;
    margin-bottom: 10px;
}

.home-v102-category p {
    color: #64748b;
    line-height: 1.5;
    margin: 0 0 16px;
    font-size: 14px;
}

.home-v102-category small {
    margin-top: auto;
    color: #e11d48;
    font-weight: 800;
}

.home-v102-how {
    background: #fff;
}

.home-v102-steps {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.home-v102-steps article {
    position: relative;
    background: linear-gradient(180deg, #fff, #f8fafc);
    border: 1px solid #e2e8f0;
    border-radius: 24px;
    padding: 24px;
    min-height: 230px;
}

.home-v102-steps article > span {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 14px;
    background: #1d4ed8;
    color: #fff;
    font-weight: 900;
    margin-bottom: 20px;
    box-shadow: 0 14px 32px rgba(29,78,216,.22);
}

.home-v102-steps strong {
    display: block;
    font-size: 17px;
    line-height: 1.25;
    color: #0f172a;
    margin-bottom: 10px;
}

.home-v102-steps p {
    color: #64748b;
    line-height: 1.55;
    margin: 0;
    font-size: 14px;
}

.home-v102-products {
    background: #f8fafc;
}

.home-v102-products-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.home-v102-product {
    min-height: 100%;
}

.home-v102-usecases {
    background: #fff;
}

.home-v102-usecase-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.home-v102-usecase-grid article {
    border-radius: 24px;
    border: 1px solid #e2e8f0;
    background: #fff;
    padding: 26px;
    box-shadow: 0 14px 34px rgba(15,23,42,.05);
}

.home-v102-usecase-grid strong {
    display: block;
    font-size: 18px;
    margin-bottom: 10px;
    color: #0f172a;
}

.home-v102-usecase-grid p {
    margin: 0;
    color: #64748b;
    line-height: 1.55;
}

.home-v102-articles {
    background: #f8fafc;
}

@media (max-width: 1100px) {
    .home-v102-hero__grid {
        grid-template-columns: 1fr;
        min-height: 0;
    }

    .home-v102-hero__visual {
        min-height: 360px;
    }

    .home-v102-category-grid,
    .home-v102-steps,
    .home-v102-products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .home-v102-strip__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .home-v102-hero__grid {
        padding-top: 34px;
        padding-bottom: 34px;
        gap: 28px;
    }

    .home-v102-hero h1 {
        font-size: 40px;
    }

    .home-v102-actions,
    .home-v102-actions .button {
        width: 100%;
    }

    .home-v102-actions .button {
        justify-content: center;
    }

    .home-v102-proof,
    .home-v102-quick {
        display: grid;
        grid-template-columns: 1fr;
    }

    .home-v102-hero__visual img {
        height: 300px;
        border-radius: 22px;
    }

    .home-v102-card {
        position: relative;
        inset: auto;
        width: auto;
        margin-top: 12px;
    }

    .home-v102-card--price,
    .home-v102-card--catalog {
        left: auto;
        right: auto;
        top: auto;
        bottom: auto;
    }

    .home-v102-strip__grid,
    .home-v102-category-grid,
    .home-v102-steps,
    .home-v102-products-grid,
    .home-v102-usecase-grid {
        grid-template-columns: 1fr;
    }

    .home-v102-category,
    .home-v102-steps article {
        min-height: auto;
    }
}


/* V103 refinements */
.home-v102-categories {
    background: #f8fafc;
    padding-top: 34px;
}

.home-v102-section-title .button.ghost {
    color: #e11d48;
    border-color: rgba(225,29,72,.20);
}

.home-v102-section-title .button.ghost:hover {
    color: #be123c;
    border-color: rgba(225,29,72,.35);
    background: #fff1f2;
}

.home-v102-category {
    padding: 0;
    overflow: hidden;
    min-height: 278px;
}

.home-v102-category__media {
    height: 138px;
    display: grid;
    place-items: center;
    background: linear-gradient(180deg,#ffffff 0%,#f8fafc 100%);
    border-bottom: 1px solid #e2e8f0;
}

.home-v102-category__image {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    background: #fff;
}

.home-v102-category__image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 16px 18px;
    mix-blend-mode: multiply;
}

.home-v102-category__fallback {
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    border-radius: 18px;
    background: #fff1f2;
    color: #e11d48;
    font-size: 25px;
}

.home-v102-category__content {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 18px 20px 20px;
}

.home-v102-category__content small {
    margin-top: auto;
    color: #e11d48;
    font-weight: 850;
}

.home-v102-category:hover strong,
.home-v102-product:hover h3,
.home-v102-articles .article-card:hover strong {
    color: #e11d48;
}

.home-v102-products .price {
    color: #e11d48;
}

.home-v102-card { display: none; }

@media (max-width: 1100px) {
    .home-v102-hero__grid {
        min-height: 0;
        padding-top: 38px;
        padding-bottom: 38px;
    }

    .home-v102-hero__visual {
        min-height: 300px;
    }

    .home-v102-hero__visual img {
        height: 300px;
    }
}

@media (max-width: 760px) {
    .home-v102-categories {
        padding-top: 30px;
    }

    .home-v102-category__media {
        height: 150px;
    }
}

/* V104 full-width compact banner */
.home-v104-hero {
    min-height: 272px;
    isolation: isolate;
    background: linear-gradient(135deg, #102a7a 0%, #1d4ed8 62%, #2563eb 100%);
}

.home-v104-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(90deg,
            rgba(16,42,122,.96) 0%,
            rgba(29,78,216,.88) 33%,
            rgba(29,78,216,.54) 52%,
            rgba(29,78,216,.18) 70%,
            rgba(29,78,216,.06) 100%);
}

.home-v104-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(circle at 18% 15%, rgba(255,255,255,.16), transparent 28%),
        radial-gradient(circle at 54% 120%, rgba(225,29,72,.16), transparent 34%);
    pointer-events: none;
}

.home-v104-hero__banner {
    position: absolute;
    inset: 0;
    z-index: -2;
    overflow: hidden;
}

.home-v104-hero__banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center right;
    opacity: .92;
}

.home-v104-hero__inner {
    position: relative;
    z-index: 1;
    min-height: 272px;
    display: flex;
    align-items: center;
    padding-top: 24px;
    padding-bottom: 24px;
}

.home-v104-hero__copy {
    max-width: 660px;
}

.home-v104-hero .home-v102-eyebrow {
    margin-bottom: 12px;
    padding: 8px 11px;
    font-size: 11px;
    background: rgba(255,255,255,.13);
    border-color: rgba(255,255,255,.24);
}

.home-v104-hero h1 {
    max-width: 640px;
    font-size: clamp(32px, 4vw, 52px);
    line-height: .98;
    text-shadow: 0 14px 42px rgba(15,23,42,.28);
}

.home-v104-hero .home-v102-lead {
    max-width: 570px;
    margin-top: 12px;
    font-size: clamp(15px, 1.1vw, 17px);
    line-height: 1.45;
}

.home-v104-hero .home-v102-actions {
    margin-top: 14px;
}

.home-v104-hero .home-v102-actions .button {
    min-height: 40px;
    padding: 10px 16px;
}

.home-v104-hero .home-v102-quick {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 8px;
    margin-top: 14px;
    max-width: min(100%, 760px);
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: thin;
}

.home-v104-hero .home-v102-quick a {
    flex: 0 0 auto;
    white-space: nowrap;
    color: #fff;
    background: rgba(255,255,255,.12);
    border-color: rgba(255,255,255,.26);
    border-radius: 999px;
    padding: 8px 12px;
    font-size: 12px;
    box-shadow: 0 10px 26px rgba(15,23,42,.14);
}

.home-v104-hero .home-v102-quick a:hover {
    color: #e11d48;
    background: #fff;
    border-color: #fff;
}

.home-v104-hero .home-v102-proof,
.home-v104-hero .home-v102-hero__visual,
.home-v104-hero .home-v102-card {
    display: none !important;
}

.home-v102-categories {
    padding-top: 30px;
}

@media (max-width: 1100px) {
    .home-v104-hero,
    .home-v104-hero__inner {
        min-height: 282px;
    }

    .home-v104-hero::before {
        background: linear-gradient(90deg,
            rgba(16,42,122,.96) 0%,
            rgba(29,78,216,.90) 48%,
            rgba(29,78,216,.44) 100%);
    }

    .home-v104-hero__banner img {
        object-position: 58% center;
    }
}

@media (max-width: 760px) {
    .home-v104-hero,
    .home-v104-hero__inner {
        min-height: 0;
    }

    .home-v104-hero__inner {
        padding-top: 28px;
        padding-bottom: 28px;
    }

    .home-v104-hero::before {
        background: linear-gradient(90deg,
            rgba(16,42,122,.97) 0%,
            rgba(29,78,216,.92) 58%,
            rgba(29,78,216,.58) 100%);
    }

    .home-v104-hero__banner img {
        object-position: 64% center;
        opacity: .64;
    }

    .home-v104-hero h1 {
        font-size: 38px;
    }

    .home-v104-hero .home-v102-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .home-v104-hero .home-v102-quick {
        margin-right: -20px;
        padding-right: 20px;
    }
}

/* V105: desktop quick links without scroll, lower hero, clean category image/content separation */
.home-v104-hero,
.home-v104-hero__inner {
    min-height: 218px;
}

.home-v104-hero__inner {
    padding-top: 18px;
    padding-bottom: 18px;
}

.home-v104-hero__copy {
    max-width: 100%;
    width: 100%;
}

.home-v104-hero h1,
.home-v104-hero .home-v102-lead,
.home-v104-hero .home-v102-actions {
    max-width: 640px;
}

.home-v104-hero h1 {
    font-size: clamp(30px, 3.45vw, 46px);
}

.home-v104-hero .home-v102-quick {
    width: 100%;
    max-width: none;
    overflow: visible;
    flex-wrap: nowrap;
    gap: 7px;
    padding-bottom: 0;
}

.home-v104-hero .home-v102-quick a {
    flex: 1 1 0;
    min-width: 0;
    text-align: center;
    justify-content: center;
    padding: 8px 10px;
    font-size: 11.5px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.home-v102-category-grid {
    align-items: stretch;
}

.home-v102-category {
    min-height: 0;
    display: flex;
    flex-direction: column;
}

.home-v102-category__media {
    flex: 0 0 156px;
    height: 156px;
    min-height: 156px;
    padding: 0;
    overflow: hidden;
}

.home-v102-category__image,
.home-v102-category__image img {
    display: block;
}

.home-v102-category__image img {
    object-fit: contain;
    padding: 14px 18px;
}

.home-v102-category__content {
    position: relative;
    z-index: 1;
    min-height: 160px;
    background: #fff;
    border-top: 1px solid #eef2f7;
}

.home-v102-category__content strong {
    display: block;
    min-height: 42px;
}

.home-v102-category__content p {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

@media (max-width: 1180px) {
    .home-v104-hero .home-v102-quick {
        overflow-x: auto;
        padding-bottom: 4px;
        scrollbar-width: thin;
    }

    .home-v104-hero .home-v102-quick a {
        flex: 0 0 auto;
        font-size: 12px;
    }
}

@media (max-width: 760px) {
    .home-v104-hero__inner {
        padding-top: 24px;
        padding-bottom: 24px;
    }

    .home-v104-hero h1 {
        font-size: 34px;
    }

    .home-v104-hero .home-v102-quick {
        margin-right: -20px;
        padding-right: 20px;
    }

    .home-v102-category__media {
        flex-basis: 170px;
        height: 170px;
        min-height: 170px;
    }

    .home-v102-category__content {
        min-height: 0;
    }
}

/* PAR24-HOMEPAGE-UX-V111: przewijane artykuły na stronie głównej */
.home-v111-articles .home-v102-section-title p{
    max-width: 720px;
}
.home-v111-article-rail{
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(280px, 1fr);
    grid-template-rows: 1fr;
    gap: 18px;
    overflow-x: auto;
    padding: 2px 2px 14px;
    scroll-snap-type: x proximity;
    scrollbar-width: thin;
}
.home-v111-article-card{
    min-height: 220px;
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
}
.home-v111-article-card p{
    flex: 1;
}
.home-v111-article-card .article-card__more{
    color: var(--red, #d62828);
    font-weight: 800;
    margin-top: 12px;
}
@media (min-width: 1024px){
    .home-v111-article-rail{
        grid-auto-columns: calc((100% - 36px) / 3);
    }
}
@media (max-width: 720px){
    .home-v111-article-rail{
        grid-auto-columns: minmax(250px, 86vw);
    }
}


/* PAR24-HOMEPAGE-UX-V112: artykuły przewijane strzałkami, bez poziomego scrolla strony */
.home-v112-article-slider{
    position:relative;
}
.home-v112-article-slider .home-v111-article-rail{
    overflow-x:hidden;
    scroll-behavior:smooth;
    scrollbar-width:none;
    padding:2px 2px 10px;
}
.home-v112-article-slider .home-v111-article-rail::-webkit-scrollbar{
    display:none;
}
.home-v112-slider-arrow{
    position:absolute;
    top:50%;
    transform:translateY(-50%);
    z-index:3;
    width:42px;
    height:42px;
    border-radius:50%;
    border:1px solid rgba(210,220,235,.95);
    background:rgba(255,255,255,.96);
    box-shadow:0 14px 35px rgba(15,23,42,.14);
    color:#0f67d5;
    font-size:34px;
    line-height:1;
    font-weight:800;
    cursor:pointer;
    display:grid;
    place-items:center;
    transition:.18s ease;
}
.home-v112-slider-arrow:hover:not(:disabled){
    background:#fff;
    color:#d62828;
    transform:translateY(-50%) scale(1.04);
}
.home-v112-slider-arrow:disabled{
    opacity:.32;
    cursor:default;
    box-shadow:none;
}
.home-v112-slider-arrow--prev{left:-18px;}
.home-v112-slider-arrow--next{right:-18px;}
.home-v112-article-slider:not(.is-scrollable) .home-v112-slider-arrow{display:none;}
@media (max-width:760px){
    .home-v112-slider-arrow{width:38px;height:38px;font-size:30px;}
    .home-v112-slider-arrow--prev{left:6px;}
    .home-v112-slider-arrow--next{right:6px;}
    .home-v112-article-slider .home-v111-article-rail{padding-left:0;padding-right:0;}
}
