/* Страницы заказа (B2C) и запроса для фирм (B2B). Базовые токены и компоненты — из style.css. */

.page-hero { padding: 140px 24px 48px; text-align: center; background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(255,61,127,0.07), transparent 70%); }
.page-hero .hero-badge { margin-bottom: 20px; }
.page-hero h1 { font-size: clamp(32px, 5vw, 56px); line-height: 1.08; font-weight: 900; letter-spacing: -1.5px; max-width: 900px; margin: 0 auto 16px; text-wrap: balance; }
.page-hero h1 em { font-style: normal; background: linear-gradient(135deg, var(--pink), var(--purple)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.page-hero p { color: var(--gray); font-size: 18px; max-width: 640px; margin: 0 auto; }
.page-hero .hero-cta { margin-bottom: 0; margin-top: 28px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

.shop { max-width: 1160px; margin: 0 auto; padding: 24px 24px 96px; }
.shop-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 32px; align-items: start; }

.step { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; margin-bottom: 20px; }
.step-head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 20px; }
.step-badge { flex: none; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 14px; color: var(--white); background: linear-gradient(135deg, var(--pink), var(--purple)); }
.step-head h2 { font-size: 22px; font-weight: 800; letter-spacing: -0.3px; }
.step-head p { color: var(--gray); font-size: 14px; }

.field-label { display: block; font-size: 13px; font-weight: 600; color: var(--dark); margin: 18px 0 8px; }
.field-label:first-child { margin-top: 0; }
.field-label .opt { color: var(--gray); font-weight: 400; }
.input, .select, .textarea {
  width: 100%; font: inherit; font-size: 15px; color: var(--dark); background: var(--white);
  border: 1.5px solid var(--border); border-radius: 12px; padding: 12px 14px; transition: border-color .2s, box-shadow .2s;
}
.textarea { min-height: 96px; resize: vertical; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--pink); box-shadow: 0 0 0 4px rgba(255,61,127,0.12); }
.input[aria-invalid="true"], .select[aria-invalid="true"] { border-color: var(--coral); }
.hint { font-size: 13px; color: var(--gray); margin-top: 6px; }
.row2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
.row3 { display: grid; grid-template-columns: 140px minmax(0, 1fr) minmax(0, 1fr); gap: 0 16px; }

/* Выбор карточками (продукт, доставка) */
.choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.choice { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 16px; border: 1.5px solid var(--border); border-radius: 16px; background: var(--white); cursor: pointer; text-align: left; font: inherit; color: inherit; transition: border-color .2s, background .2s, transform .15s; }
.choice:hover { border-color: rgba(255,61,127,0.4); }
.choice[aria-checked="true"], .choice.selected { border-color: var(--pink); background: rgba(255,61,127,0.05); }
.choice b { font-size: 16px; }
.choice small { color: var(--gray); font-size: 13px; }
.choice .price { font-weight: 700; font-size: 15px; }
.choice:focus-visible { outline: 3px solid rgba(255,61,127,0.35); outline-offset: 2px; }

/* Чипсы (повод) и образцы цвета */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { border: 1.5px solid var(--border); background: var(--white); border-radius: 100px; padding: 8px 16px; font: inherit; font-size: 14px; font-weight: 500; cursor: pointer; color: var(--dark); transition: all .2s; }
.chip[aria-checked="true"] { border-color: var(--pink); background: rgba(255,61,127,0.08); color: var(--pink); font-weight: 600; }
.swatches { display: flex; flex-wrap: wrap; gap: 10px; }
.swatch { display: inline-flex; align-items: center; gap: 8px; border: 1.5px solid var(--border); border-radius: 100px; padding: 6px 14px 6px 6px; background: var(--white); font: inherit; font-size: 14px; cursor: pointer; }
.swatch i { width: 24px; height: 24px; border-radius: 50%; display: block; box-shadow: inset 0 0 0 1px rgba(0,0,0,0.08); }
.swatch[aria-checked="true"] { border-color: var(--dark); font-weight: 600; }

/* Количество */
.qty-row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.qty-box { display: inline-flex; align-items: center; border: 1.5px solid var(--border); border-radius: 12px; overflow: hidden; }
.qty-box button { width: 44px; height: 46px; border: 0; background: var(--light); font-size: 20px; cursor: pointer; color: var(--dark); }
.qty-box input { width: 90px; height: 46px; border: 0; text-align: center; font: inherit; font-size: 17px; font-weight: 700; -moz-appearance: textfield; }
.qty-box input::-webkit-outer-spin-button, .qty-box input::-webkit-inner-spin-button { -webkit-appearance: none; }
.tier-note { font-size: 14px; color: var(--purple); font-weight: 600; }

.tiers { width: 100%; border-collapse: collapse; margin-top: 16px; font-size: 14px; }
.tiers th, .tiers td { text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--border); }
.tiers th { color: var(--gray); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: .5px; }
.tiers td:last-child, .tiers th:last-child { text-align: right; font-variant-numeric: tabular-nums; }
.tiers tr.on td { background: rgba(255,61,127,0.06); font-weight: 700; }

