/* =========================================
   1. ПЕРЕМЕННЫЕ И БАЗОВЫЕ НАСТРОЙКИ
   ========================================= */
:root {
  --bg-color: #F2F4F3; 
  --primary-color: #3B5249; 
  --accent-color: #B89B72;  
  --footer-bg: #2A2B2A;     
  --text-main: #2D2D2D; 
  --text-light: #FFFFFF;
  --text-muted: #666666;
  --surface-color: #FFFFFF;
  --surface-alt: #F9F9F9;
  --border-color: rgba(0,0,0,0.05);
  --shadow-color: rgba(0,0,0,0.04);
  --shadow-hover: rgba(0,0,0,0.08);
  --font-heading: 'Cormorant Garamond', serif; 
  --font-body: 'Montserrat', sans-serif;
  --radius: 24px;
  --fz-h1: clamp(40px, 5vw, 68px); 
  --fz-h2: clamp(32px, 4vw, 54px); 
  --fz-h3: clamp(24px, 3vw, 38px); 
  --fz-h4: clamp(20px, 2vw, 24px); 
  --fz-body: clamp(15px, 1.5vw, 16px); 
  --spacing-section: clamp(60px, 8vw, 120px); 
}
body.dark-theme {
  --bg-color: #121212;
  --primary-color: #E2E8E4; 
  --text-main: #E0E0E0;
  --text-muted: #999999;
  --surface-color: #1E1E1E;
  --surface-alt: #252525;
  --border-color: rgba(255,255,255,0.05);
  --shadow-color: rgba(0,0,0,0.2);
  --shadow-hover: rgba(0,0,0,0.4);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { 
    font-family: var(--font-body); 
    font-size: var(--fz-body);
    background-color: var(--bg-color); 
    color: var(--text-main); 
    line-height: 1.6; 
    overflow-x: hidden; 
    transition: background-color 0.4s ease, color 0.4s ease;
}
.container { max-width: 1280px; margin: 0 auto; padding: 0 20px; }

/* =========================================
   2. ГЛОБАЛЬНЫЕ UI-ЭЛЕМЕНТЫ, АНИМАЦИИ И КНОПКИ
   ========================================= */
.fade-up { opacity: 0; transform: translateY(40px) scale(0.98); filter: blur(4px); transition: all 1s cubic-bezier(0.25, 1, 0.5, 1); will-change: opacity, transform, filter; }
.fade-up.is-visible { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.section-title { 
    font-family: var(--font-heading); 
    font-size: var(--fz-h2); 
    color: var(--primary-color); 
    margin-bottom: clamp(20px, 3vw, 40px); 
    font-weight: 600; 
    line-height: 1.1; 
    text-align: center;
}
.section-title span { font-style: italic; font-weight: 400; color: var(--accent-color); font-family: var(--font-heading); }
.section-subtitle { color: var(--text-muted); font-size: 16px; margin-top: -15px; text-align: center; }
section { padding: var(--spacing-section) 0; }

a.btn-primary, button.btn-primary, a.btn, button.btn { 
    display: inline-block; 
    background-color: var(--accent-color); 
    color: var(--text-light); 
    padding: 16px 36px; 
    font-size: var(--fz-body); 
    font-weight: 600; 
    text-decoration: none; 
    border-radius: 50px; 
    border: none; 
    cursor: pointer; 
    text-align: center;
    box-shadow: 0 4px 15px rgba(184, 155, 114, 0.3); 
    transition: background-color 0.3s ease, box-shadow 0.3s ease, color 0.3s ease; 
}
a.btn-primary:hover, button.btn-primary:hover, a.btn:hover, button.btn:hover { 
    background-color: #9D825D; 
    box-shadow: 0 8px 25px rgba(184, 155, 114, 0.45); 
    color: var(--text-light); 
}
.lead-form-wrapper .btn-primary { width: 100%; padding: 20px; }
:root {
    --btn-out-color: var(--primary-color);
    --btn-out-text-hover: var(--text-light);
}
a.btn-outline, button.btn-outline { 
    display: inline-block; 
    border: 1px solid var(--btn-out-color); 
    color: var(--btn-out-color); 
    padding: 12px 28px; 
    font-size: 14px; 
    font-weight: 600; 
    text-decoration: none; 
    border-radius: 50px; 
    transition: all 0.3s ease; 
    text-align: center;
}
a.btn-outline:hover, button.btn-outline:hover { 
    background-color: var(--btn-out-color); 
    color: var(--btn-out-text-hover); 
    border-color: var(--btn-out-color); 
}
.home-header-dark, .site-footer, .lead-magnet-section {
    --btn-out-color: var(--text-light);
    --btn-out-text-hover: var(--primary-color);
}
a.btn-outline-small, button.btn-outline-small { 
    display: inline-flex; 
    align-items: center; 
    justify-content: center; 
    gap: 8px; 
    padding: 12px 28px;
    border: 1px solid var(--accent-color); 
    color: var(--accent-color); 
    border-radius: 50px;
    font-size: 14px; 
    font-weight: 600; 
    text-decoration: none; 
    transition: all 0.3s ease; 
}
a.btn-outline-small:hover, button.btn-outline-small:hover { 
    background-color: var(--accent-color); 
    color: var(--text-light); 
    border-color: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(184, 155, 114, 0.3);
}
a.btn-small, button.btn-small { 
    display: inline-block; 
    padding: 10px 18px; 
    font-size: 13px; 
    border-radius: 50px; 
    background-color: var(--accent-color); 
    color: var(--text-light); 
    text-decoration: none; 
    font-weight: 600; 
    transition: background-color 0.3s ease; 
    white-space: nowrap; 
    border: none; 
    cursor: pointer; 
    text-align: center;
}
a.btn-small:hover, button.btn-small:hover { 
    background-color: #9D825D; 
    color: var(--text-light); 
}
.magnetic-btn { will-change: transform; transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1); }
.magnetic-btn:hover { transition: transform 0.1s linear; }

/* =========================================
   3. ШАПКА САЙТА И МОБИЛЬНОЕ МЕНЮ
   ========================================= */
.site-header { position: absolute; top: 0; left: 0; width: 100%; padding: 24px 0; z-index: 100; transition: all 0.3s ease; }
.header-inner { display: flex; justify-content: space-between; align-items: center; }
.logo { position: relative; z-index: 102; }
.logo a { font-family: var(--font-heading); font-size: 28px; font-weight: 600; color: var(--text-light); text-decoration: none; letter-spacing: 1px; transition: all 0.3s ease; }
.logo a:hover { opacity: 0.7; }
.main-nav ul { display: flex; gap: 40px; list-style: none; }
.main-nav a { color: var(--text-light); text-decoration: none; font-size: 15px; font-weight: 500; transition: color 0.3s ease; }
.main-nav a:hover { color: var(--accent-color); }
.header-contacts { display: flex; align-items: center; gap: 24px; }
.phone-link { color: var(--text-light); text-decoration: none; font-size: 16px; font-weight: 600; transition: color 0.3s ease; }
.phone-link:hover { color: var(--accent-color); }
.site-header.is-internal { position: relative; background-color: var(--surface-color); padding: 20px 0; box-shadow: 0 4px 20px var(--shadow-color); }
.site-header.is-internal .logo a, .site-header.is-internal .main-nav a, .site-header.is-internal .phone-link { color: var(--text-main); }
.site-header.is-internal .main-nav a:hover, .site-header.is-internal .phone-link:hover { color: var(--accent-color); }
.hamburger-btn { display: none; background: none; border: none; cursor: pointer; padding: 10px; z-index: 102; position: relative; width: 40px; height: 40px; }
.hamburger-btn span { display: block; width: 24px; height: 2px; background-color: var(--text-light); margin: 5px auto; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); }
.site-header.is-internal .hamburger-btn span { background-color: var(--text-main); }
.hamburger-btn.is-active span:nth-child(1) { transform: translateY(7px) rotate(45deg); background-color: var(--text-light); }
.hamburger-btn.is-active span:nth-child(2) { opacity: 0; }
.hamburger-btn.is-active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); background-color: var(--text-light); }
.site-header.is-internal .hamburger-btn.is-active span { background-color: var(--text-light); }
.mobile-menu { position: fixed; inset: 0; background-color: var(--primary-color); z-index: 101; display: flex; flex-direction: column; justify-content: center; align-items: center; opacity: 0; visibility: hidden; transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1); transform: translateY(-10px); }
.mobile-menu.is-open { opacity: 1; visibility: visible; transform: translateY(0); }
.site-header.is-internal.menu-open .logo a { color: var(--text-light); }
.mobile-nav ul { list-style: none; text-align: center; margin-bottom: 50px; padding: 0; }
.mobile-nav li { margin-bottom: 30px; }
.mobile-nav a { font-family: var(--font-heading); font-size: 36px; color: var(--text-light); text-decoration: none; transition: color 0.3s ease; display: inline-block; }
.mobile-nav a:hover { color: var(--accent-color); }
.mobile-contacts { text-align: center; display: flex; flex-direction: column; gap: 24px; width: 100%; padding: 0 40px; align-items: center; }
.mobile-phone { 
    color: var(--accent-color); 
    font-size: 28px; 
    font-weight: 600; 
    text-decoration: none; 
    font-family: var(--font-heading);
    display: inline-block;
    transition: opacity 0.3s ease, transform 0.3s ease;
}
.mobile-phone:active, .mobile-phone:hover { opacity: 0.7; transform: scale(0.96); }
.mobile-contacts a.btn-primary, .mobile-contacts button.btn-primary { width: 100%; max-width: 320px; font-size: 16px; padding: 18px; }

