/**
 * =============================================================================
 * @encoding UTF-8
 * @author [Сетевые бизнес технологии](//netbis.ru)
 * @project [Стоматология Династия](//dinastiyamed.ru)
 * @summary Структурные стили - сетки, контейнеры, позиционирование
 * @created 2025-01
 * @modified 2025-01
 *
 * @remarks Базовые стили для макета и структуры страниц
 * ============================================================================
 */

/* Контейнеры */
.container-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.container-wide {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
}

.container-narrow {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Секции */
.section-padding {
  padding: 80px 0;
}

.section-padding-sm {
  padding: 60px 0;
}

.section-padding-lg {
  padding: 120px 0;
}

/* Hero секция */
.hero-section {
  min-height: 600px;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

/* Сетки */
.grid-services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin-top: 48px;
}

.grid-doctors {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
  margin-top: 48px;
}

.grid-reviews {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 24px;
  margin-top: 48px;
}

/* Флекс утилиты */
.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.flex-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.flex-start {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.flex-column {
  display: flex;
  flex-direction: column;
}

.flex-wrap {
  flex-wrap: wrap;
}

/* Заголовки секций */
.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 16px;
  color: #1a202c;
}

.section-subtitle {
  font-size: 1.125rem;
  text-align: center;
  color: #64748b;
  margin-bottom: 48px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.section-accent {
  color: var(--dental-green);
}

/* Навигация */
.nav-main {
  background: white;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
}

.nav-logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--dental-green);
  text-decoration: none;
}

.nav-menu {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 32px;
}

.nav-link {
  color: #64748b;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--dental-green);
}

/* Футер */
.footer-main {
  background: var(--dental-gray, #1a202c);
  color: white;
  padding: 60px 0 30px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-section h3 {
  color: white;
  margin-bottom: 20px;
  font-size: 1.25rem;
  font-weight: 600;
}

.footer-link {
  color: #a0aec0;
  text-decoration: none;
  transition: color 0.3s ease;
  display: block;
  margin-bottom: 8px;
}

.footer-link:hover {
  color: var(--dental-green-light);
}

.footer-main p {
  color: #cbd5e0;
  margin-bottom: 1rem;
  line-height: 1.6;
}

.footer-bottom {
  border-top: 1px solid #2d3748;
  padding-top: 30px;
  text-align: center;
  color: #a0aec0;
}

.footer-advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1rem;
    font-size: 0.875rem;
}

.footer-social-icons {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

.footer-social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--dental-green-footer-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
    color: white;
}

.footer-social-link:hover {
    background-color: var(--dental-green-footer-hover);
}

/* Адаптивность */
@media (max-width: 768px) {
  .section-padding {
    padding: 60px 0;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .grid-services,
  .grid-doctors,
  .grid-reviews {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .nav-menu {
    display: none;
  }
  
  .hero-section {
    min-height: 500px;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .container-main,
  .container-wide,
  .container-narrow {
    padding: 0 16px;
  }
  
  .section-padding {
    padding: 40px 0;
  }
  
  .section-title {
    font-size: 1.75rem;
  }
}

/* Дополнительные стили для CTA секции */
.cta-section {
  padding: 60px 0;
  text-align: center;
  position: relative;
}

.cta-section h2 {
  color: white !important;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  font-weight: 700;
  margin-bottom: 24px;
}

.cta-section p {
  color: white !important;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
  opacity: 0.95;
  margin-bottom: 32px;
}

/* Адаптивные стили для CTA секции */
@media (max-width: 768px) {
  .cta-section {
    padding: 40px 0;
  }
  
  .cta-section h2 {
    font-size: 2rem;
    margin-bottom: 20px;
  }
  
  .cta-section p {
    font-size: 1.125rem;
    margin-bottom: 28px;
  }
  
  .bg-gradient-to-r.from-dental-green.to-dental-green-light {
    margin: 0 16px;
    border-radius: 20px;
  }
}

@media (max-width: 480px) {
  .cta-section {
    padding: 32px 0;
  }
  
  .cta-section h2 {
    font-size: 1.75rem;
    margin-bottom: 16px;
  }
  
  .cta-section p {
    font-size: 1rem;
    margin-bottom: 24px;
  }
  
  .bg-gradient-to-r.from-dental-green.to-dental-green-light {
    margin: 0 12px;
    border-radius: 16px;
    padding: 32px 20px;
  }
}
