@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Inter+Tight:wght@700&display=swap");

:root {
  --orange: #F47216;
  --ring: 0 0 0 3px rgba(244, 114, 22, 0.25);
  --btn: #111418;
  --btn-hover: #2A2F36;
  --bg: #FBFCFD;
  --bg-sunken: #F5F7FA;
  --surface: #FFFFFF;
  --border: #DDE3EC;
  --border-strong: #C2CBD8;
  --fg: #0F1A2E;
  --fg-muted: #4C5A72;
  --danger: #C53030;
  --danger-bg: #FDECEC;
  --shadow: 0 1px 2px rgba(0, 29, 56, 0.06), 0 2px 6px rgba(0, 29, 56, 0.05);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --font-display: "Inter Tight", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --pad: clamp(32px, 6vw, 88px);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
}

a { color: var(--fg); text-decoration: none; transition: text-decoration-color 120ms var(--ease); }
a:hover { text-decoration: underline; text-decoration-color: var(--orange); }
a:focus-visible { outline: none; box-shadow: var(--ring); border-radius: 3px; }

.page { min-height: 100vh; display: flex; flex-direction: column; }
.accent { height: 4px; background: var(--orange); }

.split {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
}

/* Left column */
.brand {
  padding: var(--pad);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 40px;
  max-width: 640px;
  width: 100%;
  justify-self: center;
}
.logo { width: min(320px, 100%); height: auto; display: block; }
.copy { display: flex; flex-direction: column; gap: 16px; }
.copy h1 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(28px, 3.2vw, 40px);
  line-height: 1.1;
  letter-spacing: -0.022em;
  text-wrap: pretty;
}
.copy p { margin: 0; font-size: 16px; line-height: 1.6; color: var(--fg-muted); text-wrap: pretty; }

/* Right column */
.panel {
  background: var(--bg-sunken);
  border-left: 1px solid var(--border);
  padding: var(--pad);
  display: flex;
  align-items: center;
  justify-content: center;
}
/* Columns stack below 840px: swap the side border for a top border */
@media (max-width: 839px) {
  .panel { border-left: none; border-top: 1px solid var(--border); }
}

.card {
  width: 100%;
  max-width: 380px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  box-shadow: var(--shadow);
}
.card-head { display: flex; flex-direction: column; gap: 6px; }
.card-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 24px;
  letter-spacing: -0.018em;
}
.card-head p { margin: 0; font-size: 14px; color: var(--fg-muted); }

.field { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 500; }
.field-row { display: flex; justify-content: space-between; }
.field-row a { font-weight: 400; color: var(--fg-muted); }

.field input {
  height: 44px;
  padding: 0 12px;
  border: 1px solid var(--border-strong);
  border-radius: 6px;
  background: var(--bg);
  color: var(--fg);
  font: inherit;
  font-size: 16px;
  font-weight: 400;
  transition: border-color 120ms var(--ease), box-shadow 120ms var(--ease);
}
.field input:focus { outline: none; border-color: var(--orange); box-shadow: var(--ring); }

.error {
  margin: 0;
  font-size: 14px;
  color: var(--danger);
  background: var(--danger-bg);
  border-radius: 6px;
  padding: 10px 12px;
}
.error[hidden] { display: none; }

.btn {
  height: 44px;
  border: none;
  border-radius: 6px;
  background: var(--btn);
  color: #FFFFFF;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background 120ms var(--ease), box-shadow 120ms var(--ease);
}
.btn:hover { background: var(--btn-hover); }
.btn:focus-visible { outline: none; box-shadow: var(--ring); }
.btn:disabled { cursor: progress; background: var(--btn-hover); }

.card-foot {
  border-top: 1px solid var(--border);
  padding-top: 16px;
  font-size: 14px;
  color: var(--fg-muted);
  text-align: center;
}
.card-foot a { font-weight: 600; }

/* Contact page */
.contact-list { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 10px 16px; font-size: 16px; }
.contact-list dt { color: var(--fg-muted); font-size: 14px; font-weight: 500; padding-top: 2px; }
.contact-list dd { margin: 0; line-height: 1.5; }
