/* ================================================================
   ОСНОВНЫЕ СТИЛИ AI.WorkProekt
   ================================================================ */

:root {
    --primary: #1890ff;
    --secondary: #36cfc9;
    --light: #f8f9fa;
    --dark: #333333;
    --gray: #666666;
    --white: #ffffff;
    --shadow: 0 5px 15px rgba(0,0,0,0.1);
    --transition: all 0.3s ease;
    --accent: #ff6b6b;
    --accent-light: #ff9e9e;
    --success: #52c41a;
    --warning: #faad14;
    --danger: #ff4d4f;
    --card-radius: 12px;
    --separator-color: #e9ecef;
    --bs-navbar-nav-link-padding-x: 0.2rem !important;
}

body.night-mode {
    --light: #1a1a1a;
    --dark: #f0f0f0;
    --white: #2d2d2d;
    --gray: #b0b0b0;
    --shadow: 0 5px 15px rgba(0,0,0,0.4);
    --separator-color: #444;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--dark);
    background-color: var(--light);
    transition: background-color 0.3s ease, color 0.3s ease;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    flex: 1;
}

/* ================================================================
   АНИМАЦИИ
   ================================================================ */
.animated-text-container {
    display: inline-block;
    overflow: hidden;
}
.animated-word {
    display: inline-block;
    opacity: 0;
    transform: translateY(20px);
    animation: slideUpWord 0.5s ease forwards;
    margin-right: 5px;
}
@keyframes slideUpWord {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}

.animated-number {
    display: inline-block;
    animation: pulseNumber 2s ease-in-out infinite;
}
@keyframes pulseNumber {
    0%, 100% { transform: scale(1); text-shadow: 0 0 5px rgba(24,144,255,0.3); }
    50% { transform: scale(1.05); text-shadow: 0 0 15px rgba(24,144,255,0.5); }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-30px); }
    to { opacity: 1; transform: translateX(0); }
}
@keyframes slideInRight {
    from { opacity: 0; transform: translateX(30px); }
    to { opacity: 1; transform: translateX(0); }
}
@keyframes spin {
    to { transform: rotate(360deg); }
}
@keyframes gradientMove {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}
@keyframes arrowPulse {
    0%, 100% { transform: translateX(0); opacity: 0.5; }
    50% { transform: translateX(5px); opacity: 1; }
}

/* ================================================================
   НАВИГАЦИЯ
   ================================================================ */
.social-top-bar {
    background: rgba(0,0,0,0.2);
    padding: 0.3rem 0;
    font-size: 0.85rem;
}
.social-top-bar a {
    color: rgba(255,255,255,0.8);
    transition: all 0.3s ease;
    margin: 0 0.5rem;
    text-decoration: none;
}
.social-top-bar a:hover {
    color: #fff;
    transform: translateY(-1px);
}
.social-top-bar .separator {
    color: rgba(255,255,255,0.3);
    margin: 0 0.3rem;
}

.navbar {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    box-shadow: var(--shadow);
    padding: 1rem 0;
    transition: var(--transition);
}
.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--white) !important;
}
.navbar-nav .nav-link {
    color: rgba(255,255,255,0.9) !important;
    font-weight: 500;
    padding: 0.5rem 1rem;
    margin: 0 0.2rem;
    border-radius: 5px;
    transition: var(--transition);
    position: relative;
}
.navbar-nav .nav-link:hover {
    color: var(--white) !important;
    background: rgba(255,255,255,0.1);
    transform: translateY(-2px);
}
.navbar-nav .nav-link.active {
    background: rgba(255,255,255,0.2);
    color: var(--white) !important;
}
.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--white);
    transition: var(--transition);
    transform: translateX(-50%);
}
.navbar-nav .nav-link:hover::after {
    width: 80%;
}
.auth-buttons .btn {
    margin-left: 0.5rem;
    transition: var(--transition);
}
.auth-buttons .btn:hover {
    transform: translateY(-2px);
}
.night-mode-toggle {
    background: rgba(255,255,255,0.2);
    border: none;
    color: var(--white);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 0.5rem;
    transition: var(--transition);
    cursor: pointer;
}
.night-mode-toggle:hover {
    background: rgba(255,255,255,0.3);
    transform: translateY(-2px);
}

/* Стили для выпадающего меню */
.dropdown-menu {
    background: var(--white);
    border: none;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    padding: 0.5rem 0;
    min-width: 180px;
    margin-top: 0.5rem;
}
.dropdown-menu .dropdown-item {
    padding: 0.6rem 1.2rem;
    color: var(--dark);
    font-weight: 500;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
}
.dropdown-menu .dropdown-item:hover {
    background: linear-gradient(135deg, rgba(24,144,255,0.08), rgba(54,207,201,0.08));
    color: var(--primary);
}
.dropdown-menu .dropdown-item.active {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
}
.dropdown-menu .dropdown-item i {
    width: 20px;
    text-align: center;
}

/* Ночной режим для выпадающего меню */
body.night-mode .dropdown-menu {
    background: var(--white);
    border: 1px solid rgba(255,255,255,0.1);
}
body.night-mode .dropdown-menu .dropdown-item {
    color: var(--dark);
}
body.night-mode .dropdown-menu .dropdown-item:hover {
    background: rgba(24,144,255,0.15);
}

/* Анимация для выпадающего меню */
.dropdown-menu {
    display: block;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.25s ease;
}
.dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* ================================================================
   ГЕРОЙ
   ================================================================ */
.hero-section {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--white);
    padding: 4rem 0;
    text-align: center;
    margin-bottom: 2rem;
    border-radius: 10px;
}
.hero-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}
.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.user-info {
    background: rgba(255,255,255,0.1);
    padding: 1.5rem;
    border-radius: 10px;
    margin-top: 1.5rem;
    backdrop-filter: blur(10px);
}

