/* =========================================================
   SHARNIR.UZ
   Home page stylesheet

   Подключать после sharnir.css только на главной странице.
   ========================================================= */

/* =========================================================
   HERO
   ========================================================= */

.hero {
    position: relative;
    overflow: hidden;

    min-height: calc(100svh - var(--header-height));

    background-color: var(--color-bg);

    /* инженерная координатная сетка */
    background-image:
        linear-gradient(
            rgba(22, 75, 59, 0.038) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(22, 75, 59, 0.038) 1px,
            transparent 1px
        );

    background-size: 40px 40px;
}

.hero::before {
    content: "";

    position: absolute;
    top: 0;
    bottom: 0;
    left: clamp(20px, 4vw, 64px);

    width: 1px;

    background: rgba(249, 105, 0, 0.28);
}

.hero__inner {
    position: relative;
    z-index: 1;

    width: min(100%, var(--container-width));
    min-height: calc(100svh - var(--header-height));
    #background-color: var(--color-green);

    margin-inline: auto;
    padding:
        clamp(65px, 9vh, 130px)
        var(--container-padding)
        clamp(60px, 8vh, 110px);

    display: grid;
    grid-template-columns:
        minmax(0, 0.88fr)
        minmax(420px, 1.12fr);

    align-items: center;
    gap: clamp(40px, 6vw, 100px);
}


/* ---------------------------------------------------------
   HERO CONTENT
   --------------------------------------------------------- */

.hero__content {
    position: relative;
    z-index: 2;

    max-width: 680px;
}

.hero__eyebrow {
    display: flex;
    align-items: center;
    gap: 12px;

    margin-bottom: 23px;

    color: var(--color-green);

    font-size: 13px;
    font-weight: 700;
    line-height: 1.3;

    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.hero__eyebrow::before {
    content: "";

    width: 38px;
    height: 3px;

    flex-shrink: 0;

    background: var(--color-orange);
}

.hero__title {
    margin: 0;

    color: var(--color-text);

    font-size: clamp(42px, 5vw, 78px);
    font-weight: 700;
    line-height: 0.98;

    letter-spacing: -0.045em;
}

.hero__title-accent {
    color: var(--color-green);
}

.hero__description {
    max-width: 600px;

    margin: 28px 0 0;

    color: #55605C;

    font-size: clamp(17px, 1.4vw, 20px);
    line-height: 1.65;
}

.hero__actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;

    margin-top: 38px;
}



/* ---------------------------------------------------------
   HERO IMAGE
   --------------------------------------------------------- */

.hero__visual {
    position: relative;

    display: flex;
    align-items: center;
    justify-content: center;

    min-width: 0;
    min-height: 0;

    max-height: 100%;
}

.hero__visual::before {
    content: "";

    position: absolute;

    width: 74%;
    aspect-ratio: 1;

    border: 1px solid rgba(22, 75, 59, 0.12);

    border-radius: 50%;
}

.hero__image {
    position: relative;
    z-index: 1;

    width: auto;
    height: auto;

    max-width: min(100%, 760px);
    max-height: calc(100svh - 180px);

    object-fit: contain;
}



/* ---------------------------------------------------------
   HERO ADVANTAGES
   --------------------------------------------------------- */

.hero__advantages {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));

    gap: clamp(14px, 2vw, 28px);

    margin-top: clamp(38px, 5vh, 58px);
    padding-top: 25px;

    border-top: 1px solid rgba(135, 149, 143, 0.35);
}

.hero-advantage {
    display: flex;
    align-items: center;
    gap: 12px;

    min-width: 0;
}

.hero-advantage__icon {
    width: 42px;
    height: 42px;

    flex: 0 0 42px;

    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-advantage__icon img {
    width: 100%;
    height: 100%;

    object-fit: contain;
}

.hero-advantage__text {
    color: var(--color-muted);

    font-size: 12px;
    font-weight: 500;
    line-height: 1.35;
}

.hero-advantage__text strong {
    display: block;

    color: var(--color-text);

    font-weight: 700;
}

/* =========================================================
   HERO ENTRANCE ANIMATION
   ========================================================= */

.hero__content {
    animation:
        home-hero-fade-up
        0.75s
        0.08s
        both
        ease-out;
}


@keyframes home-hero-fade-up {

    from {
        opacity: 0;
        transform: translateY(18px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }

}


/* =========================================================
   HERO RESPONSIVE
   ========================================================= */

@media (max-width: 1180px) {

    .hero__inner {
        grid-template-columns:
            minmax(0, 1fr)
            minmax(380px, 0.9fr);

        gap: 30px;
    }
}

@media (max-width: 980px) {

    .hero__inner {
        grid-template-columns: 1fr;

        min-height: auto;

        padding-top: 75px;
    }

    .hero__content {
        max-width: 760px;
    }

    .hero__visual {
        width: min(100%, 720px);
        margin-inline: auto;
    }

    .hero__advantages {
        max-width: 700px;
    }
}

@media (max-width: 640px) {

    .hero::before {
        display: none;
    }

    .hero__inner {
        padding-top: 55px;
        padding-bottom: 60px;
    }

    .hero__visual {
        display: none;
    }

    .hero__image {
        width: auto;
        max-width: min(100%, 520px);
        max-height: 45svh;
    }

    .hero__eyebrow {
        margin-bottom: 18px;

        font-size: 11px;
        letter-spacing: 0.1em;
    }

    .hero__title {
        font-size: clamp(40px, 13vw, 58px);
        line-height: 1;
    }

    .hero__description {
        margin-top: 22px;

        font-size: 16px;
        line-height: 1.6;
    }

    .hero__actions {
        align-items: stretch;
        flex-direction: column;

        margin-top: 30px;
    }
    .hero__advantages {
        grid-template-columns: 1fr;

        gap: 16px;

        margin-top: 36px;
        padding-top: 22px;
    }

    .hero-advantage__icon {
        width: 40px;
        height: 40px;

        flex-basis: 40px;
    }

    .hero-advantage__text {
        font-size: 13px;
    }
}

/* =========================================================
   HOME PRODUCTS
   ========================================================= */

.home-products {
    position: relative;

    padding:
        clamp(60px, 7vw, 90px)
        0;

    background: var(--color-bg);
}


/* ---------------------------------------------------------
   HEADER
   --------------------------------------------------------- */

.home-products__header {
    max-width: 820px;

    margin-bottom: clamp(42px, 6vw, 72px);
}


.home-products__title {
    margin: 0;

    color: var(--color-text);

    font-size: clamp(34px, 4vw, 58px);
    font-weight: 700;
    line-height: 1.05;

    letter-spacing: -0.035em;
}

.home-products__intro {
    max-width: 700px;

    margin: 22px 0 0;

    color: var(--color-muted);

    font-size: clamp(16px, 1.4vw, 19px);
    line-height: 1.65;
}


/* ---------------------------------------------------------
   GRID
   --------------------------------------------------------- */

.home-products__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));

    gap: 1px;

    background: rgba(135, 149, 143, 0.35);

    border: 1px solid rgba(135, 149, 143, 0.35);
}


