:root {
    --jcm-blue: #0659b7;
    --jcm-blue-deep: #073b7a;
    --jcm-cyan: #07a9df;
    --jcm-yellow: #ffd934;
    --jcm-ink: #10233f;
    --jcm-muted: #5e6e82;
    --jcm-surface: #ffffff;
    --jcm-bg: #f3f8fd;
}

body.page-id-579 .wp-block-post-title,
body.page-id-579 .entry-title {
    display: none !important;
}

.jcm-menu,
.jcm-menu * {
    box-sizing: border-box;
}

.jcm-menu {
    position: relative;
    left: 50%;
    width: min(1180px, calc(100vw - 28px));
    max-width: none;
    margin: 24px auto 64px;
    color: var(--jcm-ink);
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    transform: translateX(-50%);
}

.jcm-hero {
    position: relative;
    overflow: hidden;
    padding: 38px clamp(24px, 5vw, 64px);
    border-radius: 26px;
    background: linear-gradient(120deg, var(--jcm-blue-deep), var(--jcm-blue) 60%, var(--jcm-cyan));
    box-shadow: 0 22px 54px rgba(7, 59, 122, .24);
    color: #fff;
}

.jcm-hero::after {
    position: absolute;
    top: -90px;
    right: -30px;
    width: 260px;
    height: 260px;
    border: 44px solid rgba(255, 217, 52, .18);
    border-radius: 50%;
    content: "";
}

.jcm-hero__logo {
    position: relative;
    z-index: 1;
    display: block;
    width: min(350px, 72%);
    max-height: 92px;
    margin: 0 0 22px;
    object-fit: contain;
    object-position: left center;
}

.jcm-hero h1 {
    position: relative;
    z-index: 1;
    margin: 0;
    color: #fff;
    font-size: clamp(34px, 5vw, 62px);
    font-weight: 900;
    letter-spacing: -.045em;
    line-height: .98;
}

.jcm-hero p {
    position: relative;
    z-index: 1;
    max-width: 660px;
    margin: 16px 0 0;
    color: rgba(255, 255, 255, .88);
    font-size: clamp(16px, 2vw, 20px);
}

.jcm-tabs {
    position: sticky;
    z-index: 20;
    top: 8px;
    display: flex;
    gap: 9px;
    overflow-x: auto;
    margin: 18px 0 24px;
    padding: 10px;
    border: 1px solid rgba(6, 89, 183, .1);
    border-radius: 18px;
    background: rgba(255, 255, 255, .94);
    box-shadow: 0 10px 30px rgba(23, 57, 90, .1);
    scrollbar-width: thin;
    backdrop-filter: blur(14px);
}

.jcm-tab {
    flex: 1 0 auto;
    min-height: 46px;
    padding: 10px 18px;
    border: 0;
    border-radius: 12px;
    background: transparent;
    color: var(--jcm-blue-deep);
    cursor: pointer;
    font: inherit;
    font-size: 15px;
    font-weight: 800;
    transition: background .18s ease, color .18s ease, transform .18s ease;
}

.jcm-tab:hover {
    background: #edf6ff;
}

.jcm-tab:focus-visible {
    outline: 3px solid rgba(7, 169, 223, .34);
    outline-offset: 2px;
}

.jcm-tab.is-active {
    background: var(--jcm-blue);
    color: #fff;
    box-shadow: 0 7px 18px rgba(6, 89, 183, .24);
}

.jcm-panel[hidden] {
    display: none !important;
}

.jcm-category-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin: 0 0 18px;
    padding: 4px 4px 0;
}

.jcm-category-heading h2 {
    margin: 0;
    color: var(--jcm-blue-deep);
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 900;
    letter-spacing: -.035em;
}

.jcm-category-heading p {
    margin: 6px 0 0;
    color: var(--jcm-muted);
}

.jcm-category-heading img {
    width: 110px;
    height: 76px;
    border-radius: 14px;
    object-fit: cover;
}

