:root {
  --brand-blue: #0252a4;
  --brand-blue-dark: #012142;
  --brand-blue-soft: #eaf3fb;
  --ink: #3f3f3f;
  --muted: #536176;
  --surface: #ffffff;
  --canvas: #012142;
  --line: #d7e0e8;
  --focus: #ffb000;
  --radius: 0.85rem;
  --shadow: 0 0.6rem 1.8rem rgba(16, 38, 63, 0.1);
  color-scheme: light;
  font-family: Inter, "Segoe UI", Roboto, Arial, sans-serif;
  line-height: 1.5;
}

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

html {
  background: var(--canvas);
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  min-width: 0;
  margin: 0;
  overflow-x: hidden;
  color: #ffffff;
  background: var(--canvas);
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

a:focus-visible,
button:focus-visible,
select:focus-visible {
  outline: 0.2rem solid var(--focus);
  outline-offset: 0.18rem;
}

.shell {
  width: min(100%, 76rem);
  margin-inline: auto;
  padding-inline: clamp(0.75rem, 4vw, 2rem);
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 0.5rem;
  left: 0.5rem;
  padding: 0.75rem 1rem;
  transform: translateY(-150%);
  border-radius: 0.4rem;
  color: #fff;
  background: var(--brand-blue-dark);
}

.skip-link:focus {
  transform: translateY(0);
}

.masthead {
  position: relative;
  z-index: 2;
}

.masthead__topline {
  height: 0.5625rem;
  border-bottom: 0.0625rem solid #e8e0eb;
  background: #fff7ff;
}

.utility-bar {
  color: #fff;
  background: linear-gradient(to bottom, #515151 0 88.9%, #383737 88.9% 100%);
}

.utility-bar__inner {
  display: flex;
  justify-content: flex-end;
  gap: 0.25rem;
  padding-left: 7.25rem;
}

.utility-bar a {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  padding-inline: 0.7rem;
  font-size: 0.875rem;
  font-weight: 650;
  text-decoration: none;
}

.utility-bar a:hover {
  background: rgba(255, 255, 255, 0.12);
}

.site-header {
  color: #fff;
  background: #0252a4;
}

.site-header__inner {
  display: flex;
  min-height: 3.75rem;
  align-items: center;
}

.brand {
  position: relative;
  display: inline-flex;
  min-height: 3.75rem;
  align-items: center;
  gap: 0.8rem;
  text-decoration: none;
}

.brand__mark {
  position: absolute;
  z-index: 3;
  top: -0.75rem;
  left: 0.25rem;
  display: grid;
  width: 5rem;
  height: 5rem;
  place-items: center;
  transform: rotate(45deg);
  overflow: hidden;
  border-radius: 0.55rem;
  background: #fff;
  box-shadow: 0 0.2rem 0.35rem rgba(0, 0, 0, 0.5);
}

.brand__mark img {
  width: 96%;
  height: 96%;
  object-fit: contain;
  transform: rotate(-45deg);
}

.brand__text {
  display: grid;
  line-height: 1.08;
  margin-left: 7rem;
}

.brand__text strong {
  letter-spacing: 0.08em;
  font-size: 1.45rem;
}

.brand__text small {
  margin-top: 0.28rem;
  color: #dbeeff;
  font-size: 0.78rem;
  font-weight: 600;
}

.masthead__lower {
  height: 2.875rem;
  background: #012142;
}

.catalog-layout {
  display: grid;
  gap: 1.25rem;
  padding-block: 1rem 2.5rem;
}

.language-panel {
  min-width: 0;
  padding: 0.8rem;
  border: 0.0625rem solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
}

.language-panel__label {
  margin: 0 0 0.65rem;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 750;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.language-list,
.root-language-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.language-list a {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 0.72rem;
  border: 0.0625rem solid var(--line);
  border-radius: 999px;
  color: var(--brand-blue-dark);
  background: #fff;
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
}

.language-list a[aria-current="page"] {
  border-color: var(--brand-blue);
  color: #fff;
  background: var(--brand-blue);
}

.language-list__code {
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  opacity: 0.82;
}

.catalog {
  min-width: 0;
}

.catalog__heading {
  margin-bottom: 1.15rem;
}

.catalog__heading h1 {
  color: #fff;
}

.eyebrow {
  margin: 0 0 0.25rem;
  color: var(--brand-blue);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(1.75rem, 7vw, 3rem);
  line-height: 1.12;
  text-wrap: balance;
}

.catalog__heading > p:last-child,
.root-chooser__card > p,
.error-page > p {
  max-width: 43rem;
  margin: 0.75rem 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 3vw, 1.12rem);
}

.catalog__heading > p:last-child {
  color: #d8e7f5;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 20rem));
  gap: 1rem;
  justify-content: start;
}

.product-card {
  min-width: 0;
  overflow: hidden;
  border: 0.75rem solid #f3f3f3;
  border-radius: 0.35rem;
  background: #f3f3f3;
  color: var(--ink);
  box-shadow: none;
}

.product-card__link {
  position: relative;
  display: flex;
  min-height: 100%;
  flex-direction: column;
  text-decoration: none;
}

.product-card__image-wrap {
  position: relative;
  display: grid;
  aspect-ratio: 4 / 3;
  min-height: 0;
  overflow: hidden;
  place-items: center;
  background: #fff;
}

.product-card__image-wrap img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.product-card__body {
  display: grid;
  flex: 1;
  min-height: 4.25rem;
  align-content: center;
  padding: 0.75rem 4.5rem 0.75rem 0;
  border-top: 0.75rem solid #f3f3f3;
}

.product-card__body strong {
  overflow-wrap: anywhere;
  font-size: 1.08rem;
  line-height: 1.3;
}

.product-card__corner {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 4rem;
  height: 4rem;
  background: #0252a4;
  clip-path: polygon(100% 0, 100% 100%, 0 100%);
}

.product-card__corner span {
  position: absolute;
  right: 0.7rem;
  bottom: 0.24rem;
  color: #fff;
  font-size: 1.75rem;
  font-weight: 800;
  line-height: 1;
}

.product-card__link:hover .product-card__corner,
.product-card__link:focus-visible .product-card__corner {
  background: #013f80;
}

.empty-state {
  padding: 1rem;
  border: 0.0625rem solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.root-chooser,
.error-page {
  display: grid;
  min-height: 55vh;
  place-items: center;
  padding-block: 2rem 3rem;
}

.root-chooser__card,
.error-page {
  width: min(100%, 42rem);
}

.root-chooser__card {
  padding: clamp(1rem, 5vw, 2.25rem);
  border: 0.0625rem solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  color: var(--ink);
}

.root-language-list {
  margin-top: 1.25rem;
}

.root-language-list li {
  flex: 1 1 8rem;
}

.root-language-list a {
  display: grid;
  min-height: 4rem;
  align-content: center;
  padding: 0.7rem 0.9rem;
  border: 0.0625rem solid var(--line);
  border-radius: 0.65rem;
  color: var(--brand-blue-dark);
  text-decoration: none;
}

.root-language-list a:hover {
  border-color: var(--brand-blue);
  background: var(--brand-blue-soft);
}

.root-language-list strong {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
}

.error-page {
  display: block;
  min-height: 55vh;
  padding-top: 3rem;
}

.error-page h1 {
  color: #fff;
}

.error-page > p {
  color: #d8e7f5;
}

.error-page__code {
  color: var(--brand-blue) !important;
  font-size: clamp(3rem, 18vw, 8rem) !important;
  font-weight: 850;
  line-height: 1;
}

.button {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  margin-top: 1.25rem;
  padding: 0.65rem 1rem;
  border-radius: 0.55rem;
  color: #fff;
  background: var(--brand-blue);
  font-weight: 750;
  text-decoration: none;
}

.site-footer {
  border-top: 0.0625rem solid var(--line);
  color: #d8e7f5;
  background: #011a34;
}

.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  padding-block: 1.25rem;
  font-size: 0.88rem;
}

.site-footer p {
  margin: 0;
}

@media (min-width: 40rem) {
  .utility-bar__inner {
    padding-left: 10.5rem;
  }

  .utility-bar a {
    min-height: 2.25rem;
  }

  .brand__mark {
    top: -0.875rem;
    left: 0.6rem;
    width: 5.8rem;
    height: 5.8rem;
  }

  .brand__text {
    margin-left: 8rem;
  }

  .catalog-layout {
    padding-block: 1.5rem 3.5rem;
  }

  .product-grid {
    gap: 1.25rem;
  }
}

@media (min-width: 56rem) {
  .catalog-layout {
    grid-template-columns: 12rem minmax(0, 1fr);
    gap: 2rem;
    align-items: start;
  }

  .language-panel {
    position: sticky;
    top: 1rem;
    padding: 1rem;
  }

  .language-list {
    display: grid;
  }

  .language-list a {
    width: 100%;
    border-radius: 0.55rem;
  }
}

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

@media (forced-colors: active) {
  .brand__mark,
  .product-card,
  .language-panel,
  .root-chooser__card {
    border: 0.125rem solid CanvasText;
  }
}
