/* ===========================================
   ЦВЕТОВЫЕ ПЕРЕМЕННЫЕ
   =========================================== */

/* Темная тема (по умолчанию) */
:root {
    --bg-primary: #000000;
    --bg-secondary: #1a1a1a;
    --bg-tertiary: #2d2d2d;
    --bg-card: rgba(255, 255, 255, 0.05);
    --bg-card-hover: rgba(255, 255, 255, 0.08);
    --bg-glass: rgba(0, 0, 0, 0.8);
    
    --text-primary: #f5f5f7;
    --text-secondary: #a1a1a6;
    --text-accent: #ffffff;
    
    --border-primary: rgba(255, 255, 255, 0.1);
    --border-secondary: rgba(255, 255, 255, 0.2);
    
    --accent-blue: #007aff;
    --accent-blue-hover: #0056b3;
    --accent-green: #34c759;
    --accent-red: #ff453a;
    --accent-yellow: #ffc107;
    
    --shadow-light: rgba(0, 122, 255, 0.1);
    --shadow-medium: rgba(0, 0, 0, 0.2);
    --shadow-heavy: rgba(0, 0, 0, 0.3);
    
    --gradient-hero: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    --gradient-text: linear-gradient(135deg, #fff 0%, #007aff 100%);
    --gradient-card: linear-gradient(135deg, rgba(0, 122, 255, 0.1) 0%, rgba(88, 86, 214, 0.1) 100%);
}

/* Светлая тема */
.light-theme {
    --bg-primary: #ffffff;
    --bg-secondary: #f8f9fa;
    --bg-tertiary: #e9ecef;
    --bg-card: rgba(0, 0, 0, 0.03);
    --bg-card-hover: rgba(0, 0, 0, 0.06);
    --bg-glass: rgba(255, 255, 255, 0.9);
    
    --text-primary: #1d1d1f;
    --text-secondary: #6e6e73;
    --text-accent: #000000;
    
    --border-primary: rgba(0, 0, 0, 0.1);
    --border-secondary: rgba(0, 0, 0, 0.2);
    
    --accent-blue: #007aff;
    --accent-blue-hover: #0056b3;
    --accent-green: #28a745;
    --accent-red: #dc3545;
    --accent-yellow: #ffc107;
    
    --shadow-light: rgba(0, 122, 255, 0.15);
    --shadow-medium: rgba(0, 0, 0, 0.1);
    --shadow-heavy: rgba(0, 0, 0, 0.15);
    
    --gradient-hero: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    --gradient-text: linear-gradient(135deg, #000 0%, #007aff 100%);
    --gradient-card: linear-gradient(135deg, rgba(0, 122, 255, 0.05) 0%, rgba(88, 86, 214, 0.05) 100%);
}

/* ===========================================
   БАЗОВЫЕ СТИЛИ
   =========================================== */

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

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

@media (max-width: 1024px) {
    .container {
        padding: 0 10px;
    }
}

/* ===========================================
   ЗАГОЛОВОК
   =========================================== */

.header {
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-primary);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.logo {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-accent);
    text-decoration: none;
}

.back-link {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
}

.back-link:hover {
    color: var(--accent-blue);
}

/* Toast виджет для переключения темы */
.theme-toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: 50px;
    padding: 5px;
    backdrop-filter: blur(20px);
    box-shadow: 0 10px 30px var(--shadow-medium);
    transition: all 0.3s ease;
    display: flex;
    gap: 5px;
}

.theme-toast:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 40px var(--shadow-heavy);
}

.theme-toggle, .back-toggle {
    background: transparent;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 50px;
    min-height: 50px;
}

.theme-toggle:hover, .back-toggle:hover {
    background: var(--bg-card-hover);
    transform: scale(1.1);
}

.theme-icon, .back-icon {
    width: 24px;
    height: 24px;
    transition: all 0.3s ease;
    filter: brightness(0) invert(1);
    display: block;
}