/* ---------------------------------------------------------
   CARD
   --------------------------------------------------------- */

.home-product-card {
    position: relative;
    overflow: hidden;

    min-height: clamp(330px, 31vw, 470px);

    display: grid;
    grid-template-columns:
        minmax(0, 1fr)
        minmax(150px, 0.85fr);

    align-items: stretch;

    background: var(--color-bg);

    transition:
        background-color var(--transition),
        transform var(--transition);
}

.home-product-card::before {
    content: "";

    position: absolute;
    top: 0;
    left: 0;

    width: 4px;
    height: 0;

    background: var(--color-orange);

    transition: height 0.35s ease;
}

.home-product-card:hover::before,
.home-product-card:focus-visible::before {
    height: 100%;
}


/* ---------------------------------------------------------
   CARD CONTENT
   --------------------------------------------------------- */

.home-product-card__content {
    position: relative;
    z-index: 2;

    display: flex;
    flex-direction: column;
    align-items: flex-start;

    padding:
        clamp(30px, 4vw, 54px)
        clamp(24px, 3.5vw, 48px);
}

.home-product-card__number {
    margin-bottom: auto;

    color: var(--color-muted);

    font-size: 11px;
    font-weight: 700;
    line-height: 1;

    letter-spacing: 0.15em;
}

.home-product-card__title {
    margin:
        clamp(55px, 7vw, 100px)
        0
        0;

    color: var(--color-green);

    font-size: clamp(23px, 2.2vw, 34px);
    font-weight: 700;
    line-height: 1.08;

    letter-spacing: -0.025em;

    transition: color var(--transition);
}

.home-product-card__text {
    max-width: 360px;

    margin: 16px 0 0;

    color: var(--color-muted);

    font-size: 14px;
    line-height: 1.6;
}


/* ---------------------------------------------------------
   CARD VISUAL
   --------------------------------------------------------- */

.home-product-card__visual {
    position: relative;

    display: flex;
    align-items: center;
    justify-content: center;

    min-width: 0;

    padding: 30px 24px 30px 0;
}

.home-product-card__visual::before {
    content: "";

    position: absolute;

    width: 78%;
    aspect-ratio: 1;

    border: 1px solid rgba(22, 75, 59, 0.12);
    border-radius: 50%;

    transition:
        transform 0.45s ease,
        border-color 0.45s ease;
}

.home-product-card__visual::after {
    content: "";

    position: absolute;

    width: 58%;
    aspect-ratio: 1;

    border: 1px dashed rgba(135, 149, 143, 0.28);
    border-radius: 50%;

    transition: transform 0.45s ease;
}

.home-product-card__visual img {
    position: relative;
    z-index: 2;

    width: 100%;
    max-height: 310px;

    object-fit: contain;

    transition: transform 0.45s ease;
}


/* ---------------------------------------------------------
   CARD HOVER
   --------------------------------------------------------- */

.home-product-card:hover,
.home-product-card:focus-visible {
    background: #ECEFEC;
}

.home-product-card:hover .home-product-card__title,
.home-product-card:focus-visible .home-product-card__title {
    color: var(--color-orange);
}

.home-product-card:hover .home-product-card__visual::before,
.home-product-card:focus-visible .home-product-card__visual::before {
    transform: scale(1.05);
    border-color: rgba(22, 75, 59, 0.25);
}

.home-product-card:hover .home-product-card__visual::after,
.home-product-card:focus-visible .home-product-card__visual::after {
    transform: rotate(12deg) scale(1.04);
}

.home-product-card:hover .home-product-card__visual img,
.home-product-card:focus-visible .home-product-card__visual img {
    transform: scale(1.04);
}


/* =========================================================
   HOME PRODUCTS RESPONSIVE
   ========================================================= */

@media (max-width: 980px) {

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

    .home-product-card {
        min-height: 320px;

        grid-template-columns:
            minmax(0, 1fr)
            minmax(220px, 0.65fr);
    }

    .home-product-card__title {
        margin-top: 55px;
    }

}


@media (max-width: 640px) {

    .home-products {
        padding:
            70px
            0;
    }

    .home-products__header {
        margin-bottom: 36px;
    }

    .home-product-card {
        min-height: 0;

        grid-template-columns: 1fr;
    }

    .home-product-card__content {
        padding:
            28px
            24px
            20px;
    }

    .home-product-card__number {
        margin-bottom: 0;
    }

    .home-product-card__title {
        margin-top: 38px;

        font-size: 26px;
    }

    .home-product-card__visual {
        min-height: 230px;

        padding:
            10px
            24px
            28px;
    }

    .home-product-card__visual img {
        width: min(76%, 320px);
    }

}

/* ---------------------------------------------------------
   HERO WITH OVERLAY HEADER
   --------------------------------------------------------- */

.sharnir-overlay-header .hero {
    min-height: 100svh;
}

.sharnir-overlay-header .hero__inner {
    min-height: 100svh;

    /*
       Header теперь находится поверх Hero,
       поэтому компенсируем его высоту сверху.
    */
    padding-top:
        calc(
            var(--header-height) +
            clamp(55px, 8vh, 110px)
        );
}


/* =========================================================
   DARK HERO
   ========================================================= */

