/* ===== Глобальные стили ===== */
html {
    scroll-behavior: smooth;
}

*,
body {
    font-family: 'Roboto Slab', serif;
}

main {
    min-height: 55vh;
}

/* ===== Общие блоки ===== */
.block-dn {
    display: none !important;
}

.block-invisible {
    visibility: hidden;
    opacity: 0;
}

.block-df {
    display: flex !important;
}

.block-ai-c {
    align-items: center;
}

.block-ff-c {
    flex-flow: column !important;
}

.block-jc-e {
    justify-content: end;
}

.block-jc-sb {
    justify-content: space-between;
}

.block-w100,
.flex-break {
    width: 100% !important;
}

.block-w50 {
    width: 50%;
}

.block-ff-r-w {
    flex-direction: row;
    flex-wrap: wrap;
}

.mr4 {
    margin-right: 40px;
}

.mt4 {
    margin-top: 40px;
}

.mb4 {
    margin-bottom: 40px;
}

.block-inline {
    display: inline;
}

.p-10px {
    padding: 10px;
}

.visible-opacity {
    opacity: 1;
    height: 400px;
    position: relative;
}

/* ===== Кнопки ===== */
.button:hover,
.button:focus {
    cursor: pointer;
    box-shadow: 0 0 10px 0 white;
}

.button-primary {
    width: 273px;
    background-color: #fbae00;
    padding: 15px;
    color: #202020;
    text-align: center;
    font-size: 1.05rem;
    letter-spacing: 2px;
    font-weight: bold;
    transition: 0.01s;
    border: none;
    border-radius: 25px;
}

.button-primary:disabled {
    background-color: #ccc;
    color: #666;
    border: 1px solid #999;
    cursor: not-allowed;
    opacity: 0.6;
}

.button-primary__light {
    background-color: #fff;
    border: 1px solid #fbae00;
    color: #fbae00;
}

.button-primary-profile {
    margin: 10px auto;
    background-color: #012a2e;
    color: #fff;
    letter-spacing: 1px;
    border: 2px solid #025860;
    padding-bottom: 14px !important;
}

.button-secondary {
    border: 1px solid #fff;
    border-radius: 5px;
    background-color: transparent;
    color: #fff;
    margin: 10px auto 10px;
    padding: 12px 10px;
    width: 180px;
}

.button-tertiary {
    text-decoration: none;
    color: black;
    background-color: #fbae00;
    padding: 3px 15px;
    border: none;
    border-radius: 9px;
}

.button-tertiary__light {
    background-color: #fff;
    border: 1px solid #fbae00;
    border-radius: 10px;
}

.button-tertiary__light:hover {
    color: #fbae00;
}

.button-tertiary:disabled,
.button-tertiary__light:disabled {
    color: #999;
    background-color: #e0e0e0;
    border: none;
    cursor: not-allowed;
}

.button-tertiary__light:disabled {
    border: 1px solid #e0e0e0;
}

.button-tertiary__light:disabled:hover {
    color: #999;
    background-color: #e0e0e0;
}

.button-post-control {
    display: flex;
    justify-content: space-around;
    align-items: center;
    text-transform: uppercase;
    width: 150px;
    height: 35px;
    text-decoration: none;
    color: inherit !important;
    background-color: inherit;
    border: 1px solid #c7c7c7c2;
    border-radius: 8px;
    padding: 10px;
    margin: 10px 20px;
}

.button-avatar {
    text-align: left;
    tab-size: 10px;
}
/* Состояние кнопки во время загрузки */
.add-to-cart-btn.btn-loading {
    background-color: #ffa500 !important;
    cursor: wait !important;
    opacity: 0.8;
}

/* Состояние кнопки после успешного добавления */
.add-to-cart-btn.btn-added-to-cart {
    background-color: #28a745 !important;
    color: #fff !important;
    cursor: default !important;
}

.add-to-cart-btn.btn-added-to-cart:hover {
    background-color: #28a745 !important;
    transform: none !important;
}
.add-to-cart-btn.btn-disabled {
    background-color: #9e9e9e !important;  /* нейтральный серый */
    color: #fff !important;
    cursor: not-allowed !important;
    opacity: 0.7;
    pointer-events: none;                 /* полностью блокируем клики */
    transform: none !important;           /* отключаем анимации */
    box-shadow: none !important;
}

.add-to-cart-btn.btn-disabled:hover {
    background-color: #9e9e9e !important;
    transform: none !important;
    opacity: 0.7;
}
/* Анимация иконки загрузки */
@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.fa-spinner.fa-spin {
    animation: spin 1s linear infinite;
}
/* ===== Текст ===== */
.text-h1 {
    text-transform: uppercase;
    font-size: 1.6rem;
    text-align: center;
    color: #fbae00;
    width: 100%;
}

.text-h1-normal {
    color: inherit;
}

.text-h1-article {
    text-align: left;
}

.text-h2 {
    font-size: 1.5rem;
    text-transform: uppercase;
}

.text-h2-top {
    margin-top: 40px;
    margin-bottom: 0;
    font-weight: 200;
}

.text-h2-bottom {
    margin-top: 0;
    margin-bottom: 30px;
}

.text-h2-article {
    text-transform: uppercase;
}

.text-h2-article[data-subtitle]::before {
    content: attr(data-subtitle);
    text-transform: uppercase;
    display: block;
    position: relative;
    font-size: 1.2rem;
    color: #fbae00;
}

.text-h3 {
    text-transform: uppercase;
    font-size: 1rem;
    text-align: center;
}

.text-h4 {
    text-transform: uppercase;
    font-size: 0.9rem;
    text-align: center;
    margin-bottom: 10px;
}

.text-p-small {
    font-size: 0.8rem;
    text-align: center;
    height: 81px;
}

.text-strong {
    font-size: 1.5rem;
    color: #fbae00;
}

.text-p-strong {
    color: #fbae00;
}
.text-bot {
  padding: 0 40px;
}
/* ===== ШАПКА (HEADER) ===== */
.header {
    background-color: #202020;
    display: flex;
    flex-flow: row nowrap;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0 10px;
    width: 100%;
    min-height: 72px; 
}

.logo {
    height: 60px;
    outline: none;
}

/* Меню */
.menu__ul {
    display: flex;
    flex-flow: row nowrap;
}

.menu__ul-column {
    display: flex;
    flex-flow: column nowrap;
}

.menu__ul li,
.menu__ul-column li {
    list-style: none;
    margin-right: 15px;
}

.menu__ul-column li {
    margin-bottom: 15px;
    margin-top: 10px;
}

.menu__ul li a,
.menu__ul-column li a {
    text-decoration: none;
    position: relative;
    color: #fff;
    text-transform: capitalize;
}

.menu__ul li a::after,
.menu__ul-column li a::after {
    content: '';
    position: absolute;
    display: block;
    width: 0;
    height: 2px;
    margin-top: 10px;
    left: 50%;
    top: 20px;
    background-color: #fbae00;
    transition: 0.5s;
}

.menu__ul li a:hover,
.menu__ul li a:focus,
.menu__ul li a:active,
.menu__ul-column li a:hover,
.menu__ul-column li a:focus,
.menu__ul-column li a:active {
    text-shadow: 0 0 5px #fbae00;
    outline: none;
}

.menu__ul li a:hover::after,
.menu__ul-column li a:hover::after,
.menu__ul li a:focus::after,
.menu__ul-column li a:focus::after {
    width: 100%;
    left: 0;
    top: 20px;
}

/* Пользовательское меню */
.userinfo {
    display: flex;
}

.userinfo__ul {
    display: flex;
    flex-direction: row;
    align-items: center;
}

.userinfo__item {
    display: flex;
    align-items: center;
    justify-content: center;
    list-style: none;
    color: white;
    margin-right: 20px;
    padding: 5px;
}

.userinfo__item-userlogedin {
    position: relative;
}

.userinfo__item-userlogedout {
    text-decoration: none;
}

.userinfo__item-userlogedout:hover {
    background-color: #252525;
}

li::marker {
    display: none !important;
}

/* Выпадающее меню (ChatGPT) */
.userinfo__item-userlogedin img {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    transition: transform 0.2s;
}

.userinfo__item-userlogedin img:hover {
    transform: scale(1.1);
}
.userinfo__item-userlogedin:hover {
    background-color: rgba(255, 255, 255, 0.12);
    border-radius: 50%;
    transition: background-color 0.3s ease;
}
.dropdown {
    display: none;
    position: absolute;
    z-index: 99;
    top: 90%;
    right: 0;
    background-color: #fbae00 !important;
    border-radius: 5px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    transform: translateY(-10px);
}

.userinfo__item-userlogedin:hover .dropdown {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.dropdown li {
    padding: 10px 15px;
    white-space: nowrap;
}

.dropdown li a {
    color: #00282a;
    text-decoration: none;
    display: flex;
    align-items: center;
    transition: background 0.2s;
}

.dropdown li a:hover {
    background-color: rgba(0, 40, 42, 0.1);
}

.dropdown li a i {
    margin-right: 8px;
}

.dropdown li a#logout {
    color: white;
}

.userinfo__item-userlogedin>i {
    opacity: 1;
    color: #fff;
    margin-right: 5px;
}

.userinfo__item-userlogedin:hover>i,
.userinfo__item-userlogedin:focus>i {
    opacity: 0;
}

.userinfo__item>label {
    display: flex;
    align-items: center;
    justify-content: center;
}

.userinfo__item>label:hover,
.userinfo__item>label:focus {
    text-shadow: 0 0 5px #fbae00;
    outline: none;
    cursor: pointer;
}

.userinfo__item>input[type="checkbox"]:checked+label {
    text-shadow: 0 0 5px #fbae00;
    outline: none;
}

.userinfo__item>label>form {
    margin-left: 5px;
}

.userinfo__link {
    text-decoration: none;
    color: #fff;
    display: flex;
    align-items: center;
    width: 100%;
    height: 100%;
}

.userinfo__link-shoppingcart {
    position: relative;
}

.userinfo__link-shoppingcart::before {
    content: attr(data-quantity);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: absolute;
    top: 5px;
    right: 0;
    width: 18px;
    height: 18px;
    background-color: #000;
    border-radius: 50%;
    color: #fbae00;
    font-size: 12px;
}

.userinfo__link-shoppingcart[data-quantity="0"]::before,
.userinfo__link-shoppingcart[data-quantity=""]::before,
.userinfo__link-shoppingcart:not([data-quantity])::before {
    content: none;
    display: none;
}

.userinfo__item-userlogedin>.userinfo__link:hover,
.userinfo__item-userlogedin>.userinfo__link:focus {
    text-shadow: 0 0 5px #fbae00;
    outline: none;
}

/* Форма поиска */
.form-search input {
    height: 30px;
    border-radius: 5px;
    padding: 0 15px;
    outline: none;
    border: none;
    color: black;
    transition: 0.5s;
}

.form-search button {
    height: 30px;
    border-radius: 0 5px 5px 0;
    background-color: #fbae00;
    outline: none;
    border: none;
    margin-left: -10px;
    padding: 0 20px;
}

.form-search button:hover,
.form-search button:focus {
    cursor: pointer;
    color: #fff;
}

/* =========================================
   КОНТЕЙНЕР РЕЗУЛЬТАТОВ ПОИСКА
   ========================================= */
.search-result {
    position: absolute;
    top: 90px;
    left: 57%;
    width: 583px;
    max-height: 400px; 
    overflow-y: auto;
    display: flex;
    flex-direction: column; 
    color: #ffffff;
    background-color: #00282a;
    z-index: 999; 
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(251, 174, 0, 0.2);
    padding: 10px 0;
}

/* Кастомный скроллбар для тёмной темы (опционально, но выглядит круто) */
.search-result::-webkit-scrollbar {
    width: 6px;
}
.search-result::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}
.search-result::-webkit-scrollbar-thumb {
    background: #fbae00;
    border-radius: 3px;
}

/* =========================================
   СПИСОК И ЭЛЕМЕНТЫ
   ========================================= */
.search-results-list {
    list-style: none;
    margin: 0;
    padding: 0;
    width: 100%;
}

.search-result-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-item-link {
    display: block;
    padding: 12px 16px;
    text-decoration: none;
    color: #ffffff; /* Принудительно белый цвет для всей ссылки */
    transition: background 0.2s ease;
}

.search-item-link:hover {
    background: rgba(251, 174, 0, 0.1); /* Легкая золотистая подсветка при наведении */
}

/* Заголовок результата */
.search-item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 6px;
}

.search-item-header h3 {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    color: #fbae00; /* Акцентный цвет бренда для заголовка */
    line-height: 1.3;
}

/* Описание (превью) */
.search-item-preview {
    margin: 0;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.85); /* Светло-серый, хорошо читается на темном */
    line-height: 1.4;
    
    /* Обрезаем текст троеточием после 3-й строки, чтобы не ломать верстку */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* =========================================
   БЕЙДЖИ (СТАТУСЫ ДОСТУПА)
   ========================================= */
.search-badge {
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 12px;
    white-space: nowrap;
    margin-left: 8px;
    flex-shrink: 0;
    font-weight: 500;
}

/* Стили бейджей адаптированы под темный фон */
.badge-free { 
    background: rgba(46, 125, 50, 0.25); 
    color: #81c784; 
    border: 1px solid rgba(46, 125, 50, 0.5); 
}
.badge-owned { 
    background: rgba(21, 101, 192, 0.25); 
    color: #64b5f6; 
    border: 1px solid rgba(21, 101, 192, 0.5); 
}
.badge-locked { 
    background: rgba(230, 81, 0, 0.25); 
    color: #ffcc80; 
    border: 1px solid rgba(230, 81, 0, 0.5); 
}

/* Сообщение "Ничего не найдено" */
.search-empty, .search-error {
    padding: 20px;
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
}

/* ===== MAIN ===== */
.main {
    display: flex;
    flex-direction: column;
}

.section {
    position: relative;
    display: flex;
    flex-flow: row wrap;
    justify-content: center;
    align-items: center;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: 50% 50%;
    color: #fff;
}

.section-registration {
    padding: 60px 0;
    min-height: 700px;
    background-color: #00282a;
}

/* Слайдер изображений */
.image-slider {
    border: 4px solid #fff;
    width: 400px;
    height: 400px;
    margin-bottom: 100px;
    margin-top: 40px;
    margin-right: 40px;
    position: relative;
}

.image-slider__slide {
    position: absolute;
    top: -19%;
    left: -14%;
    width: 130%;
    opacity: 0;
    transition: all 1s;
}

.image-slider__slide-showing {
    opacity: 1;
    z-index: auto;
}

/* Заголовок + кнопка */
.title-text {
    width: 400px;
    padding-bottom: 40px;
    margin-left: 40px;
}

.title-text__h1 {
    margin-bottom: 15px;
    text-transform: uppercase;
    font-size: 1.9rem;
    font-weight: 700;
}

.title-text__h1::after {
    content: '';
    margin-top: 15px;
    display: block;
    height: 1px;
    background-color: #fbae00;
}

.title-text__strong {
    color: #fbae00;
    font-size: 1.9rem;
}

