/* =========================================================
   WHY HAPPY CHILD
   Mobile first: 320px+
   ========================================================= */

.hc-why {
    position: relative;
    padding: 55px 0 60px;
    overflow: hidden;
    background: #fffaf7;
    font-family: "Montserrat", Arial, sans-serif;
}

.hc-why__container {
    width: 100%;
    max-width: 1540px;
    margin: 0 auto;
    padding: 0 18px;
    box-sizing: border-box;
}


/* =========================================================
   HEADER
   ========================================================= */

.hc-why__head {
    position: relative;
    margin-bottom: 34px;
}

.hc-why__intro {
    position: relative;
    z-index: 2;
}

.hc-why__line {
    display: block;
    width: 54px;
    height: 3px;
    margin-bottom: 18px;
    border-radius: 3px;
    background: #ff5a1f;
}

.hc-why__title {
    margin: 0;
    color: #11152b;
    font-size: 30px;
    font-weight: 700;
    line-height: 1.16;
    letter-spacing: -0.5px;
}

.hc-why__title span {
    display: block;
    color: #ff5a1f;
}

.hc-why__lead {
    max-width: 650px;
    margin: 20px 0 0;
    color: #626477;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.55;
}


/* Декоративную подпись на телефоне пока убираем */

.hc-why__note {
    display: none;
}


/* =========================================================
   CARDS
   ========================================================= */

.hc-why__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

.hc-why-card {
    position: relative;
    min-width: 0;
    overflow: hidden;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 8px 30px rgba(32, 34, 55, 0.08);
}


/* PHOTO */

.hc-why-card__photo {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #f3f3f3;
}

.hc-why-card__photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}


/* CARD BODY */

.hc-why-card__body {
    position: relative;
    padding: 56px 22px 27px;
}


/* ICON */

.hc-why-card__icon {
    position: absolute;
    top: -43px;
    left: 50%;
    z-index: 2;

    width: 86px;
    height: 86px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 3px solid #fff;
    border-radius: 50%;

    background: linear-gradient(
        145deg,
        #ff9a50 0%,
        #ff5a1f 100%
    );

    box-shadow: 0 5px 15px rgba(255, 90, 31, 0.22);

    transform: translateX(-50%);
}

.hc-why-card__icon img {
    display: block;
    width: 42px;
    height: 42px;
    object-fit: contain;
}


/* TEXT */

.hc-why-card__title {
    margin: 0;
    color: #11152b;
    font-size: 21px;
    font-weight: 700;
    line-height: 1.25;
    text-align: center;
}

.hc-why-card__text {
    margin: 16px 0 0;
    color: #67697a;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.6;
    text-align: left;
}


/* =========================================================
   ACTIONS
   ========================================================= */

.hc-why__actions {
    display: flex;
    flex-direction: column;
    gap: 12px;

    width: 100%;
    margin-top: 34px;
}

.hc-why__button {
    width: 100%;
    min-height: 58px;
    padding: 12px 18px;

    display: flex;
    align-items: center;
    justify-content: center;

    box-sizing: border-box;
    border-radius: 8px;

    font-family: "Montserrat", Arial, sans-serif;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.3;
    text-align: center;
    text-decoration: none;

    transition:
        background-color 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease;
}


/* PRIMARY */

.hc-why__button--primary {
    border: 2px solid #ff5a1f;
    background: #ff5a1f;
    color: #fff;
}

.hc-why__button--primary:hover {
    border-color: #ed4810;
    background: #ed4810;
    color: #fff;
    text-decoration: none;
}

.hc-why__button-text {
    min-width: 0;
}

.hc-why__button-arrow {
    flex: 0 0 auto;
    margin-left: 10px;
    font-size: 23px;
    font-weight: 400;
    line-height: 1;
}


/* SECONDARY */

.hc-why__button--secondary {
    border: 2px solid #ff5a1f;
    background: transparent;
    color: #ff5a1f;
}

.hc-why__button--secondary:hover {
    background: #ff5a1f;
    color: #fff;
    text-decoration: none;
}


/* =========================================================
   VERY SMALL PHONES
   320–359px
   ========================================================= */

