/* v2026.02.13 */
/* ================================
   CSS Variables
   ================================ */
:root {
    /* Colors - Burgundy/Orange Theme */
    --primary-color: #B8302F;
    --primary-dark: #8B1A1A;
    --primary-light: #D94948;
    --secondary-color: #FF6B35;
    --accent-color: #FFF5F3;
    --success-color: #4CAF50;
    --text-dark: #2C1810;
    --text-gray: #666;
    --text-light: #999;
    --border-color: #e0e0e0;
    --bg-light: #FBF8F7;
    --white: #ffffff;

    /* Typography */
    --font-primary: 'Montserrat', sans-serif;
    --font-secondary: 'Open Sans', sans-serif;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-xxl: 4rem;
    --spacing-3xl: 5rem;

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-full: 999px;

    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 12px 32px rgba(0, 0, 0, 0.15);

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* ================================
   Custom Scrollbar
   ================================ */
/* Webkit browsers (Chrome, Safari, Edge) */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-light);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--primary-dark) 0%, var(--primary-color) 100%);
}

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

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-secondary);
    color: var(--text-dark);
    line-height: 1.6;
    background: var(--white);
    overflow-x: hidden;
    font-size: 15px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-primary);
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: var(--spacing-sm);
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

h4 {
    font-size: 1.25rem;
}

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

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

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

ul {
    list-style: none;
}

/* ================================
   Layout
   ================================ */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.section {
    padding: var(--spacing-xxl) 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: var(--spacing-md);
    color: var(--text-dark);
}

.section-subtitle {
    text-align: center;
    font-size: 1.125rem;
    color: var(--text-gray);
    margin-bottom: var(--spacing-xl);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* ================================
   Header
   ================================ */
.header {
    /* Container only, no styles that could interfere with sticky positioning */
}

/* Top Bar */
.top-bar {
    background: var(--bg-light);
    border-bottom: 1px solid var(--border-color);
    padding: 0.5rem 0;
    font-size: 0.875rem;
    font-weight: 400;
    line-height: 1.5;
    font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--spacing-md);
}

.city-selector {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 400;
    line-height: 1;
}

.location-icon {
    color: var(--primary-color);
    flex-shrink: 0;
    display: block;
}

.city-label {
    color: var(--text-gray);
    font-size: 0.875rem;
    font-weight: 400;
    line-height: 1;
    display: inline-block;
}

.city-current {
    background: none;
    border: none;
    color: var(--primary-color);
    font-weight: 400;
    font-size: 0.875rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0;
    margin: 0;
    position: relative;
    top: 1px;
    border-radius: var(--radius-sm);
    transition: var(--transition-fast);
}

.city-current span {
    line-height: 1;
    display: inline-block;
}

.city-current:hover {
    background: transparent;
    text-decoration: underline;
}

.city-current svg {
    transition: var(--transition-fast);
}

.city-current:hover svg {
    transform: translateY(2px);
}

.accessibility-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-gray);
    font-size: 0.875rem;
    font-weight: 400;
    line-height: 1;
    transition: var(--transition-fast);
}

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

.accessibility-link svg {
    width: 18px;
    height: 18px;
}

/* Contact Bar */
.contact-bar {
    background: var(--white);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.contact-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--spacing-lg);
    padding: 10px 0;
}

.header-phones {
    display: flex;
    gap: var(--spacing-lg);
    align-items: center;
}

.header-phone {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-dark);
    font-weight: 600;
    transition: var(--transition-fast);
    text-decoration: none;
}

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

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

.header-phone.main-phone {
    color: var(--primary-color);
    font-size: 1.125rem;
}

.phone-hint {
    font-size: 0.75rem;
    color: var(--text-gray);
    font-weight: 400;
    margin-left: 0.25rem;
    line-height: 15px;
}

.header-social {
    display: flex;
    gap: var(--spacing-sm);
    align-items: center;
}

.social-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--text-gray);
    background: var(--bg-light);
    transition: var(--transition-fast);
}

.social-icon:hover {
    color: var(--white);
    transform: translateY(-2px);
}

/* Social Networks Specific Colors */
.social-icon[aria-label="ВКонтакте"]:hover {
    background: #4A76A8;
}

.social-icon[aria-label="Telegram"]:hover,
.social-icon[aria-label="WhatsApp / Viber / Telegram"]:hover {
    background: #0088cc;
}

.social-icon[aria-label="YouTube"]:hover {
    background: #FF0000;
}

.social-icon[aria-label="Max"]:hover {
    background: #7B61FF;
}

.btn-header-cta {
    white-space: nowrap;
}

/* Main Nav */
.main-nav {
    background: var(--white);
    padding: var(--spacing-md) 0;
    border-bottom: 1px solid var(--border-color);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-lg);
}

.logo {
    flex-shrink: 0;
}

.logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
    line-height: 1;
}

.logo img {
    height: 55px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    transition: var(--transition-fast);
}

.logo a:hover img {
    opacity: 0.85;
}

.nav-menu {
    display: flex;
    gap: var(--spacing-lg);
    align-items: center;
}

.nav-menu>li {
    position: relative;
}

.nav-menu a {
    color: var(--text-dark);
    font-weight: 500;
    transition: var(--transition-fast);
    white-space: nowrap;
    padding: 0.5rem 0;
    position: relative;
    display: inline-block;
}

/* Animated underline on hover */
.nav-menu>li>a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transform: translateX(-50%);
    transition: width 0.3s ease-in-out;
}

.nav-menu>li>a:hover::after {
    width: 100%;
}

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

/* Submenu Styles */
.has-submenu {
    position: relative;
}

.submenu-toggle {
    display: none;
}

.submenu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    box-shadow: var(--shadow-lg);
    border-radius: var(--radius-sm);
    width: 380px;
    max-height: 70vh;
    overflow-y: auto;
    padding: 0.5rem 0;
    z-index: 1000;
    margin-top: 0;
}

.has-submenu:hover .submenu {
    display: block;
}

.submenu li {
    list-style: none;
}

.submenu a {
    display: block;
    padding: 0.5rem 1rem;
    color: var(--text-dark);
    font-size: 0.875rem;
    font-weight: 400;
    line-height: 1.4;
    white-space: normal;
    word-wrap: break-word;
    transition: var(--transition-fast);
}

.submenu a:hover {
    background: var(--accent-color);
    color: var(--primary-color);
}

/* Submenu Scrollbar */
.submenu::-webkit-scrollbar {
    width: 6px;
}

.submenu::-webkit-scrollbar-track {
    background: transparent;
}

.submenu::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 3px;
}

.submenu::-webkit-scrollbar-thumb:hover {
    background: var(--text-gray);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--spacing-xs);
}

.mobile-menu-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text-dark);
    transition: var(--transition-fast);
}

/* Mobile-only elements (hidden on desktop) */
.mobile-header-actions {
    display: none;
}

.mobile-menu-contacts {
    display: none !important;
}

/* ================================
   Breadcrumbs & Page Header
   ================================ */
.breadcrumbs {
    background: #f5f6f8;
    padding: var(--spacing-lg) 0 var(--spacing-xl) 0;
    margin-bottom: 0;
}

.breadcrumbs-inner {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: var(--spacing-md);
}

.breadcrumbs a {
    color: var(--text-gray);
    text-decoration: none;
    font-size: 0.875rem;
    transition: var(--transition-fast);
}

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

.breadcrumbs .current {
    color: var(--text-dark);
    font-weight: 500;
    font-size: 0.875rem;
}

.breadcrumbs .separator {
    color: var(--text-gray);
    font-size: 0.75rem;
    user-select: none;
}

.page-title {
    font-size: 2.5rem;
    font-weight: 500;
    color: var(--text-dark);
    margin: 0;
    line-height: 1.2;
}

@media (max-width: 768px) {
    .page-title {
        font-size: 2rem;
    }
}

/* ================================
   Buttons
   ================================ */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 0.9375rem;
    text-align: center;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: var(--transition-base);
    white-space: nowrap;
}

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

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

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

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

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.0625rem;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.btn-block {
    width: 100%;
    display: block;
}

/* ================================
   Hero Section
   ================================ */
.hero {
    background: linear-gradient(135deg, #FFF9F8 0%, #FFFFFF 50%, #FFF5F3 100%);
    padding: var(--spacing-xxl) 0 0;
    min-height: 580px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

/* Динамический фон с геометрическими фигурами */
.hero::before {
    content: '';
    position: absolute;
    top: -150px;
    right: -150px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255, 107, 53, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -100px;
    left: -100px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(184, 48, 47, 0.06) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
    align-items: flex-end;
}

/* Hero Content - Left Side */
.hero-content {
    position: relative;
    z-index: 15;
    padding-bottom: var(--spacing-xl);
}

.hero-title {
    font-size: 2.75rem;
    font-weight: 700;
    margin-bottom: var(--spacing-lg);
    color: var(--text-dark);
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 1.3rem;
    font-weight: bold;
    color: #222;
    margin-bottom: var(--spacing-xl);
    line-height: 1.4;
}

.desktop-br {
    display: inline;
}

.hero-features {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-xl);
}

.feature-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.feature-icon {
    width: 38px;
    height: 38px;
    background: var(--success-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 3px 10px rgba(76, 175, 80, 0.25);
}

.feature-icon svg {
    width: 20px;
    height: 20px;
    stroke: var(--white);
}

.feature-item span {
    font-size: 0.9375rem;
    line-height: 1.5;
    color: var(--text-dark);
}

.hero-cta {
    display: flex;
    gap: var(--spacing-md);
    flex-wrap: wrap;
}

.hero-cta .btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.hero-cta .btn svg {
    width: 20px;
    height: 20px;
}

/* Hero Image - Right Side */
.hero-image {
    position: relative;
    z-index: 5;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-end;
}

/* Hero Children Image */
.hero-children-image {
    width: 100%;
    max-width: 550px;
    height: auto;
    object-fit: cover;
    display: block;
}

/* Hero Image Placeholder */
.hero-image-placeholder {
    width: 100%;
    max-width: 500px;
    height: 400px;
    background: linear-gradient(135deg, #FFE5E0 0%, #FFD6CC 100%);
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-md);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
    border: 3px dashed rgba(184, 48, 47, 0.2);
    transition: var(--transition-base);
}

.hero-image-placeholder:hover {
    border-color: rgba(184, 48, 47, 0.4);
    transform: scale(1.02);
}

.placeholder-icon {
    color: var(--primary-color);
    opacity: 0.5;
}

.placeholder-text {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary-color);
    margin: 0;
}

.placeholder-hint {
    font-size: 0.875rem;
    color: var(--text-gray);
    margin: 0;
}

/* Hero Card */
.hero-card {
    background: var(--white);
    padding: var(--spacing-xl);
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    position: relative;
    max-width: 420px;
    text-align: center;
}

.hero-card-badge {
    background: var(--primary-color);
    color: var(--white);
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 1.125rem;
    display: inline-block;
    margin-bottom: var(--spacing-md);
    box-shadow: 0 4px 12px rgba(184, 48, 47, 0.3);
}

.hero-card p {
    color: var(--text-gray);
    font-size: 15px;
    line-height: 1.6;
    margin: 0;
}

/* Hero Animated Background */
.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

/* Sound Waves */
.hero-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 200px;
    opacity: 1;
    z-index: 10;
    pointer-events: none;
}

.hero-wave-1 {
    animation: wave-move-1 15s ease-in-out infinite;
}

.hero-wave-2 {
    animation: wave-move-2 18s ease-in-out infinite;
    animation-delay: -2s;
}

@keyframes wave-move-1 {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-60px);
    }
}

@keyframes wave-move-2 {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-50px);
    }
}

/* Floating Blobs */
.blob {
    position: absolute;
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.15), rgba(184, 48, 47, 0.1));
    filter: blur(40px);
}

.blob-1 {
    width: 400px;
    height: 400px;
    top: -100px;
    right: -100px;
    animation: float-1 20s ease-in-out infinite;
}

.blob-2 {
    width: 300px;
    height: 300px;
    top: 50%;
    right: 10%;
    animation: float-2 25s ease-in-out infinite;
    animation-delay: -5s;
}

.blob-3 {
    width: 250px;
    height: 250px;
    bottom: -50px;
    left: 10%;
    animation: float-3 22s ease-in-out infinite;
    animation-delay: -10s;
}

.blob-4 {
    width: 350px;
    height: 350px;
    top: 30%;
    left: -150px;
    animation: float-4 28s ease-in-out infinite;
    animation-delay: -8s;
}

@keyframes float-1 {

    0%,
    100% {
        transform: translate(0, 0) rotate(0deg);
        border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    }

    33% {
        transform: translate(30px, -30px) rotate(120deg);
        border-radius: 50% 60% 40% 70% / 60% 40% 50% 60%;
    }

    66% {
        transform: translate(-20px, 20px) rotate(240deg);
        border-radius: 60% 40% 60% 50% / 50% 60% 40% 70%;
    }
}

@keyframes float-2 {

    0%,
    100% {
        transform: translate(0, 0) rotate(0deg);
        border-radius: 60% 40% 50% 60% / 50% 60% 40% 50%;
    }

    50% {
        transform: translate(-40px, 40px) rotate(180deg);
        border-radius: 40% 60% 60% 40% / 60% 50% 50% 60%;
    }
}

@keyframes float-3 {

    0%,
    100% {
        transform: translate(0, 0) rotate(0deg);
        border-radius: 50% 60% 50% 60% / 60% 50% 60% 50%;
    }

    50% {
        transform: translate(50px, -30px) rotate(180deg);
        border-radius: 60% 50% 60% 50% / 50% 60% 50% 60%;
    }
}

@keyframes float-4 {

    0%,
    100% {
        transform: translate(0, 0) rotate(0deg);
        border-radius: 70% 30% 50% 60% / 40% 60% 50% 70%;
    }

    33% {
        transform: translate(40px, 30px) rotate(120deg);
        border-radius: 50% 60% 70% 40% / 60% 40% 60% 50%;
    }

    66% {
        transform: translate(-30px, -20px) rotate(240deg);
        border-radius: 60% 50% 40% 70% / 50% 60% 70% 40%;
    }
}

/* Sound Circles (Pulse Animation) */
.sound-circle {
    position: absolute;
    border-radius: 50%;
    border: 2px solid rgba(255, 107, 53, 0.3);
    animation: pulse 3s ease-out infinite;
}

.sound-circle-1 {
    width: 80px;
    height: 80px;
    top: 15%;
    left: 20%;
    animation-delay: 0s;
}

.sound-circle-2 {
    width: 120px;
    height: 120px;
    top: 55%;
    left: 10%;
    animation-delay: 1s;
}

.sound-circle-3 {
    width: 60px;
    height: 60px;
    top: 35%;
    left: 35%;
    animation-delay: 2s;
}

@keyframes pulse {
    0% {
        transform: scale(0.8);
        opacity: 0;
    }

    50% {
        opacity: 0.4;
    }

    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

/* ================================
   About Section
   ================================ */
.about-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: var(--spacing-xl);
    align-items: start;
}

.lead {
    font-size: 1.125rem;
    line-height: 1.8;
    margin-bottom: var(--spacing-lg);
    color: var(--text-gray);
}

.info-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-lg);
    margin-top: var(--spacing-lg);
}

.info-card {
    background: var(--white);
    padding: var(--spacing-lg);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
}

.info-card h3 {
    color: var(--primary-color);
    margin-bottom: var(--spacing-md);
}

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

.info-card li {
    padding: var(--spacing-xs) 0;
    padding-left: 1.5rem;
    position: relative;
}

.info-card li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

.about-stats {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.stat-card {
    position: relative;
    background: var(--white);
    border: 2px solid var(--border-color);
    padding: var(--spacing-lg) var(--spacing-md);
    border-radius: var(--radius-md);
    text-align: center;
    transition: all 0.3s ease;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(184, 48, 47, 0.12);
    border-color: var(--primary-color);
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: var(--spacing-xs);
    line-height: 1;
}

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

/* ================================
   Method Section
   ================================ */
.method {
    background: var(--bg-light);
}

.method-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-lg);
}

.method-card {
    background: var(--white);
    padding: var(--spacing-lg);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-base);
    text-align: center;
}

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

.method-icon {
    font-size: 3rem;
    margin-bottom: var(--spacing-md);
}

.method-card h3 {
    color: var(--primary-color);
    margin-bottom: var(--spacing-sm);
}

.method-card p {
    color: var(--text-gray);
    font-size: 0.9375rem;
}

/* ================================
   Specialists Section
   ================================ */
.section.specialists {
    background: linear-gradient(180deg,
            rgba(255, 255, 255, 0) 0%,
            rgba(251, 245, 243, 1) 8%,
            rgba(255, 241, 238, 1) 50%,
            rgba(251, 245, 243, 1) 92%,
            rgba(255, 255, 255, 0) 100%);
    position: relative;
}

.specialists-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-xl);
}

.specialist-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition-base);
}

.specialist-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.specialist-image {
    display: block;
    width: 100%;
    height: 400px;
    overflow: hidden;
    background: var(--accent-color);
}

a.specialist-name-link {
    text-decoration: none;
    color: inherit;
}

.specialist-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.specialist-card:first-child .specialist-image img {
    object-position: top;
}

.specialist-info {
    padding: var(--spacing-lg);
}

.specialist-info h3 {
    margin-bottom: var(--spacing-xs);
}

.specialist-title {
    color: var(--text-gray);
    font-size: 0.9375rem;
    margin-bottom: var(--spacing-sm);
}

.specialist-experience,
.specialist-category {
    font-size: 0.875rem;
    color: var(--text-light);
    margin-bottom: var(--spacing-xs);
}

.specialist-info .btn {
    margin-top: var(--spacing-md);
    width: 100%;
}

/* Wide layout — для филиалов с одним специалистом (заполняет пустоту справа) */
.specialist-card.specialist-card-wide {
    display: flex;
    gap: var(--spacing-xl);
    max-width: 1100px;
    margin: 0 auto;
    align-items: stretch;
}

.specialist-card.specialist-card-wide .specialist-image {
    flex: 0 0 360px;
    height: auto;
    min-height: 460px;
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.specialist-card.specialist-card-wide .specialist-info {
    flex: 1;
    padding: var(--spacing-xl);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.specialist-card.specialist-card-wide .specialist-info h3 {
    font-size: 1.625rem;
    margin-bottom: var(--spacing-sm);
}

.specialist-card.specialist-card-wide .specialist-title {
    font-size: 1.0625rem;
    margin-bottom: var(--spacing-md);
}

.specialist-card.specialist-card-wide .specialist-experience,
.specialist-card.specialist-card-wide .specialist-category {
    font-size: 0.9375rem;
    margin-bottom: var(--spacing-xs);
}

.specialist-preview-text {
    font-size: 1rem;
    line-height: 1.65;
    color: var(--text-gray);
    margin-top: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}

.specialist-card-wide-actions {
    display: flex;
    gap: var(--spacing-md);
    flex-wrap: wrap;
    margin-top: var(--spacing-sm);
}

.specialist-card.specialist-card-wide .specialist-card-wide-actions .btn {
    width: auto;
    margin-top: 0;
    flex: 1;
    min-width: 200px;
}

@media (max-width: 900px) {
    .specialist-card.specialist-card-wide {
        flex-direction: column;
        max-width: 560px;
    }
    .specialist-card.specialist-card-wide .specialist-image {
        flex: 0 0 auto;
        height: 420px;
        min-height: 0;
    }
    .specialist-card.specialist-card-wide .specialist-info {
        padding: var(--spacing-lg);
    }
    .specialist-card-wide-actions {
        flex-direction: column;
    }
    .specialist-card.specialist-card-wide .specialist-card-wide-actions .btn {
        width: 100%;
    }
}

/* ================================
   Schedule Section
   ================================ */
.schedule {
    background: var(--bg-light);
}

.calendar-info {
    background: var(--accent-color);
    padding: var(--spacing-lg);
    border-radius: var(--radius-md);
    margin-bottom: var(--spacing-xl);
    text-align: center;
}

.schedule-filters {
    display: flex;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-lg);
    flex-wrap: wrap;
    justify-content: center;
}

.filter-btn {
    padding: 0.75rem 1.5rem;
    background: var(--white);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-full);
    cursor: pointer;
    font-weight: 500;
    transition: var(--transition-fast);
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

.schedule-table {
    background: var(--white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

thead {
    background: var(--primary-color);
    color: var(--white);
}

th,
td {
    padding: var(--spacing-md);
    text-align: left;
}

th {
    font-weight: 600;
}

tbody tr {
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition-fast);
}

tbody tr:hover {
    background: var(--accent-color);
}

tbody tr:last-child {
    border-bottom: none;
}

/* Availability Legend */
.availability-legend {
    display: flex;
    gap: var(--spacing-lg);
    justify-content: center;
    margin-bottom: var(--spacing-xl);
    padding: var(--spacing-md);
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.legend-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    font-size: 0.9375rem;
}

.legend-dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    flex-shrink: 0;
}

.legend-dot.available {
    background: #10b981;
}

.legend-dot.limited {
    background: #f59e0b;
}

.legend-dot.full {
    background: #ef4444;
}

/* Specialist Block */
.specialist-block {
    margin-bottom: var(--spacing-xxl);
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);
    box-shadow: var(--shadow-md);
}

.specialist-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-lg);
    padding-bottom: var(--spacing-lg);
    border-bottom: 2px solid var(--border-color);
}

.specialist-header h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin: 0;
}

.specialist-category {
    color: var(--text-gray);
    font-size: 0.9375rem;
    margin-top: 0.25rem;
}

.specialist-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    white-space: nowrap;
}

/* Courses Grid */
.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--spacing-lg);
}

/* Course Card */
.course-card {
    background: var(--bg-light);
    border-radius: var(--radius-md);
    padding: var(--spacing-lg);
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

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

/* Course Dates */
.course-dates {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    font-weight: 600;
    color: var(--text-dark);
    font-size: 1rem;
}

.date-icon {
    width: 20px;
    height: 20px;
    color: var(--primary-color);
    flex-shrink: 0;
}

/* Course Details */
.course-details {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    flex: 1;
}

.course-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--spacing-xs);
}

.course-age {
    font-size: 0.875rem;
    color: var(--text-gray);
    background: var(--white);
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-sm);
}

.course-hours {
    font-size: 0.875rem;
    color: var(--text-gray);
    font-weight: 500;
}

/* Availability Indicator */
.availability-indicator {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.availability-bar {
    width: 100%;
    height: 8px;
    background: #e5e7eb;
    border-radius: var(--radius-full);
    overflow: hidden;
    position: relative;
}

.availability-fill {
    height: 100%;
    border-radius: var(--radius-full);
    transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
    width: 0;
    position: relative;
    overflow: hidden;
}

/* Animated gradient for fill */
.availability-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% {
        left: -100%;
    }

    100% {
        left: 100%;
    }
}

