:root {
  --ink: #142033;
  --muted: #5c6b80;
  --line: #e4e8ef;
  --bg: #f7f8fb;
  --card: #fff;
  --navy: #0B1F3A;
  --red: #C8102E;
  --tap: 56px;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; max-width: 100%; overflow-x: hidden; }
body {
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--ink);
  font-size: 18px;
  line-height: 1.4;
  padding-bottom: 88px;
}
.p-top {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 10px 12px; background: #fff; border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 5; max-width: 100%;
}
.p-logo { flex: 0 0 auto; min-width: 0; }
.p-logo img { height: 32px; width: auto; max-width: 108px; display: block; }
.p-lang { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px; min-width: 0; }
.p-lang a {
  color: var(--navy); text-decoration: none; font-weight: 700; font-size: 14px;
  padding: 6px 8px; border-radius: 999px; white-space: nowrap;
}
.p-lang a.on { background: var(--navy); color: #fff; }
.p-facility {
  margin: 0; padding: 10px 12px; background: #eef3f9; display: flex; justify-content: space-between; gap: 8px;
  flex-wrap: wrap; max-width: 100%;
}
.p-facility span { color: var(--muted); font-size: 14px; }
.p-banner { margin: 0; padding: 12px 16px; background: #fff4d6; color: #6a4b00; font-size: 16px; }
.p-main { padding: 16px; max-width: 640px; margin: 0 auto; }
h1 { font-size: 28px; margin: 8px 0 12px; }
h2 { font-size: 18px; margin: 18px 0 8px; }
.p-card, .p-delivery {
  background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 16px;
  display: flex; flex-direction: column; gap: 12px; margin-bottom: 16px;
}
.p-delivery strong { font-size: 22px; }
.p-actions { display: flex; flex-direction: column; gap: 12px; }
.p-btn {
  display: flex; align-items: center; justify-content: center;
  min-height: var(--tap); padding: 12px 16px; border-radius: 14px;
  background: var(--navy); color: #fff; font-size: 20px; font-weight: 700;
  border: 0; text-decoration: none; width: 100%; cursor: pointer;
}
.p-btn-ghost { background: #fff; color: var(--red); border: 2px solid var(--red); }
.p-btn-quiet { background: #fff; color: var(--navy); border: 2px solid var(--line); }
.p-btn:disabled { opacity: .45; }
.p-input, select.p-input, textarea.p-input {
  width: 100%; min-height: 52px; border-radius: 12px; border: 1px solid #cfd6e0;
  padding: 12px; font-size: 18px; font-family: inherit; background: #fff; color: var(--ink);
}
label { display: flex; flex-direction: column; gap: 6px; font-weight: 650; font-size: 16px; }
.p-note { color: var(--muted); font-size: 16px; }
.p-error { background: #fde8ec; color: #8d1024; padding: 12px; border-radius: 12px; }
.p-link { color: var(--navy); font-weight: 700; text-align: center; }
.p-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.p-list a, .p-list li {
  background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px;
  display: flex; justify-content: space-between; gap: 8px; text-decoration: none; color: inherit;
}
.p-item { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 8px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); max-width: 100%; }
.p-thumb, .p-thumb img, .p-thumb svg { width: 64px; height: 64px; border-radius: 12px; background: #eef3f9; object-fit: cover; }
.p-item-name { display: flex; flex-direction: column; min-width: 0; overflow-wrap: anywhere; }
.p-item-name span { color: var(--muted); font-size: 14px; }
.p-step { display: flex; align-items: center; gap: 4px; }
.p-step button {
  width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line);
  background: #fff; font-size: 24px; cursor: pointer;
}
.p-step input { width: 64px; min-height: 44px; text-align: center; font-size: 18px; border-radius: 12px; border: 1px solid var(--line); }
.p-nav {
  position: fixed; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: repeat(4, 1fr);
  background: #fff; border-top: 1px solid var(--line); z-index: 5;
}
.p-nav a {
  text-align: center; text-decoration: none; color: var(--muted); font-size: 13px; font-weight: 700;
  padding: 12px 4px 16px;
}
.p-nav a.on { color: var(--navy); }
.p-status b { font-size: 20px; }
.p-search { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }
.p-inline { margin-bottom: 8px; }
.p-lead { font-size: 18px; margin: 0 0 12px; }
.p-next { font-size: 26px; line-height: 1.2; display: block; }
.p-tiles { display: flex; flex-direction: column; gap: 12px; margin-bottom: 16px; }
.p-tile {
  display: flex; flex-direction: column; justify-content: center; gap: 4px;
  min-height: 84px; padding: 16px 18px; border-radius: 16px;
  background: var(--navy); color: #fff; text-decoration: none;
}
.p-tile b { font-size: 22px; }
.p-tile span { font-size: 16px; font-weight: 500; }
.p-tile-quiet { background: #fff; color: var(--navy); border: 2px solid var(--navy); }
.p-tile-alert { background: #fff; color: var(--red); border: 2px solid var(--red); }
.p-rows { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.p-row {
  display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 10px; align-items: center;
  background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 10px;
  text-decoration: none; color: inherit; min-height: 84px;
}
.p-pill { background: #fff4d6; color: #6a4b00; border-radius: 999px; padding: 4px 8px; font-size: 13px; font-weight: 700; }
.p-hero { align-items: center; text-align: center; }
.p-thumb-lg, .p-thumb-lg img, .p-thumb-lg svg { width: 96px; height: 96px; }
.p-step-big { justify-content: center; gap: 12px; }
.p-step-big button { width: 72px; height: 72px; font-size: 40px; }
.p-step-big input { width: 96px; min-height: 72px; font-size: 36px; font-weight: 800; }
.p-choice {
  display: flex; align-items: center; gap: 12px; min-height: 56px;
  padding: 10px 12px; border: 1px solid var(--line); border-radius: 14px; background: #fff; margin: 0 0 8px;
}
.p-choice input { width: 22px; height: 22px; flex: 0 0 auto; }
@media (max-width: 400px) {
  .p-top { padding: 8px 10px; gap: 6px; }
  .p-logo img { height: 28px; max-width: 92px; }
  .p-lang a { font-size: 13px; padding: 5px 7px; }
  .p-step button { width: 40px; height: 40px; }
  .p-step input { width: 46px; min-height: 40px; }
  .p-step-big button { width: 64px; height: 64px; font-size: 36px; }
  .p-step-big input { width: 84px; min-height: 64px; font-size: 32px; }
  .p-thumb, .p-thumb img, .p-thumb svg { width: 52px; height: 52px; }
  .p-thumb-lg, .p-thumb-lg img, .p-thumb-lg svg { width: 88px; height: 88px; }
  .p-row { grid-template-columns: 56px minmax(0, 1fr) auto; min-height: 76px; }
  .p-main { padding: 12px; }
  .p-next { font-size: 22px; }
  .p-tile b { font-size: 20px; }
}
@media (min-width: 800px) {
  body { padding-bottom: 24px; }
  .p-nav { position: static; max-width: 640px; margin: 0 auto 24px; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
  .p-main { padding-bottom: 24px; }
  .p-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