.light-theme .theme-icon, .light-theme .back-icon {
    filter: brightness(0) invert(0);
}

/* Дополнительные стили для кнопки назад */
.back-toggle {
    order: -1; /* Размещаем слева */
}

.back-icon {
    width: 24px;
    height: 24px;
    display: block;
    color: white;
}

.light-theme .back-icon {
    color: black;
}

/* Cookie Toast */
.cookie-toast {
    position: fixed;
    bottom: 30px;
    left: 30px;
    z-index: 1000;
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: 15px;
    padding: 20px;
    max-width: 400px;
    backdrop-filter: blur(20px);
    box-shadow: 0 10px 30px var(--shadow-medium);
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s ease;
}

.cookie-toast.show {
    transform: translateY(0);
    opacity: 1;
}

.cookie-content {
    display: flex;
    align-items: center;
    gap: 15px;
}

.cookie-content p {
    margin: 0;
    color: var(--text-primary);
    font-size: 0.9rem;
    line-height: 1.5;
}

.cookie-content a {
    color: var(--accent-blue);
    text-decoration: none;
    font-weight: 500;
}

.cookie-content a:hover {
    text-decoration: underline;
}

.cookie-accept {
    background: var(--accent-blue);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    flex-shrink: 0;
    white-space: nowrap;
}

.cookie-accept:hover {
    background: var(--accent-blue-hover);
    transform: translateY(-1px);
}

/* ===========================================
   ОСНОВНОЙ КОНТЕНТ
   =========================================== */

.main {
    padding-top: 80px;
    min-height: 100vh;
}

/* ===========================================
   ГЛАВНАЯ СТРАНИЦА
   =========================================== */

/* Логотип на главной странице */
.main-logo {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin: 40px 0 20px 0;
    padding: 20px;
}

.main-logo img {
    height: 50px;
    width: auto;
    transition: all 0.3s ease;
}

.main-logo:hover img {
    transform: scale(1.05);
}

/* Логотипы для разных тем на главной */
.main-logo .logo-dark {
    display: block;
}

.main-logo .logo-light {
    display: none;
}

.light-theme .main-logo .logo-dark {
    display: none;
}

.light-theme .main-logo .logo-light {
    display: block;
}

/* Секция героя */
.hero {
    text-align: center;
    padding: 80px 0;
    background: var(--gradient-hero);
    border-radius: 20px;
    margin: 40px 0;
    transition: all 0.3s ease;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle-new {
    font-size: 2rem;
    font-weight: 600;
    color: var(--accent-blue);
    margin-bottom: 25px;
    text-align: center;
}

.hero-subtitle {
    font-size: 1.3rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.5;
}

/* Секция нейросетей */
.neural-networks {
    padding: 60px 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 60px;
    color: var(--text-accent);
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

/* Карточки */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: 20px;
    padding: 30px;
    transition: all 0.3s ease;
    cursor: pointer;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-card);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.card:hover::before {
    opacity: 1;
}

.card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-blue);
    box-shadow: 0 20px 40px var(--shadow-light);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    position: relative;
    z-index: 2;
}

.card-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-accent);
}

.card-logo {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border-radius: 12px;
    backdrop-filter: blur(10px);
}

.logo-img {
    width: 30px;
    height: 30px;
    color: var(--text-accent);
}

.placeholder-logo {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--accent-blue);
}

.card-content {
    position: relative;
    z-index: 2;
}

.card-description {
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.5;
}

