/* ============================================================
   Хэйхэ Стоматология | 黑河口腔 — Основные стили
   Тема: медицинская, чистый сине-белый дизайн
   ============================================================ */

/* ---- CSS Переменные | CSS变量 ---- */
:root {
    --primary: #1a73e8;
    --primary-dark: #1557b0;
    --primary-light: #e8f0fe;
    --secondary: #0d9488;
    --accent: #ff6d3f;
    --white: #ffffff;
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --gray-900: #0f172a;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07), 0 2px 4px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1), 0 4px 6px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.1), 0 10px 10px rgba(0, 0, 0, 0.04);
    --radius-sm: 6px;
    --radius: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --transition: 0.3s ease;
    --max-width: 1200px;
    --navbar-height: 72px;
}

/* ---- Сброс и база | 基础重置 ---- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--gray-800);
    background: var(--white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* Для русского и китайского текста | 俄文和中文字体优化 */
[lang="ru"] body,
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif;
}

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

.section {
    padding: 80px 0;
}

.section-alt {
    background: var(--gray-50);
}

.section-title {
    font-size: 2.2rem;
    font-weight: 700;
    text-align: center;
    color: var(--gray-900);
    margin-bottom: 12px;
}

.section-subtitle {
    font-size: 1.1rem;
    text-align: center;
    color: var(--gray-500);
    margin-bottom: 48px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ---- Кнопки | 按钮 ---- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all var(--transition);
    white-space: nowrap;
}

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

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

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

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

.btn-whatsapp {
    background: #25D366;
    color: var(--white);
    padding: 10px 20px;
    font-size: 0.9rem;
}

.btn-whatsapp:hover {
    background: #1da851;
}

.btn-telegram {
    background: #0088cc;
    color: var(--white);
    padding: 10px 20px;
    font-size: 0.9rem;
}

.btn-telegram:hover {
    background: #006699;
}

.btn-submit {
    width: 100%;
    justify-content: center;
    font-size: 1.1rem;
    padding: 16px 32px;
}

/* ==================== 1. НАВИГАЦИЯ | 导航栏 ==================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid transparent;
    transition: all var(--transition);
    height: var(--navbar-height);
}

.navbar.scrolled {
    border-bottom-color: var(--gray-200);
    box-shadow: var(--shadow);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--gray-900);
    font-weight: 700;
    font-size: 1.2rem;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: var(--primary);
    color: var(--white);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 8px;
}

.nav-menu a {
    text-decoration: none;
    color: var(--gray-600);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all var(--transition);
}

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

.nav-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* Переключатель языка | 语言切换 */
.lang-switch {
    display: flex;
    align-items: center;
    background: var(--gray-100);
    border: none;
    border-radius: 50px;
    padding: 4px;
    cursor: pointer;
    transition: all var(--transition);
}

.lang-switch:hover {
    background: var(--gray-200);
}

.lang-option {
    padding: 4px 10px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--gray-500);
    transition: all var(--transition);
}

.lang-option.lang-active {
    background: var(--white);
    color: var(--primary);
    box-shadow: var(--shadow-sm);
}

.lang-divider {
    color: var(--gray-300);
    font-size: 0.8rem;
}

/* Гамбургер-меню | 汉堡菜单 */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

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

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

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

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

/* ==================== 2. HERO | 首屏 ==================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(135deg, #1a73e8 0%, #0d47a1 30%, #0d9488 70%, #00695c 100%);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    color: var(--white);
    padding-top: var(--navbar-height);
    overflow: hidden;
}

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

.hero-overlay {
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: 40px 24px;
}

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 36px;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-features {
    position: relative;
    z-index: 1;
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    justify-content: center;
    padding: 32px 24px 48px;
}

.hero-feature {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(5px);
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all var(--transition);
}

.hero-feature:hover {
    background: rgba(255, 255, 255, 0.25);
}

/* ==================== 3. ПОЧЕМУ МЫ | 为何选我们 ==================== */
.why-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.why-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 32px 24px;
    text-align: center;
    box-shadow: var(--shadow);
    border: 1px solid var(--gray-100);
    transition: all var(--transition);
}

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

