@font-face {
  font-family: "PF Square Sans Pro";
  src: url("/static/assets/fonts/PFSquareSansPro-Light.ttf") format("truetype");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "PF Square Sans Pro";
  src: url("/static/assets/fonts/PFSquareSansPro-LightItalic.ttf") format("truetype");
  font-weight: 300;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "PF Square Sans Pro";
  src: url("/static/assets/fonts/PFSquareSansPro-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "PF Square Sans Pro";
  src: url("/static/assets/fonts/PFSquareSansPro-MedItalic.ttf") format("truetype");
  font-weight: 500;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "PF Square Sans Pro";
  src: url("/static/assets/fonts/PFSquareSansPro-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "PF Square Sans Pro";
  src: url("/static/assets/fonts/PFSquareSansPro-BoldItalic.ttf") format("truetype");
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "PF Square Sans Pro";
  src: url("/static/assets/fonts/PFSquareSansPro-XBlackItal.ttf") format("truetype");
  font-weight: 900;
  font-style: italic;
  font-display: swap;
}

:root {
  --blue-soft: #d0e4ee;
  --beige: #e8c7af;
  --blue-deep: #294c59;
  --gray-deep: #32363b;
  --brown-soft: #877363;
  --white: #ffffff;
  --paper: #f8f6f2;
  --line: rgba(41, 76, 89, 0.16);
  --line-strong: rgba(135, 115, 99, 0.34);
  --required-red: #b3261e;
  --error-bg: #fff2ee;
  --error-text: #8f2f20;
  --success-bg: #edf6f9;
  --success-text: #294c59;
  --shadow: 0 20px 48px rgba(50, 54, 59, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 0;
}

body {
  margin: 0;
  min-width: 0;
  background:
    radial-gradient(circle at 9% 7%, transparent 0 34px, rgba(135, 115, 99, 0.08) 35px 36px, transparent 37px 55px, rgba(135, 115, 99, 0.06) 56px 57px, transparent 58px),
    linear-gradient(180deg, #fbfcfb 0%, #f5f8f8 48%, #f9f5f1 100%);
  color: var(--gray-deep);
  font-family: "PF Square Sans Pro", Arial, sans-serif;
  font-weight: 300;
  font-synthesis: none;
}

body::before {
  content: "";
  position: fixed;
  top: -80px;
  right: -120px;
  z-index: -1;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background:
    repeating-radial-gradient(circle, rgba(41, 76, 89, 0.08) 0 2px, transparent 3px 18px),
    radial-gradient(circle, rgba(208, 228, 238, 0.38), transparent 68%);
  pointer-events: none;
}

.page {
  min-height: 100vh;
  padding: 18px;
}

.page-inner {
  width: 100%;
  max-width: 1040px;
  margin: 0 auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 10px 0 26px;
}

.brand {
  display: inline-flex;
  align-items: center;
  padding: 8px 0;
}

.brand-logo {
  display: block;
  width: 140px;
  height: auto;
  object-fit: contain;
}

.event-label {
  margin: 0;
  color: var(--blue-deep);
  font-size: 15px;
  font-weight: 500;
}

.hero {
  max-width: 820px;
  padding: 8px 0 28px;
}

.brand-badge {
  display: inline-flex;
  margin: 0 0 16px;
  border-left: 3px solid var(--beige);
  padding: 6px 0 6px 14px;
  color: var(--brown-soft);
  font-size: 14px;
  font-weight: 500;
}

h1,
h2,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  max-width: 780px;
  color: var(--blue-deep);
  font-size: 38px;
  font-weight: 700;
  line-height: 1.08;
}

.intro {
  margin: 18px 0 0;
  max-width: 760px;
  color: rgba(50, 54, 59, 0.82);
  font-size: 19px;
  line-height: 1.48;
}

.lead-form {
  display: grid;
  gap: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow);
  padding: 22px;
}

.form-section {
  display: grid;
  gap: 16px;
  border-top: 1px solid var(--line);
  padding-top: 20px;
}

.form-section:first-child {
  border-top: 0;
  padding-top: 0;
}

.section-heading {
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.section-number {
  color: var(--brown-soft);
  font-size: 13px;
  font-weight: 700;
}

h2 {
  margin: 0;
  color: var(--blue-deep);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.2;
}

.grid {
  display: grid;
  gap: 14px;
}

.field,
.consent {
  display: grid;
  gap: 8px;
}

.choice-field {
  align-content: start;
  border: 0;
  grid-template-columns: repeat(2, minmax(0, max-content));
  column-gap: 22px;
  row-gap: 8px;
  margin: 0;
  padding: 0;
}

.choice-field legend {
  grid-column: 1 / -1;
}

.field span,
.field-group-label,
.choice-field legend {
  color: var(--gray-deep);
  font-size: 15px;
  font-weight: 500;
}

.field strong,
.field-group-label strong,
.consent strong {
  color: var(--required-red);
}

.field-group-label {
  margin: 0;
}

input,
textarea,
button {
  font: inherit;
}

input:not([type="radio"]):not([type="checkbox"]),
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  color: var(--gray-deep);
  font-size: 17px;
  font-weight: 300;
  line-height: 1.3;
  padding: 15px 16px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

input:not([type="radio"]):not([type="checkbox"])::placeholder,
textarea::placeholder {
  color: rgba(50, 54, 59, 0.42);
  opacity: 1;
}

input:not([type="radio"]):not([type="checkbox"]):focus,
textarea:focus {
  outline: none;
  border-color: var(--blue-deep);
  background: #fbfdfe;
  box-shadow: 0 0 0 3px rgba(208, 228, 238, 0.85);
}

.choice-option {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  color: var(--gray-deep);
  font-size: 16px;
  font-weight: 300;
}

.choice-option input {
  width: 20px;
  height: 20px;
  margin: 0;
  accent-color: var(--blue-deep);
}

.choice-option span {
  font-size: 16px;
  font-weight: 300;
}

textarea {
  min-height: 118px;
  resize: vertical;
}

.passport-note {
  position: relative;
  display: grid;
  gap: 12px;
  overflow: hidden;
  border: 1px solid rgba(208, 228, 238, 0.9);
  border-left: 4px solid var(--beige);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(208, 228, 238, 0.56), rgba(255, 255, 255, 0.92));
  padding: 18px 18px 18px 20px;
}

.passport-note p {
  position: relative;
  z-index: 1;
  margin: 0;
  color: var(--blue-deep);
  font-size: 17px;
  font-weight: 500;
  line-height: 1.45;
}

.rings {
  position: absolute;
  right: -26px;
  top: -28px;
  width: 118px;
  height: 118px;
  border-radius: 50%;
  background: repeating-radial-gradient(circle, rgba(135, 115, 99, 0.22) 0 2px, transparent 3px 11px);
}

.consent {
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 12px;
  color: rgba(50, 54, 59, 0.88);
  font-size: 15px;
  line-height: 1.45;
}

.consent input {
  width: 22px;
  height: 22px;
  margin: 1px 0 0;
  accent-color: var(--blue-deep);
}

.consent a {
  color: var(--blue-deep);
  font-weight: 500;
  text-underline-offset: 3px;
}

.hint {
  margin: -8px 0 0;
  color: var(--brown-soft);
  font-size: 14px;
  line-height: 1.4;
}

.submit-button {
  width: 100%;
  min-height: 56px;
  border: 0;
  border-radius: 8px;
  background: var(--blue-deep);
  color: var(--white);
  cursor: pointer;
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
  padding: 18px 24px;
  transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.submit-button:hover:not(:disabled) {
  background: #1f3d48;
  box-shadow: 0 10px 24px rgba(41, 76, 89, 0.16);
  transform: translateY(-1px);
}

.submit-button:disabled {
  cursor: not-allowed;
  opacity: 0.62;
}

.message {
  display: grid;
  gap: 8px;
  margin: 0 0 18px;
  border-radius: 8px;
  padding: 16px 18px;
  font-size: 16px;
  line-height: 1.45;
}

.success {
  border: 1px solid rgba(208, 228, 238, 0.95);
  background: var(--success-bg);
  color: var(--success-text);
}

.success strong {
  font-size: 20px;
  font-weight: 700;
}

.error {
  border: 1px solid rgba(143, 47, 32, 0.18);
  background: var(--error-bg);
  color: var(--error-text);
}

.hidden {
  display: none;
}

@media (max-width: 600px) {
  .page {
    padding: 14px;
  }

  .page-inner {
    margin: 0;
    max-width: 362px;
  }

  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
    padding-bottom: 14px;
  }

  .hero {
    padding: 4px 0 20px;
  }

  .brand-logo {
    width: 128px;
  }

  h1 {
    font-size: 29px;
  }

  .intro {
    font-size: 17px;
    margin-top: 14px;
  }

  .lead-form {
    padding: 18px;
  }
}

@media (min-width: 760px) {
  .page {
    padding: 32px;
  }

  .site-header {
    padding-bottom: 38px;
  }

  .brand-logo {
    width: 155px;
  }

  .hero {
    padding-bottom: 42px;
  }

  h1 {
    font-size: 54px;
  }

  .lead-form {
    gap: 26px;
    padding: 34px;
  }

  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .submit-button {
    justify-self: start;
    width: auto;
    min-width: 260px;
  }
}