.jcm-products {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.jcm-product {
    display: grid;
    grid-template-columns: 78px minmax(0, 1fr) auto;
    align-items: center;
    gap: 16px;
    min-height: 106px;
    margin: 0;
    padding: 14px;
    border: 1px solid #e3edf7;
    border-radius: 18px;
    background: var(--jcm-surface);
    box-shadow: 0 8px 24px rgba(27, 65, 101, .07);
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.jcm-product:hover {
    transform: translateY(-2px);
    border-color: rgba(6, 89, 183, .3);
    box-shadow: 0 14px 32px rgba(27, 65, 101, .12);
}

.jcm-product__image,
.jcm-product__placeholder {
    display: grid;
    width: 78px;
    height: 78px;
    place-items: center;
    overflow: hidden;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 14px;
    background: linear-gradient(145deg, #e7f4ff, #cfe9ff);
}

.jcm-product__image {
    cursor: zoom-in;
}

.jcm-product__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.jcm-product__image img[src^="img/"] {
    visibility: hidden;
}

.jcm-product__placeholder {
    color: rgba(6, 89, 183, .45);
    font-weight: 900;
}

.jcm-product__content {
    min-width: 0;
}

.jcm-product__content h3 {
    margin: 0;
    color: var(--jcm-ink);
    font-size: 16px;
    font-weight: 850;
    line-height: 1.25;
}

.jcm-product__content p {
    margin: 6px 0 0;
    color: var(--jcm-muted);
    font-size: 13px;
    line-height: 1.4;
}

.jcm-product__price {
    min-width: 74px;
    padding: 10px 11px;
    border-radius: 12px;
    background: var(--jcm-yellow);
    color: #213149;
    font-size: 17px;
    font-weight: 900;
    text-align: center;
    white-space: nowrap;
}

.jcm-empty {
    padding: 32px;
    border: 1px dashed #bfd0e3;
    border-radius: 16px;
    color: var(--jcm-muted);
    text-align: center;
}

.jcm-modal[hidden] {
    display: none !important;
}

.jcm-modal {
    position: fixed;
    z-index: 999999;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 20px;
}

.jcm-modal__backdrop {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    background: rgba(3, 18, 37, .84);
    cursor: zoom-out;
    backdrop-filter: blur(8px);
}

.jcm-modal__dialog {
    position: relative;
    width: min(780px, 94vw);
    max-height: 90vh;
    padding: 14px;
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 30px 90px rgba(0, 0, 0, .38);
}

.jcm-modal__dialog img {
    display: block;
    width: 100%;
    max-height: 72vh;
    border-radius: 14px;
    object-fit: contain;
}

.jcm-modal__dialog p {
    margin: 12px 8px 4px;
    color: var(--jcm-ink);
    font-weight: 800;
    text-align: center;
}

.jcm-modal__close {
    position: absolute;
    z-index: 2;
    top: -14px;
    right: -14px;
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    padding: 0;
    border: 3px solid #fff;
    border-radius: 50%;
    background: var(--jcm-blue-deep);
    color: #fff;
    cursor: pointer;
    font-size: 28px;
    line-height: 1;
}

body.jcm-modal-open {
    overflow: hidden;
}

@media (max-width: 820px) {
    .jcm-products {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 520px) {
    .jcm-menu {
        width: min(100vw - 18px, 1180px);
        margin-top: 9px;
    }

    .jcm-hero {
        padding: 28px 21px;
        border-radius: 20px;
    }

    .jcm-tabs {
        top: 4px;
        margin-top: 12px;
        padding: 7px;
        border-radius: 15px;
    }

    .jcm-tab {
        min-height: 42px;
        padding: 9px 14px;
        font-size: 14px;
    }

    .jcm-product {
        grid-template-columns: 62px minmax(0, 1fr) auto;
        gap: 11px;
        min-height: 88px;
        padding: 11px;
        border-radius: 15px;
    }

    .jcm-product__image,
    .jcm-product__placeholder {
        width: 62px;
        height: 62px;
        border-radius: 11px;
    }

    .jcm-product__content h3 {
        font-size: 14px;
    }

    .jcm-product__price {
        min-width: 64px;
        padding: 8px 7px;
        font-size: 15px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .jcm-tab,
    .jcm-product {
        transition: none;
    }
}
