/* styles.css
i control BIOSkey's complete responsive visual style.
*/

@font-face {
  font-family: "Source Code Pro";
  src: url("/assets/fonts/source-code-pro-regular.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Source Code Pro";
  src: url("/assets/fonts/source-code-pro-bold.woff2") format("woff2");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

:root {
  --background: #000;
  --surface: #090909;
  --surface-active: #1f1f1f;
  --text: #f2f2f2;
  --muted: #a6a6a6;
  --quiet: #6f6f6f;
  --border: #555;
  --border-strong: #d8d8d8;
  --content-width: 960px;
  --radius: 4px;
  --font: "Source Code Pro", Consolas, monospace;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  min-width: 280px;
  background: var(--background);
  color-scheme: dark;
}

body {
  min-height: 100vh;
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
}

button,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  color: inherit;
  transition: border-color 120ms ease, background-color 120ms ease, color 120ms ease;
}

a {
  color: var(--text);
  text-underline-offset: 3px;
}

a:hover,
button:hover {
  color: #fff;
}

:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

::selection {
  background: #fff;
  color: #000;
}

.site-header {
  position: relative;
  display: flex;
  min-height: 66px;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid #1d1d1d;
  padding: 0 28px;
}

.wordmark {
  color: var(--text);
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
  font-size: 21px;
  font-weight: 700;
  text-decoration: none;
}

.header-browse {
  position: absolute;
  right: 28px;
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  color: var(--quiet);
  font-size: 13px;
}

body[data-page="home"] .site-header {
  display: none;
}

body[data-page="home"] {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
}

body[data-page="home"] main {
  display: grid;
  align-items: center;
}

.home {
  display: flex;
  width: min(680px, calc(100% - 40px));
  flex-direction: column;
  justify-content: center;
  margin: 0 auto;
  padding: 72px 0 56px;
}

.home h1 {
  margin: 0 0 34px;
  font-size: clamp(48px, 7vw, 72px);
  letter-spacing: -0.06em;
  line-height: 0.95;
  text-align: center;
}

.search {
  position: relative;
  width: 100%;
}

.search-label {
  display: block;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 13px;
}

.search-field {
  display: flex;
  height: 58px;
  align-items: center;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: var(--background);
}

.home .search-field {
  height: 66px;
  border-width: 2px;
  background: #050505;
}

.search-field:focus-within {
  border-color: #fff;
}

.search-field input {
  width: 100%;
  height: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  padding: 0 18px;
  background: transparent;
  color: var(--text);
  font-size: 17px;
}

.search-field input:focus-visible {
  outline: 0;
}

.search-field input::placeholder {
  color: var(--quiet);
}

.clear-search,
.search-hint {
  flex: 0 0 auto;
  margin-right: 14px;
}

.clear-search {
  border: 0;
  padding: 5px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.search-hint {
  color: var(--quiet);
  font-family: var(--font);
  font-size: 13px;
}

.search-results {
  position: absolute;
  z-index: 10;
  top: calc(100% + 7px);
  right: 0;
  left: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--background);
  transform-origin: top;
  animation: dropdown-in 110ms ease-out;
}

.result-option {
  display: grid;
  width: 100%;
  grid-template-columns: 1fr auto;
  gap: 20px;
  border: 0;
  border-bottom: 1px solid #242424;
  padding: 14px 16px;
  background: var(--background);
  cursor: pointer;
  color: inherit;
  text-decoration: none;
  text-align: left;
}

.result-option:last-child {
  border-bottom: 0;
}

.result-option.is-active {
  background: var(--surface-active);
}

.result-option--brand {
  grid-template-columns: 46px minmax(0, 1fr) auto;
  align-items: center;
  min-height: 72px;
  border-bottom-color: #555;
}

.result-brand-logo {
  display: block;
  width: 38px;
  max-height: 30px;
  object-fit: contain;
}

.result-option strong,
.result-option span {
  display: block;
}

.result-option strong {
  margin-bottom: 4px;
  font-size: 15px;
}

.result-option span {
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.result-arrow {
  align-self: center;
  color: var(--quiet);
}

.no-results {
  padding: 17px;
  color: var(--muted);
  font-size: 14px;
}

.home-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 24px;
  margin-top: 16px;
}

.example-searches {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 14px;
  min-height: 28px;
}

.example-searches > span {
  color: var(--quiet);
  font-size: 13px;
}

.home-links {
  display: flex;
  flex: 0 0 auto;
  align-items: flex-end;
  flex-direction: column;
  gap: 12px;
}

.example-searches a,
.text-button,
.back-button {
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 13px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.text-button,
.back-button {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
}

.example-searches a {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  color: var(--muted);
}

.model-help-button {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  flex: 0 0 auto;
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 13px;
}

.model-help-button:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.home-browse,
.catalogue-tabs {
  display: flex;
  gap: 18px;
}

.home-browse a,
.catalogue-tabs a {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 13px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.breadcrumbs {
  margin-bottom: 38px;
  color: var(--quiet);
  font-size: 12px;
}

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.breadcrumbs li {
  display: flex;
  gap: 8px;
}

.breadcrumbs a,
.breadcrumbs span[aria-current="page"] {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  color: var(--muted);
}

.catalogue-page {
  width: min(var(--content-width), calc(100% - 40px));
  margin: 0 auto;
  padding: 64px 0 100px;
  animation: view-in 180ms ease-out;
}

.catalogue-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 32px;
}

.catalogue-heading h1 {
  margin: 0;
  font-size: clamp(38px, 6vw, 60px);
}

.catalogue-heading-main {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 24px;
}

.catalogue-heading-logo {
  width: clamp(58px, 8vw, 90px);
  max-height: 54px;
  object-fit: contain;
}

.catalogue-heading span,
.brand-grid span {
  color: var(--quiet);
  font-size: 12px;
}

.catalogue-tabs {
  margin: 30px 0 18px;
}

.catalogue-tabs .is-active {
  color: #fff;
  text-decoration-thickness: 2px;
}

.brand-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--border);
  border-left: 1px solid var(--border);
}

