@import "fonts.css";

/* ==========================================================================
   Segédanyag archívum — Szitakötő arculat
   Színek és tipográfia a szitakoto.com/segedanyagok design rendszeréből.
   ========================================================================== */

/* Arial-alapú tartalék, Inter metrikákra igazítva (nincs elrendezés-ugrás) */
@font-face {
  font-family: "Inter fallback";
  src: local("Arial");
  size-adjust: 107.4%;
  ascent-override: 90.2%;
  descent-override: 22.48%;
  line-gap-override: 0%;
}

:root {
  --navy: #003865;
  --navy-dark: #002845;
  --orange: #ff8236;
  --blue: #0070c9;
  --blue-dark: #005ba6;
  --yellow: #ffd700;
  --green: #6f9e00;
  --green-light: #9acc5d;

  --bg: #fbfbfb;
  --card: #e7edf3;
  --card-hover: #dde6ef;
  --line: #d9dfe6;
  --text: #535353;
  --ink: #1b1c20;
  --muted: #6f7c88;
  --white: #fff;

  --font: Inter, "Inter fallback", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;

  --r-sm: 4px;
  --r: 6px;
  --r-lg: 12px;
  --r-pill: 999px;

  --shadow-sm: 0 1px 2px rgb(0 56 101 / .06);
  --shadow: 0 4px 16px rgb(0 56 101 / .09);
  --shadow-lg: 0 18px 48px rgb(0 56 101 / .18);

  --header-h: 76px;
  --gap: 24px;
  --wrap: 1440px;
}

*, *::before, *::after { box-sizing: border-box; }

[hidden] { display: none !important; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 { color: var(--navy); font-weight: 700; line-height: 1.2; margin: 0; text-wrap: balance; }

a { color: var(--blue); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--blue-dark); }

img, svg { max-width: 100%; }

:where(a, button, input, select, summary, [tabindex]):focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 2px;
  border-radius: var(--r-sm);
}

.visually-hidden:where(:not(:focus-within, :active)) {
  position: absolute !important;
  clip-path: inset(50%) !important;
  overflow: hidden !important;
  width: 1px !important; height: 1px !important;
  margin: -1px !important; padding: 0 !important; border: 0 !important;
  white-space: nowrap !important;
}

.skip-link {
  position: fixed; inset-block-start: 8px; inset-inline-start: 8px; z-index: 200;
  background: var(--navy); color: var(--white);
  padding: 10px 18px; border-radius: var(--r); font-weight: 600; text-decoration: none;
}

.wrap { width: min(100% - 40px, var(--wrap)); margin-inline: auto; }

/* ===== Fejléc ============================================================ */

.site-header {
  position: sticky; inset-block-start: 0; z-index: 60;
  background: var(--white);
  border-block-end: 1px solid var(--line);
}
.site-header__inner {
  display: flex; align-items: center; gap: 20px;
  min-height: var(--header-h);
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; flex: 0 0 auto; }
.brand img { width: 46px; height: 46px; }
.brand__text { display: block; }
.brand b { display: block; color: var(--orange); font-size: 19px; font-weight: 800; letter-spacing: -.01em; line-height: 1.15; }
.brand__text > span { display: block; color: var(--navy); font-size: 11px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; }

.mainnav { flex: 1 1 auto; }
.mainnav ul { display: flex; flex-wrap: wrap; gap: 4px; list-style: none; margin: 0; padding: 0; justify-content: center; }
.mainnav a {
  display: block; padding: 9px 13px; border-radius: var(--r);
  color: var(--navy); font-size: 15px; font-weight: 600; text-decoration: none;
  transition: background-color .16s, color .16s;
}
.mainnav a:hover { background: var(--card); }
.mainnav a[aria-current="page"] { color: var(--orange); }

.header-tools { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; margin-inline-start: auto; }

.issue-jump {
  appearance: none;
  min-width: 210px; padding: 10px 38px 10px 14px;
  background: var(--white) url("img/chevron.svg") no-repeat right 12px center / 14px;
  border: 1px solid var(--line); border-radius: var(--r);
  color: var(--navy); font: inherit; font-size: 14.5px; font-weight: 500; cursor: pointer;
}
.issue-jump:hover { border-color: var(--navy); }

