/*
Theme Name: Dr. Shabunin Medical
Theme URI: https://ortopedia1.ru
Author: Sergei Panferov
Author URI: https://t.me/piiianferov
Description: Кастомная минималистичная тема для медицинской клиники Dr. Shabunin. Быстрая, легкая, современная.
Version: 3.8.6
License: GPL-2.0+
Text Domain: developer-theme
Tags: medical, minimal, responsive, custom-theme
*/

/* =====================================================
   ADAPTIVE ZOOM - REMOVED (no scaling)
   ===================================================== */

/* Custom cursor removed — using standard browser cursor */

/* =====================================================
   CUSTOM SCROLLBAR - Narrow & Branded
   ===================================================== */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--gray-100);
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: var(--primary) var(--gray-100);
}

/* =====================================================
   LARGE SCREENS (PC 1920x1080+, TV)
   Увеличиваем размеры элементов, но не ломаем вёрстку
   ===================================================== */

/* =====================================================
   CSS VARIABLES - Dr. Shabunin Brand Colors (from Logo)
   ===================================================== */
:root {
    /* Primary Colors - Teal from Logo Cross & Hands (DOMINANT) */
    --primary: #00708E;
    --primary-dark: #005a72;
    --primary-light: #e0f4f8;
    --primary-gradient: linear-gradient(135deg, #00708E 0%, #00708E 70%, #009270 100%);
    --primary-gradient-hover: linear-gradient(135deg, #005a72 0%, #00708E 100%);
    
    /* Brand Colors - Emerald Green from Logo Spine (ACCENT ONLY) */
    --accent: #009270;
    --accent-light: #e0f4f8;  /* Using same as primary-light for consistency */
    --secondary: #00708E;
    
    /* Glass Effect Colors */
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(255, 255, 255, 0.3);
    --glass-shadow: 0 8px 32px rgba(0, 112, 142, 0.1);
    
    /* Neutrals - Refined */
    --white: #FFFFFF;
    --gray-50: #F8FAFC;
    --gray-100: #F1F5F9;
    --gray-200: #E2E8F0;
    --gray-300: #CBD5E1;
    --gray-400: #94A3B8;
    --gray-500: #64748B;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1E293B;
    --gray-900: #0F172A;
    
    /* Semantic Colors */
    --success: #10B981;
    --success-light: #D1FAE5;
    --warning: #F59E0B;
    --error: #EF4444;
    
    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-heading: 'Montserrat', var(--font-primary);
    
    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    --space-4xl: 6rem;
    
    /* Modern Shadows - Brand Color */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 12px 24px -4px rgba(0, 112, 142, 0.12);
    --shadow-lg: 0 20px 40px -8px rgba(0, 112, 142, 0.15);
    --shadow-xl: 0 32px 64px -12px rgba(0, 112, 142, 0.2);
    --shadow-glow: 0 0 40px rgba(0, 112, 142, 0.3);
    
    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius: 0.75rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
    --radius-2xl: 2rem;
    --radius-full: 9999px;
    
    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    
    /* Container */
    --container-max: 1280px;
    --container-padding: 1.5rem;
}

/* =====================================================
   RESET & BASE
   ===================================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-primary);
    font-size: 16px;
    line-height: 1.7;
    color: var(--gray-700);
    background: var(--white);
    overflow-x: hidden;
}

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

/* Убираем выделение текста и курсор при клике по всему сайту */
body {
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

/* Разрешаем выделение только для текстовых элементов */
p, span, a, h1, h2, h3, h4, h5, h6, li, td, th, label,
input, textarea, select, [contenteditable="true"],
.entry-content, .post-content, .page-content {
    user-select: text !important;
    -webkit-user-select: text !important;
    -moz-user-select: text !important;
    -ms-user-select: text !important;
}

/* =====================================================
   PRELOADER
   ===================================================== */
.preloader {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--white) 50%, var(--primary-light) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: var(--space-xl);
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.6s;
}

.preloader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.preloader-logo {
    animation: preloaderPulse 2s ease-in-out infinite;
}

.preloader-logo img {
    height: 100px;
    width: auto;
    filter: drop-shadow(0 15px 40px rgba(0, 112, 142, 0.4));
}

@keyframes preloaderPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.08);
        opacity: 0.85;
    }
    display: block;
}

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

a:hover {
    color: var(--primary-dark);
}

ul, ol {
    list-style: none;
}

/* Selection */
::selection {
    background: var(--primary);
    color: var(--white);
}

/* =====================================================
   TYPOGRAPHY - Modern 2026
   ===================================================== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--gray-900);
    margin-bottom: var(--space-md);
    letter-spacing: -0.02em;
}

h1 {
    font-size: clamp(2rem, 4vw, 3.25rem);
    font-weight: 800;
}

h2 {
    font-size: clamp(1.5rem, 3vw, 2.25rem);
}

h3 {
    font-size: clamp(1.125rem, 2vw, 1.5rem);
}

h4 {
    font-size: 1.125rem;
}

p {
    margin-bottom: var(--space-md);
}

/* Gradient Text */
.gradient-text {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-primary { color: var(--primary); }
.text-accent { color: var(--accent); }
.text-white { color: var(--white); }
.text-center { text-align: center; }

/* =====================================================
   LAYOUT
   ===================================================== */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.section {
    padding: var(--space-4xl) 0;
    position: relative;
}

.section-sm {
    padding: var(--space-2xl) 0;
}

/* Grid System */
.grid {
    display: grid;
    gap: var(--space-xl);
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 1024px) {
    .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* Flex */
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }

/* =====================================================
   HEADER - Clean Modern Design with Burger Menu
   ===================================================== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: transparent;
    border-bottom: 1px solid rgba(0, 112, 142, 0);
    box-shadow: 0 4px 24px rgba(0, 112, 142, 0);
    transition: background 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                border-color 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                backdrop-filter 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.site-header.scrolled {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    box-shadow: 0 4px 24px rgba(0, 112, 142, 0.08);
    border-bottom: 1px solid rgba(0, 112, 142, 0.1);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 92px;
    gap: var(--space-lg);
}

/* Logo */
.site-logo {
    flex-shrink: 0;
}

.site-logo img {
    height: clamp(48px, 5vw, 65px);
    width: auto;
    transition: transform var(--transition);
    display: block;
    object-fit: contain; /* Preserve aspect ratio */
}

.site-logo a {
    display: flex;
    align-items: center;
}

.site-logo:hover img {
    transform: scale(1.03);
}

/* Header Locations - Minimal Design in One Line */
.header-locations {
    display: flex;
    gap: var(--space-md);
    flex: 1;
    justify-content: center;
}

.header-location-btn {
    display: inline-flex;
    align-items: center;
    gap: 0;
    padding: 0;
    font-size: 0.8125rem;
    color: var(--gray-700);
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-full);
    text-decoration: none;
    transition: all var(--transition);
    line-height: 1;
    white-space: nowrap;
    overflow: hidden;
}

.header-location-btn .location-label {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 0.75rem;
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    color: var(--white);
    background: var(--primary-gradient);
    height: 100%;
}

.header-location-btn .location-address {
    padding: 0.5rem 0.875rem 0.5rem 0.625rem;
    font-weight: 500;
    font-size: 0.8125rem;
    color: var(--gray-700);
}

.header-location-btn:hover {
    box-shadow: 0 2px 8px rgba(0, 112, 142, 0.15);
    transform: translateY(-1px);
}

.header-location-btn:hover .location-address {
    color: var(--primary);
}

@media (max-width: 1100px) {
    .header-locations {
        display: none;
    }
}

/* Mobile Location Button */
.header-location-mobile {
    display: none;
    position: relative;
}

@media (max-width: 1100px) {
    .header-location-mobile {
        display: block;
    }
}

.header-location-mobile__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: none;
    background: none;
    color: var(--gray-600);
    cursor: pointer;
    border-radius: var(--radius-lg);
    transition: all 0.2s ease;
}

.header-location-mobile__btn.active,
.header-location-mobile__btn:hover {
    color: var(--primary);
    background: var(--primary-light);
}

.header-location-mobile__dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 280px;
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
    padding: var(--space-sm);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
}

.header-location-mobile__dropdown.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.mobile-location-item {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-md);
    border-radius: var(--radius-lg);
    text-decoration: none;
    transition: background 0.2s ease;
}

.mobile-location-item:hover {
    background: var(--gray-50);
}

.mobile-location-item__label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.25rem 0.625rem;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--white);
    background: var(--primary-gradient);
    border-radius: var(--radius-md);
    flex-shrink: 0;
}

.mobile-location-item__address {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--gray-700);
    line-height: 1.3;
}

/* Moscow Banner */
.moscow-banner {
    position: fixed;
    bottom: 100px;
    right: -360px;
    width: 320px;
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md) var(--space-lg);
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    z-index: 9990;
    transition: right 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    border-left: 3px solid var(--primary);
}

.moscow-banner.is-visible {
    right: 20px;
}

.moscow-banner.is-hiding {
    right: -360px;
    transition: right 0.3s ease-in;
}

.moscow-banner__close {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: var(--gray-100);
    border-radius: var(--radius-full);
    color: var(--gray-500);
    cursor: pointer;
    transition: all 0.2s ease;
}

.moscow-banner__close:hover {
    background: var(--gray-200);
    color: var(--gray-700);
}

.moscow-banner__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    min-width: 44px;
    background: var(--primary-light);
    border-radius: var(--radius-lg);
    color: var(--primary);
}

.moscow-banner__text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
    min-width: 0;
}

.moscow-banner__text strong {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--gray-900);
}

.moscow-banner__text span {
    font-size: 0.75rem;
    color: var(--gray-500);
    line-height: 1.3;
}

.moscow-banner__link {
    display: none;
}

@media (max-width: 768px) {
    .moscow-banner {
        bottom: 80px;
        right: -320px;
        width: 280px;
        padding: var(--space-sm) var(--space-md);
    }

    .moscow-banner.is-visible {
        right: 12px;
    }

    .moscow-banner__icon {
        width: 36px;
        height: 36px;
        min-width: 36px;
    }

    .moscow-banner__icon svg {
        width: 18px;
        height: 18px;
    }

    .moscow-banner__text strong {
        font-size: 0.8125rem;
    }

    .moscow-banner__text span {
        font-size: 0.6875rem;
    }
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    flex-shrink: 0;
}

/* Header CTA — icon-only button (all screen sizes) */
button.btn.header-cta,
.header-actions button.header-cta,
.header-inner .header-cta {
    padding: 0 !important;
    width: 48px !important;
    height: 48px !important;
    min-height: unset !important;
    min-width: unset !important;
    max-width: 48px !important;
    flex: 0 0 48px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0 !important;
    border-radius: var(--radius-lg) !important;
    overflow: hidden !important;
    animation: gradientShift 3s ease infinite !important;
}

/* Убираем блик-псевдоэлемент — он вылезает за кнопку */
button.btn.header-cta::after,
.header-actions button.header-cta::after,
.header-inner .header-cta::after {
    display: none !important;
    animation: none !important;
}

button.btn.header-cta .header-cta__text,
.header-actions button.header-cta .header-cta__text {
    display: none !important;
    width: 0 !important;
    overflow: hidden !important;
}

button.btn.header-cta svg.header-cta__icon,
.header-actions button.header-cta svg.header-cta__icon {
    width: 24px !important;
    height: 24px !important;
    min-width: 24px !important;
    flex-shrink: 0 !important;
    display: block !important;
    position: relative !important;
    z-index: 1 !important;
}

/* Header Language Switcher with Flags */
.header-lang-switcher {
    position: relative;
}

.lang-current-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    cursor: pointer;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--gray-700);
    transition: all var(--transition);
}

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

.lang-flag {
    width: 18px;
    height: auto;
    border-radius: 2px;
}

.lang-current-btn svg {
    transition: transform var(--transition);
}

.header-lang-switcher.active .lang-current-btn svg {
    transform: rotate(180deg);
}

.lang-dropdown-list {
    position: absolute;
    top: calc(100% + 4px);
    right: 0;
    min-width: 150px;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all var(--transition);
    z-index: 100;
    overflow: hidden;
}

.header-lang-switcher.active .lang-dropdown-list {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    font-size: 0.875rem;
    color: var(--gray-700);
    transition: all var(--transition);
    border-bottom: 1px solid var(--gray-100);
}

.lang-option:last-child {
    border-bottom: none;
}

.lang-option:hover,
.lang-option.active {
    background: var(--primary-light);
    color: var(--primary);
}

.header-phone {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 0.9375rem;
    color: var(--gray-800);
    transition: color var(--transition);
}

.header-phone svg {
    color: var(--primary);
}

.site-header:not(.scrolled) .header-phone {
    color: var(--white);
}

.site-header:not(.scrolled) .header-phone svg {
    color: var(--white);
}

.header-phone:hover {
    color: var(--primary);
}

.header-actions .btn-primary {
    background: var(--primary-gradient);
    color: var(--white);
    border: none;
    box-shadow: none;
}

.header-actions .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Burger Menu Button */
/* =====================================================
   BURGER MENU BUTTON
   ===================================================== */
.burger-menu {
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    width: 48px !important;
    height: 48px !important;
    background: var(--glass-bg) !important;
    backdrop-filter: blur(10px) !important;
    border: 1px solid var(--glass-border) !important;
    border-radius: var(--radius-lg) !important;
    cursor: pointer !important;
    padding: 12px !important;
    gap: 6px !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    position: relative !important;
    overflow: hidden !important;
    z-index: 10002 !important;
    pointer-events: auto !important;
}

.burger-menu::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--primary-gradient);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.burger-menu:hover::before {
    opacity: 0.1;
}

.burger-menu span {
    display: block;
    width: 24px;
    height: 3px;
    background: var(--primary);
    border-radius: 3px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 1;
}

.burger-menu:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 112, 142, 0.15);
    border-color: var(--primary);
}

.burger-menu:hover span {
    background: var(--primary);
}

.burger-menu.active {
    background: var(--primary-gradient);
    border-color: var(--primary);
}

.burger-menu.active span {
    background: var(--white);
}

.burger-menu.active span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
}

.burger-menu.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(-20px);
}

.burger-menu.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* =====================================================
   MOBILE MENU - Professional Accordion with <details>
   Uses native HTML5 details/summary for reliability
   ===================================================== */
.mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 10001;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-menu.is-open {
    opacity: 1;
    visibility: visible;
}

/* Overlay */
.mobile-menu__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    cursor: pointer;
}

/* Panel */
.mobile-menu__panel {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(400px, 90vw);
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--white) 30%, var(--accent-light) 100%);
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.2);
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.mobile-menu.is-open .mobile-menu__panel {
    transform: translateX(0);
}

/* Header */
.mobile-menu__header {
    display: flex;
    justify-content: flex-end;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid rgba(0, 112, 142, 0.1);
    flex-shrink: 0;
}

/* Close Button */
.mobile-menu__close {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    cursor: pointer;
    color: var(--gray-600);
    transition: all 0.2s ease;
}

.mobile-menu__close:hover {
    background: var(--gray-100);
    color: var(--primary);
    border-color: var(--primary);
}

/* Navigation */
.mobile-menu__nav {
    flex: 1;
    overflow-y: auto;
    padding: 0.5rem 0;
    scrollbar-width: thin;
    scrollbar-color: var(--primary) transparent;
}

.mobile-menu__nav::-webkit-scrollbar {
    width: 6px;
}

.mobile-menu__nav::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 10px;
}

/* Simple Link (no submenu) */
.mobile-menu__link {
    display: block;
    padding: 1rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--gray-800);
    text-decoration: none;
    border-bottom: 1px solid rgba(0, 112, 142, 0.08);
    transition: all 0.2s ease;
}

.mobile-menu__link:hover {
    background: rgba(0, 112, 142, 0.05);
    color: var(--primary);
}

/* Accordion Item (details/summary) */
.mobile-menu__item {
    border-bottom: 1px solid rgba(0, 112, 142, 0.08);
}

.mobile-menu__toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 1rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--gray-800);
    cursor: pointer;
    list-style: none;
    transition: all 0.2s ease;
}

.mobile-menu__toggle::-webkit-details-marker {
    display: none;
}

.mobile-menu__toggle:hover {
    background: rgba(0, 112, 142, 0.05);
    color: var(--primary);
}

/* Chevron rotation */
.mobile-menu__chevron {
    flex-shrink: 0;
    color: var(--gray-400);
    transition: transform 0.3s ease;
}

.mobile-menu__item[open] .mobile-menu__chevron {
    transform: rotate(180deg);
    color: var(--primary);
}

.mobile-menu__item[open] .mobile-menu__toggle {
    color: var(--primary);
    background: rgba(0, 112, 142, 0.05);
}

/* Submenu */
.mobile-menu__submenu {
    background: rgba(255, 255, 255, 0.7);
    padding: 0.5rem 0;
    border-top: 1px solid rgba(0, 112, 142, 0.08);
}

.mobile-menu__submenu a {
    display: block;
    padding: 0.625rem 1.5rem 0.625rem 2rem;
    font-size: 0.9rem;
    color: var(--gray-600);
    text-decoration: none;
    border-left: 3px solid transparent;
    transition: all 0.2s ease;
}

.mobile-menu__submenu a:hover {
    color: var(--primary);
    background: rgba(0, 112, 142, 0.05);
    border-left-color: var(--primary);
    padding-left: 2.25rem;
}

/* Label in submenu */
.mobile-menu__label {
    display: block;
    padding: 0.75rem 1.5rem 0.375rem 2rem;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Footer */
.mobile-menu__footer {
    padding: 1rem 1.25rem;
    background: rgba(255, 255, 255, 0.9);
    border-top: 1px solid rgba(0, 112, 142, 0.1);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex-shrink: 0;
}

/* Responsive for small height screens */
@media (max-height: 700px) {
    .mobile-menu__toggle {
        padding: 0.75rem 1.25rem;
    }
    
    .mobile-menu__submenu a {
        padding: 0.5rem 1.25rem 0.5rem 1.75rem;
        font-size: 0.85rem;
    }
    
    .mobile-menu__footer {
        padding: 0.75rem 1rem;
    }
}

/* OLD STYLES - Keep for backwards compatibility */
.menu-modal-v2 { display: none; }

/* Close Button - OLD */
.menu-close-btn {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
}

.menu-close-btn span {
    position: absolute;
    width: 20px;
    height: 3px;
    background: var(--gray-700);
    border-radius: 3px;
    transition: all 0.3s ease;
}

.menu-close-btn span:nth-child(1) {
    transform: rotate(45deg);
}

.menu-close-btn span:nth-child(2) {
    transform: rotate(-45deg);
}

.menu-close-btn:hover {
    background: var(--primary-gradient);
    border-color: var(--primary);
}

.menu-close-btn:hover span {
    background: var(--white);
}

/* Menu Body */
.menu-modal-v2-body {
    flex: 1;
    overflow-y: auto;
    padding: var(--space-sm) 0 var(--space-md);
    display: flex;
    flex-direction: column;
    /* Кастомный скроллбар */
    scrollbar-width: thin;
    scrollbar-color: var(--primary) transparent;
}

.menu-modal-v2-body::-webkit-scrollbar {
    width: 6px;
}

.menu-modal-v2-body::-webkit-scrollbar-track {
    background: transparent;
}

.menu-modal-v2-body::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 10px;
}

.menu-modal-v2-body::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* Mobile Nav Accordion */
.mobile-nav-accordion {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
    padding: 0 var(--space-md);
    flex: 1;
}

.nav-item {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    overflow: hidden;
    transition: all 0.3s ease;
}

.nav-item:hover {
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(0, 112, 142, 0.1);
}

/* Simple Link (no submenu) */
.nav-link-simple {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-sm) var(--space-md);
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--gray-900);
    text-decoration: none;
    transition: all 0.3s ease;
}

.nav-link-simple:hover {
    color: var(--primary);
}

/* Toggle Button (with submenu) */
.nav-link-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: var(--space-sm) var(--space-md);
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--gray-900);
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    transition: all 0.3s ease;
}

.nav-link-toggle:hover {
    color: var(--primary);
}

.nav-chevron {
    flex-shrink: 0;
    color: var(--gray-500);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-item.active .nav-chevron {
    transform: rotate(180deg);
    color: var(--primary);
}

.nav-item.active .nav-link-toggle {
    color: var(--primary);
}

/* Submenu */
.nav-submenu {
    max-height: 0 !important;
    overflow: hidden !important;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
    background: rgba(255, 255, 255, 0.5) !important;
}

.nav-item.active .nav-submenu {
    max-height: 2000px !important;
    border-top: 1px solid var(--glass-border) !important;
}

.nav-submenu a {
    display: block;
    padding: var(--space-xs) var(--space-md);
    font-size: 0.8125rem;
    color: var(--gray-700);
    text-decoration: none;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

.nav-submenu a:hover {
    color: var(--primary);
    background: rgba(0, 112, 142, 0.05);
    border-left-color: var(--primary);
    padding-left: calc(var(--space-md) + 4px);
}

.nav-submenu-label {
    display: block;
    padding: var(--space-md) var(--space-lg) var(--space-xs);
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Menu Footer */
.menu-modal-v2-footer {
    padding: var(--space-md) var(--space-md);
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border-top: 1px solid var(--glass-border);
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
    margin-top: auto;
    flex-shrink: 0;
}

.btn-block {
    width: 100%;
    justify-content: center;
}

/* Responsive - Compact for small height screens (laptops) */
@media (max-height: 800px) {
    .menu-modal-v2-header {
        padding: var(--space-sm) var(--space-md);
    }
    
    .menu-close-btn {
        width: 36px;
        height: 36px;
    }
    
    .nav-item {
        margin-bottom: 0;
    }
    
    .nav-link-toggle,
    .nav-link-simple {
        padding: 0.5rem var(--space-md);
        font-size: 0.875rem;
    }
    
    .nav-submenu a {
        padding: 0.375rem var(--space-md);
        font-size: 0.8125rem;
    }
    
    .menu-modal-v2-footer {
        padding: var(--space-sm) var(--space-md);
    }
    
    .menu-cta-hero {
        padding: 0.75rem 1.25rem;
        font-size: 0.9375rem;
    }
}

/* Responsive */
@media (max-width: 480px) {
    .menu-modal-v2-content {
        max-width: 100%;
    }
    
    .mobile-nav-accordion {
        padding: 0 var(--space-md);
    }
    
    .nav-link-toggle,
    .nav-link-simple {
        font-size: 0.9375rem;
        padding: var(--space-sm) var(--space-md);
    }
    
    .nav-submenu a {
        padding: var(--space-xs) var(--space-md);
        font-size: 0.8125rem;
    }
}

/* Hero-style buttons in menu - Larger */
.menu-cta-hero {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 1.25rem 2rem;
    font-size: 1.0625rem;
    font-weight: 600;
    border-radius: var(--radius-lg);
    transition: all var(--transition);
    white-space: nowrap;
}

.menu-cta-hero.btn-primary {
    background: var(--primary-gradient);
    color: var(--white);
    border: none;
}

.menu-cta-hero.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.menu-cta-hero.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.menu-cta-hero.btn-outline:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-2px);
}

/* Language Switcher in Menu with Flags - Same style as Header */
.menu-lang-flags {
    display: flex;
    gap: var(--space-sm);
    justify-content: center;
    flex-wrap: wrap;
    margin-top: var(--space-md);
}

.menu-lang-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--gray-700);
    transition: all var(--transition);
}

.menu-lang-flag {
    width: 20px;
    height: auto;
    border-radius: 2px;
}

.menu-lang-option:hover,
.menu-lang-option.active {
    background: var(--primary-light);
    color: var(--primary);
    border-color: var(--primary);
}