@media (max-width: 359px) {

    .hc-why {
        padding-top: 45px;
        padding-bottom: 50px;
    }

    .hc-why__container {
        padding-left: 14px;
        padding-right: 14px;
    }

    .hc-why__title {
        font-size: 27px;
    }

    .hc-why__lead {
        font-size: 15px;
    }

    .hc-why-card__body {
        padding-left: 18px;
        padding-right: 18px;
    }

    .hc-why-card__title {
        font-size: 20px;
    }

    .hc-why__button {
        padding-left: 14px;
        padding-right: 14px;
        font-size: 15px;
    }
}

/* =========================================================
   TABLET
   768px+
   ========================================================= */

@media (min-width: 768px) {

    .hc-why {
        padding: 70px 0 75px;
    }

    .hc-why__container {
        padding-left: 30px;
        padding-right: 30px;
    }


    /* HEADER */

    .hc-why__head {
        margin-bottom: 42px;
    }

    .hc-why__line {
        width: 60px;
        margin-bottom: 20px;
    }

    .hc-why__title {
        font-size: 38px;
        line-height: 1.15;
    }

    .hc-why__title span {
        display: inline;
    }

    .hc-why__lead {
        max-width: 700px;
        margin-top: 22px;
        font-size: 17px;
        line-height: 1.6;
    }


    /* CARDS: 2 × 2 */

    .hc-why__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 26px 22px;
    }

    .hc-why-card {
        border-radius: 20px;
    }

    .hc-why-card__body {
        padding: 55px 24px 30px;
    }

    .hc-why-card__icon {
        top: -42px;
        width: 84px;
        height: 84px;
    }

    .hc-why-card__icon img {
        width: 40px;
        height: 40px;
    }

    .hc-why-card__title {
        font-size: 21px;
        line-height: 1.25;
    }

    .hc-why-card__text {
        margin-top: 15px;
        font-size: 15px;
        line-height: 1.6;
    }


    /* BUTTONS */

    .hc-why__actions {
        flex-direction: row;
        justify-content: center;
        gap: 14px;

        margin-top: 42px;
    }

    .hc-why__button {
        width: auto;
        min-height: 60px;
        padding: 0 24px;

        font-size: 16px;
    }

    .hc-why__button--primary {
        min-width: 390px;
    }

    .hc-why__button--secondary {
        min-width: 210px;
    }

}

/* =========================================================
   SMALL DESKTOP
   992px+
   ========================================================= */

@media (min-width: 992px) {

    .hc-why {
        padding: 80px 0 85px;
    }

    .hc-why__container {
        padding-left: 40px;
        padding-right: 40px;
    }


    /* HEADER */

    .hc-why__head {
        margin-bottom: 48px;
    }

    .hc-why__line {
        width: 64px;
        height: 3px;
        margin-bottom: 22px;
    }

    .hc-why__title {
        font-size: 44px;
        line-height: 1.13;
        letter-spacing: -0.7px;
    }

    .hc-why__lead {
        max-width: 800px;
        margin-top: 24px;
        font-size: 18px;
        line-height: 1.6;
    }


    /* CARDS */

    .hc-why__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 30px;
    }

    .hc-why-card {
        border-radius: 22px;
    }

    .hc-why-card__body {
        padding: 62px 32px 34px;
    }

    .hc-why-card__icon {
        top: -46px;
        width: 92px;
        height: 92px;
    }

    .hc-why-card__icon img {
        width: 44px;
        height: 44px;
    }

    .hc-why-card__title {
        font-size: 23px;
        line-height: 1.25;
    }

    .hc-why-card__text {
        margin-top: 17px;
        font-size: 16px;
        line-height: 1.6;
    }


    /* BUTTONS */

    .hc-why__actions {
        gap: 16px;
        margin-top: 48px;
    }

    .hc-why__button {
        min-height: 62px;
        padding: 0 28px;
        font-size: 17px;
    }

    .hc-why__button--primary {
        min-width: 420px;
    }

    .hc-why__button--secondary {
        min-width: 230px;
    }

}

/* =========================================================
   DESKTOP
   1200px+
   ========================================================= */

