/*
Theme Name: Doctor Maier
Theme URI: https://doctormaier.com
Author: Ваше имя
Author URI: https://ваш-сайт.ru
Description: Кастомная тема для сайта доктора Марины Майер
Version: 1.0
License: GPL-2.0+
Text Domain: doctormaier
*/

/* ========================================
   CSS VARIABLES
   ======================================== */
:root {
    /* Основные цвета */
    --color-cream: #F5F0EA;
    --color-paper: #ECE5DD;
    --color-terracotta: #C78F75;
    --color-terracotta-light: #D8B8AE;
    --color-terracotta-dark: #B07A62;
    --color-rose: #D8B8AE;
    --color-sage: #A9B09D;
    --color-dark: #403A37;
    --color-gray: #6A6460;
    --color-white: #FFFFFF;
    --color-light-text: #FAF8F6;
    
    /* Шрифты */
    --font-heading: 'Cormorant Garamond', serif;
    --font-body: 'Inter', sans-serif;
    
    /* Тени */
    --shadow-sm: 0 2px 8px rgba(64, 58, 55, 0.04);
    --shadow-md: 0 8px 24px rgba(64, 58, 55, 0.06);
    --shadow-lg: 0 16px 40px rgba(64, 58, 55, 0.08);
    --shadow-hover: 0 20px 40px rgba(199, 143, 117, 0.12);
    
    /* Скругления */
    --transition: all 0.8s ease;
    --border-radius-lg: 24px;
    --border-radius-xl: 120px;
}

/* ========================================
   RESET & BASE
   ======================================== */
* { margin: 0; padding: 0; box-sizing: border-box; }

body { 
    background-color: var(--color-cream); 
    font-family: var(--font-body); 
    color: var(--color-dark); 
    line-height: 1.8; 
    font-size: 18px;
    overflow-x: hidden; 
}

img { max-width: 100%; height: auto; }

h1, h2, h3, .logo, .hero-title, .section-title, .philosophy-quote { 
    font-family: var(--font-heading); 
    font-weight: 600; 
    letter-spacing: -0.02em; 
}

.container { 
    max-width: 1280px; 
    margin: 0 auto; 
    padding: 0 80px; 
    width: 100%; 
}

.section { 
    padding: 120px 0; 
    position: relative; 
}

/* ========================================
   BUTTONS
   ======================================== */
.btn {
    display: inline-block;
    padding: 16px 36px;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.04em;
    text-decoration: none;
    border-radius: 100px;
    transition: all 0.6s ease;
    cursor: pointer;
    border: none;
    text-align: center;
    font-family: var(--font-body);
    text-transform: uppercase;
}

.btn-primary {
    background: var(--color-terracotta);
    color: var(--color-white);
}

.btn-primary:hover {
    background: var(--color-terracotta-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(199, 143, 117, 0.3);
}

.btn-outline {
    border: 1.5px solid var(--color-terracotta);
    color: var(--color-terracotta);
    background: transparent;
}

.btn-outline:hover {
    background: var(--color-terracotta);
    color: var(--color-white);
    transform: translateY(-2px);
}


/* ========================================
   HEADER
   ======================================== */

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(245, 240, 234, 0.75);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(199, 143, 117, 0.1);
}

.header-top {
    padding: 16px 0;
}

.header-top .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.header-nav {
    border-top: 1px solid rgba(199, 143, 117, 0.08);
    padding: 12px 0;
}

.header-nav .container {
    display: flex;
    justify-content: center;
    gap: 32px;
}

.header-nav a {
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    color: var(--color-dark);
    transition: color 0.3s ease;
    letter-spacing: 0.04em;
    white-space: nowrap;
}

.header-nav a:hover {
    color: var(--color-terracotta);
}

/* Логотип */
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    flex-shrink: 0;
}

.logo-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.logo-name {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 700;
    color: var(--color-dark);
    letter-spacing: -0.01em;
    white-space: nowrap;
}

.logo-tagline {
    font-size: 9px;
    font-weight: 500;
    color: var(--color-gray);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    white-space: nowrap;
}

/* Кнопки */
.header-buttons {
    display: flex;
    gap: 16px;
    align-items: center;
    flex-shrink: 0;
}

.header-buttons .btn {
    font-size: 13px;
    padding: 10px 22px;
    white-space: nowrap;
}

.header-lk-link {
    font-size: 13px;
    font-weight: 500;
    color: var(--color-gray);
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.3s ease;
}

.header-lk-link:hover {
    color: var(--color-terracotta);
}

/* Мобильное меню */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-dark);
    transition: var(--transition);
    border-radius: 2px;
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

