/* ========================================
   Алиса Гольцман — Клинический психолог
   ======================================== */

:root {
    --bg: #FFFFFF;
    --bg-warm: #F8F7F4;
    --bg-green: #8A9A7B;
    --bg-green-dark: #6B7A5E;
    --bg-green-light: #A8B899;
    --text: #2C2C2C;
    --text-light: #6B6B6B;
    --white: #FFFFFF;

    --font-serif: 'Cormorant Garamond', Georgia, serif;
    --font-sans: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;

    --radius-sm: 16px;
    --radius-md: 24px;
    --radius-lg: 32px;
    --radius-full: 9999px;

    --shadow-sm: 0 2px 12px rgba(0,0,0,0.04);
    --shadow-md: 0 8px 32px rgba(0,0,0,0.06);

    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ========================================
   ДЕКОРАТИВНЫЕ ЭЛЕМЕНТЫ HERO — КРУПНЫЕ
   ======================================== */

.deco-line {
    position: absolute;
    width: 3px;
    height: 300px;
    background: linear-gradient(to bottom, transparent 0%, var(--bg-green) 30%, var(--bg-green-light) 70%, transparent 100%);
    opacity: 0.6;
    z-index: 1;
    pointer-events: none;
    border-radius: 3px;
}

.deco-line-left {
    left: 6%;
    top: 10%;
    animation: floatLine 6s ease-in-out infinite;
}

.deco-line-right {
    right: 6%;
    top: 20%;
    height: 240px;
    animation: floatLine 8s ease-in-out infinite reverse;
}

.deco-circle {
    position: absolute;
    border-radius: 50%;
    z-index: 1;
    pointer-events: none;
}

.deco-circle-left {
    width: 200px;
    height: 200px;
    left: 2%;
    bottom: 15%;
    border: 3px solid var(--bg-green-light);
    opacity: 0.5;
    animation: floatCircle 10s ease-in-out infinite;
}

.deco-circle-right {
    width: 140px;
    height: 140px;
    right: 5%;
    top: 8%;
    background: var(--bg-green-light);
    opacity: 0.2;
    animation: floatCircle 12s ease-in-out infinite reverse;
}

.deco-dots {
    position: absolute;
    z-index: 1;
    pointer-events: none;
}

.deco-dots::before {
    content: '';
    position: absolute;
    width: 8px;
    height: 8px;
    background: var(--bg-green);
    border-radius: 50%;
    top: 0;
    left: 0;
    box-shadow:
        30px 0 0 var(--bg-green),
        60px 0 0 var(--bg-green),
        0 30px 0 var(--bg-green),
        30px 30px 0 var(--bg-green),
        60px 30px 0 var(--bg-green),
        0 60px 0 var(--bg-green),
        30px 60px 0 var(--bg-green),
        60px 60px 0 var(--bg-green);
    opacity: 0.5;
}

.deco-dots-left {
    left: 10%;
    top: 55%;
    animation: floatDots 7s ease-in-out infinite;
}

.deco-dots-right {
    right: 8%;
    bottom: 25%;
    animation: floatDots 9s ease-in-out infinite reverse;
}

/* Дополнительные крупные элементы */
.deco-arc {
    position: absolute;
    width: 180px;
    height: 180px;
    border: 3px solid var(--bg-green-light);
    border-radius: 50%;
    border-bottom-color: transparent;
    border-left-color: transparent;
    opacity: 0.4;
    z-index: 1;
    pointer-events: none;
}

.deco-arc-left {
    left: 3%;
    top: 35%;
    transform: rotate(-45deg);
    animation: rotateArc 15s linear infinite;
}

.deco-arc-right {
    right: 2%;
    top: 50%;
    width: 120px;
    height: 120px;
    transform: rotate(135deg);
    animation: rotateArc 20s linear infinite reverse;
}

.deco-cross {
    position: absolute;
    width: 40px;
    height: 40px;
    z-index: 1;
    pointer-events: none;
    opacity: 0.4;
}

.deco-cross::before,
.deco-cross::after {
    content: '';
    position: absolute;
    background: var(--bg-green);
    border-radius: 2px;
}

.deco-cross::before {
    width: 3px;
    height: 100%;
    left: 50%;
    transform: translateX(-50%);
}

.deco-cross::after {
    width: 100%;
    height: 3px;
    top: 50%;
    transform: translateY(-50%);
}

.deco-cross-left {
    left: 15%;
    top: 20%;
    animation: floatCross 5s ease-in-out infinite;
}

.deco-cross-right {
    right: 12%;
    bottom: 20%;
    animation: floatCross 6s ease-in-out infinite reverse;
}

@keyframes floatLine {
    0%, 100% { transform: translateY(0) scaleY(1); opacity: 0.5; }
    50% { transform: translateY(-30px) scaleY(1.1); opacity: 0.7; }
}

@keyframes floatCircle {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(15px, -20px) rotate(8deg); }
    66% { transform: translate(-10px, 15px) rotate(-5deg); }
}

