﻿/* Подписка Diacom Plus: кнопка на синей линии шапки, страница /Plus, окно «Что нового», личный кабинет, обучающие материалы.
   Цвета и скругления — как на остальном сайте (синий #0d6efd, кнопки со скруглением 10px). */

.plus-btn {
    border-radius: 10px;
}

/* Кнопка на синей линии шапки — справа в конце, белая с синим текстом (как кнопка формы вопроса в подвале) */
.navbar-second .nav {
    align-items: center;
}

.plus-nav-item {
    margin-left: auto;
}

.plus-nav-btn {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    border-radius: 10px;
    background: #fff;
    color: #0d6efd;
    font-weight: 600;
    white-space: nowrap;
    text-decoration: none;
    transition: background .2s;
}

    .plus-nav-btn:hover,
    .plus-nav-btn:focus {
        background: #e7f0ff;
        color: #0d6efd;
    }

@media (max-width: 991px) {
    .plus-nav-item {
        margin: 5px 10px 0;
    }

    .plus-nav-btn {
        justify-content: center;
        width: 100%;
        padding: 8px 0;
    }
}

/* Страница /Plus */
.plus-page {
    padding: 1rem 0 3rem;
}

.plus-hero {
    padding: clamp(1.5rem, 1rem + 3vw, 2.5rem);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 4px 18px rgba(13, 110, 253, .08);
    text-align: center;
}

    .plus-hero h1 {
        margin: .75rem 0;
        font-size: clamp(1.7rem, 1.3rem + 1.6vw, 2.3rem);
        font-weight: 600;
    }

.plus-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .3rem .9rem;
    border-radius: 999px;
    background: #e7f0ff;
    color: #0d6efd;
    font-size: .9rem;
    font-weight: 600;
}

.plus-hero-text {
    max-width: 640px;
    margin: 0 auto 1.5rem;
    color: #6c757d;
    font-size: 1.05rem;
}

.plus-status {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .6rem 1.2rem;
    border-radius: 10px;
    font-weight: 600;
}

.plus-status-active {
    background: #e6f6ec;
    color: #198754;
}

.plus-price {
    margin: -.5rem 0 1.25rem;
    color: #0d6efd;
    font-size: 2.2rem;
    font-weight: 700;
}

    .plus-price span {
        color: #6c757d;
        font-size: 1.1rem;
        font-weight: 500;
    }

/* Тарифы: месяц и год */
.plus-plans {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 240px));
    justify-content: center;
    gap: 1rem;
    margin-bottom: .75rem;
}

.plus-plan {
    position: relative;
    padding: 1.25rem 1rem;
    border: 1px solid #dbe6fb;
    border-radius: 12px;
    background: #fff;
}

.plus-plan-best {
    border: 2px solid #0d6efd;
    box-shadow: 0 4px 18px rgba(13, 110, 253, .12);
}

.plus-plan-name {
    color: #6c757d;
    font-weight: 600;
}

.plus-plan .plus-price {
    margin: .25rem 0 .9rem;
    font-size: 1.9rem;
}

.plus-plan-save {
    position: absolute;
    top: -12px;
    right: 12px;
    padding: .1rem .6rem;
    border-radius: 999px;
    background: #198754;
    color: #fff;
    font-size: .85rem;
    font-weight: 600;
}

.plus-vat-note {
    color: #6c757d;
    font-size: .85rem;
}

/* Что входит в подписку и дополнительные устройства (под тарифами) */
.plus-included {
    max-width: 560px;
    margin: .5rem auto .75rem;
    padding: .75rem 1rem;
    border: 1px solid #dbe6fb;
    border-radius: 10px;
    background: #f8fbff;
    font-size: .92rem;
    text-align: left;
}

    .plus-included > div + div {
        margin-top: .35rem;
    }

.plus-included-title {
    font-weight: 600;
}

/* Устройства подписчика */
.plus-devices {
    max-width: 560px;
    margin: 1rem auto 0;
    padding: .75rem 1rem;
    border: 1px solid #dbe6fb;
    border-radius: 10px;
    background: #fff;
}

.plus-devices-title {
    margin-bottom: .25rem;
    font-weight: 600;
}

.plus-extra {
    margin-bottom: 1rem;
}

.plus-status-pending {
    background: #fff4e0;
    color: #b26a00;
}

.plus-soon {
    max-width: 560px;
    margin: 1rem auto 0;
    padding: .75rem 1rem;
    border-radius: 10px;
    background: #e7f0ff;
    color: #0d6efd;
}

.plus-soon-error {
    background: #fdecec;
    color: #b02a37;
}

/* Условия оформления подписки (окно на /Plus) */
.plus-terms-price {
    margin-bottom: 1rem;
    padding: .6rem 1rem;
    border-radius: 10px;
    background: #e7f0ff;
    color: #0d6efd;
}

