/* style.css - Основные стили для сайта психолога */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg: #F5EFE6;
    --card: #FFFBF5;
    --border: #F0E4D8;
    --accent: #B87C4F;
    --accent-h: #A06B3E;
    --heading: #5A3A22;
    --text: #3E2C1F;
    --muted: #8B7355;
    --green-bg: #E8F3E8;
    --green-ac: #4A8B4A;
    --red-bg: #FDF2F0;
    --red-ac: #C46B5A;
    --radius-sm: 12px;
    --radius-md: 18px;
    --radius-lg: 28px;
}

body {
    font-family: 'Montserrat', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 24px 60px;
}

/* ===== НАВИГАЦИЯ ===== */
.navbar {
    background: var(--card);
    border-bottom: 1px solid var(--border);
    padding: 16px 24px;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(4px);
    background: rgba(255, 251, 245, 0.95);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.logo {
    font-size: 20px;
    font-weight: 700;
    color: var(--heading);
    text-decoration: none;
    letter-spacing: -0.3px;
}

.logo span {
    color: var(--accent);
}

.nav-links {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.nav-links a {
    color: var(--text);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s;
    position: relative;
}

.nav-links a:hover {
    color: var(--accent);
}

.nav-links a.active {
    color: var(--accent);
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--accent);
    border-radius: 2px;
}

/* ===== КАРТОЧКИ ===== */
.card {
    background: var(--card);
    border-radius: var(--radius-md);
    padding: 32px 32px;
    margin-bottom: 24px;
    border: 1px solid var(--border);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.02);
    transition: box-shadow 0.2s;
}

.card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
}

.card h1 {
    font-size: 32px;
    font-weight: 700;
    color: var(--heading);
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.card h2 {
    font-size: 22px;
    font-weight: 600;
    color: var(--heading);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--accent);
    display: inline-block;
}

.card h2 i {
    color: var(--accent);
    margin-right: 10px;
}

.card h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--heading);
    margin: 20px 0 12px;
}

.card p {
    font-size: 15px;
    margin-bottom: 16px;
    line-height: 1.65;
}

/* ===== ГЕРОЙ БЛОК ===== */
.hero-section {
    text-align: center;
    padding: 40px 20px;
}

.hero-section h1 {
    font-size: 42px;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-section .subtitle {
    font-size: 18px;
    color: var(--muted);
    margin-bottom: 32px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ===== СПИСОК ПРОБЛЕМ ===== */
.problems-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 20px 0;
}

.problem-item {
    background: var(--red-bg);
    padding: 10px 20px;
    border-radius: 40px;
    font-size: 14px;
    font-weight: 500;
    color: var(--accent-h);
    border: 1px solid #F3DEDA;
    cursor: pointer;
    transition: all 0.2s;
}

.problem-item:hover {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
}

/* ===== ВЫДЕЛЕННЫЕ БЛОКИ ===== */
.highlight-box {
    background: #FDF9F4;
    border-left: 4px solid var(--accent);
    padding: 20px 24px;
    border-radius: var(--radius-sm);
    margin: 20px 0;
}

.highlight-box p {
    margin-bottom: 0;
}

.quote-box {
    background: var(--green-bg);
    border-left: 4px solid var(--green-ac);
    padding: 20px 24px;
    border-radius: var(--radius-sm);
    margin: 20px 0;
    font-style: italic;
    color: #2C5E2C;
}

/* ===== ТАБЛИЦА ЦЕН ===== */
.price-table-wrapper {
    overflow-x: auto;
    margin: 20px 0;
}

.price-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.price-table th,
.price-table td {
    padding: 14px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.price-table th {
    background: #FDF9F4;
    font-weight: 600;
    color: var(--heading);
    font-size: 14px;
}

.price-table tr:last-child td {
    border-bottom: none;
}

.price-table .service {
    font-weight: 500;
}

.price-table .price {
    color: var(--accent);
    font-weight: 600;
    white-space: nowrap;
}

.free-badge {
    background: var(--green-bg);
    color: var(--green-ac);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    display: inline-block;
}

/* ===== КНОПКИ ===== */
.btn {
    display: inline-block;
    background: var(--accent);
    color: white;
    padding: 12px 28px;
    border-radius: 40px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.2s;
    text-align: center;
    border: none;
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
}

.btn:hover {
    background: var(--accent-h);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(184, 124, 79, 0.25);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--accent);
    color: var(--accent);
}

.btn-outline:hover {
    background: var(--accent);
    color: white;
    transform: translateY(-2px);
}

.btn-large {
    padding: 14px 36px;
    font-size: 16px;
}

/* ===== ОТЗЫВЫ ===== */
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 24px;
    margin-top: 20px;
}

