:root {
    --primary-bg: #FAB787;
    --primary-dark: #603F2B;
    --primary-medium: #765541;
    --accent-light: #FFD7BD;
    --text-dark: #2D2D2D;
    --text-light: #5A5A5A;
    --white: #FFFFFF;
    --shadow: rgba(96, 63, 43, 0.1);
    --success: #28a745;
    --warning: #ffc107;
    --danger: #dc3545;
    --gradient: linear-gradient(135deg, var(--primary-bg) 0%, var(--accent-light) 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--white);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* === ОБЩИЕ КОМПОНЕНТЫ === */

/* Кнопки */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 12px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    font-size: 1rem;
}

.btn-primary {
    background: var(--primary-dark);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(96, 63, 43, 0.2);
}

.btn-primary:hover {
    background: var(--primary-medium);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(96, 63, 43, 0.3);
}

.btn-secondary {
    background: var(--white);
    color: var(--primary-dark);
    border: 2px solid var(--primary-dark);
}

.btn-secondary:hover {
    background: var(--primary-dark);
    color: var(--white);
    transform: translateY(-2px);
}

/* Карточки */
.card {
    background: var(--white);
    border-radius: 20px;
    box-shadow: 0 10px 30px var(--shadow);
    border: 1px solid var(--accent-light);
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(96, 63, 43, 0.15);
}

/* Заголовки */
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--primary-dark);
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--primary-dark);
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 2rem;
    color: var(--primary-dark);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* === НАВИГАЦИЯ === */
.navbar {
    background: var(--white);
    box-shadow: 0 2px 20px var(--shadow);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.nav-logo span {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--primary-dark);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-dark);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-dark);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0.5rem;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--primary-dark);
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

/* === ГЕРОЙ СЕКЦИИ === */
.hero {
    padding: 140px 0 80px;
    background: var(--gradient);
    position: relative;
    overflow: hidden;
}

.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 1000"><polygon fill="rgba(255,255,255,0.05)" points="0,1000 1000,0 1000,1000"/></svg>');
    background-size: cover;
}

.hero-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--primary-dark);
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.3rem;
    color: var(--text-light);
    margin-bottom: 3rem;
    font-weight: 400;
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 4rem;
    flex-wrap: wrap;
}

/* Герой для внутренних страниц */
.page-hero {
    padding: 140px 0 60px;
    background: var(--gradient);
    position: relative;
}

.page-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 1000"><circle fill="rgba(255,255,255,0.1)" cx="500" cy="500" r="400"/></svg>');
    background-size: cover;
}

.page-hero-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.page-hero-content h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--primary-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.page-hero-content p {
    font-size: 1.2rem;
    color: var(--text-light);
    line-height: 1.6;
}

/* === СТАТИСТИКА === */
.hero-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
}

.stat-card {
    composes: card;
    padding: 2rem;
    text-align: center;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 0.5rem;
    line-height: 1;
}

.stat-label {
    color: var(--text-light);
    font-weight: 500;
    font-size: 0.9rem;
}

/* === ОСОБЕННОСТИ === */
.features {
    padding: 80px 0;
    background: var(--white);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    composes: card;
    padding: 2.5rem;
    text-align: center;
}

.feature-icon {
    font-size: 3rem;
    color: var(--primary-dark);
    margin-bottom: 1.5rem;
}

.feature-card h3 {
    color: var(--primary-dark);
    margin-bottom: 1rem;
    font-weight: 600;
    font-size: 1.3rem;
}

.feature-card p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.feature-link {
    color: var(--primary-dark);
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: gap 0.3s ease;
}

.feature-link:hover {
    gap: 1rem;
}

/* === ОСНОВНОЙ КОНТЕНТ === */
.content-section {
    padding: 80px 0;
}

.content-section.alt-bg {
    background: var(--gradient);
}

.content-grid {
    display: grid;
    gap: 3rem;
}

/* Информационные карточки */
.info-card {
    composes: card;
    padding: 2.5rem;
}

