.school-home {
    --school-navy: #004497;
    --school-orange: #ff6300;
    --school-text: #333333;
    --school-muted: #666666;
    --school-band: #f3f7fc;
    --school-shell: 1260px;
    color: var(--school-text);
    font-family: SanFranciscoDisplay, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.5625;
    overflow: hidden;
}

.school-home *,
.school-home *::before,
.school-home *::after {
    box-sizing: border-box;
}

.school-shell {
    width: min(var(--school-shell), calc(100% - 30px));
    margin-inline: auto;
}

.school-media-frame {
    display: grid;
    width: 100%;
    place-items: center;
    overflow: hidden;
    background: #e6e6e6;
    color: #777777;
}

.school-media-frame::after {
    content: '';
    width: 42px;
    height: 32px;
    border: 2px solid currentColor;
    border-radius: 4px;
    opacity: .4;
}

.school-section-title {
    margin: 0 0 15px;
    color: var(--school-navy);
    font-size: 40px;
    font-weight: 600;
    line-height: 1.25;
    text-align: center;
}

.school-slider-arrow {
    position: absolute;
    z-index: 3;
    top: 50%;
    display: grid;
    width: 40px;
    height: 40px;
    padding: 0;
    place-items: center;
    transform: translateY(-50%);
    border: 0;
    background: rgba(255, 255, 255, .42);
    color: var(--school-navy);
    cursor: pointer;
    transition: background-color .2s ease;
}

.school-slider-arrow:hover,
.school-slider-arrow:focus-visible {
    background: rgba(255, 255, 255, .88);
}

.school-slider-arrow--prev { left: 10px; }
.school-slider-arrow--next { right: 10px; }

.school-home a { color: inherit; text-decoration: none; }
.school-home img { display: block; max-width: 100%; }

[data-school-slider] { position: relative; overflow: hidden; }
[data-school-slider-track] {
    display: flex;
    gap: var(--school-slider-gap, 0px);
    transform: translate3d(0, 0, 0);
    transition: transform .3s ease;
    touch-action: pan-y;
    user-select: none;
    will-change: transform;
}
[data-school-slider-track] > * {
    flex: 0 0 calc((100% - (var(--school-slider-gap, 0px) * (var(--school-slider-per-view, 1) - 1))) / var(--school-slider-per-view, 1));
    min-width: 0;
}

/* 01. Hero */
.school-hero { width: 100%; }
.school-hero__viewport { --school-slider-gap: 0px; aspect-ratio: 1440 / 535; background: #e6e6e6; }
.school-hero__track,
.school-hero__slide,
.school-hero__link,
.school-hero__image,
.school-hero__placeholder { height: 100%; }
.school-hero__slide { margin: 0; }
.school-hero__link { display: block; }
.school-hero__image { width: 100%; object-fit: cover; }

/* 02. Production */
.school-production { padding: 60px 0; background: var(--school-band); }
.school-production__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-areas: "media copy";
    gap: 2%;
    align-items: center;
}
.school-production__copy { grid-area: copy; }
.school-production__media {
    position: relative;
    grid-area: media;
    height: 400px;
    padding: 5px;
    isolation: isolate;
    overflow: visible;
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(0, 83, 166, .34), rgba(255, 99, 0, .3));
    box-shadow: 0 18px 45px rgba(5, 48, 99, .16), 0 3px 10px rgba(5, 48, 99, .08);
    transition: transform .35s ease, box-shadow .35s ease;
}
.school-production__media::before {
    content: '';
    position: absolute;
    z-index: -1;
    inset: 14% -12px -14px 12%;
    border-radius: inherit;
    background: rgba(0, 83, 166, .15);
    filter: blur(20px);
    opacity: .7;
    transition: opacity .35s ease, transform .35s ease;
}
.school-production__title {
    margin: 0 0 18px;
    color: var(--school-navy);
    font-size: 40px;
    font-weight: 600;
    line-height: 1.25;
}
.school-production__content { color: var(--school-muted); font-size: 16px; line-height: 1.5625; }
.school-production__content > :first-child { margin-top: 0; }
.school-production__content > :last-child { margin-bottom: 0; }
.school-production__video {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    padding: 0;
    overflow: hidden;
    border: 0;
    border-radius: 19px;
    background: #dfeaf7;
}
.school-production__poster,
.school-production__video .school-media-frame,
.school-production__video iframe { width: 100%; height: 100%; object-fit: cover; border: 0; }
.school-production__poster {
    display: block;
    transform: scale(1.002);
    transition: transform .55s cubic-bezier(.2, .65, .3, 1), filter .35s ease;
}

