.home-page {
    position: relative;
    --home-ink: #1b2843;
    --home-muted: #3d4660;
    --home-line: #e4e7ee;
    --home-paper: #f3f5f8;
    --home-accent: #ff6000;
    --home-radius: 12px;
    background: var(--home-paper);
    color: var(--home-ink);
    padding: 28px 0 72px;
}

.home-page h1,
.home-page h2,
.home-page h3,
.home-page p {
    margin-top: 0;
}

.home-desk__split {
    display: grid;
    grid-template-columns: minmax(0, 1.65fr) minmax(280px, 0.78fr);
    background: #fff;
    border: 1px solid var(--home-line);
    border-radius: var(--home-radius);
    overflow: hidden;
}

.home-desk__main {
    padding: 32px 32px 28px;
}

.home-desk__label {
    margin-bottom: 0;
    color: var(--home-accent);
    font-size: 0.875rem;
    font-weight: 600;
}

.home-desk__main h1 {
    margin: 22px 0 0;
    max-width: 18em;
    color: var(--home-ink);
    font-size: clamp(1.85rem, 2.6vw, 2.75rem);
    font-weight: 600;
    letter-spacing: -0.04em;
    line-height: 1.18;
}

.home-desk__lead {
    margin: 12px 0 0;
    max-width: 42ch;
    color: var(--home-muted);
    font-size: 1rem;
    line-height: 1.5;
}

.home-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    width: fit-content;
    max-width: 100%;
    margin-top: 26px;
    padding: 4px;
    background: var(--home-paper);
    border-radius: var(--home-radius);
}

.home-tab {
    border: 0;
    border-radius: var(--home-radius);
    background: transparent;
    color: var(--home-ink);
    cursor: pointer;
    font-size: 0.9375rem;
    font-weight: 600;
    padding: 10px 14px;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.home-tab.is-active {
    background: #fff;
    box-shadow: 0 1px 2px rgba(27, 40, 67, 0.08);
}

.home-tab:active,
.home-btn:active,
.home-cat-hero:active,
.home-cat-spare:active,
.home-card__action:active {
    transform: scale(0.98);
}

.home-panel {
    margin-top: 18px;
}

.home-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px 16px;
}

.home-fields .is-wide {
    grid-column: 1 / -1;
}

.home-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.home-field label {
    margin: 0;
    color: var(--home-ink);
    font-size: 0.875rem;
    font-weight: 600;
}

.home-field input,
.home-field select {
    width: 100%;
    height: 46px;
    border: 1px solid #c5cad6;
    border-radius: var(--home-radius);
    background: #fff;
    color: var(--home-ink);
    font-size: 0.9375rem;
    padding: 0 14px;
}

.home-field input::placeholder {
    color: #5c6578;
}

.home-field input:focus,
.home-field select:focus {
    border-color: var(--home-ink);
    outline: 2px solid var(--home-ink);
    outline-offset: 1px;
}

.home-field__help {
    margin: 0;
    color: var(--home-muted);
    font-size: 0.875rem;
    line-height: 1.4;
}

.home-page .select2-container {
    width: 100% !important;
}

.home-page .select2-container--default .select2-selection--single {
    height: 46px;
    border: 1px solid #c5cad6;
    border-radius: var(--home-radius);
}

.home-page .select2-container--default .select2-selection--single .select2-selection__rendered {
    color: var(--home-ink);
    line-height: 44px;
    padding-left: 14px;
}

.home-page .select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 44px;
}

.home-page .select2-dropdown {
    border-color: #c5cad6;
    border-radius: var(--home-radius);
    overflow: hidden;
}

.home-page .select2-results__option {
    color: var(--home-ink);
}

.home-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 18px;
    border: 1px solid transparent;
    border-radius: var(--home-radius);
    font-size: 0.9375rem;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.home-btn--accent {
    background: var(--home-accent);
    color: #fff;
}

.home-btn--accent:hover,
.home-btn--accent:focus {
    background: #e85900;
    color: #fff;
    text-decoration: none;
}

.home-btn--light {
    background: #fff;
    color: var(--home-ink);
}

.home-btn--light:hover,
.home-btn--light:focus {
    background: #f7f8fb;
    color: var(--home-ink);
    text-decoration: none;
}

.home-btn--ghost {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.35);
    color: #fff;
}

.home-btn--ghost:hover,
.home-btn--ghost:focus {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    text-decoration: none;
}

.home-desk__side {
    position: relative;
    min-height: 320px;
    background: #121820;
    overflow: hidden;
}

.home-hero-slider,
.home-hero-slider__slide {
    position: absolute;
    inset: 0;
}

.home-hero-slider__slide {
    opacity: 0;
    transition: opacity 0.9s ease;
}

.home-hero-slider__slide.is-active {
    opacity: 1;
}

.home-hero-slider__slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 62%;
}

.home-hero-slider__dots {
    position: absolute;
    z-index: 2;
    right: 16px;
    bottom: 14px;
    left: 16px;
    display: flex;
    justify-content: center;
    gap: 6px;
}

.home-hero-slider__dots button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    height: 22px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: transparent;
    cursor: pointer;
}

.home-hero-slider__dots button::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.55);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
}

