:root {
  color-scheme: light;
  --background: #fefefe;
  --card: #ffffff;
  --border: #cbcbcb;
  --text: #2f2417;
  --muted: #6d5b46;
  --accent: #f90;
  --accent-dark: #bf7200;
  --error: #9c2f1c;
  --shadow: rgba(47, 36, 23, 0.12);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(181, 181, 181, 0.16), transparent 28%),
    linear-gradient(180deg, #f3f3f3 0%, var(--background) 100%);
}

.page {
  width: min(100%, 760px);
  margin: 0 auto;
  padding: 2rem 1rem 3rem;
}

.logo {
    margin-bottom: 1rem;
}

.logo img {
    width: 100%;
}

.language-switcher {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.language-switcher a,
.back-link {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}

.language-switcher a.active {
  text-decoration: underline;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 20px 45px var(--shadow);
}

h1 {
  margin-top: 0;
  font-size: clamp(2rem, 4vw, 2.8rem);
  line-height: 1.1;
}

.subtitle,
.required-hint {
  color: var(--muted);
}

form {
  display: grid;
  gap: 0.75rem;
}

label {
  margin-top: 0.5rem;
  font-weight: 600;
}

input,
select,
textarea,
button {
  font: inherit;
}

input,
select,
textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
}

textarea {
  resize: vertical;
}

.checkbox {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

.checkbox input {
  width: auto;
  margin-top: 0.3rem;
}

button {
  margin-top: 1rem;
  border: 0;
  border-radius: 999px;
  padding: 0.9rem 1.4rem;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

button:hover {
  background: var(--accent-dark);
}

.field-error,
.alert-error {
  margin: 0;
  color: var(--error);
}

.alert {
  padding: 0.9rem 1rem;
  border-radius: 12px;
  background: rgba(156, 47, 28, 0.08);
}

@media (max-width: 640px) {
  .card {
    padding: 1.25rem;
  }
}
