:root {
  --paper: #f7f3ec;
  --paper-strong: #eee5d7;
  --surface: #fffdfa;
  --surface-soft: #f1eadf;
  --text: #303b3e;
  --text-soft: #647075;
  --slate: #405157;
  --slate-deep: #344348;
  --gold: #a87d32;
  --gold-dark: #7b591f;
  --gold-soft: #d8c39a;
  --line: #ddd3c4;
  --success: #3f6d59;
  --success-bg: #edf6f1;
  --error: #93433c;
  --error-bg: #fbefed;
  --white: #ffffff;
  --shadow-sm: 0 12px 32px rgba(52, 67, 72, .07);
  --shadow-md: 0 28px 64px rgba(52, 67, 72, .14);
  --radius-sm: 14px;
  --radius-md: 22px;
  --container: 1160px;
  --header-height: 92px;
  --font-display: "Source Serif 4", Georgia, "Times New Roman", serif;
  --font-body: "Manrope", "Segoe UI", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  overflow-x: hidden;
  color: var(--text);
  background: var(--paper);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img,
svg {
  display: block;
  max-width: 100%;
}

button,
input,
textarea {
  font: inherit;
}

button,
a,
input,
textarea {
  -webkit-tap-highlight-color: transparent;
}

h1,
h2,
p,
ul {
  margin-top: 0;
}

h1,
h2,
p,
small,
strong,
span,
label,
a,
button,
li {
  -webkit-hyphens: none;
  hyphens: none;
  word-break: normal;
  overflow-wrap: break-word;
}

.container {
  width: min(calc(100% - 40px), var(--container));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 9999;
  padding: 10px 16px;
  border-radius: 8px;
  background: var(--slate-deep);
  color: var(--white);
  text-decoration: none;
  translate: 0 -180%;
  transition: translate .2s ease;
}

.skip-link:focus {
  translate: 0 0;
}

.page-header {
  position: relative;
  z-index: 20;
  min-height: var(--header-height);
  border-bottom: 1px solid rgba(168, 125, 50, .18);
  background: rgba(247, 243, 236, .98);
}

.header-inner {
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding-block: 12px;
}

.brand {
  width: 304px;
  flex: 0 0 auto;
  cursor: default;
}

.brand img {
  width: 100%;
  height: auto;
}

.back-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 11px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--slate-deep);
  background: rgba(255, 253, 250, .72);
  font-size: .82rem;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  transition: border-color .2s ease, background-color .2s ease, color .2s ease;
}

.back-link svg {
  width: 19px;
  height: 19px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.back-link:hover,
.back-link:focus-visible {
  border-color: var(--gold-soft);
  background: var(--surface);
  color: var(--gold-dark);
}

.partner-main {
  position: relative;
  min-height: calc(100vh - var(--header-height) - 86px);
  min-height: calc(100dvh - var(--header-height) - 86px);
  display: grid;
  align-items: center;
  overflow: hidden;
  padding: clamp(58px, 7vw, 94px) 0;
  background:
    radial-gradient(circle at 12% 20%, rgba(216, 195, 154, .2), transparent 28%),
    radial-gradient(circle at 88% 78%, rgba(64, 81, 87, .1), transparent 30%),
    linear-gradient(135deg, var(--paper) 0%, var(--surface-soft) 100%);
}

.page-decoration {
  position: absolute;
  width: 320px;
  height: 320px;
  border: 1px solid rgba(168, 125, 50, .18);
  border-radius: 50%;
  pointer-events: none;
}

.page-decoration::after {
  content: "";
  position: absolute;
  inset: 26px;
  border: 1px solid rgba(168, 125, 50, .1);
  border-radius: inherit;
}

.page-decoration--left {
  top: -200px;
  left: -180px;
}

.page-decoration--right {
  right: -170px;
  bottom: -220px;
}

.partner-layout {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(480px, 1.1fr);
  align-items: center;
  gap: clamp(46px, 7vw, 86px);
}

.partner-intro {
  min-width: 0;
  max-width: 560px;
  text-align: center;
}

.eyebrow {
  margin-bottom: 15px;
  color: var(--slate);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .17em;
  line-height: 1.45;
  text-align: center;
  text-transform: uppercase;
}

.eyebrow--gold {
  color: var(--gold-dark);
}

.partner-intro h1 {
  margin-bottom: 20px;
  color: var(--slate-deep);
  font-family: var(--font-display);
  font-size: clamp(2.45rem, 4.6vw, 4.35rem);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -.025em;
  text-align: center;
}

.intro-text {
  max-width: 540px;
  margin: 0 auto 34px;
  color: var(--text-soft);
  font-size: clamp(1rem, 1.35vw, 1.1rem);
  line-height: 1.75;
  text-align: center;
}

.partner-points {
  display: grid;
  gap: 12px;
  max-width: 520px;
  margin-inline: auto;
}

.partner-points article {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  align-items: center;
  gap: 15px;
  min-width: 0;
  padding: 15px 17px;
  border: 1px solid rgba(168, 125, 50, .16);
  border-radius: var(--radius-sm);
  background: rgba(255, 253, 250, .64);
  box-shadow: var(--shadow-sm);
  text-align: left;
}

.point-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(168, 125, 50, .22);
  border-radius: 50%;
  background: rgba(247, 243, 236, .86);
  color: var(--gold-dark);
}

