@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/montserrat-latin.850663023f.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/assets/fonts/montserrat-latin.850663023f.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/assets/fonts/montserrat-latin.850663023f.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Ephesis";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/assets/fonts/ephesis-latin.32bd24921a.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
  size-adjust: 78%;
  ascent-override: 58%;
  descent-override: 45%;
}

:root {
  --space-12: 12px;
  --space-24: 24px;
  --space-48: 48px;
  --space-96: 96px;

  --bg: #fefefd;
  --panel: #f4f4eb;
  --input-bg: #f8f8f7;
  --line: rgba(154, 128, 95, 0.45);
  --text-main: #9a805f;
  --text-soft: #b5a793;
  --text-dark: #43382a;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text-dark);
  font-family: "Montserrat", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

.page {
  min-height: 100vh;
  padding: var(--space-24) var(--space-24) var(--space-96);
  display: flex;
  justify-content: center;
}

.layout {
  width: 100%;
  max-width: 1180px;
  display: grid;
  gap: 64px;
  align-content: start;
}

.hero {
  display: grid;
  gap: var(--space-24);
  text-align: center;
  justify-items: center;
  padding-top: var(--space-24);
}

.eyebrow {
  margin: 0;
  color: var(--text-main);
  font-size: 14px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.heading {
  margin: 0;
  color: var(--text-main);
  font-size: clamp(36px, 4.2vw, 45px);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1.08;
}

.heading .script {
  font-family: "Ephesis", "Snell Roundhand", "Brush Script MT", cursive;
  font-weight: 700;
  font-size: clamp(58px, 8.2vw, 102px);
  line-height: 0.9;
  vertical-align: -0.06em;
  margin-left: 4px;
}

.sub {
  margin: 0;
  color: var(--text-main);
  font-size: 16px;
  line-height: 1.35;
  letter-spacing: -0.01em;
  max-width: 880px;
}

.sub-step2 {
  display: none;
}

.layout.is-step-2 .sub-step1 {
  display: none;
}

.layout.is-step-2 .sub-step2 {
  display: block;
  font-size: 16px;
}

.form-shell {
  width: 100%;
  max-width: 920px;
  margin: -30px auto 0;
  background: var(--panel);
  border: 1px solid rgba(154, 128, 95, 0.25);
  border-radius: 16px;
  padding: var(--space-48);
  display: grid;
  gap: var(--space-24);
}

.form-step {
  display: grid;
  gap: var(--space-24);
}

.form-step[hidden] {
  display: none;
}

[hidden] {
  display: none !important;
}

.step-header {
  display: grid;
  gap: var(--space-12);
}

.step-meta {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  color: var(--text-main);
  font-size: 16px;
  line-height: 1.2;
  letter-spacing: -0.01em;
  padding-bottom: var(--space-12);
  border-bottom: 1px solid var(--line);
}

.step-meta span:nth-child(2) {
  justify-self: center;
}

.step-meta span:nth-child(3) {
  justify-self: end;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

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

.field {
  display: grid;
  gap: 6px;
}

.label {
  color: var(--text-main);
  font-size: 16px;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.input,
.select,
.textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--input-bg);
  color: #43382a;
  font-family: inherit;
  font-size: 16px;
  line-height: 1.3;
  padding: 14px 16px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.input::placeholder,
.textarea::placeholder {
  color: var(--text-soft);
}

.textarea {
  min-height: 138px;
  resize: vertical;
}

.input:focus,
.select:focus,
.textarea:focus {
  border-color: rgba(154, 128, 95, 0.8);
  box-shadow: 0 0 0 3px rgba(154, 128, 95, 0.12);
}

.actions {
  display: flex;
  justify-content: center;
  gap: var(--space-24);
  margin-top: var(--space-24);
  flex-wrap: wrap;
}

.actions .btn {
  min-width: 220px;
}

.actions-step2 {
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-top: -52px;
}

.actions-step2 .btn {
  min-width: 0;
}

.actions-step2 .btn-primary {
  padding: 12px 18px;
  font-size: 14px;
  letter-spacing: -0.02em;
}

.actions-outside {
  margin-top: -52px;
}

.layout.is-step-2 #step-0-outside-actions {
  display: none !important;
}

.layout:not(.is-step-2) #step-1-outside-actions {
  display: none !important;
}

#next-step {
  min-width: 0;
  padding: 8px 18px;
  font-size: 14px;
}

.btn-back-text {
  border: 0;
  background: transparent;
  color: var(--text-main);
  font-family: inherit;
  font-size: 12px;
  line-height: 1;
  letter-spacing: -0.02em;
  padding: 0;
  cursor: pointer;
}

.btn-back-text:hover {
  text-decoration: underline;
}

