:root {
  --green-900: #02366a;
  --green-800: #073f79;
  --green-700: #0b4f93;
  --green-500: #2f7fc1;
  --green-100: #eef4fb;
  --mint: #f7f1e6;
  --ink: #092844;
  --muted: #617083;
  --line: #e0d5c4;
  --white: #ffffff;
  --amber: #c59b5f;
  --sky: #f2e6d2;
  --shadow: 0 20px 50px rgba(2, 54, 106, .14);
  --radius: 18px;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: #e5e5e5;
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, textarea, select { font: inherit; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; }

.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, 48px);
  background: rgba(255, 255, 255, .94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}
.brand {
  display: inline-flex;
  align-items: center;
  font-weight: 800;
  text-decoration: none;
  color: var(--green-900);
}
.brand img {
  width: 180px;
  height: 48px;
  object-fit: contain;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}
.main-nav a {
  padding: 10px 12px;
  border-radius: 999px;
  color: var(--muted);
  font-weight: 700;
  text-decoration: none;
}
.main-nav a:hover, .main-nav a[aria-current="page"] {
  color: var(--green-800);
  background: var(--green-100);
}
.main-nav .nav-cta {
  color: var(--white);
  background: var(--green-700);
}
.main-nav .nav-cta:hover, .main-nav .nav-cta[aria-current="page"] {
  color: var(--white);
  background: var(--green-900);
}
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
}
.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: var(--green-900);
}

.hero, .page-hero, .prize-hero, .partner-profile {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(48px, 8vw, 92px) clamp(18px, 4vw, 32px);
}
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, .9fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
  min-height: calc(100vh - 74px);
}
.hero-content h1, .page-hero h1, .prize-hero h1, .partner-profile h1 {
  margin: 0;
  color: var(--green-900);
  font-size: clamp(48px, 8vw, 104px);
  line-height: .95;
  letter-spacing: 0;
}
.page-hero h1, .prize-hero h1, .partner-profile h1 { font-size: clamp(40px, 7vw, 76px); }
.hero-lead, .page-hero p, .prize-hero p, .partner-profile p {
  max-width: 680px;
  color: var(--muted);
  font-size: clamp(18px, 2.2vw, 24px);
}
.eyebrow {
  margin: 0 0 12px;
  color: var(--green-700);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.hero-actions, .button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  border: 0;
  border-radius: 999px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}
.btn.primary { color: var(--white); background: var(--green-700); box-shadow: 0 10px 22px rgba(2, 54, 106, .24); }
.btn.primary:hover { background: var(--green-900); }
.btn.secondary { color: var(--green-900); background: var(--green-100); }
.btn.secondary:hover { background: #dde9f5; }
.btn.large { min-height: 54px; padding-inline: 24px; }

.hero-stats, .stats-grid, .mini-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.hero-stats article, .stats-grid article, .mini-stats article {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}
.hero-stats strong, .stats-grid strong, .mini-stats strong {
  display: block;
  color: var(--green-800);
  font-size: clamp(28px, 5vw, 44px);
  line-height: 1;
}
.hero-stats span, .stats-grid span, .mini-stats span { color: var(--muted); font-weight: 700; }

.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(36px, 7vw, 72px) clamp(18px, 4vw, 32px);
}
.section h2, .supporter-highlight h2, .support-message h2 {
  margin: 0 0 14px;
  color: var(--green-900);
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.08;
}
.section-head { max-width: 780px; margin-bottom: 26px; }
.split {
  display: grid;
  grid-template-columns: .85fr 1fr;
  gap: clamp(24px, 5vw, 56px);
  align-items: start;
}
.split p:last-child { margin: 0; color: var(--muted); font-size: 19px; }
.steps, .feature-grid, .partner-layout, .ranking, .partner-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.steps article, .feature-grid article, .certificate, .qr-card, .progress-card, .partner-list article, .prize-card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}
.steps span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: var(--white);
  background: var(--green-700);
  font-weight: 900;
}
.steps h3, .feature-grid h2, .certificate h2, .qr-card h2 { margin: 16px 0 8px; color: var(--green-900); }
.steps p, .feature-grid p, .certificate p, .qr-card p { color: var(--muted); }