.plus-terms {
    margin: 0;
    padding: 0;
    list-style: none;
}

    .plus-terms li {
        display: flex;
        gap: .85rem;
        padding: .6rem 0;
    }

.plus-terms-num {
    flex: 0 0 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #0d6efd;
    color: #fff;
    font-weight: 600;
}

.plus-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.25rem;
    margin-top: 1.25rem;
}

.plus-feature {
    padding: 1.5rem;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 4px 18px rgba(13, 110, 253, .08);
}

    .plus-feature h3 {
        margin: .75rem 0 .5rem;
        font-size: 1.15rem;
        font-weight: 600;
    }

    .plus-feature p {
        margin-bottom: .75rem;
        color: #6c757d;
    }

.plus-feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: #0d6efd;
    color: #fff;
    font-size: 1.4rem;
}

.plus-feature-link {
    font-weight: 600;
    text-decoration: none;
}

/* Окно «Что нового» */
.plus-news .modal-content,
.plus-news {
    border-radius: 12px;
}

.plus-news-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

    .plus-news-list li {
        display: flex;
        align-items: flex-start;
        gap: .75rem;
        padding: .6rem 0;
    }

        .plus-news-list li + li {
            border-top: 1px solid #edf1f7;
        }

        .plus-news-list li > i {
            color: #0d6efd;
            font-size: 1.4rem;
            line-height: 1.2;
        }

/* Личный кабинет */
.plus-profile {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1.25rem 1.5rem;
    border: 1px solid #dbe8f7;
    border-radius: 12px;
    background: #f5f9ff;
}

    .plus-profile h5 {
        margin: 0 0 .25rem;
        font-weight: 600;
    }

    .plus-profile p {
        margin: 0;
        color: #6c757d;
    }

/* Обучающие материалы на странице программы */
.plus-locked {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    border: 1px solid #dbe8f7;
    border-radius: 12px;
    background: #f5f9ff;
}

    .plus-locked p {
        margin: 0;
        font-weight: 600;
    }

    .plus-locked i.bi-lock-fill {
        color: #0d6efd;
    }

    /* «Вход» и «Оформить Diacom Plus»: одной высоты по тексту, текст по центру; на узком экране переносятся целиком */
    .plus-locked-actions {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: .5rem;
    }

        .plus-locked-actions .btn {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            white-space: nowrap;
        }

.training-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

    .training-list li {
        display: flex;
        align-items: center;
        gap: .75rem;
        padding: .75rem 1rem;
        border-bottom: 1px solid #edf1f7;
    }

        .training-list li:last-child {
            border-bottom: 0;
        }

    .training-list .training-icon {
        color: #0d6efd;
        font-size: 1.4rem;
    }

    .training-list .training-name {
        flex: 1;
        overflow-wrap: anywhere;
    }

    .training-list .training-size {
        color: #8a94a6;
        font-size: .85rem;
        white-space: nowrap;
    }

/* Просмотр обучающих материалов (Views/Plus/Viewer.cshtml, js/plus-viewer.js) */
.plus-viewer {
    position: relative;
    margin: 1rem 0 3rem;
    user-select: none;
    -webkit-user-select: none;
    -webkit-touch-callout: none;
}

.plus-viewer-stage {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 4px 18px rgba(13, 110, 253, .08);
}

    .plus-viewer-stage:fullscreen {
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 0;
        background: #000;
    }

    .plus-viewer-stage video {
        display: block;
        width: 100%;
        max-height: 80vh;
        background: #000;
    }

    .plus-viewer-stage:fullscreen video {
        max-height: 100vh;
    }

.plus-pages {
    padding: 1rem;
    background: #eef2f7;
}

.plus-page-holder {
    max-width: 900px;
    margin: 0 auto 1rem;
    background: #fff;
}

.plus-sheet {
    display: block;
    width: 100%;
    max-width: 900px;
    height: auto;
    margin: 0 auto;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .08);
    pointer-events: none;
}

.plus-loading {
    padding: 3rem 1rem;
    color: #6c757d;
    text-align: center;
}

/* Водяной знак поверх материала: не мешает нажимать на плеер */
.plus-watermark {
    position: absolute;
    inset: 0;
    z-index: 2;
    background-repeat: repeat;
    pointer-events: none;
}

.plus-fullscreen {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 10px;
    background: rgba(0, 0, 0, .45);
    color: #fff;
}

    .plus-fullscreen:hover {
        background: rgba(0, 0, 0, .65);
    }

/* Окно не в фокусе / вкладка скрыта — содержимое закрыто */
.plus-viewer-hidden {
    display: none;
}

.plus-viewer.is-hidden .plus-viewer-stage {
    filter: blur(24px);
}

.plus-viewer.is-hidden .plus-viewer-hidden {
    position: absolute;
    inset: 0;
    z-index: 4;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0d6efd;
    font-weight: 600;
    cursor: pointer;
}

/* Печать страницы с материалом — пустой лист */
@media print {
    .plus-viewer {
        display: none !important;
    }
}