.title-text__paragraph {
    line-height: 140%;
    font-size: 1.2rem;
    font-family: 'Roboto slab';
    font-weight: regular;
}

.button-primary-registration {
    box-shadow: 0 0 10px 0px #008990;
}

.button-primary-registration:hover,
.button-primary-registration:focus {
    box-shadow: 0 0 20px 0px #008990;
}

.button-primary-registration:active {
    border: 2px solid #956700;
    padding-bottom: 4px;
    transform: scale(0.99);
}

/* ===== Блок "Для кого эта платформа" ===== */
.section-audience {
    background: linear-gradient(to bottom, #00282a 0%, #202020 100%);
    padding: 80px 0;
    position: relative;
    padding-bottom: 160px;
}

.section-audience .text-h2 {
    text-align: center;
    color: #ffffff;
    margin-bottom: 50px;
    padding: 0 20px;
}

.section-audience .text-h2 strong {
    color: #fbae00;
}

.audience-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

.audience-card {
    background-color: #202020;
    border: 1px solid rgba(251, 174, 0, 0.2);
    border-radius: 8px;
    padding: 35px 30px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.audience-card:hover {
    transform: translateY(-5px);
    border-color: #fbae00;
}

.audience-card h3 {
    color: #fbae00;
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 20px;
    font-family: 'Roboto Slab', serif;
    line-height: 1.3;
}

.audience-card p {
    color: #d0d0d0;
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 25px;
    flex-grow: 1;
}

.audience-card .button {
    display: inline-block;
    background-color: #fbae00;
    color: #00282a;
    padding: 12px 24px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: background-color 0.3s ease, color 0.3s ease;
    align-self: flex-start;
}

.audience-card .button:hover {
    background-color: #ffffff;
    color: #00282a;
}

/* ===== Преимущества ===== */
.section-advantages {
    background-color: #202020;
    padding: 50px 0;
    flex-direction: row;
    justify-content: center;
    align-items: center;
}

.section-advantages .ul-text {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 47%;
    margin-top: 0;
    padding: 0;
}

.section-advantages>.ul-text>div {
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    align-items: flex-start;
    width: 100%;
}

.section-advantages>.ul-text>div>li {
    width: 40%;
}

/* ===== Формы регистрации ===== */
#regform-wrapper>* {
    width: 100%;
}

#regform-wrapper form div>* {
    width: 100%;
}

#regform-wrapper>form>.agreement {
    position: relative;
}

#regform-wrapper>form>.agreement>input {
    position: absolute;
    left: 14px;
    width: 20px;
}

#regform-wrapper>form>.agreement>input+label {
    display: flex;
    position: relative;
    justify-content: center;
    align-items: center;
    width: 80%;
}

#regform-wrapper>form>.agreement>input+label:before {
    content: '';
    position: absolute;
    display: block;
    width: 15px;
    height: 15px;
    left: -30px;
    background-color: #fff;
    margin-right: 10px;
}

#regform-wrapper>form>.agreement>input:checked+label {
    color: #fbae00 !important;
}

#regform-wrapper form div {
    margin-bottom: 20px;
}

#regform-wrapper>form>.agreement>input:checked+label:before {
    background-color: #202020;
    background-image: url("../images/check.png");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center center;
}

.registration-form {
    position: fixed;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 3;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #131313;
    background: rgba(0, 0, 0, 0.6);
}

#regform-wrapper>form input[type="text"],
#regform-wrapper>form input[type="password"],
#loginform input[type="text"],
#loginform input[type="password"] {
    color: black;
}

.confirmation-form__wrapper form {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
}

.confirmation-form__wrapper form>input[type="text"] {
    width: 1.5rem;
    height: 2rem;
    color: black;
    text-transform: capitalize;
    text-align: center;
    font-size: 1,9rem;
    margin-right: 20px;
    caret-color: transparent;
}

.confirmation-form__wrapper form>input[type="text"]:focus {
    border-color: #fbae00;
}

#loginform .login-remember label input:checked+.login-remember__pseudocheckbox {
    background-color: #202020;
    background-image: url("../images/check.png");
    background-size: contain;
    background-position: center center;
}

#loginform .login-remember label .login-remember__pseudocheckbox {
    content: ' ';
    display: inline-flex;
    width: 15px;
    height: 15px;
    background-color: #fff;
    border: 1px solid lighten(#202020, 5)
}

.errorno,
.errorno a {
    color: red;
}

.button-registration-form-close {
    position: absolute;
    width: 20px;
    height: 20px;
    right: 10px;
    top: 10px;
    font-size: 1.8rem;
    color: #fbae00;
    transition: 0.3s;
    transform-origin: center;
    border-radius: 50%;
}

.button-registration-form-close i {
    position: absolute;
    left: 3px;
    top: 0px;
    font-size: 1.2rem;
}

.button-registration-form-close:hover,
.button-registration-form-close:focus {
    box-shadow: none;
    color: red;
    text-shadow: 0 0 15px red;
    transform: scale(1.2);
}

.registration-form__border {
    position: relative;
    border: 1px solid #fbae00;
    background-color: #202020;
    padding: 20px;
    width: 39%;
    max-width: 550px;
    height: auto;
}

.registration-form__form-control {
    display: flex;
    flex-flow: row nowrap;
    justify-content: center;
}

.registration-form__control:checked+label {
    border: 1px solid #fbae00;
}

.registration-form__label {
    padding: 5px;
    margin-right: 10px;
    border-bottom: 1px dashed #fff;
}

.registration-form__social {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 40px;
}

.registration-form__social .menu__ul>li:last-child {
    margin-right: 0;
}

.registration-form__menu-item {
    display: block;
    background-color: #070707;
}

.registration-form__menu-item a {
    display: flex;
    flex-flow: row no-wrap;
    justify-content: space-around;
    align-items: center;
    width: 150px;
    height: 45px;
    color: #fff;
    font-size: 1.3rem;
    text-decoration: none;
}

.registration-form__menu-item a::before {
    content: attr(data-name);
    display: inline-block;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.registration-form__menu-item a:hover,
.registration-form__menu-item a:focus {
    color: #fbae00;
    text-shadow: 0 0 10px #fff;
}

.registration-form__h4 {
    display: flex;
    flex-flow: row nowrap;
    justify-content: space-around;
    align-items: center;
}

.registration-form__h4::before,
.registration-form__h4::after {
    display: block;
    content: '';
    width: 45%;
    height: 2px;
    background-color: #fff;
}

.registration-form__general {
    display: flex;
    position: relative;
    flex-flow: row wrap;
    justify-content: space-between;
    align-items: center;
}

.registration-form__general label {
    display: flex;
    flex-flow: column nowrap;
    width: 45%;
}

.registration-form__general input {
    height: 35px;
    position: relative;
    padding: 0 10px;
    margin-bottom: 5px;
}

.registration-form__general button {
    margin: 20px auto 0;
    width: auto;
    height: 50px;
    outline: none;
    align-items: center;
    padding-bottom: 10px;
}

.registration-form__general .registration-form__registration-button {
    position: absolute;
    top: 200px;
    left: 25%;
}

.login-form-container>form {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: stretch;
}

.login-username>label,
.login-password>label {
    display: block;
    width: 30%;
}

.login-username>input,
.login-password>input {
    width: 100%;
}

.login-submit {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ===== Видео + список ===== */
.section-registration__flex-container {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: space-evenly;
    align-items: start;
}

.video {
    width: 40%;
    margin-bottom: 50px;
}

.video video {
    width: 100%;
    height: auto;
}

.ul-text__item {
    list-style: none;
    margin-bottom: 30px;
}

.ul-text__h3 {
    position: relative;
    color: #c7c7c7c2;
    text-transform: uppercase;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.ul-text__item:first-child>.ul-text__h3 {
    margin-top: 0;
}

.ul-text__h3::before {
    content: '';
    min-width: 29px;
    max-width: 29px;
    height: 38px;
    background-image: url("../images/fire.png");
    background-size: cover;
    margin-right: 10px;
    top: 5px;
}

.ul-text__p {
    color: #c7c7c7c2;
}

/* Сайд note */
.sidenote {
    opacity: 0.5;
    position: absolute;
    transform: rotate(90deg);
    width: 450px;
    text-align: center;
    top: 45%;
    right: -145px;
}

.sidenote__h3 {
    color: #fff;
    text-transform: uppercase;
    font-size: 3rem;
}

.sidenote__strong {
    color: #fbae00;
    font-size: 3rem;
}

/* ===== Проблемы ===== */
.section-problems {
    background-color: #00282a;

}

.section-problems #toggle-slider {
    text-align: center;
}

.slider-problems {
    position: relative;
    width: 100%;
    margin-bottom: 40px;
}

.slider-problems__wrapper {
    display: flex;
    justify-content: center;
    width: 100%;
    height: 300px;
    overflow: hidden;
    position: relative;
}

.slider-problems__item {
    position: absolute;
    background-color: #202020;
    width: 550px;
    height: 90%;
    padding: 25px 50px;
    transition: 0.5s;
    top: 10px;
}

.slider-problems__item:not(.slider-problems__item-current) {
    cursor: pointer;
}

.slider-problems__item::before {
    opacity: 0;
    transition: all 0.5;
}

.slider-problems__h3 {
    color: #fff;
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    user-select: none;
}

.slider-problems__h3::before {
    content: '';
    background-image: url("../images/triangle.png");
    width: 30px;
    height: 26px;
    display: block;
    margin-right: 10px;
}

.slider-problems__item p {
    user-select: none;
    padding: 10px;
}

.slider-problems__item-current {
    box-shadow: 0px 0 10px 1px #013338;
    z-index: 2;
}

.slider-problems__item-current::before {
    content: 'проблема';
    position: absolute;
    top: 40%;
    left: -15%;
    background-color: #fbae00;
    padding: 10px 20px;
    opacity: 1;
}

.slider-problems__item-unfocused {
    opacity: 0;
}

.slider-problems__item-focused {
    transform: scale(1.05) !important;
}

.slider-problems__item-next {
    opacity: 0.2;
    z-index: 1;
}

.slider-problems__item-previous {
    opacity: 0.2;
    z-index: 1;
}

.slider-problems__control {
    margin-top: 20px;
    display: flex;
    flex-flow: row no-wrap;
    justify-content: center;
}

.slider-problems__span {
    position: relative;
    width: 15px;
    height: 15px;
    margin-right: 10px;
    background-color: #fff;
    border-radius: 50%;
    overflow: hidden;
    cursor: pointer;
}

.slider-problems__span-active {
    background-color: #fbae00 !important;
    box-shadow: 0 0 10px 0 #038592;
}

.button-slider {
    position: absolute;
    display: block;
    min-width: 450px;
    max-width: 450px;
    height: 90%;
    background-color: white;
    opacity: 0;
    top: 10px;
    transform: translateX(-60px);
    z-index: 999;
}

.button-slider-next {
    transform: translateX(720px);
}

.button-slider-previous {
    transform: translateX(-810px);
}

/* ===== Курсы ===== */
.section-courses {
    background-color: #202020;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    padding: 50px 0;
    background-size: 100%;
    background-position: 20% 0%;
    background-repeat: repeat;
    position: relative;
    background-size: contain;
}

/* Карточка курса */
.course-card {
    width: 350px;
}
.course-card--extended {
    margin-bottom: 25px;
    position: relative;
    height: 650px;
    background-color: #202020;
    border-radius: 8px;
    padding: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.course-card--extended:not(:last-child) {
    margin-right: 15px;
}

.course-card__header {
    position: relative;
    padding: 28px 28px 24px;
    border-bottom: 3px solid #fbae00;
    background: linear-gradient(135deg, #00282a 0%, #001a1c 100%);
}

.course-card__header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-image) center / cover no-repeat;
    background-position: top;
    opacity: 0.4;
    z-index: 0;
    transition: all 0.5s;
}

.course-card__header>* {
    position: relative;
    z-index: 1;
}

.course-card__tag {
    display: inline-block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #fbae00;
    margin-bottom: 12px;
    font-weight: 700;
}

.course-card__title {
    font-family: 'Roboto Slab', serif;
    font-size: 24px;
    color: #ffffff;
    margin-bottom: 8px;
    line-height: 1.25;
}

.course-card__tagline {
    font-size: 14px;
    color: #a0a0a0;
    font-style: italic;
    margin: 0;
}

.background-course-card {
    background: #000 !important;
    padding: 5px;
}

.course-card--extended:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
    cursor: pointer;
}

.course-card--extended:hover .course-card__header::before {
    opacity: 0.8;
}
.menu__mycourses-item .course-card:hover .course-card__header::before {
    opacity: 0.8;
}
.course-card__audience,
.course-card__outcome {
    padding: 10px 10px;
}

.course-card__audience {
    background-color: rgba(251, 174, 0, 0.04);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.course-card__audience-title,
.course-card__outcome-title {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #fbae00;
    margin-bottom: 12px;
    font-weight: 700;
}

.course-card__audience-list,
.course-card__outcome-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.course-card__audience-list li,
.course-card__outcome-list li {
    font-size: 13px;
    color: #c0c0c0;
    padding: 6px 0 6px 18px;
    position: relative;
    line-height: 1.5;
}

.course-card__audience-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #fbae00;
    font-weight: 700;
}

.course-card__outcome-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: #fbae00;
}

.course-card__footer {
    padding: 22px 28px 28px;
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.course-card__meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.course-card__duration {
    font-size: 13px;
    color: #a0a0a0;
}

.course-card__price {
    font-family: 'Roboto Slab', serif;
    font-size: 22px;
    font-weight: 700;
    color: #ffffff;
}

.course-card__cta {
    display: block;
    text-align: center;
    background-color: #fbae00;
    color: #00282a;
    padding: 16px 24px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: background-color 0.3s ease;
}

.course-card__cta:hover {
    background-color: #ffffff;
}

/* ===== Премиум ===== */
.section-premium {
    flex-flow: column nowrap;
    justify-content: center;
    align-items: center;
    background-color: #012a2e;
    min-height: 330px;      
    padding: 50px 20px;    

}

.section-premium h2 {
    text-align: center;
}

.section-premium .block {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;       
    justify-content: center;
    align-items: center;
    gap: 20px;             
    width: 100%;
    max-width: 900px;      
}

.section-premium__p {
    color: #ffffff7e;
    background-color: #011f22;
    padding: 20px;
    font-size: 1.2rem;
    min-height: 130px;
    box-sizing: border-box; 
}
.button-telegram {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, #0088cc 0%, #0066aa 100%);
    color: #fff !important;
    padding: 18px 40px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 8px 25px rgba(0, 136, 204, 0.4),
                0 4px 10px rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.1);
}