/* ================================================================
   СТАТИСТИКА В ГЕРОЙ-СЕКЦИИ (на темном фоне)
   ================================================================ */
.hero-section .stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

.hero-section .stats-item {
    background: rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    border-top: 4px solid rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(8px);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 200px;
}

.hero-section .stats-item:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.hero-section .stats-item h4 {
    color: #ffffff !important;
    margin-bottom: 0.8rem;
    font-size: 1rem;
    font-weight: 600;
}

.hero-section .stats-item .value {
    color: #ffffff !important;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.hero-section .stats-item .label {
    color: rgba(255, 255, 255, 0.75) !important;
    font-size: 0.85rem;
    margin-bottom: 1rem;
}

.hero-section .stats-item .btn {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #ffffff !important;
    width: 100%;
    margin-top: auto;
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    border-radius: 25px;
    transition: all 0.3s ease;
}

.hero-section .stats-item .btn:hover {
    background: rgba(255, 255, 255, 0.35);
    transform: translateY(-2px);
    color: #ffffff !important;
}

.hero-section .stats-item .link {
    display: block;
    text-align: center;
    margin-top: 1rem;
    color: rgba(255, 255, 255, 0.8) !important;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.hero-section .stats-item .link:hover {
    color: #ffffff !important;
    text-decoration: underline;
}

/* ================================================================
   СТАТИСТИКА В ОСНОВНОМ КОНТЕНТЕ (на светлом фоне)
   ================================================================ */
.statistics-block {
    margin: 2rem 0 3rem 0;
}

.statistics-block .stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.statistics-block .stats-item {
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    border-top: 4px solid #1890ff;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 220px;
}

.statistics-block .stats-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

.statistics-block .stats-item h4 {
    color: #1890ff !important;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    font-weight: 600;
    text-align: center;
}

.statistics-block .stats-item .value {
    font-size: 2.2rem;
    font-weight: 700;
    color: #333333 !important;
    margin-bottom: 0.5rem;
    text-align: center;
}

.statistics-block .stats-item .label {
    color: #666666 !important;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    text-align: center;
}

.statistics-block .stats-item .btn {
    width: 100%;
    margin-top: auto;
    background-color: #1890ff;
    border-color: #1890ff;
    color: #ffffff;
}

.statistics-block .stats-item .btn:hover {
    background-color: #2e59d9;
    border-color: #2653d4;
}

.statistics-block .stats-item .link {
    display: block;
    text-align: center;
    margin-top: 1rem;
    color: #1890ff !important;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.statistics-block .stats-item .link:hover {
    color: #36cfc9 !important;
    text-decoration: underline;
}

/* ================================================================
   НОЧНОЙ РЕЖИМ ДЛЯ СТАТИСТИКИ
   ================================================================ */
body.night-mode .hero-section .stats-item {
    background: rgba(255, 255, 255, 0.06);
}

body.night-mode .hero-section .stats-item:hover {
    background: rgba(255, 255, 255, 0.12);
}

body.night-mode .hero-section .stats-item h4 {
    color: #ffffff !important;
}

body.night-mode .hero-section .stats-item .value {
    color: #ffffff !important;
}

body.night-mode .hero-section .stats-item .label {
    color: rgba(255, 255, 255, 0.7) !important;
}

body.night-mode .hero-section .stats-item .btn {
    color: #ffffff !important;
}

body.night-mode .statistics-block .stats-item {
    background: #2d2d2d;
    border-color: rgba(255,255,255,0.1);
}

body.night-mode .statistics-block .stats-item .value {
    color: #f0f0f0 !important;
}

body.night-mode .statistics-block .stats-item .label {
    color: #b0b0b0 !important;
}

body.night-mode .statistics-block .stats-item h4 {
    color: #1890ff !important;
}

body.night-mode .statistics-block .stats-item .link {
    color: #1890ff !important;
}

/* ================================================================
   ОСНОВНОЙ КОНТЕНТ
   ================================================================ */
.main-content {
    background: var(--white);
    border-radius: 10px;
    box-shadow: var(--shadow);
    padding: 2rem;
    margin-top: 2rem;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.section-title {
    color: var(--primary);
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--secondary);
    position: relative;
}
.section-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60px;
    height: 2px;
    background: var(--accent);
}

.text-block {
    background: linear-gradient(135deg, rgba(24,144,255,0.05), rgba(54,207,201,0.05));
    border-radius: 10px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.publish-btn {
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    border: none;
    color: var(--white);
    padding: 0.8rem 2rem;
    border-radius: 30px;
    font-weight: 600;
    transition: var(--transition);
    box-shadow: 0 5px 15px rgba(255,107,107,0.3);
}
.publish-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255,107,107,0.4);
    color: var(--white);
}

/* ================================================================
   КАРТОЧКИ
   ================================================================ */
.card {
    border-radius: 0.5rem;
    box-shadow: 0 0.15rem 1.75rem 0 rgba(58, 59, 69, 0.15);
    border: 1px solid #e3e6f0;
    margin-bottom: 1.5rem;
}
.card-header {
    border-bottom: 1px solid #e3e6f0;
    padding: 1rem 1.35rem;
}
.card-body {
    padding: 1.35rem;
}

/* ================================================================
   НОВЫЕ РАБОТЫ ИЗ МАГАЗИНА
   ================================================================ */
