:root {
  --green: #21e879;
  --green-dark: #10b85a;
  --black: #05070d;
  --dark: #0b1220;
  --gray: #6b7280;
  --line: #e5e7eb;
  --soft: #f7f8fa;
  --white: #ffffff;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Plus Jakarta Sans', Arial, sans-serif;
}

body {
  background: var(--white);
  color: #111827;
  line-height: 1.7;
}

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

img {
  max-width: 100%;
  display: block;
}

.container {
  width: 92%;
  max-width: 1180px;
  margin: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, .92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.navbar {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo img {
  width: 164px;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 24px;
  color: #374151;
  font-size: 14px;
  font-weight: 700;
}

.nav-menu a:hover {
  color: var(--green-dark);
}

.nav-action {
  display: flex;
  gap: 12px;
}

.btn {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 8px;
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
}

.btn-primary {
  background: var(--green);
  color: #04130a;
  box-shadow: 0 10px 24px rgba(33, 232, 121, .28);
}

.btn-primary:hover {
  background: var(--green-dark);
  color: #fff;
}

.btn-outline {
  background: #fff;
  color: #111827;
  border-color: var(--line);
}

.btn-outline:hover {
  border-color: var(--green);
}

.blog-hero {
  background:
    radial-gradient(circle at 20% 20%, rgba(33, 232, 121, .22), transparent 28%),
    linear-gradient(135deg, #07110c 0%, #0b1220 62%, #111827 100%);
  color: #fff;
  padding: 86px 0 68px;
}

.blog-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr);
  gap: 42px;
  align-items: end;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--green);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.blog-hero h1 {
  max-width: 740px;
  font-size: clamp(34px, 5vw, 64px);
  line-height: 1.05;
  letter-spacing: 0;
}

.blog-hero p {
  max-width: 660px;
  margin-top: 20px;
  color: #d1d5db;
  font-size: 18px;
}

.hero-panel {
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 8px;
  padding: 24px;
  background: rgba(255, 255, 255, .06);
}

.hero-panel strong {
  display: block;
  margin-bottom: 10px;
  font-size: 18px;
}

.hero-panel p {
  margin: 0 0 18px;
  font-size: 14px;
}

.blog-section {
  padding: 64px 0;
}

.toolbar {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin-bottom: 28px;
}

.toolbar h2 {
  font-size: 28px;
  line-height: 1.2;
}

.search-form {
  display: flex;
  gap: 10px;
  min-width: min(420px, 100%);
}

.input,
.textarea,
.select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: #111827;
  padding: 12px 14px;
  font-size: 14px;
}

.textarea {
  min-height: 280px;
  resize: vertical;
  line-height: 1.7;
}

.post-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.post-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  transition: transform .2s ease, box-shadow .2s ease;
}

.post-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 40px rgba(15, 23, 42, .08);
}

.post-cover {
  aspect-ratio: 16 / 9;
  background:
    linear-gradient(135deg, rgba(33, 232, 121, .22), rgba(15, 23, 42, .04)),
    #f3f4f6;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #111827;
  font-weight: 900;
}

.post-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.post-body {
  padding: 22px;
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin-bottom: 12px;
  color: var(--gray);
  font-size: 13px;
  font-weight: 700;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(33, 232, 121, .12);
  color: #08743a;
  font-size: 12px;
  font-weight: 900;
}

.post-body h3 {
  margin-bottom: 10px;
  font-size: 20px;
  line-height: 1.3;
}

.post-body p {
  color: var(--gray);
  font-size: 14px;
}

.read-more {
  display: inline-flex;
  margin-top: 18px;
  color: #079143;
  font-size: 14px;
  font-weight: 900;
}

.article {
  max-width: 820px;
  margin: 0 auto;
  padding: 58px 0 74px;
}

.article h1 {
  margin: 14px 0 18px;
  font-size: clamp(32px, 5vw, 54px);
  line-height: 1.1;
}

.article-cover {
  overflow: hidden;
  margin: 34px 0;
  border-radius: 8px;
  background: var(--soft);
}

.article-cover img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.article-content {
  font-size: 18px;
}

.article-content h2,
.article-content h3 {
  margin: 34px 0 12px;
  line-height: 1.25;
}

.article-content p,
.article-content ul {
  margin: 0 0 18px;
}

.article-content ul {
  padding-left: 24px;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 26px;
}

.admin-wrap {
  min-height: calc(100vh - 78px);
  background: var(--soft);
  padding: 44px 0;
}

.admin-card {
  max-width: 1040px;
  margin: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 26px;
}

.admin-card h1 {
  margin-bottom: 18px;
  font-size: 28px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.field {
  display: grid;
  gap: 7px;
}

.field label {
  color: #374151;
  font-size: 13px;
  font-weight: 900;
}

.field-full {
  grid-column: 1 / -1;
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.notice {
  margin-bottom: 18px;
  border-radius: 8px;
  padding: 12px 14px;
  background: rgba(33, 232, 121, .12);
  color: #08743a;
  font-weight: 800;
}

.danger {
  color: #b91c1c;
}

.post-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 22px;
  font-size: 14px;
}

.post-table th,
.post-table td {
  border-bottom: 1px solid var(--line);
  padding: 12px 8px;
  text-align: left;
  vertical-align: top;
}

.post-table th {
  color: #374151;
  font-size: 12px;
  text-transform: uppercase;
}

.site-footer {
  background: var(--black);
  color: #d1d5db;
  padding: 54px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
}

.footer-logo {
  width: 172px;
  margin-bottom: 16px;
}

.site-footer h4 {
  margin-bottom: 14px;
  color: #fff;
  font-size: 15px;
  font-weight: 900;
}

.site-footer p,
.site-footer a {
  display: block;
  margin-bottom: 9px;
  color: #d1d5db;
  font-size: 14px;
}

.site-footer a:hover {
  color: var(--green);
}

.copyright {
  margin-top: 34px;
  border-top: 1px solid rgba(255, 255, 255, .1);
  padding-top: 22px;
  color: #9ca3af;
  font-size: 13px;
}

@media (max-width: 900px) {
  .blog-hero-grid,
  .post-grid,
  .form-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .nav-menu {
    display: none;
  }
}

@media (max-width: 560px) {
  .nav-action .btn-outline {
    display: none;
  }

  .blog-hero {
    padding: 58px 0 48px;
  }

  .search-form {
    flex-direction: column;
  }
}
