/* =========================================
   1. БАЗОВЫЕ НАСТРОЙКИ
   ========================================= */
*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  color: #1e293b;
  background: #fff;
  padding-bottom: 80px;
}

img { max-width: 100%; height: auto; display: block; border-radius: 20px; }
.container { max-width: 1400px; margin: 0 auto; padding: 0 40px; }a { text-decoration: none; }

/* =========================================
   2. ХЕДЕР
   ========================================= */
.site-header { background: rgba(255,255,255,0.95); backdrop-filter: blur(10px); border-bottom: 1px solid #e2e8f0; position: sticky; top: 0; z-index: 100; }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.logo { font-weight: 800; font-size: 22px; color: #0f172a; display: flex; align-items: center; gap: 8px; letter-spacing: -0.5px; }
.logo-mark { color: #0d9488; font-size: 26px; line-height: 1; }
.main-nav { display: flex; gap: 32px; }
.main-nav a { color: #475569; font-size: 16px; font-weight: 500; transition: color 0.2s; }
.main-nav a:hover { color: #0d9488; }
.mobile-menu-btn { display: none; background: none; border: none; color: #0f172a; cursor: pointer; padding: 8px; }
.mobile-menu { display: none; }

/* =========================================
   3. КНОПКИ
   ========================================= */
.btn-primary, .btn-secondary { display: inline-flex; align-items: center; justify-content: center; padding: 14px 28px; border-radius: 12px; font-weight: 600; font-size: 16px; transition: all 0.2s; border: none; cursor: pointer; }
.btn-sm { padding: 10px 20px; font-size: 15px; }
.btn-primary { background: #0d9488; color: #fff; box-shadow: 0 4px 12px rgba(13, 148, 136, 0.2); }
.btn-primary:hover { background: #0f766e; transform: translateY(-2px); box-shadow: 0 6px 16px rgba(13, 148, 136, 0.3); }
.btn-secondary { background: #f1f5f9; color: #334155; }
.btn-secondary:hover { background: #e2e8f0; }

/* =========================================
   4. ГЛАВНЫЙ ЭКРАН (HERO)
   ========================================= */
.hero { padding: 80px 0; background: linear-gradient(135deg, #f0fdfa 0%, #f8fafc 100%); }
.hero-inner { display: grid; grid-template-columns: 1.1fr 1fr; gap: 60px; align-items: center; }
.badge { display: inline-block; background: #ccfbf1; color: #0f766e; padding: 6px 16px; border-radius: 100px; font-size: 0.9rem; font-weight: 600; margin-bottom: 20px; }
h1 { font-size: 3rem; line-height: 1.1; margin: 0 0 20px; font-weight: 800; color: #0f172a; letter-spacing: -1px; }
.subtitle { font-size: 1.15rem; color: #475569; margin-bottom: 32px; max-width: 500px; }
.hero-actions { display: flex; gap: 16px; margin-bottom: 32px; }
.trust-row { display: flex; gap: 24px; font-size: 0.95rem; color: #64748b; font-weight: 500; }

/* =========================================
   5. ЗАГОЛОВКИ СТРАНИЦ
   ========================================= */
.page-header { padding: 80px 0 60px; text-align: center; background: #f8fafc; border-bottom: 1px solid #e2e8f0; }
.page-header h1 { font-size: 3rem; margin-bottom: 16px; }
.page-subtitle { color: #64748b; font-size: 1.1rem; margin: 0; }
.breadcrumbs { font-size: 0.9rem; color: #94a3b8; margin-bottom: 16px; }
.breadcrumbs a { color: #0d9488; }

/* =========================================
   6. СЕТКА И КАРТОЧКИ УСЛУГ
   ========================================= */
.services-section { padding: 60px 0; }
.bg-white { background: #fff; }
.bg-light { background: #f8fafc; }
.services-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }

.service-card { background: #fff; border: 1px solid #e2e8f0; border-radius: 20px; text-decoration: none; color: inherit; transition: transform 0.3s, box-shadow 0.3s; display: flex; flex-direction: column; overflow: hidden; }
.service-card:hover { transform: translateY(-6px); box-shadow: 0 20px 40px -10px rgba(0,0,0,0.12); border-color: #0d9488; }

.card-image { width: 100%; height: 200px; overflow: hidden; }
.card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.service-card:hover .card-image img { transform: scale(1.05); }

.card-content { padding: 24px; display: flex; flex-direction: column; flex-grow: 1; }
.card-icon-wrap { width: 48px; height: 48px; background: #f0fdfa; border-radius: 12px; display: flex; align-items: center; justify-content: center; margin-bottom: 16px; color: #0d9488; font-size: 1.5rem; }
.service-card h3 { font-size: 1.2rem; margin: 0 0 12px; color: #0f172a; font-weight: 700; line-height: 1.3; }
.service-card p { color: #64748b; font-size: 0.95rem; flex-grow: 1; margin-bottom: 20px; }
.card-link { color: #0d9488; font-weight: 600; font-size: 0.95rem; }

/* =========================================
   7. СТРАНИЦА УСЛУГИ (ВНУТРЕННЯЯ)
   ========================================= */
.service-header { padding: 40px 0; background: #f8fafc; text-align: left; }
.service-header h1 { font-size: 2.5rem; margin-bottom: 0; }
.service-page { padding: 40px 0 80px; }
.service-page-grid { display: grid; grid-template-columns: 2.2fr 1fr; gap: 40px; align-items: start; }
.service-content { font-size: 1.1rem; color: #334155; }

.prose { font-size: 1.1rem; color: #334155; line-height: 1.7; }
.prose h2, .prose h3 { color: #0f172a; font-weight: 800; margin-top: 40px; margin-bottom: 16px; }
.prose h3 { font-size: 1.4rem; }
.prose p { margin-bottom: 20px; }
.prose strong { color: #0f172a; font-weight: 700; }

/* Списки */
.prose ul, .prose ol { margin: 0 0 24px; padding-left: 0; list-style: none; }
.prose ul li { position: relative; padding-left: 28px; margin-bottom: 12px; }
.prose ul li::before { content: '✓'; position: absolute; left: 0; top: 2px; color: #0d9488; font-weight: bold; font-size: 1.1rem; }
.prose ol { counter-reset: my-counter; }
.prose ol li { position: relative; padding-left: 36px; margin-bottom: 12px; counter-increment: my-counter; }
.prose ol li::before { content: counter(my-counter); position: absolute; left: 0; top: 0; width: 24px; height: 24px; background: #ccfbf1; color: #0f766e; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.85rem; font-weight: bold; }
.prose blockquote { background: #f0fdfa; border-left: 4px solid #0d9488; padding: 20px 24px; margin: 32px 0; border-radius: 0 12px 12px 0; font-style: italic; color: #0f766e; }

.service-sidebar { position: sticky; top: 100px; display: flex; flex-direction: column; gap: 24px; }
.sidebar-box { background: #f8fafc; padding: 32px; border-radius: 20px; border: 1px solid #e2e8f0; }
.sidebar-box h3 { margin: 0 0 12px; font-size: 1.3rem; }
.sidebar-box input { width: 100%; padding: 14px; margin-bottom: 12px; border: 1px solid #cbd5e1; border-radius: 12px; font-size: 1rem; outline: none; }
.sidebar-box input:focus { border-color: #0d9488; }
.sidebar-box button { width: 100%; }
.sidebar-contacts p { margin-bottom: 12px; font-size: 0.95rem; }

/* =========================================
   8. СТРАНИЦА О ВРАЧЕ
   ========================================= */
.about-page { padding: 60px 0; }
.about-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 60px; align-items: center; }
.about-text h2 { font-size: 2rem; margin: 0 0 8px; }
.about-role { color: #0d9488; font-weight: 600; font-size: 1.1rem; margin-bottom: 24px; }
.about-list { list-style: none; padding: 0; margin: 24px 0 32px; }
.about-list li { position: relative; padding-left: 28px; margin-bottom: 12px; font-weight: 500; }
.about-list li::before { content: '✓'; position: absolute; left: 0; color: #0d9488; font-weight: bold; }

/* =========================================
   9. ПРЕДФУТЕР (КОНТАКТЫ И ФОРМА)
   ========================================= */
.prefooter-section { padding: 80px 0; background: #f8fafc; }
.prefooter-card { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; background: #fff; padding: 60px; border-radius: 32px; box-shadow: 0 20px 50px -20px rgba(0,0,0,0.1); border: 1px solid #e2e8f0; }
.prefooter-desc { color: #64748b; font-size: 1.1rem; margin-bottom: 32px; line-height: 1.6; }

.info-list { display: flex; flex-direction: column; gap: 20px; }
.info-row { display: flex; align-items: flex-start; gap: 16px; }
.info-icon { color: #0d9488; font-size: 1.4rem; margin-top: 2px; flex-shrink: 0; }
.info-row p { margin: 0; font-size: 1.05rem; color: #334155; line-height: 1.5; }
.info-row a { color: #0f172a; font-weight: 700; }

.contact-form-box { background: #f8fafc; padding: 40px; border-radius: 24px; border: 1px solid #e2e8f0; }
.contact-form-box h3 { margin: 0 0 24px; font-size: 1.5rem; color: #0f172a; }
.form-group { margin-bottom: 16px; }
.contact-form-box input { width: 100%; padding: 16px; border: 1px solid #cbd5e1; border-radius: 12px; font-size: 1rem; outline: none; transition: border 0.3s; }
.contact-form-box input:focus { border-color: #0d9488; }
.contact-form-box button { width: 100%; padding: 16px; font-size: 1.1rem; }
.form-policy { font-size: 0.8rem; color: #94a3b8; text-align: center; margin-top: 16px; }

/* =========================================
   10. ФУТЕР
   ========================================= */
.site-footer { background: #0f172a; color: #94a3b8; padding: 80px 0 0; font-size: 0.95rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1.5fr; gap: 60px; margin-bottom: 60px; }
.footer-logo { font-size: 1.8rem; font-weight: 800; color: #fff; display: block; margin-bottom: 20px; letter-spacing: -0.5px; }
.footer-desc { line-height: 1.7; margin-bottom: 24px; max-width: 300px; }

/* Соцсети в футере */
.footer-socials { display: flex; gap: 12px; }
.footer-socials a { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; background: rgba(255,255,255,0.05); border-radius: 50%; color: #fff; transition: background 0.3s, transform 0.3s; }
.footer-socials a:hover { background: #0d9488; transform: translateY(-3px); }

.site-footer h4 { color: #fff; font-size: 1.2rem; margin: 0 0 24px; font-weight: 700; }
.footer-links, .footer-contacts { list-style: none; padding: 0; margin: 0; }
.footer-links li, .footer-contacts li { margin-bottom: 16px; display: flex; align-items: flex-start; gap: 10px; line-height: 1.5; }
.footer-links a { color: #94a3b8; transition: color 0.2s; }
.footer-links a:hover { color: #0d9488; }
.footer-contacts i { color: #0d9488; margin-top: 4px; }

/* Низ футера (Копирайт и политика) */
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding: 24px 0; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; font-size: 0.85rem; }
.copyright { color: #64748b; margin: 0; }
.privacy-link { color: #94a3b8; font-size: 0.85rem; transition: color 0.2s; }
.privacy-link:hover { color: #0d9488; }
.disclaimer { color: #f87171; background: rgba(248, 113, 113, 0.08); padding: 6px 12px; border-radius: 6px; font-size: 0.75rem; margin: 0; white-space: nowrap; }

/* =========================================
   11. СТРАНИЦА ВИДЕО (VERTICAL 9:16)
   ========================================= */
.video-page-section { padding: 60px 0 80px; }
.video-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; }
.video-page-card { background: #fff; border-radius: 20px; overflow: hidden; border: 1px solid #e2e8f0; transition: transform 0.3s, box-shadow 0.3s; display: flex; flex-direction: column; }
.video-page-card:hover { transform: translateY(-6px); box-shadow: 0 20px 40px -10px rgba(0,0,0,0.12); border-color: #0d9488; }
.video-page-thumb { position: relative; width: 100%; aspect-ratio: 9 / 16; background: #000; overflow: hidden; }
.video-page-thumb video { width: 100%; height: 100%; object-fit: contain; display: block; }
.video-page-info { padding: 16px; text-align: center; }
.video-page-info h3 { font-size: 1rem; margin: 0; color: #0f172a; font-weight: 700; line-height: 1.4; }

/* =========================================
   12. ПЛАВАЮЩИЕ СОЦСЕТИ (СБОКУ)
   ========================================= */
.floating-socials {
  position: fixed;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 999;
  background: #ffffff;
  padding: 10px;
  border-radius: 50px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  border: 1px solid #e2e8f0;
}

.float-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.3rem;
  transition: transform 0.3s;
}

.float-btn:hover { transform: scale(1.1); }
.float-wa { background: #25D366; }
.float-tg { background: #0088cc; }
.float-call { background: #0d9488; }

/* =========================================
   13. АНИМАЦИИ И ПРОЧЕЕ
   ========================================= */
.fade-in { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

.process-section { padding: 80px 0; }
.process-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 32px; margin-top: 40px; }
.process-step { background: #f8fafc; padding: 32px; border-radius: 20px; border: 1px solid #e2e8f0; text-align: center; transition: transform 0.3s; }
.process-step:hover { transform: translateY(-5px); }
.step-num { width: 48px; height: 48px; background: #0d9488; color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; font-weight: 800; margin: 0 auto 20px; }
.process-step h3 { font-size: 1.3rem; margin: 0 0 12px; }
.process-step p { color: #64748b; margin: 0; }

/* FAQ */
.faq-section { padding: 80px 0; }
.faq-grid { display: flex; flex-direction: column; gap: 16px; max-width: 800px; margin: 0 auto; }
.faq-item { background: #fff; border: 1px solid #e2e8f0; border-radius: 16px; padding: 24px; }
.faq-item summary { cursor: pointer; font-weight: 600; font-size: 1.1rem; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; float: right; font-size: 1.5rem; line-height: 1; color: #0d9488; }
.faq-item[open] summary::after { content: '−'; }
.faq-item p { margin: 16px 0 0; color: #64748b; }

/* Карта */
.map-section { padding: 60px 0; background: #f8fafc; }
.map-container { width: 100%; border-radius: 20px; overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,0.05); border: 1px solid #e2e8f0; }
.map-container iframe { display: block; width: 100%; }

/* =========================================
   МОБИЛЬНЫЙ АДАПТИВ (ЕДИНЫЙ БЛОК)
   ========================================= */
@media (max-width: 900px) {
  .main-nav, .header-actions { display: none; }
  .mobile-menu-btn { display: block; z-index: 1001; position: relative; }
  
  /* Меню */
  .mobile-menu { 
    display: none; 
    position: fixed; 
    top: 72px; left: 0; right: 0; 
    background: #fff; 
    padding: 24px; 
    z-index: 1000; 
    box-shadow: 0 20px 40px rgba(0,0,0,0.2); 
    border-radius: 0 0 24px 24px; 
  }
  .mobile-menu.active { display: block; }
  .mobile-nav { display: flex; flex-direction: column; gap: 20px; }
  .mobile-nav a { font-size: 1.2rem; font-weight: 600; color: #0f172a; padding-bottom: 12px; border-bottom: 1px solid #f1f5f9; }
  .mobile-nav a:last-child { border-bottom: none; padding-bottom: 0; }

  /* Оверлей */
  .mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.6);
    z-index: 999;
    backdrop-filter: blur(4px);
  }
  .mobile-menu-overlay.active { display: block; }

  /* Сетки в 2 колонки */
  section { padding: 40px 0; }
  .container { padding: 0 16px; }
  .services-grid, .process-grid, .video-grid, .advantages-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  
  /* Шрифты */
  h1 { font-size: 1.8rem; }
  h2 { font-size: 1.5rem; }
  .section-desc { font-size: 0.9rem; margin-bottom: 24px; }
  
  /* Карточки */
  .service-card { padding: 16px; border-radius: 16px; }
  .service-card h3 { font-size: 1rem; margin-bottom: 8px; }
  .service-card p { font-size: 0.8rem; margin-bottom: 12px; }
  .card-icon-wrap { width: 40px; height: 40px; margin-bottom: 12px; }
  .card-image { height: 140px; }
  
  /* Видео */
  .video-page-thumb { aspect-ratio: 3 / 4; }
  .play-btn-large { width: 60px; height: 60px; font-size: 1.5rem; }
  
  /* Процесс */
  .process-step { padding: 20px; border-radius: 16px; }
  .step-num { width: 36px; height: 36px; font-size: 1.2rem; margin-bottom: 12px; }
  .process-step h3 { font-size: 1rem; }
  .process-step p { font-size: 0.85rem; }
  
  /* Статьи */
  .article-card { padding: 16px; border-radius: 16px; }
  .article-card h3 { font-size: 1rem; }
  .article-card p { font-size: 0.85rem; }

  .section-header { flex-direction: column; align-items: flex-start; gap: 8px; margin-bottom: 24px; }
  
  /* Футер */
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; text-align: center; gap: 12px; padding-bottom: 100px; }
  .floating-socials { display: none; }
  
  /* Главный экран */
  .hero { padding: 40px 0; }
  .hero-inner { grid-template-columns: 1fr; gap: 24px; text-align: center; }
  .hero-image { order: -1; max-width: 280px; margin: 0 auto; }
  .hero-actions { flex-direction: column; }
  .trust-row { justify-content: center; flex-wrap: wrap; }
  
  /* Контакты */
  .prefooter-card { grid-template-columns: 1fr; padding: 24px; gap: 32px; }
  .contact-form-box { padding: 24px; }

  /* Липкая панель */
  .mobile-sticky-bar { display: flex; position: fixed; bottom: 0; left: 0; right: 0; background: #fff; padding: 12px 16px; box-shadow: 0 -4px 20px rgba(0,0,0,0.08); gap: 12px; z-index: 999; }
  .mobile-sticky-bar a { flex: 1; text-align: center; padding: 14px; border-radius: 12px; font-weight: 600; font-size: 1rem; }
  .btn-call { background: #f1f5f9; color: #0f172a; }
  .btn-book { background: #0d9488; color: #fff; }
}

/* Карусель для главной страницы на мобилке */
@media (max-width: 900px) {
  .home-page .services-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 16px;
    padding-bottom: 16px;
    -webkit-overflow-scrolling: touch;
  }
  
  .home-page .service-card {
    min-width: 260px;
    scroll-snap-align: start;
  }
}