.why-icon {
    width: 64px;
    height: 64px;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto 20px;
}

.why-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--gray-900);
}

.why-card p {
    font-size: 0.9rem;
    color: var(--gray-500);
    line-height: 1.6;
}

/* ==================== 4. КОМАНДА | 公司人员 ==================== */
.team-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    max-width: 900px;
    margin: 0 auto;
}

.team-card {
    display: flex;
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid var(--gray-100);
    transition: all var(--transition);
}

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

.team-photo {
    width: 200px;
    min-height: 240px;
    flex-shrink: 0;
    overflow: hidden;
}

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

.team-info {
    padding: 28px 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.team-info h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 4px;
}

.team-role {
    color: var(--primary);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 12px;
}

.team-desc {
    color: var(--gray-600);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* Мобильная адаптация | 移动端团队 */
@media (max-width: 768px) {
    .team-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .team-card {
        flex-direction: column;
    }
    .team-photo {
        width: 100%;
        height: 260px;
    }
}

/* ==================== 5. КЛИНИКИ | 合作医院 ==================== */
.clinic-block {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 48px;
    align-items: center;
    margin-bottom: 64px;
}

.clinic-block:last-child {
    margin-bottom: 0;
}

.clinic-reverse {
    grid-template-columns: 0.9fr 1.1fr;
}

.clinic-reverse .clinic-gallery {
    order: 2;
}

.clinic-reverse .clinic-info {
    order: 1;
}

/* Галерея | 照片轮播 */
.gallery-main {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    margin-bottom: 12px;
    aspect-ratio: 16 / 10;
}

.gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.gallery-thumbs {
    display: flex;
    gap: 8px;
}

.gallery-thumbs img {
    width: 80px;
    height: 56px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    cursor: pointer;
    border: 2px solid transparent;
    opacity: 0.6;
    transition: all var(--transition);
}

.gallery-thumbs img:hover {
    opacity: 0.9;
}

.gallery-thumbs img.active {
    border-color: var(--primary);
    opacity: 1;
}

/* Инфо клиники | 诊所信息 */
.clinic-info h3 {
    font-size: 1.5rem;
    margin-bottom: 16px;
    color: var(--gray-900);
}

.clinic-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.tag {
    background: var(--primary-light);
    color: var(--primary);
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
}

.clinic-desc {
    color: var(--gray-600);
    line-height: 1.7;
    margin-bottom: 16px;
}

.clinic-features {
    list-style: none;
    margin-bottom: 16px;
}

.clinic-features li {
    padding: 6px 0;
    color: var(--gray-700);
    font-size: 0.95rem;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.clinic-features li i {
    color: var(--secondary);
    margin-top: 3px;
    flex-shrink: 0;
}

.clinic-address {
    color: var(--gray-500);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 6px;
}

.clinic-address i {
    color: var(--accent);
}

/* ==================== 5. ВРАЧИ | 医生团队 ==================== */
.doctors-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.doctor-card {
    display: flex;
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid var(--gray-100);
    transition: all var(--transition);
}

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

.doctor-photo {
    width: 180px;
    min-height: 180px;
    flex-shrink: 0;
}

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

.doctor-info {
    padding: 24px;
    flex: 1;
}

.doctor-info h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--gray-900);
}

.doctor-title {
    color: var(--primary);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 4px;
}

.doctor-exp {
    color: var(--gray-500);
    font-size: 0.85rem;
    margin-bottom: 12px;
}

.doctor-desc {
    color: var(--gray-600);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* ==================== 6. УСЛУГИ И ЦЕНЫ | 服务与收费 ==================== */
.service-subsection {
    margin-bottom: 48px;
}

.service-subsection:last-child {
    margin-bottom: 0;
}

.service-card {
    display: flex;
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow);
    gap: 24px;
    align-items: flex-start;
}

