@import url('https://fonts.googleapis.com/css2?family=PT+Mono&family=PT+Sans:ital,wght@0,400;0,700;1,400&display=swap');

/* ── Reset ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

/* ── Tokens ─────────────────────────────────────────────── */
:root {
  --bg:        #f5f0e8;
  --card:      #fdfaf4;
  --border:    #8b99a6;
  --primary:   #1a3a5c;
  --secondary: rgb(184, 122, 75);
  --text:      #1a2030;
  --muted:     #596a7a;
  --muted-bg:  #e8e0d5;
  --danger:    #8b2020;
  --ff-sans:   'PT Sans', sans-serif;
  --ff-mono:   'PT Mono', monospace;
}

/* ── Base ─────────────────────────────────────────────── */

body {
  font-family: var(--ff-sans);
  color: var(--text);
background-color: var(--bg, #f5f5f0); /* тёплый оттенок как у старой бумаги */
  background-image:
    /* Главные толстые линии (каждые 50px / 5см) */
    linear-gradient(to right, rgba(184, 122, 75, 0.1) 2px, transparent 1px),
    linear-gradient(to bottom, rgba(184, 122, 75, 0.2) 2px, transparent 1px),
    /* Средние линии (каждые 10px / 1см) */
    linear-gradient(to right, rgba(184, 122, 75, 0.08) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(184, 122, 75, 0.08) 1px, transparent 1px),
    /* Тонкие линии (каждые 2px / 1мм) */
    linear-gradient(to right, rgba(184, 122, 75, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(184, 122, 75, 0.05) 1px, transparent 1px);
    /* Масштабирование сетки (пропорции советского стандарта) */
  background-size: 
    50px 50px, 50px 50px,
    10px 10px, 10px 10px,
    2px 2px, 2px 2px;
  min-height: 100vh;
  line-height: 1.6;
}

/* ── Blueprint panel ─────────────────────────────────────── */
.bp {
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: 2px 2px 0 rgba(60,80,100,.1);
}

/* ── Layout ─────────────────────────────────────────────── */
.container { max-width: 1280px; margin: 0 auto; padding: 0 1.5rem; }
.page-content { padding: 2.5rem 0 4rem; }

/* ── Navbar ─────────────────────────────────────────────── */
.navbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(253,250,244,.95);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(4px);
}
.navbar-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 56px;
}
.navbar-brand {
  display: flex; align-items: center; gap: .5rem;
  font-family: var(--ff-mono);
  font-weight: 700; font-size: 1.1rem;
  letter-spacing: .1em; color: var(--primary);
}
.navbar-brand svg { width:25px;height:25px;transition: transform .5s; }
.navbar-brand:hover svg { transform: rotate(90deg); }
.navbar-nav { display: flex; align-items: center; gap: 1.5rem; }
.nav-link {
  display: flex; align-items: center; gap: .4rem;
  font-size: .8rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted); transition: color .15s;
  padding-bottom: 2px; border-bottom: 2px solid transparent;
}
.nav-link:hover { color: var(--text); }
.nav-link.active { color: var(--primary); border-bottom-color: var(--primary); }
.nav-label { display: none; }
@media(min-width:600px) { .nav-label { display: inline; } }

/* ── Footer ─────────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--border);
  padding: 1.5rem 0;
  font-family: var(--ff-mono);
  font-size: .75rem;
  color: var(--muted);
  display: flex; gap: 1rem;
  flex-wrap: wrap; justify-content: space-between;
  align-items: center;
}

address.footer-contact * {
  display:inline;
  font-style: normal;
  font-weight: normal;
}
/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: .4rem;
  font-family: var(--ff-mono); font-size: .75rem;
  font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  border: 1px solid var(--border);
  background: var(--card); color: var(--text);
  padding: .4rem .85rem; cursor: pointer;
  transition: border-color .15s, background .15s, color .15s;
  line-height: 1.4;
}
.btn:hover { border-color: var(--primary); color: var(--primary); }
.btn-primary { background: var(--primary); color: #fff; border-color: var(--primary); }
.btn-primary:hover { background: #142d48; border-color: #142d48; color: #fff; }
.btn-secondary { background: var(--secondary); color: #fff; border-color: var(--secondary); }
.btn-ghost { background: transparent; border-color: transparent; }
.btn-ghost:hover { background: var(--muted-bg); border-color: var(--border); color: var(--text); }
.btn-sm { padding: .25rem .6rem; font-size: .7rem; }
.btn-lg { padding: .7rem 1.5rem; font-size: .85rem; }
.btn-full { width: 100%; justify-content: center; }
.btn.active { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ── Tags / Badges ─────────────────────────────────────── */
.tag {
  display: inline-block;
  font-family: var(--ff-mono); font-size: .6rem;
  letter-spacing: .1em; text-transform: uppercase;
  border: 1px solid var(--border);
  padding: 2px 6px; color: var(--muted);
}
.tag-primary { border-color: var(--primary); color: var(--primary); }