/* Animated Gradient Bottom - Thin Line Fixed at Bottom */
.menu-gradient-bottom {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    height: 10px;
    background: linear-gradient(90deg, 
        var(--primary) 0%, 
        var(--primary-dark) 25%, 
        var(--primary) 50%, 
        var(--primary-dark) 75%, 
        var(--primary) 100%);
    background-size: 200% 100%;
    animation: gradientFlow 3s ease infinite;
    z-index: 10000;
}

@keyframes gradientFlow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.menu-phone,
.menu-email {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--gray-600);
    transition: color var(--transition);
}

.menu-phone svg,
.menu-email svg {
    color: var(--primary);
    width: 16px;
    height: 16px;
}

.menu-phone:hover,
.menu-email:hover {
    color: var(--primary);
}

.menu-lang {
    display: flex;
    gap: var(--space-xs);
    justify-content: center;
}

.menu-lang a {
    padding: 6px 10px;
    font-weight: 600;
    font-size: 0.8125rem;
    color: var(--gray-500);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    transition: all var(--transition);
}

.menu-lang a:hover,
.menu-lang a.active {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

@media (max-width: 640px) {
    .menu-footer-actions {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }
    
    .menu-cta-hero {
        padding: 1.125rem 1.75rem;
    }
    
    .menu-contact-info {
        flex-direction: column;
        align-items: center;
        gap: var(--space-sm);
    }
}

@media (max-width: 768px) {
    .menu-modal-footer {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }
    
    .menu-contact-info {
        flex-direction: column;
        gap: var(--space-md);
    }
    
    .menu-phone,
    .menu-email {
        justify-content: center;
    }
    
    .menu-lang {
        justify-content: center;
    }
}

/* Hide old mobile menu toggle */
.menu-toggle {
    display: none;
}

@media (max-width: 768px) {
    .header-phone span {
        display: none;
    }
}

/* Language Dropdown */
.lang-dropdown {
    position: relative;
}

.lang-current {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    cursor: pointer;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--gray-700);
    transition: all var(--transition);
}

.lang-current:hover {
    background: var(--white);
    border-color: var(--primary);
}

.lang-current img {
    width: 18px;
    height: 18px;
    border-radius: 2px;
}

.lang-current svg {
    transition: transform var(--transition);
}

.lang-dropdown.active .lang-current svg {
    transform: rotate(180deg);
}

.lang-list {
    position: absolute;
    top: calc(100% + 4px);
    right: 0;
    min-width: 100%;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all var(--transition);
    z-index: 100;
}

.lang-dropdown.active .lang-list {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-list a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    font-size: 0.8125rem;
    color: var(--gray-700);
    transition: all var(--transition);
}

.lang-list a:hover,
.lang-list a.active {
    background: var(--primary-light);
    color: var(--primary);
}

.lang-list img {
    width: 18px;
    height: 18px;
    border-radius: 2px;
}

.header-phone {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--gray-600);
    transition: color var(--transition);
}

.header-phone svg {
    flex-shrink: 0;
    color: var(--primary);
    transition: color var(--transition);
}

.header-phone:hover {
    color: var(--primary);
}

.header-phone:hover svg {
    color: var(--primary-dark);
}

/* На главном экране (прозрачный хэдер) делаем темными для видимости */
.site-header:not(.scrolled) .header-phone {
    color: var(--gray-800);
}

.site-header:not(.scrolled) .header-phone svg {
    color: var(--primary-dark);
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: var(--space-sm);
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

.menu-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--gray-800);
    border-radius: 2px;
    transition: all var(--transition);
}

/* Submenu Styles */
.menu-item {
    position: relative;
}

.menu-item.has-submenu > a::after {
    content: '';
    display: inline-block;
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid currentColor;
    margin-left: 6px;
    transition: transform var(--transition);
}

.menu-item.has-submenu:hover > a::after {
    transform: rotate(180deg);
}

/* Dropdown Submenu */
.submenu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 240px;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: var(--space-sm);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all var(--transition);
    z-index: 100;
    border: 1px solid var(--gray-100);
}

.menu-item.has-submenu:hover > .submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.submenu li {
    margin: 0;
}

.submenu a {
    display: block;
    padding: 0.625rem 1rem !important;
    font-size: 0.875rem !important;
    color: var(--gray-700) !important;
    border-radius: var(--radius);
    transition: all var(--transition);
}

.submenu a:hover {
    background: var(--primary-light) !important;
    color: var(--primary) !important;
    padding-left: 1.25rem !important;
}

/* Mega Menu */
.mega-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    width: 380px;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    padding: var(--space-md);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition);
    z-index: 100;
    border: 1px solid var(--gray-100);
}

.mega-menu-wide {
    width: 420px;
}

.menu-item.has-megamenu:hover > .mega-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.mega-menu-inner {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: var(--space-md);
}

.mega-menu-image {
    border-radius: var(--radius);
    overflow: hidden;
    height: 180px;
}

.mega-menu-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition);
}

.mega-menu:hover .mega-menu-image img {
    transform: scale(1.05);
}

.mega-menu-links {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.mega-menu-links a {
    display: block;
    padding: 0.5rem 0.625rem;
    font-size: 0.8125rem;
    color: var(--gray-700);
    border-radius: var(--radius-sm);
    transition: all var(--transition);
}

.mega-menu-links a:hover {
    background: var(--primary-light);
    color: var(--primary);
    padding-left: 0.875rem;
}

/* Header Responsive */
@media (max-width: 1200px) {
    .header-inner { min-height: 80px; }
    .site-logo { padding: var(--space-xs) 0; }
    .site-logo img { height: 40px; }
    .nav-menu > li > a { padding: 0.5rem 0.65rem; font-size: 0.8125rem; }
    
    .mega-menu { width: 420px; }
    .mega-menu-inner { grid-template-columns: 140px 1fr; }
    .mega-menu-image { height: 180px; }
}

@media (max-width: 1024px) {
    .menu-toggle { display: flex; }
    
    .main-nav {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: var(--white);
        padding: calc(72px + var(--space-xl)) var(--space-xl) var(--space-xl);
        transform: translateX(100%);
        opacity: 0;
        visibility: hidden;
        transition: all var(--transition-slow);
        z-index: 999;
        overflow-y: auto;
    }
    
    .main-nav.active {
        transform: translateX(0);
        opacity: 1;
        visibility: visible;
    }
    
    .nav-menu {
        flex-direction: column;
        align-items: stretch;
        gap: var(--space-xs);
    }
    
    .nav-menu > li > a {
        font-size: 1.125rem !important;
        padding: var(--space-md) !important;
        border-radius: var(--radius-lg);
    }
    
    .nav-menu > li > a:hover,
    .nav-menu > li > a.active {
        background: var(--primary-light);
    }
    
    /* Mobile submenu */
    .menu-item.has-submenu > a::after {
        position: absolute;
        right: var(--space-md);
    }
    
    .submenu,
    .mega-menu {
        position: static;
        transform: none;
        width: 100%;
        box-shadow: none;
        border: none;
        padding: 0 0 0 var(--space-lg);
        opacity: 1;
        visibility: visible;
        display: none;
        background: transparent;
    }
    
    .menu-item.has-submenu.active > .submenu,
    .menu-item.has-megamenu.active > .mega-menu {
        display: block;
    }
    
    .mega-menu-inner {
        grid-template-columns: 1fr;
    }
    
    .mega-menu-image {
        display: none;
    }
}

/* =====================================================
   BUTTONS - Modern 2026 Style
   ===================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: 0.875rem 1.75rem;
    font-family: var(--font-primary);
    font-size: 0.9375rem;
    font-weight: 600;
    text-align: center;
    border: none;
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0) 100%);
    opacity: 0;
    transition: opacity var(--transition);
}

.btn:hover::before {
    opacity: 1;
}

.btn-primary {
    background: var(--primary-gradient);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(0, 112, 142, 0.3);
    position: relative;
    overflow: hidden;
    background-size: 200% 200%;
    animation: gradientShift 3s ease infinite;
}

@keyframes gradientShift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

/* Animated shine effect */
.btn-primary::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 30%,
        rgba(255, 255, 255, 0.3) 50%,
        transparent 70%
    );
    transform: translateX(-100%) translateY(-100%) rotate(45deg);
    animation: shine 3s ease-in-out infinite;
}

@keyframes shine {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
    }
    50%, 100% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
    }
}

/* Pulsing glow effect for CTA buttons */
.btn-primary {
    animation: gradientShift 3s ease infinite, btnPulse 2s ease-in-out infinite;
}

@keyframes btnPulse {
    0%, 100% {
        box-shadow: 0 4px 15px rgba(0, 112, 142, 0.3);
    }
    50% {
        box-shadow: 0 4px 20px rgba(0, 112, 142, 0.5), 0 0 30px rgba(0, 112, 142, 0.3);
    }
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 112, 142, 0.4), 0 0 40px rgba(0, 112, 142, 0.3);
    color: var(--white);
    animation: gradientShift 1.5s ease infinite, btnPulse 1s ease-in-out infinite;
}

.btn-primary:hover::after {
    animation: shine 1.5s ease-in-out infinite;
}

.btn-secondary {
    background: var(--white);
    color: var(--primary);
    border: 2px solid var(--primary);
    box-shadow: var(--shadow);
}

.btn-secondary:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
    color: var(--primary);
}

.btn-white {
    background: var(--white);
    color: var(--primary);
    box-shadow: var(--shadow-md);
}

.btn-white:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    color: var(--primary-dark);
}

.btn-lg {
    padding: clamp(0.875rem, 1vw, 1.25rem) clamp(1.75rem, 2.5vw, 3rem);
    font-size: clamp(1rem, 0.9vw + 0.25rem, 1.25rem);
}

.btn-sm {
    padding: clamp(0.4rem, 0.5vw, 0.625rem) clamp(1rem, 1.5vw, 1.5rem);
    font-size: clamp(0.8125rem, 0.7vw + 0.25rem, 1rem);
}

/* =====================================================
   HERO SECTION - Modern 2026 Design
   ===================================================== */
.hero {
    position: relative;
    min-height: calc(100vh - 92px);
    display: flex;
    align-items: center;
    padding-top: 92px;
    padding-bottom: var(--space-xl);
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--white) 50%, var(--primary-light) 100%);
    overflow: hidden;
}

/* Animated Background Elements */
.hero::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -15%;
    width: 70%;
    height: 140%;
    background: var(--primary-gradient);
    border-radius: 50%;
    opacity: 0.04;
    animation: float 20s ease-in-out infinite;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -20%;
    left: -10%;
    width: 50%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: 50%;
    opacity: 0.03;
    animation: float 25s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(30px, -30px) rotate(5deg); }
}

.hero-inner {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: var(--space-3xl);
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content {
    max-width: 600px;
}

/* Clinic Title - Big Accent */
.hero-clinic-title {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    color: var(--primary);
    font-weight: 700;
    font-size: 1.125rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--space-md);
    padding: 0.625rem 1.25rem;
    background: var(--white);
    border-radius: var(--radius-full);
    box-shadow: var(--shadow-md);
    border: 2px solid var(--primary);
}

.hero-clinic-title::before {
    content: '';
    width: 10px;
    height: 10px;
    background: var(--accent);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.2); }
}

/* Hero Title */
.hero-title {
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: var(--space-md);
    color: var(--gray-900);
}

.hero-title span {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: clamp(0.9375rem, 1vw + 0.25rem, 1.25rem);
    color: var(--gray-600);
    margin-bottom: var(--space-md);
    line-height: 1.6;
    max-width: 70ch;
}

/* Hero Features List */
.hero-features {
    margin-bottom: var(--space-lg);
}

.hero-features li {
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
    margin-bottom: var(--space-xs);
    color: var(--gray-700);
    font-size: clamp(0.875rem, 0.8vw + 0.25rem, 1.125rem);
    line-height: 1.5;
}

.hero-features li::before {
    content: '✓';
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    background: var(--success);
    color: var(--white);
    border-radius: var(--radius-full);
    font-size: 0.65rem;
    font-weight: 700;
    margin-top: 1px;
    flex-shrink: 0;
}

/* Hero Buttons */
.hero-buttons {
    display: flex;
    gap: var(--space-md);
    flex-wrap: wrap;
}

/* Hero Image - Transparent PNG with Animated Shadow Layer */
.hero-image {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: flex-end;
}

/* Animated Shadow Layer Behind Doctor - Large Colorful Shadows */
.hero-image::before {
    content: '';
    position: absolute;
    bottom: 5%;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 85%;
    background: radial-gradient(ellipse at center, 
        rgba(0, 112, 142, 0.4) 0%, 
        rgba(0, 112, 142, 0.35) 30%,
        rgba(0, 112, 142, 0.25) 50%,
        rgba(0, 90, 114, 0.15) 70%,
        transparent 85%);
    filter: blur(60px);
    animation: shadowPulse 4s ease-in-out infinite;
    z-index: 0;
}

@keyframes shadowPulse {
    0%, 100% {
        transform: translateX(-50%) scale(1) rotate(0deg);
        opacity: 0.9;
        filter: blur(60px) hue-rotate(0deg);
    }
    33% {
        transform: translateX(-50%) scale(1.08) rotate(2deg);
        opacity: 1;
        filter: blur(70px) hue-rotate(5deg);
    }
    66% {
        transform: translateX(-50%) scale(1.05) rotate(-2deg);
        opacity: 0.95;
        filter: blur(65px) hue-rotate(-5deg);
    }
}

.hero-image img {
    width: auto;
    max-width: 380px;
    max-height: 480px;
    object-fit: contain;
    position: relative;
    z-index: 1;
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
}

/* Stats Section */
.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
    margin-top: var(--space-3xl);
    padding: var(--space-xl);
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border-radius: var(--radius-xl);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
}

.stat-item {
    text-align: center;
    padding: var(--space-sm);
}

.stat-prefix {
    font-size: 0.75rem;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 2px;
}

.stat-number {
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    font-weight: 800;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.1;
    margin-bottom: var(--space-xs);
}

.stat-label {
    font-size: 0.8125rem;
    color: var(--gray-500);
    font-weight: 500;
}

/* Hero Responsive */
@media (max-width: 1280px) {
    .hero-inner { grid-template-columns: 1.1fr 0.9fr; gap: var(--space-xl); }
    .hero-title { font-size: clamp(1.25rem, 2.5vw, 1.75rem); }
    .hero-clinic-title { font-size: 1rem; padding: 0.5rem 1rem; }
    .hero-image img { max-width: 340px; max-height: 420px; }
    .stat-number { font-size: 1.25rem; }
    .hero-stats { padding: var(--space-md); margin-top: var(--space-xl); }
}

@media (max-width: 1024px) {
    .hero {
        min-height: auto;
        padding: calc(72px + var(--space-xl)) 0 var(--space-xl);
    }
    
    .hero-inner {
        grid-template-columns: 1fr;
        text-align: center;
        gap: var(--space-lg);
    }
    
    .hero-content { max-width: 100%; }
    .hero-title { font-size: clamp(1.25rem, 4vw, 1.5rem); }
    .hero-clinic-title { margin: 0 auto var(--space-md); font-size: 0.875rem; }
    .hero-features { margin-bottom: var(--space-md); }
    .hero-features li { justify-content: center; font-size: 0.8125rem; }
    .hero-buttons { justify-content: center; }
    .hero-buttons .btn { padding: 0.75rem 1.5rem; font-size: 0.875rem; }
    
    .hero-image {
        order: -1;
    }
    
    .hero-image img {
        max-width: 220px;
        max-height: 280px;
    }
    
    .hero-stats {
        padding: var(--space-md);
        margin-top: var(--space-lg);
    }
    
    .stat-number { font-size: 1.25rem; }
    .stat-label { font-size: 0.75rem; }
}

@media (max-width: 640px) {
    .hero-stats { grid-template-columns: repeat(3, 1fr); gap: var(--space-sm); }
    .hero-buttons { flex-direction: column; gap: var(--space-sm); }
    .hero-buttons .btn { width: 100%; }
    .hero-image img { max-width: 180px; max-height: 240px; }
}

/* =====================================================
   SECTION HEADERS
   ===================================================== */
.section-header {
    text-align: center;
    max-width: min(700px, 80ch);
    margin: 0 auto var(--space-3xl);
}

.section-header h2 {
    margin-bottom: var(--space-md);
    font-size: clamp(1.5rem, 2.5vw + 0.5rem, 2.75rem);
}

.section-header h2 span {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-header p {
    color: var(--gray-600);
    font-size: clamp(1rem, 0.9vw + 0.25rem, 1.25rem);
    max-width: 70ch;
    margin: 0 auto;
}

/* =====================================================
   SERVICES SECTION - Modern Cards
   ===================================================== */
.services {
    background: var(--gray-50);
    position: relative;
}

.services::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gray-200), transparent);
}

.service-card {
    background: var(--white);
    padding: var(--space-xl);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow);
    transition: all var(--transition);
    text-align: center;
    position: relative;
    overflow: hidden;
    border: 1px solid transparent;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.service-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-lg);
    background: var(--primary-light);
    border-radius: var(--radius-lg);
    color: var(--primary);
    transition: all var(--transition);
}

.service-card:hover .service-icon {
    background: var(--primary-gradient);
    color: var(--white);
    transform: scale(1.1);
}

.service-icon svg {
    width: 28px;
    height: 28px;
}

.service-card h3 {
    font-size: 1.125rem;
    margin-bottom: var(--space-sm);
}

.service-card p {
    color: var(--gray-600);
    font-size: 0.9375rem;
    margin-bottom: 0;
    line-height: 1.6;
}

/* =====================================================
   ABOUT SECTION
   ===================================================== */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
    align-items: center;
}

.about-image {
    position: relative;
}

.about-image img {
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-lg);
}

.about-badge {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background: var(--primary-gradient);
    color: var(--white);
    padding: var(--space-lg) var(--space-xl);
    border-radius: var(--radius-xl);
    text-align: center;
    box-shadow: var(--shadow-lg);
}

.about-badge .number {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1;
}

.about-badge .label {
    font-size: 0.875rem;
    opacity: 0.9;
}

.about-content h2 {
    margin-bottom: var(--space-lg);
}

.about-content p {
    color: var(--gray-600);
}

@media (max-width: 1024px) {
    .about-grid { grid-template-columns: 1fr; }
    .about-badge { bottom: 20px; right: 20px; }
}

/* =====================================================
   ADVANTAGES SECTION - Gradient Background
   ===================================================== */
.advantages {
    background: var(--primary-gradient);
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.advantages::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -25%;
    width: 80%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: float 30s ease-in-out infinite;
}

.advantages .section-header h2,
.advantages .section-header p {
    color: var(--white);
}

.advantages .section-header h2 span {
    -webkit-text-fill-color: var(--white);
    opacity: 0.8;
}

.advantage-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: var(--space-xl);
    border-radius: var(--radius-xl);
    border: 1px solid rgba(255, 255, 255, 0.2);
    text-align: center;
    transition: all var(--transition);
}

.advantage-card:hover {
    background: rgba(255, 255, 255, 0.18);
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.advantage-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-md);
    background: rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-full);
    transition: all var(--transition);
}

.advantage-card:hover .advantage-icon {
    background: var(--white);
    transform: scale(1.1);
}

.advantage-card:hover .advantage-icon svg {
    color: var(--primary);
}

.advantage-icon svg {
    width: 26px;
    height: 26px;
    color: var(--white);
    transition: color var(--transition);
}

.advantage-card h3 {
    color: var(--white);
    font-size: 1.0625rem;
    margin-bottom: var(--space-sm);
}

.advantage-card p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.9375rem;
    margin-bottom: 0;
}

/* =====================================================
   CTA SECTION
   ===================================================== */
.cta {
    background: var(--gray-900);
    color: var(--white);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(0, 112, 142, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(0, 112, 142, 0.15) 0%, transparent 50%);
}

.cta > .container {
    position: relative;
    z-index: 1;
}

.cta h2 {
    color: var(--white);
}

.cta p {
    color: var(--gray-300);
    max-width: 600px;
    margin: 0 auto var(--space-xl);
}

/* CTA Form */
.cta-form {
    max-width: 600px;
    margin: 0 auto;
}

.cta-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: var(--space-md);
}

.cta-form input {
    padding: 1rem 1.25rem;
    font-size: 1rem;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.05);
    color: var(--white);
    transition: all var(--transition);
}

.cta-form input::placeholder {
    color: var(--gray-400);
}

.cta-form input:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.1);
}

@media (max-width: 768px) {
    .cta-form .form-row {
        grid-template-columns: 1fr;
    }
}


/* =====================================================
   FOOTER - Modern Hero Style Dark Theme
   ===================================================== */
.modern-footer {
    position: relative;
    background: linear-gradient(135deg, #0a1628 0%, #05080f 100%);
    color: var(--gray-300);
    padding: var(--space-5xl) 0 var(--space-md);
    padding-bottom: calc(var(--space-md) + 70px);
    overflow: hidden;
}

/* Animated Background Shapes */
.footer-bg-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    opacity: 0.15;
}

.footer-shape {
    position: absolute;
    background: var(--primary-gradient);
    border-radius: 50%;
    filter: blur(80px);
    animation: float 20s infinite ease-in-out;
}

.footer-shape-1 {
    width: 400px;
    height: 400px;
    top: -200px;
    left: -100px;
    animation-delay: 0s;
}

.footer-shape-2 {
    width: 300px;
    height: 300px;
    bottom: -150px;
    right: 10%;
    animation-delay: -7s;
}

.footer-shape-3 {
    width: 250px;
    height: 250px;
    top: 50%;
    right: -125px;
    animation-delay: -14s;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(30px, -30px) scale(1.1);
    }
    66% {
        transform: translate(-20px, 20px) scale(0.9);
    }
}

/* License Card - Dark Transparent */
.footer-license-card {
    position: relative;
    z-index: 1;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    padding: var(--space-md);
    margin-bottom: var(--space-xl);
}

.footer-license-card p {
    margin: 0 0 0.15rem;
    font-size: 0.75rem;
    color: var(--gray-500);
    line-height: 1.5;
}

.footer-license-card p:last-child {
    margin-bottom: 0;
}

/* Footer Links Grid */
.footer-links-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-3xl);
    margin-top: var(--space-4xl);
    margin-bottom: var(--space-4xl);
}

.footer-column-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: var(--space-lg);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer-links-list,
.footer-contact-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links-list li {
    margin-bottom: var(--space-sm);
}

.footer-links-list a {
    color: var(--gray-400);
    font-size: 0.9375rem;
    transition: all var(--transition);
    display: inline-block;
}

.footer-links-list a:hover {
    color: var(--white);
    transform: translateX(4px);
}

.footer-contact-list li {
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
    color: var(--gray-400);
    font-size: 0.9375rem;
    line-height: 1.6;
}

.footer-contact-list svg {
    color: var(--primary);
    flex-shrink: 0;
    margin-top: 2px;
}

.footer-contact-list a {
    color: var(--gray-400);
    transition: color var(--transition);
}

.footer-contact-list a:hover {
    color: var(--white);
}

/* Footer Bottom */
.footer-bottom-section {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    padding-top: var(--space-2xl);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-left-block {
    display: flex;
    align-items: center;
    gap: var(--space-xl);
    flex: 1;
}

.footer-logo-bottom {
    height: clamp(48px, 5vw, 65px);
    width: auto;
    filter: brightness(0) invert(1);
    opacity: 0.7;
    flex-shrink: 0;
}

.footer-copyright p {
    margin: 0;
    font-size: 0.875rem;
    color: var(--gray-500);
    line-height: 1.6;
}

.footer-legal-info {
    margin-top: 0.25rem;
    font-size: 0.8125rem;
}

.footer-right-block {
    display: flex;
    align-items: center;
}

.footer-social {
    display: flex;
    gap: var(--space-sm);
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-full);
    color: var(--gray-400);
    transition: all var(--transition);
}

