/* assets/css/main.css */

html {
    overflow-y: scroll; /* всегда показывать вертикальный скроллбар */
}

/* ===== ПОДКЛЮЧЕНИЕ ШРИФТОВ ===== */

/* Обычный (Regular) */
@font-face {
    font-family: 'VagWorld';
    src: url('../../fonts/VAGWorld/vag-world-regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap; /* чтобы текст отображался сразу, пока шрифт грузится */
}

/* Жирный (Bold) */
@font-face {
    font-family: 'VagWorld';
    src: url('../../fonts/VAGWorld/vag-world-bold.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

/* Обычный (Regular) */
@font-face {
    font-family: 'IstokWeb';
    src: url('../../fonts/IstokWeb/IstokWeb-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap; /* чтобы текст отображался сразу, пока шрифт грузится */
}

/* Жирный (Bold) */
@font-face {
    font-family: 'IstokWeb';
    src: url('../../fonts/IstokWeb/IstokWeb-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap; /* чтобы текст отображался сразу, пока шрифт грузится */
}

/* Обычный (Regular) */
@font-face {
    font-family: 'Golos';
    src: url('../../fonts/Golos/Golos-Text_Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap; /* чтобы текст отображался сразу, пока шрифт грузится */
}

/* Medium — вес 500 */
@font-face {
    font-family: 'Golos';
    src: url('../../fonts/Golos/Golos-Text_Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

/* DemiBold — вес 600 */
@font-face {
    font-family: 'Golos';
    src: url('../../fonts/Golos/Golos-Text_DemiBold.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

/* Bold — вес 700 */
@font-face {
    font-family: 'Golos';
    src: url('../../fonts/Golos/Golos-Text_Bold.ttf') format('truetype');
    font-weight: 700;        /* или bold */
    font-style: normal;
    font-display: swap;
}

/* Black — вес 800 (или 900, зависит от файла) */
@font-face {
    font-family: 'Golos';
    src: url('../../fonts/Golos/Golos-Text_Black.ttf') format('truetype');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}

/* Обычный (Regular) */
@font-face {
    font-family: 'Fregat';
    src: url('../../fonts/Fregat/FregatRegular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap; /* чтобы текст отображался сразу, пока шрифт грузится */
}

/* Обычный (Regular) */
@font-face {
    font-family: 'SegoeUI';
    src: url('../../fonts/SegoeUI/segoeui.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap; /* чтобы текст отображался сразу, пока шрифт грузится */
}

/* Полутонкий (Semilight
) */
@font-face {
    font-family: 'SegoeUI';
    src: url('../../fonts/SegoeUI/segoeuisl.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
    font-display: swap; /* чтобы текст отображался сразу, пока шрифт грузится */
}


* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Arial', sans-serif;
    background:  linear-gradient(135deg, #e0f2f1 0%, #f0fcf5 100%);
    line-height: 1.6;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========================================
   ХЕДЕР (АДАПТИВНЫЙ)
   ======================================== */

/* ===== ХЕДЕР (как hero-section) ===== */
.site-header {
   padding: 0 46px; /* такие же, как у .hero-section */
    display: flex;
    justify-content: center;
}


/* ===== ВНУТРЕННИЙ БЛОК (как hero-card внутри) ===== */
.header-inner {
width: 100%;
    max-width: 1350px; /* точно как у .hero-container и .hero-card */
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    padding: 15px 0;
    /* gap убран — расстояния регулируются отдельно */
}

/* ===== ЛОГОТИП ===== */
.site-header .site-branding {
    display: flex;
    align-items: center;
    gap: 5px;
    flex: 0 0 auto;
    max-width: 100%;
}

.site-header .brand-link {
    display: flex;
    align-items: center;
    gap: 5px;
    text-decoration: none;
    color: inherit;
    flex-wrap: wrap; /* если не влезает, переносим */
}

.site-header .brand-text {
    font-family: 'VagWorld', Arial, sans-serif;
    font-weight: 700;
    font-size: clamp(14px, 2.5vw, 18px); /* от 14px до 18px в зависимости от ширины */
    color: #70a23b;
    white-space: nowrap;
}

.site-header .custom-logo {
    max-height: clamp(28px, 5vw, 40px);
    width: auto;
    display: block;
}

/* ----- МЕНЮ ----- */
.main-navigation {
    flex: 1 1 auto;
    text-align: center;
}

.nav-menu {
    list-style: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap; /* разрешаем перенос на узких экранах */
    gap: clamp(5px, 2vw, 25px);
    margin: 0;
    padding: 0;
}

.nav-menu a {
    text-decoration: none;
    color: #222222;
    font-weight: 500;
    font-family: 'IstokWeb', Arial, sans-serif;
    font-size: clamp(14px, 1.8vw, 18px);
    transition: color 0.2s ease;
    white-space: nowrap;
}
.nav-menu a:hover {
    color: #4c4493;
}
.nav-menu .current-menu-item a {
    color: #4c4493;
}

/* ----- БЛОК ДЕЙСТВИЙ (телефон, соцсети, кнопка) ----- */
.header-actions {
    display: flex;
    align-items: center;
    gap: clamp(8px, 1.5vw, 20px);
    flex: 0 0 auto;
    flex-wrap: wrap;
    justify-content: flex-end;
     margin-left: 10px; /* ← если нужно дополнительное расстояние */
}

/* Телефон */
.site-header .phone-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    color: #70a23b;
    font-family: 'Golos', Arial, sans-serif;
    font-size: clamp(12px, 1.4vw, 15px);
    font-weight: 500;
    transition: color 0.2s ease;
    white-space: nowrap;
}
.site-header .phone-link i {
    font-size: clamp(12px, 1.4vw, 15px);
    color: #70a23b;
}
.site-header .phone-link:hover {
    color: #669236;
}
.site-header .phone-link:hover i {
    color: #669236;
}

/* Соцсети */
.site-header .social-links {
    display: flex;
    align-items: center;
    gap: 2px;
}

.site-header .social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: clamp(28px, 4vw, 36px);
    height: clamp(28px, 4vw, 36px);
    border-radius: 50%;
    color: #808080;
    font-size: clamp(14px, 2vw, 18px);
    text-decoration: none;
    transition: all 0.3s ease;
}
.site-header .social-icon:hover {
    color: #70a23b;
}

/* Кнопка "Личный кабинет" (и "Первый урок") */
.btn-login {
    display: inline-block;
    height: clamp(36px, 5vw, 45px);
    line-height: clamp(36px, 5vw, 45px);
    padding: 0 clamp(16px, 3vw, 28px);
    background: #4c4493;
    color: #fff;
    border-radius: 0 21px 0 21px;
    font-family: 'IstokWeb', Arial, sans-serif;
    font-size: clamp(11px, 1.3vw, 14px);
    font-weight: 400;
    letter-spacing: 0.5px;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.2s;
    border: none;
    cursor: pointer;
}
.btn-login:hover {
    background: #2d285d;
}

/* Ссылка на кабинет в header-account */
.account-link i {
    margin-right: 6px;
}

.account-link {
    display: block;
    font-family: 'IstokWeb', sans-serif;
    font-size: 16px;
    color: #808080;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}

.account-link:hover {
    color: #70a23b;
}

/* ===== CRM-ХЕДЕР ===== */
.crm-header .header-inner {
    /* уже есть display:flex, space-between */
    gap: 20px 40px; /* добавим немного воздуха */
}

.crm-header .header-actions {
    flex: 0 0 auto;
    margin-left: 20px; /* если нужно отодвинуть от меню */
}

/* Если хотите, чтобы меню было строго по центру, можно сделать так */
.crm-header .main-navigation {
    flex: 1 1 auto;
    text-align: center;
}

/* ========================================
   АДАПТАЦИЯ ХЕДЕРА
   ======================================== */

/* Маленькие ноутбуки (≤ 1280px) */
@media (max-width: 1380px) {
    .header-inner {
        height: auto !important;
        padding: 12px 0px;
        gap: 8px 15px;
    }
    .site-header .brand-text {
        font-size: clamp(13px, 2vw, 16px);
    }
    .site-header .custom-logo {
        max-height: clamp(24px, 4vw, 32px);
    }
    .nav-menu {
        gap: clamp(8px, 1.5vw, 18px);
    }
    .nav-menu a {
        font-size: clamp(13px, 1.5vw, 16px);
    }
    .header-actions {
        gap: clamp(6px, 1vw, 14px);
    }
    .site-header .phone-link {
        font-size: clamp(11px, 1.2vw, 14px);
    }
    .site-header .phone-link i {
        font-size: clamp(11px, 1.2vw, 14px);
    }
    .site-header .social-icon {
        width: clamp(24px, 3.5vw, 32px);
        height: clamp(24px, 3.5vw, 32px);
        font-size: clamp(12px, 1.6vw, 16px);
    }
    .btn-first-lesson,
    .account-link {
        height: clamp(32px, 4vw, 40px);
        line-height: clamp(32px, 4vw, 40px);
        padding: 0 clamp(14px, 2.5vw, 22px);
        font-size: clamp(10px, 1.1vw, 13px);
    }
}



/* ========================================
   ГЕРОЙ-СЕКЦИЯ
   ======================================== */

.hero-section {
    /*background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);*/
    /*background: #e3f1fe;*/
    min-height: calc(100vh - 85px);
    display: flex;
    align-items: center;          /* центрируем карточку по вертикали */
    justify-content: center;
    padding: 10px 20px;
}

.hero-container {
    width: 100%;
    max-width: 1400px;
    max-height: 877px;
    margin: 0 auto;
    border: 10px;
    border-color: #000;
}


/* Карточка — центральное поле */
/* ----- Карточка героя (обновляем отступы) ----- */
.hero-card {
    width: 100%;
    height:877px;
    background: rgba(255, 255, 255, 0.92);
    border-radius: 30px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: stretch;          /* колонки одной высоты */
    overflow: hidden;              /* чтобы скругления обрезали углы у правой колонки */
    /* НЕТ PADDING НА КАРТОЧКЕ! Паддинги только у левой колонки */
}

.hero-left {
    flex: 0 0 58%;
    padding: 44px 44px;            /* здесь паддинги */
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    /* высота будет определяться контентом */
}



/* ----- Бейдж с бордером ----- */
.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    height: 51px;
    border: 1px solid #70a23b;
    border-radius: 21px 0px 21px 21px;
    padding: 6px 18px 6px 10px;
    margin-bottom: 25px;
    align-self: flex-start;   /* чтобы не растягивался */
    width: auto;               /* чтобы ширина была по содержимому */
    flex-shrink: 0;            /* чтобы не сжимался */
}

.tag-marker {
    display: inline-block;
    width: 17px;
    height: 17px;
    border-radius: 50%;
    background: #70a23b;
    flex-shrink: 0;
}
.tag-text {
    font-family: 'Golos', Arial, sans-serif;
    font-weight: 600;
    font-size: 12px;
    color: #222222;
    text-transform: uppercase;
    letter-spacing: 0px;
}

/* ----- Заголовок ----- */
.hero-title {
    font-family: 'Golos', Arial, sans-serif;
    font-weight: 800;
    font-size: 50px;
    margin-bottom: 25px;
    background: linear-gradient(135deg, #70a23b 0%, #4c4592 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    /* Для поддержки старых браузеров можно оставить запасной цвет */
    color: #1a1a2e; /* fallback */
    line-height: 1.2;
}

/* ----- Список преимуществ (4 пункта) ----- */
.hero-features {
    list-style: none;
    padding: 0;
    margin: 0 0 35px 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: 'Golos', Arial, sans-serif;
    font-size: 1rem;
    color: #333;
}

.feature-icon {
    width: 34px;   /* задай нужный размер */
    height: 34px;
    flex-shrink: 0; /* чтобы не сжималось */
}

/* ----- Кнопки в ряд ----- */
.hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;   /* чтобы на мобильных переносились */
    margin-top: 10px;
}
.hero-btn-primary,
.hero-btn-secondary {
    display: inline-block;
    height: 45px;
    line-height: 45px;      /* текст по центру */
    padding: 0 28px;
    background: #70a23b;
    color: #fff;
    border-radius: 0px 21px 0px 21px;
    font-family: 'IstokWeb', Arial, sans-serif;
    font-weight: 400;
    font-size: 16px;
    text-decoration: none;
    transition: background 0.3s, transform 0.2s, box-shadow 0.3s;
    border: none;
    cursor: pointer;
    text-align: center;

}
.hero-btn-primary {
    background: #70a23b;
    color: #fff;
    /*box-shadow: 0 4px 15px rgba(76, 68, 147, 0.4);*/
}
.hero-btn-primary:hover {
    background: #669236;
    transform: translateY(-1px);
    /*box-shadow: 0 6px 20px rgba(76, 68, 147, 0.5);*/
}
.hero-btn-secondary {
    background: transparent;
    color: #4c4493;
    border: 2px solid #4c4493;
}
.hero-btn-secondary:hover {
    background: #4c4493;
    color: #fff;
    transform: translateY(-1px);
}

/* Правая колонка (45% ширины) */

.hero-right {
    flex: 0 0 42%;
    position: relative;            /* для позиционирования плашек */
    /* НЕТ PADDING */
    /* высота растягивается по левой колонке */
}

/* ----- Контейнер для картинки (заполняет всю правую колонку) ----- */

.hero-image-wrapper {
    width: 100%;
    height: 100%;
    background-size: contain;      /* ← вместо cover */
    background-position: bottom center;
    background-repeat: no-repeat;
    border-radius: 30px 30px 0px 0;
    position: absolute;
    bottom: 0;
    overflow: hidden; /* ← чтобы углы обрезались */
    right: 40px;
    width: calc(100% - 40px);
    height: calc(100% - 40px);
}

/* ----- Сама картинка ----- */
.hero-image {
    width: 100%;           /* ← ширина равна ширине родителя */
    height: 100%;          /* ← высота равна высоте родителя */
    object-fit: cover;
    object-position: bottom center;
    display: block;
    border-radius: 30px 30px 0 0;
}
/* ----- Плашки (абсолютное позиционирование) ----- */
.hero-badge {
    position: absolute;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 0px 24px 24px 24px;
    padding: 12px 18px;
    border: 1px solid rgba(222, 222, 222, 1);
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: 200px;
    backdrop-filter: blur(4px);
    z-index: 2;
}

.badge-top {
    top: 72px;
    left: -40px;   /* выступает за левый край колонки */
}

.badge-bottom {
    bottom: 30px; /* выступает за нижний край */
    right: 20px;
}

.badge-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.badge-icon img {
    width: 36px;
    height: 36px;
}
.badge-text {
    display: flex;
    flex-direction: column;
    line-height: 36px;
}
.badge-title {
    font-family: 'Golos', sans-serif;
    font-weight: 700;
    font-size: 28px;
    color: #222222;
}

.badge-title-bottom {
    font-family: 'Golos', sans-serif;
    font-weight: 700;
    font-size: 19px;
    color: #222222;
}
.badge-subtitle {
    font-family: 'Fregat', sans-serif;
    font-weight: 400;
    font-size: 12px;
    color: #999999;
    line-height: 15px;
}

/* Адаптация для маленьких ноутбуков (ширина ≤ 1380px) */
@media (max-width: 1380px) {
        /* Убираем фиксированную высоту карточки */
    .hero-card {
        height: auto !important;
        min-height: 600px; /* чтобы не схлопывалась */
        box-shadow: none;
    }

    /* Убираем max-height у контейнера */
    .hero-container {
        max-height: none !important;
    }

    /* Левая колонка: уменьшаем отступы и шрифты */
    .hero-left {
        padding: 30px 28px !important;
        flex: 0 0 54% !important;
    }

    .hero-title {
        font-size: 34px !important;
        margin-bottom: 18px !important;
    }

    .hero-tag {
        height: 40px !important;
        padding: 4px 14px 4px 8px !important;
        font-size: 10px !important;
        margin-bottom: 18px !important;
    }
    .tag-marker {
        width: 14px !important;
        height: 14px !important;
    }
    .tag-text {
        font-size: 10px !important;
    }

    .hero-features {
        gap: 10px !important;
        margin-bottom: 24px !important;
    }
    .feature-item {
        font-size: 15px !important;
        gap: 10px !important;
    }
    .feature-icon {
        width: 30px !important;
        height: 30px !important;
    }

    .hero-btn-primary,
    .hero-btn-secondary {
        height: 40px !important;
        line-height: 40px !important;
        padding: 0 20px !important;
        font-size: 14px !important;
    }

    /* Правая колонка: картинка теперь резиновая */
    .hero-right {
        flex: 0 0 46% !important;
    }

  .hero-image-wrapper {
        width: calc(100% - 20px) !important;
        height: calc(100% - 20px) !important;
         border-radius: 30px 30px 0 0 !important;
    }


    /* Плашки */
    .hero-badge {
        max-width: 160px !important;
        padding: 8px 12px !important;
        gap: 8px !important;
    }
    .badge-top {
        top: 30px !important;
        left: -20px !important;
    }
    .badge-bottom {
        bottom: 20px !important;
        right: 15px !important;
    }
    .badge-title {
        font-size: 22px !important;
    }
    .badge-title-bottom {
        font-size: 16px !important;
    }
    .badge-subtitle {
        font-size: 10px !important;
    }
    .badge-icon {
        width: 32px !important;
        height: 32px !important;
    }
    .badge-icon img {
        width: 28px !important;
        height: 28px !important;
    }
}

/* ========================================
   ВХОД И РЕГИСТРАЦИЯ
   ======================================== */

.login-page {
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    
}

.login-page-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(240, 252, 245, 0.9); /* осветление */
    z-index: 1;
}

.login-page-container {
    position: relative;
    z-index: 2;
    max-width: 470px;
    width: 100%;
    text-align: center;
}

/* Логотип */
.login-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.login-logo .brand-text {
    font-family: 'VagWorld', Arial, sans-serif;
    font-weight: 700;
    font-size: 24px;
    color: #70a23b;
    white-space: nowrap;
}

.login-logo-img {
    max-height: 50px;
    width: auto;
}

/* Контейнер формы */
.login-form-container {
    background: #ffffff;
    border-radius: 30px 30px 0 0;
    padding: 40px 30px 30px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

.login-title {
    font-family: 'Golos', sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: #222;
    margin-bottom: 10px;
}

.login-intro {
    font-family: 'SegoeUI', sans-serif;
    font-size: 15px;
    color: #666;
    margin-bottom: 25px;
}

/* Форма внутри контейнера */
.login-form-container .form-group input {
    width: 100%;
    max-width: 380px;
    height: 54px;
    padding: 14px 18px;
    border: 1.5px solid #ddd;
    border-radius: 21px;
    font-family: 'SegoeUI', sans-serif;
    font-weight: 300;
    font-size: 18px;
    color: #222;
    transition: border-color 0.3s, box-shadow 0.3s;
    background: #fafafa;
    margin: 0 auto;
    display: block;
}

.login-form-container .form-group input:focus {
    border-color: #70a23b;
    outline: none;
    box-shadow: 0 0 0 3px rgba(112, 162, 59, 0.2);
    background: #fff;
}

.login-form-container .btn-submit {
    width: 100%;
    max-width: 380px;
    height: 54px;
    background: #70a23b;
    color: #fff;
    border: none;
    border-radius: 0 21px 21px 21px;
    font-family: 'IstokWeb', sans-serif;
    font-size: 18px;
    font-weight: 400;
    cursor: pointer;
    transition: background 0.3s;
    margin: 5px auto 0;
    display: block;
}

.login-form-container .btn-submit:hover {
    background: #669236;
}

.login-form-container .form-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.login-form-container .form-links a {
    font-family: 'IstokWeb', sans-serif;
    font-size: 14px;
    color: #4c4493;
    text-decoration: none;
    transition: color 0.2s;
}

.login-form-container .form-links a:hover {
    color: #3a357a;
    text-decoration: underline;
}

/* Блок защиты */
.login-protection {
    background: #e6f4f3;
    border-radius: 0 0 30px 30px;
    padding: 14px 20px;
    text-align: center;
    font-family: 'SegoeUI', sans-serif;
    font-weight: 300;
    font-size: 14px;
    color: #222;
    border: 1px solid #eee;
    border-top: none;
}



/* Группы полей */
.form-group {
    margin-bottom: 16px;
}

.form-group input {
    width: 380px;
    height: 54px;
    padding: 14px 18px;
    border: 1.5px solid #ddd;
    border-radius: 21px;
    font-family: 'SegoeUI', sans-serif;
    font-weight:300;
    font-size: 18px;
    color: #222;
    transition: border-color 0.3s, box-shadow 0.3s;
    background: #fafafa;
}

.form-group input:focus {
    border-color: #70a23b;
    outline: none;
    box-shadow: 0 0 0 3px rgba(112, 162, 59, 0.2);
    background: #fff;
}

/* Плейсхолдеры */
.form-group input::placeholder {
    color: #999;
    font-weight: 400;
}

/* Ошибка валидации */
.form-group input.error {
    border-color: #e74c3c !important;
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.15) !important;
}

/* Чекбокс */
.checkbox-group {
    margin: 20px 17px 25px;
}

.custom-checkbox {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: 'IstokWeb', sans-serif;
    font-size: 16px;
    color: #333;
    cursor: pointer;
    user-select: none;
}

.custom-checkbox input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.custom-checkbox .checkmark {
    display: inline-block;
    width: 22px;
    height: 22px;
    border: 2px solid #bbb;
    border-radius: 6px;
    background: #fff;
    flex-shrink: 0;
    transition: 0.2s;
    position: relative;
}

.custom-checkbox input:checked + .checkmark {
    background: #70a23b;
    border-color: #70a23b;
}

.custom-checkbox input:checked + .checkmark::after {
    content: "✓";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-size: 16px;
    font-weight: bold;
}

.custom-checkbox input:focus + .checkmark {
    box-shadow: 0 0 0 3px rgba(112, 162, 59, 0.3);
}

/* Кнопка Отправить */
.btn-submit {
    width: 380px;
    height: 54px;
    padding: 16px;
    background: #70a23b;
    color: #fff;
    border: none;
    border-radius: 0px 21px 21px 21px;
    font-family: 'IstokWeb', sans-serif;
    font-size: 18px;
    font-weight: 400;
    cursor: pointer;
    transition: background 0.3s, transform 0.1s;
    margin-top: 5px;
}
.btn-submit:hover {
    background: #669236;
}
.btn-submit:active {
    transform: scale(0.98);
}

/* Текст внизу формы */


.form-footer-text {
    font-family: 'SegoeUI', sans-serif;
    font-weight:400;
    font-size: 13px;
    color: #999999;
    margin: 10px 0 0;
    padding: 0px 10px;
    line-height: 1.4;
    width: 380px;              /* такая же, как у кнопки */
    max-width: 100%;           /* для адаптивности */
    text-align: center;        /* центрируем текст внутри */
    margin-left: 0;            /* прижимаем к левому краю */
    /* остальные стили (цвет, размер) оставьте как есть */
}
.form-footer-text a {
    color: #4c4493;
    text-decoration: none;
    font-weight: 500;
}
.form-footer-text a:hover {
    text-decoration: underline;
}


/* ===== OTP-БЛОК НА СТРАНИЦЕ РЕГИСТРАЦИИ (классы) ===== */

.otp-section {
    width: 100%;
    margin-bottom: 16px;
}

.otp-input {
    width: 100% !important;
    height: 54px;
    padding: 14px 18px;
    border: 1.5px solid #ddd;
    border-radius: 21px;
    font-family: 'SegoeUI', sans-serif;
    font-weight: 300;
    font-size: 18px;
    color: #222;
    transition: border-color 0.3s, box-shadow 0.3s;
    background: #fafafa;
    box-sizing: border-box;
    display: block;
    margin: 0;
}

.otp-verify-btn {
    width: 380px;
    max-width: 380px;
    height: 54px;
    background: #70a23b;
    color: #fff;
    border: none;
    border-radius: 0 21px 21px 21px;
    font-family: 'IstokWeb', sans-serif;
    font-size: 18px;
    font-weight: 400;
    cursor: pointer;
    transition: background 0.3s;
    margin-top: 18px !important;
    display: block;
}

.otp-verify-btn:hover {
    background: #669236;
}

.otp-resend-container {
    width: 100% !important;
    max-width: 100% !important;
    text-align: center;
    margin-top: 24px;
    box-sizing: border-box;
}

.resend-link {
    font-family: 'IstokWeb', sans-serif;
    font-size: 14px;
    color: #4c4493;
    text-decoration: none;
    transition: color 0.2s;
}

.resend-link:hover {
    color: #3a357a;
    text-decoration: underline;
}



/* ===== АДАПТАЦИЯ ДЛЯ МАЛЕНЬКИХ НОУТБУКОВ (≤ 1280px) ===== */
@media (max-width: 1280px) {
    .login-page {
        padding: 15px;
    }
    .login-page-container {
        max-width: 420px;
    }
    .login-logo .brand-text {
        font-size: 20px;
    }
    .login-logo-img {
        max-height: 40px;
    }
    .login-form-container {
        padding: 30px 20px 25px;
    }
    .login-title {
        font-size: 22px;
    }
    .login-intro {
        font-size: 14px;
    }
    .login-form-container .form-group input,
    .login-form-container .btn-submit {
        max-width: 340px;
        height: 48px;
        font-size: 16px;
    }
    .login-protection {
        font-size: 12px;
        padding: 12px 16px;
    }
    
    .custom-checkbox {
    font-size: 14px;
}

.checkbox-group {
    margin: 20px 22px 25px;
}

}



/* ========================================
   КАСТОМНЫЕ СИСТЕМНЫЕ НОТИФИКАЦИИ
   ======================================== */

.custom-notification-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10001; /* выше слайдера (9999) */
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.custom-notification-overlay.active {
    opacity: 1;
    visibility: visible;
}

.custom-notification-modal {
    background: #ffffff;
    max-width: 420px;
    width: 90%;
    padding: 35px 30px 30px;
    border-radius: 30px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    text-align: center;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.custom-notification-overlay.active .custom-notification-modal {
    transform: scale(1);
}

.notification-icon {
    font-size: 48px;
    line-height: 1;
    margin-bottom: 12px;
}

.notification-message {
    font-family: 'Golos', Arial, sans-serif;
    font-size: 18px;
    color: #222222;
    line-height: 1.5;
    margin-bottom: 25px;
    font-weight: 400;
}

.notification-btn {
    background: #4c4493;
    color: #ffffff;
    border: none;
    border-radius: 30px;
    padding: 12px 48px;
    font-family: 'IstokWeb', Arial, sans-serif;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s, transform 0.1s;
    min-width: 120px;
}

.notification-btn:hover {
    background: #3a357a;
}

.notification-btn:active {
    transform: scale(0.96);
}

/* Типы нотификаций */
.notification-success .notification-btn {
    background: #70a23b;
}
.notification-success .notification-btn:hover {
    background: #5c8a2e;
}

.notification-error .notification-btn {
    background: #e74c3c;
}
.notification-error .notification-btn:hover {
    background: #c0392b;
}

.notification-info .notification-btn {
    background: #4c4493;
}
.notification-info .notification-btn:hover {
    background: #3a357a;
}

/* ===== КАСТОМНОЕ ПОДТВЕРЖДЕНИЕ ===== */
.confirm-overlay .confirm-modal {
    max-width: 420px;
    width: 90%;
    padding: 35px 30px 30px;
    border-radius: 30px;
    background: #ffffff;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    text-align: center;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.confirm-overlay.active .confirm-modal {
    transform: scale(1);
}

.confirm-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 20px;
}

.confirm-buttons .notification-btn {
    min-width: 100px;
}

.confirm-buttons .confirm-yes {
    background: #70a23b;
}
.confirm-buttons .confirm-yes:hover {
    background: #5c8a2e;
}

.confirm-buttons .confirm-no {
    background: #e74c3c;
}
.confirm-buttons .confirm-no:hover {
    background: #c0392b;
}





/* ========================================
   ЛИЧНЫЙ КАБИНЕТ
   ======================================== */
   
   /* Фон для страницы личного кабинета */


.account-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 20px;
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

/* Левая колонка (меню) */
.account-left {
    width: 380px;
    height: 700px;
    background: #ffffff;
    border-radius: 30px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
    padding: 10px 25px;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
}

.account-profile {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
    padding: 0; /* убираем лишние отступы */
}

.account-profile .account-avatar {
    font-size: 72px;
    color: #70a23b;
    flex-shrink: 0;
    text-align: left;
    margin: 0; /* убираем центрирование */
}

.account-profile .account-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1;
    gap:4px;
}

.account-profile .account-name {
    font-family: 'SegoeUI', sans-serif;
    font-size: 18px;
    font-weight: 600;
    color: #222;
    line-height: 1.2;
}

.account-profile .account-status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'SegoeUI', sans-serif;
    font-size: 14px;
    color: #222;
    background: transparent; /* убираем фон */
    padding: 0;
    margin: 0;
    border-radius: 0;
    width: auto;
    justify-content: flex-start;
}

.account-profile .account-status .status-label {
    font-weight: 600;
    color: #999999;
}

.account-profile .account-status .status-value {
    font-weight: 500;
    color: #4c4493;
}

.account-profile .account-status .status-info {
    color: #4c4493;
    cursor: pointer;
    font-size: 16px;
}

/* Меню */
.account-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
    
}

.account-menu ul li a {
    display: block;
    padding: 9px 18px;
    font-family: 'IstokWeb', sans-serif;
    font-size: 18px;
    color: #222;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}

.account-menu ul li a:hover {
    color: #4c4493;
}

.account-menu ul li a.active {
    color: #4c4493;
    background: #e8edfb;
    border-radius: 21px;
}

/* Выход */
.account-logout {
    margin-top: auto;
    padding: 14px 18px;
    font-family: 'IstokWeb', sans-serif;
    font-size: 16px;
    color: #222222;
    text-decoration: none;
    border-radius: 12px;
    transition: background 0.2s;
}

.account-logout:hover {
    color: #4c4493;
}

/* Правая колонка */
.account-right {
    flex: 1;
    background: #ffffff;
    border-radius: 30px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
    padding: 40px 35px;
    min-height: 390px;
}

.account-right-courses {
    flex: 1;
    min-height: 390px;
}

.account-right h2 {
    font-family: 'Golos', sans-serif;
    font-weight: 700;
    font-size: 28px;
    color: #222;
    margin-bottom: 15px;
}

.account-right p {
    font-family: 'IstokWeb', sans-serif;
    font-size: 16px;
    color: #555;
    line-height: 1.6;
}



/* ========================================
   CRM-ПАНЕЛЬ
   ======================================== */

.crm-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

.crm-toolbar {
    display: flex;
    gap: 5px;
    margin-bottom: 9px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.crm-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 9px;
    border: none;
    font-family: 'IstokWeb', sans-serif;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
    color: #222;
}
.crm-btn i {
    font-size: 18px;
}

.crm-add {
    background: none;
    
}
.crm-add:hover {
    background: none;
    color: #70a23b;
}

.crm-save {
    background: none;
}
.crm-save:hover {
    background: none;
    color: #70a23b;
}

.crm-refresh {
    background: none;
}
.crm-refresh:hover {
    background: none;
    color: #70a23b;
}

.crm-table-container {
    background: #ffffff;
    border-radius: 30px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
    padding: 20px;
    overflow-x: auto;
}

.crm-table {
    width: 100%;
    border-collapse: collapse;
    font-family: 'SegoeUI', sans-serif;
    font-size: 14px;
    min-width: 900px;
}

.crm-table thead th {
    text-align: left;
    padding: 12px 10px;
    border-bottom: 2px solid #eee;
    color: #888;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.crm-table tbody td {
    padding: 10px 10px;
    border-bottom: 1px solid #f0f0f0;
    vertical-align: middle;
}

.crm-table tbody tr:hover {
    background: #f9f9f9;
}

.crm-role-select {
    padding: 6px 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: 'SegoeUI', sans-serif;
    font-size: 13px;
    background: #fff;
    cursor: pointer;
    width: 140px;
}
.crm-role-select:focus {
    outline: none;
    border-color: #70a23b;
    box-shadow: 0 0 0 3px rgba(112, 162, 59, 0.2);
}

/* ========================================
   СТРАНИЦА КУРСА (single-course)
   ======================================== */

.course-single-container {
    display: flex;
    gap: 30px;
    max-width: 1400px;
    margin: 40px auto;
    padding: 0 20px;
    align-items: flex-start;
    width: 100%;
    box-sizing: border-box;
}

/* Левая колонка */
.course-single-left {
    flex: 0 0 380px;
    max-width: 380px;
    background: #fff;
    border-radius: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    padding: 24px 0;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.course-single-header {
    padding: 0 24px 20px;
    border-bottom: 1px solid #f0f0f0;
}
.course-single-title {
    font-family: 'Golos', sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: #222;
    margin: 0 0 12px;
}
.course-single-links {
    display: flex;
    gap: 20px;
}
.course-link {
    font-family: 'IstokWeb', sans-serif;
    font-size: 14px;
    color: #4c4493;
    text-decoration: none;
}
.course-link:hover {
    text-decoration: underline;
}

.course-single-modules {
    padding: 20px 24px 0;
    overflow-y: auto;
    flex: 1;
}

.module-block {
    margin-bottom: 24px;
}
.module-title {
    font-family: 'Golos', sans-serif;
    font-size: 18px;
    font-weight: 600;
    color: #4c4493;
    margin: 0 0 8px;
}
.lesson-list {
    list-style: none;
    padding: 0;
    margin: 8px 0 8px;
}
.lesson-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 6px 12px;
}
.lesson-icon {
    flex-shrink: 0;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid #ccc;
    background: transparent;
}
.lesson-icon.completed {
    background: #70a23b;
    border-color: #70a23b;
}
.lesson-item.locked .lesson-icon {
    border: none;
    background: transparent;
}
.lesson-item.locked .lesson-icon i {
    font-size: 16px;
    color: #999;
}
.lesson-link {
    font-family: 'SegoeUI', sans-serif;
    font-size: 15px;
    color: #222;
    text-decoration: none;
    transition: color 0.2s;
}
.lesson-link:hover {
    color: #4c4493;
}
.locked-lesson {
    color: #999 !important;
    cursor: default;
}
.locked-lesson:hover {
    color: #999 !important;
}
.module-quiz-link,
.final-quiz-link {
    margin-top: 8px;
}
.module-quiz-link a,
.final-quiz-link a {
    font-family: 'IstokWeb', sans-serif;
    font-size: 14px;
    color: #4c4493;
    text-decoration: none;
    font-weight: 500;
}
.module-quiz-link a:hover,
.final-quiz-link a:hover {
    text-decoration: underline;
}
.final-quiz-link {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #eee;
}

/* Правая колонка */
.course-single-right {
    flex: 1;
    background: #fff;
     min-width: 0; 
     max-width: 100%;
    border-radius: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    padding: 30px 45px;
    min-height: 500px;
    display: flex;
    flex-direction: column;
     overflow-x: hidden; 
}
.lesson-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.btn-start-quiz {
    display: inline-block;
    padding: 12px 32px;
    background: #4c4493;
    color: #fff;
    border: none;
    border-radius: 30px;
    font-family: 'IstokWeb', sans-serif;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
    margin-top: 15px;
}
.btn-start-quiz:hover {
    background: #3a357a;
}

/* Ограничиваем ширину видео в правой колонке */
.course-single-right .lesson-body .wp-block-video,
.course-single-right .lesson-body .presto-player {
    max-width: 100%;
    width: 100%;
}

.course-single-right .lesson-body .wp-block-video video,
.course-single-right .lesson-body .presto-player video {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 16 / 9 !important;
    max-height: 600px; /* опционально: ограничиваем высоту */
    object-fit: contain;
}

/* Если плеер использует iframe (YouTube/Vimeo) */
.course-single-right .lesson-body .presto-player iframe {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 16 / 9 !important;
}
.lesson-title {
    font-family: 'SegoeUI', sans-serif;
    font-size: 26px;
    font-weight: 600;
    color: #222;
    margin: 0 0 20px;
}
.lesson-body {
    flex: 1;
    font-family: 'SegoeUI', sans-serif;
    font-size: 16px;
    color: #333;
    line-height: 1.7;
}
.lesson-body img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
}
.lesson-actions {
    margin-top: 30px;
    display: flex;
    justify-content: flex-end;
    gap: 20px; /* или любое нужное расстояние */
}
.btn-complete-lesson {
 height: clamp(36px, 5vw, 45px);
    background: #70a23b;
    color: #fff;
    border: none;
    border-radius: 0 21px 0 21px;
    padding: 12px 32px;
    font-family: 'IstokWeb', sans-serif;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
}
.btn-complete-lesson:hover {
    background: #5c8a2e;
}

.lesson-completed-message {
    font-family: 'SegoeUI', sans-serif;
    font-size: 16px;
    color: #70a23b;
    font-weight: 500;
    padding: 10px 0;
}

.lesson-completed-message .fa-check {
    margin-right: 5px;  /* или любое нужное значение */
}

/* Сообщение о закрытом уроке */
.lesson-locked-message {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    font-family: 'Golos', sans-serif;
    font-size: 20px;
    color: #999;
    text-align: center;
    padding: 40px 20px;
}
.lesson-locked-message p {
    max-width: 400px;
    margin: 0;
}

/* ===== КОНТЕНТ УРОКА ===== */
.lesson-body {
    font-family: 'SegoeUI', sans-serif;
    font-size: 16px;
    color: #333;
    line-height: 1.7;
}

.lesson-body p {
    margin: 0 0 1.2em 0;
}

.lesson-body ul,
.lesson-body ol {
    margin: 0 0 1.2em 0;
    padding-left: 30px; /* отступ для списков */
}

.lesson-body ul ul,
.lesson-body ol ol,
.lesson-body ul ol,
.lesson-body ol ul {
    margin-bottom: 0.5em;
    padding-left: 25px;
}

.lesson-body li {
    margin-bottom: 0.3em;
    line-height: 1.6;
}

/* Маркеры списков */
.lesson-body ul {
    list-style: disc;
}
.lesson-body ol {
    list-style: decimal;
}
.lesson-body ul ul {
    list-style: circle;
}
.lesson-body ol ol {
    list-style: lower-alpha;
}

/* Ссылки в контенте */
.lesson-body a {
    color: #4c4493;
    text-decoration: underline;
}
.lesson-body a:hover {
    color: #3a357a;
}

/* Изображения в контенте */
.lesson-body img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 0 0 1.2em 0;
}

/* Таблицы */
.lesson-body table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1.2em;
}
.lesson-body th,
.lesson-body td {
    border: 1px solid #ddd;
    padding: 8px 12px;
    text-align: left;
}
.lesson-body th {
    background: #f5f5f5;
    font-weight: 600;
}

/* Блоки цитирования */
.lesson-body blockquote {
    margin: 0 0 1.2em 0;
    padding: 15px 20px;
    border-left: 4px solid #70a23b;
    background: #f9f9f9;
    font-style: italic;
    color: #555;
}
.lesson-body blockquote p {
    margin-bottom: 0;
}

.course-single-right .lesson-body .hdq_quiz_wrapper {
    max-width: 100% !important;
    width: 100% !important;
    margin: 0 !important;
    box-sizing: border-box;
}

/* Прогресс-бар для урока */
.lesson-progress-wrapper {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 15px 0;
}
.progress-bar-container {
    flex: 1;
    height: 8px;
    background: #e9ecef;
    border-radius: 10px;
    overflow: hidden;
}
.progress-bar-fill {
    height: 100%;
    background: #70a23b;
    border-radius: 10px;
    transition: width 0.5s ease;
}
#progress-timer {
    font-family: 'SegoeUI', sans-serif;
    font-size: 14px;
    color: #666;
    min-width: 50px;
}

.btn-complete-lesson {
    padding-left:10px;
    background: #808080;
    color: #fff;
    border: none;
    border-radius: 0 21px 0 21px;
    padding: 12px 32px;
    font-family: 'IstokWeb', sans-serif;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s, opacity 0.2s;
}
.btn-complete-lesson:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}
.btn-complete-lesson.ready {
    background: #70a23b;
}
.btn-complete-lesson.ready:hover {
    background: #5c8a2e;
}
.btn-complete-lesson.completed {
    background: #70a23b;
    cursor: default;
    opacity: 0.8;
}

.quiz-locked-message {
    background: #fef2f2;
    padding: 20px 25px;
    border-radius: 12px;
    font-family: 'SegoeUI', sans-serif;
    font-size: 16px;
    color: #333;
    margin: 20px 0;
}
.quiz-locked-message p {
    margin: 0;
}


/* ===== КАРТОЧКИ КУРСОВ В ЛИЧНОМ КАБИНЕТЕ ===== */
.account-right {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.course-card {
background: rgba(255, 255, 255, 0.9); /* Сильная полупрозрачность */
backdrop-filter: blur(12px); /* Размытие заднего фона */
-webkit-backdrop-filter: blur(12px);
border: 1px solid rgba(255, 255, 255, 0.7); /* Тонкая светлая обводка */
box-shadow: 0 8px 32px rgba(100, 80, 70, 0.08);
    border-radius: 24px;
    padding: 20px;
    transition: box-shadow 0.2s;
}
.course-card:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.10);
}

/* Верхняя секция */
.course-card-top {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.course-thumbnail {
    flex: 0 0 160px;
    height: 120px;
    border-radius: 16px;
    overflow: hidden;
    background: #f0f0f0;
}
.course-thumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.course-thumb-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #aaa;
    font-size: 14px;
}

.course-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.course-author-block {
    display: flex;
    align-items: center;
    gap: 10px;
}
.author-logo-small {
    width: 21px;
    height: 21px;
    border-radius: 50%;
    overflow: hidden;
    background: #f0f0f0;
}
.author-logo-img-small {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.course-author-name {
    font-family: 'SegoeUI', sans-serif;
    font-size: 14px;
    color: #666;
}

.course-title {
    font-family: 'Golos', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: #222;
    margin: 0;
}

.course-lessons-count {
    font-family: 'SegoeUI', sans-serif;
    font-size: 14px;
    color: #888;
}

.course-progress {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 4px;
}
.progress-bar {
    flex: 1;
    height: 6px;
    background: #e9ecef;
    border-radius: 10px;
    overflow: hidden;
}
.progress-fill {
    height: 100%;
    background: #70a23b;
    border-radius: 10px;
}
.progress-label {
    font-family: 'SegoeUI', sans-serif;
    font-size: 13px;
    color: #666;
    white-space: nowrap;
}

.course-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 21px;
    flex-shrink: 0;
}
.leave-course {
    font-family: 'IstokWeb', sans-serif;
    font-size: 14px;
    color: #999999;
    text-decoration: none;
    cursor: pointer;
}

.leave-course:hover {
    font-family: 'IstokWeb', sans-serif;
    font-size: 14px;
    color: #808080;

}
.leave-course i {
    margin-right: 2px;
}
.leave-course.disabled {
    color: #999999;
    cursor: default;
    pointer-events: none;
}
.leave-course.disabled:hover {
    color: #808080;
    cursor: default;
    pointer-events: none;
}
.btn-go-to-course {
    display: inline-block;
    padding: 5px 14px;
    background: none;
    color: #70a23b;
    border: 2px solid #70a23b;
    border-radius: 0 21px 0 21px;
    font-family: 'IstokWeb', sans-serif;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.2s;
}
.btn-go-to-course:hover {
    background: #70a23b;
    color: #fff;
}

/* Терминатор */
.course-divider {
    border: none;
    border-top: 1px solid #dddddd;
    margin: 18px 0 16px;
}

/* Нижняя секция */
.course-card-bottom {
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.learn-title {
    font-family: 'Golos', sans-serif;
    font-size: 18px;
    font-weight: 600;
    color: #222;
    margin: 0;
}
.learn-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px 20px;
    list-style: none;
    padding: 0;
    margin: 0;
}
.learn-grid li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'SegoeUI', sans-serif;
    font-size: 13px;
    color: #333;
}
.learn-marker {
    font-weight: 700;
    font-size: 8px;
    color: #222;
}
.learn-empty {
    font-family: 'SegoeUI', sans-serif;
    font-size: 15px;
    color: #999;
}


/* ========================================
   АДАПТАЦИЯ СПИСКА КУРСОВ В ЛК
   ======================================== */

/* Маленькие ноутбуки (≤ 1380px) */
@media (max-width: 1380px) {
    .learn-grid li {
    font-size: 12px;
}
    .learn-marker {
        font-size: 5px;
    }
}


/* ================================================================
   СТИЛИ ДЛЯ СТРАНИЦЫ ВИКТОРИНЫ
   ================================================================ */

/* --- 1. Контейнер и общие стили --- */
#quiz-container {
    padding: 10px 0;
}

#quiz-container .quiz-question {
    background: #ffffff;
    border-radius: 24px;
    padding: 28px 30px 30px;
    margin-bottom: 24px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
    border: 1px solid #f0f0f0;
    transition: box-shadow 0.25s ease;
}

