/* Служебные страницы: статус заказа и политика */
body.page { background: var(--milk); }
.page-head { border-bottom: 1px solid var(--line); background: var(--milk); }
.page-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; padding-top: env(safe-area-inset-top, 0px); }
.page-head .logo { color: var(--olive); }
.page-head .btn { min-height: 42px; color: var(--olive); }
.page-main { padding-block: 40px 80px; max-width: 760px; }
.prose h1 { font-family: var(--f-display); font-weight: 800; font-size: clamp(30px, 5vw, 44px); line-height: 1.05; margin: 0 0 8px; text-wrap: balance; }
.prose h2 { font-family: var(--f-display); font-weight: 800; font-size: 20px; margin: 32px 0 8px; }
.prose p { margin: 0 0 12px; max-width: 68ch; }

.order-card { background: var(--paper); border-radius: var(--r-l); padding: 28px; }
.order-card h1 { font-family: var(--f-display); font-weight: 800; font-size: clamp(30px, 6vw, 46px); margin: 0; }
.order-card .hand { font-family: var(--f-hand); font-size: 26px; color: var(--olive-2); margin: 0 0 4px; }
.steps { list-style: none; padding: 0; margin: 26px 0; display: grid; gap: 0; }
.steps li { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 14px; align-items: start; padding-bottom: 18px; position: relative; }
.steps li::before { content: ""; position: absolute; left: 13px; top: 26px; bottom: 0; width: 2px; background: var(--line); }
.steps li:last-child::before { display: none; }
.steps .dot { width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--line); background: var(--paper); display: grid; place-items: center; position: relative; z-index: 1; }
.steps li.done .dot { background: var(--olive); border-color: var(--olive); }
.steps li.done .dot::after { content: ""; width: 10px; height: 6px; border-left: 2.5px solid var(--paper); border-bottom: 2.5px solid var(--paper); transform: rotate(-45deg) translate(1px, -1px); }
.steps li.now .dot { border-color: var(--mustard); background: #FBF0D5; }
.steps li.now .dot::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--mustard); animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { transform: scale(.6); opacity: .6; } }
.steps b { display: block; font-family: var(--f-display); font-weight: 800; font-size: 17px; line-height: 28px; }
.steps span { font-size: 14px; color: var(--ink-soft); }
.steps li:not(.done):not(.now) b { color: var(--ink-soft); font-weight: 700; }
.order-items { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 14px; display: grid; gap: 8px; }
.order-items .row { display: flex; justify-content: space-between; gap: 12px; font-variant-numeric: tabular-nums; }
/* сумма справа не переносится («0 ₽» в строке подарков) */
.order-items .row > span:last-child { white-space: nowrap; }
.order-items .row.total { font-family: var(--f-display); font-weight: 800; font-size: 20px; border-top: 1px solid var(--line); padding-top: 10px; }
.cancelled { padding: 14px 16px; border-radius: 14px; background: #F6DED6; color: #6E2A17; margin-top: 18px; }
/* оценка заказа */
.rate { margin: 22px 0 6px; padding: 18px; border-radius: 18px; background: var(--milk); border: 1px solid var(--line); }
.rate h2 { font-family: var(--f-display); font-weight: 800; font-size: 22px; margin: 0 0 10px; }
.rate__stars { display: flex; gap: 6px; }
.rate__stars button { width: 52px; height: 52px; border: 0; background: none; padding: 4px; cursor: pointer; color: #D9CBB0; border-radius: 12px; }
.rate__stars button svg { width: 100%; height: 100%; fill: currentColor; }
.rate__stars button.on { color: #E0A02F; }
.rate__stars button:focus-visible { outline: 2px solid var(--olive); }
.rate__q { margin: 14px 0 8px; font-weight: 700; }
.rate__tags { display: flex; flex-wrap: wrap; gap: 8px; }
.rate textarea { width: 100%; min-height: 84px; margin: 12px 0; padding: 12px; border-radius: 12px; border: 1.5px solid var(--line); font: inherit; background: #fff; resize: vertical; }
.rate__err { color: #8A2C17; margin: 0 0 10px; }
.rate--done p { margin: 0 0 8px; }
.rate--done .hand { font-family: var(--f-hand); font-size: 26px; color: var(--olive-2); }
.rate__links { display: flex; flex-wrap: wrap; gap: 8px; }
.rate__mini { display: inline-flex; gap: 2px; vertical-align: -3px; }
.rate__mini i { width: 18px; height: 18px; color: #D9CBB0; }
.rate__mini i.on { color: #E0A02F; }
.rate__mini svg { width: 100%; height: 100%; fill: currentColor; }
/* самовывоз: «Я подъехал» */
.arrive { margin: 18px 0 4px; padding: 16px; border-radius: 18px; background: #FFF3DF; border: 1.5px solid #EBC983; display: grid; gap: 10px; }
.arrive > div { display: flex; flex-direction: column; gap: 3px; }
.arrive b { font-family: var(--f-display); font-weight: 800; font-size: 18px; }
.arrive span { font-size: 14px; color: var(--ink-soft); }
.arrive input { min-height: 46px; padding: 10px 12px; border-radius: 12px; border: 1.5px solid var(--line); font: inherit; background: #fff; }
.arrive--done { background: #EEF1E2; border-color: #C9D1AE; }
.arrive__err { margin: 0; color: #8A2C17; font-size: 14px; }