@keyframes floatDots {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(90deg); }
}

@keyframes rotateArc {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes floatCross {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(45deg); }
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-sans);
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    font-weight: 300;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 720px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ========================================
   Навигация
   ======================================== */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 20px 0;
    transition: var(--transition);
    background: transparent;
}

.navbar.scrolled {
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: var(--shadow-sm);
    padding: 14px 0;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 720px;
    margin: 0 auto;
    padding: 0 24px;
}

.logo {
    font-family: var(--font-serif);
    font-size: 1.3rem;
    font-weight: 500;
    color: var(--bg-green-dark);
    text-decoration: none;
    letter-spacing: -0.02em;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 32px;
}

.nav-link {
    font-family: var(--font-sans);
    font-size: 0.85rem;
    font-weight: 400;
    color: var(--text);
    text-decoration: none;
    position: relative;
    padding: 4px 0;
    transition: var(--transition);
    letter-spacing: 0.02em;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--bg-green);
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--bg-green-dark);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 1.5px;
    background: var(--text);
    border-radius: 2px;
    transition: var(--transition);
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(4px, 4px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ========================================
   Кнопки
   ======================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 32px;
    border-radius: var(--radius-full);
    font-family: var(--font-sans);
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    letter-spacing: 0.02em;
}

.btn-primary {
    background: var(--bg-green);
    color: var(--white);
    box-shadow: 0 4px 20px rgba(138, 154, 123, 0.3);
}

.btn-primary:hover {
    background: var(--bg-green-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(138, 154, 123, 0.4);
}

.btn-secondary {
    background: var(--white);
    color: var(--bg-green-dark);
    border: 1.5px solid var(--bg-green-light);
}

.btn-secondary:hover {
    background: var(--bg-green-light);
    color: var(--white);
    border-color: var(--bg-green);
}

.btn-telegram {
    background: var(--bg-green);
    color: var(--white);
    font-size: 0.95rem;
    padding: 18px 36px;
    box-shadow: 0 4px 20px rgba(138, 154, 123, 0.3);
}

.btn-telegram:hover {
    background: var(--bg-green-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 28px rgba(138, 154, 123, 0.4);
}

.btn-channel {
    background: var(--white);
    color: var(--bg-green-dark);
    border: 2px solid var(--bg-green);
    font-size: 0.95rem;
    padding: 16px 32px;
}

.btn-channel:hover {
    background: var(--bg-green);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(138, 154, 123, 0.3);
}

/* ========================================
   Контакты (кнопки в ряд)
   ======================================== */

.contacts {
    padding: 100px 0 80px;
    background: linear-gradient(180deg, var(--bg) 0%, var(--bg-warm) 100%);
    text-align: center;
}

.contacts-content {
    max-width: 600px;
    margin: 0 auto;
}

.contacts-text {
    font-family: var(--font-sans);
    font-size: 1.1rem;
    font-weight: 300;
    color: var(--text);
    line-height: 1.8;
    margin-bottom: 36px;
}

.contacts-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ========================================
   Заголовки секций
   ======================================== */

.section-header {
    text-align: center;
    margin-bottom: 48px;
}

.section-title {
    font-family: var(--font-serif);
    font-size: 2.6rem;
    font-weight: 300;
    color: var(--bg-green-dark);
    line-height: 1.15;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* ========================================
   Hero
   ======================================== */

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 24px 60px;
    background: var(--bg);
    position: relative;
    overflow: hidden;
}

.hero-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 28px;
    max-width: 500px;
    position: relative;
    z-index: 2;
}

.hero-label {
    font-family: var(--font-sans);
    font-size: 0.85rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    color: var(--text-light);
    order: 1;
}

.hero-name {
    font-family: var(--font-serif);
    font-size: 3.2rem;
    font-weight: 300;
    line-height: 1.1;
    color: var(--bg-green-dark);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    order: 2;
}

.hero-image-wrapper {
    width: 300px;
    height: 380px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    order: 3;
    position: relative;
}

.hero-image-wrapper::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 60%, rgba(138,154,123,0.08) 100%);
    pointer-events: none;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hero .btn-primary {
    order: 4;
    margin-top: 8px;

}
.hero-channel-link {
    font-family: var(--font-sans);
    font-size: 0.85rem;
    font-weight: 400;
    color: var(--bg-green);
    text-decoration: none;
    letter-spacing: 0.05em;
    position: relative;
    padding-bottom: 2px;
    transition: var(--transition);
    order: 5;
    margin-top: 4px;
}