/* =========================================
   4. БАЗОВЫЕ КАРТОЧКИ (ФИЛОСОФИЯ, УСЛУГИ, КЕЙСЫ)
   ========================================= */
.philosophy-header, .services-header, .cases-header { text-align: center; margin-bottom: clamp(40px, 6vw, 60px); }
.features-grid, .services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.cases-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px; }
.feature-card, .case-card {
    background-color: var(--surface-color); 
    border-radius: var(--radius);
    padding: 40px;
    box-shadow: 0 15px 45px var(--shadow-color);
    border: 1px solid var(--border-color); 
    height: 100%;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.feature-card:hover, .case-card:hover { transform: translateY(-8px); box-shadow: 0 25px 50px var(--shadow-hover); }
.service-card { 
    background-color: var(--surface-color);
    border-radius: var(--radius);
    padding: 40px;
    box-shadow: 0 10px 30px var(--shadow-color);
    border: 1px solid var(--border-color);
    height: 100%;
    text-decoration: none; 
    color: var(--text-main); 
    display: block;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.service-card:hover { transform: translateY(-5px); box-shadow: 0 15px 40px var(--shadow-hover); border-color: var(--accent-color); }
.feature-icon { font-family: var(--font-heading); font-size: 42px; color: var(--accent-color); margin-bottom: 24px; font-weight: 600; border-bottom: 1px solid rgba(184, 155, 114, 0.3); display: inline-block; padding-bottom: 8px; }
.feature-title, .service-title { font-family: var(--font-heading); font-size: var(--fz-h4); margin-bottom: 16px; font-weight: 600; color: var(--primary-color); }
.feature-text, .service-desc { color: var(--text-muted); }
.service-icon { font-size: 32px; margin-bottom: 20px; color: var(--accent-color); }
.services-footer { text-align: center; margin-top: clamp(30px, 5vw, 60px); }
.case-tag { display: inline-block; font-size: 13px; text-transform: uppercase; letter-spacing: 1px; color: var(--accent-color); font-weight: 600; margin-bottom: 16px; }
.case-title { font-family: var(--font-heading); font-size: 28px; color: var(--text-main); margin-bottom: 24px; line-height: 1.3; font-weight: 600; }
.case-text { color: var(--text-muted); margin-bottom: 16px; }
.case-result { padding-top: 16px; border-top: 1px solid var(--border-color); color: var(--text-main); }
.case-result strong { color: var(--primary-color); font-weight: 600; }

/* =========================================
   5. ФЛАГМАНЫ (САНАТОРИИ И ТУРЫ)
   ========================================= */
.flagships-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.flagship-card { 
    position: relative; border-radius: var(--radius); overflow: hidden; 
    min-height: 550px; display: flex; flex-direction: column; padding: 50px; 
    color: #ffffff;
    box-shadow: 0 10px 30px var(--shadow-color); transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1); 
    background-size: cover; background-position: center; background-repeat: no-repeat;
}
.flagship-card:hover { transform: translateY(-10px); box-shadow: 0 25px 50px var(--shadow-hover); }
.card-bg-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 66, 53, 0.1) 0%, rgba(10, 66, 53, 0.9) 100%); z-index: 1; }
.flagship-content { position: relative; z-index: 2; display: flex; flex-direction: column; flex-grow: 1; }
.flagship-tag { 
    align-self: flex-start; margin-bottom: 20px; background-color: var(--accent-color); color: #ffffff; 
    padding: 8px 18px; font-family: var(--font-body); font-size: 12px; text-transform: uppercase; 
    letter-spacing: 1.5px; font-weight: 600; border-radius: 8px; backdrop-filter: blur(10px); 
    border: 1px solid rgba(255, 255, 255, 0.2); 
}
.flagship-title { font-family: var(--font-heading); font-size: var(--fz-h3); line-height: 1.2; margin-bottom: 20px; color: #ffffff; }
.flagship-desc { line-height: 1.7; opacity: 0.9; margin-bottom: 24px; max-width: 90%; }
.flagship-footer { margin-top: auto; }
.flagship-list { list-style: none; margin-bottom: 30px; padding: 0; }
.flagship-list li { position: relative; padding-left: 24px; margin-bottom: 12px; font-size: 15px; opacity: 0.95; }
.flagship-list li::before { content: '\2713'; position: absolute; left: 0; top: 0; color: var(--accent-color); font-weight: bold; }

/* =========================================
   5.5 ЛИЦО БРЕНДА (FOUNDER BLOCK)
   ========================================= */
.founder-section { padding: var(--spacing-section) 0; }
.founder-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 5vw, 80px); align-items: center; }
.founder-image-col { position: relative; }
.founder-photo { width: 100%; height: auto; border-radius: var(--radius); object-fit: cover; box-shadow: 0 20px 50px var(--shadow-color); display: block; }
.founder-text-col .section-subtitle { color: var(--accent-color); text-transform: uppercase; font-size: 14px; letter-spacing: 2px; margin-bottom: 15px; font-weight: 600; }
.founder-text-col .section-title { font-size: var(--fz-h2); margin-bottom: 30px; text-align: left; }
.founder-quote p { margin-bottom: 24px; font-size: 16px; line-height: 1.7; color: var(--text-muted); }
.founder-signature { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--border-color); }
.founder-name { font-family: var(--font-heading); font-size: 24px; margin-bottom: 5px; color: var(--primary-color); font-weight: 600; }
.founder-role { font-size: 14px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; }

