.home-button {
    border: 0;
    background: var(--service-landing-yellow);
    font: inherit;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}

.home-button:hover,
.home-button:focus {
    color: var(--service-landing-brown);
    opacity: 1;
}

.home-button--secondary {
    border: 1px solid #111;
    background: #fff;
    color: #111;
}

.home-button--quiet {
    border: 1px solid #e0d6bd;
    background: transparent;
    color: #3a2500;
}

.home-first-hero {
    padding-bottom: 28px;
}

.home-first-hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 370px);
    gap: 34px;
    align-items: end;
}

.home-first-hero__title {
    max-width: 760px;
}

.home-first-hero__lead {
    max-width: 720px;
}

.home-first-hero__actions {
    flex-wrap: wrap;
    gap: 10px;
}

.home-first-hero__media {
    display: flex;
    justify-content: center;
    align-items: flex-end;
}

.home-first-hero__photo-frame {
    position: relative;
    width: min(100%, 370px);
}

.home-first-hero__photo {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.home-first-hero__caption {
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 9px 13px;
    border-radius: 100px;
    background: rgba(17, 17, 17, .82);
    color: #fff;
    font-size: 14px;
    line-height: 1.2;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
}

.home-first-hero__caption[href],
.home-first-hero__caption[href]:hover,
.home-first-hero__caption[href]:focus,
.home-first-hero__caption[href]:visited {
    color: #fff;
}

.home-first-hero__caption:hover {
    opacity: 1;
    background: rgba(17, 17, 17, .94);
}

.home-situation-section {
    scroll-margin-top: 90px;
}

.home-situation__head {
    margin-bottom: 24px;
}

.home-situation__card {
    --home-situation-card-min-height: 560px;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, .95fr);
    gap: 22px;
    min-height: var(--home-situation-card-min-height);
    padding: 18px;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 12px 28px rgba(0, 0, 0, .06);
}

.home-situation__card.is-followup {
    grid-template-columns: 1fr;
    min-height: var(--home-situation-card-min-height);
}

.home-situation__media {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    min-width: 0;
    overflow: hidden;
    border-radius: 8px;
}

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

.home-situation__image {
    display: block;
    width: 100%;
    max-width: 560px;
    height: auto;
    object-fit: contain;
}

.home-situation__content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    gap: 16px;
    padding: 8px;
}

.home-situation__card.is-followup .home-situation__content {
    justify-content: flex-start;
    align-items: center;
    padding: 0;
}

.home-situation__card.is-loading .home-situation__content {
    justify-content: center;
}

.home-situation__question {
    width: 100%;
    margin: 0;
    color: #111;
    font-size: 30px;
    font-weight: 700;
    line-height: 1.25;
}

.home-situation__card.is-followup .home-situation__question {
    max-width: 860px;
    text-align: center;
}

.home-situation__subtitle {
    width: min(100%, 860px);
    margin: -8px 0 0;
    color: #555;
    font-size: 16px;
    line-height: 1.55;
    text-align: center;
}

.home-situation__answers,
.home-situation__grid,
.home-situation__service-grid {
    display: grid;
    gap: 12px;
    width: 100%;
}

.home-situation__answers {
    max-width: 440px;
}

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

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

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

.home-situation__answer,
.home-situation__link,
.home-situation__service-card,
.home-situation__consult {
    box-sizing: border-box;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    background: #fff;
    color: #111;
    font: inherit;
    text-align: left;
    text-decoration: none;
}

.home-situation__answer,
.home-situation__link,
.home-situation__consult {
    cursor: pointer;
    transition: border-color .18s ease, box-shadow .18s ease, background-color .18s ease;
}

.home-situation__answer {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 58px;
    padding: 13px 16px;
    font-size: 17px;
    font-weight: 700;
}

.home-situation__answer--scenario {
    align-items: flex-start;
    min-height: 162px;
    padding: 16px;
}

.home-situation__answer:hover,
.home-situation__link:hover,
.home-situation__consult:hover {
    border-color: var(--service-landing-yellow);
    box-shadow: 0 10px 22px rgba(0, 0, 0, .06);
    opacity: 1;
}

.home-situation__answer:focus-visible,
.home-situation__link:focus-visible,
.home-situation__consult:focus-visible,
.home-situation__back:focus-visible,
.home-situation__service-action:focus-visible {
    outline: 2px solid var(--service-landing-yellow);
    outline-offset: 2px;
}