.home-hero-slider__dots button.is-active::before {
    width: 22px;
    background: #fff;
}

.home-block__head h2,
.home-brands h2 {
    margin-bottom: 0;
    color: var(--home-ink);
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: -0.03em;
}

.home-block,
.home-brands {
    margin-top: 48px;
}

.home-block__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

.home-block__head a,
.home-brands a.home-textlink {
    color: var(--home-ink);
    font-weight: 600;
    text-decoration: none;
}

.home-block__head a:hover,
.home-block__head a:focus {
    color: var(--home-accent);
}

.home-cat-groups {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.home-cat-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 0;
}

.home-cat-hero,
.home-cat-spare {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--home-line);
    border-radius: var(--home-radius);
    background: #fff;
    color: var(--home-ink);
    text-decoration: none;
    overflow: hidden;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.home-cat-hero:hover,
.home-cat-hero:focus,
.home-cat-spare:hover,
.home-cat-spare:focus {
    color: var(--home-ink);
    text-decoration: none;
    transform: translateY(-2px);
}

.home-cat-hero__photo,
.home-cat-spare__photo {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f7f8fb;
    isolation: isolate;
}

.home-cat-hero__photo {
    height: 220px;
    padding: 20px;
}

.home-cat-spare__photo {
    height: 112px;
    padding: 12px;
}

.home-cat-hero__photo img,
.home-cat-spare__photo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    mix-blend-mode: multiply;
}

.home-cat-hero__name,
.home-cat-spare__name {
    display: block;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.home-cat-hero__name {
    padding: 16px 18px 18px;
    font-size: 1.25rem;
}

.home-cat-spares {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.home-cat-spare__name {
    padding: 10px 12px 12px;
    font-size: 0.875rem;
    line-height: 1.3;
}

.home-products__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.home-card {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    border: 1px solid var(--home-line);
    border-radius: var(--home-radius);
    background: #fff;
    overflow: hidden;
}

.home-card__media {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 180px;
    padding: 16px;
    background: #f7f8fb;
    isolation: isolate;
}

.home-card__media img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    mix-blend-mode: multiply;
}

.home-card__body {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
    padding: 14px 14px 0;
}

.home-card__code {
    margin-bottom: 0;
    color: var(--home-muted);
    font-size: 0.875rem;
}

.home-card__body h3 {
    margin-bottom: 0;
    font-size: 0.9375rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.35;
}

.home-card__body h3 a {
    color: var(--home-ink);
    text-decoration: none;
}

.home-card__body h3 a:hover,
.home-card__body h3 a:focus {
    color: var(--home-accent);
}

.home-card__price {
    margin: 8px 0 0;
    color: var(--home-ink);
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.home-card__price del {
    display: block;
    margin-bottom: 2px;
    color: var(--home-muted);
    font-size: 0.875rem;
    font-weight: 400;
}

.home-card__price a {
    color: var(--home-ink);
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
}

.home-card__price a:hover,
.home-card__price a:focus {
    color: var(--home-accent);
}

.home-card__action {
    margin: 14px;
    color: var(--home-ink);
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
}

.home-card__action:hover,
.home-card__action:focus {
    color: var(--home-accent);
}

.home-empty {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 28px;
    border: 1px solid var(--home-line);
    border-radius: var(--home-radius);
    background: #fff;
}

.home-empty p {
    margin-bottom: 0;
    color: var(--home-muted);
}

.home-brands__row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 28px;
    margin-top: 18px;
}

.home-brands__row a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 132px;
    height: 64px;
}

.home-brands__row img {
    max-width: 120px;
    max-height: 42px;
    object-fit: contain;
    filter: grayscale(1);
    opacity: 0.72;
    transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), filter 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.home-brands__row a:hover img,
.home-brands__row a:focus img {
    filter: none;
    opacity: 1;
}

@media (max-width: 991px) {
    .home-products__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .home-page {
        padding: 16px 0 48px;
    }

    .home-desk__split,
    .home-cat-groups,
    .home-fields {
        grid-template-columns: 1fr;
    }

    .home-desk__main {
        padding: 20px 16px;
    }

    .home-desk__side {
        min-height: 240px;
    }

    .home-desk__main h1 {
        max-width: none;
    }

    .home-cat-spares {
        grid-template-columns: 1fr 1fr;
    }

    .home-cat-spares .home-cat-spare:last-child:nth-child(odd) {
        grid-column: 1 / -1;
    }

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

    .home-block__head {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (prefers-reduced-motion: reduce) {
    .home-tab,
    .home-btn,
    .home-cat-hero,
    .home-cat-spare,
    .home-card__action,
    .home-hero-slider__slide,
    .home-brands__row img {
        transition: none;
    }
}

.footer-dark {
    background: #121212;
}

.footer-dark h3,
.footer-dark a,
.footer-dark address {
    color: #fff;
}

.footer-dark h3::after {
    background-color: #ff6000;
}

.footer-dark h3::before {
    color: #fff;
}

.footer-dark a:hover {
    color: #ff6000;
}

.footer-dark .copyend {
    color: #fff;
    border-top-color: rgba(255, 255, 255, 0.16);
}
