/* ==========================================================================
   1. RESET & BASE SETTINGS (СБРОС СТИЛЕЙ И БАЗА)
   ========================================================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Montserrat', sans-serif;
  background-color: #f8fafc; /* Очень мягкий, едва заметный голубовато-белый оттенок */
  color: #334155; /* Дорогой графитовый цвет для текста (вместо резкого черного) */
  line-height: 1.6;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Информационная плашка сверху */
.top-banner {
  background-color: #e2e8f0;
  color: #475569;
  text-align: center;
  padding: 10px 20px;
  font-size: 13px;
  font-weight: 500;
  border-bottom: 1px solid #cbd5e1;
  letter-spacing: 0.5px;
}

/* Универсальные кнопки */
.btn-primary, .btn-doctolib {
  display: inline-block;
  background-color: #0d9488; /* Благородный мятно-бирюзовый / медицинский тил */
  color: #ffffff;
  text-decoration: none;
  padding: 14px 30px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(13, 148, 136, 0.2);
}

.btn-primary:hover, .btn-doctolib:hover {
  background-color: #0f766e; /* Более глубокий тон при наведении */
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(13, 148, 136, 0.3);
}

.btn-secondary {
  display: inline-block;
  background-color: transparent;
  color: #0d9488;
  border: 1px solid #0d9488;
  text-decoration: none;
  padding: 14px 35px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  background-color: #0d9488;
  color: #ffffff;
}

/* Заголовки секций */
.section-title {
  font-size: 32px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #1e293b; /* Глубокий темно-синий/грифельный оттенок */
  margin-bottom: 15px;
}

.section-subtitle {
  font-size: 16px;
  color: #64748b;
  font-weight: 300;
  margin-bottom: 50px;
}

.text-center { text-align: center; }
.margin-top-40 { margin-top: 40px; }

/* ==========================================================================
   2. HEADER (ШАПКА САЙТА)
   ========================================================================== */
.site-header {
  background-color: rgba(255, 255, 255, 0.95);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid #e2e8f0;
  backdrop-filter: blur(10px); /* Эффект матового стекла */
}

.header-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
}

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

.logo-title {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #1e293b;
}

.logo-subtitle {
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #0d9488;
  margin-top: 2px;
  font-weight: 500;
}

.main-nav a {
  color: #475569;
  text-decoration: none;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 0 20px;
  font-weight: 500;
  transition: color 0.3s ease;
}

.main-nav a:hover {
  color: #0d9488;
}

.btn-doctolib {
  padding: 10px 20px;
  font-size: 12px;
}

/* ==========================================================================
   3. HERO SECTION (ГЛАВНЫЙ ЭКРАН)
   ========================================================================== */
.hero-section {
  position: relative;
  /* Сюда отлично подойдет светлое фото интерьера ресепшена клиники или кабинета врача */
  background: url('img/hero-medical-bg.jpg') no-repeat center center/cover;
  background-color: #f1f5f9;
  height: 75vh;
  display: flex;
  align-items: center;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* Мягкий светлый градиент, чтобы темный текст идеально читался */
  background: linear-gradient(90deg, rgba(255,255,255,0.9) 0%, rgba(255,255,255,0.6) 100%);
  z-index: 1;
}

.hero-wrap {
  position: relative;
  z-index: 2;
}

.hero-content {
  max-width: 650px;
}

.hero-content h1 {
  font-size: 46px;
  font-weight: 600;
  letter-spacing: -0.5px;
  line-height: 1.2;
  color: #1e293b;
  margin-bottom: 20px;
}

.hero-subtitle {
  font-size: 18px;
  color: #475569;
  font-weight: 300;
  margin-bottom: 35px;
  line-height: 1.6;
}

/* ==========================================================================
   4. CONCEPT (О КАБИНЕТЕ)
   ========================================================================== */
.about-section {
  padding: 100px 0;
  background-color: #ffffff; /* Белоснежный фон для контраста */
}

.about-grid {
  display: flex;
  gap: 80px;
  align-items: center;
}

.about-text {
  flex: 1;
}

.text-p {
  color: #475569;
  font-size: 15px;
  margin-bottom: 20px;
  font-weight: 300;
}

.about-features {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 35px;
}

.feature-item {
  display: flex;
  gap: 20px;
  background: #f8fafc;
  padding: 25px;
  border-radius: 6px;
  border: 1px solid #e2e8f0;
}

.feature-icon {
  font-size: 32px;
  line-height: 1;
}

.feature-item h3 {
  font-size: 18px;
  font-weight: 500;
  color: #1e293b;
  margin-bottom: 8px;
}

.feature-item p {
  color: #64748b;
  font-size: 14px;
  font-weight: 300;
}