.home-situation__answer-icon,
.home-situation__link-icon {
    width: 34px;
    height: 34px;
    flex: 0 0 auto;
    padding: 5px;
    border: 1px solid #f1dfaf;
    border-radius: 8px;
    background: var(--service-landing-warm);
    object-fit: contain;
}

.home-situation__answer-copy,
.home-situation__link-copy,
.home-situation__service-copy {
    display: grid;
    gap: 7px;
    min-width: 0;
}

.home-situation__answer-label,
.home-situation__link-title,
.home-situation__service-title {
    display: block;
    color: #111;
    font-weight: 700;
    line-height: 1.28;
}

.home-situation__answer-sub,
.home-situation__link-desc,
.home-situation__service-desc {
    display: block;
    color: #555;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.45;
}

.home-situation__answer-items {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 3px;
}

.home-situation__answer-items span {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 4px 7px;
    border: 1px solid #efe6cf;
    border-radius: 100px;
    background: #fffdf8;
    color: #3a2500;
    font-size: 12px;
    line-height: 1.2;
    font-weight: 700;
}

.home-situation__consult {
    width: min(100%, 980px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 14px 16px;
    background: linear-gradient(135deg, var(--service-landing-warm) 0%, #fff 100%);
}

.home-situation__consult-title {
    font-size: 16px;
    line-height: 1.3;
    font-weight: 700;
}

.home-situation__consult-action {
    color: #8a6200;
    font-size: 15px;
    line-height: 1.3;
    font-weight: 700;
    white-space: nowrap;
}

.home-situation__back {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 38px;
    padding: 8px 12px;
    border: 1px solid #e0d6bd;
    border-radius: 100px;
    background: #fffdf8;
    color: #3a2500;
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}

.home-situation__back::before {
    content: "←";
    font-size: 16px;
    line-height: 1;
}

.home-situation__link {
    position: relative;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    min-height: 152px;
    padding: 16px;
}

.home-situation__link-arrow {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border: 1px solid #f1dfaf;
    border-radius: 8px;
    background: var(--service-landing-warm);
    color: #8a6200;
    font-size: 18px;
    font-weight: 700;
    line-height: 1;
}

.home-situation__service-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    min-height: 236px;
    padding: 18px;
}

.home-situation__service-card--danger {
    border-color: #f1c3ca;
    background: #fff7f8;
}

.home-situation__service-title {
    margin: 0;
    font-size: 20px;
}

.home-situation__service-desc {
    margin: 0;
}

.home-situation__service-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 9px 14px;
    border: 1px solid var(--service-landing-yellow);
    border-radius: 100px;
    background: var(--service-landing-yellow);
    color: #3a2500;
    font: inherit;
    font-size: 14px;
    line-height: 1.2;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
}

.home-situation__service-action[href],
.home-situation__service-action[href]:hover,
.home-situation__service-action[href]:focus,
.home-situation__service-action[href]:visited,
.home-situation__service-action[href]:active {
    color: #3a2500;
}

.home-situation__service-action--danger {
    border-color: #d93045;
    background: #d93045;
    color: #fff;
}

.home-situation__service-action--danger[href],
.home-situation__service-action--danger[href]:hover,
.home-situation__service-action--danger[href]:focus,
.home-situation__service-action--danger[href]:visited,
.home-situation__service-action--danger[href]:active {
    color: #fff;
}

.home-situation__loading,
.home-situation__error {
    width: 100%;
    padding: 22px;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    background: #fffdf8;
    color: #555;
    text-align: center;
}

@media (max-width: 980px) {
    .home-first-hero__grid,
    .home-situation__card {
        grid-template-columns: 1fr;
    }

    .home-first-hero__media {
        justify-content: flex-start;
    }

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

@media (max-width: 760px) {
    .home-first-hero__actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .home-button {
        width: 100%;
    }

    .home-situation__card {
        min-height: 0;
        padding: 14px;
    }

    .home-situation__card.is-followup {
        min-height: 0;
    }

    .home-situation__question {
        font-size: 24px;
    }

    .home-situation__grid,
    .home-situation__grid--wide,
    .home-situation__service-grid {
        grid-template-columns: 1fr;
    }

    .home-situation__answer--scenario,
    .home-situation__link,
    .home-situation__service-card {
        min-height: 0;
    }

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

    .home-situation__consult-action {
        white-space: normal;
    }
}