/* Иконка Telegram */
.button-telegram i {
    font-size: 1.6rem;
    transition: transform 0.4s ease;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

/* Эффект свечения при наведении */
.button-telegram:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 35px rgba(0, 136, 204, 0.6),
                0 6px 15px rgba(0, 0, 0, 0.4);
    background: linear-gradient(135deg, #00aaff 0%, #0088cc 100%);
}

/* Анимация иконки - самолетик "летит" */
.button-telegram:hover i {
    transform: translateX(5px) translateY(-2px) rotate(-10deg);
}

/* Блик, пробегающий по кнопке */
.button-telegram::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    transition: left 0.6s ease;
}
.button-premium {
    display: block;
    position: relative;
    width: 85px;
    height: 85px;
    color: #fff;
    text-decoration: none;
    background-color: #fbae00;
    background-size: 60%;
    background-position: 50% 40%;
    background-repeat: no-repeat;
    border-radius: 50%;
    transition: 0.3s;
}

.button-premium::after {
    content: 'получить скидку';
    position: absolute;
    display: block;
    top: 95px;
    left: -33%;
    width: 200px;
    transition: 0.3s;
}

.button-premium:hover,
.button-premium:focus {
    box-shadow: 0 0 10px 6px #025860;
    background-size: 78%;
    background-image: url("../images/premium2.png") !important;
}

.button-premium:hover::after,
.button-premium:focus::after {
    color: #fbae00;
    text-shadow: 0 0 15px #fff;
}

/* ===== Статьи ===== */
.section-articles {
    background-color: #202020;
    min-height: 658px;
}

.section-blog__articles {
    display: grid;
    grid-template-columns: repeat(3, 300px);
    grid-gap: 20px;
    margin-top: 20px;
}

.section-blog__article {
    padding: 15px;
    transition: 0.3s;
}

.section-blog__article h3 {
    color: #fff;
    font-family: 'Roboto slab';
    font-size: 1.4rem;
    transition: 0.3s;
    text-shadow: -1px 0px 2px #000;
}

.section-blog__article p {
    position: absolute;
    top: 200%;
    font-family: 'Roboto slab';
}

.section-blog__article-wrapper {
    display: flex;
    text-decoration: none;
    color: #012a2e;
    align-items: flex-end;
    height: 300px;
    background-color: #c7c7c7c2;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: 0 0;
    filter: grayscale(0.8);
    transition: 0.3s;
    overflow: hidden;
    outline: none;
}

.section-blog__article-wrapper .date {
    position: absolute;
    top: 0;
    left: 0;
    padding: 5px;
    color: transparent;
    transition: all 0.3s;
}

.section-blog__article-wrapper:hover,
.section-blog__article-wrapper:focus {
    filter: grayscale(0);
    box-shadow: 0px -150px 60px 0 #012529 inset, 0px 0px 1px 1px #7c5600;
    transform: scale(1.05);
    color: #fff;
}

.section-blog__article-wrapper:hover .date,
.section-blog__article-wrapper:focus .date {
    color: white;
    text-shadow: 0 0 5px black;
}

.section-blog__article-wrapper:hover>.section-blog__article h3,
.section-blog__article-wrapper:focus>.section-blog__article h3 {
    background-color: transparent;
    transform: translateY(-130px);
}

.section-blog__article-wrapper:hover>.section-blog__article p,
.section-blog__article-wrapper:focus>.section-blog__article p {
    top: 45%;
}

.section-blog__article-wrapper--2c {
    grid-column-start: span 2;
    grid-column: span 2;
}

/* ===== Обратная связь ===== */
.section-feedback {
    background-color: #012a2e;
    color: #fff;
    display: flex;
    justify-content: center;
    flex-flow: row wrap;
    align-items: center;
    padding-bottom: 40px;
    overflow-x: hidden;

}

.form-feedback {
    display: flex;
    flex-flow: column nowrap;
    align-items: stretch;
    width: 450px;
    max-width: 100%;
}

.form-feedback__group {
    margin-bottom: 16px;
    width: 100%;
}

.form-feedback__label {
    display: block;
    font-size: 12px;
    color: #a0a0a0;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.form-feedback__input {
    border-radius: 5px;
    outline: none;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 12px 14px;
    color: #c7c7c7;
    width: 100%;
    background-color: #202020;
    font-size: 14px;
    font-family: inherit;
    box-sizing: border-box;
    resize: vertical;
    transition: border-color 0.3s ease;
}

.form-feedback__input::placeholder {
    color: #606060;
    font-style: italic;
}

.form-feedback__input:focus {
    border-color: #fbae00;
}

.form-feedback__privacy {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 20px;
    font-size: 12px;
    color: #a0a0a0;
}

.form-feedback__privacy input[type="checkbox"] {
    margin-top: 2px;
    accent-color: #fbae00;
}

.form-feedback .button-secondary {
    background-color: #fbae00;
    color: #00282a;
    border: none;
    padding: 14px 28px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    cursor: pointer;
    transition: background-color 0.3s ease;
    align-self: center;
}

.form-feedback .button-secondary:hover {
    background-color: #ffffff;
}

.image-slider-small {
    position: absolute;
    top: 22%;
    right: 100px;
    width: 190px;
    height: 190px;
}

/* ===== FOOTER ===== */
.footer {
    position: relative;
    display: flex;
    flex-flow: column wrap;
    justify-content: center;
    align-items: center;
    background-color: #202020;
    width: 100%;
}

.footer__wrapper {
    display: flex;
    flex-flow: row nowrap;
    justify-content: space-evenly;
    width: 100%;
}

.footer__h3 {
    text-transform: uppercase;
    font-size: 1.2rem;
    color: #fff;
}

.footer__h3::after {
    content: '';
    margin-top: 10px;
    display: block;
    height: 1px;
    background-color: #fbae00;
}

.footer__form {
    width: 40%;
    color: #fff;
    position: relative;
}

.footer__paragraph {
    margin: 10px 0 20px;
    line-height: 1.5rem;
}

.footer__social__ul {
    display: flex;
    flex-flow: row nowrap;
}

.footer__social__item {
    list-style: none;
    width: 50px;
    height: 50px;
    text-align: center;
}

.footer__social__link {
    text-decoration: none;
    color: #fff;
    font-size: 2rem;
    transition: 0.3s;
    outline: none;
}

.footer__social__link:hover,
.footer__social__link:focus {
    text-shadow: 0 0 5px #fbae00;
}

.form-subscribe {
    width: 100%;
    display: flex;
    flex-flow: row nowrap;
}

.form-subscribe__input {
    background-color: #202020;
    border: 1px solid #fff;
    padding: 10px;
    border-radius: 5px;
    color: #fff;
    width: 70%;
}

.form-subscribe__button {
    background-color: #202020;
    border: 1px solid #fbae00;
    color: black;
    background-color: #fbae00;
    padding: 10px;
    border-radius: 0 5px 5px 0;
    margin-left: -10px;
}

/* ===== ORGANIZATION.PHP ===== */
.organization {
    background-color: #202020;
    color: white;
    margin: 0;
    padding: 0;
}

.organization .container {
    display: flex;
    flex-direction: column;
    width: 80%;
    max-width: 900px;
    margin: 50px auto;
    padding: 20px;
    background-color: #00282a;
    border-radius: 8px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.3);
}

.organization h1,
.organization h2 {
    color: #fbae00;
}

.organization .container>label {
    display: block;
    margin-top: 15px;
    font-weight: bold;
    color: #fbae00;
}

.organization .container input[type="text"],
.organization .container input[type="date"],
.organization .container textarea,
.organization .container select {
    width: 100%;
    padding: 10px;
    margin-top: 5px;
    background-color: #202020;
    color: white;
    border: 1px solid #fbae00;
    border-radius: 4px;
}

.organization .container input[type="submit"],
.organization .container button {
    background-color: #fbae00;
    color: #00282a;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
}

.organization .container input[type="submit"]:hover,
.organization .container button:hover {
    background-color: #ffc107;
}

/* ===== PROFILE.PHP ===== */
.main-profile {
    flex-flow: column nowrap;
    justify-content: center;
    align-items: center;
    font-family: 'Roboto slab', serif;
    background-color: #012a2e;
    padding: 80px 0;
    height: auto;
}

.section-profile {
    border-radius: 8px;
    background-color: #202020;
    flex-flow: column nowrap;
    align-items: start;
    justify-content: center;
    padding: 0 25px 25px;
    font-family: 'Roboto Slab', serif;
    width: 75%;
}

.section-profile > .section-profile {
    width: 100%;
    padding-right: 0;
}

.section-profile__personal-info {
    display: flex;
    flex-flow: row nowrap;
    justify-content: space-between;
    align-items: flex-start;
    max-height: 330px;
}

.section-profile__profile-parts {
    display: flex;
    align-items: center;
    width: 600px;
}

.section-profile__profile-parts label {
    padding: 10px 20px;
    border-bottom: 1px solid white;
    transition: 0.5s;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    cursor: pointer;
}

.section-profile__profile-parts input:checked+label {
    color: #fbae00;
    border-bottom: none;
    border-top: 1px solid white;
    border-right: 1px solid white;
    border-left: 1px solid white;
}

.section-profile__text {
    justify-content: space-between;
    align-items: start;
}

.section-profile__text>p {
    margin: 0;
}

.section-profile__text h1 {
    text-align: left;
}

.section-profile__text>div>p {
    margin-top: 10px;
    margin-bottom: 0;
}

.section-profile__text-h2 {
    text-align: left;
}

.menu__link-courses {
    display: flex;
    justify-content: center;
    position: relative;
    width: 35px;
    height: 35px;
    background-color: transparent;
    background-position: center center;
    background-size: contain;
    border-radius: 50%;
    filter: grayscale(1) brightness(1.9);
    text-decoration: none;
    color: #fff;
}

.menu__link-courses::after {
    opacity: 0;
    display: block;
    content: attr(data-course-name);
    position: relative;
    top: 100%;
    width: 100px;
    text-align: center;
    text-transform: lowercase;
    transition: opacity 0.5s;
}

.menu__link-courses:hover,
.menu__link-courses:focus {
    filter: grayscale(0);
    color: #fbae00;
}

.menu__link-courses:hover::after,
.menu__link-courses:focus::after {
    opacity: 1;
}

.menu__link-radio:checked~.menu__link-courses {
    filter: grayscale(0);
    color: #fbae00;
}

.section-profile__edit-general form {
    display: flex;
    flex-flow: row wrap;
}

.section-profile__edit-general form input[type="text"],
.section-profile__edit-general form input[type="password"],
.section-profile__edit-general form input[type="email"],
.section-profile__edit-general form input[type="date"] {
    background-color: #202020;
    border: 1px solid #fff;
    padding: 10px;
    border-radius: 5px;
    color: #fff;
    width: 210px;
    margin-right: 5%;
}

.section-profile__edit-general form input[name='job'] {
    width: 100%;
}

.section-profile__edit-general form input[type='date'] {
    color: white;
}

.section-profile__useravatar {
    position: relative;
    width: 270px;
    height: 270px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: 0 0;
    z-index: 1;
}

.section-profile__useravatar img {
    width: 250px;
    height: 250px;
}

.section-profile__useravatar>.upload-wrapper {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 250px;
    height: 250px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    background-color: #0f0f0f3f;
    opacity: 0;
    z-index: -1;
}

.section-profile__useravatar:hover>.upload-wrapper,
.upload-wrapper:hover,
.section-profile__useravatar:focus>.upload-wrapper,
.upload-wrapper:focus {
    z-index: 2;
    opacity: 1;
}

.section-profile__useravatar:hover>.upload-wrapper>.button,
.section-profile__useravatar:focus>.upload-wrapper>.button {
    background-color: #202020aa;
    opacity: 1;
}

/* =========================================================
 *  МОДАЛЬНОЕ ОКНО ЗАГРУЗКИ АВАТАРА
 * ========================================================= */
.form__wrapper {
    position: fixed;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
}
#avatar-form-upload, #avatar-form-change {
    display: flex;
    flex-direction: column;
}
.form__wrapper > div {
    width: 750px;
    opacity: 1;
}

/* Заголовок формы */
.form-header {
    padding: 25px 30px 10px 30px;
    position: relative;
    background-color: #fff;
    border-radius: 15px 15px 0 0;
    transition: all 0.5s;
    border-bottom: 1px solid #b9b9b996;
}

.form-header p {
    color: #b9b9b996;
    font-size: small;
}

/* Форма с превью */
.form__wrapper > div form {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    padding: 40px 10px 10px 50px;
    background-color: #fff;
    border-radius: 0 0 15px 15px;
    transition: all 0.5s;
}

.form__wrapper > div form > p {
    color: black;
}

.form__wrapper > div form .button {
    margin-left: 20px;
    margin-bottom: 20px;
}

/* =========================================================
 *  КОНТЕЙНЕР ПРЕВЬЮ (родитель для картинки и рамки)
 * ========================================================= */
.avatar-preview {
    position: relative;
    overflow: hidden; /* Обрезаем всё, что вылезает за границы */
    z-index: 1;
    border-radius: 4px;
}

/* =========================================================
 *  КАРТИНКА ПРЕВЬЮ
 * ========================================================= */
#avatar-preview {
    display: block;
    position: relative;
    width: 100%;
    max-width: 100%;
    max-height: 570px;
    z-index: 1;
    user-select: none;
    -webkit-user-drag: none;
    pointer-events: none; /* Клики проходят сквозь картинку к рамке */
}

/* =========================================================
 *  РАМКА ОБРЕЗКИ (draggable)
 * ========================================================= */
.draggable {
    position: absolute;
    border: 2px solid #fbae00;
    box-sizing: border-box;
    cursor: move;
    z-index: 2;
    /* Огромная тень затемняет ВСЁ вокруг рамки */
    box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.55);
}

/* Ручки изменения размера */
.draggable .resize-handle {
    position: absolute;
    width: 12px;
    height: 12px;
    background: #fbae00;
    border: 2px solid #fff;
    border-radius: 50%;
    z-index: 3;
}

.draggable .top-left     { top: -6px;    left: -6px;    cursor: nwse-resize; }
.draggable .top-right    { top: -6px;    right: -6px;   cursor: nesw-resize; }
.draggable .bottom-left  { bottom: -6px; left: -6px;    cursor: nesw-resize; }
.draggable .bottom-right { bottom: -6px; right: -6px;   cursor: nwse-resize; }

/* Сетка "правило третей" внутри рамки */
.draggable::before,
.draggable::after {
    content: '';
    position: absolute;
    pointer-events: none;
}

.draggable::before {
    left: 33.33%;
    right: 33.33%;
    top: 0;
    bottom: 0;
    border-left: 1px solid rgba(255, 255, 255, 0.3);
    border-right: 1px solid rgba(255, 255, 255, 0.3);
}

