/* === BLOG PAGE STYLES === */
:root {
  --primary: #1b5e30;
  --primary-dark: #134523;
  --primary-light: #eaf5ec;
  --accent: #2ecc71;
  --white: #ffffff;
  --bg-warm: #f2f7f3;
  --text: #1a2a1c;
  --text-secondary: #4a5b4d;
  --border: #dcebe0;
  --shadow-sm: 0 4px 10px rgba(20,70,30,0.06);
  --shadow-md: 0 12px 28px rgba(20,70,30,0.1);
  --shadow-lg: 0 20px 40px rgba(20,70,30,0.12);
  --radius: 20px;
  --radius-lg: 28px;
  --transition: all 0.25s ease;
}

/* Хлебные крошки */
.breadcrumbs {
  background: linear-gradient(160deg, #f2faf5 0%, #eaf4ee 100%);
  border-bottom: 1px solid var(--border);
}
.breadcrumbs .section-wrap {
  padding: 1rem 2rem;
  font-size: 0.9rem;
}
.breadcrumbs a { color: var(--primary); font-weight: 500; }
.breadcrumbs a:hover { color: var(--primary-dark); }
.breadcrumbs span { color: var(--text-secondary); }

/* Общее */
.section-wrap { max-width: 1200px; margin: 0 auto; }
.section-label {
  font-family: 'Unbounded', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--primary);
  margin-bottom: 0.7rem;
}
.section-title {
  font-size: 2.3rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 2.5rem;
  line-height: 1.2;
  position: relative;
  padding-bottom: 1.2rem;
}
.section-title::after {
  content: "";
  position: absolute;
  bottom: 0; left: 0;
  width: 60px; height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 4px;
}

/* Герой */
.page-hero {
  background: linear-gradient(160deg, #edf7f0 0%, #d7ecdd 40%, #c4e3cf 100%);
  border-bottom: 1px solid var(--border);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: "";
  position: absolute;
  top: -80px; right: -40px;
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(46,204,113,0.1) 0%, transparent 70%);
  border-radius: 50%;
}
.page-hero .section-wrap {
  padding: 4rem 2rem;
  position: relative;
  z-index: 2;
}
.page-hero h1 {
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 0.8rem;
}
.page-hero p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 1.8rem;
}

/* Кнопки */
.btn-primary {
  background: linear-gradient(135deg, var(--primary), #1a6b33);
  color: white;
  padding: 0.85rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  font-family: 'Golos Text', sans-serif;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.btn-outline {
  background: transparent;
  color: var(--primary-dark);
  padding: 0.85rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1.5px solid var(--primary);
  cursor: pointer;
  font-family: 'Golos Text', sans-serif;
  transition: var(--transition);
}
.btn-outline:hover {
  background: var(--primary-light);
}

/* Админ-панель */
.admin-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.5);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(2px);
}
.admin-modal {
  background: white;
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  max-width: 550px;
  width: 90%;
  box-shadow: var(--shadow-lg);
  animation: fadeIn 0.3s ease;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.admin-modal h3 {
  font-family: 'Unbounded', sans-serif;
  color: var(--primary-dark);
  margin-bottom: 1.2rem;
  font-size: 1.1rem;
}
.admin-input {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  font-family: 'Golos Text', sans-serif;
  font-size: 0.9rem;
  margin-bottom: 0.8rem;
  outline: none;
  transition: var(--transition);
}
.admin-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(27,94,48,0.08);
}
.admin-textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  font-family: 'Golos Text', sans-serif;
  font-size: 0.9rem;
  margin-bottom: 0.8rem;
  outline: none;
  resize: vertical;
  min-height: 80px;
  transition: var(--transition);
}
.admin-textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(27,94,48,0.08);
}
.admin-textarea-large {
  min-height: 150px;
}
.admin-buttons {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
}
.btn-close {
  background: #f10303;
  border: none;
  border-radius: 50%;
  color: #000000;
  cursor: pointer;
  font-size: 0.85rem;
  padding: 0.5rem;
  font-family: 'Golos Text', sans-serif;
  position: absolute;
  top: 1rem;
  right: 1.2rem;
  width: 33px;
}
.btn-close:hover {
  color: #ff5c49;
}