@media (hover: hover) and (pointer: fine) {
    .school-production__media:hover {
        transform: translateY(-6px);
        box-shadow: 0 26px 58px rgba(5, 48, 99, .22), 0 5px 14px rgba(5, 48, 99, .1);
    }

    .school-production__media:hover::before {
        opacity: 1;
        transform: translateY(5px) scale(1.02);
    }

    .school-production__media:hover .school-production__poster {
        transform: scale(1.045);
        filter: saturate(1.05) contrast(1.02);
    }
}

@media (prefers-reduced-motion: reduce) {
    .school-production__media,
    .school-production__media::before,
    .school-production__poster {
        transition: none !important;
    }
}
.school-production__play-label {
    position: absolute;
    inset: 50% auto auto 50%;
    min-width: 86px;
    padding: 10px 16px;
    transform: translate(-50%, -50%);
    border-radius: 999px;
    background: var(--school-orange);
    color: #fff;
    font-weight: 600;
}

/* 03. Product collection */
.school-products { padding: 0 0 60px; }
.school-products__heading { text-align: center; }
.school-products__title {
    margin: 0 0 15px;
    color: var(--school-navy);
    font-size: 40px;
    font-weight: 600;
    line-height: 1.25;
}
.school-products__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 30px;
    padding: 30px;
    background: var(--school-band);
}
.school-product-card { min-width: 0; background: #fff; }
.school-product-card__link { display: flex; height: 100%; flex-direction: column; }
.school-product-card__media { aspect-ratio: 1; overflow: hidden; background: #e6e6e6; }
.school-product-card__image,
.school-product-card__media .school-media-frame { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.school-product-card:hover .school-product-card__image { transform: scale(1.1); }
.school-product-card__body { display: flex; min-height: 150px; padding: 14px 12px 16px; flex-direction: column; text-align: center; }
.school-product-card__name { min-height: 50px; margin: 0 0 8px; color: var(--school-navy); font-size: 17px; line-height: 1.45; }
.school-product-card__price { min-height: 25px; margin-bottom: 10px; }
.school-product-card__price-old { margin-right: 6px; color: #8a8a8a; text-decoration: line-through; }
.school-product-card__price-new { color: var(--school-orange); font-weight: 700; }
.school-product-card__badge { display: inline-block; margin-left: 6px; color: var(--school-orange); }
.school-product-card__cta {
    display: block;
    min-height: 42px;
    margin-top: auto;
    padding: 7px 10px;
    border: 1px solid var(--school-navy);
    border-radius: 8px;
    color: var(--school-navy);
    font-size: 20px;
    line-height: 26px;
    transition: background-color .25s ease, color .25s ease;
}
.school-product-card:hover .school-product-card__cta { background: var(--school-navy); color: #fff; }
.school-product-card--empty .school-product-card__name,
.school-product-card--empty .school-product-card__price,
.school-product-card--empty .school-product-card__cta { visibility: hidden; }

/* 04. Categories */
.school-categories { padding: 0 0 60px; }
.school-categories__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 25px; }
.school-category-card { min-width: 0; overflow: hidden; }
.school-category-card__link { display: block; position: relative; }
.school-category-card__media { aspect-ratio: 403 / 453; overflow: hidden; background: #e6e6e6; }
.school-category-card__image,
.school-category-card__media .school-media-frame { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.school-category-card:hover .school-category-card__image { transform: scale(1.1); }
.school-category-card__name {
    position: absolute;
    inset: auto 0 0;
    min-height: 64px;
    margin: 0;
    padding: 13px 15px;
    background: var(--school-orange);
    border-radius: 0 0 8px 8px;
    color: #fff;
    font-size: 28px;
    font-weight: 600;
    line-height: 36px;
    text-align: center;
}
.school-category-card--empty .school-category-card__name { visibility: hidden; }

/* 05. Customers */
.school-customers { padding: 0 0 60px; }
.school-customers__title {
    margin: 0 0 15px;
    color: var(--school-navy);
    font-size: 40px;
    font-weight: 600;
    line-height: 1.25;
    text-align: center;
}
.school-customers__video { height: 500px; margin-bottom: 25px; background: #e6e6e6; }
.school-customers__video-button { position: relative; display: block; width: 100%; height: 100%; padding: 0; border: 0; background: transparent; cursor: pointer; }
.school-customers__video-poster,
.school-customers__video-placeholder,
.school-customers__video iframe { width: 100%; height: 100%; object-fit: cover; border: 0; }
.school-customers__play {
    position: absolute;
    inset: 50% auto auto 50%;
    display: flex;
    min-width: 58px;
    min-height: 58px;
    padding: 0 18px;
    align-items: center;
    justify-content: center;
    gap: 9px;
    transform: translate(-50%, -50%);
    border-radius: 999px;
    background: var(--school-orange);
    color: #fff;
}
.school-customers__gallery { --school-slider-gap: 25px; }
.school-customers__slide { aspect-ratio: 403 / 270; overflow: hidden; }
.school-customers__image,
.school-customers__placeholder { width: 100%; height: 100%; object-fit: cover; }
.school-customers__arrow--prev { left: 0; }
.school-customers__arrow--next { right: 0; }

/* 06. Partners */
.school-partners { padding: 40px 0; background: var(--school-band); }
.school-partners__title { margin: 0 0 24px; }
.school-partners__slider {
    --school-slider-gap: 25px;
    padding: 7px 54px;
}
.school-partners__track { transition: transform .55s cubic-bezier(.22, .61, .36, 1); }
.school-partners__slide { height: 88px; }
.school-partners__link {
    display: grid;
    width: 100%;
    height: 100%;
    padding: 8px;
    place-items: center;
    border: 1px solid transparent;
    border-radius: 14px;
    background: transparent;
    transition: transform .28s ease, border-color .28s ease, background-color .28s ease;
}
.school-partners__logo {
    width: 100%;
    height: 100%;
    max-height: 68px;
    object-fit: contain;
    filter: saturate(.96);
    mix-blend-mode: multiply;
    transition: transform .28s ease, filter .28s ease;
}
.school-partners__placeholder { height: 100%; }
.school-partners .school-partners__arrow {
    width: 44px;
    height: 44px;
    border: 1px solid rgba(255, 255, 255, .75);
    border-radius: 50%;
    background: linear-gradient(145deg, #0b5bad, var(--school-navy));
    box-shadow: 0 8px 20px rgba(0, 68, 151, .24);
    color: #fff;
    transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
}
.school-partners .school-partners__arrow:hover,
.school-partners .school-partners__arrow:focus-visible {
    transform: translateY(-50%) scale(1.08);
    background: linear-gradient(145deg, #ff812f, var(--school-orange));
    box-shadow: 0 10px 24px rgba(255, 99, 0, .3);
}
.school-partners .school-partners__arrow:active { transform: translateY(-50%) scale(.96); }
.school-partners__arrow--prev { left: 4px; }
.school-partners__arrow--next { right: 4px; }

@media (hover: hover) and (pointer: fine) {
    .school-partners__link:hover {
        transform: translateY(-2px);
        border-color: rgba(0, 68, 151, .12);
        background: rgba(255, 255, 255, .12);
    }
    .school-partners__link:hover .school-partners__logo {
        transform: scale(1.035);
        filter: saturate(1.04);
    }
}

/* 07. News */
.school-news { padding: 60px 0; }
.school-news__grid { display: grid; width: min(1160px, 100%); margin-inline: auto; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.school-news__side { display: grid; gap: 20px; }
.school-news-card { min-width: 0; }
.school-news-card__link { display: block; }
.school-news-card__media { overflow: hidden; background: #e6e6e6; }
.school-news-card--featured .school-news-card__media { aspect-ratio: 568 / 365; }
.school-news-card--compact .school-news-card__link { display: grid; grid-template-columns: 185px minmax(0, 1fr); gap: 18px; align-items: start; }
.school-news-card--compact .school-news-card__media { aspect-ratio: 185 / 120; }
.school-news-card__image,
.school-news-card__media .school-media-frame { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.school-news-card:hover .school-news-card__image { transform: scale(1.08); }
.school-news-card__title { margin: 12px 0 6px; color: var(--school-navy); font-size: 21px; line-height: 1.35; transition: color .2s ease; }
.school-news-card--compact .school-news-card__title { margin-top: 0; font-size: 18px; }
.school-news-card:hover .school-news-card__title { color: var(--school-orange); }
.school-news-card__excerpt { margin: 0; color: var(--school-muted); }
.school-news-card--empty .school-news-card__title,
.school-news-card--empty .school-news-card__excerpt { visibility: hidden; }
.school-home__empty { padding: 50px 0; text-align: center; }

@media (min-width: 768px) and (max-width: 1310px) {
    .school-shell { width: calc(100% - 50px); }
    .school-production__grid { grid-template-columns: 1fr; grid-template-areas: "copy" "media"; gap: 25px; }
    .school-production__media { height: 400px; }
    .school-products__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .school-categories__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .school-customers__video { height: 400px; }
    .school-customers__gallery,
    .school-partners__slider { --school-slider-gap: 15px; }
    .school-news__grid { grid-template-columns: 1fr; }
}

@media (max-width: 767px) {
    .school-section-title { font-size: 26px; line-height: 1.25; }
    .school-slider-arrow { width: 34px; height: 34px; }
    .school-production { padding: 35px 0; }
    .school-production__grid { grid-template-columns: 1fr; grid-template-areas: "copy" "media"; gap: 20px; }
    .school-production__title,
    .school-products__title,
    .school-customers__title { font-size: 26px; line-height: 1.25; }
    .school-production__media { height: 250px; }
    .school-production__media { padding: 4px; border-radius: 18px; box-shadow: 0 12px 30px rgba(5, 48, 99, .15); }
    .school-production__video { border-radius: 14px; }
    .school-products,
    .school-categories,
    .school-customers { padding-bottom: 40px; }
    .school-products__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; padding: 15px; }
    .school-product-card__body { min-height: 132px; padding: 10px 7px 12px; }
    .school-product-card__name { min-height: 42px; font-size: 14px; line-height: 1.45; }
    .school-product-card__price { min-height: 21px; font-size: 13px; }
    .school-product-card__cta { min-height: 36px; padding: 5px 6px; font-size: 15px; line-height: 24px; }
    .school-categories__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; }
    .school-category-card__name { min-height: 47px; padding: 9px 6px; font-size: 17px; line-height: 29px; }
    .school-customers__video { height: 250px; margin-bottom: 15px; }
    .school-customers__gallery,
    .school-partners__slider { --school-slider-gap: 15px; }
    .school-partners { padding: 30px 0; }
    .school-partners__title { margin-bottom: 18px; }
    .school-partners__slider { padding: 5px 40px; }
    .school-partners__slide { height: 70px; }
    .school-partners__link { padding: 5px; border-radius: 10px; }
    .school-partners__logo { max-height: 56px; }
    .school-partners .school-partners__arrow { width: 34px; height: 34px; }
    .school-partners__arrow--prev { left: 1px; }
    .school-partners__arrow--next { right: 1px; }
    .school-news { padding: 40px 0; }
    .school-news__grid { grid-template-columns: 1fr; gap: 22px; }
    .school-news__side { gap: 15px; }
    .school-news-card--compact .school-news-card__link { grid-template-columns: 112px minmax(0, 1fr); gap: 12px; }
    .school-news-card--compact .school-news-card__title { font-size: 15px; }
    .school-news-card__title { font-size: 19px; }
    .school-news-card__excerpt { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; font-size: 14px; }
}

@media (prefers-reduced-motion: reduce) {
    .school-partners__track,
    .school-partners__link,
    .school-partners__logo,
    .school-partners .school-partners__arrow { transition: none !important; }
}
