/* =========================================
   ПЕРЕМЕННЫЕ И БАЗОВЫЕ НАСТРОЙКИ
   ========================================= */
:root {
    --primary: #4C6E5C;
    --secondary: #8B6E59;
    --dark: #2C3531;
    --text: #454d4e;
    --bg-light: #F9F8F6;
    --white: #ffffff;
    --border: #E8E5E0;
    --font-heading: 'PT Serif', serif;
    --font-hand: 'Cormorant Garamond', serif;
    --font-body: 'Montserrat', sans-serif;
}

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

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

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

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

/* =========================================
   ШАПКА (HEADER)
   ========================================= */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 75px;
    background-color: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
}

.header-container {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--dark);
    white-space: nowrap;
    margin-right: auto;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 20px;
    align-items: center;
}

.nav-list a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text);
    white-space: nowrap;
}

.nav-list a:hover {
    color: var(--primary);
}

.header-btn {
    white-space: nowrap;
    flex-shrink: 0;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--dark);
}

/* =========================================
   КНОПКИ
   ========================================= */
.btn {
    display: inline-block;
    padding: 13px 26px;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    text-align: center;
    transition: all 0.25s ease;
    border: 1px solid transparent;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

.btn-primary:hover {
    background-color: #3b5648;
    border-color: #3b5648;
}

.btn-secondary {
    background-color: var(--secondary);
    color: var(--white);
    border-color: var(--secondary);
}

.btn-outline {
    background-color: transparent;
    border-color: var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background-color: var(--primary);
    color: var(--white);
}

/* =========================================
   ГЛАВНЫЙ ЭКРАН (HERO)
   ========================================= */
.hero {
    margin-top: 75px;
    padding: 60px 0 70px;
    background: linear-gradient(180deg, #F9F8F6 0%, #FFFFFF 100%);
    min-height: calc(100vh - 75px);
    display: flex;
    align-items: center;
}

.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.hero-text {
    flex: 1 1 55%;
    max-width: 600px;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(2.2rem, 3.8vw, 3.3rem);
    line-height: 1.15;
    color: var(--dark);
    margin-bottom: 20px;
}

.hero-title span {
    display: block;
}

.hero-desc {
    font-size: 1.1rem;
    color: #555e5f;
    line-height: 1.6;
    margin-bottom: 20px;
}

.hero-credo {
    font-family: var(--font-hand);
    font-size: 1.55rem;
    font-style: italic;
    color: var(--primary);
    display: flex;
    gap: 16px;
    margin-bottom: 30px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
}

.hero-image {
    flex: 1 1 45%;
    max-width: 480px;
}

.hero-image img {
    width: 100%;
    max-height: 560px;
    object-fit: cover;
    border-radius: 16px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
}

/* =========================================
   СЕКЦИИ И КАРТОЧКИ
   ========================================= */
.section {
    padding: 85px 0;
}

.bg-light {
    background-color: var(--bg-light);
}

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

.section-header.center {
    text-align: center;
}

.section-header h2 {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    color: var(--dark);
    margin-bottom: 10px;
}

.section-header p {
    font-size: 1.05rem;
    color: #666;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.align-center {
    align-items: center;
}

/* Обо мне */
.about-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.gallery-item {
    width: 100%;
    height: 380px;
    object-fit: cover;
    border-radius: 10px;
}

.about-text h2 {
    font-family: var(--font-heading);
    font-size: 2.1rem;
    margin-bottom: 16px;
    color: var(--dark);
}

.about-text p {
    margin-bottom: 15px;
    font-size: 1.05rem;
}

.about-text h3 {
    margin: 25px 0 14px;
    font-size: 1.2rem;
    color: var(--dark);
}

.education-list {
    list-style: none;
}

.education-list li {
    position: relative;
    padding-left: 18px;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.education-list li::before {
    content: "•";
    color: var(--primary);
    position: absolute;
    left: 0;
    font-size: 1.2rem;
}

/* Карточки направлений */
.card {
    background-color: var(--white);
    padding: 28px;
    border-radius: 12px;
    border: 1px solid var(--border);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.06);
}

.card h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--dark);
}

.restriction-note {
    font-size: 0.9rem;
    color: #777;
    margin-top: 30px;
}

.center {
    text-align: center;
}

/* Медиация */
.mediation-content-card {
    background-color: #F1F4F2;
    padding: 38px;
    border-radius: 12px;
    max-width: 820px;
    margin: 0 auto;
    text-align: center;
    border-left: 4px solid var(--primary);
}

.mediation-tags {
    margin-top: 14px;
    font-weight: 600;
    color: var(--primary);
}

/* Проекты */
.business-subblock {
    margin-top: 40px;
}

.subblock-title {
    font-size: 1.55rem;
    margin-bottom: 8px;
    text-align: center;
    color: var(--dark);
}

.subblock-desc {
    text-align: center;
    color: #666;
    margin-bottom: 24px;
}

.project-mini-card {
    background: var(--white);
    padding: 26px;
    border-radius: 12px;
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.project-mini-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
}

