/* Базовые настройки */
:root {
  --primary: #2c7da0; /* Спокойный синий (доверие, стоматология) */
  --primary-dark: #1f5068; /* Темный оттенок */
  --secondary: #61a5c2; /* Светлый акцент */
  --accent: #89c2d9; /* Очень светлый */
  --white: #ffffff;
  --gray-light: #f4f9f9;
  --gray: #6c757d;
  --dark: #2d3e50;

  --shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  --border-radius: 12px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Inter", sans-serif;
  background-color: #fff;
  color: #1f2a3a;
  line-height: 1.5;
  font-size: 16px;
}

.container {
  max-width: 75rem;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header */

.header {
  background: var(--white);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 0;
}

.logo a {
  display: flex;
  align-items: center;
  gap: 0.93rem;
  text-decoration: none;
}

.logo-image {
  font-size: 3rem;
  color: var(--primary);
}

.logo-text {
  font-size: 1.5rem;
  color: var(--primary);
  font-weight: 700;
}
.logo-text span {
  color: var(--primary-dark);
  font-weight: 700;
}

.nav-items {
  display: flex;
  gap: 2rem;
  justify-content: center;
}

.nav-items a {
  color: var(--primary-dark);
}

.header a {
  text-decoration: none;
}

.contact-phone {
  color: var(--primary-dark);
}
/* Hero Section */
.hero {
  text-align: center;
  /* padding: 5rem 0 3rem; */
  background: linear-gradient(135deg, #f8fafc 0%, #eef2f6 100%);
}

.hero-displays {
  display: flex;
}
.hero-left-side {
  justify-content: left;
  padding: 1rem;
  width: 70%;
  display: flex;
  flex-direction: column;
}
.hero-right-side {
  justify-content: right;
  background-color: var(--secondary);
  width: 30%;
  height: 100%;
}

.hero-doctor {
  padding: 1rem;
  aspect-ratio: 1;
  width: 20.75rem;
}

.hero h1 {
  font-size: 3rem;
  font-weight: 700;
  color: #0b2b3b;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.btn {
  display: inline-block;
  padding: 0.87rem 2rem;
  border-radius: 3.75rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
  font-size: 16px;
}

.btn-primary {
  background-color: #0f5c6b;
  color: white;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
}

.btn-primary:hover {
  background-color: #0a454f;
  transform: translateY(-2px);
}

.btn-outline {
  background-color: transparent;
  color: #0f5c6b;
  border: 1.5px solid #0f5c6b;
}

.btn-outline:hover {
  background-color: #e6f4f5;
  transform: translateY(-2px);
}

.hero-description {
  color: #4a5b6e;
  font-size: 1.12rem;
  max-width: 37.5rem;
  margin: 0 auto;
}

/* About Stats */
.about-stats {
  padding: 5rem 0 3rem 0;
  background: white;
}

.about-stats-displays {
  display: flex;
}
.about-stats-left-side {
  justify-content: right;
  width: 50%;
  height: 100%;
}

.about-stats-left-side img {
  aspect-ratio: 1;
  height: 37rem;
}

.section-title {
  text-align: center;
  font-size: 2.25rem;
  font-weight: 700;
  margin-bottom: 3rem;
  color: #0b2b3b;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 2fr);
  gap: 2rem;
  text-align: center;
}

.stat-card {
  background: #f9fbfd;
  padding: 2rem 1rem;
  border-radius: 1.5rem;
  transition: all 0.2s;
  border: 1px solid #eef2f6;
}

.stat-number {
  font-size: 3rem;
  font-weight: 800;
  color: #0f5c6b;
  line-height: 1.2;
  margin-bottom: 0.75rem;
}

.stat-label {
  font-size: 1.125rem;
  color: #2c3e50;
  font-weight: 500;
}

/* Services Section */
.services {
  background-color: #f9fbfd;
  padding: 3rem 0 7rem 0;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.service-card {
  background: white;
  border-radius: 24px;
  padding: 32px 20px;
  text-align: center;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.02);
  transition: all 0.25s ease;
  border: 1px solid #eef2f6;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 30px -12px rgba(0, 0, 0, 0.08);
  border-color: #cbdde6;
}

.service-icon {
  background: #e0f0f2;
  width: 70px;
  height: 70px;
  line-height: 70px;
  text-align: center;
  border-radius: 40px;
  margin: 0 auto 24px;
  font-size: 32px;
  color: #0f5c6b;
}

.service-card h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 12px;
  color: #0b2b3b;
}

.service-card p {
  color: #5a6e7c;
  font-size: 15px;
}
/* Footer */

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--dark);
  padding: 2rem;
  gap: 1.25rem;
}