.info-card h3 {
    color: var(--primary-dark);
    margin-bottom: 1rem;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.info-card p {
    color: var(--text-light);
    font-size: 1.1rem;
    line-height: 1.8;
}

/* Сетка типов */
.types-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.type-card {
    composes: card;
    padding: 2rem;
    text-align: center;
}

.type-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--primary-dark);
}

.type-card h4 {
    color: var(--primary-dark);
    margin-bottom: 1rem;
    font-weight: 600;
}

.type-card p {
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.5;
}

/* === ИНСТРУКЦИИ И РУКОВОДСТВА === */
.guide-section {
    composes: card;
    padding: 3rem;
    margin: 2rem 0;
}

.guide-section h3 {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--primary-dark);
    font-size: 1.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.step-card {
    text-align: center;
    padding: 1.5rem;
}

.step-number {
    width: 60px;
    height: 60px;
    background: var(--primary-dark);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 1.5rem;
    box-shadow: 0 4px 15px rgba(96, 63, 43, 0.3);
}

.step-card h4 {
    color: var(--primary-dark);
    margin-bottom: 1rem;
    font-weight: 600;
}

.step-card p {
    color: var(--text-light);
    line-height: 1.6;
}

/* === ТАЙМЛАЙН === */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 30px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--accent-light);
    border-radius: 2px;
}

.timeline-item {
    display: flex;
    margin-bottom: 2rem;
    position: relative;
}

.timeline-marker {
    width: 60px;
    height: 60px;
    background: var(--primary-dark);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    margin-right: 2rem;
    flex-shrink: 0;
    z-index: 2;
    box-shadow: 0 4px 15px rgba(96, 63, 43, 0.3);
}

.timeline-content {
    composes: card;
    flex: 1;
    padding: 1.5rem;
}

.timeline-content h4 {
    color: var(--primary-dark);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.timeline-content p {
    color: var(--text-light);
}

/* === ПРОФИЛАКТИКА === */
.prevention-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.prevention-card {
    composes: card;
    padding: 2.5rem;
    text-align: center;
}

.prevention-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--primary-dark);
}

.prevention-card h4 {
    color: var(--primary-dark);
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.prevention-card ul {
    list-style: none;
    text-align: left;
}

.prevention-card li {
    padding: 0.5rem 0;
    color: var(--text-light);
    position: relative;
    padding-left: 1.5rem;
    line-height: 1.5;
}

.prevention-card li::before {
    content: '•';
    color: var(--primary-dark);
    font-weight: bold;
    position: absolute;
    left: 0;
    font-size: 1.2rem;
}

/* === ИССЛЕДОВАНИЯ === */
.charts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.chart-card {
    composes: card;
    padding: 2rem;
}

.chart-card h3 {
    margin-bottom: 1.5rem;
    color: var(--primary-dark);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.chart-container {
    height: 300px;
    position: relative;
}

.research-findings {
    margin-top: 4rem;
}

.findings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.finding-card {
    composes: card;
    padding: 2rem;
    text-align: center;
}

.finding-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--primary-dark);
}

.finding-card h4 {
    color: var(--primary-dark);
    margin-bottom: 1rem;
    font-weight: 600;
}

.finding-card p {
    color: var(--text-light);
    line-height: 1.6;
}

/* === ИНСТРУМЕНТЫ === */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
}

.tool-card {
    composes: card;
    padding: 2.5rem;
}

.tool-card h3 {
    color: var(--primary-dark);
    margin-bottom: 2rem;
    text-align: center;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

/* Чек-лист */
.checklist-item {
    display: flex;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid var(--accent-light);
    cursor: pointer;
    transition: all 0.3s ease;
}

.checklist-item:last-child {
    border-bottom: none;
}

.checklist-item:hover {
    background: var(--accent-light);
    margin: 0 -1rem;
    padding: 1rem;
    border-radius: 8px;
}

.checklist-item input {
    margin-right: 1rem;
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.checklist-item span {
    flex: 1;
}

/* Уровни симптомов */
.symptoms-list {
    margin-bottom: 2rem;
}

.symptom-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid var(--accent-light);
}

.symptom-item:last-child {
    border-bottom: none;
}

.symptom-level {
    display: flex;
    gap: 4px;
}

.level-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--accent-light);
    transition: all 0.3s ease;
    cursor: pointer;
}

