/* Light theme (3.23.5): values follow the client light tokens in claw-client/src/index.css. */
:root {
  --paper: #f7f8fb;
  --ink: #1b2638;
  --muted: #5c6a7f; /* client uses #647287; darkened to reach 4.5:1 on --wash */
  --blue: #244cc2;
  --line: #e2e7ef;
  --wash: #edf1f7;
  --surface: #ffffff;
  --control-edge: #c8d0dc;
  --action: #2855d9;
  --action-hover: #244cc2;
  --focus: #2855d9;
  --error: #be123c;
  --success: #047857;
  --ok: #047857;
  --warn: #b45309;
  --brand-50: #edf2ff;
  --brand-100: #dce6ff;
  --shadow: 0 2px 8px rgba(27, 38, 56, 0.04), 0 24px 60px rgba(27, 38, 56, 0.1);
  --gutter: clamp(24px, 5.55vw, 80px);
  font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  color: var(--ink);
  background: var(--paper);
  color-scheme: light;
  accent-color: var(--blue);
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
img,
video {
  max-width: 100%;
  display: block;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: wait;
}
a:hover,
.link-button:hover {
  color: var(--blue);
}
:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 4px;
}
[hidden] {
  display: none !important;
}
html {
  scroll-padding-top: 90px;
}
p,
h1,
h2,
h3,
figure,
blockquote {
  margin: 0;
}
h1,
h2,
h3,
b,
strong {
  font-weight: 700;
}
p {
  line-height: 1.8;
}
button {
  border: 0;
  background: none;
}
button,
a,
input,
select,
textarea {
  touch-action: manipulation;
}
.frame {
  width: min(100% - var(--gutter) * 2, 1280px);
  margin-inline: auto;
}
.sr,
.skip:not(:focus) {
  position: absolute;
  clip-path: inset(50%);
  width: 1px;
  height: 1px;
  overflow: hidden;
  white-space: nowrap;
}
.skip:focus {
  position: fixed;
  z-index: 12;
  top: 6px;
  left: 10px;
  background: var(--surface);
  padding: 12px;
}
.site-head {
  border-bottom: 1px solid var(--line);
  background: rgba(247, 248, 251, 0.86);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 5;
}
.head-row,
.nav-links,
.head-actions,
.brand,
.actions,
.section-heading,
.news-meta,
.footer-base,
.result-line,
.picks,
.crumbs,
.film figcaption,
.byline,
.card-meta,
.card-foot {
  display: flex;
  align-items: center;
}
.head-row {
  height: 73px;
  gap: clamp(22px, 3.2vw, 50px);
}
.brand {
  gap: 9px;
  flex-shrink: 0;
}
.brand img {
  width: 49px;
  height: auto;
}
.brand i {
  height: 19px;
  width: 1px;
  background: var(--control-edge);
}
.brand b {
  font: 650 23px/1 Arial, sans-serif;
  letter-spacing: -1.3px;
}
.nav-links {
  gap: clamp(14px, 1.9vw, 30px);
}
.nav-links a,
.head-actions a {
  font-size: 14px;
  font-weight: 450;
}
.nav-links a {
  color: var(--muted);
  padding-block: 16px;
}
.nav-links a:hover {
  color: var(--ink);
}
.nav-links a[aria-current] {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 7px;
}
.head-actions {
  margin-left: auto;
  gap: 21px;
}
.search-icon {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
}
.head-demo,
.plain-button,
.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  border: 1px solid var(--control-edge);
  border-radius: 6px;
  padding: 11px 18px;
  font-size: 15px;
  line-height: 1.5;
  font-weight: 600;
  min-height: 44px;
}
.head-demo {
  min-height: 44px;
  padding: 6px 16px;
}
.button {
  gap: 14px;
  padding: 12px 20px;
}
.primary {
  background: var(--action);
  color: #fff;
  border-color: var(--action);
}
.primary:hover {
  background: var(--action-hover);
  color: #fff;
}
.secondary,
.plain-button {
  background: var(--surface);
}
.secondary:hover,
.plain-button:hover,
.head-demo:hover {
  background: var(--wash);
  color: var(--ink);
  border-color: var(--blue);
}
button:disabled {
  color: var(--muted);
  background: var(--wash);
  border-color: var(--control-edge);
}
.actions {
  gap: 12px;
  flex-wrap: wrap;
}
.mobile-actions,
#menu-toggle {
  display: none;
}