/* Availability States */
.availability-indicator.available .availability-fill {
    background: linear-gradient(90deg, #10b981, #059669);
}

.availability-indicator.limited .availability-fill {
    background: linear-gradient(90deg, #f59e0b, #d97706);
}

.availability-indicator.full .availability-fill {
    background: linear-gradient(90deg, #ef4444, #dc2626);
}

.availability-text {
    font-size: 0.875rem;
    font-weight: 600;
    text-align: center;
}

.availability-indicator.available .availability-text {
    color: #10b981;
}

.availability-indicator.limited .availability-text {
    color: #f59e0b;
}

.availability-indicator.full .availability-text {
    color: #ef4444;
}

/* Course Buttons */
.course-btn {
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    text-align: center;
}

.btn-success {
    background: linear-gradient(135deg, #10b981, #059669);
    color: var(--white);
}

.btn-success:hover {
    background: linear-gradient(135deg, #059669, #047857);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
}

.btn-warning {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: var(--white);
}

.btn-warning:hover {
    background: linear-gradient(135deg, #d97706, #b45309);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.4);
}

.btn-disabled {
    background: #9ca3af;
    color: var(--white);
    cursor: not-allowed;
    opacity: 0.6;
}

.btn-disabled:hover {
    transform: none;
    box-shadow: none;
}

/* ================================
   Schedule Cards Section (New Design)
   ================================ */
.schedule-cards {
    background: var(--bg-light);
}

.schedule-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-xl);
    padding: var(--spacing-md) var(--spacing-lg);
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.schedule-legend {
    display: flex;
    gap: var(--spacing-lg);
    align-items: center;
}

.schedule-legend .legend-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    font-size: 0.9375rem;
    color: var(--text-dark);
}

/* Status Indicators in Legend */
.status-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.status-indicator.status-open {
    background: #10b981;
}

.status-indicator.status-open.pulse {
    animation: pulse-green 2s infinite;
}

.status-indicator.status-limited {
    background: #f59e0b;
}

.status-indicator.status-full {
    background: #ef4444;
}

@keyframes pulse-green {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    }

    50% {
        box-shadow: 0 0 0 8px rgba(16, 185, 129, 0);
    }
}

.schedule-filter {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.schedule-filter label {
    font-size: 0.875rem;
    color: var(--text-gray);
    font-weight: 500;
}

.filter-select {
    padding: 0.5rem 2rem 0.5rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 0.9375rem;
    background: var(--white);
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    transition: var(--transition-fast);
}

.filter-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(184, 48, 47, 0.1);
}

/* Months Accordion */
.months-accordion {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.month-section {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.month-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 1rem 1.5rem;
    background: var(--white);
    border: none;
    cursor: pointer;
    transition: background 0.2s ease;
}

.month-header:hover {
    background: var(--accent-color);
}

.month-header.expanded {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--white);
}

.month-name {
    font-size: 1.125rem;
    font-weight: 700;
}

.month-count {
    font-size: 0.875rem;
    color: var(--text-gray);
    margin-left: auto;
    margin-right: 1rem;
}

.month-header.expanded .month-count {
    color: rgba(255, 255, 255, 0.8);
}

.month-header .chevron {
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.month-header.expanded .chevron {
    transform: rotate(180deg);
}

.month-content {
    display: none;
    padding: var(--spacing-lg);
    background: #fafafa;
}

.month-content.show {
    display: block;
}

/* Courses Row */
.courses-row {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: var(--spacing-lg);
}

/* Course Card New */
.course-card-new {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: var(--spacing-lg);
    box-shadow: var(--shadow-sm);
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.course-card-new:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.course-card-new.hidden {
    display: none;
}

/* Course Dates Big */
.course-dates-big {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.course-dates-big .date-range {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-color);
    line-height: 1.2;
}

.course-dates-big .date-month {
    font-size: 0.9375rem;
    color: var(--text-gray);
    font-weight: 500;
}

/* Course Info Block */
.course-info-block {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
}

.course-specialist {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
}

.course-meta {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
}

.course-category {
    display: inline-block;
    padding: 0.25rem 0.625rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
}

.course-category.preschool {
    background: #dbeafe;
    color: #1e40af;
}

.course-category.school {
    background: #fef3c7;
    color: #92400e;
}

.course-duration {
    font-size: 0.8125rem;
    color: var(--text-gray);
}

/* Course Status Block */
.course-status-block {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-md);
    margin-top: auto;
    padding-top: var(--spacing-md);
    border-top: 1px solid var(--border-color);
}

/* Status Badges */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: 0.8125rem;
    font-weight: 600;
}

.status-badge.status-open {
    background: rgba(16, 185, 129, 0.1);
    color: #059669;
}

.status-badge.status-limited {
    background: rgba(245, 158, 11, 0.1);
    color: #d97706;
}

.status-badge.status-full {
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
}

/* Animated Dot */
.status-dot-animated {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10b981;
    animation: pulse-dot 1.5s ease-in-out infinite;
}

@keyframes pulse-dot {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.5);
        opacity: 0.7;
    }
}

.status-badge.status-limited .status-dot-animated {
    background: #f59e0b;
    animation: none;
}

.status-dot-static {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.status-badge.status-limited .status-dot-static {
    background: #f59e0b;
}

.status-badge.status-full .status-dot-static {
    background: #ef4444;
}

/* Course Buttons New */
.course-btn-new {
    padding: 0.625rem 1.25rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.875rem;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.course-btn-new.btn-book {
    background: linear-gradient(135deg, #10b981, #059669);
    color: var(--white);
}

.course-btn-new.btn-book:hover {
    background: linear-gradient(135deg, #059669, #047857);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.course-btn-new.btn-warning {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: var(--white);
}

.course-btn-new.btn-warning:hover {
    background: linear-gradient(135deg, #d97706, #b45309);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.course-btn-new.btn-disabled {
    background: #e5e7eb;
    color: #9ca3af;
    cursor: not-allowed;
}

/* Schedule Footer */
.schedule-footer {
    margin-top: var(--spacing-xl);
    text-align: center;
}

.schedule-link {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition-fast);
}

.schedule-link:hover {
    color: var(--primary-dark);
}

.schedule-link svg {
    transition: transform 0.2s ease;
}

.schedule-link:hover svg {
    transform: translateX(4px);
}

/* Schedule Cards Responsive */
@media (max-width: 992px) {
    .schedule-controls {
        flex-direction: column;
        align-items: stretch;
    }

    .schedule-legend {
        justify-content: center;
    }

    .schedule-filter {
        justify-content: center;
    }

    .courses-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .month-header {
        padding: 0.875rem 1rem;
    }

    .month-name {
        font-size: 1rem;
    }

    .month-content {
        padding: var(--spacing-md);
    }

    .course-card-new {
        padding: var(--spacing-md);
    }

    .course-dates-big .date-range {
        font-size: 1.25rem;
    }

    .course-status-block {
        flex-direction: column;
        align-items: stretch;
        gap: var(--spacing-sm);
    }

    .status-badge {
        justify-content: center;
    }

    .course-btn-new {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 550px) {
    .schedule-legend {
        flex-direction: column;
        gap: var(--spacing-sm);
        align-items: flex-start;
    }

    .month-count {
        display: none;
    }
}

/* Legacy Month Tabs (keep for backwards compatibility) */
.month-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: var(--spacing-lg);
    overflow-x: auto;
    padding-bottom: 0.5rem;
    -webkit-overflow-scrolling: touch;
}

.month-tab {
    padding: 0.75rem 1.25rem;
    background: var(--white);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.9375rem;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    color: var(--text-dark);
}

.month-tab:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.month-tab.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white);
}

/* Courses Table */
.courses-table-wrapper {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

.courses-table {
    width: 100%;
    border-collapse: collapse;
}

.courses-table thead {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
}

.courses-table th {
    padding: 1rem 1.25rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.courses-table tbody tr {
    border-bottom: 1px solid var(--border-color);
    transition: background 0.2s ease;
}

.courses-table tbody tr:last-child {
    border-bottom: none;
}

.courses-table tbody tr:hover {
    background: var(--accent-color);
}

.courses-table tbody tr.hidden {
    display: none;
}

.courses-table td {
    padding: 1rem 1.25rem;
    vertical-align: middle;
    font-size: 0.9375rem;
}

.courses-table .col-dates {
    font-weight: 500;
    color: var(--text-dark);
    min-width: 120px;
}

.courses-table .col-dates strong {
    color: var(--primary-color);
    font-size: 1.125rem;
}

.courses-table .col-specialist {
    color: var(--text-dark);
    font-weight: 500;
}

.courses-table .col-hours {
    color: var(--text-gray);
    text-align: center;
}

.courses-table .col-status {
    text-align: center;
}

.courses-table .col-action {
    text-align: right;
}

/* Category Badges */
.category-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: 0.8125rem;
    font-weight: 500;
}

.category-badge.preschool {
    background: #dbeafe;
    color: #1e40af;
}

.category-badge.school {
    background: #fef3c7;
    color: #92400e;
}

.category-badge.adult {
    background: #f3e8ff;
    color: #6b21a8;
}

/* Table Buttons */
.table-btn {
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.8125rem;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.table-btn.btn-available {
    background: #10b981;
    color: var(--white);
}

.table-btn.btn-available:hover {
    background: #059669;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.table-btn.btn-limited {
    background: #f59e0b;
    color: var(--white);
}

.table-btn.btn-limited:hover {
    background: #d97706;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
}

.table-btn.btn-full {
    background: #9ca3af;
    color: var(--white);
    cursor: not-allowed;
    opacity: 0.7;
}

/* No Courses Message */
.no-courses-message {
    padding: var(--spacing-xxl);
    text-align: center;
    color: var(--text-gray);
}

.no-courses-message p {
    font-size: 1.125rem;
}

/* Schedule Footer */
.schedule-footer {
    margin-top: var(--spacing-lg);
    text-align: center;
}

.schedule-link {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition-fast);
}

.schedule-link:hover {
    color: var(--primary-dark);
}

.schedule-link svg {
    transition: transform 0.2s ease;
}

.schedule-link:hover svg {
    transform: translateX(4px);
}

/* Compact Schedule Responsive */
@media (max-width: 992px) {
    .schedule-controls {
        flex-direction: column;
        align-items: stretch;
    }

    .schedule-legend {
        justify-content: center;
    }

    .schedule-filter {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .month-tabs {
        gap: 0.25rem;
    }

    .month-tab {
        padding: 0.5rem 0.875rem;
        font-size: 0.8125rem;
    }

    .courses-table th,
    .courses-table td {
        padding: 0.75rem 0.5rem;
    }

    .courses-table .col-specialist,
    .courses-table .col-hours {
        display: none;
    }

    .courses-table th.col-specialist,
    .courses-table th.col-hours {
        display: none;
    }

    .category-badge {
        font-size: 0.75rem;
        padding: 0.2rem 0.5rem;
    }

    .table-btn {
        padding: 0.4rem 0.75rem;
        font-size: 0.75rem;
    }
}

@media (max-width: 550px) {
    .schedule-legend {
        flex-direction: column;
        gap: var(--spacing-sm);
        align-items: flex-start;
    }

    .courses-table .col-category {
        display: none;
    }

    .courses-table th.col-category {
        display: none;
    }

    .courses-table .col-dates {
        min-width: auto;
    }

    .courses-table .col-dates strong {
        font-size: 1rem;
    }
}

/* ================================
   Schedule by Specialist (New UX)
   ================================ */
.schedule-by-specialist {
    background: var(--bg-light);
    padding: var(--spacing-xxl) 0;
    position: relative;
    overflow: hidden;
}

/* Schedule Animated Background */
.schedule-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.schedule-float {
    position: absolute;
    opacity: 0.04;
    color: var(--primary-color);
}

.schedule-float svg {
    width: 100%;
    height: 100%;
}

.schedule-calendar {
    width: 180px;
    height: 180px;
    top: 5%;
    left: 3%;
    transform: rotate(-15deg);
    animation: schedule-float-1 14s ease-in-out infinite;
}

.schedule-clock {
    width: 140px;
    height: 140px;
    top: 15%;
    right: 3%;
    transform: rotate(12deg);
    animation: schedule-float-2 12s ease-in-out infinite;
    animation-delay: 2s;
}

.schedule-check {
    width: 120px;
    height: 120px;
    bottom: 25%;
    left: 2%;
    transform: rotate(-10deg);
    animation: schedule-float-3 16s ease-in-out infinite;
    animation-delay: 4s;
}

.schedule-calendar-2 {
    width: 160px;
    height: 160px;
    bottom: 8%;
    right: 2%;
    transform: rotate(18deg);
    animation: schedule-float-1 13s ease-in-out infinite;
    animation-delay: 6s;
}

@keyframes schedule-float-1 {

    0%,
    100% {
        transform: translateY(0) rotate(-15deg);
    }

    50% {
        transform: translateY(-20px) rotate(-10deg);
    }
}

@keyframes schedule-float-2 {

    0%,
    100% {
        transform: translateY(0) rotate(12deg);
    }

    50% {
        transform: translateY(-18px) rotate(18deg);
    }
}

@keyframes schedule-float-3 {

    0%,
    100% {
        transform: translateY(0) rotate(-10deg) scale(1);
    }

    50% {
        transform: translateY(-15px) rotate(-5deg) scale(1.03);
    }
}

.schedule-by-specialist .container {
    position: relative;
    z-index: 1;
}

/* Schedule Intro Text */
.schedule-intro {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg) var(--spacing-xl);
    margin-bottom: var(--spacing-xl);
    box-shadow: var(--shadow-sm);
    border-left: 4px solid var(--primary-color);
}

.schedule-intro-text {
    font-size: 1.0625rem;
    line-height: 1.7;
    color: var(--text-dark);
    margin: 0;
}

.schedule-legend-bar {
    display: flex;
    justify-content: center;
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-xl);
    padding: var(--spacing-md) var(--spacing-lg);
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.schedule-legend-bar .legend-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    font-size: 0.9375rem;
    color: var(--text-dark);
    font-weight: 500;
}

.specialists-schedule {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xl);
}

.specialist-schedule-block {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    border: 1px solid var(--border-color);
}

/* Horizontal divider between specialist blocks */
.specialists-schedule hr {
    border: none;
    height: 1px;
    background: linear-gradient(90deg, transparent 5%, var(--border-color) 20%, var(--primary-light) 50%, var(--border-color) 80%, transparent 95%);
    margin: 0;
}

.specialist-schedule-header {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--white);
    padding: var(--spacing-md) var(--spacing-xl);
    position: relative;
}

.specialist-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--spacing-md);
    margin-bottom: 0.125rem;
}

.specialist-name {
    font-size: 1.375rem;
    font-weight: 700;
    margin: 0;
    color: var(--white);
    line-height: 1.3;
}

.specialist-surname {
    font-size: inherit;
}

.specialist-price-tag {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1.5rem;
    border-radius: var(--radius-full);
    font-size: 1.25rem;
    font-weight: 500;
    backdrop-filter: blur(4px);
    position: absolute;
    right: var(--spacing-xl);
    top: 50%;
    transform: translateY(-50%);
}

.specialist-category-text {
    margin: 0;
    font-size: 0.9375rem;
    opacity: 0.9;
}

.specialist-location-text {
    margin: 0.4rem 0 0;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.85rem;
    opacity: 0.85;
    line-height: 1.3;
}
.specialist-location-text svg {
    flex-shrink: 0;
    opacity: 0.9;
}

/* Simple Courses Table */
.courses-table-simple {
    overflow-x: auto;
}

/* Inline course price with discount (used with course.price_html) */
.course-price-inline {
    display: block;
    margin-top: 4px;
    font-size: 0.82rem;
    line-height: 1.25;
    color: var(--primary-color);
    font-weight: 600;
}
.course-price-inline s {
    color: #999;
    font-weight: 400;
    font-size: 0.78rem;
}
.course-price-inline b {
    color: var(--primary-color);
    font-weight: 700;
}

.courses-show-more-btn {
    display: none;
}

.courses-table-simple table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

/* Fixed column widths for consistency across all tables */
.courses-table-simple th:nth-child(1),
.courses-table-simple td:nth-child(1) {
    width: 15%;
}

/* Дата */

.courses-table-simple th:nth-child(2),
.courses-table-simple td:nth-child(2) {
    width: 17%;
}

/* Возраст */

.courses-table-simple th:nth-child(3),
.courses-table-simple td:nth-child(3) {
    width: 10%;
}

/* Часы */

.courses-table-simple th:nth-child(4),
.courses-table-simple td:nth-child(4) {
    width: 17%;
}

/* Места */

.courses-table-simple th:nth-child(5),
.courses-table-simple td:nth-child(5) {
    width: 19%;
}

/* Цена */

.courses-table-simple th:nth-child(6),
.courses-table-simple td:nth-child(6) {
    width: 22%;
}

/* Запись */

.course-price-cell {
    font-size: 0.875rem;
    color: var(--text-dark);
    line-height: 1.3;
}

.courses-table-simple thead {
    background: #f8fafc;
    border-bottom: 2px solid var(--border-color);
}

.courses-table-simple th {
    padding: 1rem 1.25rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.8125rem;
    color: var(--text-gray);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.courses-table-simple tbody tr {
    border-bottom: 1px solid var(--border-color);
    transition: background 0.2s ease;
}

.courses-table-simple tbody tr:last-child {
    border-bottom: none;
}

.courses-table-simple tbody tr:hover {
    background: var(--accent-color);
}

.courses-table-simple td {
    padding: 1rem 1.25rem;
    vertical-align: middle;
    font-size: 0.9375rem;
}

.courses-table-simple .date-cell {
    font-weight: 600;
    color: var(--text-dark);
    white-space: nowrap;
}

/* Status Dots */
.status-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
}

.status-dot.status-available {
    background: #10b981;
}

.status-dot.status-available.pulse {
    animation: pulse-green 2s infinite;
}

.status-dot.status-limited {
    background: #f59e0b;
}

.status-dot.status-full {
    background: #ef4444;
}

/* Status Badges in Table */
.status-badge-available,
.status-badge-limited,
.status-badge-full {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 0.875rem;
    border-radius: var(--radius-full);
    font-size: 0.8125rem;
    font-weight: 600;
    white-space: nowrap;
}

.status-badge-available {
    background: rgba(16, 185, 129, 0.15);
    color: #059669;
}

.status-badge-available .status-dot {
    width: 8px;
    height: 8px;
    background: #10b981;
}

.status-badge-available .status-dot.pulse {
    animation: pulse-green 2s infinite;
}

.status-badge-limited {
    background: rgba(245, 158, 11, 0.15);
    color: #b45309;
}

.status-badge-limited .status-dot {
    width: 8px;
    height: 8px;
    background: #f59e0b;
    animation: pulse-yellow 2s infinite;
}

@keyframes pulse-yellow {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.7);
    }

    50% {
        box-shadow: 0 0 0 6px rgba(245, 158, 11, 0);
    }
}

.status-badge-full {
    background: #ef4444;
    color: var(--white);
}

.status-badge-full .status-dot {
    width: 8px;
    height: 8px;
    background: rgba(255, 255, 255, 0.8);
}

/* Row Buttons */
.row-btn {
    padding: 0.5rem 1.25rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.875rem;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.row-btn.btn-success {
    background: linear-gradient(135deg, #10b981, #059669);
    color: var(--white);
}

.row-btn.btn-success:hover {
    background: linear-gradient(135deg, #059669, #047857);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.row-btn.btn-warning {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: var(--white);
}

.row-btn.btn-warning:hover {
    background: linear-gradient(135deg, #d97706, #b45309);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.row-btn.btn-disabled {
    background: #e5e7eb;
    color: #9ca3af;
    cursor: not-allowed;
}

.row-btn.btn-disabled:hover {
    transform: none;
    box-shadow: none;
}

.row-btn.btn-expired {
    background: linear-gradient(135deg, #6b7280, #4b5563);
    color: var(--white);
    cursor: not-allowed;
    opacity: 0.85;
}

.row-btn.btn-expired:hover {
    transform: none;
    box-shadow: none;
}

/* Status badge for expired courses */
.status-badge-expired {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    background: rgba(107, 114, 128, 0.15);
    color: #6b7280;
}

.status-badge-expired .status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #6b7280;
}

/* Schedule by Specialist Responsive */
@media (max-width: 992px) {
    .schedule-legend-bar {
        flex-wrap: wrap;
        gap: var(--spacing-md);
    }
}

@media (max-width: 768px) {
    .specialist-schedule-header {
        padding: var(--spacing-md) var(--spacing-lg);
    }

    .specialist-name {
        font-size: 1.125rem;
    }

    .specialist-price-tag {
        position: static;
        transform: none;
        font-size: 1.125rem;
        padding: 0.375rem 1rem;
    }

    .courses-table-simple th,
    .courses-table-simple td {
        padding: 0.75rem 0.75rem;
        font-size: 0.8125rem;
    }

    .row-btn {
        padding: 0.4rem 0.875rem;
        font-size: 0.75rem;
    }
}

@media (max-width: 550px) {
    .schedule-legend-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--spacing-sm);
    }

    .specialist-title-row {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--spacing-sm);
    }

    .specialist-price-tag {
        align-self: flex-start;
    }

    .specialist-schedule-header {
        padding: var(--spacing-sm) var(--spacing-md);
    }

    /* Auto-layout для лучшего распределения колонок */
    .courses-table-simple table {
        table-layout: auto;
    }

    /* Сбросить фиксированные ширины */
    .courses-table-simple th:nth-child(1),
    .courses-table-simple td:nth-child(1),
    .courses-table-simple th:nth-child(2),
    .courses-table-simple td:nth-child(2),
    .courses-table-simple th:nth-child(4),
    .courses-table-simple td:nth-child(4),
    .courses-table-simple th:nth-child(5),
    .courses-table-simple td:nth-child(5),
    .courses-table-simple th:nth-child(6),
    .courses-table-simple td:nth-child(6) {
        width: auto;
    }

    .courses-table-simple th:nth-child(3),
    .courses-table-simple td:nth-child(3) {
        display: none;
    }

    .course-price-cell {
        white-space: normal;
        font-size: 0.75rem;
    }

    .courses-table-simple th,
    .courses-table-simple td {
        padding: 0.5rem 0.375rem;
        font-size: 0.75rem;
    }

    .courses-table-simple .date-cell {
        font-size: 0.8125rem;
    }

    /* Бейджи и кнопки — разрешить перенос */
    .status-badge-available,
    .status-badge-limited,
    .status-badge-full {
        white-space: normal;
        font-size: 0.75rem;
        padding: 0.25rem 0.625rem;
    }

    .row-btn {
        padding: 0.375rem 0.625rem;
        font-size: 0.6875rem;
        white-space: normal;
        text-align: center;
    }
}

/* Schedule: Card layout for phones */
@media (max-width: 480px) {

    /* Breadcrumbs: clear fixed header (~70px) + spacing, compact gap to heading */
    .breadcrumbs {
        padding-top: 80px;
        padding-bottom: var(--spacing-xs);
    }

    .breadcrumbs-inner {
        margin-bottom: var(--spacing-xs);
    }

    /* Specialist header: name+desc left 70%, price right 30% */
    .specialist-schedule-header {
        padding: 0.75rem 1rem;
    }

    .specialist-title-row {
        flex-direction: row;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .specialist-name {
        font-size: 0.875rem;
        flex: 1 1 0;
        min-width: 0;
        line-height: 1.3;
    }

    .specialist-surname {
        font-size: 1.125rem;
    }

    .specialist-price-tag {
        position: static;
        transform: none;
        font-size: 0.875rem;
        padding: 0.25rem 0.75rem;
        flex-shrink: 0;
        align-self: center;
        white-space: nowrap;
    }

    .specialist-category-text {
        font-size: 0.8125rem;
    }

    /* Hide table header */
    .courses-table-simple thead {
        display: none;
    }

    /* Make table elements block-level */
    .courses-table-simple table,
    .courses-table-simple tbody,
    .courses-table-simple tr,
    .courses-table-simple td {
        display: block;
        width: 100%;
    }

    /* Reset fixed column widths */
    .courses-table-simple td:nth-child(1),
    .courses-table-simple td:nth-child(2),
    .courses-table-simple td:nth-child(3),
    .courses-table-simple td:nth-child(4),
    .courses-table-simple td:nth-child(5),
    .courses-table-simple td:nth-child(6) {
        width: 100%;
    }

    /* Show Hours column (was hidden at 550px) */
    .courses-table-simple td:nth-child(3) {
        display: flex;
    }

    /* Each row becomes a card */
    .courses-table-simple tbody tr {
        padding: 1rem;
        margin-bottom: 0.75rem;
        border: 1px solid var(--border-color);
        border-radius: var(--radius-md);
        background: var(--white);
        border-bottom: 1px solid var(--border-color);
    }

    .courses-table-simple tbody tr:last-child {
        margin-bottom: 0;
    }

    /* Remove table-level overflow */
    .courses-table-simple {
        overflow-x: visible;
    }

    /* Each cell becomes a flex row with label */
    .courses-table-simple td {
        padding: 0.375rem 0;
        text-align: left;
        font-size: 0.875rem;
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }

    /* Label from data-label attribute */
    .courses-table-simple td::before {
        content: attr(data-label);
        font-weight: 600;
        font-size: 0.75rem;
        color: var(--text-gray);
        text-transform: uppercase;
        letter-spacing: 0.3px;
        min-width: 4.5rem;
        flex-shrink: 0;
    }

    /* Date cell: prominent at top, no label */
    .courses-table-simple td.date-cell {
        font-size: 1rem;
        font-weight: 700;
        padding-bottom: 0.5rem;
        margin-bottom: 0.5rem;
        border-bottom: 1px solid var(--border-color);
        color: var(--text-dark);
    }

    .courses-table-simple td.date-cell::before {
        display: none;
    }

    /* Action cell: full width button, no label */
    .courses-table-simple td:nth-child(6) {
        margin-top: 0.75rem;
        padding-top: 0.75rem;
        border-top: 1px solid var(--border-color);
    }

    .courses-table-simple td:nth-child(6)::before {
        display: none;
    }

    /* Full-width button for easy tap */
    .row-btn {
        width: 100%;
        padding: 0.75rem 1rem;
        font-size: 0.9375rem;
        text-align: center;
        min-height: 44px;
        white-space: nowrap;
        border-radius: var(--radius-md);
    }

    /* Status badges: comfortable size */
    .status-badge-available,
    .status-badge-limited,
    .status-badge-full {
        white-space: nowrap;
        font-size: 0.8125rem;
        padding: 0.375rem 0.875rem;
    }

    /* Hide rows 4+ in schedule tables on mobile */
    .courses-table-simple:not(.courses-expanded) tbody tr:nth-child(n+4) {
        display: none;
    }

    /* "Show more" button */
    .courses-show-more-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.5rem;
        width: 100%;
        padding: 0.75rem 1rem;
        margin-top: 0.75rem;
        background: var(--bg-light);
        border: 1px solid var(--border-color);
        border-radius: var(--radius-md);
        color: var(--primary-color);
        font-size: 0.9375rem;
        font-weight: 600;
        cursor: pointer;
        transition: var(--transition-base);
    }

    .courses-show-more-btn:hover {
        background: var(--primary-color);
        color: var(--white);
        border-color: var(--primary-color);
    }

    .courses-show-more-btn .btn-arrow {
        transition: transform 0.3s ease;
    }

    .courses-show-more-btn.expanded .btn-arrow {
        transform: rotate(180deg);
    }
}

/* ================================
   Prices Section
   ================================ */
.prices-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-xl);
    margin-top: var(--spacing-xl);
}

.price-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);
    box-shadow: var(--shadow-md);
    transition: var(--transition-base);
    position: relative;
}

.price-card.featured {
    border: 3px solid var(--primary-color);
    transform: scale(1.05);
}

.price-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.price-card.featured:hover {
    transform: translateY(-8px) scale(1.05);
}

.price-label {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-color);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 600;
}

.price-header {
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.price-badge {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: var(--spacing-md) 0;
}

.price-features {
    list-style: none;
    margin-bottom: var(--spacing-lg);
}

.price-features li {
    padding: var(--spacing-sm) 0;
    padding-left: 1.75rem;
    position: relative;
    color: var(--text-gray);
}

.price-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--success-color);
    font-weight: bold;
    font-size: 1.125rem;
}