.mobile-nav {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(245, 240, 234, 0.98);
    backdrop-filter: blur(20px);
    padding: 100px 32px 40px;
    z-index: 999;
    flex-direction: column;
    gap: 16px;
    overflow-y: auto;
}

.mobile-nav.active {
    display: flex;
}

.mobile-nav a {
    font-size: 18px;
    font-weight: 500;
    color: var(--color-dark);
    text-decoration: none;
    letter-spacing: 0.04em;
    padding: 8px 0;
}

.mobile-nav .btn {
    text-align: center;
    margin-top: 12px;
}

.mobile-lk-link {
    font-size: 15px;
    color: var(--color-gray) !important;
    text-align: center;
    padding-top: 8px;
}

@media (max-width: 1024px) {
    .header-nav {
        display: none;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
}

/* ========================================
   HERO
   ======================================== */
.hero { 
    min-height: 100vh; 
    display: flex; 
    align-items: center; 
    padding-top: 140px;
    background: var(--color-cream); 
    position: relative; 
}

.hero .container { 
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    gap: 60px; 
    align-items: center; 
}

.hero-content {
    max-width: 520px;
}

.hero-badge {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-terracotta);
    margin-bottom: 24px;
}

.hero-content h1 { 
    font-size: 72px; 
    line-height: 1.1; 
    margin-bottom: 24px;
    font-weight: 700;
    color: var(--color-dark);
}

.hero-subtitle { 
    font-size: 18px; 
    font-weight: 500; 
    color: var(--color-terracotta); 
    margin-bottom: 16px; 
    line-height: 1.6;
}

.hero-content p { 
    font-size: 18px; 
    color: var(--color-gray); 
    margin-bottom: 42px; 
    line-height: 1.8; 
}

.hero-buttons { 
    display: flex; 
    gap: 20px; 
    flex-wrap: wrap; 
    align-items: center;
    margin-bottom: 28px;
}

.hero-tag {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--color-gray);
    line-height: 1.5;
}

.hero-tag-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1.2px solid var(--color-terracotta);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.hero-tag-icon img {
    width: 28px;
    height: 28px;
}

.hero-image {
    display: flex;
    justify-content: flex-end;
    align-items: flex-end;
}

.hero-image img { 
    width: 100%;
    max-width: 550px;
    border-radius: 220px 220px 0 0;
    box-shadow: var(--shadow-lg); 
    object-fit: cover; 
    aspect-ratio: 3/4; 
}

/* ========================================
   BACKGROUNDS
   ======================================== */
.bg-light { background: var(--color-white); }
.bg-cream { background: var(--color-cream); }
.bg-paper { background: var(--color-paper); }
.bg-sage { background: var(--color-sage); color: var(--color-light-text); }
.bg-terracotta { background: var(--color-terracotta); color: var(--color-light-text); }
.bg-dark { background: var(--color-dark); color: var(--color-light-text); }

/* ========================================
   SECTION TITLES
   ======================================== */
.section-label {
    display: block;
    text-align: center;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-gray);
    margin-bottom: 12px;
}

.section-title { 
    font-size: 48px; 
    font-weight: 700; 
    color: var(--color-dark); 
    text-align: center; 
    margin-bottom: 16px; 
    position: relative; 
}

.section-subtitle { 
    text-align: center; 
    font-size: 18px; 
    color: var(--color-gray); 
    max-width: 600px; 
    margin: 0 auto 64px; 
    line-height: 1.8;
}

.bg-sage .section-title,
.bg-dark .section-title,
.bg-terracotta .section-title { 
    color: var(--color-light-text); 
}

.bg-sage .section-subtitle,
.bg-dark .section-subtitle,
.bg-terracotta .section-subtitle { 
    color: rgba(250, 248, 246, 0.8); 
}

/* ========================================
   SERVICES CARDS (Направления)
   ======================================== */
.services-grid { 
    display: grid; 
    grid-template-columns: repeat(4, 1fr); 
    gap: 24px; 
}

.service-card { 
    background: var(--color-white); 
    border-radius: var(--border-radius-xl) var(--border-radius-xl) 0 0;
    overflow: hidden;
    transition: var(--transition); 
    box-shadow: var(--shadow-sm); 
    text-decoration: none; 
    display: block; 
    color: inherit; 
}

.service-card:hover { 
    transform: translateY(-6px); 
    box-shadow: var(--shadow-hover); 
}

.service-card-img {
    width: 100%;
    aspect-ratio: 4/5;
    object-fit: cover;
    border-radius: var(--border-radius-xl) var(--border-radius-xl) 0 0;
}

.service-card-body {
    padding: 28px 24px;
    text-align: center;
}

.service-card-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    border: 1.2px solid var(--color-terracotta);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.service-card-icon img {
    width: 32px;
    height: 32px;
}