#quiz-container .quiz-question:hover {
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.07);
}

#quiz-container .quiz-question p {
    font-family: 'SegoeUI', Arial, sans-serif;
    font-weight: 500;
    font-size: 18px;
    color: #1a1a2e;
    margin-bottom: 18px;
    line-height: 1.5;
}

/* --- 2. Радиокнопки (одиночный выбор) и чекбоксы (множественный выбор) --- */
#quiz-container .quiz-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    margin-bottom: 6px;
    border-radius: 14px;
    cursor: pointer;
    transition: background 0.15s ease;
    font-family: 'SegoeUI', sans-serif;
    font-size: 16px;
    color: #222;
}

#quiz-container .quiz-option:hover {
    background: #f3f9f9;
}

#quiz-container .quiz-option input[type="radio"],
#quiz-container .quiz-option input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

/* Кастомный индикатор (кружок для radio, квадрат для checkbox) */
#quiz-container .quiz-option .custom-indicator {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 2px solid #d0d5dd;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    position: relative;
}

#quiz-container .quiz-option input[type="checkbox"] + .custom-indicator {
    border-radius: 6px;
}

/* Состояние "выбрано" для radio */
#quiz-container .quiz-option input[type="radio"]:checked + .custom-indicator {
    border-color: #70a23b;
    background: #70a23b;
    box-shadow: 0 0 0 3px rgba(76, 68, 147, 0.15);
}