.draggable::after {
    top: 33.33%;
    bottom: 33.33%;
    left: 0;
    right: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

/* =========================================================
 *  ВЫБОР СТАНДАРТНЫХ АВАТАРОК
 * ========================================================= */
.avatar-default {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    padding: 0 30px;
    background-color: #fff;
}

.avatar-default > div {
    background-color: #fff;
    display: flex;
}

.avatar-default__text {
    flex-direction: column;
    color: black;
    width: 55%;
    padding: 10px 0px 10px 50px;
}

.avatar-default__text > p:last-child {
    color: #b9b9b996;
    padding-top: 40px;
    font-size: small;
}

.avatar-default__images {
    flex-direction: row;
    flex-wrap: wrap;
    width: 300px;
    height: 400px;
}

.avatar-default__images > img {
    width: 90px;
    height: 90px;
    transition: all 1s;
}

.avatar-default__images > .active {
    width: 270px;
    height: 270px;
    order: -1;
}

/* =========================================================
 *  ЗАГРУЖЕННЫЕ АВАТАРЫ (слайдер)
 * ========================================================= */
.avatar-uploaded {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    width: 100%;
    padding: 0 30px;
    background-color: #fff;
}

.avatar-preview-uploaded {
    padding: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.avatar-preview-uploaded img {
    max-height: 400px;
    max-width: 100%;
}

.avatar-uploaded-slider {
    display: flex;
    justify-content: center;
    align-items: center;
}

.avatar-uploaded-slider img {
    max-height: 75px;
    margin-right: 5px;
}

.avatar-uploaded-slider img:hover {
    cursor: pointer;
}

.avatars-uploaded-preview {
    display: flex;
    color: #000;
}

.avatar-uploaded-preview {
    height: 126px;
    margin-right: 5px;
    margin-bottom: 30px;
    transition: all 0.5s;
}

.avatar-uploaded-preview:hover {
    height: 156px;
    margin-bottom: 0px;
}

/* =========================================================
 *  УТИЛИТЫ
 * ========================================================= */
.is-dragging:hover {
    cursor: grab !important;
}

.size-changer:hover {
    opacity: 1;
    background-color: red;
}

/* Стилизация кнопок профиля */
.profile-block:checked~label {
    color: #fff;
}

.button-profile {
    color: #fff;
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    width: 270px;
}

#edit-profile-input:checked+label {
    box-shadow: none;
    text-shadow: 0 0 5px #fbae00;
}

#edit-profile-input:checked+label>i {
    background-color: transparent;
}

.button-profile i {
    display: flex;
    color: black;
    background-color: #fff;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
}

.button-profile:hover,
.button-profile:focus {
    box-shadow: none;
    text-shadow: 0 0 5px #fbae00;
}

.button-profile:hover>i,
.button-profile:focus>i {
    background-color: transparent;
}

.profile-block__span {
    display: block;
    content: '';
    position: relative;
    width: 30px;
    height: auto;
    margin-right: 10px;
}

.profile-block__span::after,
.profile-block__span::before {
    content: '';
    display: block;
    position: absolute;
    width: 20px;
    height: 4px;
    background-color: #fff;
    transition: 0.3s;
}

.profile-block__span::after {
    top: 50%;
    left: 11px;
    transform: rotateZ(-45deg);
}

.profile-block__span::before {
    top: 50%;
    right: 11px;
    transform: rotateZ(45deg);
}

.profile-block__label {
    color: #999999;
    display: flex;
    position: relative;
    z-index: 2;
}

.profile-block__label:hover,
.profile-block__label:focus {
    cursor: pointer;
    text-shadow: 0 0 1px #fff;
}

.profile-block:checked+.profile-block__label>.profile-block__span::after {
    transform: rotate(45deg);
}

.profile-block:checked+.profile-block__label>.profile-block__span::before {
    transform: rotate(-45deg);
}

.profile-block~.profile-block__control {
    transition: height 0.01s, opacity 0.5s, transform 0.5s;
    align-items: baseline;
}

.profile-block:not(:checked)~.profile-block__control {
    opacity: 0;
    height: 0;
}

.profile-block~.menu__ul {
    transition: height 0.01s, opacity 0.5s, transform 0.5s;
    margin-top: 20px;
}

.profile-block__item {
    width: 150px;
    height: 150px;
    display: flex;
    position: relative;
    border-radius: 8px;
    background-color: #012a2e;
}

.profile-block__item:hover,
.profile-block__item:focus {
    box-shadow: 0 0 5px 0 white;
}

.profile-block__item::after {
    content: attr(data-achievement-name);
    display: block;
    position: absolute;
    top: 160px;
    left: 20px;
}

.profile-block__item input:checked+label {
    border-radius: 8px;
    box-shadow: inset 0 0 5px 0 #fbae00;
}

.profile-block__item label {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.profile-block__item label img {
    width: 135px;
}

.profile-block:not(:checked)~.menu__ul {
    opacity: 0;
    height: 0;
    margin: 0;
    padding: 0;
}

.profile-block~.section-profile__achievement-info {
    transition: height 0.01s, opacity 0.5s, transform 0.5s;
}

.profile-block:not(:checked)~.section-profile__achievement-info {
    opacity: 0;
    height: 0;
    margin: 0;
    padding: 0;
}

.profile-block:not(:checked)~.section-profile__achievement-info p {
    display: none;
}

.profile-block:not(:checked)~a {
    display: none;
    position: absolute;
}

.profile-block:not(:checked)~.section-profile__certificates-images {
    display: none;
}

.profile-block__radio:checked+label {
    color: #fbae00;
}
/* Скрытие/показ контента Telegram-бота */
.telegram-bot__content {
    transition: height 0.3s ease, opacity 0.5s ease, margin 0.3s ease, padding 0.3s ease;
    overflow: hidden;
}
.telegram-bot__content .button-primary-profile {
    margin-top: 40px;
    display: block;
}
.telegram-bot__content .text-bot {
    margin: 0 auto;
    max-width: 300px;
}
.profile-block:not(:checked) ~ .telegram-bot__content {
    opacity: 0;
    height: 0;
    margin: 0;
    padding: 0;
    overflow: hidden;
}
.profile-block__microcourses {
    opacity: 1;
    height: auto;
}
.profile-block:not(:checked) ~ .profile-block__microcourses {
    opacity: 0;
    height: 0;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

/*microcourses*/
/* =========================================================
 *  БЛОК: Микрокурсы для повторения
 * ========================================================= */

/* Сетка карточек микрокурсов */
.microcourses-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(450px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
    padding: 10px 40px 10px 10px;
}

/* Карточка микрокурса */
.microcourse-item {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    padding: 5px 15px 5px;
    border: 2px solid #d2d3d4;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    background: transparent;
    user-select: none;
}

.microcourse-item:hover {
    border-color: #bbb;
}

/* Состояние "выбрано" */
.microcourse-item.is-selected {
    border-color: #ffae00;
    background: rgba(255, 174, 0, 0.05);
}

/* Состояние "заблокировано" */
.microcourse-item.is-disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Заголовок карточки */
.microcourse-item__title {
    font-weight: bold;
    font-size: 15px;
    margin-bottom: 5px;
    width: 100%;
}

/* Мета-информация (сложность, категория) */
.microcourse-item__meta {
    font-size: 13px;
    color: #888;
    margin-bottom: 8px;
    width: 100%;
}

/* Бейдж результата */
.microcourse-item__score {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    color: white;
    font-size: 12px;
    font-weight: bold;
}

.microcourse-item__score--low {
    background: #dc3545;
}

.microcourse-item__score--mid {
    background: #ffc107;
    color: #333;
}

.microcourse-item__score--high {
    background: #28a745;
}

/* Дата прохождения */
.microcourse-item__date {
    font-size: 12px;
    color: #aaa;
    margin-top: 8px;
    width: 100%;
}

/* Счётчик выбранных курсов */
.microcourses-counter {
    margin-left: 15px;
    color: #888;
}

/* Сообщение об успехе/ошибке */
.microcourses-message {
    font-weight: bold;
    margin-bottom: 10px;
}

.microcourses-message--success {
    color: #28a745;
}

.microcourses-message--error {
    color: #dc3545;
}
.profile-block__select {
    display: block;
    opacity: 0;
    margin-left: 15px;
    outline: none;
    border: 1px solid #fbae00;
    border-radius: 8px;
    padding: 5px;
    background-color: #202020;
    color: #fff;
    transition: 0.5s;
}

.profile-block__select option:hover,
.profile-block__select option:focus {
    background-color: #012a2e;
}

.profile-block__block {
    display: flex;
    align-items: center;
    opacity: 0;
    transition: height 0.5s, opacity 0.1s;
    height: 0;
}

.profile-block__subject-part {
    padding: 5px;
    border: 2px solid #fff;
    width: 200px;
    border-radius: 8px;
    text-align: center;
}

.profile-block__subject-part:checked+label {
    border: 2px solid #fbae00;
    color: #fbae00;
}

.profile-block__common {
    width: 75%;
    position: relative;
    padding-left: 80px;
    align-items: center;
}

.profile-block__subject-container {
    width: 100%;
    display: none;
    justify-content: space-around;
}

.profile-block__progress-info-subjects {
    display: none;
    justify-content: space-between;
    align-items: center;
}

.profile-block__progress-info-text {
    display: flex;
}

.profile-block__progress-info-text::after {
    content: attr(data-content);
    display: block;
    position: relative;
    margin-left: 10px;
    color: #fbae00;
}

.profile-block__subject-symbol {
    display: block;
    width: 130px;
    height: 130px;
    border-radius: 50%;
    background-color: #012a2e;
    background-position: center;
    background-size: 70%;
    background-repeat: no-repeat;
}

.profile-block__general-progress {
    display: flex;
    justify-content: space-around;
}

.profile-block__rating {
    display: flex;
    flex-flow: wor nowrap;
    justify-content: center;
    align-items: center;
}

.profile-block__rating::before {
    content: '★';
    margin-right: 10px;
    color: #fbae00;
}

.profile-block__rating::after {
    content: '★';
    margin-left: 10px;
    color: #fbae00;
}

/* Принадлежности */
#affiliations:checked~ul {
    display: flex;
}

.section-profile__affiliations {
    width: 100%;
}

.menu__affiliations {
    display: none;
    flex-flow: column wrap;
    margin: 0;
    padding: 0;
}

.menu__affiliations-item {
    list-style: none;
    margin-left: 20px;
    border: 1px solid black;
    padding: 10px;
}

.menu__affiliations-item:first-child {
    margin-top: 10px;
}

.menu__affiliations-item a {
    text-decoration: none;
    color: white;
}

.menu__affiliations-item:hover,
.menu__affiliations-item:focus {
    background-color: #292929;
}

.menu__affiliations-item a:hover,
.menu__affiliations-item a:focus {
    color: #fbae00;
}

/* Мои курсы */
#mycourses:checked~ul {
    display: flex;
}

.menu__mycourses {
    display: none;
    flex-flow: column nowrap;
    justify-content: center;
    align-items: flex-start;
}

.menu__mycourses-item {
    width: 440px;
    list-style: none;
    display: flex;
    flex-flow: row nowrap;
    justify-content: flex-start;
    align-items: center;
    margin: 10px 0;
}

.menu__mycourses-item a {
    padding: 10px;
    text-decoration: none;
    color: white;
    width: 100%;
}

.menu__mycourses-item a:hover,
.menu__mycourses-item a:focus {
    color: #fbae00;
}
/* Навыки */
#myskills:checked~ul {
    display: flex;
}

/* Прогресс */
.section-profile__progress {
    height: auto;
}
#educational-progress:checked~.profile-block__block {
    height: auto;
    opacity: 1;
}
.profile-block__select {
    display: block;
    opacity: 0;
    margin-left: 15px;
    outline: none;
    border: 1px solid #fbae00;
    border-radius: 8px;
    padding: 5px;
    background-color: #202020;
    color: #fff;
    transition: 0.5s;
}

.profile-block__select option:hover,
.profile-block__select option:focus {
    background-color: #012a2e;
}

.progress-diagram {
    position: relative;
    z-index: 1;
    width: 25%;
    transition: 1s;
}

.progress-diagram::before {
    content: '25%';
    display: block;
    position: absolute;
    color: #012a2e;
    font-size: 4rem;
    z-index: 99;
}

.progress-diagram__percentage {
    font-size: 0.5rem;
    fill: #fbae00;
}

.progress-diagram__text {
    font-size: 0.22rem;
    fill: #fbae00;
    transform: translateY(0.3rem);
}

#subject-progress:checked~select {
    opacity: 1;
}

/* Достижения */
.section-profile__achievement .menu__ul {
    margin-bottom: 20px;
    padding-bottom: 20px;
}

/* ===== COURSES.PHP ===== */
.main-all-courses {
    flex-flow: column nowrap;
    background-color: #012a2e;
    align-items: center;
    padding-top: 50px;
    justify-content: center;
    font-family: 'Roboto slab';
    background-size: contain;
}

.aside-all-courses {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    margin-bottom: 40px;
}

.sorting {
    display: flex;
    flex-direction: row;
    padding-left: 19px;
}

.sorting input {
    position: absolute;
    opacity: 0;
    z-index: -1;
}

.sorting input:checked+label::before {
    background-color: #fbae00;
    box-shadow: 0 0 10px 0 #fbae00;
}

.sorting label {
    margin-right: 15px;
    padding-right: 5px;
    color: #fff;
    display: flex;
}

.sorting label:hover,
.sorting label:focus {
    cursor: pointer;
}

.sorting label::before {
    content: '';
    display: block;
    border-radius: 50%;
    width: 15px;
    height: 15px;
    background-color: white;
    margin-right: 5px;
}

.section-all-courses {
    width: 1100px;
    min-height: 400px;
}

.all-courses__item {
    display: flex;
    flex-flow: row wrap;
    justify-content: space-between;
    background-color: #202020;
    background-size: 0%;
    color: #fff;
    margin: 10px 0 20px;
    padding: 0 0 40px;
    width: 1000px;
    box-shadow: 1px 1px 5px 1px #202020, -1px 1px 5px 1px #202020;
    background-repeat: no-repeat;
    background-position: center;
    transition: 0.5s;
}

.all-courses__item__image {
    position: relative;
    height: 300px;
    width: 100%;
    background-size: 100%;
    background-repeat: no-repeat;
    background-position: 100% 10%;
    transition: all 1s;
}
.all-courses__item__image .button-tertiary {
    position: absolute;
    top: 15%;
    left: 5%;
    background: rgba(46, 204, 113, 0.2);
    color: #2ecc71;
    border-color: rgba(46, 204, 113, 0.3);
}

.all-courses__item__text {
    width: 40%;
    margin-left: 30px;
    margin-top: 20px;
}