/* Иконки-картинки (Telegram, Max) — без фона, просто логотип */
.social-icon--img {
    background: transparent;
    border: none;
    width: 36px;
    height: 36px;
    padding: 0;
    overflow: hidden;
    border-radius: 0;
}

.social-icon--img img {
    width: 36px;
    height: 36px;
    object-fit: contain;
    display: block;
    transition: transform var(--transition), opacity var(--transition);
}

.social-icon--img:hover {
    background: transparent;
    transform: translateY(-2px);
    box-shadow: none;
}

.social-icon--img:hover img {
    opacity: 0.85;
}

.social-icon:hover {
    background: var(--primary-gradient);
    color: var(--white);
    border-color: transparent;
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0, 112, 142, 0.4);
}

/* Responsive */
@media (max-width: 1024px) {
    .footer-links-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-2xl);
    }
}

@media (max-width: 768px) {
    .modern-footer {
        padding: var(--space-3xl) 0 var(--space-md);
        padding-bottom: calc(var(--space-md) + 70px);
    }
    
    .footer-license-card {
        padding: var(--space-md);
        margin-bottom: var(--space-lg);
    }
    
    .footer-license-card p {
        font-size: 0.75rem;
    }
    
    .footer-links-grid {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }
    
    .footer-bottom-section {
        flex-direction: column;
        align-items: center;
        gap: var(--space-lg);
        text-align: center;
    }
    
    .footer-left-block {
        flex-direction: column;
        align-items: center;
        gap: var(--space-md);
        width: 100%;
    }
    
    .footer-logo-bottom {
        height: 52px;
    }
    
    .footer-right-block {
        width: 100%;
        justify-content: center;
    }
    
    .footer-social {
        justify-content: center;
        width: 100%;
    }
}

@media (max-width: 640px) {
    .modern-footer {
        padding: var(--space-2xl) 0 var(--space-sm);
        padding-bottom: calc(var(--space-sm) + 70px);
    }
    
    .footer-license-card {
        padding: var(--space-sm);
        margin-bottom: var(--space-md);
    }
    
    .footer-links-grid {
        gap: var(--space-lg);
    }
    
    .footer-column-title {
        font-size: 0.9375rem;
    }
    
    .footer-logo-bottom {
        height: 48px;
    }
}

   PAGE TEMPLATES
   ===================================================== */
.page-header {
    background: var(--primary-gradient);
    color: var(--white);
    padding: calc(72px + var(--space-3xl)) 0 var(--space-3xl);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -25%;
    width: 80%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 70%);
}

.page-header h1 {
    color: var(--white);
    margin-bottom: var(--space-sm);
    position: relative;
}

.page-header .breadcrumb {
    color: rgba(255, 255, 255, 0.7);
    position: relative;
}

.page-header .breadcrumb a {
    color: rgba(255, 255, 255, 0.7);
}

.page-header .breadcrumb a:hover {
    color: var(--white);
}

.page-content {
    padding: var(--space-4xl) 0;
}

.page-content h2,
.page-content h3,
.page-content h4 {
    margin-top: var(--space-xl);
}

.page-content ul,
.page-content ol {
    margin-bottom: var(--space-lg);
    padding-left: var(--space-lg);
}

.page-content ul { list-style: disc; }
.page-content ol { list-style: decimal; }
.page-content li { margin-bottom: var(--space-sm); }

/* =====================================================
   CONTACT FORM
   ===================================================== */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: var(--space-lg);
    width: 100%;
}

.form-group label {
    display: block;
    margin-bottom: var(--space-sm);
    font-weight: 500;
    color: var(--gray-700);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
}

.form-control {
    width: 100%;
    padding: 0.875rem 1.25rem;
    font-family: var(--font-primary);
    font-size: 1rem;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-lg);
    background: var(--white);
    transition: all var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px var(--primary-light);
}

.form-control::placeholder {
    color: var(--gray-400);
}

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

.form-submit {
    text-align: center;
}

.form-message {
    margin-top: var(--space-md);
    text-align: center;
}

/* =====================================================
   MODAL
   ===================================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-lg);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-slow);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* =====================================================
   APPOINTMENT MODAL - NEW 4-STEP FORM
   ===================================================== */
.appointment-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    padding: var(--space-lg);
}

.appointment-modal.active {
    opacity: 1;
    visibility: visible;
}

.appointment-modal-content {
    background: var(--white);
    border-radius: var(--radius-2xl);
    padding: var(--space-md) var(--space-lg);
    max-width: 500px;
    width: 100%;
    position: relative;
    transform: translateY(30px) scale(0.95);
    transition: all 0.3s ease;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-height: 85vh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.appointment-modal.active .appointment-modal-content {
    transform: translateY(0) scale(1);
}

.modal-close {
    position: absolute;
    top: var(--space-md);
    right: var(--space-md);
    width: 32px;
    height: 32px;
    background: transparent;
    border: none;
    border-radius: var(--radius-full);
    color: var(--gray-400);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
    z-index: 10;
    opacity: 0.6;
}

.modal-close:hover {
    background: var(--gray-100);
    color: var(--gray-700);
    opacity: 1;
    transform: rotate(90deg);
}

.modal-close svg {
    width: 20px;
    height: 20px;
}

/* Steps Indicator */
.form-steps-indicator {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0;
    padding: 0;
}

.step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.375rem;
    position: relative;
    z-index: 1;
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 0.875rem;
    background: var(--white);
    color: var(--gray-400);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 3px solid var(--gray-200);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.step-item.active .step-number {
    background: var(--primary-gradient);
    color: var(--white);
    border-color: transparent;
    box-shadow: 0 8px 20px rgba(0, 112, 142, 0.4);
    transform: scale(1.15);
}

.step-item.completed .step-number {
    background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
    color: var(--white);
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(46, 204, 113, 0.3);
}

.step-label {
    font-size: 0.6875rem;
    color: var(--gray-500);
    font-weight: 500;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.step-item.active .step-label {
    color: var(--primary);
    font-weight: 700;
}

.step-line {
    flex: 1;
    height: 2px;
    background: var(--gray-200);
    position: relative;
    margin: 0 var(--space-xs);
}

.step-line::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 0%;
    background: var(--primary-gradient);
    transition: width 0.4s ease;
}

.step-item.completed + .step-line::after {
    width: 100%;
}

/* Form Steps */
.form-step {
    display: none;
    animation: fadeInUp 0.4s ease;
}

.form-step.active {
    display: block;
}

.step-title {
    font-size: 1.375rem;
    font-weight: 700;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.step-description {
    font-size: 0.9375rem;
    color: var(--gray-600);
    margin-bottom: 1.25rem;
}

/* Review Step */
.review-data {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
}

.review-section {
    background: var(--white);
    border-radius: 16px;
    padding: 1.5rem;
    border: 2px solid var(--gray-200);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.review-section h4 {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.review-section h4::before {
    content: '';
    width: 4px;
    height: 20px;
    background: var(--primary-gradient);
    border-radius: 2px;
}

.review-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(0, 112, 142, 0.2);
}

.review-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.review-label {
    font-size: 1rem;
    color: var(--gray-700);
    font-weight: 600;
}

.review-value {
    font-size: 1rem;
    color: var(--gray-900);
    font-weight: 700;
    text-align: right;
    max-width: 60%;
}

.review-message {
    font-size: 0.875rem;
    color: var(--gray-700);
    line-height: 1.6;
    white-space: pre-wrap;
}

/* Form Navigation */
.form-navigation {
    display: flex;
    gap: var(--space-md);
    width: 100%;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--gray-100);
}

.btn-prev,
.btn-next,
.btn-submit {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-xs);
}

.btn-prev {
    flex: 0.8;
}

/* Responsive */
@media (max-width: 640px) {
    .form-steps-indicator {
        padding: 0;
    }
    
    .step-number {
        width: 36px;
        height: 36px;
        font-size: 0.875rem;
    }
    
    .step-label {
        font-size: 0.625rem;
    }
    
    .step-line {
        margin: 0 4px;
    }
    
    .step-title {
        font-size: 1.25rem;
    }
    
    .step-description {
        font-size: 0.875rem;
    }
    
    .form-navigation {
        flex-direction: column-reverse;
    }
    
    .btn-prev,
    .btn-next,
    .btn-submit {
        width: 100%;
    }
}

/* =====================================================
   UTILITIES
   ===================================================== */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: var(--space-md); }
.mt-2 { margin-top: var(--space-xl); }
.mt-3 { margin-top: var(--space-2xl); }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: var(--space-md); }
.mb-2 { margin-bottom: var(--space-xl); }
.mb-3 { margin-bottom: var(--space-2xl); }

/* =====================================================
   ANIMATIONS
   ===================================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.animate-fadeInUp {
    animation: fadeInUp 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.animate-fadeIn {
    animation: fadeIn 0.5s ease forwards;
}

.animate-scaleIn {
    animation: scaleIn 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* Animation delays */
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }
.delay-5 { animation-delay: 0.5s; }

/* =====================================================
   SCROLLBAR
   ===================================================== */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--gray-100);
}

::-webkit-scrollbar-thumb {
    background: var(--gray-300);
    border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gray-400);
}

/* =====================================================
   ADVANTAGES CARDS
   ===================================================== */
.advantages .section-header h2 span {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
}

.advantage-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    box-shadow: var(--shadow);
    border: 1px solid var(--gray-100);
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}

.advantage-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--primary-gradient);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition);
}

.advantage-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.advantage-card:hover::before {
    transform: scaleX(1);
}

.advantage-num {
    font-size: 2rem;
    font-weight: 800;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0.3;
    margin-bottom: var(--space-sm);
}

.advantage-card h3 {
    font-size: 1rem;
    color: var(--gray-900);
    margin-bottom: var(--space-sm);
}

.advantage-card p {
    font-size: 0.875rem;
    color: var(--gray-600);
    line-height: 1.6;
    margin: 0;
}

@media (max-width: 1024px) {
    .advantages-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
    .advantages-grid { grid-template-columns: 1fr; }
    .advantage-card { padding: var(--space-lg); }
}

/* =====================================================
   TREATMENTS SECTION
   ===================================================== */
.treatments .section-header h2 span {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.treatments-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
}

.treatment-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    box-shadow: var(--shadow);
    border: 1px solid var(--gray-100);
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}

.treatment-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--primary-gradient);
    transform: translateX(-100%);
    transition: transform var(--transition);
}

.treatment-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.treatment-card:hover::before {
    transform: translateX(0);
}

.treatment-card h3 {
    font-size: 1.0625rem;
    color: var(--gray-900);
    margin-bottom: var(--space-md);
    padding-bottom: var(--space-sm);
    border-bottom: 1px solid var(--gray-100);
}

.treatment-card ul {
    list-style: none;
}

.treatment-card li {
    position: relative;
    padding-left: var(--space-lg);
    margin-bottom: var(--space-sm);
    font-size: 0.875rem;
    color: var(--gray-600);
    line-height: 1.6;
}

.treatment-card li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.5em;
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
}

@media (max-width: 1024px) {
    .treatments-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
    .treatments-grid { grid-template-columns: 1fr; }
}

/* =====================================================
   ALL INCLUSIVE SECTION
   ===================================================== */
.all-inclusive {
    background: var(--primary-gradient);
    position: relative;
    overflow: hidden;
}

.all-inclusive::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 80%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 60%);
}

.all-inclusive-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
    align-items: center;
    position: relative;
    z-index: 1;
}

.all-inclusive-image {
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
}

.all-inclusive-image img {
    width: 100%;
    height: auto;
    display: block;
}

.all-inclusive-content {
    max-width: 700px;
    position: relative;
    z-index: 1;
}

@media (max-width: 1024px) {
    .all-inclusive-inner { grid-template-columns: 1fr; gap: var(--space-xl); }
    .all-inclusive-image { max-width: 450px; margin: 0 auto; }
}

@media (max-width: 640px) {
    .all-inclusive-image { max-width: 300px; }
}

.all-inclusive h3 {
    color: var(--white);
    font-size: clamp(1.25rem, 2.5vw, 1.75rem);
    margin-bottom: var(--space-xl);
}

.all-inclusive h3 span {
    color: var(--accent-light);
}

.numbered-list {
    counter-reset: item;
    list-style: none;
}

.numbered-list li {
    counter-increment: item;
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-sm) 0;
    color: var(--white);
    font-size: 1rem;
}

.numbered-list li::before {
    content: counter(item);
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    background: rgba(255,255,255,0.2);
    color: var(--white);
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 0.875rem;
}

/* =====================================================
   ABOUT DOCTOR SECTION
   ===================================================== */
.about-doctor .section-header h2 span {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.about-grid {
    display: grid;
    grid-template-columns: 5fr 7fr;
    gap: var(--space-3xl);
    align-items: start;
    margin-bottom: var(--space-2xl);
}

.about-image {
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.about-image img {
    width: 100%;
    height: auto;
}

.about-stats {
    display: flex;
    gap: var(--space-xl);
    margin-bottom: var(--space-xl);
}

.about-stat {
    text-align: center;
}

.about-stat strong {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.about-stat span {
    font-size: 0.75rem;
    color: var(--gray-600);
}

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

.about-list li {
    position: relative;
    padding-left: var(--space-lg);
    margin-bottom: var(--space-sm);
    font-size: 0.9375rem;
    color: var(--gray-700);
}

.about-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--accent);
    font-weight: 700;
}

.doctor-quote {
    background: var(--gray-50);
    border-left: 4px solid var(--primary);
    padding: var(--space-xl);
    border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
    margin: 0;
}

.doctor-quote p {
    margin: 0;
    font-size: 0.9375rem;
    color: var(--gray-700);
    line-height: 1.8;
}

.doctor-quote strong {
    color: var(--primary);
}

@media (max-width: 1024px) {
    .about-grid { grid-template-columns: 1fr; }
    .about-image { max-width: 400px; }
    .about-stats { justify-content: center; text-align: center; }
    .about-stat .desc { max-width: none; }
}

/* =====================================================
   HEADER RESPONSIVE ADDITIONAL
   ===================================================== */
@media (max-width: 1400px) {
    .header-phone span { display: none !important; }
    .header-phone { 
        padding: 0.625rem !important;
        min-width: 44px !important;
        min-height: 44px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        border-radius: var(--radius-lg);
        background: var(--gray-100);
    }
    .header-phone svg {
        width: 20px !important;
        height: 20px !important;
    }
    .lang-current span { display: none; }
    .lang-current { padding: 6px 8px; }
}

@media (max-width: 1024px) {
    .lang-dropdown { order: -1; }
}

/* =====================================================
   NEW DESIGN V2 - HERO SECTION
   ===================================================== */
.hero-v2 {
    min-height: 100vh;
    padding: calc(80px + var(--space-md)) 0 var(--space-lg);
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, var(--primary-light) 0%, var(--white) 100%);
    display: flex;
    align-items: center;
}

.hero-bg-shapes {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.hero-bg-shapes .shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.5;
}

.shape-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--primary-light) 0%, transparent 70%);
    top: -200px;
    right: -100px;
    animation: float 20s ease-in-out infinite;
}

.shape-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--primary-light) 0%, transparent 70%);
    bottom: -100px;
    left: -100px;
    animation: float 25s ease-in-out infinite reverse;
}

.shape-3 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(0,112,142,0.1) 0%, transparent 70%);
    top: 50%;
    left: 30%;
    animation: float 30s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(30px, -30px) scale(1.1); }
}

.hero-v2-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: var(--space-3xl);
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-v2-content {
    max-width: 620px;
}

/* H1 - Клиника Доктора Шабунина */
.hero-clinic-name {
    font-size: clamp(2rem, 4.5vw, 4rem);
    font-weight: 800;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: var(--space-md);
    letter-spacing: -0.02em;
    line-height: 1.1;
    display: flex;
    flex-direction: column;
    width: 100%;
}

.clinic-line-1 {
    display: block;
}

.clinic-line-2 {
    display: block;
}

/* H2 - Жизнь без боли... */
.hero-v2-content h2,
.hero-subtitle {
    font-size: clamp(1.25rem, 2.5vw, 1.75rem);
    font-weight: 600;
    line-height: 1.3;
    color: var(--gray-700);
    margin-bottom: var(--space-xl);
    display: flex;
    flex-direction: column;
}

.title-line-1 {
    display: block;
}

.title-line-2 {
    display: block;
}

.hero-v2-content h2 span,
.hero-subtitle span {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-v2-features {
    margin-bottom: var(--space-md);
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
    margin-bottom: var(--space-xs);
}

.feature-icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-light);
    border-radius: var(--radius-full);
    color: var(--accent);
}

.feature-icon svg {
    width: 12px;
    height: 12px;
}

.feature-item p {
    margin: 0;
    font-size: 0.75rem;
    color: var(--gray-600);
    line-height: 1.35;
}

.hero-v2-actions {
    display: flex;
    gap: var(--space-md);
    flex-wrap: wrap;
}

.hero-v2-actions .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    flex: 1 1 auto;
    min-width: 200px;
}

.hero-v2-actions .btn svg {
    width: 16px;
    height: 16px;
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--gray-200);
    color: var(--gray-700);
}

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

/* Hero button outline in theme colors */
.hero-v2-actions .btn-outline {
    border: 2px solid var(--primary);
    color: var(--primary);
}

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

/* Hero Visual */
.hero-v2-visual {
    position: relative;
    display: flex;
    justify-content: center;
}

/* Animated Blurred Shapes Behind Doctor */
.hero-v2-visual::before {
    content: '';
    position: absolute;
    bottom: 5%;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 400px;
    height: 85%;
    background: radial-gradient(ellipse at center, 
        rgba(0, 112, 142, 0.4) 0%, 
        rgba(0, 112, 142, 0.35) 30%,
        rgba(0, 112, 142, 0.25) 50%,
        rgba(0, 90, 114, 0.15) 70%,
        transparent 85%);
    filter: blur(60px);
    animation: heroShadowPulse 4s ease-in-out infinite;
    z-index: 0;
}

@keyframes heroShadowPulse {
    0%, 100% {
        transform: translateX(-50%) scale(1);
        opacity: 1;
    }
    50% {
        transform: translateX(-50%) scale(1.1);
        opacity: 0.8;
    }
}

/* Additional Floating Shapes */
.hero-v2-visual::after {
    content: '';
    position: absolute;
    bottom: 10%;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    max-width: 320px;
    height: 70%;
    background: radial-gradient(circle at 30% 50%, 
        rgba(0, 112, 142, 0.3) 0%,
        rgba(0, 90, 114, 0.2) 40%,
        transparent 70%);
    filter: blur(50px);
    animation: heroShapeFloat 6s ease-in-out infinite;
    animation-delay: -2s;
    z-index: 0;
}

@keyframes heroShapeFloat {
    0%, 100% {
        transform: translateX(-50%) translateY(0) scale(1);
        opacity: 0.8;
    }
    50% {
        transform: translateX(-50%) translateY(-20px) scale(1.15);
        opacity: 1;
    }
}

.hero-v2-visual .doctor-card {
    position: relative;
    max-width: 460px;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
    z-index: 1;
}

/* Remove ALL backgrounds, borders, shadows from doctor card */
.hero-v2-visual .doctor-card::before,
.hero-v2-visual .doctor-card::after {
    display: none !important;
    content: none !important;
}

/* Doctor card image - simple, no effects */
.hero-v2-visual .doctor-card img {
    width: auto;
    max-width: 460px;
    max-height: 580px;
    object-fit: contain;
    position: relative;
    z-index: 1;
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
}

.hero-v2-visual .doctor-card-badge {
    display: none !important;
}

/* Floating Decorative Shapes Around Doctor */
.hero-v2-visual .floating-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(40px);
    z-index: 0;
    pointer-events: none;
}

.hero-v2-visual .floating-shape-1 {
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(0, 112, 142, 0.25) 0%, transparent 70%);
    top: 10%;
    right: -50px;
    animation: floatShape1 8s ease-in-out infinite;
}

.hero-v2-visual .floating-shape-2 {
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(0, 90, 114, 0.3) 0%, transparent 70%);
    bottom: 20%;
    left: -30px;
    animation: floatShape2 10s ease-in-out infinite;
    animation-delay: -3s;
}

.hero-v2-visual .floating-shape-3 {
    width: 180px;
    height: 180px;
    background: radial-gradient(circle, rgba(0, 112, 142, 0.2) 0%, transparent 70%);
    top: 40%;
    left: -40px;
    animation: floatShape3 12s ease-in-out infinite;
    animation-delay: -6s;
}

@keyframes floatShape1 {
    0%, 100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.6;
    }
    50% {
        transform: translate(-20px, 30px) scale(1.2);
        opacity: 1;
    }
}

@keyframes floatShape2 {
    0%, 100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.7;
    }
    50% {
        transform: translate(30px, -20px) scale(1.3);
        opacity: 1;
    }
}

@keyframes floatShape3 {
    0%, 100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.5;
    }
    50% {
        transform: translate(20px, 20px) scale(1.15);
        opacity: 0.9;
    }
}

/* Hide floating stats on hero */
.hero-v2-visual .floating-stats {
    display: none !important;
}

/* Remove hover effects from hero doctor image */
.hero-v2-visual .doctor-card:hover {
    transform: none !important;
    background: none !important;
    border: none !important;
    box-shadow: none !important;
}

.hero-v2-visual .doctor-card:hover img {
    transform: none !important;
    background: none !important;
    border: none !important;
    box-shadow: none !important;
}

.badge-title {
    display: block;
    font-weight: 700;
    color: var(--white);
    font-size: 0.9375rem;
    letter-spacing: 0.3px;
}

/* Floating Stats */
.floating-stats {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.floating-stat {
    position: absolute;
    background: var(--white);
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    text-align: center;
    animation: floatStat 3s ease-in-out infinite;
}

.stat-1 { top: 8%; left: 5px; animation-delay: 0s; }
.stat-2 { top: 42%; right: -5px; animation-delay: 0.5s; }
.stat-3 { bottom: 18%; left: 0; animation-delay: 1s; }

@keyframes floatStat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

.floating-stat .stat-value {
    font-size: 1rem;
    font-weight: 800;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.floating-stat .stat-text {
    font-size: 0.5625rem;
    color: var(--gray-500);
    white-space: nowrap;
}

/* Hero V2 Responsive */
@media (max-width: 1024px) {
    .hero-v2 { min-height: auto; padding: calc(110px + var(--space-lg)) 0 var(--space-lg); display: block; }
    .hero-v2-grid { grid-template-columns: 1fr; text-align: center; }
    .hero-v2-content { max-width: 100%; }
    .hero-clinic-name { margin: 0 auto var(--space-md); font-size: clamp(3.95rem, 5vw, 3rem); }
    .feature-item { justify-content: center; text-align: left; }
    .hero-v2-actions { justify-content: center; }
    .hero-v2-visual { order: -1; margin-bottom: var(--space-lg); }
    .doctor-card { max-width: 220px; padding: var(--space-sm); margin: 0 auto; }
    .floating-stats { display: none; }
    
    /* Smaller floating shapes on mobile */
    .hero-v2-visual .floating-shape-1 {
        width: 120px;
        height: 120px;
        right: -20px;
    }
    
    .hero-v2-visual .floating-shape-2 {
        width: 100px;
        height: 100px;
        left: -15px;
    }
    
    .hero-v2-visual .floating-shape-3 {
        width: 110px;
        height: 110px;
        left: -20px;
    }
    
    /* Reduce blur on mobile for performance */
    .hero-v2-visual::before,
    .hero-v2-visual::after {
        filter: blur(40px);
    }
    
    .hero-v2-visual .floating-shape {
        filter: blur(30px);
    }
}

/* =====================================================
   NEW DESIGN V2 - SECTION TITLES
   ===================================================== */
.section-title-v2 {
    text-align: center;
    margin-bottom: var(--space-3xl);
}

.section-title-v2.left {
    text-align: left;
}

.section-label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--primary);
    background: var(--primary-light);
    padding: 0.375rem 1rem;
    border-radius: var(--radius-full);
    margin-bottom: var(--space-md);
}