@media (min-width: 1200px) {

    .hc-why {
        padding: 90px 0 95px;
    }

    .hc-why__container {
        padding-left: 48px;
        padding-right: 48px;
    }


    /* HEADER */

    .hc-why__head {
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        gap: 50px;

        margin-bottom: 52px;
    }

    .hc-why__intro {
        flex: 1 1 auto;
        min-width: 0;
    }

    .hc-why__line {
        width: 64px;
        height: 3px;
        margin-bottom: 22px;
    }

    .hc-why__title {
        max-width: none;
        font-size: 44px;
        line-height: 1.12;
        letter-spacing: -0.8px;
        white-space: nowrap;
    }

    .hc-why__lead {
        max-width: 850px;
        margin-top: 24px;
        font-size: 18px;
        line-height: 1.6;
    }


    /* DECORATIVE NOTE */

    .hc-why__note {
        position: relative;

        flex: 0 0 220px;
        min-height: 145px;

        display: flex;
        align-items: center;
        justify-content: center;

        margin-top: -15px;
    }

    .hc-why__sun {
        position: absolute;
        top: -85px;
        right: -20px;

        width: 190px;
        height: 190px;

        border-radius: 50%;
        background: rgba(255, 173, 112, 0.14);
    }

    .hc-why__sun-circle {
        display: block;
        width: 100%;
        height: 100%;
        border-radius: 50%;
    }

    .hc-why__note-text {
        position: relative;
        z-index: 2;

        color: #ff5a1f;
        font-size: 17px;
        font-weight: 500;
        line-height: 1.35;

        transform: rotate(-4deg);
    }


    /* CARDS */

    .hc-why__grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 20px;
    }

    .hc-why-card {
        border-radius: 22px;
    }

    .hc-why-card__body {
        padding: 58px 22px 30px;
    }

    .hc-why-card__icon {
        top: -43px;

        width: 86px;
        height: 86px;

        border-width: 3px;
    }

    .hc-why-card__icon img {
        width: 41px;
        height: 41px;
    }

    .hc-why-card__title {
        font-size: 21px;
        line-height: 1.25;
    }

    .hc-why-card__text {
        margin-top: 16px;

        font-size: 15px;
        line-height: 1.6;
    }


    /* BUTTONS */

    .hc-why__actions {
        justify-content: center;
        gap: 16px;

        margin-top: 52px;
    }

    .hc-why__button {
        min-height: 62px;
        padding: 0 30px;

        font-size: 17px;
    }

    .hc-why__button--primary {
        min-width: 430px;
    }

    .hc-why__button--secondary {
        min-width: 230px;
    }

}

/* =========================================================
   LARGE DESKTOP
   1500px+
   ========================================================= */

@media (min-width: 1500px) {

    .hc-why {
        padding: 105px 0 110px;
    }

    .hc-why__container {
        max-width: 1540px;
        padding-left: 32px;
        padding-right: 32px;
    }


    /* HEADER */

    .hc-why__head {
        gap: 70px;
        margin-bottom: 60px;
    }

    .hc-why__line {
        width: 68px;
        margin-bottom: 24px;
    }

    .hc-why__title {
        font-size: 50px;
        line-height: 1.1;
        letter-spacing: -1px;
        white-space: nowrap;
    }

    .hc-why__lead {
        max-width: 930px;
        margin-top: 26px;

        font-size: 19px;
        line-height: 1.6;
    }


    /* DECORATIVE NOTE */

    .hc-why__note {
        flex-basis: 260px;
        min-height: 155px;
        margin-top: -20px;
    }

    .hc-why__sun {
        top: -95px;
        right: -10px;

        width: 220px;
        height: 220px;
    }

    .hc-why__note-text {
        font-size: 18px;
        line-height: 1.4;
    }


    /* CARDS */

    .hc-why__grid {
        gap: 24px;
    }

    .hc-why-card {
        border-radius: 24px;
    }

    .hc-why-card__body {
        padding: 64px 28px 34px;
    }

    .hc-why-card__icon {
        top: -47px;

        width: 94px;
        height: 94px;
    }

    .hc-why-card__icon img {
        width: 45px;
        height: 45px;
    }

    .hc-why-card__title {
        font-size: 23px;
        line-height: 1.25;
    }

    .hc-why-card__text {
        margin-top: 18px;

        font-size: 16px;
        line-height: 1.6;
    }


    /* BUTTONS */

    .hc-why__actions {
        gap: 18px;
        margin-top: 58px;
    }

    .hc-why__button {
        min-height: 64px;
        padding-left: 32px;
        padding-right: 32px;

        font-size: 18px;
    }

    .hc-why__button--primary {
        min-width: 460px;
    }

    .hc-why__button--secondary {
        min-width: 245px;
    }

    .hc-why__button-arrow {
        margin-left: 14px;
        font-size: 25px;
    }

}