:root {
  --green: #718a74;
  --green-dark: #415846;
  --paper: #f3f0df;
  --ink: #202622;
  --muted: #5f665e;
  --orange: #bd6d35;
  --line: rgba(32, 38, 34, .45);
  --shadow: rgba(30, 35, 30, .22);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Trebuchet MS", Verdana, system-ui, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 20% 10%, rgba(255,255,255,.45), transparent 28%),
    linear-gradient(135deg, #d9d8c6, #aeb8a5 48%, #d7d2bd);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .18;
  background-image:
    repeating-linear-gradient(0deg, rgba(0,0,0,.08) 0 1px, transparent 1px 4px),
    repeating-linear-gradient(90deg, rgba(255,255,255,.1) 0 1px, transparent 1px 5px);
  mix-blend-mode: multiply;
}

.page {
  width: min(1060px, 92vw);
  margin: 0 auto;
  padding: 34px 0 70px;
}

.card-frame {
  position: relative;
  margin: 22px 0;
  padding: clamp(22px, 5vw, 46px);
  border-radius: 30px;
  background: var(--paper);
  border: 2px solid rgba(32, 38, 34, .5);
  box-shadow: 0 22px 50px var(--shadow);
}

.card-frame::after {
  content: "";
  position: absolute;
  inset: 15px;
  border: 2px dashed var(--line);
  border-radius: 22px;
  pointer-events: none;
}

.hero {
  background:
    linear-gradient(rgba(113,138,116,.88), rgba(113,138,116,.88)),
    var(--paper);
  color: #f8f4e7;
  min-height: 78vh;
  display: grid;
  align-content: center;
}

.topline {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-weight: 900;
  letter-spacing: .08em;
  font-size: .9rem;
  margin-bottom: 38px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 36px;
  align-items: center;
}

.kicker {
  margin: 0 0 10px;
  color: var(--orange);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .84rem;
}

.hero .kicker { color: #f4d1a6; }

h1 {
  margin: 0;
  max-width: 720px;
  font-size: clamp(2.6rem, 8vw, 6.3rem);
  line-height: .88;
  letter-spacing: -.06em;
  text-transform: uppercase;
}

h2 {
  margin: 0 0 12px;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: .94;
  text-transform: uppercase;
  letter-spacing: -.04em;
}

.intro, p {
  color: var(--muted);
  font-size: 1.07rem;
  line-height: 1.55;
}

.hero .intro {
  color: #f3eedc;
  max-width: 560px;
  font-size: 1.16rem;
}

.actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.btn, button {
  border: 0;
  border-radius: 999px;
  padding: 14px 20px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .04em;
  text-decoration: none;
  cursor: pointer;
  font: inherit;
}

.primary, button {
  background: var(--orange);
  color: #fff7e8;
}

.ghost {
  background: rgba(255,255,255,.15);
  border: 2px solid rgba(255,255,255,.45);
  color: #fff7e8;
}

.stamp {
  transform: rotate(-2deg);
  background: rgba(255,255,255,.2);
  padding: 12px;
  border-radius: 26px;
  border: 2px solid rgba(255,255,255,.4);
}

.stamp img {
  width: 100%;
  display: block;
  border-radius: 20px;
  filter: saturate(.85) contrast(1.05);
}

.mission-head {
  position: absolute;
  top: 0;
  left: 50%;
  translate: -50% -1px;
  min-width: 260px;
  padding: 18px 22px;
  text-align: center;
  color: #fff7e8;
  background: var(--orange);
  clip-path: polygon(0 0, 100% 0, 88% 100%, 12% 100%);
  z-index: 1;
  font-weight: 900;
}

.mission-head strong {
  display: block;
  margin-top: 4px;
  font-size: .78rem;
  background: var(--ink);
  width: fit-content;
  margin-inline: auto;
  padding: 3px 8px;
}

.mission {
  padding-top: 92px;
}

.upload-form {
  display: grid;
  gap: 16px;
  margin-top: 22px;
}

label {
  display: grid;
  gap: 8px;
  font-weight: 900;
  text-transform: uppercase;
  font-size: .86rem;
  letter-spacing: .05em;
}

input, select, textarea {
  width: 100%;
  border: 2px solid rgba(32,38,34,.35);
  border-radius: 16px;
  padding: 14px;
  background: rgba(255,255,255,.46);
  color: var(--ink);
  font: inherit;
}

textarea {
  min-height: 110px;
  resize: vertical;
}

input::file-selector-button {
  border: 0;
  border-radius: 12px;
  padding: 10px 12px;
  margin-right: 12px;
  background: var(--green-dark);
  color: white;
  font-weight: 900;
}

.section-title {
  text-align: center;
  margin-bottom: 22px;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.gallery article {
  min-height: 190px;
  border-radius: 20px;
  overflow: hidden;
  border: 2px solid rgba(32,38,34,.35);
  background: #e6e0c7;
  position: relative;
}

.gallery img {
  width: 100%;
  height: 100%;
  min-height: 190px;
  object-fit: cover;
  display: block;
  filter: saturate(.8);
}

.gallery span {
  position: absolute;
  left: 10px;
  bottom: 10px;
  background: rgba(243,240,223,.92);
  border-radius: 999px;
  padding: 7px 10px;
  font-weight: 900;
  font-size: .78rem;
}

.placeholder {
  display: grid;
  place-items: center;
  text-align: center;
  color: var(--green-dark);
  border-style: dashed !important;
}

.placeholder b {
  font-size: 2.4rem;
}

.qr {
  display: grid;
  grid-template-columns: 1fr 170px;
  align-items: center;
  gap: 24px;
}

.qr-box {
  width: 160px;
  height: 160px;
  display: grid;
  place-items: center;
  background:
    linear-gradient(90deg, var(--ink) 12px, transparent 12px) 0 0/32px 32px,
    linear-gradient(var(--ink) 12px, transparent 12px) 0 0/32px 32px,
    var(--paper);
  border: 8px solid #fff;
  outline: 2px solid var(--ink);
  color: transparent;
}

@media (max-width: 800px) {
  .hero-grid, .qr {
    grid-template-columns: 1fr;
  }

  .gallery {
    grid-template-columns: repeat(2, 1fr);
  }

  .topline {
    font-size: .75rem;
  }

  .stamp {
    max-width: 420px;
    margin-inline: auto;
  }
}
