/* =========================================================
   ЭГОНОМ — /calculator
   Страница использует общие tokens.css, base.css и components.css.
   Здесь только стили калькулятора.
   ========================================================= */

.page-calculator {
    background: var(--surface);
    color: var(--text);
}

.page-calculator .site-header {
    background: var(--brand-dark, #07124f);
}

.calculator-page {
    min-height: 100vh;
}

.sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* =========================================================
   HERO
   ========================================================= */

.calculator-hero {
    position: relative;
    min-height: clamp(330px, 31vw, 480px);
    overflow: hidden;
    background: #f5f8ff;
}

.calculator-hero__media {
    position: absolute;
    inset: 0;
}

.calculator-hero__media::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(90deg,
            rgba(255, 255, 255, .99) 0%,
            rgba(255, 255, 255, .98) 31%,
            rgba(255, 255, 255, .82) 47%,
            rgba(255, 255, 255, .28) 68%,
            rgba(255, 255, 255, .08) 100%);
}

.calculator-hero__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 66% center;
}

.calculator-hero__inner {
    position: relative;
    z-index: 2;
    min-height: inherit;
    padding-top: 24px;
    padding-bottom: 36px;
}

.calculator-breadcrumbs {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: clamp(34px, 4vw, 58px);
    color: var(--text-muted);
    font-size: 12px;
}

.calculator-breadcrumbs a {
    color: inherit;
    text-decoration: none;
}

.calculator-hero__content {
    width: min(610px, 46vw);
}

.calculator-hero__content .eyebrow {
    margin-bottom: 16px;
    color: var(--brand);
}