/* =========================================
   5.6 НАГРАДЫ (AWARDS BLOCK)
   ========================================= */
.awards-section { padding: 40px 0; border-top: 1px solid var(--border-color); border-bottom: 1px solid var(--border-color); background-color: var(--surface-color); }
.awards-wrapper { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 30px; }
.awards-title { font-size: 13px; text-transform: uppercase; letter-spacing: 2px; color: var(--text-muted); font-weight: 600; white-space: nowrap; }
.awards-logos { display: flex; align-items: center; gap: clamp(30px, 5vw, 60px); flex-wrap: wrap; }
.award-logo { height: 35px; object-fit: contain; filter: grayscale(100%) opacity(0.4); transition: all 0.3s ease; }
.award-logo:hover { filter: grayscale(0%) opacity(1); }

/* =========================================
   5.7 СОЦИАЛЬНАЯ ОТВЕТСТВЕННОСТЬ (SOCIAL)
   ========================================= */
.social-section { padding: 60px 0; background-color: var(--bg-color); }
.social-wrapper { display: flex; align-items: center; justify-content: space-between; gap: 40px; background: var(--surface-color); padding: 40px 50px; border-radius: var(--radius); border: 1px solid var(--border-color); box-shadow: 0 10px 40px var(--shadow-color); }
.social-text { max-width: 600px; }
.social-title { font-size: 20px; font-family: var(--font-heading); color: var(--primary-color); margin-bottom: 12px; font-weight: 600; }
.social-text p { font-size: 14px; color: var(--text-muted); line-height: 1.6; margin: 0; }
.social-award { flex-shrink: 0; }
.social-award-img { max-width: 140px; height: auto; border-radius: 4px; box-shadow: 0 10px 20px var(--shadow-color); display: block; }
.social-link { display: inline-block; margin-top: 15px; font-size: 13px; color: var(--accent-color); text-transform: uppercase; letter-spacing: 1px; text-decoration: none; border-bottom: 1px solid transparent; transition: all 0.3s ease; }
.social-link:hover { border-bottom-color: var(--accent-color); }

