/* USEELY, вариант B — по дизайн-системе UI UX Pro Max: Organic Biophilic, палитра Florist (зелёный + приглушённый розовый),
   Playfair Display + Inter, иконки Phosphor. Анимации только transform/opacity. Решения — в DESIGN-NOTES.md. */

:root {
  --bg: #F0FDF4;
  --fg: #14532D;
  --card: #FFFFFF;
  --primary: #15803D;
  --on-primary: #FFFFFF;
  --primary-soft: #DCF5E3;
  --muted: #E8F0F1;
  --muted-fg: #475569;
  --border: #BBF7D0;
  --hairline: rgba(20, 83, 45, .10);
  --destructive: #DC2626;
  --ring: #15803D;
  --rose: #9D174D;
  --rose-tint: #FCE7F3;
  --stem: #4D7C5A;

  --font-head: "Playfair Display", Georgia, serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --r-xl: 28px;
  --r-lg: 24px;
  --r-md: 16px;
  --r-sm: 12px;
  --shadow-soft: 0 8px 32px rgba(20, 83, 45, .08);

  --dur-fast: 120ms;
  --dur: 240ms;
  --ease-out: cubic-bezier(.22, .8, .3, 1);

  --appbar-h: 56px;
  --bar-h: 76px;
  --safe-b: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 400 16px/1.5 var(--font-body);
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
}
[hidden] { display: none !important; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; touch-action: manipulation; }
img { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid var(--ring); outline-offset: 2px; }

.ic { width: 24px; height: 24px; flex: none; fill: none; stroke: currentColor; stroke-width: 16; stroke-linecap: round; stroke-linejoin: round; }
.ic-sm { width: 18px; height: 18px; }
.ic-xl { width: 48px; height: 48px; }

.h1 { font: 600 28px/1.2 var(--font-head); margin: 0; text-wrap: balance; }
.h2 { font: 600 22px/1.25 var(--font-head); margin: 0; }
.h3 { font: 600 18px/1.3 var(--font-head); margin: 0; }
.muted { color: var(--muted-fg); }

/* ---------- шапка ---------- */
.appbar {
  position: sticky; top: 0; z-index: 40;
  height: var(--appbar-h);
  display: flex; align-items: center; gap: 4px;
  padding: 0 8px;
  max-width: 480px; margin: 0 auto;
  background: var(--bg);
  border-bottom: 1px solid var(--hairline);
}
.appbar-title {
  flex: 1; min-width: 0; margin: 0 8px;
  font: 600 20px/1.2 var(--font-head);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.wordmark { font: 700 24px/1 var(--font-head); letter-spacing: .04em; }
.icon-btn {
  position: relative;
  width: 48px; height: 48px; flex: none;
  display: grid; place-items: center;
  border: 0; border-radius: 50%; background: transparent; color: var(--fg);
  transition: transform var(--dur-fast) ease, background-color var(--dur-fast) ease;
}
.icon-btn:active { transform: scale(.94); background: var(--primary-soft); }
.badge {
  position: absolute; top: 4px; right: 2px;
  min-width: 20px; height: 20px; padding: 0 6px;
  border-radius: 10px; background: var(--rose); color: #fff;
  font: 600 12px/20px var(--font-body); text-align: center;
  font-variant-numeric: tabular-nums;
}

main { max-width: 480px; margin: 0 auto; }
.screen { padding: 16px 16px calc(var(--bar-h) + var(--safe-b) + 24px); }
#screen-store, #screen-done { padding-bottom: calc(32px + var(--safe-b)); }
.screen.enter-fwd { animation: in-fwd var(--dur) var(--ease-out); }
.screen.enter-back { animation: in-back var(--dur) var(--ease-out); }
/* только opacity: transform на экране сделал бы fixed-панель снизу относительной к экрану */
@keyframes in-fwd { from { opacity: 0; } }
@keyframes in-back { from { opacity: .4; } }

/* ---------- кнопки ---------- */
.btn {
  min-height: 48px; padding: 0 20px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: var(--r-md); border: 1.5px solid transparent;
  font-weight: 600; font-size: 16px; line-height: 1.2;
  transition: transform var(--dur-fast) ease, background-color var(--dur-fast) ease, opacity var(--dur-fast) ease;
}
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .45; cursor: default; transform: none; }
.btn-block { width: 100%; }
.btn-primary { background: var(--primary); color: var(--on-primary); }
.btn-primary:active { background: var(--fg); }
.btn-soft { background: var(--primary-soft); color: var(--fg); }
.btn-outline { background: var(--card); color: var(--fg); border-color: var(--border); }
.btn-outline:active { background: var(--primary-soft); }