.hero--dark {
    color: var(--color-white);

    background-color: #123C30;

    background-image:
        radial-gradient(
            circle at 75% 42%,
            rgba(37, 100, 78, 0.42) 0,
            rgba(22, 75, 59, 0.18) 32%,
            transparent 62%
        ),
        linear-gradient(
            rgba(255, 255, 255, 0.035) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(255, 255, 255, 0.035) 1px,
            transparent 1px
        ),
        linear-gradient(
            135deg,
            #102F27 0%,
            #164B3B 55%,
            #12392E 100%
        );

    background-size:
        auto,
        40px 40px,
        40px 40px,
        auto;
}


/* ---------------------------------------------------------
   LEFT TECHNICAL LINE
   --------------------------------------------------------- */

.hero--dark::before {
    background: rgba(249, 105, 0, 0.65);
}


/* ---------------------------------------------------------
   EYEBROW
   --------------------------------------------------------- */

.hero--dark .hero__eyebrow {
    color: rgba(255, 255, 255, 0.72);
}

.hero--dark .hero__eyebrow::before {
    background: var(--color-orange);
}


/* ---------------------------------------------------------
   TITLE
   --------------------------------------------------------- */

.hero--dark .hero__title {
    color: var(--color-white);
}

.hero--dark .hero__title-accent {
    color: #8DB9A9;
}


/* ---------------------------------------------------------
   DESCRIPTION
   --------------------------------------------------------- */

.hero--dark .hero__description {
    color: rgba(255, 255, 255, 0.68);
}


/* ---------------------------------------------------------
   BUTTONS
   --------------------------------------------------------- */

.hero--dark .button--primary {
    background: var(--color-orange);
    color: var(--color-white);
}

.hero--dark .button--primary:hover,
.hero--dark .button--primary:focus-visible {
    background: #FF7A1B;
}


.hero--dark .button--secondary {
    color: var(--color-white);

    background: transparent;

    border-color: rgba(255, 255, 255, 0.4);
}

.hero--dark .button--secondary:hover,
.hero--dark .button--secondary:focus-visible {
    background: var(--color-white);
    border-color: var(--color-white);

    color: var(--color-green);
}


/* ---------------------------------------------------------
   HERO VISUAL
   --------------------------------------------------------- */

.hero--dark .hero__visual::before {
    border-color: rgba(255, 255, 255, 0.11);
}


/* ---------------------------------------------------------
   ADVANTAGES
   --------------------------------------------------------- */

.hero--dark .hero__advantages {
    border-top-color: rgba(255, 255, 255, 0.16);
}

.hero--dark .hero-advantage__text {
    color: rgba(255, 255, 255, 0.55);
}

.hero--dark .hero-advantage__text strong {
    color: rgba(255, 255, 255, 0.92);
}


/* =========================================================
   HOME — WHY CHOOSE US
   ========================================================= */

.home-why {
    position: relative;
    overflow: hidden;

    padding:
        clamp(60px, 7vw, 90px)
        0;

    background-color: var(--color-bg);
}

.home-why::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;

    background:
        url("/assets/images/home.bg.light.02.jpg")
        center right / cover
        no-repeat;

    opacity: 0.5;
}

.home-why .site-container {
    position: relative;
    z-index: 1;
}


/* ---------------------------------------------------------
   HEADER
   --------------------------------------------------------- */

.home-why__header {
    max-width: 850px;

    margin-bottom: clamp(44px, 6vw, 72px);
}


.home-why__title {
    margin: 0;

    color: var(--color-text);

    font-size: clamp(34px, 4vw, 58px);
    font-weight: 700;
    line-height: 1.05;

    letter-spacing: -0.035em;
}


.home-why__intro {
    max-width: 720px;

    margin: 22px 0 0;

    color: var(--color-muted);

    font-size: clamp(16px, 1.4vw, 19px);
    line-height: 1.65;
}


/* ---------------------------------------------------------
   GRID
   --------------------------------------------------------- */

.home-why__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));

    gap: 1px;

    background: rgba(135, 149, 143, 0.32);

    border:
        1px solid
        rgba(135, 149, 143, 0.32);
}


/* ---------------------------------------------------------
   CARD
   --------------------------------------------------------- */

.home-why-card {
    position: relative;
    overflow: hidden;

    min-height: 390px;

    display: flex;
    flex-direction: column;
    align-items: flex-start;

    padding:
        clamp(30px, 3.2vw, 44px)
        clamp(24px, 2.8vw, 38px);

    background: rgba(243, 245, 243, 0.93);

    transition:
        background-color 0.35s ease,
        color var(--transition);
}


/*
   Оранжевая линия слева появляется
   при наведении — та же инженерная логика,
   что уже используется в карточках каталога.
*/

.home-why-card::before {
    content: "";

    position: absolute;
    top: 0;
    left: 0;

    width: 4px;
    height: 0;

    background: var(--color-orange);

    transition: height 0.35s ease;
}


.home-why-card:hover::before,
.home-why-card:focus-visible::before {
    height: 100%;
}


.home-why-card:hover,
.home-why-card:focus-visible {
    background: #ECEFEC;
}


/* ---------------------------------------------------------
   ICON
   --------------------------------------------------------- */

.home-why-card__icon {
    width: 68px;
    height: 68px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin-bottom: 22px;

    border-radius: 50%;

    background: rgba(22, 75, 59, 0.055);

    color: var(--color-green);

    transition:
        background-color var(--transition),
        color var(--transition),
        transform 0.35s ease;
}


.home-why-card__icon svg {
    width: 38px;
    height: 38px;

    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}


.home-why-card:hover .home-why-card__icon,
.home-why-card:focus-visible .home-why-card__icon {
    color: var(--color-white);

    background: var(--color-green);

    transform: translateY(-3px);
}


/* ---------------------------------------------------------
   SMALL ORANGE ACCENT
   --------------------------------------------------------- */

.home-why-card__accent {
    width: 24px;
    height: 3px;

    margin-bottom: 20px;

    background: var(--color-orange);
}


/* ---------------------------------------------------------
   TITLE
   --------------------------------------------------------- */

.home-why-card__title {
    margin: 0;

    color: var(--color-green);

    font-size: clamp(19px, 1.6vw, 23px);
    font-weight: 700;
    line-height: 1.2;

    letter-spacing: -0.015em;

    transition: color var(--transition);
}


