/* ==========================================
   Листик
   subject.css
   Выбор предмета
   ========================================== */

#subjectSheet {
    position: fixed;

    inset: 0;

    width: 100%;
    height: 100dvh;

    z-index: 11000;

    display: flex;

    align-items: center;
    justify-content: center;

    pointer-events: none;

    overflow: hidden;
}


/* ==========================================
   ПРОЗРАЧНЫЙ ФОН
   ========================================== */

.sheet-backdrop {
    position: absolute;

    inset: 0;

    background: transparent;

    pointer-events: auto;
}


/* ==========================================
   КОНТЕЙНЕР
   ========================================== */

.sheet {
    position: relative;

    z-index: 1;

    width: min(88vw, 420px);

    max-height: 92dvh;

    display: flex;

    align-items: center;
    justify-content: flex-start;

    padding-top: 45px;

    background: transparent;

    box-shadow: none;

    pointer-events: none;

}


/* ==========================================
   СПИСОК — СЕТКА
   ========================================== */

.sheet-list {
    width: 100%;

    display: grid;

    grid-template-columns: repeat(2, minmax(0, 1fr));

    gap: clamp(7px, 1.5vh, 12px);

    align-items: center;

    justify-items: stretch;

    pointer-events: none;
}


/* ==========================================
   КНОПКИ
   ========================================== */

.sheet-item {
    width: 100%;

    height: clamp(
        40px,
        6.2vh,
        52px
    );

    min-height: 0;

    padding:
        6px
        10px;

    border: none;

    border-radius: 14px;

    background: #f7f1eb;

    color: #202020;

    font-family:
        "Manrope",
        sans-serif;

    font-size: clamp(
        13px,
        2.1vh,
        17px
    );

    line-height: 1.1;

    font-weight: 600;

    text-align: center;

    display: flex;

    align-items: center;
    justify-content: center;

    box-shadow:
        0 4px 16px rgba(
            0,
            0,
            0,
            0.16
        );

    cursor: pointer;

    pointer-events: auto;

    -webkit-tap-highlight-color:
        transparent;

    transition:
        transform .12s ease,
        background .12s ease;
}


/* ==========================================
   НАЖАТИЕ
   ========================================== */

.sheet-item:active {
    transform: scale(.96);

    background: var(--color-bg);
}


/* ==========================================
   БОЛЬШОЙ ЭКРАН
   ========================================== */

@media (min-width: 700px) {

    .sheet {
        width: 420px;
    }

    .sheet-list {
        gap: 10px;
    }

    .sheet-item {
        height: 48px;

        font-size: 16px;
    }

}


/* ==========================================
   МАЛЕНЬКИЙ ЭКРАН ПО ВЫСОТЕ
   ========================================== */

@media (max-height: 700px) {

    .sheet {
        width: min(88vw, 460px);

        max-height: 94dvh;
    }

    .sheet-list {
        gap: 6px;
    }

    .sheet-item {
        height: 38px;

        padding: 4px 8px;

        font-size: 12px;

        border-radius: 11px;
    }

}


/* ==========================================
   ОЧЕНЬ УЗКИЙ ЭКРАН
   ========================================== */

@media (max-width: 360px) {

    .sheet {
        width: 92vw;
    }

    .sheet-list {
        gap: 5px;
    }

    .sheet-item {
        height: 36px;

        font-size: 11.5px;

        border-radius: 10px;
    }

}