:root {
  --bg0: #faf8f4;
  --bg1: #f0ebe3;
  --ink: #121212;
  --muted: #5c574f;
  --gold: #c99a32;
  --gold-dark: #8d641b;
  --line: rgba(201, 154, 50, 0.32);
  --card: rgba(255, 255, 255, 0.94);
  --danger: #b42318;
  --ok: #157a3e;
  --font: "Manrope", "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100dvh;
  font-family: var(--font);
  color: var(--ink);
  background:
    radial-gradient(ellipse 70% 45% at 50% -8%, rgba(201, 154, 50, 0.22), transparent 55%),
    radial-gradient(ellipse 50% 35% at 100% 20%, rgba(0, 0, 0, 0.04), transparent 50%),
    linear-gradient(180deg, #ffffff 0%, var(--bg0) 40%, var(--bg1) 100%);
}

.page {
  max-width: 720px;
  margin: 0 auto;
  padding: 28px 16px 52px;
}

.brand-hero {
  text-align: center;
  margin-bottom: 22px;
}

.logo-wrap {
  width: 112px;
  height: 112px;
  margin: 0 auto 14px;
  border-radius: 22px;
  background: #0b0b0b;
  border: 1px solid rgba(201, 154, 50, 0.45);
  overflow: hidden;
  display: grid;
  place-items: center;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.12);
}

.logo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.brand-hero h1 {
  margin: 0;
  font-size: clamp(1.85rem, 6vw, 2.55rem);
  letter-spacing: 0.12em;
  font-weight: 800;
  color: var(--gold-dark);
}

.lede {
  margin: 10px auto 0;
  max-width: 42ch;
  color: var(--muted);
  line-height: 1.55;
  font-size: 0.95rem;
}

.form {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 20px;
  box-shadow: 0 18px 40px rgba(18, 18, 18, 0.06);
  backdrop-filter: blur(10px);
}

.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.84rem;
  font-weight: 600;
}

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

.field span {
  color: var(--ink);
}

.field small {
  font-weight: 500;
  color: var(--muted);
  font-size: 0.74rem;
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 11px 12px;
  font: inherit;
  font-weight: 500;
  color: var(--ink);
  background: #fff;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

input:focus,
textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201, 154, 50, 0.18);
}

input[type="file"] {
  padding: 10px;
  background: #fcfbf8;
}

.tc-block {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.tc-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.45;
  color: var(--ink);
  cursor: pointer;
}

.tc-check input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  flex-shrink: 0;
  accent-color: var(--gold-dark);
}

.tc-link {
  display: inline;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: var(--gold-dark);
  font: inherit;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}

.tc-panel {
  margin-top: 12px;
  max-height: min(52vh, 420px);
  overflow: auto;
  padding: 14px 14px 10px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #fcfbf8;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 500;
  line-height: 1.55;
}

.tc-panel h2 {
  margin: 0 0 10px;
  font-size: 1rem;
  color: var(--gold-dark);
  font-weight: 800;
}

.tc-panel p {
  margin: 0 0 10px;
}

.tc-panel ol {
  margin: 0 0 10px;
  padding-left: 1.2rem;
}

.tc-panel li {
  margin-bottom: 10px;
}

.tc-panel strong {
  color: var(--ink);
  font-weight: 700;
}

button[type="submit"] {
  margin-top: 18px;
  width: 100%;
  min-height: 48px;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(135deg, #e0b35a 0%, #c99a32 45%, #8d641b 100%);
  color: #fff;
  font: inherit;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
  box-shadow: 0 12px 24px rgba(141, 100, 27, 0.22);
}

button[type="submit"]:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  box-shadow: none;
}

.msg {
  margin: 12px 0 0;
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.45;
}

.msg.ok {
  color: var(--ok);
}

.msg.err {
  color: var(--danger);
}

.foot {
  margin-top: 22px;
  text-align: center;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
}

@media (max-width: 560px) {
  .grid {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 900px) {
  .page {
    padding-top: 40px;
  }

  .logo-wrap {
    width: 128px;
    height: 128px;
  }

  .form {
    padding: 26px;
  }
}