.review-card {
    background: #FDFBF7;
    border-radius: var(--radius-sm);
    padding: 20px;
    border: 1px solid var(--border);
    transition: transform 0.2s;
}

.review-card:hover {
    transform: translateY(-4px);
}

.review-text {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text);
    font-style: italic;
    margin-bottom: 12px;
}

.review-author {
    font-size: 13px;
    font-weight: 600;
    color: var(--accent);
    text-align: right;
}

/* ===== ВИДЕО СЕТКА ===== */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 20px;
}

.video-card {
    background: var(--card);
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 1px solid var(--border);
    transition: transform 0.2s;
}

.video-card:hover {
    transform: translateY(-4px);
}

.video-placeholder {
    background: #E8E0D6;
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted);
    font-size: 14px;
}

.video-card h3 {
    padding: 16px 16px 8px;
    font-size: 16px;
    margin: 0;
}

.video-card p {
    padding: 0 16px 16px;
    font-size: 12px;
    color: var(--muted);
    margin: 0;
}

/* ===== ФОРМА ===== */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 14px;
    font-weight: 600;
    color: var(--heading);
}

.form-group input,
.form-group textarea {
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    background: white;
    transition: all 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(184, 124, 79, 0.1);
}

/* ===== КОНТАКТНАЯ ИНФОРМАЦИЯ ===== */
.contact-info {
    background: #FDF9F4;
    border-radius: var(--radius-sm);
    padding: 24px;
    margin-bottom: 24px;
    border: 1px solid var(--border);
}

.contact-info p {
    margin-bottom: 12px;
    font-size: 15px;
}

.contact-info i {
    color: var(--accent);
    width: 28px;
    margin-right: 8px;
}

.contact-links {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 16px;
}

.contact-links a {
    color: var(--accent);
    text-decoration: none;
    font-size: 14px;
}

/* ===== ШАГИ ===== */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
    margin-top: 24px;
}

.step-card {
    text-align: center;
    padding: 20px;
    background: #FDFBF7;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
}

.step-number {
    width: 50px;
    height: 50px;
    background: var(--accent);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
    margin: 0 auto 16px;
}

.step-card h3 {
    margin: 16px 0 8px;
}

/* ===== ФУТЕР ===== */
.footer {
    text-align: center;
    font-size: 12px;
    color: var(--muted);
    margin-top: 48px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

.footer a {
    color: var(--accent);
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}

/* ===== РАСКРЫВАЮЩИЕСЯ БЛОКИ ===== */
.collapsible-header {
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
}

.collapsible-header h3 {
    margin: 0;
}

.collapsible-header .toggle-icon {
    color: var(--accent);
    transition: transform 0.3s;
}

.collapsible-header.open .toggle-icon {
    transform: rotate(180deg);
}

.collapsible-body {
    display: none;
    padding: 16px 0;
}

.collapsible-body.open {
    display: block;
}

/* ===== АДАПТИВ ===== */
@media (max-width: 768px) {
    .container {
        padding: 24px 16px 40px;
    }
    
    .card {
        padding: 20px 16px;
    }
    
    .card h1 {
        font-size: 24px;
    }
    
    .card h2 {
        font-size: 18px;
    }
    
    .hero-section h1 {
        font-size: 28px;
    }
    
    .hero-section .subtitle {
        font-size: 15px;
    }
    
    .nav-container {
        flex-direction: column;
        text-align: center;
    }
    
    .nav-links {
        justify-content: center;
        gap: 16px;
    }
    
    .nav-links a {
        font-size: 13px;
    }
    
    .reviews-grid {
        grid-template-columns: 1fr;
    }
    
    .price-table th,
    .price-table td {
        padding: 10px 12px;
        font-size: 12px;
    }
    
    .hero-buttons {
        gap: 12px;
    }
    
    .btn-large {
        padding: 12px 24px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .problems-grid {
        gap: 8px;
    }
    
    .problem-item {
        font-size: 12px;
        padding: 6px 14px;
    }
    
    .contact-info {
        padding: 16px;
    }
}