:root {
  --c: #1F6FA6; --c-h: #185b89; --c2: #e9f2f9; --c2-h: #d8e8f4;
  --t: #1d2a33; --m: #6b7a86; --bg: #f4f7fa; --card: #fff; --line: #e3e8ec;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--t);
  font: 400 16px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  padding-bottom: 84px;
}
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
button:focus-visible, a:focus-visible, select:focus-visible { outline: 2px solid var(--c); outline-offset: 2px; }
a { color: inherit; }
h2, h3 { margin: 0; font-weight: 600; }
[hidden] { display: none !important; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 16px; }

.top { background: var(--card); border-bottom: 1px solid var(--line); }
.top-in { display: flex; align-items: center; gap: 12px; min-height: 68px; }
.logo { border-radius: 50%; flex: none; }
.brand { font-size: 18px; font-weight: 600; white-space: nowrap; }
.city-btn {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px;
  border-radius: 12px; background: var(--c2); font-weight: 600; white-space: nowrap;
}
.city-btn:hover { background: var(--c2-h); }
.top-tel { margin-left: auto; font-weight: 600; text-decoration: none; white-space: nowrap; }
.top-tel:hover { color: var(--c-h); }

.notice { background: var(--c); color: #fff; padding: 10px 0; font-size: 15px; }

.info { margin: 18px 0 6px; }
.info h1 { margin: 0 0 6px; font-size: 26px; font-weight: 600; line-height: 1.2; }
.info p { margin: 0; color: var(--m); font-size: 15px; }

.chips {
  position: sticky; top: 0; z-index: 5; display: flex; gap: 8px; overflow-x: auto;
  margin: 10px -16px 0; padding: 10px 16px; background: var(--bg); scrollbar-width: none;
}
.chips::-webkit-scrollbar { display: none; }
@media (min-width: 761px) { .chips { flex-wrap: wrap; overflow: visible; } }
.chip {
  flex: none; min-height: 40px; padding: 0 14px; border-radius: 20px; background: var(--card);
  border: 1px solid var(--line); font-size: 15px; white-space: nowrap;
}
.chip:hover { border-color: var(--c); color: var(--c-h); }

.sec { padding-top: 18px; scroll-margin-top: 58px; }
.sec h2 { font-size: 22px; margin-bottom: 12px; }
.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }

.card {
  display: flex; flex-direction: column; min-width: 0; overflow: hidden;
  background: var(--card); border-radius: 14px; border: 1px solid var(--line);
}
.ph { position: relative; overflow: hidden; aspect-ratio: 3 / 2; background: var(--c2); }
.ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.ph .noimg { inset: auto; left: 50%; top: 50%; width: 56px; height: 56px; transform: translate(-50%, -50%); border-radius: 50%; opacity: .55; }
.body { display: flex; flex-direction: column; flex: 1; gap: 6px; padding: 12px; }
.name { font-size: 16px; font-weight: 600; line-height: 1.3; overflow-wrap: anywhere; }
.w { color: var(--m); font-size: 14px; font-weight: 400; white-space: nowrap; }
.sost {
  margin: 0; color: var(--m); font-size: 14px; line-height: 1.35;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.opts { display: flex; flex-wrap: wrap; gap: 6px; }
.opt { min-height: 36px; padding: 0 10px; border-radius: 10px; background: var(--bg); font-size: 14px; }
.opt.on { background: var(--c2); color: var(--c-h); font-weight: 600; box-shadow: inset 0 0 0 1px var(--c); }
.pick { display: flex; flex-direction: column; gap: 2px; font-size: 13px; color: var(--m); }
.pick select {
  width: 100%; min-height: 38px; padding: 0 8px; border: 1px solid var(--line); border-radius: 10px;
  background: #fff; color: var(--t); font: inherit; font-size: 15px;
}
.buy { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 6px; }
.price { font-size: 18px; font-weight: 600; white-space: nowrap; }
.add, .q button {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: 50%; background: var(--c); color: #fff; font-size: 22px; line-height: 1;
}
.add:hover, .q button:hover { background: var(--c-h); }
.q { display: inline-flex; align-items: center; gap: 4px; }
.q b { min-width: 24px; text-align: center; font-weight: 600; }
.q button { width: 36px; height: 36px; font-size: 20px; }

.card.off .ph, .card.off .name, .card.off .sost { opacity: .5; }
.only { color: var(--m); font-size: 14px; text-align: right; }

.foot { margin-top: 32px; padding: 24px 0; background: var(--card); border-top: 1px solid var(--line); font-size: 15px; }
.foot h3 { margin-bottom: 6px; font-size: 16px; }
.foot p { margin: 4px 0; }
.foot .tels { display: flex; flex-wrap: wrap; gap: 6px 18px; font-weight: 600; }
.foot .small { color: var(--m); font-size: 14px; margin-top: 10px; }

.bar {
  position: fixed; left: 50%; bottom: 14px; z-index: 10; transform: translateX(-50%);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  width: min(460px, calc(100% - 32px)); min-height: 56px; padding: 0 20px;
  border-radius: 16px; background: var(--c); color: #fff; box-shadow: 0 8px 22px rgba(20, 70, 110, .32);
}
.bar:hover { background: var(--c-h); }
.bar b { font-size: 18px; font-weight: 600; white-space: nowrap; }

.shade {
  position: fixed; inset: 0; z-index: 20; display: flex; align-items: center; justify-content: center;
  padding: 16px; background: rgba(20, 22, 26, .5);
}
.sheet {
  display: flex; flex-direction: column; width: min(520px, 100%); max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px);
  overflow: auto; padding: 18px; border-radius: 18px; background: var(--card);
}
.city-sheet { width: min(560px, 100%); }
.sheet-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.sheet-h h2 { font-size: 22px; }
.x { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 50%; background: var(--bg); flex: none; }
.city-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.city-item { min-height: 54px; padding: 8px 14px; border-radius: 12px; background: var(--bg); text-align: left; font-weight: 600; }
.city-item:hover, .city-item.on { background: var(--c2); color: var(--c-h); }

