/* Страница «Инструкции» (16.10.2026). Цвета и карточки — как на главной:
   тёмный фон, лиловое свечение, салатовый акцент на том, что сейчас играет. */

/* ===== ШАПКА СТРАНИЦЫ ===== */
.инстр-шапка { text-align: center; max-width: 760px; margin: 12px auto 34px; }
.инстр-шапка h1 {
    font-size: clamp(30px, 4.4vw, 52px);
    line-height: 1.1;
    letter-spacing: -1px;
    margin-bottom: 14px;
    /* Переливом, как заголовок книги на главной */
    background: linear-gradient(100deg, #6c7bff 0%, #22d3c5 45%, var(--салатовый) 70%, #e9fff4 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.инстр-шапка .ведущий { color: var(--текст-тусклый); font-size: 17px; }

/* ===== БОЛЬШОЙ ПЛЕЕР ===== */
.инстр-сцена {
    position: relative;
    border-radius: 22px;
    padding: 14px;
    background:
        radial-gradient(90% 120% at 0% 0%, rgba(99, 102, 241, .22), transparent 60%),
        radial-gradient(80% 120% at 100% 100%, rgba(0, 255, 136, .12), transparent 60%),
        var(--фон-карточки);
    border: 1px solid rgba(255, 255, 255, .07);
    box-shadow: 0 30px 80px rgba(0, 0, 0, .55), 0 0 60px rgba(99, 102, 241, .14);
}
.инстр-экран {
    border-radius: 14px;
    overflow: hidden;
    background: #000;
    aspect-ratio: 16 / 9;
}
.инстр-экран video { width: 100%; height: 100%; display: block; object-fit: contain; background: #000; }

.инстр-подпись { padding: 18px 8px 6px; }
.инстр-метка {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--салатовый);
    margin-bottom: 6px;
}
.инстр-подпись h2 { font-size: clamp(20px, 2.4vw, 28px); margin-bottom: 6px; }
.инстр-подпись p { font-size: 15px; max-width: 820px; }

/* ===== СЕТКА РОЛИКОВ ===== */
.инстр-раздел { margin: 46px 0 18px; font-size: 22px; display: flex; align-items: center; gap: 10px; }
.инстр-счёт {
    font-size: 13px;
    padding: 2px 10px;
    border-radius: 999px;
    background: rgba(99, 102, 241, .18);
    color: #c7c9ff;
}

.инстр-сетка {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 18px;
}

.инстр-карточка {
    display: flex;
    flex-direction: column;
    text-align: left;
    padding: 0;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    color: var(--текст);
    font: inherit;
    background: var(--фон-карточки);
    border: 1px solid var(--граница);
    transition: transform .25s, border-color .25s, box-shadow .25s;
}
.инстр-карточка:hover {
    transform: translateY(-4px);
    border-color: rgba(99, 102, 241, .6);
    box-shadow: 0 14px 34px rgba(0, 0, 0, .45), 0 0 26px rgba(99, 102, 241, .22);
}
.инстр-карточка:focus-visible { outline: 2px solid var(--салатовый); outline-offset: 3px; }
.инстр-карточка.играет {
    border-color: var(--салатовый);
    box-shadow: 0 0 0 1px var(--салатовый), 0 0 28px rgba(0, 255, 136, .25);
}

.инстр-кадр { position: relative; display: block; aspect-ratio: 16 / 9; background: #000; overflow: hidden; }
.инстр-кадр img, .инстр-кадр video {
    width: 100%; height: 100%; object-fit: cover; display: block;
    transition: transform .5s;
}
.инстр-карточка:hover .инстр-кадр img,
.инстр-карточка:hover .инстр-кадр video { transform: scale(1.05); }
/* Затемнение снизу, чтобы номер и значок читались на любой обложке */
.инстр-кадр::after {
    content: "";
    position: absolute; inset: 0;
    background: linear-gradient(180deg, transparent 45%, rgba(0, 0, 0, .55));
    pointer-events: none;
}

.инстр-номерок {
    /* Внизу слева, а не вверху (16.10.2026): вверху номер закрывал заголовок на обложке ролика.
       Снизу обложку и так затемняет градиент — номер читается на любой картинке */
    position: absolute; left: 10px; bottom: 10px; z-index: 1;
    min-width: 30px; height: 30px; padding: 0 8px;
    display: grid; place-items: center;
    border-radius: 10px;
    font-weight: 800; font-size: 14px;
    color: #fff;
    background: rgba(79, 70, 229, .85);
    backdrop-filter: blur(4px);
}
.инстр-карточка.играет .инстр-номерок { background: var(--салатовый); color: #06210f; }

.инстр-пуск {
    position: absolute; left: 50%; top: 50%; z-index: 1;
    width: 54px; height: 54px; margin: -27px 0 0 -27px;
    display: grid; place-items: center;
    border-radius: 50%;
    background: rgba(0, 0, 0, .45);
    border: 1px solid rgba(255, 255, 255, .35);
    backdrop-filter: blur(4px);
    transition: transform .25s, background .25s;
}
.инстр-пуск svg { width: 22px; height: 22px; fill: #fff; margin-left: 3px; }
.инстр-карточка:hover .инстр-пуск { transform: scale(1.12); background: var(--лиловый); }
.инстр-карточка.играет .инстр-пуск { background: var(--салатовый); border-color: transparent; }
.инстр-карточка.играет .инстр-пуск svg { fill: #06210f; }

.инстр-текст { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px 18px; }
.инстр-текст b { font-size: 16px; line-height: 1.3; }
.инстр-текст span {
    color: var(--текст-тусклый);
    font-size: 13.5px;
    line-height: 1.45;
    /* Две строки описания, дальше — многоточие: полное видно под плеером */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.инстр-пусто {
    text-align: center;
    padding: 60px 20px;
    border-radius: 20px;
    border: 1px dashed var(--граница);
    color: var(--текст-тусклый);
}
.инстр-пусто svg { width: 54px; height: 54px; fill: none; stroke: var(--лиловый); stroke-width: 1.5; margin-bottom: 10px; }

/* ===== PDF ===== */
.инстр-pdf {
    margin-top: 56px;
    padding: 28px;
    border-radius: 22px;
    /* Заголовок сверху, файлы под ним: сбоку от текста названия файлов сжимались в три строки */
    display: flex;
    flex-direction: column;
    gap: 20px;
    background:
        radial-gradient(70% 140% at 100% 0%, rgba(0, 255, 136, .10), transparent 60%),
        var(--фон-карточки);
    border: 1px solid var(--граница);
}
.инстр-pdf h2 { font-size: 22px; margin-bottom: 8px; }
.инстр-pdf-файлы { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 14px; }

.инстр-файл {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border-radius: 14px;
    background: rgba(255, 255, 255, .03);
    border: 1px solid var(--граница);
    transition: border-color .25s, transform .25s, background .25s;
}
.инстр-файл:hover { border-color: var(--салатовый); background: rgba(0, 255, 136, .05); transform: translateY(-2px); }
.инстр-файл-значок { position: relative; flex: none; width: 46px; height: 46px; }
.инстр-файл-значок svg { width: 46px; height: 46px; fill: none; stroke: var(--салатовый); stroke-width: 1.4; }
.инстр-файл-значок em {
    position: absolute; right: -6px; bottom: -2px;
    font-style: normal; font-size: 10px; font-weight: 800;
    padding: 1px 5px; border-radius: 6px;
    background: var(--лиловый); color: #fff;
}
.инстр-файл-текст { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.инстр-файл-текст b { font-size: 15px; }
.инстр-файл-текст span { font-size: 13px; }

/* ===== ТЕЛЕФОН ===== */
@media (max-width: 720px) {
    .инстр-шапка { margin-bottom: 22px; }
    .инстр-шапка .ведущий { font-size: 15px; }
    .инстр-сцена { padding: 8px; border-radius: 16px; }
    .инстр-экран { border-radius: 10px; }
    .инстр-сетка { grid-template-columns: 1fr; }
    .инстр-pdf { padding: 20px; }
    .инстр-файл .кнопка { display: none; }   /* вся строка и так ссылка, кнопка лишь теснит текст */
}
