/* WorkLink · «Склад Ozon» — одна страница с анкетой поверх «Квитка» (worklink.css).
   Деньги — только под жёлтым маркером; выбор — индиго; ошибки — один красный. */

:root {
  --oz-danger: #b3261e;
  --oz-ok-tint: #e3f3ea;
  --oz-warn-tint: #fff4e0;
}

/* ---------- first screen ---------- */

.oz-hero__brand {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  margin-bottom: 14px;
  font-weight: 650;
}

.oz-hero__brand img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.oz-live {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--oz-ok-tint);
  color: var(--ok);
  font-size: 0.8125rem;
  font-weight: 650;
}

.oz-live::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 3px rgba(28, 122, 76, 0.18);
}

.oz-hero__lead {
  max-width: 38em;
  margin-top: 16px;
  font-size: 1.0625rem;
  color: var(--ink-soft);
}

.oz-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.oz-facts li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--card);
  box-shadow: inset 0 0 0 1px var(--hairline);
  font-size: 0.9375rem;
  font-weight: 600;
}

.oz-facts .ui-icon {
  width: 18px;
  height: 18px;
  color: var(--ok);
  stroke-width: 2.6;
}

/* Trust row: balanced lines, so no item leaves one word on a line of its own. */
.oz-hero .trust li {
  text-wrap: balance;
}

/* ---------- first screen layout: copy, then the form, then the calculator, then perks and trust ---------- */

.oz-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas: "copy" "form" "more" "after";
  gap: 22px;
}

.oz-top__copy {
  grid-area: copy;
}

.oz-top > .oz-anketa {
  grid-area: form;
  width: 100%;
  max-width: 720px;
}

.oz-top__more {
  grid-area: more;
}

/* Perks and trust: under both columns, so the form column never ends next to empty space. */
.oz-top__after {
  grid-area: after;
}

.oz-top__after .oz-facts {
  margin-top: 0;
}

.oz-top__after .offer-hero__trust:first-child {
  margin-top: 0;
}

/* ---------- the form: right under the first screen ---------- */

.oz-anketa {
  scroll-margin-top: 12px;
}

.oz-card {
  padding: 20px 16px 22px;
  border-radius: var(--radius-card);
  background: var(--card);
  box-shadow: inset 0 0 0 1px var(--hairline), var(--lift);
}

.oz-card__title {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 12px;
  margin-bottom: 16px;
  font-size: 1.5rem;
}

.oz-card__title span {
  font-size: 0.9375rem;
  font-weight: 550;
  letter-spacing: 0;
  color: var(--ink-soft);
}

.oz-card__title:focus {
  outline: none;
}

/* City and address: full-width lists, one under the other — an address is a long line. */
.oz-where {
  display: grid;
  gap: 14px;
  margin-bottom: 18px;
  padding-bottom: 18px;
  border-bottom: 1.5px dashed var(--rule);
}

/* What the chosen address offers. Money sits under the marker, as everywhere on the site. */
.oz-conditions {
  display: grid;
  gap: 6px;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--primary-tint);
  font-size: 0.9375rem;
  line-height: 1.45;
}

.oz-conditions__main {
  font-weight: 600;
}

.oz-conditions mark {
  font-weight: 800;
  white-space: nowrap;
}

/* Perks the chosen address states: small chips under the money line. */
.oz-perks {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.oz-perks li {
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--card);
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.4;
}

/* ---------- income calculator: under the headline on a wide screen, after the form on a phone ---------- */

.oz-calc {
  display: grid;
  gap: 14px;
  margin-bottom: 22px;
  padding: 20px 16px 22px;
  border-radius: var(--radius-card);
  background: var(--card);
  box-shadow: inset 0 0 0 1px var(--hairline);
}

.oz-calc__title {
  font-size: 1.25rem;
}

.oz-calc__where {
  margin-top: -8px;
  font-size: 0.9375rem;
  color: var(--ink-soft);
}

.oz-calc__result {
  padding-top: 14px;
  border-top: 1.5px dashed var(--rule);
}

.oz-calc__total {
  margin-top: 2px;
  font-size: 2rem;
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums lining-nums;
}

.oz-calc .slip {
  margin: 10px 0 0;
}

.oz-calc .calc__note {
  margin-top: 0;
}

.oz-calc__none {
  font-weight: 600;
}

.oz-calc__cta {
  justify-self: start;
}

.oz-perks-hub__title {
  margin-bottom: 8px;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--ink-soft);
}

.oz-top__after .oz-perks-hub {
  margin-bottom: 18px;
}

/* Two fields per row even on a phone: the form fits one screen. Phone and notes span the row. */
.oz-fields {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 14px 12px;
}

.oz-field--wide,
.oz-fields > .oz-field__note {
  grid-column: 1 / -1;
}