/* Кнопка удаления */
.btn-delete {
  background: #fee;
  color: #c0392b;
  border: none;
  padding: 0.3rem 0.8rem;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.75rem;
  margin-top: 0.5rem;
  font-family: 'Golos Text', sans-serif;
  transition: var(--transition);
}
.btn-delete:hover {
  background: #fdd;
}

/* Список статей */
.blog-list {
  background: linear-gradient(180deg, #eef8f2 0%, #f2faf5 100%);
}
.blog-list .section-wrap {
  padding: 5rem 2rem;
}
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.8rem;
}
.blog-card {
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  display: flex;
  flex-direction: column;
}
.blog-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
  border-color: var(--primary);
}
.blog-img {
  background: linear-gradient(135deg, #d9ecdf, #c3e0cd);
  padding: 2.5rem;
  font-size: 2.8rem;
  text-align: center;
}
.blog-body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.blog-tag {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--primary);
  background: var(--primary-light);
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  margin-bottom: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  width: fit-content;
}
.blog-title {
  font-size: 1.1rem;
  font-weight: 650;
  color: var(--primary-dark);
  margin-bottom: 0.6rem;
  font-family: 'Unbounded', sans-serif;
  line-height: 1.3;
}
.blog-excerpt {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.65;
  flex: 1;
}
.blog-date {
  font-size: 0.75rem;
  color: var(--text-secondary);
  opacity: 0.5;
  margin-top: 0.8rem;
}

/* Модальное окно статьи */
.article-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.6);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(3px);
}
.article-modal {
  background: white;
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  max-width: 750px;
  width: 90%;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  position: relative;
  animation: fadeIn 0.3s ease;
}
.article-full .blog-tag {
  margin-bottom: 0.5rem;
}
.article-full h2 {
  font-family: 'Unbounded', sans-serif;
  color: var(--primary-dark);
  margin: 0.8rem 0;
  font-size: 1.6rem;
}
.article-full .blog-date {
  margin-bottom: 1.2rem;
}
.article-text {
  color: var(--text-secondary);
  line-height: 1.8;
  font-size: 0.95rem;
}

/* CTA */
.cta-section { padding: 3rem 2rem 6rem; }
.cta-banner {
  max-width: 1100px; margin: 0 auto;
  background: linear-gradient(135deg, #1b5e30 0%, #1a6b33 50%, #236b38 100%);
  border-radius: var(--radius-lg);
  padding: 3.5rem 3rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 2.5rem;
  color: white;
  box-shadow: var(--shadow-lg);
}
.cta-content { flex: 1 1 300px; }
.cta-label {
  font-family: 'Unbounded', sans-serif;
  font-size: 0.8rem; font-weight: 600;
  letter-spacing: 0.07em; opacity: 0.85;
  margin-bottom: 0.6rem;
  text-transform: uppercase;
}
.cta-title { font-size: 2.2rem; font-weight: 700; line-height: 1.2; margin-bottom: 0.8rem; }
.cta-sub { opacity: 0.85; font-size: 0.95rem; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 1rem; }
.btn-white {
  background: white;
  color: var(--primary-dark);
  padding: 0.9rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
}
.btn-white:hover { background: #eaf5ec; transform: translateY(-2px); }
.btn-ghost-white {
  background: transparent;
  color: white;
  padding: 0.9rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  border: 1.5px solid rgba(255,255,255,0.7);
  text-decoration: none;
  transition: var(--transition);
}
.btn-ghost-white:hover { background: rgba(255,255,255,0.08); }

/* Адаптив */
@media (max-width: 900px) {
  .page-hero h1 { font-size: 2.2rem; }
  .section-title { font-size: 1.8rem; }
  .cta-banner { flex-direction: column; text-align: center; padding: 2.5rem 2rem; }
}
@media (max-width: 600px) {
  .page-hero .section-wrap { padding: 2.5rem 1rem; }
  .page-hero h1 { font-size: 1.7rem; }
  .section-title { font-size: 1.5rem; }
  .blog-list .section-wrap { padding: 3rem 1rem; }
  .blog-grid { grid-template-columns: 1fr; }
  .cta-section { padding: 1.5rem 1rem 3rem; }
  .cta-banner { padding: 2rem 1.5rem; }
  .cta-title { font-size: 1.6rem; }
  .article-modal { padding: 1.5rem; }
}