/* ==========================================================================
   5. SPECIALITIES & TARIFS (СПЕЦИАЛЬНОСТИ И ЦЕНЫ)
   ========================================================================== */
.services-section {
  padding: 100px 0;
}

.menu-container {
  display: flex;
  gap: 60px;
  margin-top: 50px;
}

.menu-category {
  flex: 1;
  background: #ffffff;
  padding: 40px;
  border-radius: 6px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
  border: 1px solid #e2e8f0;
}

.category-title {
  font-size: 20px;
  font-weight: 500;
  color: #0d9488;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-bottom: 2px solid #f1f5f9;
  padding-bottom: 15px;
  margin-bottom: 30px;
}

.menu-item {
  margin-bottom: 25px;
}

.menu-item-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 5px;
}

.item-name {
  font-size: 16px;
  font-weight: 500;
  color: #1e293b;
}

.item-price {
  font-size: 16px;
  font-weight: 600;
  color: #0d9488;
  padding-left: 15px;
  white-space: nowrap;
}

.item-desc {
  font-size: 13px;
  color: #64748b;
  font-weight: 300;
}

/* ==========================================================================
   6. FOOTER (ПОДВАЛ САЙТА)
   ========================================================================== */
.site-footer {
  background-color: #0f172a; /* Очень благородный глубокий темно-синий */
  color: #cbd5e1;
  padding: 80px 0 40px 0;
}

.footer-wrap {
  display: flex;
  justify-content: space-between;
  gap: 40px;
}

.footer-info strong {
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #ffffff;
  display: block;
  margin-bottom: 15px;
}

.footer-info p, .footer-hours p {
  color: #94a3b8;
  font-size: 14px;
  font-weight: 300;
  margin-bottom: 8px;
}

.legal-mention {
  color: #0d9488 !important;
  font-weight: 500 !important;
  font-size: 12px !important;
  text-transform: uppercase;
  margin-top: 15px;
}

.footer-hours h4 {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #ffffff;
  margin-bottom: 15px;
  font-weight: 500;
}

.developer-credits {
  margin-top: 25px;
  font-size: 12px !important;
}

.developer-credits a {
  color: #0d9488;
  text-decoration: none;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  color: #94a3b8;
  text-decoration: none;
  font-size: 13px;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: #0d9488;
}

/* ==========================================================================
   7. COOKIES BANNER (КУКИ)
   ========================================================================== */
.cookie-banner {
  position: fixed;
  bottom: -100px;
  left: 20px;
  right: 20px;
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  padding: 20px;
  border-radius: 6px;
  z-index: 1000;
  transition: bottom 0.5s ease;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
}

.cookie-banner.active {
  bottom: 20px;
}

.cookie-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  gap: 20px;
}

.cookie-content p {
  font-size: 13px;
  color: #475569;
  font-weight: 300;
}

.cookie-content a {
  color: #0d9488;
}

.cookie-buttons {
  display: flex;
  gap: 10px;
}

.btn-cookie-accept {
  background-color: #0d9488;
  color: white;
  border: none;
  padding: 8px 18px;
  font-size: 12px;
  cursor: pointer;
  border-radius: 4px;
  text-transform: uppercase;
  font-weight: 500;
}

.btn-cookie-refuse {
  background-color: transparent;
  color: #64748b;
  border: 1px solid #cbd5e1;
  padding: 8px 18px;
  font-size: 12px;
  cursor: pointer;
  border-radius: 4px;
  text-transform: uppercase;
}

/* ==========================================================================
   8. RESPONSIVE DESIGN (АДАПТИВНОСТЬ)
   ========================================================================== */
@media (max-width: 992px) {
  .about-grid { flex-direction: column; gap: 40px; }
  .menu-container { flex-direction: column; gap: 40px; }
}

@media (max-width: 768px) {
  .header-wrap { flex-direction: column; gap: 15px; text-align: center; }
  .main-nav { margin: 10px 0; }
  .hero-content h1 { font-size: 32px; }
  .hero-subtitle { font-size: 15px; }
  .footer-wrap { flex-direction: column; text-align: center; }
  .cookie-content { flex-direction: column; text-align: center; }
}

/* ==========================================================================
   9. SCROLL TOP BUTTON (КНОПКА НАВЕРХ)
   ========================================================================== */
.btn-scroll-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 45px;
  height: 45px;
  background-color: #ffffff;
  color: #0d9488;
  border: 1px solid #e2e8f0;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 99;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.btn-scroll-top.visible {
  opacity: 1;
  visibility: visible;
}

.btn-scroll-top:hover {
  background-color: #0d9488;
  color: #ffffff;
  border-color: #0d9488;
  transform: translateY(-3px);
}