.hero-channel-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--bg-green);
    transition: var(--transition);
}

.hero-channel-link:hover {
    color: var(--bg-green-dark);
}

.hero-channel-link:hover::after {
    width: 100%;
}
/* ========================================
   Обо мне
   ======================================== */

.about {
    padding: 100px 0;
    background: var(--bg-warm);
}

.about-content {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.about-content p {
    font-family: var(--font-sans);
    font-size: 1.05rem;
    font-weight: 300;
    color: var(--text);
    line-height: 1.9;
}

/* ========================================
   Образование
   ======================================== */

.education-section {
    padding: 100px 0;
    background: var(--bg);
}

.education-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    max-width: 700px;
    margin: 0 auto;
}

.education-card {
    background: var(--bg-warm);
    padding: 36px 28px;
    border-radius: var(--radius-md);
    transition: var(--transition);
    border: 1px solid rgba(138, 154, 123, 0.1);
}

.education-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: rgba(138, 154, 123, 0.2);
}

.education-icon {
    width: 48px;
    height: 48px;
    background: var(--bg-green-light);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    margin-bottom: 20px;
}

.education-card h4 {
    font-family: var(--font-serif);
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--text);
    margin-bottom: 12px;
    line-height: 1.4;
}

.education-card p {
    font-size: 0.85rem;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 4px;
}

/* ========================================
   Запросы
   ======================================== */

.issues {
    padding: 100px 0;
    background: var(--bg-green);
    border-radius: 40px 40px 0 0;
    margin: 0 12px;
    position: relative;
}

.issues .section-title {
    color: var(--white);
    margin-bottom: 48px;
}

.issues-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    max-width: 680px;
    margin: 0 auto;
}

.issue-card {
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-sm);
    padding: 22px 20px;
    border: 1px solid rgba(255,255,255,0.2);
    display: flex;
    align-items: flex-start;
    gap: 12px;
    transition: var(--transition);
}

.issue-card:hover {
    background: rgba(255,255,255,0.25);
    transform: translateY(-2px);
}

.issue-dot {
    width: 6px;
    height: 6px;
    background: var(--white);
    border-radius: 50%;
    flex-shrink: 0;
    margin-top: 8px;
    opacity: 0.8;
}

.issue-card span:last-child {
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--white);
    line-height: 1.5;
}

.issues-note {
    text-align: center;
    color: rgba(255,255,255,0.7);
    font-size: 0.85rem;
    margin-top: 32px;
    font-weight: 300;
}

/* ========================================
   Услуги
   ======================================== */

.services {
    padding: 100px 0;
    background: var(--bg-warm);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    max-width: 700px;
    margin: 0 auto;
}

