/* ============================================
   ОСНОВНЫЕ СТИЛИ
   ============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Цветовая палитра */
    --primary-color: #1d94c4;
    --primary-dark: #157a9f;
    --primary-light: #4db3d6;
    --secondary-color: #0d9488;
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --bg-light: #f9fafb;
    --bg-white: #ffffff;
    --border-color: #e5e7eb;
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    
    /* Типографика */
    --font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-size-base: 16px;
    --line-height-base: 1.6;
    
    /* Отступы */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-2xl: 4rem;
    
    /* Радиусы */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    
    /* Переходы */
    --transition: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

html {
    overflow-y: scroll;
}

body {
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    line-height: var(--line-height-base);
    color: var(--text-dark);
    background-color: var(--bg-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ============================================
   УТИЛИТЫ
   ============================================ */

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

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
}

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

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

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

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

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

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

.section-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: var(--spacing-md);
    color: var(--text-dark);
    text-align: center;
    letter-spacing: -0.3px;
}

.section-description {
    font-size: 1.125rem;
    color: var(--text-light);
    text-align: center;
    max-width: 800px;
    margin: 0 auto var(--spacing-lg);
}

/* ============================================
   HEADER
   ============================================ */

.header {
    background-color: var(--bg-white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
    width: 100%;
}

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

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--text-dark);
}

.logo-img {
    height: 50px;
    width: auto;
    object-fit: contain;
}

.menu {
    display: flex;
    list-style: none;
    gap: var(--spacing-lg);
    margin-left: auto;
    margin-right: var(--spacing-lg);
}

.menu a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: var(--transition);
}

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

.burger {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    gap: 0.25rem;
}

.burger span {
    width: 25px;
    height: 3px;
    background-color: var(--text-dark);
    transition: var(--transition);
}

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

/* ============================================
   HERO SECTION
   ============================================ */

.hero {
    background-image: url('../assets/img/main-bg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: var(--bg-white);
    position: relative;
    overflow: hidden;
    min-height: 692px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

/* Графические декоративные элементы */
.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('data:image/svg+xml,<svg width="200" height="200" xmlns="http://www.w3.org/2000/svg"><g opacity="0.05"><circle cx="40" cy="40" r="20" stroke="white" stroke-width="2" fill="none"/><circle cx="40" cy="40" r="15" stroke="white" stroke-width="1.5" fill="none"/><path d="M35 35 Q40 30 45 35" stroke="white" stroke-width="1.5" fill="none"/><circle cx="160" cy="160" r="8" fill="white"/><circle cx="160" cy="160" r="4" fill="none" stroke="white" stroke-width="1"/><path d="M80 80 L85 75 L90 80 L95 75 L100 80" stroke="white" stroke-width="1.5" fill="none"/><rect x="130" y="50" width="3" height="15" rx="1.5" fill="white"/><rect x="122" y="57.5" width="19" height="3" rx="1.5" fill="white"/><path d="M20 160 Q30 155 40 160 T60 160" stroke="white" stroke-width="1.5" fill="none"/></g></svg>');
    background-size: 400px 400px;
    background-position: 0 0;
    z-index: 0;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(180deg);
    }
}

.hero .container {
    position: relative;
    z-index: 1;
    padding: 3rem 0;
    width: 100%;
}

.hero-content {
    max-width: 750px;
    padding-left: var(--spacing-md);
    animation: slideInLeft 0.8s ease;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.hero-title {
    font-size: 3.25rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.15;
    color: var(--bg-white);
    text-transform: uppercase;
    letter-spacing: -0.5px;
    display: block;
}

.hero-subtitle {
    font-size: 1.125rem;
    margin-bottom: 0.875rem;
    opacity: 0.95;
    color: var(--bg-white);
    font-weight: 400;
    line-height: 1.4;
}

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

.hero-description {
    font-size: 1.125rem;
    line-height: 1.7;
    margin-bottom: 2.25rem;
    opacity: 0.93;
    color: var(--bg-white);
    font-weight: 500;
    max-width: 650px;
}

.hero-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1.75rem;
}

.hero-features li {
    font-size: 1rem;
    opacity: 0.95;
    color: var(--bg-white);
    font-weight: 400;
}

.hero-note {
    font-size: 0.95rem;
    opacity: 0.8;
    margin-top: var(--spacing-sm);
}

.hero .btn-primary {
    background-color: var(--bg-white);
    color: var(--primary-color);
    font-weight: 600;
    box-shadow: 0 4px 14px 0 rgba(255, 255, 255, 0.4);
    animation: none !important;
}

.hero .btn-primary:hover {
    background-color: var(--primary-color);
    color: var(--bg-white);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px 0 rgba(29, 148, 196, 0.5);
}

@keyframes pulse-slow {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* ============================================
   ПРЕИМУЩЕСТВА (Почему выбирают нас)
   ============================================ */

.advantages-section {
    background-color: var(--bg-white);
}

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

.advantage-card {
    text-align: center;
    padding: var(--spacing-lg);
    text-decoration: none;
    color: inherit;
    display: block;
    background: var(--bg-light);
    border-radius: var(--radius-lg);
    transition: var(--transition);
}

.advantage-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    background: var(--bg-white);
}

.advantage-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto var(--spacing-md);
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #e0f5fb 0%, #b8e5f3 100%);
    border-radius: var(--radius-md);
    transition: var(--transition);
}

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

.advantage-card:hover .advantage-icon {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    transform: scale(1.05);
}

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

.advantage-card h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: var(--spacing-xs);
    color: var(--text-dark);
}

.advantage-card p {
    font-size: 0.9375rem;
    color: var(--text-light);
    line-height: 1.5;
    margin: 0;
}

/* ============================================
   УСЛУГИ / НАПРАВЛЕНИЯ
   ============================================ */

.services-section {
    background-color: var(--bg-light);
}

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

.service-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(29, 148, 196, 0.15);
}

.service-image {
    position: relative;
    width: 100%;
    height: 240px;
    overflow: hidden;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.service-card:hover .service-image img {
    transform: scale(1.08);
}

.service-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.3) 100%);
    transition: all 0.3s ease;
}

.service-card:hover .service-overlay {
    background: linear-gradient(to bottom, rgba(29, 148, 196, 0.2) 0%, rgba(29, 148, 196, 0.4) 100%);
}

.service-content {
    padding: var(--spacing-lg);
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

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

.service-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
    color: var(--text-dark);
}

.service-card p {
    font-size: 0.9375rem;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: var(--spacing-md);
    flex-grow: 1;
}

.service-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    align-self: flex-start;
    font-size: 0.9375rem;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

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

/* ============================================
   DIRECTION INTRO (убираем, уже не нужна)
   ============================================ */

.direction-intro {
    background-color: var(--bg-light);
}

/* ============================================
   ПРОБЛЕМЫ
   ============================================ */

.problems {
    background: linear-gradient(135deg, #1d94c4 0%, #157a9f 100%);
    position: relative;
    color: var(--bg-white);
    padding: var(--spacing-xl) 0;
    overflow: hidden;
}

.problems::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(255, 255, 255, 0.06) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(255, 255, 255, 0.04) 0%, transparent 35%),
        url('data:image/svg+xml,<svg width="200" height="200" xmlns="http://www.w3.org/2000/svg"><g opacity="0.04"><circle cx="40" cy="40" r="20" stroke="white" stroke-width="2" fill="none"/><circle cx="40" cy="40" r="15" stroke="white" stroke-width="1.5" fill="none"/><path d="M35 35 Q40 30 45 35" stroke="white" stroke-width="1.5" fill="none"/><circle cx="160" cy="160" r="8" fill="white"/><circle cx="160" cy="160" r="4" fill="none" stroke="white" stroke-width="1"/><path d="M80 80 L85 75 L90 80 L95 75 L100 80" stroke="white" stroke-width="1.5" fill="none"/><rect x="130" y="50" width="3" height="15" rx="1.5" fill="white"/><rect x="122" y="57.5" width="19" height="3" rx="1.5" fill="white"/><path d="M20 160 Q30 155 40 160 T60 160" stroke="white" stroke-width="1.5" fill="none"/></g></svg>');
    background-size: auto, auto, 400px 400px;
    background-position: center left, center right, 0 0;
    z-index: 0;
}

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

.problems .section-title {
    color: var(--bg-white);
    margin-bottom: var(--spacing-sm);
}

.problems .section-description {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: var(--spacing-lg);
}

.problems-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem var(--spacing-2xl);
    max-width: 950px;
    margin: 0 auto;
}

.problems-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.375rem 0;
    transition: var(--transition);
}

.problems-item:hover {
    transform: translateX(3px);
    opacity: 0.9;
}

.problems-item::before {
    content: '—';
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.25rem;
    font-weight: 400;
    flex-shrink: 0;
    transition: var(--transition);
}

.problems-item:hover::before {
    color: rgba(255, 255, 255, 1);
}

.problems-icon {
    display: none;
}

.problems-item span:last-child {
    font-size: 1.0625rem;
    line-height: 1.5;
    color: var(--bg-white);
    font-weight: 500;
}

.problems-desc {
    display: block;
    font-size: 0.7rem !important;
    font-weight: 400;
    opacity: 0.92;
    margin-top: 0.2rem;
}

/* ============================================
   КОНСУЛЬТАЦИЯ
   ============================================ */

.consultation {
    background-color: var(--bg-light);
}

.consultation-steps {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: var(--spacing-lg);
    margin-top: var(--spacing-xl);
}

.step {
    background-color: var(--bg-white);
    padding: var(--spacing-lg) var(--spacing-md);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-align: center;
}

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

.step-number {
    display: inline-block;
    width: 60px;
    height: 60px;
    line-height: 60px;
    background-color: var(--primary-color);
    color: var(--bg-white);
    font-size: 1.5rem;
    font-weight: 700;
    border-radius: 50%;
    margin: 0 auto var(--spacing-md);
}

.step-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin: 0 0 var(--spacing-sm);
    color: var(--text-dark);
}

.step-description {
    font-size: 0.95rem;
    color: var(--text-light);
    margin: 0;
    line-height: 1.5;
}

/* ============================================
   МЕТОДЫ ЛЕЧЕНИЯ
   ============================================ */

.treatment-methods {
    background-color: var(--bg-white);
}

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

.method-card {
    background-color: var(--bg-light);
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    transition: var(--transition);
    text-align: center;
}

.method-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    background-color: var(--bg-white);
}

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

.method-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
    color: var(--text-dark);
}

.method-description {
    font-size: 0.95rem;
    color: var(--text-light);
}

/* ============================================
   НАШ ПОДХОД
   ============================================ */

.approach {
    background-color: var(--bg-light);
}

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

.approach-card {
    background-color: var(--bg-white);
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-align: center;
}

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

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

.approach-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
    color: var(--text-dark);
}

.approach-description {
    font-size: 0.95rem;
    color: var(--text-light);
}