/* =========================================
   5.8 СПЕЦИАЛЬНЫЕ ПРЕДЛОЖЕНИЯ (OFFERS)
   ========================================= */
.offers-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin: 50px 0 40px; }
.offer-card { background-color: var(--surface-color); padding: 40px 30px; border-radius: var(--radius); box-shadow: 0 10px 30px var(--shadow-color); border: 1px solid var(--border-color); text-align: center; transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease; }
.offer-card:hover { transform: translateY(-5px); box-shadow: 0 15px 40px var(--shadow-hover); border-color: var(--accent-color); }
.offer-icon { color: var(--accent-color); margin-bottom: 20px; display: flex; justify-content: center; }
.offer-icon svg { width: 36px; height: 36px; }
.offer-title { font-size: var(--fz-h4); margin-bottom: 15px; font-family: var(--font-heading); color: var(--primary-color); font-weight: 600; }
.offer-desc { font-size: 15px; line-height: 1.6; color: var(--text-muted); margin: 0; }
.offers-actions { text-align: center; margin-top: 40px; }

/* =========================================
   6. ПЕРВЫЙ ЭКРАН (HERO)
   ========================================= */
.hero-section { 
    position: relative; 
    height: 100vh; 
    min-height: 700px; 
    display: flex; 
    align-items: center; 
    background: var(--primary-color); 
    overflow: hidden; 
}
.video-background-wrapper { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 0; }
.video-background { width: 100%; height: 100%; object-fit: cover; display: block; }
.video-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,20,20,0.6) 0%, rgba(20,20,20,0.3) 100%); z-index: 1; }
.hero-content { position: relative; z-index: 2; max-width: 850px; text-align: left; padding-top: 60px; }
.hero-title { font-family: var(--font-heading); font-size: var(--fz-h1); line-height: 1.1; color: var(--text-light); margin-bottom: 24px; font-weight: 600; }
.hero-title span { font-style: italic; font-weight: 400; color: var(--accent-color); font-family: var(--font-heading); }
.hero-subtitle { font-size: 18px; line-height: 1.6; color: var(--text-light); opacity: 0.95; margin-bottom: 40px; max-width: 650px; }

/* =========================================
   7. ЛИД-МАГНИТ (ФОРМА)
   ========================================= */
.lead-magnet-section { background-color: var(--primary-color); color: var(--text-light); }
.lead-magnet-inner { display: flex; align-items: center; justify-content: space-between; gap: 60px; }
.lead-content { flex: 1; max-width: 500px; }
.lead-title { font-family: var(--font-heading); font-size: clamp(36px, 4vw, 42px); margin-bottom: 24px; line-height: 1.2; font-weight: 600; }
.lead-desc { line-height: 1.7; opacity: 0.9; }
.lead-form-wrapper { flex: 1; max-width: 500px; background: var(--surface-color); padding: 40px; border-radius: var(--radius); box-shadow: 0 20px 40px var(--shadow-color); }
.form-group { margin-bottom: 20px; }
.form-control { width: 100%; padding: 16px 20px; background: var(--surface-alt); border: 1px solid var(--border-color); border-radius: 12px; font-family: var(--font-body); font-size: 15px; color: var(--text-main); transition: all 0.3s ease; }
.form-control:focus { outline: none; border-color: var(--accent-color); background: var(--surface-color); box-shadow: 0 0 0 3px rgba(184, 155, 114, 0.1); }
.form-policy { font-size: 12px; color: var(--text-muted); text-align: center; margin-top: 16px; }

/* =========================================
   8. ПОДВАЛ (FOOTER)
   ========================================= */