.home-why-card:hover .home-why-card__title,
.home-why-card:focus-visible .home-why-card__title {
    color: var(--color-orange);
}


/* ---------------------------------------------------------
   DESCRIPTION
   --------------------------------------------------------- */

.home-why-card__text {
    margin:
        16px
        0
        28px;

    color: var(--color-muted);

    font-size: 14px;
    line-height: 1.65;
}


/* ---------------------------------------------------------
   LINK
   --------------------------------------------------------- */

.home-why-card__link {
    display: inline-flex;
    align-items: center;
    gap: 9px;

    margin-top: auto;

    color: var(--color-green);

    font-size: 13px;
    font-weight: 700;
    line-height: 1;

    transition:
        color var(--transition),
        gap var(--transition);
}


.home-why-card__arrow {
    width: 18px;
    height: 18px;

    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}


.home-why-card:hover .home-why-card__link,
.home-why-card:focus-visible .home-why-card__link {
    gap: 14px;

    color: var(--color-orange);
}


/* =========================================================
   WHY CHOOSE US — RESPONSIVE
   ========================================================= */

@media (max-width: 1100px) {

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

    .home-why-card {
        min-height: 350px;
    }

}

@media (max-width: 640px) {

    .home-why {
        padding: 70px 0;
    }

    .home-why::before {
        background-position: 85% center;
        opacity: 0.25;
    }

    .home-why__header {
        margin-bottom: 36px;
    }

    .home-why__title {
        font-size: clamp(32px, 10vw, 44px);
    }

    .home-why__title br {
        display: none;
    }

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

    .home-why-card {
        min-height: 0;
        padding: 30px 24px 28px;
    }

    .home-why-card__icon {
        width: 60px;
        height: 60px;
        margin-bottom: 20px;
    }

    .home-why-card__icon svg {
        width: 34px;
        height: 34px;
    }


    .home-why-card__text {
        max-width: 440px;
        margin-bottom: 30px;
    }
}


/* =========================================================
   HOME — POPULAR CATEGORIES
   ========================================================= */

.home-popular {
    position: relative;
    overflow: hidden;

    padding:
        clamp(60px, 7vw, 90px)
        0;

    color: var(--color-white);
    background-color: var(--color-green);
}


/* ---------------------------------------------------------
   BACKGROUND
   --------------------------------------------------------- */

.home-popular::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    
    background:
        url("/assets/images/home.bg.dark.02.jpg")
        center center / cover
        no-repeat;
}

/*
   Затемняем фон под карточками и текстом,
   чтобы графика не конкурировала с контентом.
*/

.home-popular::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;

    background:
        linear-gradient(
            90deg,
            rgba(7, 35, 28, 0.32) 0%,
            rgba(7, 35, 28, 0.10) 50%,
            rgba(7, 35, 28, 0.08) 100%
        );
}

.home-popular .site-container {
    position: relative;
    z-index: 1;
}


/* ---------------------------------------------------------
   HEADER
   --------------------------------------------------------- */

.home-popular__header {
    max-width: 860px;

    margin-bottom:
        clamp(40px, 5vw, 60px);
}

/* existing global eyebrow */

.home-popular .section-eyebrow {
    color: rgba(255, 255, 255, 0.64);
}

.home-popular .section-eyebrow::before {
    background: var(--color-orange);
}

.home-popular__title {
    margin: 0;
    color: var(--color-white);
    font-size: clamp(34px, 4vw, 58px);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.035em;
}

.home-popular__intro {
    max-width: 720px;
    margin: 22px 0 0;
    color: rgba(255, 255, 255, 0.64);
    font-size: clamp(16px, 1.4vw, 19px);
    line-height: 1.65;
}


/* ---------------------------------------------------------
   ACTIONS
   --------------------------------------------------------- */

.home-popular__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 32px;
}

.home-popular__button-arrow {
    display: inline-block;
    margin-left: 13px;
    font-size: 19px;
    font-weight: 400;
    transition: transform var(--transition);
}


.home-popular__actions
.button:hover
.home-popular__button-arrow {
    transform: translateX(4px);
}


/* secondary button over dark background */

.home-popular
.button--secondary {
    color: var(--color-white);
    border-color: rgba(255, 255, 255, 0.52);
    background: rgba(0, 0, 0, 0.08);
}

.home-popular
.button--secondary:hover,
.home-popular
.button--secondary:focus-visible {
    color: var(--color-green);
    background: var(--color-white);
    border-color: var(--color-white);
}


/* =========================================================
   GRID
   ========================================================= */

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


/* =========================================================
   CARD
   ========================================================= */

.home-popular-card {
    position: relative;
    overflow: hidden;
    min-height: 255px;
    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        minmax(155px, 0.9fr);

    align-items: stretch;
    border: 1px solid rgba(255, 255, 255, 0.19);
    background: rgba(10, 65, 50, 0.46);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);

    transition:
        background-color 0.35s ease,
        border-color 0.35s ease,
        transform 0.35s ease;
}


/*
   Orange rail.
*/

.home-popular-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 0;
    background: var(--color-orange);
    transition: height 0.35s ease;
}

.home-popular-card:hover,
.home-popular-card:focus-visible {
    background: rgba(18, 83, 64, 0.72);
    border-color: rgba(255, 255, 255, 0.34);
    transform: translateY(-3px);
}

.home-popular-card:hover::before,
.home-popular-card:focus-visible::before {
    height: 100%;
}


/* ---------------------------------------------------------
   CONTENT
   --------------------------------------------------------- */

.home-popular-card__content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: 0;
    padding: 25px 12px 24px 25px;
}

.home-popular-card__number {
    color: var(--color-orange);
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.06em;
}

.home-popular-card__title {
    margin: 15px 0  0;
    color: rgba(255, 255, 255, 0.96);
    font-size: clamp(19px, 1.5vw, 23px);
    font-weight: 700;
    line-height: 1.16;
    letter-spacing: -0.02em;
    transition: color var(--transition);
}

.home-popular-card__text {
    max-width: 260px;
    margin: 14px 0 0;
    color: rgba(255, 255, 255, 0.58);
    font-size: 13px;
    line-height: 1.55;
}


/* ---------------------------------------------------------
   LABEL
   --------------------------------------------------------- */

