:root {
    /* Colors */
    --primary-color: #2D3A32; /* Darker, more serious Green */
    --primary-light: #6B8276;
    --secondary-color: #FFFFFF; /* High contrast White */
    --bg-color: #F7EFE5; /* Psychologically warming Almond/Linen */
    --text-color: #1A1A1A; /* Near Black */
    --text-light: #555555;
    --white: #FFFFFF;
    --accent: #A68A78; /* Muted Taupe */

    /* Spacing */
    --spacing-xs: 0.75rem;
    --spacing-sm: 1.5rem;
    --spacing-md: 3rem;
    --spacing-lg: 5rem;
    --spacing-xl: 10rem;

    /* Typography */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;

    /* Shadows: Minimal or None */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.03);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.08);

    /* Transitions */
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    scroll-snap-type: y proximity;
    scroll-padding-top: 80px;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.7;
    text-align: justify;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -webkit-overflow-scrolling: touch;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 500;
    line-height: 1.1;
    color: var(--text-color); /* Headings in dark black for contrast */
    margin-bottom: var(--spacing-sm);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

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

/* Utilities */
.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

.section {
    padding: var(--spacing-xl) 0;
    scroll-snap-align: start;
    scroll-snap-stop: normal;
}

/* Buttons - Minimalist */
.btn {
    display: inline-block;
    padding: 14px 28px;
    background-color: var(--text-color); /* Black button */
    color: var(--white);
    border-radius: 4px; /* Slightly squared */
    font-weight: 400;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    border: 1px solid var(--text-color);
    transition: var(--transition);
    text-transform: uppercase;
}

.btn:hover {
    background-color: transparent;
    color: var(--text-color);
}

.btn-outline {
    display: inline-block;
    padding: 14px 28px;
    background-color: transparent;
    color: var(--text-color);
    border: 1px solid var(--text-color);
    border-radius: 4px;
    font-weight: 400;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

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

.messengers-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-decoration: none;
    padding: 14px 28px;
    border-radius: 4px;
    transition: var(--transition);
    background-color: transparent;
    color: var(--text-color);
    border: 1px solid var(--text-color);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.95rem;
    font-weight: 500;
}

.messengers-btn:hover {
    background-color: var(--text-color);
    color: var(--white);
}

.messengers-btn img {
    transition: var(--transition);
}

.messengers-btn:hover img {
    filter: invert(1);
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    /* Matching the warm background with glass effect */
    background-color: var(--bg-color);
    backdrop-filter: blur(8px);
    z-index: 1000;
    padding: 20px 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--text-color);
    letter-spacing: -0.5px;
}

.nav-links {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.nav-links a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-color);
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.75rem;
    padding: 8px 16px;
    /*border-radius: 20px;*/
    transition: var(--transition);
}

.nav-links a:hover {
    /*background-color: rgba(255, 255, 255, 0.6);*/
    color: var(--text-color);
    opacity: 1;
}

/* Fix for the button in nav to be visible on hover */
.nav-links a.btn-outline {
    border: 1px solid var(--text-color);
}
.nav-links a.btn-outline:hover {
    background-color: var(--text-color);
    color: var(--white);
    opacity: 1;
}

.mobile-toggle {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
    position: relative;
    z-index: 1100; /* Выше, чем меню (1050) */
}

/* Hero Section */
.hero { /* Removed hero styles as we use bio-teaser as main entry now in index.html */
   display: none;
}

/* Bio Teaser - Now Hero */
.bio-teaser {
    background-color: var(--bg-color); /* Matches body warmth */
    min-height: 90vh; /* Full screen feel */
    display: flex;
    align-items: center;
}

.bio-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
    align-items: center;
}

.bio-image img {
    border-radius: 0; /* Sharp corners */
    /* No shadow for ultra clean look or subtle */
    box-shadow: var(--shadow-xl);
}

.bio-text h1 {
    font-size: 3.5rem;
    margin-bottom: var(--spacing-sm);
    letter-spacing: -1px;
}

