/* Education / آموزش — mobile & tablet (desktop ≥1025px unchanged) */
@media (max-width: 1024px) {
    .edu-page,
    html.mk-education-page .edu-wrap {
        --edu-m-pad: clamp(1rem, 4.2vw, 1.35rem);
        --edu-m-touch: 2.75rem;
        --edu-m-body: clamp(0.875rem, 3.6vw, 0.9375rem);
        --edu-m-caption: clamp(0.75rem, 3.2vw, 0.8125rem);
    }

    html.mk-education-page .edu-wrap,
    html.mk-education-page .main-content {
        overflow-x: clip;
        max-width: 100%;
    }

    html.mk-education-page .edu-wrap .container {
        padding-inline: var(--edu-m-pad);
        min-width: 0;
    }
}

@media (max-width: 767px) {
    html.mk-education-page .edu-hero {
        padding-block: 1.5rem 1.25rem;
    }

    html.mk-education-page .edu-hero-grid {
        grid-template-columns: 1fr;
        gap: 1.15rem;
    }

    html.mk-education-page .edu-hero-stage {
        order: -1;
    }

    html.mk-education-page .edu-hero-title {
        font-size: clamp(1.35rem, 6vw, 1.65rem);
        line-height: 1.3;
    }

    html.mk-education-page .edu-lead {
        font-size: var(--edu-m-body);
        line-height: 1.75;
    }

    html.mk-education-page .edu-hero-stats {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 0.45rem;
    }

    html.mk-education-page .edu-hero-stat {
        padding: 0.55rem 0.5rem;
        border-radius: 12px;
        text-align: center;
    }

    html.mk-education-page .edu-hero-cta-row {
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
    }

    html.mk-education-page .edu-hero-cta-row .edu-btn {
        width: 100%;
        justify-content: center;
        min-height: var(--edu-m-touch);
        font-size: var(--edu-m-body);
    }

    html.mk-education-page .edu-chip-nav {
        display: flex;
        overflow-x: auto;
        flex-wrap: nowrap;
        gap: 0.4rem;
        padding-bottom: 0.25rem;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }

    html.mk-education-page .edu-chip-nav::-webkit-scrollbar {
        display: none;
    }

    html.mk-education-page .edu-chip-nav__item {
        flex: 0 0 auto;
        min-height: var(--edu-m-touch);
        padding: 0.5rem 0.85rem;
        font-size: var(--edu-m-caption);
        white-space: nowrap;
        -webkit-tap-highlight-color: transparent;
    }

    html.mk-education-page .edu-sticky-nav {
        position: sticky;
        top: var(--mk-site-header-h, 3.35rem);
        z-index: 800;
        padding: 0.4rem 0;
        background: color-mix(in srgb, #f7f8fc 92%, transparent);
        backdrop-filter: blur(12px);
        border-bottom: 1px solid rgba(148, 163, 184, 0.12);
    }

    html.mk-education-page .edu-sticky-nav__track {
        display: flex;
        gap: 0.4rem;
        overflow-x: auto;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }

    html.mk-education-page .edu-sticky-nav__track::-webkit-scrollbar {
        display: none;
    }

    html.mk-education-page .edu-sticky-nav__link {
        min-height: var(--edu-m-touch);
        padding: 0.5rem 0.9rem;
        font-size: var(--edu-m-caption);
        flex-shrink: 0;
        white-space: nowrap;
        -webkit-tap-highlight-color: transparent;
    }

    html.mk-education-page .edu-path-tabs {
        display: flex;
        flex-direction: column;
        gap: 0.45rem;
    }

    html.mk-education-page .edu-path-tab {
        min-height: var(--edu-m-touch);
        padding: 0.75rem 0.9rem;
        text-align: start;
        -webkit-tap-highlight-color: transparent;
    }

    html.mk-education-page .edu-path-steps {
        grid-template-columns: 1fr;
        gap: 0.55rem;
    }

    html.mk-education-page .edu-path-step {
        padding: 0.85rem 0.9rem;
        border-radius: 14px;
    }

    html.mk-education-page .edu-vtabs {
        flex-direction: column;
        gap: 0.4rem;
    }

    html.mk-education-page .edu-vtab {
        min-height: var(--edu-m-touch);
        width: 100%;
        justify-content: flex-start;
        font-size: var(--edu-m-body);
        -webkit-tap-highlight-color: transparent;
    }

    html.mk-education-page .edu-vpanel__grid {
        grid-template-columns: 1fr;
        gap: 0.85rem;
    }

    html.mk-education-page .edu-vpanel__actions {
        flex-direction: column;
        align-items: stretch;
    }

    html.mk-education-page .edu-vpanel__actions .edu-btn {
        width: 100%;
        justify-content: center;
        min-height: var(--edu-m-touch);
    }

    html.mk-education-page .edu-acc__head {
        min-height: var(--edu-m-touch);
        padding: 0.85rem 0.95rem;
    }

    html.mk-education-page .edu-accordions--grid {
        grid-template-columns: 1fr;
    }

    html.mk-education-page .edu-gallery-filters {
        overflow-x: auto;
        flex-wrap: nowrap;
        scrollbar-width: none;
        padding-bottom: 0.2rem;
    }

    html.mk-education-page .edu-gallery-filter {
        flex-shrink: 0;
        min-height: 2.25rem;
        padding: 0.4rem 0.75rem;
    }

    html.mk-education-page .edu-gallery-grid {
        grid-template-columns: 1fr;
        gap: 0.55rem;
    }

    html.mk-education-page .edu-faq-item summary {
        min-height: var(--edu-m-touch);
        padding: 0.85rem 0.95rem;
        font-size: var(--edu-m-body);
        line-height: 1.55;
    }

    html.mk-education-page .edu-faq-item p {
        font-size: var(--edu-m-body);
        line-height: 1.75;
        padding: 0 0.95rem 0.9rem;
    }

    html.mk-education-page .edu-bottom__shell {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
        padding: 1.15rem 1rem;
        margin-bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
        gap: 1rem;
    }

    html.mk-education-page .edu-bottom__shell .edu-btn {
        width: 100%;
        justify-content: center;
        min-height: var(--edu-m-touch);
    }

    html.mk-education-page .edu-hero-theater {
        border-radius: 14px;
        overflow: hidden;
    }

    /* Android tutorial sub-page */
    .and-tut-page .main-content {
        overflow-x: clip;
        max-width: 100%;
    }

    .and-tut-page .and-tut-hero h1 {
        font-size: clamp(1.25rem, 5.5vw, 1.5rem);
        line-height: 1.32;
    }

    .and-tut-page .and-tut-hero-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .and-tut-page .and-tut-device-stage {
        display: none;
    }

    .and-tut-page .and-tut-hero-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
    }

    .and-tut-page .and-tut-hero-actions .and-tut-btn {
        width: 100%;
        justify-content: center;
        min-height: var(--edu-m-touch, 2.75rem);
        -webkit-tap-highlight-color: transparent;
    }

    .and-tut-page .and-tut-dock {
        position: sticky;
        top: var(--mk-site-header-h, 3.35rem);
        z-index: 800;
    }

    .and-tut-page .and-tut-dock-track {
        display: flex;
        gap: 0.4rem;
        overflow-x: auto;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 0.2rem;
    }

    .and-tut-page .and-tut-dock-item {
        flex-shrink: 0;
        min-height: var(--edu-m-touch, 2.75rem);
        white-space: nowrap;
        -webkit-tap-highlight-color: transparent;
    }

    .and-tut-page .and-tut-chapter {
        border-radius: 14px;
        overflow: hidden;
    }

    .and-tut-page .and-tut-cinema-panel {
        grid-template-columns: 1fr;
        gap: 0.85rem;
    }

    .and-tut-page .and-tut-cta-inner {
        text-align: center;
        padding: 1.15rem 1rem;
        margin-bottom: calc(0.5rem + env(safe-area-inset-bottom, 0px));
    }

    .and-tut-page .and-tut-cta-inner .and-tut-hero-actions {
        margin-top: 0.65rem;
    }
}

@media (max-width: 360px) {
    html.mk-education-page .edu-hero-stats {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 768px) and (max-width: 1024px) {
    html.mk-education-page .edu-gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    html.mk-education-page .edu-path-steps {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