.level-dot:hover {
    background: var(--primary-medium);
}

.level-dot.active {
    background: var(--primary-dark);
    transform: scale(1.2);
}

/* Дневник эмоций */
.emotion-diary {
    margin-top: 1rem;
}

.diary-input textarea {
    width: 100%;
    height: 120px;
    padding: 1rem;
    border: 1px solid var(--accent-light);
    border-radius: 10px;
    resize: vertical;
    font-family: inherit;
    margin-bottom: 1rem;
    transition: border-color 0.3s ease;
}

.diary-input textarea:focus {
    outline: none;
    border-color: var(--primary-dark);
}

.emotion-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.emotion-tag {
    padding: 0.5rem 1rem;
    background: var(--accent-light);
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    border: 2px solid transparent;
}

.emotion-tag:hover,
.emotion-tag.active {
    background: var(--primary-dark);
    color: var(--white);
    border-color: var(--primary-dark);
}

/* Упражнение на границы */
.boundaries-exercise {
    margin-top: 1rem;
}

.boundaries-exercise p {
    margin-bottom: 1.5rem;
    color: var(--text-light);
    line-height: 1.6;
}

.boundary-category {
    margin-bottom: 1.5rem;
}

.boundary-category h4 {
    color: var(--primary-dark);
    margin-bottom: 0.5rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.boundary-category input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--accent-light);
    border-radius: 8px;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.boundary-category input:focus {
    outline: none;
    border-color: var(--primary-dark);
}

/* Результаты теста */
.results-section {
    display: none;
    composes: card;
    padding: 2.5rem;
    margin-top: 2rem;
}

.results-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--primary-dark);
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.progress-container {
    margin-bottom: 2rem;
}

.progress-bar {
    height: 10px;
    background: var(--accent-light);
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.progress-fill {
    height: 100%;
    background: var(--primary-dark);
    border-radius: 5px;
    transition: width 0.5s ease;
}

.progress-label {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: var(--text-light);
}

.recommendations {
    margin-top: 2rem;
}

.recommendation-item {
    padding: 1rem;
    background: var(--accent-light);
    border-radius: 10px;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: transform 0.3s ease;
}

.recommendation-item:hover {
    transform: translateX(5px);
}

.recommendation-icon {
    color: var(--primary-dark);
    font-size: 1.5rem;
}

/* === ФУТЕР === */
.footer {
    background: var(--primary-dark);
    color: var(--white);
    text-align: center;
    padding: 3rem 0;
    margin-top: 4rem;
}

.footer p {
    opacity: 0.9;
}

/* === АНИМАЦИИ === */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* === АДАПТИВНОСТЬ === */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 1rem;
        box-shadow: 0 5px 20px var(--shadow);
        border-top: 1px solid var(--accent-light);
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .page-hero-content h1 {
        font-size: 2.2rem;
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .charts-grid {
        grid-template-columns: 1fr;
    }
    
    .types-grid {
        grid-template-columns: 1fr;
    }
    
    .steps-grid {
        grid-template-columns: 1fr;
    }
    
    .prevention-grid {
        grid-template-columns: 1fr;
    }
    
    .tools-grid {
        grid-template-columns: 1fr;
    }
    
    .findings-grid {
        grid-template-columns: 1fr;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .timeline::before {
        left: 25px;
    }
    
    .timeline-marker {
        width: 50px;
        height: 50px;
        margin-right: 1rem;
        font-size: 0.9rem;
    }
    
    .guide-section {
        padding: 2rem 1rem;
    }
    
    .info-card {
        padding: 2rem 1.5rem;
    }
    
    .tool-card {
        padding: 2rem 1.5rem;
    }
    
    .card {
        margin: 0.5rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .page-hero-content h1 {
        font-size: 1.8rem;
    }
    
    .section-title {
        font-size: 1.7rem;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
}