.site-footer { 
    background-color: var(--footer-bg); 
    padding: 80px 0 30px; 
    font-size: 14px; 
    color: rgba(255, 255, 255, 0.7); 
}
.site-footer p, .site-footer a { 
    color: rgba(255, 255, 255, 0.7); 
    text-decoration: none; 
    margin: 0; 
    transition: color 0.3s ease; 
}
.site-footer a:hover { color: #ffffff; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 40px; margin-bottom: 60px; }
.footer-logo { font-family: var(--font-heading); font-size: 24px; color: #ffffff; text-decoration: none; font-weight: 600; letter-spacing: 1px; display: inline-block; margin-bottom: 20px; }
.footer-heading { font-size: 16px; font-weight: 600; margin-bottom: 24px; color: #ffffff; }
.footer-about { line-height: 1.6; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 12px; }
.footer-links a:hover { color: var(--accent-color); }
.footer-phone { display: block; font-size: 20px; color: #ffffff; font-weight: 500; margin-bottom: 8px; }
.footer-phone:hover { color: var(--accent-color); }
.footer-email { display: block; color: var(--accent-color); margin-bottom: 24px; }
.footer-email:hover { color: #ffffff; }
.social-links { display: flex; gap: 16px; }
.social-btn { color: #ffffff; border: 1px solid rgba(255, 255, 255, 0.3); padding: 10px 24px; border-radius: 50px; font-size: 13px; font-weight: 500; }
.social-btn:hover { border-color: var(--accent-color); color: var(--accent-color); background: rgba(184, 155, 114, 0.1); }
.footer-bottom { 
    border-top: 1px solid rgba(255, 255, 255, 0.1); 
    padding-top: 30px; 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
}
.footer-bottom p, .footer-bottom a { color: rgba(255, 255, 255, 0.5); font-size: 13px; }
.footer-bottom a:hover { color: #ffffff; }

/* =========================================
   9. ВНУТРЕННИЕ СТРАНИЦЫ (КАТАЛОГ, API И СПЕЦПРОЕКТЫ)
   ========================================= */
.page-hero { padding: calc(var(--spacing-section) + 80px) 0 var(--spacing-section); text-align: center; }
.hero-internal-content, .cta-box { max-width: 800px; margin: 0 auto; }
.hero-internal-content .section-subtitle { font-size: 18px; color: var(--text-muted); margin-top: 20px; line-height: 1.6; }
.cta-box { padding: clamp(40px, 6vw, 80px); text-align: center; }
.cta-box .section-title { margin-bottom: 20px; }
.cta-box .feature-text { margin-bottom: 30px; }
.section-pb { padding-bottom: var(--spacing-section); }
.major-services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(400px, 1fr)); gap: 30px; }
.major-service-card { position: relative; height: 400px; border-radius: var(--radius); overflow: hidden; display: flex; align-items: flex-end; padding: 40px; text-decoration: none; transition: transform 0.4s ease; }
.major-service-card:hover { transform: translateY(-10px); }
.major-service-card .card-bg-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.2) 60%, transparent 100%); z-index: 1; }
.major-service-content { position: relative; z-index: 2; color: #ffffff; }
.major-service-title { font-family: var(--font-heading); font-size: 32px; margin-bottom: 15px; }
.major-service-desc { opacity: 0.9; margin-bottom: 25px; line-height: 1.6; font-size: 15px; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.image-box { border-radius: var(--radius); overflow: hidden; box-shadow: 0 20px 50px var(--shadow-color); }
.image-box img { width: 100%; height: auto; display: block; object-fit: cover; min-height: 500px; }
.check-list { list-style: none; padding: 0; margin-bottom: 30px; }
.check-list li { margin-bottom: 15px; display: flex; align-items: center; color: var(--primary-color); font-weight: 500; }
.check-list li::before { content: '\2713'; color: var(--accent-color); margin-right: 15px; font-size: 20px; font-weight: bold; }
.api-header { text-align: center; margin-bottom: 40px; }
.api-widget-container { background: var(--surface-color); border-radius: var(--radius); box-shadow: 0 15px 50px var(--shadow-color); padding: clamp(30px, 5vw, 60px); min-height: 300px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--border-color); }
.catalog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(350px, 1fr)); gap: 40px; }
.catalog-card { background-color: var(--surface-color); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 15px 45px var(--shadow-color); border: 1px solid var(--border-color); transition: transform 0.4s ease, box-shadow 0.4s ease; }
.catalog-card:hover { transform: translateY(-8px); box-shadow: 0 25px 50px var(--shadow-hover); }
.catalog-card-image { height: 240px; position: relative; padding: 20px; background-size: cover; background-position: center; }
.catalog-card-image::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,40,30,0.5) 0%, transparent 60%); z-index: 1; }
.catalog-card-tags { position: relative; z-index: 2; display: flex; flex-wrap: wrap; gap: 8px; }
.catalog-card-tags .flagship-tag { margin: 0; padding: 6px 12px; font-size: 11px; }
.catalog-card-content { padding: 30px; display: flex; flex-direction: column; flex-grow: 1; }
.catalog-card-title { font-family: var(--font-heading); font-size: 26px; color: var(--primary-color); margin-bottom: 12px; font-weight: 600; line-height: 1.2; }
.catalog-card-desc { font-size: 15px; color: var(--text-muted); line-height: 1.6; margin-bottom: 24px; flex-grow: 1; }
.catalog-card-footer { border-top: 1px solid var(--border-color); padding-top: 20px; display: flex; flex-direction: column; gap: 16px; }
.catalog-card-price { display: flex; flex-direction: column; }
.price-label { font-size: 13px; color: var(--text-muted); }
.price-value { font-size: 20px; font-weight: 600; color: var(--text-main); }
.catalog-card-actions { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.wa-btn { font-size: 13px; font-weight: 600; color: var(--primary-color); text-decoration: none; border-bottom: 1px solid rgba(59, 82, 73, 0.3); transition: border-color 0.3s ease; white-space: nowrap; }
.wa-btn:hover { border-bottom-color: var(--primary-color); }
.expert-container { max-width: 900px; background: var(--surface-color); padding: 60px; border-radius: var(--radius); box-shadow: 0 10px 40px var(--shadow-color); border: 1px solid var(--border-color); position: relative; margin: 40px auto; }
.expert-badge { position: absolute; top: -15px; left: 60px; background: var(--accent-color); color: #ffffff; padding: 8px 20px; border-radius: 50px; font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; }

/* =========================================
   10. ЖУРНАЛ И БЛОГ (ГЛАВНАЯ СТРАНИЦА)
   ========================================= */
.journal-section { padding: var(--spacing-section) 0; background-color: var(--bg-color); }
.journal-header { display: flex; flex-direction: column; align-items: center; margin-bottom: clamp(40px, 6vw, 60px); }
.journal-header .section-subtitle { max-width: 700px; width: 100%; text-align: center; margin: 0 auto; line-height: 1.6; }
.journal-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 30px; margin-bottom: 50px; }
.journal-footer { width: 100%; display: flex; justify-content: center; margin: 0 auto; }

/* =========================================
   11. ЖУРНАЛ: ВИТРИНА И КАРТОЧКИ СТАТЕЙ
   ========================================= */
.journal-page .page-hero { padding: 140px 0 60px; text-align: center; }
.journal-filters { display: flex; justify-content: center; gap: 15px; margin-bottom: 50px; flex-wrap: wrap; }
.filter-btn { padding: 10px 28px; background: var(--surface-color); border: 1px solid var(--border-color); color: var(--text-main); border-radius: 50px; font-size: 14px; text-decoration: none; transition: 0.3s; }
.filter-btn:hover { border-color: var(--accent-color); color: var(--accent-color); }
.filter-btn.active { background: var(--primary-color); color: var(--text-light); border-color: var(--primary-color); }
.journal-card { position: relative; display: flex; flex-direction: column; justify-content: flex-end; height: 380px; border-radius: var(--radius); overflow: hidden; text-decoration: none; padding: 30px; box-shadow: 0 10px 40px var(--shadow-color); border: 1px solid var(--border-color); }
.journal-card-image { position: absolute; inset: 0; z-index: 1; background-size: cover; background-position: center; transition: transform 0.6s ease; }
.journal-card:hover .journal-card-image { transform: scale(1.05); }
.journal-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 30%, rgba(10,66,53,0.85) 100%); z-index: 2; }
.journal-card-content { position: relative; z-index: 3; }
.journal-tag { display: inline-block; background: var(--accent-color); color: #ffffff; padding: 6px 14px; border-radius: 6px; font-size: 11px; text-transform: uppercase; letter-spacing: 1px; font-weight: 600; margin-bottom: 15px; }
.journal-title { font-family: var(--font-heading); font-size: 24px; color: #ffffff; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; min-height: 94px; }

/* =========================================
   12. ВНУТРЕННЯЯ СТРАНИЦА СТАТЬИ
   ========================================= */
.article-hero { position: relative; padding: 200px 0 100px; min-height: 60vh; display: flex; align-items: flex-end; background-size: cover; background-position: center; }
.article-hero-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,66,53,0.3) 0%, rgba(10,66,53,0.85) 100%); z-index: 1; }
.article-hero-content { position: relative; z-index: 2; color: #ffffff; max-width: 900px; margin: 0 auto; text-align: center; }
.article-meta { display: flex; justify-content: center; align-items: center; gap: 20px; margin-bottom: 30px; }
.article-date { font-size: 14px; opacity: 0.9; text-transform: uppercase; letter-spacing: 1px; }
.article-title { font-family: var(--font-heading); font-size: clamp(40px, 5vw, 64px); line-height: 1.1; margin-bottom: 24px; text-wrap: balance; }
.article-intro { font-size: 18px; line-height: 1.6; opacity: 0.9; max-width: 700px; margin: 0 auto; }
.article-content { max-width: 760px; margin: 0 auto; font-size: 18px; line-height: 1.8; color: var(--text-main); }
.article-content p { margin-bottom: 24px; }
.article-content h2, .article-content h3 { font-family: var(--font-heading); color: var(--primary-color); margin: 50px 0 24px; line-height: 1.2; }
.article-content h2 { font-size: 36px; }
.article-content img { width: 100%; border-radius: var(--radius); margin: 40px 0; box-shadow: 0 10px 40px var(--shadow-color); }
.article-content blockquote { background: var(--surface-alt); border-left: 4px solid var(--accent-color); padding: 40px; margin: 50px 0; border-radius: 0 var(--radius) var(--radius) 0; font-style: italic; font-size: 20px; color: var(--primary-color); }
.article-content blockquote strong { display: block; margin-top: 20px; font-size: 16px; font-style: normal; color: var(--text-main); }

/* =========================================
   13. UX ЭЛЕМЕНТЫ (PROGRESS BAR, SCROLL TOP)
   ========================================= */
.scroll-progress-container { position: fixed; top: 0; left: 0; width: 100%; height: 4px; background: transparent; z-index: 1000; pointer-events: none; }
.scroll-progress-bar { height: 100%; background: var(--accent-color); width: 0%; transition: width 0.1s ease-out; }
.scroll-to-top { 
    position: fixed; bottom: 40px; right: 40px; width: 50px; height: 50px; 
    background: var(--primary-color); color: var(--text-light); 
    border-radius: 50%; display: flex; align-items: center; justify-content: center; 
    font-size: 24px; opacity: 0; visibility: hidden; transform: translateY(20px); 
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1); 
    z-index: 99; box-shadow: 0 10px 25px var(--shadow-color); cursor: pointer; border: none; 
}
.scroll-to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.scroll-to-top:hover { background: var(--accent-color); transform: translateY(-5px); color: var(--text-light); }