.bottombar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  padding: 12px 16px calc(12px + var(--safe-b));
  background: var(--card);
  border-top: 1px solid var(--hairline);
}
.bottombar > .btn { max-width: 448px; margin: 0 auto; display: flex; }

/* ---------- витрина ---------- */
.hero {
  width: 100%; display: grid; grid-template-columns: 1fr 42%; align-items: center; gap: 4px;
  padding: 20px 8px 20px 20px; text-align: left;
  border: 0; border-radius: var(--r-xl) var(--r-xl) var(--r-xl) var(--r-sm);
  background: var(--rose-tint); color: var(--fg);
  transition: transform var(--dur-fast) ease;
}
.hero:active { transform: scale(.98); }
.hero-text { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; min-width: 0; }
.hero-title { font: 600 26px/1.15 var(--font-head); color: var(--rose); }
.hero-sub { font-size: 15px; line-height: 1.45; color: var(--fg); }
.hero-cta {
  margin-top: 4px; min-height: 44px; padding: 0 18px;
  display: inline-flex; align-items: center; gap: 8px;
  border-radius: 22px; background: var(--primary); color: var(--on-primary); font-weight: 600;
}
.hero-stage { position: relative; height: 170px; overflow: hidden; }

.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 28px 0 12px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.chip {
  min-height: 40px; padding: 0 16px; border-radius: 20px;
  border: 1.5px solid var(--border); background: var(--card); color: var(--fg);
  font-size: 15px; font-weight: 500;
  transition: background-color var(--dur-fast) ease, transform var(--dur-fast) ease;
}
.chip:active { transform: scale(.96); }
.chip[aria-pressed="true"] { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }

.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.card {
  display: flex; flex-direction: column; gap: 2px;
  padding: 6px 6px 12px; border: 0; text-align: left;
  background: var(--card); border-radius: var(--r-lg); box-shadow: var(--shadow-soft);
  min-width: 0; color: var(--fg);
  transition: transform var(--dur-fast) ease;
}
.card:active { transform: scale(.97); }
.card img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 18px; background: var(--muted); margin-bottom: 8px; }
.card-name { padding: 0 6px; font-weight: 600; font-size: 15px; line-height: 1.3; overflow-wrap: anywhere; }
.card-meta { padding: 0 6px; display: flex; justify-content: space-between; align-items: baseline; gap: 6px; }
.card-price { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.card-size { font-size: 13px; color: var(--muted-fg); }

/* ---------- карточка букета ---------- */
.product-photo { margin: 0 0 20px; }
.product-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--r-xl) var(--r-xl) var(--r-xl) var(--r-sm); background: var(--muted); }
.product-body { display: flex; flex-direction: column; gap: 8px; }
.product-price { margin: 0; font-size: 22px; font-weight: 700; font-variant-numeric: tabular-nums; }
.facts { margin: 12px 0 0; display: flex; flex-direction: column; gap: 8px; }
.fact { display: grid; grid-template-columns: 112px 1fr; gap: 12px; padding: 14px 16px; background: var(--card); border-radius: var(--r-md); }
.fact dt { display: flex; align-items: center; gap: 8px; color: var(--muted-fg); font-size: 15px; }
.fact dt .ic { width: 20px; height: 20px; color: var(--primary); }
.fact dd { margin: 0; font-weight: 500; overflow-wrap: anywhere; }