.section-title-v2 h2 {
    font-size: clamp(1.5rem, 2.5vw + 0.5rem, 2.75rem);
    font-weight: 800;
    color: var(--gray-900);
    margin: 0;
}

.section-title-v2 h2 span {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* =====================================================
   NEW DESIGN V2 - ADVANTAGES
   ===================================================== */
.advantages-v2 {
    background: var(--gray-50);
}

.advantages-v2-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
}

.adv-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    box-shadow: var(--shadow);
    border: 1px solid var(--gray-100);
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}

.adv-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary-gradient);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition);
}

.adv-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.adv-card:hover::before {
    transform: scaleX(1);
}

.adv-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-md);
}

.adv-number {
    font-size: 2rem;
    font-weight: 800;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0.3;
    line-height: 1;
}

.adv-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-light);
    border-radius: var(--radius-lg);
    color: var(--primary);
    transition: all var(--transition);
}

.adv-card:hover .adv-icon {
    background: var(--primary-gradient);
    color: var(--white);
}

.adv-card h3 {
    font-size: 1.0625rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: var(--space-sm);
    line-height: 1.3;
}

.adv-card p {
    font-size: 0.875rem;
    color: var(--gray-600);
    margin: 0;
    line-height: 1.6;
}

@media (max-width: 1024px) {
    .advantages-v2-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
    .advantages-v2-grid { grid-template-columns: 1fr; }
}

/* =====================================================
   NEW DESIGN V2 - TREATMENTS
   ===================================================== */
.treatments-v2-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
}

.treat-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    box-shadow: var(--shadow);
    border: 1px solid var(--gray-100);
    transition: all var(--transition);
    position: relative;
}

.treat-card:hover {
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.treat-card-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-gradient);
    border-radius: var(--radius-lg);
    color: var(--white);
    margin-bottom: var(--space-lg);
    transition: transform var(--transition);
}

.treat-card:hover .treat-card-icon {
    transform: scale(1.1) rotate(-5deg);
}

.treat-card h3 {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: var(--space-md);
}

.treat-card ul {
    list-style: none;
}

.treat-card li {
    position: relative;
    padding-left: var(--space-lg);
    margin-bottom: var(--space-xs);
    font-size: 0.875rem;
    color: var(--gray-600);
    line-height: 1.5;
}

.treat-card li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.5em;
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
}

@media (max-width: 1024px) {
    .treatments-v2-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
    .treatments-v2-grid { grid-template-columns: 1fr; }
}

/* =====================================================
   NEW DESIGN V2 - INCLUSIVE
   ===================================================== */
.inclusive-v2 {
    background: var(--gray-50);
}

.inclusive-v2-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
    align-items: center;
}

.inclusive-v2-image {
    position: relative;
    border-radius: var(--radius-2xl);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.inclusive-v2-image img {
    width: 100%;
    height: auto;
    display: block;
}

.inclusive-badge {
    position: absolute;
    bottom: var(--space-lg);
    right: var(--space-lg);
    background: var(--white);
    padding: 0.75rem 1.25rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    text-align: center;
}

.inclusive-badge span {
    display: block;
    font-size: 0.6875rem;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.inclusive-badge strong {
    display: block;
    font-size: 1rem;
    color: var(--primary);
    font-weight: 700;
}

.inclusive-steps {
    margin: var(--space-xl) 0;
}

/* Inclusive Section Steps - цифры СЛЕВА от текста */
.inclusive-steps .step-item {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-sm) 0;
    border-bottom: 1px solid var(--gray-200);
    transition: all var(--transition);
}

.inclusive-steps .step-item:hover {
    padding-left: var(--space-sm);
    border-bottom-color: var(--primary);
}

.inclusive-steps .step-num {
    width: 36px;
    height: 36px;
    min-width: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-gradient);
    color: var(--white);
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 1rem;
    flex-shrink: 0;
}

.inclusive-steps .step-item span {
    font-size: 0.9375rem;
    color: var(--gray-700);
}

.inclusive-v2-content .btn {
    padding: 1rem 2.5rem;
    font-size: 1.125rem;
    font-weight: 600;
    min-width: 220px;
}

@media (max-width: 1024px) {
    .inclusive-v2-wrapper { grid-template-columns: 1fr; }
    .inclusive-v2-image { max-width: 500px; margin: 0 auto; }
    .section-title-v2.left { text-align: center; }
    .inclusive-v2-content { text-align: left; }
    .inclusive-steps .step-item { justify-content: flex-start; }
}

/* =====================================================
   NEW DESIGN V2 - DOCTOR (Hero Style)
   ===================================================== */
.doctor-v2 {
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--white) 50%, var(--primary-light) 100%);
    position: relative;
    overflow: hidden;
}

/* Background shapes like hero */
.doctor-v2::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -15%;
    width: 70%;
    height: 140%;
    background: var(--primary-gradient);
    border-radius: 50%;
    opacity: 0.04;
    animation: float 20s ease-in-out infinite;
}

.doctor-v2::after {
    content: '';
    position: absolute;
    bottom: -20%;
    left: -10%;
    width: 50%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: 50%;
    opacity: 0.03;
    animation: float 25s ease-in-out infinite reverse;
}

.doctor-v2-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: var(--space-3xl);
    align-items: center;
    margin-bottom: var(--space-3xl);
    position: relative;
    z-index: 1;
}

.doctor-v2-photo {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: flex-end;
}

/* Animated Shadow Layer Behind Doctor Photo - Same as Hero */
.doctor-v2-photo::before {
    content: '';
    position: absolute;
    bottom: 5%;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 85%;
    background: radial-gradient(ellipse at center, 
        rgba(0, 112, 142, 0.4) 0%, 
        rgba(0, 112, 142, 0.35) 30%,
        rgba(0, 112, 142, 0.25) 50%,
        rgba(0, 90, 114, 0.15) 70%,
        transparent 85%);
    filter: blur(60px);
    animation: shadowPulse 4s ease-in-out infinite;
    z-index: 0;
}

.doctor-v2-photo img {
    width: auto;
    max-width: 380px;
    max-height: 480px;
    object-fit: contain;
    position: relative;
    z-index: 1;
}

.doctor-v2-content h2 {
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: var(--space-lg);
    color: var(--gray-900);
}

.doctor-v2-content h2 span {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.doctor-stats-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
    margin-bottom: var(--space-xl);
    padding: var(--space-xl);
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border-radius: var(--radius-xl);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
}

.doc-stat {
    text-align: center;
}

.doc-stat strong {
    display: block;
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    font-weight: 800;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.1;
    margin-bottom: var(--space-xs);
}

.doc-stat span {
    font-size: 0.8125rem;
    color: var(--gray-500);
    font-weight: 500;
}

.doctor-features {
    list-style: none;
}

.doctor-features li {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-sm);
    color: var(--gray-700);
    font-size: 0.8125rem;
    line-height: 1.4;
}

.doctor-features li .feature-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 28px;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--accent-light) 100%);
    border-radius: var(--radius-full);
    flex-shrink: 0;
}

.doctor-features li .feature-icon svg {
    width: 14px;
    height: 14px;
    color: var(--primary);
}

.doctor-features li span {
    flex: 1;
}

/* На мобильных разрешаем перенос текста */
@media (max-width: 1280px) {
    .doctor-features li {
        align-items: flex-start;
    }
    
    .doctor-features li .feature-icon {
    margin-top: 2px;
    }
}

/* Doctor Quote V2 - Hero Style */
.doctor-quote-v2 {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    border-radius: var(--radius-2xl);
    padding: var(--space-3xl);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.quote-icon {
    position: absolute;
    top: var(--space-xl);
    left: var(--space-xl);
    color: var(--primary);
    opacity: 0.2;
}

.doctor-quote-v2 blockquote {
    margin: 0;
    padding-left: var(--space-3xl);
}

.doctor-quote-v2 p {
    font-size: 1rem;
    color: var(--gray-700);
    line-height: 1.8;
    margin: 0;
}

.doctor-quote-v2 strong {
    color: var(--primary);
    font-weight: 700;
}

@media (max-width: 1280px) {
    .doctor-v2-grid { grid-template-columns: 1.1fr 0.9fr; gap: var(--space-xl); }
    .doctor-v2-photo img { max-width: 340px; max-height: 420px; }
    .doctor-stats-row { padding: var(--space-md); }
    .doc-stat strong { font-size: 1.25rem; }
}

@media (max-width: 1024px) {
    .doctor-v2-grid { grid-template-columns: 1fr; text-align: center; gap: var(--space-lg); }
    .doctor-v2-photo { order: -1; }
    .doctor-v2-photo img { 
        max-width: 100%;
        width: 100%;
        max-height: none;
    }
    .doctor-stats-row { padding: var(--space-md); }
    .doctor-features li { justify-content: center; text-align: left; }
    .doctor-quote-v2 { padding: var(--space-xl); }
    .doctor-quote-v2 blockquote { padding-left: 0; padding-top: var(--space-2xl); }
}

@media (max-width: 640px) {
    .doctor-stats-row { grid-template-columns: repeat(3, 1fr); gap: var(--space-sm); }
    .doctor-v2-photo img { 
        max-width: 100%;
        width: 100%;
        max-height: none;
    }
}

/* =====================================================
   TOP SERVICES - Modern Redesign
   ===================================================== */
.top-services {
    background: var(--white);
    position: relative;
    overflow: hidden;
}

.top-services::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 300px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    z-index: 0;
}

.top-services .container {
    position: relative;
    z-index: 1;
}

.top-services .section-title-v2 h2 {
    color: var(--white) !important;
}

.top-services .section-title-v2 h2 span {
    color: var(--white) !important;
    background: none !important;
    -webkit-background-clip: unset !important;
    -webkit-text-fill-color: var(--white) !important;
    background-clip: unset !important;
}

.services-slider-wrapper {
    position: relative;
    margin-top: var(--space-2xl);
}

.services-slider {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-xl);
}

@media (min-width: 1024px) {
    .services-slider {
        grid-template-columns: repeat(3, 1fr);
    }
}

.service-card {
    background: var(--white);
    border-radius: var(--radius-2xl);
    padding: var(--space-2xl);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    transition: all var(--transition-slow);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 60px rgba(0, 112, 142, 0.15);
}

.service-icon {
    width: 72px;
    height: 72px;
    background: rgba(0, 112, 142, 0.1);
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-lg);
    color: var(--primary);
    transition: all var(--transition);
}

.service-card:hover .service-icon {
    background: var(--primary-gradient);
    color: var(--white);
    transform: rotate(5deg) scale(1.05);
}

.service-icon svg {
    width: 36px;
    height: 36px;
}

.service-card h3 {
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: var(--space-md);
    line-height: 1.3;
}

.service-card p {
    color: var(--gray-600);
    font-size: 0.9375rem;
    line-height: 1.7;
    margin-bottom: var(--space-xl);
    flex: 1;
}

.service-link {
    color: var(--primary);
    font-weight: 600;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    transition: all var(--transition);
    margin-top: auto;
}

.service-link:hover {
    color: var(--primary-dark);
    gap: var(--space-md);
}

/* Navigation removed for grid */
.services-slider-nav {
    display: none;
}

@media (max-width: 768px) {
    .services-slider {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }
    
    .service-card {
        padding: var(--space-xl);
    }
    
    .service-icon {
        width: 64px;
        height: 64px;
    }
    
    .service-icon svg {
        width: 32px;
        height: 32px;
    }
}

/* =====================================================
   PARTNERS SECTION - Grid Style like Treatments
   ===================================================== */
/* =====================================================
   PARTNERS MARQUEE - Animated Logo Strip
   ===================================================== */
.partners-marquee-section {
    background: var(--white);
    overflow: hidden;
}

.partners-marquee {
    width: 100%;
    padding: var(--space-2xl) 0;
    position: relative;
}

.partners-marquee::before,
.partners-marquee::after {
    content: '';
    position: absolute;
    top: 0;
    width: 100px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.partners-marquee::before {
    left: 0;
    background: linear-gradient(90deg, var(--white) 0%, transparent 100%);
}

.partners-marquee::after {
    right: 0;
    background: linear-gradient(270deg, var(--white) 0%, transparent 100%);
}

.partners-track {
    display: flex;
    gap: var(--space-3xl);
    width: max-content;
    will-change: transform;
}

@keyframes marqueeInfinite {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-33.333%);
    }
}

.partner-logo-item {
    flex-shrink: 0;
    width: 180px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-md);
    margin: var(--space-md) 0;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--gray-100);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.partner-logo-item:hover {
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
    border-color: var(--primary-light);
    transform: translateY(-6px) scale(1.05);
}

.partner-logo-item img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: all 0.3s ease;
}

.partner-logo-item:hover img {
    filter: grayscale(0%);
    opacity: 1;
}

.partner-logo-item a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

/* Desktop/Laptop - только анимация, без скролла */
@media (min-width: 769px) {
    .partners-marquee {
        overflow: hidden;
        cursor: default;
        user-select: none;
    }
    
    .partners-track {
        animation: marqueeInfinite 60s linear infinite;
    }
    
    .partners-track:hover {
        animation-play-state: paused;
    }
    
    /* Запрет перетаскивания изображений */
    .partners-marquee img,
    .partner-logo-item img {
        -webkit-user-drag: none;
        -khtml-user-drag: none;
        -moz-user-drag: none;
        -o-user-drag: none;
        user-drag: none;
        pointer-events: none;
    }
    
    .partner-logo-item a {
        pointer-events: auto;
    }
}

/* Mobile - анимация + touch swipe */
@media (max-width: 768px) {
    .partners-marquee-section {
        overflow: hidden;
    }
    
    .partners-marquee {
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding: var(--space-xl) 0;
        margin: 0;
        touch-action: pan-x;
    }
    
    .partners-marquee::-webkit-scrollbar {
        display: none;
    }
    
    .partners-marquee::before,
    .partners-marquee::after {
        display: none !important;
    }
    
    .partners-track {
        gap: var(--space-lg);
        animation: marqueeInfinite 30s linear infinite;
        padding: 0 var(--space-lg);
        display: flex;
        width: max-content;
    }
    
    /* При касании останавливаем анимацию */
    .partners-marquee.touching .partners-track {
        animation-play-state: paused;
    }
    
    .partner-logo-item {
        width: 150px;
        height: 90px;
        flex-shrink: 0;
    }
    
    .partner-card {
        min-height: 160px;
        min-width: 260px;
    }
    
    .partner-logo {
        height: 120px;
    }
    
    .partner-card h3 {
        font-size: 0.875rem;
    }
}

/* OLD Partners Section (kept for compatibility) */
.partners-section {
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--white) 50%, var(--primary-light) 100%);
    position: relative;
    overflow: hidden;
}

.partners-section .hero-bg-shapes {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

/* Partners Marquee Animation */
.partners-marquee {
    overflow: hidden;
    position: relative;
    margin-top: var(--space-xl);
    padding: var(--space-md) 0;
}

.partners-marquee:first-of-type {
    margin-top: var(--space-3xl);
}

.partners-track {
    display: flex;
    gap: var(--space-xl);
    width: fit-content;
}

/* Анимация вправо */
.marquee-right .partners-track {
    animation: marqueeRight 40s linear infinite;
}

.marquee-right:hover .partners-track {
    animation-play-state: paused;
}

@keyframes marqueeRight {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* Анимация влево */
.marquee-left .partners-track {
    animation: marqueeLeft 40s linear infinite;
}

.marquee-left:hover .partners-track {
    animation-play-state: paused;
}

@keyframes marqueeLeft {
    0% {
        transform: translateX(-50%);
    }
    100% {
        transform: translateX(0);
    }
}

.partner-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 180px;
    min-width: 280px;
    flex-shrink: 0;
    transition: all var(--transition);
}

.partner-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 112, 142, 0.2);
    border-color: var(--primary);
}

.partner-logo {
    width: 100%;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-md);
}

.partner-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: grayscale(100%) opacity(0.6);
    transition: all var(--transition);
}

.partner-card:hover .partner-logo img {
    filter: grayscale(0%) opacity(1);
    transform: scale(1.05);
}

@media (max-width: 1024px) {
    .partner-card {
        min-height: 150px;
        min-width: 240px;
        padding: var(--space-lg);
    }
    
    .partner-logo {
        height: 100px;
    }
}

@media (max-width: 640px) {
    .partner-card {
        min-height: 120px;
        min-width: 200px;
        padding: var(--space-md);
    }
    
    .partner-logo {
        height: 80px;
    }
    
    .partners-track {
        gap: var(--space-md);
    }
}

/* =====================================================
   NEW DESIGN V2 - CTA (Dark with Brand Colors)
   ===================================================== */
.cta-v2 {
    background: linear-gradient(135deg, #0a2e3d 0%, #0d3847 50%, #0a3a40 100%);
    position: relative;
    overflow: hidden;
}

.cta-v2-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.cta-shape {
    position: absolute;
    border-radius: 50%;
    animation: ctaFloat 8s ease-in-out infinite;
}

.cta-shape-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0,112,142,0.25) 0%, transparent 60%);
    top: -250px;
    left: -150px;
    animation-delay: 0s;
}

.cta-shape-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(0,112,142,0.2) 0%, transparent 60%);
    bottom: -200px;
    right: -150px;
    animation-delay: -3s;
}

.cta-shape-3 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(0,112,142,0.15) 0%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: -5s;
}

@keyframes ctaFloat {
    0%, 100% {
        transform: scale(1) translate(0, 0);
    }
    50% {
        transform: scale(1.1) translate(10px, -10px);
    }
}

.cta-v2-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.cta-v2 h2 {
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    color: var(--white);
    margin-bottom: var(--space-md);
    font-weight: 800;
}

.cta-v2 h2 span {
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--accent-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.cta-v2 p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: var(--space-2xl);
    font-size: 1.125rem;
}

.cta-form-v2 .form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: var(--space-md);
}

.form-field {
    position: relative;
}

.form-field input {
    width: 100%;
    padding: 1rem 1.25rem 1rem 3rem;
    font-size: 1rem;
    border: 2px solid rgba(255,255,255,0.1);
    border-radius: var(--radius-lg);
    background: rgba(255,255,255,0.05);
    color: var(--white);
    transition: all var(--transition);
}

.form-field input::placeholder {
    color: var(--gray-500);
}

.form-field input:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(255,255,255,0.1);
}

.form-field svg {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-500);
    pointer-events: none;
}

.form-field input:focus + svg {
    color: var(--primary);
}

.btn-white {
    background: var(--white);
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
}

.btn-white:hover {
    background: var(--gray-100);
    color: var(--primary-dark);
}

.btn-accent {
    background: var(--primary-gradient);
    color: var(--white);
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    border: none;
    box-shadow: 0 4px 15px rgba(0, 112, 142, 0.4);
}

.btn-accent:hover {
    background: linear-gradient(135deg, #008099 0%, #00a080 100%);
    box-shadow: 0 6px 20px rgba(0, 112, 142, 0.5);
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .cta-form-v2 .form-grid {
        grid-template-columns: 1fr;
    }
    
    .cta-form-v2 .btn {
        width: 100%;
        justify-content: center;
    }
}

/* =====================================================
   APPOINTMENT MODAL - Премиальная форма записи
   ===================================================== */
.appointment-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(0.5rem, 2vw, 1.5rem);
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.appointment-modal.active {
    opacity: 1;
    visibility: visible;
}

.appointment-modal-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0, 112, 142, 0.75) 0%, rgba(0, 90, 114, 0.75) 100%);
    backdrop-filter: blur(40px) saturate(180%);
    -webkit-backdrop-filter: blur(40px) saturate(180%);
}

.appointment-modal-container {
    position: relative;
    width: 100%;
    max-width: clamp(20rem, 92vw, 45rem);
    height: auto;
    max-height: clamp(25rem, 92vh, 50rem);
    background: var(--white);
    border-radius: clamp(1rem, 2vw, 1.5rem);
    overflow: hidden;
    transform: translateY(1.875rem) scale(0.9);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 1.5625rem 3.75rem rgba(0, 112, 142, 0.4), 
                0 0.625rem 1.25rem rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
}

.appointment-modal.active .appointment-modal-container {
    transform: translateY(0) scale(1);
}

.appointment-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    color: var(--gray-600);
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.appointment-modal-close:hover {
    background: var(--primary);
    color: var(--white);
    transform: rotate(90deg) scale(1.1);
}

.appointment-modal-content {
    flex: 1;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.modal-header {
    flex-shrink: 0;
    padding: clamp(1rem, 3vw, 2rem);
    padding-bottom: clamp(1rem, 3vw, 2rem);
    background: var(--white);
}

.contact-form {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 0 clamp(1rem, 3vw, 2rem) clamp(1rem, 3vw, 2rem);
    background: var(--white);
    min-height: 0;
}

.form-step {
    width: 100%;
    max-width: 100%;
}

/* Премиальный скроллбар для формы */
.contact-form::-webkit-scrollbar {
    width: 6px;
}

.contact-form::-webkit-scrollbar-track {
    background: transparent;
}

.contact-form::-webkit-scrollbar-thumb {
    background: rgba(0, 112, 142, 0.3);
    border-radius: 10px;
}

.contact-form::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 112, 142, 0.5);
}

/* Премиальный скроллбар для формы */
.contact-form::-webkit-scrollbar {
    width: 0.5rem;
}

.contact-form::-webkit-scrollbar-track {
    background: transparent;
}

.contact-form::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 0.625rem;
    transition: all 0.3s ease;
}

.contact-form::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* Firefox scrollbar */
.contact-form {
    scrollbar-width: thin;
    scrollbar-color: var(--primary) transparent;
}

/* Header с градиентом - уже определен выше */

.modal-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.modal-header p {
    font-size: 0.875rem;
    color: var(--gray-600);
    margin: 0;
}

/* Minimal Progress Bar - NEW */
.minimal-progress-bar {
    margin-top: 1.5rem;
    position: relative;
}

.minimal-progress-track {
    width: 100%;
    height: 4px;
    background: rgba(0, 112, 142, 0.15);
    border-radius: 2px;
    overflow: hidden;
    position: relative;
}

.minimal-progress-fill {
    height: 100%;
    width: 0%;
    background: var(--primary-gradient);
    border-radius: 2px;
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.minimal-progress-dots {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: -8px;
    padding: 0 2px;
}

.minimal-progress-dots .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--white);
    border: 3px solid rgba(0, 112, 142, 0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    z-index: 1;
}

.minimal-progress-dots .dot.active {
    background: var(--primary);
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(0, 112, 142, 0.15);
    transform: scale(1.2);
}

.minimal-progress-dots .dot.completed {
    background: var(--primary);
    border-color: var(--primary);
}