.card-tags {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.tag {
    background: rgba(0, 122, 255, 0.2);
    color: var(--accent-blue);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* Заглушки */
.coming-soon {
    opacity: 0.6;
    cursor: not-allowed;
}

.coming-soon:hover {
    transform: none;
    border-color: var(--border-primary);
    box-shadow: none;
}

.coming-soon::before {
    display: none;
}

/* Информационная секция */
.info-section {
    padding: 40px 0;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.info-card {
    background: rgba(255, 193, 7, 0.1);
    border: 1px solid var(--accent-yellow);
    border-radius: 15px;
    padding: 30px;
    text-align: left;
    transition: all 0.3s ease;
}

.info-card h3 {
    color: var(--accent-yellow);
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.info-card p {
    color: var(--text-primary);
    line-height: 1.6;
}

/* Контейнер блока курса */
#course-block-container {
    margin: 60px 0;
}

/* Карточка курса */
.course-card {
    background: var(--gradient-card);
    border: 1px solid var(--accent-blue);
    border-radius: 20px;
    padding: 30px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.course-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px var(--shadow-light);
}

.course-content {
    display: flex;
    gap: 30px;
    align-items: center;
}

.course-text {
    flex: 1;
}

.course-text h3 {
    color: var(--text-accent);
    font-size: 1.5rem;
    margin-bottom: 10px;
    font-weight: 700;
}

.course-text h4 {
    color: var(--accent-blue);
    font-size: 1.2rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.course-text p {
    color: var(--text-primary);
    line-height: 1.6;
    margin-bottom: 20px;
}

.course-btn {
    display: inline-block;
    background: var(--accent-blue);
    color: white;
    text-decoration: none;
    padding: 12px 25px;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 122, 255, 0.3);
}

.course-btn:hover {
    background: var(--accent-blue-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 122, 255, 0.4);
}

.course-image {
    flex-shrink: 0;
}

.course-img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 15px;
    border: 2px solid var(--accent-blue);
}

/* ===========================================
   СТРАНИЦА НЕЙРОСЕТИ
   =========================================== */

/* ===========================================
   БОКОВАЯ НАВИГАЦИЯ
   =========================================== */

.sidebar {
    position: fixed;
    top: 80px;
    left: 20px;
    width: 240px;
    max-height: calc(100vh - 100px);
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: 15px;
    padding: 20px;
    backdrop-filter: blur(10px);
    z-index: 100;
    overflow-y: auto;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px var(--shadow-medium);
}

.sidebar-content {
    position: relative;
}

/* Логотип в сайдбаре */
.sidebar-logo {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-bottom: 20px;
    padding: 10px;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}

.sidebar-logo:hover {
    transform: scale(1.05);
}

.sidebar-logo img {
    height: 40px;
    width: auto;
    transition: all 0.3s ease;
}

/* Десктопные логотипы - показываем только один в зависимости от темы */
.sidebar-logo .logo-dark {
    display: block;
}

.sidebar-logo .logo-light,
.sidebar-logo .logo-small-dark,
.sidebar-logo .logo-small-light {
    display: none;
}

.light-theme .sidebar-logo .logo-dark {
    display: none;
}

.light-theme .sidebar-logo .logo-light {
    display: block;
}

/* Скрываем мобильный логотип в десктопной версии */
.mobile-logo-container {
    display: none;
}



.sidebar-nav {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-nav li {
    margin-bottom: 8px;
    opacity: 0;
    transform: translateX(-20px);
    animation: slideInLeft 0.5s ease forwards;
}

.sidebar-nav li:nth-child(1) { animation-delay: 0.1s; }
.sidebar-nav li:nth-child(2) { animation-delay: 0.2s; }
.sidebar-nav li:nth-child(3) { animation-delay: 0.3s; }
.sidebar-nav li:nth-child(4) { animation-delay: 0.4s; }
.sidebar-nav li:nth-child(5) { animation-delay: 0.5s; }
.sidebar-nav li:nth-child(6) { animation-delay: 0.6s; }

.sidebar-link {
    display: block;
    color: var(--text-secondary);
    text-decoration: none;
    padding: 10px 15px;
    border-radius: 8px;
    font-size: 0.9rem;
    line-height: 1.4;
    transition: all 0.3s ease;
    position: relative;
    border-left: 3px solid transparent;
    white-space: nowrap;
}

.sidebar-link:hover {
    color: var(--text-accent);
    background: var(--bg-card-hover);
    transform: translateX(5px);
}

.sidebar-link.active {
    color: var(--accent-blue);
    background: rgba(0, 122, 255, 0.1);
    font-weight: 500;
    border-left-color: var(--accent-blue);
}

.neural-network-page {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px 0;
    margin-left: 280px; /* Отступ для сайдбара */
    transition: margin-left 0.3s ease;
}

.nn-header {
    display: flex;
    align-items: flex-start;
    gap: 30px;
    margin-bottom: 60px;
    padding: 40px;
    background: var(--gradient-hero);
    border-radius: 20px;
    border: 1px solid var(--border-primary);
    transition: all 0.3s ease;
}

.nn-logo {
    width: 160px;
    height: 160px;
    background: var(--bg-card);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    flex-shrink: 0;
}

.nn-logo-img {
    width: 100px;
    height: 100px;
    color: var(--bg-primary);
}

.nn-title-section {
    flex: 1;
}

.nn-title {
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-accent);
    margin-bottom: 10px;
}

.nn-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.nn-description {
    color: var(--text-primary);
    line-height: 1.7;
    font-size: 1.1rem;
}

.nn-content {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.nn-section {
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: 15px;
    padding: 30px;
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
}

.nn-section ul {
    margin: 0;
    padding-left: 20px;
}

.nn-section li {
    margin-bottom: 8px;
    line-height: 1.6;
}

.nn-section .section-title {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--text-accent);
    margin-bottom: 20px;
    text-align: left;
}

/* ===========================================
   СВЯЗАННЫЕ СЕРВИСЫ
   =========================================== */

.related-services {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.service-item {
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s ease;
}

.service-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px var(--shadow-medium);
    border-color: var(--accent-blue);
}

.service-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.service-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    filter: brightness(0) invert(1);
}

.light-theme .service-icon {
    filter: brightness(0) invert(0);
}

.service-name {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-accent);
    margin: 0;
}