/* ================================
   Reviews Section
   ================================ */
.reviews {
    background: var(--bg-light);
}

.reviews-slider {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-xl);
}

.review-card {
    background: var(--white);
    padding: var(--spacing-xl);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.review-rating {
    color: #FFB800;
    font-size: 1.25rem;
    margin-bottom: var(--spacing-md);
}

.review-text {
    color: var(--text-gray);
    line-height: 1.7;
    margin-bottom: var(--spacing-lg);
    font-style: italic;
}

.review-author {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.review-author strong {
    color: var(--text-dark);
}

.review-author span {
    color: var(--text-light);
    font-size: 0.875rem;
}

/* ================================
   Contacts Section
   ================================ */
.contacts-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
}

.contact-info h3 {
    margin-bottom: var(--spacing-lg);
}

.contact-item {
    display: flex;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
    align-items: flex-start;
}

.contact-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.contact-item strong {
    display: block;
    margin-bottom: 0.25rem;
}

.social-links {
    display: flex;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-lg);
}

.social-link {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--primary-color);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    transition: var(--transition-fast);
}

.social-link:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
}

.contact-form-wrapper h3 {
    margin-bottom: var(--spacing-sm);
}

.contact-form-wrapper p {
    color: var(--text-gray);
    margin-bottom: var(--spacing-lg);
}

.quick-form {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.quick-form input,
.quick-form textarea {
    padding: 0.875rem;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-family: var(--font-secondary);
    font-size: 0.9375rem;
    transition: var(--transition-fast);
}

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

/* ================================
   Footer
   ================================ */
/* ================================
   Footer - Modern Design
   ================================ */
.footer {
    background: #f7f8fc;
    color: #333;
    padding: 3rem 0 0;
}

.footer-main {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr 1.2fr;
    gap: 2.5rem;
    padding-bottom: 2.5rem;
    border-bottom: 1px solid #E0E0E0;
}

/* Logo Column */
.footer-logo-column {
    padding-right: 1rem;
}

.footer-logo {
    display: inline-block;
    margin-bottom: 1rem;
}

.footer-logo img {
    height: 50px;
    width: auto;
}

.footer-copyright {
    color: #333;
    font-size: 0.875rem;
    font-weight: 600;
    margin: 0.75rem 0;
}

.footer-description {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 1.5rem;
}

.footer-cta-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

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

.footer-btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(46, 124, 192, 0.3);
}

/* Footer Columns */
.footer-column-title {
    font-size: 1rem;
    font-weight: 700;
    color: #222;
    margin-bottom: 1.25rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

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

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: #666;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
    display: inline-block;
}

.footer-links a:hover {
    color: var(--primary-color);
}

/* Contact Column */
.footer-contacts {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-contact-item {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    color: #666;
    font-size: 0.9rem;
    line-height: 1.5;
}

.footer-contact-item span {
    white-space: nowrap;
}

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

.footer-contact-item a {
    color: #666;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-contact-item a:hover {
    color: var(--primary-color);
}

/* Social Media Icons */
.footer-social-icons {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
}

.footer-social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.footer-social-icon:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(46, 124, 192, 0.3);
}

.footer-social-icon[aria-label="Max"]:hover {
    background: #7B61FF;
    color: white;
}

/* Footer Bottom - Legal */
.footer-bottom {
    padding: 1.5rem 0;
}

.footer-privacy-notice {
    text-align: center;
    max-width: 100%;
    margin: 0 auto;
}

.footer-privacy-notice p {
    color: #888;
    font-size: 0.75rem;
    line-height: 1.6;
    margin: 0 0 0.5rem 0;
}

.footer-privacy-notice p:last-child {
    margin-bottom: 0;
}

.footer-privacy-notice a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-privacy-notice a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* Responsive Footer */
@media (max-width: 992px) {
    .footer-main {
        grid-template-columns: 1fr 1fr 1fr;
        gap: 2rem;
    }

    .footer-logo-column {
        grid-column: 1 / -1;
        padding-right: 0;
    }
}

@media (max-width: 768px) {
    .footer-main {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }

    .footer-privacy-notice {
        text-align: left;
    }
}

@media (max-width: 550px) {
    .footer {
        padding: 2rem 0 0;
    }

    .footer-main {
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
        padding-bottom: 2rem;
    }

    .footer-logo-column {
        grid-column: 1 / -1;
        text-align: center;
    }

    .footer-logo {
        margin: 0 auto 1rem;
    }

    .footer-cta-buttons {
        align-items: center;
    }

    .footer-btn {
        width: 100%;
        max-width: 300px;
    }

    .footer-social-icons {
        justify-content: center;
    }
}

/* ================================
   Modal
   ================================ */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}

.modal-content {
    position: relative;
    background: var(--white);
    border-radius: var(--radius-lg);
    max-width: 800px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-xl);
    padding: 10px 20px;
}

.modal-close {
    position: absolute;
    top: var(--spacing-md);
    right: var(--spacing-md);
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: var(--text-gray);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition-fast);
}

.modal-close:hover {
    background: var(--bg-light);
    color: var(--text-dark);
}

.modal-header {
    padding: var(--spacing-xl);
    border-bottom: 1px solid var(--border-color);
}

.modal-header h2 {
    margin-bottom: var(--spacing-lg);
}

.modal-body {
    padding: var(--spacing-xl);
}

.booking-steps {
    display: flex;
    justify-content: space-between;
    gap: var(--spacing-sm);
}

.step {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    flex: 1;
    opacity: 0.5;
}

.step.active {
    opacity: 1;
}

.step-number {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--border-color);
    color: var(--text-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    transition: var(--transition-fast);
}

.step.active .step-number {
    background: var(--primary-color);
    color: var(--white);
}

.step-label {
    font-size: 0.875rem;
    color: var(--text-gray);
}

.booking-step-content {
    display: none;
}

.booking-step-content.active {
    display: block;
}

.booking-step-content h3 {
    margin-bottom: var(--spacing-lg);
}

.appointment-types {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}

.appointment-type-card {
    cursor: pointer;
}

.appointment-type-card input {
    display: none;
}

.type-card-content {
    background: var(--white);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: var(--spacing-lg);
    text-align: center;
    transition: var(--transition-fast);
}

.appointment-type-card:hover .type-card-content {
    border-color: var(--primary-color);
}

.appointment-type-card input:checked+.type-card-content {
    border-color: var(--primary-color);
    background: var(--accent-color);
}

.appointment-type-card.disabled {
    cursor: not-allowed;
    pointer-events: none;
}

.appointment-type-card.disabled .type-card-content {
    background: #f0f0f0;
    border-color: #e0e0e0;
    opacity: 0.5;
}

.appointment-type-card.disabled .type-icon {
    filter: grayscale(1);
}

.type-icon {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-sm);
}

.type-card-content h4 {
    margin-bottom: var(--spacing-xs);
}

.type-card-content p {
    font-size: 0.875rem;
    color: var(--text-gray);
}

.specialists-list,
.specialists-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-lg);
    max-height: 380px;
    overflow-y: auto;
}

.specialist-option {
    cursor: pointer;
}

.specialist-option input {
    display: none;
}

.specialist-option-content {
    background: var(--white);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: var(--spacing-sm) var(--spacing-md);
    transition: var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-md);
}

.specialist-option:hover .specialist-option-content {
    border-color: var(--primary-color);
}

.specialist-option input:checked+.specialist-option-content {
    border-color: var(--primary-color);
    background: var(--accent-color);
}

.specialist-info-left {
    flex: 1;
}

.specialist-info-left strong {
    display: block;
    margin-bottom: 0.25rem;
}

.specialist-info-left p {
    margin: 0;
    font-size: 0.875rem;
    color: var(--text-gray);
}

.specialist-price-right {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 1.125rem;
    white-space: nowrap;
}

.specialist-price {
    color: var(--primary-color);
    font-weight: 600;
    margin-top: var(--spacing-xs);
    display: block;
}

.datetime-picker {
    display: grid;
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
}

.date-picker label,
.time-slots label {
    display: block;
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
}

.date-picker input {
    width: 100%;
    padding: 0.875rem;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 0.9375rem;
}

.time-slots-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-sm);
}

.time-slot {
    padding: 0.875rem;
    background: var(--white);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-weight: 500;
    transition: var(--transition-fast);
}

.time-slot:hover {
    border-color: var(--primary-color);
}

.time-slot.selected {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

.time-slot.disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.booking-form {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.form-group label {
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    padding: 0.7rem;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-family: var(--font-secondary);
    font-size: 0.9375rem;
    transition: var(--transition-fast);
}

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

.checkbox-label {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    cursor: pointer;
    font-size: 14px;
    font-weight: 400;
}

.checkbox-label input {
    width: auto;
}

/* Consent checkbox for all forms */
.consent-group {
    margin-top: 1rem;
    margin-bottom: 0.5rem;
    text-align: left;
}

.consent-label {
    display: flex !important;
    flex-direction: row !important;
    align-items: flex-start;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.4;
    color: var(--text-gray);
    text-align: left;
}

.consent-label input[type="checkbox"] {
    width: 16px !important;
    height: 16px !important;
    min-width: 16px;
    margin-top: 2px;
    cursor: pointer;
    accent-color: var(--primary-color);
    flex-shrink: 0;
}

.consent-label a {
    color: var(--primary-color);
    text-decoration: none;
}

.consent-label a:hover {
    text-decoration: underline;
}

.booking-summary {
    background: var(--accent-color);
    padding: var(--spacing-lg);
    border-radius: var(--radius-md);
    margin: var(--spacing-lg) 0;
}

/* Compact form for step 4 */
.booking-step-content[data-step="4"] h3 {
    margin-bottom: 0.5rem;
}

.booking-step-content[data-step="4"] .booking-form {
    gap: 0.5rem;
}

.booking-step-content[data-step="4"] .form-group input,
.booking-step-content[data-step="4"] .form-group textarea {
    padding: 0.85rem 0.65rem;
    font-size: 0.875rem;
}

.booking-step-content[data-step="4"] .checkbox-label {
    font-size: 14px;
    font-weight: 400;
}

.booking-step-content[data-step="4"] .modal-actions {
    margin-top: 0.5rem;
    gap: 0.5rem;
}

/* Email validation styles */
.booking-step-content[data-step="4"] input[type="email"]:invalid:not(:placeholder-shown) {
    border-color: #dc3545;
}

.booking-step-content[data-step="4"] input[type="email"]:valid:not(:placeholder-shown) {
    border-color: #28a745;
}

.booking-summary-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 2px solid var(--primary-color);
    border-radius: var(--radius-md);
    padding: 0.5rem 1.25rem;
    margin-bottom: 0.5rem;
}

.booking-summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.4rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.booking-summary-item:last-child {
    border-bottom: none;
}

.summary-label {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.85rem;
}

.summary-value {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.9rem;
    text-align: right;
}

/* Form row with 3 columns */
.form-row-three {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.form-row-three .form-group {
    margin: 0;
}

.course-dates-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-lg);
    max-height: 420px;
    overflow-y: auto;
    padding-right: 4px;
}

/* Custom scrollbar for course dates grid */
.course-dates-grid::-webkit-scrollbar {
    width: 6px;
}

.course-dates-grid::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.course-dates-grid::-webkit-scrollbar-thumb {
    background: #b91c1c;
    border-radius: 10px;
}

.course-dates-grid::-webkit-scrollbar-thumb:hover {
    background: #991b1b;
}

.course-date-card {
    background: var(--white);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: var(--spacing-md);
    cursor: pointer;
    transition: var(--transition-fast);
}

.course-date-card:hover:not(.disabled) {
    border-color: var(--primary-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.course-date-card.selected {
    border-color: var(--primary-color);
    background: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(185, 28, 28, 0.1);
}

.course-date-card.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #f5f5f5;
}

.course-date-card.hidden {
    display: none;
}

.course-date-header {
    margin-bottom: var(--spacing-sm);
}

.course-date-range {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.course-date-category {
    font-size: 0.8125rem;
    color: var(--text-gray);
}

.course-date-places {
    display: flex;
    align-items: center;
}

.places-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: 16px;
    font-size: 0.8125rem;
    font-weight: 500;
}

.places-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    display: inline-block;
}

.places-available {
    background: #d1fae5;
    color: #065f46;
}

.places-available .places-dot {
    background: #10b981;
    animation: pulse-green 2s infinite;
}

.places-limited {
    background: #fef3c7;
    color: #92400e;
}

.places-limited .places-dot {
    background: #f59e0b;
}

.places-full {
    background: #fee2e2;
    color: #991b1b;
}

.places-full .places-dot {
    background: #ef4444;
}

.places-expired {
    background: #e5e7eb;
    color: #6b7280;
}

.places-expired .places-dot {
    background: #9ca3af;
}

@keyframes pulse-green {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    }

    50% {
        box-shadow: 0 0 0 6px rgba(16, 185, 129, 0);
    }
}

@media (max-width: 768px) {
    .course-dates-grid {
        grid-template-columns: 1fr;
    }
}

.no-courses-message {
    text-align: center;
    padding: var(--spacing-xl) var(--spacing-lg);
    background: #f9fafb;
    border: 2px dashed var(--border-color);
    border-radius: var(--radius-md);
    margin-bottom: var(--spacing-lg);
}

.no-courses-icon {
    color: var(--text-gray);
    margin-bottom: var(--spacing-md);
    opacity: 0.5;
}

.no-courses-icon svg {
    display: inline-block;
}

.no-courses-message h4 {
    color: var(--text-dark);
    font-size: 1.125rem;
    margin: 0 0 var(--spacing-sm) 0;
    font-weight: 600;
}

.no-courses-message p {
    color: var(--text-gray);
    font-size: 0.9375rem;
    margin: 0;
    line-height: 1.6;
}

.booking-summary-block {
    background: #f8f9fa;
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    margin-bottom: var(--spacing-md);
    border: 1px solid var(--border-color);
}

.booking-summary-block h4 {
    margin: 0 0 var(--spacing-sm) 0;
    font-size: 1.125rem;
    color: var(--text-dark);
}

.summary-item {
    display: flex;
    justify-content: space-between;
    padding: var(--spacing-xs) 0;
    border-bottom: 1px solid var(--border-color);
}

.summary-item:last-child {
    border-bottom: none;
}

.summary-label {
    color: var(--text-gray);
    font-size: 0.9375rem;
}

.summary-value {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.9375rem;
}

.modal-actions {
    display: flex;
    gap: var(--spacing-md);
    margin-top: var(--spacing-md);
}

.modal-actions .btn {
    flex: 1;
}

.booking-success {
    text-align: center;
    padding: var(--spacing-xl);
}

.success-icon {
    width: 80px;
    height: 80px;
    background: var(--success-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    margin: 0 auto var(--spacing-lg);
}

/* ================================
   Page Header
   ================================ */
.page-header {
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--white) 100%);
    padding: var(--spacing-xxl) 0;
    text-align: center;
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-sm);
}

.page-subtitle {
    font-size: 1.125rem;
    color: var(--text-gray);
}

/* ================================
   Schedule Cards
   ================================ */
.specialist-schedule {
    margin-bottom: var(--spacing-xxl);
    padding: var(--spacing-xl);
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.specialist-schedule h2 {
    color: var(--primary-color);
    margin-bottom: var(--spacing-sm);
}

.specialist-description {
    color: var(--text-gray);
    margin-bottom: var(--spacing-sm);
}

.schedule-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-lg);
}

.schedule-card {
    background: var(--bg-light);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: var(--spacing-lg);
    transition: var(--transition-base);
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.schedule-card.available {
    border-color: var(--success-color);
}

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

.schedule-date {
    font-weight: 600;
    font-size: 1.125rem;
    color: var(--text-dark);
}

.schedule-status {
    padding: 0.5rem;
    background: var(--success-color);
    color: var(--white);
    border-radius: var(--radius-sm);
    text-align: center;
    font-weight: 500;
    font-size: 0.875rem;
}

.schedule-status.limited {
    background: var(--secondary-color);
}

.schedule-status.unavailable {
    background: var(--text-light);
}

/* ================================
   Calendar Integration
   ================================ */
.calendar-integration {
    margin-top: var(--spacing-xxl);
    padding: var(--spacing-xl);
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.calendar-embed {
    margin: var(--spacing-lg) 0;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.calendar-note {
    text-align: center;
    color: var(--text-gray);
    font-size: 0.9375rem;
    margin-top: var(--spacing-lg);
}

/* ================================
   CTA Section
   ================================ */
.cta-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
}

.cta-box {
    text-align: center;
    color: var(--white);
}

.cta-box h2 {
    color: var(--white);
    font-size: 2rem;
    margin-bottom: var(--spacing-md);
}

.cta-box p {
    font-size: 1.125rem;
    margin-bottom: var(--spacing-lg);
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
    flex-wrap: wrap;
}

.cta-buttons .btn-outline {
    background: transparent;
    color: var(--white);
    border-color: var(--white);
}

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

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

.cta-buttons .btn-primary:hover {
    background: var(--accent-color);
    transform: translateY(-2px);
}

.cta-buttons .btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

/* ================================
   Contacts Page
   ================================ */
.contact-methods {
    margin: var(--spacing-lg) 0;
}

.location {
    font-size: 1.125rem;
    color: var(--text-gray);
    margin-bottom: var(--spacing-lg);
}

.social-buttons {
    display: flex;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-md);
}

.license-info {
    margin-top: var(--spacing-xl);
    padding: var(--spacing-lg);
    background: var(--accent-color);
    border-radius: var(--radius-md);
}

.license-info h3 {
    color: var(--primary-color);
    margin-bottom: var(--spacing-sm);
}

.license-info p {
    color: var(--text-gray);
    line-height: 1.6;
}

/* ================================
   Branches Section
   ================================ */
.branches-section {
    background: var(--bg-light);
}

.branches-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: var(--spacing-md);
    margin-top: var(--spacing-xl);
}

.branch-card {
    background: var(--white);
    padding: var(--spacing-lg);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    text-align: center;
    transition: var(--transition-base);
}

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

.branch-card h3 {
    color: var(--primary-color);
    margin-bottom: var(--spacing-xs);
    font-size: 1.125rem;
}

.branch-type {
    color: var(--text-gray);
    font-size: 0.875rem;
}

.branches-note {
    margin-top: var(--spacing-xl);
    padding: var(--spacing-lg);
    background: var(--accent-color);
    border-radius: var(--radius-md);
    text-align: center;
}

/* ================================
   Working Hours Section
   ================================ */
.working-hours-section {
    background: var(--white);
}

.hours-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-xl);
    margin-top: var(--spacing-xl);
}

.hours-card {
    background: var(--bg-light);
    padding: var(--spacing-xl);
    border-radius: var(--radius-lg);
    text-align: center;
    border: 2px solid var(--border-color);
    transition: var(--transition-base);
}

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

.hours-card h3 {
    color: var(--primary-color);
    margin-bottom: var(--spacing-md);
}

.hours-time {
    font-size: 1.125rem;
    color: var(--text-dark);
    font-weight: 500;
    line-height: 1.6;
}

/* ================================
   City Modal
   ================================ */
.city-modal-content {
    max-width: 700px;
    max-height: 85vh;
    padding: var(--spacing-lg) !important;
}

.city-modal-content .modal-header {
    padding: 0 0 var(--spacing-md) 0;
}

.city-modal-content .modal-header h2 {
    margin-bottom: 0;
}

.city-modal-content .modal-body {
    padding: var(--spacing-md) 0 0 0;
    max-height: calc(85vh - 120px);
    overflow-y: auto;
}

/* City Search */
.city-search {
    margin-bottom: var(--spacing-lg);
}

.city-search input {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-family: var(--font-secondary);
    transition: var(--transition-fast);
}

.city-search input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.city-search input::placeholder {
    color: var(--text-light);
}

/* Popular Cities */
.popular-cities {
    margin-bottom: var(--spacing-lg);
    padding-bottom: var(--spacing-lg);
    border-bottom: 1px solid var(--border-color);
}

.cities-section-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-gray);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: var(--spacing-md);
}

.cities-list-compact {
    display: flex;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
}

/* All Cities Grid */
.cities-grid-compact {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-xs);
}

.city-item-compact {
    padding: 0.625rem 0.875rem;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-family: var(--font-secondary);
    font-size: 0.9375rem;
    font-weight: 400;
    color: var(--text-dark);
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition-fast);
    text-align: center;
    white-space: nowrap;
    display: inline-block;
}

.city-item-compact:hover {
    background: var(--accent-color);
    border-color: var(--primary-color);
    color: var(--text-dark);
}

.city-item-compact:visited {
    color: var(--text-dark);
}

.city-item-compact.active {
    background: var(--accent-color);
    border-color: var(--primary-color);
    color: var(--text-dark);
}

.city-item-compact:active {
    transform: scale(0.98);
}

/* Hide cities when searching */
.city-item-compact.hidden {
    display: none;
}

/* City Modal Mobile */
@media (max-width: 480px) {
    .city-modal-content {
        padding: var(--spacing-md) !important;
        max-height: 100vh;
        border-radius: 0;
    }

    .cities-grid-compact {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.375rem;
    }

    .city-item-compact {
        padding: 0.5rem 0.375rem;
        font-size: 0.8rem;
    }
}

/* ================================
   Accessibility Panel (Version for Visually Impaired)
   ================================ */
.accessibility-panel {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: #000;
    color: #fff;
    z-index: 10000;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.accessibility-panel.active {
    display: block;
}

.accessibility-panel-header {
    background: #1a1a1a;
    padding: 0.75rem 0;
    border-bottom: 2px solid #333;
}

.accessibility-panel-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0;
}

.accessibility-panel-title h3 {
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
}

