@font-face {
  font-family: Onest;
  src: url("fonts/onest-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: Onest;
  src: url("fonts/onest-cyrillic.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0400-052F, U+2DE0-2DFF, U+A640-A69F;
}

:root {
  color-scheme: light;
  --paper: #f7f4ee;
  --ink: #211f1b;
  --muted: #645d54;
  --line: #d7cfc2;
  --black: #191714;
  --hero-text: #fff7ea;
  --hero-muted: #e5d8cb;
  --orange: #ff7747;
  --orange-hover: #ff956d;
  --rust: #9a351b;
  --focus: #a63515;
  --photo-matte: #e2dad0;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scrollbar-color: var(--muted) var(--paper); }
body {
  margin: 0;
  min-width: 280px;
  background: var(--paper);
  color: var(--ink);
  font: 16px/1.56 Onest, sans-serif;
}
::selection { background: var(--orange); color: var(--black); }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { line-height: 1.06; letter-spacing: -.035em; }
h2 { font-size: clamp(35px, 4.1vw, 61px); font-weight: 680; }
a { color: inherit; text-decoration: none; text-underline-offset: .26em; }
button { font: inherit; color: inherit; cursor: pointer; }
img { display: block; max-width: 100%; height: auto; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }
summary { cursor: pointer; }
.wrap { width: min(1380px, calc(100% - 88px)); margin-inline: auto; }
.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 10;
  transform: translateY(-160%);
  background: var(--ink);
  color: var(--paper);
  padding: 10px 16px;
}
.skip-link:focus { transform: translateY(0); }
.screen-reader {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.site-header {
  min-height: 83px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
}
.wordmark {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
  font-size: 29px;
  font-weight: 820;
  letter-spacing: -.04em;
  line-height: 1;
}
.wordmark span {
  width: 9px;
  height: 9px;
  flex: 0 0 auto;
  border-radius: 50%;
  margin-top: .16em;
  background: var(--rust);
}
.site-nav { display: flex; gap: 31px; align-items: center; }
.site-nav a, .saved-link { font-weight: 600; font-size: 14px; }
.site-nav a { padding: 11px 0; }
.site-nav a:hover, .up-link:hover { text-decoration: underline; }
.saved-link {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  justify-self: end;
  background: none;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding-inline: 12px;
}
.saved-link:hover { border-color: var(--ink); }
.saved-link span {
  min-width: 22px;
  padding: 2px 5px;
  background: #eae2d6;
  border-radius: 4px;
  font-size: 12px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.hero {
  position: relative;
  isolation: isolate;
  min-height: clamp(450px, 45vw, 606px);
  display: flex;
  align-items: center;
  overflow: hidden;
  border-radius: 12px;
  background: var(--black);
  color: var(--hero-text);
}
.hero-image {
  position: absolute;
  z-index: -2;
  width: 100%;
  height: 100%;
  inset: 0;
  object-fit: cover;
  object-position: center 52%;
}
.hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(90deg, #17130fd4 0%, #17130fb5 38%, #17130f36 57%, transparent 73%);
}
.hero-copy { margin: 50px 0; padding-inline: clamp(34px, 5.8vw, 90px); }
.hero h1 { font-size: clamp(64px, 7vw, 96px); font-weight: 730; line-height: .98; letter-spacing: -.04em; }
.hero p {
  max-width: 32ch;
  margin-top: 24px;
  color: var(--hero-muted);
  font-size: clamp(16px, 1.55vw, 21px);
}
.main-action {
  min-height: 52px;
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  border: 0;
  border-radius: 6px;
  padding: 12px 19px;
  background: var(--orange);
  color: var(--black);
  font-size: 15px;
  font-weight: 710;
  transition: background .22s ease;
}
.hero .main-action { margin-top: 31px; }
.main-action:hover { background: var(--orange-hover); }
.hero a:focus-visible { outline-color: var(--hero-text); }
.arrow {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 3px;
  border-right: 2px solid currentColor;
  border-top: 2px solid currentColor;
  transform: rotate(45deg);
}

.catalog { padding-block: 68px 83px; scroll-margin-top: 20px; }
.catalog-toolbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px 24px;
  margin-bottom: 25px;
}
.filters { display: flex; flex-wrap: wrap; gap: 7px; }
.filters button, .category-links a {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: transparent;
  padding: 7px 13px;
  font-size: 14px;
  font-weight: 560;
}
.filters button:hover, .category-links a:hover { border-color: var(--ink); }
.filters button[aria-pressed="true"], .category-links a[aria-current="page"] {
  border-color: var(--ink); background: var(--ink); color: var(--paper);
}
.category-links a { display: inline-flex; align-items: center; }
.product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 38px 17px; }
.product { min-width: 0; scroll-margin-top: 24px; }
.product img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 12px;
  background: var(--photo-matte);
}
.product-body { padding-top: 14px; }
.product h3 { font-size: clamp(17px, 1.8vw, 24px); font-weight: 680; line-height: 1.17; }
.product p { margin-top: 6px; font-size: 14px; line-height: 1.45; color: var(--muted); }
.text-action {
  min-height: 42px;
  border: 0;
  background: transparent;
  padding: 5px 0;
  font-size: 14px;
  font-weight: 650;
  text-decoration: underline;
  text-underline-offset: .23em;
}
.text-action:hover, .text-action[aria-pressed="true"] { color: var(--rust); }

.guide {
  display: grid;
  grid-template-columns: .82fr 1.18fr;
  gap: 64px;
  padding-block: 52px 73px;
  border-top: 1px solid var(--line);
  scroll-margin-top: 18px;
}
.guide-intro p { max-width: 35ch; margin-top: 15px; color: var(--muted); }
.guide-rows { border-bottom: 1px solid var(--line); }
.guide-rows details { border-top: 1px solid var(--line); }
.guide-rows summary {
  min-height: 55px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding-block: 12px;
  font-size: 17px;
  font-weight: 660;
  line-height: 1.36;
  list-style: none;
}
.guide-rows summary::-webkit-details-marker { display: none; }
.guide-rows summary::after {
  content: "";
  width: 9px;
  height: 9px;
  flex: 0 0 auto;
  margin-right: 5px;
  border-bottom: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
}
.guide-rows details[open] summary::after { transform: rotate(225deg); }
.guide-rows details p { max-width: 67ch; padding-bottom: 19px; color: var(--muted); }
.site-footer {
  min-height: 94px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding-block: 18px;
}
.site-footer .wordmark { font-size: 22px; }
.site-footer .wordmark span { width: 7px; height: 7px; }
.site-footer p { font-size: 13px; color: var(--muted); }
.error-page { padding-block: clamp(65px, 12vw, 160px); }
.error-page h1 { font-size: clamp(42px, 6vw, 84px); }
.error-page p { margin-top: 20px; color: var(--muted); }
.error-page .main-action { margin-top: 24px; }

.underlined, .footer-nav a:hover, .product h3 a:hover { text-decoration: underline; }
.underlined { width: fit-content; font-weight: 640; }
.guide-intro .underlined { display: block; margin-top: 17px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 9px 19px; font-size: 14px; font-weight: 600; }
.footer-nav a { padding-block: 8px; }
.site-nav [aria-current="page"], .footer-nav [aria-current="page"], .tool-links [aria-current="page"] {
  text-decoration: underline;
}
.inner-page { padding-block: clamp(29px, 5vw, 70px) clamp(54px, 7vw, 100px); min-height: 56vh; }
.page-intro { margin-bottom: 34px; }
.page-intro h1, .detail-content h1 {
  max-width: 24ch;
  font-size: clamp(39px, 5.6vw, 79px);
  font-weight: 710;
  text-wrap: balance;
}
.page-intro p, .detail-summary { margin-top: 15px; max-width: 64ch; color: var(--muted); font-size: 17px; }
.breadcrumbs { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 18px; margin-bottom: 17px; }
.breadcrumbs a { color: var(--muted); text-decoration: underline; font-size: 14px; }
.category-links { margin-bottom: 19px; }
.catalog-form, .finder-form {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 17px;
  padding-block: 20px;
  margin-bottom: 27px;
  border-block: 1px solid var(--line);
}
.catalog-form label, .finder-form label, .shelf-controls label { display: grid; gap: 5px; font-size: 14px; font-weight: 640; }
.catalog-form label:first-child { flex: 0 1 350px; }
:is(.catalog-form, .finder-form, .shelf-controls) :is(input, select) {
  min-width: 0;
  width: 100%;
  min-height: 44px;
  padding: 8px 11px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fffdf9;
  color: var(--ink);
  font: inherit;
}
.catalog-results { align-items: baseline; margin-bottom: 18px; }
.catalog-results h2, .related h2 { font-size: clamp(28px, 3.2vw, 43px); }
.result-count { color: var(--muted); font-size: 14px; }
.outline-action {
  min-height: 44px;
  padding: 8px 14px;
  border: 1px solid var(--ink);
  background: transparent;
  border-radius: 6px;
  font-weight: 620;
  font-size: 14px;
}
.outline-action:hover:not(:disabled) { background: #efe7db; }
button:disabled { opacity: .62; cursor: default; }
.product-picture { display: block; }
.tool-links, .inline-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 19px; }
.tool-links { margin-top: 29px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 14px; }
.tool-links a { font-weight: 620; }
.tool-links a:hover { text-decoration: underline; }
.detail-layout { display: grid; grid-template-columns: .91fr 1.09fr; gap: clamp(28px, 5vw, 76px); align-items: start; }
.detail-photo img { width: 100%; border-radius: 12px; background: var(--photo-matte); }
.detail-content h1 { font-size: clamp(35px, 4.5vw, 62px); }
.spec-sheet { display: grid; grid-template-columns: minmax(105px, .43fr) 1fr; margin-block: 25px; font-size: 15px; }
.spec-sheet :is(dt, dd) { margin: 0; padding-block: 11px; border-top: 1px solid var(--line); }
.spec-sheet dt { font-weight: 680; padding-right: 10px; }
.detail-note, .action-state { margin-top: 17px; font-size: 15px; color: var(--muted); }
.action-state:empty { display: none; }
.action-state { color: var(--rust); }
.related { margin-top: clamp(42px, 6.2vw, 80px); }
.reading { max-width: 860px; }
.article-links { margin: 0; padding: 0; list-style: none; border-bottom: 1px solid var(--line); }
.article-links li { border-top: 1px solid var(--line); }
.article-links a { display: grid; gap: 5px; padding: 13px 0; }
.article-links strong { font-size: 18px; line-height: 1.32; }
.article-links a:hover strong { text-decoration: underline; }
.article-links span { color: var(--muted); font-size: 14px; }
.article-body { display: grid; gap: 28px; margin-bottom: 28px; }
.article-body h2 { font-size: clamp(24px, 3.1vw, 36px); margin-bottom: 10px; }
.article-body p { max-width: 68ch; }
.empty-surface { margin-top: 18px; padding: 18px 0; border-block: 1px solid var(--line); color: var(--muted); }
.shelf-actions { margin-bottom: 20px; }
.shelf-row { display: grid; grid-template-columns: 76px 1fr auto; gap: 14px; align-items: center; padding-block: 13px; border-block-start: 1px solid var(--line); }
.shelf-row img { width: 76px; border-radius: 6px; }
.shelf-row h2 { font-size: clamp(17px, 2.6vw, 23px); }
.shelf-row h2 a:hover { text-decoration: underline; }
.shelf-row p { margin-top: 6px; color: var(--muted); font-size: 14px; }
.shelf-controls { display: flex; align-items: end; gap: 13px; }
.shelf-controls input { max-width: 94px; }
.comparison-scroll { overflow-x: auto; border-block: 1px solid var(--line); }
.comparison-hint { display: none; margin-bottom: 9px; color: var(--muted); font-size: 14px; }
.comparison { width: 100%; border-collapse: collapse; text-align: left; font-size: 15px; }
.comparison :is(th, td) { padding: 12px 10px; min-width: 145px; vertical-align: top; border-bottom: 1px solid var(--line); }
.comparison td { white-space: normal; }
.comparison thead a { text-decoration: underline; }
.local-notice { border-left: 1px solid var(--rust); padding: 10px 15px; margin-top: 9px; background: #f1e7da; }
.local-notice p { max-width: 70ch; }
.clear-data { border-top: 1px solid var(--line); padding-block: 15px; }
.clear-data p { margin-block: 13px; }

@media (max-width: 1020px) {
  .wrap { width: calc(100% - 58px); }
  .hero-copy { padding-inline: 39px; }
  .hero h1 { font-size: clamp(58px, 8vw, 85px); }
  .product-grid { gap: 32px 14px; }
  .guide { gap: 33px; }
}

@media (max-width: 740px) {
  .wrap { width: calc(100% - 32px); }
  .site-header { grid-template-columns: 1fr auto; gap: 5px 12px; padding-top: 12px; }
  .site-nav { grid-row: 2; grid-column: 1 / -1; gap: 22px; }
  .site-nav a { padding: 10px 0 13px; }
  .saved-link { grid-row: 1; grid-column: 2; }
  .hero { display: block; min-height: 0; }
  .hero::before { display: none; }
  .hero-image { position: relative; z-index: 0; height: auto; aspect-ratio: 1.9; object-position: right 55%; }
  .hero-copy { margin: 0; padding: 23px 22px 29px; }
  .hero h1 { font-size: clamp(44px, 10.1vw, 74px); }
  .hero p { margin-top: 16px; }
  .hero .main-action { margin-top: 22px; }
  .catalog { padding-block: 47px 55px; }
  .catalog-toolbar { gap: 14px; margin-bottom: 19px; }
  .filters { gap: 6px; }
  .filters button, .category-links a { padding-inline: 9px; font-size: 13px; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 23px 12px; }
  .product-body { padding-top: 12px; }
  .product p { font-size: 13px; }
  .guide { grid-template-columns: 1fr; gap: 21px; padding-block: 37px 46px; }
  .guide-intro p { margin-top: 10px; }
  .site-footer { justify-content: start; flex-wrap: wrap; column-gap: 23px; row-gap: 6px; padding-block: 18px; }
  .site-footer p { order: 1; flex-basis: 100%; }
  .site-header { column-gap: 8px; }
  .site-nav { grid-column: 1 / -1; }
  .finder-form, .detail-layout { display: grid; grid-template-columns: 1fr; }
  .catalog-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; }
  .catalog-form label:first-child { grid-column: 1 / -1; }
  .catalog-form button, .finder-form button { justify-self: start; }
  .detail-photo { max-width: 520px; }
  .shelf-row { grid-template-columns: 62px minmax(0,1fr); }
  .shelf-row img { width: 62px; }
  .shelf-controls { grid-column: 2; }
  .comparison-hint { display: block; }
  .comparison tr > th:first-child { position: sticky; left: 0; min-width: 122px; background: var(--paper); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