#quiz-container .quiz-option input[type="radio"]:checked + .custom-indicator::after {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ffffff;
}

/* Состояние "выбрано" для checkbox */
#quiz-container .quiz-option input[type="checkbox"]:checked + .custom-indicator {
    border-color: #70a23b;
    background: #70a23b;
    box-shadow: 0 0 0 3px rgba(112, 162, 59, 0.15);
}

#quiz-container .quiz-option input[type="checkbox"]:checked + .custom-indicator::after {
    content: '✓';
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
    line-height: 1;
}

/* Стиль для текста варианта ответа */
#quiz-container .quiz-option .option-label {
    flex: 1;
    padding-top: 1px;
}

/* Адаптация для изображений-вариантов */
#quiz-container .quiz-option.option-image {
    flex-direction: column;
    align-items: stretch;
    padding: 16px;
    border: 2px solid transparent;
    border-radius: 16px;
    transition: border-color 0.2s ease, background 0.2s ease;
    background: #fafbfc;
}

#quiz-container .quiz-option.option-image:hover {
    background: #f0f2f5;
}

#quiz-container .quiz-option.option-image .custom-indicator {
    position: absolute;
    top: 12px;
    right: 12px;
    border-radius: 50%;
    width: 26px;
    height: 26px;
    border: 2px solid #d0d5dd;
    background: #ffffff;
}