.accessibility-header-buttons {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.accessibility-close,
.accessibility-minimize,
.accessibility-maximize {
    background: transparent;
    border: 2px solid #fff;
    color: #fff;
    padding: 0.375rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
    font-size: 0.875rem;
}

.accessibility-close:hover,
.accessibility-minimize:hover,
.accessibility-maximize:hover {
    background: #fff;
    color: #000;
}

/* Minimized state */
.accessibility-panel.minimized .accessibility-panel-controls {
    display: none;
}

.accessibility-panel-controls {
    padding: 1rem 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.accessibility-control-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.accessibility-control-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 0.25rem;
}

.accessibility-buttons {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.accessibility-btn {
    padding: 0.5rem 1rem;
    border: 2px solid #fff;
    background: transparent;
    color: #fff;
    cursor: pointer;
    border-radius: 4px;
    font-size: 0.875rem;
    font-weight: 600;
    transition: all 0.3s;
    white-space: nowrap;
}

.accessibility-btn:hover {
    background: #fff;
    color: #000;
}

.accessibility-btn.active {
    background: #fff;
    color: #000;
}

.accessibility-btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 2px solid #fff;
    background: transparent;
    color: #fff;
    cursor: pointer;
    border-radius: 4px;
    font-size: 1.25rem;
    font-weight: bold;
    transition: all 0.3s;
}

.accessibility-btn-icon:hover,
.accessibility-btn-icon.active {
    background: #fff;
    color: #000;
}

.accessibility-color-schemes {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.color-scheme-btn {
    padding: 0.5rem 1rem;
    border: 2px solid #fff;
    cursor: pointer;
    border-radius: 4px;
    font-size: 0.875rem;
    font-weight: 600;
    transition: all 0.3s;
}

.color-scheme-btn.scheme-white {
    background: #fff;
    color: #000;
}

.color-scheme-btn.scheme-black {
    background: #000;
    color: #fff;
}

.color-scheme-btn.scheme-blue {
    background: #9DD1FF;
    color: #063462;
}

.color-scheme-btn.scheme-brown {
    background: #F7F3D6;
    color: #4D4B43;
}

.color-scheme-btn.scheme-green {
    background: #3B2716;
    color: #A9E44D;
}

.color-scheme-btn:hover,
.color-scheme-btn.active {
    border-color: #FFD700;
    border-width: 3px;
}

/* Accessibility Mode Active Styles */
body.accessibility-mode {
    padding-top: 0;
}

body.accessibility-mode.scheme-white {
    background: #fff;
    color: #000;
}

body.accessibility-mode.scheme-black {
    background: #000;
    color: #fff;
}

body.accessibility-mode.scheme-blue {
    background: #9DD1FF;
    color: #063462;
}

body.accessibility-mode.scheme-brown {
    background: #F7F3D6;
    color: #4D4B43;
}

body.accessibility-mode.scheme-green {
    background: #3B2716;
    color: #A9E44D;
}

body.accessibility-mode .header,
body.accessibility-mode .footer,
body.accessibility-mode .section,
body.accessibility-mode .modal-content {
    background: inherit;
    color: inherit;
}

body.accessibility-mode a {
    color: inherit;
    text-decoration: underline;
}

body.accessibility-mode .btn {
    background: inherit;
    color: inherit;
    border: 2px solid currentColor;
}

body.accessibility-mode img.accessibility-images-off {
    display: none;
}

/* Font size variations */
body.font-size-normal {
    font-size: 16px;
}

body.font-size-large {
    font-size: 20px;
}

body.font-size-larger {
    font-size: 24px;
}

/* Letter spacing variations */
body.letter-spacing-normal {
    letter-spacing: normal;
}

body.letter-spacing-medium {
    letter-spacing: 0.05em;
}

body.letter-spacing-large {
    letter-spacing: 0.1em;
}

/* Line height variations */
body.line-height-normal {
    line-height: 1.5;
}

body.line-height-medium {
    line-height: 1.75;
}

body.line-height-large {
    line-height: 2;
}

/* Font family variations */
body.font-family-sans {
    font-family: Arial, sans-serif;
}

body.font-family-serif {
    font-family: 'Times New Roman', serif;
}

body.font-family-mono {
    font-family: 'Courier New', monospace;
}

/* Mobile-only line break */
.mobile-br {
    display: none;
}

@media (max-width: 768px) {
    .mobile-br {
        display: initial;
    }
}

/* ================================
   Responsive Design
   ================================ */

/* ================================
   Responsive - Tablets
   ================================ */
@media (max-width: 1200px) {
    .logo img {
        height: 50px;
    }

    .nav-menu {
        gap: var(--spacing-md);
    }

    .nav-menu a {
        font-size: 0.9375rem;
    }
}

@media (max-width: 992px) {
    .logo img {
        height: 48px;
    }

    .hero .container {
        grid-template-columns: 1fr;
    }

    .hero-content {
        order: 2;
    }

    .hero-image {
        order: 1;
        margin-bottom: 0;
    }

    .hero-title {
        font-size: 2.25rem;
    }

    .hero-subtitle {
        max-width: 100%;
        font-size: 1.2rem;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

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

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

    .prices-grid {
        grid-template-columns: 1fr;
    }

    .price-card.featured {
        transform: scale(1);
    }

    .reviews-slider {
        grid-template-columns: 1fr;
    }

    .contacts-grid {
        grid-template-columns: 1fr;
    }

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

    .info-cards {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    html {
        font-size: 14px;
    }

    .section-title {
        font-size: 2rem;
    }

    /* Mobile Header - Compact single-line (pfcks.ru style) */
    .top-bar {
        display: none;
    }

    .contact-bar {
        display: none;
    }

    .main-nav {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 1000;
        padding: 0;
        background: var(--white);
        border-bottom: 1px solid var(--border-color);
        box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
    }

    /* Offset for fixed header */
    .hero,
    .main-nav+* {
        margin-top: 70px;
    }

    .nav {
        position: relative;
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0 10px;
        min-height: 70px;
    }

    .logo {
        position: static;
        transform: none;
        flex: 1;
        justify-content: center;
        min-width: 0;
        text-align: center;
        z-index: 2001;
    }

    .logo img {
        height: 44px;
        max-width: min(160px, 100%);
        width: auto;
    }

    /* Mobile header action icons (phone + Telegram/Max) */
    .mobile-header-actions {
        display: flex;
        align-items: center;
        gap: clamp(0px, 0.5vw, 2px);
        z-index: 2001;
        flex-shrink: 0;
    }

    .mobile-header-icon {
        display: flex;
        align-items: center;
        justify-content: center;
        width: clamp(28px, 8.5vw, 44px);
        height: clamp(28px, 8.5vw, 44px);
        border-radius: 50%;
        background: none;
        border: none;
        color: var(--text-dark);
        cursor: pointer;
        transition: var(--transition-fast);
        text-decoration: none;
    }

    .mobile-header-icon svg {
        width: clamp(14px, 4.5vw, 24px);
        height: clamp(14px, 4.5vw, 24px);
    }

    .mobile-header-icon:hover,
    .mobile-header-icon:active {
        color: var(--primary-color);
        background: var(--accent-color);
    }

    .hamburger-btn {
        order: -1;
        flex-shrink: 0;
    }

    /* Accessibility Panel Mobile */
    .accessibility-panel-title {
        flex-direction: column;
        gap: 0.5rem;
        align-items: stretch;
    }

    .accessibility-panel-title h3 {
        text-align: center;
        font-size: 0.9rem;
    }

    .accessibility-header-buttons {
        flex-direction: column;
        gap: 0.375rem;
    }

    .accessibility-close,
    .accessibility-minimize,
    .accessibility-maximize {
        padding: 0.5rem;
        font-size: 0.8rem;
        width: 100%;
    }

    .accessibility-panel-controls {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 0.75rem 0;
    }

    /* Mobile menu overlay with animation */
    .nav-menu {
        display: flex;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: var(--white);
        flex-direction: column;
        gap: 0;
        padding: 70px 1.25rem 1.25rem;
        overflow-y: auto;
        z-index: 2000;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
    }

    .nav-menu.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    /* Hide desktop underline ::after on mobile */
    .nav-menu>li>a::after {
        display: none !important;
    }

    .nav-menu>li {
        width: 100%;
        border-bottom: 1px solid var(--border-color);
        line-height: 0.40;
    }

    .nav-menu>li>a {
        padding: 20px 0;
        display: block;
        font-size: 16px;
        font-weight: 500;
        line-height: 1.35;
    }

    .submenu {
        position: static;
        display: none !important;
        box-shadow: none;
        padding: 0 0 8px 1rem;
        margin-top: -4px;
    }

    /* Disable hover-based submenu on mobile — only JS click toggles */
    .has-submenu:hover .submenu {
        display: none !important;
    }

    .submenu a {
        padding: 12px 0;
        font-size: 14px;
        font-weight: 400;
        color: var(--text-gray);
    }

    .has-submenu.active .submenu {
        display: block !important;
    }

    /* Split-button: link text navigates, toggle button opens submenu */
    .has-submenu {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
    }

    .has-submenu>a {
        flex: 1;
    }

    .submenu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        background: none;
        border: none;
        cursor: pointer;
        padding: 0;
        flex-shrink: 0;
    }

    .submenu-toggle::after {
        content: '';
        width: 8px;
        height: 8px;
        border-right: 2px solid var(--text-gray);
        border-bottom: 2px solid var(--text-gray);
        transform: rotate(-45deg);
        transition: transform 0.3s ease;
    }

    .has-submenu.active .submenu-toggle::after {
        transform: rotate(45deg);
    }

    .has-submenu>.submenu {
        flex-basis: 100%;
    }

    /* Hamburger button with animation */
    .mobile-menu-toggle {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        width: 44px;
        height: 70px;
        position: relative;
        z-index: 2001;
        background: transparent;
        border: none;
        padding: 0;
    }

    .mobile-menu-toggle span {
        display: block;
        width: 28px;
        height: 2.5px;
        background: var(--text-dark);
        border-radius: 2px;
        position: absolute;
        transition: transform 0.3s ease, opacity 0.3s ease, top 0.3s ease;
    }

    .mobile-menu-toggle span:nth-child(1) {
        top: 25px;
    }

    .mobile-menu-toggle span:nth-child(2) {
        top: 34px;
    }

    .mobile-menu-toggle span:nth-child(3) {
        top: 43px;
    }

    /* Hamburger to X animation */
    .mobile-menu-toggle.active span:nth-child(1) {
        top: 34px;
        transform: rotate(45deg);
    }

    .mobile-menu-toggle.active span:nth-child(2) {
        transform: scaleX(0);
        opacity: 0;
    }

    .mobile-menu-toggle.active span:nth-child(3) {
        top: 34px;
        transform: rotate(-45deg);
    }

    /* Mobile menu contacts (at bottom of overlay) */
    .mobile-menu-contacts {
        display: block !important;
        margin-top: 1.25rem;
        padding-top: 1.25rem;
        border-top: none;
        border-bottom: none !important;
    }

    .mobile-menu-phones {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
        margin-bottom: 1rem;
        align-items: flex-start;
    }

    .nav-menu .mobile-menu-phone {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        color: var(--text-dark);
        font-weight: 700;
        font-size: 18px;
        text-decoration: none;
    }

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

    .mobile-menu-phone .phone-hint {
        font-size: 13px;
        color: var(--text-gray);
        font-weight: 400;
        margin-left: 0.25rem;
    }

    /* Mobile city selector */
    .mobile-menu-city {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        padding: 0.875rem 0;
        margin-top: 0.75rem;
        cursor: pointer;
        border-top: 1px solid var(--border-color);
    }

    .mobile-menu-city svg:first-child {
        color: var(--primary-color);
        flex-shrink: 0;
    }

    .mobile-city-label {
        color: var(--text-gray);
        font-size: 0.875rem;
    }

    .mobile-city-name {
        color: var(--primary-color);
        font-weight: 600;
        font-size: 0.95rem;
        text-decoration: underline;
        text-decoration-style: dotted;
        text-underline-offset: 3px;
    }

    .mobile-city-arrow {
        color: var(--primary-color);
        margin-left: -0.25rem;
        flex-shrink: 0;
    }

    .mobile-menu-social {
        display: flex;
        gap: var(--spacing-md);
        justify-content: center;
        margin-top: 30px;
        margin-bottom: 30px;
    }

    .mobile-menu-social .social-icon {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
    }

    .mobile-menu-social .social-icon svg {
        width: 26px;
        height: 26px;
    }

    .mobile-menu-cta {
        width: 100%;
    }

    /* Hide floating buttons when mobile menu is open */
    .nav-menu.active~.floating-buttons,
    body.menu-open .floating-buttons {
        opacity: 0;
        pointer-events: none;
    }

    .cities-grid {
        grid-template-columns: 1fr;
    }

    /* Mobile Hero Styles */
    .hero {
        padding: var(--spacing-xl) 0 0;
        min-height: auto;
    }

    .hero-title {
        font-size: 2rem;
        margin-bottom: var(--spacing-sm);
    }

    .hero-subtitle {
        font-size: 1.125rem;
    }

    .desktop-br {
        display: none;
    }

    .hero-features {
        gap: var(--spacing-sm);
        margin-bottom: var(--spacing-lg);
    }

    .feature-icon {
        width: 34px;
        height: 34px;
    }

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

    .feature-item span {
        font-size: 0.875rem;
    }

    .hero-cta {
        flex-direction: column;
    }

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

    .hero-card {
        padding: var(--spacing-lg);
        margin-top: var(--spacing-lg);
    }

    .hero-card-badge {
        font-size: 1rem;
        padding: 0.625rem 1.25rem;
    }

    .hero-card p {
        font-size: 0.9375rem;
    }

    /* Mobile Animated Background */
    .blob {
        filter: blur(30px);
    }

    .blob-1 {
        width: 250px;
        height: 250px;
    }

    .blob-2 {
        width: 200px;
        height: 200px;
    }

    .blob-3 {
        width: 180px;
        height: 180px;
    }

    .blob-4 {
        width: 220px;
        height: 220px;
    }

    .sound-circle {
        display: none;
        /* Hide on mobile for performance */
    }

    .method-grid {
        grid-template-columns: 1fr;
    }

    .specialists-grid {
        grid-template-columns: 1fr;
    }

    .schedule-table {
        font-size: 0.875rem;
    }

    th,
    td {
        padding: var(--spacing-sm);
    }

    .appointment-types {
        grid-template-columns: 1fr;
    }

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

/* ================================
   Booking Modal — Mobile (≤480px)
   ================================ */
@media (max-width: 480px) {

    /* Modal: near-fullscreen with side margins */
    .modal-content {
        width: calc(100% - 16px);
        max-height: calc(100vh - 16px);
        border-radius: var(--radius-md);
        padding: 8px 12px;
        margin: 8px;
    }

    .modal-header {
        padding: 0.75rem;
    }

    .modal-header h2 {
        font-size: 1.25rem;
        margin-bottom: 0.75rem;
    }

    .modal-body {
        padding: 0.75rem;
    }

    .modal-close {
        top: 0.5rem;
        right: 0.5rem;
        width: 36px;
        height: 36px;
        font-size: 1.5rem;
    }

    /* Step indicators: compact circles with lines */
    .booking-steps {
        justify-content: center;
        gap: 0;
    }

    .step {
        flex: 0 0 auto;
        gap: 0;
    }

    .step:not(:last-child)::after {
        content: '';
        width: 24px;
        height: 2px;
        background: var(--border-color);
        display: inline-block;
        vertical-align: middle;
        margin: 0 6px;
    }

    .step.active:not(:last-child)::after {
        background: var(--primary-color);
    }

    .step-number {
        width: 28px;
        height: 28px;
        font-size: 0.8rem;
    }

    .step-label {
        display: none;
    }

    /* Step content headings */
    .booking-step-content h3 {
        font-size: 1.1rem;
        margin-bottom: 0.75rem;
    }

    /* Step 1: Category cards — 3 in a row compact */
    .appointment-types {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.5rem;
    }

    .type-card-content {
        padding: 0.75rem 0.5rem;
    }

    .type-icon {
        font-size: 1.5rem;
        margin-bottom: 0.25rem;
    }

    .type-card-content h4 {
        font-size: 0.8rem;
        margin-bottom: 0.125rem;
    }

    .type-card-content p {
        font-size: 0.7rem;
    }

    /* Step 2: Specialist list — price under name */
    .specialist-option-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
        padding: 0.625rem 0.75rem;
    }

    .specialist-info-left strong {
        font-size: 0.875rem;
    }

    .specialist-info-left p {
        font-size: 0.8rem;
    }

    .specialist-price-right {
        font-size: 0.9rem;
        align-self: flex-end;
    }

    /* Step 3: Course dates — 1 column */
    .course-dates-grid {
        grid-template-columns: 1fr;
        max-height: 340px;
    }

    .course-date-card {
        padding: 0.625rem 0.75rem;
    }

    /* Step 4: Summary card compact */
    .booking-summary-card {
        padding: 0.375rem 0.75rem;
    }

    .booking-summary-item {
        padding: 0.3rem 0;
    }

    .summary-label {
        font-size: 0.75rem;
    }

    .summary-value {
        font-size: 0.8rem;
    }

    /* Step 4: Form fields — 1 column */
    .form-row-three {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .booking-step-content[data-step="4"] h4 {
        font-size: 0.95rem;
    }

    /* Consent checkbox text — match summary text size on mobile */
    .booking-step-content[data-step="4"] .checkbox-label {
        font-size: 0.75rem;
    }

    .consent-label,
    .consent-label span {
        font-size: 0.75rem !important;
    }

    /* Action buttons */
    .modal-actions .btn {
        min-height: 44px;
        font-size: 0.875rem;
        padding: 0.625rem 1rem;
    }
}

/* ================================
   Organization Page Styles
   ================================ */

.info-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    margin-bottom: var(--spacing-lg);
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid rgba(184, 48, 47, 0.1);
}

.info-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    transform: translateY(-4px);
}

.info-card.highlight {
    border: 2px solid var(--primary-color);
    background: linear-gradient(135deg, #fff 0%, #fff5f4 100%);
}

.info-card-header {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-lg) var(--spacing-xl);
    background: linear-gradient(135deg, var(--primary-color) 0%, #9a2625 100%);
    color: white;
    position: relative;
    border-radius: 12px 12px 0 0;
}

/* Removed orange stripe - simplified design */

.info-card-header svg {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    opacity: 1;
}

.info-card-header h2 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: -0.3px;
}

.info-card-body {
    padding: var(--spacing-xl);
    background: white;
    border-radius: 0 0 12px 12px;
}

/* Removed colorful backgrounds - unified white design */

/* Сетка информации */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-md);
    margin-top: var(--spacing-md);
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.info-label {
    font-size: 0.875rem;
    color: var(--text-gray);
    font-weight: 500;
}

.info-value {
    font-size: 1.125rem;
    color: var(--text-dark);
    font-weight: 600;
}

.org-name {
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: var(--spacing-lg);
    padding-bottom: var(--spacing-sm);
    border-bottom: 2px solid rgba(184, 48, 47, 0.1);
}

/* Адресные блоки */
.address-block {
    margin-bottom: var(--spacing-md);
}

.address-block:last-child {
    margin-bottom: 0;
}

.address-title {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
    font-size: 0.9375rem;
}

.address-text {
    color: var(--text-body);
    line-height: 1.7;
    margin-bottom: 0;
}

/* Документы */
.document-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.document-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm) var(--spacing-md);
    background: rgba(184, 48, 47, 0.02);
    border-left: 3px solid var(--accent-color);
    border-radius: 6px;
    transition: all 0.3s ease;
}

.document-item:hover {
    background: rgba(184, 48, 47, 0.05);
    transform: translateX(4px);
}

.document-item svg {
    flex-shrink: 0;
    color: var(--primary-color);
}

.document-link {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

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

/* Контактные блоки */
.contact-block {
    margin-bottom: var(--spacing-md);
}

.contact-label {
    font-size: 0.875rem;
    color: var(--text-gray);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

.contact-value {
    font-size: 15px;
    color: var(--text-dark);
    line-height: 1.6;
}

/* Программы обучения */
.program-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.program-item {
    display: flex;
    gap: var(--spacing-md);
    padding: var(--spacing-md);
    background: rgba(184, 48, 47, 0.02);
    border-radius: 8px;
    border-left: 4px solid var(--accent-color);
    transition: all 0.3s ease;
}

.program-item:hover {
    background: rgba(184, 48, 47, 0.04);
    transform: translateX(4px);
}

.program-number {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color) 0%, #9a2625 100%);
    color: white;
    font-weight: 700;
    font-size: 1.125rem;
    border-radius: 50%;
}

.program-content {
    flex: 1;
}

.program-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.program-description {
    font-size: 0.9375rem;
    color: var(--text-body);
    line-height: 1.6;
    margin: 0;
}

/* ================================
   Unified Alert/Callout System
   ================================ */

/* Base alert styles */
.alert {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-md);
    padding: var(--spacing-md) var(--spacing-lg);
    border-radius: 8px;
    margin: var(--spacing-lg) 0;
    font-size: 0.9375rem;
    line-height: 1.6;
    border-left: 4px solid;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.alert svg {
    flex-shrink: 0;
    margin-top: 0;
    width: 24px;
    height: 24px;
}

.alert i {
    flex-shrink: 0;
    margin-top: 0;
    margin-right: 0;
    font-size: 24px;
    line-height: 1;
    width: 24px;
    min-width: 24px;
    text-align: center;
    display: inline-block;
    font-style: normal;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.alert p {
    margin: 0;
    flex: 1;
}

/* Unified alert style - all types same design */
.alert-info,
.alert-warning,
.alert-success,
.alert-danger {
    background: linear-gradient(135deg, #f0f4f8 0%, #e1e8ed 100%);
    border-left-color: #64748b;
    color: #334155;
}

.alert-info svg,
.alert-warning svg,
.alert-success svg,
.alert-danger svg,
.alert-info i,
.alert-warning i,
.alert-success i,
.alert-danger i {
    color: #64748b !important;
    opacity: 1 !important;
}

/* Контактная сетка */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-lg);
}

.contact-item {
    display: flex;
    gap: var(--spacing-md);
}

.contact-item svg {
    flex-shrink: 0;
    color: var(--primary-color);
    margin-top: 4px;
}

.contact-label {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.contact-value {
    color: var(--text-body);
    margin-bottom: 4px;
    line-height: 1.5;
}

.contact-value a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-value a:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

/* Информация о лицензии */
.license-info {
    margin-bottom: var(--spacing-lg);
}

.license-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: var(--spacing-md);
}

.license-details {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-md);
    align-items: center;
    margin-bottom: var(--spacing-md);
}

.license-number {
    display: inline-block;
    padding: 8px 16px;
    background: var(--primary-color);
    color: white;
    border-radius: 6px;
    font-weight: 600;
    font-size: 1rem;
}

.license-date {
    color: var(--text-gray);
    font-weight: 500;
}

.license-note {
    color: var(--text-body);
    line-height: 1.6;
    padding: var(--spacing-md);
    background: rgba(184, 48, 47, 0.05);
    border-radius: 6px;
}

/* Deprecated - use .alert-info instead */
.important-note {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-md);
    padding: var(--spacing-md) var(--spacing-lg);
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    border-left: 4px solid #2196f3;
    border-radius: 8px;
    margin-top: var(--spacing-lg);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.important-note svg {
    flex-shrink: 0;
    color: #2196f3;
    margin-top: 2px;
    width: 20px;
    height: 20px;
}

.important-note p {
    margin: 0;
    color: #0d47a1;
    font-size: 0.9375rem;
    line-height: 1.6;
}

/* Документы для скачивания */
.documents-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--spacing-lg);
}