/* Загрузка файла */
.drop { display: flex; align-items: center; gap: 14px; border: 1.5px dashed var(--border); border-radius: 16px; padding: 16px; cursor: pointer; background: var(--light); }
.drop:hover { border-color: var(--pink); }
.drop input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.drop-icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--white); color: var(--pink); flex: none; }
.files-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.file-pill { display: inline-flex; align-items: center; gap: 8px; background: var(--light); border: 1px solid var(--border); border-radius: 100px; padding: 4px 6px 4px 12px; font-size: 13px; }
.file-pill button { border: 0; background: none; cursor: pointer; font-size: 16px; color: var(--gray); line-height: 1; }

.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; margin-top: 14px; }
.check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--pink); flex: none; }
.check a { color: var(--pink); }

/* Итог заказа */
.summary { position: sticky; top: 96px; background: var(--dark); color: var(--white); border-radius: var(--radius); padding: 28px; }
.summary h3 { font-size: 18px; font-weight: 800; margin-bottom: 16px; }
.summary dl { display: grid; grid-template-columns: 1fr auto; gap: 8px 12px; font-size: 14px; }
.summary dt { color: rgba(255,255,255,0.65); }
.summary dd { text-align: right; font-variant-numeric: tabular-nums; }
.summary .total { border-top: 1px solid rgba(255,255,255,0.15); margin-top: 16px; padding-top: 16px; display: flex; justify-content: space-between; align-items: baseline; }
.summary .total b { font-size: 28px; font-weight: 900; }
.summary .vat { color: rgba(255,255,255,0.55); font-size: 12px; margin-top: 4px; text-align: right; }
.summary .pay-note { margin-top: 18px; font-size: 13px; color: rgba(255,255,255,0.75); background: rgba(255,255,255,0.06); border-radius: 12px; padding: 12px 14px; }
.summary .btn { width: 100%; justify-content: center; margin-top: 18px; padding: 16px; font-size: 15px; }
.summary .btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }

.form-msg { margin-top: 14px; padding: 12px 14px; border-radius: 12px; font-size: 14px; }
.form-msg.err { background: rgba(255,107,107,0.12); color: #C62828; }
.summary .form-msg.err { background: rgba(255,107,107,0.2); color: #FFD2D2; }

/* Спасибо */
.done { max-width: 640px; margin: 40px auto 0; text-align: center; background: var(--white); border: 1px solid var(--border); border-radius: 28px; padding: 48px 32px; box-shadow: var(--shadow); }
.done .check-icon { width: 72px; height: 72px; border-radius: 50%; margin: 0 auto 20px; display: grid; place-items: center; background: linear-gradient(135deg, var(--pink), var(--purple)); color: var(--white); }
.done h2 { font-size: 30px; font-weight: 900; letter-spacing: -.5px; margin-bottom: 8px; }
.done .num { font-size: 20px; font-weight: 800; color: var(--pink); }
.done ol { text-align: left; margin: 24px auto 0; max-width: 460px; padding-left: 20px; display: grid; gap: 8px; color: var(--dark); }
.done .btn { margin-top: 28px; }

/* B2B */
.b2b-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 32px; align-items: start; }
.calc-result { margin-top: 20px; background: var(--light); border-radius: 16px; padding: 20px; }
.calc-result .big { font-size: 34px; font-weight: 900; letter-spacing: -1px; }
.calc-result .muted { color: var(--gray); font-size: 14px; }
.benefits { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 40px; }
.benefit { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }
.benefit b { display: block; font-size: 16px; margin-bottom: 6px; }
.benefit p { font-size: 14px; color: var(--gray); }

.legal { max-width: 820px; margin: 0 auto; padding: 130px 24px 96px; }
.legal h1 { font-size: clamp(30px, 4vw, 44px); font-weight: 900; letter-spacing: -1px; margin-bottom: 8px; }
.legal .updated { color: var(--gray); margin-bottom: 32px; }
.legal h2 { font-size: 20px; font-weight: 800; margin: 36px 0 10px; }
.legal p, .legal li { color: #333; line-height: 1.7; }
.legal ol, .legal ul { padding-left: 22px; display: grid; gap: 6px; margin: 8px 0; }
.legal .fill { background: #FFF3C4; padding: 0 4px; border-radius: 4px; }
.legal .draft { background: #FFF3C4; border: 1px solid #F2D675; border-radius: 12px; padding: 14px 16px; margin-bottom: 28px; font-size: 14px; }

/* Мобильная нижняя панель с итогом */
.mobile-total { display: none; }

@media (max-width: 960px) {
  .shop-grid, .b2b-grid { grid-template-columns: minmax(0, 1fr); }
  .summary { position: static; }
  .benefits { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mobile-total { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 900; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px)); background: var(--dark); color: var(--white); }
  .mobile-total b { font-size: 20px; }
  .mobile-total a { color: var(--white); font-weight: 600; font-size: 14px; }
  .page-shop .floating-cta { bottom: 84px; }
}
@media (max-width: 600px) {
  .page-hero { padding: 116px 16px 32px; }
  .shop { padding: 12px 16px 120px; }
  .step { padding: 20px; border-radius: 16px; }
  .row2, .row3 { grid-template-columns: minmax(0, 1fr); }
  .benefits { grid-template-columns: minmax(0, 1fr); }
  .done { padding: 36px 20px; }
}
@media (prefers-reduced-motion: reduce) { .choice, .chip, .input { transition: none; } }
