/*
|--------------------------------------------------------------------------
| HOME HERO
|--------------------------------------------------------------------------
*/

.hero-section {
    padding:
        70px
        0
        80px;

    background:
        linear-gradient(
            135deg,
            #ffffff 0%,
            #f3f8ff 55%,
            #e8f2ff 100%
        );
}


/*
|--------------------------------------------------------------------------
| HERO GRID
|--------------------------------------------------------------------------
*/

.hero-section__grid {
    display: grid;

    grid-template-columns:
        minmax(0, 0.9fr)
        minmax(0, 1.1fr);

    gap: 60px;

    align-items: center;
}


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

.hero-section__content {
    min-width: 0;
}


/*
|--------------------------------------------------------------------------
| HERO BADGE
|--------------------------------------------------------------------------
*/

.hero-section__badge {
    display: inline-flex;

    align-items: center;

    padding: 7px 12px;

    margin-bottom: 18px;

    border-radius: 999px;

    background: #eaf2ff;

    color: var(--color-primary);

    font-size: 13px;

    font-weight: 700;
}


/*
|--------------------------------------------------------------------------
| HERO TITLE
|--------------------------------------------------------------------------
*/

.hero-section__title {
    max-width: 650px;

    margin: 0;

    font-size:
        clamp(
            42px,
            5vw,
            68px
        );

    line-height: 1.02;

    letter-spacing: -0.045em;

    color: #0f172a;
}


/*
|--------------------------------------------------------------------------
| HERO TEXT
|--------------------------------------------------------------------------
*/