.oz-field {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.oz-field label,
.oz-field legend {
  font-size: 0.9375rem;
  font-weight: 650;
}

.oz-field legend {
  margin-bottom: 6px;
}

.oz-field__hint {
  font-weight: 500;
  color: var(--ink-soft);
}

.oz-field input,
.oz-field select {
  width: 100%;
  min-height: 52px;
  padding: 12px 14px;
  border: 1.5px solid var(--rule);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 1.0625rem;
  appearance: none;
}

.oz-field select {
  padding-right: 40px;
  text-overflow: ellipsis;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23585d6e' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}

.oz-field input:focus,
.oz-field select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-tint);
}

.oz-field select:disabled {
  background-color: var(--paper);
  color: var(--ink-soft);
  cursor: not-allowed;
  opacity: 1;
}

.oz-field input[aria-invalid="true"],
.oz-field select[aria-invalid="true"] {
  border-color: var(--oz-danger);
}

.oz-field__error,
.oz-form-error {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--oz-danger);
}

.oz-field__note {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9375rem;
  color: var(--ink-soft);
}

.oz-seg__items {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.oz-seg__item {
  position: relative;
  cursor: pointer;
}

.oz-seg__item input {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.oz-seg__item > span {
  display: grid;
  place-items: center;
  min-height: 52px;
  border: 1.5px solid var(--rule);
  border-radius: 12px;
  font-weight: 650;
}

.oz-seg__item .oz-seg__short {
  display: none;
}

.oz-seg__item input:checked + span {
  border-color: var(--primary);
  background: var(--primary-tint);
  box-shadow: inset 0 0 0 1px var(--primary);
  color: var(--primary);
}

.oz-seg__item input:focus-visible + span {
  outline: 3px solid var(--primary);
  outline-offset: 2px;
}

.oz-eligibility {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 12px;
  background: var(--oz-warn-tint);
  box-shadow: inset 4px 0 0 var(--accent);
}

.oz-eligibility > * + * {
  margin-top: 10px;
}

.oz-alts {
  display: grid;
  gap: 8px;
}

.oz-alts .button {
  justify-content: flex-start;
  width: 100%;
  text-align: left;
}

.oz-consent {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 18px;
  font-size: 0.875rem;
  line-height: 1.4;
  cursor: pointer;
}

.oz-consent input {
  flex: none;
  width: 22px;
  height: 22px;
  margin-top: 1px;
  accent-color: var(--primary);
}

.oz-consent a {
  color: var(--primary);
}

.oz-hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.oz-submit {
  width: 100%;
  margin-top: 18px;
}

.oz-submit[disabled] {
  opacity: 0.7;
  cursor: progress;
}

.oz-form-error {
  margin-top: 12px;
}

.cf-turnstile {
  margin-top: 14px;
}

/* ---------- status ---------- */

.oz-status h3 {
  margin-top: 12px;
  font-size: 1.375rem;
}

.oz-status p {
  margin-top: 8px;
}

.oz-status [data-oz-phone] {
  white-space: nowrap;
}

.oz-status .checks {
  margin-top: 12px;
}

.oz-status__icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--oz-ok-tint);
  color: var(--ok);
}

.oz-status__icon .ui-icon {
  width: 26px;
  height: 26px;
  stroke-width: 2.6;
}

.oz-status__more {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 18px;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--hairline);
}

.oz-linkbutton {
  padding: 0;
  border: 0;
  background: none;
  color: var(--ink-soft);
  font: inherit;
  font-size: 0.9375rem;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.oz-spinner {
  display: block;
  width: 40px;
  height: 40px;
  border: 4px solid var(--primary-tint);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: oz-spin 0.8s linear infinite;
}

@keyframes oz-spin {
  to {
    transform: rotate(360deg);
  }
}

/* ---------- below the form ---------- */

.oz-about p + p {
  margin-top: 10px;
}

@media (min-width: 700px) {
  .oz-card {
    padding: 28px 28px 30px;
  }

  .oz-alts {
    grid-template-columns: 1fr 1fr;
  }
}

/* Wide screens: the form stands next to the headline, on the first screen. */
@media (min-width: 960px) {
  /* The form stands right next to the calculator: no button to it. */
  .oz-calc__cta {
    display: none;
  }

  .oz-top {
    grid-template-columns: minmax(0, 1fr) minmax(0, 520px);
    grid-template-areas: "copy form" "more form" "after after";
    grid-template-rows: auto 1fr auto;
    gap: 28px 56px;
    align-items: start;
  }

  /* Full width: four trust lines in a row, equal columns. */
  .oz-top .trust {
    grid-auto-flow: row;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px 24px;
  }
}

/* Half a phone row: «Мужской» does not fit next to the date, the passport «Муж.» does. */
@media (max-width: 559px) {
  .oz-seg__item .oz-seg__long {
    display: none;
  }

  .oz-seg__item .oz-seg__short {
    display: inline;
  }
}

@media (max-width: 339px) {
  .oz-fields {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  .oz-spinner {
    animation-duration: 2.4s;
  }
}

.oz-calc__total mark,
.oz-calc .slip dd {
  white-space: nowrap;
}

html:not(.js) .oz-calc .calc-field {
  display: none;
}