/* ---------- конструктор ---------- */
#screen-builder { padding-top: 0; }
.builder-top {
  position: sticky; top: var(--appbar-h); z-index: 20;
  margin: 0 -16px; padding: 8px 16px 12px;
  background: var(--bg);
}
.stepper ol { list-style: none; margin: 0 0 8px; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.stepper button {
  width: 100%; min-height: 40px; padding: 6px 0 0; border: 0; background: none;
  display: flex; flex-direction: column; gap: 6px; text-align: left; color: var(--muted-fg);
}
.stepper button:disabled { cursor: default; }
.stepper .bar { height: 4px; border-radius: 2px; background: var(--muted); transition: background-color var(--dur) ease; }
.stepper .lbl { font-size: 12px; font-weight: 500; line-height: 1.2; }
.stepper [data-state="done"] .bar, .stepper [data-state="current"] .bar { background: var(--primary); }
.stepper [data-state="current"] .lbl { color: var(--fg); font-weight: 700; }
.stepper [data-state="done"] .lbl { color: var(--fg); }

.stage {
  position: relative; overflow: hidden;
  height: clamp(190px, 30vh, 270px);
  border-radius: var(--r-xl) var(--r-xl) var(--r-xl) var(--r-sm);
  background: var(--card);
  contain: layout paint;
}
.stage-blob { position: absolute; inset: 6% 4%; width: 92%; height: 88%; fill: var(--primary-soft); }
.stage-empty {
  position: absolute; inset: 0; margin: 0; display: grid; place-items: center;
  padding: 0 40px; text-align: center; color: var(--muted-fg); font: 500 italic 17px/1.4 var(--font-head);
  transition: opacity var(--dur) ease;
}
.stage-count, .stage-price {
  position: absolute; top: 10px; z-index: 6;
  padding: 4px 12px; border-radius: 14px; background: var(--card);
  font-variant-numeric: tabular-nums; white-space: nowrap;
}
.stage-count { left: 10px; font-size: 14px; }
.stage-count b { font-size: 18px; }
.stage-price { right: 10px; font-weight: 700; font-size: 16px; }

/* сцена букета: единицы — px сцены, вписывание в сцену через transform */
.scene { position: absolute; left: 0; top: 0; width: 0; height: 0; transform-origin: 0 0; transition: transform 600ms var(--ease-out); }
.piece { position: absolute; left: 0; top: 0; width: 0; height: 0; transform-origin: 0 0; transition: transform 450ms var(--ease-out), opacity var(--dur) ease; }
.piece > svg { position: absolute; overflow: visible; }
.layer-back { z-index: 1; }
.layer-stems { z-index: 2; position: absolute; left: 0; top: 0; transition: opacity var(--dur) ease; }
.layer-front { z-index: 3; }
.layer-bow { z-index: 4; }
.layer-heads { z-index: 5; position: absolute; left: 0; top: 0; }
.stem {
  position: absolute; left: -0.8px; top: 0; width: 1.6px; height: 100px;
  background: var(--stem); border-radius: 1px; transform-origin: 50% 0;
  transition: transform 450ms var(--ease-out), opacity var(--dur) ease;
}
.head {
  position: absolute; left: -19px; top: -19px; width: 38px; height: 38px; max-width: none;
  user-select: none; -webkit-user-drag: none; pointer-events: none;
  transition: translate 450ms var(--ease-out), scale 450ms var(--ease-out);
}
.paper-kraft { fill: #CDA67F; }
.paper-kraft-fold { fill: none; stroke: #A8805C; stroke-width: 1.6; stroke-linecap: round; }
.paper-kraft-dark { fill: #B98F68; }
.paper-film { fill: #F7EDEB; stroke: #E4D2CE; stroke-width: 1.2; }
.paper-film-fold { fill: none; stroke: #E4D2CE; stroke-width: 1.4; stroke-linecap: round; }
.box-inner { fill: #0F3F22; }
.box-wall { fill: var(--fg); }
.box-rim { fill: none; stroke: #2B6B45; stroke-width: 2; }
.ribbon { fill: var(--ribbon, #EFE6D8); stroke: rgba(20, 30, 20, .18); stroke-width: 1; }
.handle line { stroke: var(--stem); stroke-width: 2.4; stroke-linecap: round; }

.builder-panel { padding-top: 8px; }
.step { display: flex; flex-direction: column; gap: 12px; }
.step > .h2 { margin-top: 8px; }
.step-note { margin: -4px 0 4px; font-size: 14px; }

.flower-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.flower {
  position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 2px;
  padding: 12px; border: 1.5px solid transparent; border-radius: var(--r-lg);
  background: var(--card); text-align: left; color: var(--fg); min-width: 0;
  transition: transform var(--dur-fast) ease, border-color var(--dur-fast) ease;
}
.flower:active { transform: scale(.97); }
.flower[aria-current="true"] { border-color: var(--primary); }
.flower-img { width: 72px; height: 72px; margin-bottom: 6px; border-radius: 50%; background: var(--rose-tint); display: grid; place-items: center; }
.flower-img img { width: 64px; height: 64px; }
.flower-name { font-weight: 600; font-size: 15px; line-height: 1.3; overflow-wrap: anywhere; }
.flower-price { font-size: 14px; color: var(--muted-fg); font-variant-numeric: tabular-nums; }
.flower-count {
  position: absolute; top: 10px; right: 10px; min-width: 28px; height: 28px; padding: 0 8px;
  border-radius: 14px; background: var(--rose); color: #fff; font: 600 13px/28px var(--font-body); text-align: center;
}
.flower[aria-disabled="true"] { cursor: not-allowed; }
.flower[aria-disabled="true"] .flower-img { background: var(--muted); }
.flower[aria-disabled="true"] .flower-img img { filter: grayscale(1); opacity: .55; }
.flower[aria-disabled="true"] .flower-name { color: var(--muted-fg); }
.flower[aria-disabled="true"]:active { transform: none; }

.active-flower { display: flex; align-items: center; gap: 12px; padding: 12px; background: var(--card); border-radius: var(--r-lg); }
.active-flower .flower-img { width: 56px; height: 56px; margin: 0; flex: none; }
.active-flower .flower-img img { width: 48px; height: 48px; }
.af-text { flex: 1; min-width: 0; }
.af-name { font-weight: 600; overflow-wrap: anywhere; }
.af-price { font-size: 14px; color: var(--muted-fg); }
.af-qty { font: 700 22px/1 var(--font-body); font-variant-numeric: tabular-nums; white-space: nowrap; }
.af-qty small { font-size: 13px; font-weight: 500; color: var(--muted-fg); }

.qty-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.qty { min-height: 52px; font-size: 18px; }
.presets { display: flex; align-items: center; gap: 12px; }
.presets-lbl { flex: none; font-size: 15px; color: var(--muted-fg); }
.presets-row { flex: 1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.presets-row .btn { padding: 0 8px; font-variant-numeric: tabular-nums; }
.hint {
  margin: 0; min-height: 24px; display: flex; align-items: center; gap: 8px;
  font-size: 14px; color: var(--rose);
  transition: opacity var(--dur) ease;
}
.hint:empty { visibility: hidden; opacity: 0; }
.hint .ic { width: 18px; height: 18px; }
.hint-muted { color: var(--muted-fg); }

.comp-list, .summary, .cart-list, .done-facts { list-style: none; margin: 0; padding: 0; }
.comp-list { display: flex; flex-direction: column; gap: 8px; }
.comp-item {
  width: 100%; display: flex; align-items: center; gap: 12px; padding: 8px 12px 8px 8px;
  border: 1.5px solid transparent; border-radius: var(--r-md); background: var(--card); color: var(--fg); text-align: left;
}
.comp-item[aria-current="true"] { border-color: var(--primary); }
.comp-item img { width: 40px; height: 40px; flex: none; }
.comp-name { flex: 1; min-width: 0; font-weight: 500; overflow-wrap: anywhere; }
.comp-name small { display: block; font-size: 13px; color: var(--muted-fg); font-weight: 400; }
.comp-sum { font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }

.wrap-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.opt {
  display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 6px;
  border: 1.5px solid var(--border); border-radius: var(--r-md); background: var(--card); color: var(--fg);
  text-align: center; min-width: 0;
  transition: transform var(--dur-fast) ease, background-color var(--dur-fast) ease;
}
.opt:active { transform: scale(.97); }
.opt[aria-checked="true"] { border-color: var(--primary); background: var(--primary-soft); }
.opt svg.thumb { width: 44px; height: 44px; }
.opt-name { font-size: 14px; font-weight: 600; line-height: 1.25; overflow-wrap: anywhere; }
.opt-price { font-size: 13px; color: var(--muted-fg); font-variant-numeric: tabular-nums; }
.ribbon-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.swatch { width: 32px; height: 32px; border-radius: 50%; border: 1px solid rgba(20, 30, 20, .18); }

.field { display: flex; flex-direction: column; gap: 6px; }
.label { font-size: 15px; font-weight: 600; }
.input {
  width: 100%; min-height: 48px; padding: 12px 14px;
  border: 1.5px solid var(--border); border-radius: var(--r-sm); background: var(--card);
  font-size: 16px; color: var(--fg); appearance: none; -webkit-appearance: none;
}
.input::placeholder { color: #7A8794; }
.input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
.input[aria-invalid="true"] { border-color: var(--destructive); }
.textarea { resize: none; line-height: 1.45; }
.help { margin: 0; display: flex; justify-content: space-between; gap: 12px; font-size: 13px; color: var(--muted-fg); }
.help span:last-child { white-space: nowrap; font-variant-numeric: tabular-nums; }

.caption { margin: 0; text-align: center; font: 500 italic 16px/1.4 var(--font-head); color: var(--muted-fg); }
.summary { display: flex; flex-direction: column; background: var(--card); border-radius: var(--r-lg); padding: 4px 16px; }
.summary li { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--hairline); }
.summary li:last-child { border-bottom: 0; }
.summary .s-name { min-width: 0; overflow-wrap: anywhere; }
.summary .s-name small { display: block; font-size: 13px; color: var(--muted-fg); }
.summary .s-val { font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.summary .s-total { font-size: 18px; }
.summary .s-total .s-val { font-size: 20px; font-weight: 700; }

/* ---------- корзина ---------- */
.cart-list { display: flex; flex-direction: column; gap: 12px; }
.line { display: grid; grid-template-columns: 72px 1fr; gap: 12px; padding: 10px; background: var(--card); border-radius: var(--r-lg); box-shadow: var(--shadow-soft); }
.line-thumb { width: 72px; height: 88px; border-radius: var(--r-sm); object-fit: cover; background: var(--muted); }
.line-thumb.custom { display: grid; place-items: center; background: var(--rose-tint); }
.line-thumb.custom img { width: 56px; height: 56px; }
.line-body { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.line-title { font-weight: 600; overflow-wrap: anywhere; }
.line-details { font-size: 13px; color: var(--muted-fg); overflow-wrap: anywhere; }
.line-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.line-sum { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.stepper-sm { display: flex; align-items: center; gap: 4px; }
.stepper-sm button { width: 40px; height: 40px; border: 1.5px solid var(--border); border-radius: 50%; background: var(--card); color: var(--fg); display: grid; place-items: center; }
.stepper-sm button .ic { width: 18px; height: 18px; }
.stepper-sm span { min-width: 24px; text-align: center; font-weight: 600; font-variant-numeric: tabular-nums; }
.cart-total { display: flex; justify-content: space-between; align-items: baseline; margin-top: 20px; padding: 16px; background: var(--card); border-radius: var(--r-lg); }
.cart-total b { font-size: 22px; font-variant-numeric: tabular-nums; }
.empty { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 48px 16px; text-align: center; color: var(--fg); }
.empty .ic-xl { color: var(--primary); }
.empty p { margin: 0; }
.empty .btn { margin-top: 12px; }

/* ---------- оформление ---------- */
form { display: flex; flex-direction: column; gap: 20px; }
.group { margin: 0; padding: 16px; border: 0; border-radius: var(--r-lg); background: var(--card); display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.group legend { float: left; width: 100%; padding: 0; margin-bottom: 2px; }
.segmented { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.segmented button {
  min-height: 52px; display: flex; align-items: center; justify-content: center; gap: 8px;
  border: 1.5px solid var(--border); border-radius: var(--r-md); background: var(--card); color: var(--fg); font-weight: 600;
  transition: background-color var(--dur-fast) ease, transform var(--dur-fast) ease;
}
.segmented button:active { transform: scale(.97); }
.segmented button[aria-checked="true"] { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }
.pickup-note { margin: 0; display: flex; gap: 8px; align-items: center; font-size: 15px; }
.pickup-note .ic { color: var(--primary); }
.select-wrap { position: relative; }
.select-wrap .input { padding-right: 44px; }
.select-ic { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; color: var(--primary); pointer-events: none; }
.slots { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.slots button {
  min-height: 48px; border: 1.5px solid var(--border); border-radius: var(--r-sm); background: var(--card); color: var(--fg);
  font-weight: 500; font-variant-numeric: tabular-nums;
  transition: background-color var(--dur-fast) ease;
}
.slots button[aria-checked="true"] { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }
.err { margin: 0; font-size: 14px; color: var(--destructive); }
.err:empty { display: none; }
.check { display: flex; align-items: flex-start; gap: 12px; cursor: pointer; }
.check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.check-box { flex: none; width: 24px; height: 24px; margin-top: 2px; border: 1.5px solid var(--primary); border-radius: 6px; display: grid; place-items: center; color: transparent; background: var(--card); }
.check input:checked + .check-box { background: var(--primary); color: var(--on-primary); }
.check input:focus-visible + .check-box { outline: 2px solid var(--ring); outline-offset: 2px; }
.check b { display: block; font-weight: 600; }
.check .muted { font-size: 14px; }
.error-summary { padding: 14px 16px; border-radius: var(--r-md); background: #FEF2F2; color: #991B1B; border: 1.5px solid #FECACA; }
.error-summary p { margin: 0 0 6px; font-weight: 600; display: flex; gap: 8px; align-items: center; }
.error-summary ul { margin: 0; padding-left: 20px; }
.error-summary a { color: inherit; }
.test-note { margin: 0; display: flex; gap: 8px; align-items: center; font-size: 14px; }

/* ---------- финал ---------- */
.done { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 32px 4px; text-align: center; }
.done-mark { width: 88px; height: 88px; border-radius: 50%; display: grid; place-items: center; background: var(--primary); color: var(--on-primary); margin-bottom: 8px; }
.done-mark .ic { width: 44px; height: 44px; stroke-width: 20; }
.done-num { margin: 0; font-size: 17px; }
.done-facts { width: 100%; display: flex; flex-direction: column; background: var(--card); border-radius: var(--r-lg); padding: 4px 16px; text-align: left; }
.done-facts li { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--hairline); }
.done-facts li:last-child { border-bottom: 0; }
.done-facts span:last-child { font-weight: 600; text-align: right; }
.done-photo { margin: 4px 0 8px; display: flex; gap: 10px; align-items: center; padding: 14px 16px; border-radius: var(--r-md); background: var(--rose-tint); color: var(--rose); font-weight: 500; text-align: left; }

/* ---------- тост ---------- */
.toast {
  position: fixed; left: 16px; right: 16px; bottom: calc(var(--bar-h) + var(--safe-b) + 12px); z-index: 50;
  max-width: 448px; margin: 0 auto; padding: 14px 16px;
  border-radius: var(--r-md); background: var(--fg); color: #fff; font-size: 15px;
  box-shadow: var(--shadow-soft);
  animation: toast-in var(--dur) var(--ease-out);
}
@keyframes toast-in { from { opacity: 0; transform: translateY(12px); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; transition-duration: 1ms !important; }
}
