/* Страница «Приложения» — референс */

.page-apps .main-content {
    background: #fff;
    padding: 48px 24px 60px;
    max-width: 1200px;
    margin: 0 auto;
}

.apps-title {
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 700;
    color: #1e293b;
    text-align: center;
    margin: 0 0 56px 0;
    line-height: 1.3;
}

.apps-title__accent {
    display: block;
    color: #c41e3a;
}

.apps-section {
    margin-bottom: 64px;
}

.apps-section--patients {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
}

.apps-phone-mockup {
    position: sticky;
    top: 100px;
    max-width: 320px;
    margin: 0 auto;
}

.apps-phone-mockup__img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 24px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.12);
}

.apps-block {
    margin-bottom: 48px;
}

.apps-block:last-child {
    margin-bottom: 0;
}

.apps-block__label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #c41e3a;
    text-transform: lowercase;
    margin-bottom: 8px;
}

.apps-block__title {
    font-size: clamp(22px, 2.5vw, 28px);
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 16px 0;
}

.apps-block__title--red {
    color: #c41e3a;
}

.apps-block__desc {
    font-size: 15px;
    line-height: 1.6;
    color: #475569;
    margin: 0 0 24px 0;
}

/* Карточки магазинов: подпись + бейдж + QR (как в референсе) */
.apps-store-cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(16px, 2.5vw, 28px);
    margin-top: 12px;
}

.apps-store-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    text-decoration: none;
    color: inherit;
    padding: clamp(26px, 3.2vw, 34px) clamp(18px, 2.4vw, 26px) clamp(30px, 3.6vw, 38px);
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
    transition: border-color 0.2s ease, box-shadow 0.25s ease, transform 0.2s ease;
    min-height: 0;
}

.apps-store-card:hover {
    border-color: #cbd5e1;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.1);
    transform: translateY(-2px);
}

.apps-store-card:focus-visible {
    outline: 2px solid #c41e3a;
    outline-offset: 3px;
}

.apps-store-card__label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.07em;
    color: #64748b;
    line-height: 1.4;
    margin: 0 0 22px;
    max-width: 16em;
}

.apps-store-card__badge {
    display: block;
    height: auto;
    width: auto;
    max-height: 42px;
    max-width: min(100%, 160px);
    object-fit: contain;
    margin: 0 0 26px;
}

.apps-store-card__qr-frame {
    margin-top: auto;
    padding: 0;
    width: 100%;
    max-width: 268px;
    box-sizing: border-box;
}

.apps-store-card__qr {
    display: block;
    width: 100%;
    max-width: 268px;
    height: auto;
    aspect-ratio: 1;
    object-fit: contain;
}

.apps-section--doctors {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 48px;
    align-items: start;
    padding-top: 48px;
    border-top: 1px solid #e2e8f0;
}

.apps-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 20px;
}

.apps-btn {
    display: inline-block;
    padding: 14px 28px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 10px;
    transition: all 0.2s ease;
}

.apps-btn--primary {
    background: #c41e3a;
    color: #fff;
    border: 2px solid #c41e3a;
}

.apps-btn--primary:hover {
    background: #a01830;
    border-color: #a01830;
}

.apps-btn--outline {
    background: #fff;
    color: #c41e3a;
    border: 2px solid #c41e3a;
}

.apps-btn--outline:hover {
    background: #fef2f2;
}

.apps-section__desc p {
    font-size: 15px;
    line-height: 1.6;
    color: #475569;
    margin: 0;
}

@media (max-width: 900px) {
    .apps-section--patients {
        grid-template-columns: 1fr;
    }

    .apps-phone-mockup {
        position: static;
        max-width: 280px;
    }

    .apps-section--doctors {
        grid-template-columns: 1fr;
    }

    .apps-store-cards {
        grid-template-columns: 1fr;
        max-width: 320px;
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 600px) {
    .page-apps .main-content {
        padding: 48px 16px 48px;
    }

    .apps-title {
        margin-bottom: 40px;
    }

    .apps-store-cards {
        gap: 16px;
    }

    .apps-store-card {
        padding: 24px 20px 28px;
    }

    .apps-buttons {
        flex-direction: column;
    }

    .apps-btn {
        text-align: center;
    }
}