.highlight-card {
    border: 2px solid var(--accent);
    background: linear-gradient(135deg, #fff5f2 0%, #ffffff 100%);
}

.service-icon {
    width: 64px;
    height: 64px;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    flex-shrink: 0;
}

.highlight-card .service-icon {
    background: #fff0eb;
    color: var(--accent);
}

.service-content h3 {
    font-size: 1.3rem;
    margin-bottom: 12px;
    color: var(--gray-900);
}

.service-content > p {
    color: var(--gray-600);
    line-height: 1.7;
    margin-bottom: 16px;
}

.service-details {
    list-style: none;
}

.service-details li {
    padding: 4px 0;
    color: var(--gray-700);
    font-size: 0.95rem;
}

/* Страховка | 保险 */
.insurance-quote {
    background: #fff0eb;
    border-left: 4px solid var(--accent);
    padding: 20px 24px;
    margin-bottom: 16px;
    font-weight: 600;
    color: var(--gray-800);
    font-size: 1rem;
    line-height: 1.7;
    border-radius: 0 var(--radius) var(--radius) 0;
}

.insurance-translation {
    background: #f0f9ff;
    border-left: 4px solid var(--primary);
    padding: 20px 24px;
    margin-bottom: 20px;
    color: var(--gray-700);
    font-size: 0.95rem;
    line-height: 1.7;
    border-radius: 0 var(--radius) var(--radius) 0;
}

.insurance-highlights {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ins-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--gray-700);
    font-size: 0.95rem;
}

.ins-item i {
    color: var(--secondary);
    font-size: 1.2rem;
}

/* Прайс-лист | 价格表 */
.subsection-title {
    font-size: 1.4rem;
    text-align: center;
    margin-bottom: 8px;
    color: var(--gray-900);
}

.subsection-note {
    text-align: center;
    color: var(--accent);
    font-size: 0.9rem;
    margin-bottom: 24px;
}

.price-table-wrapper {
    overflow-x: auto;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.price-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
}

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

.price-table th {
    padding: 16px 20px;
    text-align: left;
    font-weight: 600;
    font-size: 0.95rem;
    white-space: nowrap;
}

.price-table th:last-child {
    text-align: center;
}

.price-table td {
    padding: 14px 20px;
    border-bottom: 1px solid var(--gray-100);
    color: var(--gray-700);
    font-size: 0.95rem;
}

.price-table tr:hover td {
    background: var(--gray-50);
}

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

/* ==================== 7. БРОНИРОВАНИЕ | 在线预约 ==================== */
.booking-wrapper {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 40px;
    align-items: start;
}

.booking-form {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 36px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--gray-100);
}

.form-row {
    margin-bottom: 20px;
}

.form-row-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 6px;
    font-size: 0.9rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius);
    font-size: 1rem;
    color: var(--gray-800);
    transition: all var(--transition);
    font-family: inherit;
    background: var(--gray-50);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-light);
    background: var(--white);
}

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

.form-group input.error,
.form-group select.error,
.form-group textarea.error {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15);
    background: #fef2f2;
}

.booking-info {
    background: var(--gray-50);
    border-radius: var(--radius-lg);
    padding: 28px;
    position: sticky;
    top: calc(var(--navbar-height) + 24px);
}

.booking-info h4 {
    font-size: 1.1rem;
    margin-bottom: 16px;
    color: var(--gray-900);
}

.booking-info ol {
    padding-left: 20px;
    margin-bottom: 20px;
}

.booking-info ol li {
    padding: 6px 0;
    color: var(--gray-600);
    font-size: 0.95rem;
}

.booking-contact-alt {
    border-top: 1px solid var(--gray-200);
    padding-top: 16px;
}

.booking-contact-alt p {
    font-size: 0.9rem;
    color: var(--gray-500);
    margin-bottom: 12px;
}

.booking-contact-alt .btn {
    margin-right: 8px;
    margin-bottom: 8px;
}

