/* ============================================
   RESET & VARIABLES
============================================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --dark-bg: #1f1f1f;
  --card-bg: #2b2b2b;
  --text: #fdfcfb;
  --muted: #b0b0b0;
  --accent: #f59e0b;
  --border: rgba(255, 255, 255, 0.1);
}

/* ============================================
   BASE STYLES
============================================ */
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: var(--dark-bg);
  color: var(--text);
  line-height: 1.5;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ============================================
   TOP BAR (ОБНОВЛЕННЫЙ)
============================================ */
.top-bar {
  display: flex;
  flex-direction: column;
  padding: 12px 15px;
  background: #2b2b2b;
  position: relative;
  z-index: 150;
  gap: 10px;
}

.top-section {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.top-left.logo .logo-img {
  height: 35px;
  width: auto;
  display: block;
}

.worktime-top {
  font-weight: 600;
  color: var(--accent);
  white-space: nowrap;
  font-size: 13px;
  text-align: right;
}

.bottom-section {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.bottom-section .phone {
  font-weight: 600;
  color: #fff;
  font-size: 14px;
  text-align: right;
}

/* Social links */
.social-links {
  display: flex;
  align-items: center;
  gap: 10px;
}

.social-link img {
  width: 22px;
  height: 22px;
  filter: invert(1);
  opacity: 0.9;
  transition: opacity 0.3s;
}

.social-link:hover img {
  opacity: 1;
}

/* ============================================
   SCROLL NAV (НАВ-БАР С ЯКОРЯМИ)
============================================ */
.scroll-nav {
  position: sticky;
  top: 0;
  width: 100%;
  background: #ba6531;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  padding: 10px;
  z-index: 120;
  overflow-x: auto;
}

.scroll-nav a {
  font-weight: 500;
  color: #ffffff;
  white-space: nowrap;
  font-size: 14px;
  padding: 5px 10px;
}

.scroll-nav a:hover {
  color: var(--accent);
}

/* ============================================
   HERO SECTION
============================================ */
.hero {
  position: relative;
  height: 85vh;
  min-height: 500px;
  max-height: 800px;
  overflow: hidden;
}

.hero video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
}

.hero-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  max-width: 90%;
  width: 800px;
  padding: 20px;
}