.home-popular-card__label {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    margin-top: auto;
    padding: 0 9px;
    border: 1px solid rgba(123, 196, 155, 0.65);
    color: #91C7AA;
    font-size: 11px;
    font-weight: 600;
    line-height: 1;
}


/* =========================================================
   VISUAL
   ========================================================= */

.home-popular-card__visual {
    position: relative;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 34px 18px 24px 4px;
}
/*
   Technical vertical dimension line.
*/

.home-popular-card__visual::before {
    content: "";
    position: absolute;
    top: 27px;
    bottom: 27px;
    left: 0;
    width: 1px;

    background:
        linear-gradient(
            to bottom,
            transparent,
            rgba(255, 255, 255, 0.26) 15%,
            rgba(255, 255, 255, 0.26) 85%,
            transparent
        );
}


.home-popular-card__visual img {
    position: relative;
    z-index: 1;

    width: min(100%, 215px);
    aspect-ratio: 1;

    object-fit: cover;

    opacity: 0.82;

    /*
       Убираем видимые квадратные края изображения,
       растворяя его в поверхности карточки.
    */
    -webkit-mask-image:
        radial-gradient(
            circle at center,
            #000 0%,
            #000 58%,
            rgba(0, 0, 0, 0.92) 72%,
            transparent 98%
        );

    mask-image:
        radial-gradient(
            circle at center,
            #000 0%,
            #000 58%,
            rgba(0, 0, 0, 0.92) 72%,
            transparent 98%
        );

    transition:
        opacity 0.4s ease,
        transform 0.45s ease,
        filter 0.4s ease;
}


.home-popular-card:hover
.home-popular-card__visual img,
.home-popular-card:focus-visible
.home-popular-card__visual img {
    opacity: 1;

    transform:
        scale(1.055)
        rotate(-1deg);

    filter:
        brightness(1.08)
        contrast(1.03);
}

/* ---------------------------------------------------------
   ARROW
   --------------------------------------------------------- */

.home-popular-card__arrow {
    position: absolute;
    z-index: 3;
    top: 19px;
    right: 21px;
    color: rgba(255, 255, 255, 0.68);
    font-size: 22px;
    font-weight: 300;
    line-height: 1;

    transition:
        color var(--transition),
        transform var(--transition);
}


.home-popular-card:hover
.home-popular-card__arrow,
.home-popular-card:focus-visible
.home-popular-card__arrow {
    color: var(--color-orange);

    transform: translateX(5px);
}


/* ---------------------------------------------------------
   TITLE HOVER
   --------------------------------------------------------- */

.home-popular-card:hover
.home-popular-card__title,
.home-popular-card:focus-visible
.home-popular-card__title {
    color: var(--color-white);
}


/* =========================================================
   RESPONSIVE — TABLET
   ========================================================= */

@media (max-width: 1100px) {

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


/* =========================================================
   RESPONSIVE — MOBILE
   ========================================================= */

@media (max-width: 640px) {

    .home-popular {
        padding:
            60px
            0;
    }

    .home-popular::before {
        background-position:
            65% center;
    }

    .home-popular__header {
        margin-bottom: 34px;
    }

    .home-popular__title {
        font-size:
            clamp(32px, 10vw, 44px);
    }

    .home-popular__title br {
        display: none;
    }

    .home-popular__actions {
        flex-direction: column;

        align-items: stretch;
    }

    .home-popular__actions
    .button {
        width: 100%;
    }

    .home-popular__grid {
        grid-template-columns: 1fr;

        gap: 12px;
    }

    .home-popular-card {
        min-height: 220px;

        grid-template-columns:
            minmax(0, 1fr)
            135px;
    }

    .home-popular-card__content {
        padding: 23px 8px 22px 22px;
    }

    .home-popular-card__visual {
        padding: 38px 15px 25px 0;
    }

    .home-popular-card__visual img {
        width: min(100%, 175px);
        max-height: none;
    }
}


/* ---------------------------------------------------------
   VERY SMALL MOBILE
   --------------------------------------------------------- */

@media (max-width: 430px) {

    .home-popular-card {
        grid-template-columns: 1fr;
        min-height: 0;
    }

    .home-popular-card__content {
        padding: 23px 46px 10px 22px;
    }

    .home-popular-card__text {
        max-width: 320px;
    }

    .home-popular-card__label {
        margin-top: 22px;
    }

    .home-popular-card__visual {
        min-height: 150px;
        padding: 5px 22px 20px;
    }

    .home-popular-card__visual::before {
        display: none;
    }

    .home-popular-card__visual img {
        width: min(62%, 190px);
    }
}


/* =========================================================
   HOME — BEARING SELECTION
   ========================================================= */

.home-selection {
    position: relative;
    overflow: hidden;

    padding:
        clamp(60px, 7vw, 90px)
        0;

    color: var(--color-white);

    background-color: #102F27;
}

/*
   Большая абстрактная техническая окружность справа.
*/

/* ---------------------------------------------------------
   BACKGROUND
   --------------------------------------------------------- */

.home-selection::before {
    content: "";

    position: absolute;
    inset: 0;

    z-index: 0;

    pointer-events: none;

    background:
        url("/assets/images/home.bg.dark.01.jpg")
        center center / cover
        no-repeat;
}

.home-selection::after {
    content: "";

    position: absolute;
    inset: 0;

    z-index: 0;

    pointer-events: none;

    background:
        linear-gradient(
            90deg,
            rgba(5, 29, 23, 0.24) 0%,
            rgba(5, 29, 23, 0.08) 45%,
            rgba(5, 29, 23, 0.18) 100%
        );
}

.home-selection .site-container {
    position: relative;
    z-index: 1;
}


/* =========================================================
   LAYOUT
   ========================================================= */

.home-selection__layout {
    display: grid;

    grid-template-columns:
        minmax(320px, 0.78fr)
        minmax(580px, 1.22fr);

    align-items: center;
    gap: clamp(45px, 7vw, 100px);
}


/* =========================================================
   LEFT CONTENT
   ========================================================= */

.home-selection .section-eyebrow {
    color: rgba(255, 255, 255, 0.62);
}

.home-selection__title {
    margin: 0;
    color: var(--color-white);
    font-size: clamp(42px, 5vw, 68px);
    font-weight: 700;
    line-height: 0.98;
    letter-spacing: -0.045em;
}

.home-selection__intro {
    max-width: 570px;
    margin: 26px 0 0;
    color: rgba(255, 255, 255, 0.64);
    font-size: clamp(16px, 1.35vw, 19px);
    line-height: 1.65;
}


/* ---------------------------------------------------------
   FEATURES
   --------------------------------------------------------- */

.home-selection__features {
    display: grid;
    gap: 14px;
    margin: 34px 0 0;
    padding: 0;
    list-style: none;
}


.home-selection-feature {
    display: flex;
    align-items: center;
    gap: 14px;
    color: rgba(255, 255, 255, 0.88);
    font-size: 15px;
    font-weight: 600;
}


.home-selection-feature__icon {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: rgba(255, 255, 255, 0.85);
    background: rgba(255, 255, 255, 0.035);
}

.home-selection-feature__icon svg {
    width: 21px;
    height: 21px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}


/* ---------------------------------------------------------
   CATALOG BUTTON
   --------------------------------------------------------- */

.home-selection__catalog {
    margin-top: 34px;
    color: var(--color-white);
    border-color: rgba(255, 255, 255, 0.38);
}

.home-selection__catalog:hover,
.home-selection__catalog:focus-visible {
    color: var(--color-green);
    background: var(--color-white);
    border-color: var(--color-white);
}

.home-selection__catalog span {
    margin-left: 12px;
}


/* =========================================================
   PICKER
   ========================================================= */

.bearing-picker {
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(8, 48, 37, 0.72);
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.18);
    backdrop-filter: blur(7px);
    -webkit-backdrop-filter: blur(7px);
}