.service-description {
    color: var(--text-secondary);
    line-height: 1.5;
    font-size: 0.95rem;
}

.service-link {
    display: inline-block;
    margin-top: 8px;
    color: var(--accent-blue);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.service-link:hover {
    color: var(--accent-blue-hover);
    text-decoration: underline;
}

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

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.info-item {
    background: var(--bg-card);
    padding: 20px;
    border-radius: 10px;
    border: 1px solid var(--border-primary);
    transition: all 0.3s ease;
}

.info-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--shadow-light);
}

.info-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.info-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    filter: brightness(0) invert(1);
}

.light-theme .info-icon {
    filter: brightness(0) invert(0);
}

/* Исключения для корпоративных иконок */
.info-icon[src*="play-market"],
.info-icon[src*="app-store"],
.info-icon[src*="usa-flag"],
.info-icon[src*="ru-flag"],
.info-icon[src*="fr-flag"],
.info-icon[src*="cn-flag"],
.info-icon[src*="telegram"],
.service-icon[src*="telegram"],
.service-icon[src*="vk"],
.service-icon[src*="max"] {
    filter: none !important;
}

.service-icon[src*="play-market"] {
    filter: none !important;
}

.info-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
    margin: 0;
}

.info-link {
    color: var(--accent-blue);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.info-link:hover {
    color: var(--accent-blue-hover);
}

.info-text {
    color: var(--text-primary);
    font-weight: 500;
}

.info-text.positive {
    color: var(--accent-green);
}

.info-text.negative {
    color: var(--accent-red);
}

/* ===========================================
   ВОЗМОЖНОСТИ
   =========================================== */

.capabilities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.capability-item {
    padding: 20px;
    border-radius: 10px;
    border: 1px solid;
    background: var(--bg-card);
    transition: all 0.3s ease;
}

.capability-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--shadow-medium);
}

.capability-item.positive {
    border-color: var(--accent-green);
}

.capability-item.negative {
    border-color: var(--accent-red);
}

.capability-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.capability-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    color: var(--text-accent);
}

.capability-item.positive .capability-icon {
    color: var(--accent-green);
}

.capability-item.negative .capability-icon {
    color: var(--accent-red);
}