.all-courses__item__text h2 {
    position: relative;
    text-transform: uppercase;
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.all-courses__item__text h2:before {
    content: attr(data-company);
    position: absolute;
    font-size: 0.7rem;
    color: #fbae00;
    left: -5%;
    top: 0%;
    transform: rotate(-30deg);
}

.all-courses__item__text p {
    margin-bottom: 10px;
}

.all-courses__item__info {
    width: 40%;
    margin: 20px 20px 0 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
/* Стили для модулей в карточке */
.all-courses__item__images .module-item {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 12px 15px;
    margin-bottom: 10px;
    border-left: 3px solid #fbae00;
}

.all-courses__item__images .module-item h4 {
    color: #fbae00;
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 6px 0;
}

.all-courses__item__images .module-item ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.all-courses__item__images .module-item ul li {
    display: block; /* Явно указываем блочный элемент */
    color: #ccc;
    font-size: 13px;
    padding: 3px 0 3px 20px;
    position: relative;
    line-height: 1.4;
    white-space: normal; /* Разрешаем перенос текста */
    word-wrap: break-word; /* Переносим длинные слова */
    width: 100%; /* Занимаем всю ширину */
    clear: both; /* Очищаем обтекание */
}

.all-courses__item__images .module-item ul li::before {
    content: '•';
    position: absolute;
    left: 0;
    top: 3px;
    color: #fbae00;
}

.all-courses__item__images .module-item ul li:last-child {
    margin-bottom: 0; /* Убираем отступ у последнего элемента */
}

.all-courses__item__images .more-modules {
    display: block; /* Явно указываем блочный элемент */
    text-align: center;
    padding: 10px;
    color: #fbae00;
    font-size: 13px;
    font-weight: 600;
    background: rgba(251, 174, 0, 0.1);
    border-radius: 8px;
    border: 1px dashed rgba(251, 174, 0, 0.3);
    clear: both;
}

.all-courses__item__title {
    width: 100%;
    text-align: center;
}

.all-courses__item__images {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    width: 100%;
    padding-bottom: 10px;
    margin-bottom: 10px;
}

.all-courses__item__images a {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    width: 25%;
    height: 100%;
    font-size: 0.5rem;
    text-transform: uppercase;
    text-align: center;
    color: #fff;
    text-decoration: none;
}

.all-courses__item__images a>img {
    width: 35px;
    height: 35px;
    filter: grayscale(1.9);
}

.all-courses__item__images a:hover,
.all-courses__item__images a:focus {
    color: #fbae00;
}

.all-courses__item__images a:hover>img,
.all-courses__item__images a:focus>img {
    filter: grayscale(0);
}

.all-courses__item__images h3 {
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.all-courses__item__specification {
    display: flex;
    flex-direction: row;
    flex-wrap: no-wrap;
    justify-content: space-evenly;
    width: 100%;
    padding: 20px 0;
}
.no_access .button-tertiary {
    background: transparent;
    color: #fbae00;
    border: 2px solid #fbae00;
}

.no_access .button-tertiary:hover {
    background: #fbae00;
    color: #000;
}
.no_access .skill-item-checkbox:checked + label {
    background: green;
    color: #000;
    border-color: #fff;
}

.all-courses__item:hover,
.all-courses__item:focus {
    box-shadow: 1px 1px 1px 1px #fbae00, -1px 1px 5px 1px #fbae00;
    background-size: 90%;
    background-position: bottom 0px left 100px;
}


.all-courses__item:hover>.all-courses__item__image,
.all-courses__item:focus>.all-courses__item__image {
}

/* ===== SINGLE COURSE.PHP ===== */
.bgc-dark {
    background-color: #012a2e;
}

.main-course {
    flex-flow: column;
    background-color: #202020;
    align-items: flex-start;
    padding-top: 50px;
    justify-content: center;
    align-items: center;
    font-family: 'Roboto slab';
    position: relative;
}

.course-item {
    position: relative;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    background-color: #111;
    background-size: 100%;
    background-repeat: no-repeat;
    background-size: contain; 
    background-position: top; 
    background-repeat: no-repeat;
    background-position: center;
    color: #fff;
    margin-bottom: 20px;
    padding: 0 0 40px;
    width: 1200px;
    box-shadow: 1px 1px 5px 1px #202020, -1px 1px 5px 1px #202020;
    
    transition: 0.5s;
}

.course-item__image {
    width: 100%;
    height: 300px; 
    
    border-radius: 12px; 
    margin-bottom: 20px;
}

.course-item__info-wrapper {
    width: 100%;
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
}
.course-item__for-whom {
    margin-top: 40px; 
    background: #202020; 
    padding: 25px; 
    border-radius: 12px; 
    border-left: 4px solid #fbae00;
}
.purchase-card {
    background: #012a2e;
    opacity: 0.95;
    padding: 30px; 
    border-radius: 12px;
    border: 1px solid rgba(251, 174, 0, 0.3); 
    box-shadow: 0 10px 30px rgba(0,0,0,0.3); 
    position: sticky; 
    top: 20px;
}
.course-item__text {
    width: 40%;
    display: flex;
    flex-direction: column;
}

.course-item__text h3 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    text-align: center;
}

.course-item__text p {
    margin-bottom: 10px;
}

.course-item__info {
    width: 40%;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-evenly;
    align-items: flex-start;
    position: relative;
}

.course-levels {
    display: block;
    height: 100px;
    background-color: #202020;
    padding: 30px 20px;
    margin: 10px 0;
    z-index: 10;
    opacity: 1;
}

.course-item__info .course-levels {
    background-color: #202020;
    padding: 30px 20px;
    margin: 10px 0;
    z-index: 10;
    opacity: 1;
}

.course-item__info>div label {
    display: flex;
    flex-direction: column-reverse;
    justify-content: center;
    align-items: center;
}

.course-item__info img {
    width: 45px;
    height: 45px;
    filter: grayscale(1);
    margin-bottom: 10px;
}

.course-item__info p {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #202020;
    padding: 30px 20px;
    margin: 10px 0;
    z-index: -1;
    opacity: 0;
}

.course-item__info p strong {
    color: #fbae00;
}

.course-item__info label:hover,
.course-item__info input:checked~label {
    color: #fbae00;
}

.course-item__info label:hover img,
.course-item__info label:focus img,
.course-item__info input:checked~label img {
    filter: grayscale(0);
}

.course-item__info input:checked~p {
    z-index: 99;
    opacity: 1;
}

.course-item__info h3 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    width: 100%;
    flex-basis: 100%;
    text-align: center;
}

.course-item__education {
    display: flex;
    justify-content: center;
    flex-direction: row;
    flex-wrap: wrap;
    width: 100%;
    margin-top: 80px;
    margin-bottom: 60px;
}

.course-item__education h3 {
    flex-basis: 100%;
    width: 100%;
    margin: 50px 0 40px;
    padding: 20px;
    font-size: 1.2rem;
    text-align: center;
    background-color: #000;
    color: #fbae00; 
    text-align: center; 
    margin-bottom: 30px;
}
.curriculum-module {
    max-width: 800px; 
    margin: 25px auto;

}
.curriculum-module .module-header {
    background: #202020; 
    border-radius: 8px 8px 0 0; 
    overflow: hidden;
    padding: 20px; 
    border-left: 4px solid #fbae00; 
}
.curriculum-module .topics-list {
    background-color: #000;
    border-left: 4px solid #fbae00; 
}
.course-item__pictures {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: flex-start;
}
/* --- Рейтинг курса (Бейдж) --- */
.course-rating-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    display: inline-flex;
    align-items: center;
    background: rgba(251, 174, 0, 0.15);
    padding: 8px 16px;
    border-radius: 20px;
    margin-bottom: 20px;
}
.rating-star-icon {
    color: #fbae00;
    font-size: 1.2rem;
    margin-right: 8px;
}
.rating-average {
    color: #fff;
    font-weight: bold;
    margin-right: 8px;
}
.rating-count {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

/* --- Секция оценки --- */
.course-rating-section {
    margin-top: 50px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.course-rating-form {
    background: rgba(255, 255, 255, 0.05);
    padding: 25px;
    border-radius: 12px;
    border-left: 4px solid #fbae00;
}

.rating-description {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 15px;
}

.rating-stars {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.rating-star {
    background: none;
    border: none;
    font-size: 2.5rem;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.3);
    transition: all 0.2s;
    padding: 0;
    line-height: 1;
}

.rating-star.active,
.rating-star:hover {
    color: #fbae00;
    transform: scale(1.1);
}

.rating-message {
    font-size: 0.95rem;
    margin-top: 10px;
    display: none;
}

.rating-success {
    color: #28a745;
}

.rating-error {
    color: #ff6b6b;
}

.course-rating-locked {
    background: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
}

.course-rating-locked i {
    color: #fbae00;
    margin-right: 8px;
}

.course-rating-locked a {
    color: #fbae00;
    text-decoration: none;
}

/* --- Вспомогательные классы для очистки инлайн-стилей --- */
.text-center { text-align: center; }
.full-width { width: 100%; box-sizing: border-box; display: block; }
.button-success { background: #28a745; color: #fff; }
.section-title { 
    color: #fbae00; 
    border-bottom: 2px solid rgba(251, 174, 0, 0.3); 
    padding-bottom: 10px; 
    margin-bottom: 20px; 
}
.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li { 
    margin-bottom: 12px; 
    display: flex; 
    align-items: flex-start; 
    color: rgba(255, 255, 255, 0.9);
}
.check-list li i { color: #28a745; margin-right: 12px; margin-top: 4px; }
.purchase-card { 
    background: rgba(0, 40, 42, 0.8); 
    padding: 30px; 
    border-radius: 12px; 
    border: 1px solid rgba(251, 174, 0, 0.3); 
    box-shadow: 0 10px 30px rgba(0,0,0,0.3); 
    position: sticky; 
    top: 20px; 
}
.purchase-detail { 
    display: flex; 
    justify-content: space-between; 
    margin-bottom: 15px; 
    border-bottom: 1px solid rgba(255, 255, 255, 0.1); 
    padding-bottom: 15px; 
}
.detail-label { color: rgba(255, 255, 255, 0.7); }
.detail-value { color: #fff; }
.price-value { color: #fbae00; font-size: 1.5em; }
.cart-success-message { 
    margin-top: 15px; 
    font-size: 0.9rem; 
    color: #28a745; 
    display: none; 
    text-align: center; 
}
.trust-badges { 
    margin-top: 25px; 
    padding-top: 20px; 
    border-top: 1px solid rgba(255, 255, 255, 0.1); 
    display: flex; 
    flex-direction: column; 
    gap: 12px; 
}
.trust-badge { 
    display: flex; 
    align-items: center; 
    color: rgba(255, 255, 255, 0.8); 
    font-size: 0.9rem; 
}
.trust-badge i { color: #fbae00; margin-right: 10px; font-size: 1.1rem; }
.curriculum-list { max-width: 800px; margin: 0 auto; }
.curriculum-module { 
    background: rgba(255, 255, 255, 0.05); 
    border-radius: 8px; 
    margin-bottom: 15px; 
    overflow: hidden; 
}
.module-header { 
    padding: 20px; 
    background: rgba(251, 174, 0, 0.1); 
    border-left: 4px solid #fbae00; 
}
.module-number { color: #fbae00; margin-right: 10px; }
.topics-list { padding: 20px; }
.topic-items { list-style: none; padding: 0; margin: 0; }
.topic-item { 
    margin-bottom: 10px; 
    color: rgba(255, 255, 255, 0.85); 
    padding-left: 25px; 
    position: relative; 
}
.topic-item i { color: #fbae00; position: absolute; left: 0; top: 3px; }
.register-prompt { 
    font-size: 0.85rem; 
    color: rgba(255, 255, 255, 0.6); 
    margin-top: 15px; 
}
.register-prompt a { color: #fbae00; }
.highlight-banner { 
    background: rgba(251, 174, 0, 0.1); 
    border: 2px solid #fbae00; 
    border-radius: 8px; 
    padding: 25px; 
    margin: 20px 0; 
    text-align: center; 
    box-shadow: 0 4px 15px rgba(251, 174, 0, 0.2); 
}
.course-item__pictures>div {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    margin-bottom: 10px;
}

.course-item__pictures p {
    display: flex;
    flex-direction: column;
    width: 170px;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.course-item__pictures p:not(:nth-child(4)) {
    margin-right: 40px;
}

.course-item__pictures p img {
    margin-bottom: 10px;
    width: 100px;
    height: 100px;
    background-color: #fbae00;
    padding: 10px;
    border-radius: 50%;
}

.course-item__h2 {
    position: relative;
    text-transform: uppercase;
    margin: 0px 0 30px;
    padding-top: 60px;
    font-size: 1.6rem;
    text-align: center;
    width: 100%;
    padding: 50px 0;
    background-color: #012a2e;
}

.course-item__description {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 90%;
    margin: 0 auto;
}

.course-item__description p {
    padding: 0;
    margin: 10px 0;
}

.course-item__h3 {
    flex-basis: 100%;
    width: 100%;
    font-size: 1.3rem;
    text-align: center;
    margin: 30px auto 40px;
    text-align: center;
}

.course-item__nolevels {
    width: 100%;
    display: flex;
    flex-flow: row wrap;
    justify-content: center;
    align-items: center;
}

.course-item__nolevels>div {
    display: flex;
    flex-flow: column wrap;
    justify-content: center;
    align-items: center;
}

.course-item__level-items {
    display: flex;
    flex-flow: row wrap;
    width: 100%;
    justify-content: space-evenly;
    align-items: center;
    padding: 0 20px 20px;
}

.course-item__level-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    position: relative;
    width: 340px;
    height: 550px;
    border-radius: 5px;
    margin-bottom: 10px;
    margin-right: 10px;
    background-color: #202020;
    text-align: center;
}

.course-item__level-item h3 {
    text-transform: uppercase;
    margin: 10px 0;
    font-size: 1.3rem;
}

.course-item__level-item h3:after {
    content: '';
    display: block;
    position: absolute;
    left: 28%;
    height: 1px;
    width: 150px;
    background-color: #c7c7c7c2;
    margin-top: 35px;
}

.course-item__level-item>p {
    display: flex;
    padding: 5px 15px;
    justify-content: center;
    align-items: center;
    top: 15%;
    height: 200px;
}

.course-item__level-item p:after {
    content: '';
    display: block;
    position: absolute;
    height: 1px;
    width: 150px;
    top: 60%;
    left: 28%;
    background-color: #c7c7c7c2;
}

.course-item__level-item:hover,
.course-item__level-item:focus,
.course-item__level-item:focus-within {
    cursor: default;
    box-shadow: 0 0 10px 0 #fbae00;
}

.course-item__level-item-inprocess {
    position: relative;
    color: #c7c7c720;
    border: 1px solid #202020;
    background-color: transparent;
}

.course-item__level-item-inprocess div div label {
    margin-right: 0;
}

.inprocess {
    position: absolute;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0.5;
    background-color: black;
    box-shadow: 0 100px 0px 0 black;
    color: white;
    top: 0;
    left: 0;
    width: 100%;
    height: 450px;
    z-index: 99;
}

.course-item__level-item-inprocess:hover,
.course-item__level-item-inprocess:focus,
.course-item__level-item-inprocess:focus-within {
    cursor: default;
    color: #c7c7c7;
    box-shadow: 0 0 0px 0 #fbae00;
}

.course-item__level-item-inprocess:hover>.inprocess,
.course-item__level-item-inprocess:focus>.inprocess,
.course-item__level-item-inprocess:focus-within>.inprocess {
    display: none;
}

.course-item__specification {
    display: flex;
    flex-direction: column;
}

.course-item__specification span {
    margin-bottom: 15px;
}

.course-item__control {
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    align-items: center;
    margin: 15px 0 40px;
}

.course-item__has-access {
    width: 40px;
    height: 40px;
    border: 1px solid #fbae00;
    border-radius: 8px;
    background-image: url("../images/check.png");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: 0 0;
}

.course-item__control input {
    display: none;
}

.course-item__control a {
    color: white;
}

.course-item__control a:not(.button):hover,
.course-item__control a:not(.button):focus {
    color: #fbae00;
    text-decoration: none;
}

.course-item__control .button {
    color: black !important;
}

.course-item__control label {
    content: '';
    display: flex;
    width: 40px;
    height: 40px;
    border: 1px solid #fbae00;
    border-radius: 8px;
    margin-right: 15px;
    align-items: center;
    justify-content: center;
    font-size: 1.7rem;
    text-shadow: 1px 1px 0px black;
    padding-right: 5px;
}

.course-item__control label:hover,
.course-item__control label:focus {
    cursor: pointer;
}

.course-item__control input:checked+label {
    background-color: #fbae00;
    color: black;
    text-shadow: 1px 1px 0px white;
}

.course-item__control input:checked+label:hover,
.course-item__control input:checked+label:focus {
    box-shadow: 0 0 10px 0 black;
    outline: none;
}

.course-item__control .button {
    display: flex;
    align-items: center; /* Центрирование по вертикали */
    justify-content: center;
    width: 155px;
    height: 40px;
    border: none;
    color: black;
    text-transform: none;
    outline: none;
}
.course-item__control .button i{
    margin-right: 5px;
}
.course-item__control .full-width {
    width: 100% !important;
}
.course-item__control .button:hover,
.course-item__control .button:focus {
    box-shadow: 0 0 10px 0 black;
    cursor: pointer;
}

.totop {
    display: block;
    position: absolute;
    text-align: center;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    left: 60px;
    border-radius: 50%;
    background-color: transparent;
    border: 1px solid white;
    font-size: 1.5rem;
    color: #c7c7c7c2;
    transition: 0.5s;
    transform-origin: center;
}

.totop:hover,
.totop:focus {
    transform: rotateZ(360deg) scale(2);
    color: #fff;
    text-shadow: 0 0 10px #fbae00;
    border: none;
    outline: none;
}

/* ===== COURSE-CONSTRUCTOR.PHP ===== */
.main-corse-constructor {
    background-color: #000;
    padding: 25px 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.section-courses-ready,
.section-courses-onapproval {
    background-color: #252525;
    width: 80%;
    display: grid;
    grid-template-columns: repeat(2, 500px);
    grid-template-areas: "a a a", "b c c", "b c c";
    justify-items: stretch;
    align-items: stretch;
}

.course-ready__item {
    width: 470px;
    background-color: #092b2d;
    margin-bottom: 25px;
    margin-right: 50px;
}

.course-ready__item-cover {
    width: 100%;
    height: 150px;
    background-size: cover;
}

.section-new-course {
    background-color: #000;
}

.section-new-course form {
    background-color: #252525;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    margin: 20px;
}

.section-new-course form input {
    width: 100%;
}

.section-new-course form textarea {
    width: 100%;
}

/* ===== LESSON.PHP ===== */
.editing-options {
    position: sticky;
    display: none;
    top: 0px;
    left: 0;
    right: 0;
    height: 50px;
    width: calc(100% - 2px);
    border: 1px solid #202020;
    background-color: #fff;
    z-index: 12;
}

.main-course-page {
    display: flex;
    flex-flow: row wrap;
    background-color: white;
    color: black;
    padding: 40px 0 80px;
}

.nightmode,
.nightmode .section-course-page__question_form .question,
.nightmode .section-course-page__question_form,
.nightmode .question__prompt-visible,
.nightmode .question__explaination-visible {
    background-color: #020202;
    color: white;
}

.nightmode .question__progress {
    color: #fbae00;
}

.nightmode .question_contr,
.nightmode .question_revise-fail,
.nightmode .question_revise-success,
.nightmode .section-course-page__content,
.nightmode input[type="text"],
.nightmode input[type="number"] {
    background-color: #1d1d1d;
    color: white;
}

.nightmode .question_revise-topic {
    box-shadow: 0 0 5px 0 #000;
    color: #fbae00;
}

.section-course-page {
    background-color: transparent;
    color: inherit;
    justify-content: space-between;
    width: 1100px;
    margin: 0 auto;
}

.section-course-page p {
    padding: 5px 0;
}

.section-course-page p>img {
    float: left;
    margin-right: 20px;
}

.section-course-page__topic-title {
    display: flex;
    flex-direction: column;
    width: 45%;
}

.section-course-page__topic-title h3 {
    width: 100%;
    margin-top: 3px;
    text-align: right;
}

.topic-navigation {
    display: flex;
    flex-flow: row wrap;
    justify-content: flex-end;
}

.topic-navigation__item {
    display: block;
    position: relative;
    content: '';
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 1px solid #fbae00;
    background-color: inherit;
    cursor: pointer;
}

.topic-navigation__item:not(:last-child) {
    margin-right: 64px;
}

.topic-navigation__item:not(:last-child)::after {
    content: '';
    display: block;
    position: absolute;
    top: 49%;
    left: 100%;
    width: 65px;
    height: 1px;
    background-color: #fbae00;
}

.topic-navigation__item[data-is-passed="1"] {
    border: 1px solid #fbae00;
    border-radius: 50%;
    background-color: inherit;
    background-image: url('../images/check.png');
    background-position: center;
    background-size: 100%;
}

.topic-navigation input:checked+.topic-navigation__item {
    background-color: #fbae00;
}

.term-radio+label {
    flex-basis: 100%;
    width: 100%;
    margin-left: 10px;
    cursor: pointer;
}

.term-radio:checked+label {
    color: #fbae00;
}

.section-course-page__content {
    background-color: #E3E6E9;
    width: 100%;
    padding: 50px 25px;
    display: flex;
    min-height: 1000px;
    flex-direction: column;
}

.section-course-page__header {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
}

.section-course-page__content a {
    color: inherit;
    text-decoration: none;
}

.section-course-page__content-footer {
    display: flex;
    flex-flow: row nowrap;
    justify-content: space-between;
    align-items: center;
}

.section-post-main__control {
    display: flex;
    width: 45%;
    flex-flow: row nowrap;
    margin-right: 0;
}

.section-post-main__control a {
    background-color: inherit;
    color: inherit;
}

.section-post-main__control input[type="checkbox"] {
    display: none;
}

.section-post-main__control label {
    display: flex;
    justify-content: space-around;
    background-color: inherit;
    color: inherit;
}

.section-post-main__control .button:hover,
.section-post-main__control .button:focus {
    box-shadow: 0 0 10px 0 #f0f0f0, inset 0 0 5px 2px black;
}

.section-post-main__control label i:nth-child(2) {
    color: inherit;
}

.section-post-main__control input:checked+label>i:first-child {
    color: #fbae00;
}

.section-post-main__control input:checked+label>i:nth-child(2) {
    color: inherit;
}

.section-post-main__control input:not(:checked)+label>i:first-child {
    color: inherit;
}

.section-post-main__control input:not(:checked)+label>i:nth-child(2) {
    color: #fbae00;
}

.section-course-page__question_form {
    position: relative;
    margin: 5% auto;
    width: 60%;
    min-height: 500px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    background-color: white;
    box-shadow: 0 0 5px 0px #202020;
}

.section-course-page__question_form .question {
    display: flex;
    position: absolute;
    flex-flow: column nowrap;
    justify-content: flex-start;
    background-color: #fff;
    align-items: center;
    padding: 0 20px;
    width: 100%;
    height: 300px;
    opacity: 0;
    z-index: 0;
    transition: all 0.3s;
}

.nightmode .section-course-page__question_form .question,
.nightmode .section-course-page__question_form,
.nightmode .question__prompt-visible,
.nightmode .question__explaination-visible {
    background-color: #020202;
    color: white;
}

.nightmode .question__progress {
    color: #fbae00;
}

.nightmode .question_contr,
.nightmode .question_revise-fail,
.nightmode .question_revise-success {
    background-color: #1d1d1d;
    color: white;
}

.nightmode .question_revise-topic {
    box-shadow: 0 0 5px 0 #000;
    color: #fbae00;
}
/*содержимое урока*/
#content-body {
    overflow: hidden;
}
#topic_content img {
    display: block;
    max-width: 100%;
    margin: 0 auto;
}
blockquote {
  margin: 1.5em 0;
  padding: 0.75em 1.25em;
  border-left: 3px solid #fbae00;
  background: transparent;
  color: #fbae00;
  font-style: italic;
  font-size: 0.975rem;
  line-height: 1.6;
}
.section-course-page .text-important {
    margin: -5px 0;
    padding: 5px 0;
    box-shadow: 100px 0px 0px 0px #fbae00,
                -100px 0px 0px 0px #fbae00;
    background-color: #fbae00;
    color: black;
}
/*кнопки навигации*/
/* Контейнер навигации */
.lesson-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

/* Базовый стиль тонкой кнопки */
.lesson-nav-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 500;
    color: #555;
    text-decoration: none;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    background-color: transparent;
    transition: all 0.25s ease;
    cursor: pointer;
}

/* Эффекты при наведении */
.lesson-nav-btn:hover {
    border-color: #fbae00;
    color: #fbae00;
    background-color: rgba(243, 241, 209, 0.04);
    transform: translateY(-1px);
}

.lesson-nav-btn:active {
    transform: translateY(0);
}

.lesson-nav-btn i {
    font-size: 12px;
    transition: transform 0.25s ease;
}

.lesson-nav-btn.prev-lesson:hover i {
    transform: translateX(-3px);
}

.lesson-nav-btn.next-lesson:hover i {
    transform: translateX(3px);
}

/* Пустой спейсер для сохранения центрирования, если одной из кнопок нет */
.lesson-nav-spacer {
    flex: 1;
}
/*интерактивные объекты*/
/*atlas*/
/* Обертка для атласа и элементов управления */
.atlas-wrapper {
    position: relative;
    width: 100%;
    margin-bottom: 20px;
}

/* Контейнер для изображений */
.atlas {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9; 
    border-radius: 8px;
    overflow: hidden;
}

/* Стили для изображений внутри атласа */
.atlas img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain; /* Или 'cover', если нужно заполнить весь блок */
    opacity: 0;
    z-index: 1;
    transition: opacity 0.7s ease-in-out;
}

/* Активное изображение */
.atlas img.active {
    opacity: 1;
    z-index: 99;
}

/* Контейнер для радио-кнопок */
.atlas-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 12px;
    justify-content: center;
}

/* Скрываем стандартные радио-кнопки */
.atlas-controls input[type="radio"] {
    display: none;
}

/* Стили для label (выглядят как кнопки) */
.atlas-controls label {
    cursor: pointer;
    padding: 8px 16px;
    background-color: #e0e0e0;
    color: #333;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

/* Состояние hover */
.atlas-controls label:hover {
    background-color: #d0d0d0;
}

/* Активное состояние (выбранная радио-кнопка) */
.atlas-controls input[type="radio"]:checked + label {
    background-color: #fbae00;
    color: #fff;
    border-color: #fbae00;
    font-weight: 600;
}
/*слайдер*/
/* Контейнер слайдера — теперь с position: relative для кнопок */
.lesson_slider {
    position: relative;
    width: 100%;
    margin: 20px 0;
}

/* Область видимости — обрезает всё, что выходит за пределы */
.slider-viewport {
    overflow: hidden;
    border-radius: 8px;
}

/* Дорожка, на которой едет картинка */
.slider-track {
    display: block; /* ВАЖНО: не flex, чтобы картинка не сжималась */
    transition: transform 0.4s ease-in-out;
    will-change: transform;
}

.slider-track img {
    display: block;
    width: 100%;
    height: auto;
    user-select: none;
    -webkit-user-drag: none;
    pointer-events: none;
}

/* Кнопки навигации */
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    background-color: rgba(0, 0, 0, 0.55);
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s, opacity 0.2s;
}

.slider-btn:hover:not(:disabled) {
    background-color: #fbae00;
    color: #000;
}

.slider-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.slider-btn-prev { left: 12px; }
.slider-btn-next { right: 12px; }

/* Индикатор позиции */
.slider-indicator {
    text-align: center;
    margin-top: 10px;
    font-size: 0.85rem;
    color: #666;
}



/* Тест в уроке */
#questions-list {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    min-height: 300px;
    background-color: inherit;
}

.question-container {
    width: 250px !important;
    height: 400px;
    color: inherit;
    background-color: inherit;
    border: 2px solid #fbae00;
    border-radius: 8px;
    padding: 20px;
    margin: 20px auto;
    width: 90%;
    max-width: 600px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.question-container b {
    color: #fbae00;
}

.question-text {
    font-size: 1.2rem;
    font-weight: bold;
    color: inherit;
    margin-bottom: 15px;
}

.answers-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.answer-item {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.answer-item input[type="radio"] {
    margin-right: 10px;
    transform: scale(1.2);
    accent-color: #fbae00;
}

.answer-item label {
    font-size: 1rem;
    color: inherit;
    cursor: pointer;
    transition: color 0.2s;
}

.answer-item:hover label {
    color: #fbae00;
}

.answer-item input[type="radio"]:checked+label {
    font-weight: bold;
    color: #fbae00;
}

/* Редактор уроков */
.editor p {
    margin: 10px 0;
    padding: 5px;
    transition: background-color 0.3s;
}

.editor p.active {
    background-color: #f0f0f0;
    border-left: 3px solid #007bff;
}

.editor {
    min-height: 200px;
    cursor: text;
}

.editor:focus-visible {
    outline: none;
}

.add-paragraph {
    margin-top: 10px;
    cursor: pointer;
}

.toolbar {
    position: absolute;
    display: none;
    background-color: white;
    border: 1px solid #ccc;
    padding: 5px;
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.toolbar button {
    background-color: white;
    border: 1px solid #ccc;
    padding: 5px;
    cursor: pointer;
    margin-right: 5px;
}

.toolbar button:hover {
    background-color: #f0f0f0;
}

.add-paragraph-btn {
    position: absolute;
    left: 5px;
    cursor: pointer;
    font-size: 20px;
    color: #007bff;
}

.submenu {
    position: absolute;
    display: none;
    background-color: white;
    border: 1px solid #ccc;
    padding: 5px;
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.submenu button {
    display: block;
    background-color: white;
    border: 1px solid #ccc;
    padding: 5px;
    cursor: pointer;
    margin-bottom: 5px;
    width: 100%;
}

.submenu button:hover {
    background-color: #f0f0f0;
}

.editor-panel {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    padding: 10px;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    display: flex;
    gap: 10px;
    z-index: 1000;
    align-items: center;
}

.editor-btn {
    padding: 5px 10px;
    border: 1px solid #ddd;
    border-radius: 3px;
    cursor: pointer;
    background: #f5f5f5;
    transition: all 0.2s;
}

.editor-btn:hover {
    background: #e5e5e5;
}

.editor-btn.active {
    background: #4285f4;
    color: white;
    border-color: #4285f4;
}

.editor-input {
    width: 60px;
    padding: 5px;
    border: 1px solid #ddd;
    border-radius: 3px;
}

.editor-label {
    font-size: 12px;
    color: #666;
}

.resize-handle {
    position: absolute;
    width: 12px;
    height: 12px;
    background: #4285f4;
    right: -6px;
    bottom: -6px;
    cursor: nwse-resize;
    border-radius: 50%;
    border: 2px solid white;
    box-shadow: 0 0 3px rgba(0, 0, 0, 0.3);
}

.target-div {
    position: relative;
    border: 2px dashed transparent;
    overflow: hidden;
}

.target-div.active {
    border-color: #4285f4;
}

.scale-slider {
    width: 100px;
    margin: 0 10px;
}

/* Список контента */
.content-list {
    transition: transform ease-in-out 0.5s;
}

.content-list-hidden {
    transform: translate(150%, -180%) scale(0.1);
    position: absolute;
    opacity: 0;
}

.content-list li>p {
    width: 100%;
    background-color: #012a2e;
    box-shadow: 100px 0 0 #012a2e,
    -100px 0 0 #012a2e;
    color: #fbae00;
}

.content-list li>p input {
    width: calc(100% - 9px);
    background-color: #012a2e;
    color: #fbae00;
}

.editing-li {
    position: relative;
    padding: 5px;
    border: 1px solid #202020;
    margin: 10px 0;
}

.editing-li:hover {
    border-color: #fbae00;
}

.editing-li:before {
    content: attr(data-offset-top);
    display: block;
    position: absolute;
    font-size: small;
    width: 150px;
    min-height: 1rem;
    top: 0;
    left: 0;
}

.editing-p {
    position: relative;
}

.editing-p-button {
    position: absolute;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    width: 30px;
    height: 30px;
    background-color: #fbae00;
    color: #000;
    border-radius: 100%;
    top: 0px;
    text-align: center;
}

.editing-p-button__up {
    right: 40px;
    transform: rotate(90deg);
}

.editing-p-button__down {
    right: 0px;
    transform: rotate(-90deg);
}

.content-list li>div>label {
    margin: 10px 0;
}

.content-list li>div>label:hover,
.content-list li>div>label:focus {
    color: #fbae00;
}

#topic_content {
    min-height: 100px;
}

.new-chapter__wrapper {
    position: relative;
    max-width: 100%;
}

.new-chapter__wrapper::after {
    content: '';
    display: block;
    position: absolute;
    right: -10px;
    width: 16px;
    height: 16px;
    border-radius: 16px;
    background-color: #fbae00;
}

/* ===== TEST CONSTRUCTOR.PHP ===== */
.section-test-constructor {
    color: #000;
}

.editor-container {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: start;
    width: 100%;
    margin-top: 20px;
    padding: 10px;
    border-radius: 5px;
}

.toolbar {
    background-color: #00282a;
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
    color: #000;
}

.question {
    display: flex;
    flex-direction: column;
    width: 60%;
    min-height: 200px;
    border: 1px solid #ccc;
    padding: 10px;
    border-radius: 5px;
}

.test-editing-wrapper {
    display: flex;
    flex-direction: column;
}

.test-editing-wrapper>* {
    padding: 5px;
    margin: 10px 0;
}

.instruments {
    width: 25%;
}

.user-tests,
.question,
.instruments {
    overflow-y: auto;
    border: 1px solid #ccc;
    padding: 10px;
    margin-top: 0;
    margin-bottom: 20px;
}

.user-tests::-webkit-scrollbar,
.question::-webkit-scrollbar,
.instruments::-webkit-scrollbar {
    display: none;
}

.user-tests,
.instruments {
    max-height: 85vh;
}

.test-editor {
    box-sizing: border-box;
    width: 100%;
    position: relative;
    min-height: 150px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    margin: 10px 0;
    padding: 10px;
    border: 1px solid #fbae00;
    border-radius: 10px;
}

.displayLogicWrapper {
    width: 96%;
    height: 130px;
    margin: 5px;
    padding: 10px;
    border-radius: 10px;
    background-color: #023236;
}

.displayLogicWrapper select,
.displayLogicWrapper ::picker(select) {
    appearance: base-select;
}

.displayLogicWrapper select {
    border: 2px solid #dddddd;
    background: #eeeeee;
    padding: 10px;
    transition: 0.4s;
}

.displayLogicWrapper select::picker-icon {
    color: #999999;
}

.displayLogicWrapper ::picker(select) {
    background-color: white;
    border: 1px solid #ccc;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

#tests-ready {
    display: flex;
    flex-direction: column;
    justify-content: start;
    align-items: start;
}

#tests-ready li:hover {
    cursor: pointer;
    color: #fbae00;
}

#tests-ready .active {
    display: none;
}

.test-editor::before {
    display: block;
    position: absolute;
    color: #000;
    background-color: #fbae00;
    text-align: center;
    width: 150px;
    height: 25px;
    top: -10px;
    left: -10px;
    content: attr(data-name);
}

#test-editor {
    background-color: lightgray;
    padding: 10px;
    min-height: 100px;
}

.active-nocategory:hover {
    cursor: pointer;
    color: #fbae00;
}

/* ===== ORGANIZATION CONSTRUCTOR ===== */
#organizationForm {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* ===== SKILLS.PHP ===== */
.skills {
    min-height: 600px;
    display: flex;
    flex-flow: column;
    justify-content: center;
    align-items: center;
    padding: 20px 0;
}

.skills__item {
    display: flex;
    flex-flow: row nowrap;
    max-width: 1200px;
    width: 100%;
    min-height: 525px;
    margin-bottom: 40px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: #1a1a1a;
    color: #fff;
}

.skills__item:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.5);
}

/* Обложка курса */
.skills__item__image {
    position: relative;
    width: 45%;
    min-height: 525px;
    background-position: center;
    background-size: cover;
    flex-shrink: 0;
}

.skills__item__badges {
    position: absolute;
    top: 15px;
    left: 15px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.skills__item__badges .badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.badge-level {
    background: rgba(251, 174, 0, 0.2);
    color: #fbae00;
    border-color: rgba(251, 174, 0, 0.3);
}

.badge-type {
    background: rgba(52, 152, 219, 0.2);
    color: #3498db;
    border-color: rgba(52, 152, 219, 0.3);
}

.badge-approved {
    background: rgba(46, 204, 113, 0.2);
    color: #2ecc71;
    border-color: rgba(46, 204, 113, 0.3);
}

/* Информация о курсе */
.skills__item__info {
    width: 55%;
    display: flex;
    flex-flow: column nowrap;
    justify-content: space-between;
    background: #1a1a1a;
}

/* Заголовок и описание */
.skills__item__text {
    background: #202020;
    padding: 25px 30px;
    flex: 1;
}

.skills__item__text h2 {
    font-size: 24px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 12px;
    color: #fff;
    line-height: 1.2;
}

.skills__item__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 13px;
    color: #aaa;
}

.skills__item__meta .meta-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.skills__item__meta .meta-item i {
    color: #fbae00;
    width: 16px;
}

.skills__item__text p {
    color: #ccc;
    line-height: 1.6;
    font-size: 14px;
    margin-bottom: 15px;
}

.skills__item__outcomes {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #333;
}

.skills__item__outcomes strong {
    color: #fbae00;
    font-size: 13px;
    display: block;
    margin-bottom: 8px;
}

.skills__item__outcomes ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.skills__item__outcomes ul li {
    color: #ddd;
    font-size: 13px;
    padding: 4px 0;
    padding-left: 20px;
    position: relative;
}

.skills__item__outcomes ul li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: #fbae00;
}

/* Характеристики курса */
.skills__item__level {
    padding: 15px 20px;
    background: #111;
    display: flex;
    flex-flow: row nowrap;
    justify-content: space-around;
    align-items: center;
    gap: 10px;
    border-top: 1px solid #2a2a2a;
    border-bottom: 1px solid #2a2a2a;
}

.skills__item__units {
    display: flex;
    flex-flow: column nowrap;
    justify-content: center;
    align-items: center;
    gap: 6px;
}

.skills__item__units p {
    font-size: 11px;
    text-transform: uppercase;
    color: #888;
    letter-spacing: 0.5px;
    margin: 0;
    font-weight: 600;
}

.skills__item__pic {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: flex-end;
    gap: 4px;
    height: 35px;
    padding: 5px 0;
}

.skills__item__pic div {
    width: 8px;
    border-radius: 3px;
    background: #2a2a2a;
    transition: background 0.3s ease;
}

.skills__item__pic div:nth-child(1) { height: 30%; }
.skills__item__pic div:nth-child(2) { height: 50%; }
.skills__item__pic div:nth-child(3) { height: 70%; }
.skills__item__pic div:nth-child(4) { height: 85%; }
.skills__item__pic div:nth-child(5) { height: 100%; }

.skills__item__pic .level-active {
    background: #fbae00;
    box-shadow: 0 0 10px rgba(251, 174, 0, 0.3);
}

.skills__item__icon {
    width: 50px;
    height: 45px;
    background-position: center;
    background-size: contain;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
}

.skills__item__icon i {
    font-size: 28px;
    color: #fbae00;
}

.level-label {
    font-size: 12px;
    color: #aaa;
    font-weight: 500;
}

/* Блок покупки */
.skill__item__purchase {
    padding: 15px 25px;
    background: #0a0a0a;
    display: flex;
    flex-flow: row nowrap;
    justify-content: space-between;
    align-items: center;
}
.all-courses__item__specification .skill__item__purchase {
    width: 100%;
}
.skill__item__purchase > div {
    display: flex;
    flex-flow: row nowrap;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    width: 100%;
}

/* ===== СТИЛИ КНОПОК ТОЛЬКО ДЛЯ КАРТОЧКИ ===== */
/* Используем .skills__item как родитель, чтобы не ломать кнопки на других страницах */

.skills__item .button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    background: transparent;
    line-height: 1;
}

.skills__item .button-primary {
    background: #fbae00;
    color: #000;
}

.skills__item .button-primary:hover {
    background: #ffc233;
    transform: scale(1.02);
}

.skills__item .button-tertiary {
    background: transparent;
    color: #fbae00;
    border: 2px solid #fbae00;
}

.skills__item .button-tertiary:hover {
    background: #fbae00;
    color: #000;
}

/* Стили для чекбокса внутри карточки */
.skills__item .skill-item-checkbox {
    position: absolute;
    opacity: 0;
}

.skills__item .skill-item-checkbox:checked + label {
    background: green;
    color: #000;
    border-color: #fff;
}

/* Остальные стили блока покупки */
.has_access {
    display: flex;
    align-items: center;
    gap: 15px;
}

.access-hint {
    font-size: 12px;
    color: #666;
}

.purchase-info {
    display: flex;
    align-items: center;
    gap: 15px;
    color: #ccc;
}

.purchase-price {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
}

.purchase-price i {
    color: #fbae00;
    font-size: 16px;
}

.purchase-time {
    color: #888;
    font-size: 13px;
}

.purchase-time i {
    color: #fbae00;
}

.login-prompt a {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #fbae00;
    font-size: 14px;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 6px;
    border: 1px solid rgba(251, 174, 0, 0.3);
    transition: all 0.3s ease;
}

.login-prompt a:hover {
    background: rgba(251, 174, 0, 0.1);
    border-color: #fbae00;
}

/* ===== АДАПТИВНОСТЬ ===== */
@media (max-width: 1024px) {
    .skills__item {
        flex-direction: column;
        max-width: 600px;
    }
    
    .skills__item__image {
        width: 100%;
        min-height: 300px;
    }
    
    .skills__item__info {
        width: 100%;
    }
    
    .skills__item__level {
        flex-wrap: wrap;
        gap: 15px;
    }
}

@media (max-width: 600px) {
    .skills__item__text h2 {
        font-size: 18px;
    }
    
    .skills__item__text {
        padding: 15px 20px;
    }
    
    .skill__item__purchase {
        padding: 15px 20px;
    }
    
    .skill__item__purchase > div {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .purchase-info {
        width: 100%;
        justify-content: center;
    }
    
    .skills__item .button {
        padding: 8px 16px;
        font-size: 13px;
    }
}

/* ===== Блок "Нет навыков" ===== */
.skills-empty {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    min-height: 600px;
    padding: 40px 20px;
}

.skills-empty__content {
    max-width: 800px;
    background-color: #1a1a1a;
    padding: 50px 40px;
    border-radius: 12px;
    text-align: center;
    color: #fff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.7);
}

.skills-empty__content h2 {
    font-size: 32px;
    text-transform: uppercase;
    margin-bottom: 20px;
    color: #fbae00;
}

.skills-empty__content p {
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 15px;
}

.skill-suggestion-form {
    margin-top: 30px;
}

.skill-suggestion-form .form-label {
    font-weight: 600;
    margin-bottom: 15px;
    display: block;
    font-size: 18px;
}

.category-group {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin: 20px 0;
}

.category-card {
    background-color: #2a2a2a;
    padding: 15px 25px;
    border-radius: 30px;
    cursor: pointer;
    transition: 0.3s;
    border: 2px solid transparent;
    display: flex;
    align-items: center;
}

.category-card:hover {
    background-color: #3a3a3a;
    transform: scale(1.02);
}

.category-card input[type="radio"] {
    display: none;
}

.category-card input[type="radio"]:checked+span {
    color: #fbae00;
    font-weight: bold;
}

.category-card input[type="radio"]:checked+span::before {
    content: "✓ ";
}

.category-card span {
    font-size: 16px;
    color: #fff;
}

.skills-checkboxes {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin: 15px 0;
}

.skill-checkbox {
    background-color: #2a2a2a;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    transition: 0.3s;
    display: inline-flex;
    align-items: center;
    color: #ccc;
    font-size: 14px;
}

.skill-checkbox:hover {
    background-color: #3a3a3a;
}

.skill-checkbox input[type="checkbox"] {
    display: none;
}

.skill-checkbox input[type="checkbox"]:checked+* {
    color: #fbae00;
}

.skill-checkbox input[type="checkbox"]:checked+*::before {
    content: "✓ ";
}

.skill-suggestion-form .form-group {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-top: 15px;
}

.skill-suggestion-form #custom-skill {
    flex: 1 1 250px;
    padding: 12px 20px;
    border: none;
    border-radius: 30px;
    background-color: #333;
    color: #fff;
    font-size: 16px;
    outline: none;
    transition: 0.3s;
}

.skill-suggestion-form #custom-skill:focus {
    background-color: #444;
    box-shadow: 0 0 0 2px #fbae00;
}

