:root {
  --ink: #21152f;
  --purple: #6424b8;
  --purple-dark: #4b178f;
  --orange: #f5742c;
  --muted: #6f6877;
  --line: #e6dfea;
  --surface: #ffffff;
  --soft-purple: #f7f1fc;
  --soft-orange: #fff4eb;
  --success: #26704f;
  --danger: #a83f2e;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 8% 10%, rgba(245, 116, 44, .1), transparent 31rem),
    radial-gradient(circle at 94% 44%, rgba(100, 36, 184, .11), transparent 35rem),
    #fcfafc;
  color: var(--ink);
  font-family: Manrope, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

.contact-nav,
main,
footer {
  width: min(1180px, calc(100% - 48px));
  margin-inline: auto;
}

header {
  position: sticky;
  z-index: 10;
  top: 0;
  min-height: 82px;
  border-bottom: 1px solid rgba(48, 25, 66, .09);
  background: rgba(255, 255, 255, .9);
  box-shadow: 0 8px 30px rgba(43, 20, 62, .035);
  backdrop-filter: blur(16px);
}

.contact-nav {
  min-height: 82px;
  display: flex;
  align-items: center;
  gap: 22px;
}

.contact-nav > a:first-child { margin-right: auto; }
.contact-nav img { display: block; width: 156px; height: auto; }

.contact-nav > a:last-child {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid #ded4e5;
  border-radius: 12px;
  background: #fff;
  color: #51485a;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  transition: border-color .18s ease, color .18s ease, transform .18s ease;
}

.contact-nav > a:last-child:hover {
  border-color: #b99bd2;
  color: var(--purple);
  transform: translateY(-1px);
}

.contact-nav .language-switcher label { margin: 0; }
.contact-nav .language-switcher select { min-height: 44px; font-size: 14px; }

main {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(520px, 1.08fr);
  gap: clamp(52px, 7vw, 92px);
  align-items: center;
  padding-block: clamp(62px, 8vw, 104px);
}

.contact-copy > span,
.form-head > span {
  color: var(--purple);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .16em;
}

.contact-copy h1 {
  max-width: 640px;
  margin: 18px 0 22px;
  font-size: clamp(42px, 5vw, 66px);
  line-height: 1.04;
  letter-spacing: -.052em;
}

.contact-copy > p {
  max-width: 620px;
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.72;
}

.contact-facts {
  display: grid;
  gap: 11px;
  margin-top: 34px;
}

.contact-facts article {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 22px;
  padding: 16px 18px;
  border: 1px solid rgba(108, 36, 178, .14);
  border-radius: 14px;
  background: rgba(255, 255, 255, .78);
  box-shadow: 0 8px 25px rgba(43, 20, 62, .035);
  font-size: 14px;
}

.contact-facts b { font-size: 15px; }
.contact-facts span { color: var(--muted); text-align: right; }

.contact-note {
  margin-top: 26px;
  padding: 20px 21px;
  border: 1px solid #f8d9c3;
  border-left: 4px solid var(--orange);
  border-radius: 0 14px 14px 0;
  background: var(--soft-orange);
}

.contact-note b { font-size: 15px; }
.contact-note p { margin: 8px 0 0; color: #6f5d52; font-size: 13px; line-height: 1.65; }

.form-card {
  padding: clamp(30px, 4vw, 46px);
  border: 1px solid var(--line);
  border-radius: 26px;
  background: var(--surface);
  box-shadow: 0 28px 75px rgba(43, 20, 62, .13);
}

.form-head h2 {
  margin: 10px 0 30px;
  font-size: clamp(30px, 3vw, 38px);
  line-height: 1.15;
  letter-spacing: -.04em;
}

.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

label {
  display: block;
  margin-bottom: 18px;
  color: #3a2e43;
  font-size: 14px;
  font-weight: 800;
}

label small { color: #8f8693; font-size: 12px; font-weight: 500; }

input,
select,
textarea {
  display: block;
  width: 100%;
  margin-top: 8px;
  border: 1px solid #d9cfdf;
  border-radius: 12px;
  background: #fff;
  padding: 14px 15px;
  color: var(--ink);
  font: inherit;
  font-size: 15px;
  line-height: 1.45;
  transition: border-color .18s ease, box-shadow .18s ease;
}

input,
select { min-height: 52px; }
textarea { min-height: 138px; resize: vertical; }

input:hover,
select:hover,
textarea:hover { border-color: #bbaec4; }

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: #8a4dc3;
  box-shadow: 0 0 0 4px rgba(100, 36, 184, .12);
}

.consent {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  margin: 3px 0 20px;
  color: #6e6574;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.6;
}

.consent input { flex: 0 0 auto; width: 18px; height: 18px; min-height: 0; margin: 1px 0 0; accent-color: var(--purple); }
.consent a { color: var(--purple); font-weight: 700; }
.website-field { position: absolute; left: -10000px; }

.form-card button {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 56px;
  border: 0;
  border-radius: 13px;
  background: linear-gradient(135deg, var(--purple-dark), #8432c8);
  box-shadow: 0 13px 27px rgba(100, 36, 184, .24);
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-size: 15px;
  font-weight: 800;
  transition: transform .18s ease, box-shadow .18s ease, opacity .18s ease;
}

.form-card button:hover { transform: translateY(-2px); box-shadow: 0 16px 31px rgba(100, 36, 184, .3); }
.form-card button:focus-visible { outline: 3px solid rgba(100, 36, 184, .24); outline-offset: 3px; }
.form-card button:disabled { cursor: wait; opacity: .62; transform: none; }

.form-status {
  display: none;
  margin-top: 15px;
  padding: 13px 15px;
  border-radius: 10px;
  background: var(--soft-purple);
  color: #5b2789;
  font-size: 13px;
  line-height: 1.5;
  text-align: center;
}

.form-status.visible { display: block; }
.form-status.success { background: #e8f7ef; color: var(--success); }
.form-status.error { background: #fff0ed; color: var(--danger); }
.direct-mail { margin: 20px 0 0; color: #857b8a; font-size: 12px; text-align: center; }
.direct-mail a { color: var(--purple); font-weight: 800; }

footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding-block: 28px 36px;
  border-top: 1px solid rgba(48, 25, 66, .1);
  color: #766d7b;
  font-size: 13px;
}

footer nav { display: flex; flex-wrap: wrap; gap: 20px; }
footer a { text-decoration: none; }
footer a:hover { color: var(--purple); text-decoration: underline; text-underline-offset: 4px; }
footer .language-switcher label { margin: 0; }
footer .language-switcher select { min-height: 42px; border-color: rgba(48, 25, 66, .18); background: #fff; font-size: 13px; }

@media (max-width: 980px) {
  main { grid-template-columns: 1fr; gap: 48px; max-width: 760px; }
  .contact-copy { text-align: center; }
  .contact-copy h1, .contact-copy > p { margin-inline: auto; }
  .contact-facts, .contact-note { text-align: left; }
}

@media (max-width: 640px) {
  .contact-nav, main, footer { width: min(100% - 30px, 1180px); }
  header, .contact-nav { min-height: 72px; }
  .contact-nav { gap: 10px; }
  .contact-nav img { width: 124px; }
  .contact-nav .language-switcher__flag { display: none; }
  .contact-nav .language-switcher select { width: 76px; padding-inline: 8px; }
  .contact-nav > a:last-child { min-height: 42px; padding-inline: 11px; font-size: 0; }
  .contact-nav > a:last-child::after { content: "←"; font-size: 20px; }
  main { padding-block: 44px 60px; }
  .contact-copy h1 { font-size: clamp(38px, 12vw, 50px); }
  .contact-copy > p { font-size: 16px; }
  .contact-facts article { align-items: flex-start; flex-direction: column; gap: 5px; }
  .contact-facts span { text-align: left; }
  .form-card { padding: 25px 20px; border-radius: 20px; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  footer { align-items: flex-start; flex-direction: column; }
  footer .language-switcher { order: -1; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