.new-products-section {
    margin: 3rem 0;
}
.new-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}
.new-product-card {
    background: var(--white);
    border-radius: 15px;
    padding: 1.2rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid rgba(24,144,255,0.1);
    position: relative;
    overflow: hidden;
}
.new-product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}
.new-product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
}
.new-product-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 0.5rem;
    line-height: 1.3;
}
.new-product-desc {
    font-size: 0.85rem;
    color: var(--gray);
    margin-bottom: 0.8rem;
    line-height: 1.5;
}
.new-product-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: var(--gray);
}
.new-product-price {
    font-weight: 700;
    color: var(--primary);
    font-size: 1.1rem;
}
.new-product-parts {
    background: rgba(24,144,255,0.1);
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    color: var(--primary);
}
.no-products {
    text-align: center;
    padding: 40px;
    color: var(--gray);
    background: var(--white);
    border-radius: 15px;
    box-shadow: var(--shadow);
}

/* ================================================================
   МОДУЛИ (фильтры, карточки, теги)
   ================================================================ */
.module-filters {
    background: var(--white);
    border-radius: var(--card-radius, 12px);
    padding: 1.2rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--separator-color);
}

.filter-buttons {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.4rem 1rem;
    border: 2px solid #e9ecef;
    background: var(--white);
    color: var(--gray);
    border-radius: 20px;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.9rem;
}
.filter-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
}
.filter-btn.active {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-color: transparent;
    color: white;
    box-shadow: 0 3px 10px rgba(24, 144, 255, 0.3);
}
.module-count {
    font-size: 0.85rem;
    color: var(--gray);
    margin-left: 0.3rem;
    font-weight: normal;
}
.filter-btn.active .module-count {
    color: rgba(255,255,255,0.8);
}

.module-card {
    border-radius: var(--card-radius, 12px);
    overflow: hidden;
    margin-bottom: 1.5rem;
    transition: all 0.4s ease;
    height: 100%;
    position: relative;
    display: block;
    width: 100%;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}
.module-card.active {
    background: var(--white);
    border: 2px solid var(--primary);
    box-shadow: 0 5px 15px rgba(24, 144, 255, 0.1);
}
.module-card.active:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(24, 144, 255, 0.2);
    border-color: var(--primary);
}

