/* ===== СТИЛИ ДЛЯ СТАТЕЙ ===== */
@import url("https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700;800&family=Comfortaa:wght@400;600;700&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-color: #4caf50;
  --primary-dark: #388e3c;
  --primary-light: #81c784;
  --secondary-color: #ff9800;
  --accent-color: #e91e63;
  --text-dark: #333333;
  --text-light: #666666;
  --text-white: #ffffff;
  --bg-light: #f8f9fa;
  --bg-gradient: linear-gradient(135deg, #4caf50 0%, #81c784 50%, #a5d6a7 100%);
  --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.08);
  --shadow-medium: 0 8px 30px rgba(0, 0, 0, 0.12);
  --border-radius: 20px;
  --transition-fast: 0.3s ease;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Nunito", sans-serif;
  color: var(--text-dark);
  line-height: 1.7;
  background: var(--bg-light);
}

h1,
h2,
h3,
h4 {
  font-family: "Comfortaa", cursive;
  font-weight: 700;
}

/* ===== НАВБАР ===== */
.article-nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-soft);
  padding: 15px 0;
}

.article-nav .container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.back-link {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--primary-dark);
  font-weight: 700;
  font-size: 1rem;
  transition: var(--transition-fast);
}

.back-link:hover {
  color: var(--primary-color);
  transform: translateX(-3px);
}

.back-link .arrow {
  font-size: 1.4rem;
  transition: var(--transition-fast);
}

.back-link:hover .arrow {
  transform: translateX(-5px);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--primary-color);
}

.nav-logo .logo-icon {
  font-size: 1.6rem;
}

.nav-logo .logo-text {
  font-family: "Comfortaa", cursive;
  font-size: 1.4rem;
  font-weight: 700;
  background: var(--bg-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Переключатель языка */
.lang-switch {
  display: flex;
  gap: 5px;
  background: var(--bg-light);
  border-radius: 25px;
  padding: 3px;
}

.lang-btn {
  padding: 6px 14px;
  border: none;
  border-radius: 22px;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: 0.3s ease;
  background: transparent;
  color: #666;
  font-family: "Nunito", sans-serif;
}

.lang-btn.active {
  background: #4caf50;
  color: #fff;
  box-shadow: 0 2px 8px rgba(76, 175, 80, 0.4);
}

.lang-btn:hover:not(.active) {
  background: rgba(76, 175, 80, 0.1);
  color: #388e3c;
}

/* ===== ПЕРЕКЛЮЧЕНИЕ ЯЗЫКА КОНТЕНТА ===== */
body.lang-kz [data-lang="ru"],
body.lang-ru [data-lang="kz"] {
  display: none !important;
}

/* По умолчанию KZ */
body:not(.lang-ru) [data-lang="ru"] {
  display: none !important;
}

/* ===== ГЕРОЙ СТАТЬИ ===== */
.article-hero {
  background: var(--bg-gradient);
  padding: 80px 0 100px;
  position: relative;
  overflow: hidden;
}

.article-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none'%3E%3Cg fill='%23ffffff' fill-opacity='0.08'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.article-hero .container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 2;
  text-align: center;
}

.article-hero-icon {
  font-size: 5rem;
  display: block;
  margin-bottom: 20px;
  animation: bounce 2s ease infinite;
}

.article-hero h1 {
  font-size: 2.8rem;
  color: var(--text-white);
  margin-bottom: 15px;
  text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.1);
}

.article-hero .subtitle {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.9);
  max-width: 600px;
  margin: 0 auto;
}

.article-hero-wave {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
}

.article-hero-wave svg {
  display: block;
  width: 100%;
  height: 80px;
}

/* ===== КОНТЕНТ СТАТЬИ ===== */
.article-content {
  max-width: 1000px;
  margin: -40px auto 0;
  padding: 0 20px 80px;
  position: relative;
  z-index: 3;
}

.article-section {
  background: var(--text-white);
  border-radius: var(--border-radius);
  padding: 40px;
  margin-bottom: 30px;
  box-shadow: var(--shadow-soft);
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}

.article-section.visible {
  opacity: 1;
  transform: translateY(0);
}

.article-section:hover {
  box-shadow: var(--shadow-medium);
}

.section-icon-title {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
}

.section-emoji {
  font-size: 2.5rem;
  flex-shrink: 0;
}

.section-icon-title h2 {
  font-size: 1.6rem;
  color: var(--primary-dark);
  line-height: 1.3;
}

.article-section p {
  color: var(--text-light);
  margin-bottom: 15px;
  font-size: 1.05rem;
  line-height: 1.8;
}

.article-section p:last-child {
  margin-bottom: 0;
}

/* Списки */
.article-list {
  list-style: none;
  padding: 0;
  margin: 15px 0;
}