.supporter-highlight, .support-message {
  max-width: var(--max);
  margin: clamp(24px, 5vw, 48px) auto;
  padding: clamp(30px, 5vw, 54px);
  border-radius: 28px;
  color: var(--white);
  background: linear-gradient(135deg, var(--green-900), var(--green-700));
}
.supporter-highlight {
  display: grid;
  grid-template-columns: 1fr .9fr;
  gap: 28px;
}
.supporter-highlight .eyebrow, .supporter-highlight h2, .support-message h2 { color: var(--white); }
.supporter-highlight p, .support-message p { color: rgba(255,255,255,.86); }
.prize-box {
  padding: 24px;
  border-radius: 18px;
  background: rgba(255, 255, 255, .12);
}
.prize-box span, .prize-card span { display: block; opacity: .78; }
.prize-box strong, .prize-card strong { display: block; margin-top: 8px; font-size: 28px; line-height: 1.15; }

.ranking { grid-template-columns: repeat(3, 1fr); }
.progress-card > div:first-child {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--green-900);
  font-weight: 900;
}
.progress {
  height: 12px;
  margin-top: 18px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--green-100);
}
.progress span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--green-700), var(--amber));
  transition: width 900ms ease;
}
.progress-card.wide { max-width: 720px; margin-top: 24px; }

.widget-section {
  display: grid;
  grid-template-columns: .8fr 1fr;
  gap: 28px;
  align-items: start;
}
.news-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}
.news-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}
.news-image {
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--green-100);
}
.news-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 220ms ease;
}
.news-card:hover .news-image img {
  transform: scale(1.04);
}
.news-card-body {
  padding: 14px;
}
.news-card time {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}
.news-card h3 {
  margin: 0 0 8px;
  color: var(--green-900);
  font-size: 17px;
  line-height: 1.22;
}
.news-card h3 a {
  text-decoration: none;
}
.news-card h3 a:hover {
  text-decoration: underline;
}
.news-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}
.empty-news {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}
.empty-news h3 {
  margin: 0 0 8px;
  color: var(--green-900);
}
.empty-news p {
  margin: 0;
  color: var(--muted);
}
.article-view {
  max-width: 880px;
  margin: 0 auto;
  padding: clamp(36px, 7vw, 72px) clamp(18px, 4vw, 32px);
}
.article-view h1 {
  margin: 10px 0 12px;
  color: var(--green-900);
  font-size: clamp(36px, 6vw, 64px);
  line-height: 1.05;
}
.article-view time {
  display: block;
  margin-bottom: 20px;
  color: var(--muted);
  font-weight: 800;
}
.article-view > img {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.article-lead {
  color: var(--green-900);
  font-size: 22px;
  font-weight: 800;
}
.article-body {
  color: var(--ink);
  font-size: 18px;
}
.article-body img {
  height: auto;
  border-radius: 12px;
}
.nsz-widget {
  border: 2px solid var(--green-700);
  border-radius: 18px;
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--shadow);
}
.nsz-widget-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px;
  color: var(--white);
  background: var(--green-800);
}
.nsz-widget-body { padding: 20px; }
.nsz-widget-body strong { color: var(--green-900); font-size: 22px; }
.nsz-widget-body p { color: var(--muted); }
.nsz-widget small { display: block; margin-top: 12px; color: var(--muted); }