/* ── Forms ─────────────────────────────────────────────── */
.form-group { display: flex; flex-direction: column; gap: .4rem; }
.form-label {
  font-size: .75rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .05em; color: var(--muted);
}

.form-control {
  width: 100%;
  font-family: var(--ff-sans); font-size: .9rem;
  border: 1px solid var(--border);
  background: var(--card); color: var(--text);
  padding: .5rem .75rem;
  outline: none; transition: border-color .15s;
}
.form-control:focus { border-color: var(--primary); }
.form-control::placeholder { color: var(--muted); }
.form-error { font-size: .75rem; color: var(--danger); margin-top: .2rem; }
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media(max-width:500px) { .form-grid-2 { grid-template-columns: 1fr; } }

/* ── Search bar ─────────────────────────────────────────── */
.search-wrap { position: relative; flex: 1; max-width: 400px; }
.search-wrap svg { position: absolute; left: .75rem; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.search-input { padding-left: 2.5rem; font-family: var(--ff-mono); text-transform: uppercase; letter-spacing: .05em; }

/* ── Product grid ─────────────────────────────────────── */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1.5rem; }

/* ── Product card ─────────────────────────────────────── */
.product-card { display: flex; flex-direction: column; height: 100%; transition: border-color .15s; }
.product-card:hover { border-color: rgba(26,58,92,.5); }
.product-thumb {
  aspect-ratio: 4/3;
  background: var(--muted-bg);
  border-bottom: 1px solid var(--border);
  position: relative;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; padding: 0;
}
.product-thumb-sku {
  font-family: var(--ff-mono); font-size: 2rem; font-weight: 700;
  letter-spacing: .1em; color: var(--text); opacity: .1;
  text-align: center; word-break: break-all; line-height: 1.1;
}
.product-thumb img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.product-sku-badge {
  position: absolute; top: .5rem; right: .5rem;
  background: rgba(253,250,244,.9);
  border: 1px solid var(--border);
  font-family: var(--ff-mono); font-size: .6rem;
  padding: 2px 6px; color: var(--text);
}
.product-body { padding: 1rem; display: flex; flex-direction: column; flex: 1; gap: .75rem; }
.product-name { font-weight: 700; font-size: .875rem; line-height: 1.3; color: var(--text); transition: color .15s; }
.product-card:hover .product-name { color: var(--primary); }
.product-name-en { font-size: .75rem; color: var(--muted); margin-top: .2rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.product-compat {
  font-family: var(--ff-mono); font-size: .7rem;
  background: var(--bg); border: 1px solid var(--border);
  padding: .4rem .6rem; color: var(--text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.product-compat span { color: var(--muted); margin-right: .4rem; }
.product-footer { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: .5rem; }
.product-price { font-family: var(--ff-mono); font-weight: 700; color: var(--primary); }
.product-tags-mini { display: flex; gap: .25rem; flex-wrap: wrap; justify-content: flex-end; }

/* ── Sidebar ─────────────────────────────────────────── */
.sidebar-section { margin-bottom: 1.5rem; }
.sidebar-title {
  font-size: .7rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .15em;
  color: var(--primary);
  border-bottom: 1px solid rgba(26,58,92,.2);
  padding-bottom: .5rem; margin-bottom: 1rem;
}
.sidebar-article { margin-bottom: 1rem; }
.sidebar-article-date { font-family: var(--ff-mono); font-size: .65rem; color: var(--muted); margin-bottom: .2rem; }
.sidebar-article-title { font-weight: 700; font-size: .8rem; line-height: 1.35; color: var(--text); transition: color .15s; }
.sidebar-article a:hover .sidebar-article-title { color: var(--primary); }
.sidebar-cta { background: var(--primary); color: #fff; padding: 1.25rem; }
.sidebar-cta .sidebar-title { color: rgba(255,255,255,.8); border-bottom-color: rgba(255,255,255,.2); }
.sidebar-cta p { font-family: var(--ff-mono); font-size: .7rem; color: rgba(255,255,255,.7); margin-bottom: 1rem; }

/* ── Home layout ─────────────────────────────────────── */
.home-hero { margin-bottom: 3rem; border-bottom: 1px solid var(--border); padding-bottom: 2rem; }
.home-hero h1 { font-size: clamp(1.75rem, 5vw, 3rem); text-transform: uppercase; letter-spacing: -.01em; font-weight: 700; margin-bottom: .75rem; }
.home-hero p { font-family: var(--ff-mono); font-size: .95rem; color: var(--muted); max-width: 560px; }
.home-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; }
@media(min-width:1024px) { .home-grid { grid-template-columns: 3fr 1fr; } }
.filter-bar {
  display: flex; flex-wrap: wrap; gap: 1rem; align-items: center;
  padding: 1rem; margin-bottom: 1.5rem;
}
.filter-tags { display: flex; gap: .5rem; flex-wrap: wrap; overflow-x: auto; }

.home-grid > div:nth-of-type(2), .article-detail-grid > div:nth-of-type(2) div {position: sticky; top:5rem;}

/* ── Article card ─────────────────────────────────────── */
.article-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.5rem; }
.article-card { display: flex; flex-direction: column; padding: 1.25rem; gap: 1rem; height: 100%; transition: border-color .15s; }
.article-card:hover { border-color: rgba(26,58,92,.5); }
.article-card-meta { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; }
.article-date { font-family: var(--ff-mono); font-size: .65rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); white-space: nowrap; }
.article-card-tags { display: flex; flex-wrap: wrap; gap: .25rem; justify-content: flex-end; }
.article-card-title { font-weight: 700; font-size: 1rem; line-height: 1.35; color: var(--text); transition: color .15s; }
.article-card:hover .article-card-title { color: var(--primary); }
.article-excerpt { font-size: .875rem; color: rgba(26,32,48,.8); line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.article-card-cta { margin-top: auto; padding-top: 1rem; font-family: var(--ff-mono); font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--primary); display: flex; align-items: center; gap: .5rem; }
.article-card:hover .article-card-cta svg { transform: translateX(4px); }
.article-card-cta svg { transition: transform .15s; }

/* ── Articles page ─────────────────────────────────────── */
.articles-header { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 2.5rem; border-bottom: 1px solid var(--border); padding-bottom: 1.5rem; }
.articles-header h1 { font-size: 2rem; text-transform: uppercase; font-weight: 700; letter-spacing: -.01em; display: flex; align-items: center; gap: .75rem; }
.articles-header p { font-family: var(--ff-mono); font-size: .8rem; color: var(--muted); max-width: 480px; margin-top: .5rem; }
.articles-filter { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin-bottom: 2rem; padding: 1rem; }
.articles-filter-label { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-right: .5rem; }

/* ── Article detail ─────────────────────────────────────── */
.article-detail-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; }
@media(min-width:1024px) { .article-detail-grid { grid-template-columns: 3fr 1fr; } }
.article-header { margin-bottom: 2rem; padding-bottom: 2rem; border-bottom: 1px solid var(--border); }
.article-header-tags { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: 1rem; }
.article-header h1 { font-size: clamp(1.5rem, 4vw, 2.25rem); text-transform: uppercase; font-weight: 700; letter-spacing: -.01em; margin-bottom: 1rem; line-height: 1.2; }
.article-meta { font-family: var(--ff-mono); font-size: .75rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); display: flex; gap: 2rem; flex-wrap: wrap; }
.article-body { padding: 2rem; }
.article-body h1,.article-body h2,.article-body h3 { text-transform: uppercase; font-weight: 700; margin: 2rem 0 .75rem; letter-spacing: -.01em; }
.article-body h1 { font-size: 1.5rem; }
.article-body h2 { font-size: 1.2rem; }
.article-body h3 { font-size: 1rem; }
.article-body p { margin-bottom: 1rem; color: rgba(26,32,48,.9); line-height: 1.7; }
.article-body ul,.article-body ol { margin: 0 0 1rem 1.5rem; }
.article-body li { margin-bottom: .35rem; line-height: 1.6; }
.article-body strong { font-weight: 700; }
.article-body table { width: 100%; border-collapse: collapse; margin: 1rem 0 1.5rem; font-family: var(--ff-mono); font-size: .8rem; }
.article-body th { background: var(--primary); color: #fff; text-align: left; padding: .5rem .75rem; font-weight: 700; }
.article-body td { padding: .45rem .75rem; border-bottom: 1px solid var(--border); }
.article-body tr:nth-child(even) td { background: var(--muted-bg); }

/* ── Product detail ─────────────────────────────────────── */
.product-detail-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; align-items: start; }
@media(min-width:1024px) { .product-detail-grid { grid-template-columns: 1fr 1fr; } }