.project-tag {
    display: inline-block;
    align-self: flex-start;
    padding: 4px 10px;
    background: #EAF0EC;
    color: var(--primary);
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 4px;
    margin-bottom: 12px;
}

.card-more-link {
    display: inline-block;
    margin-top: 15px;
    font-weight: 600;
    color: var(--primary);
}

.publication-card {
    background: var(--white);
    padding: 24px;
    border-radius: 12px;
    border: 1px solid var(--border);
}

.pub-badge {
    color: var(--primary);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 6px;
}

/* Прайс-лист */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.price-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.price-header h3 {
    font-size: 1.2rem;
    margin-bottom: 4px;
}

.price-header p {
    font-size: 0.88rem;
    color: #777;
    margin-bottom: 18px;
}

.price-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 10px 0;
    border-top: 1px dashed var(--border);
}

.price-item .price {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--primary);
}

/* Цитаты */
.articles-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
}

.quote-card {
    background: var(--white);
    border: 1px solid var(--border);
    padding: 28px;
    border-radius: 12px;
    display: flex;
    gap: 16px;
}

.quote-icon {
    font-family: var(--font-heading);
    font-size: 3rem;
    line-height: 1;
    color: var(--primary);
}

.quote-author-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 16px;
}

.quote-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
}

.quote-name {
    display: block;
    font-weight: 600;
}

.quote-date {
    display: block;
    font-size: 0.85rem;
    color: #888;
}

/* Подвал */
.footer {
    background: #232B28;
    color: #B5BFBA;
    padding: 38px 0;
    font-size: 0.9rem;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer a {
    color: var(--white);
    text-decoration: underline;
}

/* =========================================
   ПЛАВАЮЩАЯ КНОПКА СВЯЗИ (КАК У АКУБОВОЙ)
   ========================================= */
.floating-contact-btn {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 60px;
    height: 60px;
    background-color: var(--primary);
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(76, 110, 92, 0.35);
    z-index: 998;
    cursor: pointer;
    border: 2px solid #ffffff;
    transition: transform 0.25s ease, background-color 0.25s ease;
}

.floating-contact-btn:hover {
    transform: scale(1.08);
    background-color: #3b5648;
}

.floating-contact-btn svg {
    width: 28px;
    height: 28px;
    fill: currentColor;
}

/* Модальные окна */
.promo-modal {
    position: fixed;
    bottom: 95px;
    right: 25px;
    z-index: 990;
    display: none;
    max-width: 320px;
}

.promo-modal.active {
    display: block;
}

.promo-content {
    background: var(--white);
    padding: 22px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border: 1px solid var(--border);
    position: relative;
}

.promo-close {
    position: absolute;
    top: 8px;
    right: 12px;
    background: none;
    border: none;
    font-size: 1.4rem;
    cursor: pointer;
}

.promo-badge {
    background: #F8EBE6;
    color: #B2533E;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
    display: inline-block;
    margin-bottom: 8px;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-overlay.active {
    display: flex;
}

.modal-window {
    background: var(--white);
    padding: 35px 30px;
    border-radius: 14px;
    width: 100%;
    max-width: 440px;
    position: relative;
    text-align: center;
}

.modal-close-btn {
    position: absolute;
    top: 14px;
    right: 16px;
    background: none;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: #999;
}

.modal-title {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    margin-bottom: 8px;
}

.modal-subtitle {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 24px;
}

.modal-messengers-clean {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.clean-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 14px;
    border-radius: 8px;
    font-weight: 600;
    color: var(--white);
}

.btn-tg { background: #229ED9; }
.btn-wa { background: #25D366; }
.btn-vk { background: #0077FF; }
.btn-max { background: #4C6E5C; }

/* =========================================
   АНИМАЦИИ ВЫКАТЫВАНИЯ ПРИ СКРОЛЛЕ
   ========================================= */
.scroll-animate {
    opacity: 0;
    transform: translateY(35px);
    transition: opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1), transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

.scroll-animate.active {
    opacity: 1;
    transform: translateY(0);
}

.mt-2 { margin-top: 20px; }
.mt-4 { margin-top: 40px; }

/* =========================================
   АДАПТИВ ПОД НОУТБУКИ И СМАРТФОНЫ
   ========================================= */
@media (max-width: 1024px) {
    .pricing-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
    .hero-container {
        gap: 30px;
    }
}

@media (max-width: 820px) {
    .nav-list {
        display: none;
    }
    .header-btn {
        display: none;
    }
    .mobile-menu-btn {
        display: block;
    }
    
    .hero {
        padding: 40px 0 50px;
    }
    .hero-container {
        flex-direction: column;
        text-align: center;
    }
    .hero-text {
        text-align: center;
    }
    .hero-credo, .hero-buttons {
        justify-content: center;
    }
    .hero-image {
        max-width: 320px;
    }
    
    .grid-2, .grid-3, .pricing-grid, .articles-grid {
        grid-template-columns: 1fr;
    }
    .about-gallery {
        grid-template-columns: 1fr;
    }
    .gallery-item {
        height: 280px;
    }
    .footer-container {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
    .floating-contact-btn {
        bottom: 18px;
        right: 18px;
        width: 54px;
        height: 54px;
    }
}
