/* Основные стили сайта */

/* ========== ОБЩИЕ СТИЛИ ========== */
/* Контейнеры и разделы */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 2;
}

section {
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
}

/* Мягкие переходы между секциями */
section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 20px;
    background: linear-gradient(to bottom, transparent, rgba(217, 213, 195, 0.1));
    z-index: 1;
    pointer-events: none;
}

/* Параллакс-эффект для фоновых элементов */
.parallax-bg {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1;
    background-size: cover;
    background-position: center;
    transform: translateZ(-1px) scale(2);
}

/* Кнопки с улучшенной анимацией */
.btn {
    display: inline-block;
    background-color: var(--accent);
    color: white;
    padding: 12px 30px;
    border-radius: 30px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    transition: all 0.3s cubic-bezier(.25,.8,.25,1);
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    z-index: 1;
    text-align: center;
    white-space: nowrap;
}

.btn:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.2);
    transition: all 0.4s ease;
    z-index: -1;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 7px 20px rgba(180, 84, 68, 0.4);
}

.btn:hover:before {
    left: 100%;
}

/* Специальные стили для главной кнопки */
.btn-hero {
    padding: 14px 35px;
    font-size: 1rem;
}

/* ========== ШАПКА САЙТА ========== */
header {
    padding: 1.5rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
    background: rgba(238, 233, 218, 0.9);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.header-scrolled {
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Стили для логотипа */
.logo {
    display: flex;
    align-items: center;
}

.logo-image {
    height: 60px;
    transition: transform 0.3s ease;
}

.logo:hover .logo-image {
    transform: scale(1.05);
}

/* Кнопка мобильного меню - ИСПРАВЛЕНО */
.mobile-menu-toggle {
    display: none; /* Скрываем по умолчанию */
    cursor: pointer;
    z-index: 101;
    width: 30px;
    height: 25px;
    position: relative;
}

.mobile-menu-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    margin: 6px 0;
    background-color: var(--text-primary);
    transition: all 0.3s ease;
    position: absolute;
}

.mobile-menu-toggle span:nth-child(1) {
    top: 0;
}

.mobile-menu-toggle span:nth-child(2) {
    top: 10px;
}

.mobile-menu-toggle span:nth-child(3) {
    top: 20px;
}

/* Улучшенная навигация */
nav ul {
    display: flex;
    list-style: none;
    align-items: center;
    justify-content: flex-end;
}

nav ul li {
    margin-left: 2rem;
    position: relative;
}

nav ul li a {
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-primary);
    display: block;
    padding: 0.5rem 0;
    position: relative;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: var(--accent);
}

/* Эффект подчеркивания при наведении */
nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent);
    transition: width 0.3s ease;
}

nav ul li a:hover::after {
    width: 100%;
}

/* Активный пункт меню */
nav ul li a.active {
    color: var(--accent);
    font-weight: 500;
}

nav ul li a.active::after {
    width: 100%;
}

/* ========== СЕКЦИЯ ГЕРОЙ ========== */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--bg-primary) 0%, #F2E9D5 100%);
    position: relative;
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
}

.hero h1 {
    margin-bottom: 1.5rem;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

/* ========== СЕКЦИЯ ОБО МНЕ ========== */
.about {
    background-color: var(--light-olive);
    position: relative;
    overflow: hidden;
}

/* ========== СЕКЦИЯ "КТО ТАКОЙ ЮНГИАНСКИЙ АНАЛИТИК" ========== */
#analyst {
    background-color: var(--bg-primary);
}

.about-inner {
    display: flex;
    align-items: center;
    position: relative;
    z-index: 2;
}

.about-image {
    flex: 1;
    padding-right: 4rem;
}

.about-image img {
    width: 100%;
    max-width: 400px;
    border-radius: 50%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.about-content {
    flex: 1;
}

/* ========== СЕКЦИЯ ФОРМАТЫ РАБОТЫ ========== */
.services {
    padding-bottom: 8rem;
    position: relative;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 95%;
    margin: 0 auto;
}

.service-card {
    padding: 2.5rem;
    margin: 1rem 0;
    border-radius: 15px;
    transition: all 0.5s cubic-bezier(.25,.8,.25,1);
}

/* Карточки с нормальными фонами */
.service-card, .pricing-card {
    background-color: var(--light-olive);
    border-radius: 10px;
    transition: all 0.5s cubic-bezier(.25,.8,.25,1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.08);
    transform: translateY(50px);
    opacity: 0;
}

.pricing-card {
    padding: 2rem;
}

.service-card.aos-animate, .pricing-card.aos-animate {
    transform: translateY(0);
    opacity: 1;
}

.service-card h3, .pricing-card h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
}

.service-card p, .pricing-card p, .pricing-card .price {
    position: relative;
    z-index: 1;
}

/* ========== СЕКЦИЯ ЮНГИАНСКИЙ АНАЛИЗ ========== */
.jungian {
    background-color: var(--light-olive);
    position: relative;
    overflow: hidden;
}

.jungian-inner {
    display: flex;
    align-items: center;
    gap: 4rem;
    position: relative;
    z-index: 2;
}

.jungian-content {
    flex: 1;
}

.jungian-image {
    flex: 1;
    text-align: center;
    position: relative;
    z-index: 2;
}

.jungian-image img {
    max-width: 100%;
    border-radius: 10px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    transition: all 0.5s ease;
    position: relative;
    z-index: 2;
}