.hidden {
    display: none;
}

/* ==================== 8. FOOTER | 页脚 ==================== */
.footer {
    background: var(--gray-900);
    color: var(--gray-300);
    padding: 60px 0 24px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1.2fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 12px;
}

.footer-logo i {
    color: var(--primary);
}

.footer-col h4 {
    color: var(--white);
    font-size: 1rem;
    margin-bottom: 16px;
    font-weight: 600;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 8px;
}

.footer-col ul li a {
    color: var(--gray-400);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color var(--transition);
}

.footer-col ul li a:hover {
    color: var(--white);
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: var(--gray-400);
    font-size: 0.9rem;
}

.footer-contact li i {
    color: var(--primary);
    margin-top: 4px;
    flex-shrink: 0;
}

.footer-social {
    display: flex;
    gap: 12px;
}

.social-link {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-300);
    font-size: 1.2rem;
    text-decoration: none;
    transition: all var(--transition);
}

.social-link:hover {
    background: var(--primary);
    color: var(--white);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    text-align: center;
    font-size: 0.85rem;
    color: var(--gray-500);
}

/* ==================== КНОПКА НАВЕРХ | 返回顶部按钮 ==================== */
.scroll-top {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--primary);
    color: var(--white);
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all var(--transition);
    z-index: 999;
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

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

/* ==================== АДАПТИВНОСТЬ | 响应式设计 ==================== */

/* Планшет | 平板 (≤1024px) */
@media (max-width: 1024px) {
    .why-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .clinic-block,
    .clinic-reverse {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .clinic-reverse .clinic-gallery {
        order: 0;
    }

    .doctors-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .booking-wrapper {
        grid-template-columns: 1fr;
    }

    .booking-info {
        position: static;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* Мобильный | 手机端 (≤768px) */
@media (max-width: 768px) {
    :root {
        --navbar-height: 60px;
    }

    .section {
        padding: 56px 0;
    }

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

    .section-subtitle {
        font-size: 1rem;
        margin-bottom: 32px;
    }

    /* Навигация моб | 移动导航 */
    .menu-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: var(--navbar-height);
        left: 0;
        width: 100%;
        background: var(--white);
        flex-direction: column;
        padding: 16px;
        box-shadow: var(--shadow-lg);
        transform: translateY(-120%);
        transition: transform var(--transition);
        z-index: 999;
        gap: 4px;
    }

    .nav-menu.active {
        transform: translateY(0);
    }

    /* Hero mob | 首屏移动 */
    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .hero-features {
        gap: 12px;
    }

    .hero-feature {
        font-size: 0.8rem;
        padding: 6px 14px;
    }

    /* Почему мы mob | 优势移动 */
    .why-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    /* Клиники mob | 诊所移动 */
    .gallery-thumbs img {
        width: 60px;
        height: 44px;
    }

    .clinic-info h3 {
        font-size: 1.3rem;
    }

    /* Врачи mob | 医生移动 */
    .doctor-card {
        flex-direction: column;
    }

    .doctor-photo {
        width: 100%;
        height: 240px;
    }

    /* Услуги mob | 服务移动 */
    .service-card {
        flex-direction: column;
        padding: 24px;
    }

    .insurance-quote,
    .insurance-translation {
        font-size: 0.9rem;
        padding: 16px;
    }

    /* Форма mob | 表单移动 */
    .form-row-2col {
        grid-template-columns: 1fr;
    }

    .booking-form {
        padding: 24px;
    }

    /* Футер mob | 页脚移动 */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .scroll-top {
        bottom: 20px;
        right: 20px;
        width: 44px;
        height: 44px;
    }
}

/* Маленький мобильный | 小屏手机 (≤480px) */
@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .hero-title {
        font-size: 1.6rem;
    }

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

    .doctor-photo {
        height: 200px;
    }

    .price-table th,
    .price-table td {
        padding: 10px 12px;
        font-size: 0.8rem;
    }
}