.bio-text p {
    margin-bottom: var(--spacing-md);
    color: var(--text-light);
    font-size: 1.1rem;
    font-weight: 300;
}

.bio-text ul li {
    font-size: 1.2rem;
    border-bottom: 1px solid #eee;
    color: var(--text-color);
}

.bio-tagline-mobile {
    display: none;
}

/* Credentials List - Special styling */
.credentials-list {
    list-style: none;
    margin-bottom: 0.2rem;
    padding-left: 0;
}

.credentials-list li {
    font-family: var(--font-body);
    font-size: 0.9rem;
    line-height: 1.2;
    color: var(--primary-color);
    font-weight: 300;
    padding: 0.1rem 0;
    position: relative;
    font-style: normal;
    letter-spacing: 0.3px;
    text-transform: none;
}

.credentials-list li::before {
    content: "•";
    position: relative;
    margin-right: 0.5rem;
    color: var(--primary-color);
    font-style: normal;
    font-weight: 600;
}

/* Approaches */
.approaches {
    background-color: var(--secondary-color); /* White contrast */
}

.section-header {
    text-align: left; /* Modern Left Align */
    margin-bottom: var(--spacing-lg);
    max-width: 800px;
}

.section-header h2 {
    font-size: 3rem;
    margin-bottom: var(--spacing-sm);
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
}

.card {
    background: transparent;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
    transition: var(--transition);
    border: none;
    border-top: 1px solid rgba(0,0,0,0.1); /* Minimal top border separator */
    padding-top: 2rem;
}

.card:hover {
    transform: translateY(-5px);
    border-top-color: var(--primary-color);
}

.card h3 {
    margin-bottom: var(--spacing-sm);
    font-size: 1.4rem;
}

.card p, .card ul li {
    color: var(--text-light);
    font-weight: 300;
}

/* Services & Pricing */
.services {
    background-color: var(--bg-color); /* Warm background again */
}

.price-card {
    text-align: left;
    padding: 3rem;
    background: var(--white); /* White card pop */
    border-radius: 0; /* Sharp */
    transition: var(--transition);
    border: 1px solid #eee;
}

.price-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.06);
    border-color: var(--primary-color);
}

/* Removed the drastic black hover effect for better readability and psychology */
.price-card h3 {
    margin-bottom: var(--spacing-xs);
    font-size: 1.8rem;
}

.price {
    font-size: 2.5rem;
    font-weight: 400;
    color: var(--text-color);
    margin-bottom: var(--spacing-sm);
    font-family: var(--font-heading);
}

/* Reviews */
.reviews {
    background-color: #2D3A32; /* Dark Green */
    color: var(--white);
}

.reviews h2 {
    color: var(--white);
    opacity: 0.9;
}

.review-slider {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    padding: 0 60px;
    min-height: 200px;
}

.review-item {
    display: none;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    max-height: none;
    overflow: visible;
}

.review-item.active {
    display: block;
    opacity: 1;
    animation: fadeIn 0.5s ease-in-out;
}

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

.review-item blockquote {
    font-size: 1.1rem;
    font-family: var(--font-body);
    font-style: italic;
    font-weight: 400;
    margin-bottom: 1.5rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.95);
    text-align: left;
}

.review-item blockquote p {
    margin-bottom: 1rem;
}

.review-item blockquote p:last-child {
    margin-bottom: 0;
}

.review-item blockquote strong {
    font-weight: 600;
    font-style: normal;
    color: var(--white);
}

.review-author {
    font-weight: 600;
    letter-spacing: 0.5px;
    font-size: 0.85rem;
    opacity: 0.8;
    text-align: center;
}

.review-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--white);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.review-nav:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-50%) scale(1.1);
}

.review-prev {
    left: 0;
}

.review-next {
    right: 0;
}

.review-indicators {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 2rem;
}

.review-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.review-indicator.active {
    background: var(--white);
    width: 30px;
    border-radius: 5px;
}