.form-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 25px;
}

.button-secondary {
    background-color: #444;
    color: #fff;
    border: none;
    padding: 12px 30px;
    border-radius: 30px;
    cursor: pointer;
    transition: 0.3s;
    font-size: 16px;
}

.button-secondary:hover {
    background-color: #666;
}

.skill-suggestion-form .button-tertiary {
    padding: 12px 30px;
    background-color: #fbae00;
    color: #000;
    border: none;
    border-radius: 30px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
    text-transform: uppercase;
    font-size: 16px;
}

.skill-suggestion-form .button-tertiary:hover {
    background-color: #ffc233;
    transform: scale(1.03);
}

.skill-suggestion-form .button-tertiary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.category-card input[type="checkbox"]:checked+span {
    color: #fbae00;
    font-weight: bold;
}

.category-card input[type="checkbox"]:checked+span::before {
    content: "✓ ";
}

.suggestion-feedback {
    margin-top: 20px;
    font-size: 16px;
}

.suggestion-feedback .success {
    color: #8bc34a;
}

.suggestion-feedback .error {
    color: #f44336;
}

.form-step {
    transition: 0.3s;
}

/* ===== LOGIN.PHP ===== */
.main-login {
    padding: 50px;
    background-color: #012a2e;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
}

/* ===== 404 PAGE ===== */
.container {
    display: flex;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    background-color: #202020aa;
}