/* Progress Bar - Премиальный (OLD - скрыт) */
.appointment-progress {
    display: none;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.progress-number {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 112, 142, 0.08);
    color: var(--gray-400);
    font-size: 0.9375rem;
    font-weight: 700;
    border-radius: 50%;
    border: 2px solid transparent;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.progress-step.active .progress-number {
    background: var(--primary-gradient);
    color: var(--white);
    border-color: transparent;
    box-shadow: 0 4px 16px rgba(0, 112, 142, 0.4);
    transform: scale(1.1);
}

.progress-step.completed .progress-number {
    background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
    color: var(--white);
    border-color: transparent;
    box-shadow: 0 2px 8px rgba(46, 204, 113, 0.3);
}

.progress-label {
    font-size: 0.75rem;
    color: var(--gray-500);
    font-weight: 500;
    transition: all 0.3s ease;
}

.progress-step.active .progress-label {
    color: var(--primary);
    font-weight: 700;
}

.progress-step.completed .progress-label {
    color: var(--gray-700);
    font-weight: 600;
}

.progress-line {
    width: 40px;
    height: 2px;
    background: var(--gray-200);
    border-radius: 1px;
    overflow: hidden;
    margin-bottom: 20px;
}

.progress-line span {
    display: block;
    height: 100%;
    width: 0;
    background: var(--primary-gradient);
    transition: width 0.3s ease;
}

/* CTA Section V3 */
.cta-section-v3 {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    padding: var(--space-4xl) 0;
    position: relative;
    overflow: hidden;
}

.cta-bg-shapes {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.cta-section-v3 .cta-shape {
    position: absolute;
    border-radius: 50%;
}

.cta-section-v3 .cta-shape-1 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    top: -150px;
    right: -100px;
}

.cta-section-v3 .cta-shape-2 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 70%);
    bottom: -100px;
    left: -50px;
}

.cta-content-v3 {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

.cta-section-v3 h2 {
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    font-weight: 800;
    color: var(--white);
    margin-bottom: var(--space-sm);
}

.cta-section-v3 p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.125rem;
    margin-bottom: var(--space-xl);
}

.cta-section-v3 .btn-white {
    background: var(--white);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    font-size: 1.125rem;
    padding: 1.25rem 2rem;
    font-weight: 700;
}

.btn-white:hover {
    background: var(--gray-100);
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .cta-section-v3 {
        padding: var(--space-2xl) 0;
    }
}

@media (max-width: 640px) {
    .cta-section-v3 .btn-white {
        width: 100%;
        justify-content: center;
    }
}

/* Form Steps */
.appointment-form {
    position: relative;
}

.form-step {
    display: none;
}

.form-step.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

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

.step-content {
    margin-bottom: var(--space-xl);
}

.step-content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: var(--space-xs);
    text-align: center;
}

.step-content p {
    font-size: 0.9375rem;
    color: var(--gray-600);
    text-align: center;
    margin-bottom: var(--space-xl);
}

.step-actions {
    display: flex;
    gap: var(--space-md);
    justify-content: center;
    padding-top: var(--space-lg);
    border-top: 1px solid var(--gray-100);
}

.step-actions .btn {
    flex: 1;
    min-width: 0;
    justify-content: center;
    padding: clamp(0.875rem, 2vw, 1rem) clamp(1.25rem, 3vw, 2rem);
    font-size: clamp(0.9375rem, 2vw, 1rem);
    font-weight: 600;
    border-radius: 3.125rem;
    box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.step-actions .btn-prev {
    background: var(--white);
    color: var(--gray-700);
    border: 2px solid var(--gray-200);
    max-width: 40%;
}

.step-actions .btn-prev:hover {
    background: var(--gray-50);
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

.step-actions .btn-next,
.step-actions .btn-submit {
    background: var(--primary-gradient);
    color: var(--white);
    border: 2px solid transparent;
}

.step-actions .btn-next:hover,
.step-actions .btn-submit:hover {
    box-shadow: 0 6px 20px rgba(0, 112, 142, 0.4);
    transform: translateY(-2px);
}

.step-actions .btn svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

/* Doctors Grid */
.doctors-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-md);
    width: 100%;
}

.doctor-card {
    cursor: pointer;
    width: 100%;
    max-width: 500px;
}

.doctor-card input {
    display: none;
}

.doctor-card-inner {
    position: relative;
    display: flex;
    align-items: center;
    gap: clamp(0.75rem, 2vw, 1rem);
    width: 100%;
    padding: clamp(0.875rem, 2vw, 1.25rem) clamp(3rem, 10%, 4rem) clamp(0.875rem, 2vw, 1.25rem) clamp(1rem, 3vw, 1.5rem);
    background: var(--white);
    border: 2px solid var(--gray-300);
    border-radius: clamp(0.875rem, 2vw, 1.25rem);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0.125rem 0.75rem rgba(0, 0, 0, 0.06);
}

.doctor-card:hover .doctor-card-inner {
    background: var(--white);
    border-color: var(--primary);
    box-shadow: 0 8px 16px rgba(0, 112, 142, 0.15);
    transform: translateY(-2px);
}

.doctor-card input:checked + .doctor-card-inner {
    border-color: var(--primary);
    background: var(--white);
    box-shadow: 0 8px 20px rgba(0, 112, 142, 0.25);
    transform: translateY(-2px);
}

.doctor-photo {
    width: clamp(3.5rem, 8vw, 4rem);
    height: clamp(3.5rem, 8vw, 4rem);
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    background: var(--white);
    border: 0.1875rem solid var(--white);
    box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.1);
}

.doctor-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.doctor-photo-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--gray-100) 0%, var(--gray-200) 100%);
    color: var(--gray-400);
}

.doctor-photo-placeholder.any-doctor {
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--accent-light) 100%);
    color: var(--primary);
}

.doctor-info {
    flex: 1;
    min-width: 0;
}

.doctor-info h4 {
    font-size: clamp(0.9375rem, 2.2vw, 1.125rem);
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 0.25rem;
    line-height: 1.3;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.doctor-info span {
    font-size: clamp(0.8125rem, 2vw, 0.9375rem);
    color: var(--gray-600);
    display: block;
    line-height: 1.4;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.doctor-check {
    position: absolute;
    top: 50%;
    right: 1.25rem;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-gradient);
    color: var(--white);
    border-radius: 50%;
    opacity: 0;
    transform: translateY(-50%) scale(0.5);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(0, 112, 142, 0.3);
}

.doctor-card input:checked + .doctor-card-inner .doctor-check {
    opacity: 1;
    transform: translateY(-50%) scale(1);
}

/* Services Grid */
.services-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    width: 100%;
}

.services-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    width: 100%;
}

.service-option {
    cursor: pointer;
    width: 100%;
}

.service-option input {
    display: none;
}

.service-option-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-xs);
    width: 100%;
    padding: 0.625rem 1rem;
    background: var(--white);
    border: 2px solid var(--gray-200);
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--gray-700);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.service-option-inner svg {
    opacity: 0;
    transform: scale(0);
    transition: all var(--transition);
    color: var(--white);
}

.service-option:hover .service-option-inner {
    border-color: var(--primary);
    background: var(--white);
    box-shadow: 0 4px 12px rgba(0, 112, 142, 0.15);
    transform: translateY(-2px);
}

.service-option input:checked + .service-option-inner {
    background: var(--primary-gradient);
    border-color: transparent;
    color: var(--white);
    box-shadow: 0 6px 16px rgba(0, 112, 142, 0.3);
    transform: translateY(-2px);
}

.service-option input:checked + .service-option-inner svg {
    opacity: 1;
    transform: scale(1);
}

/* Contact Fields */
.contact-fields {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    width: 100%;
}

.appointment-form .form-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.appointment-form .form-field label {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--gray-700);
}

.appointment-form .form-field label .optional {
    font-weight: 400;
    color: var(--gray-400);
}

.field-input {
    position: relative;
}

.field-input input,
.field-input textarea,
.appointment-form textarea {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    font-size: 1rem;
    border: 2px solid var(--gray-200);
    border-radius: 12px;
    background: var(--white);
    color: var(--gray-900);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.appointment-form textarea {
    padding-left: 1rem;
    resize: vertical;
    min-height: 100px;
}

.field-input input::placeholder,
.field-input textarea::placeholder,
.appointment-form textarea::placeholder {
    color: var(--gray-400);
}

.field-input input:focus,
.field-input textarea:focus,
.appointment-form textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(0, 112, 142, 0.1), 0 4px 12px rgba(0, 112, 142, 0.15);
    transform: translateY(-1px);
}

.field-input svg {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-400);
    pointer-events: none;
    transition: color var(--transition);
}

.field-input input:focus ~ svg {
    color: var(--primary);
}

/* Checkbox */
.appointment-form .form-checkbox {
    margin-top: var(--space-md);
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 0.75rem;
    color: var(--gray-700);
    line-height: 1.4;
}

.checkbox-label input {
    display: none;
}

.checkmark {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    border: 2px solid var(--gray-300);
    border-radius: 3px;
    background: var(--white);
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.checkbox-label:hover .checkmark {
    border-color: var(--primary);
}

.checkbox-label input:checked ~ .checkmark {
    background: var(--primary-gradient);
    border-color: transparent;
}

.checkmark::after {
    content: '';
    position: absolute;
    left: 4px;
    top: 1px;
    width: 4px;
    height: 8px;
    border: solid var(--white);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg) scale(0);
    transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.checkbox-label input:checked ~ .checkmark::after {
    transform: rotate(45deg) scale(1);
}

.checkbox-label-text {
    flex: 1;
}

.checkbox-label-text .required {
    color: #e74c3c;
    margin-left: 2px;
}

.checkbox-label-text a {
    color: var(--primary);
    text-decoration: underline;
}

.checkbox-label-text a:hover {
    color: var(--primary-dark);
}

/* Submit Button */
.btn-submit {
    flex: 1;
}

.btn-submit .btn-loader {
    display: none;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: var(--white);
    border-radius: 50%;
}

.btn-submit.loading .btn-text,
.btn-submit.loading .btn-icon {
    display: none;
}

.btn-submit.loading .btn-loader {
    display: block;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Success Screen */
.form-success-screen {
    display: none;
    text-align: center;
    padding: var(--space-2xl) 0;
}

.success-content {
    max-width: 400px;
    margin: 0 auto;
}

.success-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto var(--space-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--accent-light) 100%);
    color: var(--primary);
    border-radius: 50%;
    animation: successPop 0.4s ease;
}

@keyframes successPop {
    0% { transform: scale(0); opacity: 0; }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); opacity: 1; }
}

.form-success-screen h3 {
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: var(--space-xs);
}

.form-success-screen p {
    font-size: 0.9375rem;
    color: var(--gray-600);
    margin-bottom: var(--space-lg);
    line-height: 1.6;
}

.success-note {
    display: block;
    font-size: 0.8125rem;
    color: var(--gray-500);
}

.success-note a {
    color: var(--primary);
    font-weight: 600;
}

.success-note a:hover {
    text-decoration: underline;
}

/* Responsive - Tablet */
@media (max-width: 768px) {
    .appointment-modal {
        padding: 0.75rem;
    }
    
    .appointment-modal-container {
        max-width: 100%;
        max-height: 95vh;
    }
    
    .modal-header {
        padding: 1.5rem;
        padding-bottom: 1.5rem;
    }
    
    .contact-form {
        padding: 0 1.5rem 1.5rem;
    }
}

/* Responsive - Mobile (Full Screen) */
@media (max-width: 640px) {
    .appointment-modal {
        padding: 0;
        align-items: stretch;
    }
    
    .appointment-modal-container {
        width: 100%;
        max-width: 100%;
        height: 100%;
        max-height: 100vh;
        border-radius: 0;
    }
    
    .appointment-modal-close {
        top: 1rem;
        right: 1rem;
        width: 2.5rem;
        height: 2.5rem;
        background: rgba(255, 255, 255, 0.95);
        z-index: 20;
    }
    
    .modal-header {
        padding: 1.25rem 1rem;
        padding-bottom: 1.25rem;
    }
    
    .contact-form {
        padding: 0 1rem 1.5rem;
    }
    
    .modal-header h2 {
        font-size: 1.25rem;
    }
    
    .appointment-progress {
        margin-bottom: 1rem;
        gap: 0.375rem;
    }
    
    .progress-number {
        width: 36px;
        height: 36px;
        font-size: 0.875rem;
    }
    
    .progress-label {
        font-size: 0.6875rem;
    }
    
    .progress-line {
        width: 24px;
    }
    
    .step-content h3 {
        font-size: 1.25rem;
    }
    
    .doctors-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .doctor-card-inner {
        padding: 0.875rem 2.75rem 0.875rem 1rem;
    }
    
    .doctor-photo {
        width: clamp(3rem, 12vw, 3.5rem);
        height: clamp(3rem, 12vw, 3.5rem);
    }
    
    .doctor-info h4 {
        font-size: clamp(0.875rem, 3.5vw, 1rem);
    }
    
    .doctor-info span {
        font-size: clamp(0.75rem, 3vw, 0.875rem);
    }
    
    .doctor-check {
        width: 1.375rem;
        height: 1.375rem;
        right: 0.875rem;
    }
    
    .services-grid {
        gap: 0.5rem;
    }
    
    .service-option-inner {
        padding: 0.875rem 1.125rem;
        font-size: 0.9375rem;
    }
    
    .field-input input,
    .field-input textarea,
    .appointment-form textarea {
        padding: 0.875rem 0.875rem 0.875rem 2.75rem;
        font-size: 0.9375rem;
    }
    
    .step-actions {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .step-actions .btn {
        width: 100%;
        padding: 0.875rem 1.5rem;
    }
    
    .review-section {
        padding: 1.25rem;
    }
    
    .review-item {
        flex-direction: column;
        gap: 0.25rem;
        padding: 0.75rem 0;
    }
    
    .review-value {
        text-align: left;
        max-width: 100%;
    }
}

/* =====================================================
   MODAL #contact-modal - Uses .appointment-modal-content
   ===================================================== */
#contact-modal {
    position: fixed;
    inset: 0;
    background: rgba(10, 15, 26, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-lg);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

#contact-modal.active {
    opacity: 1;
    visibility: visible;
}

/* Modal close is already defined above in .appointment-modal-content section */
    align-items: center;
    justify-content: center;
    background: var(--gray-100);
    border: none;
    border-radius: var(--radius-full);
    cursor: pointer;
    color: var(--gray-600);
    transition: all var(--transition);
    z-index: 10;
}

.modal-close:hover {
    background: var(--primary);
    color: var(--white);
    transform: rotate(90deg);
}

.modal-close svg {
    width: 20px;
    height: 20px;
}

.modal-header {
    text-align: center;
    margin-bottom: var(--space-sm);
}

.modal-header h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: var(--space-sm);
}

.modal-header p {
    color: var(--gray-600);
    margin-bottom: 0;
}

.modal-form .form-group,
.multi-step-form .form-group {
    margin-bottom: 1rem;
}

.modal-form label,
.multi-step-form label {
    display: block;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: var(--space-sm);
    font-size: 0.875rem;
}

.modal-form input,
.modal-form textarea,
.modal-form select,
.multi-step-form input:not([type="radio"]):not([type="checkbox"]),
.multi-step-form textarea,
.multi-step-form select {
    width: 100%;
    padding: 0.875rem 1.125rem;
    font-size: 0.9375rem;
    border: 2px solid var(--gray-200);
    border-radius: 12px;
    background: linear-gradient(135deg, var(--white) 0%, var(--gray-50) 100%);
    color: var(--gray-900);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: var(--font-primary);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.modal-form input:focus,
.modal-form textarea:focus,
.modal-form select:focus,
.multi-step-form input:focus:not([type="radio"]):not([type="checkbox"]),
.multi-step-form textarea:focus,
.multi-step-form select:focus {
    outline: none;
    border-color: var(--primary);
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(0, 112, 142, 0.1), 0 4px 12px rgba(0, 112, 142, 0.15);
    transform: translateY(-1px);
}

.modal-form input::placeholder,
.modal-form textarea::placeholder,
.multi-step-form input::placeholder,
.multi-step-form textarea::placeholder {
    color: var(--gray-400);
}

.modal-form input:focus,
.modal-form textarea:focus,
.modal-form select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px var(--primary-light);
}

.modal-form textarea {
    min-height: 120px;
    resize: vertical;
}

.modal-form .btn {
    width: 100%;
    justify-content: center;
    padding: 1rem;
    font-size: 1rem;
    margin-top: var(--space-md);
}

.modal-form .form-message {
    margin-top: var(--space-md);
    padding: var(--space-md);
    border-radius: var(--radius);
    text-align: center;
    font-weight: 500;
}

/* Checkbox Style */
.form-checkbox {
    margin: var(--space-lg) 0;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
    cursor: pointer;
    font-size: 0.875rem;
    color: var(--gray-600);
    line-height: 1.5;
}

.checkbox-label input[type="checkbox"] {
    display: none;
}

.checkmark {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    border: 2px solid var(--gray-300);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
    margin-top: 2px;
}

.checkbox-label input:checked + .checkmark {
    background: var(--primary-gradient);
    border-color: transparent;
}

.checkbox-label input:checked + .checkmark::after {
    content: '';
    width: 6px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.checkbox-label a {
    color: var(--primary);
    text-decoration: underline;
}

.checkbox-label a:hover {
    color: var(--primary-dark);
}

/* CTA Checkbox - White on dark */
.cta-checkbox {
    margin-top: var(--space-lg);
    text-align: center;
    justify-content: center;
}

.cta-checkbox .checkbox-label {
    color: var(--gray-400);
    justify-content: center;
}

.cta-checkbox .checkmark {
    border-color: var(--gray-500);
}

.cta-checkbox .checkbox-label a {
    color: var(--white);
}

.cta-checkbox .checkbox-label a:hover {
    color: var(--accent-light);
}

/* Responsive Modal */
@media (max-width: 768px) {
    #contact-modal {
        padding: 0;
    }
    
    .appointment-modal-content {
        max-width: 100%;
        max-height: 100vh;
        border-radius: var(--radius-lg);
        padding: var(--space-xl) var(--space-md);
    }
    
    .modal-close {
        top: var(--space-md);
        right: var(--space-md);
    }
}

@media (max-width: 480px) {
    .modal-header h2 {
        font-size: 1.5rem;
    }
    
    .modal-form input,
    .modal-form textarea,
    .modal-form select {
        font-size: 0.9375rem;
    }
}

/* =====================================================
   ADVANTAGES HERO - Accordion in Hero Style (2 columns)
   ===================================================== */
.advantages-hero {
    background: linear-gradient(135deg, #f8fcfd 0%, #f0f9fb 50%, #e8f5f8 100%);
    position: relative;
    overflow: hidden;
}

.advantages-hero .hero-bg-shapes {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.advantages-hero .shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.6;
}

.advantages-hero .shape-1 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(0, 112, 142, 0.08) 0%, transparent 70%);
    top: -100px;
    right: -100px;
    animation: float 20s ease-in-out infinite;
}

.advantages-hero .shape-2 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(0, 112, 142, 0.06) 0%, transparent 70%);
    bottom: -80px;
    left: -80px;
    animation: float 15s ease-in-out infinite reverse;
}

.advantages-hero .shape-3 {
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(0, 112, 142, 0.05) 0%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: pulse 10s ease-in-out infinite;
}

.section-subtitle {
    text-align: center;
    color: var(--gray-600);
    font-size: 1.125rem;
    margin-top: var(--space-sm);
    margin-bottom: 0;
}

.advantages-accordion-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
    margin-top: var(--space-3xl);
    position: relative;
    z-index: 1;
    align-items: start;
}

@media (max-width: 1024px) {
    .advantages-accordion-grid {
        grid-template-columns: 1fr;
    }
}

.advantage-accordion-item {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-xl);
    border: 1px solid rgba(255, 255, 255, 0.8);
    overflow: hidden;
    transition: all var(--transition);
    box-shadow: 0 4px 20px rgba(0, 112, 142, 0.06);
}

.advantage-accordion-item:hover {
    box-shadow: 0 8px 30px rgba(0, 112, 142, 0.12);
    transform: translateY(-4px);
}

.advantage-accordion-item.active {
    border-color: var(--primary);
    box-shadow: 0 12px 40px rgba(0, 112, 142, 0.18);
}

.advantage-accordion-header {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-lg) var(--space-xl);
    cursor: pointer;
    user-select: none;
    transition: all var(--transition);
}

.advantage-accordion-header:hover {
    background: rgba(0, 112, 142, 0.02);
}

.advantage-accordion-icon {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    transition: all var(--transition);
}

.advantage-accordion-item.active .advantage-accordion-icon {
    transform: scale(1.1);
}

.advantage-accordion-icon img {
    width: 54px;
    height: 54px;
    object-fit: contain;
    transition: all var(--transition);
}

.advantage-accordion-item.active .advantage-accordion-icon img {
    transform: scale(1.1);
}

.advantage-accordion-header h3 {
    flex: 1;
    margin: 0;
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--gray-900);
    line-height: 1.4;
    transition: color var(--transition);
}

.advantage-accordion-item.active .advantage-accordion-header h3 {
    color: var(--primary-dark);
}

.advantage-accordion-toggle {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 112, 142, 0.1);
    border-radius: var(--radius-full);
    color: var(--primary);
    transition: all var(--transition);
}

.advantage-accordion-item.active .advantage-accordion-toggle {
    background: var(--primary);
    color: var(--white);
}

.advantage-accordion-toggle svg {
    transition: transform var(--transition);
}

.advantage-accordion-item.active .advantage-accordion-toggle svg {
    transform: rotate(180deg);
}

.advantage-accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.advantage-accordion-item.active .advantage-accordion-content {
    max-height: 500px;
}

.advantage-accordion-content p {
    padding: 0 var(--space-xl) var(--space-xl);
    margin: 0;
    color: var(--gray-700);
    font-size: 0.9375rem;
    line-height: 1.7;
}

@media (max-width: 768px) {
    .advantage-accordion-header {
        padding: var(--space-md) var(--space-lg);
        gap: var(--space-sm);
    }
    
    .advantage-accordion-icon {
        width: 70px;
        height: 70px;
    }
    
    .advantage-accordion-icon img {
        width: 45px;
        height: 45px;
    }
    
    .advantage-accordion-header h3 {
        font-size: 1rem;
    }
    
    .advantage-accordion-content p {
        padding: 0 var(--space-lg) var(--space-lg);
        font-size: 0.875rem;
    }
}

@media (max-width: 768px) {
    .accordion-header {
        padding: var(--space-md) var(--space-lg);
        gap: var(--space-sm);
    }
    
    .accordion-icon {
        width: 48px;
        height: 48px;
    }
    
    .accordion-icon img {
        width: 32px;
        height: 32px;
    }
    
    .accordion-header h3 {
        font-size: 1rem;
    }
    
    .accordion-content p {
        padding: var(--space-sm) var(--space-lg) var(--space-lg);
    }
}

@media (max-width: 480px) {
    .accordion-icon {
        width: 40px;
        height: 40px;
    }
    
    .accordion-icon img {
        width: 28px;
        height: 28px;
    }
    
    .accordion-header {
        gap: var(--space-sm);
    }
    
    .accordion-content p {
        padding: var(--space-sm) var(--space-md) var(--space-md);
    }
}

/* =====================================================
   INCLUSIVE IMAGE - Full Height
   ===================================================== */
.inclusive-v2-wrapper {
    display: grid;
    grid-template-columns: 45% 1fr;
    gap: var(--space-3xl);
    align-items: stretch;
}

.inclusive-v2-image {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
}

.inclusive-v2-image img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (max-width: 1024px) {
    .inclusive-v2-wrapper {
        grid-template-columns: 1fr;
    }
    
    .inclusive-v2-image {
        min-height: 400px;
    }
}

/* =====================================================
   MEDIA SECTION
   ===================================================== */
.media-section {
    background: var(--gray-50);
}

/* Filters */
.media-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: var(--space-lg);
    justify-content: center;
}

.media-filter {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-full, 50px);
    background: var(--white);
    color: var(--gray-600);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.25s ease;
    font-family: var(--font-primary);
}

