:root {
  color-scheme: light;
  --page: #f5f5f0;
  --paper: #fff;
  --ink: #171918;
  --muted: #5f6560;
  --line: #dbded7;
  --blue: #243bdb;
  --dark-blue: #192bb6;
  --lime: #e3faac;
  --ease: cubic-bezier(.23, 1, .32, 1);
  font-family: "Avenir Next", Inter, system-ui, sans-serif;
  font-size: 16px;
  color: var(--ink);
  background: var(--page);
  accent-color: var(--blue);
  scroll-padding-top: 24px;
  scrollbar-gutter: stable;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
[hidden] { display: none !important; }
::selection { color: #192d75; background: var(--lime); }
:focus-visible { outline: 2px solid #233bd3; outline-offset: 4px; }
a { color: inherit; text-underline-offset: 4px; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: wait; }
svg { flex: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.shell { width: min(1120px, calc(100% - 80px)); margin-inline: auto; }
.top { border-bottom: 1px solid var(--line); }
.top-inner { height: 74px; display: flex; justify-content: space-between; align-items: center; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 23px; font-weight: 750; letter-spacing: -.04em; text-decoration: none; }
.top-link { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; text-decoration: none; }
.top-link:hover { text-decoration: underline; }
.top-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 15px; }
.top-link svg { width: 18px; height: 18px; stroke: var(--blue); fill: none; stroke-width: 1.7; }

.hero {
  isolation: isolate;
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr);
  align-items: center;
  margin-top: 32px;
  min-height: 398px;
  border-radius: 16px;
  overflow: hidden;
  background: var(--blue);
  color: var(--paper);
}
.hero-content { padding: 44px 0 42px 48px; z-index: 1; }
.hero h1 { margin: 0; font-size: clamp(44px, 5.8vw, 75px); line-height: .99; font-weight: 750; letter-spacing: -.04em; }
.hero p { margin: 22px 0 24px; max-width: 40ch; color: #f0f2ff; font-size: 17px; line-height: 1.5; }
.hero-art { display: grid; place-items: center; padding: 0 33px 0 17px; }
.hero-art svg { display: block; width: 100%; max-width: 385px; height: auto; overflow: visible; }
.hero :focus-visible { outline-color: var(--lime); }
.search { display: flex; align-items: center; gap: 10px; max-width: 585px; min-height: 61px; padding: 6px 6px 6px 16px; background: var(--paper); color: var(--ink); border-radius: 10px; }
.search:focus-within { outline: 2px solid var(--lime); outline-offset: 3px; }
.search > svg { width: 21px; height: 21px; fill: none; stroke: #53605a; stroke-width: 1.7; stroke-linecap: round; }
.search input { min-width: 0; flex: 1; width: 100%; height: 42px; padding: 0 3px; border: none; background: transparent; outline: none; }
.search input::placeholder { color: #595f5b; opacity: 1; }
.search button { min-height: 49px; flex: none; border: 0; border-radius: 7px; padding: 0 20px; color: #16231a; background: var(--lime); font-weight: 750; white-space: nowrap; transition: transform 140ms var(--ease); }
.search button:hover { background: #d7f789; }
.search button:active { transform: scale(.97); }
.search button:focus-visible { outline-color: var(--blue); outline-offset: 2px; }
.search button:disabled { background: #edf1e5; color: #3b4538; }
.examples { max-width: 585px; margin-top: 14px; }
.example-set { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px 8px; }
.example-set button { min-height: 36px; padding: 6px 10px; border: 1px solid #a7b3ff; border-radius: 999px; background: transparent; color: var(--paper); font-size: 14px; line-height: 1.25; }
.example-set button:hover { background: #1a2cbb; }
#examples-toggle { min-height: 32px; margin-top: 4px; padding: 0 3px; border: 0; background: transparent; color: #f0f2ff; font-size: 13px; text-decoration: underline; text-underline-offset: 3px; }
#examples-toggle:hover { color: var(--lime); }

.shops, .results { margin-top: 44px; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 14px; margin-bottom: 17px; }
.section-head h2 { margin: 0; font-size: 34px; font-weight: 750; line-height: 1.13; letter-spacing: -.035em; overflow-wrap: anywhere; }
.section-head p { margin: 7px 0 0; color: var(--muted); font-size: 14px; line-height: 1.5; }
.section-head p:empty { display: none; }
.section-count { color: var(--muted); font-size: 13px; text-align: right; flex: none; }
.shop-list, #offers { list-style: none; margin: 0; padding: 0; }
.shop-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 28px; }
.shop-list > li { min-width: 0; position: relative; border-top: 1px solid var(--line); }
.shop-link { display: grid; grid-template-columns: 39px 1fr 16px; min-height: 83px; align-items: center; gap: 10px; padding: 8px 1px; text-decoration: none; }
.shop-link:hover .shop-name { text-decoration: underline; }
.shop-mark { display: grid; place-items: center; width: 39px; height: 39px; border: 1px solid #dbe0f4; border-radius: 9px; color: #24378e; background: #eef0fb; font-size: 15px; font-weight: 750; letter-spacing: -.03em; }
.shop-name, .shop-address, .shop-state { display: block; }
.shop-name { font-weight: 700; font-size: 15px; }
.shop-address, .shop-state { color: var(--muted); font-size: 12px; line-height: 1.4; }
.shop-address { margin-top: 3px; }
.shop-state { margin-top: 4px; }
.shop-reviews { margin: 0 0 11px 49px; font-size: 13px; }
.review-toggle { width: fit-content; padding-block: 5px; color: var(--blue); font-weight: 650; cursor: pointer; }
.review-toggle:hover, .review-link:hover { text-decoration: underline; }
.review-rating { margin-left: 7px; color: var(--muted); font-size: 12px; font-weight: 550; white-space: nowrap; }
.review-content { margin-top: 6px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 9px; background: var(--paper); }
.review-source, .review-date { color: var(--muted); font-size: 12px; }
.review-source, .review-label, .review-empty { margin: 0; line-height: 1.45; }
.review-label { margin-top: 9px; font-size: 12px; font-weight: 700; }
.review-excerpts { display: grid; gap: 6px; margin: 5px 0 10px; padding: 0; list-style: none; }
.review-excerpts li { display: flex; align-items: baseline; gap: 6px; line-height: 1.4; }
.review-excerpts p { margin: 0; }
.review-score { flex: none; color: var(--muted); white-space: nowrap; }
.review-empty { margin: 6px 0 9px; color: var(--muted); font-size: 13px; }
.review-link { color: var(--blue); font-weight: 650; }
.review-date { display: block; margin-top: 5px; }
.offer-reputation { color: var(--blue); font-size: 12px; font-weight: 650; line-height: 1.3; white-space: nowrap; }
.shop-state[data-state="found"] { color: #275915; }
.shop-state[data-state="partial"], .shop-state[data-state="unavailable"] { color: #8c481a; }
.arrow { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.7; color: var(--blue); }

.secondary { flex: none; display: inline-flex; gap: 7px; align-items: center; justify-content: center; min-height: 42px; padding: 7px 13px; background: var(--paper); border: 1px solid var(--line); border-radius: 8px; font-size: 14px; font-weight: 690; }
.secondary:hover { border-color: var(--blue); color: var(--blue); }
.secondary svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.progress { margin: -8px 0 12px; }
.progress progress { display: block; width: 100%; height: 5px; border: none; border-radius: 3px; overflow: hidden; background: #dfe3ee; appearance: none; }
progress::-webkit-progress-bar { background: #dfe3ee; }
progress::-webkit-progress-value { background: var(--blue); }
progress::-moz-progress-bar { background: var(--blue); }
.notice { margin: 0 0 13px; padding: 13px 16px; border-radius: 8px; border: 1px solid var(--line); color: #465049; background: var(--paper); font-size: 14px; line-height: 1.5; }
#filters { display: grid; grid-template-columns: minmax(0, 1fr) auto; margin-bottom: 14px; font-size: 14px; }
#filter-panel { grid-column: 1 / -1; grid-row: 1; min-height: 42px; }
#filter-panel summary { width: max-content; list-style: none; cursor: pointer; }
#filter-panel summary::-webkit-details-marker { display: none; }
#filter-panel[open] summary { color: var(--blue); border-color: #a4afe8; }
.filter-count { min-width: 20px; border-radius: 99px; padding: 2px 5px; text-align: center; background: #e9edff; color: #22388c; font-size: 12px; }
.sort-input { grid-column: 2; grid-row: 1; align-self: start; z-index: 1; display: inline-flex; align-items: center; gap: 8px; }
.filter-fields { margin-top: 10px; padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); }
.filter-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px 16px; }
.price-filter, .shop-filter { min-width: 0; margin: 0; padding: 0; border: 0; }
.price-filter legend, .shop-filter legend { padding: 0; line-height: 1.4; font-weight: 700; }
.price-inputs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 6px; }
.filter-choice { display: grid; align-content: start; gap: 6px; min-width: 0; line-height: 1.4; font-weight: 700; }
#filters select, #filters input[type="number"] { min-width: 0; max-width: 100%; min-height: 42px; padding: 5px 9px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); font-size: 14px; font-weight: 520; }
.filter-choice select, .price-inputs input { width: 100%; }
#filters input[aria-invalid="true"] { border-color: #985327; }
.price-error { margin: 9px 0 0; color: #8c481a; }
.shop-filter { margin: 16px 0 12px; padding-top: 2px; }
.store-options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px 14px; margin-top: 5px; }
.store-option { display: flex; align-items: center; min-height: 34px; gap: 7px; line-height: 1.2; overflow-wrap: anywhere; }
.store-option input { flex: none; width: 17px; height: 17px; margin: 0; }
#reset-filters:disabled { opacity: .48; cursor: default; }
.offer-list { border: 1px solid var(--line); border-radius: 14px; background: var(--paper); }
.table-head, .offer { display: grid; grid-template-columns: minmax(0, 1fr) minmax(120px, .34fr) minmax(138px, .3fr); gap: 16px; padding: 12px 18px; }
.table-head { color: var(--muted); font-size: 13px; font-weight: 600; }
.table-head > :last-child, .offer-price { text-align: right; }
.offer { align-items: center; min-height: 98px; border-top: 1px solid var(--line); }
.offer-summary { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 15px; align-items: start; min-width: 0; }
.offer-photo { display: grid; place-items: center; aspect-ratio: 1; align-self: start; overflow: hidden; border: 1px solid var(--line); border-radius: 9px; background: var(--paper); }
.offer-photo img { display: block; width: 100%; height: 100%; padding: 5px; object-fit: contain; }
.photo-empty { padding-inline: 4px; color: var(--muted); font-size: 12px; line-height: 1.15; text-align: center; }
.offer-specs { display: flex; flex-wrap: wrap; gap: 3px 12px; margin: 3px 0 5px; font-size: 12px; line-height: 1.3; }
.offer-specs div { display: inline-flex; gap: 4px; flex-wrap: wrap; }
.offer-specs dt { color: var(--muted); }
.offer-specs dd { margin: 0; color: #313a34; font-weight: 625; }
.offer-time { display: block; margin-top: 6px; color: var(--muted); font-size: 12px; line-height: 1.35; }
.offer-store { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: 16px; font-weight: 750; }
.offer-title { display: inline-block; margin: 3px 0; color: #343c38; font-size: 14px; line-height: 1.36; font-weight: 590; overflow-wrap: anywhere; }
.offer-title:hover { color: var(--blue); }
.offer-title .arrow { width: 14px; height: 14px; margin-left: 4px; vertical-align: text-bottom; }
.offer-address, .offer-payment { display: block; color: var(--muted); font-size: 12px; line-height: 1.35; }
.offer-payment { margin-top: 4px; }
.offer-price strong { font-size: 23px; font-variant-numeric: tabular-nums; white-space: nowrap; letter-spacing: -.03em; }
.offer-price-line { display: flex; justify-content: end; align-items: center; gap: 7px; }
.history-button { display: inline-grid; place-items: center; flex: 0 0 auto; width: 35px; height: 35px; padding: 0; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); color: var(--dark-blue); }
.history-button svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.history-button:hover { border-color: var(--blue); background: #f6f7ff; }
.section-head .market-context { margin-top: 4px; }
.market-rate { color: var(--dark-blue); white-space: nowrap; }
.price-history { max-width: 640px; width: calc(100% - 30px); max-height: calc(100% - 36px); margin: auto; padding: clamp(15px, 4vw, 24px); border: 1px solid var(--line); border-radius: 14px; color: var(--ink); background: var(--paper); }
.price-history::backdrop { background: #151d29a1; }
.history-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.history-head h2 { margin: 0; font-size: clamp(1.3rem, 4vw, 1.6rem); letter-spacing: -.025em; }
.history-item { margin: 8px 0 13px; line-height: 1.39; overflow-wrap: anywhere; }
.history-current { display: flex; align-items: baseline; flex-wrap: wrap; gap: 5px 12px; margin-bottom: 10px; }
.history-current strong { font-size: 1.5rem; letter-spacing: -.02em; }
.history-current span, .history-subtle { color: var(--muted); font-size: .875rem; line-height: 1.45; }
.history-figure { margin: 0; }
.history-plot { display: block; width: 100%; height: auto; overflow: visible; }
.history-axis { font-size: 18px; fill: var(--muted); font-variant-numeric: tabular-nums; }
.history-grid { stroke: var(--line); stroke-width: 1; }
.history-line { fill: none; stroke: var(--blue); stroke-width: 2.5; stroke-linejoin: round; }
.history-dot { fill: var(--blue); }
.history-outlook { margin: 12px 0; font-size: .94rem; line-height: 1.45; }
.history-dates { border-top: 1px solid var(--line); padding-top: 11px; font-size: .875rem; }
.history-dates summary { color: var(--dark-blue); cursor: pointer; }
.history-dates ul { padding: 0; list-style: none; }
.history-dates li { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; }
.offer-stock { font-size: 13px; line-height: 1.35; color: var(--muted); }
.offer-stock[data-state="in_stock"] { color: #275915; }
.offer-stock[data-state="out"] { color: #8a4f27; }
.lowest { padding: 3px 7px; border-radius: 999px; background: #e9f7d3; color: #314f1f; font-size: 11px; font-weight: 700; }
footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; margin-top: 29px; border-top: 1px solid var(--line); padding: 17px 0 25px; color: var(--muted); font-size: 13px; }
.dot { display: inline-block; width: 7px; height: 7px; margin: 0 5px 1px 0; border-radius: 50%; background: #4c6b21; }

@media (max-width: 900px) {
  .shell { width: min(100% - 48px, 1120px); }
  .hero-content { padding-left: 32px; }
  .hero-art { padding-right: 16px; padding-left: 6px; }
  .shop-list { column-gap: 18px; }
}
@media (max-width: 720px) {
  .top-inner { height: 61px; }
  .hero { grid-template-columns: minmax(0, 1fr); min-height: 0; margin-top: 22px; }
  .hero-content { padding: 31px 28px; }
  .hero h1 { font-size: clamp(41px, 8.4vw, 58px); max-width: 13ch; }
  .hero p { margin: 17px 0 20px; }
  .hero-art { position: absolute; z-index: -1; right: -65px; top: -31px; width: 240px; opacity: .24; padding: 0; }
  .shop-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 490px) {
  .shell { width: calc(100% - 28px); }
  .top-link { font-size: 12px; gap: 5px; }
  .brand { font-size: 21px; gap: 7px; }
  .brand img { width: 30px; height: 30px; }
  .hero-content { padding: 27px 16px 22px; }
  .hero h1 { font-size: clamp(32px, 9.5vw, 46px); }
  .hero p { font-size: 15px; max-width: 34ch; }
  .hero-art { right: -60px; width: 170px; top: -27px; opacity: .22; }
  .search { min-height: 54px; gap: 5px; padding-left: 9px; }
  .search > svg { width: 18px; height: 18px; }
  .search button { min-height: 42px; padding-inline: 10px; font-size: 13px; }
  .example-set { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .example-set button { min-height: 36px; padding-inline: 8px; font-size: 13px; }
  .shops, .results { margin-top: 29px; }
  .section-head { align-items: start; margin-bottom: 12px; }
  .section-head h2 { font-size: 27px; }
  .results .section-head { flex-wrap: wrap; gap: 9px; }
  .results .section-head > div { flex-basis: 100%; }
  .section-head p { font-size: 13px; }
  .shop-list { grid-template-columns: 1fr; }
  .shop-link { min-height: 65px; }
  .section-count { margin-top: 5px; }
  .filter-fields { padding: 12px; }
  .filter-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .price-filter { grid-column: 1 / -1; }
  .store-options { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 8px; }
  .sort-caption { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  #filters select, #filters input[type="number"] { font-size: 16px; }
  #filters .sort-input select { min-height: 36px; font-size: 16px; }
  .table-head { display: none; }
  .offer { grid-template-columns: minmax(0, 1fr) auto; padding: 10px 12px; gap: 7px 10px; }
  .offer:first-child { border-top: none; }
  .offer-store { font-size: 14px; }
  .offer-title { font-size: 13px; }
  .offer-summary { grid-column: 1 / -1; grid-row: 1; grid-template-columns: 51px minmax(0, 1fr); gap: 10px; }
  .offer-photo img { padding: 3px; }
  .offer-specs { gap: 2px 8px; }
  .offer-time { font-size: 11px; }
  .offer-price { grid-column: 2; grid-row: 2; align-self: start; max-width: 132px; }
  .offer-price strong { font-size: 19px; }
  .offer-price-line { gap: 4px; }
  .offer-price-line .history-button { width: 32px; height: 34px; }
  .offer-stock { grid-column: 1; grid-row: 2; margin-left: 61px; text-align: left; font-size: 12px; align-self: start; }
  .offer-address, .offer-payment { font-size: 11px; }
  .secondary { min-height: 36px; padding: 6px 8px; font-size: 12px; gap: 4px; }
  .secondary svg { width: 14px; height: 14px; }
}
@media (max-width: 380px) {
  .top-inner .top-nav a[href="#shops"] { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