.error-page {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    text-align: center;
    background-color: #202020;
}

.error-content {
    max-width: 650px;
}

.error-code {
    font-size: 8rem;
    font-weight: bold;
    margin-bottom: 10px;
    color: #fbae00;
    line-height: 1;
}

.error-message {
    font-size: 1.8rem;
    margin-bottom: 30px;
    color: #ffffff;
}

.error-description {
    font-size: 1.1rem;
    margin-bottom: 40px;
    color: #cccccc;
}

.home-button {
    display: inline-block;
    padding: 15px 35px;
    background-color: #fbae00;
    color: #202020 !important;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.1rem;
}

.home-button:hover {
    background-color: #ffffff;
    transform: translateY(-2px);
}

.links {
    margin-top: 30px;
    display: flex;
    justify-content: center;
    gap: 25px;
    flex-wrap: wrap;
}

.links a {
    color: #fbae00;
    text-decoration: none;
    transition: color 0.2s ease;
}

.links a:hover {
    color: #ffffff;
    text-decoration: underline;
}

/* ===== TEST PAGE ===== */
.main-test {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 1100px;
    background-color: #fff;
    color: #000;
}

.main-test .content {
    width: 1100px;
    padding: 10px;
    height: 800px;
    background-color: #f0f0f0;
}

