@font-face {
  font-family: "PT Serif";
  src: url("../fonts/pt-serif-cyrillic-400-normal.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: "PT Serif";
  src: url("../fonts/pt-serif-latin-400-normal.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  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: "PT Serif";
  src: url("../fonts/pt-serif-cyrillic-700-normal.woff2") format("woff2");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: "PT Serif";
  src: url("../fonts/pt-serif-latin-700-normal.woff2") format("woff2");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  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: "PT Sans";
  src: url("../fonts/pt-sans-cyrillic-400-normal.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: "PT Sans";
  src: url("../fonts/pt-sans-latin-400-normal.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  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: "PT Sans";
  src: url("../fonts/pt-sans-cyrillic-700-normal.woff2") format("woff2");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: "PT Sans";
  src: url("../fonts/pt-sans-latin-700-normal.woff2") format("woff2");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  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: "Inter";
  src: url("../fonts/inter-cyrillic-400-normal.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-latin-400-normal.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  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: "Inter";
  src: url("../fonts/inter-cyrillic-700-normal.woff2") format("woff2");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-latin-700-normal.woff2") format("woff2");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  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: "Lato";
  src: url("../fonts/lato-latin-400-normal.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Lato";
  src: url("../fonts/lato-latin-700-normal.woff2") format("woff2");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

:root {
  --ink: #52611f;
  --ink-deep: #34440f;
  --leaf: #687619;
  --leaf-soft: #98a260;
  --gold: #687619;
  --gold-soft: #ccd2ac;
  --cream: #f7f3e9;
  --paper: #fffdf8;
  --muted: #6c6b63;
  --line: #ded3ba;
  --danger: #8c3e2e;
  --shadow: 0 18px 50px rgba(37, 53, 37, 0.11);
  --font-family: "PT Serif", Georgia, serif;
  --second-family: "PT Sans", Arial, sans-serif;
  --third-family: "Inter", Arial, sans-serif;
  --font3: "Lato", "PT Sans", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  background: var(--cream);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 18% 9%, rgba(255, 255, 255, 0.9), transparent 31%),
    linear-gradient(135deg, #faf7ef 0%, #f5f0e4 58%, #eee7d7 100%);
  color: var(--ink-deep);
  font-family: var(--font-family);
}

button,
input,
textarea,
select {
  font-family: var(--second-family);
}

button {
  cursor: pointer;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 3px solid rgba(104, 118, 25, 0.22);
  outline-offset: 3px;
}

.page-shell {
  min-height: 100vh;
  padding: 28px 4vw 44px;
  overflow: hidden;
}

.topbar {
  width: min(1480px, 100%);
  min-height: 76px;
  margin: 0 auto 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand img {
  display: block;
  width: clamp(315px, 29vw, 510px);
  height: auto;
  filter: brightness(0) saturate(100%) invert(42%) sepia(29%) saturate(1155%) hue-rotate(29deg) brightness(91%) contrast(91%);
}

.brand--center {
  display: flex;
  justify-content: center;
  margin-bottom: 30px;
}

.brand--center img {
  width: min(480px, 100%);
}

.topbar__help {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--ink);
  font-family: var(--second-family);
  font-size: 14px;
}

.contact-menu {
  position: relative;
}

.contact-menu summary {
  list-style: none;
  border: 1px solid var(--gold);
  border-radius: 999px;
  padding: 12px 20px;
  color: var(--ink);
  background: transparent;
  cursor: pointer;
  user-select: none;
  transition: 0.2s ease;
}

.contact-menu summary::-webkit-details-marker {
  display: none;
}

.contact-menu summary:hover,
.contact-menu summary:focus-visible,
.contact-menu[open] summary {
  border-color: var(--leaf);
  background: var(--leaf);
  color: white;
}

.contact-menu__panel {
  position: absolute;
  z-index: 20;
  top: calc(100% + 12px);
  right: 0;
  width: min(390px, calc(100vw - 24px));
  padding: 22px;
  border: 1px solid var(--gold-soft);
  border-radius: 16px;
  background: rgba(255, 253, 248, 0.99);
  box-shadow: 0 20px 55px rgba(37, 53, 37, 0.18);
}

.contact-menu__panel::before {
  content: "";
  position: absolute;
  top: -7px;
  right: 28px;
  width: 12px;
  height: 12px;
  border-top: 1px solid var(--gold-soft);
  border-left: 1px solid var(--gold-soft);
  background: var(--paper);
  transform: rotate(45deg);
}

.contact-menu__person {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-bottom: 16px;
  border-bottom: 1px solid #e9dfcc;
}

.contact-menu__person strong {
  color: var(--ink-deep);
  font-size: 18px;
}

.contact-menu__person span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.contact-menu__person a {
  width: fit-content;
  color: var(--leaf);
  font-size: 12px;
  font-weight: 700;
}

.contact-menu__panel > p {
  margin: 16px 0 10px;
  color: var(--muted);
  font-size: 12px;
}

.contact-menu__links {
  display: grid;
  gap: 8px;
}

.contact-menu__links > a {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 11px;
  align-items: center;
  min-width: 0;
  border: 1px solid #e5dcc9;
  border-radius: 10px;
  padding: 10px 12px;
  background: white;
  color: var(--ink-deep);
  text-decoration: none;
  transition: 0.2s ease;
}

.contact-menu__links > a:hover,
.contact-menu__links > a:focus-visible {
  border-color: var(--leaf-soft);
  background: #f7f8f0;
  transform: translateY(-1px);
}

.contact-menu__links > a > span:first-child {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #eef0df;
  color: var(--leaf);
  font-family: var(--third-family);
  font-size: 16px;
  font-weight: 700;
}

.contact-menu__links > a > span:last-child {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.contact-menu__links strong {
  font-size: 13px;
}

.contact-menu__links small {
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.workspace {
  width: min(1480px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(360px, 0.88fr) minmax(620px, 1.12fr);
  gap: 48px;
  align-items: stretch;
}

.editorial {
  min-width: 0;
  min-height: 760px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 38px 0 0;
}

.eyebrow,
.step-kicker {
  color: var(--gold);
  font-family: var(--second-family);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.editorial h1,
.form-section h2,
.success-card h1 {
  font-family: var(--font-family);
  font-weight: 400;
  letter-spacing: -0.02em;
}

.editorial h1 {
  max-width: 690px;
  margin: 14px 0 22px;
  font-size: clamp(55px, 5.2vw, 86px);
  line-height: 0.94;
}

.editorial__lead {
  max-width: 590px;
  margin: 0;
  color: #4f514b;
  font-size: 18px;
  line-height: 1.55;
}

.editorial__image {
  width: calc(100% + 12px);
  height: 360px;
  margin-left: -4vw;
  border-radius: 0 36px 36px 0;
  background:
    linear-gradient(90deg, rgba(247, 243, 233, 0.04), rgba(247, 243, 233, 0)),
    url("../images/hero-pie.png") center 58% / cover no-repeat;
  box-shadow: inset 0 0 0 1px rgba(184, 148, 80, 0.18);
}

.form-card {
  width: 100%;
  min-width: 0;
  align-self: start;
  overflow: hidden;
  border: 1px solid var(--gold-soft);
  border-radius: 20px;
  background: rgba(255, 253, 248, 0.95);
  box-shadow: var(--shadow);
}

.progress {
  padding: 26px 38px 20px;
  border-bottom: 1px solid #e9dfcc;
  font-family: var(--second-family);
}

.progress__meta {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  font-size: 13px;
}

.progress__meta span {
  color: var(--muted);
}

.progress__track {
  height: 3px;
  overflow: hidden;
  margin: 14px 0 18px;
  background: #e7ddc9;
}

.progress__track span {
  display: block;
  height: 100%;
  background: var(--ink);
  transition: width 0.35s ease;
}

.progress__steps {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  margin: 0;
  padding: 0;
  list-style: none;
}

.progress__steps li {
  min-width: 0;
  text-align: center;
}

.progress__steps button {
  width: 100%;
  border: 0;
  background: transparent;
  color: #858078;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  font-size: 11px;
}

.progress__steps button:disabled {
  cursor: default;
}

.progress__steps button span {
  width: 24px;
  height: 24px;
  border: 1px solid #d5c198;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--paper);
  color: var(--gold);
  font-size: 10px;
}

.progress__steps .is-current button {
  color: var(--ink);
  font-weight: 700;
}

.progress__steps .is-current button span,
.progress__steps .is-complete button span {
  border-color: var(--ink);
  background: var(--ink);
  color: white;
}

.connection-status {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 38px;
  border-bottom: 1px solid #eee6d7;
  background: #faf8f1;
  color: #77736a;
  font-family: var(--third-family);
  font-size: 11px;
}

.connection-status__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #b8aa84;
  box-shadow: 0 0 0 3px rgba(184, 170, 132, 0.14);
}

.connection-status.is-ready {
  color: #59701f;
}

.connection-status.is-ready .connection-status__dot {
  background: #6f8126;
  box-shadow: 0 0 0 3px rgba(111, 129, 38, 0.14);
}

.connection-status.is-error {
  color: var(--danger);
}

.connection-status.is-error .connection-status__dot {
  background: #a4533f;
  box-shadow: 0 0 0 3px rgba(164, 83, 63, 0.14);
}

.form-section {
  padding: 28px 38px 12px;
}

.form-section__heading {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 25px;
}

.step-kicker {
  margin: 8px 0 0;
}

.form-section h2 {
  margin: 0;
  font-size: clamp(34px, 3vw, 45px);
  line-height: 1;
}

.form-section__heading p:last-child {
  margin: 7px 0 0;
  color: var(--muted);
  font-family: var(--third-family);
  font-size: 14px;
}

.fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.field {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.field--wide,
.review__block--wide {
  grid-column: 1 / -1;
}

.field__label {
  margin-bottom: 6px;
  color: #2c382f;
  font-family: var(--second-family);
  font-size: 13px;
  font-weight: 700;
}

.field__label span,
.field__label + span {
  color: var(--gold);
}

.field__hint {
  min-height: 16px;
  margin: -2px 0 7px;
  color: #878278;
  font-family: var(--third-family);
  font-size: 11px;
  line-height: 1.4;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid #d7cdb9;
  border-radius: 10px;
  background: #fffefa;
  color: var(--ink-deep);
  outline: none;
  padding: 12px 14px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

input {
  height: 46px;
}

textarea {
  min-height: 88px;
  resize: vertical;
  line-height: 1.45;
}

select {
  height: 46px;
  appearance: auto;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--leaf);
  box-shadow: 0 0 0 3px rgba(93, 112, 36, 0.1);
}

input::placeholder,
textarea::placeholder {
  color: #aaa59c;
}

.date-input {
  position: relative;
}

.date-input input {
  padding-right: 50px;
  cursor: pointer;
}

.date-input__button {
  position: absolute;
  top: 50%;
  right: 7px;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--leaf);
  transition: background-color 0.2s, color 0.2s, transform 0.2s;
}

.date-input__button:hover {
  background: var(--cream);
  color: var(--ink-deep);
}

.date-input__button:active {
  transform: translateY(calc(-50% + 1px));
}

.date-input__button svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.calendar-popover {
  position: fixed;
  z-index: 1000;
  width: 336px;
  padding: 16px;
  border: 1px solid var(--gold-soft);
  border-radius: 17px;
  background:
    linear-gradient(180deg, rgba(247, 243, 233, 0.68), transparent 35%),
    var(--paper);
  box-shadow:
    0 24px 55px rgba(45, 55, 22, 0.2),
    0 5px 15px rgba(45, 55, 22, 0.08);
  color: var(--ink-deep);
  font-family: var(--second-family);
  animation: calendar-popover-in 0.16s ease-out;
}

.calendar-popover::before {
  content: "";
  position: absolute;
  inset: 5px;
  z-index: -1;
  border: 1px solid rgba(204, 210, 172, 0.44);
  border-radius: 12px;
  pointer-events: none;
}

.calendar-popover__header {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 38px;
  align-items: center;
  gap: 8px;
  margin-bottom: 13px;
}

.calendar-popover__month {
  color: var(--ink-deep);
  font-family: var(--font-family);
  font-size: 18px;
  line-height: 1.2;
  text-align: center;
}

.calendar-popover__nav {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: var(--leaf);
  font-size: 22px;
  line-height: 1;
  transition: border-color 0.2s, background-color 0.2s, color 0.2s;
}

.calendar-popover__nav:hover {
  border-color: var(--gold-soft);
  background: #f4f1e6;
  color: var(--ink-deep);
}

.calendar-popover__weekdays,
.calendar-popover__days {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 4px;
}

.calendar-popover__weekdays {
  margin-bottom: 5px;
  color: #7b7b6e;
  font-family: var(--third-family);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-align: center;
  text-transform: uppercase;
}

.calendar-popover__weekdays span {
  padding: 4px 0;
}

.calendar-popover__day {
  width: 100%;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: #354117;
  font-family: var(--third-family);
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  transition:
    border-color 0.16s,
    background-color 0.16s,
    color 0.16s,
    transform 0.16s;
}

.calendar-popover__day:hover {
  border-color: rgba(152, 162, 96, 0.55);
  background: #f0eddf;
  color: var(--ink-deep);
  transform: translateY(-1px);
}

.calendar-popover__day.is-outside {
  color: #a9a795;
  font-weight: 400;
}

.calendar-popover__day.is-today {
  border-color: var(--leaf-soft);
  box-shadow: inset 0 0 0 1px rgba(104, 118, 25, 0.1);
}

.calendar-popover__day.is-selected,
.calendar-popover__day.is-selected:hover {
  border-color: var(--leaf);
  background: linear-gradient(135deg, #596818, #78852e);
  box-shadow: 0 6px 14px rgba(89, 104, 24, 0.28);
  color: #fff;
  transform: none;
}

.calendar-popover__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #e4ddcb;
}

.calendar-popover__clear,
.calendar-popover__today {
  min-height: 36px;
  border-radius: 9px;
  padding: 8px 13px;
  font-size: 12px;
  font-weight: 700;
}

.calendar-popover__clear {
  border: 1px solid transparent;
  background: transparent;
  color: #777567;
}

.calendar-popover__clear:hover {
  background: #f2eee4;
  color: var(--ink-deep);
}

.calendar-popover__today {
  border: 1px solid var(--leaf);
  background: var(--leaf);
  color: #fff;
}

.calendar-popover__today:hover {
  border-color: var(--ink-deep);
  background: var(--ink-deep);
}

@keyframes calendar-popover-in {
  from {
    opacity: 0;
    transform: translateY(-5px) scale(0.985);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.field--invalid input,
.field--invalid textarea,
.field--invalid select,
input[aria-invalid="true"],
textarea[aria-invalid="true"],
select[aria-invalid="true"] {
  border-color: #a4533f;
  box-shadow: 0 0 0 3px rgba(164, 83, 63, 0.08);
}

.field__error {
  min-height: 0;
  margin-top: 5px;
  color: var(--danger);
  font-family: var(--third-family);
  font-size: 11px;
  line-height: 1.4;
}

.field__error:empty {
  display: none;
}

.self-employed-fields {
  padding-top: 2px;
}

.form-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin: 26px 38px 0;
  padding: 22px 0;
  border-top: 1px solid #e9dfcc;
}

.button {
  min-width: 190px;
  min-height: 50px;
  border: 1px solid transparent;
  border-radius: 9px;
  padding: 13px 24px;
  font-family: var(--second-family);
  font-weight: 700;
  transition: 0.2s ease;
}

.button--primary {
  background: linear-gradient(135deg, #536317, #76852c);
  color: white;
}

.button--primary:hover {
  box-shadow: 0 8px 20px rgba(83, 99, 23, 0.22);
  transform: translateY(-1px);
}

.button--primary#next-button > span,
.button__idle > span {
  margin-left: 18px;
  font-size: 20px;
}

.button--secondary {
  min-width: 120px;
  border-color: #d5c9b2;
  background: transparent;
  color: var(--ink);
}

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

.autosave {
  padding: 13px 38px;
  background: #f4f0e6;
  color: #7b776e;
  font-family: var(--font3);
  font-size: 12px;
}

.form-error {
  margin: 18px 0 0;
  padding: 12px 14px;
  border-radius: 8px;
  background: #f8e7e2;
  color: var(--danger);
  font-family: var(--third-family);
  font-size: 13px;
  line-height: 1.5;
}

.notice {
  margin-bottom: 18px;
  border-left: 3px solid var(--gold);
  background: #f6f1e5;
  padding: 13px 15px;
  color: #625e55;
  font-size: 13px;
  line-height: 1.55;
}

.product-card {
  margin-bottom: 16px;
  padding: 19px;
  border: 1px solid #e1d6c1;
  border-radius: 13px;
  background: white;
}

.product-card__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.product-card__header h3 {
  margin: 0;
  font-family: var(--font-family);
  font-size: 25px;
  font-weight: 700;
}

.product-card__header button {
  border: 0;
  background: transparent;
  color: #a4533f;
  font-size: 12px;
}

.add-product {
  width: 100%;
  border: 1px dashed var(--leaf-soft);
  border-radius: 10px;
  background: #f7f8f0;
  color: var(--ink);
  padding: 15px;
  font-weight: 700;
}

.add-product span {
  margin-right: 8px;
  font-size: 20px;
}

.documents {
  margin-top: 26px;
  padding-top: 24px;
  border-top: 1px solid #e9dfcc;
}

.documents__heading {
  margin-bottom: 15px;
}

.documents__heading h3 {
  margin: 0 0 5px;
  font-size: 25px;
}

.documents__heading p {
  margin: 0;
  color: var(--muted);
  font-family: var(--third-family);
  font-size: 12px;
  line-height: 1.5;
}

.upload-grid {
  display: grid;
  gap: 12px;
}

.upload-card {
  position: relative;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  border: 1px dashed #b7ad91;
  border-radius: 12px;
  padding: 14px;
  background: #fcfbf6;
  cursor: pointer;
  transition: 0.2s ease;
}

.upload-card:hover,
.upload-card:focus-within {
  border-color: var(--leaf);
  background: #f7f8f0;
}

.upload-card__icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #eef0df;
  color: var(--leaf);
  font-family: var(--third-family);
  font-size: 20px;
  font-weight: 700;
}

.upload-card__body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.upload-card__body strong {
  color: #2c382f;
  font-family: var(--second-family);
  font-size: 13px;
}

.upload-card__body small {
  color: var(--muted);
  font-family: var(--third-family);
  font-size: 10px;
  line-height: 1.4;
}

.upload-card__action {
  border: 1px solid #d5c9b2;
  border-radius: 8px;
  padding: 8px 11px;
  background: white;
  color: var(--ink);
  font-family: var(--second-family);
  font-size: 11px;
  font-weight: 700;
}

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

.file-list {
  display: grid;
  gap: 6px;
  margin: -3px 0 3px;
  padding: 0;
  list-style: none;
}

.file-list:empty {
  display: none;
}

.file-list li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 9px;
  align-items: center;
  padding: 8px 11px;
  border: 1px solid #ece3d2;
  border-radius: 8px;
  background: white;
  color: #4e4d47;
  font-family: var(--third-family);
  font-size: 11px;
}

.file-list__name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-list__size {
  color: var(--muted);
  white-space: nowrap;
}

.file-list button {
  border: 0;
  background: transparent;
  color: #a4533f;
  font-size: 16px;
  line-height: 1;
}

.upload-note {
  margin: 11px 0 0;
  color: #878278;
  font-family: var(--third-family);
  font-size: 10px;
  line-height: 1.45;
}

.upload-error {
  margin-bottom: 0;
}

.review {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.review__block {
  position: relative;
  min-height: 140px;
  border: 1px solid #e1d6c1;
  border-radius: 12px;
  padding: 17px;
  background: white;
}

.review__block > span {
  display: block;
  margin-bottom: 10px;
  color: var(--gold);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.review__block strong {
  display: block;
  padding-right: 55px;
  line-height: 1.35;
}

.review__block p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.review__block button {
  position: absolute;
  top: 15px;
  right: 14px;
  border: 0;
  background: transparent;
  color: var(--leaf);
  font-size: 11px;
}

.consent {
  grid-column: 1 / -1;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 8px;
  color: #615f58;
  font-size: 12px;
  line-height: 1.5;
}

.consent input {
  flex: 0 0 auto;
  width: 17px;
  height: 17px;
  margin-top: 1px;
  padding: 0;
  accent-color: var(--ink);
}

.consent a,
.form-legal-links a {
  color: var(--leaf);
  text-underline-offset: 2px;
}

.consent.is-invalid {
  color: var(--danger);
}

.consent-error {
  grid-column: 1 / -1;
  margin-top: -8px;
}

.data-confirmation {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.form-legal-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 18px;
  padding: 0 28px 22px;
  font-size: 11px;
  line-height: 1.4;
}

.form-trap {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  pointer-events: none;
}

.success-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px;
}

.success-card {
  width: min(720px, 100%);
  border: 1px solid var(--gold-soft);
  border-radius: 22px;
  background: rgba(255, 253, 248, 0.96);
  box-shadow: var(--shadow);
  padding: 55px;
  text-align: center;
}

.success-mark {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: var(--ink);
  color: white;
  font-size: 30px;
}

.success-card h1 {
  margin: 12px 0 16px;
  font-size: 48px;
  line-height: 1;
}

.success-card > p:last-child,
.success-card > p:nth-last-child(2) {
  color: var(--muted);
  line-height: 1.6;
}

.success-reference {
  margin: 18px 0 0;
  color: var(--ink) !important;
  font-family: var(--second-family);
  font-size: 13px;
  font-weight: 700;
}

.noscript-warning {
  margin: 0;
  padding: 13px 38px;
  background: #f8e7e2;
  color: var(--danger);
  font-family: var(--third-family);
  font-size: 12px;
}

@media (max-width: 1050px) {
  .workspace {
    grid-template-columns: minmax(0, 1fr);
    max-width: 820px;
  }

  .editorial {
    min-height: auto;
    padding-top: 18px;
  }

  .editorial__image {
    display: none;
  }

  .editorial h1 br {
    display: none;
  }

  .editorial__lead {
    margin-bottom: 12px;
  }
}

@media (max-width: 700px) {
  .page-shell {
    padding: 14px 12px 28px;
  }

  .topbar {
    min-height: 58px;
    margin-bottom: 14px;
  }

  .brand img {
    width: min(305px, 62vw);
  }

  .topbar__help > span {
    display: none;
  }

  .contact-menu summary {
    padding: 9px 12px;
    font-size: 12px;
  }

  .contact-menu__panel {
    position: fixed;
    top: 78px;
    right: 12px;
    left: 12px;
    width: auto;
  }

  .contact-menu__panel span {
    display: flex;
  }

  .contact-menu__panel::before {
    right: 24px;
  }

  .workspace {
    gap: 22px;
  }

  .editorial {
    padding: 5px 7px 0;
  }

  .editorial h1 {
    font-size: 44px;
  }

  .editorial__lead {
    font-size: 15px;
  }

  .form-card {
    border-radius: 14px;
  }

  .progress {
    padding: 20px 18px 16px;
  }

  .progress__steps button {
    gap: 0;
    font-size: 0;
  }

  .progress__steps button span {
    font-size: 10px;
  }

  .connection-status {
    padding: 9px 18px;
  }

  .form-section {
    padding: 24px 18px 8px;
  }

  .form-section__heading {
    gap: 11px;
  }

  .form-section h2 {
    font-size: 36px;
  }

  .fields,
  .review {
    grid-template-columns: 1fr;
  }

  .field--wide,
  .review__block--wide,
  .consent,
  .consent-error {
    grid-column: auto;
  }

  .upload-card {
    grid-template-columns: 36px minmax(0, 1fr);
  }

  .upload-card__icon {
    width: 36px;
    height: 36px;
  }

  .upload-card__action {
    grid-column: 1 / -1;
    text-align: center;
  }

  .file-list li {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .file-list__size {
    display: none;
  }

  .form-actions {
    margin: 22px 18px 0;
  }

  .button {
    min-width: 0;
    padding: 12px 16px;
  }

  .button--primary {
    flex: 1;
  }

  .button--primary#next-button > span,
  .button__idle > span {
    margin-left: 8px;
  }

  .autosave,
  .noscript-warning {
    padding: 12px 18px;
  }

  .success-page {
    padding: 18px;
  }

  .success-card {
    padding: 34px 22px;
  }

  .success-card h1 {
    font-size: 38px;
  }

  .calendar-popover {
    padding: 13px;
    border-radius: 15px;
  }

  .calendar-popover__header {
    margin-bottom: 9px;
  }

  .calendar-popover__day {
    min-height: 36px;
    aspect-ratio: auto;
  }
}

@media (max-width: 430px) {
  .brand img {
    width: min(230px, 59vw);
  }

  .editorial h1 {
    max-width: 100%;
    font-size: 39px;
    overflow-wrap: anywhere;
  }

  .progress__meta {
    font-size: 12px;
  }

  .form-section h2 {
    font-size: 32px;
  }

  .form-actions {
    align-items: stretch;
  }

  .button--secondary {
    min-width: 96px;
  }
}

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

  .calendar-popover {
    animation: none !important;
  }
}

/* Questionnaire v5: structured fields, review and responsive step layout. */

.workspace.workspace--compact {
  grid-template-columns: minmax(260px, 290px) minmax(0, 1fr);
  gap: 24px;
}

.workspace--compact .editorial {
  min-height: 680px;
  padding-top: 28px;
}

.workspace--compact .editorial h1 {
  margin-top: 10px;
  font-size: clamp(40px, 3.4vw, 56px);
  line-height: 0.98;
}

.workspace--compact .editorial__lead {
  font-size: 15px;
}

.workspace--compact .editorial__image {
  height: 285px;
}

.draft-notices {
  display: grid;
  gap: 7px;
  margin: -6px 0 22px;
}

.draft-notices p {
  margin: 0;
  border-left: 3px solid var(--gold);
  border-radius: 0 9px 9px 0;
  padding: 10px 13px;
  background: #f6f1e5;
  color: #625e55;
  font-family: var(--third-family);
  font-size: 12px;
  line-height: 1.45;
}

fieldset.field {
  min-inline-size: 0;
  margin: 0;
  border: 0;
  padding: 0;
}

fieldset.field legend {
  width: 100%;
  padding: 0;
}

.choice-row {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.choice-row--stack {
  align-items: stretch;
  flex-direction: column;
}

.choice-pill,
.choice-line,
.checkbox-grid label,
.method-card {
  position: relative;
  color: #3f4932;
  font-family: var(--second-family);
  cursor: pointer;
}

.choice-pill {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border: 1px solid #d7cdb9;
  border-radius: 10px;
  padding: 10px 13px;
  background: #fffefa;
  font-size: 13px;
}

.choice-pill:has(input:checked),
.choice-line:has(input:checked),
.checkbox-grid label:has(input:checked),
.method-card:has(input:checked) {
  border-color: var(--leaf);
  background: #f2f4e7;
  box-shadow: 0 0 0 2px rgba(104, 118, 25, 0.08);
}

.choice-pill input,
.choice-line input,
.checkbox-grid input,
.method-card input {
  flex: 0 0 auto;
  width: 17px;
  height: 17px;
  margin: 0;
  padding: 0;
  accent-color: var(--leaf);
}

.choice-list {
  display: grid;
  gap: 8px;
}

.choice-line {
  min-height: 44px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  border: 1px solid #e2d8c6;
  border-radius: 10px;
  padding: 11px 13px;
  background: #fffefa;
  font-size: 13px;
  line-height: 1.42;
}

.choice-line input {
  margin-top: 1px;
}

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

.checkbox-grid label {
  min-height: 46px;
  display: flex;
  align-items: flex-start;
  gap: 9px;
  border: 1px solid #e2d8c6;
  border-radius: 10px;
  padding: 11px 12px;
  background: #fffefa;
  font-size: 12px;
  line-height: 1.38;
}

.checkbox-grid input {
  margin-top: 1px;
}

.input-pair {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(130px, 0.85fr);
  gap: 8px;
}

.input-with-suffix {
  position: relative;
  display: block;
}

.input-with-suffix input {
  padding-right: 42px;
}

.input-with-suffix > span {
  position: absolute;
  top: 50%;
  right: 15px;
  transform: translateY(-50%);
  color: #77736a;
  font-family: var(--second-family);
  font-size: 14px;
  pointer-events: none;
}

input:disabled,
textarea:disabled,
select:disabled {
  background: #f3f0e8;
  color: #8d887e;
}

.conditional-field:not([hidden]),
.assortment-panel:not([hidden]) {
  animation: conditional-in 0.16s ease-out;
}

@keyframes conditional-in {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.method-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.method-card {
  min-width: 0;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  border: 1px solid #ddd2bd;
  border-radius: 12px;
  padding: 14px;
  background: #fffefa;
}

.method-card > span {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.method-card strong {
  color: #2c382f;
  font-size: 13px;
  line-height: 1.35;
}

.method-card small {
  color: var(--muted);
  font-family: var(--third-family);
  font-size: 10px;
  line-height: 1.42;
}

.method-card.is-disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.assortment-panel {
  margin-top: 20px;
}

.assortment-panel.documents {
  padding-top: 20px;
}

.field--invalid .choice-pill,
.field--invalid .choice-line,
.field--invalid .checkbox-grid label,
.field--invalid .method-card {
  border-color: #a4533f;
}

.date-input #launchDateDisplay {
  padding-right: 52px;
}

.calendar-popover {
  width: min(336px, calc(100vw - 24px));
  max-width: calc(100vw - 24px);
}

.review {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
}

.review-section {
  overflow: hidden;
  border: 1px solid #e1d6c1;
  border-radius: 13px;
  background: white;
}

.review-section__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 17px;
  border-bottom: 1px solid #e9dfcc;
  background: #f7f4ea;
}

.review-section__header h3 {
  margin: 0;
  color: var(--ink-deep);
  font-family: var(--font-family);
  font-size: 23px;
}

.review-section__header button {
  border: 0;
  background: transparent;
  color: var(--leaf);
  font-family: var(--second-family);
  font-size: 11px;
  font-weight: 700;
}

.review-section dl {
  display: grid;
  grid-template-columns: minmax(170px, 0.7fr) minmax(0, 1.3fr);
  margin: 0;
}

.review-section dt,
.review-section dd {
  min-width: 0;
  margin: 0;
  padding: 10px 17px;
  border-bottom: 1px solid #eee7d9;
  font-size: 12px;
  line-height: 1.5;
}

.review-section dt {
  color: #77736a;
  font-family: var(--third-family);
}

.review-section dd {
  color: #3b442d;
  font-family: var(--second-family);
  white-space: pre-line;
  overflow-wrap: anywhere;
}

.consent {
  margin-top: 20px;
}

.consent-hint {
  margin: 7px 0 0;
  color: #77736a;
  font-family: var(--third-family);
  font-size: 11px;
}

.data-confirmation {
  margin-top: 14px;
}

.button:disabled {
  cursor: not-allowed;
}

@media (max-width: 1050px) {
  .workspace.workspace--compact {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }

  .workspace--compact .editorial {
    min-height: auto;
    padding: 5px 7px 0;
  }

  .workspace--compact .editorial h1 {
    margin: 8px 0 12px;
    font-size: 40px;
  }

  .workspace--compact .editorial h1 br {
    display: none;
  }

  .workspace--compact .editorial__lead {
    margin-bottom: 0;
    font-size: 14px;
  }

  .workspace--compact .editorial__image {
    display: none;
  }
}

@media (max-width: 760px) {
  .method-grid,
  .checkbox-grid,
  .review-section dl {
    grid-template-columns: minmax(0, 1fr);
  }

  .review-section dt {
    padding-bottom: 3px;
    border-bottom: 0;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
  }

  .review-section dd {
    padding-top: 0;
  }
}

@media (max-width: 420px) {
  .choice-row:not(.choice-row--stack) {
    align-items: stretch;
    flex-direction: column;
  }

  .choice-pill {
    width: 100%;
  }

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

  .calendar-popover__weekdays,
  .calendar-popover__days {
    gap: 2px;
  }

  .calendar-popover__day {
    border-radius: 8px;
  }
}
