/* Базовые сбросы и нормализация */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px; /* Фиксируем базовый размер шрифта */
    line-height: 1.5;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
    overflow-x: hidden; /* Предотвращаем горизонтальный скролл */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

/* Навигация */
.navbar {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-icon {
    width: 180px; /* Ширина для текстовой картинки */
    height: 50px; /* Высота для текстовой картинки */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}

.logo-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.logo-text {
    font-size: 18px;
    font-weight: bold;
    color: #ffffff;
    font-family: Arial, sans-serif;
    white-space: nowrap;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

.nav-menu a {
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.nav-menu a:hover,
.nav-menu a.active {
    background-color: rgba(255,255,255,0.2);
}
/* Альтернативный вариант - через паддинг body */
body {
    padding-top: 65px;
}

@media (max-width: 768px) {
    body {
        padding-top: 80px;
    }
}

@media (max-width: 480px) {
    body {
        padding-top: 70px;
    }
}
/* Стили для кнопки мобильного меню */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 5px;
    background: none;
    border: none;
}

.mobile-menu-btn span {
    width: 25px;
    height: 3px;
    background: white;
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

/* Адаптив для мобильных */
@media (max-width: 768px) {
    .mobile-menu-btn {
        display: flex;
    }

    /* Логотип ДОЛЖЕН оставаться видимым! */
    .logo {
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .logo-text {
        font-size: 16px; /* Уменьшаем размер текста */
        display: block; /* Убедимся что текст виден */
    }

    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        flex-direction: column;
        align-items: center;
        padding: 2rem 0;
        gap: 0;
        transition: left 0.3s ease;
        z-index: 999;
    }

    .nav-menu.active {
        left: 0;
    }
}

/* Для очень маленьких экранов */
@media (max-width: 768px) {
    .logo {
        gap: 8px;
    }
    
    .logo-icon {
        width: 140px;
        height: 40px;
    }
    
    .logo-text {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .logo-icon {
        width: 120px;
        height: 35px;
    }
    
    .logo-text {
        font-size: 12px;
    }
}

/* Добавьте отступ для основного контента */
main {
    margin-top: 80px;
}

@media (max-width: 768px) {
    main {
        margin-top: 70px;
    }
}

/* Герой секция */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 4rem 0;
    text-align: center;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Кнопки */
.btn {
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-block;
}

.btn-primary {
    background-color: #4CAF50;
    color: white;
}

.btn-primary:hover {
    background-color: #45a049;
    transform: translateY(-2px);
}

.btn-secondary {
    color: rgb(255, 255, 255);
    background: linear-gradient(135deg, rgb(102, 126, 234) 0%, rgb(118, 75, 162) 100%);
    backdrop-filter: blur(10px);
    border: 2px solid white;
}

.btn-secondary:hover {
    background-color: white;
    color: #667eea;
}

/* Карточки */
.features {
    padding: 4rem 0;
}

.features h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
    color: #333;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

/* Страница теории */
.theory-page {
    padding: 2rem 0;
}

.theory-section {
    background: white;
    padding: 2rem;
    margin-bottom: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.theory-section h2 {
    color: #667eea;
    margin-bottom: 1rem;
}

.insurance-types {
    display: grid;
    gap: 1.5rem;
}

.type-card {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid #667eea;
}

.concepts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.concept {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
}

.steps {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.step {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.step-number {
    background: #667eea;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

/* Страница игр */
.games-page {
    padding: 2rem 0;
}

.games-subtitle {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 1.2rem;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.game-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s;
}

.game-card:hover {
    transform: translateY(-5px);
}

.game-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.game-container {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.hidden {
    display: none;
}

/* Страница о проекте */
.about-page {
    padding: 2rem 0;
}

.about-section {
    background: white;
    padding: 2rem;
    margin-bottom: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.goals {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.goal {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
}

.audience-list {
    list-style: none;
    padding-left: 0;
}

.audience-list li {
    padding: 0.5rem 0;
    font-size: 1.1rem;
}

.contact-info {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    margin-top: 1rem;
}

/* Футер */
.footer {
    background: #333;
    color: white;
    text-align: center;
    padding: 2rem 0;
    margin-top: 3rem;
}

/* Адаптивность */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 1rem;
    }

    .nav-menu {
        gap: 1rem;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 200px;
        text-align: center;
    }
}

/* Стили для игр */
.game-container {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.game-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #f0f0f0;
}

/* Стили для квиза */
.quiz-question {
    text-align: center;
}

.question-text {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    color: #333;
    font-weight: 500;
}

.quiz-options {
    display: grid;
    gap: 1rem;
    max-width: 600px;
    margin: 0 auto;
}

.quiz-option {
    padding: 1rem 1.5rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    background: white;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 1rem;
    text-align: left;
}

.quiz-option:hover {
    border-color: #667eea;
    background-color: #f8f9ff;
}

.quiz-option:disabled {
    cursor: not-allowed;
}

.quiz-results {
    text-align: center;
}

.score-circle {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 2rem auto;
    font-size: 2rem;
    font-weight: bold;
}

.result-message {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: #333;
}

/* Адаптивность для игр */
@media (max-width: 768px) {
    .game-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .quiz-options {
        grid-template-columns: 1fr;
    }
    
    .question-text {
        font-size: 1.1rem;
    }
}

/* Дополнительные стили для расширенной теории и игр */
.theory-toc {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    border-left: 4px solid #667eea;
}

.theory-toc ul {
    columns: 2;
    margin-top: 1rem;
}

.theory-toc li {
    margin-bottom: 0.5rem;
}

.theory-toc a {
    color: #667eea;
    text-decoration: none;
}

.theory-toc a:hover {
    text-decoration: underline;
}

.info-box {
    background: #e3f2fd;
    border-left: 4px solid #2196f3;
    padding: 1rem 1.5rem;
    margin: 1rem 0;
    border-radius: 0 8px 8px 0;
}

.timeline {
    position: relative;
    margin: 2rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 30px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #667eea;
}

.timeline-item {
    display: flex;
    margin-bottom: 2rem;
    position: relative;
}

.timeline-year {
    background: #667eea;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: bold;
    margin-right: 2rem;
    min-width: 80px;
    text-align: center;
}

.timeline-content {
    flex: 1;
    background: white;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.insurance-types-detailed {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.type-card-expanded {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border-left: 6px solid #667eea;
}

.subtypes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.subtype {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
}

.subtype h4 {
    color: #667eea;
    margin-bottom: 1rem;
}

.concepts-grid-detailed {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.concept-detailed {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border-top: 4px solid #667eea;
}

.steps-detailed {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.step-detailed {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

.step-detailed .step-number {
    background: #667eea;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    flex-shrink: 0;
}

.step-content {
    flex: 1;
}

.process-flow {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    text-align: center;
}

.process-step {
    background: white;
    padding: 2rem 1rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.process-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.mistakes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.mistake-card {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    padding: 1.5rem;
    border-radius: 8px;
}

.digital-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.digital-card {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    text-align: center;
}

.theory-summary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 2rem;
    border-radius: 10px;
    margin-top: 3rem;
}

.theory-summary ul {
    margin-top: 1rem;
}

.theory-summary li {
    margin-bottom: 0.5rem;
    padding-left: 1rem;
    position: relative;
}

.theory-summary li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #4CAF50;
}

/* Стили для игр */
.quiz-progress {
    text-align: center;
    margin-bottom: 2rem;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #f0f0f0;
    border-radius: 4px;
    margin-top: 0.5rem;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    transition: width 0.3s ease;
}

.quiz-option {
    display: flex;
    align-items: center;
    padding: 1rem 1.5rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    background: white;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 1rem;
    text-align: left;
    width: 100%;
}

.quiz-option:hover {
    border-color: #667eea;
    background-color: #f8f9ff;
}

.option-letter {
    background: #667eea;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    font-weight: bold;
    flex-shrink: 0;
}

.option-text {
    flex: 1;
}

.score-display {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    margin: 2rem 0;
}

.score-percentage {
    font-size: 2rem;
    font-weight: bold;
    color: #667eea;
}

.result-emoji {
    font-size: 4rem;
    text-align: center;
    margin: 1rem 0;
}

.results-details {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.answers-review {
    max-height: 500px;
    overflow-y: auto;
    margin-bottom: 2rem;
}

.answer-item {
    background: white;
    padding: 1.5rem;
    margin-bottom: 1rem;
    border-radius: 8px;
    border-left: 4px solid #ccc;
}

.answer-item.correct {
    border-left-color: #4CAF50;
}

.answer-item.incorrect {
    border-left-color: #f44336;
}

.answer-explanation {
    color: #f44336;
    font-style: italic;
    margin-top: 0.5rem;
}

/* Стили для игры с терминами */
.terms-game-round {
    max-width: 800px;
    margin: 0 auto;
}

.round-progress {
    text-align: center;
    margin-bottom: 2rem;
}

.definition-card {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 10px;
    margin-bottom: 2rem;
    border-left: 4px solid #667eea;
}

.definition-text {
    font-size: 1.2rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.example-text {
    background: #e3f2fd;
    padding: 1rem;
    border-radius: 6px;
    font-style: italic;
    border-left: 3px solid #2196f3;
}

.terms-options {
    margin-bottom: 2rem;
}

.term-option {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 1rem 1.5rem;
    margin-bottom: 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    background: white;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 1rem;
}

.term-option:hover {
    border-color: #667eea;
    background-color: #f8f9ff;
}

.option-number {
    background: #667eea;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    font-weight: bold;
    flex-shrink: 0;
}

.term-text {
    flex: 1;
    font-weight: 500;
}

.current-score {
    text-align: center;
    font-size: 1.1rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.terms-results {
    text-align: center;
}

/* Адаптивность */
@media (max-width: 768px) {
    .theory-toc ul {
        columns: 1;
    }
    
    .step-detailed {
        flex-direction: column;
        text-align: center;
    }
    
    .step-detailed .step-number {
        align-self: center;
    }
    
    .process-flow {
        grid-template-columns: 1fr;
    }
    
    .score-display {
        flex-direction: column;
        gap: 1rem;
    }
    
    .results-details {
        flex-direction: column;
    }
    
    .results-details .btn {
        width: 100%;
    }
}

/* Стили для игры с полисами */
.policy-game-profile {
    max-width: 1000px;
    margin: 0 auto;
}

.profile-header {
    text-align: center;
    margin-bottom: 2rem;
}

.profile-info {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.profile-description {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
}

.budget-calculator {
    background: #e3f2fd;
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
}

.budget-display {
    font-size: 1.5rem;
    font-weight: bold;
    color: #2196f3;
    margin: 1rem 0;
}

.policies-selection {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.selection-hint {
    color: #666;
    font-style: italic;
    margin-bottom: 1rem;
}

.policies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.policy-checkbox {
    display: flex;
    align-items: flex-start;
    padding: 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    background: white;
}

.policy-checkbox:hover {
    border-color: #667eea;
    background: #f8f9ff;
}

.policy-checkbox input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid #ccc;
    border-radius: 4px;
    margin-right: 1rem;
    margin-top: 0.2rem;
    position: relative;
    flex-shrink: 0;
}

.policy-checkbox input[type="checkbox"]:checked + .checkmark {
    background: #667eea;
    border-color: #667eea;
}

.policy-checkbox input[type="checkbox"]:checked + .checkmark::after {
    content: '✓';
    position: absolute;
    color: white;
    font-size: 14px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.policy-info {
    flex: 1;
}

.policy-cost {
    color: #4CAF50;
    font-weight: bold;
    margin-top: 0.5rem;
}

.selection-summary {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.total-cost {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.budget-warning {
    color: #f44336;
    font-weight: bold;
}

/* Результаты выбора полисов */
.policy-results {
    max-width: 800px;
    margin: 0 auto;
}

.score-breakdown {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin: 2rem 0;
}

.score-card {
    padding: 1.5rem;
    border-radius: 8px;
}

.score-card.correct {
    background: #f8fff9;
    border: 2px solid #4CAF50;
}

.score-card.incorrect {
    background: #fff8f8;
    border: 2px solid #f44336;
}

.score-number {
    font-size: 2rem;
    font-weight: bold;
    text-align: center;
    margin: 1rem 0;
}

.score-card.correct .score-number {
    color: #4CAF50;
}

.score-card.incorrect .score-number {
    color: #f44336;
}

.policies-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.policy-item {
    padding: 0.5rem;
    border-radius: 4px;
    font-size: 0.9rem;
}

.policy-item.selected {
    background: #d4edda;
    color: #155724;
}

.policy-item.missed {
    background: #fff3cd;
    color: #856404;
}

.policy-item.extra {
    background: #f8d7da;
    color: #721c24;
}

.no-policies {
    text-align: center;
    color: #666;
    font-style: italic;
}

.missed-policies {
    background: #fff3cd;
    padding: 1.5rem;
    border-radius: 8px;
    margin: 1rem 0;
    border-left: 4px solid #ffc107;
}

.expert-explanation {
    background: #e3f2fd;
    padding: 1.5rem;
    border-radius: 8px;
    margin: 1rem 0;
    border-left: 4px solid #2196f3;
}

.round-score {
    text-align: center;
    margin: 2rem 0;
}

.score-value {
    font-size: 2rem;
    color: #667eea;
    font-weight: bold;
}

/* Финальные результаты */
.policy-final-results {
    text-align: center;
}

.final-score-display {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    margin: 2rem 0;
}

.profiles-summary {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 10px;
    margin: 2rem 0;
}

.profiles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.profile-result {
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
}

.profile-result.good {
    background: #d4edda;
    border: 1px solid #c3e6cb;
}

.profile-result.bad {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
}

.mini-score {
    font-weight: bold;
    margin-top: 0.5rem;
}

.profile-result.good .mini-score {
    color: #155724;
}

.profile-result.bad .mini-score {
    color: #721c24;
}

/* Адаптивность */
@media (max-width: 768px) {
    .profile-info {
        grid-template-columns: 1fr;
    }
    
    .score-breakdown {
        grid-template-columns: 1fr;
    }
    
    .policies-grid {
        grid-template-columns: 1fr;
    }
    
    .final-score-display {
        flex-direction: column;
    }
    
    .profiles-grid {
        grid-template-columns: 1fr;
    }
}

/* Стили для главной страницы */

/* Герой секция */
.hero {
    position: relative;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 4rem 0;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.hero-shapes {
    position: relative;
    width: 100%;
    height: 100%;
}

.shape {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
}

.shape-1 {
    width: 200px;
    height: 200px;
    top: 10%;
    left: 10%;
    animation: float 6s ease-in-out infinite;
}

.shape-2 {
    width: 150px;
    height: 150px;
    bottom: 20%;
    right: 15%;
    animation: float 8s ease-in-out infinite reverse;
}

.shape-3 {
    width: 100px;
    height: 100px;
    top: 50%;
    right: 20%;
    animation: float 10s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

.hero .container {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    backdrop-filter: blur(10px);
}

.hero-title {
    margin-bottom: 1.5rem;
}

.title-main {
    display: block;
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.1;
}

.title-sub {
    display: block;
    font-size: 2rem;
    font-weight: 300;
    opacity: 0.9;
}

.hero-description {
    font-size: 1.2rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-stats {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
}

.stat {
    text-align: center;
}

.stat-number {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.8;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-icon {
    margin-right: 0.5rem;
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.hero-visual {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.visual-card {
    background: rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: transform 0.3s ease;
}

.visual-card:hover {
    transform: translateY(-5px);
}

.visual-card .card-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.visual-card .card-content h4 {
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.visual-card .card-content p {
    opacity: 0.8;
    font-size: 0.9rem;
    margin: 0;
}

/* Секция с играми */
.games-preview {
    padding: 4rem 0;
    background: #f8f9fa;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.2rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

.games-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.game-preview-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #f0f0f0;
}

.game-preview-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.game-preview-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.game-preview-content h3 {
    margin-bottom: 1rem;
    color: #333;
}

.game-preview-content p {
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.game-stats {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.game-stats .stat {
    background: #f8f9fa;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    color: #666;
}

.btn-outline {
    background: transparent;
    border: 2px solid #667eea;
    color: #667eea;
}

.btn-outline:hover {
    background: #667eea;
    color: white;
}

.games-cta {
    text-align: center;
    background: white;
    padding: 3rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.games-cta h3 {
    margin-bottom: 1rem;
    color: #333;
}

.games-cta p {
    color: #666;
    margin-bottom: 2rem;
}

/* Путь обучения */
.learning-path {
    padding: 4rem 0;
}

.path-steps {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.path-step {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

.step-number {
    background: #667eea;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    flex-shrink: 0;
}

.step-content {
    flex: 1;
}

.step-content h3 {
    margin-bottom: 1rem;
    color: #333;
}

.step-content p {
    color: #666;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.step-content ul {
    color: #666;
    padding-left: 1.5rem;
}

.step-content li {
    margin-bottom: 0.5rem;
}

/* Преимущества */
.benefits {
    padding: 4rem 0;
    background: #f8f9fa;
}

.benefits-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    align-items: center;
}

.benefits-content h2 {
    margin-bottom: 2rem;
    color: #333;
}

.benefits-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.benefit-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.benefit-icon {
    background: #667eea;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.benefit-text h4 {
    margin-bottom: 0.5rem;
    color: #333;
}

.benefit-text p {
    color: #666;
    line-height: 1.5;
}

.benefits-visual {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.visual-element {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.visual-element:hover {
    transform: translateY(-5px);
}

.visual-element .element-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.visual-element p {
    font-weight: 600;
    color: #333;
    margin: 0;
}

/* CTA секция */
.cta-section {
    padding: 4rem 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-align: center;
}

.cta-content h2 {
    margin-bottom: 1rem;
    font-size: 2.5rem;
}

.cta-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.btn-light {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-light:hover {
    background: white;
    color: #667eea;
}

.cta-features {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.cta-feature {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    opacity: 0.9;
}

.feature-check {
    font-size: 1.1rem;
}

/* Футер */
.footer {
    background: #333;
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    margin-bottom: 1rem;
    color: white;
}

.footer-description {
    opacity: 0.8;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    display: inline-block;
    padding: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    transition: background 0.3s ease;
}

.social-link:hover {
    background: rgba(255, 255, 255, 0.2);
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: white;
}

.contact-info p {
    margin-bottom: 0.5rem;
    opacity: 0.8;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    text-align: center;
    opacity: 0.7;
}

.footer-bottom p {
    margin-bottom: 0.5rem;
}

/* Адаптивность */
@media (max-width: 768px) {
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .title-main {
        font-size: 2.5rem;
    }
    
    .title-sub {
        font-size: 1.5rem;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .games-preview-grid {
        grid-template-columns: 1fr;
    }
    
    .path-step {
        flex-direction: column;
        text-align: center;
    }
    
    .benefits-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-features {
        flex-direction: column;
        gap: 1rem;
    }
}

/* Мобильное меню */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.mobile-menu-btn span {
    width: 25px;
    height: 3px;
    background: white;
    transition: 0.3s;
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: flex;
    }
    
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #667eea;
        flex-direction: column;
        padding: 1rem;
    }
    
    .nav-menu.active {
        display: flex;
    }
}

/* Дополнительные стили для игры с терминами */
.terms-game-round {
    max-width: 800px;
    margin: 0 auto;
}

.round-progress {
    text-align: center;
    margin-bottom: 2rem;
}

.definition-card {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 10px;
    margin-bottom: 2rem;
    border-left: 4px solid #667eea;
}

.definition-text {
    font-size: 1.2rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    color: #333;
}

.example-text {
    background: #e3f2fd;
    padding: 1rem;
    border-radius: 6px;
    font-style: italic;
    border-left: 3px solid #2196f3;
    margin-top: 1rem;
}

.terms-options {
    margin-bottom: 2rem;
}

.term-option {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 1rem 1.5rem;
    margin-bottom: 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    background: white;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 1rem;
    position: relative;
}

.term-option:hover {
    border-color: #667eea;
    background-color: #f8f9ff;
}

.option-number {
    background: #667eea;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    font-weight: bold;
    flex-shrink: 0;
}

.term-text {
    flex: 1;
    font-weight: 500;
}

.correct-mark {
    color: #4CAF50;
    font-weight: bold;
    margin-left: 1rem;
}

.incorrect-mark {
    color: #f44336;
    font-weight: bold;
    margin-left: 1rem;
}

.current-score {
    text-align: center;
    font-size: 1.1rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.answer-explanation {
    margin-top: 2rem;
}

.explanation-content {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border-left: 6px solid #ccc;
}

.explanation-content.correct {
    border-left-color: #4CAF50;
}

.explanation-content.incorrect {
    border-left-color: #f44336;
}

.explanation-content h4 {
    margin-bottom: 1rem;
}

.explanation-content p {
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

/* Результаты игры */
.terms-results {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.results-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin: 2rem 0;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 10px;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
}

.stat-label {
    font-weight: 500;
    color: #666;
}

.stat-value {
    font-weight: bold;
    color: #333;
}

.terms-review {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    margin: 2rem 0;
    border: 1px solid #e0e0e0;
}

.terms-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.term-review-item {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 6px;
    border-left: 3px solid #667eea;
    font-size: 0.9rem;
    line-height: 1.4;
}

.more-terms {
    text-align: center;
    color: #666;
    font-style: italic;
    margin-top: 1rem;
}

/* Адаптивность */
@media (max-width: 768px) {
    .definition-card {
        padding: 1.5rem;
    }
    
    .definition-text {
        font-size: 1.1rem;
    }
    
    .terms-options {
        margin-bottom: 1rem;
    }
    
    .term-option {
        padding: 0.8rem 1rem;
    }
    
    .results-stats {
        grid-template-columns: 1fr;
    }
    
    .terms-list {
        grid-template-columns: 1fr;
    }
    
    .explanation-content {
        padding: 1.5rem;
    }
}

/* Стили для страницы теории */

/* Герой секция теории */
.theory-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 3rem 0;
    position: relative;
    overflow: hidden;
}

.theory-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 100" fill="rgba(255,255,255,0.1)"><polygon points="0,0 1000,100 1000,0"/></svg>');
    background-size: cover;
}

.theory-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.theory-breadcrumbs {
    margin-bottom: 1rem;
    font-size: 0.9rem;
    opacity: 0.8;
}

.theory-breadcrumbs a {
    color: white;
    text-decoration: none;
}

.theory-breadcrumbs span {
    opacity: 0.6;
}

.theory-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.1;
}

.theory-subtitle {
    font-size: 1.3rem;
    opacity: 0.9;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.5;
}

.theory-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.theory-stat {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 1rem 1.5rem;
    border-radius: 10px;
    backdrop-filter: blur(10px);
}

.stat-icon {
    font-size: 2rem;
}

.stat-content {
    text-align: left;
}

.stat-number {
    font-size: 1.8rem;
    font-weight: bold;
    line-height: 1;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Основной layout */
.theory-layout {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 3rem;
    margin: 3rem 0;
}

/* Боковая панель */
.theory-sidebar {
    position: relative;
}

.sidebar-sticky {
    position: sticky;
    top: 2rem;
}

.sidebar-header {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    margin-bottom: 1.5rem;
}

.sidebar-header h3 {
    margin-bottom: 1rem;
    color: #333;
}

.reading-progress {
    margin-top: 1rem;
}

.progress-text {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 0.5rem;
}

.sidebar-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-nav li {
    margin-bottom: 0.5rem;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1rem;
    background: white;
    border-radius: 8px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.nav-link:hover {
    background: #f8f9fa;
    border-left-color: #667eea;
}

.nav-link.active {
    background: #667eea;
    color: white;
    border-left-color: #556cd6;
}

.sidebar-actions {
    margin-top: 2rem;
}

.btn-block {
    width: 100%;
    margin-bottom: 0.5rem;
    text-align: center;
}

/* Основной контент */
.theory-content {
    min-height: 100vh;
}

.content-wrapper {
    max-width: 100%;
}

/* Быстрый доступ */
.quick-access {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 2rem;
    border-radius: 15px;
    margin-bottom: 3rem;
}

.quick-access h3 {
    margin-bottom: 1.5rem;
    text-align: center;
}

.quick-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.quick-card {
    background: rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
    border-radius: 10px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.3s ease;
}

.quick-card:hover {
    transform: translateY(-5px);
}

.quick-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.quick-content h4 {
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.quick-content p {
    opacity: 0.9;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.quick-link {
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
}

.quick-link:hover {
    text-decoration: underline;
}

/* Секции теории */
.theory-section {
    background: white;
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #f0f0f0;
}

.section-icon {
    font-size: 2rem;
    background: #667eea;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.section-header h2 {
    color: #333;
    margin: 0;
    font-size: 1.8rem;
}

/* Карточка определения */
.definition-card {
    display: flex;
    gap: 1.5rem;
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 10px;
    margin-bottom: 2rem;
    border-left: 4px solid #667eea;
}

.definition-icon {
    font-size: 2.5rem;
    flex-shrink: 0;
}

.definition-content {
    flex: 1;
}

.definition-content p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin: 0;
    color: #333;
}

/* Принципы */
.principles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.principle-card {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    border: 2px solid #f0f0f0;
    text-align: center;
    transition: transform 0.3s ease;
}

.principle-card:hover {
    transform: translateY(-5px);
    border-color: #667eea;
}

.principle-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.principle-card h4 {
    margin-bottom: 1rem;
    color: #333;
}

.principle-card p {
    color: #666;
    line-height: 1.5;
    margin: 0;
}

/* Информационные блоки */
.info-box {
    padding: 1.5rem;
    border-radius: 10px;
    margin: 1.5rem 0;
}

.info-box.important {
    background: #e3f2fd;
    border-left: 4px solid #2196f3;
}

.info-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.info-icon {
    font-size: 1.5rem;
}

.info-header h4 {
    margin: 0;
    color: #333;
}

.info-box p {
    margin: 0;
    line-height: 1.6;
    color: #2f0e3b;
}

/* Вкладки */
.types-tabs {
    margin: 2rem 0;
}

.tab-buttons {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.tab-button {
    padding: 1rem 1.5rem;
    background: #f8f9fa;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.tab-button:hover {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

.tab-button.active {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.type-detail h4 {
    margin-bottom: 1.5rem;
    color: #333;
}

.subtypes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.subtype-card {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid #667eea;
}

.subtype-card h5 {
    margin-bottom: 1rem;
    color: #333;
}

.subtype-card ul {
    padding-left: 1.5rem;
    color: #666;
}

.subtype-card li {
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

/* Сетка понятий */
.concepts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.concept-card {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    border: 2px solid #f0f0f0;
    transition: all 0.3s ease;
}

.concept-card:hover {
    border-color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.concept-icon {
    font-size: 1.5rem;
    background: #667eea;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.concept-content h4 {
    margin-bottom: 0.5rem;
    color: #333;
}

.concept-content p {
    color: #666;
    margin: 0;
    line-height: 1.4;
}

/* Шаги руководства */
.steps-guide {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.step-item {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

.step-number {
    background: #667eea;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    flex-shrink: 0;
}

.step-content {
    flex: 1;
}

.step-content h4 {
    margin-bottom: 0.5rem;
    color: #333;
}

.step-content p {
    color: #666;
    margin-bottom: 1rem;
}

.step-content ul {
    color: #666;
    padding-left: 1.5rem;
}

.step-content li {
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

/* Адаптивность */
@media (max-width: 1024px) {
    .theory-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .theory-sidebar {
        order: 2;
    }
    
    .theory-content {
        order: 1;
    }
    
    .sidebar-sticky {
        position: static;
    }
}

@media (max-width: 768px) {
    .theory-title {
        font-size: 2.2rem;
    }
    
    .theory-subtitle {
        font-size: 1.1rem;
    }
    
    .theory-stats {
        gap: 1rem;
    }
    
    .theory-stat {
        flex-direction: column;
        text-align: center;
        padding: 1rem;
    }
    
    .quick-cards {
        grid-template-columns: 1fr;
    }
    
    .section-header {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
    
    .definition-card {
        flex-direction: column;
        text-align: center;
    }
    
    .principles-grid {
        grid-template-columns: 1fr;
    }
    
    .tab-buttons {
        flex-direction: column;
    }
    
    .tab-button {
        text-align: center;
    }
    
    .subtypes-grid {
        grid-template-columns: 1fr;
    }
    
    .concepts-grid {
        grid-template-columns: 1fr;
    }
    
    .step-item {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .theory-section {
        padding: 1.5rem;
    }
}

/* Стили для печати */
@media print {
    .navbar,
    .theory-hero,
    .theory-sidebar,
    .quick-access,
    .footer {
        display: none;
    }
    
    .theory-layout {
        grid-template-columns: 1fr;
        margin: 0;
    }
    
    .theory-content {
        min-height: auto;
    }
    
    .theory-section {
        box-shadow: none;
        border: 1px solid #ddd;
        page-break-inside: avoid;
    }
}
/* Стили для страницы игр */

/* Герой секция игр */
.games-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}

.games-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 100" fill="rgba(255,255,255,0.1)"><polygon points="0,100 1000,0 1000,100"/></svg>');
    background-size: cover;
}

.games-hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

.games-breadcrumbs {
    margin-bottom: 1rem;
    font-size: 0.9rem;
    opacity: 0.8;
}

.games-breadcrumbs a {
    color: white;
    text-decoration: none;
}

.games-breadcrumbs span {
    opacity: 0.6;
}

.games-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.1;
}

.games-subtitle {
    font-size: 1.3rem;
    opacity: 0.9;
    margin-bottom: 2rem;
    line-height: 1.5;
}

.games-stats {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.games-stat {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 1rem 1.5rem;
    border-radius: 10px;
    backdrop-filter: blur(10px);
}

.stat-icon {
    font-size: 2rem;
}

.stat-content {
    text-align: left;
}

.stat-number {
    font-size: 1.8rem;
    font-weight: bold;
    line-height: 1;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.8;
}

.games-features {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.feature-tag {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    backdrop-filter: blur(10px);
}

.tag-icon {
    font-size: 1rem;
}

/* Визуальная часть героя */
.games-hero-visual {
    position: relative;
    height: 300px;
}

.floating-card {
    position: absolute;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    padding: 1.5rem;
    text-align: center;
    animation: float 6s ease-in-out infinite;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.floating-card .card-icon {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.floating-card .card-text {
    font-weight: 600;
    font-size: 0.9rem;
}

.quiz-card {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.terms-card {
    top: 10%;
    right: 20%;
    animation-delay: 1.5s;
}

.simulator-card {
    bottom: 30%;
    left: 20%;
    animation-delay: 3s;
}

.policy-card {
    bottom: 20%;
    right: 10%;
    animation-delay: 4.5s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}

/* Быстрый выбор игр */
.quick-games-section {
    padding: 4rem 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 1rem;
}

.section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.quick-games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.quick-game-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.quick-game-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.quick-game-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    border-color: #667eea;
}

.game-icon-wrapper {
    position: relative;
    margin-bottom: 1.5rem;
}

.game-icon {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.game-badge {
    display: inline-block;
    background: #667eea;
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
}

.game-content {
    flex: 1;
    margin-bottom: 1.5rem;
}

.game-content h3 {
    margin-bottom: 1rem;
    color: #333;
    font-size: 1.3rem;
}

.game-content p {
    color: #666;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.game-meta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.meta-item {
    background: #f8f9fa;
    padding: 0.3rem 0.8rem;
    border-radius: 12px;
    font-size: 0.8rem;
    color: #666;
}

.play-button {
    text-align: center;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.quick-game-card:hover .play-button {
    background: #667eea;
    color: white;
}

.play-icon {
    font-size: 1.2rem;
}

/* Детальное описание игр */
.games-details-section {
    padding: 4rem 0;
    background: #f8f9fa;
}

.games-details-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.game-detail-card {
    background: white;
    border-radius: 15px;
    padding: 2.5rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    border: 1px solid #f0f0f0;
}

.game-header {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid #f8f9fa;
}

.game-main-icon {
    font-size: 3rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.game-title-section {
    flex: 1;
}

.game-title-section h3 {
    margin-bottom: 1rem;
    color: #333;
    font-size: 1.5rem;
}

.game-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.game-tag {
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
}

.game-tag.beginner {
    background: #e3f2fd;
    color: #1976d2;
}

.game-tag.advanced {
    background: #f3e5f5;
    color: #7b1fa2;
}

.game-tag.testing {
    background: #e8f5e8;
    color: #388e3c;
}

.game-tag.learning {
    background: #fff3e0;
    color: #f57c00;
}

.game-tag.practice {
    background: #fce4ec;
    color: #c2185b;
}

.game-tag.analysis {
    background: #e0f2f1;
    color: #00796b;
}

.game-description {
    margin-bottom: 2rem;
}

.game-description p {
    color: #666;
    line-height: 1.6;
    font-size: 1.1rem;
}

.game-features {
    margin-bottom: 2rem;
}

.game-features h4 {
    margin-bottom: 1rem;
    color: #333;
}

.features-list {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.feature-icon {
    font-size: 1.1rem;
    flex-shrink: 0;
}

.game-stats-detailed {
    display: flex;
    justify-content: space-around;
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 10px;
    margin-bottom: 2rem;
}

.stat-item {
    text-align: center;
}

.stat-value {
    font-size: 1.8rem;
    font-weight: bold;
    color: #667eea;
    line-height: 1;
}

.stat-label {
    font-size: 0.9rem;
    color: #eeeeee;
    margin-top: 0.3rem;
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    width: 100%;
}

/* Игровые контейнеры */
.game-container {
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    margin: 2rem 0;
    overflow: hidden;
    display: none;
}

.game-header-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 2rem;
    background: #f8f9fa;
    border-bottom: 2px solid #e9ecef;
}

.game-title-bar {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.game-icon-small {
    font-size: 2rem;
}

.game-title-bar h2 {
    margin: 0;
    color: #333;
}

.btn-back {
    background: transparent;
    border: 2px solid #667eea;
    color: #667eea;
    padding: 0.5rem 1rem;
}

.btn-back:hover {
    background: #667eea;
    color: white;
}

.back-icon {
    margin-right: 0.5rem;
}

.game-actions {
    display: flex;
    gap: 1rem;
}

.game-content-area {
    padding: 2rem;
    min-height: 500px;
}

/* Адаптивность */
@media (max-width: 1024px) {
    .games-hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .games-hero-visual {
        height: 200px;
    }
    
    .floating-card {
        padding: 1rem;
    }
    
    .floating-card .card-icon {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .games-title {
        font-size: 2.2rem;
    }
    
    .games-subtitle {
        font-size: 1.1rem;
    }
    
    .games-stats {
        justify-content: center;
    }
    
    .games-stat {
        flex-direction: column;
        text-align: center;
        padding: 1rem;
    }
    
    .games-features {
        justify-content: center;
    }
    
    .quick-games-grid {
        grid-template-columns: 1fr;
    }
    
    .games-details-container {
        grid-template-columns: 1fr;
    }
    
    .game-header {
        flex-direction: column;
        text-align: center;
    }
    
    .game-main-icon {
        align-self: center;
    }
    
    .game-stats-detailed {
        flex-direction: column;
        gap: 1rem;
    }
    
    .game-header-bar {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .game-title-bar {
        flex-direction: column;
        gap: 0.5rem;
    }
}

/* Анимации */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.quick-game-card,
.game-detail-card {
    animation: slideIn 0.6s ease-out;
}

.quick-game-card:nth-child(2) { animation-delay: 0.1s; }
.quick-game-card:nth-child(3) { animation-delay: 0.2s; }
.quick-game-card:nth-child(4) { animation-delay: 0.3s; }

.game-detail-card:nth-child(2) { animation-delay: 0.1s; }
.game-detail-card:nth-child(3) { animation-delay: 0.2s; }
.game-detail-card:nth-child(4) { animation-delay: 0.3s; }

/* Стили для новых разделов теории */

/* Процесс страхования */
.process-flow {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.process-step {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    padding: 2rem;
    background: #f8f9fa;
    border-radius: 15px;
    border-left: 4px solid #667eea;
    transition: all 0.3s ease;
}

.process-step:hover {
    background: white;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transform: translateX(10px);
}

.step-number {
    background: #667eea;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    font-weight: bold;
    flex-shrink: 0;
}

.step-content {
    flex: 1;
}

.step-content h4 {
    margin-bottom: 1rem;
    color: #333;
    font-size: 1.3rem;
}

.step-content p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.step-details {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    border: 1px solid #e9ecef;
}

.step-details h5 {
    margin-bottom: 1rem;
    color: #333;
    font-size: 1.1rem;
}

.step-details ul {
    color: #666;
    padding-left: 1.5rem;
}

.step-details li {
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.responsibilities-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-top: 1rem;
}

.responsibility-card {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 3px solid #667eea;
}

.responsibility-card h6 {
    margin-bottom: 1rem;
    color: #333;
    font-size: 1rem;
}

.responsibility-card ul {
    padding-left: 1rem;
    font-size: 0.9rem;
}

.responsibility-card li {
    margin-bottom: 0.3rem;
}

/* Частые ошибки */
.mistakes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.mistake-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border-top: 4px solid #ccc;
    transition: transform 0.3s ease;
}

.mistake-card:hover {
    transform: translateY(-5px);
}

.mistake-card.danger {
    border-top-color: #f44336;
}

.mistake-card.warning {
    border-top-color: #ff9800;
}

.mistake-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #f8f9fa;
}

.mistake-icon {
    font-size: 2rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.mistake-card.danger .mistake-icon {
    background: #f44336;
    color: white;
}

.mistake-card.warning .mistake-icon {
    background: #ff9800;
    color: white;
}

.mistake-header h4 {
    margin: 0;
    color: #333;
}

.mistake-content p {
    margin-bottom: 1rem;
    line-height: 1.5;
}

.mistake-content p strong {
    color: #333;
}

.solution {
    background: #e8f5e8;
    padding: 1rem;
    border-radius: 8px;
    border-left: 4px solid #4caf50;
    margin-top: 1rem;
}

.solution strong {
    color: #2e7d32;
}

/* Чек-лист предотвращения ошибок */
.prevention-guide {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 2.5rem;
    border-radius: 15px;
    margin-top: 2rem;
}

.prevention-guide h3 {
    margin-bottom: 2rem;
    text-align: center;
}

.checklist {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
}

.checklist-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    backdrop-filter: blur(10px);
}

.checklist-item input[type="checkbox"] {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    border: 2px solid white;
    background: transparent;
    appearance: none;
    position: relative;
    flex-shrink: 0;
}

.checklist-item input[type="checkbox"]:checked {
    background: #4caf50;
    border-color: #4caf50;
}

.checklist-item input[type="checkbox"]:checked::after {
    content: '✓';
    position: absolute;
    color: white;
    font-size: 14px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.checklist-item label {
    margin: 0;
    line-height: 1.4;
}

/* Цифровое страхование */
.digital-intro {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 10px;
    margin-bottom: 2rem;
    border-left: 4px solid #667eea;
}

.digital-intro p {
    margin: 0;
    font-size: 1.1rem;
    line-height: 1.6;
}

.tech-features {
    margin: 3rem 0;
}

.tech-features h3 {
    margin-bottom: 2rem;
    color: #333;
    text-align: center;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.tech-feature-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    border: 1px solid #f0f0f0;
    transition: transform 0.3s ease;
}

.tech-feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.tech-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-align: center;
}

.tech-feature-card h4 {
    margin-bottom: 1rem;
    color: #333;
    text-align: center;
}

.tech-feature-card p {
    color: #666;
    line-height: 1.5;
    margin-bottom: 1.5rem;
}

.tech-benefits {
    list-style: none;
    padding: 0;
}

.tech-benefits li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #f0f0f0;
    color: #4caf50;
    font-weight: 500;
}

.tech-benefits li:last-child {
    border-bottom: none;
}

.digital-trends {
    margin: 3rem 0;
}

.digital-trends h3 {
    margin-bottom: 2rem;
    color: #333;
}

.trends-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.trend-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.trend-item:hover {
    background: white;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.trend-icon {
    font-size: 2rem;
    background: #667eea;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.trend-content h4 {
    margin-bottom: 0.5rem;
    color: #333;
}

.trend-content p {
    color: #666;
    margin: 0;
    line-height: 1.5;
}

.digital-benefits {
    margin: 3rem 0;
}

.digital-benefits h3 {
    margin-bottom: 2rem;
    color: #333;
    text-align: center;
}

.benefits-comparison {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.comparison-column {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.comparison-column h4 {
    margin-bottom: 1.5rem;
    text-align: center;
    color: #333;
}

.disadvantages, .advantages {
    list-style: none;
    padding: 0;
}

.disadvantages li, .advantages li {
    padding: 0.8rem 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 1rem;
}

.disadvantages li:last-child, .advantages li:last-child {
    border-bottom: none;
}

.disadvantages li {
    color: #f44336;
}

.advantages li {
    color: #4caf50;
}

.info-box.future {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-left: 4px solid #556cd6;
}

.info-box.future .info-header h4 {
    color: white;
}

/* Заключительный блок */
.theory-summary {
    background: #f8f9fa;
    padding: 3rem;
    border-radius: 15px;
    margin-top: 3rem;
    text-align: center;
}

.theory-summary h3 {
    margin-bottom: 2rem;
    color: #333;
}

.summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.summary-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s ease;
}

.summary-card:hover {
    transform: translateY(-5px);
}

.summary-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.summary-content h4 {
    margin-bottom: 1rem;
    color: #333;
}

.summary-content p {
    color: #666;
    line-height: 1.5;
    margin: 0;
}

.summary-actions {
    text-align: center;
}

/* Адаптивность для новых разделов */
@media (max-width: 768px) {
    .process-step {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .responsibilities-grid {
        grid-template-columns: 1fr;
    }
    
    .mistakes-grid {
        grid-template-columns: 1fr;
    }
    
    .checklist {
        grid-template-columns: 1fr;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .trend-item {
        flex-direction: column;
        text-align: center;
    }
    
    .benefits-comparison {
        grid-template-columns: 1fr;
    }
    
    .summary-grid {
        grid-template-columns: 1fr;
    }
    
    .process-step:hover {
        transform: none;
    }
    
    .tech-feature-card:hover {
        transform: none;
    }
    
    .summary-card:hover {
        transform: none;
    }
}
/* Стили для страницы "О проекте" */

/* Герой секция */
.about-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}

.about-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 100" fill="rgba(255,255,255,0.1)"><polygon points="0,0 1000,100 1000,0"/></svg>');
    background-size: cover;
}

.about-hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

.about-breadcrumbs {
    margin-bottom: 1rem;
    font-size: 0.9rem;
    opacity: 0.8;
}

.about-breadcrumbs a {
    color: white;
    text-decoration: none;
}

.about-breadcrumbs span {
    opacity: 0.6;
}

.about-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.1;
}

.about-subtitle {
    font-size: 1.3rem;
    opacity: 0.9;
    margin-bottom: 2rem;
    line-height: 1.5;
}

.hero-stats {
    display: flex;
    gap: 2rem;
}

.hero-stat {
    text-align: center;
}

.hero-stat .stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    display: block;
}

.hero-stat .stat-label {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Визуальная часть героя */
.about-hero-visual {
    position: relative;
    height: 300px;
}

.floating-element {
    position: absolute;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    padding: 1.5rem;
    text-align: center;
    animation: float 6s ease-in-out infinite;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    width: 120px;
}

.floating-element .element-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.floating-element .element-text {
    font-weight: 600;
    font-size: 0.9rem;
}

.mission {
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.education {
    top: 20%;
    right: 15%;
    animation-delay: 1.5s;
}

.innovation {
    bottom: 30%;
    left: 15%;
    animation-delay: 3s;
}

.community {
    bottom: 20%;
    right: 10%;
    animation-delay: 4.5s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}

/* Основные секции */
.about-page {
    padding: 4rem 0;
}

.section-header.centered {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header.centered .section-icon {
    margin: 0 auto 1rem;
}

.section-subtitle {
    font-size: 1.2rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.5;
}

/* Миссия проекта */
.mission-section {
    margin-bottom: 6rem;
}

.mission-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    align-items: start;
}

.mission-text p {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    color: #555;
}

.mission-text p strong {
    color: #333;
    font-weight: 600;
}

.vision-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 2.5rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

.vision-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.vision-content h4 {
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.vision-content p {
    line-height: 1.5;
    opacity: 0.9;
    margin: 0;
}

/* Цели проекта */
.goals-section {
    margin-bottom: 6rem;
}

.goals-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.goal-card {
    background: white;
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    border: 1px solid #f0f0f0;
    transition: transform 0.3s ease;
}

.goal-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.goal-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.goal-content h3 {
    margin-bottom: 1rem;
    color: #333;
    text-align: center;
    font-size: 1.4rem;
}

.goal-content p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    text-align: center;
}

.goal-features {
    list-style: none;
    padding: 0;
}

.goal-features li {
    padding: 0.8rem 0;
    border-bottom: 1px solid #f0f0f0;
    color: #555;
    position: relative;
    padding-left: 1.5rem;
}

.goal-features li:last-child {
    border-bottom: none;
}

.goal-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #4caf50;
    font-weight: bold;
}

/* Аудитория проекта */
.audience-section {
    margin-bottom: 6rem;
}

.audience-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.audience-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.audience-card:hover {
    border-color: #667eea;
    transform: translateY(-5px);
}

.audience-avatar {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.audience-content h3 {
    margin-bottom: 1rem;
    color: #333;
    font-size: 1.3rem;
}

.audience-content p {
    color: #666;
    line-height: 1.5;
    margin-bottom: 1.5rem;
}

.audience-benefits {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}

.benefit-tag {
    background: #f8f9fa;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    color: #666;
    border: 1px solid #e9ecef;
}

/* Преимущества */
.advantages-section {
    margin-bottom: 6rem;
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.advantage-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease;
    border: 1px solid #f0f0f0;
}

.advantage-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.advantage-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.advantage-card h3 {
    margin-bottom: 1rem;
    color: #333;
    font-size: 1.2rem;
}

.advantage-card p {
    color: #666;
    line-height: 1.5;
    margin: 0;
}

/* Команда */
.team-section {
    margin-bottom: 6rem;
}

.team-card {
    background: white;
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    display: flex;
    gap: 3rem;
    align-items: flex-start;
    max-width: 900px;
    margin: 0 auto;
}

.team-avatar {
    flex-shrink: 0;
}

.avatar-icon {
    font-size: 4rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.team-info {
    flex: 1;
}

.team-info h3 {
    margin-bottom: 0.5rem;
    color: #333;
    font-size: 1.5rem;
}

.team-role {
    color: #667eea;
    font-weight: 600;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.team-description {
    color: #666;
    line-height: 1.6;
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.team-principles {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.principle {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.principle-icon {
    font-size: 1.5rem;
    background: #f8f9fa;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.principle-content h4 {
    margin-bottom: 0.5rem;
    color: #333;
}

.principle-content p {
    color: #666;
    margin: 0;
    line-height: 1.5;
}

/* Контакты */
.contacts-section {
    margin-bottom: 6rem;
}

.contacts-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    transition: transform 0.3s ease;
}

.contact-card:hover {
    transform: translateX(10px);
}

.contact-icon {
    font-size: 2rem;
    background: #f8f9fa;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-details h4 {
    margin-bottom: 0.5rem;
    color: #333;
}

.contact-details p {
    font-size: 1.1rem;
    color: #667eea;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.contact-details small {
    color: #666;
    font-size: 0.9rem;
}

/* Форма обратной связи */
.feedback-form {
    background: white;
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.feedback-form h3 {
    margin-bottom: 0.5rem;
    color: #333;
}

.feedback-form > p {
    color: #666;
    margin-bottom: 2rem;
}

.feedback-form-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 0.5rem;
    color: #333;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    padding: 1rem;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* CTA секция */
.cta-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 4rem 2rem;
    border-radius: 20px;
    text-align: center;
    margin: 4rem 0;
}

.cta-content h2 {
    margin-bottom: 1rem;
    font-size: 2.2rem;
}

.cta-content p {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-light {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-light:hover {
    background: white;
    color: #667eea;
}

/* Футер */
.footer-features {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 1rem;
}

.footer-feature {
    font-size: 0.9rem;
    color: #666;
}

/* Адаптивность */
@media (max-width: 1024px) {
    .about-hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .about-hero-visual {
        height: 200px;
        order: -1;
    }
    
    .mission-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .contacts-content {
        grid-template-columns: 1fr;
    }
    
    .team-card {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .about-title {
        font-size: 2.2rem;
    }
    
    .about-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-stats {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .goals-grid {
        grid-template-columns: 1fr;
    }
    
    .audience-cards {
        grid-template-columns: 1fr;
    }
    
    .advantages-grid {
        grid-template-columns: 1fr;
    }
    
    .team-card {
        padding: 2rem;
    }
    
    .contact-card {
        flex-direction: column;
        text-align: center;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .floating-element {
        padding: 1rem;
        width: 100px;
    }
    
    .principle {
        flex-direction: column;
        text-align: center;
    }
}

/* Анимации */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.goal-card,
.audience-card,
.advantage-card {
    animation: slideInUp 0.6s ease-out;
}

.goal-card:nth-child(2) { animation-delay: 0.1s; }
.goal-card:nth-child(3) { animation-delay: 0.2s; }

.audience-card:nth-child(2) { animation-delay: 0.1s; }
.audience-card:nth-child(3) { animation-delay: 0.2s; }
.audience-card:nth-child(4) { animation-delay: 0.3s; }

.advantage-card:nth-child(2) { animation-delay: 0.1s; }
.advantage-card:nth-child(3) { animation-delay: 0.2s; }
.advantage-card:nth-child(4) { animation-delay: 0.3s; }
.advantage-card:nth-child(5) { animation-delay: 0.4s; }
.advantage-card:nth-child(6) { animation-delay: 0.5s; }/* Стили для страницы "О проекте" */

/* Герой секция */
.about-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}

.about-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 100" fill="rgba(255,255,255,0.1)"><polygon points="0,0 1000,100 1000,0"/></svg>');
    background-size: cover;
}

.about-hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

.about-breadcrumbs {
    margin-bottom: 1rem;
    font-size: 0.9rem;
    opacity: 0.8;
}

.about-breadcrumbs a {
    color: white;
    text-decoration: none;
}

.about-breadcrumbs span {
    opacity: 0.6;
}

.about-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.1;
}

.about-subtitle {
    font-size: 1.3rem;
    opacity: 0.9;
    margin-bottom: 2rem;
    line-height: 1.5;
}

.hero-stats {
    display: flex;
    gap: 2rem;
}

.hero-stat {
    text-align: center;
}

.hero-stat .stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    display: block;
}

.hero-stat .stat-label {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Визуальная часть героя */
.about-hero-visual {
    position: relative;
    height: 300px;
}

.floating-element {
    position: absolute;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    padding: 1.5rem;
    text-align: center;
    animation: float 6s ease-in-out infinite;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    width: 120px;
}

.floating-element .element-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.floating-element .element-text {
    font-weight: 600;
    font-size: 0.9rem;
}

.mission {
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.education {
    top: 20%;
    right: 15%;
    animation-delay: 1.5s;
}

.innovation {
    bottom: 30%;
    left: 15%;
    animation-delay: 3s;
}

.community {
    bottom: 20%;
    right: 10%;
    animation-delay: 4.5s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}

/* Основные секции */
.about-page {
    padding: 4rem 0;
}

.section-header.centered {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header.centered .section-icon {
    margin: 0 auto 1rem;
}

.section-subtitle {
    font-size: 1.2rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.5;
}

/* Миссия проекта */
.mission-section {
    margin-bottom: 6rem;
}

.mission-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    align-items: start;
}

.mission-text p {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    color: #555;
}

.mission-text p strong {
    color: #333;
    font-weight: 600;
}

.vision-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 2.5rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

.vision-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.vision-content h4 {
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.vision-content p {
    line-height: 1.5;
    opacity: 0.9;
    margin: 0;
}

/* Цели проекта */
.goals-section {
    margin-bottom: 6rem;
}

.goals-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.goal-card {
    background: white;
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    border: 1px solid #f0f0f0;
    transition: transform 0.3s ease;
}

.goal-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.goal-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.goal-content h3 {
    margin-bottom: 1rem;
    color: #333;
    text-align: center;
    font-size: 1.4rem;
}

.goal-content p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    text-align: center;
}

.goal-features {
    list-style: none;
    padding: 0;
}

.goal-features li {
    padding: 0.8rem 0;
    border-bottom: 1px solid #f0f0f0;
    color: #555;
    position: relative;
    padding-left: 1.5rem;
}

.goal-features li:last-child {
    border-bottom: none;
}

.goal-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #4caf50;
    font-weight: bold;
}

/* Аудитория проекта */
.audience-section {
    margin-bottom: 6rem;
}

.audience-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.audience-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.audience-card:hover {
    border-color: #667eea;
    transform: translateY(-5px);
}

.audience-avatar {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.audience-content h3 {
    margin-bottom: 1rem;
    color: #333;
    font-size: 1.3rem;
}

.audience-content p {
    color: #666;
    line-height: 1.5;
    margin-bottom: 1.5rem;
}

.audience-benefits {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}

.benefit-tag {
    background: #f8f9fa;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    color: #666;
    border: 1px solid #e9ecef;
}

/* Преимущества */
.advantages-section {
    margin-bottom: 6rem;
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.advantage-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease;
    border: 1px solid #f0f0f0;
}

.advantage-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.advantage-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.advantage-card h3 {
    margin-bottom: 1rem;
    color: #333;
    font-size: 1.2rem;
}

.advantage-card p {
    color: #666;
    line-height: 1.5;
    margin: 0;
}

/* Команда */
.team-section {
    margin-bottom: 6rem;
}

.team-card {
    background: white;
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    display: flex;
    gap: 3rem;
    align-items: flex-start;
    max-width: 900px;
    margin: 0 auto;
}

.team-avatar {
    flex-shrink: 0;
}

.avatar-icon {
    font-size: 4rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.team-info {
    flex: 1;
}

.team-info h3 {
    margin-bottom: 0.5rem;
    color: #333;
    font-size: 1.5rem;
}

.team-role {
    color: #667eea;
    font-weight: 600;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.team-description {
    color: #666;
    line-height: 1.6;
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.team-principles {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.principle {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.principle-icon {
    font-size: 1.5rem;
    background: #f8f9fa;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.principle-content h4 {
    margin-bottom: 0.5rem;
    color: #333;
}

.principle-content p {
    color: #666;
    margin: 0;
    line-height: 1.5;
}

/* Контакты */
.contacts-section {
    margin-bottom: 6rem;
}

.contacts-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    transition: transform 0.3s ease;
}

.contact-card:hover {
    transform: translateX(10px);
}

.contact-icon {
    font-size: 2rem;
    background: #f8f9fa;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-details h4 {
    margin-bottom: 0.5rem;
    color: #333;
}

.contact-details p {
    font-size: 1.1rem;
    color: #667eea;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.contact-details small {
    color: #666;
    font-size: 0.9rem;
}

/* Форма обратной связи */
.feedback-form {
    background: white;
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.feedback-form h3 {
    margin-bottom: 0.5rem;
    color: #333;
}

.feedback-form > p {
    color: #666;
    margin-bottom: 2rem;
}

.feedback-form-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 0.5rem;
    color: #333;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    padding: 1rem;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* CTA секция */
.cta-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 4rem 2rem;
    border-radius: 20px;
    text-align: center;
    margin: 4rem 0;
}

.cta-content h2 {
    margin-bottom: 1rem;
    font-size: 2.2rem;
}

.cta-content p {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-light {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-light:hover {
    background: white;
    color: #667eea;
}

/* Футер */
.footer-features {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 1rem;
}

.footer-feature {
    font-size: 0.9rem;
    color: #666;
}

/* Адаптивность */
@media (max-width: 1024px) {
    .about-hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .about-hero-visual {
        height: 200px;
        order: -1;
    }
    
    .mission-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .contacts-content {
        grid-template-columns: 1fr;
    }
    
    .team-card {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .about-title {
        font-size: 2.2rem;
    }
    
    .about-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-stats {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .goals-grid {
        grid-template-columns: 1fr;
    }
    
    .audience-cards {
        grid-template-columns: 1fr;
    }
    
    .advantages-grid {
        grid-template-columns: 1fr;
    }
    
    .team-card {
        padding: 2rem;
    }
    
    .contact-card {
        flex-direction: column;
        text-align: center;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .floating-element {
        padding: 1rem;
        width: 100px;
    }
    
    .principle {
        flex-direction: column;
        text-align: center;
    }
}

/* Анимации */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.goal-card,
.audience-card,
.advantage-card {
    animation: slideInUp 0.6s ease-out;
}

.goal-card:nth-child(2) { animation-delay: 0.1s; }
.goal-card:nth-child(3) { animation-delay: 0.2s; }

.audience-card:nth-child(2) { animation-delay: 0.1s; }
.audience-card:nth-child(3) { animation-delay: 0.2s; }
.audience-card:nth-child(4) { animation-delay: 0.3s; }

.advantage-card:nth-child(2) { animation-delay: 0.1s; }
.advantage-card:nth-child(3) { animation-delay: 0.2s; }
.advantage-card:nth-child(4) { animation-delay: 0.3s; }
.advantage-card:nth-child(5) { animation-delay: 0.4s; }
.advantage-card:nth-child(6) { animation-delay: 0.5s; }

/* Исправленные стили для героя games.html */

/* Герой секция игр - исправленная высота */
.games-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 3rem 0; /* Уменьшил padding */
    position: relative;
    overflow: hidden;
    min-height: auto; /* Убрал фиксированную высоту */
}

.games-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 100" fill="rgba(255,255,255,0.1)"><polygon points="0,100 1000,0 1000,100"/></svg>');
    background-size: cover;
}

.games-hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem; /* Уменьшил gap */
    align-items: center;
    position: relative;
    z-index: 2;
}

/* Исправленная статистика для games.html */
.games-hero-stats {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.games-hero-stat {
    text-align: center;
    flex: 1;
    min-width: 100px;
}

.games-stat-number {
    font-size: 2rem; /* Уменьшил размер */
    font-weight: bold;
    margin-bottom: 0.5rem;
    display: block;
    line-height: 1;
}

.games-stat-label {
    font-size: 0.8rem; /* Уменьшил размер */
    opacity: 0.8;
    line-height: 1.2;
}

/* Уменьшаем размер визуальной части */
.games-hero-visual {
    position: relative;
    height: 250px; /* Уменьшил высоту */
}

.floating-card {
    position: absolute;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px; /* Уменьшил радиус */
    padding: 1rem; /* Уменьшил padding */
    text-align: center;
    animation: float 6s ease-in-out infinite;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    width: 90px; /* Уменьшил ширину */
}

.floating-card .card-icon {
    font-size: 2rem; /* Уменьшил размер иконок */
    margin-bottom: 0.3rem;
}

.floating-card .card-text {
    font-weight: 600;
    font-size: 0.8rem; /* Уменьшил размер текста */
}

/* Позиции карточек */
.quiz-card {
    top: 15%;
    left: 10%;
    animation-delay: 0s;
}

.terms-card {
    top: 10%;
    right: 15%;
    animation-delay: 1.5s;
}

.simulator-card {
    bottom: 25%;
    left: 15%;
    animation-delay: 3s;
}

.policy-card {
    bottom: 15%;
    right: 10%;
    animation-delay: 4.5s;
}

/* Уменьшаем анимацию */
@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(3deg); } /* Уменьшил амплитуду */
}

/* Исправляем быстрые игры - статистика внутри карточек */
.quick-game-card .game-meta {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
    margin-top: auto;
}

.quick-game-card .meta-item {
    background: #f8f9fa;
    padding: 0.3rem 0.6rem;
    border-radius: 10px;
    font-size: 0.75rem;
    color: #666;
}

/* Адаптивность для мобильных */
@media (max-width: 1024px) {
    .games-hero .container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    .games-hero-visual {
        height: 200px;
        order: -1;
    }
    
    .games-hero-stats {
        justify-content: center;
    }
    
    .games-hero-stat {
        min-width: 80px;
    }
}

@media (max-width: 768px) {
    .games-hero {
        padding: 2rem 0;
    }
    
    .games-title {
        font-size: 2.2rem;
    }
    
    .games-subtitle {
        font-size: 1.1rem;
        margin-bottom: 1.5rem;
    }
    
    .games-hero-stats {
        gap: 1rem;
    }
    
    .games-stat-number {
        font-size: 1.7rem;
    }
    
    .games-stat-label {
        font-size: 0.7rem;
    }
    
    .games-features {
        justify-content: center;
    }
    
    .feature-tag {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }
    
    .floating-card {
        padding: 0.8rem;
        width: 80px;
    }
    
    .floating-card .card-icon {
        font-size: 1.7rem;
    }
    
    .floating-card .card-text {
        font-size: 0.7rem;
    }
}

/* Убедимся, что другие hero-секции не затронуты */
.theory-hero,
.about-hero {
    padding: 4rem 0; /* Оставляем оригинальный padding для других страниц */
}

.theory-hero .container,
.about-hero .container {
    gap: 4rem; /* Оставляем оригинальный gap для других страниц */
}

/* Стили для компактной статистики */
.games-compact-stats {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.8rem;
    margin-top: 0.8rem;
    font-size: 0.85rem;
    opacity: 0.9;
    flex-wrap: wrap;
}

.compact-stat {
    white-space: nowrap;
}

@media (max-width: 480px) {
    .games-compact-stats {
        font-size: 0.8rem;
        gap: 0.5rem;
    }
}


/* ПРОСТОЙ И НАДЕЖНЫЙ ВАРИАНТ С ТЕМНЫМ ФОНОМ */
.game-stats-detailed {
    display: flex;
    justify-content: space-between;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    border: 1px solid #556cd6;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    width: 100%;
    box-sizing: border-box;
}

.stat-item {
    text-align: center;
    flex: 1;
    display: block;
}

.stat-value {
    font-size: 1.6rem;
    font-weight: 700;
    color: white;
    line-height: 1;
    margin-bottom: 0.5rem;
    display: block;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.stat-label {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    line-height: 1.2;
    display: block;
}

@media (max-width: 768px) {
    .game-stats-detailed {
        padding: 1rem;
    }
    
    .stat-value {
        font-size: 1.4rem;
    }
    
    .stat-label {
        font-size: 0.7rem;
    }
}

/* Стили для игровых контейнеров */
.game-container {
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    margin: 2rem 0;
    overflow: hidden;
    display: none; /* По умолчанию скрыты */
}

.game-header-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 2rem;
    background: #f8f9fa;
    border-bottom: 2px solid #e9ecef;
}

.game-title-bar {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.game-icon-small {
    font-size: 2rem;
}

.game-title-bar h2 {
    margin: 0;
    color: #333;
}

.btn-back {
    background: transparent;
    border: 2px solid #667eea;
    color: #667eea;
    padding: 0.5rem 1rem;
}

.btn-back:hover {
    background: #667eea;
    color: white;
}

.back-icon {
    margin-right: 0.5rem;
}

.game-actions {
    display: flex;
    gap: 1rem;
}

.game-content-area {
    padding: 2rem;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Адаптивность для игр */
@media (max-width: 768px) {
    .game-header-bar {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .game-title-bar {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .game-content-area {
        padding: 1rem;
        min-height: 300px;
    }
}

/* СТИЛИ ДЛЯ СИМУЛЯТОРА СТРАХОВЫХ СЛУЧАЕВ */
.simulator-scenario,
.simulator-step,
.simulator-results {
    max-width: 800px;
    margin: 0 auto;
    width: 100%;
}

/* Заголовок сценария */
.scenario-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 2rem;
    border-radius: 15px;
    margin-bottom: 2rem;
    text-align: center;
}

.scenario-header h3 {
    margin: 0 0 1rem 0;
    font-size: 1.5rem;
}

.scenario-progress {
    font-size: 0.9rem;
    opacity: 0.9;
}

.progress-bar {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
    margin-top: 0.5rem;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: white;
    transition: width 0.3s ease;
}

/* Карточка ситуации */
.situation-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    border-left: 4px solid #667eea;
    margin-bottom: 2rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.situation-card h4 {
    color: #333;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.situation-card p {
    color: #666;
    line-height: 1.6;
    font-size: 1.1rem;
    margin: 0;
}

/* Шаги сценария */
.scenario-steps {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.step-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 10px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.step-item.active {
    border-color: #667eea;
    background: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.2);
}

.step-item.completed {
    background: #d4edda;
    border-color: #c3e6cb;
}

.step-number {
    background: #667eea;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    flex-shrink: 0;
}

.step-item.completed .step-number {
    background: #28a745;
}

.step-question {
    flex: 1;
    color: #333;
    font-weight: 500;
}

.step-status {
    color: #28a745;
    font-weight: bold;
    font-size: 1.2rem;
}

/* Шаг вопроса */
.step-header {
    background: white;
    padding: 1.5rem 2rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border-bottom: 3px solid #667eea;
}

.step-progress {
    color: #666;
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

.step-question-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.step-question-card h4 {
    color: #333;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.step-question-card p {
    color: #444;
    font-size: 1.1rem;
    line-height: 1.5;
    margin: 0;
    font-weight: 500;
}

/* Варианты ответов */
.step-options {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.step-option {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
    width: 100%;
    font-size: 1rem;
}

.step-option:hover {
    border-color: #667eea;
    background: #f8f9ff;
    transform: translateY(-2px);
}

.step-option:disabled {
    cursor: not-allowed;
    opacity: 0.8;
}

.option-indicator {
    background: #f8f9fa;
    color: #333;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.step-option:hover .option-indicator {
    background: #667eea;
    color: white;
}

.option-text {
    flex: 1;
    line-height: 1.4;
}

/* Текущий счет */
.current-scenario-score {
    background: #e3f2fd;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    text-align: center;
    color: #1976d2;
    font-weight: 500;
    margin-bottom: 1rem;
    border-left: 4px solid #2196f3;
}

/* Обратная связь */
.step-feedback {
    margin-top: 2rem;
}

.feedback-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border-left: 6px solid #ccc;
}

.feedback-card.correct {
    border-left-color: #28a745;
    background: linear-gradient(135deg, #d4edda 0%, #f8fff9 100%);
}

.feedback-card.incorrect {
    border-left-color: #dc3545;
    background: linear-gradient(135deg, #f8d7da 0%, #fff8f8 100%);
}

.feedback-card h4 {
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.feedback-card p {
    line-height: 1.6;
    margin-bottom: 1.5rem;
    color: #333;
}

/* Результаты */
.simulator-results {
    text-align: center;
    padding: 2rem;
}

.score-display {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.score-circle {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.score-percentage {
    font-size: 2.5rem;
    font-weight: bold;
    color: #667eea;
}

.result-emoji {
    font-size: 4rem;
    margin: 1rem 0;
}

.result-message {
    font-size: 1.2rem;
    color: #333;
    margin-bottom: 2rem;
    line-height: 1.5;
}

.scenarios-completed {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 10px;
    margin: 2rem 0;
    text-align: left;
}

.scenarios-completed h4 {
    color: #333;
    margin-bottom: 1rem;
    text-align: center;
}

.scenarios-completed ul {
    columns: 2;
    gap: 1rem;
}

.scenarios-completed li {
    margin-bottom: 0.5rem;
    color: #28a745;
    font-weight: 500;
}

.results-details {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2rem;
}

/* Анимации */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.simulator-scenario,
.simulator-step,
.simulator-results {
    animation: fadeIn 0.5s ease-out;
}

/* Адаптивность */
@media (max-width: 768px) {
    .scenario-header {
        padding: 1.5rem;
    }
    
    .situation-card,
    .step-question-card {
        padding: 1.5rem;
    }
    
    .step-item {
        padding: 1rem;
    }
    
    .step-option {
        padding: 1rem;
    }
    
    .score-display {
        flex-direction: column;
        gap: 1rem;
    }
    
    .scenarios-completed ul {
        columns: 1;
    }
    
    .results-details {
        flex-direction: column;
    }
    
    .results-details .btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .scenario-header h3 {
        font-size: 1.3rem;
    }
    
    .step-number {
        width: 35px;
        height: 35px;
    }
    
    .score-circle {
        width: 100px;
        height: 100px;
        font-size: 1.2rem;
    }
    
    .score-percentage {
        font-size: 2rem;
    }
}

/* Стили для детальной статистики сценариев */
.scenarios-stats {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 10px;
    margin: 2rem 0;
}

.scenarios-stats h4 {
    color: #333;
    margin-bottom: 1rem;
    text-align: center;
}

.scenarios-stats-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.scenario-stat-item {
    background: white;
    padding: 1rem;
    border-radius: 8px;
    border-left: 4px solid #6c757d;
}

.scenario-stat-item.perfect {
    border-left-color: #28a745;
}

.scenario-stat-item.good {
    border-left-color: #ffc107;
}

.scenario-stat-item.needs-improvement {
    border-left-color: #dc3545;
}

.scenario-stat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.scenario-title {
    font-weight: 500;
    color: #333;
}

.scenario-score {
    font-weight: bold;
    color: #667eea;
}

.scenario-progress-bar {
    width: 100%;
    height: 6px;
    background: #e9ecef;
    border-radius: 3px;
    overflow: hidden;
}

.scenario-progress-fill {
    height: 100%;
    background: #667eea;
    transition: width 0.3s ease;
}

.scenario-stat-item.perfect .scenario-progress-fill {
    background: #28a745;
}

.scenario-stat-item.good .scenario-progress-fill {
    background: #ffc107;
}

.scenario-stat-item.needs-improvement .scenario-progress-fill {
    background: #dc3545;
}

/* СТИЛИ ДЛЯ ИГРЫ "РАСШИФРУЙ ТЕРМИНЫ" */
.terms-game-round {
    max-width: 800px;
    margin: 0 auto;
    width: 100%;
}

/* Прогресс раунда */
.round-progress {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 1.1rem;
    color: #333;
    font-weight: 500;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #e9ecef;
    border-radius: 4px;
    margin-top: 0.5rem;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    transition: width 0.3s ease;
}

/* Карточка с определением */
.definition-card {
    background: white;
    padding: 2.5rem;
    border-radius: 15px;
    margin-bottom: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border-left: 6px solid #667eea;
}

.definition-card h3 {
    color: #333;
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
    text-align: center;
}

.definition-text {
    font-size: 1.2rem;
    line-height: 1.6;
    color: #444;
    margin-bottom: 1.5rem;
    text-align: center;
    font-weight: 500;
}

.example-text {
    background: #e3f2fd;
    padding: 1.2rem;
    border-radius: 8px;
    font-style: italic;
    border-left: 4px solid #2196f3;
    margin-top: 1.5rem;
    color: #1976d2;
}

.example-text strong {
    color: #1565c0;
}

/* Варианты ответов */
.terms-options {
    margin-bottom: 2rem;
}

.terms-options h4 {
    color: #333;
    margin-bottom: 1.5rem;
    text-align: center;
    font-size: 1.2rem;
}

.term-option {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 1.5rem;
    margin-bottom: 1rem;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.1rem;
    text-align: left;
}

.term-option:hover {
    border-color: #667eea;
    background: #f8f9ff;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.2);
}

.term-option:disabled {
    cursor: not-allowed;
    opacity: 0.9;
}

.option-number {
    background: #667eea;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1.5rem;
    font-weight: bold;
    flex-shrink: 0;
    font-size: 1rem;
}

.term-text {
    flex: 1;
    font-weight: 500;
    color: #333;
    font-size: 1.1rem;
}

.correct-mark {
    color: #28a745;
    font-weight: bold;
    margin-left: 1rem;
    font-size: 1.2rem;
}

.incorrect-mark {
    color: #dc3545;
    font-weight: bold;
    margin-left: 1rem;
    font-size: 1.2rem;
}

/* Текущий счет */
.current-score {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1.2rem;
    border-radius: 10px;
    text-align: center;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.current-score strong {
    font-size: 1.3rem;
}

/* Объяснение ответа */
.answer-explanation {
    margin-top: 2rem;
    animation: fadeIn 0.5s ease-out;
}

.explanation-content {
    background: white;
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    border-left: 6px solid #ccc;
}

.explanation-content.correct {
    border-left-color: #28a745;
    background: linear-gradient(135deg, #d4edda 0%, #f8fff9 100%);
}

.explanation-content.incorrect {
    border-left-color: #dc3545;
    background: linear-gradient(135deg, #f8d7da 0%, #fff8f8 100%);
}

.explanation-content h4 {
    margin-bottom: 1.5rem;
    font-size: 1.4rem;
    text-align: center;
}

.explanation-content p {
    margin-bottom: 1rem;
    line-height: 1.6;
    color: #333;
}

.explanation-content strong {
    color: #2c3e50;
}

.explanation-content .btn {
    margin-top: 1rem;
    width: 100%;
}

/* Результаты игры */
.terms-results {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.terms-results h3 {
    color: #333;
    margin-bottom: 2rem;
    font-size: 1.8rem;
}

.score-display {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3rem;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.score-circle {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: bold;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
}

.score-percentage {
    font-size: 3rem;
    font-weight: bold;
    color: #667eea;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.result-emoji {
    font-size: 4rem;
    margin: 1rem 0;
}

.result-message {
    font-size: 1.3rem;
    color: #333;
    margin-bottom: 2rem;
    line-height: 1.5;
    font-weight: 500;
}

/* Статистика результатов */
.results-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
    padding: 1.5rem;
    background: linear-gradient(135deg, rgb(102, 126, 234) 0%, rgb(118, 75, 162) 100%);
    border-radius: 12px;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.stat-label {
    color: #666;
    font-weight: 500;
}

.stat-value {
    color: #667eea;
    font-weight: bold;
    font-size: 1.2rem;
}

/* Обзор изученных терминов */
.terms-review {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    margin: 2rem 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.terms-review h4 {
    color: #333;
    margin-bottom: 1.5rem;
    text-align: center;
    font-size: 1.3rem;
}

.terms-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.term-review-item {
    background: #f8f9fa;
    padding: 1.2rem;
    border-radius: 8px;
    border-left: 4px solid #667eea;
    font-size: 0.95rem;
    line-height: 1.4;
}

.term-review-item strong {
    color: #667eea;
    display: block;
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.more-terms {
    text-align: center;
    color: #666;
    font-style: italic;
    margin-top: 1rem;
}

.results-details {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2rem;
}

/* Анимации */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.terms-game-round,
.terms-results {
    animation: fadeIn 0.5s ease-out;
}

/* Адаптивность */
@media (max-width: 768px) {
    .definition-card {
        padding: 2rem;
    }
    
    .definition-text {
        font-size: 1.1rem;
    }
    
    .term-option {
        padding: 1.2rem;
    }
    
    .option-number {
        width: 35px;
        height: 35px;
        margin-right: 1rem;
    }
    
    .score-display {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .score-circle {
        width: 120px;
        height: 120px;
        font-size: 1.5rem;
    }
    
    .score-percentage {
        font-size: 2.5rem;
    }
    
    .results-stats {
        grid-template-columns: 1fr;
    }
    
    .terms-list {
        grid-template-columns: 1fr;
    }
    
    .results-details {
        flex-direction: column;
    }
    
    .results-details .btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .definition-card {
        padding: 1.5rem;
    }
    
    .term-option {
        padding: 1rem;
        font-size: 1rem;
    }
    
    .option-number {
        width: 30px;
        height: 30px;
        font-size: 0.9rem;
    }
    
    .score-circle {
        width: 100px;
        height: 100px;
        font-size: 1.3rem;
    }
    
    .score-percentage {
        font-size: 2rem;
    }
    
    .result-message {
        font-size: 1.1rem;
    }
}

/* СТИЛИ ДЛЯ СТРАХОВОГО КВИЗА */
.quiz-question {
    max-width: 800px;
    margin: 0 auto;
    width: 100%;
}

/* Прогресс квиза */
.quiz-progress {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 1.1rem;
    color: #333;
    font-weight: 500;
}

.quiz-progress .progress-bar {
    width: 100%;
    height: 8px;
    background: #e9ecef;
    border-radius: 4px;
    margin-top: 0.5rem;
    overflow: hidden;
}

.quiz-progress .progress-fill {
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    transition: width 0.3s ease;
}

/* Текст вопроса */
.question-text {
    font-size: 1.4rem;
    line-height: 1.5;
    color: #333;
    margin-bottom: 2.5rem;
    text-align: center;
    font-weight: 600;
    padding: 0 1rem;
}

/* Варианты ответов */
.quiz-options {
    display: grid;
    gap: 1rem;
    max-width: 700px;
    margin: 0 auto;
}

.quiz-option {
    display: flex;
    align-items: center;
    padding: 1.5rem;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.1rem;
    text-align: left;
    width: 100%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.quiz-option:hover {
    border-color: #667eea;
    background: #f8f9ff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.15);
}

.quiz-option:disabled {
    cursor: not-allowed;
    opacity: 0.9;
}

.option-letter {
    background: #667eea;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1.5rem;
    font-weight: bold;
    flex-shrink: 0;
    font-size: 1.1rem;
}

.option-text {
    flex: 1;
    line-height: 1.4;
    color: #333;
}

/* Результаты квиза */
.quiz-results {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.quiz-results h3 {
    color: #333;
    margin-bottom: 2rem;
    font-size: 1.8rem;
}

.score-display {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3rem;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.score-circle {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: bold;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
}

.score-percentage {
    font-size: 3rem;
    font-weight: bold;
    color: #667eea;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.result-emoji {
    font-size: 4rem;
    margin: 1rem 0;
}

.result-message {
    font-size: 1.3rem;
    color: #333;
    margin-bottom: 2rem;
    line-height: 1.5;
    font-weight: 500;
}

.results-details {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2rem;
}

/* Обзор ответов */
.answers-review {
    max-height: 600px;
    overflow-y: auto;
    margin-bottom: 2rem;
    padding-right: 1rem;
}

.answers-review h4 {
    color: #333;
    margin-bottom: 2rem;
    text-align: center;
    font-size: 1.5rem;
}

.answer-item {
    background: white;
    padding: 2rem;
    margin-bottom: 1.5rem;
    border-radius: 12px;
    border-left: 6px solid #ccc;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.answer-item.correct {
    border-left-color: #28a745;
    background: linear-gradient(135deg, #d4edda 0%, #f8fff9 100%);
}

.answer-item.incorrect {
    border-left-color: #dc3545;
    background: linear-gradient(135deg, #f8d7da 0%, #fff8f8 100%);
}

.answer-item h5 {
    color: #333;
    margin-bottom: 1rem;
    font-size: 1.2rem;
    line-height: 1.4;
}

.answer-item p {
    margin-bottom: 0.8rem;
    line-height: 1.5;
    color: #444;
}

.answer-item strong {
    color: #2c3e50;
}

.answer-explanation {
    color: #dc3545;
    font-style: italic;
    margin-top: 0.5rem;
    padding: 0.8rem;
    background: rgba(220, 53, 69, 0.1);
    border-radius: 6px;
    border-left: 3px solid #dc3545;
}

/* Анимации */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.quiz-question,
.quiz-results,
.answers-review {
    animation: fadeIn 0.5s ease-out;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.quiz-option:not(:disabled):hover {
    animation: pulse 0.3s ease-in-out;
}

/* Адаптивность */
@media (max-width: 768px) {
    .question-text {
        font-size: 1.2rem;
        padding: 0;
    }
    
    .quiz-option {
        padding: 1.2rem;
        font-size: 1rem;
    }
    
    .option-letter {
        width: 35px;
        height: 35px;
        margin-right: 1rem;
        font-size: 1rem;
    }
    
    .score-display {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .score-circle {
        width: 120px;
        height: 120px;
        font-size: 1.5rem;
    }
    
    .score-percentage {
        font-size: 2.5rem;
    }
    
    .answer-item {
        padding: 1.5rem;
    }
    
    .results-details {
        flex-direction: column;
    }
    
    .results-details .btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .quiz-progress {
        font-size: 1rem;
    }
    
    .question-text {
        font-size: 1.1rem;
    }
    
    .quiz-option {
        padding: 1rem;
    }
    
    .option-letter {
        width: 30px;
        height: 30px;
        font-size: 0.9rem;
    }
    
    .score-circle {
        width: 100px;
        height: 100px;
        font-size: 1.3rem;
    }
    
    .score-percentage {
        font-size: 2rem;
    }
    
    .result-message {
        font-size: 1.1rem;
    }
    
    .answer-item h5 {
        font-size: 1.1rem;
    }
}

/* СТИЛИ ДЛЯ ИГРЫ "СОБЕРИ СТРАХОВОЙ ПОЛИС" */
.policy-game-profile {
    max-width: 1000px;
    margin: 0 auto;
    width: 100%;
}

/* Заголовок профиля */
.profile-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 2rem;
    border-radius: 15px;
    margin-bottom: 2rem;
    text-align: center;
}

.profile-header h3 {
    margin: 0 0 1rem 0;
    font-size: 1.6rem;
}

.profile-progress {
    font-size: 1rem;
    opacity: 0.9;
}

.profile-progress .progress-bar {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
    margin-top: 0.5rem;
    overflow: hidden;
}

.profile-progress .progress-fill {
    height: 100%;
    background: white;
    transition: width 0.3s ease;
}

/* Информация о профиле */
.profile-info {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.profile-description {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border-left: 4px solid #667eea;
}

.profile-description h4 {
    color: #333;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.profile-description p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.profile-description strong {
    color: #333;
}

.budget-calculator {
    background: linear-gradient(135deg, #e3f2fd 0%, #f3e5f5 100%);
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.budget-calculator h4 {
    color: #333;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.budget-display {
    font-size: 1.5rem;
    font-weight: bold;
    color: #667eea;
    margin: 1rem 0;
}

.budget-calculator small {
    color: #666;
    font-size: 0.8rem;
}

/* Выбор полисов */
.policies-selection {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.policies-selection h4 {
    color: #333;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.selection-hint {
    color: #666;
    font-style: italic;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.policies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.policy-checkbox {
    display: flex;
    align-items: flex-start;
    padding: 1.5rem;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
}

.policy-checkbox:hover {
    border-color: #667eea;
    background: #f8f9ff;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.2);
}

.policy-checkbox input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 22px;
    height: 22px;
    border: 2px solid #ccc;
    border-radius: 5px;
    margin-right: 1rem;
    margin-top: 0.2rem;
    position: relative;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.policy-checkbox input[type="checkbox"]:checked + .checkmark {
    background: #667eea;
    border-color: #667eea;
}

.policy-checkbox input[type="checkbox"]:checked + .checkmark::after {
    content: '✓';
    position: absolute;
    color: white;
    font-size: 14px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.policy-info {
    flex: 1;
}

.policy-info strong {
    color: #333;
    display: block;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.policy-info small {
    color: #666;
    line-height: 1.4;
    display: block;
    margin-bottom: 0.5rem;
}

.policy-cost {
    color: #28a745;
    font-weight: bold;
    font-size: 0.9rem;
}

/* Сводка выбора */
.selection-summary {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 10px;
    margin-bottom: 1.5rem;
    border-left: 4px solid #667eea;
}

.total-cost {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    color: #333;
}

.budget-warning {
    color: #dc3545;
    font-weight: bold;
    padding: 0.8rem;
    background: #f8d7da;
    border-radius: 6px;
    border-left: 4px solid #dc3545;
}

/* Результаты раунда */
.policy-results {
    max-width: 800px;
    margin: 0 auto;
}

.policy-results h3 {
    color: #333;
    margin-bottom: 2rem;
    text-align: center;
    font-size: 1.6rem;
}

.score-breakdown {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin: 2rem 0;
}

.score-card {
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.score-card.correct {
    background: linear-gradient(135deg, #d4edda 0%, #f8fff9 100%);
    border: 2px solid #c3e6cb;
}

.score-card.incorrect {
    background: linear-gradient(135deg, #f8d7da 0%, #fff8f8 100%);
    border: 2px solid #f5c6cb;
}

.score-card h4 {
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.score-number {
    font-size: 2.5rem;
    font-weight: bold;
    text-align: center;
    margin: 1rem 0;
}

.score-card.correct .score-number {
    color: #28a745;
}

.score-card.incorrect .score-number {
    color: #dc3545;
}

.policies-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.policy-item {
    padding: 0.8rem;
    border-radius: 6px;
    font-size: 0.9rem;
    line-height: 1.3;
}

.policy-item.selected {
    background: #28a745;
    color: white;
    font-weight: bold;
}

.policy-item.missed {
    background: #ffc107;
    color: #856404;
    font-weight: bold;
}

.policy-item.extra {
    background: #dc3545;
    color: white;
    font-weight: bold;
}

.no-policies {
    text-align: center;
    color: #666;
    font-style: italic;
    padding: 1rem;
}

/* Пропущенные полисы */
.missed-policies {
    background: #fff3cd;
    padding: 1.5rem;
    border-radius: 10px;
    margin: 1.5rem 0;
    border-left: 4px solid #ffc107;
}

.missed-policies h4 {
    color: #856404;
    margin-bottom: 1rem;
}

.missed-policies ul {
    color: #856404;
    padding-left: 1.5rem;
}

.missed-policies li {
    margin-bottom: 0.5rem;
}

/* Объяснение эксперта */
.expert-explanation {
    background: #e3f2fd;
    padding: 1.5rem;
    border-radius: 10px;
    margin: 1.5rem 0;
    border-left: 4px solid #2196f3;
}

.expert-explanation h4 {
    color: #1976d2;
    margin-bottom: 1rem;
}

.expert-explanation p {
    color: #1976d2;
    line-height: 1.5;
    margin: 0;
}

/* Счет раунда */
.round-score {
    text-align: center;
    margin: 2rem 0;
    padding: 1.5rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.score-value {
    font-size: 2rem;
    color: #667eea;
    font-weight: bold;
}

/* Финальные результаты */
.policy-final-results {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.policy-final-results h3 {
    color: #333;
    margin-bottom: 2rem;
    font-size: 1.8rem;
}

.final-score-display {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3rem;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.final-score-display .score-circle {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: bold;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
}

.final-score-display .score-percentage {
    font-size: 3rem;
    font-weight: bold;
    color: #667eea;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.result-emoji {
    font-size: 4rem;
    margin: 1rem 0;
}

.result-message {
    font-size: 1.3rem;
    color: #333;
    margin-bottom: 2rem;
    line-height: 1.5;
    font-weight: 500;
}

/* Сводка профилей */
.profiles-summary {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 12px;
    margin: 2rem 0;
}

.profiles-summary h4 {
    color: #333;
    margin-bottom: 1.5rem;
    text-align: center;
}

.profiles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.profile-result {
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.profile-result.good {
    background: #d4edda;
    border: 2px solid #c3e6cb;
}

.profile-result.bad {
    background: #f8d7da;
    border: 2px solid #f5c6cb;
}

.profile-result strong {
    color: #333;
    display: block;
    margin-bottom: 0.5rem;
}

.mini-score {
    font-weight: bold;
    font-size: 1.1rem;
}

.profile-result.good .mini-score {
    color: #28a745;
}

.profile-result.bad .mini-score {
    color: #dc3545;
}

.results-details {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2rem;
}

/* Анимации */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.policy-game-profile,
.policy-results,
.policy-final-results {
    animation: fadeIn 0.5s ease-out;
}

/* Адаптивность */
@media (max-width: 768px) {
    .profile-info {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .policies-grid {
        grid-template-columns: 1fr;
    }
    
    .score-breakdown {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .final-score-display {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .profiles-grid {
        grid-template-columns: 1fr;
    }
    
    .results-details {
        flex-direction: column;
    }
    
    .results-details .btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .profile-header {
        padding: 1.5rem;
    }
    
    .policies-selection {
        padding: 1.5rem;
    }
    
    .policy-checkbox {
        padding: 1rem;
    }
    
    .score-card {
        padding: 1.5rem;
    }
    
    .final-score-display .score-circle {
        width: 120px;
        height: 120px;
        font-size: 1.5rem;
    }
    
    .final-score-display .score-percentage {
        font-size: 2.5rem;
    }
}

/* КОМПАКТНЫЙ ВАРИАНТ С ТЕМНЫМ ФОНОМ */
.game-stats-detailed {
    display: flex;
    justify-content: space-between;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 1rem;
    border-radius: 10px;
    margin-bottom: 1.5rem;
    border: 1px solid #556cd6;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
    width: 100%;
    box-sizing: border-box;
    gap: 0.5rem;
}

.stat-item {
    text-align: center;
    flex: 1;
    display: block;
    padding: 0 0.2rem;
}

.stat-value {
    font-size: 1.3rem;
    font-weight: 700;
    color: white;
    line-height: 1;
    margin-bottom: 0.3rem;
    display: block;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.stat-label {
    font-size: 0.65rem;
    color: ghostwhite;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.2px;
    line-height: 1.1;
    display: block;
}

@media (max-width: 768px) {
    .game-stats-detailed {
        padding: 0.8rem;
        flex-direction: row;
        gap: 0.3rem;
    }
    
    .stat-value {
        font-size: 1.1rem;
        margin-bottom: 0.2rem;
    }
    
    .stat-label {
        font-size: 0.6rem;
    }
}

/* Для очень маленьких экранов */
@media (max-width: 480px) {
    .game-stats-detailed {
        padding: 0.6rem;
        gap: 0.2rem;
    }
    
    .stat-value {
        font-size: 1rem;
    }
    
    .stat-label {
        font-size: 0.55rem;
        letter-spacing: 0.1px;
    }
}

/* Мобильная адаптация для игр */
@media (max-width: 768px) {
    /* Карточки игр на главной */
    .games-preview-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .game-preview-card {
        padding: 1.5rem;
    }

    .game-preview-icon {
        font-size: 2.5rem;
        margin-bottom: 1rem;
    }

    /* Детальные карточки игр */
    .games-details-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .game-detail-card {
        padding: 1.5rem;
    }

    .game-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .game-main-icon {
        font-size: 3rem;
    }

    .game-title-section h3 {
        font-size: 1.4rem;
    }

    .game-tags {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .game-tag {
        font-size: 0.8rem;
        padding: 0.3rem 0.8rem;
    }

    /* Статистика игр */
    .game-stats-detailed {
        flex-direction: column;
        gap: 1rem;
        margin: 1.5rem 0;
    }

    .stat-item {
        flex: 1;
        text-align: center;
        padding: 0.8rem;
    }

    .stat-value {
        font-size: 1.5rem;
    }

    .stat-label {
        font-size: 0.9rem;
    }

    /* Особенности игр */
    .game-features h4 {
        font-size: 1.1rem;
        margin-bottom: 1rem;
    }

    .features-list {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }

    .feature-item {
        padding: 0.8rem;
        font-size: 0.9rem;
    }

    .feature-icon {
        font-size: 1.2rem;
        margin-right: 0.5rem;
    }

    /* Кнопки */
    .btn-large {
        width: 100%;
        padding: 1rem 1.5rem;
        font-size: 1rem;
    }

    .btn-icon {
        font-size: 1.2rem;
        margin-right: 0.5rem;
    }

    /* Контейнеры игр */
    .game-container {
        padding: 1rem;
    }

    .game-header-bar {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }

    .game-back,
    .game-actions {
        width: 100%;
    }

    .btn-back {
        width: 100%;
        justify-content: center;
    }

    .game-title-bar {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }

    .game-icon-small {
        font-size: 2.5rem;
    }

    .game-title-bar h2 {
        font-size: 1.5rem;
    }

    /* Контент игр */
    .game-content-area {
        padding: 1rem;
    }

    /* Адаптация для конкретных игр */
    
    /* Квиз */
    .quiz-option {
        padding: 1rem;
        margin-bottom: 0.8rem;
        font-size: 0.9rem;
    }

    .option-letter {
        width: 2rem;
        height: 2rem;
        font-size: 0.9rem;
    }

    /* Термины */
    .terms-options {
        grid-template-columns: 1fr;
    }

    .term-option {
        padding: 1rem;
        font-size: 0.9rem;
    }

    /* Симулятор */
    .scenario-steps {
        grid-template-columns: 1fr;
    }

    .step-item {
        padding: 1rem;
    }

    .step-option {
        padding: 1rem;
        margin-bottom: 0.8rem;
    }

    /* Планировщик бюджета */
    .policies-grid {
        grid-template-columns: 1fr;
    }

    .policy-checkbox {
        padding: 1rem;
    }

    .policy-info strong {
        font-size: 1rem;
    }

    .policy-info small {
        font-size: 0.8rem;
    }

    /* Результаты */
    .score-breakdown {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .score-card {
        padding: 1.5rem;
    }

    .policies-list {
        max-height: 200px;
        overflow-y: auto;
    }

    .policy-item {
        padding: 0.8rem;
        font-size: 0.9rem;
    }

    /* Финальные результаты */
    .profiles-grid {
        grid-template-columns: 1fr;
    }

    .profile-result {
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    /* Еще более мелкие экраны */
    .game-detail-card {
        padding: 1rem;
    }

    .game-main-icon {
        font-size: 2.5rem;
    }

    .game-title-section h3 {
        font-size: 1.2rem;
    }

    .game-description p {
        font-size: 0.9rem;
    }

    .stat-value {
        font-size: 1.3rem;
    }

    .btn-large {
        padding: 0.8rem 1rem;
        font-size: 0.9rem;
    }

    /* Хедер игр */
    .games-hero-content h1 {
        font-size: 2rem;
    }

    .games-hero-content p {
        font-size: 1rem;
    }

    .games-hero-stats {
        flex-direction: column;
        gap: 1rem;
    }

    /* Контейнеры игр */
    .game-container {
        padding: 0.5rem;
    }

    .game-header-bar {
        padding: 0.8rem;
    }

    .game-content-area {
        padding: 0.5rem;
    }

    /* Кнопки в играх */
    .btn {
        padding: 0.8rem 1rem;
        font-size: 0.9rem;
    }

    .btn-outline {
        padding: 0.7rem 1rem;
    }

    /* Прогресс-бары */
    .progress-bar {
        height: 6px;
    }

    .quiz-progress,
    .profile-progress,
    .step-progress {
        font-size: 0.8rem;
    }
}

/* Дополнительные улучшения для тач-устройств */
@media (hover: none) and (pointer: coarse) {
    .btn,
    .quiz-option,
    .term-option,
    .step-option,
    .policy-checkbox {
        min-height: 44px;
        padding: 1rem;
    }

    .btn-back {
        min-height: 44px;
    }

    input[type="checkbox"],
    input[type="radio"] {
        transform: scale(1.2);
        margin-right: 0.5rem;
    }
}

/* Портретная ориентация */
@media (max-width: 768px) and (orientation: portrait) {
    .games-hero-visual {
        display: none;
    }
    
    .games-hero-content {
        text-align: center;
    }
}

/* Ландшафтная ориентация для мобильных */
@media (max-width: 900px) and (orientation: landscape) {
    .games-details-container {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .game-detail-card {
        padding: 1rem;
    }
    
    .game-stats-detailed {
        flex-direction: row;
    }
}

/* Плавные переходы */
.game-detail-card,
.btn,
.quiz-option,
.term-option,
.step-option,
.policy-checkbox {
    transition: all 0.3s ease;
}

/* Улучшение читаемости на маленьких экранах */
@media (max-width: 768px) {
    .game-description p {
        line-height: 1.5;
    }
    
    .features-list {
        line-height: 1.4;
    }
    
    .policy-info {
        line-height: 1.4;
    }
}

/* Оптимизация для очень маленьких экранов */
@media (max-width: 360px) {
    .game-detail-card {
        margin: 0.5rem;
        padding: 1rem;
    }
    
    .game-header {
        gap: 0.8rem;
    }
    
    .game-main-icon {
        font-size: 2rem;
    }
    
    .game-title-section h3 {
        font-size: 1.1rem;
    }
    
    .btn-large {
        font-size: 0.85rem;
        padding: 0.7rem 0.9rem;
    }
}

.step-feedback {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    padding: 20px;
    box-sizing: border-box;
}

.feedback-card {
    background: white;
    border-radius: 12px;
    padding: 24px;
    max-width: 400px;
    width: 100%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    text-align: center;
    animation: slideUp 0.3s ease-out;
}

.feedback-card.correct {
    border-left: 4px solid #28a745;
}

.feedback-card.incorrect {
    border-left: 4px solid #dc3545;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Адаптив для мобильных */
@media (max-width: 480px) {
    .step-feedback {
        padding: 15px;
    }
    
    .feedback-card {
        padding: 20px;
        max-width: 100%;
        margin: 0 10px;
    }
    
    .feedback-card h4 {
        font-size: 1.2rem;
        margin-bottom: 10px;
    }
    
    .feedback-card p {
        font-size: 0.9rem;
        margin-bottom: 20px;
    }
    
    .btn {
        width: 100%;
        padding: 12px;
    }
}

.answer-explanation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    padding: 20px;
    box-sizing: border-box;
}

.explanation-content {
    background: white;
    border-radius: 12px;
    padding: 24px;
    max-width: 500px;
    width: 100%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease-out;
}

.explanation-content.correct {
    border-left: 4px solid #28a745;
}

.explanation-content.incorrect {
    border-left: 4px solid #dc3545;
}

.explanation-content h4 {
    margin-bottom: 15px;
    color: #333;
}

.explanation-content p {
    margin-bottom: 12px;
    line-height: 1.5;
    color: #555;
}

.explanation-content strong {
    color: #333;
}

/* Адаптив для мобильных */
@media (max-width: 480px) {
    .answer-explanation {
        padding: 15px;
    }
    
    .explanation-content {
        padding: 20px;
        max-width: 100%;
        margin: 0 10px;
    }
    
    .explanation-content h4 {
        font-size: 1.2rem;
        margin-bottom: 12px;
    }
    
    .explanation-content p {
        font-size: 0.9rem;
        margin-bottom: 10px;
    }
    
    .btn {
        width: 100%;
        padding: 12px;
        margin-top: 10px;
    }
}

/* Для очень маленьких экранов */
@media (max-width: 360px) {
    .explanation-content {
        padding: 15px;
    }
    
    .explanation-content h4 {
        font-size: 1.1rem;
    }
    
    .explanation-content p {
        font-size: 0.85rem;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mobile-menu-btn {
    display: none;
    cursor: pointer;
    padding: 15px;
    background: none;
    border: none;
    position: relative;
    z-index: 1001;
    width: 44px;
    height: 44px;
    margin-right: -5px; /* Добавляем немного отрицательного отступа */
}

.mobile-menu-btn span {
    position: absolute;
    width: 30px;
    height: 3px;
    background: white;
    left: 7px;
    transition: 0.3s;
    border-radius: 2px;
}

.mobile-menu-btn span:nth-child(1) {
    top: 15px;
}

.mobile-menu-btn span:nth-child(2) {
    top: 21px;
}

.mobile-menu-btn span:nth-child(3) {
    top: 27px;
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }

    /* Анимация с абсолютным позиционированием */
    .mobile-menu-btn.active span:nth-child(1) {
        transform: rotate(45deg);
        top: 21px;
    }

    .mobile-menu-btn.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-btn.active span:nth-child(3) {
        transform: rotate(-45deg);
        top: 21px;
    }
}
.navbar {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

.nav-menu a {
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.nav-menu a:hover,
.nav-menu a.active {
    background-color: rgba(255,255,255,0.2);
}

/* Кнопка мобильного меню с исправленной анимацией */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 8px;
    background: none;
    border: none;
    position: relative;
    z-index: 1001;
    width: 44px;
    height: 44px;
    justify-content: center;
    align-items: center;
}

.mobile-menu-btn span {
    width: 25px;
    height: 3px;
    background: white;
    margin: 3px 0;
    transition: all 0.3s ease;
    border-radius: 2px;
    transform-origin: center;
}

/* Адаптив для мобильных */
@media (max-width: 768px) {
    .mobile-menu-btn {
        display: flex;
    }

    /* Логотип ДОЛЖЕН оставаться видимым! */
    .logo {
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .logo-text {
        font-size: 16px; /* Уменьшаем размер текста */
        display: block; /* Убедимся что текст виден */
    }

    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        flex-direction: column;
        align-items: center;
        padding: 2rem 0;
        gap: 0;
        transition: left 0.3s ease;
        z-index: 999;
    }

    .nav-menu.active {
        left: 0;
    }
}

/* Для очень маленьких экранов */
@media (max-width: 480px) {
    .nav-container {
        padding: 0 15px;
    }
    
    .navbar {
        padding: 0.8rem 0;
        height: 60px;
    }
    
    .nav-menu {
        top: 60px;
        height: calc(100vh - 60px);
    }
    
    .mobile-menu-btn {
        width: 40px;
        height: 40px;
    }
}

/* Отступ для контента под фиксированным меню */
body {
    padding-top: 80px;
}

@media (max-width: 768px) {
    body {
        padding-top: 70px;
    }
}

@media (max-width: 480px) {
    body {
        padding-top: 60px;
    }
}
/* Основной контейнер игры */
.game-content-area {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    box-sizing: border-box;
}

.answers-review {
    background: white;
    border-radius: 12px;
    padding: 24px;
    margin: 20px 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    width: 100%;
    box-sizing: border-box;
}

.quiz-actions {
    text-align: center;
    margin-top: 30px;
    width: 100%;
    display: block;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    min-width: 200px;
}

/* Адаптив для мобильных */
@media (max-width: 768px) {
    .game-content-area {
        padding: 15px;
    }
    
    .answers-review {
        padding: 16px;
        margin: 15px 0;
    }
    
    .quiz-actions {
        margin-top: 20px;
    }
    
    .btn {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    .game-content-area {
        padding: 10px;
    }
    
    .answers-review {
        padding: 12px;
    }
    
    .btn {
        width: 100%;
        max-width: none;
    }
}