.hero-section__text {
    max-width: 620px;

    margin:
        24px
        0
        0;

    font-size: 18px;

    line-height: 1.65;

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


/*
|--------------------------------------------------------------------------
| HERO ACTIONS
|--------------------------------------------------------------------------
*/

.hero-section__actions {
    display: flex;

    flex-wrap: wrap;

    gap: 14px;

    margin-top: 32px;
}


/*
|--------------------------------------------------------------------------
| HERO BUTTONS
|--------------------------------------------------------------------------
*/

.hero-section__primary,
.hero-section__secondary {
    min-height: 52px;

    display: inline-flex;

    align-items: center;

    justify-content: center;

    gap: 14px;

    padding:
        0
        22px;

    border-radius: 10px;

    font-size: 15px;

    font-weight: 700;

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


/*
|--------------------------------------------------------------------------
| PRIMARY BUTTON
|--------------------------------------------------------------------------
*/

.hero-section__primary {
    background: var(--color-primary);

    color: #ffffff;

    box-shadow:
        0 10px 26px
        rgba(19, 103, 232, 0.2);
}

.hero-section__primary:hover {
    background:
        var(--color-primary-dark);

    transform:
        translateY(-1px);
}


/*
|--------------------------------------------------------------------------
| SECONDARY BUTTON
|--------------------------------------------------------------------------
*/

.hero-section__secondary {
    background: #ffffff;

    border:
        1px solid
        var(--color-border);

    color: #1e293b;
}

.hero-section__secondary:hover {
    border-color:
        var(--color-primary);

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


/*
|--------------------------------------------------------------------------
| BENEFITS
|--------------------------------------------------------------------------
*/

.hero-section__benefits {
    display: grid;

    grid-template-columns:
        repeat(
            3,
            minmax(0, 1fr)
        );

    gap: 18px;

    margin-top: 42px;
}


/*
|--------------------------------------------------------------------------
| BENEFIT
|--------------------------------------------------------------------------
*/

.hero-benefit {
    padding-top: 16px;

    border-top:
        1px solid
        var(--color-border);
}

.hero-benefit strong,
.hero-benefit span {
    display: block;
}

.hero-benefit strong {
    margin-bottom: 5px;

    font-size: 14px;
}

.hero-benefit span {
    font-size: 13px;

    line-height: 1.5;

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


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

.hero-section__visual {
    position: relative;

    min-height: 560px;
}

.hero-house__image {
    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: center;

    display: block;
}

/*
|--------------------------------------------------------------------------
| HOUSE
|--------------------------------------------------------------------------
*/

.hero-house {
    position: absolute;

    inset:
        0
        40px
        0
        0;

    border-radius: 24px;

    overflow: hidden;
}


/*
|--------------------------------------------------------------------------
| HOUSE PLACEHOLDER
|--------------------------------------------------------------------------
*/

.hero-house__placeholder {
    width: 100%;

    height: 100%;

    display: flex;

    align-items: center;

    justify-content: center;

    background:
        linear-gradient(
            135deg,
            #dbeafe,
            #bfdbfe
        );

    border:
        1px solid
        #bfdbfe;

    color: #2563eb;

    font-weight: 700;
}


/*
|--------------------------------------------------------------------------
| ESTIMATE CARD
|--------------------------------------------------------------------------
*/

.hero-estimate-card {
    position: absolute;

    right: 0;

    top: 50%;

    width:
        min(
            320px,
            80%
        );

    transform:
        translateY(-50%);

    padding: 24px;

    background: #ffffff;

    border:
        1px solid
        var(--color-border);

    border-radius: 18px;

    box-shadow:
        0 20px 50px
        rgba(15, 23, 42, 0.14);
}


/*
|--------------------------------------------------------------------------
| ESTIMATE TITLE
|--------------------------------------------------------------------------
*/

.hero-estimate-card__title {
    margin-bottom: 18px;

    font-size: 16px;

    font-weight: 800;
}


/*
|--------------------------------------------------------------------------
| ESTIMATE ROW
|--------------------------------------------------------------------------
*/

.hero-estimate-card__row {
    display: flex;

    justify-content: space-between;

    align-items: center;

    gap: 16px;

    padding: 10px 0;

    border-bottom:
        1px solid #edf2f7;

    font-size: 14px;
}

.hero-estimate-card__row span {
    color:
        var(--color-muted);
}


/*
|--------------------------------------------------------------------------
| ESTIMATE TOTAL
|--------------------------------------------------------------------------
*/

.hero-estimate-card__total {
    padding-top: 20px;
}

.hero-estimate-card__total span,
.hero-estimate-card__total strong {
    display: block;
}

.hero-estimate-card__total span {
    margin-bottom: 7px;

    font-size: 13px;

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

.hero-estimate-card__total strong {
    font-size: 32px;

    line-height: 1.1;

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


/*
|--------------------------------------------------------------------------
| ESTIMATE BUTTON
|--------------------------------------------------------------------------
*/

.hero-estimate-card__button {
    min-height: 48px;

    display: flex;

    align-items: center;

    justify-content: center;

    margin-top: 22px;

    padding:
        0
        18px;

    border-radius: 10px;

    background:
        var(--color-primary);

    color: #ffffff;

    font-size: 14px;

    font-weight: 700;

    transition:
        background 0.2s ease,
        transform 0.2s ease;
}

.hero-estimate-card__button:hover {
    background:
        var(--color-primary-dark);

    transform:
        translateY(-1px);
}


/*
|--------------------------------------------------------------------------
| TABLET
|--------------------------------------------------------------------------
*/

@media (max-width: 1000px) {

    .hero-section__grid {
        grid-template-columns: 1fr;

        gap: 45px;
    }

    .hero-section__content {
        max-width: 760px;
    }

    .hero-section__visual {
        min-height: 480px;
    }

}


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

@media (max-width: 680px) {

    .hero-section {
        padding:
            45px
            0
            55px;
    }

    .hero-section__title {
        font-size: 40px;
    }

    .hero-section__text {
        font-size: 16px;
    }

    .hero-section__actions {
        width: 100%;
    }

    .hero-section__primary,
    .hero-section__secondary {
        width: 100%;
    }

    .hero-section__benefits {
        grid-template-columns: 1fr;
    }

    .hero-section__visual {
        min-height: auto;
    }

    .hero-house {
        position: relative;

        inset: auto;

        height: 330px;
    }

    .hero-estimate-card {
        position: relative;

        top: auto;
        right: auto;

        width:
            calc(100% - 30px);

        margin:
            -70px
            auto
            0;

        transform: none;
    }

}


/*
|--------------------------------------------------------------------------
| SMALL MOBILE
|--------------------------------------------------------------------------
*/

@media (max-width: 420px) {

    .hero-section__title {
        font-size: 34px;
    }

    .hero-house {
        height: 280px;
    }

    .hero-estimate-card {
        padding: 20px;
    }

    .hero-estimate-card__total strong {
        font-size: 28px;
    }

}

/*
|--------------------------------------------------------------------------
| POPULAR CALCULATORS
|--------------------------------------------------------------------------
*/

.popular-calculators {
    padding: 85px 0;

    background: #ffffff;
}


/*
|--------------------------------------------------------------------------
| SECTION HEADING
|--------------------------------------------------------------------------
*/

.section-heading {
    display: flex;

    align-items: flex-end;
    justify-content: space-between;

    gap: 30px;

    margin-bottom: 34px;
}

.section-heading__badge {
    display: inline-flex;

    padding: 6px 11px;

    margin-bottom: 12px;

    border-radius: 999px;

    background: #eaf2ff;

    color: var(--color-primary);

    font-size: 12px;

    font-weight: 700;
}

.section-heading__title {
    margin: 0;

    font-size: 34px;

    line-height: 1.15;

    letter-spacing: -0.03em;
}

.section-heading__text {
    max-width: 620px;

    margin: 12px 0 0;

    font-size: 16px;

    line-height: 1.6;

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

.section-heading__link {
    display: inline-flex;

    align-items: center;

    gap: 10px;

    flex-shrink: 0;

    color: var(--color-primary);

    font-size: 14px;

    font-weight: 700;
}

.section-heading__link:hover {
    color: var(--color-primary-dark);
}


/*
|--------------------------------------------------------------------------
| CARDS GRID
|--------------------------------------------------------------------------
*/

.calculator-cards {
    display: grid;

    grid-template-columns:
        repeat(5, minmax(0, 1fr));

    gap: 18px;
}


/*
|--------------------------------------------------------------------------
| CALCULATOR CARD
|--------------------------------------------------------------------------
*/

.calculator-card {
    min-height: 270px;

    display: flex;

    flex-direction: column;

    padding: 22px;

    background: #ffffff;

    border:
        1px solid
        var(--color-border);

    border-radius: 16px;

    box-shadow:
        0 8px 24px rgba(15, 23, 42, 0.05);

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        border-color 0.2s ease;
}


/*
|--------------------------------------------------------------------------
| ACTIVE CARD
|--------------------------------------------------------------------------
*/

.calculator-card--active:hover {
    transform:
        translateY(-4px);

    border-color:
        #b8d4ff;

    box-shadow:
        0 16px 34px rgba(15, 23, 42, 0.09);
}


/*
|--------------------------------------------------------------------------
| DISABLED CARD
|--------------------------------------------------------------------------
*/

.calculator-card--disabled {
    cursor: default;
}

.calculator-card--disabled:hover {
    border-color:
        var(--color-border);
}


/*
|--------------------------------------------------------------------------
| CARD ICON
|--------------------------------------------------------------------------
*/

.calculator-card__icon {
    width: 48px;
    height: 48px;

    display: flex;

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

    margin-bottom: 20px;

    border-radius: 14px;

    background: #edf4ff;

    color: var(--color-primary);

    font-size: 23px;

    font-weight: 700;
}


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

.calculator-card__content {
    flex: 1;
}

.calculator-card__content h3 {
    margin: 0 0 10px;

    font-size: 18px;

    letter-spacing: -0.02em;
}

.calculator-card__content p {
    margin: 0;

    font-size: 14px;

    line-height: 1.6;

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


/*
|--------------------------------------------------------------------------
| CARD FOOTER
|--------------------------------------------------------------------------
*/

.calculator-card__footer {
    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 12px;

    margin-top: 24px;
}


/*
|--------------------------------------------------------------------------
| STATUS
|--------------------------------------------------------------------------
*/

.calculator-card__status {
    display: inline-flex;

    align-items: center;

    min-height: 28px;

    padding:
        0
        10px;

    border-radius: 999px;

    background: #f1f5f9;

    color: #64748b;

    font-size: 12px;

    font-weight: 700;
}

.calculator-card__status--available {
    background: #e8f7ef;

    color: #15803d;
}


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

.calculator-card__arrow {
    font-size: 20px;

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


/*
|--------------------------------------------------------------------------
| TABLET
|--------------------------------------------------------------------------
*/

@media (max-width: 1100px) {

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

}


/*
|--------------------------------------------------------------------------
| SMALL TABLET
|--------------------------------------------------------------------------
*/

@media (max-width: 760px) {

    .section-heading {
        align-items: flex-start;

        flex-direction: column;
    }

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

}


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

@media (max-width: 520px) {

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

    .section-heading__title {
        font-size: 29px;
    }

    .calculator-cards {
        grid-template-columns: 1fr;
    }

    .calculator-card {
        min-height: auto;
    }

}

/*
|--------------------------------------------------------------------------
| HOW IT WORKS
|--------------------------------------------------------------------------
*/

.how-it-works {
    padding: 90px 0;

    background:
        linear-gradient(
            180deg,
            #f8fbff 0%,
            #f3f7fc 100%
        );
}


/*
|--------------------------------------------------------------------------
| HEADING
|--------------------------------------------------------------------------
*/

.how-it-works__heading {
    max-width: 680px;

    margin:
        0
        auto
        50px;

    text-align: center;
}

.how-it-works__title {
    margin: 0;

    font-size: 36px;

    line-height: 1.15;

    letter-spacing: -0.03em;
}

.how-it-works__text {
    margin:
        14px
        auto
        0;

    max-width: 600px;

    font-size: 16px;

    line-height: 1.65;

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


/*
|--------------------------------------------------------------------------
| STEPS
|--------------------------------------------------------------------------
*/

.how-it-works__steps {
    position: relative;

    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 30px;
}


/*
|--------------------------------------------------------------------------
| CONNECTING LINE
|--------------------------------------------------------------------------
*/

.how-it-works__steps::before {
    content: "";

    position: absolute;

    top: 24px;

    left: 12.5%;
    right: 12.5%;

    height: 2px;

    background:
        linear-gradient(
            90deg,
            #c7dcff,
            #9ec4ff,
            #c7dcff
        );
}


/*
|--------------------------------------------------------------------------
| STEP
|--------------------------------------------------------------------------
*/

.how-step {
    position: relative;

    z-index: 1;

    text-align: center;
}

.how-step__number {
    width: 48px;
    height: 48px;

    display: flex;

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

    margin:
        0
        auto
        20px;

    border-radius: 50%;

    background: var(--color-primary);

    color: #ffffff;

    font-size: 17px;

    font-weight: 800;

    box-shadow:
        0 8px 20px
        rgba(19, 103, 232, 0.2);
}

.how-step__content h3 {
    margin:
        0
        0
        9px;

    font-size: 17px;
}

.how-step__content p {
    margin: 0;

    font-size: 14px;

    line-height: 1.6;

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


/*
|--------------------------------------------------------------------------
| BOTTOM CTA
|--------------------------------------------------------------------------
*/

.how-it-works__bottom {
    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 30px;

    margin-top: 60px;

    padding: 24px 28px;

    border:
        1px solid
        #dbe7f5;

    border-radius: 16px;

    background:
        rgba(255, 255, 255, 0.8);
}

.how-it-works__bottom-content strong,
.how-it-works__bottom-content span {
    display: block;
}

.how-it-works__bottom-content strong {
    margin-bottom: 5px;

    font-size: 16px;
}

.how-it-works__bottom-content span {
    font-size: 14px;

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

.how-it-works__button {
    min-height: 46px;

    display: inline-flex;

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

    gap: 10px;

    flex-shrink: 0;

    padding:
        0
        20px;

    border-radius: 10px;

    background: var(--color-primary);

    color: #ffffff;

    font-size: 14px;

    font-weight: 700;

    transition:
        background 0.2s ease,
        transform 0.2s ease;
}

.how-it-works__button:hover {
    background: var(--color-primary-dark);

    transform:
        translateY(-1px);
}


/*
|--------------------------------------------------------------------------
| TABLET
|--------------------------------------------------------------------------
*/

@media (max-width: 900px) {

    .how-it-works__steps {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap:
            40px
            30px;
    }

    .how-it-works__steps::before {
        display: none;
    }

}


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

@media (max-width: 600px) {

    .how-it-works {
        padding: 65px 0;
    }

    .how-it-works__title {
        font-size: 30px;
    }

    .how-it-works__steps {
        grid-template-columns: 1fr;

        gap: 28px;
    }

    .how-step {
        display: grid;

        grid-template-columns:
            48px
            1fr;

        gap: 16px;

        text-align: left;
    }

    .how-step__number {
        margin: 0;
    }

    .how-it-works__bottom {
        align-items: flex-start;

        flex-direction: column;
    }

    .how-it-works__button {
        width: 100%;
    }

}


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

.features-section {
    padding: 90px 0;

    background: #ffffff;
}


/*
|--------------------------------------------------------------------------
| HEADING
|--------------------------------------------------------------------------
*/

.features-section__heading {
    max-width: 720px;

    margin-bottom: 42px;
}

.features-section__title {
    margin: 0;

    font-size: 36px;

    line-height: 1.15;

    letter-spacing: -0.03em;
}

.features-section__text {
    margin: 14px 0 0;

    font-size: 16px;

    line-height: 1.65;

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


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

.features-grid {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 18px;
}


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

.feature-card {
    position: relative;

    min-height: 245px;

    padding: 26px;

    background:
        linear-gradient(
            180deg,
            #ffffff 0%,
            #fbfdff 100%
        );

    border:
        1px solid
        var(--color-border);

    border-radius: 16px;

    box-shadow:
        0 8px 24px
        rgba(15, 23, 42, 0.04);

    transition:
        transform 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.feature-card:hover {
    transform:
        translateY(-3px);

    border-color:
        #c8dcfb;

    box-shadow:
        0 14px 32px
        rgba(15, 23, 42, 0.07);
}


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

.feature-card__icon {
    width: 46px;
    height: 46px;

    display: flex;

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

    margin-bottom: 22px;

    border-radius: 14px;

    background: #edf4ff;

    color: var(--color-primary);

    font-size: 21px;

    font-weight: 800;
}


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

.feature-card h3 {
    margin: 0 0 10px;

    font-size: 18px;

    line-height: 1.3;

    letter-spacing: -0.02em;
}

.feature-card p {
    margin: 0;

    font-size: 14px;

    line-height: 1.65;

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


/*
|--------------------------------------------------------------------------
| TABLET
|--------------------------------------------------------------------------
*/

@media (max-width: 900px) {

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

}


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

@media (max-width: 560px) {

    .features-section {
        padding: 65px 0;
    }

    .features-section__title {
        font-size: 30px;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .feature-card {
        min-height: auto;
    }

}

/*
|--------------------------------------------------------------------------
| HOME FAQ
|--------------------------------------------------------------------------
*/

.home-faq {
    padding: 90px 0;

    background: #f7f9fc;
}


/*
|--------------------------------------------------------------------------
| FAQ GRID
|--------------------------------------------------------------------------
*/

.home-faq__grid {
    display: grid;

    grid-template-columns:
        minmax(0, 0.75fr)
        minmax(0, 1.25fr);

    gap: 80px;

    align-items: start;
}


/*
|--------------------------------------------------------------------------
| FAQ INTRO
|--------------------------------------------------------------------------
*/

.home-faq__intro {
    position: sticky;

    top: 110px;
}

.home-faq__title {
    margin: 0;

    max-width: 400px;

    font-size: 36px;

    line-height: 1.15;

    letter-spacing: -0.03em;
}

.home-faq__text {
    max-width: 450px;

    margin: 16px 0 0;

    font-size: 16px;

    line-height: 1.65;

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


/*
|--------------------------------------------------------------------------
| ALL FAQ LINK
|--------------------------------------------------------------------------
*/

.home-faq__all {
    display: inline-flex;

    align-items: center;

    gap: 10px;

    margin-top: 26px;

    color: var(--color-primary);

    font-size: 14px;

    font-weight: 700;
}

.home-faq__all:hover {
    color: var(--color-primary-dark);
}


/*
|--------------------------------------------------------------------------
| FAQ ITEMS
|--------------------------------------------------------------------------
*/

.home-faq__items {
    display: grid;

    gap: 10px;
}


/*
|--------------------------------------------------------------------------
| FAQ ITEM
|--------------------------------------------------------------------------
*/

.faq-item {
    overflow: hidden;

    background: #ffffff;

    border:
        1px solid
        var(--color-border);

    border-radius: 14px;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.faq-item.is-open {
    border-color: #bfd6fa;

    box-shadow:
        0 8px 24px
        rgba(15, 23, 42, 0.05);
}


/*
|--------------------------------------------------------------------------
| FAQ BUTTON
|--------------------------------------------------------------------------
*/

.faq-item__button {
    width: 100%;

    min-height: 68px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 20px;

    padding:
        18px
        20px;

    border: 0;

    background: transparent;

    color: var(--color-text);

    text-align: left;

    font-size: 15px;

    font-weight: 700;
}


/*
|--------------------------------------------------------------------------
| FAQ ICON
|--------------------------------------------------------------------------
*/

.faq-item__icon {
    width: 30px;
    height: 30px;

    display: flex;

    align-items: center;

    justify-content: center;

    flex-shrink: 0;

    border-radius: 50%;

    background: #edf4ff;

    color: var(--color-primary);

    font-size: 20px;

    font-weight: 400;

    transition:
        transform 0.25s ease,
        background 0.2s ease;
}

.faq-item.is-open
.faq-item__icon {
    transform: rotate(45deg);

    background: var(--color-primary);

    color: #ffffff;
}


/*
|--------------------------------------------------------------------------
| FAQ ANSWER
|--------------------------------------------------------------------------
*/

.faq-item__answer {
    display: grid;

    grid-template-rows: 0fr;

    transition:
        grid-template-rows 0.3s ease;
}

.faq-item.is-open
.faq-item__answer {
    grid-template-rows: 1fr;
}

.faq-item__answer-inner {
    overflow: hidden;
}

.faq-item__answer p {
    margin: 0;

    padding:
        0
        70px
        20px
        20px;

    font-size: 14px;

    line-height: 1.7;

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


/*
|--------------------------------------------------------------------------
| FAQ TABLET
|--------------------------------------------------------------------------
*/

@media (max-width: 900px) {

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

        gap: 40px;
    }

    .home-faq__intro {
        position: static;
    }

}


/*
|--------------------------------------------------------------------------
| FAQ MOBILE
|--------------------------------------------------------------------------
*/

@media (max-width: 560px) {

    .home-faq {
        padding: 65px 0;
    }

    .home-faq__title {
        font-size: 30px;
    }

    .faq-item__button {
        min-height: 62px;

        padding:
            16px
            16px;

        font-size: 14px;
    }

    .faq-item__answer p {
        padding:
            0
            56px
            18px
            16px;
    }

}

/*
|--------------------------------------------------------------------------
| HOME CTA
|--------------------------------------------------------------------------
*/

.home-cta {
    padding: 30px 0 80px;

    background: #f7f9fc;
}

.home-cta__box {
    position: relative;

    overflow: hidden;

    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 40px;

    padding: 42px 48px;

    border-radius: 20px;

    background:
        linear-gradient(
            135deg,
            #0f5bd8 0%,
            #1367e8 55%,
            #2f7ef0 100%
        );

    color: #ffffff;

    box-shadow:
        0 18px 45px
        rgba(19, 103, 232, 0.22);
}

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

    position: absolute;

    width: 320px;
    height: 320px;

    right: -110px;
    top: -130px;

    border-radius: 50%;

    background:
        rgba(255, 255, 255, 0.08);
}

.home-cta__content,
.home-cta__actions {
    position: relative;

    z-index: 1;
}

.home-cta__content {
    max-width: 700px;
}

.home-cta__badge {
    display: inline-flex;

    margin-bottom: 12px;

    padding: 6px 10px;

    border-radius: 999px;

    background:
        rgba(255, 255, 255, 0.14);

    font-size: 12px;

    font-weight: 700;
}

.home-cta h2 {
    margin: 0;

    font-size: 34px;

    line-height: 1.15;

    letter-spacing: -0.03em;
}

.home-cta p {
    margin: 12px 0 0;

    max-width: 620px;

    font-size: 16px;

    line-height: 1.6;

    color:
        rgba(255, 255, 255, 0.82);
}

.home-cta__button {
    min-height: 50px;

    display: inline-flex;

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

    gap: 12px;

    padding:
        0
        22px;

    border-radius: 10px;

    background: #ffffff;

    color: var(--color-primary);

    font-size: 14px;

    font-weight: 800;

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.home-cta__button:hover {
    transform:
        translateY(-2px);

    box-shadow:
        0 10px 24px
        rgba(0, 0, 0, 0.12);
}


/*
|--------------------------------------------------------------------------
| CTA MOBILE
|--------------------------------------------------------------------------
*/

@media (max-width: 760px) {

    .home-cta__box {
        flex-direction: column;

        align-items: flex-start;

        padding: 32px 26px;
    }

    .home-cta h2 {
        font-size: 28px;
    }

    .home-cta__button {
        width: 100%;
    }

}
.calculator-card__icon img {
    width: 34px;
    height: 34px;
    object-fit: contain;
}


/*
|--------------------------------------------------------------------------
| АКУРАТНІ ІКОНКИ МОЖЛИВОСТЕЙ ТА FAQ
|--------------------------------------------------------------------------
*/

.feature-card__icon {
	display: grid;
	place-items: center;
	padding: 0;
	font-family: "Segoe UI Symbol", "Segoe UI", Arial, sans-serif;
	line-height: 1;
	text-align: center;
}

.faq-item__button {
	cursor: pointer;
}

.faq-item__icon {
	position: relative;
	display: grid;
	place-items: center;
	padding: 0;
	font-size: 0;
	line-height: 1;
}

.faq-item__icon::before,
.faq-item__icon::after {
	content: "";
	position: absolute;
	left: 50%;
	top: 50%;
	width: 12px;
	height: 2px;
	border-radius: 999px;
	background: currentColor;
	transform: translate(-50%, -50%);
}

.faq-item__icon::after {
	transform: translate(-50%, -50%) rotate(90deg);
}

/* Useful articles */
.home-articles {
	padding: 96px 0;
	background: #fff;
}

.home-articles__heading {
	max-width: 760px;
	margin-bottom: 36px;
}

.home-articles__title {
	margin: 14px 0 12px;
	font-size: clamp(32px, 4vw, 48px);
	line-height: 1.12;
	color: #101828;
}

.home-articles__text {
	margin: 0;
	font-size: 17px;
	line-height: 1.7;
	color: #64748b;
}

.home-articles__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 24px;
}

.home-article-card {
	display: flex;
	min-height: 280px;
	flex-direction: column;
	padding: 32px;
	border: 1px solid #dbe7f7;
	border-radius: 22px;
	background: #f8fbff;
	color: inherit;
	text-decoration: none;
	transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.home-article-card:hover {
	transform: translateY(-4px);
	border-color: #8db8ff;
	box-shadow: 0 18px 42px rgba(19, 89, 180, .12);
}

.home-article-card__eyebrow {
	align-self: flex-start;
	margin-bottom: 18px;
	padding: 7px 12px;
	border-radius: 999px;
	background: #e8f1ff;
	color: #0967d8;
	font-size: 13px;
	font-weight: 700;
}

.home-article-card h3 {
	margin: 0 0 14px;
	font-size: 25px;
	line-height: 1.25;
	color: #101828;
}

.home-article-card p {
	margin: 0 0 24px;
	color: #64748b;
	font-size: 16px;
	line-height: 1.65;
}

.home-article-card__link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-top: auto;
	color: #0967d8;
	font-weight: 700;
}

.home-article-card__link span {
	transition: transform .2s ease;
}

.home-article-card:hover .home-article-card__link span {
	transform: translateX(4px);
}

@media (max-width: 767px) {
	.home-articles {
		padding: 68px 0;
	}

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

	.home-article-card {
		min-height: 0;
		padding: 24px;
	}

	.home-article-card h3 {
		font-size: 22px;
	}
}

/* Shared quick calculator between the hero and popular calculators. */
.home-facade-calculator {
    background: var(--color-border);
}

/* Keep adjacent home sections compact without changing shared calculator spacing. */
@media (width < 600px) {
    .home-page > .hero-section {
        padding-bottom: 24px;
    }

    .home-page > .home-facade-calculator + .popular-calculators {
        padding-top: 24px;
    }

    .home-page > .home-faq {
        padding-bottom: 32px;
    }

    .home-page > .home-faq + .home-cta {
        padding-top: 0;
    }
}
