@font-face { font-family: "DM Serif Display"; src: url("/fonts/dm-serif.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url("/fonts/instrument-sans.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }

:root {
  --bg: #FDF9F3;
  --card: #FFFFFF;
  --fg: #231C16;
  --muted: #62564B;
  --rule: #E5D9C9;
  --terra: #A64628;
  --gold: #C98B24;
  --sage: #2C674B;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { background: var(--bg); color: var(--fg); font-family: "Instrument Sans", -apple-system, sans-serif; font-size: 18px; line-height: 1.6; }
body { margin: 0; padding-bottom: 5rem; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

.wrap { max-width: 960px; margin: 0 auto; padding: 0 1.15rem; }
.hero { padding: 1.8rem 0 0; border-bottom: 1px solid var(--rule); }
.top-bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 0.75rem; margin-bottom: 0.85rem; }
.city-badge { padding: 0.45rem 0.9rem; border-radius: 999px; background: #F5E6D3; color: #5C2814; font-weight: 700; font-size: 0.9rem; }
.help-btn { min-height: 48px; padding: 0.5rem 1rem; border-radius: 999px; border: 2px solid var(--gold); background: #FFF7E0; color: #3D2804; font-weight: 700; cursor: pointer; }

h1 { font-family: "DM Serif Display", Georgia, serif; font-weight: 400; font-size: clamp(2.1rem, 5vw, 3.2rem); margin: 0 0 0.65rem; line-height: 1.08; }
h2 { font-family: "DM Serif Display", Georgia, serif; font-weight: 400; font-size: clamp(1.55rem, 3.2vw, 2.15rem); margin: 0 0 0.5rem; }
h3 { font-size: 1.08rem; margin: 0 0 0.4rem; }
.lead, .sub { max-width: 68ch; color: var(--muted); margin: 0 0 1.25rem; }

.walkme-strip { padding: 1.1rem 1.25rem; background: #FFF8E6; border: 2px solid var(--gold); border-radius: 10px; margin-bottom: 1.25rem; }
.walkme-strip p { margin: 0.35rem 0 0.75rem; color: var(--muted); font-size: 0.94rem; }

.tabs { display: flex; flex-wrap: wrap; gap: 0.25rem 1.2rem; }
.tab { appearance: none; background: none; border: 0; border-bottom: 3px solid transparent; min-height: 48px; padding: 0.6rem 0; font-family: inherit; font-size: 0.96rem; font-weight: 600; color: var(--muted); cursor: pointer; }
.tab.is-active { color: var(--fg); border-bottom-color: var(--terra); }

.main { padding-top: 1.75rem; }
.photo-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1.75rem; }
.photo-duo img { width: 100%; height: 240px; object-fit: cover; border-radius: 10px; display: block; }

.catalog-grid, .service-grid, .tuner-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(275px, 1fr)); gap: 1rem; margin-bottom: 1.75rem; }
.card, .form-card { background: var(--card); border: 1px solid var(--rule); border-radius: 10px; padding: 1.25rem; }
.card p { color: var(--muted); font-size: 0.94rem; margin: 0 0 0.9rem; }
.tag-pill { display: inline-block; font-size: 0.78rem; font-weight: 700; padding: 0.2rem 0.6rem; border-radius: 999px; background: #F5E6D3; color: #5C2814; margin-bottom: 0.5rem; }

.btn-row, .city-switcher, .pick-row { display: flex; flex-wrap: wrap; gap: 0.55rem; }
.city-switcher { margin-bottom: 1.25rem; }
.city-chip, .pick-btn { min-height: 46px; padding: 0.45rem 0.9rem; border-radius: 8px; border: 1px solid var(--rule); background: var(--card); color: var(--fg); font-weight: 600; cursor: pointer; }
.city-chip.is-active, .pick-btn.is-selected { border-color: var(--terra); background: #FDEFE9; color: #6E2610; }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0.6rem 1.15rem; border-radius: 8px; border: 2px solid transparent; font-family: inherit; font-size: 0.95rem; font-weight: 700; cursor: pointer; }
.btn-primary { background: var(--terra); color: #FFF; }
.btn-gold { background: var(--gold); color: #1E1605; }
.btn-ghost { background: var(--card); border-color: var(--rule); color: var(--fg); }

input, textarea { width: 100%; min-height: 48px; padding: 0.6rem 0.8rem; margin-bottom: 0.75rem; border: 1px solid var(--rule); border-radius: 8px; font-family: inherit; font-size: 0.96rem; }
.ok-msg { display: inline-block; margin-left: 0.65rem; font-weight: 700; color: var(--sage); }

.float-help { position: fixed; right: 1rem; bottom: 1rem; min-height: 54px; padding: 0.7rem 1.2rem; border-radius: 999px; border: 2px solid #3D2804; background: var(--gold); color: #1E1605; font-weight: 700; box-shadow: 0 8px 20px rgba(0,0,0,0.22); cursor: pointer; z-index: 40; }
.foot { padding: 1.5rem 1.15rem 3rem; color: var(--muted); font-size: 0.85rem; border-top: 1px solid var(--rule); margin-top: 2rem; }

@media (max-width: 640px) { .photo-duo { grid-template-columns: 1fr; } }
