@font-face {
    font-family: "DIN-Medium";
    src: url("../fonts/DIN-Medium.otf") format("opentype");
    font-weight: normal;
    font-style: normal;
}

.banner {
    position: relative;
    width: 100%;
    height: 600px;
    background-image: url('../images/products/hf.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    margin-top: -70px;
    padding-top: 70px;
}

.banner .container {
    position: relative;
    width: 100%;
    top: 100px;
    height: fit-content;
    padding: 0 20px;
}

.banner h1 {
    font-size: 48px;
    margin-bottom: 8%;
    color: #0066FF;
    font-family: var(--font-heading);
}

.banner p {
    font-size: 24px;
    max-width: 600px;
    color: #333333;
    font-family: var(--font-heading);
}

.products {
    padding: 78px 0 96px;
    background: #F2F4FA;
}

.products .container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 24px;
}

.products-heading {
    max-width: 460px;
    margin: 0 auto 34px;
    text-align: center;
}

.products .section-title {
    margin-bottom: 10px;
    color: #2E3340;
    font-family: var(--font-heading);
    font-size: 40px;
    font-weight: 600;
    line-height: 1.2;
}

.products .section-subtitle {
    margin-bottom: 0;
    color: #7A818C;
    font-family: var(--font-primary);
    font-size: 14px;
    line-height: 1.72;
}

.products-roadmap {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 56px;
    padding: 12px 0 0;
}

.products-roadmap-scroll {
    max-height: 980px;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    -ms-overflow-style: none;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.products-roadmap-scroll::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
}

.products-roadmap::before {
    content: "";
    position: absolute;
    top: 22px;
    bottom: 8px;
    left: 58px;
    width: 1px;
    background: repeating-linear-gradient(
        to bottom,
        rgba(79, 160, 255, 0.72) 0 4px,
        transparent 4px 10px
    );
}

.products-roadmap--empty::before {
    display: none;
}

.products-empty-state {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 220px;
    padding: 32px 20px;
    border: 1px dashed rgba(14, 118, 255, 0.24);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.72);
    color: #7A818C;
    font-family: var(--font-primary);
    font-size: 16px;
    line-height: 1.75;
    text-align: center;
}

.roadmap-section {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 116px minmax(0, 1fr);
    gap: 38px;
    align-items: start;
}

.roadmap-section-label-wrap {
    position: sticky;
    top: 0;
    align-self: start;
    z-index: 2;
    display: flex;
    justify-content: center;
    padding: 0 0 6px;
    background: #F2F4FA;
}

.roadmap-section-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 114px;
    min-height: 40px;
    padding: 8px 18px;
    border-radius: 2px;
    background: #D9EAFE;
    color: #0E76FF;
    box-shadow: none;
    font-family: var(--font-heading);
    font-size: 18px;
    line-height: 1;
    letter-spacing: 0.08em;
    transition: background 0.24s ease, color 0.24s ease, box-shadow 0.24s ease;
}

.roadmap-section.is-active .roadmap-section-label {
    background: linear-gradient(135deg, #0E76FF 0%, #3297FF 100%);
    color: #FFFFFF;
    box-shadow: 0 12px 28px rgba(49, 124, 255, 0.14);
}

.roadmap-section-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.roadmap-product-card {
    min-height: 258px;
    padding: 18px 14px 12px;
    border: 1px solid #ECEFF5;
    background: #FFFFFF;
    box-shadow: 0 12px 24px rgba(46, 56, 79, 0.04);
    transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.roadmap-product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 36px rgba(46, 56, 79, 0.09);
}

.roadmap-product-media {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 170px;
    overflow: hidden;
}

.roadmap-product-image {
    display: block;
    max-width: 136px;
    max-height: 136px;
    object-fit: contain;
    transition: opacity 0.24s ease, transform 0.24s ease;
}

.roadmap-product-image--empty {
    opacity: 0;
}

.roadmap-product-qr {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.96);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.24s ease;
}