.service-card h3 { 
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 8px;
    color: var(--color-dark);
}

.service-card p { 
    color: var(--color-gray); 
    font-size: 14px; 
    line-height: 1.6; 
}

/* ========================================
   ABOUT (Обо мне)
   ======================================== */
.about-grid { 
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    min-height: 600px;
}

.about-text { 
    background: var(--color-sage);
    padding: 80px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.about-label {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(250, 248, 246, 0.7);
    margin-bottom: 16px;
}

.about-text h2 {
    font-size: 42px;
    line-height: 1.2;
    color: var(--color-light-text);
    margin-bottom: 24px;
}

.about-text p {
    font-size: 16px;
    color: rgba(250, 248, 246, 0.9);
    line-height: 1.8;
    margin-bottom: 32px;
}

.about-image {
    overflow: hidden;
}

.about-image img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
}

/* ========================================
   APPROACH (Подход + Форма)
   ======================================== */
.approach-grid { 
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    gap: 60px; 
    align-items: start;
    position: relative;
}

.approach-list {
    list-style: none;
    padding: 0;
}

.approach-list li {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 24px;
    font-size: 16px;
    color: var(--color-dark);
    line-height: 1.6;
}

.approach-list-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--color-terracotta);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.approach-list-icon img {
    width: 18px;
    height: 18px;
    filter: brightness(0) invert(1);
}

.approach-silhouette {
    position: absolute;
    left: 0;
    bottom: -60px;
    width: 300px;
    height: 500px;
    opacity: 0.15;
    pointer-events: none;
    z-index: 0;
}

.approach-cta {
    background: var(--color-terracotta);
    border-radius: 80px 24px 80px 24px;
    padding: 48px;
    color: var(--color-light-text);
    position: relative;
    overflow: hidden;
}

.approach-cta h3 {
    font-size: 32px;
    line-height: 1.2;
    margin-bottom: 16px;
    color: var(--color-light-text);
}

.approach-cta p {
    font-size: 15px;
    opacity: 0.9;
    line-height: 1.7;
    margin-bottom: 24px;
}

.approach-cta .btn {
    background: var(--color-white);
    color: var(--color-dark);
}

.approach-cta .btn:hover {
    background: var(--color-dark);
    color: var(--color-white);
}

.approach-cta-flower {
    position: absolute;
    right: -20px;
    bottom: -20px;
    width: 200px;
    opacity: 0.9;
    pointer-events: none;
}

/* ========================================
   BENEFITS
   ======================================== */
.benefits-grid { 
    display: grid; 
    grid-template-columns: repeat(4, 1fr); 
    gap: 32px;
}

.benefit-card {
    text-align: center;
    padding: 48px 24px;
    background: var(--color-cream);
    border-radius: 24px;
    transition: var(--transition);
}

.benefit-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
}

.benefit-icon-lg {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 1.2px solid var(--color-terracotta);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.benefit-card h4 {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 600;
    color: var(--color-dark);
    margin-bottom: 8px;
}

.benefit-card p {
    font-size: 14px;
    color: var(--color-gray);
    line-height: 1.7;
}

@media (max-width: 1024px) {
    .benefits-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .benefits-grid { grid-template-columns: 1fr; gap: 20px; }
    .benefit-card { padding: 36px 20px; }
}

/* ========================================
   FOOTER
   ======================================== */
.site-footer {
    background: var(--color-dark);
    color: rgba(250, 248, 246, 0.7);
    padding: 80px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 48px;
    margin-bottom: 60px;
}

.footer-col h4 {
    font-family: var(--font-heading);
    font-size: 20px;
    color: var(--color-light-text);
    margin: 16px 0 8px;
}

.footer-col h5 {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-terracotta-light);
    margin-bottom: 20px;
}

.footer-col p {
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 4px;
}

.footer-col a {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(250, 248, 246, 0.7);
    text-decoration: none;
    font-size: 14px;
    margin-bottom: 12px;
    transition: color 0.3s ease;
    line-height: 1.5;
}

.footer-col a:hover {
    color: var(--color-terracotta-light);
}

.footer-col a svg {
    flex-shrink: 0;
    opacity: 0.6;
}

.footer-small {
    font-size: 12px !important;
    opacity: 0.6;
}

.footer-lk-link {
    display: inline-block;
    margin-top: 12px;
    padding: 8px 20px;
    border: 1px solid rgba(250, 248, 246, 0.2);
    border-radius: 100px;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.04em;
    color: var(--color-light-text) !important;
    transition: all 0.3s ease;
}

.footer-lk-link:hover {
    border-color: var(--color-terracotta-light);
    background: rgba(199, 143, 117, 0.1);
    color: var(--color-terracotta-light) !important;
}

