/* =========================================================
   PRODUKTY PAGE
========================================================= */

.products-page-hero {
    position: relative;
    overflow: hidden;

    padding: 25px 0 32px;

    background:
        radial-gradient(circle at top left,
            rgba(86,224,0,.12),
            transparent 30%),

        radial-gradient(circle at top right,
            rgba(255,255,255,.06),
            transparent 28%),

        #080a0b;

    color: #fff;
}

.products-page-hero-grid {
    display: grid;
    grid-template-columns: 1.4fr .6fr;
    gap: 40px;
    align-items: center;
}

.products-page-hero h1 {
    margin: 18px 0 20px;
    max-width: 760px;
}

.products-page-hero p {
    max-width: 620px;
    line-height: 1.8;
    color: #d3d9de;
    font-size: 16px;
}

.products-page-hero-card {
    background: rgba(255,255,255,.04);

    border: 1px solid rgba(255,255,255,.08);

    border-radius: 28px;

    padding: 40px;

    text-align: center;

    backdrop-filter: blur(14px);

    box-shadow:
        0 20px 50px rgba(0,0,0,.25);
}

.products-page-hero-card strong {
    display: block;

    font-size: 78px;

    line-height: 1;

    font-family: var(--font-head);

    color: var(--lime);
}

.products-page-hero-card span {
    display: block;

    margin-top: 12px;

    font-size: 15px;

    font-weight: 800;

    color: #c7d0d5;
}


/* =========================================================
   FILTER
========================================================= */

.products-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    padding: 25px 0 35px;
    margin-bottom: 60px;
}

.product-filter-btn {
    border: 0;

    background: #edf0f2;

    color: #14181c;

    padding: 15px 24px;

    border-radius: 999px;

    font-weight: 900;

    text-transform: uppercase;

    cursor: pointer;

    transition: .25s ease;
}

.product-filter-btn:hover {
    transform: translateY(-2px);
}

.product-filter-btn.active {
    background: var(--lime);

    color: #071004;

    box-shadow:
        0 10px 30px rgba(86,224,0,.22);
}


/* =========================================================
   CATEGORY
========================================================= */

.products-category {
    margin-bottom: 90px;
}

.products-category.hidden {
    display: none;
}

.products-category-head {
    margin-bottom: 34px;
}

.products-category-head h2 {
    margin-top: 12px;
}


/* =========================================================
   GRID
========================================================= */

.products-page-grid {
    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 26px;
}

.products-page-card {
    position: relative;

    background: #fff;

    border: 1px solid #dfe3e6;

    border-radius: 24px;

    overflow: hidden;

    transition:
        transform .25s ease,
        box-shadow .25s ease,
        border-color .25s ease;
}

.products-page-card:hover {
    transform: translateY(-6px);

    border-color: var(--lime);

    box-shadow:
        0 22px 50px rgba(0,0,0,.08);
}

.products-page-card-img {
    position: relative;

    height: 240px;

    background:
        radial-gradient(circle at top,
            rgba(86,224,0,.08),
            transparent 55%),

        #f5f7f8;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 26px;
}

.products-page-card-img img {
    width: 100%;
    max-width: 220px;
    max-height: 180px;

    object-fit: contain;

    transition: transform .35s ease;
}

.products-page-card:hover img {
    transform: scale(1.06);
}

.products-page-card-body {
    padding: 28px;
}

.products-page-card h3 {
    margin: 0 0 12px;

    font-size: 34px;
}

.products-page-card p {
    margin: 0;

    color: #5c666e;

    line-height: 1.7;

    font-size: 15px;
}

.products-page-card-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;

    margin-top: 26px;
}

.product-detail-link {
    color: var(--lime);

    font-weight: 900;

    text-transform: uppercase;

    font-size: 13px;
}

.product-demand-link {
    padding: 12px 18px;

    border-radius: 12px;

    background: #0f1315;

    color: #fff;

    font-size: 13px;

    font-weight: 900;

    text-transform: uppercase;
}


/* =========================================================
   DETAIL
========================================================= */

.product-detail-hero {
    position: relative;

    overflow: hidden;

    background:
        radial-gradient(circle at top left,
            rgba(86,224,0,.14),
            transparent 35%),

        #080a0b;

    color: #fff;

    padding: 25px 0;
}

.product-detail-hero-grid {
    display: grid;

    grid-template-columns: 1.1fr .9fr;

    gap: 60px;

    align-items: center;
}

.back-link {
    display: inline-flex;

    margin-bottom: 26px;

    color: #d2d8dc;

    font-weight: 800;
}

.product-detail-copy h1 {
    margin: 14px 0 20px;
}

.product-detail-copy p {
    max-width: 620px;

    line-height: 1.8;

    color: #d0d6db;
}

.product-detail-image {
    display: flex;
    justify-content: center;
}