.service-card {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 40px 32px;
    border: 2px solid var(--bg-green);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.service-info {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.service-badge {
    display: inline-block;
    align-self: flex-start;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--white);
    background: var(--bg-green);
    padding: 5px 14px;
    border-radius: var(--radius-full);
    margin-bottom: 16px;
}

.service-info h3 {
    font-family: var(--font-serif);
    font-size: 1.4rem;
    font-weight: 500;
    color: var(--bg-green-dark);
    margin-bottom: 20px;
    line-height: 1.3;
}

.service-details {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 28px;
    flex-grow: 1;
}

.service-detail {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 10px;
    border-bottom: 1px dashed rgba(138, 154, 123, 0.3);
}

.detail-label {
    font-size: 0.8rem;
    color: var(--text-light);
    font-weight: 400;
}

.detail-value {
    font-weight: 500;
    color: var(--text);
    font-size: 0.9rem;
}

.detail-value.price {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    color: var(--bg-green-dark);
    font-weight: 400;
}

.service-card .btn-secondary {
    width: 100%;
    margin-top: auto;
}

/* ========================================
   FAQ
   ======================================== */

.faq {
    padding: 100px 0;
    background: var(--bg);
}

.faq-list {
    max-width: 680px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item {
    background: var(--bg-warm);
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 1px solid rgba(138, 154, 123, 0.12);
    transition: var(--transition);
}

.faq-item:hover {
    box-shadow: var(--shadow-sm);
}

.faq-item[open] {
    box-shadow: var(--shadow-md);
}

.faq-question {
    padding: 22px 28px;
    font-family: var(--font-sans);
    font-size: 0.95rem;
    font-weight: 400;
    color: var(--text);
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}

.faq-question::-webkit-details-marker {
    display: none;
}

.faq-question::after {
    content: '+';
    font-size: 1.4rem;
    color: var(--bg-green);
    font-weight: 300;
    transition: var(--transition);
    flex-shrink: 0;
    margin-left: 16px;
}

.faq-item[open] .faq-question::after {
    transform: rotate(45deg);
    color: var(--bg-green-dark);
}

.faq-answer {
    padding: 0 28px 24px;
    color: var(--text-light);
    font-size: 0.88rem;
    line-height: 1.8;
    animation: fadeIn 0.3s ease;
}

.faq-answer p {
    margin: 0;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ========================================
   Контакты
   ======================================== */

.contacts {
    padding: 100px 0 80px;
    background: linear-gradient(180deg, var(--bg) 0%, var(--bg-warm) 100%);
    text-align: center;
}

.contacts-content {
    max-width: 500px;
    margin: 0 auto;
}

.contacts-text {
    font-family: var(--font-sans);
    font-size: 1.1rem;
    font-weight: 300;
    color: var(--text);
    line-height: 1.8;
    margin-bottom: 36px;
}

/* ========================================
   Футер
   ======================================== */

.footer {
    background: var(--text);
    color: rgba(255, 255, 255, 0.5);
    padding: 40px 0;
    text-align: center;
}

.footer-text {
    font-size: 0.8rem;
    margin-bottom: 4px;
    font-weight: 300;
}

.footer-sub {
    font-size: 0.75rem;
    opacity: 0.7;
    font-weight: 300;
}

/* ========================================
   Анимации
   ======================================== */

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ========================================
   Адаптивность
   ======================================== */

@media (max-width: 768px) {
    .deco-line, .deco-circle, .deco-dots, .deco-arc, .deco-cross {
        display: none;
    }

    .section {
        padding: 70px 0 !important;
    }

    .section-title {
        font-size: 2rem;
    }

    .section-header {
        margin-bottom: 36px;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 75%;
        max-width: 300px;
        height: 100vh;
        background: var(--bg);
        flex-direction: column;
        padding: 80px 32px 32px;
        gap: 20px;
        box-shadow: -10px 0 40px rgba(0,0,0,0.1);
        transition: right 0.3s ease;
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-toggle {
        display: flex;
        z-index: 1001;
    }

    .hero {
        padding: 90px 20px 50px;
        min-height: auto;
    }

    .hero-name {
        font-size: 2.4rem;
    }

    .hero-label {
        font-size: 0.75rem;
    }

    .hero-image-wrapper {
        width: 260px;
        height: 320px;
    }

    .btn {
        padding: 14px 28px;
        font-size: 0.85rem;
        width: 100%;
    }

    .issues {
        border-radius: 24px 24px 0 0;
        margin: 0 8px;
    }

    .issues-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .issue-card {
        padding: 18px 16px;
    }

    .education-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .education-card {
        padding: 28px 24px;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .service-card {
        padding: 32px 24px;
    }

    .service-info h3 {
        font-size: 1.2rem;
    }

    .detail-value.price {
        font-size: 1.5rem;
    }

    .faq-question {
        padding: 18px 22px;
        font-size: 0.88rem;
    }

    .faq-answer {
        padding: 0 22px 18px;
    }

    .contacts-text {
        font-size: 1rem;
    }

    .about-content p {
        font-size: 0.95rem;
    }

    .contacts-buttons {
        display: flex;
        gap: 12px;
        justify-content: center;
        flex-wrap: wrap;
    }

    .contacts-buttons .btn {
        flex: 1 1 auto;
        min-width: 200px;
        max-width: 280px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 18px;
    }

    .nav-container {
        padding: 0 18px;
    }

    .hero-name {
        font-size: 2rem;
    }

    .hero-image-wrapper {
        width: 220px;
        height: 280px;
    }

    .section-title {
        font-size: 1.7rem;
    }

    .issues {
        border-radius: 20px 20px 0 0;
        margin: 0 6px;
    }

    .education-card {
        padding: 24px 20px;
    }

    .service-card {
        padding: 28px 20px;
    }

    .service-info h3 {
        font-size: 1.1rem;
    }

    .detail-value.price {
        font-size: 1.3rem;
    }
}

/* ========================================
   Утилиты
   ======================================== */

::selection {
    background: var(--bg-green-light);
    color: var(--white);
}

::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg-warm);
}

::-webkit-scrollbar-thumb {
    background: var(--bg-green-light);
    border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--bg-green);
}

/* Стили для футера */
.site-footer {
    padding: 40px 20px 60px; /* Отступы, чтобы текст не прилипал к краю */
    background: #FFFFFF;    /* Фон совпадает с фоном сайта */
    text-align: center;
}

.footer-legal {
    font-size: 0.65rem;      /* Очень мелкий размер шрифта */
    color: #BDC2BC;          /* Бледный цвет, почти сливающийся с фоном */
    line-height: 1.5;
    letter-spacing: 0.02em;
    font-weight: 400;
}