.footer-card {
  padding: 0.5rem 0;
  transition: all 0.25s ease;
}

.footer-card__container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: var(--gray-light);
  max-width: 75rem;
  margin: 0 auto;
  padding: 0 1.5rem;
  margin-bottom: 4px;
}

.footer-card__container h3 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.footer-card__container img {
  width: 20rem;
  border-bottom: 1px solid var(--gray-light);
  padding-bottom: 1rem;
}

.footer-nav-items a {
  color: var(--accent);
  text-decoration: none;
}

/* Responsive */
@media (max-width: 1024px) {
  .stats-grid,
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
  .hero h1 {
    font-size: 38px;
  }
}

/* ===== СТИЛИ ДЛЯ КОНТЕНТА JOOMLA ===== */
.main-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}

.main-content h1 {
  font-size: 42px;
  font-weight: 700;
  color: #0b2b3b;
  margin-bottom: 24px;
}

.main-content h2 {
  font-size: 32px;
  font-weight: 600;
  color: #0f5c6b;
  margin: 40px 0 20px;
  padding-bottom: 12px;
  border-bottom: 3px solid #0f5c6b;
  display: inline-block;
}

.main-content h3 {
  font-size: 24px;
  font-weight: 600;
  color: #1f2a3a;
  margin: 30px 0 15px;
}

.main-content p {
  font-size: 18px;
  line-height: 1.6;
  color: #2c3e50;
  margin-bottom: 20px;
}

.main-content ul,
.main-content ol {
  margin: 20px 0 20px 30px;
}

.main-content li {
  font-size: 18px;
  line-height: 1.6;
  margin-bottom: 10px;
}

.main-content a {
  color: #0f5c6b;
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.main-content a:hover {
  border-bottom-color: #0f5c6b;
}

.main-content img {
  max-width: 100%;
  height: auto;
  border-radius: 16px;
  margin: 20px 0;
}

/* Исправление для about-stats */
.about-stats-left-side img {
  max-width: 100%;
  height: auto;
}

/* Исправление hero-right-side */
.hero-right-side {
  width: 30%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-doctor {
  width: 100%;
  max-width: 332px;
  height: auto;
  padding: 1rem;
}

/* Адаптив футера */
@media (max-width: 768px) {

 html {
    font-size: 15px;
  }

  .container {
    max-width: 100vw;
  }

  .logo-image {
    font-size: 0;
  }

  .logo-text {
    font-size: 1.25rem;
    color: var(--primary);
    font-weight: 500;
  }
  .logo-text span {
    color: var(--primary-dark);
    font-weight: 500;
  }

  .nav-items {
    font-size: 1.25rem;
  }

  .nav-items a {
    color: var(--primary-dark);
  }

  .contact-phone {
    display: none;
  }

  .hero-displays {
    display: block;
    align-items: center;
  }

  .about-stats-left-side {
    display: none;
  }
  .hero-right-side {
    display: none;
  }

  .footer-grid {
    grid-template-columns: 1fr; /* В одну колонку на телефонах */
  }

}

@media (max-width: 640px) {
  html {
    font-size: 13px;
  }

  .container {
    max-width: 100vw;
  }

  .logo-image {
    font-size: 0;
  }

  .logo-text {
    font-size: 1rem;
    color: var(--primary);
    font-weight: 500;
  }
  .logo-text span {
    color: var(--primary-dark);
    font-weight: 500;
  }

  .nav-items {
    font-size: 1rem;
  }

  .nav-items a {
    color: var(--primary-dark);
  }

  .contact-phone {
    display: none;
  }

  .hero-displays {
    display: block;
    align-items: center;
  }
}

@media (max-width: 480px) {
  .footer-grid {
    grid-template-columns: 1fr; /* В одну колонку на телефонах */
  }
  .hero-left-side {
    text-align: center;
  }
}