.product-detail-image img {
    width: 100%;
    max-width: 230px;

    object-fit: contain;

    filter:
        drop-shadow(0 25px 40px rgba(0,0,0,.4));
}


/* =========================================================
   DETAIL LAYOUT
========================================================= */

.product-detail-section {
    padding: 70px 0;
}

.product-detail-layout {
    display: grid;

    grid-template-columns: 1fr 340px;

    gap: 40px;

    align-items: start;
}

.detail-box {
    background: #fff;

    border: 1px solid #e1e5e8;

    border-radius: 24px;

    padding: 34px;

    margin-bottom: 28px;
}

.detail-box p {
    line-height: 1.8;

    color: #59636b;
}


/* =========================================================
   TECH PARAMS
========================================================= */

.tech-param-grid {
    display: grid;

    grid-template-columns: repeat(2, 1fr);

    gap: 18px;
}

.tech-param {
    background: #f5f7f8;

    border-radius: 18px;

    padding: 22px;
}

.tech-param > span:first-child {
    display: block;

    margin-bottom: 10px;

    color: #6a747b;

    font-size: 13px;

    font-weight: 800;

    text-transform: uppercase;
}

.tech-param strong {
    font-size: 20px;

    color: #121619;
}


/* =========================================================
   TAGS
========================================================= */

.consistency-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.tech-param .info-tag {
    position: relative;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 54px;
    height: 40px;
    padding: 0 16px;

    margin: 0;

    border-radius: 999px;

    background: rgba(86,224,0,.12);
    color: #1c260e;

    font-family: var(--font);
    font-size: 13px;
    font-weight: 900;
    line-height: 1;

    text-transform: none;

    cursor: pointer;

    transition:
        background .2s ease,
        transform .2s ease;
}

.tech-param .info-tag:hover,
.tech-param .info-tag.tooltip-open {
    transform: translateY(-2px);
    background: rgba(86,224,0,.18);
}


/* =========================================================
   TOOLTIP
========================================================= */

.tech-param .info-tag::after {
    content: attr(data-tooltip);

    position: absolute;

    left: 50%;
    bottom: calc(100% + 14px);

    width: 300px;
    padding: 16px 18px;

    border-radius: 16px;

    background: #101416;
    color: #fff;

    white-space: pre-line;

    font-family: var(--font);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.55;
    text-align: left;
    text-transform: none;

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transform: translateX(-50%) translateY(8px);

    transition:
        opacity .2s ease 1s,
        transform .2s ease 1s,
        visibility 0s linear 1s;

    box-shadow: 0 20px 40px rgba(0,0,0,.35);

    z-index: 999;
}

.tech-param .info-tag::before {
    content: "";

    position: absolute;

    left: 50%;
    bottom: calc(100% + 7px);

    width: 12px;
    height: 12px;

    background: #101416;

    opacity: 0;
    visibility: hidden;

    transform: translateX(-50%) rotate(45deg);

    transition:
        opacity .2s ease 1s,
        visibility 0s linear 1s;

    z-index: 1000;
}

.tech-param .info-tag:hover::after,
.tech-param .info-tag.tooltip-open::after {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.tech-param .info-tag:hover::before,
.tech-param .info-tag.tooltip-open::before {
    opacity: 1;
    visibility: visible;
}
/* =========================================================
   ASIDE
========================================================= */

.product-detail-aside {
    position: sticky;

    top: 120px;
}

.demand-card {
    background:
        radial-gradient(circle at top,
            rgba(86,224,0,.12),
            transparent 60%),

        #0f1315;

    color: #fff;

    border-radius: 28px;

    padding: 34px;

    overflow: hidden;
}

.demand-card h2 {
    margin-bottom: 20px;

    font-size: 36px;
}

.demand-card p {
    line-height: 1.8;

    color: #d1d8dc;

    margin-bottom: 28px;
}

.demand-card .btn {
    width: 100%;

    margin-bottom: 14px;
}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 1100px) {

    .products-page-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .product-detail-layout {
        grid-template-columns: 1fr;
    }

    .product-detail-aside {
        position: relative;
        top: auto;
    }

}

@media (max-width: 780px) {

    .products-page-hero-grid,
    .product-detail-hero-grid {
        grid-template-columns: 1fr;
    }

    .products-page-grid {
        grid-template-columns: 1fr;
    }

    .tech-param-grid {
        grid-template-columns: 1fr;
    }

    .products-page-card h3 {
        font-size: 28px;
    }

    .product-detail-copy h1 {
        font-size: 54px;
    }

}

@media (max-width: 560px) {

    .products-page-hero,
    .product-detail-hero {
        padding: 55px 0;
    }

    .products-page-card-body,
    .detail-box,
    .demand-card {
        padding: 24px;
    }

    .products-filter {
        gap: 10px;
    }

    .product-filter-btn {
        width: 100%;
    }

}