.btn {
  border: 1px solid currentColor;
  border-radius: 999px;
  padding: 11px 28px;
  font-size: 16px;
  line-height: 1;
  letter-spacing: -0.01em;
  white-space: nowrap;
  background: transparent;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-primary {
  background: var(--text-main);
  border-color: var(--text-main);
  color: #f8f8f7;
}

.btn-primary:hover {
  background: #8b7254;
  border-color: #8b7254;
  color: #fff;
}

.btn-muted {
  color: var(--text-main);
  border-color: var(--text-main);
  background: transparent;
}

.btn-muted:hover {
  background: rgba(154, 128, 95, 0.08);
}

.btn:disabled {
  opacity: 0.6;
  cursor: wait;
}

.status {
  min-height: 20px;
  margin: 0;
  color: var(--text-main);
  font-size: 13px;
  line-height: 1.35;
  letter-spacing: -0.01em;
}

.status.error {
  color: #9f2d2d;
}

.success {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  gap: var(--space-24);
  justify-items: center;
  text-align: center;
  background: transparent;
}

#success-state {
  display: none;
}

#success-state.is-visible {
  display: grid;
}

.success-title {
  margin: 0;
  color: #9a805f;
  font-size: 45px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.03em;
}

.success-title .script {
  display: inline-block;
  font-family: "Ephesis", "Snell Roundhand", "Brush Script MT", cursive;
  font-size: clamp(90px, 8.2vw, 136px);
  font-weight: 700;
  line-height: 0.82;
  letter-spacing: 0;
  vertical-align: -0.1em;
  margin-left: 6px;
  padding-right: 0.08em;
}

.success-sub {
  margin: 0;
  color: #9a805f;
  font-size: 16px;
  line-height: 1.3;
  letter-spacing: -0.02em;
  max-width: 900px;
}

.layout.is-success {
  max-width: none;
  gap: 0;
  min-height: calc(100vh - 120px);
}

.layout.is-success .form-shell {
  max-width: none;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 120px);
}

.layout.is-step-2 .form-shell {
  max-width: 768px;
  margin-top: 0;
  border: 1px solid #e9e4d6;
  border-radius: 12px;
  padding: var(--space-48);
  gap: 32px;
  box-shadow: 0 0 25px rgba(255, 255, 255, 0.55);
}

.layout.is-step-2 .form-step[data-step="1"] {
  gap: 18px;
}

.layout.is-step-2 .form-step[data-step="1"] .step-header {
  gap: 18px;
}

.layout.is-step-2 .form-step[data-step="1"] .step-meta {
  font-size: 16px;
  align-items: end;
  padding-bottom: 14px;
}

.layout.is-step-2 .form-step[data-step="1"] .step-meta span:first-child {
  font-size: 16px;
  justify-self: start;
  text-align: left;
  letter-spacing: -0.02em;
}

.layout.is-step-2 .form-step[data-step="1"] .step-meta span:nth-child(2) {
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.layout.is-step-2 .form-step[data-step="1"] .step-meta span:nth-child(3) {
  font-size: 16px;
  letter-spacing: -0.02em;
}

.layout.is-step-2 .form-step[data-step="1"] .grid {
  gap: 36px;
}

.layout.is-step-2 .form-step[data-step="1"] .field {
  gap: 6px;
}

.layout.is-step-2 .form-step[data-step="1"] .label {
  font-size: 16px;
  color: #957c5e;
  letter-spacing: -0.02em;
}

.layout.is-step-2 .form-step[data-step="1"] .textarea {
  border: 0.5px solid #957c5e;
  border-radius: 8px;
  background: #fefefd;
  font-size: 16px;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #43382a;
  padding: 10px 12px;
  resize: none;
  min-height: 64px;
}

.layout.is-step-2 .form-step[data-step="1"] .textarea::placeholder {
  color: #b5ac9c;
  font-size: 16px;
}

.layout.is-step-2 .form-step[data-step="1"] .step2-short {
  height: 64px;
  min-height: 64px;
  overflow: hidden;
}

.layout.is-step-2 .upload-box p {
  font-size: 16px;
}

.upload-box {
  width: 100%;
  border: 0.5px solid #957c5e;
  border-radius: 8px;
  background: #fefefd;
  padding: 32px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  text-align: center;
}

.upload-box svg {
  width: 14px;
  height: 14px;
  color: #b5ac9c;
  flex: 0 0 auto;
}

.upload-box p {
  margin: 0;
  color: #b5ac9c;
  font-size: 14px;
  line-height: 1.2;
  letter-spacing: 0;
  max-width: 371px;
}

.upload-box.has-file p {
  color: #957c5e;
}

.upload-box.is-error {
  border-color: #9f2d2d;
}

.upload-box.is-dragging {
  border-color: #8b7254;
  background: #f9f7f2;
}

.upload-hint {
  margin: 0;
  font-size: 11px;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: #b5ac9c;
  text-align: left;
}

.upload-error {
  margin: 0;
  font-size: 11px;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: #9f2d2d;
  min-height: 14px;
}

.upload-summary {
  margin: 0;
  font-size: 11px;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: #957c5e;
  text-align: left;
}

.upload-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.upload-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 8px;
  border: 0.5px solid #d6c8b2;
  border-radius: 8px;
  background: #fefefd;
  padding: 8px 10px;
}

