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

body {
    font-family: 'Arial Rounded MT Bold', 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #e3f2fd 0%, #f3e5f5 100%);
    min-height: 100vh;
}

.section {
    display: none;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.section.active {
    display: block;
}

.header {
    text-align: center;
    margin-bottom: 40px;
    padding: 30px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

h1 {
    color: #2c3e50;
    font-size: 2.5em;
    margin-bottom: 10px;
}

.subtitle {
    color: #7f8c8d;
    font-size: 1.2em;
    font-weight: 300;
}

.intro {
    background: white;
    padding: 30px;
    border-radius: 15px;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.intro h2 {
    color: #3498db;
    margin-bottom: 15px;
}

.main-nav {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.nav-btn {
    background: linear-gradient(135deg, #3498db, #9b59b6);
    color: white;
    border: none;
    padding: 25px 20px;
    font-size: 1.1em;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.3);
}

.nav-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(52, 152, 219, 0.4);
}

.back-btn {
    background: #95a5a6;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    margin-bottom: 20px;
    transition: background 0.3s ease;
}

.back-btn:hover {
    background: #7f8c8d;
}

.analogy {
    font-style: italic;
    color: #7f8c8d;
    text-align: center;
    margin: 20px 0;
    font-size: 1.1em;
}

.table-container {
    overflow-x: auto;
    margin: 30px 0;
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.temperament-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
}

.temperament-table th {
    background: linear-gradient(135deg, #3498db, #9b59b6);
    color: white;
    padding: 15px;
    text-align: left;
}

.temperament-table td {
    padding: 15px;
    border-bottom: 1px solid #ecf0f1;
}

.temperament-table tr:hover {
    background-color: #f8f9fa;
}

.diagnostic {
    margin-top: 40px;
}

.method {
    background: white;
    padding: 25px;
    margin: 20px 0;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.quiz {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    margin: 15px 0;
}

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

.card {
    background: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border-left: 5px solid #3498db;
}

.card h3 {
    color: #2c3e50;
    margin-bottom: 15px;
}

.card ul {
    list-style-type: none;
}

.card li {
    padding: 8px 0;
    border-bottom: 1px solid #ecf0f1;
}

.card li:last-child {
    border-bottom: none;
}

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

.exercise-card {
    background: white;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.exercise-card:hover {
    transform: translateY(-5px);
}

.exercise-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
}

.temperament-badge, .skill-badge {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8em;
    font-weight: bold;
}

.temperament-badge {
    background: #e3f2fd;
    color: #1976d2;
}

.skill-badge {
    background: #f3e5f5;
    color: #7b1fa2;
}

@media (max-width: 768px) {
    .main-nav {
        grid-template-columns: 1fr;
    }
    
    h1 {
        font-size: 2em;
    }
    
    .recommendations {
        grid-template-columns: 1fr;
    }
    
    .section {
        padding: 15px;
    }
}

/* Стили для теста */
.test-container {
    max-width: 800px;
    margin: 0 auto;
}

.question-card {
    background: white;
    padding: 25px;
    margin: 20px 0;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.options {
    margin-top: 15px;
}

.option {
    display: block;
    padding: 12px 15px;
    margin: 8px 0;
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.option:hover {
    background: #e9ecef;
    border-color: #3498db;
}

.option input[type="radio"] {
    margin-right: 10px;
}

.submit-btn {
    background: linear-gradient(135deg, #3498db, #9b59b6);
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 1.1em;
    border-radius: 8px;
    cursor: pointer;
    margin: 20px 0;
    width: 100%;
}

/* Результат теста */
.test-result {
    margin-top: 30px;
}

.result-card {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border-left: 5px solid;
}

.temperament-result h3 {
    font-size: 1.8em;
    margin-bottom: 15px;
}

.scores {
    margin-top: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
}

.scores ul {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

/* Фильтры */
.filters-card {
    background: white;
    padding: 25px;
    margin: 20px 0;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.filter-group {
    margin: 15px 0;
}

.filter-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #2c3e50;
}

.filter-group select {
    width: 100%;
    padding: 10px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 1em;
}

.filter-btn, .clear-btn {
    padding: 10px 20px;
    margin: 5px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1em;
}

.filter-btn {
    background: #3498db;
    color: white;
}

.clear-btn {
    background: #95a5a6;
    color: white;
}

/* Мета-информация упражнений */
.exercise-meta {
    display: flex;
    justify-content: space-between;
    margin-top: 15px;
    font-size: 0.9em;
    color: #7f8c8d;
}

.duration, .materials {
    display: flex;
    align-items: center;
    gap: 5px;
}

.no-results {
    text-align: center;
    padding: 40px;
    color: #7f8c8d;
}

/* Адаптивность */
@media (max-width: 768px) {
    .scores ul {
        grid-template-columns: 1fr;
    }
    
    .exercise-meta {
        flex-direction: column;
        gap: 10px;
    }
    
    .filters-card {
        padding: 15px;
    }
}

/* Стили для навигационных карточек */
.main-navigation {
    margin: 40px 0;
}

.main-navigation h3 {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 30px;
    font-size: 1.8em;
}

.nav-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.nav-card {
    display: block;
    background: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    border-left: 4px solid #3498db;
    position: relative;
}

.nav-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    text-decoration: none;
    color: inherit;
}

.nav-icon {
    font-size: 2.5em;
    margin-bottom: 15px;
}

.nav-card h4 {
    color: #2c3e50;
    margin-bottom: 10px;
    font-size: 1.3em;
}

.nav-card p {
    color: #7f8c8d;
    line-height: 1.5;
    margin-bottom: 15px;
}

.nav-arrow {
    position: absolute;
    top: 25px;
    right: 25px;
    font-size: 1.5em;
    color: #3498db;
    transition: transform 0.3s ease;
}

.nav-card:hover .nav-arrow {
    transform: translateX(5px);
}

/* Быстрый доступ к темпераментам */
.quick-access {
    margin: 40px 0;
}

.quick-access h3 {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 25px;
    font-size: 1.8em;
}

.temperament-quick-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.temp-quick-link {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    border-left: 4px solid;
}

.temp-quick-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    text-decoration: none;
    color: inherit;
}

.temp-color {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 12px;
}

.temp-name {
    font-weight: bold;
    color: #2c3e50;
}

/* Адаптивность */
@media (max-width: 768px) {
    .nav-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .temperament-quick-links {
        grid-template-columns: 1fr;
    }
    
    .nav-card {
        padding: 20px;
    }
    
    .main-navigation h3,
    .quick-access h3 {
        font-size: 1.5em;
    }
}

/* Дополнения к style.css для рекомендаций */

.recommendation-container {
    margin: 30px 0;
}

.recommendation-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
    overflow: hidden;
    border-left: 5px solid;
}

.recommendation-header {
    padding: 25px;
    border-bottom: 1px solid #ecf0f1;
}

.recommendation-header h2 {
    margin-bottom: 10px;
    font-size: 1.8em;
}

.temp-description {
    color: #7f8c8d;
    font-style: italic;
    margin: 0;
}

.recommendation-content {
    padding: 25px;
}

.recommendation-section {
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 1px solid #f8f9fa;
}

.recommendation-section:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.recommendation-section h3 {
    color: #2c3e50;
    margin-bottom: 12px;
    font-size: 1.2em;
    display: flex;
    align-items: center;
    gap: 10px;
}

.recommendation-section p {
    line-height: 1.6;
    color: #555;
    margin: 0;
}

.loading {
    text-align: center;
    padding: 40px;
    color: #7f8c8d;
    font-style: italic;
}

.error-message {
    text-align: center;
    padding: 40px;
    color: #e74c3c;
    background: #ffeaea;
    border-radius: 8px;
}

.page-description {
    text-align: center;
    color: #7f8c8d;
    margin-bottom: 40px;
    font-size: 1.1em;
}

/* Адаптивность */
@media (max-width: 768px) {
    .recommendation-header,
    .recommendation-content {
        padding: 20px;
    }
    
    .recommendation-header h2 {
        font-size: 1.5em;
    }
    
    .recommendation-section {
        margin-bottom: 20px;
        padding-bottom: 20px;
    }
}

/* Стили для прогресс-бара */
.progress-container {
    margin: 20px 0 30px 0;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #ecf0f1;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(135deg, #3498db, #9b59b6);
    border-radius: 4px;
    transition: width 0.3s ease;
    width: 0%;
}

.progress-text {
    text-align: center;
    color: #7f8c8d;
    font-size: 0.9em;
}

/* Навигация между вопросами */
.question-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #ecf0f1;
}

.nav-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1em;
    transition: all 0.3s ease;
}

.prev-btn {
    background: #95a5a6;
    color: white;
}

.next-btn, .submit-btn {
    background: #3498db;
    color: white;
}

.nav-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Результаты теста */
.loading-result {
    text-align: center;
    padding: 40px;
    color: #7f8c8d;
}

.score-bars {
    margin-top: 15px;
}

.score-item {
    display: flex;
    align-items: center;
    margin: 10px 0;
    gap: 15px;
}

.score-item span:first-child {
    width: 100px;
    font-weight: bold;
}

.score-item span:last-child {
    width: 30px;
    text-align: right;
    font-weight: bold;
}

.score-bar {
    flex: 1;
    height: 12px;
    background: #ecf0f1;
    border-radius: 6px;
    overflow: hidden;
}

.score-fill {
    height: 100%;
    background: #3498db;
    border-radius: 6px;
    transition: width 0.5s ease;
}

.result-actions {
    display: flex;
    gap: 15px;
    margin-top: 25px;
    flex-wrap: wrap;
}

.result-actions .nav-btn {
    flex: 1;
    min-width: 200px;
    text-align: center;
}

/* Адаптивность */
@media (max-width: 768px) {
    .question-navigation {
        flex-direction: column;
        gap: 10px;
    }
    
    .nav-btn {
        width: 100%;
    }
    
    .result-actions {
        flex-direction: column;
    }
    
    .result-actions .nav-btn {
        min-width: auto;
    }
    
    .score-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .score-item span:first-child {
        width: auto;
    }
    
    .score-bar {
        width: 100%;
    }
}

/* Стили для кнопки подтверждения */
.confirm-section {
    text-align: center;
    margin: 25px 0;
    padding: 20px 0;
    border-top: 1px solid #ecf0f1;
}

.confirm-btn {
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(39, 174, 96, 0.3);
}

.confirm-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(39, 174, 96, 0.4);
}

.confirm-btn:disabled {
    background: #bdc3c7;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Сообщение о подтверждении */
.confirmation-message {
    color: #27ae60;
    font-size: 0.9em;
    margin-top: 10px;
    text-align: center;
    padding: 8px 15px;
    background: #d5f4e6;
    border-radius: 8px;
    border: 1px solid #27ae60;
}

/* Индикатор загрузки */
.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Большой бейдж темперамента */
.temperament-badge-large {
    padding: 20px;
    border-radius: 15px;
    border: 3px solid;
    text-align: center;
    margin: 20px 0;
}

.temperament-badge-large h3 {
    margin: 0;
    font-size: 1.8em;
}

/* Кнопки действий */
.action-btn {
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1em;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.action-btn.primary {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
}

.action-btn.secondary {
    background: #95a5a6;
    color: white;
}

.action-btn.outline {
    background: transparent;
    color: #3498db;
    border: 2px solid #3498db;
}

.action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Заголовок результата */
.result-header {
    text-align: center;
    margin-bottom: 25px;
}

.result-header h2 {
    color: #2c3e50;
    margin-bottom: 10px;
}

/* Детали темперамента */
.temperament-details {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    margin: 20px 0;
}

.temperament-details p {
    margin: 10px 0;
    line-height: 1.5;
}

/* Значения баллов */
.score-value {
    font-weight: bold;
    color: #2c3e50;
    min-width: 25px;
    text-align: right;
}

/* Адаптивность */
@media (max-width: 768px) {
    .confirm-btn {
        width: 100%;
        padding: 15px;
    }
    
    .result-actions {
        flex-direction: column;
    }
    
    .action-btn {
        width: 100%;
        margin: 5px 0;
    }
    
    .temperament-badge-large h3 {
        font-size: 1.5em;
    }
}

/* Стили для активной кнопки подтверждения */
.confirm-btn.active {
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    box-shadow: 0 4px 15px rgba(39, 174, 96, 0.4);
    transform: scale(1.02);
}

/* Стили для заблокированных вариантов ответа */
.option.disabled {
    opacity: 0.7;
    cursor: not-allowed;
    background: #f8f9fa;
}

.option.disabled:hover {
    background: #f8f9fa;
    border-color: #e9ecef;
    transform: none;
}

/* Анимация появления кнопки */
.confirm-btn {
    transition: all 0.3s ease, transform 0.2s ease;
}

.confirm-btn:not(:disabled):hover {
    transform: translateY(-2px) scale(1.02);
}

/* Визуальная индикация выбранного ответа */
.option input[type="radio"]:checked + .option-text {
    font-weight: bold;
    color: #2c3e50;
}

.option input[type="radio"]:checked ~ .option-text::before {
    content: "✓ ";
    color: #27ae60;
    font-weight: bold;
}

/* Стили для кнопки завершения теста */
.submit-btn {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.3);
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(231, 76, 60, 0.4);
    background: linear-gradient(135deg, #c0392b, #a93226);
}

/* Стили для навигации */
.question-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 30px 0;
    padding: 20px 0;
    border-top: 1px solid #ecf0f1;
}

.nav-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1em;
    font-weight: bold;
    transition: all 0.3s ease;
}

.prev-btn {
    background: #95a5a6;
    color: white;
}

.next-btn {
    background: #3498db;
    color: white;
}

.submit-btn {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    padding: 15px 30px;
    font-size: 1.1em;
}

.nav-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.submit-btn:hover {
    background: linear-gradient(135deg, #c0392b, #a93226);
}

/* Стили для страницы с информацией о темпераментах */
.temperament-info-page {
    max-width: 1000px;
    margin: 0 auto;
}

.page-header {
    text-align: center;
    margin-bottom: 40px;
}

.page-header h1 {
    color: #2c3e50;
    margin-bottom: 15px;
}

.page-description {
    color: #7f8c8d;
    font-size: 1.1em;
    line-height: 1.6;
}

/* Аккордеон */
.accordion-container {
    margin: 40px 0;
}

.accordion-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    border-left: 5px solid;
    overflow: hidden;
}

.accordion-header {
    padding: 25px 30px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.accordion-header:hover {
    background: rgba(0, 0, 0, 0.03);
}

.header-content h2 {
    margin: 0 0 8px 0;
    font-size: 1.8em;
}

.temp-short-desc {
    color: #7f8c8d;
    font-size: 1.1em;
    margin: 0;
    font-style: italic;
}

.accordion-icon {
    font-size: 2em;
    font-weight: bold;
    color: #7f8c8d;
    transition: transform 0.3s ease;
}

.accordion-content {
    display: none;
    padding: 0;
    background: #f8f9fa;
}

.accordion-content.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Детали темперамента */
.temp-details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    padding: 30px;
}

.detail-section {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.detail-section h3 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 1.3em;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Информационная сетка */
.info-grid {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.info-label {
    font-weight: bold;
    color: #7f8c8d;
    font-size: 0.9em;
}

.info-value {
    color: #2c3e50;
    line-height: 1.5;
}

.highlight {
    color: #27ae60;
    font-weight: bold;
}

.warning {
    color: #e74c3c;
    font-weight: bold;
}

/* Списки */
.behavior-list ul,
.recommendations-list ul,
.facts-list ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.behavior-list li,
.recommendations-list li,
.facts-list li {
    padding: 8px 0;
    border-bottom: 1px solid #ecf0f1;
    line-height: 1.5;
}

.behavior-list li:last-child,
.recommendations-list li:last-child,
.facts-list li:last-child {
    border-bottom: none;
}

/* Сравнительная таблица */
.comparison-section {
    margin: 60px 0;
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.comparison-section h2 {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 30px;
}

.comparison-table {
    overflow-x: auto;
}

.comparison-table table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
}

.comparison-table th {
    background: #34495e;
    color: white;
    padding: 15px;
    text-align: left;
    font-weight: bold;
}

.comparison-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #ecf0f1;
}

.comparison-table tr:hover {
    background-color: #f8f9fa;
}

/* Адаптивность */
@media (max-width: 768px) {
    .temp-details-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 20px;
    }
    
    .accordion-header {
        padding: 20px;
    }
    
    .header-content h2 {
        font-size: 1.5em;
    }
    
    .detail-section {
        padding: 20px;
    }
    
    .comparison-section {
        padding: 20px;
        margin: 40px 0;
    }
}

/* Стили для страниц рекомендаций */
.recommendations-page {
    max-width: 1000px;
    margin: 0 auto;
}

/* Сетка рекомендаций */
.recommendations-grid {
    display: flex;
    flex-direction: column;
    gap: 25px;
    padding: 20px;
}

.recommendation-section {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border-left: 4px solid #3498db;
}

.recommendation-section h3 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 1.2em;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-content p {
    line-height: 1.6;
    color: #555;
    margin: 0;
}

/* Общие рекомендации */
.general-recommendations {
    margin: 60px 0;
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.general-recommendations h2 {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 30px;
}

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

.tip-card {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    border-left: 4px solid #3498db;
}

.tip-card h3 {
    color: #2c3e50;
    margin-bottom: 10px;
    font-size: 1.1em;
}

.tip-card p {
    color: #7f8c8d;
    line-height: 1.5;
    margin: 0;
}

/* Сообщения */
.loading {
    text-align: center;
    padding: 40px;
    color: #7f8c8d;
    font-style: italic;
}

.error-message {
    text-align: center;
    padding: 30px;
    color: #e74c3c;
    background: #ffeaea;
    border-radius: 8px;
    margin: 20px;
}

/* Адаптивность */
@media (max-width: 768px) {
    .recommendations-grid {
        padding: 15px;
        gap: 20px;
    }
    
    .recommendation-section {
        padding: 20px;
    }
    
    .general-recommendations {
        padding: 20px;
        margin: 40px 0;
    }
    
    .general-tips {
        grid-template-columns: 1fr;
    }
    
    .tip-card {
        padding: 15px;
    }
}

footer {
        background-color: #e4fce2;
        color: white;
        padding: 30px 0;
        margin-top: 50px;
    }

    .footer-about {
        max-width: 1500px;
    }

    .footer-about h3 {
        margin-bottom: 15px;
    }

    .footer-about p {
        color: #ccc;
        line-height: 1.5;
    }