.footer-logo img {
    width: 80px;
    height: 80px;
    display: block;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 0;
    border-top: 1px solid rgba(250, 248, 246, 0.08);
    font-size: 13px;
    flex-wrap: wrap;
    gap: 12px;
}

.footer-bottom-links a {
    color: rgba(250, 248, 246, 0.5);
    text-decoration: none;
    font-size: 13px;
    transition: color 0.3s ease;
}

.footer-bottom-links a:hover {
    color: var(--color-terracotta-light);
}

@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

/* ========================================
   FLAT BUTTON (Наверх)
   ======================================== */
.floating-btn { 
    position: fixed; 
    bottom: 30px; 
    right: 30px; 
    background: var(--color-terracotta); 
    color: white; 
    width: 48px; 
    height: 48px; 
    border-radius: 50%; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    font-size: 20px; 
    cursor: pointer; 
    z-index: 99; 
    border: none; 
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.floating-btn.visible {
    opacity: 1;
    visibility: visible;
}

/* ========================================
   ANIMATIONS
   ======================================== */
.fade-in {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1s ease, transform 1s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ========================================
   PHOTO PAGE
   ======================================== */

.photo-hero {
    position: relative;
    height: 85vh;
    min-height: 600px;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    padding: 0 80px 100px;
}

.photo-hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.photo-hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 30%;
    filter: brightness(0.7);
    transform: scaleX(-1);
}

.photo-hero-text {
    position: relative;
    z-index: 2;
}

.photo-hero-text h1 {
    font-family: var(--font-heading);
    font-size: 72px;
    font-weight: 700;
    color: var(--color-light-text);
    line-height: 1.1;
    margin: 8px 0 12px;
}

.photo-hero-text p {
    font-size: 18px;
    color: rgba(250, 248, 246, 0.8);
}

/* Masonry-коллаж */
.photo-masonry {
    column-count: 3;
    column-gap: 16px;
}

.photo-masonry-item {
    break-inside: avoid;
    margin-bottom: 16px;
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    cursor: pointer;
}

.photo-masonry-link {
    display: block;
    overflow: hidden;
    border-radius: 16px;
}

.photo-masonry-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: 0.8s ease;
    border-radius: 16px;
}

.photo-masonry-item:hover img {
    transform: scale(1.04);
}

.photo-masonry-item .photo-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 40px 20px 16px;
    background: linear-gradient(transparent, rgba(64, 58, 55, 0.6));
    opacity: 0;
    transition: 0.4s ease;
    border-radius: 0 0 16px 16px;
}

.photo-masonry-item:hover .photo-overlay {
    opacity: 1;
}

@media (max-width: 1024px) {
    .photo-masonry {
        column-count: 2;
    }
}

@media (max-width: 768px) {
    .photo-masonry {
        column-count: 1;
    }
}

/* Размеры ячеек */
.photo-large {
    grid-column: span 2;
    grid-row: span 2;
}

.photo-wide {
    grid-column: span 2;
    grid-row: span 1;
}

.photo-tall {
    grid-column: span 1;
    grid-row: span 2;
}

.photo-small {
    grid-column: span 1;
    grid-row: span 1;
}

@media (max-width: 1024px) {
    .photo-hero {
        padding: 0 40px 60px;
        height: 50vh;
    }
    
    .photo-hero-text h1 {
        font-size: 48px;
    }
    
    .photo-collage {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 180px;
    }
}

@media (max-width: 768px) {
    .photo-hero {
        padding: 0 24px 40px;
        height: 40vh;
        min-height: 350px;
    }
    
    .photo-hero-text h1 {
        font-size: 36px;
    }
    
    .photo-collage {
        grid-template-columns: 1fr;
        grid-auto-rows: 250px;
        gap: 12px;
    }
    
    .photo-large,
    .photo-wide,
    .photo-tall,
    .photo-small {
        grid-column: span 1;
        grid-row: span 1;
    }
}

.photo-caption {
    font-size: 14px;
    font-weight: 500;
    color: var(--color-light-text);
    letter-spacing: 0.04em;
}

/* ========================================
   REVIEWS PAGE
   ======================================== */

.reviews-masonry {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.review-card-new {
    background: var(--color-white);
    border-radius: 20px;
    padding: 36px 32px;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    height: fit-content;
}

.review-card-new:nth-child(3n+2) {
    margin-top: 40px;
}

.review-card-new:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.review-stars-new {
    display: flex;
    gap: 4px;
    margin-bottom: 20px;
}

.review-text-new {
    font-family: var(--font-heading);
    font-size: 18px;
    font-style: italic;
    line-height: 1.7;
    color: var(--color-dark);
    margin: 0 0 24px;
    padding: 0;
    border: none;
    quotes: none;
}

.review-text-new::before {
    content: open-quote;
    font-size: 48px;
    line-height: 0;
    color: var(--color-terracotta-light);
    font-family: var(--font-heading);
    display: block;
    margin-bottom: 8px;
}

.review-author-new {
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid rgba(199, 143, 117, 0.15);
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.review-author-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-terracotta);
    letter-spacing: 0.04em;
}

