:root {
    --primary: #1f2f4f;
    --primary-dark: #162238;
    --primary-light: #e8ecf3;
    --accent: #0fb8cd;
    --accent-hover: #0ca0b3;
    --gold: #e3ca94;
    --text: #333333;
    --text-light: #666666;
    --bg: #ffffff;
    --gray-bg: #f5f7f9;
    --border: #dde4e8;
    --radius: 8px;
    --shadow: 0 2px 12px rgba(0,0,0,0.08);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Arial, 'Helvetica Neue', sans-serif;
    color: var(--text);
    line-height: 1.7;
    background: var(--bg);
    font-size: 15px;
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: var(--accent-hover);
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== Шапка ===== */
.header {
    background: var(--primary);
    color: white;
    border-bottom: 4px solid var(--gold);
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 0;
    flex-wrap: wrap;
    gap: 15px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    color: white;
}

.logo:hover {
    color: white;
    opacity: 0.9;
}

.logo-icon {
    background: var(--accent);
    color: white;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 20px;
    flex-shrink: 0;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-name {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: var(--gold);
}

.logo-tagline {
    font-size: 13px;
    opacity: 0.9;
}

.header-phones {
    text-align: right;
}

.phone-main a {
    color: var(--gold);
    font-size: 20px;
    font-weight: 700;
    text-decoration: none;
}

.phone-main a:hover {
    color: white;
}

.work-hours {
    font-size: 13px;
    opacity: 0.85;
}

/* ===== Навигация ===== */
.nav {
    background: var(--primary-dark);
}

.nav ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0;
}

.nav a {
    display: block;
    color: white;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 500;
    transition: background 0.2s;
    white-space: nowrap;
}

.nav a:hover,
.nav a.active {
    background: var(--accent);
    color: white;
}

/* ===== Контент ===== */
.main {
    padding: 30px 0 50px;
    min-height: 400px;
}

.page-title {
    font-size: 28px;
    color: var(--primary);
    margin-bottom: 25px;
    padding-bottom: 12px;
    border-bottom: 3px solid var(--gold);
    display: inline-block;
}

.content h2 {
    font-size: 22px;
    color: var(--primary);
    margin: 30px 0 15px;
}

.content h3 {
    font-size: 18px;
    color: var(--text);
    margin: 20px 0 10px;
}

.content p {
    margin-bottom: 15px;
}

.content ul,
.content ol {
    margin: 0 0 20px 25px;
}

.content li {
    margin-bottom: 8px;
}

.content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius);
    margin: 15px 0;
    box-shadow: var(--shadow);
}

/* ===== Таблицы ===== */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

table th {
    background: var(--primary);
    color: var(--gold);
    padding: 12px;
    text-align: left;
    font-weight: 600;
    font-size: 14px;
}

table td {
    padding: 10px 12px;
    border: 1px solid var(--border);
    font-size: 14px;
}

table tr:nth-child(even) {
    background: var(--gray-bg);
}

/* ===== Карточки ===== */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin: 25px 0;
}

.card-item {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    background: var(--gray-bg);
    transition: box-shadow 0.2s, transform 0.2s;
    border-top: 3px solid var(--accent);
}

.card-item:hover {
    box-shadow: var(--shadow);
    transform: translateY(-2px);
}

.card-item h3 {
    color: var(--primary);
    margin-bottom: 10px;
    font-size: 17px;
}

.card-item p {
    font-size: 14px;
    margin-bottom: 0;
}

/* ===== Блок с психологами ===== */
.psychologist-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin: 30px 0;
}

.psychologist-card {
    background: var(--gray-bg);
    border-radius: var(--radius);
    padding: 30px;
    border: 2px solid var(--primary-light);
    border-top: 4px solid var(--accent);
}

.psychologist-card h2 {
    color: var(--primary);
    margin-bottom: 10px;
}

.psychologist-card .title {
    color: var(--text-light);
    font-size: 14px;
    margin-bottom: 15px;
}

.psychologist-card .price {
    font-size: 18px;
    font-weight: 700;
    color: var(--accent);
    margin: 15px 0;
}

/* ===== Подвал ===== */
.footer {
    background: #2d2d2d;
    color: #ffffff;
    padding: 30px 0;
    margin-top: 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.footer-col h4 {
    color: var(--gold);
    margin-bottom: 15px;
    font-size: 16px;
}

.footer-col p {
    font-size: 14px;
    opacity: 0.9;
    margin-bottom: 8px;
}

.footer-col a {
    color: var(--gold);
}

.footer-col a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    margin-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.15);
    font-size: 13px;
    opacity: 0.85;
}

.footer-bottom p {
    color: #cccccc;
}

.privacy-note {
    margin-top: 10px;
    font-size: 12px;
    font-style: italic;
}

/* ===== Адаптивность ===== */
@media (max-width: 768px) {
    .header-top {
        flex-direction: column;
        text-align: center;
    }
    
    .logo {
        flex-direction: column;
        text-align: center;
    }
    
    .header-phones {
        text-align: center;
    }
    
    .nav ul {
        flex-direction: column;
    }
    
    .nav a {
        text-align: center;
    }
    
    .page-title {
        font-size: 24px;
    }
    
    .psychologist-block {
        grid-template-columns: 1fr;
    }
    
    .cards-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .logo-name {
        font-size: 18px;
    }
    
    .phone-main a {
        font-size: 16px;
    }
    
    .page-title {
        font-size: 20px;
    }
    
    .content h2 {
        font-size: 18px;
    }
}