.home-custom-order {
    padding: 18px 0 64px;
    background: #fff;
}

.home-custom-order__inner {
    display: grid;
    grid-template-columns: minmax(340px, 400px) minmax(0, 1fr);
    min-height: 360px;
    overflow: hidden;
    color: #f7fbfd;
    background: #1f3039;
    border-radius: 22px;
    box-shadow: 0 24px 60px rgba(31, 48, 57, .16);
}

.home-custom-order__media {
    position: relative;
    min-height: 360px;
    overflow: hidden;
    color: #fff;
    background: #fff;
}

.home-custom-order__media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 55%, rgba(12, 28, 36, .72));
    pointer-events: none;
}

.home-custom-order__media img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform .55s cubic-bezier(.2, .7, .2, 1);
}

.home-custom-order__media span {
    position: absolute;
    z-index: 1;
    right: 28px;
    bottom: 24px;
    left: 28px;
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.home-custom-order__content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 34px clamp(36px, 4vw, 52px);
}

.home-custom-order__kicker {
    margin: 0 0 12px;
    color: #82c3df;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.home-custom-order h2 {
    max-width: 580px;
    margin: 0 0 18px;
    color: #fff;
    font-size: clamp(30px, 2.7vw, 42px);
    line-height: 1.06;
    letter-spacing: -.035em;
}

.home-custom-order__content > p:not(.home-custom-order__kicker) {
    max-width: 620px;
    margin: 0;
    color: #d8e2e7;
    font-size: 17px;
    line-height: 1.65;
}

.home-custom-order ul {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 20px 0 22px;
    padding: 0;
    list-style: none;
}

.home-custom-order li {
    padding: 7px 12px;
    color: #e9f4f8;
    font-size: 13px;
    font-weight: 700;
    background: rgba(255, 255, 255, .07);
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 999px;
}

.home-custom-order__button {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    gap: 18px;
    min-height: 52px;
    padding: 12px 20px;
    color: #18313d;
    font-size: 15px;
    font-weight: 900;
    background: #fff;
    border-radius: 9px;
    transition: color .2s ease, background .2s ease, transform .2s ease;
}

.home-custom-order__button span {
    font-size: 22px;
    line-height: 1;
    transition: transform .2s ease;
}

.home-custom-order__button:hover,
.home-custom-order__button:focus-visible {
    color: #fff;
    background: #4d93b4;
    text-decoration: none;
    transform: translateY(-2px);
}

.home-custom-order__button:hover span,
.home-custom-order__button:focus-visible span {
    transform: translateX(4px);
}

.home-custom-order__media:hover img,
.home-custom-order__media:focus-visible img {
    transform: scale(1.018);
}