.document-download {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-lg) var(--spacing-xl);
    background: linear-gradient(135deg, white 0%, #fafafa 100%);
    border: 2px solid #e0e0e0;
    border-radius: 14px;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.document-download::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: linear-gradient(180deg, var(--primary-color) 0%, var(--accent-color) 100%);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.document-download:hover {
    border-color: var(--primary-color);
    box-shadow: 0 6px 20px rgba(184, 48, 47, 0.2);
    transform: translateY(-3px);
    background: linear-gradient(135deg, white 0%, #fff5f5 100%);
}

.document-download:hover::before {
    transform: scaleY(1);
}

.document-download:hover .download-arrow {
    transform: translateY(3px);
    color: var(--primary-color);
}

.document-icon {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.document-icon.pdf {
    background: linear-gradient(135deg, #ffe6e6 0%, #ffcccc 100%);
    color: #d32f2f;
}

.document-icon.excel {
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    color: #388e3c;
}

.document-icon.word {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    color: #1976d2;
}

.document-download:hover .document-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.document-info {
    flex: 1;
}

.document-title {
    margin: 0 0 6px 0;
    font-weight: 600;
    color: var(--text-dark);
    font-size: 1.0625rem;
}

.document-meta {
    margin: 0;
    font-size: 0.875rem;
    color: var(--text-gray);
}

.download-arrow {
    flex-shrink: 0;
    color: var(--text-gray);
    transition: all 0.3s ease;
}

/* Responsive styles for organization page */
@media (max-width: 768px) {
    .info-card-header {
        padding: var(--spacing-md);
    }

    .info-card-header h2 {
        font-size: 1.125rem;
    }

    .info-card-body {
        padding: var(--spacing-lg);
    }

    .info-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }

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

    .documents-grid {
        grid-template-columns: 1fr;
    }

    .license-details {
        flex-direction: column;
        align-items: flex-start;
    }

    /* Contact Page Responsive */
    .contacts-hero-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .contacts-form-wrapper {
        position: static;
    }

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

/* ================================
   Contacts Page Styles - Modern Design
   ================================ */

/* Contact Hero Section */
.contacts-hero {
    background: #ffffff;
    padding: var(--spacing-xxl) 0;
}

.contacts-hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.contacts-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.contacts-subtitle {
    font-size: 1.125rem;
    color: var(--text-body);
    margin-bottom: 2rem;
}

.contacts-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-item {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
}

.contact-item-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background: var(--primary-color);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.contact-item-content {
    flex: 1 1 0;
    min-width: 0;
}

.contact-item-content h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.contact-item-content p {
    color: var(--text-body);
    margin: 0;
    line-height: 1.6;
}

.contact-phones {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    align-items: center;
}

.contact-phone-group {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    position: relative;
}

.contact-phone-group:not(:last-child)::after {
    content: '';
    position: absolute;
    right: -0.75rem;
    top: 50%;
    transform: translateY(-50%);
    height: 40px;
    width: 2px;
    background: var(--border-color);
}

.contact-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.125rem;
    transition: color 0.3s ease;
}

.contact-link:hover {
    color: #222;
}

.contact-hint {
    font-size: 0.875rem;
    color: var(--text-gray);
}

/* Contact Addresses (2 адреса в строку с разделителем) */
.contact-addresses {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
    align-items: center;
}

.contact-address-group {
    position: relative;
    min-width: 0;
}

.contact-address-group p {
    margin: 0;
}

.contact-address-group:not(:last-child)::after {
    content: '';
    position: absolute;
    right: -0.75rem;
    top: 50%;
    transform: translateY(-50%);
    height: 40px;
    width: 2px;
    background: var(--border-color);
}

/* Quick Contact Form */
.contacts-form-wrapper {
    position: sticky;
    top: 2rem;
}

.quick-contact-form {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
}

.quick-contact-form h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.quick-contact-form>p {
    color: var(--text-body);
    margin-bottom: 1.5rem;
}

.contact-form .form-group {
    margin-bottom: 1rem;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid #e1e8ed;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

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

.contact-form .btn-large {
    width: 100%;
    padding: 1rem;
    font-size: 1.0625rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.form-privacy {
    margin-top: 1rem;
    font-size: 0.8125rem;
    color: var(--text-gray);
    text-align: center;
}

.form-privacy a {
    color: var(--primary-color);
    text-decoration: none;
}

.quick-contact-success {
    text-align: center;
    padding: 2rem 1rem;
}

.quick-contact-success .success-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #34C759, #30D158);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.quick-contact-success h4 {
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.quick-contact-success p {
    color: var(--text-body);
    font-size: 1rem;
}

/* Fullwidth Map */
.contacts-map-fullwidth {
    width: 100%;
    height: 500px;
}

.contacts-map-fullwidth iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

/* Dual Map (два офиса 50/50) */
.contacts-map-dual {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2px;
    width: 100%;
    background: var(--border-color);
}

.contacts-map-dual-item {
    display: flex;
    flex-direction: column;
    background: #fff;
}

.contacts-map-dual-item iframe {
    width: 100%;
    height: 500px;
    border: 0;
    display: block;
}

.contacts-map-caption {
    padding: 0.875rem 1.25rem;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text-heading);
    background: var(--bg-light, #f7f7f7);
    border-bottom: 1px solid var(--border-color);
    text-align: center;
    line-height: 1.4;
}

/* Contacts Page Mobile Override (must come after base styles) */
@media (max-width: 768px) {
    .contacts-hero-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .contacts-form-wrapper {
        position: static;
    }
}

/* Modern Photo Gallery */
.facility-gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.gallery-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 4/3;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-item-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(184, 48, 47, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-item-overlay {
    opacity: 1;
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
    position: absolute;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(255, 255, 255, 0.3);
}

.lightbox-close {
    top: 2rem;
    right: 2rem;
    font-size: 2.5rem;
    line-height: 1;
}

.lightbox-prev {
    left: 2rem;
    top: 50%;
    transform: translateY(-50%);
}

.lightbox-next {
    right: 2rem;
    top: 50%;
    transform: translateY(-50%);
}

.section-header {
    margin-bottom: 3rem;
}

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

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-body);
    margin-top: 0.5rem;
}

@media (max-width: 550px) {
    .info-card-header {
        gap: var(--spacing-sm);
        padding: var(--spacing-sm) var(--spacing-md);
    }

    .info-card-header h2 {
        font-size: 1rem;
    }

    .info-card-body {
        padding: var(--spacing-md);
    }

    .org-name {
        font-size: 1.125rem;
    }

    .document-download {
        padding: var(--spacing-md);
    }

    .document-icon {
        width: 40px;
        height: 40px;
    }

    .document-icon svg {
        width: 24px;
        height: 24px;
    }

    .document-title {
        font-size: 0.9rem;
    }

    /* Contact Page Responsive */

    /* Gallery: 2 columns on mobile */
    .facility-gallery {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }

    /* Section headers smaller */
    .section-header {
        margin-bottom: 1.5rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .section-subtitle {
        font-size: 0.9375rem;
    }

    /* Contact hero: reduce padding */
    .contacts-hero {
        padding: var(--spacing-lg) 0;
    }

    .contacts-title {
        font-size: 2rem;
    }

    /* Contact items: smaller icons and tighter spacing */
    .contact-item-icon {
        width: 40px;
        height: 40px;
    }

    .contact-item-icon svg {
        width: 18px;
        height: 18px;
    }

    .contact-item {
        gap: 1rem;
    }

    .contact-item-content h3 {
        font-size: 1rem;
        margin-bottom: 0.25rem;
    }

    .contact-link {
        font-size: 1rem;
    }

    /* Phones: vertical stack, hide separator */
    .contact-phones {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .contact-phone-group:not(:last-child)::after {
        display: none;
    }

    /* Addresses: vertical stack, hide separator */
    .contact-addresses {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .contact-address-group:not(:last-child)::after {
        display: none;
    }

    /* Quick contact form: compact */
    .quick-contact-form {
        padding: 1.25rem;
        border-radius: 12px;
    }

    .quick-contact-form h2 {
        font-size: 1.375rem;
    }

    .contact-form input,
    .contact-form textarea {
        padding: 0.75rem 0.875rem;
        font-size: 0.9375rem;
    }

    /* Map */
    .contacts-map-fullwidth {
        height: 350px;
    }

    .contacts-map-dual {
        grid-template-columns: 1fr;
    }

    .contacts-map-dual-item iframe {
        height: 350px;
    }

    /* Lightbox */
    .lightbox-prev,
    .lightbox-next {
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
    }

    .lightbox-close {
        width: 40px;
        height: 40px;
        font-size: 2rem;
    }
}

/* ================================
   Floating Buttons Container
   ================================ */
.floating-buttons {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
}

.floating-contact {
    position: relative;
}

/* Scroll to Top Button */
.scroll-to-top {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--white);
    border: 2px solid var(--primary-color);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-to-top:hover {
    background: var(--primary-color);
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(184, 48, 47, 0.4);
}

.scroll-to-top svg {
    width: 24px;
    height: 24px;
    color: var(--primary-color);
    transition: color 0.3s ease;
}

.scroll-to-top:hover svg {
    color: var(--white);
}

.floating-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--primary-color);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(184, 48, 47, 0.4);
    transition: all 0.3s ease;
    position: relative;
}

.floating-btn:hover {
    background: var(--primary-dark);
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(184, 48, 47, 0.5);
}

.floating-btn svg {
    width: 28px;
    height: 28px;
    fill: white;
    transition: transform 0.3s ease;
}

.floating-btn.active svg {
    transform: rotate(45deg);
}

.floating-menu {
    position: absolute;
    bottom: 75px;
    right: 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.floating-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.floating-menu-item {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary-color);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 3px 10px rgba(184, 48, 47, 0.3);
    transition: all 0.3s ease;
    text-decoration: none;
    position: relative;
}

.floating-menu-item:hover {
    background: var(--primary-dark);
    transform: scale(1.15);
    box-shadow: 0 4px 12px rgba(184, 48, 47, 0.4);
}

.floating-menu-item[data-tooltip*="Max"] {
    background: #7B61FF;
}

.floating-menu-item[data-tooltip*="Max"]:hover {
    background: #6A4FE8;
}

.floating-menu-item svg {
    width: 24px;
    height: 24px;
    fill: white;
}

.floating-menu-item::before {
    content: attr(data-tooltip);
    position: absolute;
    right: 60px;
    background: var(--text-dark);
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.875rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
}

.floating-menu-item:hover::before {
    opacity: 1;
    visibility: visible;
    right: 65px;
}

/* Contact Form Modal */
.contact-form-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

.contact-form-modal.active {
    display: flex;
}

.contact-form-content {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.contact-form-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--text-gray);
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.contact-form-close:hover {
    background: var(--bg-light);
    color: var(--primary-color);
}

.contact-form-content h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 1.75rem;
}

.contact-form-content .form-group {
    margin-bottom: 1.25rem;
}

.contact-form-content .form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
    font-weight: 500;
    font-size: 0.9rem;
}

.contact-form-content .form-group input,
.contact-form-content .form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    font-family: var(--font-secondary);
    transition: border-color 0.3s ease;
}

.contact-form-content .form-group input:focus,
.contact-form-content .form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.contact-form-content .form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-form-submit {
    width: 100%;
    padding: 0.875rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.contact-form-submit:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(184, 48, 47, 0.3);
}

.contact-form-success {
    display: none;
    text-align: center;
    padding: 2rem;
}

.contact-form-success.active {
    display: block;
}

.contact-form-success .success-icon {
    width: 80px;
    height: 80px;
    background: var(--success-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 3rem;
    color: white;
}

.contact-form-success h4 {
    color: var(--success-color);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.contact-form-success p {
    color: var(--text-gray);
    margin-bottom: 1.5rem;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .floating-buttons {
        bottom: 20px;
        right: 20px;
        gap: 12px;
    }

    .floating-btn {
        width: 55px;
        height: 55px;
    }

    .floating-menu-item {
        width: 45px;
        height: 45px;
    }

    .floating-menu {
        bottom: 65px;
    }

    .scroll-to-top {
        width: 55px;
        height: 55px;
    }

    .scroll-to-top svg {
        width: 22px;
        height: 22px;
    }

    .contact-form-content {
        padding: 1.5rem;
    }
}

.specialist-price {
    font-size: 1.25rem;
}

.courses-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

@media (max-width: 768px) {
    .availability-legend {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--spacing-sm);
    }

    .specialist-block {
        padding: var(--spacing-lg);
    }

    .specialist-header h3 {
        font-size: 1.25rem;
    }

    .courses-grid {
        grid-template-columns: 1fr;
    }

    .course-card {
        padding: var(--spacing-md);
    }
}

@media (max-width: 550px) {
    .specialist-block {
        padding: var(--spacing-md);
        margin-bottom: var(--spacing-lg);
    }

    .specialist-header {
        padding-bottom: var(--spacing-md);
    }

    .specialist-header h3 {
        font-size: 1.125rem;
    }

    .specialist-price {
        font-size: 1.125rem;
    }

    .course-dates {
        font-size: 0.9375rem;
    }

    .course-btn {
        padding: 0.625rem 1.25rem;
        font-size: 0.9375rem;
    }
}

/* ================================
   Популярные направления - Academy Style
   ================================ */
.directions-section {
    padding: 4rem 0 5rem;
    background: #fff;
}

.directions-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.directions-header .section-title {
    margin-bottom: 0;
}

.directions-all-link {
    font-size: 0.9rem;
    font-weight: 600;
    color: #666;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.directions-all-link:hover {
    color: var(--primary-color);
}

.directions-all-link span {
    font-size: 1.2rem;
}

.directions-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr 0.9fr 1.1fr;
    grid-template-rows: 200px 200px;
    gap: 1rem;
}

/* Base card styles */
.direction-card {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    background: #fde8d3;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.4s ease;
}

.direction-card::before {
    content: '';
    position: absolute;
    bottom: -50%;
    left: -30%;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at center, rgba(255, 182, 193, 0.7) 0%, rgba(255, 182, 193, 0) 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    z-index: 1;
}

.direction-card:hover::before {
    opacity: 1;
}

.direction-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.direction-card-title {
    padding: 1.5rem 1.5rem 0.5rem;
    margin: 0;
    font-size: 1.25rem;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.3;
    z-index: 2;
}

.direction-subtitle {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    color: #555;
    margin-top: 0.3rem;
}

.direction-card-img {
    position: absolute;
    bottom: 0;
    right: 0;
    width: auto;
    height: 75%;
    max-width: 85%;
    object-fit: contain;
    object-position: bottom right;
}

/* Card 1: Коррекция речи при заикании - Left tall */
.direction-card-1 {
    grid-column: 1;
    grid-row: 1 / span 2;
    background: #fde8d3;
}

.direction-card-1 .direction-card-img {
    height: 85%;
    right: 0;
    bottom: 0;
}

/* Card 2: Запуск и развитие речи - Center top */
.direction-card-2 {
    grid-column: 2 / span 2;
    grid-row: 1;
    background: #fde8d3;
}

.direction-card-2 .direction-card-img {
    height: 95%;
    right: 0;
}

/* Card 3: Коррекция письменной речи - Right tall */
.direction-card-3 {
    grid-column: 4;
    grid-row: 1 / span 2;
    background: #fad4d4;
}

.direction-card-3 .direction-card-img {
    height: 70%;
    right: -5px;
    bottom: 0;
}

/* Card 4: Проблемы психологического развития - Bottom center left */
.direction-card-4 {
    grid-column: 2;
    grid-row: 2;
    background: #fde8d3;
}

.direction-card-4 .direction-card-title {
    font-size: 1.1rem;
}

.direction-card-4 .direction-card-img {
    height: 70%;
    right: 0;
}

/* Card 5: Логоритмика с нейрогимнастикой - Bottom center right */
.direction-card-5 {
    grid-column: 3;
    grid-row: 2;
    background: #fde8d3;
}

.direction-card-5 .direction-card-title {
    font-size: 1.1rem;
}

.direction-card-5 .direction-card-img {
    height: 70%;
    right: 0;
}

/* Tablet Responsive */
@media (max-width: 1024px) {
    .directions-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .directions-grid {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 280px 220px 220px;
    }

    .direction-card-1 {
        grid-column: 1;
        grid-row: 1;
    }

    .direction-card-2 {
        grid-column: 2;
        grid-row: 1;
    }

    .direction-card-3 {
        grid-column: 1;
        grid-row: 2;
    }

    .direction-card-4 {
        grid-column: 2;
        grid-row: 2;
    }

    .direction-card-5 {
        grid-column: 1 / span 2;
        grid-row: 3;
    }

    .direction-card-title {
        font-size: 1.1rem;
        padding: 1.25rem 1.25rem 0.5rem;
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .directions-section {
        padding: 3rem 0 4rem;
    }

    .directions-grid {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: repeat(3, 180px);
        gap: 0.75rem;
    }

    .direction-card-1 {
        grid-column: 1;
        grid-row: 1;
    }

    .direction-card-2 {
        grid-column: 2;
        grid-row: 1;
    }

    .direction-card-3 {
        grid-column: 1;
        grid-row: 2;
    }

    .direction-card-4 {
        grid-column: 2;
        grid-row: 2;
    }

    .direction-card-5 {
        grid-column: 1 / span 2;
        grid-row: 3;
    }

    .direction-card {
        border-radius: 16px;
    }

    .direction-card-title {
        font-size: 0.85rem;
        padding: 0.75rem 0.75rem 0.25rem;
        line-height: 1.25;
    }

    .direction-card-4 .direction-card-title,
    .direction-card-5 .direction-card-title {
        font-size: 0.85rem;
    }

    .direction-subtitle {
        font-size: 0.65rem;
    }

    .direction-card-img {
        height: 60%;
    }
}

/* ================================
   Modern Steps Section
   ================================ */
.steps-section {
    padding: 3rem 0 4rem;
    background: white;
}

.steps-modern-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

.step-card-modern {
    background: linear-gradient(135deg, #FFFFFF 0%, #F8F9FA 100%);
    border-radius: 16px;
    padding: 2rem;
    border: 2px solid #E0E0E0;
    position: relative;
    transition: all 0.3s ease;
}

.step-card-modern:hover {
    border-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(184, 48, 47, 0.1);
}

.step-badge {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    font-weight: 700;
    font-size: 1rem;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.step-card-modern h4 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text-dark);
    line-height: 1.4;
}

.step-card-modern p {
    color: var(--text-gray);
    line-height: 1.7;
    font-size: 0.95rem;
    margin: 0;
}

@media (max-width: 768px) {
    .steps-modern-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .step-card-modern {
        padding: 1.5rem;
    }
}

/* ================================
   Dubai Banner Section
   ================================ */
.dubai-banner-section {
    padding: 4rem 0 4.5rem;
    background: linear-gradient(180deg, #f5c89a 0%, #f8d9b8 40%, #fae8d4 100%);
    position: relative;
    overflow: hidden;
}

/* Sand wave at bottom */
.dubai-banner-section::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 80px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 80'%3E%3Cpath fill='%23f5deb3' d='M0,40 C200,80 400,0 600,40 C800,80 1000,0 1200,40 C1300,60 1400,50 1440,40 L1440,80 L0,80 Z'/%3E%3C/svg%3E") no-repeat bottom center;
    background-size: cover;
    z-index: 0;
}

/* Sun - diffuse glow */
.dubai-sun {
    position: absolute;
    top: 5%;
    right: 6%;
    width: 180px;
    height: 180px;
    background: radial-gradient(circle, rgba(255, 255, 220, 0.95) 0%, rgba(255, 240, 180, 0.5) 25%, rgba(255, 210, 140, 0.25) 45%, transparent 65%);
    border-radius: 50%;
    z-index: 0;
    animation: sun-pulse 6s ease-in-out infinite;
}

@keyframes sun-pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.08);
        opacity: 0.85;
    }
}

/* Dubai skyline silhouette - attached to bottom */
.dubai-skyline {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("../images/dubai-silhouette-emirates-skyline.png") no-repeat bottom center;
    background-size: 100% 100%;
    opacity: 0.5;
    z-index: 0;
}

/* Decorative airplanes */
.dubai-plane-1,
.dubai-plane-2 {
    position: absolute;
    font-size: 5rem;
    opacity: 0.3;
    z-index: 0;
    filter: drop-shadow(2px 2px 6px rgba(0, 0, 0, 0.15));
}

.dubai-plane-1 {
    top: 15%;
    left: 3%;
    animation: float-plane-1 12s ease-in-out infinite;
}

.dubai-plane-2 {
    top: 40%;
    right: 5%;
    font-size: 3.5rem;
    opacity: 0.22;
    animation: float-plane-2 15s ease-in-out infinite;
}

@keyframes float-plane-1 {

    0%,
    100% {
        transform: translate(0, 0) rotate(15deg);
    }

    50% {
        transform: translate(25px, -12px) rotate(20deg);
    }
}

@keyframes float-plane-2 {
    0% {
        transform: translate(0, 0) rotate(-15deg);
    }

    50% {
        transform: translate(-20px, -10px) rotate(-10deg);
    }

    100% {
        transform: translate(0, 0) rotate(-15deg);
    }
}

.dubai-banner-wrapper {
    position: relative;
    z-index: 1;
}

/* Hand-drawn style label with arrow */
.dubai-banner-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.dubai-banner-label {
    display: inline-block;
    background: #fff;
    color: var(--primary-color);
    padding: 0.7rem 2rem;
    border-radius: var(--radius-full);
    font-size: 1.15rem;
    font-weight: 700;
    box-shadow: 0 4px 20px rgba(184, 48, 47, 0.15);
    border: 2px dashed var(--primary-color);
}

.dubai-banner-arrow {
    font-size: 2.2rem;
    color: var(--primary-color);
    animation: arrow-bounce 1s ease-in-out infinite;
    display: inline-block;
}

@keyframes arrow-bounce {

    0%,
    100% {
        transform: translateX(0);
    }

    50% {
        transform: translateX(10px);
    }
}

@keyframes arrow-bounce-down {

    0%,
    100% {
        transform: rotate(90deg) translateX(0);
    }

    50% {
        transform: rotate(90deg) translateX(8px);
    }
}

.dubai-banner-btn {
    padding: 1rem 2.5rem;
    font-size: 1.15rem;
    border-radius: var(--radius-full);
    box-shadow: 0 4px 20px rgba(184, 48, 47, 0.35);
}

.dubai-banner-link {
    display: block;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(184, 48, 47, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.dubai-banner-link:hover {
    transform: translateY(-8px) scale(1.01);
    box-shadow: 0 20px 50px rgba(184, 48, 47, 0.25);
}

.dubai-banner-img {
    width: 100%;
    height: auto;
    display: block;
}

@media (max-width: 768px) {
    .dubai-banner-section {
        padding: 2rem 0 3rem;
    }

    .dubai-sun {
        width: 60px;
        height: 60px;
        top: 5%;
        right: 5%;
    }

    .dubai-skyline {
        height: 60px;
        bottom: 50px;
    }

    .dubai-banner-section::before {
        height: 50px;
    }

    .dubai-plane-1,
    .dubai-plane-2 {
        display: none;
    }

    .dubai-banner-header {
        flex-direction: column;
        align-items: center;
        gap: 0.8rem;
    }

    .dubai-banner-label {
        font-size: 0.9rem;
        padding: 0.5rem 1rem;
        text-align: center;
    }

    .dubai-banner-arrow {
        font-size: 1.5rem;
        animation: arrow-bounce-down 1s ease-in-out infinite;
    }

    .dubai-banner-btn {
        padding: 0.7rem 1.5rem;
        font-size: 0.9rem;
    }

    .dubai-banner-link {
        border-radius: var(--radius-md);
    }
}

/* ================================
   Author Section - Наталья Геннадьевна Шутова
   ================================ */
.author-section {
    background: linear-gradient(180deg, #f8f9fb 0%, #f3f4f6 100%);
    padding: 4rem 0 1rem 0;
    position: relative;
    overflow: visible;
    min-height: 700px;
}

/* Background animated elements container */
.author-bg-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

/* Photo wrapper - positioned to extend beyond container */
.author-photo-wrapper {
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

/* Light blue ellipse behind photo with orange pulse */
.author-photo-glow {
    position: absolute;
    top: 10%;
    right: -150px;
    width: 700px;
    height: 750px;
    background: linear-gradient(180deg, rgba(195, 220, 240, 0.9) 0%, rgba(210, 230, 245, 0.7) 50%, rgba(220, 235, 248, 0.3) 80%, transparent 100%);
    border-radius: 50% 50% 50% 50% / 55% 55% 45% 45%;
    z-index: 1;
}

.author-photo-glow::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 500px;
    height: 550px;
    background: radial-gradient(ellipse, rgba(255, 120, 50, 0.4) 0%, rgba(255, 80, 30, 0.2) 40%, transparent 70%);
    border-radius: 50%;
    animation: orange-pulse 3s ease-in-out infinite;
    z-index: -1;
}

@keyframes orange-pulse {

    0%,
    100% {
        transform: translate(-50%, -50%) scale(0.9);
        opacity: 0.6;
    }

    50% {
        transform: translate(-50%, -50%) scale(1.1);
        opacity: 1;
    }
}

/* Photo image */
.author-photo-img {
    position: absolute;
    right: 0;
    bottom: 0;
    height: 95%;
    width: auto;
    max-width: none;
    object-fit: contain;
    object-position: right bottom;
    z-index: 2;
    filter: drop-shadow(-10px 10px 30px rgba(0, 0, 0, 0.1));
    pointer-events: auto;
}

/* Label on photo */
.author-photo-label {
    position: absolute;
    bottom: 120px;
    right: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    padding: 0.7rem 1.8rem;
    border-radius: var(--radius-full);
    font-size: 0.95rem;
    font-weight: 600;
    white-space: nowrap;
    box-shadow: 0 8px 25px rgba(184, 48, 47, 0.35);
    z-index: 10;
    pointer-events: auto;
}

/* Content area */
.author-section .container {
    position: relative;
    z-index: 5;
}

.author-content {
    max-width: 55%;
    padding-right: 2rem;
}

/* Animated Speech Background */
.author-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

/* Sound waves emanating - like speech/voice */
.speech-wave-container {
    position: absolute;
    width: 100%;
    height: 100%;
}

.speech-wave-line {
    position: absolute;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(184, 48, 47, 0.12), transparent);
    animation: wave-pulse 4s ease-in-out infinite;
}

.speech-wave-line:nth-child(1) {
    width: 60%;
    top: 15%;
    left: 20%;
    animation-delay: 0s;
}

.speech-wave-line:nth-child(2) {
    width: 50%;
    top: 30%;
    left: 5%;
    animation-delay: 0.8s;
}

.speech-wave-line:nth-child(3) {
    width: 70%;
    top: 70%;
    left: 15%;
    animation-delay: 1.6s;
}

.speech-wave-line:nth-child(4) {
    width: 40%;
    top: 85%;
    left: 30%;
    animation-delay: 2.4s;
}

@keyframes wave-pulse {

    0%,
    100% {
        opacity: 0;
        transform: scaleX(0.3);
    }

    50% {
        opacity: 1;
        transform: scaleX(1);
    }
}

/* Floating letters - ABC символизирует речь/обучение */
.floating-letter {
    position: absolute;
    font-family: var(--font-primary);
    font-weight: 700;
    opacity: 0.08;
    animation: float-letter 12s ease-in-out infinite;
}

.floating-letter:nth-child(1) {
    font-size: 120px;
    top: 10%;
    left: 5%;
    color: var(--primary-color);
    animation-delay: 0s;
}

.floating-letter:nth-child(2) {
    font-size: 80px;
    top: 60%;
    right: 8%;
    color: var(--secondary-color);
    animation-delay: 2s;
}

.floating-letter:nth-child(3) {
    font-size: 100px;
    bottom: 15%;
    left: 10%;
    color: var(--primary-color);
    animation-delay: 4s;
}

@keyframes float-letter {

    0%,
    100% {
        transform: translateY(0) rotate(-5deg);
    }

    50% {
        transform: translateY(-20px) rotate(5deg);
    }
}

/* Speech bubbles / voice circles */
.voice-circle {
    position: absolute;
    border-radius: 50%;
    border: 2px solid rgba(184, 48, 47, 0.15);
    animation: voice-emanate 5s ease-out infinite;
}

.voice-circle:nth-child(4) {
    width: 80px;
    height: 80px;
    top: 20%;
    right: 20%;
    animation-delay: 0s;
}

.voice-circle:nth-child(5) {
    width: 60px;
    height: 60px;
    top: 50%;
    left: 8%;
    animation-delay: 1.5s;
}

.voice-circle:nth-child(6) {
    width: 100px;
    height: 100px;
    bottom: 20%;
    right: 10%;
    animation-delay: 3s;
}

@keyframes voice-emanate {
    0% {
        transform: scale(0.5);
        opacity: 0;
    }

    30% {
        opacity: 0.5;
    }

    100% {
        transform: scale(2);
        opacity: 0;
    }
}

/* Soft gradient blobs (спокойные, только горизонтальное движение) */
.author-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.25;
    animation: author-blob-float 30s ease-in-out infinite !important;
}

.author-blob-1 {
    width: 280px;
    height: 280px;
    background: radial-gradient(circle, rgba(184, 48, 47, 0.12) 0%, transparent 70%);
    top: -30px;
    right: 10%;
    animation-delay: 0s;
}

.author-blob-2 {
    width: 220px;
    height: 220px;
    background: radial-gradient(circle, rgba(255, 107, 53, 0.10) 0%, transparent 70%);
    bottom: 15%;
    left: 5%;
    animation-delay: 8s;
}

@keyframes author-blob-float {

    0%,
    100% {
        transform: translateX(0);
    }

    50% {
        transform: translateX(10px);
    }
}

/* Communication Icons (floating interactive) */
.comm-icon {
    position: absolute;
    opacity: 0.07;
}

.comm-icon svg {
    width: 100%;
    height: 100%;
}

.comm-icon-megaphone {
    width: 60px;
    height: 60px;
    top: 25%;
    right: 5%;
    color: var(--primary-color);
    animation: float-icon-1 10s ease-in-out infinite;
}

.comm-icon-chat {
    width: 50px;
    height: 50px;
    top: 45%;
    left: 3%;
    color: var(--secondary-color);
    animation: float-icon-2 11s ease-in-out infinite;
    animation-delay: 2s;
}

.comm-icon-mic {
    width: 45px;
    height: 45px;
    bottom: 30%;
    right: 15%;
    color: var(--primary-color);
    animation: float-icon-3 9s ease-in-out infinite;
    animation-delay: 4s;
}

.comm-icon-quote {
    width: 55px;
    height: 55px;
    top: 15%;
    left: 12%;
    color: var(--secondary-color);
    animation: float-icon-4 12s ease-in-out infinite;
    animation-delay: 1s;
}

.comm-icon-sound {
    width: 48px;
    height: 48px;
    bottom: 40%;
    left: 8%;
    color: var(--primary-color);
    animation: float-icon-5 10s ease-in-out infinite;
    animation-delay: 3s;
}

@keyframes float-icon-1 {

    0%,
    100% {
        transform: translateY(0) rotate(-15deg);
        opacity: 0.07;
    }

    50% {
        transform: translateY(-18px) rotate(-10deg);
        opacity: 0.12;
    }
}

@keyframes float-icon-2 {

    0%,
    100% {
        transform: translateY(0) rotate(10deg);
        opacity: 0.07;
    }

    50% {
        transform: translateY(-12px) rotate(15deg);
        opacity: 0.1;
    }
}

@keyframes float-icon-3 {

    0%,
    100% {
        transform: translateY(0) rotate(-5deg);
        opacity: 0.07;
    }

    50% {
        transform: translateY(-20px) rotate(0deg);
        opacity: 0.11;
    }
}

@keyframes float-icon-4 {

    0%,
    100% {
        transform: translateY(0) rotate(5deg);
        opacity: 0.07;
    }

    50% {
        transform: translateY(-14px) rotate(10deg);
        opacity: 0.1;
    }
}

@keyframes float-icon-5 {

    0%,
    100% {
        transform: translateY(0) rotate(-10deg);
        opacity: 0.07;
    }

    50% {
        transform: translateY(-16px) rotate(-5deg);
        opacity: 0.12;
    }
}

/* Author Section Bottom Waves */
.author-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 120px;
    z-index: 1;
    pointer-events: none;
}