#quiz-container .quiz-option.option-image input[type="radio"]:checked + .custom-indicator {
    border-color: #70a23b;
    background: #70a23b;
}

#quiz-container .quiz-option.option-image input[type="radio"]:checked + .custom-indicator::after {
    content: '';
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ffffff;
}

#quiz-container .quiz-option.option-image input[type="checkbox"]:checked + .custom-indicator {
    border-color: #70a23b;
    background: #70a23b;
}

#quiz-container .quiz-option.option-image input[type="checkbox"]:checked + .custom-indicator::after {
    content: '✓';
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
    line-height: 1;
}

/* --- 3. Поле для свободного ответа --- */
#quiz-container .quiz-text-input {
    width: 100%;
    padding: 14px 18px;
    font-family: 'SegoeUI', sans-serif;
    font-size: 16px;
    color: #1a1a2e;
    background: #f3f9f9;
    border: 1.5px solid #e2e6ec;
    border-radius: 16px;
    transition: all 0.25s ease;
    box-sizing: border-box;
    line-height: 1.5;
}

#quiz-container .quiz-text-input::placeholder {
    color: #808080;
    font-weight: 400;
}

#quiz-container .quiz-text-input:hover {
    border-color: #c5cad4;
    background: #ffffff;
}

#quiz-container .quiz-text-input:focus {
    border-color: #70a23b;
    outline: none;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(112, 162, 59, 0.12);
}