/* =========================================
   14. САНАТОРИЙ: ШАПКА, ГАЛЕРЕЯ И МЕТА (ЧАСТЬ 1)
   ========================================= */
.breadcrumbs { padding: 20px 0; margin-top: 80px; list-style: none; display: flex; gap: 10px; font-size: 13px; color: var(--text-muted); }
.breadcrumbs a { color: var(--text-muted); text-decoration: none; transition: color 0.3s; }
.breadcrumbs a:hover { color: var(--accent-color); }
.breadcrumbs li::after { content: '/'; margin-left: 10px; opacity: 0.5; }
.breadcrumbs li:last-child::after { content: ''; }
.sanatorium-header { padding-bottom: 40px; }
.sanatorium-meta-top { display: flex; align-items: center; gap: 15px; margin-bottom: 15px; }
.rating-badge { background: #FFB800; color: #fff; padding: 4px 12px; border-radius: 6px; font-weight: 700; font-size: 14px; }
.location-text { color: var(--text-muted); font-size: 14px; display: flex; align-items: center; gap: 5px; }
.sanatorium-title-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; margin-bottom: 30px; }
.sanatorium-main-title { font-family: var(--font-heading); font-size: var(--fz-h2); color: var(--primary-color); line-height: 1.1; font-weight: 600; }
.bento-gallery { 
    display: grid; 
    grid-template-columns: 2fr 1fr 1fr; 
    grid-template-rows: 300px 300px; 
    gap: 20px; 
    margin-bottom: 60px; 
    border-radius: var(--radius);
    overflow: hidden;
}
.bento-item { position: relative; overflow: hidden; cursor: pointer; background: var(--surface-alt); }
.bento-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1); }
.bento-item:hover img { transform: scale(1.05); }
.bento-main { grid-column: 1 / 2; grid-row: 1 / 3; }
.bento-2 { grid-column: 2 / 4; grid-row: 1 / 2; }
.bento-3 { grid-column: 2 / 3; grid-row: 2 / 3; }
.bento-4 { grid-column: 3 / 4; grid-row: 2 / 3; }
.bento-overlay { 
    position: absolute; inset: 0; 
    background: rgba(0,0,0,0.2); 
    display: flex; align-items: center; justify-content: center; 
    color: #fff; font-weight: 600; font-size: 18px; 
    opacity: 0; transition: opacity 0.3s; 
}
.bento-item:hover .bento-overlay { opacity: 1; }
.bento-more .bento-overlay { opacity: 1; background: rgba(0,0,0,0.4); }
.sanatorium-features-tags { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 40px; }
.san-tag { background: var(--surface-color); border: 1px solid var(--border-color); padding: 8px 16px; border-radius: 50px; font-size: 13px; font-weight: 500; color: var(--primary-color); display: flex; align-items: center; gap: 8px; }

