/* === Сброс стилей === */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* === Общие стили для body === */
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, sans-serif;
  line-height: 1.6;
  color: #333;
  /* Анимированный градиентный фон — идеально для Liquid Glass */
  background: -webkit-linear-gradient(115deg, #d0d1d1,#369fbc);
  background: linear-gradient(115deg, #d0d1d1,#369fbc);
  background-position: 100%;
  animation: gradientBG 15s ease infinite;
  min-height: 100vh;
  scroll-behavior: smooth;
  max-width: 1200px;
  margin: auto;
}

a {
  text-decoration: none;
  color: inherit;
}

/* === Анимация фона === */
@keyframes gradientBG {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* === Шапка === */
#home-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
  gap: 1.5rem;
  max-height: 40px;
}

#logo {
  height: 40px;
  width: auto;
}

#home-header h1 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #2563eb;
  margin: 0;
}

#home-header nav ul {
  display: flex;
  list-style: none;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
}

#home-header nav a {
  font-weight: 500;
  color: #4b5563;
  transition: color 0.2s;
}

#home-header nav a:hover {
  color: #2563eb;
}

.version {
  display: inline-block;
  margin: 0;
  padding: 0px 6px;
  color: white;
  background-color: #32cd32;
  border: 3px solid #32cd32;
  border-radius: 20px;
  font-weight: bold;
  text-align: center;
  font-size: small;
}

/* === Геро-секция === */
.hero {
  padding: 4rem 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.hero-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.hero-text h2 {
  font-size: 2.2rem;
  color: #1e293b;
  margin-bottom: 1rem;
}

.hero-text p {
  font-size: 1.1rem;
  color: #64748b;
  margin-bottom: 1.5rem;
}

.btn {
  display: inline-block;
  padding: 0.8rem 2rem;
  background-color: #2563eb;
  color: white;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1.1rem;
  transition: background-color 0.2s;
}

.btn:hover {
  background-color: #1d4ed8;
}

/* === Инфографика в герое с Liquid Glass === */
.hero-visual {
  flex: 1;
  min-width: 300px;
  max-width: 500px;
}

.hero-graphic {
  width: 100%;
  height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.liquid-glass-container {
  position: relative; /* Контейнер для позиционирования потомков */
  border-radius: 50px; /* Скругления на контейнере */
  overflow: hidden; /* Обрезаем всё, что выходит за границы */
  padding: 10px; /* Отступы для содержимого */
}

.liquid-glass-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.1); /* Прозрачный фон */

  /* Blur и цветовая коррекция */
  backdrop-filter: blur(4px) saturate(1.1) contrast(1.05) hue-rotate(1deg);
  -webkit-backdrop-filter: blur(4px) saturate(1.1) contrast(1.05) hue-rotate(1deg);

  /* Внутренние блики (Specular Highlights) */
  box-shadow:
    inset 6px 6px 12px rgba(153, 192, 255, 0.05),
    inset 1px 1px 3px rgba(195, 218, 255, 0.1),
    inset -6px -6px 12px rgba(229, 253, 190, 0.05),
    inset -1px -1px 10px rgba(247, 255, 226, 0.1);

  /* ВНЕШНИЙ SVG-фильтр (только для фона) */
  filter: url(#liquid-glass-filter); /* <-- Применяется только к фону */

  /* Убедимся, что фон не перекрывает содержимое */
  z-index: 1;
  pointer-events: none; /* Чтобы клики проходили сквозь фон */
}

.liquid-glass-content {
  position: relative;
  z-index: 2; /* Содержимое поверх фона */
  /* Стили для текста */
  color: #fff; /* или любой другой цвет */
  /* ... остальные стили для содержимого ... */
}

/* === Секция "Принцип" === */
.principle {
  padding: 4rem 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.principle h3 {
  font-size: 1.8rem;
  color: #1e293b;
  margin-bottom: 1rem;
}

.principle p {
  font-size: 1.1rem;
  color: #64748b;
  margin-bottom: 2rem;
}

.principle ol {
  text-align: left;
  max-width: 600px;
  margin: 0 auto;
  padding-left: 1.5rem;
  color: #4b5563;
}

/* === Секция "О Проекте" (теперь без Liquid Glass — чистый стиль, как на corvix.ru) === */
.about-project {
  padding: 4rem 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
  background: white; /* Чистый белый фон */
  border-radius: 12px; /* Простые скругления */
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06); /* Лёгкая тень */
  margin-bottom: 2rem;
}

.about-project h3 {
  font-size: 1.8rem;
  color: #1e293b;
  margin-bottom: 1rem;
}

.about-project p {
  font-size: 1.1rem;
  color: #64748b;
  line-height: 1.7;
}

.about-project a {
  color: #2563eb;
  font-weight: 500;
}

/* === Футер === */
footer {
  text-align: center;
  padding: 2rem;
  color: #94a3b8;
  font-size: 0.9rem;
  border-top: 1px solid #e2e8f0;
  margin-top: 2rem;
}


/* === Адаптив === */
@media (max-width: 768px) {
  #home-header {
    flex-direction: column;
    text-align: center;
  }

  #home-header h1 {
    display: none;
  }

  #home-header nav ul {
    flex-wrap: wrap;
    justify-content: center;
  }

  .hero-content {
    flex-direction: column;
  }

  .hero-visual {
    min-width: 100%;
  }

  .principle ol {
    padding-left: 1rem;
  }
}