/* ============================================
   ФОРМА ЗАПИСИ
   ============================================ */

.appointment-section {
    background-color: var(--bg-white);
}

.appointment-wrapper {
    max-width: 600px;
    margin: 0 auto;
}

.appointment-form {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

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

.form-group label {
    font-weight: 600;
    color: var(--text-dark);
}

.form-group input {
    padding: 0.875rem;
    font-size: 1rem;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    font-family: inherit;
    transition: var(--transition);
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(29, 148, 196, 0.1);
}

.form-group input::placeholder {
    color: var(--text-light);
}

.form-group textarea {
    padding: 0.875rem;
    font-size: 1rem;
    line-height: 1.5;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    font-family: inherit;
    transition: var(--transition);
    resize: vertical;
    min-height: 80px;
}

.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(29, 148, 196, 0.1);
}

.form-group textarea::placeholder {
    color: var(--text-light);
    opacity: 0.85;
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
    background-color: var(--text-dark);
    color: var(--bg-white);
    padding: var(--spacing-xl) 0 var(--spacing-lg);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-lg);
}

.footer-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: var(--spacing-md);
    color: var(--bg-white);
}

.footer-text {
    margin-bottom: var(--spacing-sm);
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.8;
}

.footer-text a {
    color: var(--bg-white);
    text-decoration: none;
    transition: var(--transition);
}

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

.footer-link {
    color: var(--bg-white);
    text-decoration: none;
    transition: var(--transition);
}

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

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: var(--spacing-lg);
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
}

/* ============================================
   ВНУТРЕННИЕ СТРАНИЦЫ - НОВЫЙ ДИЗАЙН
   ============================================ */

/* Компактный header вместо большого фиолетового */
.inner-hero {
    background: linear-gradient(135deg, #157da3 0%, #1a96c4 100%);
    padding: var(--spacing-lg) 0;
    border-bottom: 1px solid var(--border-color);
}

.breadcrumbs {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: var(--spacing-sm);
}

.breadcrumbs a {
    color: var(--bg-white);
    text-decoration: none;
    transition: var(--transition);
    opacity: 0.9;
}

.breadcrumbs a:hover {
    text-decoration: underline;
    opacity: 1;
}

.inner-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--bg-white);
    margin: 0;
}

.inner-subtitle {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.9);
    margin: 0.5rem 0 0;
}

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

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

/* Intro Cards */
.intro-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-2xl);
}

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

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

.intro-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto var(--spacing-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #e0f5fb 0%, #b8e5f3 100%);
    border-radius: var(--radius-md);
    color: var(--primary-color);
}

.intro-icon svg {
    width: 32px;
    height: 32px;
}

.intro-card h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: var(--spacing-xs);
    color: var(--text-dark);
}

.intro-card p {
    font-size: 0.95rem;
    color: var(--text-light);
    margin: 0;
}

/* About Main */
.about-main {
    margin-bottom: var(--spacing-2xl);
}

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

.about-text h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: var(--spacing-md);
    color: var(--text-dark);
}

.about-text p {
    margin-bottom: var(--spacing-md);
    color: var(--text-light);
    line-height: 1.8;
}

.about-visual {
    display: flex;
    justify-content: center;
}

.visual-placeholder {
    width: 100%;
    max-width: 400px;
    aspect-ratio: 1;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--bg-white);
    padding: var(--spacing-lg);
}

.visual-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto var(--spacing-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bg-white);
}

.visual-icon svg {
    width: 64px;
    height: 64px;
}

.visual-placeholder p {
    font-size: 1.125rem;
    font-weight: 600;
    margin: 0;
}

/* Mission Section */
.mission-section {
    margin-bottom: var(--spacing-2xl);
}

.mission-card {
    background: linear-gradient(145deg, #157a9f 0%, #1d94c4 50%, #126b8c 100%);
    color: var(--bg-white);
    padding: var(--spacing-2xl) var(--spacing-xl);
    border-radius: var(--radius-lg);
    text-align: center;
    max-width: 720px;
    margin: 0 auto;
    box-shadow: 0 8px 32px rgba(21, 122, 159, 0.25);
}

.mission-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.18);
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    margin-bottom: var(--spacing-lg);
    text-transform: none;
}

.mission-card h2 {
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1.35;
    margin: 0 0 var(--spacing-lg);
    color: var(--bg-white);
}

.mission-card .mission-lead {
    font-size: 1.0625rem;
    line-height: 1.75;
    margin: 0 0 var(--spacing-lg);
    opacity: 0.98;
    font-weight: 400;
}

.mission-card p {
    font-size: 1rem;
    line-height: 1.7;
    margin: 0 0 var(--spacing-md);
    opacity: 0.92;
}

.mission-card p:last-child,
.mission-card .mission-note-last {
    margin-bottom: 0;
}

.mission-card .mission-note {
    font-size: 0.9375rem;
    opacity: 0.9;
}

/* Approach Detailed */
.approach-detailed {
    margin-bottom: var(--spacing-2xl);
}

.section-title-center {
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: var(--spacing-xl);
    color: var(--text-dark);
}

.approach-items {
    display: grid;
    gap: var(--spacing-lg);
    max-width: 900px;
    margin: 0 auto;
}

.approach-item {
    padding: var(--spacing-lg);
    background: var(--bg-light);
    border-radius: var(--radius-lg);
    border-left: 4px solid var(--primary-color);
    transition: var(--transition);
}

.approach-item:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow);
    background: var(--bg-white);
}

.approach-item-header {
    display: flex;
    gap: var(--spacing-md);
    align-items: flex-start;
}

.approach-number {
    width: 60px;
    height: 60px;
    min-width: 60px;
    background: var(--primary-color);
    color: var(--bg-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    flex-shrink: 0;
}

.approach-item-content {
    flex: 1;
}

.approach-item h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: var(--spacing-xs);
    color: var(--text-dark);
}

.approach-item p {
    color: var(--text-light);
    line-height: 1.8;
    margin: 0;
}

/* Values Section */
.values-section {
    margin-bottom: var(--spacing-2xl);
    background: var(--bg-light);
    padding: var(--spacing-2xl) var(--spacing-md);
    border-radius: var(--radius-lg);
}

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

.value-card {
    background: var(--bg-white);
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

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

.value-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto var(--spacing-md);
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #e0f5fb 0%, #b8e5f3 100%);
    border-radius: 50%;
    color: var(--primary-color);
    transition: var(--transition);
}

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

.value-card:hover .value-icon {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--bg-white);
    transform: scale(1.05);
}

.value-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
    color: var(--text-dark);
}

.value-card p {
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.7;
    margin: 0;
}

/* Limitations Section */
.limitations-section {
    margin-bottom: var(--spacing-2xl);
}

.limitations-card {
    max-width: 900px;
    margin: 0 auto;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border: 2px solid #e2e8f0;
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);
    box-shadow: var(--shadow);
}

.limitations-card h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: var(--spacing-lg);
    color: var(--text-dark);
    text-align: center;
}

.limitations-list {
    display: grid;
    gap: var(--spacing-md);
}

.limitation-item {
    display: flex;
    gap: var(--spacing-md);
    padding: var(--spacing-lg);
    background: var(--bg-white);
    border-radius: var(--radius-md);
    border: 1px solid #e2e8f0;
    transition: var(--transition);
    align-items: flex-start;
}

.limitation-item:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow);
    transform: translateY(-2px);
}

.limitation-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #e0f5fb 0%, #b8e5f3 100%);
    border-radius: var(--radius-md);
    color: var(--primary-color);
    flex-shrink: 0;
}

.limitation-icon svg {
    width: 24px;
    height: 24px;
}

.limitation-item strong {
    display: block;
    font-size: 1.125rem;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
    font-weight: 600;
}

.limitation-item p {
    font-size: 0.95rem;
    color: var(--text-light);
    margin: 0;
    line-height: 1.6;
}

/* Legacy для обратной совместимости */
.content-block {
    max-width: 900px;
    margin: 0 auto var(--spacing-xl);
}

.content-block h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: var(--spacing-md);
    color: var(--text-dark);
}

.content-block h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
    color: var(--text-dark);
}

.content-block p {
    margin-bottom: var(--spacing-md);
    color: var(--text-light);
    line-height: 1.8;
}

.content-block ul {
    list-style-position: inside;
    margin-bottom: var(--spacing-md);
    color: var(--text-light);
}

.content-block li {
    margin-bottom: var(--spacing-xs);
}

/* ============================================
   СТРАНИЦА ВРАЧЕЙ - УЛУЧШЕННЫЙ ДИЗАЙН
   ============================================ */

.doctors-intro {
    text-align: center;
    max-width: 700px;
    margin: 0 auto var(--spacing-2xl);
}

.doctors-intro-content {
    background: linear-gradient(135deg, #e0f5fb 0%, #b8e5f3 100%);
    padding: var(--spacing-xl);
    border-radius: var(--radius-lg);
    border: 2px solid var(--primary-color);
}

.doctors-intro-badge {
    display: inline-block;
    background: var(--primary-color);
    color: var(--bg-white);
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: var(--spacing-md);
}

.doctors-intro p {
    font-size: 1.125rem;
    color: var(--text-light);
    line-height: 1.8;
    margin: 0;
}

/* Карточки врачей - улучшенные */
.doctors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-2xl);
}

.doctor-card {
    background-color: var(--bg-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: var(--transition);
    border: 2px solid transparent;
    display: flex;
    flex-direction: column;
}

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

.doctor-image {
    width: 100%;
    height: 280px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

.doctor-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(to top, rgba(0,0,0,0.3), transparent);
}

.doctor-info {
    padding: var(--spacing-xl);
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.doctor-name {
    font-size: 1.375rem;
    font-weight: 700;
    margin-bottom: var(--spacing-xs);
    color: var(--text-dark);
    line-height: 1.3;
}

.doctor-specialty {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 1.125rem;
    margin-bottom: var(--spacing-sm);
}

.doctor-experience {
    display: inline-block;
    background: var(--bg-light);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    color: var(--text-light);
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: var(--spacing-md);
    align-self: flex-start;
}

.doctor-info p {
    color: var(--text-light);
    line-height: 1.7;
    margin-top: var(--spacing-md);
    font-size: 0.9375rem;
}

/* CTA Section */
.doctors-cta {
    margin-top: var(--spacing-2xl);
}

.doctors-cta-card {
    background: linear-gradient(135deg, rgba(29, 148, 196, 0.08) 0%, rgba(13, 148, 136, 0.08) 100%);
    border: 2px solid rgba(29, 148, 196, 0.2);
    padding: var(--spacing-2xl);
    border-radius: var(--radius-lg);
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.1);
    transition: all 0.3s ease;
}

.doctors-cta-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(102, 126, 234, 0.15);
    border-color: rgba(102, 126, 234, 0.3);
}

.doctors-cta-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto var(--spacing-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    color: var(--bg-white);
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.3);
}

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

