:root {
  --bg: #f5fbf4;
  --surface: #ffffff;
  --surface-soft: #eaf6e8;
  --ink: #18352b;
  --muted: #61746c;
  --line: #cfe4d1;
  --green: #3f8f5b;
  --green-dark: #1f6b45;
  --accent: #e5b54b;
  --shadow: 0 18px 45px rgba(31, 107, 69, .11);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.75;
}

a { color: inherit; text-decoration: none; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(18px, 4vw, 56px);
  border-bottom: 1px solid rgba(207, 228, 209, .8);
  background: rgba(245, 251, 244, .92);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  white-space: nowrap;
}

.brand-logo {
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  display: block;
  border: 2px solid rgba(255, 255, 255, .86);
  border-radius: 12px;
  background: #dff3df;
  box-shadow: 0 6px 16px rgba(31, 107, 69, .14);
  object-fit: cover;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
  color: var(--muted);
  font-size: 15px;
}

.site-nav a {
  padding: 8px 10px;
  border-radius: 8px;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--green-dark);
  background: var(--surface-soft);
}

main { min-height: 70vh; }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, .95fr);
  gap: clamp(24px, 5vw, 64px);
  align-items: center;
  padding: clamp(34px, 7vw, 86px) clamp(18px, 5vw, 72px) 38px;
}

.hero-copy h1,
.page-hero h1 {
  margin: 10px 0 14px;
  max-width: 760px;
  font-size: clamp(34px, 6vw, 76px);
  line-height: 1.06;
  letter-spacing: 0;
}

.hero-copy p,
.page-hero p {
  margin: 0;
  max-width: 700px;
  color: var(--muted);
  font-size: clamp(17px, 2.2vw, 21px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 18px;
  border-radius: 8px;
  background: var(--green-dark);
  color: white;
  font-weight: 700;
}

.button.secondary {
  background: var(--surface);
  color: var(--green-dark);
  border: 1px solid var(--line);
}

.hero-visual {
  margin: 0;
  min-height: 280px;
}

.hero-visual img {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(var(--shadow));
}

.kicker {
  display: inline-flex;
  align-items: center;
  color: var(--green-dark);
  font-weight: 800;
  font-size: 14px;
}

.section {
  padding: 34px clamp(18px, 5vw, 72px);
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.section-head h2,
.related h2 {
  margin: 0;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.2;
  letter-spacing: 0;
}

.section-head p {
  margin: 0;
  max-width: 460px;
  color: var(--muted);
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.category-tile,
.article-card,
.related-link {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 8px 24px rgba(31, 107, 69, .06);
}

.category-tile {
  display: block;
  padding: 18px;
}

.category-tile strong {
  display: block;
  margin-bottom: 8px;
  font-size: 18px;
}

.category-tile span,
.article-card p,
.article-card small {
  color: var(--muted);
}

.article-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.featured-grid {
  grid-template-columns: 1.2fr repeat(2, minmax(0, 1fr));
}

.article-card {
  display: flex;
  min-height: 210px;
  flex-direction: column;
  padding: 18px;
  transition: transform .16s ease, border-color .16s ease;
}

.article-card:hover {
  transform: translateY(-3px);
  border-color: #8fcf9e;
}

.article-card.large {
  grid-row: span 2;
  min-height: 436px;
  background: linear-gradient(180deg, #ffffff 0%, #edf8e8 100%);
}

.article-card span {
  color: var(--green-dark);
  font-size: 13px;
  font-weight: 800;
}

.article-card h3 {
  margin: 10px 0 8px;
  font-size: 20px;
  line-height: 1.35;
  letter-spacing: 0;
}

.article-card.large h3 {
  font-size: clamp(26px, 4vw, 38px);
  line-height: 1.18;
}

.article-card p {
  margin: 0 0 18px;
}

.article-card small {
  margin-top: auto;
}

.page-hero {
  padding: clamp(34px, 7vw, 72px) clamp(18px, 5vw, 72px) 24px;
}

.page-hero.compact h1 {
  font-size: clamp(34px, 5vw, 58px);
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.pill {
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  font-size: 14px;
}

.pill.active {
  background: var(--green-dark);
  color: white;
  border-color: var(--green-dark);
}

.article-shell {
  width: min(880px, calc(100% - 36px));
  margin: 0 auto;
  padding: 32px 0 62px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
}

.article-header {
  padding: 28px 0 16px;
}

.article-header h1 {
  margin: 10px 0 12px;
  font-size: clamp(32px, 5vw, 58px);
  line-height: 1.12;
  letter-spacing: 0;
}

.lede {
  margin: 0;
  color: var(--muted);
  font-size: 19px;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 14px;
}

.data-strip {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 18px;
  align-items: center;
  margin: 18px 0 28px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.data-strip table {
  width: 100%;
  border-collapse: collapse;
}

.data-strip th,
.data-strip td {
  padding: 8px 10px;
  border-bottom: 1px solid #e6f0e5;
  text-align: left;
  font-size: 15px;
}

.data-strip th {
  color: var(--green-dark);
  width: 38%;
}

.data-strip p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.article-content {
  font-size: 18px;
}

.article-content p {
  margin: 0 0 1.2em;
}

.related {
  margin-top: 42px;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.related-link {
  display: block;
  padding: 14px;
  color: var(--green-dark);
  font-weight: 700;
}

.about-content {
  width: min(820px, calc(100% - 36px));
  margin: 0 auto 68px;
  font-size: 18px;
}

.site-footer {
  padding: 28px clamp(18px, 5vw, 72px);
  border-top: 1px solid var(--line);
  color: var(--muted);
  background: #edf8e8;
}

.site-footer p {
  margin: 4px 0;
}

.telegram-float {
  position: fixed;
  right: max(16px, env(safe-area-inset-right));
  bottom: max(18px, env(safe-area-inset-bottom));
  z-index: 30;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 58px;
  padding: 9px 16px 9px 10px;
  border: 1px solid rgba(255, 255, 255, .72);
  border-radius: 999px;
  background: #229ed9;
  color: #fff;
  box-shadow: 0 16px 36px rgba(34, 158, 217, .34), 0 3px 10px rgba(24, 53, 43, .18);
  font-weight: 800;
  line-height: 1;
}

.telegram-float svg {
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  display: block;
}

.telegram-float span {
  white-space: nowrap;
}

.telegram-float:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 42px rgba(34, 158, 217, .4), 0 4px 14px rgba(24, 53, 43, .2);
}

@media (max-width: 980px) {
  .hero,
  .data-strip {
    grid-template-columns: 1fr;
  }

  .category-grid,
  .article-grid,
  .featured-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .article-card.large {
    grid-row: auto;
    min-height: 260px;
  }
}

@media (max-width: 680px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .site-nav {
    justify-content: flex-start;
  }

  .hero {
    padding-top: 28px;
  }

  .category-grid,
  .article-grid,
  .featured-grid,
  .related-grid {
    grid-template-columns: 1fr;
  }

  .section-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .article-card,
  .category-tile {
    min-height: auto;
  }

  .article-content,
  .about-content {
    font-size: 17px;
  }

  .telegram-float {
    right: 14px;
    bottom: calc(14px + env(safe-area-inset-bottom));
    min-height: 56px;
    padding: 8px 14px 8px 8px;
    font-size: 15px;
  }

  .telegram-float svg {
    width: 38px;
    height: 38px;
  }
}