.upload-name {
  margin: 0;
  font-size: 12px;
  line-height: 1.2;
  color: #957c5e;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.upload-meta {
  margin: 0;
  font-size: 11px;
  line-height: 1.2;
  color: #b5ac9c;
  white-space: nowrap;
}

.upload-remove {
  border: 0;
  background: transparent;
  color: #957c5e;
  font-size: 11px;
  line-height: 1;
  letter-spacing: -0.01em;
  padding: 4px 2px;
  cursor: pointer;
  white-space: nowrap;
}

.upload-remove:hover {
  text-decoration: underline;
}

.site-footer {
  width: 100%;
  padding: 0 16px 32px;
  display: flex;
  justify-content: center;
}

.site-footer-nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  color: var(--text-main);
  font-size: 12px;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.site-footer-nav a:hover {
  text-decoration: underline;
}

.cookie-settings-link {
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 12px;
  line-height: 1.2;
  letter-spacing: -0.01em;
  padding: 0;
  cursor: pointer;
  text-decoration: underline;
}

.cookie-banner {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 1400;
  background: #f4f4eb;
  border: 1px solid rgba(149, 124, 94, 0.35);
  border-radius: 14px;
  box-shadow: 0 12px 32px rgba(67, 56, 42, 0.18);
  padding: 14px;
}

.cookie-banner[hidden] {
  display: none !important;
}

.cookie-banner-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.cookie-banner p {
  margin: 0;
  font-size: 12px;
  line-height: 1.35;
  color: #43382a;
  max-width: 780px;
}

.cookie-banner p a {
  text-decoration: underline;
}

.cookie-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.cookie-btn {
  border-radius: 999px;
  border: 1px solid #957c5e;
  padding: 8px 14px;
  font-size: 12px;
  line-height: 1;
  letter-spacing: -0.01em;
  font-family: inherit;
  cursor: pointer;
}

.cookie-btn-secondary {
  background: transparent;
  color: #957c5e;
}

.cookie-btn-primary {
  background: #957c5e;
  color: #fefefd;
}

@media (max-width: 768px) {
  .page {
    padding: var(--space-24) 16px var(--space-48);
  }

  .layout {
    gap: var(--space-24);
  }

  .hero {
    gap: var(--space-12);
    padding-top: var(--space-12);
  }

  .heading {
    font-size: clamp(30px, 9.4vw, 44px);
    line-height: 1.12;
  }

  .heading .script {
    font-size: clamp(46px, 15vw, 72px);
  }

  .sub {
    font-size: 16px;
    max-width: 100%;
  }

  .form-shell {
    margin-top: 0;
    padding: 20px;
  }

  .label,
  .step-meta,
  .btn {
    font-size: 16px;
  }

  .step-meta {
    grid-template-columns: 1fr auto;
    row-gap: 8px;
  }

  .step-meta span:nth-child(3) {
    grid-column: 1 / -1;
    justify-self: start;
    font-size: 16px;
  }

  .input,
  .select,
  .textarea {
    font-size: 16px;
    padding: 12px 14px;
  }

  .actions {
    gap: var(--space-12);
  }

  .actions .btn {
    width: 100%;
    min-width: 0;
  }

  .actions-step2 .btn {
    width: auto;
  }

  .actions-outside {
    margin-top: var(--space-24);
  }

  .actions-step2 {
    margin-top: var(--space-24);
  }

  .btn {
    white-space: normal;
  }

  .textarea {
    min-height: 110px;
  }

  .success {
    margin-top: 0;
    padding-left: 16px;
    padding-right: 16px;
    max-width: 480px;
  }

  .success-title {
    font-size: 45px;
    line-height: 1.02;
  }

  .success-title .script {
    display: block;
    margin: 6px 0 0;
    font-size: clamp(78px, 22vw, 118px);
    line-height: 0.82;
  }

  .success-sub {
    font-size: 16px;
    max-width: 360px;
  }

  .layout.is-success {
    min-height: calc(100vh - 72px);
  }

  .layout.is-success .form-shell {
    min-height: calc(100vh - 72px);
  }

  .site-footer {
    padding-bottom: 24px;
  }

  .cookie-banner {
    left: 10px;
    right: 10px;
    bottom: 10px;
    padding: 12px;
  }

  .cookie-banner-inner {
    flex-direction: column;
    align-items: stretch;
  }

  .cookie-actions {
    width: 100%;
    justify-content: flex-start;
  }
}

@media (max-width: 420px) {
  .form-shell {
    padding: 16px;
  }

  .label {
    font-size: 16px;
  }

  .sub {
    font-size: 16px;
  }
}

.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}