/* --- 4. Сетка для вариантов с изображениями (по 2 в ряд) --- */
#quiz-container .quiz-options-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 6px;
}

#quiz-container .quiz-options-grid .quiz-option.option-image {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;   /* центрируем изображение по вертикали */
    padding: 12px 12px 12px 12px; /* убираем нижний padding */
    border: 2px solid #eef0f3;
    background: #ffffff;
    border-radius: 21px;
    transition: border-color 0.25s ease, transform 0.2s ease;
    cursor: pointer;
    position: relative;
    height: 100%; /* чтобы растягивался по высоте ячейки */
}

#quiz-container .quiz-options-grid .quiz-option.option-image:hover {
    border-color: #70a23b;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

#quiz-container .quiz-options-grid .quiz-option.option-image img {
    margin: 0 !important;
    padding: 0 !important;
    vertical-align: top; /* или middle */
    width: 100%;
    height: auto; /* естественная высота */
    max-height: 220px;
    object-fit: contain;
    border-radius: 12px;
    background: #f3f9f9;
    flex-shrink: 0; /* чтобы не сжималось */
}
    
    #quiz-container .quiz-options-grid .quiz-option.option-image .option-label {
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    color: #1a1a2e;
    padding: 0 4px;
}


/* Индикатор для изображений (в правом верхнем углу) */
#quiz-container .quiz-options-grid .quiz-option.option-image .custom-indicator {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 26px;
    height: 26px;
    border: 2px solid #d0d5dd;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(2px);
}