.module-header {
    padding: 1.2rem;
    position: relative;
    min-height: 120px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.module-header-primary { background: linear-gradient(135deg, var(--primary), #40a9ff); }
.module-header-success { background: linear-gradient(135deg, #52c41a, #73d13d); }
.module-header-warning { background: linear-gradient(135deg, #faad14, #ffd666); }
.module-header-info { background: linear-gradient(135deg, #36cfc9, #69c0ff); }
.module-header-danger { background: linear-gradient(135deg, #ff6b6b, #ff9e9e); }

.module-icon-wrapper {
    width: 50px;
    height: 50px;
    background: rgba(255,255,255,0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.5rem;
    margin-bottom: 0.8rem;
    transition: all 0.3s ease;
}
.module-card.active:hover .module-icon-wrapper {
    transform: rotate(10deg) scale(1.1);
    background: rgba(255,255,255,0.3);
}

.module-title {
    color: var(--white);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
    line-height: 1.3;
}
.module-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    z-index: 2;
}
.module-badge.ai { background: linear-gradient(135deg, #6f42c1, #e83e8c); color: white; }
.module-badge.new { background: linear-gradient(135deg, #ff6b6b, #ff9e9e); color: white; }

.module-body {
    padding: 1.2rem;
    position: relative;
    min-height: 180px;
}
.module-description {
    color: var(--dark);
    margin-bottom: 1rem;
    font-size: 0.9rem;
    line-height: 1.5;
    min-height: 60px;
}

.module-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 0.5rem;
}
.module-tag {
    background: rgba(0,0,0,0.05);
    color: var(--gray);
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}
.module-tag.popular {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.15), rgba(255, 214, 102, 0.15));
    color: #d48806;
}
.module-tag.new {
    background: linear-gradient(135deg, rgba(24, 144, 255, 0.15), rgba(54, 207, 201, 0.15));
    color: var(--primary);
}

/* ================================================================
   ОБЛАКО МОДУЛЕЙ
   ================================================================ */
.modules-cloud-section {
    margin: 3rem 0;
}
.modules-cloud-container {
    background: linear-gradient(135deg, rgba(24,144,255,0.05), rgba(54,207,201,0.05));
    border-radius: 20px;
    padding: 2.5rem;
    border: 2px solid rgba(24,144,255,0.1);
    position: relative;
    overflow: hidden;
}
.cloud-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-bottom: 3rem;
    position: relative;
    z-index: 2;
}
.cloud-stat-item {
    background: var(--white);
    border-radius: 15px;
    padding: 1.5rem;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border-top: 4px solid;
}
.cloud-stat-item:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}
.cloud-stat-item.active { border-top-color: #28a745; background: linear-gradient(135deg, rgba(40,167,69,0.05), rgba(40,167,69,0.02)); }
.cloud-stat-item.development { border-top-color: #ffc107; background: linear-gradient(135deg, rgba(255,193,7,0.05), rgba(255,193,7,0.02)); }
.cloud-stat-item.upgrade { border-top-color: #17a2b8; background: linear-gradient(135deg, rgba(23,162,184,0.05), rgba(23,162,184,0.02)); }
.cloud-stat-item.total { border-top-color: #6f42c1; background: linear-gradient(135deg, rgba(111,66,193,0.05), rgba(111,66,193,0.02)); }

.cloud-stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto 1rem;
}
.cloud-stat-item.active .cloud-stat-icon { background: linear-gradient(135deg, rgba(40,167,69,0.1), rgba(40,167,69,0.2)); color: #28a745; }
.cloud-stat-item.development .cloud-stat-icon { background: linear-gradient(135deg, rgba(255,193,7,0.1), rgba(255,193,7,0.2)); color: #ffc107; }
.cloud-stat-item.upgrade .cloud-stat-icon { background: linear-gradient(135deg, rgba(23,162,184,0.1), rgba(23,162,184,0.2)); color: #17a2b8; }
.cloud-stat-item.total .cloud-stat-icon { background: linear-gradient(135deg, rgba(111,66,193,0.1), rgba(111,66,193,0.2)); color: #6f42c1; }

.cloud-stat-value {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    line-height: 1;
}
.cloud-stat-item.active .cloud-stat-value { color: #28a745; }
.cloud-stat-item.development .cloud-stat-value { color: #ffc107; }
.cloud-stat-item.upgrade .cloud-stat-value { color: #17a2b8; }
.cloud-stat-item.total .cloud-stat-value { color: #6f42c1; }
.cloud-stat-label {
    font-size: 0.9rem;
    color: var(--gray);
    font-weight: 500;
}

.modules-tags-cloud {
    background: var(--white);
    border-radius: 15px;
    padding: 2rem;
    box-shadow: var(--shadow);
    position: relative;
    z-index: 2;
    margin-top: 2rem;
}
.modules-tags-title {
    text-align: center;
    color: var(--primary);
    margin-bottom: 1.5rem;
    font-weight: 600;
    font-size: 1.2rem;
}
.modules-tags-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    align-items: center;
    min-height: 200px;
    position: relative;
}
.module-tag-item {
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    font-weight: 500;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    position: relative;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    border: 2px solid transparent;
}
.module-tag-item:hover {
    transform: translateY(-3px) scale(1.05);
    text-decoration: none;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}
.module-tag-item.active { border-color: #28a745; }
.module-tag-item.development { border-color: #ffc107; opacity: 0.8; }
.module-tag-item.upgrade { border-color: #17a2b8; opacity: 0.8; }
.module-tag-icon { font-size: 0.9rem; }
.module-tag-text { font-size: 0.9rem; white-space: nowrap; }
.module-tag-badge {
    font-size: 0.7rem;
    padding: 0.1rem 0.5rem;
    border-radius: 10px;
    font-weight: 600;
    margin-left: 0.3rem;
}
.badge-popular { background: linear-gradient(135deg, #fd7e14, #e83e8c); color: white; }
.badge-new { background: linear-gradient(135deg, #1890ff, #36cfc9); color: white; animation: pulse 2s infinite; }
.badge-soon { background: linear-gradient(135deg, #6c757d, #495057); color: white; }
.badge-upgrade { background: linear-gradient(135deg, #17a2b8, #20c997); color: white; }
.badge-ai { background: linear-gradient(135deg, #6f42c1, #e83e8c); color: white; }

.cloud-action {
    text-align: center;
    margin-top: 2rem;
    position: relative;
    z-index: 2;
}
.cloud-action .btn {
    font-weight: 600;
    padding: 0.8rem 2rem;
    border-radius: 25px;
}

/* ================================================================
   ПРИМЕРЫ РАБОТ
   ================================================================ */
.example-item {
    background: var(--white);
    border: 1px solid var(--separator-color);
    border-radius: 10px;
    padding: 1rem;
    margin-bottom: 1rem;
    transition: var(--transition);
}
.example-item:hover {
    box-shadow: var(--shadow);
    transform: translateX(5px);
    border-left: 4px solid var(--primary);
}
.example-item h5 {
    color: var(--primary);
    margin-bottom: 0.5rem;
}
.example-item p {
    color: var(--gray);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.example-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.85rem;
    flex-wrap: wrap;
}
.example-difficulty {
    padding: 0.2rem 0.8rem;
    border-radius: 15px;
    font-weight: 500;
}
.example-difficulty.easy { background: rgba(82, 196, 26, 0.1); color: #52c41a; }
.example-difficulty.medium { background: rgba(250, 173, 20, 0.1); color: #faad14; }
.example-difficulty.hard { background: rgba(255, 77, 79, 0.1); color: #ff4d4f; }

.example-badge-sm {
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}
.example-badge-sm.popular {
    background: linear-gradient(135deg, #fd7e14, #e83e8c);
    color: white;
}
.example-badge-sm.new {
    background: linear-gradient(135deg, #ff6b6b, #ff9e9e);
    color: white;
}

.example-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
    flex-wrap: wrap;
}
.example-btn-sm {
    padding: 0.3rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    border: none;
    cursor: pointer;
}
.example-btn-sm.word {
    background: rgba(24, 144, 255, 0.1);
    color: var(--primary);
    border: 1px solid rgba(24, 144, 255, 0.3);
}
.example-btn-sm.word:hover { background: var(--primary); color: white; }
.example-btn-sm.html {
    background: rgba(82, 196, 26, 0.1);
    color: #52c41a;
    border: 1px solid rgba(82, 196, 26, 0.3);
}
.example-btn-sm.html:hover { background: #52c41a; color: white; }
.example-btn-sm.video {
    background: rgba(255, 77, 77, 0.1);
    color: #ff4d4d;
    border: 1px solid rgba(255, 77, 77, 0.3);
}
.example-btn-sm.video:hover { background: #ff4d4d; color: white; }

.no-examples {
    text-align: center;
    padding: 2rem;
    color: var(--gray);
}
.no-examples i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.info-block {
    background: rgba(255,255,255,0.1);
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    border: 1px solid rgba(255,255,255,0.2);
}
.info-icon {
    width: 50px;
    height: 50px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-right: 1rem;
}
.info-badge {
    background: #ffc107;
    color: #000;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-weight: 600;
}

.home-examples-section {
    margin: 3rem 0;
}
.home-examples-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}
.home-example-card {
    background: var(--white);
    border-radius: 12px;
    padding: 1.2rem;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    border-left: 4px solid var(--primary);
}
.home-example-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.12);
}
.home-example-card .example-title {
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 0.3rem;
}
.home-example-card .example-desc {
    font-size: 0.85rem;
    color: var(--gray);
    margin-bottom: 0.5rem;
}
.home-example-card .example-meta {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    font-size: 0.75rem;
}
.home-example-card .example-tag {
    padding: 0.1rem 0.5rem;
    border-radius: 10px;
    font-weight: 500;
}
.example-tag.popular { background: linear-gradient(135deg, #fd7e14, #e83e8c); color: white; }
.example-tag.new { background: linear-gradient(135deg, #1890ff, #36cfc9); color: white; }
.example-tag.easy { background: rgba(82,196,26,0.15); color: #52c41a; }
.example-tag.medium { background: rgba(250,173,20,0.15); color: #faad14; }
.example-tag.hard { background: rgba(255,77,79,0.15); color: #ff4d4f; }

/* ================================================================
   ПРЕИМУЩЕСТВА
   ================================================================ */
.advantage-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    padding: 1rem;
    border-radius: 8px;
    transition: var(--transition);
}
.advantage-item:hover {
    background: linear-gradient(135deg, rgba(24,144,255,0.05), rgba(54,207,201,0.05));
    transform: translateX(5px);
}
.advantage-icon {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--white);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    margin-right: 1rem;
    flex-shrink: 0;
}
.advantage-content h4 {
    color: var(--primary);
    margin-bottom: 0.5rem;
}

/* ================================================================
   СХЕМА НЕЙРОСЕТЕЙ
   ================================================================ */
.ai-scheme-modern {
    position: relative;
    padding: 2.5rem 2rem;
    background: linear-gradient(135deg, rgba(24,144,255,0.05), rgba(54,207,201,0.05));
    border-radius: 20px;
    margin: 3rem 0 2rem 0;
    overflow: hidden;
    border: 2px solid rgba(24,144,255,0.1);
}
.ai-scheme-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #1890ff, #36cfc9, #9254de, #ff6b6b);
    background-size: 300% 100%;
    animation: gradientMove 4s ease-in-out infinite;
}

.ai-model-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}
.ai-model-card {
    background: var(--white);
    border-radius: 16px;
    padding: 1.5rem;
    text-align: center;
    box-shadow: var(--shadow);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}
.ai-model-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
    border-color: var(--primary);
}
.ai-model-card .model-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 1rem;
    transition: all 0.5s ease;
}
.ai-model-card:hover .model-icon {
    transform: rotate(10deg) scale(1.1);
}
.ai-model-card .model-name {
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
}
.ai-model-card .model-desc {
    font-size: 0.85rem;
    color: var(--gray);
    line-height: 1.4;
}
.ai-model-card .model-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-size: 0.65rem;
    font-weight: 700;
}
.model-badge.primary { background: #1890ff; color: white; }
.model-badge.success { background: #52c41a; color: white; }
.model-badge.warning { background: #faad14; color: #000; }
.model-badge.purple { background: #9254de; color: white; }
.model-badge.workproekt {
    background: linear-gradient(135deg, #1890ff, #36cfc9);
    color: white;
    animation: pulse 2s infinite;
}

.ai-flow-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin: 1.5rem 0;
    padding: 1rem;
    background: rgba(255,255,255,0.5);
    border-radius: 12px;
}
.ai-flow-step {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--white);
    border-radius: 25px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
}
.ai-flow-step:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}
.ai-flow-step .step-icon {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.8rem;
}
.ai-flow-arrow {
    font-size: 1.5rem;
    color: var(--primary);
    animation: arrowPulse 1.5s ease-in-out infinite;
}

/* ================================================================
   БЛОК "НУЖЕН ИНСТРУМЕНТ"
   ================================================================ */
.tool-request-section {
    background: linear-gradient(135deg, rgba(255,215,0,0.1), rgba(255,165,0,0.1));
    border-radius: 15px;
    padding: 3rem 2rem;
    margin: 3rem 0;
    position: relative;
    overflow: hidden;
    border-left: 5px solid #FFD700;
}
.tool-request-icon {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 4rem;
    color: rgba(255,215,0,0.3);
    z-index: 1;
}
.tool-request-content {
    position: relative;
    z-index: 2;
}
.tool-request-title {
    color: #FF8C00;
    margin-bottom: 1.5rem;
    font-size: 2rem;
    font-weight: 700;
    display: flex;
    align-items: center;
}
.tool-request-title i {
    margin-right: 15px;
    color: #FFD700;
}
.tool-request-subtitle {
    color: var(--dark);
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    font-weight: 600;
}
.tool-request-text {
    color: var(--gray);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    line-height: 1.7;
}
.tool-request-highlight {
    background: linear-gradient(135deg, rgba(255,215,0,0.15), rgba(255,165,0,0.15));
    border-radius: 10px;
    padding: 1.5rem;
    margin: 1.5rem 0;
    border: 2px dashed #FFD700;
}
.tool-request-highlight h5 {
    color: #FF8C00;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}
.tool-request-highlight h5 i {
    margin-right: 10px;
}
.tool-request-highlight ul {
    margin: 0;
    padding-left: 1.5rem;
}
.tool-request-highlight li {
    margin-bottom: 0.8rem;
    color: var(--dark);
}
.tool-request-highlight li strong {
    color: #FF8C00;
}
.tool-request-contact {
    display: inline-flex;
    align-items: center;
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    margin-top: 1rem;
    box-shadow: 0 5px 15px rgba(255,165,0,0.3);
}
.tool-request-contact:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255,165,0,0.4);
    color: white;
    text-decoration: none;
}
.tool-request-contact i {
    margin-right: 10px;
}
.examples-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}
.example-card {
    background: var(--white);
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border-top: 4px solid #FFD700;
}
.example-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}
.example-card h5 {
    color: #FF8C00;
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
}
.example-card h5 i {
    margin-right: 10px;
    color: #FFD700;
}
.example-card p {
    color: var(--gray);
    margin-bottom: 0;
    font-size: 0.95rem;
}

/* ================================================================
   ВОЗМОЖНОСТИ (карточки)
   ================================================================ */
.stats-card {
    background: var(--white);
    border-radius: 10px;
    box-shadow: var(--shadow);
    padding: 1.5rem;
    text-align: center;
    margin-bottom: 1.5rem;
    transition: var(--transition);
    border-top: 4px solid;
}
.stats-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}
.stats-card-student { border-top-color: #28a745; }
.stats-card-teacher { border-top-color: #ffc107; }
.stats-card-all { border-top-color: #17a2b8; }
.stats-card-ai { border-top-color: #6f42c1; }
.stats-value {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}
.stats-card-student .stats-value { color: #28a745; }
.stats-card-teacher .stats-value { color: #ffc107; }
.stats-card-all .stats-value { color: #17a2b8; }
.stats-card-ai .stats-value { color: #6f42c1; }
.stats-label {
    font-size: 1rem;
    color: var(--gray);
}

/* ================================================================
   ОТЗЫВЫ
   ================================================================ */
.reviews-section {
    margin: 3rem 0;
}
.reviews-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}
.reviews-count {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 30px;
    font-size: 0.9rem;
}
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    margin: 30px 0;
}
.review-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid rgba(24,144,255,0.1);
    position: relative;
}
.review-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}
.review-image-wrapper {
    position: relative;
    overflow: hidden;
    aspect-ratio: 9 / 16;
    background: linear-gradient(135deg, #f5f7fa, #e4e8f0);
    cursor: pointer;
}
.review-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    transition: transform 0.5s ease;
}
.review-card:hover .review-image {
    transform: scale(1.02);
}
.review-zoom {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    color: white;
    font-size: 2rem;
    backdrop-filter: blur(2px);
}
.review-card:hover .review-zoom {
    opacity: 1;
}
.review-footer {
    padding: 12px 15px;
    background: linear-gradient(135deg, rgba(24,144,255,0.02), rgba(54,207,201,0.02));
    border-top: 1px solid rgba(24,144,255,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.review-date {
    font-size: 0.8rem;
    color: var(--gray);
}
.review-badge {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
}

.reviews-pagination {
    margin: 40px 0 20px;
    text-align: center;
}
.pagination-container {
    display: inline-flex;
    gap: 8px;
    background: var(--white);
    padding: 12px 18px;
    border-radius: 40px;
    box-shadow: var(--shadow);
    flex-wrap: wrap;
    justify-content: center;
}
.page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 8px;
    border-radius: 50%;
    background: transparent;
    color: var(--dark);
    text-decoration: none;
    transition: var(--transition);
    border: 1px solid transparent;
    font-weight: 500;
}
.page-link:hover,
.page-link.active {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 10px rgba(24,144,255,0.3);
}
.load-more-btn {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(24,144,255,0.2);
}
.load-more-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(24,144,255,0.3);
}

.no-reviews {
    text-align: center;
    padding: 50px;
    color: var(--gray);
    background: linear-gradient(135deg, rgba(24,144,255,0.02), rgba(54,207,201,0.02));
    border-radius: 15px;
    border: 2px dashed rgba(24,144,255,0.2);
}
.no-reviews i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--primary);
    opacity: 0.5;
}

.review-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.95);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    padding: 20px;
    backdrop-filter: blur(5px);
}
.review-modal.active {
    display: flex;
    animation: fadeIn 0.3s ease;
}
.review-modal img {
    max-width: 95%;
    max-height: 95%;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}
.review-modal-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 3rem;
    cursor: pointer;
    background: rgba(255,255,255,0.1);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    border: 2px solid rgba(255,255,255,0.2);
}
.review-modal-close:hover {
    background: rgba(255,255,255,0.2);
    transform: rotate(90deg) scale(1.1);
    border-color: white;
}

/* ================================================================
   ВИДЕО ТАБЫ
   ================================================================ */
.video-tabs-container {
    background: var(--white);
    border-radius: 15px;
    box-shadow: var(--shadow);
    overflow: hidden;
}
.video-tabs-header {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    padding: 1rem 0;
}
.video-tabs-nav {
    display: flex;
    justify-content: center;
    gap: 1rem;
    padding: 0 1rem;
}
.video-tab-btn {
    background: transparent;
    border: none;
    color: rgba(255,255,255,0.8);
    font-weight: 600;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    font-size: 1rem;
}
.video-tab-btn:hover {
    color: var(--white);
    background: rgba(255,255,255,0.1);
}
.video-tab-btn.active {
    color: var(--white);
    background: rgba(255,255,255,0.2);
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}
.video-tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 3px;
    background: var(--white);
    border-radius: 2px;
}
.video-tab-content {
    padding: 2rem;
    display: none;
}
.video-tab-content.active {
    display: block;
    animation: fadeIn 0.5s ease;
}
.video-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    background: #000;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    margin-bottom: 1.5rem;
}
.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}
.video-description {
    text-align: center;
    color: var(--gray);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ================================================================
   АДМИНИСТРАТОР
   ================================================================ */
.admin-message-card {
    background: linear-gradient(135deg, var(--white), #fffbf0);
    border-radius: 15px;
    box-shadow: var(--shadow);
    overflow: hidden;
    border: 1px solid rgba(255,193,7,0.1);
    height: 100%;
    transition: var(--transition);
    position: relative;
    animation: slideInRight 0.8s ease-out 0.2s both;
}
.admin-message-card:hover {
    transform: translateY(-5px) rotate(1deg);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}
.admin-message-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #ffc107, #ff9800);
    z-index: 2;
}
.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 1.5rem;
    background: linear-gradient(135deg, rgba(255,193,7,0.1), rgba(255,152,0,0.1));
    border-bottom: 1px solid rgba(255,193,7,0.2);
    position: relative;
}
.admin-badge {
    background: linear-gradient(135deg, #ffc107, #ff9800);
    color: #000;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: 0 3px 10px rgba(255,193,7,0.3);
}
.admin-status {
    display: flex;
    align-items: center;
    font-size: 0.85rem;
    animation: pulse 2s infinite;
}
.admin-status.online {
    color: var(--success);
}
.admin-status i {
    font-size: 0.6rem;
    margin-right: 0.3rem;
    animation: pulse 1s infinite;
}
.admin-info {
    display: flex;
    align-items: center;
    padding: 1.8rem 1.5rem 1.2rem;
    position: relative;
}
.admin-info::before {
    content: '👨‍💻';
    position: absolute;
    right: 20px;
    top: 10px;
    font-size: 3rem;
    opacity: 0.1;
}
.admin-avatar {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #ffc107, #ff9800);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
    font-size: 1.8rem;
    margin-right: 1.5rem;
    flex-shrink: 0;
    border: 3px solid white;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    animation: float 4s ease-in-out infinite;
}
.admin-details h5 {
    color: #000;
    margin-bottom: 0.3rem;
    font-weight: 800;
    font-size: 1.3rem;
}
.admin-details p {
    color: var(--gray);
    font-size: 0.9rem;
    margin: 0;
}
.admin-contact {
    font-size: 0.85rem;
    margin-top: 0.5rem;
}
.admin-contact a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}
.admin-contact a:hover {
    color: #ff9800;
    text-decoration: underline;
}
.message-content {
    padding: 0 1.5rem 1.2rem;
    position: relative;
    z-index: 1;
}
.message-text {
    color: var(--gray);
    line-height: 1.7;
}
.message-text p:first-child {
    font-weight: 600;
    color: #000;
}
.admin-highlight {
    background: linear-gradient(135deg, rgba(255,193,7,0.1), rgba(255,152,0,0.1));
    border-radius: 10px;
    padding: 1.2rem;
    margin: 1.2rem 0;
    border-left: 4px solid #ffc107;
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.5s ease-out 0.4s both;
}
.admin-highlight::before {
    content: '💡';
    position: absolute;
    right: 10px;
    top: 10px;
    font-size: 1.5rem;
    opacity: 0.2;
}
.admin-highlight p {
    margin: 0;
    font-weight: 500;
    color: #000;
}
.contact-options {
    margin: 1.5rem 0;
}
.contact-option {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    padding: 1rem;
    background: rgba(255,255,255,0.5);
    border-radius: 10px;
    transition: var(--transition);
    border: 1px solid rgba(255,193,7,0.2);
}
.contact-option:hover {
    background: rgba(255,255,255,0.9);
    transform: translateX(10px) scale(1.02);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}
.contact-option i {
    font-size: 1.5rem;
    margin-right: 1.2rem;
    margin-top: 0.2rem;
    flex-shrink: 0;
}
.contact-option div {
    flex: 1;
}
.contact-option strong {
    color: #000;
    display: block;
    margin-bottom: 0.3rem;
    font-size: 1rem;
}
.contact-option p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--gray);
}
.message-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 1.5rem;
    background: linear-gradient(135deg, rgba(255,193,7,0.05), rgba(255,152,0,0.05));
    border-top: 1px solid rgba(255,193,7,0.1);
}
.response-time {
    display: flex;
    align-items: center;
    color: var(--gray);
    font-size: 0.9rem;
}
.response-time i {
    margin-right: 0.5rem;
    animation: pulse 1.5s infinite;
}

/* ================================================================
   FAQ
   ================================================================ */
.faq-section {
    margin: 2rem 0;
}
.faq-item {
    margin-bottom: 1rem;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
}
.faq-question {
    background: linear-gradient(135deg, rgba(24,144,255,0.1), rgba(54,207,201,0.1));
    padding: 1.2rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}
.faq-question:hover {
    background: linear-gradient(135deg, rgba(24,144,255,0.15), rgba(54,207,201,0.15));
}
.faq-question h5 {
    margin: 0;
    color: var(--primary);
}
.faq-icon {
    transition: transform 0.3s ease;
}
.faq-answer {
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    background: var(--white);
}
.faq-item.active .faq-answer {
    padding: 1.2rem;
    max-height: 500px;
}
.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

/* ================================================================
   КОНТАКТЫ
   ================================================================ */
.contacts-section {
    background: linear-gradient(135deg, rgba(24,144,255,0.05), rgba(54,207,201,0.05));
    border-radius: 10px;
    padding: 2rem;
    margin: 2rem 0;
}
.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: var(--white);
    border-radius: 8px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}
.contact-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}
.contact-icon {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--white);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    margin-right: 1rem;
    flex-shrink: 0;
}
.contact-info h5 {
    color: var(--primary);
    margin-bottom: 0.3rem;
}
.contact-info p {
    color: var(--gray);
    margin: 0;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}
.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--primary);
    color: var(--white);
    border-radius: 50%;
    text-decoration: none;
    transition: var(--transition);
}
.social-link:hover {
    transform: translateY(-3px);
    background: var(--secondary);
    color: var(--white);
}

/* ================================================================
   CTA
   ================================================================ */
.cta-section {
    background: linear-gradient(135deg, rgba(24,144,255,0.05), rgba(54,207,201,0.05));
    border-radius: 10px;
    padding: 3rem;
    margin: 2rem 0;
    text-align: center;
}

/* ================================================================
   ФУТЕР
   ================================================================ */
.footer {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--white);
    padding: 2rem 0;
    margin-top: 3rem;
}
.footer .social-link {
    background: rgba(255,255,255,0.15);
}
.footer .social-link:hover {
    background: rgba(255,255,255,0.3);
}

/* ================================================================
   ФОРМЫ И КНОПКИ
   ================================================================ */
.btn {
    border-radius: 0.375rem;
    font-weight: 500;
}
.btn-lg {
    padding: 0.75rem 1.5rem;
    font-size: 1.1rem;
}
.btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
}
.btn-primary:hover {
    background-color: #2e59d9;
    border-color: #2653d4;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem rgba(78, 115, 223, 0.25);
}
.form-control {
    border-left: none;
}
.input-group-text {
    background-color: #f8f9fc;
    border-right: none;
}

.alert {
    border-radius: 0.5rem;
    border: none;
}

/* ================================================================
   ТАБЛИЦЫ
   ================================================================ */
.table th {
    border-top: none;
    font-weight: 600;
    color: var(--dark);
}
.table-hover tbody tr:hover {
    background-color: rgba(78, 115, 223, 0.05);
}

/* ================================================================
   НАВИГАЦИЯ (вкладки)
   ================================================================ */
.nav-tabs .nav-link {
    color: var(--gray);
    border: none;
    padding: 0.75rem 1rem;
}
.nav-tabs .nav-link:hover {
    color: var(--primary);
}
.nav-tabs .nav-link.active {
    color: var(--primary);
    border-bottom: 2px solid var(--primary);
    font-weight: 600;
}

/* ================================================================
   БАДЖИ И ИКОНКИ
   ================================================================ */
.badge {
    padding: 0.35em 0.65em;
    font-weight: 500;
}
.fas, .fab {
    margin-right: 0.5rem;
}

/* ================================================================
   ЗАГРУЗКА
   ================================================================ */
.loading {
    display: inline-block;
    width: 50px;
    height: 50px;
    border: 3px solid rgba(78, 115, 223, 0.3);
    border-radius: 50%;
    border-top-color: var(--primary);
    animation: spin 1s ease-in-out infinite;
}

/* ================================================================
   СГЕНЕРИРОВАННЫЙ КОНТЕНТ
   ================================================================ */
.generated-content {
    font-family: 'Times New Roman', serif;
    line-height: 1.6;
    font-size: 1.1rem;
    white-space: pre-wrap;
    word-wrap: break-word;
}

/* ================================================================
   МОДАЛЬНЫЕ ОКНА
   ================================================================ */
.modal-content {
    border-radius: 0.5rem;
    border: none;
}

/* ================================================================
   КАРТОЧКИ
   ================================================================ */
.card {
    border-radius: 0.5rem;
    box-shadow: 0 0.15rem 1.75rem 0 rgba(58, 59, 69, 0.15);
    border: 1px solid #e3e6f0;
    margin-bottom: 1.5rem;
}
.card-header {
    border-bottom: 1px solid #e3e6f0;
    padding: 1rem 1.35rem;
}
.card-body {
    padding: 1.35rem;
}

/* ================================================================
   АДАПТИВНОСТЬ
   ================================================================ */
@media (max-width: 992px) {
    .hero-section .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .statistics-block .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .cloud-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    .modules-tags-grid {
        gap: 0.8rem;
    }
    .module-tag-item {
        padding: 0.6rem 1.2rem;
        font-size: 0.85rem;
    }
    .video-tabs-nav {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    .video-tab-btn {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }
    .hero-subtitle {
        font-size: 1rem;
    }
    .navbar-nav .nav-link {
        margin: 0.2rem 0;
    }
    .auth-buttons {
        margin-top: 1rem;
        text-align: center;
    }
    .auth-buttons .btn {
        margin: 0.2rem;
    }
    
    .hero-section .stats-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    .hero-section .stats-item {
        min-height: 160px;
        padding: 1rem;
    }
    .hero-section .stats-item .value {
        font-size: 1.5rem;
    }
    .statistics-block .stats-grid {
        grid-template-columns: 1fr;
    }
    .cloud-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    .modules-cloud-container {
        padding: 1.5rem;
    }
    .ai-model-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .ai-flow-container {
        flex-direction: column;
    }
    .ai-flow-arrow {
        transform: rotate(90deg);
    }
    .home-examples-grid {
        grid-template-columns: 1fr;
    }
    .new-products-grid {
        grid-template-columns: 1fr;
    }
    
    .admin-info {
        flex-direction: column;
        text-align: center;
    }
    .admin-avatar {
        margin-right: 0;
        margin-bottom: 1rem;
    }
    .contact-option {
        flex-direction: column;
        text-align: center;
    }
    .contact-option i {
        margin-right: 0;
        margin-bottom: 0.5rem;
    }
    .message-footer {
        flex-direction: column;
        gap: 1rem;
    }
    .reviews-header {
        flex-direction: column;
        align-items: flex-start;
    }
    .reviews-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }
    .card-body {
        padding: 1rem;
    }
    .display-4 {
        font-size: 2.5rem;
    }
}

@media (max-width: 576px) {
    .modules-tags-grid {
        flex-direction: column;
        align-items: center;
    }
    .module-tag-item {
        width: 80%;
        justify-content: center;
    }
    .video-tabs-nav {
        flex-direction: column;
        align-items: center;
    }
    .video-tab-btn {
        width: 100%;
        max-width: 300px;
    }
    .ai-model-grid {
        grid-template-columns: 1fr;
    }
    .reviews-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* СТАТИСТИКА НА БЕЛОМ ФОНЕ - ДЕЛАЕМ ТЕКСТ ТЕМНЫМ */
.statistics-block .stats-item h4 {
    color: #1890ff !important;
}

.statistics-block .stats-item .value {
    color: #333333 !important;
}

.statistics-block .stats-item .label {
    color: #666666 !important;
}

.statistics-block .stats-item .link {
    color: #1890ff !important;
}