/* Main Content */
.author-section .container {
    position: relative;
    z-index: 10;
}

/* Hero Part: Text + Photo */
.author-hero {
    display: grid;
    grid-template-columns: 1fr 480px;
    gap: 2rem;
    align-items: start;
    margin-bottom: 0;
    position: relative;
}

.author-text {
    color: var(--text-dark);
}

.author-label {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 0.4rem 1rem;
    border-radius: var(--radius-full);
    margin-bottom: 1rem;
}

.author-name {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    line-height: 1.2;
    white-space: nowrap;
}

.author-subtitle {
    font-size: 1.1rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.author-description {
    margin-bottom: 1.5rem;
}

.author-description p {
    font-size: 0.95rem;
    line-height: 1.75;
    color: var(--text-gray);
    margin-bottom: 0.875rem;
}

.author-description p:last-child {
    margin-bottom: 0;
}

.author-cta {
    display: flex;
    gap: 1rem;
    flex-wrap: nowrap;
}

/* Advantages Wrapper with Border - positioned to overlap photo area */
.author-advantages-wrapper {
    margin-top: 2rem;
    margin-bottom: 30px;
    max-width: 65%;
    border: 1px solid var(--primary-color);
    border-radius: var(--radius-lg);
    padding: 2rem 2.5rem;
    background: transparent;
    position: relative;
    z-index: 10;
}

/* Advantages Grid - 3x2 for 6 items */
.author-advantages {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem 2rem;
}

.advantage-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.75rem;
}

.advantage-icon {
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: transform 0.3s ease;
}

/* Decorative backgrounds for each icon */
.advantage-icon::before {
    content: '';
    position: absolute;
    border-radius: 50%;
    z-index: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.advantage-icon::after {
    content: '';
    position: absolute;
    z-index: 0;
    transition: transform 0.3s ease;
}

.advantage-icon svg {
    width: 40px;
    height: 40px;
    position: relative;
    z-index: 1;
}

/* Icon 1 - Clock (40 лет) - Coral circle + arc */
.advantage-item:nth-child(1) .advantage-icon {
    color: #E88B84;
}

.advantage-item:nth-child(1) .advantage-icon::before {
    width: 55px;
    height: 55px;
    background: linear-gradient(135deg, #FFE5E2 0%, #FFD4CF 100%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.advantage-item:nth-child(1) .advantage-icon::after {
    width: 65px;
    height: 65px;
    border: 3px solid transparent;
    border-top-color: #E88B84;
    border-right-color: #E88B84;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-45deg);
}

/* Icon 2 - Document (Патенты) - Purple gradient */
.advantage-item:nth-child(2) .advantage-icon {
    color: #9B8AC4;
}

.advantage-item:nth-child(2) .advantage-icon::before {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #EDE7F6 0%, #D1C4E9 100%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 12px;
}

.advantage-item:nth-child(2) .advantage-icon::after {
    width: 12px;
    height: 12px;
    background: #9B8AC4;
    border-radius: 50%;
    top: 8px;
    right: 5px;
    opacity: 0.6;
}

/* Icon 3 - People (Успешные случаи) - Blue gradient */
.advantage-item:nth-child(3) .advantage-icon {
    color: #5C9DCA;
}

.advantage-item:nth-child(3) .advantage-icon::before {
    width: 55px;
    height: 55px;
    background: linear-gradient(135deg, #E3F2FD 0%, #BBDEFB 100%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.advantage-item:nth-child(3) .advantage-icon::after {
    width: 20px;
    height: 20px;
    border: 3px solid #5C9DCA;
    border-radius: 50%;
    bottom: 5px;
    right: 0;
    opacity: 0.5;
}

/* Icon 4 - Calendar (Курс) - Orange warm */
.advantage-item:nth-child(4) .advantage-icon {
    color: #E8956B;
}

.advantage-item:nth-child(4) .advantage-icon::before {
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, #FFF3E0 0%, #FFE0B2 100%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 10px;
}

.advantage-item:nth-child(4) .advantage-icon::after {
    width: 8px;
    height: 8px;
    background: #E8956B;
    border-radius: 2px;
    top: 10px;
    left: 8px;
}

/* Icon 5 - Smile (Возраст) - Green fresh */
.advantage-item:nth-child(5) .advantage-icon {
    color: #6BAF92;
}

.advantage-item:nth-child(5) .advantage-icon::before {
    width: 55px;
    height: 55px;
    background: linear-gradient(135deg, #E8F5E9 0%, #C8E6C9 100%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.advantage-item:nth-child(5) .advantage-icon::after {
    width: 15px;
    height: 15px;
    border: 3px solid #6BAF92;
    border-radius: 50%;
    top: 5px;
    right: 5px;
    opacity: 0.4;
}

/* Icon 6 - Heart (Семья) - Pink love */
.advantage-item:nth-child(6) .advantage-icon {
    color: #E07B8B;
}

.advantage-item:nth-child(6) .advantage-icon::before {
    width: 55px;
    height: 55px;
    background: linear-gradient(135deg, #FCE4EC 0%, #F8BBD9 100%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.advantage-item:nth-child(6) .advantage-icon::after {
    width: 10px;
    height: 10px;
    background: #E07B8B;
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
    bottom: 8px;
    left: 8px;
    opacity: 0.5;
}

/* Icon 7 - Layers (Комплексный) - Teal layers */
.advantage-item:nth-child(7) .advantage-icon {
    color: #5BA8A0;
}

.advantage-item:nth-child(7) .advantage-icon::before {
    width: 55px;
    height: 55px;
    background: linear-gradient(135deg, #E0F2F1 0%, #B2DFDB 100%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.advantage-item:nth-child(7) .advantage-icon::after {
    width: 30px;
    height: 6px;
    background: #5BA8A0;
    border-radius: 3px;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0.4;
}

/* Icon 8 - Users+ (Малые группы) - Coral warm */
.advantage-item:nth-child(8) .advantage-icon {
    color: #D4896A;
}

.advantage-item:nth-child(8) .advantage-icon::before {
    width: 55px;
    height: 55px;
    background: linear-gradient(135deg, #FFEBEE 0%, #FFCDD2 100%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.advantage-item:nth-child(8) .advantage-icon::after {
    width: 16px;
    height: 16px;
    border: 3px solid #D4896A;
    border-radius: 50%;
    top: 5px;
    left: 5px;
    opacity: 0.4;
}

/* Hover effects */
.advantage-item:hover .advantage-icon {
    transform: scale(1.08);
}

.advantage-item:hover .advantage-icon::before {
    transform: translate(-50%, -50%) scale(1.1);
}

.advantage-item:hover .advantage-icon::after {
    opacity: 0.8;
}

.advantage-text {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-dark);
    line-height: 1.4;
    white-space: nowrap;
}

/* Responsive */
@media (max-width: 1200px) {
    .author-content {
        max-width: 50%;
    }

    .author-advantages-wrapper {
        max-width: 55%;
    }

    .author-photo-wrapper {
        width: 55%;
    }
}

@media (max-width: 1024px) {
    .author-name {
        font-size: 2.25rem;
    }

    .author-advantages {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }

    .author-photo-glow {
        width: 550px;
        height: 600px;
        right: -100px;
    }
}

@media (max-width: 768px) {
    .author-section {
        padding: 2rem 0;
        min-height: auto;
    }

    .author-photo-wrapper {
        position: relative;
        width: 100%;
        height: 400px;
        margin-bottom: 2rem;
    }

    .author-photo-img {
        position: relative;
        height: 100%;
        max-width: 100%;
        margin: 0 auto;
        display: block;
    }

    .author-photo-glow {
        width: 350px;
        height: 400px;
        right: 50%;
        transform: translateX(50%);
    }

    .author-photo-label {
        bottom: 20px;
        right: 50%;
        transform: translateX(50%);
    }

    .author-content {
        max-width: 100%;
        padding-right: 0;
        text-align: left;
    }

    .author-name {
        font-size: 1.75rem;
    }

    .author-subtitle {
        font-size: 1rem;
    }

    .author-cta {
        justify-content: flex-start;
    }

    .author-advantages-wrapper {
        max-width: 100%;
        padding: 1.5rem;
    }

    .author-advantages {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .author-wave {
        height: 80px;
    }
}

@media (max-width: 480px) {
    .author-name {
        font-size: 1.5rem;
    }

    .author-cta {
        flex-direction: column;
    }

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

    .author-advantages-wrapper {
        padding: 1rem;
        border-radius: var(--radius-md);
    }

    .author-advantages {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .advantage-icon {
        width: 48px;
        height: 48px;
    }

    .advantage-icon svg {
        width: 32px;
        height: 32px;
    }

    .advantage-text {
        font-size: 0.8rem;
    }

    /* Hide all communication icons and reduce background effects on small mobile */
    .comm-icon {
        display: none;
    }

    .floating-letter {
        display: none;
    }

    .voice-circle {
        display: none;
    }

    .author-wave {
        height: 60px;
    }
}

/* ================================
   Reviews Section (Slider Design)
   ================================ */
.reviews-section {
    background: var(--white);
    padding: var(--spacing-xxl) 0;
    overflow: hidden;
}

.reviews-section .section-title {
    font-weight: 400;
    text-align: left;
    margin-bottom: 0;
}

.reviews-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-xl);
}

.reviews-all-link {
    color: #999;
    font-size: 0.9375rem;
    font-weight: 400;
    text-decoration: none;
    transition: var(--transition-fast);
    white-space: nowrap;
}

.reviews-all-link:hover {
    color: var(--text-dark);
}

.reviews-slider-wrapper {
    position: relative;
    margin-bottom: var(--spacing-xl);
}

.reviews-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--white);
    border: 2px solid var(--border-color);
    color: var(--text-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    opacity: 0;
    pointer-events: none;
}

.reviews-slider-wrapper:hover .reviews-nav-btn {
    opacity: 1;
    pointer-events: auto;
}

.reviews-nav-next {
    right: calc((100% - 1200px) / 2);
}

.reviews-nav-btn:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.reviews-nav-btn:active {
    transform: translateY(-50%) scale(0.95);
}

@media (max-width: 1240px) {
    .reviews-nav-next {
        right: 20px;
    }
}

@media (max-width: 768px) {
    .reviews-nav-btn {
        width: 48px;
        height: 48px;
    }

    .reviews-nav-next {
        right: 10px;
    }
}

.container-left {
    padding-left: calc((100% - 1200px) / 2);
    max-width: 100%;
}

@media (max-width: 1240px) {
    .container-left {
        padding-left: 20px;
    }
}

.reviews-slider {
    display: flex;
    gap: var(--spacing-lg);
    overflow-x: auto;
    scroll-behavior: smooth;
    padding-bottom: var(--spacing-md);
    scrollbar-width: none;
    -ms-overflow-style: none;
    cursor: grab;
}

.reviews-slider::-webkit-scrollbar {
    display: none;
}

.reviews-slider:active {
    cursor: grabbing;
}

.review-card {
    background: #f5f5f7;
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    min-width: 350px;
    max-width: 350px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    transition: var(--transition-fast);
}

.review-card:hover {
    background: #ebebed;
}

.review-meta {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: var(--spacing-md);
}

.review-author {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
}

.review-date {
    font-size: 0.875rem;
    color: var(--text-light);
}

.review-text {
    color: var(--text-gray);
    line-height: 1.7;
    margin-bottom: var(--spacing-md);
    flex-grow: 1;
    font-size: 0.9375rem;
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.review-read-more {
    color: var(--text-gray);
    font-size: 0.875rem;
    font-weight: 400;
    text-decoration: none;
    transition: var(--transition-fast);
    display: inline-block;
}

.review-read-more:hover {
    color: var(--text-dark);
}

.reviews-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: var(--spacing-xl);
}

.reviews-add-btn {
    background: transparent;
    border: 2px solid var(--text-dark);
    color: var(--text-dark);
    padding: 14px 32px;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition-fast);
}

.reviews-add-btn:hover {
    background: var(--text-dark);
    color: var(--white);
}

.reviews-pagination {
    display: flex;
    align-items: center;
    gap: 8px;
}

.pagination-dot {
    width: 40px;
    height: 3px;
    border-radius: 2px;
    background: #d1d1d6;
    cursor: pointer;
    transition: all 0.3s ease;
}

.pagination-dot.active {
    background: var(--text-dark);
}

@media (max-width: 768px) {
    .review-card {
        min-width: 300px;
        max-width: 300px;
    }

    .reviews-footer {
        flex-direction: column;
        gap: var(--spacing-lg);
        align-items: center;
    }

    .reviews-add-btn {
        width: 100%;
    }
}

@media (max-width: 550px) {
    .review-card {
        min-width: 280px;
        max-width: 280px;
    }
}

/* ================================
   Dubai Course Request Modal
   ================================ */
.dubai-modal-content {
    max-width: 500px;
    width: 100%;
    padding: 40px 40px !important;
}

.dubai-modal-header {
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.dubai-modal-header h3 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: var(--spacing-sm);
}

.dubai-modal-header p {
    font-size: 0.95rem;
    color: var(--text-gray);
}

#dubaiFormContainer {
    display: block;
}

#dubaiFormContainer .form-group {
    margin-bottom: var(--spacing-lg);
}

#dubaiFormContainer label {
    display: block;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: var(--spacing-sm);
    font-size: 1rem;
}

#dubaiFormContainer .consent-label {
    font-size: 14px;
    font-weight: 400;
}

#dubaiFormContainer input {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: var(--font-primary);
}

#dubaiFormContainer input:focus {
    outline: none;
    border-color: var(--primary-color);
}

#dubaiFormContainer input::placeholder {
    color: var(--text-light);
}

.btn-full {
    width: 100%;
    padding: 1rem;
    font-size: 1.05rem;
    margin-top: var(--spacing-md);
}

.dubai-form-success {
    display: none;
    text-align: center;
    padding: var(--spacing-xl) var(--spacing-lg);
}

.dubai-form-success.active {
    display: block;
}

.dubai-form-success .success-icon {
    width: 60px;
    height: 60px;
    background: var(--success-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: bold;
    margin: 0 auto var(--spacing-lg);
}

.dubai-form-success h4 {
    font-size: 1.5rem;
    color: var(--text-dark);
    margin-bottom: var(--spacing-sm);
}

.dubai-form-success p {
    font-size: 1rem;
    color: var(--text-gray);
    margin-bottom: var(--spacing-lg);
    line-height: 1.6;
}

@media (max-width: 640px) {
    .dubai-modal-content {
        max-width: 95%;
    }

    .dubai-modal-header h3 {
        font-size: 1.5rem;
    }
}

/* ================================
   Consultation Request Modal
   ================================ */
.consultation-modal-content {
    max-width: 540px;
    width: 100%;
    padding: 40px 40px !important;
}

.consultation-modal-header {
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

.consultation-modal-header h3 {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: var(--spacing-sm);
    line-height: 1.2;
    white-space: nowrap;
}

.consultation-modal-header p {
    font-size: 0.95rem;
    color: var(--text-gray);
    line-height: 1.5;
    white-space: nowrap;
}

#consultationFormContainer {
    display: block;
}

#consultationFormContainer .form-group {
    margin-bottom: var(--spacing-md);
}

#consultationFormContainer label {
    display: block;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: var(--spacing-sm);
    font-size: 1rem;
}

#consultationFormContainer .consent-label {
    font-size: 14px;
    font-weight: 400;
}

#consultationFormContainer input,
#consultationFormContainer textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-family: var(--font-primary);
    transition: all 0.3s ease;
}

#consultationFormContainer textarea {
    resize: vertical;
    min-height: 120px;
}

#consultationFormContainer input:focus,
#consultationFormContainer textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(184, 48, 47, 0.1);
}

#consultationFormContainer input::placeholder,
#consultationFormContainer textarea::placeholder {
    color: var(--text-light);
}

#consultationFormContainer .btn-full {
    margin-top: var(--spacing-md);
}

.consultation-form-success {
    display: none;
    text-align: center;
    padding: var(--spacing-xxl) var(--spacing-xl);
}

.consultation-form-success.active {
    display: block;
}

.consultation-form-success .success-icon {
    width: 70px;
    height: 70px;
    background: var(--success-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.25rem;
    font-weight: bold;
    margin: 0 auto var(--spacing-xl);
}

.consultation-form-success h4 {
    font-size: 1.625rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: var(--spacing-md);
}

.consultation-form-success p {
    font-size: 1.0625rem;
    color: var(--text-gray);
    margin-bottom: var(--spacing-xl);
    line-height: 1.6;
}

@media (max-width: 640px) {
    .consultation-modal-content {
        max-width: 95%;
        padding: 24px 20px !important;
    }

    .consultation-modal-header h3 {
        font-size: 1.25rem;
        white-space: normal;
    }

    .consultation-modal-header p {
        white-space: normal;
        font-size: 0.875rem;
    }

    #consultationFormContainer .form-group {
        margin-bottom: var(--spacing-md);
    }
}

/* ===================================
   SPECIALISTS PAGE STYLES
   =================================== */

/* Section Description */
.section-description {
    font-size: 1.125rem;
    color: var(--text-gray);
    text-align: center;
    max-width: 800px;
    margin: 0 auto var(--spacing-xxl);
    line-height: 1.7;
}

/* Specialists Grid - Preview Cards */
.specialists-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-xxl);
}

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

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

/* Specialist Card */
.specialist-card {
    display: block;
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
}

.specialist-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(184, 48, 47, 0.15);
}

.specialist-card-photo {
    position: relative;
    width: 100%;
    padding-top: 100%;
    overflow: hidden;
    background: linear-gradient(135deg, #f0f4f8 0%, #e8ecf0 100%);
}

.specialist-card-photo img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    transition: transform 0.4s ease;
}

.specialist-card:hover .specialist-card-photo img {
    transform: scale(1.05);
}

.specialist-card-info {
    padding: var(--spacing-lg);
    text-align: center;
}

.specialist-card-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: var(--spacing-sm);
    line-height: 1.3;
}

.specialist-card-title {
    font-size: 0.9rem;
    color: var(--text-gray);
    margin-bottom: var(--spacing-md);
    line-height: 1.5;
}

.specialist-card-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.95rem;
    transition: gap 0.3s ease;
}

.specialist-card:hover .specialist-card-link {
    gap: 0.75rem;
}

/* Placeholder Card */
.specialist-card-placeholder {
    opacity: 0.85;
    cursor: pointer;
}

.specialist-card-placeholder .specialist-card-photo {
    background: linear-gradient(135deg, #e8ecf0 0%, #d0d8e0 100%);
}

.placeholder-avatar {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.placeholder-avatar i {
    font-size: 2.5rem;
    color: #c0c8d0;
}

/* Large placeholder for profile view */
.placeholder-avatar-large {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    width: 280px;
    height: 280px;
    background: linear-gradient(135deg, #e8ecf0 0%, #d0d8e0 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.placeholder-avatar-large i {
    font-size: 6rem;
    color: #c0c8d0;
}

/* Placeholder message for empty profiles */
.profile-section-placeholder {
    padding: var(--spacing-xxl);
    text-align: center;
}

.placeholder-message {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-md);
    color: var(--text-gray);
}

.placeholder-message i {
    font-size: 3rem;
    color: #c0c8d0;
}

.placeholder-message p {
    font-size: 1.1rem;
    margin: 0;
}

/* Specialist Profile - Detailed View */
.specialists-profiles {
    background: linear-gradient(180deg, #f8f9fa 0%, var(--white) 100%);
    padding-top: var(--spacing-xxl);
}

.specialist-profile {
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    margin-bottom: var(--spacing-xxl);
    scroll-margin-top: 120px;
}

.specialist-profile-header {
    display: flex;
    gap: var(--spacing-xxl);
    padding: var(--spacing-xxl);
    background: linear-gradient(135deg, #fff5f4 0%, var(--white) 100%);
    border-bottom: 1px solid var(--border-color);
}

@media (max-width: 768px) {
    .specialist-profile-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: var(--spacing-xl);
        gap: var(--spacing-xl);
    }
}

.specialist-profile-photo {
    flex-shrink: 0;
    width: 280px;
    height: 280px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(184, 48, 47, 0.2);
}

@media (max-width: 768px) {
    .specialist-profile-photo {
        width: 200px;
        height: 200px;
    }
}

.specialist-profile-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
}

.specialist-profile-intro {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.specialist-profile-name {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: var(--spacing-sm);
    line-height: 1.2;
}

@media (max-width: 768px) {
    .specialist-profile-name {
        font-size: 1.5rem;
    }
}

.specialist-profile-title {
    font-size: 1.125rem;
    color: var(--primary-color);
    font-weight: 500;
    margin-bottom: var(--spacing-lg);
}

.specialist-profile-badges {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-xl);
}

@media (max-width: 768px) {
    .specialist-profile-badges {
        justify-content: center;
    }
}

.specialist-profile-intro .btn {
    width: 50%;
    max-width: 320px;
    min-width: 250px;
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

@media (max-width: 768px) {
    .specialist-profile-intro .btn {
        width: 100%;
        max-width: none;
    }
}

/* Badges */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
}

.badge i {
    font-size: 0.9rem;
}

.badge-primary {
    background: var(--white);
    border: 2px solid #222;
    color: var(--text-dark);
}

.badge-secondary {
    background: var(--white);
    border: 2px solid #222;
    color: var(--text-dark);
}

.badge-success {
    background: linear-gradient(135deg, var(--success-color), #388e3c);
    color: var(--white);
}

/* Profile Content */
.specialist-profile-content {
    padding: var(--spacing-xxl);
}

@media (max-width: 768px) {
    .specialist-profile-content {
        padding: var(--spacing-xl);
    }
}

.profile-section {
    margin-bottom: var(--spacing-xxl);
}

.profile-section:last-of-type {
    margin-bottom: var(--spacing-xl);
}

.profile-section h3 {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: var(--spacing-lg);
    padding-bottom: var(--spacing-sm);
    border-bottom: 2px solid var(--primary-light);
}

.profile-section h3 i {
    font-size: 1.25rem;
    opacity: 0.8;
}

.profile-section p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-dark);
    margin-bottom: var(--spacing-md);
}

.profile-section p:last-child {
    margin-bottom: 0;
}

/* Video Testimonials */
.specialist-videos {
    margin-top: var(--spacing-xl);
    padding: var(--spacing-lg);
    background: var(--bg-light);
    border-radius: var(--radius-md);
}

.specialist-videos h3 {
    margin-bottom: var(--spacing-md);
    font-size: 1.2rem;
    color: var(--text-color);
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-md);
}

.video-item {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: var(--radius-md);
}

.video-item iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: var(--radius-md);
}

/* Specialist Photo Gallery (сертификаты, фото с занятий) */
.specialist-photo-gallery {
    margin-top: var(--spacing-xl);
    padding: var(--spacing-lg);
    background: var(--bg-light);
    border-radius: var(--radius-md);
}

.specialist-photo-gallery h3 {
    margin-bottom: var(--spacing-md);
    font-size: 1.2rem;
    color: var(--text-color);
}

.specialist-photo-gallery h3 i {
    margin-right: 0.5rem;
    color: var(--primary-color);
}

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

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

@media (max-width: 480px) {
    .specialist-gallery-grid {
        grid-template-columns: 1fr;
    }
}

/* Profile CTA */
.profile-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-xl);
    padding: var(--spacing-xl);
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-radius: 12px;
    margin-top: var(--spacing-xl);
}

@media (max-width: 768px) {
    .profile-cta {
        flex-direction: column;
        text-align: center;
    }
}

.profile-cta-content h4 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: var(--spacing-xs);
}

.profile-cta-content p {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.85);
    margin: 0;
}

.profile-cta .btn {
    flex-shrink: 0;
    background: var(--white);
    color: var(--primary-color);
    border: none;
}

.profile-cta .btn:hover {
    background: #f8f9fa;
    transform: translateY(-2px);
}

/* Button Large */
.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.btn i {
    margin-right: 0.5rem;
}

/* Specialist option disabled state */
.specialist-option.disabled {
    opacity: 0.5;
    pointer-events: none;
    cursor: not-allowed;
}

.specialist-option.disabled .specialist-option-content {
    background: #f5f5f5;
}

.specialist-option.disabled input[type="radio"] {
    cursor: not-allowed;
}

/* ================================
   Licensees Page - 3D Flip Cards
   ================================ */
.licensees-intro {
    text-align: center;
    max-width: 1000px;
    margin: 0 auto 3rem;
}

.licensees-intro p {
    font-size: 1.1rem;
    color: var(--text-gray);
    line-height: 1.7;
}

.licensees-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

/* 3D Flip Card */
.licensee-card {
    perspective: 1000px;
    height: 380px;
}

