@font-face { font-family: "Literata"; src: url("../fonts/literata-cyrillic-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Literata"; src: url("../fonts/literata-latin-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Literata"; src: url("../fonts/literata-cyrillic-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Literata"; src: url("../fonts/literata-latin-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Literata"; src: url("../fonts/literata-cyrillic-700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Literata"; src: url("../fonts/literata-latin-700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Literata"; src: url("../fonts/literata-cyrillic-400i.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Literata"; src: url("../fonts/literata-latin-400i.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Manrope"; src: url("../fonts/manrope-cyrillic-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Manrope"; src: url("../fonts/manrope-latin-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Manrope"; src: url("../fonts/manrope-cyrillic-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Manrope"; src: url("../fonts/manrope-latin-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Manrope"; src: url("../fonts/manrope-cyrillic-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Manrope"; src: url("../fonts/manrope-latin-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Manrope"; src: url("../fonts/manrope-cyrillic-700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Manrope"; src: url("../fonts/manrope-latin-700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --paper: #f2f4f3;
  --ink: #17241f;
  --muted: #4e5a55;
  --line: #d5dbd8;
  --card: #ffffff;
  --cinnabar: #8e3420;
  --verd: #2e6b5e;
  --verd-deep: #24574c;
  --brass: #e2b84f;
  --brass-deep: #6e5424;
  --serif: "Literata", "Iowan Old Style", "Palatino Linotype", Palatino, serif;
  --sans: "Manrope", "Segoe UI", sans-serif;
  --wrap: 1180px;
  --pad: 24px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
}
img { max-width: 100%; display: block; }
a { color: var(--verd); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input, select, textarea { font-family: inherit; font-size: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; margin: 0; }

.skip {
  position: absolute; left: 8px; top: -40px; background: var(--ink); color: #fff;
  padding: 8px 12px; z-index: 50;
}
.skip:focus { top: 8px; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); border: 0;
}
:focus-visible { outline: 2px solid var(--verd); outline-offset: 2px; }

[hidden] { display: none !important; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--pad); }

.site-header {
  position: sticky; top: 0; z-index: 30;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.header-row { display: flex; align-items: center; gap: 20px; padding-top: 14px; padding-bottom: 14px; flex-wrap: wrap; }
.logo { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.logo:hover { text-decoration: none; }
.logo-mark { width: 36px; height: 36px; flex: none; }
.logo-name { font-family: var(--serif); font-weight: 600; font-size: 22px; letter-spacing: -0.01em; }

.search { position: relative; flex: 1 1 320px; display: flex; }
.search input {
  flex: 1; min-width: 0;
  border: 1px solid var(--line); border-right: 0;
  background: var(--card); color: var(--ink);
  padding: 10px 16px; border-radius: 999px 0 0 999px;
}
.search input::placeholder { color: var(--muted); }
.search button {
  border: 1px solid var(--verd-deep); background: var(--verd-deep); color: #fff;
  padding: 10px 18px; border-radius: 0 999px 999px 0; cursor: pointer; font-weight: 600;
}
.search button:hover { background: #1b4339; border-color: #1b4339; }
.suggest {
  position: absolute; top: calc(100% + 4px); left: 0; right: 0;
  background: var(--card); border: 1px solid var(--line); z-index: 40;
  box-shadow: 0 8px 24px rgba(23, 36, 31, 0.08);
}
.suggest a { display: flex; justify-content: space-between; gap: 12px; padding: 10px 14px; color: var(--ink); }
.suggest a:hover, .suggest a[aria-selected="true"] { background: var(--paper); text-decoration: none; }
.suggest .sg-title { font-family: var(--serif); }
.suggest .sg-price { color: var(--cinnabar); font-weight: 600; white-space: nowrap; }

.nav { display: flex; align-items: center; gap: 18px; }
.nav a { color: var(--ink); font-weight: 500; }
.req-count {
  display: inline-block; min-width: 18px; text-align: center;
  background: var(--cinnabar); color: #fff; border-radius: 999px;
  font-size: 12px; padding: 0 6px; margin-left: 4px;
}

.hero { padding: 48px 0 32px; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
.hero h1 { font-size: 56px; letter-spacing: -0.02em; max-width: 16ch; }
.hero .lead { font-size: 18px; max-width: 46ch; color: var(--ink); margin: 16px 0 24px; }
.hero-actions { display: flex; gap: 16px; align-items: center; }
.btn {
  display: inline-block; background: var(--verd-deep); color: #fff; font-weight: 600;
  padding: 12px 22px; border: 1px solid var(--verd-deep); cursor: pointer; text-decoration: none;
}
.btn:hover { background: #1b4339; border-color: #1b4339; text-decoration: none; }
.btn-ghost { background: transparent; color: var(--verd); }
.btn-ghost:hover { background: transparent; text-decoration: underline; }

.feature { display: block; color: var(--ink); text-decoration: none; border: 1px solid var(--line); background: var(--card); }
.feature:hover { text-decoration: none; border-color: var(--ink); }
.feature-media { position: relative; aspect-ratio: 4/5; background: var(--paper); }
.feature-media img { width: 100%; height: 100%; object-fit: cover; }
.feature-body { padding: 16px 18px 18px; display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; }
.feature-cat { color: var(--verd); font-size: 14px; font-weight: 600; }
.feature-title { font-family: var(--serif); font-size: 22px; margin-top: 2px; }
.feature-price { font-size: 26px; font-weight: 700; color: var(--cinnabar); white-space: nowrap; }
.feature-weight { color: var(--muted); font-size: 14px; }

.section { padding: 28px 0; }
.section h2 { font-size: 32px; margin-bottom: 18px; }

.groups { display: flex; flex-direction: column; gap: 18px; }
.group { display: grid; grid-template-columns: 180px 1fr; gap: 12px 24px; align-items: baseline; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.group-name { font-family: var(--serif); font-size: 20px; }
.group-cats { display: flex; flex-wrap: wrap; gap: 8px 0; }
.cat-link { color: var(--ink); padding: 6px 16px 6px 0; }
.cat-link:hover { color: var(--verd); }
.cat-count { color: var(--muted); font-size: 13px; margin-left: 4px; }

.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.card { display: flex; flex-direction: column; color: var(--ink); text-decoration: none; border: 1px solid var(--line); background: var(--card); }
.card:hover { text-decoration: none; border-color: var(--ink); }
.card-media { position: relative; aspect-ratio: 4/5; background: var(--paper); overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.lot-tab {
  position: absolute; top: 12px; left: 0;
  background: var(--brass); color: var(--ink);
  font-weight: 700; font-size: 12px; letter-spacing: 0.02em;
  padding: 4px 12px 4px 10px;
  clip-path: polygon(0 0, calc(100% - 9px) 0, 100% 50%, calc(100% - 9px) 100%, 0 100%);
}
.card-body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.card-cat { color: var(--verd); font-size: 13px; font-weight: 600; }
.card-title { font-family: var(--serif); font-size: 18px; line-height: 1.25; }
.card-price { margin-top: auto; padding-top: 8px; font-weight: 700; font-size: 18px; color: var(--cinnabar); }

.catalog-layout { display: grid; grid-template-columns: 240px 1fr; gap: 32px; padding-top: 28px; padding-bottom: 48px; }
.side-nav { display: flex; flex-direction: column; gap: 4px; position: sticky; top: 84px; align-self: start; max-height: calc(100vh - 100px); overflow: auto; }
.side-group { margin-top: 14px; font-family: var(--serif); font-size: 16px; }
.side-nav a { color: var(--ink); padding: 4px 8px; display: flex; justify-content: space-between; }
.side-nav a[aria-current="true"] { background: var(--brass); color: var(--ink); text-decoration: none; }
.side-nav a:hover { color: var(--verd); }
.catalog-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.catalog-bar h1 { font-size: 32px; }
.sort-label { color: var(--muted); font-size: 14px; display: flex; align-items: center; gap: 8px; }
.sort-label select { border: 1px solid var(--line); background: var(--card); padding: 8px 10px; }
.result-count { color: var(--muted); margin: 0 0 12px; }
.empty { padding: 32px; border: 1px dashed var(--line); background: var(--card); max-width: 60ch; }
.noscript-note { padding: 12px 0; }

.crumbs { padding-top: 18px; font-size: 14px; color: var(--muted); display: flex; gap: 8px; flex-wrap: wrap; }
.crumbs a { color: var(--muted); }

.product { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; padding: 18px 0 36px; }
.gallery-main { border: 1px solid var(--line); background: var(--card); aspect-ratio: 4/5; }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.thumbs { display: flex; gap: 8px; margin-top: 8px; }
.thumbs button { border: 1px solid var(--line); padding: 0; background: var(--card); cursor: pointer; width: 84px; }
.thumbs button[aria-current="true"] { border-color: var(--ink); }
.thumbs img { width: 100%; aspect-ratio: 4/5; object-fit: cover; display: block; }
.product-cat { color: var(--verd); font-weight: 600; }
.product h1 { font-size: 40px; margin: 6px 0 14px; max-width: 22ch; }
.price-lg { font-size: 34px; font-weight: 700; color: var(--cinnabar); }
.specs { margin: 18px 0; display: grid; grid-template-columns: 120px 1fr; gap: 6px 12px; max-width: 420px; }
.specs dt { color: var(--muted); }
.product-desc { max-width: 58ch; margin: 0 0 20px; }
.req-form { display: flex; flex-direction: column; gap: 10px; max-width: 420px; margin-top: 14px; }
.req-form label { display: flex; flex-direction: column; gap: 4px; font-size: 14px; color: var(--muted); }
.req-form input, .req-form textarea { border: 1px solid var(--line); background: var(--card); padding: 10px 12px; color: var(--ink); }
.form-note { color: var(--muted); font-size: 14px; max-width: 52ch; }
.form-error { color: var(--cinnabar); font-size: 14px; }
.done { background: var(--card); border: 1px solid var(--verd); padding: 14px 16px; max-width: 52ch; }

.requests { padding: 28px 0 48px; }
.requests h1 { font-size: 32px; margin-bottom: 16px; }
.req-item { border-bottom: 1px solid var(--line); padding: 14px 0; display: grid; grid-template-columns: 1fr auto; gap: 8px 16px; }
.req-item h3 { font-size: 18px; }
.req-meta { color: var(--muted); font-size: 14px; }

.about { padding: 28px 0 48px; max-width: 72ch; }
.about h1 { font-size: 40px; margin-bottom: 14px; }
.about h2 { font-size: 26px; margin: 28px 0 10px; }
.about p { max-width: 66ch; }
.logo-row { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 12px; }
.logo-card { border: 1px solid var(--line); background: var(--card); padding: 18px; width: 220px; }
.logo-card img, .logo-card svg { width: 100%; height: auto; }
.logo-card figcaption { margin-top: 10px; font-size: 14px; color: var(--muted); }

.site-footer { border-top: 1px solid var(--line); margin-top: 24px; }
.footer-row { display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; padding-top: 22px; padding-bottom: 22px; align-items: center; }
.footer-brand { display: flex; align-items: center; gap: 10px; color: var(--ink); }
.footer-links { display: flex; gap: 16px; }
.footer-links a { color: var(--ink); }
.footer-note { color: var(--muted); font-size: 14px; }

@media (max-width: 980px) {
  .hero h1 { font-size: 42px; }
  .hero-grid, .product { grid-template-columns: 1fr; }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .catalog-layout { grid-template-columns: 1fr; }
  .side-nav { position: static; max-height: none; flex-direction: row; flex-wrap: wrap; gap: 6px; }
  .side-group { width: 100%; margin-top: 8px; }
  .group { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  :root { --pad: 16px; }
  .hero { padding-top: 28px; }
  .hero h1 { font-size: 34px; }
  .grid { grid-template-columns: 1fr; }
  .nav { gap: 12px; width: 100%; }
  .search { flex-basis: 100%; }
  .product h1 { font-size: 30px; }
  .specs { grid-template-columns: 100px 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