#quiz-container .quiz-options-grid .quiz-option.option-image input[type="radio"]:checked + .custom-indicator {
    border-color: #70a23b;
    background: #70a23b;
}

#quiz-container .quiz-options-grid .quiz-option.option-image input[type="radio"]:checked + .custom-indicator::after {
    content: '';
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ffffff;
}

#quiz-container .quiz-options-grid .quiz-option.option-image input[type="checkbox"]:checked + .custom-indicator {
    border-color: #70a23b;
    background: #70a23b;
}

#quiz-container .quiz-options-grid .quiz-option.option-image input[type="checkbox"]:checked + .custom-indicator::after {
    content: '✓';
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
    line-height: 1;
    
}

/* --- 5. Кнопка "Завершить тест" --- */
#quiz-container .btn-submit-quiz {
     display: flex;                    /* вместо inline-flex */
    align-items: center;
    justify-content: center;
    height: clamp(36px, 5vw, 45px);
    line-height: clamp(36px, 5vw, 45px);
    padding: 0 clamp(16px, 3vw, 28px);
    color: #fff;
    border-radius: 0 21px 0 21px;
    font-family: 'IstokWeb', Arial, sans-serif;
    font-size: clamp(11px, 1.3vw, 14px);
    margin-top: 12px;
    background: #70a23b;
    border: none;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 4px 16px rgba(112, 162, 59, 0.25);
    letter-spacing: 0.3px;
    margin: 12px auto 0;
}