.overline,
.news-meta,
.card-meta,
.byline,
.crumbs,
.result-line {
  font-size: 13px;
  letter-spacing: 0.02em;
}
.film-frame {
  position: relative;
  aspect-ratio: 1.55;
  background: var(--wash);
  overflow: hidden;
}
.film picture,
.film img,
.film video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.film video {
  position: absolute;
  inset: 0;
}
.film figcaption {
  justify-content: space-between;
  min-height: 35px;
  gap: 12px;
  color: var(--muted);
  font-size: 12px;
}
.film figcaption button {
  color: var(--blue);
  padding: 8px 0;
  font-size: 13px;
}
.section-heading {
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}
.section-heading h2,
.tool-panel h2,
.home-contact h2,
.related > h2 {
  font-size: clamp(25px, 2.38vw, 36px);
  letter-spacing: -0.045em;
  line-height: 1.25;
}
.text-link,
.picks a,
.result-line a,
.feedback a {
  font-weight: 600;
  color: var(--blue);
  font-size: 14px;
}
.text-link:hover,
.picks a:hover,
.result-line a:hover {
  text-decoration: underline;
}
.tender-strip p,
.tool-panel p,
.home-contact p,
.catalog-card p,
.news-card p,
footer p,
.side-note p {
  color: var(--muted);
}
.arrow {
  color: var(--blue);
  font-weight: 450;
  font-size: 22px;
  line-height: 1;
}
.tender-strip {
  background: var(--wash);
  display: grid;
  grid-template-columns: minmax(140px, 17%) 1fr auto;
  align-items: center;
  gap: 28px;
  margin: 0 0 40px;
  padding-right: 25px;
}
.tender-strip img {
  height: 155px;
  width: 100%;
  object-fit: cover;
}
.tender-strip h2 {
  font-size: 24px;
  letter-spacing: -0.035em;
  margin: 5px 0;
}
.tender-strip p {
  font-size: 15px;
}
.tender-strip b {
  font-size: 14px;
  color: var(--blue);
}
.status {
  display: inline-flex;
  font-size: 12px;
  font-weight: 550;
  line-height: 1.5;
  border: 1px solid var(--brand-100);
  border-radius: 4px;
  color: var(--blue);
  background: var(--brand-50);
  padding: 2px 7px;
}
.card-grid,
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.catalog-card {
  border: 1px solid var(--line);
  background: var(--surface);
}
.catalog-card > a {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 22px 23px 17px;
}
.catalog-card:hover,
.catalog-card:focus-within {
  background: var(--wash);
  border-color: var(--control-edge);
}
.card-meta,
.news-meta {
  gap: 12px;
  color: var(--muted);
}
.card-meta {
  min-height: 22px;
  justify-content: space-between;
}
.catalog-card h3,
.news-card h3 {
  font-size: clamp(18px, 1.5vw, 23px);
  line-height: 1.45;
  letter-spacing: -0.025em;
  overflow-wrap: anywhere;
}
.catalog-card h3 {
  margin: 12px 0 6px;
}
.catalog-card p,
.news-card p {
  font-size: 15px;
  line-height: 1.7;
}
.card-foot {
  justify-content: space-between;
  margin-top: auto;
  padding-top: 18px;
}
.tool-panel,
.home-contact {
  background: var(--wash);
  padding: 32px clamp(22px, 3.2vw, 48px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 32px;
  margin: 5px 0 40px;
}
.tool-panel p,
.home-contact p {
  margin: 10px 0;
}
.news-image {
  aspect-ratio: 1.95;
  overflow: hidden;
  background: var(--wash);
}
.news-image img {
  object-fit: cover;
  width: 100%;
  height: 100%;
}
.news-meta {
  margin: 15px 0 8px;
  justify-content: space-between;
  font-size: 12px;
}
.news-meta > span {
  color: var(--blue);
}
.news-card h3 .arrow {
  font-size: 16px;
}
.news-card p {
  margin-top: 7px;
}
.home-contact {
  grid-template-columns: 1fr auto;
  margin-top: 12px;
  margin-bottom: 60px;
}

/* Home page and product intro showcase blocks (3.22.0). */
.mini-grid img,
.product-band > img,
.product-intro > img {
  height: auto;
}
.mini-grid a {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  transition: transform 0.2s, border-color 0.2s;
}
.mini-grid a:hover {
  transform: translateY(-3px);
  border-color: var(--control-edge);
}
.mini-grid img {
  width: 100%;
  aspect-ratio: 2 / 1;
  object-fit: cover;
}
.mini-grid div {
  padding: 14px 16px 18px;
}
.mini-grid h3 {
  font-size: 17px;
  letter-spacing: -0.02em;
}
.mini-grid p,
.block-head p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
  margin-top: 6px;
}
.showcase-block {
  padding: 48px 0;
  border-top: 1px solid var(--line);
}
.block-head {
  max-width: 640px;
  margin-bottom: 28px;
}
.block-head h2 {
  font-size: clamp(28px, 2.8vw, 42px);
  letter-spacing: -0.045em;
  line-height: 1.2;
}
.block-head p {
  font-size: 16px;
}
.product-band {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: clamp(28px, 4vw, 64px);
  align-items: center;
  padding: 36px 0;
}
.product-band.flip .band-copy {
  order: 2;
}
.product-band > img {
  width: 100%;
  border-radius: 18px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border: 1px solid var(--line);
}
.band-copy small {
  color: var(--blue);
  font-weight: 600;
  font-size: 14px;
}
.band-copy h3 {
  font-size: clamp(24px, 2.3vw, 34px);
  letter-spacing: -0.04em;
  line-height: 1.3;
  margin: 8px 0 18px;
}
.band-copy ul {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
  display: grid;
  gap: 12px;
}
.band-copy li {
  padding-left: 26px;
  position: relative;
  color: var(--muted);
  line-height: 1.6;
}
.band-copy li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--action);
}
.mini-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.product-intro {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
  margin: 8px 0 40px;
}
.product-intro > img {
  width: 100%;
  border-radius: 18px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border: 1px solid var(--line);
}
.intro-stats {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
}
.intro-stats div {
  padding: 18px 20px;
  text-align: center;
}
.intro-stats div + div {
  border-left: 1px solid var(--line);
}
.intro-stats b {
  display: block;
  font-size: 20px;
  color: var(--ok);
}
.intro-stats span {
  color: var(--muted);
  font-size: 14px;
}
.intro-banner {
  grid-column: 1 / -1;
  justify-self: center;
  margin: 0;
  padding: 12px 28px;
  border-radius: 999px;
  border: 1px solid #a7f3d0;
  background: #ecfdf5;
  font-size: 18px;
}
.intro-banner b {
  color: var(--ok);
  margin-right: 14px;
  padding-right: 14px;
  border-right: 1px solid #a7f3d0;
}
@media (max-width: 960px) {
  .intro-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .intro-stats div:nth-child(3) {
    border-left: 0;
  }
}
@media (max-width: 960px) {
  .product-band,
  .product-intro {
    grid-template-columns: 1fr;
  }
  .product-band.flip .band-copy {
    order: 0;
  }
  .mini-grid {
    grid-template-columns: 1fr;
  }
}
/* Picture-led listing pages */
.entry-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin: 8px 0 24px;
}
.entry-cards a,
.plugin-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, border-color 0.2s;
}
.entry-cards a:hover,
.plugin-card:hover,
.feature-links a:hover {
  transform: translateY(-3px);
  border-color: var(--control-edge);
}
.entry-cards img,
.plugin-card img,
.group-head img {
  width: 100%;
  height: auto;
  aspect-ratio: 2 / 1;
  object-fit: cover;
}
.entry-cards div {
  padding: 16px 18px 18px;
}
.entry-cards h2 {
  font-size: 20px;
  letter-spacing: -0.03em;
}
.entry-cards p,
.plugin-card p,
.plugin-card li,
.group-head p,
.feature-links span {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}
.entry-cards p {
  margin: 6px 0 10px;
}
.entry-cards small {
  color: var(--blue);
  font-weight: 600;
}
.feature-group {
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) 1.6fr;
  gap: clamp(20px, 3vw, 40px);
  align-items: start;
  padding: 28px 0;
}
.feature-group + .feature-group {
  border-top: 1px dashed var(--line);
}
.feature-group.flip .group-head {
  order: 2;
}
.group-head img {
  border-radius: 14px;
  aspect-ratio: 16 / 10;
}
.group-head h2 {
  font-size: 24px;
  letter-spacing: -0.035em;
  margin: 14px 0 6px;
}
.feature-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.feature-links a {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 16px;
  background: var(--surface);
  transition: transform 0.2s, border-color 0.2s;
}
.feature-links strong {
  display: block;
  font-size: 16px;
  margin-bottom: 4px;
}
.all-link {
  margin-top: 18px;
}
.plugin-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-bottom: 56px;
}
.plugin-card > div {
  padding: 20px 22px 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.plugin-card small {
  color: var(--blue);
  font-weight: 600;
  font-size: 14px;
}
.plugin-card h2 {
  font-size: clamp(20px, 1.8vw, 26px);
  letter-spacing: -0.035em;
  line-height: 1.35;
  margin: 6px 0 12px;
}
.plugin-card ul {
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
  display: grid;
  gap: 6px;
}
.plugin-card li {
  padding-left: 18px;
  position: relative;
}
.plugin-card li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--action);
}
.plugin-card b {
  margin-top: auto;
  color: var(--blue);
  font-size: 14px;
}
.plugin-card.core {
  border-color: var(--brand-100);
}
.plugin-cards.skills {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
@media (max-width: 960px) {
  .entry-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .feature-group,
  .plugin-cards,
  .plugin-cards.skills {
    grid-template-columns: 1fr;
  }
  .feature-group.flip .group-head {
    order: 0;
  }
}
@media (max-width: 600px) {
  .entry-cards,
  .feature-links {
    grid-template-columns: 1fr;
  }
}
.tool-grid a {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  padding: 14px 18px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.tool-grid span {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}
.tool-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.tool-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.tool-grid a {
  transition: transform 0.2s, border-color 0.2s;
}
.tool-grid a:hover {
  transform: translateY(-3px);
  border-color: var(--control-edge);
}
.tool-grid small {
  color: var(--blue);
  font-weight: 600;
  margin-top: auto;
}
@media (max-width: 960px) {
  .tool-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 600px) {
  .tool-grid {
    grid-template-columns: 1fr;
  }
}
.intro-video {
  position: relative;
  margin: 0;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  aspect-ratio: 16 / 9;
  background: #000;
}
.intro-video img,
.intro-video video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.intro-video img {
  object-fit: cover;
}
.intro-video video {
  object-fit: contain;
  background: #000;
}
.intro-video button {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 76px;
  height: 76px;
  margin: -38px 0 0 -38px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.5);
  background: var(--action);
  color: #fff;
  font-size: 26px;
  padding-left: 6px;
  cursor: pointer;
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.2s, transform 0.2s;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}
.intro-video:hover button,
.intro-video button:focus-visible {
  opacity: 1;
  transform: scale(1);
}
.intro-video.playing img,
.intro-video.playing button {
  display: none;
}
@media (hover: none) {
  .intro-video button {
    opacity: 1;
    transform: none;
  }
}

footer {
  border-top: 1px solid var(--line);
  background: var(--surface);
  padding: 42px 0 18px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.7fr repeat(3, 1fr);
  gap: 20px;
}
.footer-grid > div > a:not(.brand) {
  display: block;
  font-size: 14px;
  margin: 9px 0;
  color: var(--muted);
}
.footer-grid > div > a:not(.brand):hover {
  color: var(--ink);
  text-decoration: underline;
}
.footer-grid p {
  font-size: 14px;
  margin: 12px 0;
}
.footer-base {
  gap: 18px;
  flex-wrap: wrap;
  border-top: 1px solid var(--line);
  padding-top: 18px;
  margin-top: 28px;
  font-size: 12px;
  color: var(--muted);
}

.footer-qr {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.footer-qr figure {
  margin: 0;
  text-align: center;
}
.footer-qr img {
  object-fit: contain;
  background: #fff;
  padding: 4px;
  max-width: 100%;
}
.footer-qr figcaption {
  color: var(--muted);
  font-size: 13px;
  margin-top: 5px;
}

.crumbs {
  flex-wrap: wrap;
  gap: 9px;
  color: var(--muted);
  margin: 24px 0;
  line-height: 1.7;
}
.crumbs a {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.page-intro {
  padding: 20px 0 32px;
  max-width: 920px;
}
.page-intro h1 {
  font-size: clamp(34px, 4.1vw, 60px);
  letter-spacing: -0.05em;
  line-height: 1.2;
  overflow-wrap: anywhere;
}
.page-intro > p {
  font-size: clamp(16px, 1.35vw, 20px);
  color: var(--muted);
  margin-top: 15px;
  max-width: 50em;
}
.directory,
.article-frame,
.interaction {
  padding-bottom: 64px;
  min-height: 62vh;
}
.picks {
  gap: 12px 22px;
  flex-wrap: wrap;
  margin: -4px 0 26px;
}
.filter-bar,
.field-grid {
  display: grid;
  gap: 12px;
}
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  background: var(--wash);
  padding: 16px;
}
.search-field,
.filter-field {
  display: flex;
  align-items: center;
}
.search-field {
  flex: 1 1 220px;
  position: relative;
}
.search-field > span:first-child {
  position: absolute;
  font: 28px Georgia;
  color: var(--muted);
  left: 12px;
}
.search-field input {
  padding-left: 40px;
}
.filter-field {
  min-width: 126px;
}
input:not([type='checkbox']),
select,
textarea {
  width: 100%;
  border: 1px solid var(--control-edge);
  border-radius: 5px;
  padding: 10px 12px;
  min-height: 44px;
  background: var(--paper);
}
select option,
select optgroup {
  background: var(--paper);
  color: var(--ink);
}
::placeholder {
  color: #8a96a8;
  opacity: 1;
}
input:user-invalid,
textarea:user-invalid {
  border-color: var(--error);
}
input[type='search'] {
  padding-left: 40px;
}
.result-line {
  margin: 18px 0;
  gap: 16px;
  color: var(--muted);
}
.result-line > a {
  margin-left: auto;
}
.link-button {
  color: var(--blue);
  padding: 4px 0;
  font-size: 14px;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.load-more {
  margin-top: 20px;
}
.overline {
  color: var(--blue);
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 14px;
}
.article-title .actions,
.byline {
  margin-top: 18px;
}
.byline {
  gap: 18px;
  color: var(--muted);
}
.reader-layout {
  border-top: 1px solid var(--line);
  padding-top: 32px;
  display: grid;
  grid-template-columns: minmax(0, 760px) minmax(190px, 270px);
  gap: clamp(26px, 7vw, 110px);
}
.prose {
  min-width: 0;
  font-size: 17px;
  line-height: 1.85;
}
.prose p,
.prose li {
  color: var(--muted);
}
.prose p a,
.prose li a {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.prose section {
  margin-bottom: 32px;
}
.prose h2,
.form-box h2,
.side-note h2,
.reader-side h2 {
  font-size: 24px;
  letter-spacing: -0.025em;
  line-height: 1.4;
  margin-bottom: 10px;
}
.prose li {
  margin: 7px 0;
}
.prose ol,
.prose ul {
  padding-left: 1.6em;
}
.reader-side > div {
  border-left: 1px solid var(--line);
  padding-left: 22px;
  position: sticky;
  top: 24px;
}
.reader-side h2 {
  font-size: 15px;
}
.reader-side a {
  display: block;
  color: var(--muted);
  font-size: 14px;
  padding: 5px 0;
}
.reader-side a:hover {
  color: var(--blue);
}
.article-cover,
.prose .film {
  margin: 0 0 26px;
}
.article-cover img {
  width: 100%;
  max-height: 330px;
  object-fit: cover;
}
.article-cover figcaption {
  font-size: 12px;
  color: var(--muted);
  padding-top: 5px;
}
.guide-figure {
  margin: 16px 0;
}
.guide-figure img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 6px;
}
.guide-figure figcaption {
  margin-top: 8px;
  font-size: 14px;
  color: var(--muted);
}
.facts {
  background: var(--wash);
  margin: 0 0 28px;
  padding: 16px 22px;
  font-size: 15px;
}
.facts div {
  display: grid;
  grid-template-columns: 85px 1fr;
  gap: 12px;
  padding: 3px 0;
}
.facts dt {
  color: var(--muted);
}
.facts dd {
  margin: 0;
}
.table-scroll {
  overflow: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  text-align: left;
}
th,
td {
  border-bottom: 1px solid var(--line);
  padding: 9px;
}
th {
  background: var(--wash);
}
.code-block {
  background: #f4f6fa;
  color: var(--ink);
  border: 1px solid var(--line);
  padding: 14px;
  display: grid;
  min-width: 0;
}
.code-block pre {
  overflow-x: auto;
  font-size: 14px;
  margin: 8px 0 0;
}
.copy {
  color: var(--blue);
  justify-self: end;
  text-decoration: underline;
  font-size: 13px;
}
.child-links a {
  border-bottom: 1px solid var(--line);
  padding: 13px 0;
  display: grid;
  grid-template-columns: 1fr auto;
}
.child-links span {
  font-size: 15px;
  color: var(--muted);
  grid-row: 2;
}
.child-links b {
  grid-column: 2;
  grid-row: 1/3;
  color: var(--blue);
}
.related {
  margin-top: 34px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.related > h2 {
  margin-bottom: 18px;
  font-size: 26px;
}
.feedback {
  border-top: 1px solid var(--line);
  padding-top: 20px;
}
.feedback h2 {
  font-size: 18px;
}
.feedback p {
  margin-top: 10px;
  font-size: 14px;
}
.feedback button[aria-pressed="true"] {
  color: var(--ink);
  background: var(--wash);
  border-color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(220px, 1fr);
  gap: clamp(22px, 5vw, 74px);
  align-items: start;
}
.form-box,
.tender-demo {
  border: 1px solid var(--line);
  background: var(--surface);
  padding: clamp(18px, 3vw, 38px);
}
.form-box > p,
.side-note p,
.tender-demo > p {
  font-size: 15px;
  color: var(--muted);
  margin-bottom: 18px;
}
.field-grid {
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.field-grid .wide {
  grid-column: 1/-1;
}
.form-box label:not(.check),
.field-grid label {
  display: grid;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
}
.check {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
  font-size: 14px;
  margin: 20px 0;
}
.check input {
  width: 18px;
  height: 18px;
}
.check a {
  text-decoration: underline;
  color: var(--blue);
}
.side-note {
  border-left: 2px solid var(--blue);
  padding-left: 20px;
}
.side-note hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 22px 0;
}
.side-note h2 {
  font-size: 20px;
}
#mail-draft,
.download-result {
  background: var(--wash);
  margin-top: 20px;
  padding: 18px;
}
#mail-draft h3 {
  color: var(--success);
}
#lead-form [role='status']:not(:empty) {
  margin-top: 18px;
  color: var(--ink);
}
.download-result {
  margin-bottom: 18px;
}
.download-result code,
#mail-draft pre {
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}
.tender-demo blockquote {
  border-left: 3px solid var(--blue);
  margin: 22px 0 15px;
  padding-left: 14px;
  font-weight: 650;
}
.tender-demo [data-reply] {
  margin: 14px 0 0;
}
.side-note a {
  overflow-wrap: anywhere;
}
.comparison {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
  gap: 14px;
  margin-top: 14px;
}
.comparison img {
  aspect-ratio: 16/9;
  width: 100%;
  object-fit: cover;
}
.comparison figcaption {
  padding-top: 5px;
  color: var(--muted);
  font-size: 13px;
}

#lead-form fieldset {
  border: 0;
  padding: 0;
  margin: 0;
  min-width: 0;
}

