@font-face {
  font-family: "Open Sans"; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url("/assets/fonts/open-sans-cyrillic-ext.woff2") format("woff2");
  unicode-range: U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F;
}
@font-face {
  font-family: "Open Sans"; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url("/assets/fonts/open-sans-cyrillic.woff2") format("woff2");
  unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;
}
@font-face {
  font-family: "Open Sans"; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url("/assets/fonts/open-sans-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C4,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
  font-family: "Open Sans"; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url("/assets/fonts/open-sans-latin.woff2") format("woff2");
  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 {
  color-scheme: light;
  --paper: #fff;
  --white: #fff;
  --soft: #f5f4f3;
  --ink: #272525;
  --muted: #615d5c;
  --line: #e4e0de;
  --dark: #181716;
  --red: #a82419;
  --radius: 9px;
  --frame: 1710px;
  --gutter: 30px;
}
*, *::before, *::after { box-sizing: border-box; }
body { min-width: 0; margin: 0; color: var(--ink); background: var(--paper); font: 400 14px/1.57 "Open Sans", Arial, sans-serif; }
main { min-height: 54vh; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { line-height: 1.2; font-weight: 700; }
h1 { font: 700 29.862px/1.1 "Open Sans", Helvetica, Arial, sans-serif; }
img { display: block; max-width: 100%; height: auto; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: var(--red); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid #c64132; outline-offset: 4px; }
[hidden] { display: none !important; }
svg { display: inline-block; width: 1.22em; height: 1.22em; flex: none; vertical-align: -.22em; }
.wrap, .crumbs { width: calc(min(100%, var(--frame)) - var(--gutter) * 2); margin-inline: auto; }
.sr, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip:focus { position: fixed; z-index: 8; inset: 12px auto auto 12px; padding: 10px 15px; background: var(--white); }

.top { position: relative; z-index: 1; background: var(--white); }
.header {
  min-height: 102px;
  display: grid;
  grid-template-columns: calc(min(100vw, var(--frame)) / 6 - 5px) minmax(0, 43.5%) minmax(0, 1fr);
  align-items: center;
}
.brand { width: fit-content; display: inline-flex; align-items: center; gap: 8px; color: inherit; font-size: 27px; line-height: 1; font-weight: 800; letter-spacing: -.045em; text-decoration: none; }
.brand-icon { flex: none; width: 44px; height: 44px; object-fit: contain; }
.header-tools { display: flex; align-items: center; justify-content: end; gap: clamp(10px, 2.5vw, 36px); padding-left: 14px; }
.header-tools a { padding-block: 10px; color: var(--ink); font-weight: 700; text-decoration: none; white-space: nowrap; }
.header-tools a:hover { color: var(--red); }
.header-tools svg { margin-right: 4px; color: var(--red); }
.top-nav { box-shadow: inset 0 1px var(--line), inset 0 -1px var(--line); }
.top-nav nav { display: flex; align-items: stretch; gap: 4px; min-height: 54px; }
.top-nav a { display: inline-flex; align-items: center; padding: 8px 20px; color: var(--ink); font-size: 14px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.top-nav a:first-child { padding-left: 12px; }
.top-nav a:hover, .top-nav a[aria-current] { color: var(--red); background: #f9f1ef; }
.top-nav a[aria-current] { box-shadow: inset 0 -2px var(--red); }
.header-search { display: flex; align-items: stretch; min-width: 0; min-height: 40px; background: #f5f4f4; border: 1px solid var(--line); border-radius: 7px; }
.header-search:focus-within { border-color: var(--red); }
.header-search input { min-width: 0; width: 100%; padding: 7px 0 7px 14px; outline-offset: 0; background: none; border: 0; border-radius: 6px; color: var(--ink); font-size: 13.062px; }
.header-search input:focus-visible { outline: 0; }
.header-search button, .search-toggle { display: grid; place-items: center; flex: none; width: 46px; border: 0; border-radius: 6px; color: var(--ink); background: transparent; font-size: 16px; cursor: pointer; }
.header-search button:hover, .search-toggle:hover { color: var(--red); background: #f2e6e3; }
.search-toggle { display: none; }

.hero { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); align-items: stretch; overflow: hidden; margin-top: 25px; background: #f3f1ef; border: 1px solid var(--line); border-radius: var(--radius); }
.hero-copy { align-self: center; padding: clamp(22px, 3.5vw, 54px); }
.hero-lead { max-width: 32rem; color: var(--muted); margin-top: 12px; font-size: 15px; }
.hero-link { display: inline-flex; align-items: center; gap: 10px; padding: 10px 14px; margin-top: 22px; color: #fff; background: var(--red); border-radius: 6px; font-weight: 700; text-decoration: none; }
.hero-link:hover { background: #891d15; }
.hero-image { min-height: 204px; height: clamp(204px, 20vw, 300px); }
.hero-image img { width: 100%; height: 100%; object-fit: cover; object-position: center 56%; }

.home-section { padding-block: clamp(27px, 3.3vw, 52px); }
.section-top { display: flex; align-items: end; justify-content: space-between; gap: 14px; margin-bottom: clamp(16px, 2vw, 28px); }
.section-top h2 { font-size: 21px; }
.section-top > a { flex: none; color: var(--red); font-size: 14px; font-weight: 700; text-decoration: none; }
.section-top > a:hover { text-decoration: underline; }
.models, .cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 1.7vw, 22px); }
.models { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.model-tile, .card, .topics a { min-width: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--white); transition: border-color .16s, box-shadow .16s; }
.model-tile, .card a, .topics a { color: var(--ink); text-decoration: none; }
.model-tile:hover, .card:hover, .topics a:hover { border-color: #b89185; box-shadow: 0 11px 24px #35241d12; }
.model-tile > img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; object-position: center 52%; background: var(--soft); }
.tile-copy { min-height: 72px; display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 12px 15px; }
.tile-copy strong { display: block; font-size: 16px; font-weight: 700; line-height: 1.2; }
.tile-copy small { display: block; margin-top: 4px; color: var(--muted); font-size: 14px; line-height: 1.35; }
.tile-icon { display: grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); color: var(--red); }
.model-tile:hover .tile-icon { background: var(--red); color: #fff; border-color: var(--red); }
.popular { background: var(--soft); border-block: 1px solid var(--line); }
.card a { display: flex; flex-direction: column; height: 100%; }
.card-copy { display: flex; flex: 1; flex-direction: column; padding: 18px 20px; }
.card-art { overflow: hidden; display: block; width: 100%; aspect-ratio: 16 / 9; background: var(--soft); }
.card-art img { width: 100%; height: 100%; object-fit: cover; }
.card-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; color: var(--muted); font-size: 12px; margin-top: 7px; }
.card h2, .card h3 { font-size: 16px; overflow-wrap: anywhere; }
.card p { margin-top: 7px; margin-bottom: 13px; font-size: 14px; color: var(--muted); }
.card-arrow { display: block; color: var(--red); margin-top: auto; }
.topics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(10px, 1.65vw, 22px); }
.topics a > img { width: 100%; aspect-ratio: 18 / 10; object-fit: cover; background: var(--soft); }
.topic-copy { display: grid; grid-template-columns: 1.2em 1fr; gap: 3px 8px; align-items: start; padding: 15px; }
.topic-copy svg { color: var(--red); margin-top: 3px; }
.topic-copy small { grid-column: 2; font-size: .77rem; line-height: 1.45; color: var(--muted); }

.crumbs { margin-top: 26px; }
.crumbs ol { list-style: none; padding: 0; margin: 0; display: flex; gap: 5px 10px; flex-wrap: wrap; font-size: .79rem; }
.crumbs a { color: var(--red); }
.crumbs li[aria-current] { min-width: 0; color: var(--muted); overflow-wrap: anywhere; }
.crumbs li + li::before { content: "/"; margin-right: 10px; color: var(--muted); }
.reading .crumbs, .article-grid { max-width: 1460px; }
.article-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(216px, 22vw, 360px);
  gap: clamp(20px, 2vw, 32px);
  margin-top: 22px;
  align-items: start;
}
.article-grid aside { overflow-wrap: anywhere; }
.article-body { min-width: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); font-size: clamp(.96rem, 1.4vw, 1.06rem); line-height: 1.7; padding: clamp(19px, 4vw, 52px); }
.article-body h1, .list-head h1, .missing h1 { overflow-wrap: anywhere; }
.article-body header { margin-bottom: 25px; }
.byline { display: inline-block; margin-top: 12px; font-size: 12px; color: var(--muted); }
.lede, .list-head p { font-size: 15px; color: var(--muted); margin-top: 12px; line-height: 1.5; }
.article-cover { margin: 20px 0 27px; overflow: hidden; border-radius: 11px; background: var(--soft); }
.article-cover img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.article-infographic { margin-block: 19px 24px; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.article-infographic img { width: 100%; }
.diagram figcaption { padding: 8px 13px; font-size: .77rem; color: var(--muted); }
.article-body p + p, .article-body p + ul, .article-body ul + p { margin-top: 14px; }
.article-body h2 { font-size: 21px; margin: 29px 0 9px; }
.article-body li + li { margin-top: 7px; }
.article-body ul, .source-section ol { padding-left: 1.4em; }
.aside-card { border: 1px solid var(--line); border-radius: var(--radius); background: var(--soft); margin-bottom: 13px; padding: 19px; }
.aside-card h2 { font-size: 1.2rem; }
.aside-card ul { margin: 11px 0 0; padding-left: 17px; font-size: .9rem; }
.aside-card li + li { margin-top: 7px; }
.aside-link { display: inline-block; margin-top: 13px; font-size: .88rem; }
.chips { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 14px; }
.chips a { padding: 5px 11px; background: var(--white); border: 1px solid var(--line); border-radius: 16px; text-decoration: none; font-size: .83rem; font-weight: 670; }
.chips a:hover { border-color: var(--red); }
.source-section { border-top: 1px solid var(--line); margin-top: 29px; }
.sources { overflow-wrap: anywhere; }
.sources p { color: var(--muted); font-size: .88rem; }
.diagram { background: var(--paper); border: 1px solid var(--line); border-radius: 9px; margin-top: 19px; overflow: hidden; }
.diagram img { width: 100%; }
.code-filter { margin: 15px 0; }
.code-filter label { display: block; margin-bottom: 4px; font-size: .91rem; font-weight: 700; }
.code-filter input { padding: 7px 10px; border: 1px solid #b5aaa3; border-radius: 6px; max-width: 100%; }
.code-count { font-size: .85rem; color: var(--muted); margin-top: 5px; }
.table-scroll { overflow: auto; border: 1px solid var(--line); border-radius: 9px; }
.article-table { width: 100%; min-width: 340px; margin: 0; border-collapse: collapse; font-size: .9rem; }
.article-body .table-scroll { margin-block: 14px; }
.article-table th, .article-table td { padding: 8px 10px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.article-table th { background: var(--soft); }
.article-table tbody tr:last-child td { border-bottom: 0; }
.codes { border-collapse: collapse; width: 100%; font-size: .86rem; }
.codes th, .codes td { text-align: left; padding: 8px; vertical-align: top; border-bottom: 1px solid var(--line); }
.codes thead { background: var(--soft); }
.codes tbody th { white-space: nowrap; color: var(--red); }
.codes tbody tr:last-child > * { border: 0; }

.listing { padding-top: 21px; }
.list-head { margin-bottom: 24px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(20px, 3.7vw, 47px); overflow: hidden; }
.list-head.illustrated { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .95fr); align-items: center; gap: clamp(20px, 3vw, 34px); }
.list-cover { background: var(--soft); border-radius: 10px; overflow: hidden; }
.list-cover img { width: 100%; object-fit: cover; aspect-ratio: 3 / 2; }
.manual-link { display: flex; width: fit-content; max-width: 100%; align-items: center; gap: 10px; padding: 12px; border-radius: 9px; background: var(--soft); margin-top: 16px; font-size: .91rem; font-weight: 720; text-decoration: none; }
.manual-link small { display: block; color: var(--muted); font-size: .81rem; font-weight: 460; }
.pager { display: flex; flex-wrap: wrap; gap: 8px; margin: 23px 0; }
.pager a { display: grid; place-items: center; min-width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 7px; text-decoration: none; }
.pager a[aria-current] { background: var(--red); color: #fff; }
.simple, .missing { margin-top: 23px; min-height: 255px; }
.simple { max-width: 850px; }
.simple .lede { margin-bottom: 20px; }
.missing p { margin-top: 11px; }
#search-status { font-size: .94rem; margin: 0 0 14px; }

.site-footer { background: var(--dark); color: #faf8f6; margin-top: clamp(38px, 6vw, 72px); }
.home .site-footer { margin-top: 0; }
.footer { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr) minmax(0, .64fr); gap: clamp(20px, 5vw, 68px); padding-block: 46px 37px; }
.footer-brand p, .footer-bottom { color: #c9c0ba; }
.footer .brand-icon { background: var(--white); border-radius: 6px; padding: 3px; }
.footer-brand p { margin-top: 17px; max-width: 18rem; font-size: .88rem; }
.footer nav h2 { font-size: 1.04rem; margin-bottom: 14px; letter-spacing: -.015em; }
.footer nav a, .footer-bottom a { display: block; color: #e9e1dc; width: fit-content; text-decoration: none; font-size: .84rem; }
.footer nav a + a { margin-top: 6px; }
.footer .footer-models div { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px 12px; }
.footer .footer-models a { margin: 0; }
.footer nav a:hover, .footer-bottom a:hover { color: #fff; text-decoration: underline; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 11px; min-height: 63px; padding-block: 14px; border-top: 1px solid #453e39; font-size: .78rem; }

@media (max-width: 1100px) {
  .models { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 991px) {
  .header { min-height: 62px; grid-template-columns: minmax(0, 1fr) auto; }
  .header-tools { display: none; }
  .header-search { grid-column: 1 / -1; margin-block: 0 10px; }
  .search-toggle { grid-column: 2; grid-row: 1; display: grid; width: 44px; height: 44px; }
  .header--js:not(.search-open) .header-search { display: none; }
  .top-nav nav { min-height: 45px; }
}
@media (max-width: 960px) {
  .article-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 900px) {
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .topics { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer .footer-models div { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  :root { --gutter: 15px; }
  h1 { font-size: 20px; line-height: 1.25; }
  .brand { font-size: 22px; }
  .brand-icon { width: 36px; height: 36px; }
  .top-nav nav { justify-content: space-between; gap: 2px; }
  .top-nav a, .top-nav a:first-child { padding-inline: 5px; font-size: 12px; }
  .hero { grid-template-columns: 100%; margin-top: 17px; }
  .hero-copy { padding: 20px 16px 17px; }
  .hero-lead { font-size: 14px; margin-top: 8px; }
  .hero-link { margin-top: 12px; padding-block: 7px; }
  .hero-image { height: clamp(145px, 42vw, 250px); min-height: 0; }
  .hero-image img { object-position: center 57%; }
  .models, .topics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .list-head.illustrated { grid-template-columns: minmax(0, 1fr); }
  .list-cover img { aspect-ratio: 16 / 9; }
  .footer { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
  .cards { grid-template-columns: minmax(0, 1fr); }
  .section-top { align-items: start; }
  .section-top > a { margin-top: 6px; font-size: .8rem; }
  .section-top > a svg { display: none; }
  .tile-copy { padding: 10px; min-height: 70px; }
  .tile-copy strong { font-size: 14px; }
  .tile-copy small { font-size: 12px; }
  .tile-icon { width: 26px; height: 26px; font-size: .82rem; }
  .topic-copy { padding: 11px; column-gap: 6px; }
  .topic-copy strong { font-size: .88rem; line-height: 1.26; overflow-wrap: anywhere; }
  .codes th, .codes td { padding: 6px 5px; }
  .footer-bottom { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}