#quiz-container .btn-submit-quiz:hover {
    background: #5f8c32;
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(112, 162, 59, 0.30);
}

#quiz-container .btn-submit-quiz:active {
    transform: scale(0.97);
    box-shadow: 0 2px 8px rgba(112, 162, 59, 0.20);
}

/* Блок результатов викторины */
.quiz-results {
    background: #f3f9f9;
    border-radius: 21px;
    padding: 30px 35px;
    margin-top: 20px;
    border: 1px solid #e9ecef;
}

.quiz-results h3 {
    font-family: 'Golos', sans-serif;
    font-size: 23px;
    font-weight: 600;
    color: #222;
    margin-bottom: 20px;
}

.quiz-results .result-item {
    font-family: 'SegoeUI', sans-serif;
    font-weight: 500;
    font-size: 18px;
    padding: 8px 0;
    border-bottom: 1px solid #d8d8d8;
    display: flex;
    justify-content: space-between;
}

.quiz-results .result-item:last-child {
    border-bottom: none;
}

.quiz-results .result-item span {
    font-weight: 600;
    color: #4a4a5a;
}

.quiz-results .result-item .value {
    font-weight: 400;
    color: #1a1a2e;
}

.quiz-results .result-item .messages_yes {
    font-family: 'SegoeUI', sans-serif;
    font-weight: 600;
    font-size: 16px;
    color: #27ae60;
}