.licensee-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
    cursor: pointer;
}

.licensee-card:hover .licensee-card-inner {
    transform: rotateY(180deg);
}

.licensee-card-front,
.licensee-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

/* Front - Certificate Image */
.licensee-card-front {
    background: var(--white);
}

.licensee-card-front img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.licensee-card-front::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.5) 0%, transparent 50%);
    pointer-events: none;
}

.licensee-card-front .flip-hint {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    opacity: 0.9;
    z-index: 2;
}

.licensee-card-front .flip-hint svg {
    width: 16px;
    height: 16px;
    animation: flipHint 2s ease-in-out infinite;
}

@keyframes flipHint {

    0%,
    100% {
        transform: rotateY(0deg);
    }

    50% {
        transform: rotateY(20deg);
    }
}

/* Back - Info */
.licensee-card-back {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    transform: rotateY(180deg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem 1.5rem;
    text-align: center;
}

.licensee-card-back .licensee-icon {
    width: 70px;
    height: 70px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.licensee-card-back .licensee-icon svg {
    width: 36px;
    height: 36px;
    color: white;
}

.licensee-card-back .licensee-name {
    font-family: var(--font-primary);
    font-size: 1.2rem;
    font-weight: 600;
    color: white;
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.licensee-card-back .licensee-city {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.85);
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

.licensee-card-back .licensee-city svg {
    width: 18px;
    height: 18px;
}

.licensee-card-back .view-certificate {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: white;
    color: var(--primary-color);
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all var(--transition-fast);
    border: none;
    cursor: pointer;
}

.licensee-card-back .view-certificate:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.licensee-card-back .view-certificate svg {
    width: 18px;
    height: 18px;
}

/* Lightbox */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: var(--radius-sm);
}

.lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    padding: 0.5rem;
    line-height: 1;
}

.lightbox-close:hover {
    color: var(--primary-color);
}

.lightbox-info {
    text-align: center;
    color: white;
    margin-top: 1rem;
}

.lightbox-info h4 {
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
}

.lightbox-info p {
    color: rgba(255, 255, 255, 0.7);
}

/* Responsive Licensees */
@media (max-width: 1200px) {
    .licensees-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .licensees-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .licensee-card {
        height: 320px;
    }

    .licensee-card-back {
        padding: 1.5rem 1rem;
    }

    .licensee-card-back .licensee-name {
        font-size: 1rem;
    }

    .licensee-card-back .licensee-icon {
        width: 56px;
        height: 56px;
        margin-bottom: 1rem;
    }

    .licensee-card-back .licensee-icon svg {
        width: 28px;
        height: 28px;
    }
}

@media (max-width: 480px) {
    .licensees-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }

    .licensee-card {
        height: 220px;
    }

    .licensee-card-back {
        padding: 1rem 0.5rem;
    }

    .licensee-card-back .licensee-icon {
        width: 40px;
        height: 40px;
        margin-bottom: 0.5rem;
    }

    .licensee-card-back .licensee-icon svg {
        width: 20px;
        height: 20px;
    }

    .licensee-card-back .licensee-name {
        font-size: 0.8rem;
        margin-bottom: 0.25rem;
    }

    .licensee-card-back .licensee-city {
        font-size: 0.75rem;
        margin-bottom: 0.5rem;
    }

    .licensee-card-back .view-certificate {
        font-size: 0.7rem;
        padding: 0.4rem 0.75rem;
    }

    .licensee-card-front .flip-hint {
        font-size: 0.65rem;
        bottom: 0.5rem;
    }

    /* Lightbox: only show image, no description */
    .lightbox-info {
        display: none;
    }
}

/* ================================
   METHOD PAGE STYLES
   ================================ */

/* Method Intro Section */
.method-intro {
    padding: 40px 0;
    background: var(--white);
}

.method-intro-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.method-intro-badges {
    display: flex;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-lg);
}

.badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 600;
}

.badge-patent {
    background: var(--primary-color);
    color: var(--white);
}

.badge-years {
    background: #f3f4f6;
    color: var(--text-dark);
}

.method-intro-content h2 {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.25;
    margin-bottom: var(--spacing-lg);
}

.method-intro-content p {
    font-size: 1.05rem;
    line-height: 1.75;
    color: var(--text-gray);
    margin-bottom: var(--spacing-md);
}

.method-intro-cta {
    display: flex;
    gap: var(--spacing-md);
    margin-top: var(--spacing-xl);
}

.method-intro-visual {
    position: relative;
}

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

.method-intro-image img {
    width: 100%;
    height: 420px;
    object-fit: cover;
    object-position: top;
    display: block;
}

/* Method Essence */
.method-essence {
    background: #f8f9fa;
}

.method-essence-block {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 4rem;
    align-items: start;
}

.method-essence-text h2 {
    font-size: 1.75rem;
    color: var(--text-dark);
    margin-bottom: var(--spacing-lg);
}

.method-essence-text p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-gray);
    margin-bottom: var(--spacing-md);
}

.method-essence-text p strong {
    color: var(--text-dark);
}

.result-card {
    position: relative;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    border-radius: 24px;
    padding: 3rem 2.5rem;
    text-align: center;
    box-shadow: 0 20px 40px rgba(184, 48, 47, 0.3);
    overflow: hidden;
    min-width: 280px;
}

.result-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.result-card::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -30%;
    width: 80%;
    height: 80%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 60%);
    pointer-events: none;
}

.result-number {
    position: relative;
    z-index: 1;
    display: block;
    font-size: 5rem;
    font-weight: 800;
    color: var(--white);
    line-height: 1;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.result-label {
    position: relative;
    z-index: 1;
    display: block;
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--white);
    margin-top: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.result-desc {
    position: relative;
    z-index: 1;
    display: block;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.85);
    margin-top: 1rem;
    line-height: 1.5;
}

/* Method Stages Timeline */
.method-stages {
    background: var(--white);
}

.stages-timeline {
    max-width: 800px;
    margin: var(--spacing-2xl) auto 0;
}

.stage-item {
    display: flex;
    gap: var(--spacing-lg);
    padding-bottom: var(--spacing-xl);
    position: relative;
}

.stage-item:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 23px;
    top: 48px;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--primary-color), #e5e7eb);
}

.stage-item:last-child {
    padding-bottom: 0;
}

.stage-marker {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-color);
    color: var(--white);
    font-size: 1.25rem;
    font-weight: 700;
    border-radius: 50%;
    position: relative;
    z-index: 1;
}

.stage-body {
    flex: 1;
    padding-top: 0.5rem;
}

.stage-body h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: var(--spacing-xs);
}

.stage-body p {
    font-size: 1rem;
    color: var(--text-gray);
    line-height: 1.6;
    margin: 0;
}

/* Method Programs */
.method-programs {
    background: #f8f9fa;
}

.programs-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
    margin-top: var(--spacing-2xl);
}

.programs-cards .program-item {
    display: block;
    padding: 0;
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
    border-left: 1px solid #f0f0f0;
}

.programs-cards .program-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(184, 48, 47, 0.15);
}

.programs-cards .program-item-alt .program-header {
    background: linear-gradient(135deg, #FF6B35 0%, #ff8a5c 100%);
}

.programs-cards .program-header {
    padding: 2rem 2rem 1.75rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    position: relative;
    border-bottom: none;
}

.programs-cards .program-header::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.programs-cards .program-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
    margin: 0;
    position: relative;
    z-index: 1;
}

.programs-cards .program-details {
    list-style: none;
    padding: 1.5rem 2rem;
    margin: 0;
}

.programs-cards .program-details li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
    border-bottom: 1px solid #f0f0f0;
}

.programs-cards .program-details li:last-child {
    border-bottom: none;
}

.programs-cards .detail-label {
    color: #888;
    font-size: 0.9rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.programs-cards .detail-label::before {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--primary-color);
    border-radius: 50%;
    opacity: 0.5;
}

.programs-cards .detail-value {
    font-weight: 700;
    color: var(--text-dark);
    font-size: 1rem;
    text-align: right;
}

.programs-cards .program-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #fff 100%);
    border-top: 1px solid #f0f0f0;
}

.programs-cards .program-price-block {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.programs-cards .program-price-block .price-label {
    display: none;
}

.programs-cards .program-price-block .price-amount {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-color);
}

/* Method Gallery */
.method-gallery {
    background: var(--white);
}

.gallery-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: 200px 200px;
    gap: var(--spacing-md);
    margin-top: var(--spacing-2xl);
}

.gallery-cell {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    cursor: pointer;
}

.gallery-cell img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease, filter 0.3s ease;
}

.gallery-cell:hover img {
    transform: scale(1.08);
    filter: brightness(0.85);
}

.gallery-zoom-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
    pointer-events: none;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.gallery-zoom-icon svg {
    width: 28px;
    height: 28px;
    color: var(--primary-color);
}

.gallery-cell:hover .gallery-zoom-icon {
    transform: translate(-50%, -50%) scale(1);
}

.gallery-cell-wide {
    grid-row: span 2;
}

/* Gallery Lightbox */
.gallery-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.gallery-lightbox.active {
    opacity: 1;
    visibility: visible;
}

.gallery-lightbox-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    cursor: pointer;
}

.gallery-lightbox-content {
    position: relative;
    z-index: 1;
    max-width: 90vw;
    max-height: 90vh;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.gallery-lightbox.active .gallery-lightbox-content {
    transform: scale(1);
}

.gallery-lightbox-content img {
    max-width: 100%;
    max-height: 90vh;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.gallery-lightbox-close {
    position: absolute;
    top: -50px;
    right: 0;
    width: 44px;
    height: 44px;
    background: var(--white);
    border: none;
    border-radius: 50%;
    font-size: 28px;
    color: var(--text-dark);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.gallery-lightbox-close:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: rotate(90deg);
}

/* Method Info Block */
.method-info {
    background: var(--white);
    padding-top: var(--spacing-xl);
}

.info-block {
    background: linear-gradient(135deg, #fef7f0 0%, #fff5f3 100%);
    border-radius: 20px;
    padding: 2.5rem 3rem;
    box-shadow: 0 4px 20px rgba(184, 48, 47, 0.08);
    border: 1px solid rgba(184, 48, 47, 0.1);
}

.info-block h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.info-block h3::before {
    content: '';
    width: 4px;
    height: 28px;
    background: var(--primary-color);
    border-radius: 2px;
}

.info-block ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.25rem;
}

.info-block li {
    padding: 1.25rem 1.5rem;
    background: var(--white);
    border-radius: 12px;
    position: relative;
    color: var(--text-dark);
    font-size: 1rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: all 0.2s ease;
}

.info-block li:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(184, 48, 47, 0.1);
}

.info-block li::before {
    content: '\2713';
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    min-width: 32px;
    background: linear-gradient(135deg, var(--primary-color), #d94948);
    color: var(--white);
    border-radius: 50%;
    font-size: 1rem;
    font-weight: 700;
}

/* Method CTA */
.method-cta {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

.cta-block {
    text-align: center;
    padding: var(--spacing-2xl) 0;
}

.cta-block h2 {
    font-size: 2rem;
    color: var(--white);
    margin-bottom: var(--spacing-sm);
}

.cta-block>p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: var(--spacing-xl);
}

.cta-actions {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
    margin-bottom: var(--spacing-lg);
}

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

.cta-actions .btn-primary:hover {
    background: #f8f9fa;
}

.cta-actions .btn-outline {
    border-color: var(--white);
    color: var(--white);
}

.cta-actions .btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
}

.cta-phone {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
}

.cta-phone span {
    font-size: 1rem;
    font-weight: 400;
    opacity: 0.8;
}

/* Method Page Responsive */
@media (max-width: 1024px) {
    .method-intro-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-2xl);
    }

    .method-intro-content h2 {
        font-size: 1.875rem;
    }

    .method-essence-block {
        grid-template-columns: 1fr;
    }

    .result-card {
        max-width: 320px;
    }

    .programs-cards {
        grid-template-columns: 1fr;
    }

    .gallery-grid {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 180px 180px 180px;
    }

    .gallery-cell-wide {
        grid-row: span 1;
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    .method-intro-content h2 {
        font-size: 1.5rem;
    }

    .method-intro-cta {
        flex-direction: column;
    }

    .method-intro-badges {
        flex-wrap: wrap;
    }

    .result-number {
        font-size: 3rem;
    }

    .cta-block h2 {
        font-size: 1.5rem;
    }

    .cta-actions {
        flex-direction: column;
        align-items: center;
    }

    .cta-phone {
        font-size: 1.25rem;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(5, 180px);
    }

    .gallery-cell-wide {
        grid-column: span 1;
    }
}

@media (max-width: 480px) {
    .stage-item {
        flex-direction: column;
        gap: var(--spacing-sm);
    }

    .stage-item:not(:last-child)::after {
        display: none;
    }

    .stage-marker {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .program-footer {
        flex-direction: column;
        gap: var(--spacing-md);
        text-align: center;
    }

    .program-footer .btn {
        width: 100%;
    }
}

/* ================================
   CERTIFICATES PAGE STYLES
   ================================ */

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

.certificates-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem;
}

.certificates-intro p {
    font-size: 1.125rem;
    color: var(--text-gray);
    line-height: 1.7;
}

/* Category Styling */
.certificates-category {
    margin-bottom: 3rem;
}

.category-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 3px solid var(--primary-color);
}

.category-title svg {
    width: 32px;
    height: 32px;
    color: var(--primary-color);
}

/* Certificates Grid */
.certificates-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.patents-grid {
    grid-template-columns: repeat(2, 1fr);
    max-width: 700px;
}

.diplomas-grid {
    grid-template-columns: 1fr;
    max-width: 700px;
}

/* Horizontal diploma card */
.diplomas-grid .certificate-card {
    height: 280px;
}

.diplomas-grid .certificate-card-front img {
    object-fit: contain;
    padding: 1rem;
}

/* Certificate Card - 3D Flip */
.certificate-card {
    perspective: 1000px;
    height: 380px;
}

.certificate-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
    cursor: pointer;
}

.certificate-card:hover .certificate-card-inner {
    transform: rotateY(180deg);
}

.certificate-card-front,
.certificate-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

/* Front Side */
.certificate-card-front {
    background: var(--white);
}

.certificate-card-front img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    background: #f5f5f5;
    padding: 0.5rem;
}

.certificate-card-front .flip-hint {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1rem;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    color: white;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.certificate-card:hover .certificate-card-front .flip-hint {
    opacity: 1;
}

.certificate-card-front .flip-hint svg {
    width: 18px;
    height: 18px;
}

/* Back Side */
.certificate-card-back {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    transform: rotateY(180deg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem 1.5rem;
    text-align: center;
}

.certificate-icon {
    width: 70px;
    height: 70px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
}

.certificate-icon svg {
    width: 36px;
    height: 36px;
    color: white;
}

/* Icon color variations */
.diploma-icon {
    background: rgba(255, 215, 0, 0.25);
}

.sert-icon {
    background: rgba(100, 200, 255, 0.2);
}

.certificate-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.5rem;
}

.certificate-desc {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.certificate-number {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 600;
    margin-bottom: 1.25rem;
    padding: 0.35rem 0.75rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
}

.view-certificate {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: white;
    color: var(--primary-color);
    border: none;
    border-radius: var(--radius-full);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.view-certificate:hover {
    background: var(--secondary-color);
    color: white;
    transform: scale(1.05);
}

.view-certificate svg {
    width: 18px;
    height: 18px;
}

/* Certificate Lightbox */
.certificate-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.certificate-lightbox.active {
    opacity: 1;
    visibility: visible;
}

.certificate-lightbox .lightbox-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    cursor: pointer;
}

.certificate-lightbox .lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    z-index: 1;
}

.certificate-lightbox .lightbox-content img {
    max-width: 100%;
    max-height: 85vh;
    border-radius: var(--radius-md);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.certificate-lightbox .lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    width: 36px;
    height: 36px;
    background: white;
    border: none;
    border-radius: 50%;
    font-size: 1.5rem;
    color: var(--text-dark);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.certificate-lightbox .lightbox-close:hover {
    background: var(--primary-color);
    color: white;
    transform: rotate(90deg);
}

.certificate-lightbox .lightbox-caption {
    text-align: center;
    color: white;
    margin-top: 1rem;
    font-size: 1.1rem;
    font-weight: 500;
}

/* Responsive */
@media (max-width: 1200px) {
    .certificates-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

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

    .patents-grid,
    .diplomas-grid {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .category-title {
        font-size: 1.5rem;
    }

    .category-title svg {
        width: 28px;
        height: 28px;
    }

    .certificate-card {
        height: 350px;
    }
}

@media (max-width: 550px) {

    .certificates-grid,
    .patents-grid {
        grid-template-columns: repeat(2, 1fr);
        max-width: 100%;
        gap: 0.75rem;
    }

    .diplomas-grid {
        grid-template-columns: 1fr;
        max-width: 100%;
    }

    .certificate-card {
        height: 220px;
    }

    .diplomas-grid .certificate-card {
        height: 200px;
    }

    .certificate-card-back {
        padding: 1rem 0.5rem;
    }

    .certificate-icon {
        width: 40px;
        height: 40px;
        margin-bottom: 0.5rem;
    }

    .certificate-icon svg {
        width: 20px;
        height: 20px;
    }

    .certificate-title {
        font-size: 0.8rem;
        margin-bottom: 0.25rem;
    }

    .certificate-desc {
        font-size: 0.7rem;
        margin-bottom: 0.5rem;
    }

    .certificate-number {
        font-size: 0.7rem;
        margin-bottom: 0.5rem;
        padding: 0.2rem 0.5rem;
    }

    .certificate-card-back .view-certificate {
        font-size: 0.7rem;
        padding: 0.4rem 0.75rem;
    }

    .certificate-card-front .flip-hint {
        font-size: 0.65rem;
        bottom: 0.5rem;
    }

    /* Lightbox: only show image, no caption */
    .certificate-lightbox .lightbox-caption {
        display: none;
    }
}

/* ================================
   Professionals / Seminars Page
   ================================ */

/* Seminars Intro Section */
.seminars-intro {
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--bg-light) 100%);
}

.seminars-intro-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-xxl);
    align-items: center;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.seminars-intro-content.with-image {
    grid-template-columns: 1fr 400px;
    max-width: none;
    text-align: left;
}

.seminars-intro-text h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: var(--spacing-md);
}

.seminars-intro-text>p {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--text-gray);
    margin-bottom: var(--spacing-lg);
}

.seminars-features {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--spacing-sm);
}

.with-image .seminars-features {
    flex-direction: column;
    flex-wrap: nowrap;
    justify-content: flex-start;
}

.seminars-feature {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm) var(--spacing-md);
    background: white;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.seminars-feature svg {
    width: 24px;
    height: 24px;
    color: var(--success-color);
    flex-shrink: 0;
}

.seminars-feature span {
    font-weight: 500;
    color: var(--text-dark);
}

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

.seminars-intro-image img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

@media (max-width: 992px) {
    .seminars-intro-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
    }

    .seminars-intro-image {
        max-width: 500px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .seminars-intro-content {
        text-align: left;
    }

    .seminars-features {
        justify-content: flex-start;
    }

    .seminars-intro-text h2 {
        font-size: 1.6rem;
    }
}

/* Seminars List Section */
.seminars-list-section {
    background: var(--white);
}

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

.seminar-card {
    background: white;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

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

.seminar-card-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    padding: var(--spacing-lg);
    color: white;
    position: relative;
}

.seminar-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
}

.seminar-badge-new {
    background: var(--secondary-color);
}

.seminar-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: var(--spacing-xs);
    line-height: 1.3;
}

.seminar-subtitle {
    font-size: 0.9rem;
    opacity: 0.9;
}

.seminar-card-body {
    padding: var(--spacing-lg);
    flex: 1;
    display: flex;
    flex-direction: column;
}

.seminar-description {
    font-size: 0.95rem;
    color: var(--text-gray);
    line-height: 1.6;
    margin-bottom: var(--spacing-md);
}

.seminar-program {
    margin-bottom: var(--spacing-md);
}

.seminar-program h4,
.seminar-results h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: var(--spacing-sm);
}

.seminar-program-list {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 200px;
    overflow-y: auto;
}

.seminar-program-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-gray);
    line-height: 1.4;
}

.seminar-program-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.5rem;
    width: 6px;
    height: 6px;
    background: var(--primary-color);
    border-radius: 50%;
}

.seminar-results {
    margin-top: auto;
    padding-top: var(--spacing-md);
    border-top: 1px solid var(--border-color);
}

.seminar-results ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.seminar-results li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.4rem;
    font-size: 0.9rem;
    color: var(--text-dark);
}

.seminar-results li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--success-color);
    font-weight: bold;
}

.seminar-card-footer {
    padding: var(--spacing-md) var(--spacing-lg);
    border-top: 1px solid var(--border-color);
    background: var(--bg-light);
}

.seminar-card-footer .btn {
    width: 100%;
}

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

@media (max-width: 768px) {
    .seminars-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 0 auto;
    }
}

/* Seminars Schedule Section */
.seminars-schedule-section {
    background: var(--bg-light);
}

.seminars-schedule-wrapper {
    width: 100%;
}

.seminars-schedule-table {
    background: white;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

.seminars-schedule-table table {
    width: 100%;
    border-collapse: collapse;
}

.seminars-schedule-table th {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    padding: var(--spacing-md);
    text-align: left;
    font-weight: 600;
    font-size: 0.95rem;
}

.seminars-schedule-table td {
    padding: var(--spacing-md);
    border-bottom: 1px solid var(--border-color);
    vertical-align: middle;
}

.seminars-schedule-table tbody tr:hover,
.seminars-schedule-table tbody tr.group-hover {
    background: var(--accent-color);
}

.seminars-schedule-table tbody tr.group-hover td {
    background: var(--accent-color);
}

.seminars-schedule-table tbody tr:last-child td {
    border-bottom: none;
}

.city-cell {
    min-width: 120px;
}

.city-name {
    display: block;
    font-weight: 600;
    color: var(--text-dark);
}

.country-tag {
    display: inline-block;
    font-size: 0.75rem;
    color: var(--text-light);
    background: var(--bg-light);
    padding: 0.15rem 0.5rem;
    border-radius: var(--radius-sm);
    margin-top: 0.25rem;
}

.date-cell {
    font-weight: 500;
    color: var(--text-dark);
    white-space: nowrap;
}

.seminars-cell {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.seminar-tag {
    display: inline-block;
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    color: #1565c0;
    padding: 0.35rem 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    font-weight: 500;
}

.organizer-cell {
    min-width: 140px;
}

.organizer-name {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-dark);
}

.organizer-phone {
    display: block;
    font-size: 0.8rem;
    color: var(--text-gray);
    margin-top: 0.25rem;
}

.seminar-name-cell {
    font-size: 0.95rem;
    color: var(--text-dark);
    line-height: 1.4;
    border-left: 4px solid #4CAF50;
    padding-left: 1rem !important;
}

.status-cell {
    text-align: center;
}

.status-pending {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: #fff3e0;
    color: #e65100;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    font-weight: 500;
}

.status-open {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: #e8f5e9;
    color: #2e7d32;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    font-weight: 500;
}

.status-finished {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: #e0e0e0;
    color: #666;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    font-weight: 500;
}

.seminar-row-past {
    background: #fafafa;
    opacity: 0.7;
}

.seminar-row-past:hover {
    background: #fafafa !important;
}

.seminar-row-past .seminar-name-cell {
    color: var(--text-gray);
    border-left-color: #bdbdbd;
}

.btn-disabled {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: #e0e0e0;
    color: #999;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    cursor: not-allowed;
}

.schedule-note {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-lg);
    padding: var(--spacing-md);
    background: #fff3e0;
    border-radius: var(--radius-md);
    border-left: 4px solid #ff9800;
}

.schedule-note svg {
    width: 24px;
    height: 24px;
    color: #ff9800;
    flex-shrink: 0;
}

.schedule-note p {
    color: #e65100;
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0;
}

@media (max-width: 992px) {
    .seminars-schedule-table {
        overflow-x: auto;
    }

    .seminars-schedule-table table {
        min-width: 900px;
    }
}

@media (max-width: 768px) {

    /* Card layout for seminars table on mobile */
    .seminars-schedule-table {
        overflow-x: visible;
        box-shadow: none;
        background: transparent;
    }

    .seminars-schedule-table table {
        min-width: unset;
    }

    .seminars-schedule-table thead {
        display: none;
    }

    .seminars-schedule-table tbody tr {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0.25rem 0.5rem;
        padding: 1rem;
        margin-bottom: 0.75rem;
        background: white;
        border: 1px solid var(--border-color);
        border-radius: var(--radius-md);
        box-shadow: var(--shadow-sm);
    }

    .seminars-schedule-table td {
        display: block;
        padding: 0;
        border-bottom: none;
        vertical-align: baseline;
    }

    /* City from data attribute as card header */
    .seminars-schedule-table tbody tr::before {
        content: attr(data-city);
        grid-column: 1 / -1;
        font-weight: 600;
        font-size: 0.8rem;
        color: var(--primary-color);
        text-transform: uppercase;
        letter-spacing: 0.5px;
        padding-bottom: 0.5rem;
        border-bottom: 1px solid var(--border-color);
        margin-bottom: 0.25rem;
    }

    /* Hide original city/organizer cells (rowspan) */
    .seminars-schedule-table .city-cell,
    .seminars-schedule-table .organizer-cell {
        display: none !important;
    }

    /* Seminar name: full width */
    .seminar-name-cell {
        grid-column: 1 / -1;
        border-left: 3px solid var(--primary-color);
        padding-left: 0.75rem !important;
        font-weight: 600;
        font-size: 0.95rem;
        order: 1;
    }

    .seminar-row-past .seminar-name-cell {
        border-left-color: #bdbdbd;
    }

    /* Date: left half */
    .date-cell {
        grid-column: 1;
        font-size: 0.9rem;
        order: 2;
    }

    /* Status: right half */
    .status-cell {
        grid-column: 2;
        text-align: right;
        order: 3;
    }

    /* Organizer from data attribute */
    .seminars-schedule-table tbody tr[data-organizer]::after {
        content: attr(data-organizer) '\A' 'тел: ' attr(data-phone);
        white-space: pre-line;
        grid-column: 1 / -1;
        font-size: 0.8rem;
        color: var(--text-gray);
        padding-top: 0.5rem;
        border-top: 1px solid var(--border-color);
        order: 4;
    }

    /* Action button: full width */
    .seminars-schedule-table tbody td:last-child {
        grid-column: 1 / -1;
        order: 5;
        margin-top: 0.25rem;
    }

    .seminars-schedule-table tbody td:last-child .row-btn {
        width: 100%;
        text-align: center;
    }
}