.calculator-hero__content h1 {
    max-width: 650px;
    margin: 0;
    color: var(--brand-dark, #07124f);
    font-size: clamp(36px, 4.1vw, 68px);
    line-height: 1.01;
    letter-spacing: -.045em;
}

.calculator-hero__content > p:last-child {
    max-width: 570px;
    margin: 22px 0 0;
    color: var(--text-muted);
    font-size: clamp(15px, 1.25vw, 20px);
    line-height: 1.62;
}

.calculator-hero__proofs {
    position: absolute;
    top: 20px;
    right: 0;
    display: grid;
    grid-template-columns: repeat(3, auto);
    gap: 10px;
}

.calculator-proof {
    display: flex;
    min-width: 165px;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border: 1px solid rgba(0, 0, 128, .08);
    border-radius: 14px;
    background: rgba(255, 255, 255, .90);
    box-shadow: 0 12px 34px rgba(10, 15, 45, .07);
    color: var(--brand-dark, #07124f);
    font-size: 11px;
    font-weight: 700;
    line-height: 1.25;
    backdrop-filter: blur(8px);
}

.calculator-proof img {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

/* =========================================================
   WORKSPACE + STEPPER
   ========================================================= */

.calculator-workspace {
    padding: 28px 0 clamp(58px, 5vw, 88px);
    background: #fff;
}

.calculator-stepper {
    position: relative;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    margin: 0 0 clamp(34px, 4vw, 56px);
    padding: 0;
    list-style: none;
}

.calculator-stepper::before {
    content: "";
    position: absolute;
    top: 18px;
    left: calc(16.666% + 24px);
    right: calc(16.666% + 24px);
    height: 1px;
    background: #cfd5e5;
}

.calculator-stepper__item {
    position: relative;
    z-index: 1;
    text-align: center;
}

.calculator-stepper__item button {
    display: inline-grid;
    justify-items: center;
    gap: 10px;
    padding: 0 18px;
    border: 0;
    background: #fff;
    color: var(--text-muted);
    font: inherit;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

.calculator-stepper__item button:disabled {
    cursor: default;
}

.calculator-stepper__number {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border: 1px solid #dce1ed;
    border-radius: 50%;
    background: #f6f8fc;
    color: #8991a8;
    font-size: 13px;
    font-weight: 700;
}

.calculator-stepper__item.is-current button,
.calculator-stepper__item.is-complete button {
    color: var(--brand);
}

.calculator-stepper__item.is-current .calculator-stepper__number {
    border-color: var(--brand);
    background: var(--brand);
    color: #fff;
    box-shadow: 0 8px 22px rgba(0, 0, 128, .18);
}

.calculator-stepper__item.is-complete .calculator-stepper__number {
    border-color: var(--brand);
    background: #eef1ff;
    color: var(--brand);
}

.calculator-stepper__item.is-complete .calculator-stepper__number {
    font-size: 0;
}

.calculator-stepper__item.is-complete .calculator-stepper__number::before {
    content: "";

    display: block;
    width: 15px;
    height: 15px;

    background: var(--brand);

    -webkit-mask:
        url("/icons/check-lg.svg")
        center / contain
        no-repeat;

    mask:
        url("/icons/check-lg.svg")
        center / contain
        no-repeat;
        transform: translateY(5px);
}

.calculator-step[hidden],
.scenario-form[hidden],
.return-fields[hidden],
.route-builder[hidden],
.result-state[hidden],
.result-layout[hidden],
.offer-form-card[hidden],
[data-tender-details][hidden] {
    display: none !important;
}

.calculator-step__heading {
    margin-bottom: 28px;
}

.calculator-step__heading--compact {
    margin-bottom: 22px;
}

.calculator-step__kicker,
.scenario-heading__eyebrow,
.result-card__eyebrow {
    margin: 0 0 8px;
    color: var(--brand);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.calculator-step__heading h2 {
    margin: 0;
    color: var(--brand-dark, #07124f);
    font-size: clamp(27px, 2.2vw, 38px);
    line-height: 1.12;
}

.calculator-step__heading > p:last-child {
    max-width: 760px;
    margin: 10px 0 0;
    color: var(--text-muted);
    line-height: 1.55;
}

/* =========================================================
   STEP 1 — TRANSPORT TYPE
   ========================================================= */

.transport-types {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin: 0;
    padding: 0;
    border: 0;
}

.transport-type-card {
    position: relative;
    display: flex;
    min-height: 235px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 28px 20px;
    border: 1px solid #dfe4ef;
    border-radius: 15px;
    background: #fff;
    text-align: center;
    cursor: pointer;
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease, background-color .18s ease;
}

.transport-type-card:hover {
    transform: translateY(-2px);
    border-color: rgba(0, 0, 128, .32);
    box-shadow: 0 14px 35px rgba(10, 15, 45, .07);
}

.transport-type-card:has(input:checked) {
    border-color: var(--brand);
    background: #f8f9ff;
    box-shadow: 0 12px 34px rgba(0, 0, 128, .10);
}

.transport-type-card input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.transport-type-card__check {
    position: absolute;
    top: 14px;
    right: 14px;
    display: grid;
    width: 26px;
    height: 26px;
    place-items: center;
    border-radius: 50%;
    background: var(--brand);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    opacity: 0;
    transform: scale(.75);
    transition: opacity .16s ease, transform .16s ease;
}

.transport-type-card:has(input:checked) .transport-type-card__check {
    opacity: 1;
    transform: scale(1);
}

.transport-type-card__icon {
    width: 47px;
    height: 47px;
    fill: none;
    stroke: var(--brand);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.transport-type-card strong {
    color: var(--brand-dark, #07124f);
    font-size: 16px;
    line-height: 1.25;
}

.transport-type-card > span:last-child {
    max-width: 220px;
    color: var(--text-muted);
    font-size: 12px;
    line-height: 1.5;
}

.step-one-footer {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 28px;
    margin-top: 28px;
}

.passengers-field {
    width: min(360px, 100%);
}

.calculator-next {
    min-width: 205px;
}

/* =========================================================
   COMMON FORM STYLES
   ========================================================= */

.calculator-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(270px, 340px);
    gap: 18px;
    align-items: start;
}

.calculator-form-panel,
.order-summary,
.result-card,
.result-state,
.offer-form-card {
    border: 1px solid #e0e4ed;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 15px 40px rgba(10, 15, 45, .055);
}

.calculator-form-panel {
    padding: clamp(22px, 2.4vw, 34px);
}

.scenario-heading,
.order-summary__heading,
.dynamic-section__heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.scenario-heading {
    margin-bottom: 26px;
    padding-bottom: 20px;
    border-bottom: 1px solid #edf0f5;
}

.scenario-heading h3,
.order-summary__heading h3,
.form-section-title,
.offer-form-card h3 {
    margin: 0;
    color: var(--brand-dark, #07124f);
}

.scenario-heading h3 {
    font-size: 20px;
}

.text-action {
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--brand);
    font: inherit;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}

.text-action:hover {
    text-decoration: underline;
}

.text-action--plus {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
}

.form-grid {
    display: grid;
    gap: 16px;
}

.form-grid--2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.field-group {
    display: grid;
    gap: 7px;
}

.field-group label,
.choice-group legend,
.weekdays legend {
    color: var(--brand-dark, #07124f);
    font-size: 12px;
    font-weight: 700;
}

.field-group label span,
.choice-group legend > span,
.weekdays legend > span {
    color: #b31c36;
}

.field-group label small {
    color: var(--text-muted);
    font-size: 10px;
    font-weight: 500;
}

.field-group input,
.field-group select,
.field-group textarea {
    width: 100%;
    min-height: 48px;
    border: 1px solid #d9dfeb;
    border-radius: 9px;
    outline: none;
    background: #fff;
    color: var(--text);
    font: inherit;
    font-size: 13px;
    transition: border-color .16s ease, box-shadow .16s ease;
}

.field-group input,
.field-group select {
    padding: 0 14px;
}

.field-group textarea {
    min-height: 96px;
    padding: 13px 14px;
    resize: vertical;
}

.field-group input:focus,
.field-group select:focus,
.field-group textarea:focus {
    border-color: rgba(0, 0, 128, .62);
    box-shadow: 0 0 0 3px rgba(0, 0, 128, .07);
}

.field-group.has-error input,
.field-group.has-error textarea,
.field-group.has-error select {
    border-color: #bf2942;
    box-shadow: 0 0 0 3px rgba(191, 41, 66, .06);
}

.field-hint,
.form-note,
.form-section-lead {
    margin: 0;
    color: var(--text-muted);
    font-size: 11px;
    line-height: 1.5;
}

.form-note {
    margin-top: 10px;
}

.field-error {
    margin: 0;
    color: #b31c36;
    font-size: 11px;
    line-height: 1.35;
}

.form-section {
    margin-top: 28px;
}

.form-section-title {
    margin-bottom: 8px;
    font-size: 18px;
}

.form-section-lead {
    margin-bottom: 14px;
}

.calculator-form-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 30px;
    padding-top: 22px;
    border-top: 1px solid #edf0f5;
}

.calculator-form-actions .button--primary {
    min-width: 230px;
}

.button:disabled,
button:disabled {
    opacity: .46;
    cursor: not-allowed;
    transform: none !important;
}

/* =========================================================
   ROUTE BUILDER
   ========================================================= */

.route-builder {
    display: grid;
    gap: 13px;
    margin-top: 12px;
    padding: 16px;
    border: 1px solid #e5e9f1;
    border-radius: 12px;
    background: #fafbfe;
}

.route-builder--primary {
    margin-top: 0;
}

.route-builder__list,
.dynamic-list {
    display: grid;
    gap: 10px;
}

.dynamic-row {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
}

.dynamic-row__index {
    display: grid;
    width: 30px;
    height: 30px;
    place-items: center;
    border-radius: 50%;
    background: #eef1fb;
    color: var(--brand);
    font-size: 11px;
    font-weight: 700;
}

.dynamic-row input {
    width: 100%;
    min-height: 44px;
    padding: 0 12px;
    border: 1px solid #d9dfeb;
    border-radius: 8px;
    font: inherit;
    font-size: 12px;
}

.dynamic-row__actions {
    display: flex;
    gap: 5px;
}

.icon-button {
    display: grid;
    width: 32px;
    height: 32px;
    place-items: center;
    border: 1px solid #dfe4ee;
    border-radius: 8px;
    background: #fff;
    color: var(--brand);
    font: inherit;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

.icon-button:hover {
    border-color: rgba(0, 0, 128, .34);
    background: #f6f7ff;
}

/* =========================================================
   PLACE AUTOCOMPLETE
   ========================================================= */

.place-autocomplete {
    position: relative;
    min-width: 0;
}

.place-autocomplete > input {
    width: 100%;
}

.place-suggestions {
    position: absolute;
    z-index: 40;
    top: calc(100% + 6px);
    left: 0;
    width: 100%;
    max-height: 280px;
    overflow-y: auto;
    border: 1px solid #d9dfeb;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 16px 38px rgba(10, 15, 45, .14);
}

.place-suggestions[hidden] {
    display: none !important;
}

.place-suggestion {
    display: block;
    width: 100%;
    padding: 11px 13px;
    border: 0;
    border-bottom: 1px solid #edf0f5;
    background: #fff;
    color: var(--text);
    font: inherit;
    font-size: 12px;
    line-height: 1.4;
    text-align: left;
    cursor: pointer;
}

.place-suggestion:last-child {
    border-bottom: 0;
}

.place-suggestion:hover,
.place-suggestion.is-active {
    background: #f4f6ff;
    color: var(--brand-dark, #07124f);
}

.place-suggestion:focus {
    outline: none;
}

.place-autocomplete input[aria-expanded="true"] {
    border-color: rgba(0, 0, 128, .62);
    box-shadow: 0 0 0 3px rgba(0, 0, 128, .07);
}

.place-autocomplete.has-error > input {
    border-color: #bf2942;
    box-shadow: 0 0 0 3px rgba(191, 41, 66, .06);
}

.place-autocomplete > .field-error {
    margin-top: 7px;
}

/* =========================================================
   CHOICES / WEEKDAYS
   ========================================================= */

.choice-group,
.weekdays {
    margin: 0;
    padding: 0;
    border: 0;
}

.choice-group legend,
.weekdays legend {
    margin-bottom: 10px;
}

.choice-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 8px 8px 0;
    cursor: pointer;
}

.choice-pill input {
    width: 16px;
    height: 16px;
    accent-color: var(--brand);
}

.choice-pill span {
    font-size: 12px;
    font-weight: 600;
}

.choice-group--cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.choice-group--cards legend {
    grid-column: 1 / -1;
}

.choice-card {
    display: flex;
    min-height: 112px;
    align-items: flex-start;
    gap: 11px;
    padding: 16px;
    border: 1px solid #dfe4ee;
    border-radius: 11px;
    cursor: pointer;
}

.choice-card:has(input:checked) {
    border-color: var(--brand);
    background: #f8f9ff;
}

.choice-card input {
    margin-top: 2px;
    accent-color: var(--brand);
}

.choice-card span {
    display: grid;
    gap: 5px;
}

.choice-card strong {
    color: var(--brand-dark, #07124f);
    font-size: 12px;
    line-height: 1.4;
}

.choice-card small {
    color: var(--text-muted);
    font-size: 10px;
    line-height: 1.45;
}

.weekdays {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.weekdays legend {
    width: 100%;
}

.weekdays label {
    cursor: pointer;
}

.weekdays input {
    position: absolute;
    opacity: 0;
}

.weekdays label span {
    display: grid;
    min-width: 40px;
    height: 38px;
    place-items: center;
    border: 1px solid #dfe4ee;
    border-radius: 9px;
    background: #fff;
    color: var(--brand-dark, #07124f);
    font-size: 11px;
    font-weight: 700;
}

.weekdays input:checked + span {
    border-color: var(--brand);
    background: var(--brand);
    color: #fff;
}

/* =========================================================
   EMPLOYEE FORM
   ========================================================= */

.employee-form-grid {
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
    gap: 28px;
}

.employee-form-section {
    min-width: 0;
}

.employee-organization-grid {
    align-items: start;
}

.employee-term-dates-grid {
    align-items: start;
}

.employee-form-section + .employee-form-section {
    padding-left: 28px;
    border-left: 1px solid #edf0f5;
}

.dynamic-section {
    margin-top: 26px;
}

.dynamic-section__heading {
    margin-bottom: 10px;
}

.dynamic-section__heading h4 {
    margin: 0;
    color: var(--brand-dark, #07124f);
    font-size: 13px;
}

.dynamic-section__heading span {
    color: var(--text-muted);
    font-size: 10px;
}

.shift-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) minmax(0, 1fr) auto;
    gap: 10px;
    align-items: end;
    padding: 13px;
    border: 1px solid #e2e6ef;
    border-radius: 10px;
    background: #fbfcfe;
}

.shift-card__title {
    align-self: center;
    color: var(--brand);
    font-size: 11px;
    font-weight: 700;
}

.shift-card .field-group label {
    font-size: 10px;
}

.shift-card .field-group input {
    min-height: 40px;
}

/* =========================================================
   ORDER SUMMARY
   ========================================================= */

.order-summary {
    position: sticky;
    top: 18px;
    padding: 22px;
    background: linear-gradient(180deg, #f8f9ff 0%, #f4f6fd 100%);
}

.order-summary__heading {
    margin-bottom: 16px;
}

.order-summary__heading h3 {
    font-size: 20px;
}

.order-summary__body {
    display: grid;
    gap: 10px;
}

.summary-item {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    padding: 9px 0;
    border-bottom: 1px solid rgba(0, 0, 128, .07);
}

.summary-item:last-child {
    border-bottom: 0;
}

.summary-item__icon {
    display: grid;
    width: 30px;
    height: 30px;
    place-items: center;
    border-radius: 50%;
    background: #e9edff;
    color: var(--brand);
}

.summary-item__icon img,
.summary-item__icon svg {
    display: block;
    width: 16px;
    height: 16px;
    object-fit: contain;
}

.summary-item strong,
.summary-item > div > span {
    display: block;
}

.summary-item strong {
    margin-bottom: 2px;
    color: var(--brand-dark, #07124f);
    font-size: 11px;
    line-height: 1.35;
}

.summary-item span {
    color: var(--text-muted);
    font-size: 10px;
    line-height: 1.4;
}

.order-summary__note {
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr);
    gap: 9px;
    margin-top: 18px;
    padding: 13px;
    border-radius: 10px;
    background: #eaf0ff;
    color: #334067;
}

.order-summary__note > span {
    display: grid;
    width: 22px;
    height: 22px;
    place-items: center;
    border: 1px solid var(--brand);
    border-radius: 50%;
    color: var(--brand);
    font-size: 11px;
    font-weight: 700;
}

.order-summary__note p {
    margin: 0;
    font-size: 10px;
    line-height: 1.45;
}

/* =========================================================
   RESULT / STEP 3
   ========================================================= */

.result-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(270px, 340px);
    gap: 18px;
    align-items: start;
}

.result-card {
    padding: clamp(24px, 3vw, 42px);
}

.result-card__price {
    margin: 2px 0 26px;
    color: var(--brand);
    font-size: clamp(44px, 5vw, 76px);
    font-weight: 700;
    letter-spacing: -.05em;
    line-height: .95;
}

.result-card__facts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 22px;
}

.result-fact {
    min-height: 92px;
    padding: 14px;
    border: 1px solid #e3e7ef;
    border-radius: 11px;
    background: #fbfcff;
}

.result-fact strong,
.result-fact span {
    display: block;
}

.result-fact strong {
    margin-bottom: 4px;
    color: var(--brand-dark, #07124f);
    font-size: 12px;
}

.result-fact span {
    color: var(--text-muted);
    font-size: 11px;
    line-height: 1.45;
}

.result-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.result-subcard {
    padding: 18px;
    border-radius: 12px;
    background: #f6f7fb;
}

.result-subcard--included {
    background: #f2f8f4;
}

.result-subcard h3 {
    margin: 0 0 12px;
    color: var(--brand-dark, #07124f);
    font-size: 13px;
}

.result-subcard ul {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.result-subcard li {
    position: relative;
    padding-left: 18px;
    color: var(--text-muted);
    font-size: 11px;
    line-height: 1.4;
}

.result-subcard--included li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #23884f;
    font-weight: 700;
}

.result-subcard:not(.result-subcard--included) li::before {
    content: "•";
    position: absolute;
    left: 4px;
    color: var(--brand);
}

.result-info {
    margin-top: 16px;
    padding: 14px 16px;
    border-radius: 10px;
    background: #edf3ff;
    color: #34456e;
    font-size: 11px;
    line-height: 1.5;
}

.result-disclaimer {
    margin: 18px 0 0;
    color: var(--text-muted);
    font-size: 10px;
    line-height: 1.55;
}

.result-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
}

.result-state {
    max-width: 820px;
    margin: 0 auto;
    padding: clamp(34px, 5vw, 62px);
    text-align: center;
}

.result-state__icon {
    display: grid;
    width: 54px;
    height: 54px;
    margin: 0 auto 16px;
    place-items: center;
    border-radius: 50%;
    background: #eef1ff;
    color: var(--brand);
    font-size: 21px;
    font-weight: 700;
}

.result-state h3 {
    margin: 0;
    color: var(--brand-dark, #07124f);
    font-size: clamp(24px, 2.4vw, 34px);
}

.result-state > p:not(.result-card__eyebrow) {
    max-width: 620px;
    margin: 14px auto 0;
    color: var(--text-muted);
    line-height: 1.6;
}

.result-state .result-actions {
    justify-content: center;
}

.result-state--loading {
    box-shadow: none;
    border-style: dashed;
}

.loading-ring {
    width: 46px;
    height: 46px;
    margin: 0 auto 18px;
    border: 4px solid #e4e7f1;
    border-top-color: var(--brand);
    border-radius: 50%;
    animation: calculator-spin .85s linear infinite;
}

@keyframes calculator-spin {
    to { transform: rotate(360deg); }
}

/* =========================================================
   OFFER FORM
   ========================================================= */

.offer-form-card {
    display: grid;
    grid-template-columns: minmax(240px, .75fr) minmax(0, 1.25fr);
    gap: 28px;
    margin-top: 20px;
    padding: clamp(24px, 3vw, 38px);
    background: #f7f8fc;
}

.offer-form-card__intro h3 {
    font-size: clamp(24px, 2.2vw, 34px);
}

.offer-form-card__intro > p:last-child {
    color: var(--text-muted);
    line-height: 1.55;
}

.offer-form {
    display: grid;
    gap: 16px;
}

.offer-form__actions {
    display: flex;
    align-items: center;
    gap: 14px;
}

.offer-form__status {
    margin: 0;
    color: var(--text-muted);
    font-size: 11px;
    line-height: 1.4;
}

.offer-form__status.is-success {
    color: #237448;
}

.offer-form__status.is-error {
    color: #b31c36;
}

.offer-submit-success {
    grid-column: 1 / -1;
    width: min(720px, 100%);
    margin: 0 auto;
    padding: clamp(28px, 4vw, 46px) 20px;
    text-align: center;
}

.offer-submit-success h3 {
    margin: 0;
    color: var(--brand-dark, #07124f);
    font-size: clamp(28px, 3vw, 40px);
}

.offer-submit-success > p:not(.result-card__eyebrow) {
    max-width: 620px;
    margin: 14px auto 0;
    color: var(--text-muted);
    line-height: 1.6;
}

.offer-submit-success__label {
    margin-top: 24px !important;
    font-size: 12px;
    font-weight: 600;
}

.offer-submit-success__number {
    display: inline-block;
    margin-top: 8px;
    padding: 12px 20px;
    border: 1px solid #dfe3f1;
    border-radius: 10px;
    background: #f4f6ff;
    color: var(--brand);
    font-size: clamp(22px, 3vw, 32px);
    font-weight: 700;
    letter-spacing: .03em;
}

.offer-submit-success .result-actions {
    justify-content: center;
}

/* =========================================================
   BENEFITS
   ========================================================= */

.calculator-benefits {
    border-top: 1px solid #e9ecf2;
    padding: 28px 0 32px;
    background: #fff;
}

.calculator-benefits__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.calculator-benefits article {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.calculator-benefits img,
.calculator-benefits__symbol {
    flex: 0 0 auto;
}

.calculator-benefits img {
    width: 34px;
    height: 34px;
    object-fit: contain;
}

.calculator-benefits__symbol {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    color: var(--brand);
    font-size: 29px;
}

.calculator-benefits strong {
    color: var(--brand-dark, #07124f);
    font-size: 12px;
    line-height: 1.35;
}

/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 1180px) {
    .calculator-hero__proofs {
        grid-template-columns: 1fr;
        top: 18px;
    }

    .calculator-proof {
        min-width: 150px;
        padding: 10px 12px;
    }

    .transport-types {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .transport-type-card {
        min-height: 190px;
    }

    .calculator-layout,
    .result-layout {
        grid-template-columns: 1fr;
    }

    .order-summary {
        position: static;
        order: 2;
    }

    .calculator-form-panel {
        order: 1;
    }

    .employee-form-grid {
        grid-template-columns: 1fr;
    }

    .employee-form-section + .employee-form-section {
        padding: 0;
        border-left: 0;
        border-top: 1px solid #edf0f5;
        padding-top: 26px;
    }
}

@media (max-width: 900px) {
    .calculator-hero {
        min-height: 390px;
    }

    .calculator-hero__media::before {
        background:
            linear-gradient(90deg,
                rgba(255,255,255,.98) 0%,
                rgba(255,255,255,.96) 50%,
                rgba(255,255,255,.58) 72%,
                rgba(255,255,255,.30) 100%);
    }

    .calculator-hero__content {
        width: min(630px, 72vw);
    }

    .calculator-hero__proofs {
        display: none;
    }

    .calculator-stepper__item button {
        font-size: 11px;
    }

    .calculator-benefits__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .offer-form-card {
        grid-template-columns: 1fr;
    }
}

/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 700px) {
    .calculator-hero {
        min-height: 350px;
    }

    .calculator-hero__media img {
        object-position: 72% center;
    }

    .calculator-hero__media::before {
        background: linear-gradient(90deg,
            rgba(255,255,255,.99) 0%,
            rgba(255,255,255,.96) 67%,
            rgba(255,255,255,.62) 100%);
    }

    .calculator-hero__inner {
        padding-top: 18px;
    }

    .calculator-breadcrumbs {
        margin-bottom: 36px;
    }

    .calculator-hero__content {
        width: 88%;
    }

    .calculator-hero__content h1 {
        font-size: clamp(34px, 10vw, 48px);
    }

    .calculator-workspace {
        padding-top: 20px;
    }

    .calculator-stepper {
        margin-bottom: 32px;
    }

    .calculator-stepper::before {
        left: calc(16.666% + 16px);
        right: calc(16.666% + 16px);
        top: 15px;
    }

    .calculator-stepper__item button {
        gap: 7px;
        padding: 0 4px;
        font-size: 9px;
        line-height: 1.25;
    }

    .calculator-stepper__number {
        width: 31px;
        height: 31px;
        font-size: 11px;
    }

    .transport-types {
        gap: 10px;
    }

    .transport-type-card {
        min-height: 172px;
        padding: 22px 10px;
    }

    .transport-type-card__icon {
        width: 38px;
        height: 38px;
    }

    .transport-type-card strong {
        font-size: 13px;
    }

    .transport-type-card > span:last-child {
        font-size: 10px;
    }

    .step-one-footer {
        display: grid;
        grid-template-columns: 1fr;
        align-items: stretch;
    }

    .passengers-field {
        width: 100%;
    }

    .calculator-next,
    .calculator-form-actions .button,
    .result-actions .button,
    .offer-form__actions .button {
        width: 100%;
        min-width: 0;
    }

    .calculator-form-panel,
    .order-summary,
    .result-card,
    .result-state,
    .offer-form-card {
        border-radius: 13px;
    }

    .calculator-form-panel {
        padding: 20px 16px;
    }

    .scenario-heading {
        align-items: flex-start;
    }

    .form-grid--2,
    .choice-group--cards,
    .result-card__facts,
    .result-grid {
        grid-template-columns: 1fr;
    }

    .calculator-form-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .calculator-form-actions .button--primary {
        order: -1;
    }

    .shift-card {
        grid-template-columns: 1fr 1fr;
    }

    .shift-card__title {
        grid-column: 1 / -1;
    }

    .shift-card > .icon-button {
        grid-column: 2;
        justify-self: end;
    }

    .dynamic-row {
        grid-template-columns: 28px minmax(0, 1fr);
    }

    .dynamic-row__actions {
        grid-column: 2;
        justify-content: flex-end;
    }

    .result-card {
        padding: 24px 18px;
    }

    .result-card__price {
        font-size: clamp(42px, 14vw, 62px);
    }

    .result-actions,
    .offer-form__actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .calculator-benefits__grid {
        grid-template-columns: 1fr 1fr;
        gap: 22px 14px;
    }
}

@media (max-width: 430px) {
    .transport-types {
        grid-template-columns: 1fr;
    }

    .transport-type-card {
        min-height: 148px;
        flex-direction: row;
        justify-content: flex-start;
        text-align: left;
        padding: 20px;
    }

    .transport-type-card strong,
    .transport-type-card > span:last-child {
        max-width: none;
    }

    .transport-type-card > span:last-child {
        display: none;
    }

    .calculator-stepper__item button > span:last-child {
        max-width: 88px;
    }

    .calculator-benefits__grid {
        grid-template-columns: 1fr;
    }
}