/* small orange engineering marker */

.bearing-picker::before {
    content: "";
    position: absolute;
    top: -1px;
    left: 38px;
    width: 72px;
    height: 3px;
    background: var(--color-orange);
}


/* =========================================================
   TABS
   ========================================================= */

.bearing-picker__tabs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;
    padding: 26px 26px 0;
}

.bearing-picker-tab {
    min-height: 110px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 11px;
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: rgba(255, 255, 255, 0.70);
    background: rgba(255, 255, 255, 0.025);

    transition:
        color var(--transition),
        border-color var(--transition),
        background-color var(--transition);
}

.bearing-picker-tab svg {
    width: 27px;
    height: 27px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.bearing-picker-tab span {
    font-size: 13px;
    font-weight: 600;
    text-align: center;
}

.bearing-picker-tab:hover,
.bearing-picker-tab:focus-visible {
    color: var(--color-white);
    border-color: rgba(255, 255, 255, 0.34);
}

.bearing-picker-tab.is-active {
    color: var(--color-white);
    border-color: var(--color-orange);
    background: rgba(249, 105, 0, 0.045);
}

.bearing-picker-tab.is-active svg {
    color: var(--color-orange);
}


/* =========================================================
   FORM
   ========================================================= */

.bearing-picker__form {
    padding: 30px 26px 26px;
}

.bearing-picker__panel {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px 22px;
}

.bearing-picker__panel[hidden] {
    display: none;
}


/* =========================================================
   FIELD
   ========================================================= */

.bearing-field {
    min-width: 0;
}

.bearing-field--full {
    grid-column: 1 / -1;
}

.bearing-field label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 13px;
    font-weight: 600;
}

.bearing-field label span {
    color: rgba(255, 255, 255, 0.37);
    font-size: 11px;
    font-weight: 500;
}

.bearing-field input,
.bearing-field select,
.bearing-field textarea {
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 0;
    outline: 0;
    color: var(--color-white);
    background: rgba(3, 30, 23, 0.34);

    transition:
        border-color var(--transition),
        background-color var(--transition),
        box-shadow var(--transition);
}

.bearing-field input,
.bearing-field select {
    height: 50px;
    padding: 0 14px;
}

.bearing-field textarea {
    min-height: 100px;
    padding: 13px 14px;
    resize: vertical;
}

.bearing-field input::placeholder,
.bearing-field textarea::placeholder {
    color: rgba(255, 255, 255, 0.28);
}

.bearing-field input:focus,
.bearing-field select:focus,
.bearing-field textarea:focus {
    border-color: rgba(249, 105, 0, 0.82);
    background: rgba(3, 30, 23, 0.50);
    box-shadow: 0 0 0 3px rgba(249, 105, 0, 0.08);
}

.bearing-field select {
    appearance: none;

    background-image:
        linear-gradient(
            45deg,
            transparent 50%,
            rgba(255, 255, 255, 0.58) 50%
        ),
        linear-gradient(
            135deg,
            rgba(255, 255, 255, 0.58) 50%,
            transparent 50%
        );

    background-position:
        calc(100% - 18px) 21px,
        calc(100% - 13px) 21px;

    background-size: 5px 5px, 5px 5px;

    background-repeat: no-repeat;
    padding-right: 40px;
}


.bearing-field option {
    color: var(--color-text);
    background: var(--color-bg);
}


/* =========================================================
   COMMON BOTTOM
   ========================================================= */

.bearing-picker__common {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}


/* ---------------------------------------------------------
   UPLOAD
   --------------------------------------------------------- */

.bearing-upload {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border: 1px dashed rgba(255, 255, 255, 0.20);
    cursor: pointer;

    transition:
        border-color var(--transition),
        background-color var(--transition);
}

.bearing-upload:hover {
    border-color: rgba(249, 105, 0, 0.66);
    background: rgba(255, 255, 255, 0.025);
}

.bearing-upload__icon {
    width: 43px;
    height: 43px;
    flex: 0 0 43px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.76);
    background: rgba(255, 255, 255, 0.05);
}