.review-author-date {
    font-size: 12px;
    color: var(--color-gray);
}

@media (max-width: 1024px) {
    .reviews-masonry {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .review-card-new:nth-child(3n+2) {
        margin-top: 0;
    }
    
    .review-card-new:nth-child(2n+2) {
        margin-top: 40px;
    }
}

@media (max-width: 768px) {
    .reviews-masonry {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .review-card-new:nth-child(2n+2) {
        margin-top: 0;
    }
    
    .review-card-new {
        padding: 28px 24px;
    }
}


/* ========================================
   BLOG PAGE
   ======================================== */

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.blog-card {
    background: var(--color-white);
    border-radius: 20px;
    overflow: hidden;
    transition: var(--transition);
}

.blog-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
}

.blog-card-image {
    display: block;
    overflow: hidden;
    aspect-ratio: 3/2;
}

.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 20px;
    background: var(--color-cream);
    transition: 0.8s ease;
}

.blog-card:hover .blog-card-image img {
    transform: scale(1.04);
}

.blog-card-placeholder {
    aspect-ratio: 3/2;
    background: var(--color-cream);
    display: flex;
    align-items: center;
    justify-content: center;
}

.blog-card-body {
    padding: 28px 24px;
}

.blog-card-date {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--color-terracotta);
    display: block;
    margin-bottom: 12px;
}

.blog-card-title {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 12px;
}

.blog-card-title a {
    color: var(--color-dark);
    text-decoration: none;
    transition: color 0.3s ease;
}

.blog-card-title a:hover {
    color: var(--color-terracotta);
}

.blog-card-excerpt {
    font-size: 14px;
    color: var(--color-gray);
    line-height: 1.7;
}

.blog-card,
.blog-card * {
    cursor: pointer !important;
}

.blog-read-more {
    font-size: 13px;
    font-weight: 600;
    color: var(--color-terracotta);
    letter-spacing: 0.04em;
    transition: transform 0.3s ease;
    display: inline-block;
    margin-top: auto;
}

.blog-card:hover .blog-read-more {
    transform: translateX(4px);
}

/* Пагинация */
.blog-pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 60px;
}

.blog-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 14px;
    font-weight: 500;
    color: var(--color-dark);
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.blog-pagination .page-numbers.current {
    background: var(--color-terracotta);
    color: var(--color-white);
    border-color: var(--color-terracotta);
}

.blog-pagination .page-numbers:hover:not(.current) {
    border-color: var(--color-terracotta);
    color: var(--color-terracotta);
}

.blog-pagination .next,
.blog-pagination .prev {
    width: auto;
    padding: 0 20px;
    border-radius: 100px;
    font-size: 13px;
    letter-spacing: 0.04em;
}

@media (max-width: 1024px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .blog-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .blog-card-body {
        padding: 20px;
    }
}


/* ========================================
   HARMONY PAGE
   ======================================== */

/* --- Hero --- */
.harmony-hero {
    min-height: 100vh;
    background: var(--color-white);
    display: flex;
    align-items: center;
    padding-top: 80px;
}

.harmony-hero-grid {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.harmony-hero-text {
    flex: 0 0 340px;
    max-width: 340px;
}

.harmony-logo-small {
    width: 90px;
    height: auto;
    margin-bottom: 32px;
}

.harmony-title-img {
    max-width: 320px;
    height: auto;
    margin-bottom: 24px;
    display: block;
}

.harmony-hero-doctor {
    font-size: 20px;
    font-weight: 300;
    color: var(--color-dark);
    margin: 0 0 10px;
}

.harmony-hero-caps {
    font-size: 20px;
    font-weight: 700;
    color: var(--color-dark);
    margin: 0 0 32px;
}

.harmony-cta-btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 200px;
    height: 55px;
    background: #232323;
    color: #ffffff;
    text-decoration: none;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.04em;
    transition: background 0.3s ease;
}

.harmony-cta-btn:hover {
    background: #de9c29;
    transform: translateY(-2px);
}

.harmony-hero-product {
    flex: 0 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2;
    margin-right: -60px;
}

.harmony-hero-product img {
    width: 520px;
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 20px 40px rgba(0,0,0,0.08));
}

.harmony-hero-doctor-img {
    flex: 0 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1;
    margin-left: -190px;
}

