/* Сброс и базовые стили */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    position: relative;
    min-height: 100vh;
    padding: 0;
    overflow-x: hidden;
    color: #333;
}

/* Фоновое изображение */
.background-image {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    z-index: -1;
    opacity: 0.9;
}

/* Основной контейнер */
.main-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
    z-index: 1;
}

/* Шапка */
.header {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
}

.back-button {
    position: absolute;
    left: 0;
    top: 0;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 15px;
    background-color: #3498db;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.back-link:hover {
    background-color: #2980b9;
    transform: translateX(-3px);
}

.page-title {
    font-size: 32px;
    color: #2c3e50;
    margin-bottom: 10px;
    font-weight: 700;
}

.page-subtitle {
    font-size: 18px;
    color: #7f8c8d;
    max-width: 800px;
    margin: 0 auto;
}

/* Герой секция */
.hero-section {
    background-color: white;
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 40px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

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

.hero-image {
    flex: 0 0 300px;
}

.hero-image img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.hero-text {
    flex: 1;
}

.hero-text h2 {
    font-size: 28px;
    color: #2c3e50;
    margin-bottom: 15px;
}

.hero-text p {
    font-size: 16px;
    line-height: 1.6;
    color: #555;
}

/* Общие стили секций */
.section-title {
    font-size: 28px;
    color: #2c3e50;
    text-align: center;
    margin-bottom: 10px;
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: #3498db;
}

.section-description {
    text-align: center;
    color: #7f8c8d;
    margin-bottom: 30px;
    font-size: 16px;
}

/* Секция тестов */
.tests-section {
    margin-bottom: 50px;
}

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

.test-card {
    background-color: white;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.test-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.test-icon {
    font-size: 40px;
    color: #3498db;
    margin-bottom: 15px;
}

.test-card h3 {
    font-size: 20px;
    color: #2c3e50;
    margin-bottom: 10px;
}

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

.test-button {
    display: inline-block;
    padding: 10px 20px;
    background-color: #3498db;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.test-button:hover {
    background-color: #2980b9;
}

/* Секция самопознания */
.self-knowledge-section {
    margin-bottom: 50px;
}

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

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

.knowledge-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
    border-left-color: #e74c3c;
}

.card-content h3 {
    font-size: 20px;
    color: #2c3e50;
    margin-bottom: 10px;
}

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

.card-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #3498db;
    font-weight: 500;
    transition: gap 0.3s ease;
}

.knowledge-card:hover .card-link {
    gap: 10px;
}

/* Секция инструментов */
.tools-section {
    margin-bottom: 50px;
}

.tools-list {
    max-width: 800px;
    margin: 0 auto;
}

.tool-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease;
}

.tool-item:hover {
    transform: translateX(10px);
}

.tool-item i {
    font-size: 30px;
    color: #3498db;
    margin-top: 5px;
}

.tool-content h3 {
    font-size: 20px;
    color: #2c3e50;
    margin-bottom: 5px;
}

.tool-content p {
    color: #7f8c8d;
    line-height: 1.5;
}

/* Секция ресурсов */
.resources-section {
    margin-bottom: 50px;
}

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

.resource-card {
    background-color: white;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.resource-card h3 {
    font-size: 20px;
    color: #2c3e50;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.resource-card h3 i {
    color: #3498db;
}

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

.resource-card li {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
    color: #555;
}

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

/* Следующие шаги */
.next-steps {
    margin-bottom: 50px;
}

.steps-timeline {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.steps-timeline::before {
    content: '';
    position: absolute;
    left: 30px;
    top: 0;
    bottom: 0;
    width: 2px;
    background-color: #3498db;
    opacity: 0.3;
}

.step {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
    position: relative;
}

.step-number {
    width: 60px;
    height: 60px;
    background-color: #3498db;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
    flex-shrink: 0;
    z-index: 1;
}

.step-content {
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    flex: 1;
}

.step-content h3 {
    font-size: 20px;
    color: #2c3e50;
    margin-bottom: 5px;
}

.step-content p {
    color: #7f8c8d;
}

/* Футер */
.footer {
    text-align: center;
    padding: 20px;
    border-top: 1px solid #eee;
    color: #7f8c8d;
    font-size: 14px;
}

.footer a {
    color: #3498db;
    text-decoration: none;
}

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

/* Адаптивность */
@media (max-width: 768px) {
    .main-container {
        padding: 15px;
    }
    
    .hero-content {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-image {
        flex: 0 0 auto;
        width: 100%;
        max-width: 400px;
        margin: 0 auto;
    }
    
    .page-title {
        font-size: 26px;
    }
    
    .section-title {
        font-size: 24px;
    }
    
    .tests-grid,
    .knowledge-grid,
    .resources-grid {
        grid-template-columns: 1fr;
    }
    
    .steps-timeline::before {
        left: 15px;
    }
    
    .step-number {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
    
    .back-button {
        position: static;
        margin-bottom: 20px;
        display: inline-block;
    }
    
    .header {
        text-align: center;
    }
}

@media (max-width: 480px) {
    .page-title {
        font-size: 22px;
    }
    
    .hero-text h2 {
        font-size: 22px;
    }
    
    .test-card,
    .knowledge-card,
    .resource-card {
        padding: 20px;
    }
    
    .tool-item {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
}