.article-list li {
  padding: 12px 15px 12px 50px;
  position: relative;
  color: var(--text-dark);
  font-size: 1.02rem;
  line-height: 1.6;
  border-radius: 12px;
  margin-bottom: 8px;
  background: var(--bg-light);
  transition: var(--transition-fast);
}

.article-list li:hover {
  transform: translateX(5px);
  background: #e8f5e9;
}

.article-list li::before {
  content: attr(data-icon);
  position: absolute;
  left: 15px;
  top: 12px;
  font-size: 1.2rem;
}

/* Нумерованный список */
.article-list.numbered li {
  counter-increment: list-counter;
}

.article-list.numbered li::before {
  content: counter(list-counter);
  background: var(--primary-color);
  color: var(--text-white);
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  top: 12px;
}

/* Выделенный блок */
.highlight-box {
  background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
  border-left: 5px solid var(--primary-color);
  padding: 25px 30px;
  border-radius: 0 var(--border-radius) var(--border-radius) 0;
  margin: 20px 0;
}

.highlight-box p {
  color: var(--primary-dark);
  font-weight: 600;
  font-size: 1.1rem;
}

/* Предупреждение */
.warning-box {
  background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);
  border-left: 5px solid var(--secondary-color);
  padding: 25px 30px;
  border-radius: 0 var(--border-radius) var(--border-radius) 0;
  margin: 20px 0;
}

.warning-box p {
  color: #e65100;
  font-weight: 600;
}

/* Цитата */
.article-quote {
  background: linear-gradient(135deg, #f3e5f5 0%, #e1bee7 100%);
  padding: 30px;
  border-radius: var(--border-radius);
  margin: 20px 0;
  text-align: center;
  position: relative;
}

.article-quote::before {
  content: '"';
  font-size: 4rem;
  color: #9c27b0;
  font-family: Georgia, serif;
  line-height: 1;
  opacity: 0.3;
  position: absolute;
  top: 10px;
  left: 20px;
}

.article-quote p {
  color: #4a148c;
  font-style: italic;
  font-size: 1.1rem;
  position: relative;
  z-index: 1;
}

.article-quote cite {
  display: block;
  margin-top: 10px;
  font-style: normal;
  font-weight: 700;
  color: #7b1fa2;
  font-size: 0.95rem;
}

/* Сетка карточек */
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin: 20px 0;
}

.info-card {
  background: var(--bg-light);
  padding: 25px 20px;
  border-radius: 15px;
  text-align: center;
  transition: var(--transition-fast);
}

.info-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-soft);
  background: #e8f5e9;
}

.info-card-icon {
  font-size: 2.5rem;
  margin-bottom: 10px;
  display: block;
}

.info-card h3 {
  font-size: 1.1rem;
  color: var(--primary-dark);
  margin-bottom: 8px;
}

.info-card p {
  font-size: 0.95rem;
  color: var(--text-light);
}

/* Другие статьи */
.other-articles {
  background: var(--text-white);
  border-radius: var(--border-radius);
  padding: 40px;
  margin-top: 50px;
  box-shadow: var(--shadow-soft);
  text-align: center;
}

.other-articles h2 {
  font-size: 1.8rem;
  color: var(--primary-dark);
  margin-bottom: 25px;
}

.articles-links {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.article-link-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 25px;
  background: var(--bg-light);
  border-radius: 15px;
  text-decoration: none;
  color: var(--text-dark);
  transition: var(--transition-fast);
  font-weight: 600;
}

.article-link-card:hover {
  background: #e8f5e9;
  transform: translateY(-3px);
  box-shadow: var(--shadow-soft);
  color: var(--primary-dark);
}

.article-link-card .link-emoji {
  font-size: 2rem;
}

/* ===== ФУТЕР ===== */
.article-footer {
  background: #2e7d32;
  color: var(--text-white);
  text-align: center;
  padding: 30px 20px;
}

.article-footer p {
  opacity: 0.8;
  font-size: 0.95rem;
}

.article-footer a {
  color: var(--text-white);
  text-decoration: none;
  font-weight: 700;
}

.article-footer a:hover {
  text-decoration: underline;
}

/* ===== АНИМАЦИИ ===== */
@keyframes bounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== АДАПТИВНОСТЬ ===== */
@media (max-width: 768px) {
  .article-hero h1 {
    font-size: 2rem;
  }

  .article-hero-icon {
    font-size: 3.5rem;
  }

  .article-section {
    padding: 25px 20px;
  }

  .section-icon-title {
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }

  .section-icon-title h2 {
    font-size: 1.3rem;
  }

  .info-grid {
    grid-template-columns: 1fr;
  }

  .articles-links {
    flex-direction: column;
    align-items: center;
  }
}

@media (max-width: 480px) {
  .article-hero {
    padding: 50px 0 70px;
  }

  .article-hero h1 {
    font-size: 1.6rem;
  }

  .article-section {
    padding: 20px 15px;
  }

  .article-list li {
    padding-left: 45px;
  }
}