.doctors-cta-card h2 {
    font-size: 1.875rem;
    font-weight: 700;
    margin-bottom: var(--spacing-md);
    color: var(--text-dark);
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.doctors-cta-card p {
    font-size: 1.125rem;
    line-height: 1.7;
    margin-bottom: var(--spacing-xl);
    color: var(--text-gray);
}

/* Таблица цен - современный дизайн */
.prices-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-top: var(--spacing-lg);
    background-color: var(--bg-white);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.prices-table thead {
    background: var(--primary-color);
    color: var(--bg-white);
}

.prices-table th {
    padding: 1.125rem 1.5rem;
    text-align: left;
    font-size: 1.0625rem;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.prices-table th:last-child {
    text-align: right;
    width: 150px;
}

.prices-table td {
    padding: 1rem 1.5rem;
    text-align: left;
    border-bottom: 1px solid #e8e8e8;
}

.prices-table td:last-child {
    text-align: right;
}

.prices-table tbody tr {
    transition: background-color 0.15s ease;
}

.prices-table tbody tr:hover {
    background-color: #f9fafb;
}

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

.prices-table tbody tr td:first-child {
    font-weight: 400;
    color: var(--text-dark);
    font-size: 0.9375rem;
}

/* Строки категорий */
.prices-table tbody tr.category-row {
    background-color: #f0f8fa;
    border-top: 2px solid var(--primary-color);
}

.prices-table tbody tr.category-row:hover {
    background-color: #f0f8fa;
}

.prices-table tbody tr.category-row td {
    padding: 1.125rem 1.5rem;
    border-bottom: 1px solid #d0e8f0;
    text-align: left;
}

.prices-table tbody tr.category-row td strong {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--primary-color);
    display: inline-block;
}

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

.prices-table td.price.price-multiline {
    white-space: normal;
}

.prices-important {
    background-color: var(--bg-light);
    padding: 2rem;
    border-radius: var(--radius-lg);
    margin-top: 3rem;
}

.prices-important-title {
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.prices-important-list {
    color: var(--text-light);
    line-height: 1.8;
    padding-left: 1.25rem;
}

/* Обёртка таблицы цен для горизонтального скролла на мобильных */
.prices-table-wrap {
    width: 100%;
}

.prices-cta {
    text-align: center;
    margin-top: 3rem;
}

.prices-cta-title {
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.prices-cta-text {
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

/* Контакты */
.contacts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-xl);
}

.contact-card {
    background-color: var(--bg-white);
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.contact-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: var(--spacing-md);
    color: var(--text-dark);
}

.contact-card p {
    margin-bottom: var(--spacing-sm);
    color: var(--text-light);
}

.contact-card a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
    word-break: break-word;
}

.contact-card a:hover {
    text-decoration: underline;
}

.contact-card-note {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-top: var(--spacing-sm);
}

.contact-intercom {
    font-size: 0.95rem;
}

.contact-card-social {
    margin-top: var(--spacing-md);
}

.contact-card-social .social-links {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
    align-items: center;
}

.contact-card-social .social-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.95rem;
}

.contact-card-social .social-link:hover {
    text-decoration: underline;
}

.contact-card-social .social-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

/* Контакты: карта, транспорт, видео, важная информация */
.contacts-map-section {
    margin: 3rem 0;
}

.contacts-map-section .map-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.contacts-map-section .map-container {
    width: 100%;
    height: 400px;
}

.contacts-map-section .map-caption {
    text-align: center;
    color: var(--text-light);
    margin-top: 1rem;
}

.transport-block {
    margin-top: 2rem;
    padding: 1.5rem;
    background: var(--bg-light);
    border-radius: var(--radius-lg);
}

.transport-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.transport-intro {
    margin-bottom: 0.5rem;
    color: var(--text-light);
}

.transport-list {
    margin: 0;
    padding-left: 1.25rem;
    color: var(--text-light);
    line-height: 1.9;
}

.contacts-video-section {
    margin: 3rem 0;
}

.contacts-video-section .section-title {
    margin-bottom: var(--spacing-lg);
}

.video-wrapper {
    position: relative;
    width: 100%;
    max-width: 800px;
    margin: 0 auto 1rem;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    background: #111;
    /* Соотношение 16:9: fallback для старых браузеров */
    padding-bottom: 56.25%;
    height: 0;
}

@supports (aspect-ratio: 16 / 9) {
    .video-wrapper {
        padding-bottom: 0;
        height: auto;
        aspect-ratio: 16 / 9;
    }
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

.video-caption {
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-light);
    margin: 0.5rem 0 0;
}

.video-caption a {
    color: var(--primary-color);
    text-decoration: none;
}

.video-caption a:hover {
    text-decoration: underline;
}

.contacts-important-section {
    margin: 3rem 0;
    background-color: var(--bg-light);
    padding: 2rem;
    border-radius: var(--radius-lg);
}

.important-list {
    color: var(--text-light);
    line-height: 2;
    max-width: 700px;
    margin: 0 auto;
    padding-left: 1.25rem;
}

.contacts-form-section {
    padding: 0;
}

.form-privacy {
    font-size: 0.875rem;
    color: var(--text-light);
    margin-top: 1rem;
    text-align: center;
}

.form-privacy a {
    color: var(--primary-color);
}

.map-placeholder {
    width: 100%;
    height: 400px;
    background-color: var(--bg-light);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-size: 1.25rem;
    margin-bottom: var(--spacing-xl);
}

/* ============================================
   КАРУСЕЛЬ КЛИНИКИ В БЛОКЕ "О НАС"
   ============================================ */

.clinic-carousel-wrapper {
    position: relative;
    width: 100%;
}

.clinic-carousel-container {
    position: relative;
    width: 100%;
    aspect-ratio: 4/3;
    max-height: 500px;
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, #e0f5fb 0%, #b8e5f3 100%);
}

.clinic-carousel-track {
    display: flex;
    transition: transform 0.4s ease;
    height: 100%;
}

.clinic-slide {
    min-width: 100%;
    flex-shrink: 0;
    height: 100%;
}

.clinic-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.clinic-slide img {
    transition: opacity 0.35s ease;
}

.clinic-slide.clinic-slide-active img {
    animation: clinicSlideFadeIn 0.5s ease forwards;
}

@keyframes clinicSlideFadeIn {
    from {
        opacity: 0.85;
        transform: scale(1.02);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.clinic-slide img:hover {
    transform: scale(1.02);
}

.clinic-carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.95);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2;
    transition: var(--transition);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.clinic-carousel-btn:hover {
    background: var(--bg-white);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transform: translateY(-50%) scale(1.1);
}

.clinic-prev {
    left: 12px;
}

.clinic-next {
    right: 12px;
}

.clinic-carousel-btn svg {
    color: var(--primary-color);
}

.clinic-carousel-dots {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 2;
}

.clinic-carousel-dots .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: var(--transition);
}

.clinic-carousel-dots .dot.active {
    background: var(--bg-white);
    width: 24px;
    border-radius: 4px;
}

.clinic-carousel-counter {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(0, 0, 0, 0.7);
    color: var(--bg-white);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    z-index: 2;
}

/* ============================================
   МОДАЛЬНОЕ ОКНО ГАЛЕРЕИ
   ============================================ */

.gallery-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.gallery-modal.active {
    display: flex;
}

.gallery-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    cursor: pointer;
}

.gallery-modal-content {
    position: relative;
    width: 90vw;
    height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.gallery-modal-image-wrapper {
    max-width: 90vw;
    max-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-modal-image {
    max-width: 1400px;
    max-height: 85vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: var(--radius-md);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.gallery-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: var(--bg-white);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    z-index: 10001;
    font-size: 1.75rem;
    line-height: 1;
    padding: 0;
}

.gallery-modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: rotate(90deg);
}

.gallery-modal-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: var(--bg-white);
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    z-index: 10001;
    font-size: 2.25rem;
    line-height: 1;
    padding: 0;
}

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

.gallery-modal-prev {
    left: 40px;
}

.gallery-modal-next {
    right: 40px;
}

.gallery-modal-counter {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: var(--bg-white);
    padding: 12px 24px;
    border-radius: 30px;
    font-size: 1.125rem;
    font-weight: 600;
    z-index: 10001;
}

/* ============================================
   СТАТИСТИКА
   ============================================ */

.stats-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--bg-white);
}

.stats-section .section-title {
    color: var(--bg-white);
}

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

.stat-card {
    text-align: center;
    padding: var(--spacing-lg);
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(10px);
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
}

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

.stat-label {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
}

/* ============================================
   ВРАЧИ (ПРОСТОЙ GRID)
   ============================================ */

.doctors-section {
    background-color: var(--bg-light);
}

.doctors-section .doctors-grid {
    margin-top: var(--spacing-xl);
    margin-bottom: 0;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

/* Карточка врача — обновлённый дизайн */
.doctor-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.doctor-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
    border-color: transparent;
}

.doctor-card .doctor-card-link {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    text-decoration: none;
    color: inherit;
}

.doctor-card-photo-wrap {
    width: 100%;
    min-height: 240px;
    background: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-lg) var(--spacing-xl) var(--spacing-lg);
}

.doctor-card-photo {
    position: relative;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    background: var(--bg-white);
}

.doctor-card-photo img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.doctor-card-body {
    padding: var(--spacing-lg) var(--spacing-xl);
    background: var(--bg-white);
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
}

.doctor-card-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.35rem;
    line-height: 1.3;
}

.doctor-card-role {
    font-size: 0.875rem;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.doctor-card-desc {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.5;
    margin-bottom: var(--spacing-md);
    flex: 1;
    min-height: 0;
}

.doctor-card-cta {
    margin-top: auto;
    padding-top: var(--spacing-sm);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary-color);
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    transition: color 0.2s ease, gap 0.2s ease;
}

.doctor-card-cta::after {
    content: '→';
}

.doctor-card:hover .doctor-card-cta {
    color: var(--primary-dark);
    gap: 0.4rem;
}

/* Страница профиля врача */

/* Hero с фото врача */
.doctor-hero {
    padding: var(--spacing-xl) 0;
}

.doctor-hero-inner {
    display: flex;
    align-items: center;
    gap: var(--spacing-xl);
    flex-wrap: wrap;
}

.doctor-hero-photo {
    flex-shrink: 0;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--bg-white);
    border: 4px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

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

.doctor-hero-text {
    flex: 1;
    min-width: 280px;
}

.breadcrumbs-light,
.breadcrumbs-light a,
.breadcrumbs-light span {
    color: rgba(255, 255, 255, 0.95) !important;
}

.breadcrumbs-light a:hover {
    color: var(--bg-white) !important;
    opacity: 1;
}

.doctor-hero-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--bg-white);
    margin: 0.25rem 0 0.5rem;
    line-height: 1.3;
}

.doctor-hero-subtitle {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.95);
}

