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

.home-hero-section {
    padding-top: 5px;
}

.home-hero {
    --home-hero-background: none;

    position: relative;
    min-height: 700px;
    padding: 100px 92px;
    overflow: hidden;
    border-radius: 30px;
    color: #ffffff;
    background-color: #263640;
    background-image: var(--home-hero-background);
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    isolation: isolate;
}

.home-hero::before {
    position: absolute;
    z-index: -1;
    inset: 0;
    content: "";
    background:
        linear-gradient(
            90deg,
            rgba(9, 22, 31, 0.75) 0%,
            rgba(9, 22, 31, 0.54) 51%,
            rgba(9, 22, 31, 0.23) 100%
        );
}

.home-hero__content {
    position: relative;
    z-index: 2;
    width: 100%;
}

.home-hero__title {
    max-width: 760px;
    margin: 0 0 14px;
    color: #ffffff;
    font-size: 36px;
    line-height: 1.2;
    font-weight: 700;
}

.home-hero__description {
    max-width: 760px;
    margin-bottom: 48px;
}

.home-hero__description p {
    margin: 0;
    color: #ffffff;
    font-size: 16px;
    line-height: 1.55;
    font-weight: 600;
}


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

.home-hero__features {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: 46px;
    row-gap: 24px;
}

.home-hero__feature {
    display: grid;
    min-width: 0;
    grid-template-columns: 62px minmax(0, 1fr);
    align-items: center;
    gap: 20px;
}

.home-hero__feature-icon {
    display: flex;
    width: 55px;
    height: 55px;
    flex: 0 0 62px;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 13px;
    background: var(--color-secondary);
}