.harmony-hero-doctor-img img {
    width: 680px;
    height: auto;
    object-fit: contain;
}

@media (max-width: 1024px) {
    .harmony-hero-grid {
        flex-wrap: wrap;
        justify-content: center;
        text-align: center;
        gap: 32px;
    }
    
    .harmony-hero-text {
        flex: 0 0 100%;
        max-width: 100%;
        order: 1;
    }
    
    .harmony-title-img {
        margin: 0 auto 24px;
    }
    
    .harmony-hero-product {
    flex: 0 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2;
    margin-right: -60px;
    transform: translateY(100px);
}
    
    .harmony-hero-product img {
        width: 360px;
    }
    
    .harmony-hero-doctor-img {
        order: 3;
        margin-left: 0;
    }
    
    .harmony-hero-doctor-img img {
        width: 480px;
    }
}

@media (max-width: 768px) {
    .harmony-hero {
        min-height: auto;
        padding: 140px 0 60px;
    }
    
    .harmony-logo-small {
        width: 70px;
    }
    
    .harmony-hero-product img {
        width: 280px;
    }
    
    .harmony-hero-doctor-img img {
        width: 280px;
    }
    
    .harmony-cta-btn {
        margin: 0 auto;
    }
}

/* --- Преимущества (карточки) --- */
.harmony-benefits-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.harmony-benefit-card {
    background: var(--color-white);
    border: 1px solid rgba(199,143,117,0.12);
    border-radius: 12px;
    padding: 36px 24px;
    text-align: center;
    transition: var(--transition);
}

.harmony-benefit-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
}

.harmony-benefit-icon-lg {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: var(--color-cream);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.harmony-benefit-card h4 {
    font-family: var(--font-heading);
    font-size: 22px;
    margin-bottom: 8px;
    color: var(--color-dark);
}

.harmony-benefit-card p {
    font-size: 14px;
    color: var(--color-gray);
    line-height: 1.6;
}



/* --- Как это работает --- */
.harmony-how-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.harmony-how-reverse {
    direction: rtl;
}

.harmony-how-reverse .harmony-how-text {
    direction: ltr;
}

.harmony-how-reverse .harmony-how-image {
    direction: ltr;
}

.harmony-how-list {
    list-style: none;
    padding: 0;
    margin-top: 24px;
}

.harmony-how-list li {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 16px;
    font-size: 15px;
    color: var(--color-dark);
    line-height: 1.6;
}

.harmony-list-marker {
    flex-shrink: 0;
    margin-top: 3px;
}

.harmony-how-placeholder {
    width: 100%;
    aspect-ratio: 1;
    max-width: 400px;
    margin: 0 auto;
    background: var(--color-cream);
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* --- Отзывы --- */
.harmony-reviews {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.harmony-review {
    background: var(--color-white);
    padding: 32px;
    border-radius: 20px;
}

.harmony-review-stars {
    display: flex;
    gap: 3px;
    margin-bottom: 16px;
}

.harmony-review p {
    font-size: 15px;
    font-style: italic;
    line-height: 1.7;
    color: var(--color-dark);
    margin-bottom: 16px;
}

.harmony-review-author {
    font-size: 13px;
    color: var(--color-terracotta);
    font-weight: 500;
}

/* --- CTA --- */
.bg-terracotta {
    background: var(--color-terracotta);
}

/* --- Адаптив --- */
@media (max-width: 1024px) {
    .harmony-hero {
        background-image: none !important;
    }
    
    .harmony-hero-grid {
        flex-direction: column;
        text-align: center;
    }
    
    .harmony-hero-text {
        flex: none;
        max-width: 100%;
    }
    
    .harmony-title-img {
        margin: 0 auto 24px;
    }
    
    .harmony-hero-product-image {
        width: 300px;
    }
    
    .harmony-how-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    
    .harmony-how-reverse {
        direction: ltr;
    }
    
    .harmony-benefits-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .harmony-reviews {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .harmony-hero {
        min-height: auto;
        padding: 140px 0 60px;
    }
    
    .harmony-hero-product-image {
        width: 250px;
    }
    
    .harmony-benefits-grid {
        grid-template-columns: 1fr;
    }
    
    .harmony-cta-btn {
        margin: 0 auto;
    }
}


/* ========================================
   CONTACTS PAGE
   ======================================== */

.contacts-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
}

.contacts-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.contact-card {
    background: var(--color-white);
    padding: 32px 24px;
    border-radius: 16px;
    transition: var(--transition);
}

.contact-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.contact-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--color-cream);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.contact-card h4 {
    font-family: var(--font-heading);
    font-size: 20px;
    margin-bottom: 8px;
    color: var(--color-dark);
}

.contact-card p {
    font-size: 14px;
    color: var(--color-gray);
    line-height: 1.6;
}

.contact-card a {
    font-size: 15px;
    color: var(--color-terracotta);
    text-decoration: none;
    font-weight: 500;
}

.contact-card a:hover {
    text-decoration: underline;
}

.contact-note {
    font-size: 12px !important;
    color: var(--color-gray) !important;
    margin-top: 6px;
    opacity: 0.7;
}

.messenger-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1.5px solid rgba(199, 143, 117, 0.3);
    color: var(--color-dark);
    background: transparent;
}

.messenger-btn svg {
    opacity: 0.7;
}

.messenger-btn:hover {
    transform: translateX(4px);
    border-color: var(--color-terracotta);
    background: rgba(199, 143, 117, 0.08);
    color: var(--color-terracotta);
}

.messenger-btn:hover svg {
    opacity: 1;
}

/* Реквизиты */
.contacts-requisites {
    margin-top: 48px;
    background: var(--color-cream);
    padding: 36px 32px;
    border-radius: 20px;
}

.contacts-requisites h3 {
    font-family: var(--font-heading);
    font-size: 22px;
    margin-bottom: 20px;
    color: var(--color-dark);
}

.requisites-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 12px;
}