.point-icon svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.partner-points strong,
.partner-points small {
  display: block;
}

.partner-points strong {
  margin-bottom: 2px;
  color: var(--slate-deep);
  font-size: .94rem;
  line-height: 1.35;
}

.partner-points small {
  color: var(--text-soft);
  font-size: .82rem;
  line-height: 1.5;
}

.form-card {
  position: relative;
  min-width: 0;
  padding: clamp(30px, 4.2vw, 48px);
  border: 1px solid rgba(168, 125, 50, .2);
  border-radius: var(--radius-md);
  background: rgba(255, 253, 250, .96);
  box-shadow: var(--shadow-md);
}

.form-card::before {
  content: "";
  position: absolute;
  inset: 11px;
  border: 1px solid rgba(168, 125, 50, .09);
  border-radius: calc(var(--radius-md) - 7px);
  pointer-events: none;
}

.form-card__mark {
  position: absolute;
  top: 22px;
  right: 24px;
  width: 52px;
  height: 52px;
  opacity: .18;
  pointer-events: none;
}

.form-card__mark img {
  width: 100%;
  height: auto;
}

.form-heading {
  position: relative;
  z-index: 1;
  max-width: 620px;
  margin: 0 auto 28px;
  text-align: center;
}

.form-heading h2 {
  margin-bottom: 10px;
  color: var(--slate-deep);
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.4vw, 2.8rem);
  font-weight: 600;
  line-height: 1.1;
}

.form-heading p:last-child {
  margin-bottom: 0;
  color: var(--text-soft);
  font-size: .92rem;
  line-height: 1.6;
  text-align: center;
}

.partner-form {
  position: relative;
  z-index: 1;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.form-field {
  min-width: 0;
  margin-bottom: 18px;
}

.form-field label {
  display: block;
  margin-bottom: 8px;
  color: var(--slate-deep);
  font-size: .86rem;
  font-weight: 700;
  line-height: 1.4;
}

.form-field label span {
  color: var(--gold-dark);
}

.form-field input,
.form-field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  outline: none;
  background: var(--surface);
  color: var(--text);
  transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}

.form-field input {
  min-height: 50px;
  padding: 12px 14px;
}

.form-field textarea {
  min-height: 164px;
  padding: 14px;
  resize: vertical;
  line-height: 1.6;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: #8a9295;
  opacity: 1;
}

.form-field input:hover,
.form-field textarea:hover {
  border-color: #c8bda9;
}

.form-field input:focus,
.form-field textarea:focus {
  border-color: var(--gold);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(168, 125, 50, .11);
}

.label-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
}

.character-count {
  flex: 0 0 auto;
  margin-bottom: 8px;
  color: var(--text-soft);
  font-size: .74rem;
  font-weight: 600;
  line-height: 1.4;
}

.privacy-note {
  margin: 2px auto 22px;
  color: var(--text-soft);
  font-size: .78rem;
  line-height: 1.6;
  text-align: center;
}