/* Practical training promo alternates the media side while keeping the custom-order visual language. */
.home-training { padding: 0 0 64px; background: #fff; }
.home-training__inner { display: grid; grid-template-columns: minmax(0, 44%) minmax(0, 56%); min-height: 360px; overflow: hidden; color: #f7fbfd; background: linear-gradient(135deg, #28414e, #1f3039); border-radius: 22px; box-shadow: 0 24px 60px rgba(31, 48, 57, .16); }
.home-training__content { display: flex; flex-direction: column; justify-content: center; padding: 22px clamp(26px, 2.5vw, 34px); }
.home-training__kicker { margin: 0 0 8px; color: #82c3df; font-size: 11px; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; }
.home-training h2 { max-width: 650px; margin: 0 0 11px; color: #fff; font-size: clamp(28px, 2.1vw, 32px); line-height: 1.04; letter-spacing: -.035em; }
.home-training__content > p:not(.home-training__kicker) { max-width: 650px; margin: 0; color: #d8e2e7; font-size: 14px; line-height: 1.45; }
.home-training ul { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 13px; padding: 0; list-style: none; }
.home-training li { padding: 5px 9px; color: #e9f4f8; font-size: 11px; font-weight: 700; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .16); border-radius: 999px; }
.home-training__actions { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; }
.home-training__actions > a:not(.home-training__button) { color: #cbe4ef; font-weight: 800; }
.home-training__button { display: inline-flex; gap: 18px; align-items: center; min-height: 46px; padding: 10px 18px; color: #18313d; font-size: 14px; font-weight: 900; background: #fff; border-radius: 9px; transition: color .2s ease, background .2s ease, transform .2s ease; }
.home-training__button:hover, .home-training__button:focus-visible { color: #fff; text-decoration: none; background: #4d93b4; transform: translateY(-2px); }
.home-training__media { position: relative; display: flex; align-items: stretch; justify-content: center; min-height: 0; overflow: hidden; background: #edf3f5; }
.home-training__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 58%, rgba(12, 28, 36, .72)); pointer-events: none; }
.home-training__media img { display: block; width: 100%; height: 100%; object-fit: contain; transition: transform .55s cubic-bezier(.2, .7, .2, 1); }
.home-training__media span { position: absolute; z-index: 1; right: 24px; bottom: 22px; left: 24px; color: #fff; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.home-training__media:hover img, .home-training__media:focus-visible img { transform: scale(1.018); }

/* Third independent direction: product manufacturing, placed after practical training. */
.home-plastic-products { padding: 0 0 64px; background: #fff; }
.home-plastic-products__inner { display: grid; grid-template-columns: minmax(0, 56%) minmax(0, 44%); min-height: 360px; overflow: hidden; color: #f7fbfd; background: linear-gradient(135deg, #1f3039, #28414e); border-radius: 22px; box-shadow: 0 24px 60px rgba(31,48,57,.16); }
.home-plastic-products__media { position: relative; display: flex; min-height: 360px; overflow: hidden; background: #fff; }
.home-plastic-products__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 62%, rgba(12,28,36,.74)); pointer-events: none; }
.home-plastic-products__media img { width: 100%; height: 100%; object-fit: contain; transition: transform .5s cubic-bezier(.2,.7,.2,1); }
.home-plastic-products__media span { position: absolute; z-index: 1; right: 24px; bottom: 20px; left: 24px; color: #fff; font-size: 11px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.home-plastic-products__content { display: flex; flex-direction: column; justify-content: center; padding: 28px clamp(28px,3vw,42px); }
.home-plastic-products__kicker { margin: 0 0 9px; color: #82c3df; font-size: 11px; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; }
.home-plastic-products h2 { margin: 0 0 13px; color: #fff; font-size: clamp(29px,2.35vw,36px); line-height: 1.04; letter-spacing: -.035em; }
.home-plastic-products__content>p:not(.home-plastic-products__kicker) { margin: 0; color: #d8e2e7; font-size: 15px; line-height: 1.5; }
.home-plastic-products ul { display: flex; flex-wrap: wrap; gap: 7px; margin: 15px 0 18px; padding: 0; list-style: none; }
.home-plastic-products li { padding: 6px 10px; color: #e9f4f8; font-size: 12px; font-weight: 800; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.16); border-radius: 999px; }
.home-plastic-products__button { display: inline-flex; gap: 18px; align-items: center; align-self: flex-start; min-height: 48px; padding: 11px 18px; color: #18313d; font-weight: 900; background: #fff; border-radius: 9px; transition: color .2s ease,background .2s ease,transform .2s ease; }
.home-plastic-products__button:hover,.home-plastic-products__button:focus-visible { color: #fff; text-decoration: none; background: #4d93b4; transform: translateY(-2px); }
.home-plastic-products__media:hover img,.home-plastic-products__media:focus-visible img { transform: scale(1.018); }

.home-plastic-products + .benefits { padding-block: 20px; background: linear-gradient(180deg,#fff,#f7fafb); }
.home-plastic-products + .benefits .benefits__grid { gap: 16px; }
.home-plastic-products + .benefits article { min-height: 104px; padding: 16px 18px; background: rgba(255,255,255,.92); border: 1px solid #e2eaee; border-radius: 14px; box-shadow: 0 8px 24px rgba(35,59,71,.06); }

/* Homepage trust icons: preserve the source artwork and modernize its frame. */
.home-training + .benefits {
    padding-block: 20px;
    background: linear-gradient(180deg, #fff, #f7fafb);
}

.home-training + .benefits .benefits__grid {
    gap: 16px;
}

.home-training + .benefits article {
    position: relative;
    min-height: 104px;
    padding: 16px 18px;
    overflow: hidden;
    background: rgba(255,255,255,.92);
    border: 1px solid #e2eaee;
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(35,59,71,.06);
    transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease, background .25s ease;
}

.home-training + .benefits article::before {
    content: "";
    position: absolute;
    top: -42px;
    left: -34px;
    width: 110px;
    height: 110px;
    background: radial-gradient(circle, rgba(77,147,180,.18), transparent 70%);
    opacity: 0;
    transition: opacity .25s ease, transform .35s ease;
}

.home-training + .benefits img {
    position: relative;
    z-index: 1;
    padding: 9px;
    background: #f2f8fa;
    border: 1px solid #dcebf1;
    border-radius: 13px;
    filter: saturate(.9);
    transition: transform .3s cubic-bezier(.2,.7,.2,1), filter .25s ease, background .25s ease;
}

.home-training + .benefits strong {
    position: relative;
    z-index: 1;
    color: #2c3940;
    font-size: 13px;
    line-height: 1.42;
}

@media (hover:hover) {
    .home-training + .benefits article:hover {
        transform: translateY(-3px);
        background: #fff;
        border-color: #b9d6e2;
        box-shadow: 0 16px 34px rgba(39,85,106,.12);
    }

    .home-training + .benefits article:hover::before {
        opacity: 1;
        transform: translate(10px, 10px);
    }

    .home-training + .benefits article:hover img {
        transform: translateY(-2px) scale(1.06);
        filter: saturate(1.05);
        background: #e8f4f8;
    }
}

@media (max-width: 900px) {
    .home-custom-order {
        padding-bottom: 48px;
    }

    .home-custom-order__inner {
        grid-template-columns: 1fr;
    }

    .home-training__inner { grid-template-columns: 1fr; }
    .home-training__media { order: -1; min-height: 0; aspect-ratio: 16 / 9; }
    .home-plastic-products__inner { grid-template-columns: 1fr; }
    .home-plastic-products__media { min-height: 0; aspect-ratio: 16 / 9; }

    .home-custom-order__media {
        min-height: 360px;
    }

    .home-training + .benefits .benefits__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .home-custom-order {
        padding: 6px 0 38px;
    }

    .home-training { padding: 0 0 38px; }
    .home-plastic-products { padding: 0 0 38px; }
    .home-training__inner { border-radius: 15px; box-shadow: 0 16px 38px rgba(31, 48, 57, .14); }
    .home-training__content { padding: 28px 22px 30px; }
    .home-training h2 { font-size: 30px; }
    .home-training__content > p:not(.home-training__kicker) { font-size: 16px; }
    .home-training li { padding: 7px 12px; font-size: 13px; }
    .home-training__media { align-items: stretch; aspect-ratio: auto; padding: 8px; flex-direction: column; }
    .home-training__media img { height: auto; border-radius: 9px; object-fit: contain; }
    .home-training__media span { position: static; margin: 8px 12px 4px; color: #526770; font-size: 10px; }
    .home-training__media::after { display: none; }
    .home-training__actions { align-items: stretch; flex-direction: column; gap: 14px; }
    .home-training__button { justify-content: space-between; width: 100%; }
    .home-plastic-products__inner { border-radius: 15px; box-shadow: 0 16px 38px rgba(31,48,57,.14); }
    .home-plastic-products__media { order: -1; padding: 8px; aspect-ratio: auto; flex-direction: column; }
    .home-plastic-products__media img { height: auto; border-radius: 9px; object-fit: contain; }
    .home-plastic-products__media::after { display: none; }
    .home-plastic-products__media span { position: static; margin: 8px 12px 4px; color: #526770; font-size: 10px; }
    .home-plastic-products__content { padding: 28px 22px 30px; }
    .home-plastic-products h2 { font-size: 30px; }
    .home-plastic-products__content>p:not(.home-plastic-products__kicker) { font-size: 16px; }
    .home-plastic-products li { padding: 7px 12px; font-size: 13px; }
    .home-plastic-products__button { justify-content: space-between; width: 100%; }

    .home-custom-order__inner {
        min-height: 0;
        border-radius: 15px;
        box-shadow: 0 16px 38px rgba(31, 48, 57, .14);
    }

    .home-custom-order__media {
        min-height: 0;
        aspect-ratio: auto;
        display: flex;
        padding: 8px;
        flex-direction: column;
        background: #fff;
    }

    .home-custom-order__media img {
        height: auto;
        border-radius: 9px;
        object-fit: contain;
    }

    .home-custom-order__media::after {
        display: none;
    }

    .home-custom-order__media span {
        position: static;
        margin: 8px 12px 4px;
        color: #526770;
        font-size: 10px;
    }

    .home-custom-order__content {
        padding: 28px 22px 30px;
    }

    .home-custom-order h2 {
        font-size: 30px;
    }

    .home-custom-order__content > p:not(.home-custom-order__kicker) {
        font-size: 16px;
    }

    .home-custom-order ul {
        margin: 20px 0 24px;
    }

    .home-custom-order__button {
        width: 100%;
        justify-content: space-between;
    }

    .home-training + .benefits .benefits__grid {
        grid-template-columns: 1fr;
    }

    .home-training + .benefits article {
        min-height: 88px;
        padding: 13px 15px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .home-custom-order__media img,
    .home-custom-order__button,
    .home-custom-order__button span {
        transition: none;
    }

    .home-training__media img,
    .home-training__button,
    .home-plastic-products__media img,
    .home-plastic-products__button {
        transition: none;
    }

    .home-training + .benefits article,
    .home-training + .benefits article::before,
    .home-training + .benefits img {
        transition: none;
    }
}

/* Align all three new homepage directions to the same compact split pattern. */
@media (min-width: 901px) {
    .home-custom-order__inner,
    .home-training__inner,
    .home-plastic-products__inner {
        grid-template-columns: minmax(0, 44%) minmax(0, 56%);
        min-height: 360px;
    }

    .home-custom-order__media,
    .home-training__media,
    .home-plastic-products__media {
        min-height: 360px;
    }
}

.home-custom-order__media {
    background: #f7f9fa;
}

@media (min-width: 901px) {
    .home-custom-order__media img,
    .home-plastic-products__media img {
        object-fit: cover;
    }
}

/* Keep the 16:9 custom-order production photo complete on desktop. */
@media (min-width: 901px) {
    .home-custom-order__inner {
        grid-template-columns: minmax(0, 56%) minmax(0, 44%);
        min-height: 360px;
    }

    .home-custom-order__media {
        grid-column: 1;
        grid-row: 1;
        min-height: 360px;
        background: #1f3039;
    }

    .home-custom-order__media img {
        object-fit: contain;
        object-position: center;
    }

    .home-custom-order__content {
        grid-column: 2;
        grid-row: 1;
        padding: 22px clamp(26px, 2.5vw, 34px);
    }

    .home-custom-order h2 {
        margin-bottom: 11px;
        font-size: clamp(28px, 2.1vw, 32px);
        line-height: 1.04;
    }

    .home-custom-order__content > p:not(.home-custom-order__kicker) {
        font-size: 14px;
        line-height: 1.45;
    }

    .home-custom-order ul {
        gap: 6px;
        margin: 10px 0 13px;
    }

    .home-custom-order li {
        padding: 5px 9px;
        font-size: 11px;
    }

    .home-custom-order__button {
        min-height: 46px;
        padding: 10px 18px;
        font-size: 14px;
    }

    .home-plastic-products__inner {
        grid-template-columns: minmax(0, 56%) minmax(0, 44%);
        min-height: 360px;
    }

    .home-plastic-products__media {
        min-height: 360px;
        background: #1f3039;
    }

    .home-plastic-products__media img {
        object-fit: contain;
        object-position: center;
    }

    .home-plastic-products__content {
        padding: 22px clamp(26px, 2.5vw, 34px);
    }

    .home-plastic-products h2 {
        margin-bottom: 11px;
        font-size: clamp(28px, 2.1vw, 32px);
    }

    .home-plastic-products__content > p:not(.home-plastic-products__kicker) {
        font-size: 14px;
        line-height: 1.45;
    }

    .home-plastic-products ul {
        gap: 6px;
        margin: 10px 0 13px;
    }

    .home-plastic-products li {
        padding: 5px 9px;
        font-size: 11px;
    }
}

/* Homepage category depth: show the imported borders subsection in navigation. */
.home-category-card__children .is-nested a {
    padding-left: 15px;
    color: #64727a;
    font-size: 14px;
}

.home-category-card__children .is-nested a::before {
    content: "↳";
    font-size: 14px;
}

/* Uniform one-row article rail: three cards on desktop, swipe on touch screens. */
.home-articles.home-articles--rail {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: calc((100% - 40px) / 3);
    grid-template-columns: none;
    gap: 20px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 2px 2px 20px;
    border: 0;
    scroll-snap-type: x mandatory;
    scrollbar-color: #4d91b4 #e8eef1;
    scrollbar-width: thin;
}

.home-articles--rail .home-article-card {
    display: grid;
    grid-template-rows: 220px 1fr;
    min-width: 0;
    scroll-snap-align: start;
}

.home-articles--rail .home-article-image {
    min-height: 0;
    background: #f5f7f8;
}

.home-articles--rail .home-article-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.home-articles--rail .home-article-card__body {
    display: flex;
    flex-direction: column;
}

.home-articles--rail .home-article-card__more {
    margin-top: auto;
    padding-top: 16px;
}

/* The company video replaces the former image without creating another section. */
.home-company__video {
    min-width: 0;
}

.home-company__video .responsive-video {
    overflow: hidden;
    border: 1px solid #d7e2e7;
    border-radius: 16px;
    box-shadow: 0 16px 38px rgb(31 48 57 / 12%);
}

.home-company__video > a {
    display: inline-flex;
    gap: 8px;
    margin-top: 12px;
    color: #347b9d;
    font-weight: 800;
    text-decoration: none;
}

.home-company__video > a:hover,
.home-company__video > a:focus-visible {
    text-decoration: underline;
}

@media (max-width: 700px) {
    .home-articles.home-articles--rail {
        grid-auto-columns: min(84vw, 330px);
        margin-right: calc(50% - 50vw);
        padding-right: 20px;
        overscroll-behavior-inline: contain;
    }

    .home-articles--rail .home-article-card {
        grid-template-rows: 205px 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    .home-articles.home-articles--rail {
        scroll-behavior: auto;
    }
}