.doctor-hero-cta {
    margin-top: 1.25rem;
}

.doctor-hero-cta .btn {
    margin: 0;
}

/* Контент — блоки-карточки */
.page-content-doctor {
    padding-top: var(--spacing-lg);
}

.doctor-profile {
    max-width: 800px;
    margin: 0 auto;
}

.doctor-block {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);
    margin-bottom: var(--spacing-lg);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    border: 1px solid var(--border-color);
}

.doctor-block-highlight {
    background: linear-gradient(135deg, rgba(29, 148, 196, 0.06) 0%, rgba(13, 148, 136, 0.06) 100%);
    border-color: rgba(29, 148, 196, 0.2);
}

.doctor-block-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: var(--spacing-md);
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-color);
    display: inline-block;
}

.doctor-block-text {
    line-height: 1.75;
    color: var(--text-dark);
    margin: 0;
}

.doctor-block-image {
    margin: var(--spacing-lg) 0;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.doctor-block-image img {
    display: block;
    width: 100%;
    max-width: 560px;
    height: auto;
    object-fit: cover;
}

.doctor-block-images {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-md);
    margin: var(--spacing-lg) 0;
}

.doctor-block-images .doctor-block-image {
    margin: 0;
}

.doctor-block-images .doctor-block-image img {
    max-width: 100%;
}

.doctor-block-images--two .doctor-block-image {
    flex: 1 1 280px;
}

@media (max-width: 600px) {
    .doctor-block-images--two .doctor-block-image {
        flex: 1 1 100%;
    }
}

.doctor-direction-block {
    margin-bottom: var(--spacing-xl);
}

.doctor-direction-block:last-of-type {
    margin-bottom: var(--spacing-lg);
}

.doctor-direction-text {
    margin: var(--spacing-md) 0 0;
    line-height: 1.75;
    color: var(--text-dark);
}

.doctor-block-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.doctor-block-list li {
    position: relative;
    padding-left: 1.35rem;
    margin-bottom: 0.85rem;
    line-height: 1.65;
    color: var(--text-dark);
}

.doctor-block-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.1em;
}

.doctor-profile-cta {
    margin-top: var(--spacing-xl);
    padding-top: var(--spacing-lg);
    border-top: 2px solid var(--border-color);
    text-align: center;
}

/* ============================================
   КАРУСЕЛЬ ВРАЧЕЙ (LEGACY - можно удалить)
   ============================================ */

.doctors-carousel-section {
    background-color: var(--bg-white);
    overflow: hidden;
}

.carousel-wrapper {
    position: relative;
    margin-top: var(--spacing-xl);
    padding: 0 60px; /* Space for buttons */
}

.carousel-container {
    overflow: hidden;
    padding: var(--spacing-md) 0;
    width: 100%;
    touch-action: pan-y pinch-zoom; /* Better mobile interaction */
    position: relative;
}

.carousel-track {
    display: flex;
    gap: var(--spacing-lg);
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
    cursor: grab;
    -webkit-overflow-scrolling: touch; /* Плавная прокрутка на iOS */
}

.carousel-track:active {
    cursor: grabbing;
}

/* Убираем hover эффект на touch устройствах */
@media (hover: none) and (pointer: coarse) {
    .doctor-card-mini:hover {
        transform: none;
        box-shadow: var(--shadow);
    }
    
    .carousel-track {
        cursor: default;
    }
    
    .carousel-track:active {
        cursor: default;
    }
}

.carousel-slide {
    flex-shrink: 0;
    transition: var(--transition);
    user-select: none;
    box-sizing: border-box;
}

.doctor-card-mini {
    background-color: var(--bg-light);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    text-align: center;
    transition: var(--transition);
    height: 100%;
    border: 2px solid transparent;
}

.doctor-card-mini:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    background-color: var(--bg-white);
    border-color: var(--primary-color);
}

.doctor-image-mini {
    width: 100px;
    height: 100px;
    margin: 0 auto var(--spacing-md);
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
}

.doctor-mini-desc {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-top: var(--spacing-sm);
    line-height: 1.5;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: var(--bg-white);
    border: 2px solid var(--border-color);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    box-shadow: var(--shadow);
}

.carousel-btn:hover {
    background-color: var(--primary-color);
    color: var(--bg-white);
    border-color: var(--primary-color);
    transform: translateY(-50%) scale(1.1);
    box-shadow: var(--shadow-lg);
}

.carousel-btn:active {
    transform: translateY(-50%) scale(0.95);
}

.carousel-prev {
    left: 0;
}

.carousel-next {
    right: 0;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-lg);
    padding: var(--spacing-sm) 0;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #d1d5db;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
    min-width: 12px; /* Prevent shrinking */
}

.carousel-dot:hover {
    background-color: #9ca3af;
    transform: scale(1.2);
}

.carousel-dot.active {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    width: 32px;
    border-radius: 8px;
    transform: scale(1);
}

/* ============================================
   ОТЗЫВЫ
   ============================================ */

.testimonials-section {
    background-color: var(--bg-light);
}

.testimonials-carousel {
    max-width: 800px;
    margin: var(--spacing-xl) auto 0;
    position: relative;
}

.testimonial-track {
    position: relative;
}

.testimonial-slide {
    display: none;
}

.testimonial-slide.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

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

.testimonial-card {
    background-color: var(--bg-white);
    padding: var(--spacing-xl);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    text-align: center;
}

.testimonial-rating {
    color: #fbbf24;
    font-size: 1.5rem;
    margin-bottom: var(--spacing-md);
}

.testimonial-text {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--text-dark);
    margin-bottom: var(--spacing-md);
    font-style: italic;
    /* Ограничение высоты и многоточие */
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
    line-clamp: 4;
    overflow: hidden;
    text-overflow: ellipsis;
    max-height: 7.2em;
}

.testimonial-read-more-wrap {
    margin: 0;
}

.testimonial-read-more {
    background: none;
    border: none;
    padding: 0;
    font: inherit;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--primary-color);
    cursor: pointer;
    text-decoration: none;
    font-style: normal;
}

.testimonial-read-more:hover {
    text-decoration: underline;
}

/* Модалка полного отзыва */
.testimonial-modal .testimonial-modal-content {
    max-width: 560px;
    max-height: 88vh;
    padding: var(--spacing-xl);
    overflow-y: auto;
}

.testimonial-modal-rating {
    color: #fbbf24;
    font-size: 1.5rem;
    margin-bottom: var(--spacing-md);
}

.testimonial-modal-text {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--text-dark);
    font-style: italic;
    margin: 0 0 var(--spacing-lg);
}

.testimonial-modal-author {
    font-size: 0.95rem;
    color: var(--text-light);
}

.testimonial-modal-author strong {
    display: block;
    color: var(--text-dark);
    font-size: 1.125rem;
}

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

.testimonial-author strong {
    color: var(--text-dark);
    font-size: 1.125rem;
}

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

.testimonial-nav {
    display: flex;
    justify-content: center;
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

.testimonial-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--bg-white);
    border: 2px solid var(--border-color);
    font-size: 2rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    padding: 0;
    line-height: 0;
    font-family: inherit;
}

/* Стрелки ‹ › по центру кружка по вертикали */
.testimonial-prev,
.testimonial-next {
    text-align: center;
}

/* Оптическая коррекция: символы ‹ › в шрифте часто рисуются чуть ниже центра */
.testimonial-prev,
.testimonial-next {
    transform: translateY(-1px);
}

.testimonial-prev {
    padding-left: 1px;
}

.testimonial-next {
    padding-right: 1px;
}

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

/* ============================================
   FAQ
   ============================================ */

/* Навигация по разделам FAQ */
.faq-nav {
    margin: var(--spacing-xl) 0;
    padding: var(--spacing-lg);
    background: var(--bg-light);
    border-radius: var(--radius-lg);
}

.faq-nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
}

.faq-nav-link {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: var(--bg-white);
    color: var(--primary-color);
    text-decoration: none;
    border-radius: var(--radius-md);
    font-weight: 500;
    font-size: 0.9375rem;
    border: 2px solid var(--border-color);
    transition: var(--transition);
}

.faq-nav-link:hover {
    border-color: var(--primary-color);
    background: rgba(29, 148, 196, 0.08);
}

/* Секции FAQ по категориям */
.faq-category {
    scroll-margin-top: 6rem;
    margin-bottom: var(--spacing-2xl);
}

.faq-category-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: var(--spacing-md);
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-color);
}

.faq-section {
    background-color: var(--bg-white);
}

.faq-container {
    max-width: 800px;
    margin: var(--spacing-xl) auto 0;
}

.faq-list .faq-item:last-child {
    margin-bottom: 0;
}

.faq-more-wrap {
    text-align: center;
    margin-top: var(--spacing-lg);
}

.faq-more-btn {
    padding: 0.6rem 1.25rem;
    font-size: 0.9375rem;
}

/* ============================================
   ВНУТРЕННИЕ СТРАНИЦЫ (контентный дизайн)
   ============================================ */

.page-content .page-lead {
    max-width: 720px;
    margin: 0 auto var(--spacing-2xl);
    padding: var(--spacing-xl);
    background: var(--bg-light);
    border-radius: var(--radius-lg);
    text-align: center;
    font-size: 1.125rem;
    line-height: 1.75;
    color: var(--text-dark);
}

/* Одно изображение на внутренней странице (например, «Организация оперативного лечения») */
.page-content-image {
    margin: var(--spacing-xl) auto var(--spacing-2xl);
    max-width: 560px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.page-content-image img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* Строка из двух изображений на странице «Стельки» — одинаковая высота, аккуратная обрезка */
.insoles-images {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-2xl);
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}

.insoles-images__item {
    flex: 1 1 280px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    aspect-ratio: 4 / 3;
    background: var(--bg-light);
}

.insoles-images__item img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

@media (max-width: 600px) {
    .insoles-images {
        gap: var(--spacing-sm);
        margin-bottom: var(--spacing-xl);
    }
    .insoles-images__item {
        flex: 1 1 100%;
        aspect-ratio: 16 / 10;
    }
}

.page-content .content-block {
    margin-bottom: var(--spacing-2xl);
}

.page-content .content-block h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: var(--spacing-lg);
    color: var(--text-dark);
    text-align: center;
}

.page-content .content-steps {
    max-width: 720px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.page-content .content-step {
    display: flex;
    gap: var(--spacing-md);
    align-items: flex-start;
    padding: var(--spacing-lg);
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.page-content .content-step:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow);
}

.page-content .content-step-num {
    width: 48px;
    height: 48px;
    min-width: 48px;
    background: var(--primary-color);
    color: var(--bg-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 700;
    flex-shrink: 0;
}

.page-content .content-step-body h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.35rem;
    color: var(--text-dark);
}

.page-content .content-step-body p {
    margin: 0;
    font-size: 0.9375rem;
    line-height: 1.65;
    color: var(--text-light);
}