@media (max-width: 768px) {
    .review-slider {
        padding: 0 50px;
        min-height: 250px;
    }
    
    .review-item {
        max-height: none;
        overflow: visible;
    }
    
    .review-item blockquote {
        font-size: 1rem;
        line-height: 1.5;
    }
    
    .review-author {
        font-size: 0.85rem;
        margin-top: 1rem;
    }
    
    .review-nav {
        width: 40px;
        height: 40px;
    }
}

/* Contact */
.contact {
    background-color: var(--secondary-color);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
}

form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

input,
textarea {
    padding: 20px;
    border: none;
    background: var(--white);
    border-radius: 0;
    font-family: var(--font-body);
    font-size: 1rem;
    border-bottom: 2px solid transparent;
}

input:focus,
textarea:focus {
    outline: none;
    border-bottom-color: var(--primary-color);
}

/* Footer */
footer {
    background-color: var(--bg-color);
    color: var(--text-color);
    padding: var(--spacing-md) 0;
    text-align: center;
    border-top: 1px solid rgba(0,0,0,0.08);
    position: relative;
    z-index: 10;
    scroll-snap-align: end;
    scroll-snap-stop: normal;
}

footer p {
    font-size: 0.85rem;
    opacity: 0.7;
    color: var(--text-color);
    line-height: 1.6;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    align-items: center;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: rgba(45, 58, 50, 0.08);
    border-radius: 50%;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.social-icon:hover {
    background: rgba(45, 58, 50, 0.15);
    transform: translateY(-2px);
}

.social-icon svg,
.social-icon img {
    width: 24px;
    height: 24px;
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

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

@media (min-width: 769px) {
    .sticky-desktop {
        align-self: start;
        position: sticky;
        top: 120px;
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .container {
        padding: 0 1.5rem; /* More breathing room on edges */
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .bio-teaser {
        padding-top: 100px;
        min-height: auto;
    }

    .bio-grid,
    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    .mobile-toggle {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 0; 
        right: 0;
        height: 100vh;
        width: 80%;
        max-width: 300px;
        background: var(--white);
        flex-direction: column;
        padding: 100px 40px;
        box-shadow: -10px 0 30px rgba(0,0,0,0.1);
        transform: translateX(100%);
        transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        align-items: flex-start;
        justify-content: flex-start;
        z-index: 1050;
    }

    .nav-links.active {
        transform: translateX(0);
    }

    .nav-links a {
        font-size: 1.2rem; /* Larger touch targets */
        border-bottom: 1px solid #eee;
        width: 100%;
        padding: 15px 0;
    }

    /* Mobile Bio Optimization */
    .bio-grid {
        gap: 2rem;
        text-align: left; /* Left align for magazine look */
    }

    .bio-image {
        display: block;
        width: 100%;
        position: relative;
    }

    .bio-image img {
        width: 100%;
        height: auto;
        border-radius: 4px; /* Minimal radius */
        aspect-ratio: 4/5; /* Portrait format */
        object-fit: cover;
    }
    
    .bio-text h1 {
        font-size: 2.5rem;
        margin-bottom: 1rem;
        line-height: 1;
    }

    .bio-text ul {
        margin-bottom: 2rem;
    }
    
    .bio-text ul li {
        font-size: 1rem;
    }

    .bio-tagline-mobile {
        display: block;
        font-size: 0.8rem;
        white-space: nowrap;
    }

    .bio-tagline-desktop {
        display: none;
    }

    /* Stack buttons on mobile */
    .hero-actions {
        flex-direction: column;
        width: 100%;
    }

    .hero-actions .btn, 
    .hero-actions .btn-outline {
        width: 100%;
        text-align: center;
    }
}

/* Tablet / Desktop Button Logic */
.hero-actions {
    margin-top: 2rem;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap; /* Allows wrapping on smaller laptops */
}

/* Publications Grid */
.publications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
}