/* Глобальные стили для сайта "Источник здоровья" */

/* Сброс стилей */
* {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  line-height: 1.6;
}

body {
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #f8f9fa;
}

/* Утилитарные классы */
.clearfix::after {
  content: "";
  display: table;
  clear: both;
}

.rounded-corners {
  border-radius: 10px;
}

.borderbox {
  box-sizing: border-box;
}

/* Базовые стили для элементов */
.colelem {
  width: 100%;
}

.grpelem {
  display: inline-block;
}

.nonblock {
  display: block;
}

.nontext {
  text-decoration: none;
}

.block {
  display: block;
}

.NoWrap {
  white-space: nowrap;
}

.shadow {
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Стили для навигации */
.MenuBar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
}

.MenuItemContainer {
  position: relative;
}

.MenuItem {
  display: block;
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

.MenuItemWithSubMenu {
  position: relative;
}

.MuseMenuActive {
  font-weight: bold;
}

.MenuItemLabel {
  padding: 0.5rem 1rem;
}

/* Стили для изображений */
.clip_frame {
  overflow: hidden;
}

.clip_frame img {
  max-width: 100%;
  height: auto;
}

/* Адаптивность */
@media (max-width: 768px) {
  .MenuBar {
    flex-direction: column;
  }
  
  .MenuItemContainer {
    width: 100%;
  }
  
  .MenuItem {
    text-align: center;
  }
}

/* Стили для форм */
form {
  margin: 0;
}

input, button {
  font-family: inherit;
  font-size: inherit;
}

/* Стили для таблиц */
table {
  border-collapse: collapse;
  width: 100%;
}

/* Стили для текста */
p {
  margin: 0 0 1rem 0;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0 0 1rem 0;
  font-weight: 600;
}

/* Стили для ссылок */
a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Стили для списков */
ul, ol {
  margin: 0 0 1rem 0;
  padding-left: 2rem;
}

li {
  margin-bottom: 0.5rem;
}

/* Стили для кнопок */
button, input[type="submit"], input[type="button"] {
  cursor: pointer;
  border: none;
  background: none;
  font: inherit;
}

/* Стили для полей ввода */
input[type="text"], 
input[type="email"], 
input[type="search"], 
input[type="tel"], 
input[type="url"], 
textarea, 
select {
  width: 100%;
  padding: 0.5rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  font: inherit;
}

input:focus, 
textarea:focus, 
select:focus {
  outline: none;
  border-color: #4CAF50;
  box-shadow: 0 0 0 2px rgba(76, 175, 80, 0.2);
}

/* Стили для контейнеров */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Стили для отступов */
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }
.mt-5 { margin-top: 3rem; }

.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }
.mb-5 { margin-bottom: 3rem; }

.p-1 { padding: 0.25rem; }
.p-2 { padding: 0.5rem; }
.p-3 { padding: 1rem; }
.p-4 { padding: 1.5rem; }
.p-5 { padding: 3rem; }

/* Стили для выравнивания */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

/* Стили для отображения */
.d-none { display: none; }
.d-block { display: block; }
.d-inline { display: inline; }
.d-inline-block { display: inline-block; }
.d-flex { display: flex; }