.main-test .content ul {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.main-test .content ul li {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 5px 0;
    margin: 15px 0;
    border: 1px solid #000;
    transition: all -1s;
}

.main-test .content ul li:before,
.main-test .content ul li:after {
    display: block;
    position: absolute;
    font-size: small;
    width: 15px;
    min-height: 1rem;
}

.main-test .content ul li:before {
    content: attr(data-collisiontop);
    top: 0;
    left: 10px;
}

.main-test .content ul li:after {
    content: attr(data-collisionbottom);
    bottom: 0;
    left: 10px;
}

.main-test .content ul li:hover {
    border-color: #fbae00;
    background-color: #008990;
    cursor: all-scroll;
}

.main-test .content ul li input,
.main-test .content ul li p {
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    pointer-events: none;
}

.dragging {
    content: '';
    background-color: rgba(0, 0, 0, 0.1);
    border: none;
    -webkit-box-shadow: 0px 0px 31px 6px rgba(34, 60, 80, 0.2);
    -moz-box-shadow: 0px 0px 31px 6px rgba(34, 60, 80, 0.2);
    box-shadow: 0px 0px 31px 6px rgba(34, 60, 80, 0.2);
}

.dragging * {
    opacity: 0;
}

/* ===== SHOPPING CART ===== */
.main-shopping-cart {
    height: 80vh;
    background-color: #f0f0f0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: space-between;
}

.shopping-cart {
    width: 80%;
    max-width: 800px;
    margin: 50px auto;
    background: #fff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    overflow: hidden;
    padding: 20px;
}

.shopping-cart h1 {
    font-size: 24px;
    color: #333;
    margin-bottom: 20px;
    text-align: center;
}

.cart-items {
    list-style: none;
    padding: 0;
    margin: 0;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid #eee;
}

.cart-item:last-child {
    border-bottom: none;
}

.cart-item-info {
    display: flex;
    flex-direction: column;
}

.course-title {
    width: 50%;
    font-size: 16px;
    font-weight: bold;
    color: #00282a;
    margin-bottom: 5px;
}

.course-price {
    font-size: 14px;
    color: #000;
}

.remove-from-cart {
    background: #ff6b6b;
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 16px;
}

.remove-from-cart:hover {
    background: #ff3b3b;
}

.cart-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    margin-top: 20px;
    background: #f7f7f7;
    border-radius: 5px;
}

.cart-summary span {
    font-size: 18px;
    color: #333;
}

.cart-summary strong {
    font-size: 20px;
    color: #00282a;
}

.checkout-button {
    display: block;
    width: 100%;
    margin: 20px 0 0;
    padding: 15px;
    background: #00282a;
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    text-align: center;
}

.checkout-button:hover {
    background: #004952;
}

.empty-cart {
    text-align: center;
    font-size: 18px;
    color: #555;
}

/* ===== MY-COURSES ===== */
#courses-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    padding: 2rem;
}

.course-card {
    background: #292929;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s, box-shadow 0.3s;
}

.course-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

.course-image {
    width: 100%;
    height: 180px;
    overflow: hidden;
    background-color: #000;
}

.course-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.course-card:hover .course-image img {
    transform: scale(1.05);
}

.course-details {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex-grow: 1;
}

.course-title {
    font-size: 1.25rem;
    margin: 0;
    color: #fbae00;
}

.course-excerpt {
    font-size: 0.9rem;
    color: #ccc;
    margin: 0.5rem 0;
    line-height: 1.4;
}

.course-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    margin: 0.5rem 0;
}

.course-meta span {
    background: #333;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
}

.course-enroll {
    background: #fbae00;
    color: #202020;
    border: none;
    border-radius: 6px;
    padding: 0.5rem 1rem;
    font-size: 0.95rem;
    cursor: pointer;
    margin-top: auto;
    transition: background 0.3s ease;
}

.course-enroll:hover {
    background: #e89b00;
}
/* ============================================
   АНИМАЦИЯ КОРЗИНЫ ПРИ ДОБАВЛЕНИИ ТОВАРА
   ============================================ */

/* Принудительное открытие dropdown */
.userinfo__item-userlogedin .dropdown.dropdown--forced-open {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
    pointer-events: auto !important;
    animation: dropdownFadeIn 0.3s ease both;
}

@keyframes dropdownFadeIn {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Подсветка аватара (источник dropdown) */
.userinfo__item-userlogedin.avatar--highlight {
    background-color: rgba(255, 255, 255, 0.12);
    border-radius: 50%;
    transition: background-color 0.3s ease;
}

/* Подсветка иконки корзины (только glow + прыжок иконки) */
@keyframes cartHighlight {
    0% { 
        background-color: transparent;
        box-shadow: 0 0 0 0 rgba(46, 204, 113, 0.7);
    }
    30% { 
        background-color: rgba(46, 204, 113, 0.25);
        box-shadow: 0 0 20px 5px rgba(46, 204, 113, 0.5);
    }
    100% { 
        background-color: transparent;
        box-shadow: 0 0 0 0 rgba(46, 204, 113, 0);
    }
}

.userinfo__link-shoppingcart.cart--highlight {
    animation: cartHighlight 1.5s ease-out;
    border-radius: 6px;
}

/* Прыжок иконки корзины */
@keyframes cartIconBounce {
    0%, 100% { transform: scale(1) rotate(0); }
    25% { transform: scale(1.25) rotate(-12deg); }
    50% { transform: scale(0.95) rotate(6deg); }
    75% { transform: scale(1.08) rotate(-4deg); }
}

.userinfo__link-shoppingcart.cart--highlight i {
    animation: cartIconBounce 0.8s ease;
    display: inline-block;
}

/* ============================================
   ПРИНУДИТЕЛЬНАЯ АНИМАЦИЯ HEADER + DROPDOWN
   ============================================ */

/* Header временно "приклеен" к верху экрана */
.header.header--pinned {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    z-index: 9999 !important;
    animation: headerSlideDown 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes headerSlideDown {
    from {
        transform: translateY(-100%);
        opacity: 0.7;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Принудительное открытие dropdown */
.userinfo__item-userlogedin .dropdown.dropdown--forced-open {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
    pointer-events: auto !important;
    animation: dropdownFadeIn 0.3s ease 0.15s both;
}

@keyframes dropdownFadeIn {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Подсветка аватара (источник dropdown) */
.userinfo__item-userlogedin.avatar--highlight {
    background-color: rgba(255, 255, 255, 0.12);
    border-radius: 50%;
    transition: background-color 0.3s ease;
}

/* Подсветка иконки корзины */
@keyframes cartHighlight {
    0% { 
        background-color: transparent;
        box-shadow: 0 0 0 0 rgba(46, 204, 113, 0.7);
    }
    30% { 
        background-color: rgba(46, 204, 113, 0.25);
        box-shadow: 0 0 20px 5px rgba(46, 204, 113, 0.5);
    }
    100% { 
        background-color: transparent;
        box-shadow: 0 0 0 0 rgba(46, 204, 113, 0);
    }
}

.userinfo__link-shoppingcart.cart--highlight {
    animation: cartHighlight 1.5s ease-out;
    border-radius: 6px;
}

/* Прыжок иконки корзины */
@keyframes cartIconBounce {
    0%, 100% { transform: scale(1) rotate(0); }
    25% { transform: scale(1.25) rotate(-12deg); }
    50% { transform: scale(0.95) rotate(6deg); }
    75% { transform: scale(1.08) rotate(-4deg); }
}

.userinfo__link-shoppingcart.cart--highlight i {
    animation: cartIconBounce 0.8s ease;
    display: inline-block;
}
/* ============================================
   СТРАНИЦА ПОДДЕРЖКИ
   ============================================ */
.support-page {
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 20px 80px;
    color: #fff;
}

/* Hero-блок */
.support-hero {
    text-align: center;
    padding: 40px 20px;
    background: linear-gradient(135deg, #00282a 0%, #003d40 100%);
    border-radius: 16px;
    margin-bottom: 40px;
    border: 1px solid rgba(251, 174, 0, 0.2);
}

.support-hero h1 {
    font-size: 2.2rem;
    margin: 0 0 12px;
    color: #fbae00;
    font-weight: 700;
}

.support-hero p {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
    max-width: 600px;
    margin: 0 auto;
}

/* Быстрые ссылки */
.support-quick-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 50px;
}

.quick-link {
    background: rgba(0, 40, 42, 0.5);
    border: 1px solid rgba(251, 174, 0, 0.2);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    text-decoration: none;
    color: #fff;
    transition: all 0.3s ease;
    cursor: pointer;
}

.quick-link:hover {
    background: rgba(251, 174, 0, 0.1);
    border-color: #fbae00;
    transform: translateY(-2px);
}

.quick-link__icon {
    font-size: 2rem;
    margin-bottom: 8px;
    display: block;
}

.quick-link__title {
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 4px;
}

.quick-link__desc {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
}

/* Секции */
.support-section {
    margin-bottom: 50px;
}

.support-section__title {
    font-size: 1.5rem;
    color: #fbae00;
    margin: 0 0 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(251, 174, 0, 0.2);
    display: flex;
    align-items: center;
    gap: 10px;
}

/* FAQ-аккордеон */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.faq-item {
    background: rgba(0, 40, 42, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    transition: border-color 0.3s ease;
}

.faq-item.active {
    border-color: rgba(251, 174, 0, 0.4);
}

.faq-question {
    padding: 16px 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 500;
    color: #fff;
    user-select: none;
}

.faq-question:hover {
    background: rgba(251, 174, 0, 0.05);
}

.faq-question__arrow {
    color: #fbae00;
    transition: transform 0.3s ease;
    font-size: 0.9rem;
}

.faq-item.active .faq-question__arrow {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0 20px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    font-size: 0.95rem;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding: 0 20px 16px;
}

/* Форма */
.support-form {
    background: rgba(0, 40, 42, 0.5);
    border: 1px solid rgba(251, 174, 0, 0.2);
    border-radius: 12px;
    padding: 30px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
}

.form-group label .required {
    color: #fbae00;
}

.form-group input,
.form-group select,
.form-group textarea {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    padding: 12px 14px;
    color: #fff;
    font-size: 0.95rem;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #fbae00;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-group input[readonly] {
    background: rgba(0, 0, 0, 0.5);
    color: rgba(255, 255, 255, 0.6);
    cursor: not-allowed;
}

.form-submit-btn {
    background: linear-gradient(135deg, #fbae00 0%, #ff9500 100%);
    color: #202020;
    border: none;
    border-radius: 8px;
    padding: 14px 32px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    margin-top: 10px;
}

.form-submit-btn:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(251, 174, 0, 0.4);
}

.form-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.form-message {
    margin-top: 16px;
    padding: 12px 16px;
    border-radius: 8px;
    display: none;
    font-size: 0.95rem;
}

.form-message.success {
    background: rgba(46, 204, 113, 0.15);
    border: 1px solid rgba(46, 204, 113, 0.4);
    color: #2ecc71;
    display: block;
}

.form-message.error {
    background: rgba(231, 76, 60, 0.15);
    border: 1px solid rgba(231, 76, 60, 0.4);
    color: #e74c3c;
    display: block;
}

/* История тикетов */
.tickets-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ticket-card {
    background: rgba(0, 40, 42, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 16px 20px;
    transition: border-color 0.3s ease;
}

.ticket-card:hover {
    border-color: rgba(251, 174, 0, 0.3);
}

.ticket-card__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    flex-wrap: wrap;
    gap: 8px;
}

.ticket-card__id {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
}

.ticket-card__subject {
    font-weight: 600;
    font-size: 1.05rem;
    color: #fff;
    margin: 0 0 8px;
}

.ticket-card__message {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0 0 10px;
}

.ticket-card__reply {
    background: rgba(251, 174, 0, 0.08);
    border-left: 3px solid #fbae00;
    padding: 10px 14px;
    margin-top: 10px;
    border-radius: 0 6px 6px 0;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
}

.ticket-card__reply-label {
    color: #fbae00;
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
    display: block;
}

.ticket-status {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-new { background: rgba(52, 152, 219, 0.2); color: #3498db; }
.status-in_progress { background: rgba(241, 196, 15, 0.2); color: #f1c40f; }
.status-resolved { background: rgba(46, 204, 113, 0.2); color: #2ecc71; }
.status-closed { background: rgba(149, 165, 166, 0.2); color: #95a5a6; }

.ticket-card__date {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
}

.tickets-empty {
    text-align: center;
    padding: 30px;
    color: rgba(255, 255, 255, 0.6);
    background: rgba(0, 40, 42, 0.3);
    border-radius: 10px;
    font-size: 0.95rem;
}

/* Контакты */
.support-contacts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
}

.contact-card {
    background: rgba(0, 40, 42, 0.5);
    border: 1px solid rgba(251, 174, 0, 0.2);
    border-radius: 10px;
    padding: 20px;
    text-align: center;
}

.contact-card__icon {
    font-size: 1.8rem;
    color: #fbae00;
    margin-bottom: 8px;
}

.contact-card__title {
    font-weight: 600;
    margin-bottom: 4px;
}

.contact-card__value {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.contact-card__value a {
    color: #fbae00;
    text-decoration: none;
}

.contact-card__value a:hover {
    text-decoration: underline;
}

/* Адаптив */
@media (max-width: 768px) {
    .support-hero h1 { font-size: 1.6rem; }
    .form-row { grid-template-columns: 1fr; }
    .support-form { padding: 20px; }
    .ticket-card__header { flex-direction: column; align-items: flex-start; }
}