.bearing-upload__icon svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.bearing-upload__text {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.bearing-upload__text strong {
    color: rgba(255, 255, 255, 0.82);
    font-size: 13px;
}

.bearing-upload__text small {
    color: rgba(255, 255, 255, 0.40);
    font-size: 11px;
}

.bearing-upload input {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}


/* ---------------------------------------------------------
   SUBMIT
   --------------------------------------------------------- */

.bearing-picker__submit {
    width: 100%;
    min-height: 54px;
    margin-top: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    border: 0;
    color: var(--color-white);
    background: var(--color-orange);
    font-size: 14px;
    font-weight: 700;

    transition:
        background-color var(--transition),
        transform var(--transition);
}


.bearing-picker__submit span {
    font-size: 20px;
    transition: transform var(--transition);
}

.bearing-picker__submit:hover,
.bearing-picker__submit:focus-visible {
    background: #FF7A1B;
    transform: translateY(-2px);
}

.bearing-picker__submit:hover span {
    transform: translateX(4px);
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 1050px) {

    .home-selection__layout {
        grid-template-columns: 1fr;
        gap: 46px;
    }

    .home-selection__content {
        max-width: 760px;
    }

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


/* ---------------------------------------------------------
   MOBILE
   --------------------------------------------------------- */

@media (max-width: 640px) {

    .home-selection {
        padding: 60px 0;
    }

    .home-selection::before {
        background-position: 75% center;
    }

    .home-selection::after {
        background: rgba(5, 29, 23, 0.22);
    }

    .home-selection__title br {
        display: none;
    }

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

    .bearing-picker__tabs {
        grid-template-columns: 1fr;
        padding: 20px 20px 0;
    }

    .bearing-picker-tab {
        min-height: 64px;
        flex-direction: row;
        justify-content: flex-start;
        padding: 0 18px;
    }

    .bearing-picker-tab svg {
        width: 22px;
        height: 22px;
    }

    .bearing-picker__form {
        padding: 24px 20px 20px;
    }

    .bearing-picker__panel {
        grid-template-columns: 1fr;
    }

    .bearing-field--full {
        grid-column: auto;
    }

    .home-selection__catalog {
        width: 100%;
    }
}

/* =========================================================
   HOME — APPLICATIONS
   ========================================================= */
.home-applications {
    position: relative;
    overflow: hidden;
    padding:
        clamp(60px, 7vw, 90px)
        0;
    background-color:
        var(--color-bg);
}

.home-applications::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;

    background:
        url("/assets/images/home.bg.light.03.jpg")
        center right / cover
        no-repeat;
}

.home-applications .site-container {
    position: relative;
    z-index: 1;
}

/* =========================================================
   LAYOUT
   ========================================================= */
.home-applications__layout {
    display: grid;
    grid-template-columns:
        minmax(340px, 0.80fr)
        minmax(620px, 1.20fr);
    align-items: center;
    gap:
        clamp(50px, 6vw, 90px);
}

/* =========================================================
   LEFT CONTENT
   ========================================================= */
.home-applications__content {
    max-width: 600px;
}

.home-applications__title {
    margin: 0;
    color: var(--color-green);
    font-size:
        clamp(38px, 4.4vw, 64px);
    font-weight: 700;
    line-height: 1.04;
    letter-spacing: -0.04em;
}

.home-applications__intro {
    max-width: 560px;
    margin:
        24px
        0
        0;
    color: var(--color-muted);
    font-size:
        clamp(16px, 1.3vw, 18px);
    line-height: 1.68;
}

/* =========================================================
   FEATURES
   ========================================================= */
.home-applications__features {
    display: grid;
    grid-template-columns:
        repeat(3, minmax(0, 1fr));
    margin-top:
        clamp(34px, 4vw, 48px);
}

.home-application-feature {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding:
        0
        18px;
    text-align: center;
}

.home-application-feature:first-child {
    padding-left: 0;
}

.home-application-feature:last-child {
    padding-right: 0;
}

/* vertical separators */
.home-application-feature + .home-application-feature::before {
    content: "";
    position: absolute;
    left: 0;
    top: 5px;
    bottom: 5px;
    width: 1px;
    background:
        rgba(135, 149, 143, 0.28);
}

/* ---------------------------------------------------------
   FEATURE ICON
   --------------------------------------------------------- */
.home-application-feature__icon {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-green);
}

.home-application-feature__icon svg {
    width: 42px;
    height: 42px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/*
   Small orange element inside icons.
*/
.home-application-feature__icon svg path:last-child {
    stroke: var(--color-orange);
}

.home-application-feature__text {
    margin-top: 10px;
    color: var(--color-text);
    font-size: 12px;
    font-weight: 500;
    line-height: 1.45;
}

/* =========================================================
   ACTIONS
   ========================================================= */
.home-applications__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top:
        clamp(34px, 4vw, 48px);
}

/*
   В этом блоке основная кнопка зелёная,
   чтобы не повторять оранжевый CTA
   из предыдущего тёмного блока.
*/
.home-applications
.button--primary {
    background:
        var(--color-green);
    color:
        var(--color-white);
}

.home-applications
.button--primary:hover,
.home-applications
.button--primary:focus-visible {
    background:
        #103B2E;
}

.home-applications
.button--secondary {
    border-color:
        rgba(22, 75, 59, 0.48);
    color:
        var(--color-green);
}

.home-applications
.button--secondary:hover,
.home-applications
.button--secondary:focus-visible {
    color:
        var(--color-white);
    background:
        var(--color-green);
    border-color:
        var(--color-green);
}

.home-applications__button-arrow {
    margin-left: 14px;
    font-size: 19px;
    font-weight: 400;
    transition:
        transform var(--transition);
}

.home-applications
.button:hover
.home-applications__button-arrow {
    transform:
        translateX(4px);
}

/* =========================================================
   APPLICATION GRID
   ========================================================= */
.home-applications__grid {
    display: grid;
    grid-template-columns:
        repeat(3, minmax(0, 1fr));
    gap: 14px;
}

/* =========================================================
   CARD
   ========================================================= */
.home-application-card {
    position: relative;
    overflow: hidden;
    min-height: 300px;
    display: flex;
    flex-direction: column;
    border:
        1px solid
        rgba(135, 149, 143, 0.28);
    background:
        rgba(243, 245, 243, 0.91);
    transition:
        border-color 0.35s ease,
        background-color 0.35s ease,
        transform 0.35s ease,
        box-shadow 0.35s ease;
}

/*
   Orange bottom rail.
*/
.home-application-card::after {
    content: "";
    position: absolute;
    left: 0;
    right: 100%;
    bottom: 0;
    height: 3px;
    background:
        var(--color-orange);
    transition:
        right 0.4s ease;
}