/* Стили для флекса */
.flex-column { flex-direction: column; }
.flex-row { flex-direction: row; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.align-center { align-items: center; }
.align-start { align-items: flex-start; }
.align-end { align-items: flex-end; }

/* Стили для ширины */
.w-100 { width: 100%; }
.w-75 { width: 75%; }
.w-50 { width: 50%; }
.w-25 { width: 25%; }

/* Стили для высоты */
.h-100 { height: 100%; }
.h-auto { height: auto; }

/* Стили для позиционирования */
.position-relative { position: relative; }
.position-absolute { position: absolute; }
.position-fixed { position: fixed; }
.position-sticky { position: sticky; }

/* Стили для z-index */
.z-1 { z-index: 1; }
.z-2 { z-index: 2; }
.z-3 { z-index: 3; }

/* Стили для overflow */
.overflow-hidden { overflow: hidden; }
.overflow-auto { overflow: auto; }
.overflow-scroll { overflow: scroll; }

/* Стили для границ */
.border { border: 1px solid #ddd; }
.border-top { border-top: 1px solid #ddd; }
.border-bottom { border-bottom: 1px solid #ddd; }
.border-left { border-left: 1px solid #ddd; }
.border-right { border-right: 1px solid #ddd; }

/* Стили для скругления */
.rounded { border-radius: 0.25rem; }
.rounded-sm { border-radius: 0.125rem; }
.rounded-lg { border-radius: 0.5rem; }
.rounded-xl { border-radius: 1rem; }
.rounded-full { border-radius: 50%; }

/* Стили для теней */
.shadow-sm { box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05); }
.shadow { box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1); }
.shadow-lg { box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1); }
.shadow-xl { box-shadow: 0 20px 25px rgba(0, 0, 0, 0.1); }

/* Стили для прозрачности */
.opacity-0 { opacity: 0; }
.opacity-25 { opacity: 0.25; }
.opacity-50 { opacity: 0.5; }
.opacity-75 { opacity: 0.75; }
.opacity-100 { opacity: 1; }

/* Стили для курсора */
.cursor-pointer { cursor: pointer; }
.cursor-default { cursor: default; }
.cursor-not-allowed { cursor: not-allowed; }

/* Стили для выделения текста */
.select-none { user-select: none; }
.select-text { user-select: text; }
.select-all { user-select: all; }

/* Стили для переноса текста */
.whitespace-normal { white-space: normal; }
.whitespace-nowrap { white-space: nowrap; }
.whitespace-pre { white-space: pre; }
.whitespace-pre-line { white-space: pre-line; }
.whitespace-pre-wrap { white-space: pre-wrap; }

/* Стили для переноса слов */
.break-normal { word-break: normal; }
.break-words { word-break: break-word; }
.break-all { word-break: break-all; }

/* Стили для текста */
.text-xs { font-size: 0.75rem; }
.text-sm { font-size: 0.875rem; }
.text-base { font-size: 1rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }
.text-2xl { font-size: 1.5rem; }
.text-3xl { font-size: 1.875rem; }
.text-4xl { font-size: 2.25rem; }

/* Стили для веса шрифта */
.font-thin { font-weight: 100; }
.font-light { font-weight: 300; }
.font-normal { font-weight: 400; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.font-extrabold { font-weight: 800; }
.font-black { font-weight: 900; }

/* Стили для высоты строки */
.leading-none { line-height: 1; }
.leading-tight { line-height: 1.25; }
.leading-snug { line-height: 1.375; }
.leading-normal { line-height: 1.5; }
.leading-relaxed { line-height: 1.625; }
.leading-loose { line-height: 2; }

/* Стили для цвета текста */
.text-white { color: #ffffff; }
.text-black { color: #000000; }
.text-gray-100 { color: #f7fafc; }
.text-gray-200 { color: #edf2f7; }
.text-gray-300 { color: #e2e8f0; }
.text-gray-400 { color: #cbd5e0; }
.text-gray-500 { color: #a0aec0; }
.text-gray-600 { color: #718096; }
.text-gray-700 { color: #4a5568; }
.text-gray-800 { color: #2d3748; }
.text-gray-900 { color: #1a202c; }

/* Стили для фона */
.bg-white { background-color: #ffffff; }
.bg-black { background-color: #000000; }
.bg-gray-100 { background-color: #f7fafc; }
.bg-gray-200 { background-color: #edf2f7; }
.bg-gray-300 { background-color: #e2e8f0; }
.bg-gray-400 { background-color: #cbd5e0; }
.bg-gray-500 { background-color: #a0aec0; }
.bg-gray-600 { background-color: #718096; }
.bg-gray-700 { background-color: #4a5568; }
.bg-gray-800 { background-color: #2d3748; }
.bg-gray-900 { background-color: #1a202c; }

/* Стили для зеленых цветов */
.text-green-100 { color: #f0fff4; }
.text-green-200 { color: #c6f6d5; }
.text-green-300 { color: #9ae6b4; }
.text-green-400 { color: #68d391; }
.text-green-500 { color: #48bb78; }
.text-green-600 { color: #38a169; }
.text-green-700 { color: #2f855a; }
.text-green-800 { color: #276749; }
.text-green-900 { color: #22543d; }

.bg-green-100 { background-color: #f0fff4; }
.bg-green-200 { background-color: #c6f6d5; }
.bg-green-300 { background-color: #9ae6b4; }
.bg-green-400 { background-color: #68d391; }
.bg-green-500 { background-color: #48bb78; }
.bg-green-600 { background-color: #38a169; }
.bg-green-700 { background-color: #2f855a; }
.bg-green-800 { background-color: #276749; }
.bg-green-900 { background-color: #22543d; }

/* Стили для анимаций */
.transition { transition: all 0.3s ease; }
.transition-fast { transition: all 0.15s ease; }
.transition-slow { transition: all 0.5s ease; }

/* Стили для трансформаций */
.transform { transform: translateZ(0); }
.scale-95 { transform: scale(0.95); }
.scale-100 { transform: scale(1); }
.scale-105 { transform: scale(1.05); }
.scale-110 { transform: scale(1.1); }

/* Стили для hover эффектов */
.hover\:scale-105:hover { transform: scale(1.05); }
.hover\:scale-110:hover { transform: scale(1.1); }
.hover\:opacity-75:hover { opacity: 0.75; }
.hover\:opacity-50:hover { opacity: 0.5; }

/* Стили для focus эффектов */
.focus\:outline-none:focus { outline: none; }
.focus\:ring:focus { box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.5); }
.focus\:ring-green:focus { box-shadow: 0 0 0 3px rgba(72, 187, 120, 0.5); }

/* Стили для активных состояний */
.active\:scale-95:active { transform: scale(0.95); }
.active\:opacity-75:active { opacity: 0.75; }

/* Стили для disabled состояний */
.disabled\:opacity-50:disabled { opacity: 0.5; }
.disabled\:cursor-not-allowed:disabled { cursor: not-allowed; }

/* Стили для печати */
@media print {
  .no-print { display: none !important; }
  .print-only { display: block !important; }
}

/* Стили для высокого контраста */
@media (prefers-contrast: high) {
  .high-contrast {
    border: 2px solid currentColor;
  }
}

/* Стили для уменьшенного движения */
@media (prefers-reduced-motion: reduce) {
  .motion-reduce {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Стили для темной темы */
@media (prefers-color-scheme: dark) {
  .dark-mode {
    background-color: #1a202c;
    color: #e2e8f0;
  }
}

/* Стили для светлой темы */
@media (prefers-color-scheme: light) {
  .light-mode {
    background-color: #ffffff;
    color: #2d3748;
  }
}