.page-main { min-height: 70vh; }
.page-hero.compact { padding-bottom: 24px; }
.form-shell {
  max-width: 980px;
  margin: 0 auto clamp(40px, 6vw, 72px);
  padding: 0 clamp(18px, 4vw, 32px);
}
.join-form {
  padding: clamp(22px, 4vw, 34px);
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--white);
  box-shadow: var(--shadow);
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
.field.full { grid-column: 1 / -1; }
label, legend { color: var(--green-900); font-weight: 800; }
input, textarea, select {
  width: 100%;
  margin-top: 7px;
  padding: 13px 14px;
  border: 1px solid #cdbfaa;
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
}
textarea { resize: vertical; }
.error {
  display: block;
  min-height: 20px;
  margin-top: 4px;
  color: #b3261e;
  font-size: 14px;
}
.check-group {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin: 20px 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
}
.check-group legend { padding: 0 8px; }
.check-group label, .consent { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.check-group input, .consent input { width: auto; margin: 0; }
.form-message { color: var(--green-800); font-weight: 800; }
.inline-form { display: grid; gap: 10px; }

.partner-profile {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 28px;
  align-items: center;
}
.logo-placeholder {
  display: grid;
  place-items: center;
  width: 150px;
  aspect-ratio: 1;
  border-radius: 28px;
  color: var(--white);
  background: var(--green-700);
  font-size: 42px;
  font-weight: 900;
}
.meta { font-weight: 900; color: var(--green-700) !important; }
.partner-layout { grid-template-columns: 1fr 1fr; }
.qr-placeholder {
  width: 180px;
  aspect-ratio: 1;
  margin: 12px 0;
  background:
    linear-gradient(90deg, var(--green-900) 10px, transparent 10px) 0 0 / 24px 24px,
    linear-gradient(var(--green-900) 10px, transparent 10px) 0 0 / 24px 24px,
    var(--mint);
  border: 12px solid var(--white);
  box-shadow: inset 0 0 0 2px var(--green-800);
}
.text-link { color: var(--green-800); font-weight: 900; }
.support-message { text-align: center; }

.mini-stats { margin-top: 28px; }
.partner-list { grid-template-columns: repeat(4, 1fr); }
.partner-list article { display: grid; gap: 5px; }
.partner-list span { color: var(--muted); }

.prize-hero {
  display: grid;
  grid-template-columns: 1fr .7fr;
  gap: 28px;
  align-items: center;
}
.prize-card {
  background: var(--sky);
  color: var(--green-900);
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 32px clamp(18px, 4vw, 48px);
  color: var(--white);
  background: var(--green-900);
}
.site-footer p { margin: 0; color: rgba(255,255,255,.78); }
.site-footer nav { display: flex; gap: 14px; flex-wrap: wrap; }
.site-footer a { color: var(--white); font-weight: 800; text-decoration: none; }

@media (max-width: 1024px) {
  .hero, .supporter-highlight, .split, .widget-section, .prize-hero { grid-template-columns: 1fr; }
  .steps, .feature-grid, .partner-list { grid-template-columns: repeat(2, 1fr); }
  .news-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 768px) {
  .nav-toggle { display: block; }
  .main-nav {
    position: absolute;
    top: 73px;
    left: 16px;
    right: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--white);
    box-shadow: var(--shadow);
  }
  .main-nav.is-open { display: flex; }
  .main-nav a { border-radius: 10px; }
  .hero { min-height: auto; }
  .hero-stats, .stats-grid, .mini-stats, .form-grid, .partner-layout, .ranking, .partner-profile { grid-template-columns: 1fr; }
  .news-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .logo-placeholder { width: 120px; }
  .site-footer { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
  .site-header { padding-inline: 14px; }
  .brand span { font-size: 15px; }
  .hero-actions, .button-row { flex-direction: column; }
  .btn { width: 100%; }
  .hero-stats article, .steps article, .feature-grid article, .join-form { padding: 18px; }
  .steps, .feature-grid, .check-group, .partner-list { grid-template-columns: 1fr; }
  .news-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .news-card-body { padding: 12px; }
  .news-card p { display: none; }
  .supporter-highlight, .support-message { border-radius: 0; }
}