.media-filter:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.media-filter.active {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

.media-filter__logo {
    height: 20px;
    width: auto;
    max-width: 80px;
    object-fit: contain;
    display: block;
}

.media-filter.active .media-filter__logo {
    filter: brightness(0) invert(1);
}

/* Grid */
.media-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-md);
}

/* Card */
.media-card {
    position: relative;
    display: flex;
    flex-direction: column;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--white);
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--gray-200);
}

.media-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 112, 142, 0.12);
    border-color: var(--primary);
}

.media-card--vertical {
    grid-row: span 2;
}

.media-card.media-hidden {
    display: none;
}

/* Thumbnail */
.media-card__thumb {
    position: relative;
    width: 100%;
    overflow: hidden;
    flex: 1 1 auto;
    min-height: 0;
}

.media-card--horizontal .media-card__thumb { aspect-ratio: 16/9; flex: none; }
.media-card--square .media-card__thumb     { aspect-ratio: 1/1; flex: none; }
.media-card--vertical .media-card__thumb   { flex: 1 1 auto; }

.media-card__thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.media-card:hover .media-card__thumb img {
    transform: scale(1.05);
}

/* Overlay */
.media-card__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,0.45) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.media-card:hover .media-card__overlay {
    opacity: 1;
}

/* Play button */
.media-card__play {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    border-radius: 50%;
    color: #fff;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(0, 112, 142, 0.4);
}

.media-card:hover .media-card__play {
    transform: scale(1.1);
}

.media-card__play svg {
    margin-left: 2px;
}

/* Channel logo in card */
.media-card__logo {
    width: 28px;
    height: 28px;
    object-fit: contain;
    border-radius: 6px;
    flex-shrink: 0;
}

/* Info */
.media-card__info {
    padding: 0.75rem 1rem;
    display: flex;
    align-items: flex-start;
    gap: 0.625rem;
}

.media-card__text {
    flex: 1;
    min-width: 0;
}

.media-card__title {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--gray-900);
    margin: 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.media-card__caption {
    font-size: 0.8125rem;
    color: var(--gray-500);
    margin: 0;
    line-height: 1.35;
    margin-top: 0.15rem;
}

/* Responsive */
@media (max-width: 1024px) {
    .media-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .media-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-sm);
    }

    .media-card--vertical {
        grid-row: span 2;
    }

    .media-card__play {
        width: 40px;
        height: 40px;
    }

    .media-card__play svg {
        width: 16px;
        height: 16px;
    }

    .media-card__info {
        padding: 0.625rem 0.75rem;
    }

    .media-card__logo {
        width: 24px;
        height: 24px;
    }
}

@media (max-width: 480px) {
    .media-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-xs);
    }

    .media-filters {
        gap: 6px;
    }

    .media-filter {
        padding: 6px 14px;
        font-size: 0.8125rem;
    }

    .media-filter__logo {
        height: 16px;
    }

    .media-card__info {
        padding: 0.5rem 0.625rem;
        gap: 0.4rem;
    }

    .media-card__logo {
        width: 22px;
        height: 22px;
    }

    .media-card__title {
        font-size: 0.8125rem;
    }

    .media-card__play {
        width: 36px;
        height: 36px;
    }

    .media-card__play svg {
        width: 14px;
        height: 14px;
    }
}

/* =====================================================
   REVIEWS SECTION - Platform Tabs
   ===================================================== */
.reviews-section {
    background: var(--white);
}

.reviews-tabs {
    display: flex;
    gap: var(--space-sm);
    justify-content: center;
    margin-bottom: var(--space-xl);
    flex-wrap: wrap;
}

.review-tab {
    padding: var(--space-sm) var(--space-md);
    background: var(--gray-100);
    border: none;
    border-radius: var(--radius-full);
    font-weight: 500;
    font-size: 0.8125rem;
    color: var(--gray-600);
    cursor: pointer;
    transition: all var(--transition);
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

.review-tab:hover {
    background: var(--gray-200);
    color: var(--gray-800);
}

.review-tab.active {
    background: var(--primary);
    color: var(--white);
}

.review-tab-logo {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.review-tab-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.review-tab span {
    display: inline-block;
}

/* Show All Button */
.reviews-show-all-wrapper {
    display: flex;
    justify-content: center;
    margin-top: var(--space-2xl);
}

.reviews-show-all-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-xl);
    background: var(--white);
    border: 2px solid var(--primary);
    border-radius: var(--radius-xl);
    color: var(--primary);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.reviews-show-all-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--primary-gradient);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
}

.reviews-show-all-btn span,
.reviews-show-all-btn svg {
    position: relative;
    z-index: 1;
}

.reviews-show-all-btn .btn-text-hide {
    display: none;
}

.reviews-show-all-btn.expanded .btn-text-show {
    display: none;
}

.reviews-show-all-btn.expanded .btn-text-hide {
    display: inline;
}

.reviews-show-all-btn svg {
    transition: transform 0.3s ease;
}

.reviews-show-all-btn.expanded svg {
    transform: rotate(180deg);
}

.reviews-show-all-btn:hover {
    background: var(--primary-gradient);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 112, 142, 0.3);
}

.reviews-show-all-btn:hover::before {
    opacity: 1;
}

/* Hidden Review Cards */
.reviews-slider .review-card.review-card-hidden {
    display: none !important;
}

.reviews-slider .review-card.review-card-hidden.show {
    display: flex !important;
    animation: fadeInUp 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

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

.reviews-content {
    position: relative;
    overflow: visible;
}

.reviews-content .review-platform {
    display: none;
    visibility: hidden;
    opacity: 0;
    height: 0;
    overflow: visible;
    transition: opacity 0.3s ease;
}

.reviews-content .review-platform.active {
    display: block;
    visibility: visible;
    opacity: 1;
    height: auto;
    overflow: visible;
}

.reviews-slider-wrapper {
    position: relative;
    overflow: visible;
    padding: var(--space-md) 0;
}

.reviews-slider {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.review-card {
    background: var(--white);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    min-height: 280px;
    display: flex;
    flex-direction: column;
    position: relative;
}

.review-card::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: var(--radius-xl);
    padding: 2px;
    background: var(--primary-gradient);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.review-card:hover {
    border-color: var(--primary);
    box-shadow: 0 12px 32px rgba(0, 112, 142, 0.15);
    transform: translateY(-6px);
}

.review-card:hover::before {
    opacity: 1;
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: var(--space-md);
}

.review-platform-badge {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

.review-platform-logo {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gray-50);
    border-radius: var(--radius);
    padding: 0.25rem;
    border: 1px solid var(--gray-100);
    transition: all 0.2s ease;
}

.review-platform-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

a.review-platform-logo {
    text-decoration: none;
    cursor: pointer;
}

a.review-platform-logo:hover {
    border-color: var(--primary);
    background: var(--primary-light);
    transform: scale(1.05);
}

.review-stars {
    display: flex;
    gap: 2px;
}

.review-star {
    color: #FFA500;
    font-size: 1.125rem;
}

.review-meta {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin-bottom: var(--space-md);
    color: var(--gray-500);
    font-size: 0.875rem;
}

.review-author {
    font-weight: 600;
    color: var(--gray-700);
}

.review-text {
    flex: 1;
    color: var(--gray-700);
    line-height: 1.6;
    margin: 0;
}

/* Responsive Reviews */
@media (max-width: 1024px) {
    .reviews-slider {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-lg);
    }
}

@media (max-width: 768px) {
    .reviews-dots {
        padding: 0.25rem;
        gap: 0.25rem;
    }
    
    .reviews-dot {
        min-width: 40px;
        height: 32px;
        font-size: 0.8125rem;
    }
}

@media (max-width: 640px) {
    .reviews-slider {
        grid-template-columns: 1fr;
    }
    
    .reviews-tabs {
        gap: var(--space-sm);
    }
    
    .reviews-dots {
        padding: 0.25rem;
        gap: 0.25rem;
        width: 90%;
    }
    
    .reviews-dot {
        min-width: 36px;
        height: 28px;
        font-size: 0.75rem;
        padding: 0 0.375rem;
    }
    
    .review-tab {
        padding: var(--space-sm) var(--space-md);
        font-size: 0.875rem;
    }
}

/* =====================================================
   LICENSES & DIPLOMAS GALLERY
   ===================================================== */
.licenses-section {
    background: var(--gray-50);
}

.licenses-tabs {
    display: flex;
    gap: var(--space-md);
    justify-content: center;
    margin-bottom: var(--space-3xl);
    flex-wrap: wrap;
}

.license-tab {
    padding: var(--space-md) var(--space-xl);
    background: var(--white);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-lg);
    font-weight: 600;
    color: var(--gray-600);
    cursor: pointer;
    transition: all var(--transition);
}

.license-tab:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
}

.license-tab.active {
    background: var(--primary-gradient);
    color: var(--white);
    border-color: transparent;
    box-shadow: var(--shadow-glow);
}

.licenses-content .license-platform {
    display: none;
    visibility: hidden;
    opacity: 0;
    height: 0;
    overflow: hidden;
}

.licenses-content .license-platform.active {
    display: block;
    visibility: visible;
    opacity: 1;
    height: auto;
    overflow: visible;
}

.no-items-message {
    text-align: center;
    padding: var(--space-4xl) var(--space-lg);
    color: var(--gray-500);
}

.no-items-message p {
    font-size: 1.125rem;
    margin: 0;
}

.license-grid {
    display: grid;
    gap: var(--space-lg);
}

.license-row {
    display: grid;
    gap: var(--space-lg);
    grid-template-columns: repeat(3, 1fr);
}

.license-row.row-1 {
    grid-template-columns: 30% 35% 1fr;
}

.license-row.row-2 {
    grid-template-columns: 38% 25% 1fr;
}

.license-row.row-3 {
    grid-template-columns: 28% 42% 1fr;
}

.license-item {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    background: var(--white);
    box-shadow: var(--shadow-md);
    cursor: pointer;
    transition: all var(--transition);
}

.license-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.license-item img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    transition: transform var(--transition);
}

.license-item:hover img {
    transform: scale(1.05);
}

.license-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 50%);
    display: flex;
    align-items: flex-end;
    padding: var(--space-lg);
    opacity: 0;
    transition: opacity var(--transition);
}

.license-item:hover .license-overlay {
    opacity: 1;
}

.license-zoom {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    width: 50px;
    height: 50px;
    background: var(--white);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    opacity: 0;
    transition: all var(--transition);
}

.license-item:hover .license-zoom {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.license-title {
    color: var(--white);
    font-weight: 600;
    font-size: 0.875rem;
}

.license-item-hidden {
    display: none;
}

.license-platform.licenses-expanded .license-item-hidden {
    display: block;
}

.licenses-show-all-wrapper {
    text-align: center;
    margin-top: var(--space-xl);
}

.licenses-show-all-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    background: var(--white);
    border: 2px solid var(--primary);
    border-radius: var(--radius-full);
    color: var(--primary);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
}

.licenses-show-all-btn:hover {
    background: var(--primary);
    color: var(--white);
}

.licenses-show-all-btn .btn-text-hide {
    display: none;
}

.licenses-show-all-btn svg {
    transition: transform 0.3s ease;
}

.license-platform.licenses-expanded .licenses-show-all-btn .btn-text-show {
    display: none;
}

.license-platform.licenses-expanded .licenses-show-all-btn .btn-text-hide {
    display: inline;
}

.license-platform.licenses-expanded .licenses-show-all-btn svg {
    transform: rotate(180deg);
}

/* Lightbox */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(0, 0, 0, 0.95);
    display: none;
    align-items: center;
    justify-content: center;
    padding: var(--space-xl);
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: var(--radius-lg);
}

.lightbox-close {
    position: absolute;
    top: -50px;
    right: 0;
    width: 40px;
    height: 40px;
    background: var(--white);
    border: none;
    border-radius: var(--radius-full);
    color: var(--gray-800);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
}

.lightbox-close:hover {
    background: var(--primary);
    color: var(--white);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: var(--white);
    border: none;
    border-radius: var(--radius-full);
    color: var(--gray-800);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
}

.lightbox-nav:hover {
    background: var(--primary);
    color: var(--white);
}

.lightbox-prev { left: var(--space-xl); }
.lightbox-next { right: var(--space-xl); }

.lightbox-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    text-align: center;
    color: var(--white);
    padding: var(--space-lg) var(--space-xl);
    font-size: 0.9375rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.6) 50%, transparent 100%);
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

@media (max-width: 1024px) {
    .license-row,
    .license-row.row-1,
    .license-row.row-2,
    .license-row.row-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .license-row,
    .license-row.row-1,
    .license-row.row-2,
    .license-row.row-3 {
        grid-template-columns: 1fr;
    }
    
    .licenses-tabs {
        gap: var(--space-xs);
    }
    
    .license-tab {
        padding: var(--space-md) var(--space-lg);
        font-size: 0.9375rem;
    }
}

/* =====================================================
   CONTACTS PAGE
   ===================================================== */
.contacts-section {
    background: var(--gray-50);
}

.contacts-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
    align-items: start;
}

.contacts-info {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.contact-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    display: flex;
    gap: var(--space-lg);
    box-shadow: var(--shadow);
    transition: all var(--transition);
}

.contact-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.contact-card-icon {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-light);
    border-radius: var(--radius-lg);
    color: var(--primary);
}

.contact-card-content h3 {
    font-size: 1.125rem;
    margin-bottom: var(--space-sm);
}

.contact-phone {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    display: block;
}

.contact-address {
    font-size: 1.0625rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: var(--space-sm);
}

.contact-metro {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    color: var(--gray-600);
    margin-bottom: var(--space-xs);
}

.contact-metro svg {
    color: #e74c3c;
}

.contact-hours {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    color: var(--gray-600);
    margin-bottom: var(--space-xs);
}

.contact-hours svg {
    color: var(--primary);
}

.contact-note {
    font-size: 0.875rem;
    color: var(--gray-500);
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    margin-bottom: var(--space-md);
}

.contact-card .btn {
    margin-top: var(--space-sm);
}

/* Contact Form Card */
.contacts-form-card {
    background: var(--white);
    border-radius: var(--radius-2xl);
    padding: var(--space-2xl);
    box-shadow: var(--shadow-lg);
}

.contacts-form-card h2 {
    font-size: 1.5rem;
    margin-bottom: var(--space-sm);
}

.contacts-form-card > p {
    color: var(--gray-600);
    margin-bottom: var(--space-xl);
}

.contacts-form .form-group {
    margin-bottom: var(--space-md);
}

.contacts-form label {
    display: block;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: var(--space-xs);
    font-size: 0.875rem;
}

.contacts-form input,
.contacts-form select,
.contacts-form textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius);
    font-size: 1rem;
    transition: all var(--transition);
    font-family: var(--font-primary);
}

.contacts-form input:focus,
.contacts-form select:focus,
.contacts-form textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px var(--primary-light);
}

.contacts-form .btn {
    width: 100%;
    margin-top: var(--space-md);
}

/* Map Section */
.map-section {
    position: relative;
}

.map-container {
    width: 100%;
    height: 500px;
    background: var(--gray-100);
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

@media (max-width: 1024px) {
    .contacts-grid {
        grid-template-columns: 1fr;
        gap: var(--space-2xl);
    }
}

@media (max-width: 640px) {
    .contact-card {
        flex-direction: column;
        text-align: center;
    }
    
    .contact-card-icon {
        margin: 0 auto;
    }
    
    .contact-metro,
    .contact-hours,
    .contact-note {
        justify-content: center;
    }
    
    .contact-card .btn {
        width: 100%;
    }
}

/* =====================================================
   SINGLE POST STYLES - SEO OPTIMIZED
   ===================================================== */

/* Post Hero Section */
.post-hero {
    position: relative;
    padding: calc(92px + var(--space-2xl)) 0 var(--space-2xl);
    padding-top: calc(92px + var(--space-3xl));
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--white) 50%, var(--primary-light) 100%);
    color: var(--gray-900);
    overflow: hidden;
}

.post-hero-image {
    display: none;
}

.post-hero-image .post-featured-img {
    display: none;
}

.post-hero-overlay {
    display: none;
}

.post-hero-gradient {
    display: none;
}

.post-hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
}

/* Breadcrumbs */
.breadcrumbs {
    margin-bottom: var(--space-lg);
}

.breadcrumbs-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-xs);
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 0.75rem;
}

/* Inline breadcrumbs (внутри контента) */
.breadcrumbs-inline {
    margin-bottom: var(--space-md);
}

.breadcrumbs-inline .breadcrumbs-list {
    font-size: 0.6875rem;
}

.breadcrumbs-inline .breadcrumbs-item svg {
    width: 12px;
    height: 12px;
}

.breadcrumbs-item {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

.breadcrumbs-item:not(:last-child)::after {
    content: '›';
    color: var(--gray-400);
    margin-left: var(--space-xs);
}

.breadcrumbs-item a {
    color: var(--gray-600);
    text-decoration: none;
    transition: color var(--transition);
}

.breadcrumbs-item a:hover {
    color: var(--primary);
}

.breadcrumbs-item.current {
    color: var(--gray-500);
}

/* Post Categories */
.post-categories {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
}

.post-category {
    display: inline-block;
    padding: 0.375rem 0.875rem;
    background: var(--primary-gradient);
    border-radius: var(--radius-full);
    color: var(--white);
    font-size: 0.8125rem;
    font-weight: 600;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all var(--transition);
}

.post-category:hover {
    opacity: 0.9;
    color: var(--white);
}

/* Post Title */
.post-title {
    font-size: clamp(1.75rem, 4vw, 3rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: var(--space-lg);
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Post Meta */
.post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-lg);
}

.post-meta-item {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    font-size: 0.9375rem;
    color: var(--gray-600);
}

.post-meta-item svg {
    opacity: 0.7;
    stroke: var(--primary);
}

/* Post Content Wrapper */
.post-content-wrapper {
    padding: var(--space-2xl) 0;
    background: var(--white);
}

.post-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: var(--space-3xl);
    align-items: start;
}

/* Post Main Content */
.post-main {
    max-width: 100%;
}

/* Entry Content - Typography */
.entry-content,
.post-content.entry-content {
    font-size: 0.875rem;
    line-height: 1.4;
    color: var(--gray-700);
}

.entry-content > * {
    margin-bottom: var(--space-lg);
}

/* Заголовки H1-H6 в контенте */
.entry-content h1,
.entry-content .ttl1 h1,
.ttl1 h1 {
    font-size: clamp(1.75rem, 3.5vw, 2.25rem);
    font-weight: 800;
    color: var(--gray-900);
    margin-top: 0;
    margin-bottom: var(--space-lg);
    font-family: var(--font-heading);
    line-height: 1.2;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Категория страницы (деликатное выделение) */
.subttl2,
.entry-content .subttl2 {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--primary);
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--accent-light) 100%);
    padding: 0.375rem 0.875rem;
    border-radius: var(--radius-full);
    margin-bottom: var(--space-md);
    border: 1px solid rgba(0, 112, 142, 0.2);
}

.entry-content h2 {
    font-size: clamp(1.125rem, 2.5vw, 1.5rem);
    font-weight: 700;
    color: var(--primary);
    margin-top: var(--space-3xl);
    margin-bottom: var(--space-lg);
    padding: var(--space-md) var(--space-lg);
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--accent-light) 100%);
    border-left: 4px solid var(--primary);
    border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
    font-family: var(--font-heading);
    line-height: 1.3;
}

.entry-content h3 {
    font-size: clamp(1rem, 2vw, 1.25rem);
    font-weight: 700;
    color: var(--gray-900);
    margin-top: var(--space-xl);
    margin-bottom: var(--space-sm);
    padding-left: var(--space-md);
    border-left: 3px solid var(--accent);
    font-family: var(--font-heading);
    line-height: 1.4;
}

.entry-content h4 {
    font-size: clamp(1.125rem, 2vw, 1.25rem);
    font-weight: 600;
    color: var(--gray-900);
    margin-top: var(--space-lg);
    margin-bottom: var(--space-sm);
    font-family: var(--font-heading);
    line-height: 1.5;
}

.entry-content h5 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--gray-800);
    margin-top: var(--space-md);
    margin-bottom: var(--space-xs);
    font-family: var(--font-heading);
    line-height: 1.5;
}

.entry-content h6 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--gray-700);
    margin-top: var(--space-md);
    margin-bottom: var(--space-xs);
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.5;
}

.entry-content p {
    margin-bottom: var(--space-lg);
    text-align: justify;
}

/* Убрано выделение первого параграфа и первой буквы */

.entry-content a {
    color: var(--primary);
    text-decoration: underline;
    text-decoration-color: var(--primary-light);
    text-underline-offset: 3px;
    transition: all var(--transition);
    font-weight: 500;
}

.entry-content a:hover {
    color: var(--primary-dark);
    text-decoration-color: var(--primary);
}

.entry-content strong,
.entry-content b {
    color: var(--gray-900);
    font-weight: 700;
}

.entry-content em,
.entry-content i {
    font-style: italic;
    color: var(--gray-800);
}

.entry-content ul,
.entry-content ol {
    padding-left: var(--space-2xl);
    margin-bottom: var(--space-lg);
    line-height: 1.8;
}

.entry-content li {
    margin-bottom: var(--space-sm);
    padding-left: var(--space-xs);
}

.entry-content ul li {
    position: relative;
    list-style: none;
    padding-left: 1.5rem;
}

.entry-content ul li::before {
    content: "⚕";
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: 700;
    font-size: 1.1em;
}

.entry-content ol {
    counter-reset: item;
}

.entry-content ol li {
    position: relative;
}

.entry-content ol li::marker {
    color: var(--primary);
    font-weight: 700;
    font-family: var(--font-heading);
}

/* Вложенные списки */
.entry-content ul ul,
.entry-content ol ol,
.entry-content ul ol,
.entry-content ol ul {
    margin-top: var(--space-sm);
    margin-bottom: var(--space-sm);
}

.entry-content ul ul li::before {
    content: "•";
    color: var(--accent);
}

.entry-content ul ul ul li::before {
    content: "✚";
    color: var(--primary);
    font-size: 0.9em;
}

.entry-content blockquote {
    position: relative;
    padding: var(--space-xl) var(--space-xl) var(--space-xl) var(--space-2xl);
    margin: var(--space-2xl) 0;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--accent-light) 100%);
    border-left: 4px solid var(--primary);
    border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
    font-style: italic;
    font-size: 1.125rem;
    color: var(--gray-800);
}

.entry-content blockquote::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: 15px;
    font-size: 4rem;
    font-family: Georgia, serif;
    color: var(--primary);
    opacity: 0.3;
    line-height: 1;
}

.entry-content blockquote p:last-child {
    margin-bottom: 0;
}

.entry-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-xl);
    margin: var(--space-xl) auto;
    display: block;
    box-shadow: var(--shadow-md);
    transition: transform var(--transition), box-shadow var(--transition);
}

.entry-content img:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.entry-content figure {
    margin: var(--space-2xl) 0;
    text-align: center;
}

.entry-content figure img {
    margin: 0 auto var(--space-sm);
}

.entry-content figcaption {
    text-align: center;
    font-size: 0.875rem;
    color: var(--gray-500);
    font-style: italic;
    margin-top: var(--space-sm);
    padding: var(--space-sm) var(--space-md);
    background: var(--gray-50);
    border-radius: var(--radius-md);
    display: inline-block;
}

/* Выравнивание картинок */
.entry-content .alignleft {
    float: left;
    margin: var(--space-sm) var(--space-xl) var(--space-lg) 0;
}

.entry-content .alignright {
    float: right;
    margin: var(--space-sm) 0 var(--space-lg) var(--space-xl);
}