.hero-text h1 {
  font-size: 32px;
  margin-bottom: 15px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-text p {
  font-size: 18px;
  color: var(--accent);
  font-weight: 500;
}

/* ============================================
   COMMON SECTIONS
============================================ */
.section {
  padding: 50px 20px;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.section h2 {
  text-align: center;
  font-size: 28px;
  margin-bottom: 30px;
  position: relative;
}

.section h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: var(--accent);
  margin: 15px auto 0;
  border-radius: 2px;
}

/* ============================================
   SERVICES SECTION
============================================ */
.services-clean h2 {
  text-align: center;
  margin-bottom: 30px;
}

.carousel-wrapper {
  width: 100%;
}

.carousel-track {
  display: flex;
  gap: 15px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 10px 5px 20px;
  -webkit-overflow-scrolling: touch;
}

.carousel-track::-webkit-scrollbar {
  height: 6px;
}

.carousel-track::-webkit-scrollbar-thumb {
  background: var(--accent);
  border-radius: 3px;
}

.price-card {
  flex: 0 0 auto;
  background: var(--card-bg);
  padding: 20px;
  border-radius: 12px;
  width: 280px;
  min-width: 280px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.group-title {
  font-size: 20px;
  margin-bottom: 15px;
  color: var(--accent);
  font-weight: 700;
  padding-bottom: 8px;
  border-bottom: 2px solid rgba(245, 158, 11, 0.3);
}

.price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 15px;
  line-height: 1.4;
}

.price-row:last-child {
  border-bottom: none;
}

.price-row span:last-child {
  color: var(--accent);
  font-weight: 600;
  text-align: right;
  margin-left: 10px;
  min-width: 100px;
}

/* ============================================
   DOCTORS SECTION
============================================ */
.doctors-carousel {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding: 10px 5px 25px;
  -webkit-overflow-scrolling: touch;
}

.doctors-carousel::-webkit-scrollbar {
  height: 6px;
}

.doctors-carousel::-webkit-scrollbar-thumb {
  background: var(--accent);
  border-radius: 3px;
}

.doctor-card {
  width: 260px;
  flex: 0 0 auto;
  background: var(--card-bg);
  border-radius: 12px;
  padding: 15px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.doctor-card img {
  width: 100%;
  height: 220px;
  object-fit: contain;
  border-radius: 10px;
  margin-bottom: 15px;
}

.doctor-card h3 {
  color: var(--accent);
  margin-bottom: 5px;
  font-weight: 700;
  font-size: 18px;
}

.doctor-card p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.4;
}

/* ============================================
   REVIEWS SECTION
============================================ */
.review {
  background: var(--card-bg);
  padding: 25px;
  border-radius: 12px;
  margin: 0 auto 25px;
  max-width: 800px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.review p {
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 15px;
  font-style: italic;
}

.review span.orange {
  color: var(--accent);
  font-weight: 700;
  display: block;
  margin-top: 10px;
  font-size: 16px;
}

/* ============================================
   ABOUT SECTION
============================================ */
.about-wrapper {
  background: var(--card-bg);
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
  max-width: 1200px;
  margin: 0 auto;
}

.about-image {
  width: auto;
  overflow: hidden;
  position: relative;
  height: auto;
}

.about-image img {
  width: auto;
  height: auto;
  object-fit: cover;
  display: block;
}

.about-content {
  padding: 30px;
}

.about-content h3 {
  color: var(--accent);
  font-size: 24px;
  margin-bottom: 10px;
  font-weight: 700;
  text-align: center;
}

.about-subtitle {
  color: var(--muted);
  font-size: 16px;
  margin-bottom: 25px;
  text-align: center;
  font-style: italic;
}

.about-description {
  font-family: Georgia, 'Times New Roman', Times, serif;
  line-height: 1.7;
  font-size: 17px;
  color: #f0f0f0;
  text-align: justify;
}

.about-description p {
  margin-bottom: 20px;
}

/* ============================================
   MAP SECTION
============================================ */
#yandexMap {
  width: 100%;
  height: 400px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* ============================================
   FOOTER
============================================ */
footer {
  background: #000;
  color: #fff;
  padding: 40px 20px 30px;
  margin-top: 50px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto 30px;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-col h4 {
  color: var(--accent);
  font-size: 18px;
  margin-bottom: 12px;
  font-weight: 700;
}

.footer-col a {
  color: #fff;
  font-size: 15px;
  opacity: 0.9;
  transition: opacity 0.3s;
}

.footer-col a:hover {
  opacity: 1;
  color: var(--accent);
}

.footer-btn {
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 12px 24px;
  border-radius: 25px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s;
  margin-top: 5px;
}

.footer-btn:hover {
  background: #261e13;
  transform: translateY(-2px);
}

.footer-phone {
  font-weight: 600;
  font-size: 16px;
  margin-top: 8px;
}

/* ============================================
   STICKY BUTTON
============================================ */
.sticky-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: var(--accent);
  color: #fff;
  padding: 14px 24px;
  border-radius: 30px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.3);
  border: none;
  cursor: pointer;
  z-index: 100;
  font-size: 15px;
  transition: all 0.3s;
}

.sticky-btn:hover {
  background: #e6890b;
  transform: translateY(-2px);
}

/* ============================================
   MODAL
============================================ */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.7);
  justify-content: center;
  align-items: center;
  z-index: 200;
  padding: 20px;
}

.modal-content {
  background: #2b2b2b;
  padding: 30px;
  border-radius: 15px;
  max-width: 400px;
  width: 100%;
  color: #fff;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  position: relative;
}

.modal-content h2 {
  color: var(--accent);
  margin-bottom: 20px;
  text-align: center;
}