.capability-item h3 {
    color: var(--text-accent);
    margin: 0;
    font-size: 1.1rem;
}

.capability-item p {
    color: var(--text-secondary);
    line-height: 1.5;
}

/* ===========================================
   СИЛЬНЫЕ И СЛАБЫЕ СТОРОНЫ
   =========================================== */

.pros-cons-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 20px;
}

.pros-section, .cons-section {
    background: var(--bg-card);
    border-radius: 15px;
    padding: 25px;
    border: 1px solid var(--border-primary);
    transition: all 0.3s ease;
}

.pros-section:hover, .cons-section:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px var(--shadow-medium);
}

.pros-title, .cons-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    font-size: 1.3rem;
    font-weight: 600;
}

.pros-title {
    color: var(--accent-green);
}

.cons-title {
    color: var(--accent-red);
}

.section-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    color: var(--text-accent);
}

.pros-list, .cons-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.pros-list li, .cons-list li {
    padding: 12px 0;
    border-bottom: 1px solid var(--border-primary);
    position: relative;
    padding-left: 30px;
    color: var(--text-primary);
    line-height: 1.5;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateX(-20px);
    animation: slideInLeft 0.5s ease forwards;
}

.pros-list li:nth-child(1) { animation-delay: 0.1s; }
.pros-list li:nth-child(2) { animation-delay: 0.2s; }
.pros-list li:nth-child(3) { animation-delay: 0.3s; }
.pros-list li:nth-child(4) { animation-delay: 0.4s; }
.pros-list li:nth-child(5) { animation-delay: 0.5s; }
.pros-list li:nth-child(6) { animation-delay: 0.6s; }
.pros-list li:nth-child(7) { animation-delay: 0.7s; }

.cons-list li:nth-child(1) { animation-delay: 0.1s; }
.cons-list li:nth-child(2) { animation-delay: 0.2s; }
.cons-list li:nth-child(3) { animation-delay: 0.3s; }
.cons-list li:nth-child(4) { animation-delay: 0.4s; }
.cons-list li:nth-child(5) { animation-delay: 0.5s; }
.cons-list li:nth-child(6) { animation-delay: 0.6s; }

.pros-list li:hover, .cons-list li:hover {
    transform: translateX(5px);
    color: var(--text-accent);
}

.pros-list li:last-child, .cons-list li:last-child {
    border-bottom: none;
}

.pros-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent-green);
    font-weight: bold;
    font-size: 1.2rem;
}

.cons-list li::before {
    content: '✗';
    position: absolute;
    left: 0;
    color: var(--accent-red);
    font-weight: bold;
    font-size: 1.2rem;
}

@keyframes slideInLeft {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ===========================================
   ВАЖНАЯ ИНФОРМАЦИЯ
   =========================================== */

/* Контейнер важной информации */
#important-info-container {
    margin: 60px 0;
}

/* Якорь для важной информации */
#important {
    position: relative;
    top: -100px; /* Компенсация для фиксированного заголовка */
    visibility: hidden;
}

.important-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.info-block {
    padding: 25px;
    border-radius: 15px;
    border: 1px solid;
    transition: all 0.3s ease;
}

.info-block.warning {
    background: rgba(255, 193, 7, 0.1);
    border-color: var(--accent-yellow);
}

.info-block.info {
    background: rgba(0, 122, 255, 0.1);
    border-color: var(--accent-blue);
}