@media (max-width: 1050px) {
  .head-row {
    gap: 22px;
  }
  .nav-links {
    gap: 15px;
  }
  .head-actions {
    gap: 10px;
  }
  .catalog-card > a {
    padding: 17px;
  }
  .head-row .search-icon {
    padding: 4px;
  }
}
@media (max-width: 850px) {
  .head-row {
    height: 62px;
  }
  .nav-links {
    display: none;
    position: absolute;
    z-index: 4;
    inset: 100% 0 auto;
    background: var(--surface);
    border-bottom: 1px solid var(--control-edge);
    padding: 16px var(--gutter);
  }
  .nav-links[data-open] {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .nav-links a {
    padding: 10px 6px;
    min-height: 44px;
  }
  .mobile-actions {
    display: flex;
    gap: 16px;
    grid-column: 1/-1;
    flex-wrap: wrap;
  }
  .head-demo,
  .head-download {
    display: none;
  }
  #menu-toggle {
    display: grid;
    position: relative;
    place-items: center;
    width: 44px;
    height: 44px;
  }
  #menu-toggle::before,
  #menu-toggle::after {
    content: '';
    position: absolute;
    width: 18px;
    border-top: 1px solid currentColor;
  }
  #menu-toggle::before { transform: translateY(-3px); }
  #menu-toggle::after { transform: translateY(3px); }
  #menu-toggle[aria-expanded="true"]::before { transform: rotate(45deg); }
  #menu-toggle[aria-expanded="true"]::after { transform: rotate(-45deg); }

  .card-grid,
  .news-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .reader-layout {
    grid-template-columns: minmax(0, 1fr) 170px;
    gap: 20px;
  }
  .desktop-break {
    display: none;
  }
}
@media (max-width: 700px) {
  :root {
    --gutter: 20px;
  }
  html {
    scroll-padding-top: 20px;
  }
  .brand img {
    width: 44px;
  }
  .brand b {
    font-size: 21px;
  }
  .film-frame {
    aspect-ratio: 4/3;
  }
  .section-heading {
    margin-bottom: 14px;
  }
  .tender-strip p {
    font-size: 14px;
  }
  .tender-strip {
    grid-template-columns: 90px 1fr;
    gap: 8px 14px;
    padding: 14px;
    margin-bottom: 27px;
  }
  .tender-strip img {
    grid-column: 1;
    grid-row: 1/3;
    height: 100%;
    min-height: 96px;
  }
  .tender-strip h2 {
    font-size: 19px;
  }
  .tender-strip b {
    grid-column: 2;
    font-size: 13px;
  }
  .tool-panel,
  .home-contact {
    grid-template-columns: 1fr;
    padding: 20px;
    gap: 14px;
    margin-bottom: 28px;
  }
  .home-contact .button {
    justify-self: start;
  }
  .card-grid,
  .news-grid {
    grid-template-columns: 1fr;
  }
  .card-foot {
    padding-top: 6px;
  }
  .footer-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 18px 8px;
  }
  .footer-grid > div:first-child {
    grid-column: 1/-1;
  }
  .footer-base {
    gap: 10px 14px;
  }
  .reader-layout,
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .reader-side {
    display: none;
  }
  .page-intro {
    padding: 8px 0 24px;
  }
  .crumbs {
    margin: 16px 0;
  }
  .prose {
    font-size: 16px;
  }
  .prose h2 {
    font-size: 21px;
  }
  .filter-bar {
    padding: 12px;
    gap: 8px;
  }
  .search-field {
    flex-basis: 100%;
  }
  .filter-field {
    min-width: 75px;
    flex: 1;
  }
  .filter-field select {
    padding: 8px;
  }
  .interaction,
  .article-frame,
  .directory {
    padding-bottom: 40px;
  }
  .actions {
    gap: 8px;
  }
  .button,
  .plain-button {
    padding: 10px 13px;
  }
  .side-note {
    margin-top: 5px;
  }
  .field-grid {
    grid-template-columns: 1fr;
  }
  .news-grid {
    gap: 27px;
  }
  .news-image {
    aspect-ratio: 2.15;
  }
  .prose .film-frame {
    aspect-ratio: 16/9;
  }
}
@media (max-width: 359px) {
  :root {
    --gutter: 16px;
  }
  .head-row {
    gap: 8px;
  }
  .tender-strip {
    grid-template-columns: 1fr;
  }
  .tender-strip img {
    display: none;
  }
  .tender-strip b {
    grid-column: 1;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
  }
}
@media (forced-colors: active) {
  :focus-visible {
    outline-color: Highlight;
  }
  .footer-qr img {
    forced-color-adjust: none;
  }
}
@media (forced-colors: active) and (prefers-color-scheme: dark) {
  .brand img {
    filter: brightness(0) invert(1);
  }
}