.modal-content input,
.modal-content textarea {
  padding: 12px 15px;
  border-radius: 8px;
  border: 1px solid #444;
  font-size: 15px;
  background: #333;
  color: #fff;
  width: 100%;
  margin-bottom: 15px;
  font-family: inherit;
}

.modal-content input:focus,
.modal-content textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.modal-content textarea {
  min-height: 100px;
  resize: vertical;
}

.modal-content button {
  background: var(--accent);
  color: #fff;
  padding: 14px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 700;
  font-size: 16px;
  width: 100%;
  transition: background 0.3s;
}

.modal-content button:hover {
  background: #e6890b;
}

.modal-content .close {
  font-size: 28px;
  cursor: pointer;
  color: #fff;
  position: absolute;
  top: 15px;
  right: 20px;
  line-height: 1;
}

/* ============================================
   DESKTOP VERSION (min-width: 768px)
============================================ */
@media (min-width: 768px) {
  /* Top Bar */
  .top-bar {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    gap: 0;
  }
  
  .top-section {
    width: auto;
    gap: 20px;
  }
  
  .worktime-top {
    font-size: 14px;
    display: block;
  }
  
  .bottom-section {
    width: auto;
    gap: 15px;
  }
  
  .bottom-section .phone {
    font-size: 16px;
  }
  
  .top-left.logo .logo-img {
    height: 40px;
  }
  
  .social-link img {
    width: 24px;
    height: 24px;
  }
  
  /* Hero */
  .hero {
    height: 85vh;
    min-height: 500px;
    max-height: 800px;
  }
  
  .hero-text h1 {
    font-size: 32px;
  }
  
  .hero-text p {
    font-size: 18px;
  }
}

/* ============================================
   MOBILE VERSION (max-width: 767px)
============================================ */
@media (max-width: 767px) {
  /* Hero adjustments */
  .hero {
    height: 70vh;
    min-height: 400px;
    max-height: 600px;
  }
  
  .hero-text h1 {
    font-size: 26px;
  }
  
  .hero-text p {
    font-size: 16px;
  }
  
  /* Sections */
  .section {
    padding: 40px 15px;
  }
  
  .section h2 {
    font-size: 24px;
  }
  
  /* Top Bar adjustments for very small screens */
  @media (max-width: 480px) {
    .top-bar {
      padding: 10px 12px;
      gap: 8px;
    }
    
    .top-left.logo .logo-img {
      height: 30px;
    }
    
    .worktime-top {
      font-size: 11px;
    }
    
    .social-links {
      gap: 8px;
    }
    
    .social-link img {
      width: 20px;
      height: 20px;
    }
    
    .bottom-section .phone {
      font-size: 13px;
    }
    
    /* Scroll Nav */
    .scroll-nav {
      gap: 8px;
      padding: 8px;
    }
    
    .scroll-nav a {
      font-size: 12px;
      padding: 4px 8px;
    }
  }
  
  @media (max-width: 360px) {
    .worktime-top {
      font-size: 10px;
    }
    
    .social-links {
      gap: 6px;
    }
    
    .social-link img {
      width: 18px;
      height: 18px;
    }
    
    .scroll-nav a {
      font-size: 11px;
      padding: 3px 6px;
    }
  }
}
/* SOCIAL LINKS - LOCAL SVG VERSION */
.social-links {
  display: flex;
  align-items: center;
  gap: 10px;
}

.social-icon {
  width: 24px;
  height: 24px;
  filter: brightness(0) invert(1); /* Делаем иконки белыми */
  transition: all 0.3s;
  display: block;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  transition: all 0.3s;
}

.social-link:hover {
  background: var(--accent);
  transform: translateY(-2px);
}

.social-link:hover .social-icon {
  filter: brightness(0) invert(1);
}

@media (max-width: 480px) {
  .social-icon {
    width: 20px;
    height: 20px;
  }
  
  .social-link {
    width: 32px;
    height: 32px;
  }
}