.page-content .content-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-lg);
    max-width: 900px;
    margin: 0 auto;
}

.page-content .content-card {
    padding: var(--spacing-lg);
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.page-content .content-card:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow);
}

.page-content .content-card h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.page-content .content-card p {
    margin: 0;
    font-size: 0.9375rem;
    line-height: 1.65;
    color: var(--text-light);
}

.page-content .cta-block {
    text-align: center;
    padding: var(--spacing-2xl) var(--spacing-md);
    background: linear-gradient(135deg, rgba(29, 148, 196, 0.08) 0%, rgba(21, 122, 159, 0.06) 100%);
    border-radius: var(--radius-lg);
    margin-top: var(--spacing-2xl);
}

.page-content .cta-block p {
    margin-bottom: var(--spacing-lg);
    font-size: 1.125rem;
    color: var(--text-light);
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
}

/* Блок призыва к действию на странице «Стельки» */
.insoles-cta {
    margin-top: var(--spacing-2xl);
    padding: var(--spacing-xl) var(--spacing-lg);
    background: var(--bg-light);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    text-align: center;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}

.insoles-cta__title {
    margin: 0 0 var(--spacing-md);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-dark);
}

.insoles-cta__text {
    margin: 0 0 var(--spacing-lg);
    font-size: 1rem;
    color: var(--text-light);
    line-height: 1.6;
}

.insoles-cta__actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-md);
    justify-content: center;
    align-items: center;
}

.insoles-cta__actions .btn {
    min-width: 160px;
}

@media (max-width: 480px) {
    .insoles-cta {
        padding: var(--spacing-lg);
    }
    .insoles-cta__actions {
        flex-direction: column;
    }
    .insoles-cta__actions .btn {
        width: 100%;
        min-width: 0;
    }
}

.page-content .problems-in-page {
    padding: var(--spacing-xl) var(--spacing-md);
    border-radius: var(--radius-lg);
    margin-bottom: var(--spacing-2xl);
}

.page-content .problems-in-page .problems-list {
    max-width: 720px;
    margin: 0 auto;
}

/* Сферы специализации — синий блок с карточками */
.spec-section {
    background: linear-gradient(135deg, #1d94c4 0%, #157a9f 100%);
    color: var(--bg-white);
    padding: var(--spacing-2xl) var(--spacing-lg);
    margin: var(--spacing-2xl) 0;
    border-radius: var(--radius-lg);
}

.spec-section .section-title {
    color: var(--bg-white);
    margin-bottom: var(--spacing-xl);
    text-align: center;
}

.spec-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
    gap: var(--spacing-xl);
    align-items: stretch;
}

.spec-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    color: var(--text-dark);
    display: flex;
    flex-direction: column;
}

.spec-card-image {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    background: var(--bg-light);
    overflow: hidden;
    flex-shrink: 0;
}

.spec-card-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.spec-card-inner {
    padding: var(--spacing-lg);
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.spec-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0 0 0.75rem;
    flex-shrink: 0;
}

.spec-card-desc {
    font-size: 0.9375rem;
    color: var(--text-light);
    line-height: 1.6;
    margin: 0 0 1rem;
    flex: 1;
    min-height: 0;
}

.spec-card-btn {
    display: inline-block;
    padding: 0.5rem 1rem;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--primary-color);
    background: transparent;
    border: 2px solid var(--primary-color);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
}

.spec-card-btn:hover {
    background: var(--primary-color);
    color: var(--bg-white);
}

/* Подробный контент показывается в модалке, в карточке скрыт */
.spec-card-detail {
    display: none;
}

.spec-list {
    margin: 0 0 1rem;
    padding-left: 1.25rem;
    font-size: 0.9375rem;
    color: var(--text-light);
    line-height: 1.7;
}

.spec-list-note {
    font-size: 0.9375rem;
    color: var(--text-light);
    margin-bottom: 1rem;
}

.spec-text-block {
    margin-top: 1rem;
}

.spec-text-block p {
    font-size: 0.9375rem;
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 0.75rem;
}

.spec-card-link .spec-card-btn-link {
    text-decoration: none;
    color: var(--primary-color);
}

.spec-card-link .spec-card-btn-link:hover {
    background: var(--primary-color);
    color: var(--bg-white);
}

.spec-cta {
    text-align: center;
    margin: var(--spacing-xl) 0;
}

@media (max-width: 768px) {
    .page-content .page-lead {
        padding: var(--spacing-lg);
        font-size: 1rem;
    }
    .page-content .content-step {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .page-content .content-step-num {
        margin: 0;
    }
    .page-content .content-cards {
        grid-template-columns: 1fr;
    }
    .page-content .cta-block {
        padding: var(--spacing-xl) var(--spacing-md);
    }
}

.faq-carousel-track {
    /* На десктопе — обычный вертикальный список, слайды друг под другом */
}

.faq-slide {
    /* На десктопе — блок с вопросами */
}

.faq-slide .faq-item:last-child {
    margin-bottom: var(--spacing-md);
}

.faq-slide:last-child .faq-item:last-child {
    margin-bottom: 0;
}

.faq-item {
    margin-bottom: var(--spacing-md);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
}

.faq-item:hover {
    border-color: var(--primary-color);
}

.faq-question {
    width: 100%;
    padding: var(--spacing-lg);
    background-color: var(--bg-white);
    border: none;
    text-align: left;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-dark);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--spacing-md);
    transition: var(--transition);
    font-family: inherit;
}

.faq-question:hover {
    background-color: var(--bg-light);
}

.faq-icon {
    font-size: 1.5rem;
    color: var(--primary-color);
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    background-color: var(--bg-light);
}

.faq-item.active .faq-answer {
    max-height: 1200px;
    padding: var(--spacing-lg);
}

.faq-answer p {
    color: var(--text-light);
    line-height: 1.8;
    margin: 0;
}

/* ============================================
   УЛУЧШЕННЫЕ АНИМАЦИИ
   ============================================ */

/* Плавное появление элементов */
.fade-in {
    animation: fadeInUp 0.6s ease;
}

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

/* Пульсация для CTA кнопок */
@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(29, 148, 196, 0.7);
    }
    50% {
        box-shadow: 0 0 0 20px rgba(29, 148, 196, 0);
    }
}

/* Заметная пульсация для кнопки «Записаться на консультацию» в hero */
@keyframes hero-cta-pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 4px 16px rgba(29, 148, 196, 0.4);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 6px 28px rgba(29, 148, 196, 0.6), 0 0 0 12px rgba(29, 148, 196, 0.2);
    }
}

.hero-cta-pulse {
    animation: hero-cta-pulse 1.5s ease-in-out infinite;
}

.btn-primary.pulse {
    animation: pulse 2s infinite;
}

/* ============================================
   АДАПТИВНОСТЬ
   ============================================ */

