/* Страница "Add to Home Screen": инструкция для iOS/Android. */

.install-page {
    padding-bottom: 72px;
    background: var(--bg-body, #f6f6f4);
}

.install-hero {
    position: relative;
    overflow: hidden;
    padding: 64px 0 56px;
    color: #fff;
    background:
        radial-gradient(900px 420px at 78% 12%, rgba(194, 65, 12, .30), transparent 62%),
        radial-gradient(620px 360px at 8% 92%, rgba(194, 65, 12, .34), transparent 68%),
        linear-gradient(135deg, #17110d 0%, #2a1710 52%, #4a1d0c 100%);
}

.install-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image: linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, .65), transparent 78%);
}

.install-hero__inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.22fr) minmax(260px, .78fr);
    gap: 44px;
    align-items: center;
}

.install-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    padding: 7px 12px;
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 999px;
    color: #ffd7bd;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.install-hero h1 {
    max-width: 640px;
    margin: 0 0 16px;
    font-size: clamp(34px, 5vw, 58px);
    line-height: .99;
    letter-spacing: -.035em;
}

.install-hero p {
    max-width: 560px;
    margin: 0;
    color: rgba(255, 255, 255, .76);
    font-size: 17px;
    line-height: 1.65;
}

.install-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.install-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 48px;
    padding: 0 20px;
    border: 1px solid rgba(255, 255, 255, .24);
    border-radius: 12px;
    color: #fff;
    font-weight: 700;
    text-decoration: none;
    transition: transform .18s ease, background .18s ease, border-color .18s ease;
}

.install-btn:hover {
    transform: translateY(-1px);
    border-color: rgba(255, 255, 255, .5);
    background: rgba(255, 255, 255, .08);
}

