.app-page .service__item[id] {
    scroll-margin-top: 100px;
}

.app-page__contents {
    align-self: stretch;
}

.app-page__launch:not(:has(> :not([hidden]))) {
    display: none;
}

.app-page__launch [hidden] {
    display: none;
}

.app-page__launch-help {
    margin-top: 1rem;
    scroll-margin-top: 100px;
}

.app-page__contents .content-list__title {
    color: var(--gray-800);
}

.app-page__contents .content-list__list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.app-page__columns {
    align-items: start;
}

.app-page__columns .third-button,
.app-install__guide .default-button {
    justify-self: start;
}

.app-page__calculators .service-problems__bg {
    max-height: 80%;
}

.app-page__calculators .service-problems__wrapper:is(:hover, :focus-visible) .service-problems__bg {
    max-height: 90%;
}

.app-page__calculators .service-problems__text {
    margin: 0;
}

@media (min-width: 768px) {
    .app-page__calculators {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.app-install__preview {
    display: none;
    width: 100%;
    max-width: 240px;
    height: auto;
    justify-self: center;
    border-radius: var(--border-radius-l);
}

.app-install__tabs[hidden] {
    display: none;
}

.app-install__tabs button {
    border: 0;
    background: transparent;
    cursor: pointer;
}

.app-install__panel ol {
    margin: 0;
    padding-inline-start: 1.4em;
    list-style: decimal;
}

.app-install__panel li + li {
    margin-top: 0.5em;
}

.app-install__panel h3 {
    margin: 0 0 0.5em;
}

.app-faq .service-faq__item[open] {
    grid-template-rows: min-content 1fr;
    background-color: var(--primary-yellow-25);
}

.app-faq .service-faq__item[open] .service-faq__title::after {
    transform: rotate(-180deg);
}

.app-page a:focus-visible,
.app-page button:focus-visible,
.app-faq summary:focus-visible {
    outline: 2px solid var(--primary-black);
    outline-offset: 3px;
}

@media (max-width: 767px) {
    .app-page .service__item[id] {
        scroll-margin-top: 80px;
    }

    .app-page__hero-preview {
        display: none;
    }

    .app-install__preview {
        display: block;
    }
}