.jungian-image::after {
    content: '';
    position: absolute;
    top: 20px;
    left: 20px;
    width: 100%;
    height: 100%;
    background-color: var(--accent);
    border-radius: 10px;
    z-index: 1;
    opacity: 0.1;
    transition: all 0.5s ease;
}

/* ========== СЕКЦИЯ ЦЕНЫ ========== */
.pricing {
    background-color: var(--light-olive);
    position: relative;
    overflow: hidden;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.pricing-card {
    background-color: var(--light-gray);
    border-radius: 10px;
    padding: 2rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.pricing-card h3 {
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
    color: var(--accent);
}

.pricing-card .price {
    font-size: 1.4rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.pricing-card p {
    font-size: 1rem;
    margin-bottom: 1rem;
}

/* ========== СЕКЦИЯ КОНТАКТЫ ========== */
.contact {
    position: relative;
    overflow: hidden;
}

.contact-inner {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 4rem;
}

.contact-info h3 {
    margin-bottom: 2rem;
    position: relative;
}

.contact-info p {
    margin-bottom: 1rem;
    position: relative;
    transition: all 0.3s ease;
}

.contact-info p strong {
    color: var(--accent);
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px 20px;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(29, 43, 54, 0.1);
    border-radius: 5px;
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    background-color: rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
    position: relative;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(180, 84, 68, 0.2);
    border-color: var(--accent);
    transform: translateY(-3px);
}

.contact-form textarea {
    min-height: 150px;
    resize: vertical;
}

/* ========== ФУТЕР ========== */
footer {
    background-color: var(--text-primary);
    color: white;
    padding: 4rem 0 2rem;
    position: relative;
    overflow: hidden;
}

.footer-inner {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
}

.footer-logo {
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
}

.footer-logo img {
    transition: transform 0.3s ease;
}

.footer-logo:hover img {
    transform: scale(1.1);
}

.footer-links h4 {
    color: white;
    margin-bottom: 1.5rem;
}

.footer-links ul {
    list-style: none;
}

.footer-links ul li {
    margin-bottom: 0.8rem;
}

.footer-links ul li a {
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.3s ease;
}

.footer-links ul li a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

/* ========== ОБЩИЕ КОМПОНЕНТЫ ========== */
/* Списки */
ul.feature-list {
    list-style: none;
    margin-bottom: 1.5rem;
}

ul.feature-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.8rem;
    opacity: 1;
    transform: translateX(0);
    transition: all 0.4s ease;
}

ul.feature-list li:before {
    content: '•';
    color: var(--accent);
    font-size: 1.2rem;
    position: absolute;
    left: 0;
    top: 0;
}

/* Цитаты */
.quote {
    font-style: italic;
    margin: 2rem 0;
    padding-left: 1.5rem;
    border-left: 3px solid var(--accent);
    position: relative;
    transition: all 0.5s ease;
    transform: scale(0.95);
}

/* ========== МЕДИА-ЗАПРОСЫ ========== */
/* Планшеты и небольшие экраны */
@media (max-width: 992px) {
    h1 {
        font-size: 2.8rem;
    }

    h2 {
        font-size: 2.2rem;
    }

    .about-inner,
    .jungian-inner {
        flex-direction: column;
        text-align: center;
    }

    .about-image {
        margin-bottom: 3rem;
        padding-right: 0;
    }

    .about-image img {
        max-width: 300px;
    }

    .jungian-image {
        order: -1;
        margin-bottom: 3rem;
    }
    
    /* Показываем мобильное меню */
    .mobile-menu-toggle {
        display: block;
    }
    
    nav {
        position: fixed;
        top: 0;
        right: -300px;
        width: 300px;
        height: 100vh;
        background-color: white;
        padding: 80px 0 0 40px;
        transition: all 0.3s ease;
        box-shadow: -5px 0 30px rgba(0, 0, 0, 0.1);
        z-index: 100;
        overflow-y: auto;
    }
    
    nav ul {
        flex-direction: column;
        align-items: flex-start;
    }
    
    nav ul li {
        margin: 1rem 0;
        width: 100%;
    }
    
    nav ul li a {
        padding: 0.8rem 0;
        display: block;
        width: 100%;
    }
    
    nav ul li a::after {
        display: none;
    }
}

/* Смартфоны */
@media (max-width: 768px) {
    section {
        padding: 4rem 0;
    }

    h1 {
        font-size: 2.5rem;
    }

    .hero {
        height: auto;
        padding: 8rem 0 6rem;
    }

    .contact-inner {
        gap: 2rem;
    }
    
    .services-grid, .pricing-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .header-inner {
        padding: 0 1rem;
    }
    
    /* Исправление для главной кнопки на мобильных */
    .btn-hero {
        padding: 12px 20px;
        font-size: 0.85rem;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        text-align: center;
    }
}

/* Маленькие смартфоны */
@media (max-width: 576px) {
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.8rem;
    }
    
    .services-grid, .pricing-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .footer-inner {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-logo {
        justify-content: center;
    }
    
    /* Дополнительные исправления для маленьких экранов */
    .btn, .btn-hero {
        padding: 10px 20px;
        font-size: 0.8rem;
        letter-spacing: 0.5px;
    }
    
    .hero p {
        font-size: 1.1rem;
        margin-bottom: 1.5rem;
    }
    
    .container {
        padding: 0 1rem;
    }
}