@font-face {
  font-family: "Unbounded";
  src: url("../fonts/unbounded-cyrillic.woff2") format("woff2");
  font-style: normal;
  font-weight: 600 700;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: "Unbounded";
  src: url("../fonts/unbounded-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 600 700;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+2000-206F, U+20AC, U+2122, U+2212, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Golos Text";
  src: url("../fonts/golos-text-cyrillic.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: "Golos Text";
  src: url("../fonts/golos-text-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+2000-206F, U+20AC, U+2122, U+2212, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "IBM Plex Mono";
  src: url("../fonts/ibm-plex-mono-cyrillic.woff2") format("woff2");
  font-style: normal;
  font-weight: 500 600;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: "IBM Plex Mono";
  src: url("../fonts/ibm-plex-mono-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 500 600;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+2000-206F, U+20AC, U+2122, U+2212, U+FEFF, U+FFFD;
}

:root {
  --cold-shelf: #f3f6f4;
  --aubergine-ink: #26182b;
  --shelf-ticket: #ffd52e;
  --rank-tomato: #ef4938;
  --fresh-herb: #267a58;
  --cold-blue: #4967e8;
  --white: #fff;
  --line: 2px solid var(--aubergine-ink);
  --shadow: 7px 7px 0 var(--aubergine-ink);
  --page-pad: clamp(18px, 4vw, 64px);
  --display: "Unbounded", "Arial Black", sans-serif;
  --body: "Golos Text", Arial, sans-serif;
  --data: "IBM Plex Mono", "Courier New", monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cold-shelf);
  color: var(--aubergine-ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.45;
}

a { color: inherit; }

img { display: block; max-width: 100%; }

button, input { font: inherit; }

.skip-link {
  position: fixed;
  z-index: 100;
  left: 12px;
  top: 12px;
  padding: 10px 14px;
  background: var(--shelf-ticket);
  border: var(--line);
  transform: translateY(-180%);
}

.skip-link:focus { transform: translateY(0); }

:focus-visible {
  outline: 4px solid var(--shelf-ticket);
  outline-offset: 4px;
}

.site-header {
  min-height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 18px var(--page-pad);
  border-bottom: var(--line);
  background: rgba(243, 246, 244, 0.95);
}

.brand {
  display: inline-flex;
  align-items: baseline;
  font-family: var(--display);
  font-size: clamp(17px, 2vw, 25px);
  font-weight: 700;
  letter-spacing: -0.08em;
  text-decoration: none;
}

.brand-mark {
  display: inline-block;
  margin-right: 0.14em;
  padding: 0.16em 0.24em 0.13em;
  background: var(--shelf-ticket);
  letter-spacing: -0.1em;
  transform: rotate(-1.5deg);
}

.site-nav { display: flex; gap: clamp(18px, 3vw, 42px); }

.site-nav a, .back-link {
  font-weight: 600;
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}

.search-hero {
  padding: clamp(52px, 9vw, 136px) var(--page-pad) 44px;
  border-bottom: var(--line);
}

.eyebrow, .product-category, .ticket-label {
  margin: 0 0 12px;
  font-family: var(--data);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.search-hero h1 {
  max-width: 1100px;
  margin: 0 0 clamp(34px, 6vw, 72px);
  font-family: var(--display);
  font-size: clamp(35px, 6.5vw, 92px);
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: -0.07em;
}

.search-hero h1 span { color: var(--cold-blue); }

.search-form > label {
  display: block;
  margin-bottom: 9px;
  font-weight: 600;
}

.search-control {
  display: grid;
  grid-template-columns: 32px 1fr auto;
  align-items: center;
  min-height: 76px;
  background: var(--white);
  border: var(--line);
  box-shadow: var(--shadow);
}

.search-control svg {
  width: 25px;
  margin-left: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 2;
}

.search-control input {
  min-width: 0;
  height: 72px;
  padding: 0 18px;
  color: var(--aubergine-ink);
  background: transparent;
  border: 0;
  font-size: clamp(18px, 2vw, 27px);
  font-weight: 500;
  outline: 0;
}

.search-control input::placeholder { color: #7f7781; }

.search-control button, .button-link {
  display: inline-grid;
  min-height: 48px;
  place-items: center;
  padding: 0 24px;
  background: var(--shelf-ticket);
  color: var(--aubergine-ink);
  border: 0;
  border-left: var(--line);
  font-family: var(--data);
  font-weight: 600;
  cursor: pointer;
}

.category-strip {
  display: flex;
  gap: 10px;
  margin-top: 30px;
  padding: 6px 7px 12px 2px;
  overflow-x: auto;
  scrollbar-color: var(--aubergine-ink) transparent;
}

.category-chip {
  flex: 0 0 auto;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 15px;
  border: 1.5px solid var(--aubergine-ink);
  border-radius: 999px;
  background: var(--white);
  font-weight: 600;
  cursor: pointer;
}

.category-chip input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.category-chip span { font-family: var(--data); font-size: 11px; }

.category-chip.is-active, .category-chip:has(input:checked) {
  background: var(--aubergine-ink);
  color: var(--white);
}

.category-chip:has(input:focus-visible) { outline: 4px solid var(--shelf-ticket); }

.catalog-results { padding: 38px var(--page-pad) clamp(80px, 10vw, 150px); }

.result-heading {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 20px;
  margin-bottom: 24px;
}

.result-count { margin: 0; font-family: var(--data); font-size: 13px; }

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(20px, 2.6vw, 38px);
}

.product-card {
  min-width: 0;
  animation: shelf-in 420ms both cubic-bezier(0.2, 0.8, 0.2, 1);
  animation-delay: min(calc(var(--card-index) * 45ms), 360ms);
}

@keyframes shelf-in {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

.product-card-link {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: var(--line);
  box-shadow: 5px 5px 0 var(--aubergine-ink);
  text-decoration: none;
  transition: transform 140ms ease, box-shadow 140ms ease;
}

.product-card-link:hover {
  transform: translate(-2px, -2px);
  box-shadow: 8px 8px 0 var(--aubergine-ink);
}

.product-visual { position: relative; aspect-ratio: 1 / 0.92; overflow: hidden; border-bottom: var(--line); }

.product-visual img { width: 100%; height: 100%; object-fit: cover; transition: transform 240ms ease; }

.product-card-link:hover .product-visual img { transform: scale(1.025); }

.product-placeholder {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  background:
    linear-gradient(135deg, transparent 47%, var(--aubergine-ink) 48%, var(--aubergine-ink) 52%, transparent 53%),
    var(--shelf-ticket);
}

.product-placeholder span {
  display: grid;
  width: 34%;
  aspect-ratio: 1;
  place-items: center;
  background: var(--cold-shelf);
  border: var(--line);
  border-radius: 50%;
  font-family: var(--display);
  font-size: clamp(30px, 5vw, 66px);
}

.rank-tab {
  position: absolute;
  top: 14px;
  left: -2px;
  min-width: 80px;
  padding: 8px 12px 9px;
  background: var(--rank-tomato);
  color: var(--white);
  font-family: var(--display);
  font-size: clamp(22px, 3vw, 36px);
  font-weight: 700;
  line-height: 1;
  box-shadow: 4px 4px 0 var(--aubergine-ink);
  transform: rotate(-1.5deg);
}

.rank-tab small { display: block; margin-bottom: 4px; font-family: var(--data); font-size: 8px; letter-spacing: 0.08em; text-transform: uppercase; }

.product-copy { flex: 1; padding: 20px 18px 22px; }

.product-category { color: var(--cold-blue); }

.product-copy h2 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(18px, 1.7vw, 25px);
  line-height: 1.13;
  letter-spacing: -0.045em;
}

.product-description { margin: 12px 0 0; color: #625968; }

.review-ticket {
  min-height: 94px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: end;
  padding: 14px 16px;
  background: var(--shelf-ticket);
  border-top: var(--line);
  font-family: var(--data);
}

.review-ticket time { display: block; font-size: 13px; font-weight: 600; }

.review-age { display: block; margin-top: 3px; font-size: 10px; }

.ticket-purchase { max-width: 128px; text-align: right; }

.ticket-purchase strong, .ticket-purchase span { display: block; }

.ticket-purchase strong { font-size: 15px; }

.ticket-purchase span { margin-top: 3px; font-size: 9px; }

.empty-state {
  min-height: 340px;
  display: grid;
  place-items: center;
  align-content: center;
  padding: 40px;
  border: var(--line);
  background: var(--white);
  text-align: center;
}

.empty-state > span { font-family: var(--display); font-size: 72px; color: var(--rank-tomato); }
.empty-state h2 { margin: 10px 0 0; font-family: var(--display); }
.empty-state p { max-width: 460px; }

.breadcrumbs { display: flex; gap: 12px; padding: 28px var(--page-pad); font-weight: 600; }

.product-page {
  display: grid;
  grid-template-columns: minmax(320px, 0.9fr) minmax(380px, 1.1fr);
  gap: clamp(36px, 7vw, 110px);
  padding: 28px var(--page-pad) clamp(70px, 10vw, 140px);
}

.product-page-visual { aspect-ratio: 1; border: var(--line); box-shadow: var(--shadow); }
.product-page-visual img { width: 100%; height: 100%; object-fit: cover; }
.product-placeholder-large span { font-size: clamp(62px, 10vw, 140px); }

.product-page-header { align-self: center; }
.product-page-header h1, .category-hero h1 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(42px, 7vw, 100px);
  line-height: 0.98;
  letter-spacing: -0.07em;
  overflow-wrap: anywhere;
}

.latest-verdict {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 5px 14px;
  margin-top: 34px;
  padding: 18px;
  background: var(--shelf-ticket);
  border: var(--line);
  box-shadow: 5px 5px 0 var(--aubergine-ink);
  font-family: var(--data);
}

.rank-inline { grid-row: 1 / 4; align-self: center; font-family: var(--display); font-size: 38px; color: var(--rank-tomato); }
.latest-verdict time { font-weight: 600; }
.latest-verdict small { font-size: 11px; }
.lead-verdict { max-width: 650px; margin: 32px 0 0; font-size: clamp(19px, 2vw, 27px); line-height: 1.35; }

.history { padding: clamp(60px, 9vw, 130px) var(--page-pad); background: var(--aubergine-ink); color: var(--white); }
.history-heading { max-width: 1100px; margin: 0 auto 50px; }
.history-heading h2 { margin: 0; font-family: var(--display); font-size: clamp(32px, 5vw, 70px); letter-spacing: -0.06em; }
.history-list { max-width: 1100px; margin: 0 auto; padding: 0; list-style: none; }
.history-item { position: relative; display: grid; grid-template-columns: 28px 1fr; gap: 22px; padding-bottom: 28px; }
.history-item:not(:last-child)::before { content: ""; position: absolute; left: 8px; top: 22px; bottom: -4px; width: 2px; background: var(--shelf-ticket); }
.history-marker { position: relative; z-index: 1; width: 18px; height: 18px; margin-top: 25px; background: var(--rank-tomato); border: 3px solid var(--white); border-radius: 50%; }
.history-ticket { padding: clamp(20px, 3vw, 34px); background: var(--shelf-ticket); color: var(--aubergine-ink); border: 2px solid var(--white); box-shadow: 6px 6px 0 var(--white); }
.history-ticket header { display: flex; justify-content: space-between; gap: 30px; }
.history-ticket time { display: block; font-family: var(--data); font-size: clamp(18px, 2.3vw, 30px); font-weight: 600; }
.history-ticket small { font-family: var(--data); }
.history-rank { font-family: var(--display); font-size: clamp(32px, 5vw, 70px); color: var(--rank-tomato); }
.history-ticket > p { max-width: 820px; margin: 25px 0; font-size: clamp(18px, 2vw, 25px); }
.purchase-facts { display: flex; flex-wrap: wrap; gap: 14px 40px; margin: 24px 0 0; padding-top: 20px; border-top: 1px solid currentColor; }
.purchase-facts div { min-width: 150px; }
.purchase-facts dt { font-family: var(--data); font-size: 10px; text-transform: uppercase; }
.purchase-facts dd { margin: 4px 0 0; font-weight: 700; }
.source-link { display: inline-block; min-height: 44px; margin-top: 24px; font-weight: 700; text-underline-offset: 5px; }

.category-hero { padding: clamp(50px, 9vw, 120px) var(--page-pad); border-bottom: var(--line); }
.category-hero .back-link { display: inline-block; margin-bottom: 70px; }
.category-hero h1 { max-width: 1100px; }

.not-found { min-height: 70vh; display: grid; place-items: center; align-content: center; padding: var(--page-pad); text-align: center; }
.not-found > span { font-family: var(--display); font-size: clamp(72px, 18vw, 240px); line-height: 0.8; color: var(--rank-tomato); }
.not-found h1 { margin: 35px 0 0; font-family: var(--display); }
.not-found .button-link { margin-top: 20px; border: var(--line); text-decoration: none; }

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  padding: 32px var(--page-pad);
  background: var(--shelf-ticket);
  border-top: var(--line);
  font-size: 13px;
  font-weight: 600;
}

.site-footer p { margin: 0; }

@media (max-width: 1100px) {
  .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 800px) {
  .site-nav { display: none; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .product-page { grid-template-columns: 1fr; }
  .product-page-visual { max-width: 620px; }
}

@media (max-width: 520px) {
  .site-header { min-height: 72px; }
  .search-hero { padding-top: 48px; }
  .search-control { grid-template-columns: 30px 1fr; box-shadow: 4px 4px 0 var(--aubergine-ink); }
  .search-control input { height: 66px; padding-right: 10px; }
  .search-control button { grid-column: 1 / -1; min-height: 48px; border-top: var(--line); border-left: 0; }
  .product-grid { grid-template-columns: 1fr; gap: 28px; }
  .product-visual { aspect-ratio: 1.15; }
  .review-ticket { min-height: 88px; }
  .history-item { grid-template-columns: 18px 1fr; gap: 13px; }
  .history-marker { width: 14px; height: 14px; border-width: 2px; }
  .history-item:not(:last-child)::before { left: 6px; }
  .history-ticket { box-shadow: 4px 4px 0 var(--white); }
  .history-ticket header { gap: 12px; }
  .purchase-facts { display: grid; }
  .site-footer { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
