:root {
    --bg-color: #f5f5f0; /* Блеклый бежевый */
    --text-color: #333333;
    --accent-color: #4a6984; /* Пыльный, унылый синий */
    --border-color: #cccccc;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.6;
    margin: 0;
    color: var(--text-color);
    background-color: var(--bg-color);
    text-align: center;
}

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

/* Detector Section */
#detector {
    padding: 60px 20px;
    min-height: 50vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.scan-text {
    font-size: 1.2rem;
    color: #888;
    letter-spacing: 2px;
}

.progress-bar-container {
    width: 100%;
    max-width: 500px;
    height: 30px;
    border: 1px solid var(--border-color);
    background-color: #fff;
    border-radius: 5px;
    margin: 20px 0;
}

.progress-bar {
    width: 0;
    height: 100%;
    background-color: var(--accent-color);
    border-radius: 5px;
    transition: width 0.1s linear;
}

.percentage-text {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--accent-color);
}

.result-text {
    font-size: 2.5rem;
    color: #d9534f; /* Тревожный красный */
    border: 2px dashed #d9534f;
    padding: 20px;
}

.hidden {
    display: none;
}

/* Symptoms Section */
#symptoms {
    padding: 40px 20px;
    background-color: #fff;
}

#symptoms h2 {
    font-size: 2rem;
}

#symptoms ul {
    list-style: none;
    padding: 0;
    text-align: left;
    max-width: 600px;
    margin: 20px auto;
}

#symptoms li {
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.sad-plant {
    max-width: 150px;
    margin-top: 30px;
    opacity: 0.7;
}

/* Solution Section */
#solution {
    padding: 60px 20px;
}

.exit-text {
    font-size: 1.2rem;
    font-style: italic;
    color: #555;
}

.psychologist-block {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    background-color: #fff;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-top: 40px;
    padding: 30px;
    text-align: left;
    gap: 30px;
}

.psychologist-photo img {
    max-width: 150px;
    border-radius: 50%;
    border: 5px solid var(--bg-color);
}

.psychologist-info {
    flex: 1;
    min-width: 300px;
}

.cta-button {
    display: inline-block;
    background-color: #5cb85c; /* Оптимистичный зеленый */
    color: #fff;
    padding: 15px 25px;
    text-decoration: none;
    border-radius: 5px;
    margin-top: 20px;
    font-weight: bold;
    transition: background-color 0.3s;
}

.cta-button:hover {
    background-color: #4cae4c;
}

/* Footer */
footer {
    padding: 20px;
    margin-top: 40px;
    color: #888;
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
    .result-text {
        font-size: 1.8rem;
    }
    .psychologist-block {
        flex-direction: column;
        text-align: center;
    }
}