.install-btn--primary {
    border-color: transparent;
    background: linear-gradient(135deg, #c2410c, #9a3412);
    box-shadow: 0 12px 28px rgba(154, 52, 18, .38);
}

.install-btn--primary:hover {
    background: linear-gradient(135deg, #fb8c45, #d4490d);
}

.install-phone {
    position: relative;
    width: min(260px, 100%);
    margin: 0 auto;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 38px;
    background: linear-gradient(160deg, #3a2a22, #1b1411);
    box-shadow: 0 34px 70px rgba(0, 0, 0, .46), inset 0 1px 0 rgba(255, 255, 255, .14);
    transform: rotate(2.5deg);
}

.install-phone__notch {
    width: 84px;
    height: 7px;
    margin: 2px auto 10px;
    border-radius: 999px;
    background: rgba(0, 0, 0, .55);
}

.install-phone__screen {
    min-height: 330px;
    padding: 22px 16px 14px;
    border-radius: 28px;
    background: linear-gradient(180deg, #fff8f2, #fff);
    color: #24150d;
}

.install-phone__brand {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 22px;
    font-size: 15px;
    font-weight: 800;
}

.install-phone__wordmark {
    display: inline-grid;
    place-items: center;
    width: 44px;
    height: 30px;
    border-radius: 9px;
    background: #c2410c;
    color: #fff;
    font-size: 11px;
    letter-spacing: .04em;
}

.install-phone__card {
    height: 104px;
    margin-bottom: 12px;
    border-radius: 16px;
    background:
        radial-gradient(120px 70px at 80% 20%, rgba(194, 65, 12, .34), transparent 70%),
        linear-gradient(140deg, #2b1a12, #7c2d12);
}

.install-phone__card--short {
    height: 72px;
    background: #f1e8e1;
}

.install-phone__nav {
    display: flex;
    justify-content: space-around;
    margin-top: 30px;
    padding-top: 12px;
    border-top: 1px solid #eee3da;
}

.install-phone__nav span {
    width: 32px;
    height: 5px;
    border-radius: 99px;
    background: #e2d3c7;
}

.install-content {
    position: relative;
    margin-top: -28px;
    z-index: 2;
}

.install-benefits {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 26px;
}

.install-benefit {
    padding: 22px;
    border: 1px solid var(--border-color, #dedcd6);
    border-radius: 18px;
    background: var(--bg-card, #fff);
    box-shadow: 0 8px 24px rgba(22, 24, 29, .05);
}

.install-benefit > i {
    display: inline-grid;
    place-items: center;
    width: 38px;
    height: 38px;
    margin-bottom: 14px;
    border-radius: 11px;
    background: #fff1e8;
    color: #c2410c;
}

.install-benefit h2 {
    margin: 0 0 6px;
    font-size: 16px;
    color: var(--text-primary, #16181d);
}

.install-benefit p {
    margin: 0;
    color: var(--text-secondary, #6b707a);
    font-size: 14px;
    line-height: 1.55;
}

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

.install-card {
    padding: 26px;
    border: 1px solid var(--border-color, #dedcd6);
    border-radius: 20px;
    background: var(--bg-card, #fff);
    box-shadow: 0 10px 30px rgba(22, 24, 29, .05);
}

.install-card__head {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 20px;
}

.install-card__icon {
    display: inline-grid;
    place-items: center;
    width: 48px;
    height: 48px;
    flex: 0 0 auto;
    border-radius: 14px;
    background: linear-gradient(135deg, #fff1e8, #ffe3d2);
    color: #c2410c;
    font-size: 20px;
}

.install-card__head h2 {
    margin: 0;
    font-size: 20px;
    color: var(--text-primary, #16181d);
}

.install-card__head p {
    margin: 4px 0 0;
    color: var(--text-secondary, #6b707a);
    font-size: 13px;
}

.install-steps {
    display: grid;
    gap: 16px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.install-steps li {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.install-step__num {
    display: inline-grid;
    place-items: center;
    width: 26px;
    height: 26px;
    flex: 0 0 auto;
    border-radius: 50%;
    background: #fff1e8;
    color: #c2410c;
    font-size: 12px;
    font-weight: 800;
}

.install-steps strong {
    display: block;
    margin-bottom: 3px;
    color: var(--text-primary, #16181d);
    font-size: 14.5px;
}

.install-steps p {
    margin: 0;
    color: var(--text-secondary, #6b707a);
    font-size: 13.5px;
    line-height: 1.55;
}

.install-card__note {
    display: flex;
    gap: 8px;
    margin: 22px 0 0;
    padding: 12px 14px;
    border-radius: 12px;
    background: #faf7f3;
    color: #6b707a;
    font-size: 12.5px;
    line-height: 1.5;
}

.install-card__note i {
    margin-top: 2px;
    color: #c2410c;
}

.install-faq {
    margin-top: 28px;
    padding: 28px 30px;
    border: 1px solid var(--border-color, #dedcd6);
    border-radius: 20px;
    background: var(--bg-card, #fff);
}

.install-faq h2 {
    margin: 0 0 6px;
    font-size: 22px;
    color: var(--text-primary, #16181d);
}

.install-faq details {
    border-bottom: 1px solid var(--border-light, #efeeea);
}

.install-faq details:last-child {
    border-bottom: 0;
}

.install-faq summary {
    position: relative;
    padding: 16px 32px 16px 0;
    color: var(--text-primary, #16181d);
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    list-style: none;
}

.install-faq summary::-webkit-details-marker {
    display: none;
}

.install-faq summary::after {
    content: "+";
    position: absolute;
    top: 50%;
    right: 2px;
    transform: translateY(-50%);
    color: #c2410c;
    font-size: 22px;
    font-weight: 400;
    line-height: 1;
}

.install-faq details[open] summary::after {
    content: "-";
}

.install-faq details p {
    max-width: 760px;
    margin: -2px 0 18px;
    color: var(--text-secondary, #6b707a);
    font-size: 14px;
    line-height: 1.65;
}

.dark-theme .install-page {
    background: var(--bg-body, #111318);
}

.dark-theme .install-benefit,
.dark-theme .install-card,
.dark-theme .install-faq {
    border-color: #2b2f38;
    background: #171a20;
    box-shadow: none;
}

.dark-theme .install-benefit h2,
.dark-theme .install-card__head h2,
.dark-theme .install-steps strong,
.dark-theme .install-faq h2,
.dark-theme .install-faq summary {
    color: #f5f1ec;
}

.dark-theme .install-benefit p,
.dark-theme .install-card__head p,
.dark-theme .install-steps p,
.dark-theme .install-faq details p {
    color: #a8adb8;
}

.dark-theme .install-card__note {
    background: #1e222a;
    color: #a8adb8;
}

.dark-theme .install-phone__screen {
    background: linear-gradient(180deg, #211a17, #171a20);
    color: #fff;
}

.dark-theme .install-phone__card--short {
    background: #2a2f38;
}

.dark-theme .install-phone__nav {
    border-color: #2f3540;
}

.dark-theme .install-phone__nav span {
    background: #3a414d;
}

@media (max-width: 940px) {
    .install-hero__inner {
        grid-template-columns: 1fr;
        gap: 34px;
    }

    .install-phone {
        display: none;
    }

    .install-benefits {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 640px) {
    .install-hero {
        padding: 42px 0 34px;
    }

    .install-hero h1 {
        font-size: 38px;
    }

    .install-hero p {
        font-size: 15.5px;
    }

    .install-content {
        margin-top: -16px;
    }

    .install-card,
    .install-faq {
        padding: 20px;
        border-radius: 16px;
    }

    .install-card__head h2 {
        font-size: 18px;
    }

    .install-faq {
        padding: 20px;
    }

    .install-faq h2 {
        font-size: 20px;
    }
}
