:root {
  color-scheme: light;
  --wine: #330c1c;
  --wine-soft: #4f0f28;
  --accent: #80113c;
  --gold: #ffbf00;
  --gold-soft: #ffebb2;
  --ink: #18181c;
  --muted: #777788;
  --line: #e4e4e8;
  --surface: #fff;
  --paper: #f1f1f3;
  --shadow: 0 12px 32px rgba(32, 6, 16, .1);
}

* { box-sizing: border-box; }

body {
  min-width: 320px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Arial, Helvetica, sans-serif;
}

a { color: inherit; }
button, input, textarea { font: inherit; }
.hidden { display: none !important; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  color: #fff;
  background: rgba(51, 12, 28, .97);
  border-bottom: 1px solid #6e2b46;
  backdrop-filter: blur(14px);
}

.topbar__inner,
.hero__inner,
.footer-inner {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.topbar__inner {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand img { width: 43px; height: 43px; object-fit: contain; }
.brand__text { line-height: 1.05; }
.brand__name {
  display: block;
  font-size: 19px;
  font-weight: 900;
  text-transform: uppercase;
}
.brand__label { color: #dfcbd3; font-size: 11px; font-weight: 600; }

.contact-link {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, .22);
  color: #fff;
  text-decoration: none;
  transition: background .2s, color .2s;
}

.contact-link:hover,
.contact-link:focus-visible { color: var(--wine); background: var(--gold); }

.hero { overflow: hidden; color: #fff; background: var(--wine-soft); }
.hero__inner {
  position: relative;
  min-height: 270px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 250px;
  align-items: center;
  gap: 36px;
  padding: 42px 0;
}

.hero__inner::before {
  content: "Х";
  position: absolute;
  top: -116px;
  right: 210px;
  color: rgba(255, 189, 22, .06);
  font-size: 480px;
  font-weight: 900;
  line-height: 1;
  pointer-events: none;
}

.hero__copy { position: relative; z-index: 1; }
.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.eyebrow::before { content: ""; width: 34px; height: 3px; background: var(--gold); }
.hero h1 {
  max-width: 720px;
  margin: 0;
  font-size: clamp(38px, 6vw, 68px);
  font-weight: 900;
  line-height: .98;
  text-transform: uppercase;
}

.hero__copy p { max-width: 590px; margin: 20px 0 0; color: #e8dce1; font-size: 16px; line-height: 1.6; }
.hero__crest {
  position: relative;
  z-index: 1;
  justify-self: end;
  width: 220px;
  aspect-ratio: 1;
  padding: 18px;
  border: 1px solid rgba(255, 189, 22, .35);
  background: rgba(255, 255, 255, .035);
}

.hero__crest img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 18px 22px rgba(0, 0, 0, .24)); }

.page-main {
  width: min(860px, calc(100% - 40px));
  flex: 1;
  margin: 0 auto;
  padding: 42px 0 54px;
}

.form-card,
.message-card {
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.form-card { padding: clamp(22px, 5vw, 38px); }
.form-title,
.message-title {
  margin: 0;
  color: var(--ink);
  font-size: clamp(23px, 4vw, 30px);
  font-weight: 900;
  line-height: 1.2;
}

.form-title { padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.form-description {
  margin-top: 20px;
  padding: 14px 16px;
  border: 1px solid #f1dfaa;
  border-left: 4px solid var(--gold);
  color: #4b3b14;
  background: #fff9e8;
  font-size: 14px;
  line-height: 1.6;
}

.form-fields { margin-top: 26px; }
.field { display: flex; flex-direction: column; margin-bottom: 21px; }
.field-label { color: var(--ink); font-size: 14px; font-weight: 700; }
.required-mark { margin-left: 4px; color: var(--accent); }
.field-control {
  width: 100%;
  min-height: 44px;
  margin-top: 8px;
  padding: 10px 12px;
  border: 1px solid #c9c9d0;
  border-radius: 2px;
  outline: none;
  color: var(--ink);
  background: #fff;
  font-size: 15px;
  transition: border-color .2s, box-shadow .2s;
}

textarea.field-control { min-height: 110px; resize: vertical; }
.field-control:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(128, 17, 60, .12); }
.field-control--invalid { border-color: #b42318; }
.field-hint,
.field-error { margin: 7px 0 0; font-size: 12px; line-height: 1.45; }
.field-hint { color: var(--muted); }
.field-error { color: #b42318; }

.form-error {
  margin-bottom: 18px;
  padding: 12px 14px;
  border: 1px solid #f1b8b5;
  color: #9f1d17;
  background: #fff3f2;
  font-size: 14px;
}

.submit-button {
  width: 100%;
  min-height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 18px;
  border: 1px solid var(--accent);
  color: #fff;
  background: var(--accent);
  font-weight: 800;
  cursor: pointer;
  transition: background .2s, border-color .2s, opacity .2s;
}

.submit-button:hover:not(:disabled),
.submit-button:focus-visible { border-color: var(--wine); background: var(--wine); }
.submit-button:disabled { cursor: wait; opacity: .65; }
.submit-button i { font-size: 19px; }
.is-spinning { animation: spin .8s linear infinite; }

.message-card { padding: clamp(30px, 7vw, 52px); text-align: center; }
.message-icon { margin-bottom: 16px; color: var(--accent); font-size: 42px; line-height: 1; }
.message-icon--error { color: var(--accent); }
.message-icon--success { color: #26734d; }
.message-copy { margin: 12px 0 0; color: var(--muted); font-size: 15px; line-height: 1.6; }

.site-footer { padding: 0 0 30px; color: var(--muted); font-size: 11px; }
.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.footer-inner a { color: var(--accent); font-weight: 700; text-decoration: none; }
.footer-inner a:hover,
.footer-inner a:focus-visible { text-decoration: underline; }

@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 700px) {
  .topbar__inner,
  .hero__inner,
  .footer-inner { width: min(100% - 28px, 1180px); }
  .topbar__inner { min-height: 62px; }
  .brand__name { font-size: 17px; }
  .brand__label { display: none; }
  .contact-link { width: 40px; padding: 0; }
  .contact-link span { display: none; }
  .hero__inner { min-height: 270px; display: block; padding: 46px 0 56px; }
  .hero__inner::before { top: -18px; right: -40px; font-size: 330px; }
  .hero__copy { position: relative; z-index: 2; padding-right: 30px; }
  .hero__copy p { max-width: 430px; font-size: 14px; }
  .hero__crest { position: absolute; top: 34px; right: 0; width: 115px; padding: 9px; opacity: .35; }
  .page-main { width: min(100% - 28px, 860px); padding-top: 26px; }
  .footer-inner { flex-direction: column; gap: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