.entry-content .aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.entry-content table {
    width: 100%;
    border-collapse: collapse;
    margin: var(--space-xl) 0;
    font-size: 0.9375rem;
}

.entry-content th,
.entry-content td {
    padding: var(--space-md);
    text-align: left;
    border-bottom: 1px solid var(--gray-200);
}

.entry-content th {
    background: var(--gray-50);
    font-weight: 600;
    color: var(--gray-900);
}

.entry-content tr:hover td {
    background: var(--gray-50);
}

.entry-content code {
    padding: 0.2em 0.4em;
    background: var(--gray-100);
    border-radius: var(--radius-sm);
    font-family: monospace;
    font-size: 0.9em;
    color: var(--primary-dark);
}

.entry-content pre {
    padding: var(--space-lg);
    background: var(--gray-900);
    border-radius: var(--radius-lg);
    overflow-x: auto;
    color: var(--gray-100);
}

.entry-content pre code {
    background: none;
    padding: 0;
    color: inherit;
}

/* Дополнительные элементы типографики */
.entry-content hr {
    margin: var(--space-2xl) 0;
    border: none;
    height: 3px;
    background: var(--primary-gradient);
    border-radius: var(--radius-sm);
    max-width: 200px;
    margin-left: auto;
    margin-right: auto;
}

.entry-content mark {
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--accent-light) 100%);
    color: var(--gray-900);
    padding: 0.2em 0.4em;
    border-radius: var(--radius-sm);
}

.entry-content abbr[title] {
    text-decoration: underline dotted;
    text-decoration-color: var(--primary);
    cursor: help;
}

.entry-content kbd {
    background: var(--gray-900);
    color: var(--white);
    padding: 0.2em 0.5em;
    border-radius: var(--radius-sm);
    font-family: monospace;
    font-size: 0.875em;
    box-shadow: 0 2px 0 var(--gray-700);
}

.entry-content sub,
.entry-content sup {
    font-size: 0.75em;
    line-height: 0;
    position: relative;
    vertical-align: baseline;
}

.entry-content sup {
    top: -0.5em;
}

.entry-content sub {
    bottom: -0.25em;
}

.entry-content small {
    font-size: 0.875em;
    color: var(--gray-600);
}

/* Post Tags */
.post-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-xl) 0;
    border-top: 1px solid var(--gray-200);
    margin-top: var(--space-2xl);
}

.post-tags-label {
    font-weight: 600;
    color: var(--gray-700);
}

.post-tag {
    display: inline-block;
    padding: 0.375rem 0.75rem;
    background: var(--gray-100);
    border-radius: var(--radius-full);
    color: var(--gray-600);
    font-size: 0.875rem;
    text-decoration: none;
    transition: all var(--transition);
}

.post-tag:hover {
    background: var(--primary);
    color: var(--white);
}

/* Post Share */
.post-share {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-lg) 0;
}

.post-share-label {
    font-weight: 600;
    color: var(--gray-700);
}

.post-share-buttons {
    display: flex;
    gap: var(--space-sm);
}

.share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius);
    background: var(--gray-100);
    color: var(--gray-600);
    border: none;
    cursor: pointer;
    transition: all var(--transition);
}

.share-btn:hover {
    transform: translateY(-2px);
}

.share-telegram:hover {
    background: #0088cc;
    color: var(--white);
}

.share-max:hover {
    background: #0077ff;
    color: var(--white);
}

.share-copy:hover {
    background: var(--primary);
    color: var(--white);
}

/* Author Box */
.author-box {
    display: flex;
    gap: var(--space-lg);
    padding: var(--space-xl);
    background: var(--gray-50);
    border-radius: var(--radius-xl);
    margin: var(--space-2xl) 0;
}

.author-avatar img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
}

.author-info {
    flex: 1;
}

.author-label {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--gray-500);
    margin-bottom: var(--space-xs);
}

.author-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: var(--space-sm);
}

.author-bio {
    font-size: 0.9375rem;
    color: var(--gray-600);
    line-height: 1.6;
    margin: 0;
}

/* Featured Image Widget in Sidebar */
.featured-image-widget {
    padding: 0 !important; /* Убираем padding */
    overflow: hidden;
    border-radius: var(--radius-xl); /* Такое же скругление как у CTA */
    border: none !important; /* Убираем рамку полностью */
    box-shadow: none !important; /* Убираем тень полностью */
    background: transparent !important; /* Убираем фон */
    margin-bottom: var(--space-lg); /* Отступ снизу */
}

.sidebar-featured-img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: var(--radius-xl); /* Скругление на самой картинке */
}

/* Related Posts */
.related-posts {
    margin-top: var(--space-3xl);
    padding-top: var(--space-2xl);
    border-top: 1px solid var(--gray-200);
}

.related-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: var(--space-xl);
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
}

.related-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition);
}

.related-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.related-image {
    display: block;
    aspect-ratio: 16/10;
    overflow: hidden;
}

.related-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition);
}

.related-card:hover .related-image img {
    transform: scale(1.05);
}

.related-content {
    padding: var(--space-md);
}

.related-card-title {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: var(--space-xs);
}

.related-card-title a {
    color: var(--gray-900);
    text-decoration: none;
}

.related-card-title a:hover {
    color: var(--primary);
}

.related-date {
    font-size: 0.8125rem;
    color: var(--gray-500);
}

/* Sidebar */
.post-sidebar {
    position: sticky;
    top: 120px; /* Увеличил отступ сверху, чтобы фиксированный блок входил в экран */
}

.sidebar-widget {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    margin-bottom: var(--space-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-100);
}

.sidebar-widget h3 {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: var(--space-md);
    padding-bottom: var(--space-sm);
    border-bottom: 2px solid var(--primary);
}

/* CTA Widget */
.cta-widget {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
}

.cta-widget h3 {
    color: var(--white);
    border-bottom-color: rgba(255, 255, 255, 0.3);
}

.cta-widget p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: var(--space-lg);
}

.cta-widget .btn-primary {
    background: var(--white);
    color: var(--primary);
    width: 100%;
}

.cta-widget .btn-primary:hover {
    background: var(--gray-100);
}

/* TOC Widget */
.table-of-contents {
    max-height: 300px;
    overflow-y: auto;
}

.table-of-contents ol {
    list-style: none;
    padding: 0;
    margin: 0;
    counter-reset: toc;
}

.table-of-contents li {
    counter-increment: toc;
    margin-bottom: var(--space-sm);
}

.table-of-contents a {
    display: flex;
    align-items: baseline;
    gap: var(--space-sm);
    color: var(--gray-600);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color var(--transition);
}

.table-of-contents a::before {
    content: counter(toc) '.';
    color: var(--primary);
    font-weight: 600;
}

.table-of-contents a:hover {
    color: var(--primary);
}

/* Contact Widget */
.contact-item {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.contact-item svg {
    color: var(--primary);
    flex-shrink: 0;
}

.contact-item a {
    color: var(--gray-700);
    font-weight: 600;
    text-decoration: none;
}

.contact-item a:hover {
    color: var(--primary);
}

/* Responsive */
@media (max-width: 1024px) {
    .post-layout {
        grid-template-columns: 1fr;
    }
    
    .post-sidebar {
        position: static;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-lg);
    }
    
    .related-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .post-hero {
        padding: calc(80px + var(--space-2xl)) 0 var(--space-2xl);
        padding-top: calc(80px + var(--space-2xl));
    }
    
    .post-sidebar {
        grid-template-columns: 1fr;
    }
    
    .related-grid {
        grid-template-columns: 1fr;
    }
    
    .author-box {
        flex-direction: column;
        text-align: center;
    }
    
    .post-meta {
        flex-direction: column;
        gap: var(--space-sm);
    }
    
    .post-share {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* =====================================================
   PAGE TEMPLATE STYLES
   ===================================================== */

/* Page Header */
.page-header {
    padding: var(--space-4xl) 0 var(--space-2xl);
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    text-align: center;
}

.page-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    margin-bottom: var(--space-md);
}

.page-subtitle {
    font-size: 1.125rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

/* Page Content */
.page-content {
    padding: var(--space-4xl) 0;
}

.page-content .entry-content {
    max-width: 800px;
    margin: 0 auto;
}

/* =====================================================
   PAGE TEMPLATE V3 - Профессиональный дизайн
   ===================================================== */
.page-template-v3 {
    background: var(--gray-50);
}

/* Page Header V3 */
.page-header-v3 {
    padding: 72px 0 0;
    background: transparent;
}

.page-header-v3 .breadcrumbs-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-xs);
    font-size: 0.875rem;
}

.page-header-v3 .breadcrumbs-item {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

.page-header-v3 .breadcrumbs-item a {
    display: flex;
    align-items: center;
    gap: 4px;
    color: var(--gray-500);
    transition: color var(--transition);
}

.page-header-v3 .breadcrumbs-item a:hover {
    color: var(--primary);
}

.page-header-v3 .breadcrumbs-item a svg {
    flex-shrink: 0;
}

.page-header-v3 .breadcrumbs-item:not(:last-child)::after {
    content: '/';
    color: var(--gray-300);
    margin-left: var(--space-xs);
}

.page-header-v3 .breadcrumbs-item.current span {
    color: var(--gray-700);
    font-weight: 500;
}

.page-main-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    line-height: 1.2;
    color: var(--gray-900);
    margin-bottom: var(--space-md);
    font-family: var(--font-heading);
}

.page-description {
    font-size: 1.125rem;
    color: var(--gray-600);
    line-height: 1.7;
    max-width: 700px;
    margin-bottom: var(--space-lg);
}

.page-meta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-lg);
}

.page-meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.875rem;
    color: var(--gray-500);
}

.page-meta-item svg {
    color: var(--primary);
    opacity: 0.7;
}

/* Page Content Area */
.page-content-area {
    padding: calc(72px + var(--space-xl)) 0 var(--space-4xl);
}

.page-grid {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: var(--space-2xl);
    align-items: start;
}

/* Article Content */
.page-article-content {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: var(--space-2xl);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

/* Маленькая картинка страницы */
.page-featured-image-small {
    float: right;
    margin: 0 0 var(--space-lg) var(--space-xl);
    max-width: 180px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.page-featured-image-small img {
    width: 100%;
    height: auto;
    display: block;
}

.page-article-content .entry-content {
    font-size: 0.875rem;
    line-height: 1.4;
    color: var(--gray-700);
}

/* Page Share */
.page-share {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding-top: var(--space-xl);
    margin-top: var(--space-xl);
    border-top: 1px solid var(--gray-100);
}

.page-share-label {
    font-size: 0.875rem;
    color: var(--gray-500);
    font-weight: 500;
}

.page-share-buttons {
    display: flex;
    gap: var(--space-sm);
}

.page-share .share-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    background: var(--gray-100);
    color: var(--gray-600);
    transition: all var(--transition);
}

.page-share .share-btn:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-2px);
}

/* Sidebar V3 */
.page-sidebar-v3 {
    position: sticky;
    top: 100px;
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.sidebar-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

/* CTA Card */
.cta-card {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    text-align: center;
}

.cta-card-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto var(--space-md);
    background: rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
}

.cta-card-icon svg {
    stroke: var(--white);
}

.cta-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: var(--space-xs);
}

.cta-card p {
    font-size: 0.9375rem;
    opacity: 0.9;
    margin-bottom: var(--space-lg);
    line-height: 1.5;
}

.cta-card .btn-primary {
    background: var(--white);
    color: var(--primary);
    width: 100%;
    font-weight: 600;
}

.cta-card .btn-primary:hover {
    background: var(--gray-100);
    transform: translateY(-2px);
}

.sidebar-phone {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: var(--space-md);
    padding-top: var(--space-md);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9375rem;
    font-weight: 500;
    transition: color var(--transition);
}

.sidebar-phone:hover {
    color: var(--white);
}

.sidebar-phone svg {
    flex-shrink: 0;
}

/* TOC Card */
.toc-card h4 {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 1rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: var(--space-md);
    padding-bottom: var(--space-sm);
    border-bottom: 2px solid var(--primary);
}

.toc-card h4 svg {
    color: var(--primary);
}

.toc-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.toc-nav li {
    margin-bottom: var(--space-xs);
}

.toc-nav li.toc-sub {
    padding-left: var(--space-md);
}

.toc-nav a {
    display: block;
    padding: var(--space-xs) var(--space-sm);
    font-size: 0.875rem;
    color: var(--gray-600);
    border-radius: var(--radius-sm);
    transition: all var(--transition);
    line-height: 1.4;
}

.toc-nav a:hover {
    color: var(--primary);
    background: var(--primary-light);
}

/* Banner Card */
.banner-card {
    padding: 0;
    overflow: hidden;
}

.banner-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 250px;
    background: linear-gradient(135deg, var(--gray-100) 0%, var(--gray-200) 100%);
    color: var(--gray-400);
    text-align: center;
}

.banner-placeholder span {
    font-size: 0.875rem;
    font-weight: 500;
}

.banner-placeholder small {
    font-size: 0.75rem;
    margin-top: 4px;
}

/* Child Pages Section */
.child-pages-section {
    margin-top: var(--space-3xl);
    padding-top: var(--space-2xl);
    border-top: 1px solid var(--gray-200);
}

.child-pages-heading {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: var(--space-xl);
}

.child-pages-heading svg {
    color: var(--primary);
}

.child-pages-grid-v3 {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--space-lg);
}

.child-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: all var(--transition);
    display: flex;
    flex-direction: column;
}

.child-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.child-card-image {
    aspect-ratio: 16/10;
    overflow: hidden;
}

.child-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition);
}

.child-card:hover .child-card-image img {
    transform: scale(1.05);
}

.child-card-body {
    padding: var(--space-lg);
    flex: 1;
    display: flex;
    flex-direction: column;
}

.child-card-body h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: var(--space-xs);
    transition: color var(--transition);
}

.child-card:hover .child-card-body h3 {
    color: var(--primary);
}

.child-card-body p {
    font-size: 0.875rem;
    color: var(--gray-500);
    line-height: 1.5;
    margin-bottom: var(--space-md);
    flex: 1;
}

.child-card-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary);
    transition: gap var(--transition);
}

.child-card:hover .child-card-link {
    gap: 8px;
}

/* Responsive */
@media (max-width: 1024px) {
    .page-grid {
        grid-template-columns: 1fr;
    }
    
    .page-sidebar-v3 {
        position: static;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-lg);
    }
}

@media (max-width: 768px) {
    .page-header-v3 {
        padding: calc(72px + var(--space-lg)) 0 var(--space-lg);
    }
    
    .page-article-content {
        padding: var(--space-lg);
    }
    
    .page-featured-image-small {
        float: none;
        margin: 0 0 var(--space-lg) 0;
        max-width: 100%;
        width: 100%;
        border-radius: 0;
    }
    
    .page-sidebar-v3 {
        grid-template-columns: 1fr;
    }
    
    .page-share {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .page-main-title {
        font-size: 1.75rem;
    }
    
    .page-meta {
        flex-direction: column;
        gap: var(--space-sm);
    }
    
    .child-pages-grid-v3 {
        grid-template-columns: 1fr;
    }
}

/* Child Pages */
.child-pages {
    margin-top: var(--space-4xl);
    padding-top: var(--space-2xl);
    border-top: 1px solid var(--gray-200);
}

.child-pages-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: var(--space-xl);
    text-align: center;
}

.child-pages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-lg);
}

.child-page-card {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-lg);
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-xl);
    text-decoration: none;
    transition: all var(--transition);
}

.child-page-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.child-page-image {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.child-page-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.child-page-icon {
    flex-shrink: 0;
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-light);
    border-radius: var(--radius-lg);
    color: var(--primary);
}

.child-page-content {
    flex: 1;
    min-width: 0;
}

.child-page-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: var(--space-xs);
}

.child-page-card:hover .child-page-title {
    color: var(--primary);
}

.child-page-excerpt {
    font-size: 0.875rem;
    color: var(--gray-500);
    margin: 0;
    line-height: 1.5;
}

.child-page-arrow {
    flex-shrink: 0;
    color: var(--gray-400);
    transition: all var(--transition);
}

.child-page-card:hover .child-page-arrow {
    color: var(--primary);
    transform: translateX(4px);
}

/* Page Links (pagination) */
.page-links {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-top: var(--space-2xl);
    padding-top: var(--space-lg);
    border-top: 1px solid var(--gray-200);
}

.page-links-title {
    font-weight: 600;
    color: var(--gray-700);
}

.page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: var(--radius);
    background: var(--gray-100);
    color: var(--gray-700);
    font-weight: 600;
    transition: all var(--transition);
}

.page-link:hover {
    background: var(--primary);
    color: var(--white);
}

/* =====================================================
   FORM MESSAGES
   ===================================================== */

.form-message {
    margin-top: var(--space-lg);
    padding: var(--space-md) var(--space-lg);
    border-radius: var(--radius-lg);
    animation: fadeIn 0.3s ease;
    font-size: 0.9375rem;
    font-weight: 500;
}

.form-message.success {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(52, 211, 153, 0.1) 100%);
    border: 2px solid rgba(16, 185, 129, 0.3);
    color: #059669;
}

.form-message.error {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.15) 0%, rgba(252, 165, 165, 0.15) 100%);
    border: 2px solid rgba(239, 68, 68, 0.4);
    color: #dc2626;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.15);
}

.form-success {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-lg);
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: var(--radius-lg);
    color: #10B981;
}

.form-success svg {
    flex-shrink: 0;
}

.form-error {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-lg);
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.15) 0%, rgba(252, 165, 165, 0.15) 100%);
    border: 2px solid rgba(239, 68, 68, 0.4);
    border-radius: var(--radius-lg);
    color: #dc2626;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.15);
}

.form-error svg {
    flex-shrink: 0;
}

/* Error state for inputs */
input.error,
select.error,
textarea.error {
    border-color: #ef4444 !important;
    background: rgba(239, 68, 68, 0.05) !important;
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.1) !important;
}

.form-checkbox.error {
    animation: shake 0.3s ease;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-8px); }
    75% { transform: translateX(8px); }
}

/* Spinner animation */
@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.spin {
    animation: spin 1s linear infinite;
}

/* =====================================================
   CONTACT MODAL - Multi-step Form
   ===================================================== */
.contact-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.contact-modal.active {
    display: flex;
    opacity: 1;
}

.contact-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
}

.contact-modal-content {
    position: relative;
    width: 90%;
    max-width: 700px;
    max-height: 90vh;
    overflow-y: auto;
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    z-index: 1;
    animation: modalSlideIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Scrollbar styling with padding */
.contact-modal-content::-webkit-scrollbar {
    width: 8px;
}

.contact-modal-content::-webkit-scrollbar-track {
    background: transparent;
    margin: 16px 0; /* Отступы сверху и снизу */
}

.contact-modal-content::-webkit-scrollbar-thumb {
    background: rgba(0, 112, 142, 0.3);
    border-radius: 4px;
}

.contact-modal-content::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 112, 142, 0.5);
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-40px) scale(0.95);
        opacity: 0;
    }
    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

.contact-modal-close {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    width: 40px;
    height: 40px;
    background: var(--gray-100);
    border: none;
    border-radius: var(--radius-full);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
    z-index: 2;
}

.contact-modal-close:hover {
    background: var(--gray-200);
    transform: rotate(90deg);
}

.contact-modal-body {
    padding: var(--space-3xl) var(--space-2xl) var(--space-2xl);
}

/* Progress Bar */
.form-progress {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-md);
    margin-bottom: var(--space-3xl);
}

.progress-step {
    width: 12px;
    height: 12px;
    border-radius: var(--radius-full);
    background: var(--gray-200);
    transition: all 0.3s ease;
    position: relative;
}

.progress-step.active {
    background: var(--primary-gradient);
    transform: scale(1.3);
    box-shadow: 0 0 0 4px rgba(0, 112, 142, 0.15);
}

.progress-step.completed {
    background: var(--primary);
}

/* Form Steps */
.form-step {
    display: none;
}

.form-step.active {
    display: block;
    animation: stepFadeIn 0.3s ease;
}

@keyframes stepFadeIn {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.form-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: var(--space-2xl);
    text-align: center;
}

/* Doctors Grid */
.doctors-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
}

.doctor-card {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md) var(--space-lg);
    background: var(--gray-50);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all var(--transition);
    width: 100%;
    max-width: 500px;
}

.doctor-card:hover {
    background: var(--gray-100);
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 112, 142, 0.15);
}

.doctor-card.selected {
    background: var(--white);
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(0, 112, 142, 0.1);
}

.doctor-avatar {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    border-radius: var(--radius-full);
    background: var(--gray-200);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: var(--gray-500);
}

.doctor-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.doctor-info {
    flex: 1;
    min-width: 0;
}

.doctor-name {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 0.25rem;
    line-height: 1.3;
}

.doctor-specialty {
    font-size: 0.8125rem;
    color: var(--gray-600);
    line-height: 1.3;
}

/* Services List */
.services-list {
    display: grid;
    gap: var(--space-sm);
    margin-bottom: var(--space-xl);
}

.service-item {
    display: flex;
    align-items: center;
    padding: var(--space-md);
    background: var(--gray-50);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all var(--transition);
}

.service-item:hover {
    background: var(--gray-100);
    border-color: var(--primary);
}

.service-item input[type="radio"] {
    width: 20px;
    height: 20px;
    margin-right: var(--space-md);
    cursor: pointer;
    accent-color: var(--primary);
}

.service-item input[type="radio"]:checked + .service-label {
    color: var(--primary);
    font-weight: 600;
}

.service-label {
    font-size: 0.9375rem;
    color: var(--gray-800);
    transition: all var(--transition);
}

/* Form */
.appointment-form {
    display: grid;
    gap: var(--space-lg);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.form-group label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--gray-700);
}

.form-group input,
.form-group textarea {
    padding: 0.75rem 1rem;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-lg);
    font-size: 1rem;
    color: var(--gray-900);
    transition: all var(--transition);
    background: var(--white);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(0, 112, 142, 0.1);
}

/* Error state for inputs */
.form-group input.error,
.form-group textarea.error {
    border-color: #e74c3c !important;
    background: #fef5f5 !important;
}

.form-group input.error:focus,
.form-group textarea.error:focus {
    box-shadow: 0 0 0 4px rgba(231, 76, 60, 0.1) !important;
}

/* Error message */
.error-message {
    display: none;
    color: #e74c3c;
    font-size: 0.75rem;
    margin-top: 0.25rem;
}

.form-group.has-error .error-message {
    display: block;
}

.checkbox-label {
    display: flex;
    align-items: start;
    gap: var(--space-sm);
    font-size: 0.875rem;
    color: var(--gray-700);
    cursor: pointer;
    position: relative;
}

.checkbox-label input[type="checkbox"] {
    position: relative;
    width: 20px;
    height: 20px;
    margin-top: 1px;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    border: 2px solid var(--gray-300);
    border-radius: 4px;
    background: var(--white);
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.checkbox-label input[type="checkbox"]:hover {
    border-color: var(--primary);
}

.checkbox-label input[type="checkbox"]:checked {
    background: var(--primary-gradient);
    border-color: var(--primary);
}

.checkbox-label input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.checkbox-label input[type="checkbox"]:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 112, 142, 0.1);
}

/* Error state for checkbox */
.checkbox-label input[type="checkbox"].error {
    border-color: #e74c3c !important;
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1) !important;
}

.checkbox-label span {
    line-height: 1.5;
}

.checkbox-label a {
    color: var(--primary);
    text-decoration: underline;
}

/* Custom Checkbox in Form - RELIABLE VERSION */
.custom-checkbox-wrapper {
    display: flex !important;
    align-items: flex-start !important;
    gap: 0.75rem !important;
    cursor: pointer !important;
    user-select: none !important;
}