.line { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.line-n { font-weight: 600; line-height: 1.3; overflow-wrap: anywhere; }
.line-o { color: var(--m); font-size: 14px; }
.line-p { text-align: right; font-weight: 600; white-space: nowrap; }
.line .q { grid-column: 2; justify-self: end; }
.total { display: flex; justify-content: space-between; gap: 12px; margin-top: 14px; font-size: 20px; font-weight: 600; }
.hint { margin: 6px 0 14px; color: var(--m); font-size: 14px; }
.call { display: flex; flex-direction: column; gap: 8px; }
.call a {
  display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 12px;
  border-radius: 14px; background: var(--c); color: #fff; font-size: 18px; font-weight: 600; text-decoration: none;
}
.call a:hover { background: var(--c-h); }
.call.soft a { min-height: 46px; background: var(--c2); color: var(--t); font-size: 16px; }
.call.soft a:hover { background: var(--c2-h); }
.order { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; }
.f { display: flex; flex-direction: column; gap: 3px; font-size: 14px; color: var(--m); }
.f input, .f select {
  width: 100%; min-height: 46px; padding: 0 12px; border: 1px solid var(--line); border-radius: 12px;
  background: #fff; color: var(--t); font: inherit; font-size: 16px;
}
.f input:focus, .f select:focus { outline: 2px solid var(--c); outline-offset: 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.order .hint { margin: 0; }
.hint.warn { color: var(--c-h); font-weight: 600; }
.err { margin: 0; padding: 10px 12px; border-radius: 10px; background: var(--c2); color: var(--c-h); font-size: 15px; }
.send {
  min-height: 54px; border-radius: 14px; background: var(--c); color: #fff; font-size: 18px; font-weight: 600;
}
.send:hover { background: var(--c-h); }
.send:disabled { opacity: .65; cursor: default; }
.done { padding: 12px 0; text-align: center; }
.done h3 { margin-bottom: 8px; font-size: 22px; }
.done p { margin: 6px 0; }
.done .tels { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 16px; font-weight: 600; }
.copy { width: 100%; min-height: 48px; margin-top: 8px; border-radius: 14px; background: var(--c2); font-weight: 600; }
.copy:hover { background: var(--c2-h); }
.clear { width: 100%; min-height: 44px; margin-top: 4px; color: var(--m); font-size: 14px; }
.clear:hover { color: var(--t); }
.empty { padding: 32px 0; text-align: center; color: var(--m); }

@media (max-width: 1100px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } .info h1 { font-size: 22px; } }
@media (max-width: 560px) {
  .shade { align-items: flex-end; padding: 0; }
  .sheet { width: 100%; max-height: 92vh; max-height: 92dvh; border-radius: 18px 18px 0 0; }
}
@media (max-width: 460px) {
  .body { padding: 10px; }
  .buy { flex-wrap: wrap; }
  .top-in { gap: 8px; }
  .top-tel { font-size: 14px; }
  .city-btn { padding: 0 10px; }
}