.icon-btn {
  display: grid; place-items: center;
  width: 46px; height: 46px; padding: 0;
  background: var(--green-light); color: var(--navy);
  border: 0; border-radius: var(--r); cursor: pointer;
  transition: background-color .16s;
}
.icon-btn:hover { background: var(--green); color: var(--white); }
.icon-btn svg { width: 20px; height: 20px; }

.burger { display: none; }

/* ===== Fejrész / hero ==================================================== */

.hero {
  position: relative; overflow: hidden;
  background: var(--navy);
  color: var(--white);
  padding-block: 54px 58px;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: url("img/hero.svg") no-repeat right -60px center / auto 210%;
  opacity: .5; pointer-events: none;
}
.hero > .wrap { position: relative; z-index: 1; }
.breadcrumb { display: flex; gap: 8px; align-items: center; list-style: none; margin: 0 0 10px; padding: 0; font-size: 14.5px; }
.breadcrumb a { color: rgb(255 255 255 / .82); text-decoration: none; }
.breadcrumb a:hover { color: var(--white); text-decoration: underline; }
.breadcrumb li + li::before { content: "/"; margin-inline-end: 8px; color: rgb(255 255 255 / .45); }
.breadcrumb [aria-current] { color: rgb(255 255 255 / .6); }
.hero h1 { color: var(--white); font-size: clamp(30px, 4vw, 44px); font-weight: 700; letter-spacing: -.02em; }
.hero p { max-width: 62ch; margin: 12px 0 0; color: rgb(255 255 255 / .8); font-size: 16.5px; }
.hero__stats { display: flex; flex-wrap: wrap; gap: 10px; margin-block-start: 22px; }
.hero__stats span {
  padding: 7px 14px; border-radius: var(--r-pill);
  background: rgb(255 255 255 / .13); color: var(--white);
  font-size: 14px; font-weight: 600;
}

/* ===== Elrendezés ======================================================== */

.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 372px;
  gap: 40px;
  padding-block: 44px 72px;
  align-items: start;
}

/* ===== Eszköztár ========================================================= */

.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-block-end: 18px; }
.toolbar h2 { font-size: clamp(24px, 2.6vw, 32px); margin-inline-end: auto; }
.toolbar h2 small { display: block; margin-block-start: 3px; color: var(--muted); font-size: 14.5px; font-weight: 500; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px; border-radius: var(--r);
  border: 1px solid transparent; background: var(--card); color: var(--navy);
  font: inherit; font-size: 14.5px; font-weight: 600; text-decoration: none; cursor: pointer;
  transition: background-color .16s, color .16s, border-color .16s;
}
.btn:hover { background: var(--card-hover); }
.btn svg { width: 16px; height: 16px; }
.btn--navy { background: var(--navy); color: var(--white); }
.btn--navy:hover { background: var(--navy-dark); color: var(--white); }
.btn--ghost { background: transparent; border-color: var(--line); }
.btn--ghost:hover { background: var(--card); }
.btn[hidden] { display: none; }

.select {
  appearance: none;
  padding: 10px 38px 10px 14px;
  background: var(--white) url("img/chevron.svg") no-repeat right 12px center / 14px;
  border: 1px solid var(--line); border-radius: var(--r);
  color: var(--navy); font: inherit; font-size: 14.5px; font-weight: 600; cursor: pointer;
}
.select:hover { border-color: var(--navy); }

/* Aktív szűrők */
.active-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-block-end: 20px; }
.active-filters:empty { display: none; }
.pill-remove {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 6px 8px 6px 12px; border: 0; border-radius: var(--r-pill);
  background: var(--navy); color: var(--white);
  font: inherit; font-size: 13.5px; font-weight: 600; cursor: pointer;
}
.pill-remove:hover { background: var(--navy-dark); }
.pill-remove i { font-style: normal; opacity: .7; font-weight: 500; }
.pill-remove svg { width: 13px; height: 13px; }

/* ===== Találati kártyák ================================================== */

.cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }

.card {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) 108px;
  gap: 20px;
  padding: 20px 22px;
  background: var(--card);
  border-radius: var(--r);
  border: 1px solid transparent;
  transition: border-color .16s, box-shadow .16s, background-color .16s;
}
.card:hover { border-color: #c9d6e3; box-shadow: var(--shadow-sm); }
/* A hajtás alatti kártyák renderelése halasztott */
.card--deferred { content-visibility: auto; contain-intrinsic-size: auto none auto 168px; }

.card__badge {
  display: grid; place-items: center;
  width: 52px; height: 62px; border-radius: var(--r-sm);
  background: var(--white); border: 1px solid var(--line);
  color: var(--muted); font-size: 10.5px; font-weight: 800; letter-spacing: .04em;
  position: relative;
}
.card__badge::before {
  content: ""; position: absolute; inset-block-start: 0; inset-inline: 0;
  height: 6px; border-radius: var(--r-sm) var(--r-sm) 0 0;
  background: currentcolor;
}
.card__badge--pdf { color: #d5323a; }
.card__badge--doc { color: #1f5eb4; }
.card__badge--ppt { color: #d0562a; }
.card__badge--xls { color: #1d7a45; }
.card__badge--img, .card__badge--vid, .card__badge--aud { color: #6d5bb5; }

.card__main { min-width: 0; }

.card__title { font-size: 19px; font-weight: 700; line-height: 1.3; margin: 0 0 12px; text-wrap: pretty; }
.card__title a { color: var(--navy); text-decoration: none; }
.card__title a:hover { color: var(--blue); text-decoration: underline; }

.card__meta { display: flex; flex-wrap: wrap; gap: 4px 22px; margin-block-end: 12px; }
.card__meta div { display: flex; align-items: center; gap: 8px; font-size: 14.5px; color: var(--ink); }
.card__meta svg { width: 15px; height: 15px; flex: 0 0 auto; color: var(--muted); }

.card__meta-link {
  color: var(--ink); text-decoration: none;
  border-block-end: 1px dashed #a9b8c6;
  transition: color .16s, border-color .16s;
}
.card__meta-link:hover { color: var(--blue); border-block-end-color: var(--blue); }
.card__meta-link.is-active { color: var(--navy); font-weight: 700; border-block-end-style: solid; }

.card__desc { margin: 0 0 12px; font-size: 14.5px; color: var(--text); }

.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag {
  padding: 4px 11px; border-radius: var(--r-sm);
  font-size: 13px; font-weight: 600; line-height: 1.45;
  border: 0; cursor: pointer; font-family: inherit;
  transition: filter .16s;
}
.tag:hover { filter: brightness(.94); }
.tag--jelleg { background: var(--yellow); color: #4a3c00; }
.tag--korcsoport { background: var(--orange); color: var(--white); }
.tag--tantargy { background: var(--blue); color: var(--white); }
.tag--issue { background: #cfdae5; color: var(--navy); }
.tag[aria-pressed="true"] { box-shadow: inset 0 0 0 2px var(--navy); }

.card__side { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; text-align: center; }
.card__dl {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 14px; border-radius: var(--r);
  background: var(--navy); color: var(--white);
  font-size: 14px; font-weight: 600; text-decoration: none; white-space: nowrap;
}
.card__dl:hover { background: var(--navy-dark); color: var(--white); }
.card__dl svg { width: 15px; height: 15px; }
.card__src { font-size: 12.5px; color: var(--muted); text-decoration: none; }
.card__src:hover { color: var(--navy); text-decoration: underline; }

mark { background: #ffe98a; color: inherit; border-radius: 2px; padding: 0 1px; }

/* Állapotok */
.state { padding: 60px 24px; text-align: center; background: var(--card); border-radius: var(--r); }
.state h3 { font-size: 20px; margin-block-end: 8px; }
.state p { margin: 0 0 18px; }

.skeleton { display: grid; gap: 14px; }
.skeleton div {
  height: 132px; border-radius: var(--r);
  background: linear-gradient(90deg, var(--card) 25%, #eff3f7 50%, var(--card) 75%) 0 0 / 400% 100%;
  animation: shimmer 1.4s infinite linear;
}
@keyframes shimmer { to { background-position: -400% 0; } }

.load-more { display: grid; justify-items: center; gap: 10px; margin-block-start: 28px; }
.load-more p { margin: 0; font-size: 14px; color: var(--muted); }

/* ===== Szűrő panel ======================================================= */

.filters {
  position: sticky; inset-block-start: calc(var(--header-h) + 20px);
  max-height: calc(100dvh - var(--header-h) - 40px);
  overflow-y: auto; overscroll-behavior: contain;
  padding: 26px; background: var(--white);
  border: 1px solid var(--line); border-radius: var(--r-lg);
  scrollbar-width: thin; scrollbar-color: #b4c6d7 transparent;
}
.filters > h2 { font-size: 26px; margin-block-end: 18px; }

.search-field { position: relative; margin-block-end: 8px; }
.search-field svg {
  position: absolute; inset-block-start: 50%; inset-inline-start: 14px;
  translate: 0 -50%; width: 18px; height: 18px; color: var(--muted); pointer-events: none;
}
.search-field input {
  width: 100%; padding: 14px 42px 14px 44px;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r);
  color: var(--ink); font: inherit; font-size: 15.5px;
}
.search-field input::placeholder { color: #98a4ae; }
.search-field input:focus { border-color: var(--navy); }
.search-field input::-webkit-search-cancel-button { display: none; }
.search-clear {
  position: absolute; inset-block-start: 50%; inset-inline-end: 8px; translate: 0 -50%;
  display: grid; place-items: center; width: 28px; height: 28px;
  border: 0; border-radius: 50%; background: transparent; color: var(--muted); cursor: pointer;
}
.search-clear:hover { background: var(--card); color: var(--ink); }
.search-clear svg { position: static; translate: none; width: 13px; height: 13px; }
.search-hint { margin: 0 0 20px; font-size: 12.5px; color: var(--muted); }
.search-hint kbd {
  padding: 1px 5px; border: 1px solid var(--line); border-radius: 3px;
  background: var(--bg); font-family: inherit; font-size: 11.5px;
}

.fgroup { border-block-start: 1px solid var(--line); padding-block: 16px; }
.fgroup > summary {
  display: flex; align-items: center; gap: 10px;
  list-style: none; cursor: pointer;
  color: var(--navy); font-size: 17px; font-weight: 700;
}
.fgroup > summary::-webkit-details-marker { display: none; }
.fgroup > summary::after {
  content: ""; margin-inline-start: auto; width: 14px; height: 14px;
  background: url("img/chevron.svg") no-repeat center / contain;
  transition: rotate .2s;
}
.fgroup[open] > summary::after { rotate: 180deg; }
.fgroup__count {
  padding: 1px 8px; border-radius: var(--r-pill);
  background: var(--navy); color: var(--white); font-size: 12px; font-weight: 700;
}
.fgroup__count:empty { display: none; }
.fgroup__body { padding-block-start: 14px; }

.chips { display: flex; flex-wrap: wrap; gap: 7px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px 6px 8px; border-radius: var(--r-sm);
  font-size: 13.5px; font-weight: 600; line-height: 1.4; cursor: pointer;
  user-select: none; transition: filter .16s, opacity .16s;
}
.chip:hover { filter: brightness(.95); }
.chip input {
  appearance: none; margin: 0; flex: 0 0 auto;
  width: 15px; height: 15px; border: 2px solid currentcolor; border-radius: 3px;
  background: var(--white); cursor: pointer;
}
.chip input:checked {
  background: var(--navy) url("img/check.svg") no-repeat center / 10px;
  border-color: var(--navy);
}
.chip input:focus-visible { outline: 3px solid var(--navy); outline-offset: 2px; }
.chip:has(input:checked) { box-shadow: inset 0 0 0 2px var(--navy); }
.chip--zero { opacity: .38; }
.chip small { font-weight: 500; opacity: .75; font-variant-numeric: tabular-nums; }

.chip--jelleg { background: var(--yellow); color: #4a3c00; }
.chip--korcsoport { background: var(--orange); color: var(--white); }
.chip--tantargy { background: var(--blue); color: var(--white); }
.chip--ext, .chip--year { background: var(--card); color: var(--navy); }

/* Kereshető listás szűrők (szerző, intézmény, lapszám) */
.facet-search {
  width: 100%; padding: 9px 12px; margin-block-end: 10px;
  border: 1px solid var(--line); border-radius: var(--r);
  font: inherit; font-size: 14px; color: var(--ink);
}
.facet-search:focus { border-color: var(--navy); }
.facet-list { list-style: none; margin: 0; padding: 0; max-height: 264px; overflow-y: auto; scrollbar-width: thin; }
.facet-list li { border-block-end: 1px solid #f0f3f6; }
.facet-list label {
  display: flex; align-items: center; gap: 10px;
  padding: 7px 4px; font-size: 14px; cursor: pointer; color: var(--ink);
}
.facet-list label:hover { color: var(--navy); }
.facet-list input {
  appearance: none; flex: 0 0 auto; width: 16px; height: 16px;
  border: 2px solid #b9c4cf; border-radius: 3px; background: var(--white); cursor: pointer;
}
.facet-list input:checked { background: var(--navy) url("img/check.svg") no-repeat center / 11px; border-color: var(--navy); }
.facet-list span { flex: 1 1 auto; overflow-wrap: anywhere; }
.facet-list small { color: var(--muted); font-variant-numeric: tabular-nums; }
.facet-empty { padding: 10px 4px; font-size: 13.5px; color: var(--muted); }

/* ===== ABC-rendes index oldalak (szerzők, iskolák) ======================= */

.az-page { padding-block: 40px 72px; }

.az-tools {
  display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px;
  margin-block-end: 22px;
}
.az-tools .search-field { flex: 1 1 340px; max-width: 520px; margin: 0; }
.az-count { margin: 0; color: var(--muted); font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; }

.az-bar {
  position: sticky; inset-block-start: calc(var(--header-h) + 8px); z-index: 20;
  display: flex; flex-wrap: wrap; gap: 4px;
  padding: 10px 12px; margin-block-end: 30px;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r);
  box-shadow: var(--shadow-sm);
}
.az-bar a {
  display: grid; place-items: center; min-width: 34px; height: 32px; padding-inline: 6px;
  border-radius: var(--r-sm);
  color: var(--navy); font-size: 14.5px; font-weight: 700; text-decoration: none;
  transition: background-color .16s, color .16s;
}
.az-bar a:hover { background: var(--navy); color: var(--white); }

.az-group { margin-block-end: 34px; }
.az-group[hidden] { display: none; }

.az-letter {
  display: flex; align-items: center; gap: 14px;
  margin: 0 0 12px; color: var(--orange);
  font-size: 24px; font-weight: 800; letter-spacing: -.01em;
  scroll-margin-block-start: calc(var(--header-h) + 70px);
}
.az-letter::after { content: ""; flex: 1 1 auto; height: 2px; background: var(--card); }

.az-list {
  columns: 3; column-gap: 44px;
  list-style: none; margin: 0; padding: 0;
}
.az-list li {
  display: flex; align-items: baseline; gap: 10px;
  break-inside: avoid;
  padding: 9px 2px;
  border-block-end: 1px solid var(--line);
}
.az-list li[hidden] { display: none; }
.az-list a {
  color: var(--ink); font-size: 16px; text-decoration: none;
  overflow-wrap: anywhere;
}
.az-list a:hover { color: var(--blue); text-decoration: underline; }
.az-list span {
  margin-inline-start: auto; white-space: nowrap;
  color: var(--muted); font-size: 11.5px; font-weight: 600;
  letter-spacing: .05em; text-transform: uppercase;
  font-variant-numeric: tabular-nums;
}
.az-empty { margin-block: 10px 30px; }
.az-note { margin: -16px 0 26px; color: var(--muted); font-size: 14px; }
.az-note em { color: var(--ink); font-style: italic; }

@media (max-width: 1100px) { .az-list { columns: 2; } }
@media (max-width: 700px) {
  .az-list { columns: 1; }
  .az-bar { position: static; }
  .az-letter { scroll-margin-block-start: 16px; }
}

/* ===== Lábléc ============================================================ */

.site-footer { background: var(--navy); color: rgb(255 255 255 / .78); padding-block: 44px 30px; font-size: 14.5px; }
.site-footer h3 { color: var(--white); font-size: 15px; margin-block-end: 10px; }
.site-footer a { color: var(--white); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 32px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.site-footer__bottom {
  margin-block-start: 30px; padding-block-start: 18px;
  border-block-start: 1px solid rgb(255 255 255 / .16);
  display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; font-size: 13.5px;
}

/* ===== Vissza a tetejére ================================================= */

.to-top {
  position: fixed; inset-block-end: 24px; inset-inline-end: 24px; z-index: 50;
  display: grid; place-items: center; width: 48px; height: 48px;
  border: 0; border-radius: 50%; background: var(--navy); color: var(--white);
  box-shadow: var(--shadow); cursor: pointer;
  opacity: 0; visibility: hidden; translate: 0 12px;
  transition: opacity .2s, translate .2s, visibility .2s;
}
.to-top.is-visible { opacity: 1; visibility: visible; translate: 0; }
.to-top svg { width: 20px; height: 20px; rotate: 180deg; }

/* ===== Mobil szűrő fiók ================================================== */

.filters-backdrop { display: none; }

@media (max-width: 1100px) {
  .layout { grid-template-columns: minmax(0, 1fr); }
  .mainnav { display: none; }

  /* Az ABC-oldalakon nincs szűrőfiók, ezért a menü vízszintesen görgethető sávként marad */
  .page-az .site-header__inner { flex-wrap: wrap; padding-block-end: 10px; }
  .page-az .mainnav {
    display: block; order: 3; flex-basis: 100%;
    overflow-x: auto; overscroll-behavior-x: contain;
    scrollbar-width: none; -webkit-overflow-scrolling: touch;
  }
  .page-az .mainnav::-webkit-scrollbar { display: none; }
  .page-az .mainnav ul { flex-wrap: nowrap; justify-content: flex-start; }
  .page-az .mainnav a { white-space: nowrap; padding-inline: 10px; font-size: 14.5px; }
  .burger { display: grid; }
  .issue-jump { display: none; }

  .filters {
    position: fixed; inset: 0 0 0 auto; z-index: 110;
    width: min(420px, 92vw); max-height: none; height: 100dvh;
    border-radius: 0; border: 0; padding: 22px 22px 90px;
    translate: 100% 0; transition: translate .28s cubic-bezier(.25,.46,.45,.94);
    box-shadow: var(--shadow-lg);
  }
  .filters.is-open { translate: 0 0; }
  body.filters-open { overflow: hidden; }
  .filters-backdrop {
    display: block; position: fixed; inset: 0; z-index: 105;
    background: rgb(0 24 45 / .45);
    opacity: 0; visibility: hidden; transition: opacity .28s, visibility .28s;
    border: 0; padding: 0; cursor: pointer;
  }
  .filters-backdrop.is-open { opacity: 1; visibility: visible; }
  .filters__close { position: absolute; inset-block-start: 18px; inset-inline-end: 18px; }
  .filters__apply {
    position: absolute; inset-block-end: 0; inset-inline: 0;
    padding: 14px 22px; background: var(--white); border-block-start: 1px solid var(--line);
  }
  .filters__apply .btn { width: 100%; justify-content: center; }
}
@media (min-width: 1101px) {
  .filters__close, .filters__apply, .filters-open-btn { display: none !important; }
}

@media (max-width: 860px) {
  .wrap { width: min(100% - 32px, var(--wrap)); }
  .hero { padding-block: 34px 38px; }
  .card { grid-template-columns: 44px minmax(0, 1fr); gap: 14px; padding: 16px; }
  .card__badge { width: 44px; height: 54px; }
  .card__side { grid-column: 1 / -1; flex-direction: row; justify-content: flex-start; gap: 14px; }
  .card__title { font-size: 17.5px; }
  .toolbar h2 { width: 100%; }
  .brand__text > span { display: none; }
  .brand img { width: 40px; height: 40px; }
  .brand b { font-size: 17px; }
}
@media (max-width: 520px) {
  .card { grid-template-columns: minmax(0, 1fr); }
  .card__badge { display: none; }
}

@media print {
  .site-header, .hero, .filters, .toolbar, .to-top, .site-footer, .load-more { display: none !important; }
  .card { break-inside: avoid; border: 1px solid #ccc; background: none; }
}