/* =========================================
   15. САНАТОРИЙ: КОНТЕНТ, САЙДБАР И АККОРДЕОНЫ (ЧАСТЬ 2)
   ========================================= */
.sanatorium-content-grid { display: grid; grid-template-columns: 1fr 340px; gap: 60px; align-items: start; }
.sanatorium-sidebar { position: sticky; top: 120px; z-index: 10; }
.sticky-concierge-card { background-color: var(--surface-color); border-radius: var(--radius); padding: 32px; box-shadow: 0 10px 40px var(--shadow-color); border: 1px solid var(--border-color); }
.sticky-concierge-card h3 { font-size: 20px; color: var(--text-main); margin-bottom: 12px; line-height: 1.3; }
.sticky-concierge-card p { font-size: 14px; color: var(--text-muted); margin-bottom: 24px; line-height: 1.6; }
.sticky-concierge-card .btn { width: 100%; display: block; }
.sanatorium-accordions { margin-top: 50px; border-top: 1px solid var(--border-color); }
.premium-accordion { border-bottom: 1px solid var(--border-color); }
.premium-accordion summary { list-style: none; padding: 24px 0; font-size: 18px; font-family: var(--font-heading); font-weight: 600; color: var(--primary-color); cursor: pointer; display: flex; justify-content: space-between; align-items: center; transition: color 0.3s ease; }
.premium-accordion summary::-webkit-details-marker { display: none; }
.premium-accordion summary:hover { color: var(--accent-color); }
.premium-accordion summary::after { content: '+'; font-size: 24px; color: var(--accent-color); transition: transform 0.3s ease; }
.premium-accordion[open] summary::after { content: '\2212'; transform: rotate(180deg); }
.accordion-content { padding-bottom: 24px; font-size: 15px; color: var(--text-muted); line-height: 1.6; }
.accordion-content ul { list-style: none; padding: 0; margin: 0; }
.accordion-content li { position: relative; padding-left: 18px; margin-bottom: 10px; }
.accordion-content li::before { content: '\2022'; position: absolute; left: 0; color: var(--accent-color); }
.honesty-radar { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; margin: 40px 0; background: var(--surface-alt); padding: 30px; border-radius: var(--radius); }
.radar-col h5 { font-size: 14px; margin-bottom: 15px; text-transform: uppercase; letter-spacing: 1px; }
.radar-plus h5 { color: var(--primary-color); }
.radar-minus h5 { color: #8B4513; }
.radar-list { list-style: none; padding: 0; font-size: 14px; color: var(--text-muted); }
.radar-list li { margin-bottom: 8px; padding-left: 20px; position: relative; }
.radar-plus li::before { content: '\25CF'; color: var(--primary-color); position: absolute; left: 0; }
.radar-minus li::before { content: '\25CB'; color: #8B4513; position: absolute; left: 0; }
.programs-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; margin-top: 30px; }
.program-card { background: var(--surface-color); border: 1px solid var(--border-color); border-radius: 20px; padding: 30px; box-shadow: 0 10px 30px var(--shadow-color); transition: all 0.4s ease; display: flex; flex-direction: column; }
.program-card:hover { transform: translateY(-5px); box-shadow: 0 15px 40px var(--shadow-hover); border-color: var(--accent-color); }
.doctors-list-container { width: 100%; background: var(--surface-color); border-radius: 12px; border: 1px solid var(--border-color); overflow: hidden; margin-top: 30px; }
.doctor-list-header { display: grid; grid-template-columns: 2fr 2fr 1fr 1.5fr 3fr; padding: 16px 24px; background: rgba(184, 155, 114, 0.05); font-size: 12px; text-transform: uppercase; color: var(--text-muted); font-weight: 600; border-bottom: 1px solid var(--border-color); }
.doctor-list-row { display: grid; grid-template-columns: 2fr 2fr 1fr 1.5fr 3fr; padding: 16px 24px; border-bottom: 1px solid var(--border-color); font-size: 14px; align-items: center; transition: background 0.2s ease; }
.doctor-list-row:hover { background: var(--surface-alt); }
.equipment-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; margin-top: 30px; }
.equipment-card { display: flex; gap: 16px; background: var(--surface-color); border: 1px solid var(--border-color); border-radius: 16px; padding: 24px; transition: all 0.3s ease; }
.equipment-card:hover { transform: translateY(-3px); box-shadow: 0 10px 30px var(--shadow-color); border-color: var(--accent-color); }
.eq-icon { flex-shrink: 0; width: 48px; height: 48px; background: var(--surface-alt); color: var(--primary-color); border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 24px; }