.custom-checkbox-input {
    /* Скрытый, но кликабельный */
    position: absolute !important;
    opacity: 0 !important;
    width: 1px !important;
    height: 1px !important;
    pointer-events: none !important;
}

.custom-checkbox-box {
    position: relative !important;
    width: 22px !important;
    height: 22px !important;
    min-width: 22px !important;
    min-height: 22px !important;
    border: 2px solid #cbd5e0 !important;
    border-radius: 4px !important;
    background: white !important;
    flex-shrink: 0 !important;
    margin-top: 0 !important;
    transition: all 0.2s ease !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.custom-checkbox-wrapper:hover .custom-checkbox-box {
    border-color: #00708E !important;
}

/* Checked state - when input is checked */
.custom-checkbox-input:checked + .custom-checkbox-box {
    background: #00708E !important;
    border-color: #00708E !important;
}

/* Checkmark icon - only visible when checked */
.custom-checkbox-box::after {
    content: '' !important;
    position: absolute !important;
    left: 7px !important;
    top: 3px !important;
    width: 6px !important;
    height: 11px !important;
    border: solid white !important;
    border-width: 0 2.5px 2.5px 0 !important;
    transform: rotate(45deg) scale(0) !important;
    transition: transform 0.15s ease !important;
}

.custom-checkbox-input:checked + .custom-checkbox-box::after {
    transform: rotate(45deg) scale(1) !important;
}

/* Error state */
.custom-checkbox-input.error + .custom-checkbox-box,
.custom-checkbox-box.error {
    border-color: #e74c3c !important;
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.15) !important;
}

.custom-checkbox-text {
    flex: 1 !important;
    line-height: 1.5 !important;
    font-size: 0.875rem !important;
    color: #4a5568 !important;
}

.custom-checkbox-text a {
    color: #00708E !important;
    text-decoration: underline !important;
}

.custom-checkbox-text a:hover {
    color: #005a72 !important;
}

/* Compact Form - Step 3 (Contact Info) */
.compact-form .form-group {
    margin-bottom: 0.75rem !important;
}

.compact-form .form-group label {
    margin-bottom: 0.25rem !important;
}

.compact-form input[type="text"],
.compact-form input[type="tel"] {
    padding: 0.625rem 0.875rem !important;
}

/* Form Actions */
.form-actions {
    display: flex;
    gap: var(--space-md);
    margin-top: var(--space-lg);
}

.btn {
    flex: 1;
    padding: 0.875rem 1.5rem;
    border: none;
    border-radius: var(--radius-lg);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
}

.btn-primary {
    background: var(--primary-gradient);
    color: var(--white);
    box-shadow: 0 4px 12px rgba(0, 112, 142, 0.3);
    background-size: 200% 200%;
    animation: gradientShift 3s ease infinite;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 112, 142, 0.4);
    animation: gradientShift 1.5s ease infinite;
}

.btn-secondary {
    background: var(--gray-100);
    color: var(--gray-700);
}

.btn-secondary:hover {
    background: var(--gray-200);
}

/* Already sent screen */
.already-sent {
    text-align: center;
    padding: var(--space-3xl) 0 var(--space-xl);
}

.already-sent__icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: 2px solid var(--primary);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-md);
}

.already-sent__title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: var(--space-xs);
}

.already-sent__sub {
    font-size: 0.8125rem;
    color: var(--gray-500);
    margin-bottom: var(--space-xl);
}

.already-sent__btn {
    display: inline-flex;
    margin: 0 auto;
}

/* Success State — minimal, no background */
.form-success {
    text-align: center;
    padding: var(--space-2xl) 0 var(--space-xl);
}

/* =====================================================
   STEP 4 — City Confirmation (Anti-bot)
   ===================================================== */
.city-confirm-block {
    text-align: center;
    padding: var(--space-lg) 0 var(--space-xl);
}

.city-confirm-icon {
    color: var(--primary);
    margin-bottom: var(--space-md);
}

.city-confirm-icon svg {
    display: inline-block;
}

.city-confirm-text {
    font-size: 1rem;
    color: var(--gray-700);
    line-height: 1.6;
    margin-bottom: var(--space-lg);
}

.city-confirm-text strong {
    color: var(--primary);
}

.city-confirm-input {
    width: 100%;
    max-width: 280px;
    padding: 0.875rem 1.25rem;
    font-size: 1.0625rem;
    font-family: var(--font-primary);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-lg);
    text-align: center;
    transition: border-color var(--transition), box-shadow var(--transition);
    outline: none;
    display: block;
    margin: 0 auto;
}

.city-confirm-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 112, 142, 0.12);
}

.city-confirm-input.input-ok {
    border-color: #22c55e;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.12);
}

.city-confirm-input.input-error {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.city-confirm-hint {
    font-size: 0.875rem;
    margin-top: var(--space-sm);
    min-height: 1.25em;
    text-align: center;
}

.hint-ok  { color: #16a34a; }
.hint-error { color: #dc2626; }

/* Shake animation for checkbox */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20%       { transform: translateX(-6px); }
    40%       { transform: translateX(6px); }
    60%       { transform: translateX(-4px); }
    80%       { transform: translateX(4px); }
}
.shake { animation: shake 0.4s ease; }

/* Compact success check circle */
.success-check {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: 2px solid var(--primary);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-md);
    animation: successPop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes successPop {
    0%   { transform: scale(0); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

.success-title {
    font-size: 1.0625rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: var(--space-xs);
}

.success-sub {
    font-size: 0.875rem;
    color: var(--gray-500);
    margin: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .doctor-card {
        max-width: 100%;
    }
}

@media (max-width: 640px) {
    .contact-modal-content {
        width: 95%;
        max-height: 95vh;
    }
    
    .contact-modal-body {
        padding: var(--space-2xl) var(--space-lg);
    }
    
    .form-title {
        font-size: 1.375rem;
    }
    
    .doctor-card {
        padding: var(--space-sm);
        max-width: 100%;
    }
    
    .doctor-avatar {
        width: 50px;
        height: 50px;
    }
    
    .doctor-name {
        font-size: 0.875rem;
    }
    
    .doctor-specialty {
        font-size: 0.75rem;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
    }
}

/* =====================================================
   SCROLL TO TOP BUTTON
   ===================================================== */
.scroll-to-top {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    width: 44px;
    height: 44px;
    background: rgba(0, 112, 142, 0.85);
    color: var(--white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    box-shadow: 0 2px 12px rgba(0, 112, 142, 0.2);
}

.scroll-to-top:hover {
    background: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 112, 142, 0.3);
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-to-top svg {
    width: 20px;
    height: 20px;
}

@media (max-width: 768px) {
    .scroll-to-top {
        bottom: 1rem;
        left: 1rem;
        width: 40px;
        height: 40px;
    }
}

/* =====================================================
   LARGE SCREENS - PC & TV
   ===================================================== */
@media (min-width: 1500px) {
    .header-phone {
        white-space: nowrap;
    }
    
    /* Заголовок в 2 строки как на ноутбуке */
    .hero-title {
        font-size: clamp(2.5rem, 4vw, 3.5rem);
    }
}

/* =====================================================
   ARCHIVE & CATEGORY PAGES
   ===================================================== */
.archive-page {
    padding-top: 88px; /* Отступ от хедера */
}

.page-header-section {
    position: relative;
    padding: var(--space-4xl) 0 var(--space-3xl);
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--white) 50%, var(--primary-light) 100%);
    overflow: hidden;
}

.page-header-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
    opacity: 0.5;
}

.page-header-shape {
    position: absolute;
    border-radius: 50%;
    background: var(--primary-gradient);
    opacity: 0.1;
}

.page-header-shape-1 {
    width: 400px;
    height: 400px;
    top: -200px;
    right: -100px;
}

.page-header-shape-2 {
    width: 300px;
    height: 300px;
    bottom: -150px;
    left: -50px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
}

.page-header-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

.page-description {
    margin-top: var(--space-md);
    color: var(--gray-600);
    font-size: 1.125rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.archive-content-section {
    padding: var(--space-4xl) 0;
    background: var(--white);
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-2xl);
}

.post-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid var(--gray-100);
    transition: all var(--transition);
    display: flex;
    flex-direction: column;
}

.post-card:hover {
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
    transform: translateY(-4px);
}

.post-card-image {
    aspect-ratio: 16/9;
    overflow: hidden;
    display: block;
}

.post-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.post-card:hover .post-card-image img {
    transform: scale(1.05);
}

.post-card-content {
    padding: var(--space-xl);
    display: flex;
    flex-direction: column;
    flex: 1;
}

.post-card-meta {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
    flex-wrap: wrap;
}

.post-card-category {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: var(--primary-light);
    color: var(--primary-dark);
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.post-card-date {
    font-size: 0.875rem;
    color: var(--gray-500);
}

.post-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: var(--space-md);
}

.post-card-title a {
    color: var(--gray-900);
    text-decoration: none;
    transition: color var(--transition);
}

.post-card:hover .post-card-title a {
    color: var(--primary);
}

.post-card-excerpt {
    color: var(--gray-600);
    line-height: 1.6;
    margin-bottom: var(--space-lg);
    flex: 1;
}

.post-card-link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
    transition: all var(--transition);
}

.post-card-link:hover {
    gap: var(--space-sm);
    color: var(--primary-dark);
}

.post-card-link svg {
    transition: transform var(--transition);
}

.post-card-link:hover svg {
    transform: translateX(4px);
}

.no-posts {
    text-align: center;
    padding: var(--space-4xl) var(--space-xl);
}

.no-posts svg {
    color: var(--gray-300);
    margin-bottom: var(--space-xl);

}

/* =====================================================
   FLUID RESPONSIVE SYSTEM - Professional Approach
   Mobile-first + clamp() + content-first breakpoints
   ===================================================== */

/*
   BREAKPOINTS (content-first):
   - Mobile: < 768px
   - Tablet: 768px - 1199px
   - Desktop: 1200px - 1919px
   - Large Desktop/PC: 1920px+
   - 2K/4K/TV: 2560px+
*/

/* ===== BASE FLUID TYPOGRAPHY ===== */
html {
    font-size: clamp(16px, calc(14px + 0.25vw), 20px);
}

/* ===== LARGE SCREENS (1920px+) ===== */
@media screen and (min-width: 1920px) {
    html {
        font-size: clamp(18px, calc(16px + 0.3vw), 24px);
    }
    
    .container {
        max-width: min(90%, 1600px);
        padding-left: clamp(2rem, 4vw, 5rem);
        padding-right: clamp(2rem, 4vw, 5rem);
    }
    
    /* Увеличенные отступы */
    .section {
        padding: clamp(4rem, 6vw, 8rem) 0;
    }
    
    /* Hero адаптация */
    .hero-title {
        font-size: clamp(2.5rem, 4vw, 4rem);
    }
    
    .hero-description {
        font-size: clamp(1.125rem, 1.5vw, 1.5rem);
    }
    
    .hero-features li {
        font-size: clamp(1rem, 1.2vw, 1.25rem);
    }
    
    .hero-image img,
    .hero-v2-visual .doctor-card img {
        max-width: clamp(480px, 32vw, 650px);
        max-height: clamp(580px, 42vh, 800px);
    }

    .hero-v2-visual .doctor-card {
        max-width: clamp(480px, 32vw, 650px);
    }

    .hero-v2-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    /* Кнопки крупнее */
    .btn {
        padding: clamp(0.875rem, 1.2vw, 1.25rem) clamp(1.5rem, 2.5vw, 2.5rem);
        font-size: clamp(1rem, 1.1vw, 1.25rem);
    }
    
    /* Заголовки секций */
    .section-header h2,
    .section-title-v2 h2 {
        font-size: clamp(2rem, 3vw, 3rem);
    }
    
    .section-header p {
        font-size: clamp(1.125rem, 1.3vw, 1.375rem);
    }
}

/* ===== 2K DISPLAYS (2560px+) ===== */
@media screen and (min-width: 2560px) {
    html {
        font-size: clamp(20px, calc(18px + 0.35vw), 28px);
    }
    
    .container {
        max-width: min(85%, 2000px);
    }
    
    .hero-image img,
    .hero-v2-visual .doctor-card img {
        max-width: clamp(560px, 28vw, 800px);
        max-height: clamp(680px, 38vh, 980px);
    }

    .hero-v2-visual .doctor-card {
        max-width: clamp(560px, 28vw, 800px);
    }
}

/* ===== 4K & TV (3840px+) ===== */
@media screen and (min-width: 3840px) {
    html {
        font-size: clamp(24px, calc(22px + 0.4vw), 36px);
    }
    
    .container {
        max-width: min(75%, 2800px);
        padding-left: clamp(4rem, 6vw, 10rem);
        padding-right: clamp(4rem, 6vw, 10rem);
    }
}

/* =====================================================
   MOBILE RESPONSIVE - Beautiful Mobile Version
   ===================================================== */

/* ===== TABLET (768px - 1024px) ===== */
@media screen and (max-width: 1024px) {
    /* Header */
    .header-locations {
        display: none;
    }
    
    .header-inner {
        justify-content: space-between;
        gap: var(--space-md);
    }
    
    .header-actions {
        gap: var(--space-sm);
    }
    
    /* Hero */
    .hero,
    .hero-v2 {
        padding-top: 80px;
        min-height: auto;
        padding-bottom: var(--space-2xl);
    }
    
    .hero-inner,
    .hero-v2-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: var(--space-xl);
    }
    
    .hero-content,
    .hero-v2-content {
        max-width: 100%;
        order: 2;
    }
    
    .hero-image,
    .hero-v2-visual {
        order: 1;
    }
    
    .hero-image img,
    .hero-v2-visual img {
        max-width: 280px;
        max-height: 350px;
    }
    
    .hero-clinic-name {
        font-size: clamp(2rem, 5vw, 3rem);
    }
    
    .hero-v2-content h2,
    .hero-subtitle {
        font-size: clamp(1rem, 2vw, 1.5rem);
    }
    
    .hero-features,
    .hero-v2-content .hero-features {
        text-align: left;
        max-width: 400px;
        margin: 0 auto var(--space-lg);
    }
    
    .hero-buttons,
    .hero-v2-content .hero-buttons {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .hero-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--space-sm);
        padding: var(--space-md);
    }
    
    /* Sections */
    .section {
        padding: var(--space-2xl) 0;
    }
    
    .section-header {
        margin-bottom: var(--space-xl);
    }
    
    .section-header h2,
    .section-title-v2 h2 {
        font-size: clamp(1.75rem, 5vw, 2.25rem);
    }
    
    /* Services Grid */
    .services-grid,
    .advantages-grid,
    .treatments-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-md);
    }
    
    /* About Doctor */
    .about-grid {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }
    
    .about-image {
        max-width: 300px;
        margin: 0 auto;
    }
}

/* ===== MOBILE (max-width: 768px) ===== */
@media screen and (max-width: 768px) {
    /* Base */
    html {
        font-size: 15px;
    }
    
    .container {
        padding: 0 1rem;
    }
    
    /* Header */
    .site-header {
        padding: 0.5rem 0;
    }
    
    .header-inner {
        min-height: 60px;
    }
    
    .site-logo img {
        height: 52px !important;
        max-height: 52px;
    }
    
    .header-phone {
        display: flex !important;
        padding: 0.5rem;
        background: transparent;
        border-radius: var(--radius-lg);
        color: var(--gray-600);
        min-width: 40px;
        min-height: 40px;
        justify-content: center;
    }
    
    .header-phone svg {
        color: var(--gray-600) !important;
        width: 20px;
        height: 20px;
        opacity: 0.8;
    }
    
    .header-phone span {
        display: none;
    }
    
    .lang-dropdown {
        display: none;
    }
    
    .burger-menu {
        width: 48px;
        height: 48px;
        padding: 12px;
    }
    
    /* Hero */
    .hero,
    .hero-v2 {
        padding-top: 120px;
        padding-bottom: var(--space-xl);
        min-height: auto !important;
    }
    
    .hero-v2-grid {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
        text-align: left;
    }
    
    .hero-v2-content {
        max-width: 100%;
        order: 2;
    }
    
    .hero-v2-visual {
        display: none !important;
    }
    
    .hero-v2-content {
        order: 1;
    }
    
    /* H1 - Клиника Доктора Шабунина */
    .hero-clinic-name {
        font-size: 2.5rem !important;
        line-height: 1.1;
        text-align: left !important;
        width: 100%;
        max-width: 100%;
        margin-bottom: var(--space-md);
        font-weight: 800;
    }
    
    /* H2 - Жизнь без боли... */
    .hero-v2-content h2,
    .hero-subtitle {
        font-size: 0.9375rem !important;
        text-align: left !important;
        line-height: 1.4;
        margin-bottom: var(--space-lg);
        font-weight: 600;
    }
    
    .hero-features,
    .hero-v2-content .hero-features {
        text-align: left !important;
        max-width: 100% !important;
        width: 100%;
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding-left: 0 !important;
        list-style: none;
    }
    
    .hero-features li,
    .hero-v2-content .hero-features li {
        font-size: 0.9375rem !important;
        text-align: left !important;
        justify-content: flex-start !important;
        display: flex !important;
        align-items: flex-start !important;
        margin-bottom: 0.75rem;
    }
    
    .hero-features li::before,
    .hero-v2-content .hero-features li::before {
        min-width: 22px !important;
        max-width: 22px !important;
        width: 22px !important;
        height: 22px !important;
        font-size: 0.7rem;
        flex-shrink: 0 !important;
        margin-right: 0.75rem !important;
    }
    
    .hero-buttons,
    .hero-v2-actions,
    .hero-v2-content .hero-buttons {
        flex-direction: column !important;
        gap: var(--space-md);
        width: 100%;
        padding: 0;
        align-items: stretch;
        display: flex;
        margin-top: var(--space-xl);
    }
    
    .hero-buttons .btn,
    .hero-v2-actions .btn,
    .hero-v2-content .hero-buttons .btn {
        width: 100% !important;
        justify-content: center;
        min-height: 60px !important;
        font-size: 1.125rem !important;
        font-weight: 600;
        padding: 1rem 1.5rem !important;
        display: flex;
        align-items: center;
        flex: 1 1 100% !important;
        min-width: 100% !important;
    }
    
    .hero-stats {
        grid-template-columns: 1fr;
        gap: var(--space-sm);
        padding: var(--space-md);
        margin-top: var(--space-lg);
    }
    
    .stat-item {
        display: flex;
        align-items: center;
        gap: var(--space-sm);
        text-align: left;
        padding: var(--space-sm);
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    /* Sections */
    .section {
        padding: var(--space-xl) 0;
    }
    
    .section-header {
        margin-bottom: var(--space-lg);
    }
    
    .section-header h2,
    .section-title-v2 h2 {
        font-size: clamp(1.5rem, 5vw, 1.875rem);
        line-height: 1.25;
    }
    
    .section-header p {
        font-size: 0.9375rem;
    }
    
    /* Cards Grids */
    .services-grid,
    .advantages-grid,
    .treatments-grid,
    .advantages-v2-grid {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }
    
    /* Service Cards */
    .service-card,
    .advantage-card,
    .treatment-card {
        padding: var(--space-lg);
    }
    
    .service-card h3,
    .advantage-card h3,
    .treatment-card h3 {
        font-size: 1.125rem;
    }
    
    /* About Doctor */
    .about-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .about-image {
        max-width: 250px;
        margin: 0 auto var(--space-lg);
    }
    
    .about-content {
        text-align: left;
    }
    
    /* Reviews */
    .reviews-tabs {
        flex-wrap: wrap;
        gap: var(--space-sm);
    }
    
    .review-tab {
        padding: 0.75rem 1.25rem;
        font-size: 1rem;
        min-height: 48px;
    }
    
    .review-tab img {
        width: 24px;
        height: 24px;
    }
    
    .reviews-grid {
        grid-template-columns: 1fr;
    }
    
    .review-card {
        padding: var(--space-md);
    }
    
    /* Top Services */
    .services-slider {
        grid-template-columns: 1fr;
    }
    
    .service-slider-card {
        padding: var(--space-lg);
    }
    
    /* Doctor V2 */
    .doctor-v2-grid {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }
    
    .doctor-v2-image {
        max-width: 250px;
        margin: 0 auto;
    }
    
    /* Inclusive V2 */
    .inclusive-v2-wrapper {
        grid-template-columns: 1fr;
    }
    
    .inclusive-v2-image {
        max-width: 100%;
        width: 100%;
        margin: 0;
        border-radius: var(--radius-xl);
        min-height: 300px;
    }
    
    .inclusive-v2-image img {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    
    /* CTA Section */
    .cta-content h2 {
        font-size: 1.5rem;
    }
    
    .cta-form {
        padding: var(--space-lg);
    }
    
    .cta-form .form-row {
        grid-template-columns: 1fr;
    }
    
    .cta-v2,
    .cta-section-v3,
    .cta {
        padding-bottom: var(--space-2xl);
        margin-bottom: 0;
    }
    
    /* Footer */
    .modern-footer {
        padding: var(--space-lg) 0 var(--space-md);
        padding-top: var(--space-lg);
        padding-bottom: calc(var(--space-md) + 60px);
    }
    
    .footer-links-grid {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }
    
    .footer-column-title {
        font-size: 0.9375rem;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: var(--space-md);
    }
    
    .footer-bottom-logo img {
        height: 48px;
    }
    
    /* Contact Modal */
    .contact-modal-content {
        max-width: 100%;
        margin: 0;
        border-radius: var(--radius-lg) var(--radius-lg) 0 0;
        max-height: 95vh;
    }
    
    .doctors-grid {
        grid-template-columns: 1fr;
    }
    
    .doctor-card {
        padding: var(--space-md);
    }
    
    /* Scroll to top */
    .scroll-to-top {
        bottom: 70px;
        left: 1rem;
        width: 40px;
        height: 40px;
    }
}

/* ===== SMALL MOBILE (max-width: 480px) ===== */
@media screen and (max-width: 480px) {
    html {
        font-size: 14px;
    }
    
    /* H1 - Клиника Доктора Шабунина */
    .hero-clinic-name {
        font-size: 3.75rem !important;
        line-height: 1.1;
        font-weight: 800;
    }
    
    /* H2 - Жизнь без боли... */
    .hero-v2-content h2,
    .hero-subtitle {
        font-size: 1.5rem !important;
        font-weight: 600;
    }
    
    .hero-features li,
    .hero-v2-content .hero-features li {
        font-size: 0.875rem !important;
    }
    
    /* Фото врача скрыто на маленьких экранах */
    
    .hero-buttons .btn,
    .hero-v2-actions .btn,
    .hero-v2-content .hero-buttons .btn {
        min-height: 58px !important;
        font-size: 1.0625rem !important;
    }
    
    .btn {
        padding: 0.75rem 1.25rem;
        font-size: 0.875rem;
    }
    
    .btn-lg {
        padding: 0.875rem 1.5rem;
    }
    
    .section-header h2,
    .section-title-v2 h2 {
        font-size: 1.5rem;
    }
    
    .service-card,
    .advantage-card,
    .treatment-card {
        padding: var(--space-md);
    }
    
    .hero-stats {
        padding: var(--space-sm);
    }
    
    .stat-number {
        font-size: 1.25rem;
    }
    
    .stat-label {
        font-size: 0.6875rem;
    }
}

/* =====================================================
   HEADER CTA ICON-ONLY BUTTON — MOBILE SIZE OVERRIDE
   (Base styles already set above for all screens)
   ===================================================== */
@media (max-width: 768px) {
    button.btn.header-cta,
    .header-actions button.header-cta,
    .header-inner .header-cta {
        width: 44px !important;
        height: 44px !important;
        flex: 0 0 44px !important;
        max-width: 44px !important;
    }
}
