/* Страница заказа (/order, /ru/order): закрытый коридор «1 План · 2 Детали · 3 Оплата», панель цены справа,
   на телефоне — полоса с суммой внизу. Цвета — переменные из site.css; здесь раскладка и размеры.
   Размеры крупнее прежних (Никита 27.11 «мелковато»): текст 17–18 px, поля 18 px, подписи 15 px, кнопки 14 px. */

:root { --error: #b3261e; --field-h: 52px; }
:root[data-theme="dark"] { --error: #ff8a80; }   /* 7,9:1 на графите */

/* шапка коридора: знак, «Вопросы», язык — без главного меню */
.top--corridor .top__in { gap: 16px; }
.top__faq { margin-left: auto; font-size: 14px; letter-spacing: 0.06em; color: var(--ink-2); text-decoration: none; padding: 8px 4px; }
.top__faq:hover { color: var(--accent); }
.top--corridor .top__logo { margin-right: 0; }

.order { padding: 32px 0 140px; }
.order__wrap { max-width: calc(1180px + 2 * var(--pad)); }
.order__head { margin-bottom: 28px; }
.order__title { font-size: clamp(30px, 8vw, 44px); line-height: 1.1; font-weight: 500; letter-spacing: 0.01em; margin-bottom: 18px; }
.order__noscript { font-size: 18px; color: var(--ink); padding: 20px; border: 1px solid var(--line-2); }

/* шаги */
.order__steps { display: flex; gap: 8px; border-top: 1px solid var(--line-2); }
.order__steps li { flex: 1 1 0; display: flex; align-items: baseline; gap: 8px; padding-top: 10px; margin-top: -2px; border-top: 3px solid transparent; font-size: 15px; color: var(--faint); }
.order__steps-no { font-size: 15px; font-weight: 500; }
.order__steps li.is-done { color: var(--ink-2); }
.order__steps li.is-on { color: var(--ink); border-top-color: var(--accent); font-weight: 500; }
.order__steps li.is-on .order__steps-no { color: var(--accent); }

.order__grid { display: grid; gap: 32px; }
.order__step-title { font-size: 24px; line-height: 1.2; font-weight: 500; margin-bottom: 20px; }
.order__step-title:focus { outline: none; }
.order__form { display: grid; gap: 20px; }
.order__nav { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; margin-top: 12px; }
.order__nav .btn, .paybox .btn { min-height: 54px; font-size: 14px; }
.order__row { margin-top: 14px; }
.order__rule, .order__trust { font-size: 16px; line-height: 1.5; color: var(--muted); margin-top: 14px; }
.order__trust { color: var(--ink-2); }
.order__note { font-size: 17px; line-height: 1.55; color: var(--ink); margin-top: 14px; padding: 12px 14px; background: var(--tone); }
.order__link { font: inherit; font-size: 16px; color: var(--accent); background: none; border: 0; padding: 8px 0; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; text-align: left; }
.order__legal { font-size: 14px; }
.order__legal a, .guarantee-note a { color: var(--accent); }
.order__notice, .paybox__closed { padding: 14px 16px; background: var(--tone); border-left: 3px solid var(--accent); font-size: 17px; line-height: 1.5; color: var(--ink); }
.order__notice:focus { outline: 2px solid var(--accent); }
.order__pair { display: grid; gap: 16px; }
.order__when { font-size: 18px; color: var(--ink); margin: 16px 0; }

/* поля */
.field { display: grid; gap: 6px; }
.field__label { font-size: 15px; font-weight: 500; color: var(--ink-2); }
.field__opt { font-weight: 400; color: var(--muted); }
.field__input {
  width: 100%; min-height: var(--field-h); padding: 10px 14px; font: inherit; font-size: 18px; color: var(--ink);
  background: var(--bg); border: 1px solid var(--line-2); border-radius: 0; appearance: none;
}
textarea.field__input { min-height: 104px; resize: vertical; line-height: 1.5; }
select.field__input { padding-right: 36px; background-image: linear-gradient(45deg, transparent 50%, var(--ink-2) 50%), linear-gradient(135deg, var(--ink-2) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px; background-repeat: no-repeat; }
.field__input:focus { border-color: var(--accent); outline: 2px solid var(--accent); outline-offset: 0; }
.field__input[aria-invalid="true"] { border-color: var(--error); }
.field__input::placeholder { color: var(--faint); }
.field__file { padding: 12px 14px; font-size: 16px; }
.field__hint { font-size: 15px; line-height: 1.45; color: var(--muted); }
.field__err { font-size: 15px; line-height: 1.45; color: var(--error); font-weight: 500; }
.field--trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.order__captcha:empty { display: none; }
.more summary { cursor: pointer; font-size: 16px; color: var(--accent); padding: 6px 0; }
.more[open] summary { margin-bottom: 12px; }

.check { display: flex; gap: 12px; align-items: flex-start; font-size: 17px; line-height: 1.4; color: var(--ink); cursor: pointer; }
.check input { flex: 0 0 auto; width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--accent); }
.check--small { font-size: 16px; }

/* загрузка */
.drop { position: relative; display: grid; gap: 8px; }
.drop__input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.drop__zone {
  display: grid; place-items: center; align-content: center; gap: 6px; min-height: 180px; padding: 24px 20px; text-align: center;
  border: 2px dashed var(--line-2); background: var(--tone); cursor: pointer; transition: border-color 0.2s;
}
.drop__title { font-size: 22px; font-weight: 500; color: var(--ink); }
.drop__or { font-size: 17px; color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.drop:hover .drop__zone, .drop.is-over .drop__zone { border-color: var(--accent); }
.drop__input:focus-visible + .drop__zone { outline: 2px solid var(--accent); outline-offset: 3px; }

/* карточки планировок */
.lays { display: grid; gap: 14px; margin-top: 16px; }
.lay { position: relative; display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 14px; padding: 16px; border: 1px solid var(--line-2); background: var(--bg); }
.lay__thumb { width: 88px; height: 88px; display: grid; place-items: center; background: var(--tone); border: 1px solid var(--line); overflow: hidden; }
.lay__thumb img { width: 100%; height: 100%; object-fit: contain; }
.lay__type { font-size: 14px; font-weight: 500; letter-spacing: 0.1em; color: var(--muted); }
.lay__body { display: grid; gap: 12px; min-width: 0; }
.lay__n { font-size: 14px; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 500; color: var(--accent); padding-right: 72px; }
.lay__file { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; font-size: 15px; color: var(--muted); }
.lay__file-name { overflow-wrap: anywhere; }
.lay__file-btn { position: relative; color: var(--accent); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.lay__file-input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.lay__file-input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.lay__row { display: grid; grid-template-columns: minmax(0, 1fr) 118px; gap: 8px; }
.lay__conv:empty { display: none; }
.lay__page-input { max-width: 140px; }
.lay__remove { position: absolute; top: 10px; right: 10px; min-height: 36px; padding: 0 8px; font: inherit; font-size: 15px; color: var(--accent); background: none; border: 0; text-decoration: underline; cursor: pointer; }

/* панель цены */
.price { padding: 22px; border: 1px solid var(--ink); display: grid; gap: 14px; align-self: start; background: var(--bg); }
.price__title { font-size: 15px; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 500; }
.price__cur { display: flex; gap: 6px; }
.price__cur-btn { min-width: 48px; min-height: 44px; font: inherit; font-size: 17px; color: var(--ink); background: var(--bg); border: 1px solid var(--line-2); cursor: pointer; }
.price__cur-btn[aria-pressed="true"] { border-color: var(--accent); color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); font-weight: 500; }
.price__lines, .summary { display: grid; gap: 8px; font-size: 16px; color: var(--ink-2); }
.price__lines li, .summary li { display: flex; justify-content: space-between; gap: 12px; }
.price__lines li span:first-child, .summary li span:first-child { overflow-wrap: anywhere; }
.price__lines li span:last-child, .summary li span:last-child { white-space: nowrap; color: var(--ink); }
.price__lines li.is-disc span:last-child, .summary li.is-disc span:last-child { color: var(--accent); }
.summary { font-size: 17px; padding: 16px 0; border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); }
.summary li.is-total { padding-top: 10px; border-top: 1px solid var(--line-2); font-size: 20px; font-weight: 500; }
.price__nudge { font-size: 15px; line-height: 1.45; color: var(--ink); padding: 10px 12px; background: var(--tone); border-left: 3px solid var(--accent); }
.price__total { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-top: 12px; border-top: 1px solid var(--line-2); font-size: 17px; }
.price__total output { font-size: 36px; line-height: 1; font-weight: 400; color: var(--ink); }
.price__time { font-size: 16px; color: var(--ink); }
.price__note { font-size: 15px; color: var(--muted); }
.price__note:empty, .price__time:empty { display: none; }
.price__inc { padding-top: 12px; border-top: 1px solid var(--line); }
.price__inc-title { font-size: 14px; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 500; color: var(--ink-2); margin-bottom: 8px; }
.price__inc ul { display: grid; gap: 4px; font-size: 15px; color: var(--ink-2); }
.price__inc li::before { content: "— "; color: var(--accent); }
.price__ladder { margin-top: 10px; font-size: 14px; line-height: 1.45; color: var(--muted); }

/* оплата */
.paybox { display: grid; gap: 12px; margin: 8px 0 18px; justify-items: start; }
.paybox__by { font-size: 15px; color: var(--muted); }
.guarantee-note { display: grid; gap: 6px; padding: 14px 16px; border: 1px solid var(--line-2); font-size: 16px; line-height: 1.5; color: var(--ink); max-width: 36em; }

/* ход загрузки */
.progress { display: grid; gap: 8px; }
.progress__text { font-size: 16px; color: var(--ink); }
.progress__bar { height: 6px; background: var(--line); }
.progress__bar span { display: block; height: 100%; width: 0; background: var(--accent); transition: width 0.2s linear; }

/* после отправки и трекер */
.done, .track { display: grid; gap: 16px; font-size: 18px; line-height: 1.55; color: var(--ink); max-width: 42em; }
.endcard, .changes { display: grid; gap: 16px; margin-top: 24px; padding: 20px; border: 1px solid var(--line-2); max-width: 42em; }
.endcard__title { font-size: 18px; font-weight: 500; }
.track__status { font-size: 20px; font-weight: 500; }
.track__ready { font-size: 22px; font-weight: 500; color: var(--accent); }
.track__copy { display: grid; gap: 6px; justify-items: start; padding-top: 16px; border-top: 1px solid var(--line); }
.track__copied { font-size: 15px; color: var(--ink-2); overflow-wrap: anywhere; }
.track__copied:empty { display: none; }
.stages-track { display: grid; gap: 0; margin: 6px 0; }
.stages-track li { position: relative; display: grid; gap: 2px; padding: 0 0 18px 30px; color: var(--faint); font-size: 17px; }
.stages-track li::before { content: ""; position: absolute; left: 4px; top: 6px; width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--line-2); background: var(--bg); }
.stages-track li::after { content: ""; position: absolute; left: 10px; top: 22px; bottom: 2px; width: 2px; background: var(--line); }
.stages-track li:last-child::after { display: none; }
.stages-track li.is-done { color: var(--ink); }
.stages-track li.is-done::before { background: var(--accent); border-color: var(--accent); }
.stages-track li.is-next { color: var(--ink); font-weight: 500; }
.stages-track li.is-next::before { border-color: var(--accent); }
.stages-track__time { font-size: 15px; font-weight: 400; color: var(--muted); }

/* телефон: полоса внизу экрана с суммой и «Дальше» */
.order__bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px var(--pad) calc(10px + env(safe-area-inset-bottom)); background: var(--bg); border-top: 1px solid var(--line-2);
}
.order__bar-total { display: grid; font-size: 14px; color: var(--muted); }
.order__bar-total b { font-size: 22px; font-weight: 500; color: var(--ink); }
.order__bar .btn { min-height: 50px; font-size: 14px; }

@media (min-width: 640px) {
  .order__pair { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 20px; }
  .field--wide { grid-column: 1 / -1; }
}

@media (min-width: 900px) {
  .order { padding: 56px 0 120px; }
  .order__grid { grid-template-columns: minmax(0, 1fr) 380px; column-gap: 56px; align-items: start; }
  .order__grid.is-single { grid-template-columns: minmax(0, 1fr); }
  .price { position: sticky; top: calc(var(--header-h) + 24px); }
  .price__total output { font-size: 46px; }
  .order__step-title { font-size: 30px; }
  .drop__zone { min-height: 220px; }
  .lay { grid-template-columns: 120px minmax(0, 1fr); gap: 20px; padding: 20px; }
  .lay__thumb { width: 120px; height: 120px; }
  .order__bar { display: none; }
}