/* =========================================
   16. САНАТОРИЙ: МЕД-ПРОФИЛИ И МОДАЛЬНАЯ ШТОРКА
   ========================================= */
.profiles-tags-wrapper { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.profile-tag-premium { display: flex; align-items: center; gap: 10px; background: var(--surface-color); border: 1px solid var(--border-color); padding: 10px 16px; border-radius: 12px; box-shadow: 0 4px 15px var(--shadow-color); cursor: pointer; transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1); }
.profile-tag-premium:hover { box-shadow: 0 8px 25px var(--shadow-hover); transform: translateY(-2px); border-color: var(--accent-color); }
.profile-tag-premium.is-main { background: var(--primary-color); color: var(--text-light); }
.profile-info-btn { display: flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 50%; background: rgba(184, 155, 114, 0.2); color: var(--accent-color); font-size: 12px; font-weight: 700; margin-left: 5px; }
.profile-tag-premium.is-main .profile-info-btn { background: rgba(255,255,255,0.2); color: var(--text-light); }
.premium-modal-overlay { position: fixed; inset: 0; background: rgba(10, 66, 53, 0.4); backdrop-filter: blur(5px); z-index: 9999; display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden; transition: all 0.4s ease; }
.premium-modal-overlay.is-open { opacity: 1; visibility: visible; }
.premium-modal-content { background: var(--surface-color); width: 100%; max-width: 500px; border-radius: var(--radius); padding: 40px; position: relative; transform: translateY(30px); transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1); box-shadow: 0 20px 60px var(--shadow-hover); }
.premium-modal-overlay.is-open .premium-modal-content { transform: translateY(0); }
.modal-close-btn { position: absolute; top: 24px; right: 24px; background: none; border: none; font-size: 28px; color: var(--text-muted); cursor: pointer; line-height: 1; }
.modal-header { display: flex; align-items: center; gap: 12px; margin-bottom: 24px; }
.modal-title { font-family: var(--font-heading); font-size: 24px; color: var(--primary-color); }
.premium-modal-content p.medical-disclaimer { font-size: 12px; color: var(--text-muted); background: var(--surface-alt); padding: 12px; border-radius: 8px; border-left: 3px solid var(--accent-color); }

/* =========================================
   17. ЕДИНЫЙ БЛОК АДАПТИВНОСТИ
   ========================================= */
@media (min-width: 1200px) {
    .mobile-menu, .mobile-menu.is-open { display: none; opacity: 0; visibility: hidden; }
    .hamburger-btn, .hamburger-btn.is-active { display: none; }
}
@media (max-width: 1199px) { 
    .main-nav, .header-contacts { display: none; } 
    .hamburger-btn { display: block; } 
}
@media (max-width: 992px) {
    .features-grid, .services-grid { grid-template-columns: repeat(2, 1fr); }
    .cases-grid, .flagships-grid, .major-services-grid { grid-template-columns: 1fr; }
    .flagship-card { min-height: 450px; padding: 40px; }
    .lead-magnet-inner { flex-direction: column; text-align: center; }
    .lead-content, .lead-form-wrapper { max-width: 100%; }
    .founder-grid, .about-grid { grid-template-columns: 1fr; gap: 40px; }
    .sanatorium-content-grid { grid-template-columns: 1fr; gap: 40px; }
    .sanatorium-sidebar { position: static; }
    .doctor-list-header { display: none; }
    .doctor-list-row { grid-template-columns: 1fr; gap: 8px; padding: 20px; }
    .honesty-radar { grid-template-columns: 1fr; }
    .bento-gallery { grid-template-columns: 1fr 1fr; grid-template-rows: 400px 200px 200px; }
    .bento-main { grid-column: 1 / 3; grid-row: 1 / 2; }
    .bento-2 { grid-column: 1 / 3; grid-row: 2 / 3; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
    section { padding: 60px 0; }
    .features-grid, .services-grid, .catalog-grid, .programs-grid { grid-template-columns: 1fr; }
    .flagship-card { min-height: 380px; padding: 30px; }
    .sanatorium-main-title { font-size: 28px; }
    .expert-container { padding: 40px 20px; }
    .expert-badge { left: 20px; }
    .scroll-to-top { bottom: 20px; right: 20px; width: 45px; height: 45px; font-size: 20px; }
    .bento-gallery { grid-template-columns: 1fr; grid-template-rows: 300px 150px 150px 150px; }
    .bento-main, .bento-2, .bento-3, .bento-4 { grid-column: 1 / 2; grid-row: auto; }
    .sanatorium-title-row { flex-direction: column; align-items: flex-start; gap: 20px; }
    .footer-grid { grid-template-columns: 1fr; gap: 40px; }
    .footer-bottom { flex-direction: column; text-align: center; gap: 16px; }
    .awards-wrapper, .social-wrapper { flex-direction: column; justify-content: center; text-align: center; }
    .premium-modal-overlay { align-items: flex-end; }
    .premium-modal-content { max-width: 100%; border-radius: 24px 24px 0 0; padding: 30px 20px 40px; transform: translateY(100%); }
    .premium-modal-overlay.is-open .premium-modal-content { transform: translateY(0); }
}
