:root {
  --green-900: #0d3b2d;
  --green-800: #0f4e3a;
  --green-700: #17634a;
  --green-100: #eaf3ef;
  --gold-700: #c79624;
  --gold-600: #d7ab43;
  --gold-200: #f4e7bf;
  --gold-100: #fbf4df;
  --ink: #163328;
  --muted: #60756c;
  --line: #d8cfb1;
  --panel: rgba(255,255,255,.96);
  --shadow: 0 18px 45px rgba(7, 35, 26, .16);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  color: var(--ink);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(215,171,67,.22), transparent 26%),
    linear-gradient(180deg, #f8f4e8 0%, #f3eddc 100%);
}
button, input, select, textarea { font: inherit; }
.page-shell {
  width: min(100%, 1100px);
  margin: 0 auto;
  padding: 16px 14px 32px;
}
.hero {
  background: linear-gradient(135deg, var(--green-800) 0%, var(--green-900) 100%);
  color: #fff;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  overflow: hidden;
  position: relative;
}
.hero::after {
  content: "";
  position: absolute;
  right: -90px;
  top: -90px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(215,171,67,.28) 0%, rgba(215,171,67,0) 70%);
}
.hero__topbar {
  padding: 14px 16px 0;
}
.brand-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.16);
  font-size: 12px;
  letter-spacing: .02em;
}
.hero__content {
  display: grid;
  grid-template-columns: minmax(150px, 210px) 1fr;
  gap: 20px;
  align-items: center;
  padding: 18px 16px 22px;
}
.hero__logo-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 132px;
  padding: 14px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 22px;
}
.hero__logo {
  width: 100%;
  max-width: 100%;
  max-height: 108px;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 6px 14px rgba(0,0,0,.18));
}
.eyebrow {
  margin: 0 0 8px;
  color: var(--gold-200);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .14em;
  font-weight: 700;
}
.hero h1 {
  margin: 0;
  font-size: clamp(28px, 5vw, 42px);
  line-height: 1.03;
}
.hero__subtitle {
  margin: 10px 0 0;
  max-width: 60ch;
  color: rgba(255,255,255,.88);
  font-size: 15px;
  line-height: 1.5;
}
.hero__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}
.badge {
  border-radius: 999px;
  padding: 8px 12px;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.15);
  font-size: 12px;
  color: var(--gold-100);
}
.main-card {
  margin-top: 14px;
  background: var(--panel);
  border: 1px solid rgba(216,207,177,.9);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  padding: 16px;
  backdrop-filter: blur(10px);
}
.notice {
  margin-bottom: 16px;
  padding: 12px 14px;
  border-radius: 16px;
  background: linear-gradient(180deg, var(--gold-100), #fffaf0);
  border: 1px solid var(--line);
  color: #614a16;
  font-size: 14px;
  line-height: 1.45;
}
.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.field { display: flex; flex-direction: column; gap: 7px; }
.field--full { grid-column: 1 / -1; }
.field__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
label {
  font-size: 14px;
  font-weight: 700;
}
input, select, textarea {
  width: 100%;
  min-height: 52px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  padding: 14px 15px;
  transition: .2s ease;
}
textarea { min-height: 110px; resize: vertical; }
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--gold-700);
  box-shadow: 0 0 0 4px rgba(199,150,36,.15);
}
.helper {
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
}
.text-button {
  border: 0;
  background: transparent;
  color: var(--green-700);
  font-weight: 700;
  padding: 6px 0;
}
.slots {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.slot {
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  color: var(--green-900);
  font-weight: 700;
  padding: 12px 10px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  transition: .18s ease;
}
.slot:active { transform: scale(.98); }
.slot--selected {
  background: linear-gradient(135deg, var(--green-800), var(--green-700));
  color: #fff;
  border-color: transparent;
  box-shadow: 0 10px 24px rgba(15,78,58,.22);
}
.slot--disabled {
  opacity: .6;
  pointer-events: none;
}
.empty-slots {
  padding: 16px;
  border: 1px dashed var(--line);
  border-radius: 16px;
  color: var(--muted);
  background: #fffdf7;
  font-size: 14px;
}
.summary-card {
  margin-top: 16px;
  padding: 16px;
  background: linear-gradient(180deg, #f8fbf9 0%, #f1f6f3 100%);
  border: 1px solid #d7e5df;
  border-radius: 20px;
}
.summary-card h2 {
  margin: 0 0 12px;
  font-size: 18px;
}
.summary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.summary-grid div {
  background: #fff;
  border: 1px solid #dde8e3;
  border-radius: 16px;
  padding: 12px;
}
.summary-grid span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 4px;
}
.summary-grid strong {
  display: block;
  font-size: 15px;
  line-height: 1.35;
}
.message {
  display: none;
  margin-top: 16px;
  padding: 14px 15px;
  border-radius: 16px;
  font-size: 14px;
  line-height: 1.45;
}
.message--ok {
  display: block;
  background: #edf8ef;
  color: #155d2c;
  border: 1px solid #cbe9d3;
}
.message--error {
  display: block;
  background: #fff1f1;
  color: #922d2d;
  border: 1px solid #f0caca;
}
.submit-row {
  position: sticky;
  bottom: 0;
  margin-top: 16px;
  padding-top: 12px;
  background: linear-gradient(180deg, rgba(255,253,250,0), rgba(255,253,250,.82) 18%, rgba(255,253,250,1) 60%);
}
.primary-button {
  width: 100%;
  min-height: 56px;
  border: 0;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--green-800), var(--green-700));
  color: #fff;
  font-weight: 800;
  letter-spacing: .01em;
  box-shadow: 0 14px 30px rgba(15,78,58,.25);
}
.primary-button:disabled {
  opacity: .7;
  cursor: not-allowed;
}

.site-footer {
  margin-top: 18px;
  padding: 18px 20px 30px;
  text-align: center;
  color: var(--green-900);
  font-size: 14px;
  line-height: 1.55;
}
.site-footer p {
  margin: 0;
}
.site-footer p + p {
  margin-top: 6px;
}
.site-footer a {
  color: var(--green-800);
  font-weight: 700;
  text-decoration: none;
}
.site-footer a:hover {
  text-decoration: underline;
}

@media (max-width: 780px) {
  .page-shell { padding: 12px 12px 28px; }
  .hero__content { grid-template-columns: minmax(120px, 180px) 1fr; gap: 14px; }
  .hero__logo-wrap { min-height: 112px; padding: 12px; }
  .hero__logo { max-height: 92px; }
  .grid, .summary-grid { grid-template-columns: 1fr; }
  .slots { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 420px) {
  .hero__content { grid-template-columns: 1fr; }
  .hero__logo-wrap { width: 100%; max-width: 220px; min-height: 96px; margin: 0 auto; }
  .hero__logo { max-height: 76px; }
  .hero__text { text-align: center; }
  .hero__badges { justify-content: center; }
  .slots { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  input, select, textarea { min-height: 50px; }
  .site-footer { padding: 18px 12px 26px; font-size: 13px; }
}