@media (max-width: 1024px) {
    .hero-content {
        max-width: 100%;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .service-image {
        height: 220px;
    }
}

/* ============================================
   МЕДИА-ЗАПРОСЫ: Планшеты (до 768px)
   ============================================ */

@media (max-width: 768px) {
    /* Глобально: убираем горизонтальный скролл */
    html, body {
        overflow-x: hidden;
    }

    main,
    .page-content {
        overflow-x: hidden;
    }

    .container {
        padding-left: var(--spacing-md);
        padding-right: var(--spacing-md);
    }

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

    .hero {
        background-image: url('../assets/img/main-bg-mob.jpg');
    }

    /* Градиентный оверлей для читаемости текста на мобильных */
    .hero::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(
            to right,
            rgba(15, 23, 42, 0.65) 0%,
            rgba(21, 122, 159, 0.45) 30%,
            rgba(29, 148, 196, 0.15) 60%,
            transparent 100%
        );
        z-index: 0;
    }

    .logo-img {
        height: 42px;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .hero-content {
        max-width: 100%;
    }

    .hero-title {
        font-size: 2rem;
        margin-bottom: 1.25rem;
    }
    
    .hero-description {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
    
    .menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--bg-white);
        flex-direction: column;
        padding: var(--spacing-md);
        box-shadow: var(--shadow-lg);
        gap: var(--spacing-sm);
        margin-left: 0;
        margin-right: 0;
    }
    
    .menu.active {
        display: flex;
    }
    
    .burger {
        display: flex;
    }
    
    .burger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .burger.active span:nth-child(2) {
        opacity: 0;
    }
    
    .burger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }
    
    .btn-header {
        display: none;
    }

    .nav {
        flex-wrap: wrap;
        gap: var(--spacing-sm);
    }

    .logo {
        min-width: 0;
    }

    .form-group input,
    .form-group textarea {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .appointment-form .btn-large,
    .appointment-section .btn-large,
    .contacts-form-section .btn-large {
        width: 100%;
    }

    .page-content {
        padding-left: 0;
        padding-right: 0;
    }
    
    .problems {
        padding: var(--spacing-lg) 0;
    }
    
    .problems-list {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.35rem var(--spacing-sm);
        max-width: 100%;
    }
    
    .problems-item {
        padding: 0.25rem 0;
    }
    
    .problems-item::before {
        font-size: 1rem;
    }
    
    .problems-item span:last-child {
        font-size: 0.8125rem;
        line-height: 1.4;
    }
    
    .problems-desc {
        font-size: 0.65rem !important;
        margin-top: 0.15rem;
    }
    
    .problems .section-title {
        margin-bottom: var(--spacing-sm);
    }
    
    /* Консультация — 2 колонки, компактные карточки */
    .consultation-steps {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-md);
        margin-top: var(--spacing-lg);
    }
    
    .consultation .step {
        padding: var(--spacing-md) var(--spacing-sm);
    }
    
    .consultation .step-number {
        width: 44px;
        height: 44px;
        line-height: 44px;
        font-size: 1.125rem;
        margin: 0 auto var(--spacing-sm);
    }
    
    .consultation .step-title {
        font-size: 0.9375rem;
        margin: 0 0 var(--spacing-xs);
    }
    
    .consultation .step-description {
        font-size: 0.8125rem;
        line-height: 1.4;
        margin: 0;
    }
    
    .doctor-hero-inner {
        flex-direction: column;
        text-align: center;
    }
    
    .doctor-hero-photo {
        width: 160px;
        height: 160px;
    }
    
    .doctor-hero-title {
        font-size: 1.5rem;
    }
    
    .doctor-block {
        padding: var(--spacing-lg);
    }
    
    .methods-grid,
    .approach-grid {
        grid-template-columns: 1fr;
    }
    
    /* Почему выбирают нас — 2 колонки, компактнее */
    .advantages-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-sm);
    }
    
    .advantages-section .advantage-card {
        padding: var(--spacing-md) var(--spacing-sm);
    }
    
    .advantages-section .advantage-icon {
        width: 44px;
        height: 44px;
        margin-bottom: var(--spacing-xs);
    }
    
    .advantages-section .advantage-icon svg {
        width: 24px;
        height: 24px;
    }
    
    .advantages-section .advantage-card h3 {
        font-size: 0.9375rem;
    }
    
    .advantages-section .advantage-card p {
        font-size: 0.8125rem;
        line-height: 1.4;
    }
    
    /* Наши услуги — горизонтальная карусель (свайп) */
    .services-section .container {
        overflow: hidden;
    }
    
    .services-grid {
        display: flex;
        flex-wrap: nowrap;
        align-items: stretch;
        gap: var(--spacing-md);
        overflow-x: auto;
        overflow-y: hidden;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding-bottom: var(--spacing-sm);
    }
    
    .services-grid::-webkit-scrollbar {
        display: none;
    }
    
    .services-section .service-card {
        flex: 0 0 85%;
        max-width: 85%;
        min-width: min(280px, 85vw);
        height: auto;
        min-height: 340px;
        scroll-snap-align: start;
    }
    
    .service-card {
        max-width: 100%;
    }
    
    .service-image {
        height: 180px;
    }
    
    .services-section .service-image {
        height: 160px;
    }
    
    .service-content {
        padding: var(--spacing-md);
    }
    
    .services-section .service-content {
        padding: var(--spacing-sm) var(--spacing-md);
    }
    
    .services-section .service-card h3 {
        font-size: 1.0625rem;
    }
    
    .services-section .service-card p {
        font-size: 0.875rem;
    }
    
    .service-card h3 {
        font-size: 1.0625rem;
    }
    
    .service-card p {
        font-size: 0.875rem;
        line-height: 1.5;
    }
    
    .doctors-grid-simple {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }
    
    .doctor-card-simple {
        padding: var(--spacing-lg);
    }
    
    .doctor-image-simple {
        width: 100px;
        height: 100px;
        font-size: 3rem;
    }
    
    /* Сферы специализации — одна строка, горизонтальный скролл */
    .spec-grid {
        display: flex;
        flex-wrap: nowrap;
        align-items: stretch;
        gap: var(--spacing-md);
        overflow-x: auto;
        overflow-y: hidden;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding-bottom: var(--spacing-sm);
    }
    
    .spec-grid::-webkit-scrollbar {
        display: none;
    }
    
    .spec-section .spec-card {
        flex: 0 0 85%;
        max-width: 85%;
        min-width: min(300px, 85vw);
        scroll-snap-align: start;
    }
    
    /* Наши врачи — друг под другом, карточки одинакового размера */
    .doctors-section .container {
        overflow: visible;
    }
    
    .doctors-grid {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: var(--spacing-lg);
        margin-top: var(--spacing-xl);
        overflow: visible;
    }
    
    .doctors-section .doctor-card {
        flex: 1 1 auto;
        width: 100%;
        min-width: 0;
        max-width: 100%;
        min-height: 380px;
    }
    
    .doctor-card {
        max-width: 100%;
    }
    
    .doctors-section .doctor-card-photo {
        width: 180px;
        height: 180px;
        margin-bottom: var(--spacing-md);
    }
    
    .doctors-section .doctor-card-body {
        padding: var(--spacing-lg);
    }
    
    .doctor-image {
        height: 240px;
        font-size: 4rem;
    }
    
    .doctor-info {
        padding: var(--spacing-lg);
    }
    
    .doctor-name {
        font-size: 1.25rem;
    }
    
    .doctor-specialty {
        font-size: 1rem;
    }
    
    .doctor-experience {
        font-size: 0.875rem;
        padding: 0.4rem 0.875rem;
    }
    
    .doctor-info p {
        font-size: 0.875rem;
        line-height: 1.6;
        margin-top: var(--spacing-sm);
    }
    
    .doctors-intro {
        margin-bottom: var(--spacing-xl);
    }
    
    .doctors-intro-content {
        padding: var(--spacing-lg);
    }
    
    .doctors-intro p {
        font-size: 1rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .carousel-wrapper {
        padding: 0 50px;
    }
    
    .carousel-prev {
        left: 0;
    }
    
    .carousel-next {
        right: 0;
    }
    
    .carousel-btn {
        width: 45px;
        height: 45px;
        font-size: 1.8rem;
        background-color: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(4px);
    }
    
    .carousel-dots {
        gap: var(--spacing-xs);
    }
    
    .carousel-dot {
        width: 14px;
        height: 14px;
        min-width: 14px;
    }
    
    .carousel-dot.active {
        width: 36px;
    }
    
    .doctor-card-mini {
        padding: var(--spacing-md);
    }
    
    .doctor-image-mini {
        width: 80px;
        height: 80px;
        font-size: 2.5rem;
    }
    
    .doctor-mini-desc {
        font-size: 0.875rem;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    .testimonial-text {
        font-size: 1rem;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
    }
    
    .intro-cards {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .clinic-carousel-container {
        max-height: 400px;
    }
    
    .clinic-carousel-btn {
        width: 36px;
        height: 36px;
    }
    
    .clinic-prev {
        left: 8px;
    }
    
    .clinic-next {
        right: 8px;
    }
    
    .gallery-modal-btn {
        width: 56px;
        height: 56px;
    }
    
    .gallery-modal-prev {
        left: 20px;
    }
    
    .gallery-modal-next {
        right: 20px;
    }
    
    .approach-item {
        grid-template-columns: 60px 1fr;
    }
    
    .values-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .limitation-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: var(--spacing-md);
    }
    
    .limitation-icon {
        margin-bottom: var(--spacing-sm);
    }
}

@media (max-width: 480px) {
    :root {
        --font-size-base: 14px;
    }
    
    .inner-hero {
        padding: var(--spacing-md) 0;
    }
    
    .breadcrumbs {
        font-size: 0.8125rem;
    }
    
    .spec-section {
        padding: var(--spacing-lg) var(--spacing-md);
    }
    
    .spec-card-inner {
        padding: var(--spacing-md);
    }
    
    .spec-card-title {
        font-size: 1rem;
    }
    
    .faq-nav-link {
        font-size: 0.75rem;
        padding: 0.35rem 0.6rem;
    }
    
    /* Минимальная область нажатия для кнопок и ссылок (рекомендация ~44px) */
    .btn {
        min-height: 44px;
    }
    
    .faq-nav-link,
    .spec-card-btn {
        min-height: 44px;
        padding-top: 0.5rem;
        padding-bottom: 0.5rem;
    }
    
    .logo-img {
        height: 36px;
    }
    
    /* Контакты: компактнее на маленьких экранах */
    .contacts-grid {
        gap: var(--spacing-sm);
    }
    
    .contact-card {
        padding: var(--spacing-sm) var(--spacing-md);
    }
    
    .contact-card h3 {
        font-size: 1rem;
    }
    
    .contacts-map-section .map-container {
        height: 240px;
        min-height: 200px;
    }
    
    .transport-block {
        padding: var(--spacing-sm) var(--spacing-md);
    }
    
    .transport-title {
        font-size: 0.9375rem;
    }
    
    .transport-list {
        font-size: 0.875rem;
    }
    
    .contacts-form-section .appointment-wrapper {
        padding: var(--spacing-md);
    }

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

    .testimonial-modal .testimonial-modal-content,
    .spec-detail-modal .spec-detail-modal-content {
        max-width: calc(100vw - var(--spacing-md) * 2);
        margin-left: var(--spacing-md);
        margin-right: var(--spacing-md);
    }
    
    .section {
        padding: var(--spacing-lg) 0;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .problems-list {
        grid-template-columns: 1fr;
        gap: 0.25rem var(--spacing-xs);
    }
    
    .problems-item span:last-child {
        font-size: 0.8125rem;
    }
    
    .problems-desc {
        font-size: 0.7rem !important;
    }
    
    /* Консультация — одна колонка на узком экране */
    .consultation-steps {
        grid-template-columns: 1fr;
    }
    
    .consultation-steps .step:last-child {
        max-width: none;
    }
    
    /* Консультация — ещё компактнее */
    .consultation-steps {
        gap: var(--spacing-sm);
        margin-top: var(--spacing-md);
    }
    
    .consultation .step {
        padding: var(--spacing-sm) var(--spacing-md);
    }
    
    .consultation .step-number {
        width: 36px;
        height: 36px;
        line-height: 36px;
        font-size: 0.9375rem;
        margin: 0 auto var(--spacing-xs);
    }
    
    .consultation .step-title {
        font-size: 0.8125rem;
        margin: 0 0 0.2rem;
    }
    
    .consultation .step-description {
        font-size: 0.75rem;
        margin: 0;
        line-height: 1.4;
    }
    
    .consultation-steps .step:last-child {
        max-width: none;
    }
    
    .hero-content {
        max-width: 100%;
    }

    .hero-title {
        font-size: 1.75rem;
        margin-bottom: 1rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-description {
        font-size: 0.9375rem;
        line-height: 1.6;
        margin-bottom: 1.75rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .btn-large {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    /* Скрываем кнопки навигации на мобильных, оставляем только dots и свайпы */
    .carousel-wrapper {
        padding: 0;
        margin-top: var(--spacing-lg);
    }
    
    .carousel-btn {
        display: none; /* Скрываем стрелки на мобильных */
    }
    
    .carousel-container {
        padding: var(--spacing-sm) 0;
        overflow: hidden; /* Скрываем лишнее */
    }
    
    .carousel-track {
        gap: 1rem; /* 16px - уменьшаем gap на мобильных для экономии места */
    }
    
    .doctors-grid-simple {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
    
    .doctors-section .doctor-card-photo {
        width: 160px;
        height: 160px;
        margin-bottom: var(--spacing-md);
    }
    
    .doctors-section .doctor-card-body {
        padding: var(--spacing-md) var(--spacing-lg);
    }
    
    .doctors-section .doctor-card-name {
        font-size: 1.1rem;
    }
    
    .doctors-section .doctor-card-desc {
        font-size: 0.875rem;
    }
    
    .doctor-card-simple {
        padding: var(--spacing-md);
    }
    
    .doctor-image-simple {
        width: 80px;
        height: 80px;
        font-size: 2.5rem;
        margin-bottom: var(--spacing-md);
    }
    
    .doctor-card-simple .doctor-name {
        font-size: 1.1rem;
    }
    
    .doctor-card-simple .doctor-specialty {
        font-size: 0.9rem;
    }
    
    .doctor-card-simple .doctor-experience {
        font-size: 0.85rem;
    }
    
    .doctor-card-simple .doctor-description {
        font-size: 0.875rem;
    }
    
    .doctor-card-mini {
        /* Убеждаемся что карточка не выходит за пределы */
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .carousel-dots {
        margin-top: var(--spacing-md);
        gap: 0.5rem;
    }
    
    .carousel-dot {
        width: 10px;
        height: 10px;
        min-width: 10px;
        /* Увеличиваем область клика для удобства */
        position: relative;
    }
    
    .carousel-dot::before {
        content: '';
        position: absolute;
        top: -8px;
        left: -8px;
        right: -8px;
        bottom: -8px;
    }
    
    .carousel-dot.active {
        width: 28px;
    }
    
    .doctor-card-mini {
        padding: var(--spacing-md);
    }
    
    .doctor-image-mini {
        width: 70px;
        height: 70px;
        font-size: 2rem;
        margin-bottom: var(--spacing-sm);
    }
    
    .doctor-name {
        font-size: 1rem;
    }
    
    .doctor-specialty {
        font-size: 0.875rem;
    }
    
    .doctor-experience {
        font-size: 0.8125rem;
        padding: 0.375rem 0.75rem;
    }
    
    .doctor-mini-desc {
        font-size: 0.8125rem;
        margin-top: 0.5rem;
    }
    
    .testimonial-card {
        padding: var(--spacing-lg);
    }
    
    .testimonial-text {
        font-size: 0.95rem;
    }
    
    /* FAQ — карусель на мобилке: по 5 вопросов на экран, свайп между слайдами */
    .faq-section .container {
        overflow: hidden;
    }
    
    .faq-container {
        overflow-x: auto;
        overflow-y: hidden;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding-bottom: var(--spacing-sm);
        margin-left: calc(-1 * var(--spacing-md));
        margin-right: calc(-1 * var(--spacing-md));
        padding-left: var(--spacing-md);
        padding-right: var(--spacing-md);
    }
    
    .faq-container::-webkit-scrollbar {
        display: none;
    }
    
    .faq-carousel-track {
        display: flex;
        flex-wrap: nowrap;
        gap: 0;
    }
    
    .faq-slide {
        flex: 0 0 100%;
        min-width: 100%;
        scroll-snap-align: start;
        padding-left: var(--spacing-md);
        padding-right: var(--spacing-md);
    }
    
    .faq-slide .faq-item:last-child {
        margin-bottom: var(--spacing-md);
    }
    
    .faq-question {
        font-size: 1rem;
        padding: var(--spacing-md);
    }
    
    .inner-title {
        font-size: 1.5rem;
    }
    
    .inner-subtitle {
        font-size: 0.9375rem;
    }
    
    /* Таблица цен — горизонтальный скролл на узком экране */
    .prices-table-wrap {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        margin-left: calc(-1 * var(--spacing-md));
        margin-right: calc(-1 * var(--spacing-md));
        padding-left: var(--spacing-md);
        padding-right: var(--spacing-md);
    }
    
    .prices-table {
        min-width: 480px;
    }
    
    /* Сферы специализации — одна строка, горизонтальный скролл */
    .spec-section {
        padding: var(--spacing-xl) var(--spacing-md);
        margin-left: calc(-1 * var(--spacing-md));
        margin-right: calc(-1 * var(--spacing-md));
        margin-top: var(--spacing-xl);
        margin-bottom: var(--spacing-xl);
        border-radius: 0;
    }
    
    .spec-section .container {
        overflow: hidden;
    }
    
    .spec-grid {
        display: flex;
        flex-wrap: nowrap;
        align-items: stretch;
        gap: var(--spacing-md);
        overflow-x: auto;
        overflow-y: hidden;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding-bottom: var(--spacing-sm);
    }
    
    .spec-grid::-webkit-scrollbar {
        display: none;
    }
    
    .spec-section .spec-card {
        flex: 0 0 85%;
        max-width: 85%;
        min-width: min(300px, 85vw);
        scroll-snap-align: start;
    }
    
    .spec-card-inner {
        padding: var(--spacing-md);
    }
    
    .spec-card-title {
        font-size: 1.125rem;
    }
    
    .spec-card-desc {
        font-size: 0.875rem;
    }
    
    /* FAQ — навигация по разделам */
    .faq-nav {
        margin: var(--spacing-lg) 0;
        padding: var(--spacing-md);
    }
    
    .faq-nav-list {
        gap: 0.5rem;
    }
    
    .faq-nav-link {
        font-size: 0.8125rem;
        padding: 0.4rem 0.75rem;
    }
    
    /* Контакты: адаптив всей страницы */
    .contacts-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
        margin-bottom: var(--spacing-lg);
    }
    
    .contact-card {
        padding: var(--spacing-md);
    }
    
    .contact-card h3 {
        font-size: 1.125rem;
        margin-bottom: var(--spacing-sm);
    }
    
    .contact-card p,
    .contact-card-note {
        font-size: 0.9375rem;
    }
    
    .contact-card-social .social-links {
        gap: var(--spacing-xs);
    }
    
    .contact-card-social .social-link {
        font-size: 0.875rem;
    }
    
    .contacts-map-section {
        margin: var(--spacing-xl) 0;
    }
    
    .contacts-map-section .section-title {
        font-size: 1.25rem;
        margin-bottom: var(--spacing-md);
    }
    
    .contacts-map-section .map-container {
        height: 280px;
        min-height: 240px;
    }
    
    .contacts-map-section .map-wrapper {
        margin-left: calc(-1 * var(--spacing-md));
        margin-right: calc(-1 * var(--spacing-md));
        border-radius: 0;
    }
    
    .contacts-map-section .map-caption {
        font-size: 0.9rem;
        margin-top: var(--spacing-sm);
        padding: 0 var(--spacing-md);
    }
    
    .transport-block {
        margin-top: var(--spacing-lg);
        padding: var(--spacing-md);
        margin-left: calc(-1 * var(--spacing-md));
        margin-right: calc(-1 * var(--spacing-md));
        border-radius: 0;
    }
    
    .transport-title {
        font-size: 1rem;
    }
    
    .transport-list {
        font-size: 0.9rem;
        line-height: 1.7;
    }
    
    .contacts-video-section {
        margin: var(--spacing-xl) 0;
        padding: 0;
    }
    
    .contacts-video-section .section-title {
        font-size: 1.25rem;
        margin-bottom: var(--spacing-md);
    }
    
    .contacts-video-section .video-wrapper {
        width: 100%;
        max-width: none;
        margin: 0 0 var(--spacing-md);
        padding-bottom: 0;
        height: auto;
        aspect-ratio: 16 / 9;
        border-radius: 0;
        overflow: hidden;
        background: #111;
    }
    
    .contacts-video-section .video-wrapper iframe {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        border: 0;
        display: block;
    }
    
    .contacts-video-section .video-caption {
        font-size: 0.875rem;
        margin: 0;
        padding: 0;
    }
    
    .prices-important,
    .contacts-important-section {
        padding: var(--spacing-lg);
        margin-top: var(--spacing-xl);
        margin-left: calc(-1 * var(--spacing-md));
        margin-right: calc(-1 * var(--spacing-md));
        border-radius: 0;
    }
    
    .contacts-important-section .section-title {
        font-size: 1.25rem;
    }
    
    .contacts-important-section .important-list {
        padding-left: 1.25rem;
        font-size: 0.9375rem;
        line-height: 1.8;
    }
    
    .contacts-form-section {
        margin-top: var(--spacing-lg);
    }
    
    .contacts-form-section .section-title {
        font-size: 1.25rem;
    }
    
    .contacts-form-section .section-description {
        font-size: 0.9375rem;
    }
    
    .contacts-form-section .appointment-wrapper {
        padding: var(--spacing-lg);
    }
    
    .contacts-form-section .btn-large {
        width: 100%;
    }
    
    .prices-important-title {
        font-size: 1.125rem;
    }
    
    .intro-cards {
        grid-template-columns: 1fr;
    }
    
    .clinic-carousel-btn {
        width: 32px;
        height: 32px;
    }
    
    .clinic-carousel-btn svg {
        width: 20px;
        height: 20px;
    }
    
    .clinic-carousel-counter {
        top: 12px;
        right: 12px;
        padding: 4px 10px;
        font-size: 0.75rem;
    }
    
    .clinic-carousel-dots {
        bottom: 12px;
    }
    
    .clinic-carousel-container {
        max-height: 280px;
        aspect-ratio: 16/9;
    }
    
    .clinic-carousel-counter {
        top: 8px;
        right: 8px;
        padding: 4px 8px;
        font-size: 0.75rem;
    }
    
    .clinic-carousel-dots {
        bottom: 8px;
    }
    
    .gallery-modal-btn {
        width: 48px;
        height: 48px;
        font-size: 1.75rem;
    }
    
    .gallery-modal-prev {
        left: 10px;
    }
    
    .gallery-modal-next {
        right: 10px;
    }
    
    .gallery-modal-close {
        top: 10px;
        right: 10px;
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
    }
    
    .gallery-modal-counter {
        bottom: 20px;
        padding: 8px 16px;
        font-size: 0.875rem;
    }
    
    .gallery-modal-image-wrapper {
        max-width: 95vw;
        max-height: 75vh;
    }
    
    .gallery-modal-image {
        max-height: 70vh;
        max-width: 95vw;
    }
    
    .values-grid {
        grid-template-columns: 1fr;
    }
    
    .prices-table th {
        padding: 1rem 1rem;
        font-size: 1rem;
    }

    .prices-table td {
        padding: 0.875rem 1rem;
        font-size: 0.875rem;
    }

    .prices-table tbody tr td:first-child {
        font-size: 0.875rem;
    }

    .prices-table tbody tr.category-row td {
        padding: 1rem;
    }

    .prices-table tbody tr.category-row td strong {
        font-size: 1rem;
    }

    .price {
        font-size: 0.9375rem;
    }
    
    .approach-item-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .approach-number {
        margin-bottom: var(--spacing-sm);
    }
    
    .approach-item-content {
        text-align: center;
    }
    
    .mission-card {
        padding: var(--spacing-lg);
    }
    
    .mission-card h2 {
        font-size: 1.5rem;
    }
    
    /* Почему выбирают нас — компактно: 2 колонки, меньше отступы и шрифты */
    .advantages-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-sm);
        margin-top: var(--spacing-md);
    }
    
    .advantages-section .advantage-card {
        padding: var(--spacing-sm) var(--spacing-xs);
    }
    
    .advantages-section .advantage-icon {
        width: 40px;
        height: 40px;
        margin-bottom: var(--spacing-xs);
    }
    
    .advantages-section .advantage-icon svg {
        width: 22px;
        height: 22px;
    }
    
    .advantages-section .advantage-card h3 {
        font-size: 0.8125rem;
        margin-bottom: 0.2rem;
    }
    
    .advantages-section .advantage-card p {
        font-size: 0.75rem;
        line-height: 1.35;
    }
    
    /* Наши услуги — горизонтальная карусель (свайп) */
    .services-section .container {
        overflow: hidden;
    }
    
    .services-grid {
        display: flex;
        flex-wrap: nowrap;
        align-items: stretch;
        gap: var(--spacing-md);
        margin-top: var(--spacing-lg);
        overflow-x: auto;
        overflow-y: hidden;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding-bottom: var(--spacing-sm);
    }
    
    .services-grid::-webkit-scrollbar {
        display: none;
    }
    
    .services-section .service-card {
        flex: 0 0 85%;
        max-width: 85%;
        min-width: min(260px, 90vw);
        height: auto;
        min-height: 320px;
        scroll-snap-align: start;
    }
    
    .services-section .service-image {
        height: 160px;
        max-height: 40vw;
    }
    
    .services-section .service-content {
        padding: var(--spacing-sm) var(--spacing-md);
    }
    
    .services-section .service-card h3 {
        font-size: 1rem;
    }
    
    .services-section .service-card p {
        font-size: 0.8125rem;
        line-height: 1.45;
    }
    
    .hero-features {
        font-size: 1rem;
    }
    
    /* Врачи на маленьких экранах */
    .doctors-grid {
        gap: var(--spacing-md);
    }
    
    .doctor-card {
        border-radius: var(--radius-md);
    }
    
    .doctor-image {
        height: 200px;
        font-size: 3.5rem;
    }
    
    .doctor-info {
        padding: var(--spacing-md);
    }
    
    .doctor-name {
        font-size: 1.125rem;
        margin-bottom: 0.5rem;
    }
    
    .doctor-specialty {
        font-size: 0.9375rem;
    }
    
    .doctor-experience {
        font-size: 0.8125rem;
        padding: 0.375rem 0.75rem;
        margin-bottom: var(--spacing-sm);
    }
    
    .doctor-info p {
        font-size: 0.8125rem;
        line-height: 1.5;
    }
    
    .doctors-intro-content {
        padding: var(--spacing-md);
    }
    
    .doctors-intro-badge {
        font-size: 0.8125rem;
        padding: 0.4rem 1rem;
    }
    
    .doctors-intro p {
        font-size: 0.9375rem;
    }
    
    .doctors-cta-card {
        padding: var(--spacing-lg);
    }
    
    .doctors-cta-card h2 {
        font-size: 1.5rem;
    }
    
    .doctors-cta-card p {
        font-size: 1rem;
    }
}

/* ================================
   Модальное окно
   ================================ */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.modal.active {
    display: flex;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    animation: fadeIn 0.3s ease;
}

.modal-content {
    position: relative;
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease;
    z-index: 1;
}

.modal-close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    width: 36px;
    height: 36px;
    border: none;
    background: rgba(0, 0, 0, 0.05);
    color: var(--text-gray);
    font-size: 1.75rem;
    line-height: 1;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.modal-close:hover {
    background: rgba(0, 0, 0, 0.1);
    color: var(--text-dark);
    transform: rotate(90deg);
}

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

.modal-header h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: var(--spacing-xs);
}

.modal-header p {
    font-size: 0.9375rem;
    color: var(--text-gray);
    line-height: 1.5;
    margin: 0;
}

.modal .appointment-form {
    padding: var(--spacing-lg) var(--spacing-xl) var(--spacing-xl);
    margin-top: 0;
    gap: var(--spacing-lg);
}

.modal .appointment-form .form-group {
    margin-bottom: 0;
}

.modal .appointment-form .btn {
    margin-top: var(--spacing-sm);
}

/* Модалка «Подробнее» для карточек направлений — без сдвига страницы */
.spec-detail-modal .spec-detail-modal-content {
    max-width: 560px;
    max-height: 88vh;
    display: flex;
    flex-direction: column;
    padding: 0;
}

.spec-detail-modal-title {
    padding: var(--spacing-xl) var(--spacing-xl) var(--spacing-md);
    margin: 0;
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--primary-color);
    border-bottom: 2px solid var(--border-color);
    flex-shrink: 0;
}

.spec-detail-modal-body {
    padding: var(--spacing-lg) var(--spacing-xl) var(--spacing-xl);
    overflow-y: auto;
    flex: 1;
    min-height: 0;
}

.spec-detail-modal-body .spec-list,
.spec-detail-modal-body .spec-list-note,
.spec-detail-modal-body .spec-text-block,
.spec-detail-modal-body .spec-text-block p {
    margin-bottom: 0.75rem;
    font-size: 0.9375rem;
    color: var(--text-dark);
    line-height: 1.7;
}

.spec-detail-modal-body .spec-list {
    padding-left: 1.25rem;
}

.spec-detail-modal .modal-close {
    top: var(--spacing-md);
    right: var(--spacing-md);
}

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

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

/* Mobile */
@media (max-width: 768px) {
    .modal-content {
        max-width: 100%;
        margin: 0 1rem;
    }

    .testimonial-modal .testimonial-modal-content,
    .spec-detail-modal .spec-detail-modal-content {
        max-width: calc(100% - 2rem);
        margin-left: 1rem;
        margin-right: 1rem;
    }
    
    .modal-header {
        padding: var(--spacing-md) var(--spacing-lg) var(--spacing-md);
    }
    
    .modal-header h2 {
        font-size: 1.5rem;
    }
    
    .modal-header p {
        font-size: 0.875rem;
    }
    
    .modal .appointment-form {
        padding: var(--spacing-md) var(--spacing-lg) var(--spacing-lg);
        gap: var(--spacing-md);
    }
    
    .modal .appointment-form .btn {
        margin-top: 0;
    }
}

/* ================================
   Toast уведомления
   ================================ */
.toast-container {
    position: fixed;
    top: 2rem;
    right: 2rem;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    pointer-events: none;
}

.toast {
    background: var(--bg-white);
    border-radius: var(--radius-md);
    padding: 1rem 1.25rem;
    min-width: 320px;
    max-width: 420px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: flex-start;
    gap: 0.875rem;
    pointer-events: all;
    animation: toastSlideIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    border-left: 4px solid var(--primary-color);
    position: relative;
    overflow: hidden;
}

.toast::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: currentColor;
    animation: toastProgress 3s linear forwards;
}

.toast.removing {
    animation: toastSlideOut 0.3s ease forwards;
}

.toast-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 0.875rem;
}