/* Target Audience Section */
.target-audience-section {
    background: white;
}

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

.audience-card {
    text-align: center;
    padding: var(--spacing-xl) var(--spacing-lg);
    background: var(--bg-light);
    border-radius: var(--radius-md);
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

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

.audience-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--spacing-md);
}

.audience-icon svg {
    width: 28px;
    height: 28px;
    color: white;
}

.audience-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: var(--spacing-sm);
}

.audience-card p {
    font-size: 0.9rem;
    color: var(--text-gray);
    line-height: 1.5;
}

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

@media (max-width: 550px) {
    .audience-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-md);
    }

    .audience-card {
        padding: var(--spacing-md) var(--spacing-sm);
    }

    .audience-icon {
        width: 48px;
        height: 48px;
    }

    .audience-icon svg {
        width: 22px;
        height: 22px;
    }

    .audience-card h3 {
        font-size: 0.95rem;
    }

    .audience-card p {
        font-size: 0.8rem;
    }
}

/* Seminar Registration Modal */
.seminar-modal-content {
    max-width: 480px;
    width: 100%;
    padding: 30px !important;
    max-height: 90vh;
    overflow-y: auto;
}

.seminar-modal-header {
    text-align: center;
    margin-bottom: var(--spacing-md);
}

.seminar-modal-header h3 {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: var(--spacing-sm);
}

.seminar-modal-header p {
    font-size: 0.95rem;
    color: var(--text-gray);
}

.seminar-selected-info {
    background: var(--bg-light);
    border-radius: var(--radius-md);
    padding: var(--spacing-sm) var(--spacing-md);
    margin-bottom: var(--spacing-md);
}

.seminar-selected-info .info-row {
    display: flex;
    margin-bottom: var(--spacing-xs);
    gap: var(--spacing-sm);
}

.seminar-selected-info .info-row:last-child {
    margin-bottom: 0;
}

.seminar-selected-info .info-label {
    font-size: 0.9rem;
    color: var(--text-gray);
    min-width: 80px;
    flex-shrink: 0;
}

.seminar-selected-info .info-value {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-dark);
    text-align: right;
    flex: 1;
}

#seminarFormContainer .form-group {
    margin-bottom: var(--spacing-md);
}

#seminarFormContainer label {
    display: block;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: var(--spacing-xs);
    font-size: 0.95rem;
}

#seminarFormContainer .consent-label {
    font-size: 14px;
    font-weight: 400;
}

#seminarFormContainer input,
#seminarFormContainer select,
#seminarFormContainer textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: var(--font-secondary);
}

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

#seminarFormContainer textarea {
    resize: vertical;
    min-height: 80px;
}

/* Compact seminar form */
.seminar-form-compact {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.seminar-form-compact input,
.seminar-form-compact textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: var(--font-secondary);
    box-sizing: border-box;
}

.seminar-form-compact input:focus,
.seminar-form-compact textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.seminar-form-compact textarea {
    resize: none;
    min-height: 70px;
}

.seminar-form-compact .btn {
    margin-top: var(--spacing-xs);
}

.seminar-form-success {
    display: none;
    text-align: center;
    padding: var(--spacing-xl) var(--spacing-lg);
}

.seminar-form-success.active {
    display: block;
}

.seminar-form-success .success-icon {
    width: 60px;
    height: 60px;
    background: var(--success-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: bold;
    margin: 0 auto var(--spacing-lg);
}

.seminar-form-success h4 {
    font-size: 1.5rem;
    color: var(--text-dark);
    margin-bottom: var(--spacing-sm);
}

.seminar-form-success p {
    font-size: 1rem;
    color: var(--text-gray);
    margin-bottom: var(--spacing-lg);
    line-height: 1.6;
}

/* ================================
   MEDIA PAGE STYLES (СМИ о нас)
   ================================ */

/* Media Hero Section */
.media-hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    padding: 3rem 0;
    color: white;
}

.media-hero-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 3rem;
}

.media-hero-text {
    flex: 1;
}

.media-hero-text h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: white;
}

.media-hero-text p {
    font-size: 1.1rem;
    line-height: 1.7;
    opacity: 0.9;
    max-width: 600px;
}

.media-stats {
    display: flex;
    gap: 2.5rem;
}

.media-stat {
    text-align: center;
    padding: 1rem 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(10px);
}

.media-stat .stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 0.25rem;
}

.media-stat .stat-label {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Media Section Header */
.media-section .section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.media-section .section-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.media-section .section-title svg {
    color: var(--primary-color);
}

.media-section .section-subtitle {
    color: var(--text-gray);
    font-size: 1.1rem;
}

/* Media Videos Grid */
.media-videos-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.media-video-card {
    background: white;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.media-video-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.video-thumbnail {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
}

.video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.media-video-card:hover .video-thumbnail img {
    transform: scale(1.05);
}

.video-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70px;
    height: 70px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(184, 48, 47, 0.4);
}

.video-play-btn svg {
    width: 28px;
    height: 28px;
    fill: white;
    margin-left: 4px;
}

.video-play-btn:hover {
    transform: translate(-50%, -50%) scale(1.1);
    background: var(--primary-dark);
}

.video-duration {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 500;
}

.video-info {
    padding: 1.25rem;
}

.video-source {
    display: block;
    font-size: 0.85rem;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.video-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
    line-height: 1.4;
    margin-bottom: 0.75rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.video-date {
    font-size: 0.85rem;
    color: var(--text-gray);
}

/* Media More Link */
.media-more-link {
    text-align: center;
    margin-top: 2.5rem;
}

.media-more-link .btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

/* Media Articles Grid */
.media-articles-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.media-article-card {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1.5rem;
    background: white;
    border-radius: var(--radius-lg);
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.media-article-card:hover {
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
    transform: translateX(5px);
}

.article-source-logo {
    flex-shrink: 0;
}

.source-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 0.9rem;
    color: white;
}

.source-badge.rg {
    background: #1a4d8c;
}

.source-badge.kp {
    background: #e51c23;
}

.source-badge.mel {
    background: #6b46c1;
}

.source-badge.az {
    background: #00a651;
}

.source-badge.forbes {
    background: #2d2d2d;
}

.source-badge.ria {
    background: #0064a4;
}

.article-content {
    flex: 1;
    min-width: 0;
}

.article-source {
    display: block;
    font-size: 0.8rem;
    color: var(--text-gray);
    margin-bottom: 0.35rem;
}

.article-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
    line-height: 1.4;
    margin-bottom: 0.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-excerpt {
    font-size: 0.9rem;
    color: var(--text-gray);
    line-height: 1.5;
    margin-bottom: 0.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-date {
    font-size: 0.8rem;
    color: var(--text-gray);
    opacity: 0.8;
}

.article-arrow {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    background: var(--bg-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.article-arrow svg {
    width: 20px;
    height: 20px;
    stroke: var(--text-gray);
    transition: all 0.3s ease;
}

.media-article-card:hover .article-arrow {
    background: var(--primary-color);
}

.media-article-card:hover .article-arrow svg {
    stroke: white;
    transform: translateX(3px);
}

/* Media Podcasts Grid */
.media-podcasts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.media-podcast-card {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1.5rem;
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

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

.podcast-icon {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
}

.podcast-icon svg {
    width: 24px;
    height: 24px;
    fill: white;
    stroke: white;
    stroke-width: 1.5;
}

.podcast-content {
    flex: 1;
    min-width: 0;
}

.podcast-source {
    display: block;
    font-size: 0.8rem;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.podcast-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.35rem;
}

.podcast-desc {
    font-size: 0.85rem;
    color: var(--text-gray);
    line-height: 1.4;
    margin-bottom: 0.35rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.podcast-date {
    font-size: 0.8rem;
    color: var(--text-gray);
    opacity: 0.8;
}

.podcast-play-btn {
    flex-shrink: 0;
    width: 45px;
    height: 45px;
    background: var(--bg-light);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.podcast-play-btn svg {
    width: 18px;
    height: 18px;
    fill: var(--primary-color);
    margin-left: 2px;
}

.podcast-play-btn:hover {
    background: var(--primary-color);
}

.podcast-play-btn:hover svg {
    fill: white;
}

/* Media CTA Section */
.media-cta-section {
    background: linear-gradient(135deg, var(--text-dark) 0%, #1a1a2e 100%);
    padding: 4rem 0;
    color: white;
}

.media-cta-content {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.media-cta-content h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: white;
}

.media-cta-content p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.media-cta-contacts {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.media-cta-contacts .btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-outline-white {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.5);
    color: white;
}

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

.btn-white {
    background: white;
    border: 2px solid white;
    color: var(--primary-color);
    font-weight: 600;
}

.btn-white:hover {
    background: transparent;
    color: white;
}

/* Media Updating Notice */
.media-updating-notice {
    background: linear-gradient(135deg, #f8f9fa 0%, #fff5f3 100%);
    border: 2px dashed var(--border-color);
    border-radius: 16px;
    padding: 4rem 2rem;
    text-align: center;
    margin: 2rem 0;
}

.media-updating-notice .updating-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    animation: pulse-soft 2s ease-in-out infinite;
}

.media-updating-notice .updating-icon svg {
    stroke: white;
    animation: rotate-slow 3s linear infinite;
}

@keyframes pulse-soft {

    0%,
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(184, 48, 47, 0.4);
    }

    50% {
        transform: scale(1.05);
        box-shadow: 0 0 20px 10px rgba(184, 48, 47, 0);
    }
}

@keyframes rotate-slow {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.media-updating-notice .updating-text {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    font-family: var(--font-primary);
}

.media-updating-notice .updating-subtext {
    font-size: 1rem;
    color: var(--text-gray);
    margin: 0;
}

/* Video Modal */
.video-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
}

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

.video-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
}

.video-modal-content {
    position: relative;
    width: 90%;
    max-width: 1000px;
    z-index: 1;
}

.video-modal-close {
    position: absolute;
    top: -50px;
    right: 0;
    background: none;
    border: none;
    color: white;
    font-size: 2.5rem;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.video-modal-close:hover {
    transform: scale(1.1);
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    background: #000;
    border-radius: var(--radius-lg);
}

/* Photo Lightbox (reviews page) */
.photo-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.9);
}

.photo-lightbox.active {
    display: flex;
}

.lightbox-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 80vh;
    border-radius: var(--radius-md);
}

.lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: none;
    border: none;
    color: white;
    font-size: 32px;
    cursor: pointer;
}

/* Review Modal (reviews page) */
.review-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
}

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

.review-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
}

.review-modal-content {
    position: relative;
    background: white;
    border-radius: var(--radius-lg);
    padding: 32px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    z-index: 1;
}

.review-modal-close {
    position: absolute;
    top: 12px;
    right: 16px;
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #666;
}

.review-modal-close:hover {
    color: #333;
}

.review-modal-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.review-modal-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
}

.review-modal-author h3 {
    margin: 0;
    font-size: 18px;
}

.review-modal-author span {
    color: #888;
    font-size: 14px;
}

.review-modal-body p {
    line-height: 1.7;
    color: #444;
}

.review-modal-photo {
    margin-top: 16px;
    text-align: center;
}

.review-modal-photo img {
    max-width: 100%;
    border-radius: var(--radius-md);
    cursor: pointer;
}

/* ================================
   Reviews Page (/reviews)
   ================================ */

/* Video grid — 3 columns */
.videos-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.video-card {
    background: white;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.video-card.hidden-video {
    display: none;
}

.video-card-embed {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
}

.video-card-embed iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: var(--radius-xl);
}

.show-more-videos {
    margin-top: 2rem;
}

/* Text reviews grid — 2 columns */
.reviews-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

.reviews-list .review-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-width: 0;
    max-width: none;
    width: auto;
}

.review-header {
    display: flex;
    align-items: center;
    gap: 12px;
}

.review-avatar {
    width: 44px;
    height: 44px;
    min-width: 44px;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
}

.review-author-info h4 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
}

.review-author-info .review-number {
    color: #888;
    font-size: 13px;
}

.review-body {
    display: flex;
    gap: 16px;
}

.review-content {
    flex: 1;
    min-width: 0;
}

.review-content .review-text {
    font-size: 14px;
    line-height: 1.7;
    color: #444;
    font-style: italic;
}

.review-text.collapsed {
    display: -webkit-box;
    -webkit-line-clamp: 6;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.read-more-btn {
    background: none;
    border: 1px solid #ddd;
    border-radius: var(--radius-sm);
    padding: 6px 14px;
    font-size: 13px;
    cursor: pointer;
    margin-top: 10px;
    transition: background 0.2s;
}

.read-more-btn:hover {
    background: #f5f5f5;
}

.review-photo {
    width: 120px;
    min-width: 120px;
}

.review-photo img {
    width: 100%;
    border-radius: var(--radius-md);
    cursor: pointer;
}

/* Pagination */
.reviews-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 2rem;
}

.pagination-btn {
    background: white;
    border: 1px solid #ddd;
    border-radius: var(--radius-sm);
    padding: 8px 14px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}

.pagination-btn:hover:not(:disabled) {
    background: #f5f5f5;
    border-color: var(--primary-color);
}

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

.pagination-btn:disabled {
    opacity: 0.4;
    cursor: default;
}

/* Reviews page responsive */
@media (max-width: 768px) {
    .videos-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .reviews-list {
        grid-template-columns: 1fr;
    }

    .review-body {
        flex-direction: column;
    }

    .review-photo {
        width: 100%;
    }
}

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

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Media Page Responsive */
@media (max-width: 992px) {
    .media-hero-content {
        flex-direction: column;
        text-align: center;
    }

    .media-stats {
        justify-content: center;
    }

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

    .media-articles-grid {
        grid-template-columns: 1fr;
    }

    .media-podcasts-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .media-hero {
        padding: 2rem 0;
    }

    .media-hero-text h2 {
        font-size: 1.5rem;
    }

    .media-stats {
        flex-wrap: wrap;
        gap: 1rem;
    }

    .media-stat {
        padding: 0.75rem 1rem;
    }

    .media-stat .stat-number {
        font-size: 2rem;
    }

    .media-videos-grid {
        grid-template-columns: 1fr;
    }

    .media-section .section-title {
        font-size: 1.4rem;
    }

    .media-article-card {
        padding: 1rem;
    }

    .article-excerpt {
        display: none;
    }

    .media-podcast-card {
        padding: 1rem;
    }

    .media-cta-content h2 {
        font-size: 1.5rem;
    }

    .media-cta-contacts {
        flex-direction: column;
    }

    .media-cta-contacts .btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .video-play-btn {
        width: 55px;
        height: 55px;
    }

    .video-play-btn svg {
        width: 22px;
        height: 22px;
    }
}

/* ===== FAQ Section ===== */
.faq-section {
    background: var(--bg-light);
}

.faq-intro {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 3rem;
}

.faq-intro p {
    font-size: 1.125rem;
    color: var(--text-gray);
    line-height: 1.7;
}

.faq-list {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-item {
    background: var(--white);
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

.faq-item:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.faq-item.active {
    box-shadow: 0 4px 24px rgba(184, 48, 47, 0.15);
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 2rem;
    background: transparent;
    border: none;
    cursor: pointer;
    text-align: left;
    gap: 1rem;
    transition: background 0.2s ease;
}

.faq-question:hover {
    background: rgba(184, 48, 47, 0.03);
}

.faq-question span {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-dark);
    line-height: 1.4;
}

.faq-icon {
    flex-shrink: 0;
    color: var(--primary-color);
    transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 1000px;
}

.faq-answer p {
    padding: 0 2rem 1rem;
    color: var(--text-gray);
    font-size: 1rem;
    line-height: 1.7;
}

.faq-answer p:last-child {
    padding-bottom: 1.5rem;
}

.faq-answer ul {
    padding: 0 2rem 1.5rem 3.5rem;
    color: var(--text-gray);
    font-size: 1rem;
    line-height: 1.7;
}

.faq-answer ul li {
    margin-bottom: 0.5rem;
}

.faq-answer ul li a {
    color: var(--primary-color);
    text-decoration: none;
}

.faq-answer ul li a:hover {
    text-decoration: underline;
}

/* FAQ CTA */
.faq-cta {
    max-width: 700px;
    margin: 4rem auto 0;
    text-align: center;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    border-radius: 24px;
    padding: 3rem 2rem;
    color: var(--white);
}

.faq-cta h3 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--white);
}

.faq-cta p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 2rem;
}

.faq-cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

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

.faq-cta .btn-primary:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
}

.faq-cta .btn-outline {
    border-color: var(--white);
    color: var(--white);
}

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

/* FAQ Responsive */
@media (max-width: 768px) {
    .faq-question {
        padding: 1.25rem 1.5rem;
    }

    .faq-question span {
        font-size: 1rem;
    }

    .faq-answer p {
        padding: 0 1.5rem 1.25rem;
        font-size: 0.95rem;
    }

    .faq-cta {
        padding: 2rem 1.5rem;
    }

    .faq-cta h3 {
        font-size: 1.5rem;
    }

    .faq-cta-buttons {
        flex-direction: column;
    }

    .faq-cta-buttons .btn {
        width: 100%;
    }
}

/* ================================
   WEBINARS PAGE STYLES
   ================================ */

/* Webinars Intro Section */
.webinars-intro {
    background: transparent;
}

.webinars-intro-content {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.webinars-intro-text {
    flex: 6;
}

.webinars-intro-text h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.webinars-intro-text p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text-gray);
    margin-bottom: 1.5rem;
}

.webinars-intro-text strong {
    color: var(--primary-color);
}

.webinars-features {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.webinar-feature {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1rem;
    color: var(--text-dark);
}

.webinar-feature svg {
    color: var(--success-color);
    flex-shrink: 0;
}

.webinars-intro-image {
    flex: 4;
}

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

/* Webinars Section */
.webinars-section .section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.webinars-section .section-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.webinars-section .section-title svg {
    color: var(--primary-color);
}

.webinars-section .section-subtitle {
    color: var(--text-gray);
    font-size: 1.1rem;
}

/* Webinars Grid */
.webinars-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

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

/* Webinar Card */
.webinar-card {
    background: white;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

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

.webinar-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.5rem 1rem;
    border-radius: 30px;
    font-size: 0.875rem;
    font-weight: 600;
    z-index: 2;
}

.free-badge {
    background: var(--success-color);
    color: white;
}

.paid-badge {
    background: var(--primary-color);
    color: white;
}

.webinar-thumbnail {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
}

.webinar-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.webinar-card:hover .webinar-thumbnail img {
    transform: scale(1.05);
}

.webinar-play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.webinar-card:hover .webinar-play-overlay {
    opacity: 1;
}

.webinar-play-overlay svg {
    width: 60px;
    height: 60px;
    fill: white;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.3));
}

.webinar-icon-header {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: linear-gradient(135deg, #fff5f3 0%, #ffffff 100%);
}

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

.webinar-content {
    padding: 1.5rem;
}

.webinar-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.webinar-description {
    font-size: 0.95rem;
    color: var(--text-gray);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.webinar-author {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-gray);
    margin-bottom: 1.25rem;
}

.webinar-author svg {
    color: var(--primary-color);
}

.webinar-program {
    margin-bottom: 1.25rem;
}

.webinar-program h4 {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
}

.webinar-program ul {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 180px;
    overflow-y: auto;
}

.webinar-program ul li {
    position: relative;
    padding-left: 1.25rem;
    font-size: 0.85rem;
    color: var(--text-gray);
    line-height: 1.8;
}

.webinar-program ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.6em;
    width: 6px;
    height: 6px;
    background: var(--primary-color);
    border-radius: 50%;
}

.webinar-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
}

.webinar-meta-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    color: var(--text-gray);
}

.webinar-meta-item svg {
    color: var(--success-color);
}

.webinar-btn {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.webinar-btn svg {
    flex-shrink: 0;
}

/* Webinars Bundle */
.webinars-bundle {
    margin-top: 3rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    color: white;
}

.bundle-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}

.bundle-icon {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bundle-icon svg {
    color: white;
}

.bundle-info {
    flex: 1;
    min-width: 200px;
}

.bundle-info h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: white;
}

.bundle-info p {
    font-size: 1rem;
    opacity: 0.9;
}

.bundle-price {
    display: flex;
    align-items: baseline;
    gap: 1rem;
}

.bundle-price .old-price {
    font-size: 1.25rem;
    text-decoration: line-through;
    opacity: 0.6;
}

.bundle-price .new-price {
    font-size: 2.5rem;
    font-weight: 700;
}

.webinars-bundle .btn {
    flex-shrink: 0;
}

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

.webinars-bundle .btn-primary:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
}

/* How It Works Section */
.webinars-how .section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.how-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.how-step {
    text-align: center;
    position: relative;
}

.how-step::after {
    content: '';
    position: absolute;
    top: 30px;
    right: -1rem;
    width: calc(100% - 60px);
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), transparent);
}

.how-step:last-child::after {
    display: none;
}

.step-number {
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 1rem;
}

.how-step h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.how-step p {
    font-size: 0.9rem;
    color: var(--text-gray);
    line-height: 1.5;
}

/* Webinar Modal Specific Styles */
.webinar-order-info {
    background: var(--bg-light);
    padding: 1rem 1.5rem;
    border-radius: var(--radius-md);
    margin-bottom: 1.5rem;
}

.webinar-order-info p {
    margin: 0.5rem 0;
    font-size: 1rem;
}

.webinar-order-info strong {
    color: var(--text-gray);
}

.webinar-order-info span {
    color: var(--text-dark);
    font-weight: 600;
}

.webinar-modal-note {
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-gray);
    margin-top: 1rem;
}

/* Webinars Responsive */
@media (max-width: 1200px) {
    .webinars-grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .webinars-intro-content {
        flex-direction: column;
        text-align: center;
    }

    .webinars-intro-image {
        flex: none;
        max-width: 280px;
        order: -1;
    }

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

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

    .how-step::after {
        display: none;
    }

    .bundle-content {
        flex-direction: column;
        text-align: center;
    }

    .bundle-info {
        text-align: center;
    }
}

@media (max-width: 768px) {

    .webinars-grid,
    .webinars-grid-3 {
        grid-template-columns: 1fr;
    }

    .webinars-intro-text h2 {
        font-size: 1.5rem;
    }

    .webinars-section .section-title {
        font-size: 1.4rem;
    }

    .webinars-bundle {
        padding: 1.5rem;
    }

    .bundle-price .new-price {
        font-size: 2rem;
    }

    .how-steps {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .step-number {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }
}

/* Hide reCAPTCHA v3 badge */
.grecaptcha-badge {
    visibility: hidden !important;
}

/* ================================
   Cookie Consent Banner
   ================================ */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(139, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #fff;
    padding: 1rem 0;
    z-index: 9999;
    transform: translateY(100%);
    transition: transform 0.4s ease;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
}

.cookie-banner.visible {
    transform: translateY(0);
}

.cookie-banner-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.cookie-banner-text {
    font-size: 0.82rem;
    line-height: 1.5;
    margin-bottom: 0.4rem;
}

.cookie-banner-text a {
    color: #ffd700;
    text-decoration: underline;
}

.cookie-banner-text a:hover {
    color: #fff;
}

.cookie-banner-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    font-size: 0.82rem;
    line-height: 1.5;
}

.cookie-banner-row a {
    color: #ffd700;
    text-decoration: underline;
}

.cookie-banner-row a:hover {
    color: #fff;
}

.cookie-banner-btn {
    flex-shrink: 0;
    background: #fff;
    color: var(--primary-color);
    border: 2px solid #fff;
    padding: 0.5rem 2rem;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cookie-banner-btn:hover {
    background: transparent;
    color: #fff;
}

@media (max-width: 768px) {
    .cookie-banner {
        padding: 0.8rem 0;
    }

    .cookie-banner-inner {
        padding: 0 1rem;
    }

    .cookie-banner-text {
        font-size: 0.75rem;
    }

    .cookie-banner-row {
        flex-direction: column;
        gap: 0.6rem;
        font-size: 0.75rem;
        text-align: center;
    }

    .cookie-banner-btn {
        width: 100%;
        padding: 0.5rem 1.5rem;
    }
}

/* Finished Course Status Styles */
.status-badge-finished {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    background: #f0f2f5;
    color: #6c757d;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.status-badge-finished .status-dot {
    background-color: #6c757d;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}

.btn-finished {
    background-color: #6c757d !important;
    color: white !important;
    cursor: default !important;
    opacity: 0.8;
    border: none !important;
}

.btn-finished:hover {
    background-color: #6c757d !important;
    transform: none !important;
}