.button {
  width: 100%;
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  font-size: .86rem;
  font-weight: 700;
  letter-spacing: .04em;
  line-height: 1.25;
  text-align: center;
  text-transform: uppercase;
  transition: transform .2s ease, background-color .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.button svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.button--primary {
  border-color: var(--slate-deep);
  background: var(--slate-deep);
  color: var(--white);
  box-shadow: 0 12px 26px rgba(52, 67, 72, .18);
}

.button--primary:hover,
.button--primary:focus-visible {
  transform: translateY(-1px);
  border-color: var(--gold-dark);
  background: var(--gold-dark);
  box-shadow: 0 14px 30px rgba(123, 89, 31, .2);
}

.button:disabled {
  cursor: wait;
  transform: none;
  opacity: .72;
}

.form-alert {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  align-items: start;
  gap: 11px;
  margin: 0 0 22px;
  padding: 13px 15px;
  border: 1px solid transparent;
  border-radius: 12px;
  font-size: .84rem;
  line-height: 1.55;
  text-align: left;
}

.form-alert svg {
  width: 22px;
  height: 22px;
  margin-top: 1px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.form-alert--success {
  border-color: rgba(63, 109, 89, .25);
  background: var(--success-bg);
  color: var(--success);
}

.form-alert--error {
  border-color: rgba(147, 67, 60, .23);
  background: var(--error-bg);
  color: var(--error);
}

.form-alert--list strong {
  display: block;
  margin-bottom: 5px;
}

.form-alert--list ul {
  margin-bottom: 0;
  padding-left: 18px;
}

.form-alert--list li + li {
  margin-top: 3px;
}

.honeypot {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
}

.page-footer {
  min-height: 86px;
  display: flex;
  align-items: center;
  border-top: 1px solid rgba(168, 125, 50, .16);
  background: var(--paper);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 22px;
}

.footer-inner p {
  margin: 0;
  color: var(--text-soft);
  font-size: .75rem;
  line-height: 1.5;
  text-align: center;
}

@media (max-width: 980px) {
  .partner-main {
    align-items: start;
  }

  .partner-layout {
    grid-template-columns: 1fr;
    gap: 46px;
  }

  .partner-intro {
    max-width: 720px;
    margin-inline: auto;
  }

  .partner-points {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    max-width: 860px;
  }

  .partner-points article {
    grid-template-columns: 1fr;
    align-content: start;
    justify-items: center;
    text-align: center;
  }
}

@media (max-width: 760px) {
  :root {
    --header-height: auto;
  }

  .container {
    width: min(calc(100% - 28px), var(--container));
  }

  .header-inner {
    min-height: 0;
    flex-direction: column;
    gap: 12px;
    padding-block: 14px 16px;
  }

  .brand {
    width: min(294px, 82vw);
  }

  .back-link {
    width: min(100%, 310px);
    border-radius: 12px;
  }

  .partner-main {
    min-height: 0;
    padding: 46px 0 54px;
  }

  .partner-intro h1 {
    font-size: clamp(2.15rem, 10vw, 3.2rem);
    line-height: 1.08;
  }

  .partner-points {
    grid-template-columns: 1fr;
  }

  .partner-points article {
    grid-template-columns: 46px minmax(0, 1fr);
    justify-items: stretch;
    text-align: left;
  }

  .form-card {
    padding: 30px 20px;
    border-radius: 18px;
  }

  .form-card::before {
    inset: 8px;
  }

  .form-card__mark {
    top: 18px;
    right: 18px;
    width: 42px;
    height: 42px;
  }

  .form-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .label-row {
    align-items: flex-start;
  }

  .page-footer {
    min-height: 0;
  }

  .footer-inner {
    flex-direction: column;
    gap: 6px;
    padding-block: 20px;
  }
}

@media (max-width: 420px) {
  .container {
    width: min(calc(100% - 22px), var(--container));
  }

  .partner-main {
    padding-top: 38px;
  }

  .partner-intro h1 {
    font-size: 2.2rem;
  }

  .intro-text {
    font-size: .96rem;
  }

  .partner-points article {
    padding: 14px;
  }

  .form-card {
    padding: 28px 16px;
  }

  .form-heading {
    padding-inline: 4px;
  }

  .form-heading h2 {
    font-size: 2rem;
  }

  .form-field input {
    min-height: 48px;
  }

  .label-row {
    display: block;
  }

  .character-count {
    display: block;
    margin-top: -2px;
    margin-bottom: 7px;
    text-align: right;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}