.toast-content {
    flex: 1;
    min-width: 0;
}

.toast-title {
    font-weight: 600;
    font-size: 0.9375rem;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
}

.toast-message {
    font-size: 0.875rem;
    color: var(--text-gray);
    line-height: 1.5;
}

.toast-close {
    width: 20px;
    height: 20px;
    border: none;
    background: transparent;
    color: var(--text-gray);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s ease;
    flex-shrink: 0;
    font-size: 1.25rem;
    line-height: 1;
    padding: 0;
}

.toast-close:hover {
    background: rgba(0, 0, 0, 0.05);
    color: var(--text-dark);
}

/* Типы уведомлений */
.toast.success {
    border-left-color: #10b981;
}

.toast.success .toast-icon {
    background: #d1fae5;
    color: #10b981;
}

.toast.success::before {
    color: #10b981;
}

.toast.error {
    border-left-color: #ef4444;
}

.toast.error .toast-icon {
    background: #fee2e2;
    color: #ef4444;
}

.toast.error::before {
    color: #ef4444;
}

.toast.info {
    border-left-color: var(--primary-color);
}

.toast.info .toast-icon {
    background: #b8e5f3;
    color: var(--primary-color);
}

.toast.info::before {
    color: var(--primary-color);
}

.toast.warning {
    border-left-color: #f59e0b;
}