.info-block h3 {
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.info-block.warning h3 {
    color: var(--accent-yellow);
}

.info-block.info h3 {
    color: var(--accent-blue);
}

.info-block p {
    color: var(--text-primary);
    line-height: 1.6;
}

/* ===========================================
   КНОПКА НАЗАД
   =========================================== */

.back-button {
    margin-top: 40px;
    text-align: center;
}

.btn-back {
    display: inline-block;
    background: rgba(0, 122, 255, 0.1);
    color: var(--accent-blue);
    text-decoration: none;
    padding: 15px 30px;
    border-radius: 25px;
    border: 1px solid var(--accent-blue);
    font-weight: 500;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.btn-back:hover {
    background: rgba(0, 122, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px var(--shadow-light);
}

/* ===========================================
   ПОДВАЛ
   =========================================== */

.footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-primary);
    padding: 40px 0;
    text-align: center;
    margin-top: 60px;
    transition: all 0.3s ease;
}

.footer p {
    color: var(--text-secondary);
}

.footer a {
    color: var(--accent-blue);
    text-decoration: none;
    font-weight: 500;
}

.footer a:hover {
    text-decoration: underline;
}

/* ===========================================
   АДАПТИВНОСТЬ
   =========================================== */

@media (max-width: 1024px) {
    .sidebar {
        position: fixed;
        left: 0;
        top: 0;
        right: 0;
        width: 100vw;
        height: auto;
        transform: none;
        background: var(--bg-primary);
        border: none;
        border-bottom: 1px solid var(--border-primary);
        border-radius: 0;
        padding: 12px 0;
        box-shadow: 0 2px 10px var(--shadow-light);
        z-index: 1000;
        backdrop-filter: blur(20px);
    }
    
    .sidebar-content {
        width: 100%;
        max-width: 100%;
    }
    
    /* Скрываем десктопный логотип в мобильной версии */
    .desktop-logo {
        display: none;
    }
    
    /* Мобильный логотип внутри навигации */
    .mobile-logo-container {
        display: block;
        flex-shrink: 0;
        margin-bottom: 0;
        animation: none;
        opacity: 1;
        transform: none;
    }
    
    .mobile-logo {
        margin-bottom: 0;
        padding: 8px 12px;
        flex-shrink: 0;
        justify-content: center;
    }
    
    .mobile-logo img {
        height: 30px;
    }
    
    /* Мобильные логотипы - скрываем десктопные, показываем мобильные */
    .sidebar-logo .logo-dark,
    .sidebar-logo .logo-light {
        display: none !important;
    }
    
    .sidebar-logo .logo-small-dark {
        display: block !important;
    }
    
    .sidebar-logo .logo-small-light {
        display: none !important;
    }
    
    .light-theme .sidebar-logo .logo-small-dark {
        display: none !important;
    }
    
    .light-theme .sidebar-logo .logo-small-light {
        display: block !important;
    }
    
    .sidebar-nav {
        display: flex;
        gap: 15px;
        overflow-x: auto;
        overflow-y: hidden;
        padding: 0 20px 5px 20px;
        margin: 0;
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
        align-items: center;
    }
    
    .sidebar-nav::-webkit-scrollbar {
        height: 3px;
    }
    
    .sidebar-nav::-webkit-scrollbar-track {
        background: transparent;
    }
    
    .sidebar-nav::-webkit-scrollbar-thumb {
        background: var(--accent-blue);
        border-radius: 3px;
    }
    
    .sidebar-nav li {
        flex-shrink: 0;
        margin-bottom: 0;
        animation: none;
        opacity: 1;
        min-width: fit-content;
    }
    
    .sidebar-link {
        padding: 10px 18px;
        font-size: 0.9rem;
        border-radius: 25px;
        transform: none;
        white-space: nowrap;
        font-weight: 500;
        transition: all 0.3s ease;
        border: 1px solid transparent;
    }
    
    .sidebar-link:hover {
        transform: none;
        background: var(--bg-secondary);
        border-color: var(--accent-blue);
    }
    
    .sidebar-link.active {
        background: var(--accent-blue);
        color: white;
        box-shadow: 0 2px 8px rgba(0, 122, 255, 0.3);
        border-color: var(--accent-blue);
    }
    
    .neural-network-page {
        margin-left: 0;
        max-width: 100%;
        padding-top: 70px; /* Отступ для фиксированного сайдбара */
    }
}

@media (max-width: 768px) {
        .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle-new {
        font-size: 1.5rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .cards-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .card {
        padding: 10px;
    }
    
    .nn-header {
        flex-direction: column;
        text-align: center;
        gap: 20px;
        padding: 30px 10px;
    }
    
    .nn-title {
        font-size: 2.5rem;
    }
    
    .info-grid, .capabilities-grid {
        grid-template-columns: 1fr;
    }
    
    .related-services {
        grid-template-columns: 1fr;
    }
    
    .pros-cons-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    #course-block-container,
    #important-info-container {
        margin: 30px 0;
    }
    
    .important-info {
        gap: 15px;
    }
    
    .info-block {
        padding: 10px;
    }
    
    .nn-section {
        padding: 10px;
    }
    
    .info-icon, .capability-icon, .service-icon {
        width: 18px;
        height: 18px;
    }
    
    .section-icon {
        width: 20px;
        height: 20px;
    }
    
    .nn-logo {
        width: 120px;
        height: 120px;
        margin: 0 auto; /* Центрирование логотипа на мобильном */
    }
    
    .nn-logo-img {
        width: 75px;
        height: 75px;
    }
    
    .theme-toast {
        bottom: 20px;
        right: 20px;
    }
    
        .theme-toggle, .back-toggle {
        width: 45px;
        height: 45px;
    }

    .theme-icon, .back-icon {
        width: 20px;
        height: 20px;
    }
    
    .cookie-toast {
        bottom: 20px;
        left: 20px;
        right: 20px;
        max-width: none;
        padding: 15px;
    }
    
        .cookie-content {
        gap: 12px;
        flex-direction: column;
        align-items: stretch;
    }

    .cookie-content p {
        font-size: 0.85rem;
        text-align: center;
    }

    .cookie-accept {
        padding: 8px 16px;
        font-size: 0.85rem;
        align-self: center;
    }
    
    #course-block-container,
    #important-info-container {
        margin: 20px 0;
    }
    
    .course-content {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    
    .course-img {
        width: 120px;
        height: 120px;
    }
    
    .main-logo {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 40px 0;
        margin: 20px 0;
    }
    
    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle-new {
        font-size: 1.3rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .neural-network-page {
        padding: 20px 0;
    }
    
    .nn-title {
        font-size: 2rem;
    }
    
    .nn-section .section-title {
        font-size: 1.5rem;
    }
    
    .service-item {
        padding: 15px;
    }
    
    .pros-section, .cons-section {
        padding: 10px;
    }
    
    .nn-logo {
        width: 100px;
        height: 100px;
        margin: 0 auto; /* Центрирование логотипа на мобильном */
    }
    
    .nn-logo-img {
        width: 60px;
        height: 60px;
    }
    
    .theme-toast {
        bottom: 15px;
        right: 15px;
    }
    
        .theme-toggle, .back-toggle {
        width: 40px;
        height: 40px;
    }

    .theme-icon, .back-icon {
        width: 18px;
        height: 18px;
    }
    
    .cookie-toast {
        bottom: 15px;
        left: 15px;
        right: 15px;
        padding: 12px;
    }
    
    .cookie-content {
        gap: 10px;
    }
    
    .cookie-content p {
        font-size: 0.8rem;
    }
    
    .cookie-accept {
        padding: 6px 12px;
        font-size: 0.8rem;
    }
}

/* Стили для кликабельных карточек курсов */
.course-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    transition: transform 0.2s ease;
}

.course-card-link:hover {
    transform: translateY(-2px);
}

.course-card-link:hover .course-card {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Стили для курса */
.course-card-course {
    background: linear-gradient(135deg, #0088cc 0%, #005580 100%);
    border: 1px solid #0088cc;
}

.course-card-course .course-text h3,
.course-card-course .course-text h4,
.course-card-course .course-text p {
    color: white;
}

.course-btn-course {
    background: #ffffff;
    color: #0088cc;
    border: 2px solid #ffffff;
}

.course-btn-course:hover {
    background: #f0f0f0;
    color: #005580;
    border-color: #f0f0f0;
} 