.quiz-results .result-item .messages_no {
    font-family: 'SegoeUI', sans-serif;
    font-weight: 600;
    font-size: 16px;
    color: #e74c3c;
}


#retry-quiz-btn {
    margin-top: 20px;
    width: auto;
    padding: 12px 32px;
}

/* Липкий таймер */
#quiz-timer-wrapper {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255,255,255,0.95);
    padding: 12px 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    text-align: center;
    font-size: 1.8rem;
    font-weight: bold;
    border-bottom: 4px solid #27ae60;
    transition: border-color 0.3s ease;
}

/* ===== СТРАНИЦА ПРОГРЕССА ===== */
.progress-page h1 {
    font-size: 1.8rem;
    margin-bottom: 20px;
}
.progress-bar-container {
    margin-bottom: 30px;
    height:100%;
    padding:12px;
}
.progress-bar-label {
    font-weight: 600;
}
.progress-bar-track {
    width: 100%;
    height: 24px;
    background: #e9ecef;
    border-radius: 12px;
    overflow: hidden;
    margin: 8px 0 16px 0;
}

.progress-bar-fill-green {
    height: 100%;
    background: #28a745;
    border-radius: 12px;
    transition: width 0.3s ease;
    width: 0%; /* будет переопределено inline-стилем */
}

.module-progress-block,
.final-quiz-block,
.certificate-block {
    margin-bottom: 35px;
}
.module-progress-title {
    font-size: 1.4rem;
    margin-bottom: 12px;
    border-bottom: 2px solid #dee2e6;
    padding-bottom: 6px;
}
.progress-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.progress-table th {
    background: #f8f9fa;
    padding: 10px 12px;
    text-align: left;
    border-bottom: 2px solid #dee2e6;
    font-weight: 600;
}
.progress-table td {
    padding: 10px 12px;
    border-bottom: 1px solid #dee2e6;
    vertical-align: middle;
}
.progress-table .quiz-row {
    background: #f1f3f5;
}
.progress-table .quiz-row td {
    border-bottom: 1px solid #dee2e6;
}

.status-passed { color: #28a745; font-weight: 600; }
.status-failed { color: #dc3545; font-weight: 600; }
.status-exhausted { color: #ffc107; font-weight: 600; }
.status-not-taken { color: #6c757d; }

.certificate-block p {
    font-style: italic;
    color: #6c757d;
}