.requisites-grid div {
    font-size: 14px;
    color: var(--color-dark);
    padding: 10px 16px;
    background: var(--color-white);
    border-radius: 8px;
}

.requisites-grid div span {
    font-weight: 600;
    color: var(--color-terracotta);
    margin-right: 8px;
}

@media (max-width: 768px) {
    .contacts-grid {
        grid-template-columns: 1fr;
    }
    
    .contacts-cards {
        grid-template-columns: 1fr;
    }
}



/* ========================================
   SINGLE POST
   ======================================== */

.article {
    padding-top: 120px;
    background: var(--color-white);
}

.article-header {
    padding: 60px 0 32px;
    background: var(--color-white);
}

.article-header .container {
    max-width: 720px;
    margin: 0 auto;
    padding: 0 32px;
}

.article-meta {
    display: flex;
    gap: 16px;
    align-items: center;
    margin-bottom: 20px;
}

.article-date {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--color-terracotta);
}

.article-category {
    font-size: 12px;
    font-weight: 500;
    color: var(--color-gray);
    background: var(--color-cream);
    padding: 4px 12px;
    border-radius: 100px;
    letter-spacing: 0.04em;
}

.article-title {
    font-family: var(--font-heading);
    font-size: 42px;
    font-weight: 700;
    line-height: 1.15;
    color: var(--color-dark);
}

/* Изображение */
.article-gallery {
    padding: 0 0 40px;
    background: var(--color-white);
}

.article-gallery .container {
    max-width: 720px;
    margin: 0 auto;
    padding: 0 32px;
}

.article-single-image {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.article-featured-img {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 16/9;
    object-fit: contain;
    background: var(--color-cream);
}

/* Содержание */
.article-content {
    padding: 0 0 80px;
    background: var(--color-white);
}

.article-content .container {
    max-width: 720px;
    margin: 0 auto;
    padding: 0 32px;
}

.article-text {
    font-size: 18px;
    line-height: 1.9;
    color: var(--color-dark);
}

.article-text p {
    margin-bottom: 24px;
}

.article-text a {
    color: var(--color-terracotta);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.article-text a:hover {
    color: var(--color-terracotta-dark);
}

.article-text h2,
.article-text h3 {
    font-family: var(--font-heading);
    margin: 40px 0 16px;
}

.article-text h2 {
    font-size: 28px;
}

.article-text h3 {
    font-size: 22px;
}

.article-text ul,
.article-text ol {
    margin: 0 0 24px 20px;
}

.article-text li {
    margin-bottom: 8px;
}

.article-text blockquote {
    border-left: 3px solid var(--color-terracotta);
    padding: 8px 0 8px 24px;
    margin: 32px 0;
    font-style: italic;
    color: var(--color-gray);
    font-size: 20px;
}

.article-text img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 24px 0;
}

/* Навигация */
.article-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 40px;
    margin-top: 48px;
    border-top: 1px solid rgba(199, 143, 117, 0.15);
    gap: 16px;
    flex-wrap: wrap;
}