.home-application-card:hover,
.home-application-card:focus-visible {
    background:
        rgba(255, 255, 255, 0.97);
    border-color:
        rgba(22, 75, 59, 0.38);
    transform:
        translateY(-4px);
    box-shadow:
        0 15px 35px
        rgba(22, 75, 59, 0.08);
}

.home-application-card:hover::after,
.home-application-card:focus-visible::after {
    right: 0;
}

/* =========================================================
   CARD VISUAL
   ========================================================= */
.home-application-card__visual {
    position: relative;
    min-height: 225px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding:
        24px
        18px
        10px;
}

/*
   Technical circular field.
*/
.home-application-card__visual::before {
    content: "";
    position: absolute;
    width: 72%;
    aspect-ratio: 1;
    border-radius: 50%;
    background:
        rgba(22, 75, 59, 0.035);
}

.home-application-card__visual::after {
    content: "";
    position: absolute;
    width: 56%;
    aspect-ratio: 1;
    border:
        1px dashed
        rgba(135, 149, 143, 0.20);
    border-radius: 50%;
    transition:
        transform 0.45s ease;
}

.home-application-card__visual img {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 230px;
    max-height: 205px;
    object-fit: contain;
    transition:
        transform 0.45s ease;
}

.home-application-card:hover
.home-application-card__visual img,
.home-application-card:focus-visible
.home-application-card__visual img {
    transform:
        scale(1.045);
}

.home-application-card:hover
.home-application-card__visual::after,
.home-application-card:focus-visible
.home-application-card__visual::after {
    transform:
        rotate(10deg);
}

/* =========================================================
   CARD FOOTER
   ========================================================= */
.home-application-card__footer {
    position: relative;
    z-index: 2;
    min-height: 74px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: auto;
    padding:
        16px
        19px
        18px;
}

.home-application-card__title {
    margin: 0;
    color: var(--color-green);
    font-size:
        clamp(14px, 1.15vw, 17px);
    font-weight: 700;
    line-height: 1.18;
    letter-spacing: -0.015em;
    transition:
        color var(--transition);
}

.home-application-card__arrow {
    flex: 0 0 auto;
    color: var(--color-orange);
    font-size: 23px;
    font-weight: 300;
    line-height: 1;
    transition:
        transform var(--transition);
}

.home-application-card:hover
.home-application-card__title,
.home-application-card:focus-visible
.home-application-card__title {
    color:
        var(--color-orange);
}

.home-application-card:hover
.home-application-card__arrow,
.home-application-card:focus-visible
.home-application-card__arrow {
    transform:
        translateX(5px);
}

/* =========================================================
   RESPONSIVE — TABLET
   ========================================================= */
@media (max-width: 1180px) {
    .home-applications__layout {
        grid-template-columns:
            minmax(300px, 0.7fr)
            minmax(500px, 1.3fr);
        gap: 42px;
    }

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

/* =========================================================
   RESPONSIVE — STACK
   ========================================================= */
@media (max-width: 900px) {
    .home-applications__layout {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .home-applications__content {
        max-width: 760px;
    }

    .home-applications__features {
        max-width: 620px;
    }

    .home-applications__grid {
        grid-template-columns:
            repeat(3, minmax(0, 1fr));
    }
}

/* =========================================================
   RESPONSIVE — MOBILE
   ========================================================= */
@media (max-width: 700px) {
    .home-applications {
        padding: 60px 0;
    }

    .home-applications::before {
        opacity: 0.35;
        background-position: 60% center;
    }

    .home-applications__title br {
        display: none;
    }

    .home-applications__features {
        grid-template-columns: 1fr;
        gap: 0;
        margin-top: 32px;
    }

    .home-application-feature {
        min-height: 68px;
        flex-direction: row;
        justify-content: flex-start;
        gap: 15px;
        padding: 10px 0;
        text-align: left;
    }

    .home-application-feature
    + .home-application-feature::before {
        top: 0;
        left: 0;
        right: 0;
        bottom: auto;
        width: auto;
        height: 1px;
    }

    .home-application-feature__icon {
        width: 46px;
        height: 46px;
        flex: 0 0 46px;
    }

    .home-application-feature__icon svg {
        width: 36px;
        height: 36px;
    }

    .home-application-feature__text {
        margin-top: 0;
        font-size: 13px;
    }

    .home-applications__actions {
        flex-direction: column;
    }

    .home-applications__actions
    .button {
        width: 100%;
    }

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

    .home-application-card {
        min-height: 260px;
    }

    .home-application-card__visual {
        min-height: 175px;
    }

    .home-application-card__visual::before {
        width: clamp(115px, 52%, 150px);
    }

    .home-application-card__visual::after {
        width: clamp(90px, 40%, 120px);
    }

    .home-application-card__visual img {
        max-height: 160px;
    }
}

/* =========================================================
   VERY SMALL MOBILE
   ========================================================= */
@media (max-width: 480px) {
    .home-applications__grid {
        grid-template-columns: 1fr;
    }

    .home-application-card {
        min-height: 0;
    }

    .home-application-card__visual {
        min-height: 210px;
    }

    .home-application-card__visual::before {
        width:
            min(58%, 180px);
    }


    .home-application-card__visual::after {
        width:
            min(44%, 140px);
    }

    .home-application-card__visual img {
        max-width: 240px;
    }
}

/* Векторный логотип SKF внутри заголовка */

.hero--dark .home-hero__skf-logo {
    display: inline-block;

    width: 2.7em;
    height: auto;
    margin-left: 0.12em;

    color: #8DB9A9;

    vertical-align: -0.045em;
    overflow: visible;
}

.home-hero__skf-logo path {
    fill: currentColor;
}

.home-visually-hidden {
    position: absolute;

    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;

    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

@media (max-width: 640px) {
    .hero--dark .home-hero__skf-logo {
        display: block;

        width: 2.55em;
        margin: 0.14em 0 0;
    }
}

.home-hero__registered circle {
    fill: none;
    stroke: currentColor;
    stroke-width: 1.45;
    vector-effect: non-scaling-stroke;
}

.home-hero__registered path {
    fill: currentColor;
}

.home-hero__skf-logo {
    shape-rendering: geometricPrecision;
}