.roadmap-product-qr-image {
    width: 104px;
    height: 104px;
    object-fit: cover;
    border-radius: 6px;
    box-shadow: 0 12px 24px rgba(37, 58, 96, 0.12);
}

.roadmap-product-qr-text {
    margin: 0;
    color: #2E3340;
    font-family: var(--font-primary);
    font-size: 12px;
    line-height: 1.5;
    letter-spacing: 0.04em;
}

.roadmap-product-card:hover .roadmap-product-image {
    opacity: 0;
    transform: scale(0.92);
}

.roadmap-product-card:hover .roadmap-product-qr {
    opacity: 1;
}

.roadmap-product-body {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.roadmap-product-title {
    margin: 0;
    color: #545C69;
    font-family: var(--font-primary);
    font-size: 13px;
    font-weight: 400;
    line-height: 1.72;
    word-break: break-word;
}

.roadmap-product-price {
    display: inline-flex;
    align-items: flex-end;
    gap: 4px;
    margin: 0;
    color: #2E3340;
    font-family: "DIN-Medium", var(--font-primary);
    line-height: 1;
}

.roadmap-product-price-currency {
    font-size: 13px;
    transform: translateY(-1px);
}

.roadmap-product-price-value {
    font-size: 28px;
}

@media (max-width: 1024px) {
    .products {
        padding: 68px 0 88px;
    }

    .products .container {
        padding: 0 20px;
    }

    .products-roadmap::before {
        left: 48px;
    }

    .products-roadmap-scroll {
        max-height: 900px;
    }

    .roadmap-section {
        grid-template-columns: 96px minmax(0, 1fr);
        gap: 26px;
    }

    .roadmap-section-label {
        min-width: 96px;
        font-size: 16px;
    }

    .roadmap-section-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .banner {
        height: 400px;
    }

    .banner h1 {
        font-size: 36px;
    }

    .banner p {
        font-size: 18px;
        padding: 0 20px;
    }

    .products {
        padding: 56px 0 76px;
    }

    .products .container {
        padding: 0 18px;
    }

    .products .section-title {
        font-size: 32px;
    }

    .products-roadmap {
        gap: 40px;
    }

    .products-empty-state {
        min-height: 200px;
        font-size: 15px;
    }

    .products-roadmap::before {
        left: 38px;
    }

    .products-roadmap-scroll {
        max-height: 760px;
    }

    .roadmap-section {
        grid-template-columns: 76px minmax(0, 1fr);
        gap: 18px;
    }

    .roadmap-section-label-wrap {
        justify-content: flex-start;
        padding-bottom: 6px;
    }

    .roadmap-section-label {
        min-width: 76px;
        padding: 8px 12px;
        font-size: 14px;
    }

    .roadmap-section-grid {
        gap: 18px;
    }

    .roadmap-product-card {
        min-height: 236px;
    }

    .roadmap-product-media {
        min-height: 150px;
    }

    .roadmap-product-qr-image {
        width: 96px;
        height: 96px;
    }
}

@media (max-width: 480px) {
    .banner {
        height: 300px;
    }

    .banner h1 {
        font-size: 28px;
    }

    .banner p {
        font-size: 16px;
    }

    .products {
        padding: 48px 0 64px;
    }

    .products-heading {
        margin-bottom: 28px;
    }

    .products-roadmap::before {
        display: none;
    }

    .products-roadmap-scroll {
        max-height: 680px;
    }

    .products-empty-state {
        min-height: 180px;
        padding: 24px 16px;
        font-size: 14px;
    }

    .roadmap-section {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .roadmap-section-label-wrap {
        padding: 0 0 4px;
    }

    .roadmap-section-label {
        min-width: 96px;
    }

    .roadmap-section-grid {
        grid-template-columns: 1fr;
    }

    .roadmap-product-card {
        min-height: auto;
    }
}

@media (prefers-reduced-motion: reduce) {
    .roadmap-product-card {
        transition: none;
    }

    .roadmap-product-card:hover {
        transform: none;
    }

    .roadmap-product-image,
    .roadmap-product-qr {
        transition: none;
    }
}