.article-nav-prev a,
.article-nav-next a {
    font-size: 14px;
    color: var(--color-dark);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.article-nav-prev a:hover,
.article-nav-next a:hover {
    color: var(--color-terracotta);
}

@media (max-width: 768px) {
    .article {
        padding-top: 100px;
    }
    
    .article-title {
        font-size: 28px;
    }
    
    .article-text {
        font-size: 16px;
    }
    
    .article-text blockquote {
        font-size: 17px;
    }
    
    .article-nav {
        flex-direction: column;
        text-align: center;
    }
    
    .article-featured-img {
        max-height: 400px;
    }

    .article-carousel .swiper-slide img {
    width: 100%;
    height: auto;
    aspect-ratio: 16/9;
    object-fit: contain;
    display: block;
    background: var(--color-cream);
}

}

/* ========================================
   NEWS CARDS (Актуальное)
   ======================================== */

.news-grid { 
    display: grid; 
    grid-template-columns: repeat(3, 1fr); 
    gap: 28px; 
}

.news-card { 
    background: var(--color-white); 
    border-radius: 20px; 
    overflow: hidden;
    box-shadow: var(--shadow-sm); 
    transition: var(--transition); 
    text-decoration: none; 
    display: flex;
    flex-direction: column;
    color: inherit; 
}

.news-card:hover { 
    transform: translateY(-6px); 
    box-shadow: var(--shadow-hover); 
}

.news-card-image {
    aspect-ratio: 4/3;
    overflow: hidden;
    background: var(--color-cream);
}

.news-card-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 20px;
}

.news-card-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-cream);
}

.news-card-body {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.news-date { 
    font-size: 12px; 
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--color-terracotta); 
    margin-bottom: 10px; 
    display: block; 
}

.news-title { 
    font-family: var(--font-heading);
    font-size: 20px; 
    font-weight: 600; 
    margin-bottom: 10px; 
    line-height: 1.3;
    color: var(--color-dark);
}

.news-excerpt { 
    font-size: 14px; 
    color: var(--color-gray); 
    line-height: 1.7; 
    margin-bottom: 16px;
    flex: 1;
}

.news-read-more {
    font-size: 13px;
    font-weight: 600;
    color: var(--color-terracotta);
    letter-spacing: 0.04em;
    transition: transform 0.3s ease;
    display: inline-block;
}

.news-card:hover .news-read-more {
    transform: translateX(4px);
}

@media (max-width: 1024px) {
    .news-grid { 
        grid-template-columns: repeat(2, 1fr); 
    }
}

@media (max-width: 768px) {
    .news-grid { 
        grid-template-columns: 1fr; 
        max-width: 500px;
        margin: 0 auto;
    }
}


.section-compact {
    padding-top: 40px;
    padding-bottom: 80px;
}


/* Исправление отступов для внутренних страниц */
.photo-hero {
    margin-top: 140px !important;
    height: calc(100vh - 140px) !important;
    min-height: 600px !important;
}

.photo-hero-image img {
    object-position: center 10% !important;
}

.page-template-reviews-page .section:first-of-type,
.page-template-blog-page .section:first-of-type,
.page-template-contacts-page .section:first-of-type {
    padding-top: 160px !important;
}

.page-template-harmony-page .harmony-hero {
    padding-top: 140px !important;
}



/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 1200px) {
    .hero-content h1 { font-size: 56px; }
    .section-title { font-size: 40px; }
}

@media (max-width: 1024px) {
    .container { padding: 0 32px; }
    .header .container { padding: 0 32px; }
    
    .nav { display: none; }
    .header-btn { display: none; }
    .mobile-menu-btn { display: flex; }
    
    .hero .container { 
        grid-template-columns: 1fr; 
        gap: 48px; 
    }
    
    .hero-content { max-width: 100%; }
    .hero-content h1 { font-size: 48px; }
    .hero-image img { max-width: 400px; border-radius: 160px 160px 0 0; }
    
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    
    .about-grid { grid-template-columns: 1fr; }
    .about-text { padding: 60px 40px; }
    .about-image { aspect-ratio: 4/3; }
    
    .approach-grid { grid-template-columns: 1fr; gap: 40px; }
    .approach-silhouette { display: none; }
    
    .benefits-grid { grid-template-columns: repeat(2, 1fr); }
    
    .footer-top { flex-direction: column; text-align: center; }
    .footer-links { justify-content: center; }
}

@media (max-width: 768px) {
    .container { padding: 0 20px; }
    
    .hero-content h1 { font-size: 36px; }
    .hero-image img { max-width: 100%; border-radius: 120px 120px 0 0; }
    
    .section { padding: 80px 0; }
    .section-title { font-size: 32px; }
    
    .services-grid { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }
    
    .about-text { padding: 40px 24px; }
    .about-text h2 { font-size: 32px; }
    
    .approach-cta { padding: 32px 24px; border-radius: 40px 16px 40px 16px; }
    .approach-cta h3 { font-size: 26px; }
    
    .benefits-grid { grid-template-columns: 1fr 1fr; gap: 20px; }
}