.home-hero__feature-icon-image {
    display: block;
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.home-hero__feature-text {
    color: #ffffff;
    font-size: 16px;
    line-height: 1.32;
    font-weight: 300;
}


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

.home-hero__button {
    display: inline-flex;
    min-width: 260px;
    height: 59px;
    align-items: center;
    justify-content: center;
    margin-top: 52px;
    padding: 0 38px;
    border-radius: 999px;
    color: #ffffff;
    font-size: 20px;
    line-height: 1;
    font-weight: 700;
    text-align: center;
    text-transform: uppercase;
    background: var(--color-primary);
    transition:
        background-color 0.25s ease,
        transform 0.25s ease;
}

.home-hero__button:hover {
    color: #ffffff;
    background: var(--color-secondary);
    transform: translateY(-2px);
}


/* =========================================================
   HERO PRICE OVERLAY
========================================================= */

.home-hero__price {
    position: absolute;
    z-index: 3;
    right: 0;
    bottom: 0;
    width: 360px;
    height: 250px;
    color: #ffffff;
    background: var(--color-primary);
    clip-path: polygon(
        100% 0,
        100% 100%,
        0 100%
    );
    pointer-events: none;
}

.home-hero__price-content {
    position: absolute;
    right: 30px;
    bottom: 30px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    text-align: right;
}

.home-hero__price-label {
    display: block;
    margin-bottom: 2px;
    color: #ffffff;
    font-size: 18px;
    line-height: 1;
    font-weight: 700;
    text-transform: uppercase;
}

.home-hero__price-value {
    display: block;
    color: #ffffff;
    font-size: 58px;
    line-height: 0.95;
    font-weight: 700;
    letter-spacing: -2px;
}


/* =========================================================
   HOME EDITOR CONTENT
========================================================= */

.home-page__editor-content {
    padding-top: 80px;
    padding-bottom: 80px;
}


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

@media (max-width: 1100px) {
    .home-hero {
        padding-right: 60px;
        padding-left: 60px;
    }

    .home-hero__features {
        column-gap: 30px;
    }

    .home-hero__feature {
        gap: 14px;
    }

    .home-hero__feature-text {
        font-size: 14px;
    }
}

@media (max-width: 991px) {
    .home-hero {
        min-height: 0;
        padding: 80px 48px;
    }

    .home-hero--has-price {
        padding-bottom: 225px;
    }

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

    .home-hero__price {
        width: 300px;
        height: 205px;
    }

    .home-hero__price-value {
        font-size: 50px;
    }
}

@media (max-width: 767px) {
    .home-hero-section {
        padding-top: 20px;
    }

    .home-hero {
        padding: 60px 24px;
        border-radius: 24px;
    }

    .home-hero--has-price {
        padding-bottom: 205px;
    }

    .home-hero__title {
        font-size: 28px;
    }

    .home-hero__description {
        margin-bottom: 38px;
    }

    .home-hero__features {
        grid-template-columns: 1fr;
        row-gap: 18px;
    }

    .home-hero__feature {
        grid-template-columns: 56px minmax(0, 1fr);
    }

    .home-hero__feature-icon {
        width: 56px;
        height: 56px;
        flex-basis: 56px;
    }

    .home-hero__button {
        width: 100%;
        min-width: 0;
        margin-top: 42px;
        padding-right: 20px;
        padding-left: 20px;
        font-size: 18px;
    }

    .home-hero__price {
        width: 260px;
        height: 180px;
    }

    .home-hero__price-content {
        right: 22px;
        bottom: 23px;
    }

    .home-hero__price-label {
        font-size: 15px;
    }

    .home-hero__price-value {
        font-size: 44px;
    }
}


/* =========================================================
   HOME HERO — SOFT FADE IN
========================================================= */

@keyframes homeHeroSoftFade {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.home-hero__title,
.home-hero__description,
.home-hero__feature,
.home-hero__button,
.home-hero__price {
    animation-name: homeHeroSoftFade;
    animation-duration: 900ms;
    animation-timing-function: ease;
    animation-fill-mode: both;
}

.home-hero__title {
    animation-delay: 100ms;
}

.home-hero__description {
    animation-delay: 220ms;
}

.home-hero__feature:nth-child(1) {
    animation-delay: 340ms;
}

.home-hero__feature:nth-child(2) {
    animation-delay: 420ms;
}

.home-hero__feature:nth-child(3) {
    animation-delay: 500ms;
}

.home-hero__feature:nth-child(4) {
    animation-delay: 580ms;
}

.home-hero__feature:nth-child(5) {
    animation-delay: 660ms;
}

.home-hero__feature:nth-child(6) {
    animation-delay: 740ms;
}

.home-hero__feature:nth-child(7) {
    animation-delay: 820ms;
}

.home-hero__feature:nth-child(8) {
    animation-delay: 900ms;
}

.home-hero__feature:nth-child(9) {
    animation-delay: 980ms;
}

.home-hero__button {
    animation-delay: 620ms;
}

.home-hero__price {
    animation-duration: 1100ms;
    animation-delay: 350ms;
}

@media (prefers-reduced-motion: reduce) {
    .home-hero__title,
    .home-hero__description,
    .home-hero__feature,
    .home-hero__button,
    .home-hero__price {
        animation: none;
    }
}



/* =========================================================
   HOME STATISTICS
========================================================= */

.home-statistics {
    padding-top: 110px;
    padding-bottom: 110px;
}

.home-statistics__box {
    display: flex;
    width: 100%;
    height: 139px;
    align-items: center;
    justify-content: center;
    padding: 30px 50px;
    border-radius: 30px;
    color: #ffffff;
    background: var(--color-dark);
}

.home-statistics__text {
    width: 100%;
    text-align: center;
}

.home-statistics__text p {
    margin: 0;
    color: #ffffff;
    font-size: 16px;
    line-height: 1.5;
    font-weight: 500;
}

.home-statistics__text strong,
.home-statistics__text b {
    color: var(--color-secondary);
    font-size: 20px;
    font-weight: 700;
}


@media (max-width: 767px) {
    .home-statistics {
        padding-top: 50px;
        padding-bottom: 50px;
    }

    .home-statistics__box {
        height: auto;
        min-height: 139px;
        padding: 32px 24px;
        border-radius: 30px;
    }

    .home-statistics__text p {
        font-size: 15px;
        line-height: 1.6;
    }

    .home-statistics__text strong,
    .home-statistics__text b {
        font-size: 18px;
    }
}



/* =========================================================
   SECURITY PLATFORM
========================================================= */

.home-platform {
    padding-bottom: 110px;
    scroll-margin-top: 140px;
}

.home-platform__head {
    max-width: 760px;
    margin: 0 auto 54px;
    text-align: center;
}

.home-platform__title {
    margin: 0 0 14px;
    color: var(--color-dark);
    font-size: 32px;
    line-height: 1.2;
    font-weight: 700;
}

.home-platform__description {
    margin: 0;
    color: var(--color-dark);
    font-size: 16px;
    line-height: 1.5;
    font-weight: 500;
}


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

.home-platform__tabs {
    display: flex;
    width: 100%;
    max-width: 570px;
    height: 43px;
    margin: 0 auto 58px;
    padding: 0;
    overflow: hidden;
    border-radius: 999px;
    background: #f1f1f1;
}

.home-platform__tab {
    display: flex;
    min-width: 0;
    height: 43px;
    flex: 1 1 0;
    align-items: center;
    justify-content: center;
    padding: 0 24px;
    border: 0;
    border-radius: 999px;
    color: var(--color-dark);
    font-size: 14px;
    line-height: 1;
    font-weight: 600;
    text-align: center;
    text-transform: uppercase;
    white-space: nowrap;
    background: transparent;
    transition:
        color 0.25s ease,
        background-color 0.25s ease;
}

.home-platform__tab.is-active {
    color: #ffffff;
    background: var(--color-primary);
}


/* =========================================================
   PANEL
========================================================= */

.home-platform__panel[hidden] {
    display: none;
}

.home-platform__panel-inner {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
}

.home-platform__group-title {
    margin: 0 0 26px;
    color: var(--color-dark);
    font-size: 20px;
    line-height: 1.3;
    font-weight: 600;
    text-align: center;
}


/* =========================================================
   ITEMS
========================================================= */

.home-platform__items {
    display: grid;
    grid-template-columns:
        repeat(
            var(--tree-columns),
            minmax(0, 1fr)
        );
    align-items: start;
}

.home-platform__item {
    display: flex;
    min-width: 0;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.home-platform__item-image {
    display: flex;
    width: 80px;
    height: 80px;
    align-items: center;
    justify-content: center;
    padding: 8px;
    overflow: hidden;
    border-radius: 12px;
    background: #f4f4f4;
}

.home-platform__item-img {
    display: block;
    width: auto;
    max-width: 50px;
    height: auto;
    max-height: 50px;
    object-fit: contain;
}

.home-platform__item-title {
    width: 100%;
    min-height: 48px;
    margin-top: 17px;
    padding: 0 8px;
    color: var(--color-dark);
    font-size: 14px;
    line-height: 1.35;
    font-weight: 400;
}


/* =========================================================
   CONNECTOR LINES
========================================================= */

.home-platform__connectors {
    position: relative;
    display: grid;
    width: 100%;
    grid-template-columns:
        repeat(
            var(--tree-columns),
            minmax(0, 1fr)
        );
}

.home-platform__connectors span {
    justify-self: center;
    border-left: 1px solid #dedede;
}

.home-platform__connectors--accessories {
    height: 70px;
}

.home-platform__connectors--accessories::before {
    position: absolute;
    top: 27px;
    right: var(--tree-edge);
    left: var(--tree-edge);
    height: 1px;
    content: "";
    background: #dedede;
}

.home-platform__connectors--accessories::after {
    position: absolute;
    top: 27px;
    bottom: 0;
    left: 50%;
    width: 1px;
    content: "";
    background: #dedede;
    transform: translateX(-50%);
}

.home-platform__connectors--accessories span {
    height: 28px;
}

.home-platform__connectors--functions {
    height: 78px;
}

.home-platform__connectors--functions::before {
    position: absolute;
    top: 32px;
    right: var(--tree-edge);
    left: var(--tree-edge);
    height: 1px;
    content: "";
    background: #dedede;
}

.home-platform__connectors--functions::after {
    position: absolute;
    top: 0;
    left: 50%;
    width: 1px;
    height: 33px;
    content: "";
    background: #dedede;
    transform: translateX(-50%);
}

.home-platform__connectors--functions span {
    height: 46px;
    margin-top: 32px;
}


/* =========================================================
   CENTRAL DEVICE
========================================================= */

.home-platform__device {
    display: flex;
    width: 268px;
    height: 275px;
    align-items: center;
    justify-content: center;
    margin: 0px auto 0;
    padding: 22px;
    overflow: hidden;
    border-radius: 14px;
    background: #f4f4f4;
}

.home-platform__device-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}


/* =========================================================
   FUNCTIONS
========================================================= */

.home-platform__group-title--functions {
    position: relative;
    z-index: 2;
    width: max-content;
    max-width: 100%;
    margin: 10px auto 26px;
    padding: 0 22px;
    background: #ffffff;
}

/* =========================================================
   PLATFORM HORIZONTAL SCROLL
========================================================= */

.home-platform__scroll {
    width: 100%;
}

.home-platform__scroll-inner {
    width: 100%;
    min-width: 0;
}

.home-platform__panels {
    width: 100%;
}

/* =========================================================
   SECURITY PLATFORM — TABLET
========================================================= */

@media (max-width: 991px) {
    .home-platform {
        padding-bottom: 90px;
        overflow: visible;
    }

    .home-platform__head {
        max-width: 700px;
        margin: 0 auto 44px;
        text-align: center;
    }

    .home-platform__scroll {
        width: 100%;
        padding: 0;
        overflow: visible;
    }

    .home-platform__scroll-inner,
    .home-platform__panels,
    .home-platform__panel-inner {
        width: 100%;
        min-width: 0;
        max-width: 100%;
    }

    /* Tabs */

    .home-platform__tabs {
        width: 100%;
        max-width: 540px;
        height: auto;
        min-height: 43px;
        margin: 0 auto 46px;
    }

    .home-platform__tab {
        min-height: 43px;
        height: auto;
        padding: 8px 14px;
        font-size: 11px;
        line-height: 1.2;
        white-space: normal;
    }

    /* Panel */

    .home-platform__panel-inner {
        max-width: 760px;
        margin: 0 auto;
    }

    .home-platform__group-title {
        margin-bottom: 22px;
        font-size: 18px;
        text-align: center;
    }

    /* Items */

    .home-platform__items {
        width: 100%;
        column-gap: 4px;
    }

    .home-platform__item-image {
        width: 64px;
        height: 64px;
        padding: 6px;
        border-radius: 10px;
    }

    .home-platform__item-title {
        min-height: 42px;
        margin-top: 12px;
        padding: 0 4px;
        font-size: 11px;
        line-height: 1.3;
        overflow-wrap: anywhere;
    }

    /* Accessory connectors */

    .home-platform__connectors--accessories {
        height: 58px;
    }

    .home-platform__connectors--accessories::before {
        top: 22px;
    }

    .home-platform__connectors--accessories::after {
        top: 22px;
    }

    .home-platform__connectors--accessories span {
        height: 23px;
    }

    /* Central device */

    .home-platform__device {
        width: 220px;
        height: 226px;
        margin: 16px auto 0;
        padding: 18px;
        border-radius: 13px;
    }

    /* Function connectors */

    .home-platform__connectors--functions {
        height: 66px;
    }

    .home-platform__connectors--functions::before {
        top: 27px;
    }

    .home-platform__connectors--functions::after {
        height: 28px;
    }

    .home-platform__connectors--functions span {
        height: 39px;
        margin-top: 27px;
    }

    .home-platform__group-title--functions {
        margin: -4px auto 22px;
        padding: 0 18px;
    }
}


/* =========================================================
   SECURITY PLATFORM — MOBILE
========================================================= */

@media (max-width: 767px) {
    .home-platform {
        padding-bottom: 50px;
        scroll-margin-top: 110px;
    }

    .home-platform__head {
        width: 100%;
        margin: 0 auto 34px;
        text-align: center;
    }

    .home-platform__title {
        margin-bottom: 12px;
        font-size: 28px;
        line-height: 1.18;
    }

    .home-platform__description {
        font-size: 15px;
        line-height: 1.5;
    }

    .home-platform__scroll,
    .home-platform__scroll-inner,
    .home-platform__panels,
    .home-platform__panel-inner {
        width: 100%;
        min-width: 0;
        max-width: 100%;
    }

    .home-platform__scroll {
        overflow: visible;
    }

    .home-platform__tabs {
        display: grid;
        width: 100%;
        max-width: 400px;
        height: auto;
        min-height: 0;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
        margin: 0 auto 38px;
        overflow: visible;
        border-radius: 0;
        background: transparent;
    }

    .home-platform__tab {
        width: 100%;
        min-width: 0;
        min-height: 42px;
        height: auto;
        padding: 8px 7px;
        border-radius: 999px;
        font-size: 10px;
        line-height: 1.2;
        white-space: normal;
        background: #f1f1f1;
    }

    .home-platform__tab.is-active {
        color: #ffffff;
        background: var(--color-primary);
    }

    .home-platform__tab:only-child,
    .home-platform__tab:last-child:nth-child(odd) {
        grid-column: 1 / -1;
    }

    .home-platform__panel-inner {
        margin: 0 auto;
    }

    .home-platform__group-title {
        width: 100%;
        margin: 0 auto 18px;
        font-size: 16px;
        line-height: 1.3;
        text-align: center;
    }

    .home-platform__tree {
        width: 100%;
    }

    .home-platform__items {
        width: 100%;
        column-gap: 2px;
    }

    .home-platform__item {
        width: 100%;
        min-width: 0;
    }

    .home-platform__item-image {
        width: 48px;
        height: 48px;
        padding: 5px;
        border-radius: 9px;
    }
    
    .home-platform__item-img {
    max-width: 38px;
    max-height: 29px;
}

    .home-platform__item-title {
        width: 100%;
        min-height: 38px;
        margin-top: 9px;
        padding: 0 2px;
        font-size: 9px;
        line-height: 1.25;
        overflow-wrap: anywhere;
    }

    .home-platform__connectors--accessories {
        height: 48px;
    }

    .home-platform__connectors--accessories::before {
        top: 18px;
    }

    .home-platform__connectors--accessories::after {
        top: 18px;
    }

    .home-platform__connectors--accessories span {
        height: 19px;
    }

    .home-platform__device {
        display: flex;
        width: 170px;
        height: 175px;
        align-items: center;
        justify-content: center;
        margin: 12px auto 0;
        padding: 13px;
        border-radius: 12px;
    }

    .home-platform__device-image {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: contain;
        object-position: center;
    }

    /* Function connectors */

    .home-platform__connectors--functions {
        height: 54px;
    }

    .home-platform__connectors--functions::before {
        top: 22px;
    }

    .home-platform__connectors--functions::after {
        height: 23px;
    }

    .home-platform__connectors--functions span {
        height: 32px;
        margin-top: 22px;
    }

    .home-platform__group-title--functions {
        width: max-content;
        max-width: 100%;
        margin: -3px auto 18px;
        padding: 0 14px;
        text-align: center;
    }
}


/* =========================================================
   SECURITY PLATFORM — SMALL MOBILE
========================================================= */

@media (max-width: 420px) {
    .home-platform__tabs {
        max-width: 100%;
        gap: 7px;
    }

    .home-platform__tab {
        min-height: 40px;
        padding-right: 5px;
        padding-left: 5px;
        font-size: 9px;
    }

    .home-platform__item-image {
        width: 44px;
        height: 44px;
        padding: 4px;
    }

    .home-platform__item-title {
        font-size: 8.5px;
    }

    .home-platform__device {
        width: 160px;
        height: 165px;
    }
}


/* =========================================================
   ALARM PLUS INFO SECTION
========================================================= */

.home-alarm-plus {
    padding-bottom: 110px;
}

.home-alarm-plus__box {
    padding: 100px 92px;
    border-radius: 30px;
    background: var(--color-dark);
}

.home-alarm-plus__title {
    margin: 0 0 48px;
    color: #ffffff;
    font-size: 32px;
    line-height: 1.2;
    font-weight: 700;
}

.home-alarm-plus__row {
    display: flex;
    gap: 36px;
}

.home-alarm-plus__row + .home-alarm-plus__row {
    margin-top: 18px;
}

.home-alarm-plus__card {
    flex: 0 0 auto;
    color: #ffffff;
}

.home-alarm-plus__card--small {
    width: 352px;
}

.home-alarm-plus__card--wide {
    width: 542px;
}

.home-alarm-plus__card-image-wrap {
    width: 100%;
    height: 188px;
    overflow: hidden;
    border-radius: 12px;
}

.home-alarm-plus__card-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.home-alarm-plus__card-text {
    margin-top: 28px;
    color: #ffffff;
    font-size: 16px;
    line-height: 1.5;
    font-weight: 400;
}

.home-alarm-plus__card-title {
    font-weight: 700;
}

.home-alarm-plus__card-separator,
.home-alarm-plus__card-description {
    font-weight: 400;
}

.home-alarm-plus__card-separator {
    margin: 0 4px;
}


/* =========================================================
   ALARM PLUS INFO SECTION — RESPONSIVE
========================================================= */

@media (max-width: 1199px) {
    .home-alarm-plus__box {
        padding-right: 60px;
        padding-left: 60px;
    }

    .home-alarm-plus__row {
        gap: 24px;
    }

    .home-alarm-plus__card--small {
        width: calc(40% - 12px);
    }

    .home-alarm-plus__card--wide {
        width: calc(60% - 12px);
    }
}

@media (max-width: 991px) {
    .home-alarm-plus {
        padding-bottom: 90px;
    }

    .home-alarm-plus__box {
        padding: 90px 40px;
    }

    .home-alarm-plus__title {
        margin-bottom: 38px;
    }

    .home-alarm-plus__row {
        gap: 20px;
    }

    .home-alarm-plus__card-image-wrap {
        height: 170px;
    }

    .home-alarm-plus__card-text {
        margin-top: 20px;
        font-size: 15px;
    }
}

@media (max-width: 767px) {
    .home-alarm-plus {
        padding-bottom: 50px;
    }

    .home-alarm-plus__box {
        padding: 70px 24px;
        border-radius: 24px;
    }

    .home-alarm-plus__title {
        margin-bottom: 30px;
        font-size: 28px;
    }

    .home-alarm-plus__row {
        flex-direction: column;
        gap: 28px;
    }

    .home-alarm-plus__row + .home-alarm-plus__row {
        margin-top: 28px;
    }

    .home-alarm-plus__card--small,
    .home-alarm-plus__card--wide {
        width: 100%;
    }

    .home-alarm-plus__card-image-wrap {
        height: 188px;
    }

    .home-alarm-plus__card-text {
        margin-top: 18px;
        font-size: 15px;
    }
}


/* =========================================================
   ALARM PLUS — SEQUENTIAL REVEAL
========================================================= */

.home-alarm-plus--reveal .home-alarm-plus__title,
.home-alarm-plus--reveal .home-alarm-plus__card {
    opacity: 0;
    transform: translate3d(0, 18px, 0);
    transition:
        opacity 1200ms cubic-bezier(0.22, 1, 0.36, 1),
        transform 1200ms cubic-bezier(0.22, 1, 0.36, 1);
}

/* Заголовок */
.home-alarm-plus--reveal .home-alarm-plus__title {
    transition-delay: 0ms;
}

/* Перша картка */
.home-alarm-plus--reveal
.home-alarm-plus__row--first
.home-alarm-plus__card:nth-child(1) {
    transition-delay: 300ms;
}

/* Друга картка */
.home-alarm-plus--reveal
.home-alarm-plus__row--first
.home-alarm-plus__card:nth-child(2) {
    transition-delay: 600ms;
}

/* Третя картка */
.home-alarm-plus--reveal
.home-alarm-plus__row--second
.home-alarm-plus__card:nth-child(1) {
    transition-delay: 900ms;
}

/* Четверта картка */
.home-alarm-plus--reveal
.home-alarm-plus__row--second
.home-alarm-plus__card:nth-child(2) {
    transition-delay: 1200ms;
}

.home-alarm-plus--reveal.is-visible
.home-alarm-plus__title,
.home-alarm-plus--reveal.is-visible
.home-alarm-plus__card {
    opacity: 1;
    transform: translate3d(0, 0, 0);
}

@media (prefers-reduced-motion: reduce) {
    .home-alarm-plus--reveal .home-alarm-plus__title,
    .home-alarm-plus--reveal .home-alarm-plus__card {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* =========================================================
   HOME FEATURES
========================================================= */

.home-features {
    padding-bottom: 110px;
    scroll-margin-top: 140px;
}

.home-features__head {
    max-width: 760px;
    margin: 0 auto 54px;
    text-align: center;
}

.home-features__title {
    margin: 0 0 20px;
    color: var(--color-dark);
    font-size: 32px;
    line-height: 1.2;
    font-weight: 700;
}

.home-features__description {
    max-width: 720px;
    margin: 0 auto;
}

.home-features__description p {
    margin: 0;
    color: var(--color-dark);
    font-size: 20px;
    line-height: 1.45;
    font-weight: 600;
}

.home-features__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    column-gap: 40px;
    row-gap: 36px;
}

.home-features__item {
    display: flex;
    min-width: 0;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.home-features__icon {
    display: flex;
    width: 55px;
    height: 55px;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 10px;
    background: var(--color-secondary);
}

.home-features__icon-image {
    display: block;
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.home-features__item-title {
    margin-top: 24px;
    color: var(--color-dark);
    font-size: 16px;
    line-height: 1.4;
    font-weight: 400;
}


/* =========================================================
   HOME FEATURES — TABLET
========================================================= */

@media (max-width: 991px) {
    .home-features {
        padding-bottom: 90px;
    }

    .home-features__head {
        margin-bottom: 46px;
    }

    .home-features__grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        column-gap: 20px;
        row-gap: 34px;
    }

    .home-features__item-title {
        font-size: 13px;
    }
}


/* =========================================================
   HOME FEATURES — MOBILE
========================================================= */

@media (max-width: 767px) {
    .home-features {
        padding-bottom: 50px;
    }

    .home-features__head {
        margin-bottom: 38px;
    }

    .home-features__title {
        margin-bottom: 16px;
        font-size: 28px;
    }

    .home-features__description p {
        font-size: 15px;
        line-height: 1.5;
    }

    .home-features__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        column-gap: 20px;
        row-gap: 34px;
    }

    .home-features__icon {
        width: 56px;
        height: 56px;
    }

    .home-features__item-title {
        margin-top: 16px;
        font-size: 13px;
    }
}

/* =========================================================
   HOME FEATURES — SEQUENTIAL REVEAL
========================================================= */

.home-features.is-reveal-ready .home-features__title,
.home-features.is-reveal-ready .home-features__description,
.home-features.is-reveal-ready .home-features__item {
    opacity: 0;
    will-change: opacity, transform;
}

/* Заголовок */
.home-features.is-reveal-ready .home-features__title {
    transform: translate3d(0, 14px, 0);
    transition:
        opacity 1000ms cubic-bezier(0.22, 1, 0.36, 1),
        transform 1000ms cubic-bezier(0.22, 1, 0.36, 1);
}

/* Опис */
.home-features.is-reveal-ready .home-features__description {
    transform: translate3d(0, 12px, 0);
    transition:
        opacity 1000ms cubic-bezier(0.22, 1, 0.36, 1) 180ms,
        transform 1000ms cubic-bezier(0.22, 1, 0.36, 1) 180ms;
}

/* Блоки */
.home-features.is-reveal-ready .home-features__item {
    transform:
        translate3d(0, 16px, 0)
        scale(0.985);

    transition:
        opacity 1000ms cubic-bezier(0.22, 1, 0.36, 1)
            var(--features-delay, 360ms),
        transform 1000ms cubic-bezier(0.22, 1, 0.36, 1)
            var(--features-delay, 360ms);
}

/* Кінцевий стан */
.home-features.is-reveal-ready.is-visible
.home-features__title,
.home-features.is-reveal-ready.is-visible
.home-features__description,
.home-features.is-reveal-ready.is-visible
.home-features__item {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
}

/* Після завершення прибираємо will-change */
.home-features.is-reveal-complete
.home-features__title,
.home-features.is-reveal-complete
.home-features__description,
.home-features.is-reveal-complete
.home-features__item {
    will-change: auto;
}

@media (max-width: 767px) {
    .home-features.is-reveal-ready .home-features__title,
    .home-features.is-reveal-ready .home-features__description,
    .home-features.is-reveal-ready .home-features__item {
        transform: translate3d(0, 10px, 0);
    }

    .home-features.is-reveal-ready.is-visible
    .home-features__title,
    .home-features.is-reveal-ready.is-visible
    .home-features__description,
    .home-features.is-reveal-ready.is-visible
    .home-features__item {
        transform: translate3d(0, 0, 0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .home-features.is-reveal-ready .home-features__title,
    .home-features.is-reveal-ready .home-features__description,
    .home-features.is-reveal-ready .home-features__item {
        opacity: 1;
        transform: none;
        transition: none;
        will-change: auto;
    }
}



/* =========================================================
   HOME MOBILE APP
========================================================= */

.home-mobile-app {
    padding-bottom: 110px;
    scroll-margin-top: 140px;
}

.home-mobile-app__box {
    padding: 100px 92px;
    overflow: hidden;
    border-radius: 30px;
    background: #f4f4f4;
}


/* Head */

.home-mobile-app__head {
    width: 100%;
    margin-bottom: 50px;
}

.home-mobile-app__title {
    margin: 0 0 18px;
    color: var(--color-dark);
    font-size: 32px;
    line-height: 1.2;
    font-weight: 700;
}

.home-mobile-app__subtitle {
    margin: 0;
    color: var(--color-dark);
    font-size: 20px;
    line-height: 1.35;
    font-weight: 600;
    white-space: nowrap;
}


/* Description */

.home-mobile-app__text {
    width: 100%;
    margin-bottom: 12px;
}

.home-mobile-app__text p {
    width: 100%;
    margin: 0;
    color: var(--color-dark);
    font-size: 16px;
    line-height: 1.55;
    font-weight: 400;
}


/* Bottom content */

.home-mobile-app__body {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 605px;
    align-items: start;
    gap: 36px;
    width: 100%;
}

.home-mobile-app__body--without-image {
    grid-template-columns: 1fr;
}

.home-mobile-app__left {
    min-width: 0;
    padding-top: 2px;
}


/* List */

.home-mobile-app__list {
    margin: 0 0 42px;
    padding: 0;
    list-style: none;
}

.home-mobile-app__list-item {
    position: relative;
    margin-bottom: 10px;
    padding-left: 14px;
    color: var(--color-dark);
    font-size: 16px;
    line-height: 1.45;
    font-weight: 400;
}

.home-mobile-app__list-item:last-child {
    margin-bottom: 0;
}

.home-mobile-app__list-item::before {
    position: absolute;
    top: 0.65em;
    left: 0;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    content: "";
    background: var(--color-primary);
    transform: translateY(-50%);
}


/* Store buttons */

.home-mobile-app__buttons {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
}

.home-mobile-app__store-button {
    display: inline-flex;
    width: fit-content;
    text-decoration: none;
    transition:
        opacity 0.2s ease,
        transform 0.2s ease;
}

.home-mobile-app__store-button:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.home-mobile-app__store-image {
    display: block;
    width: 260px;
    max-width: 100%;
    height: auto;
}


/* Main image */

.home-mobile-app__visual {
    width: 605px;
    height: 414px;
    margin-top: 30px;
}

.home-mobile-app__visual-image {
    display: block;
    width: 605px;
    height: 414px;
    object-fit: contain;
    object-position: center;
}


/* =========================================================
   HOME MOBILE APP — TABLET
========================================================= */

@media (max-width: 1199px) {
    .home-mobile-app__box {
        padding: 80px 50px;
    }

    .home-mobile-app__body {
        grid-template-columns:
            minmax(220px, 1fr)
            minmax(0, 520px);
        gap: 30px;
    }

    .home-mobile-app__visual {
        width: 100%;
        height: auto;
        aspect-ratio: 605 / 414;
    }

    .home-mobile-app__visual-image {
        width: 100%;
        height: 100%;
    }

    .home-mobile-app__store-image {
        width: 230px;
    }
}

@media (max-width: 991px) {
    .home-mobile-app {
        padding-bottom: 90px;
    }

    .home-mobile-app__box {
        padding: 70px 40px;
    }

    .home-mobile-app__head {
        margin-bottom: 38px;
    }

    .home-mobile-app__body {
        grid-template-columns:
            minmax(210px, 1fr)
            minmax(0, 440px);
        gap: 24px;
    }

    .home-mobile-app__list {
        margin-bottom: 32px;
    }

    .home-mobile-app__list-item {
        font-size: 15px;
    }

    .home-mobile-app__store-image {
        width: 210px;
    }
}


/* =========================================================
   HOME MOBILE APP — MOBILE
========================================================= */

@media (max-width: 767px) {
    .home-mobile-app {
        padding-bottom: 50px;
        scroll-margin-top: 100px;
    }

    .home-mobile-app__box {
        padding: 50px 24px;
        border-radius: 24px;
    }

    .home-mobile-app__head {
        margin-bottom: 28px;
    }

    .home-mobile-app__title {
        margin-bottom: 14px;
        font-size: 28px;
    }

    .home-mobile-app__subtitle {
        font-size: 17px;
        white-space: normal;
    }

    .home-mobile-app__text {
        margin-bottom: 24px;
    }

    .home-mobile-app__text p {
        font-size: 15px;
        line-height: 1.5;
    }

    .home-mobile-app__body {
        grid-template-columns: 1fr;
        gap: 38px;
    }

    .home-mobile-app__left {
        padding-top: 0;
    }

    .home-mobile-app__list {
        margin-bottom: 28px;
    }

    .home-mobile-app__list-item {
        font-size: 15px;
    }

    .home-mobile-app__buttons {
        gap: 14px;
        flex-direction: row-reverse;
    }

    .home-mobile-app__store-image {
        width: 220px;
    }

    .home-mobile-app__visual {
        width: 100%;
        max-width: 605px;
        height: auto;
        margin: 0 auto;
        aspect-ratio: 605 / 414;
    }

    .home-mobile-app__visual-image {
        width: 100%;
        height: 100%;
    }
}