.brand-grid a {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  border: 0;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 20px;
  background: #000;
  cursor: pointer;
  color: inherit;
  text-decoration: none;
  text-align: left;
}

.brand-grid-logo {
  width: 46px;
  max-height: 28px;
  object-fit: contain;
}

.brand-name-fallback {
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}

.catalogue-filters {
  display: grid;
  gap: 10px;
  margin-bottom: 22px;
  border-top: 1px solid var(--border);
  padding-top: 16px;
}

.filter-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
}

.filter-group > span {
  width: 66px;
  color: var(--quiet);
  font-size: 11px;
  text-transform: uppercase;
}

.filter-group button {
  border: 1px solid #3a3a3a;
  border-radius: 999px;
  padding: 5px 10px;
  background: #000;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-size: 11px;
}

.filter-group button:hover,
.filter-group button.is-active {
  border-color: #fff;
  color: #fff;
}

.filter-group button:disabled {
  border-color: #242424;
  color: #444;
  cursor: not-allowed;
}

.filter-group button:disabled:hover {
  border-color: #242424;
  color: #444;
}

.brand-grid a:hover,
.catalogue-row:hover {
  background: var(--surface-active);
}

.scope-note {
  margin: 12px 0 28px;
  color: var(--muted);
  font-size: 12px;
}

.catalogue-list {
  border-top: 1px solid var(--border);
}

.catalogue-list--visual .catalogue-row {
  grid-template-columns: 110px minmax(0, 1fr) auto;
}

.catalogue-thumb {
  position: relative;
  display: grid;
  width: 110px;
  height: 76px;
  place-items: center;
  overflow: hidden;
  border: 1px solid #333;
  background: #080808;
}

.catalogue-thumb > img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  background: #eee;
}