.toast.warning .toast-icon {
    background: #fef3c7;
    color: #f59e0b;
}

.toast.warning::before {
    color: #f59e0b;
}

/* ============================================
   МЕДИА-ЗАПРОСЫ: Очень маленькие экраны (< 360px)
   ============================================ */

@media (max-width: 480px) {
    .toast-container {
        left: var(--spacing-sm);
        right: var(--spacing-sm);
        top: var(--spacing-sm);
    }
    .toast {
        min-width: 0;
        max-width: 100%;
    }
}

@media (max-width: 360px) {
    .container {
        padding: 0 var(--spacing-sm);
    }

    .insoles-cta,
    .insoles-images {
        margin-left: 0;
        margin-right: 0;
    }

    .page-content-image img {
        max-width: 100%;
    }
    
    .prices-table-wrap {
        margin-left: calc(-1 * var(--spacing-sm));
        margin-right: calc(-1 * var(--spacing-sm));
        padding-left: var(--spacing-sm);
        padding-right: var(--spacing-sm);
    }
    
    .spec-section {
        margin-left: calc(-1 * var(--spacing-sm));
        margin-right: calc(-1 * var(--spacing-sm));
        padding: var(--spacing-sm);
    }
    
    .contacts-video-section .video-wrapper {
        margin-bottom: var(--spacing-sm);
    }
    
    .contacts-map-section .map-container {
        height: 220px;
        min-height: 180px;
    }
    
    .contacts-map-section .map-wrapper,
    .transport-block,
    .contacts-important-section {
        margin-left: calc(-1 * var(--spacing-sm));
        margin-right: calc(-1 * var(--spacing-sm));
    }
    
    .transport-block {
        padding: var(--spacing-sm);
    }
    
    .contacts-form-section .appointment-wrapper {
        padding: var(--spacing-sm);
    }
    
    .logo-img {
        height: 32px;
    }
    
    .service-image {
        height: 180px;
    }
    
    .service-card h3 {
        font-size: 1rem;
    }
    
    .service-card p {
        font-size: 0.8125rem;
    }
    
    .hero-title {
        font-size: 1.5rem;
    }
    
    .btn {
        padding: 0.75rem 1.25rem;
        font-size: 0.9375rem;
    }
    
    /* Врачи на очень маленьких экранах */
    .doctors-grid {
        gap: var(--spacing-sm);
    }
    
    .doctor-image {
        height: 180px;
        font-size: 3rem;
    }
    
    .doctor-info {
        padding: var(--spacing-sm) var(--spacing-md);
    }
    
    .doctor-name {
        font-size: 1rem;
    }
    
    .doctor-specialty {
        font-size: 0.875rem;
    }
    
    .doctor-experience {
        font-size: 0.75rem;
        padding: 0.3rem 0.625rem;
    }
    
    .doctor-info p {
        font-size: 0.75rem;
    }
    
    .doctors-intro-badge {
        font-size: 0.75rem;
        padding: 0.375rem 0.875rem;
    }
    
    .doctors-intro p {
        font-size: 0.875rem;
    }
    
    .doctors-cta-icon {
        width: 60px;
        height: 60px;
    }
    
    .doctors-cta-icon svg {
        width: 30px;
        height: 30px;
    }
    
    .doctors-cta-card h2 {
        font-size: 1.25rem;
    }
    
    .doctors-cta-card p {
        font-size: 0.9375rem;
    }
}

/* Анимации */
@keyframes toastSlideIn {
    from {
        transform: translateX(120%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes toastSlideOut {
    to {
        transform: translateX(120%);
        opacity: 0;
    }
}

@keyframes toastProgress {
    from {
        width: 100%;
    }
    to {
        width: 0%;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .toast-container {
        top: 1rem;
        right: 1rem;
        left: 1rem;
    }
    
    .toast {
        min-width: auto;
        width: 100%;
    }
}