.product-detail-image .sku-watermark {
  display:none;
}
.product-detail-gallery {
  position: relative;
  border: 2px solid var(--border);
  background: var(--card);
  aspect-ratio: 1;
  overflow: hidden;
}

.product-detail-track {
  display: flex;
  width: 100%;
  height: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  overscroll-behavior-x: contain;
  scrollbar-width: ;
  scrollbar-color: var(--muted-bg) transparent;
}

.product-detail-track::-webkit-scrollbar {
  height: 8px;
  color: var(--muted-bg) transparent;
}

.product-detail-track::-webkit-scrollbar-track {
  background: transparent;
}

.product-detail-track::-webkit-scrollbar-thumb {
  background: var(--border);
}

.product-detail-slide {
  display: flex;
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0rem;
  align-items: center;
  justify-content: center;
  scroll-snap-align: center;
  scroll-snap-stop: always;
}

.product-detail-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.product-detail-gallery .sku-watermark {
  display: none;
}
/*
.product-detail-gallery .sku-badge {
  position: absolute;
  right: .75rem;
  bottom: .75rem;
  z-index: 2;
  pointer-events: none;
}
  */
.product-detail-gallery .sku-badge {
  position: absolute; top: 1rem; right: 1rem;
  background: rgba(245,240,232,.9); border: 1px solid var(--border);
  font-family: var(--ff-mono); font-size: .8rem; padding: .25rem .5rem;
}
.product-detail-image .out-of-stock {
  position: absolute; bottom: 1rem; right: 1rem;
  background: var(--danger); color: #fff;
  font-family: var(--ff-mono); font-size: .75rem; font-weight: 700;
  padding: .25rem .6rem; display: flex; align-items: center; gap: .4rem;
}
.spec-panel { 
  padding: 1.5rem; 
  margin-top: 1.5rem; 
  background-color: var(--primary);  
  background-image:linear-gradient(#8b99a614 1px, transparent 1px), linear-gradient(90deg, #8b99a614 1px, transparent 1px);
  background-size: 24px 24px;  
  }
.spec-title { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .15em; color: var(--bg); border-bottom: 1px solid rgba(26,58,92,.2); padding-bottom: .5rem; margin-bottom: 1rem; }
.spec-desc { font-size: .9rem; line-height: 1.65; color: var(--muted-bg); }
.spec-desc-en { color: var(--border); font-size: .85rem; margin-top: .5rem; }
.compat-box { background: var(--bg); border: 1px solid var(--border); padding: .6rem .75rem; font-family: var(--ff-mono); font-size: .85rem; margin-top: 1rem; }
.compat-label { font-family: var(--ff-mono); font-size: .7rem; color: var(--bg); margin-bottom: .35rem; text-transform: uppercase; letter-spacing: .08em; }
.notes-box { background: var(--muted-bg); border: 1px solid rgba(26,32,48,.2); padding: .75rem; font-family: var(--ff-mono); font-size: .75rem; display: flex; gap: .5rem; margin-top: 1rem; }
.product-right { position: sticky; top: 80px; }
.product-tags-row { display: flex; display:none; flex-wrap: wrap; gap: .4rem; margin-bottom: 1rem; }
.product-detail-name { font-size: clamp(1.5rem, 3vw, 2rem); text-transform: uppercase; font-weight: 700; letter-spacing: -.01em; margin-bottom: .35rem; line-height: 1.2; }
.product-detail-name-en { font-size: 1rem; color: var(--muted); margin-bottom: 1.5rem; }
.product-detail-price { font-family: var(--ff-mono); font-size: 2rem; font-weight: 700; color: var(--primary); padding-bottom: 1.5rem; border-bottom: 1px solid var(--border); margin-bottom: 1.5rem; }
.product-detail-price sup { font-size: 1rem; color: rgba(26,58,92,.6); margin-left: .35rem; }
.order-panel { border-top: 4px solid var(--primary); }
.order-header { padding: 1.25rem 1.5rem; background: rgba(232,224,213,.2); border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; }
.order-header h3 { font-weight: 700; text-transform: uppercase; letter-spacing: .05em; font-size: 1rem; }
.order-ref { font-family: var(--ff-mono); font-size: .7rem; color: var(--muted); }
.order-body { padding: 1.5rem; }
.order-form { display: flex; flex-direction: column; gap: 1.25rem; }
.success-state { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 2rem 1rem; gap: 1rem; }
.success-state svg { color: #2a7a2a; }
.success-state h4 { font-size: 1.1rem; text-transform: uppercase; font-weight: 700; letter-spacing: .05em; }
.success-state p { font-family: var(--ff-mono); font-size: .8rem; color: var(--muted); max-width: 300px; }

/* ── About page ─────────────────────────────────────────── */
.about-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; margin-top: 2rem; padding-top: 2rem; border-top: 1px solid var(--border); }
@media(min-width:600px) { .about-grid { grid-template-columns: 1fr 1fr; } }
.about-panel-title { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .15em; color: var(--primary); margin-bottom: 1rem; display: flex; align-items: center; gap: .5rem; }
.about-list { list-style: none; display: flex; flex-direction: column; gap: .75rem; font-family: var(--ff-mono); font-size: .85rem; }
.about-list li { display: flex; align-items: flex-start; gap: .75rem; }
.about-list .key { color: var(--muted); white-space: nowrap; }
.about-list .val { }
.about-prose { font-size: 1rem; line-height: 1.75; color: rgba(26,32,48,.9); }
.about-prose p + p { margin-top: 1rem; }
.about-divider { width: 4rem; height: 3px; background: var(--primary); margin: 2rem 0; }

/* ── Empty state ─────────────────────────────────────────── */
.empty-state { padding: 3rem 2rem; text-align: center; }
.empty-state h3 { font-size: 1.2rem; text-transform: uppercase; letter-spacing: .05em; margin-bottom: .5rem; }
.empty-state p { font-family: var(--ff-mono); font-size: .8rem; color: var(--muted); }

/* ── Related docs / parts ────────────────────────────────── */
.related-link {
  display: block; border: 1px solid var(--border); padding: .75rem;
  background: var(--bg); transition: border-color .15s; margin-bottom: .75rem;
}
.related-link:hover { border-color: var(--primary); }
.related-link .sku { font-family: var(--ff-mono); font-size: .65rem; color: var(--muted); margin-bottom: .25rem; }
.related-link .name { font-weight: 700; font-size: .85rem; line-height: 1.3; transition: color .15s; }
.related-link:hover .name { color: var(--primary); }

/* ── Back link ───────────────────────────────────────────── */
.back-link { display: inline-flex; align-items: center; gap: .4rem; color: var(--muted); font-family: var(--ff-mono); font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 1.5rem; transition: color .15s; }
.back-link:hover { color: var(--text); }

/* ── Utility ─────────────────────────────────────────────── */
.hidden { display: none !important; }
.text-muted { color: var(--muted); }
.text-primary { color: var(--primary); }
.text-mono { font-family: var(--ff-mono); }
.mt-0 { margin-top: 0; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.page-max { max-width: 900px; margin: 0 auto; }
.page-max-wide { max-width: 1100px; margin: 0 auto; }

.breadcrumb {
  border-bottom: 1px solid var(--border);
  background: rgb(from var(--muted-bg) r g b / 0.3);
}

.breadcrumb ol {
  width: min(100% - 2rem, 1280px);
  margin: 0 auto;
  padding: .75rem 0;

  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .35rem 0;

  list-style: none;
}

.breadcrumb li {
  display: inline-flex;
  align-items: center;

  color: var(--muted);
  font-family: var(--ff-mono);
  font-size: .72rem;
  line-height: 1.4;
  letter-spacing: .03em;
  text-transform: uppercase;
}

.breadcrumb li:not(:last-child)::after {
  content: "/";
  display: inline-block;
  margin: 0 .55rem;
  color: var(--border-strong, var(--border));
  font-weight: 700;
}

.breadcrumb a {
  color: var(--muted);
  text-decoration: none;
  transition: color .15s ease;
}

.breadcrumb a:hover {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.breadcrumb a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

.breadcrumb li[aria-current="page"] {
  max-width: min(46rem, 100%);
  overflow: hidden;
  color: var(--text);
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 640px) {
  .breadcrumb ol {
    width: min(100% - 1.25rem, 1280px);
    padding: .6rem 0;
  }

  .breadcrumb li {
    font-size: .65rem;
  }

  .breadcrumb li:not(:last-child)::after {
    margin: 0 .38rem;
  }

  .breadcrumb li[aria-current="page"] {
    max-width: 100%;
  }
}