.catalogue-thumb > img.is-missing {
  display: none;
}

.catalogue-thumb-fallback {
  display: grid;
  width: 72%;
  height: 58%;
  place-items: center;
}

.catalogue-thumb-logo {
  display: block;
  width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.catalogue-row {
  display: grid;
  width: 100%;
  grid-template-columns: 110px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 20px;
  border: 0;
  border-bottom: 1px solid #333;
  padding: 17px 12px;
  background: #000;
  cursor: pointer;
  color: inherit;
  text-decoration: none;
  text-align: left;
}

.catalogue-brand,
.catalogue-model small {
  color: var(--muted);
  font-size: 12px;
}

.catalogue-model strong,
.catalogue-model small {
  display: block;
}

.catalogue-model small {
  overflow: hidden;
  margin-top: 5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.record-flags {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.record-flags b {
  border: 1px solid #d33;
  padding: 3px 5px;
  color: #f55;
  font-size: 10px;
}

.device-page {
  width: min(var(--content-width), calc(100% - 40px));
  margin: 0 auto;
  padding: 64px 0 100px;
}

.home,
.device-page {
  animation: view-in 180ms ease-out;
}

.back-button {
  display: inline-block;
  margin-bottom: 38px;
}

.device-overview {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  align-items: center;
  gap: 56px;
}

.device-image {
  margin: 0;
}

.device-image-frame {
  display: grid;
  aspect-ratio: 4 / 3;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--border);
  background: #f0f0f0;
}

.device-image-button {
  width: 100%;
  padding: 0;
  cursor: zoom-in;
}

.device-image-button:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

.device-image-frame > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.device-image-frame > img.is-missing {
  display: none;
}

.image-fallback {
  display: none;
  color: #444;
  font-size: 12px;
}

.device-image-frame:has(img.is-missing) .image-fallback {
  display: block;
}

.device-image-frame:has(img.is-missing),
.device-image-frame:has(.image-fallback--visible) {
  background: #080808;
}

.image-fallback--visible {
  display: block;
}

.brand-mark {
  align-items: center;
  justify-content: center;
  color: #111;
  font-size: clamp(20px, 4vw, 34px);
  font-weight: 700;
  letter-spacing: .08em;
}

.brand-mark-logo {
  display: block;
  width: 62%;
  max-height: 42%;
  object-fit: contain;
}

.brand-mark.image-fallback--visible,
.device-image-frame:has(img.is-missing) .brand-mark {
  display: flex;
}

.device-image figcaption {
  margin-top: 8px;
  color: var(--quiet);
  font-size: 11px;
}

.manufacturer {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 14px;
}

.device-title h1 {
  margin: 0;
  font-size: clamp(38px, 6vw, 64px);
  letter-spacing: -0.045em;
  line-height: 1;
}

.model-list {
  margin: 22px 0 0;
  color: var(--muted);
  font-family: var(--font);
  font-size: 13px;
  line-height: 1.7;
}

.shortcuts {
  margin-top: 70px;
  border-top: 1px solid var(--border-strong);
}

.shortcut-row {
  display: grid;
  grid-template-columns: 270px 130px minmax(0, 1fr);
  align-items: start;
  border-bottom: 1px solid #333;
  padding: 25px 0;
  font-family: var(--font);
}

.shortcut-row kbd {
  font: inherit;
  font-size: clamp(17px, 2.2vw, 22px);
  font-weight: 700;
  white-space: nowrap;
}

.shortcut-method {
  padding-top: 5px;
  color: var(--muted);
  font-size: 13px;
}

.shortcut-action strong {
  display: block;
  font-size: 17px;
}

.shortcut-action small {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.verification {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 40px;
  margin-top: 36px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.verification p {
  max-width: 620px;
  margin: 0;
}

.verification--single {
  grid-template-columns: minmax(0, 620px);
}

.source-links {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 7px;
}

.source-links a,
.scope-note a,
.site-footer a {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
}

.search-another {
  margin-top: 90px;
  padding-top: 48px;
  border-top: 1px solid #222;
}

.search-another h2 {
  margin: 0 0 24px;
  font-size: 24px;
}

.site-footer {
  width: min(var(--content-width), calc(100% - 40px));
  margin: 0 auto;
  border-top: 1px solid #222;
  padding: 28px 0 36px;
  color: var(--quiet);
  font-size: 11px;
  line-height: 1.6;
}

.footer-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-footer nav {
  display: flex;
  gap: 18px;
}

.site-footer a {
  color: var(--muted);
}

.site-footer p {
  margin: 16px 0 0;
}

.info-page {
  width: min(720px, calc(100% - 40px));
  min-height: 55vh;
  margin: 0 auto;
  padding: 64px 0 100px;
}

.info-page h1 {
  margin: 0 0 32px;
  font-size: clamp(38px, 6vw, 60px);
}

.info-page p,
.info-page li {
  color: var(--muted);
  line-height: 1.7;
}

.not-found {
  width: min(680px, calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(90px, 18vh, 180px) 0;
  text-align: center;
}

.not-found .error-code {
  margin: 0 0 10px;
  color: var(--quiet);
  font-size: 14px;
}

.not-found h1 {
  margin: 0 0 18px;
  font-size: clamp(42px, 7vw, 68px);
  letter-spacing: -0.05em;
}

.not-found > p:last-of-type {
  color: var(--muted);
}

.not-found nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 24px;
  margin-top: 34px;
}

.model-dialog {
  width: min(720px, calc(100% - 32px));
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  padding: 28px;
  background: var(--background);
  color: var(--text);
}

.model-dialog[open] {
  animation: dialog-in 150ms ease-out;
}

.model-dialog::backdrop {
  background: rgba(0, 0, 0, 0.82);
  animation: backdrop-in 150ms ease-out;
}

.image-dialog {
  width: min(1200px, calc(100% - 32px));
  max-width: none;
  height: min(860px, calc(100vh - 32px));
  max-height: none;
  border: 1px solid var(--border-strong);
  padding: 0;
  background: #000;
  color: var(--text);
}

.image-dialog[open] {
  animation: dialog-in 150ms ease-out;
}

.image-dialog::backdrop {
  background: rgba(0, 0, 0, 0.9);
  animation: backdrop-in 150ms ease-out;
}

.image-dialog-shell {
  display: grid;
  height: 100%;
  grid-template-rows: auto minmax(0, 1fr) auto;
}

.image-dialog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #333;
  padding: 14px 18px;
  color: var(--quiet);
  font-size: 11px;
}

.image-dialog-stage {
  display: grid;
  min-height: 0;
  grid-template-columns: 58px minmax(0, 1fr) 58px;
  align-items: center;
}

.image-dialog-stage figure {
  display: grid;
  grid-column: 2;
  grid-row: 1;
  min-width: 0;
  height: 100%;
  min-height: 0;
  grid-template-rows: minmax(0, 1fr) auto;
  place-items: center;
  margin: 0;
  padding: 20px;
}

.image-dialog-stage img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: contain;
  object-position: center;
}

.image-dialog-stage figcaption {
  padding-top: 12px;
  color: var(--muted);
  font-size: 12px;
}

.image-dialog-nav {
  border: 0;
  padding: 24px 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-size: 22px;
}

.image-dialog-previous {
  grid-column: 1;
  grid-row: 1;
}

.image-dialog-next {
  grid-column: 3;
  grid-row: 1;
}

.image-dialog-nav:hover,
.image-dialog-nav:focus-visible {
  color: #fff;
}

.image-dialog-thumbnails {
  display: flex;
  justify-content: center;
  gap: 8px;
  overflow-x: auto;
  border-top: 1px solid #333;
  padding: 10px;
}

.image-dialog-thumbnails:empty {
  display: none;
}

.image-dialog-thumbnails button {
  width: 72px;
  height: 54px;
  flex: 0 0 auto;
  border: 1px solid #333;
  padding: 0;
  background: #111;
  cursor: pointer;
}

.image-dialog-thumbnails button.is-active {
  border-color: #fff;
}

.image-dialog-thumbnails img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.dialog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 30px;
}

.dialog-header h2 {
  margin: 0;
  font-size: 28px;
}

.help-section {
  border-top: 1px solid #333;
  padding: 24px 0;
}

.help-section:last-child {
  padding-bottom: 0;
}

.help-section h3 {
  margin: 0 0 8px;
  font-size: 16px;
}

.help-section p {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.command {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 13px 14px;
  background: var(--surface);
  cursor: pointer;
  text-align: left;
}

.command code {
  overflow: hidden;
  color: var(--text);
  font-family: var(--font);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.command span {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 12px;
}

@keyframes view-in {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
}

@keyframes dropdown-in {
  from {
    opacity: 0;
    transform: scaleY(0.98);
  }
}

@keyframes dialog-in {
  from {
    opacity: 0;
    transform: translateY(6px) scale(0.99);
  }
}

@keyframes backdrop-in {
  from {
    opacity: 0;
  }
}

@media (max-width: 720px) {
  body[data-page="home"] {
    display: block;
  }

  body[data-page="home"] main {
    display: block;
  }

  .site-header {
    min-height: 58px;
    padding: 0 18px;
  }

  .header-browse {
    right: 18px;
    font-size: 11px;
  }

  .home {
    width: min(100% - 28px, 680px);
    justify-content: flex-start;
    padding: 88px 0 64px;
  }

  .home h1 {
    margin-bottom: 28px;
  }

  .home-actions {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .home-links {
    align-items: center;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px 20px;
  }

  .example-searches > span,
  .example-searches a,
  .home-browse a,
  .model-help-button {
    font-size: 14px;
  }

  .home .search-field {
    height: 60px;
  }

  .device-page {
    width: calc(100% - 28px);
    padding-top: 38px;
  }

  .catalogue-page {
    width: calc(100% - 28px);
    padding-top: 38px;
  }

  .brand-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .catalogue-row {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .catalogue-list--visual .catalogue-row {
    grid-template-columns: 84px minmax(0, 1fr) auto;
  }

  .catalogue-thumb {
    width: 84px;
    height: 60px;
  }

  .catalogue-brand {
    display: none;
  }

  .record-flags {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: flex-start;
  }

  .device-overview {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .device-image {
    max-width: 460px;
  }

  .shortcuts {
    margin-top: 50px;
  }

  .shortcut-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .shortcut-method,
  .shortcut-action {
    grid-column: 1;
    grid-row: auto;
  }

  .shortcut-row kbd {
    overflow-wrap: anywhere;
    white-space: normal;
  }

  .shortcut-method {
    padding-top: 0;
  }

  .shortcut-action {
    margin-top: 8px;
  }

  .verification {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .source-links {
    align-items: flex-start;
  }

  .image-dialog {
    width: calc(100% - 16px);
    height: calc(100vh - 16px);
  }

  .image-dialog-stage {
    grid-template-columns: 40px minmax(0, 1fr) 40px;
  }

  .image-dialog-stage figure {
    padding: 10px;
  }

  .footer-main {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .site-footer,
  .info-page {
    width: calc(100% - 28px);
  }

  .site-footer {
    font-size: 12px;
  }

  .site-footer nav {
    flex-wrap: wrap;
  }
}

@media (max-width: 420px) {
  .brand-grid {
    grid-template-columns: 1fr;
  }

  .brand-grid a {
    grid-template-columns: 44px minmax(0, 1fr) auto;
    min-height: 62px;
    padding: 14px;
  }

  .catalogue-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .home h1 {
    font-size: 50px;
  }

  .search-field input {
    font-size: 15px;
  }

  .model-dialog {
    padding: 22px 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
