.prototype-switcher {
  position: relative;
  z-index: 5;
  box-sizing: border-box;
  width: 100%;
  padding: 28px max(24px, calc((100vw - 1240px) / 2));
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 88% 20%, rgba(0, 184, 230, 0.22), transparent 30%),
    linear-gradient(135deg, #001a70 0%, #003ea5 100%);
  font-family: Arial, Helvetica, sans-serif;
}

.prototype-switcher::after {
  position: absolute;
  right: -70px;
  bottom: -110px;
  width: 260px;
  height: 260px;
  border: 34px solid rgba(255, 255, 255, 0.07);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

.prototype-switcher__head {
  position: relative;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 18px;
}

.prototype-switcher__eyebrow {
  display: block;
  margin-bottom: 5px;
  color: #73ddff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.prototype-switcher__title {
  scroll-margin-top: 120px;
  margin: 0;
  color: #fff;
  font-size: clamp(22px, 2.2vw, 32px);
  font-weight: 800;
  line-height: 1.1;
}

.prototype-switcher__hint {
  max-width: 380px;
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
  line-height: 1.45;
  text-align: right;
}

.prototype-switcher__nav {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.prototype-switcher__link {
  display: flex;
  min-width: 0;
  min-height: 66px;
  align-items: center;
  gap: 12px;
  box-sizing: border-box;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  text-decoration: none;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.prototype-switcher__link:hover,
.prototype-switcher__link:focus-visible {
  border-color: rgba(115, 221, 255, 0.82);
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
  outline: none;
}

.prototype-switcher__link[aria-current="page"] {
  border-color: #73ddff;
  color: #001a70;
  background: #fff;
  box-shadow: 0 12px 30px rgba(0, 9, 44, 0.24);
}

.prototype-switcher__index {
  display: grid;
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  place-items: center;
  border-radius: 10px;
  color: #001a70;
  background: #73ddff;
  font-size: 11px;
  font-weight: 900;
}

.prototype-switcher__link[aria-current="page"] .prototype-switcher__index {
  color: #fff;
  background: #0069d9;
}

.prototype-switcher__copy {
  min-width: 0;
}

.prototype-switcher__label,
.prototype-switcher__meta {
  display: block;
  overflow-wrap: anywhere;
  line-height: 1.4;
}

.prototype-switcher__label {
  font-size: 15px;
  font-weight: 800;
}

.prototype-switcher__meta {
  margin-top: 3px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 12px;
}

.prototype-switcher__link[aria-current="page"] .prototype-switcher__meta {
  color: #5f7195;
}

.prototype-switcher [hidden] { display: none !important; }
.prototype-switcher__tools { position: relative; display: flex; flex-wrap: wrap; align-items: end; gap: 12px; margin: 24px 0 12px; }
.prototype-switcher__search-label { display: grid; flex: 1 1 380px; gap: 8px; color: #fff; font-size: 14px; font-weight: 700; }
.prototype-switcher__search-label input { box-sizing: border-box; width: 100%; min-width: 0; min-height: 46px; border: 1px solid #8bc9ee; border-radius: 12px; padding: 12px 15px; background: #fff; color: #001a70; font: 16px Arial, Helvetica, sans-serif; }
.prototype-switcher__search-label input::placeholder { color: #5f7195; }
.prototype-switcher__tools button { min-height: 46px; padding: 10px 12px; border: 1px solid #ffffff50; border-radius: 10px; background: #ffffff10; color: #fff; cursor: pointer; font: 14px Arial, Helvetica, sans-serif; }
.prototype-switcher__tools button:hover { background: #ffffff25; }
.prototype-switcher__tools :focus-visible, .prototype-switcher__group > summary:focus-visible { outline: 2px solid #73ddff; outline-offset: 4px; }
.prototype-switcher__count { margin: 0 0 18px; color: #c6d9f9; font-size: 14px; }
.prototype-switcher__empty { padding: 20px; border: 1px solid #ffffff50; border-radius: 12px; color: #fff; }
.prototype-switcher__group { position: relative; border: 0; border-top: 1px solid #ffffff35; padding: 0; margin: 0; background: none; border-radius: 0; }
.prototype-switcher__group > summary { cursor: pointer; padding: 18px 0; color: #fff; font: 700 17px/1.5 Arial, Helvetica, sans-serif; }
.prototype-switcher__group-count { display: inline-block; margin-left: 8px; color: #a9eaff; font-size: 14px; font-weight: 400; }
.prototype-switcher__group .prototype-switcher__nav { margin-bottom: 22px; }

@media print {
  .prototype-switcher { display: none !important; }
}

@media (max-width: 900px) {
  .prototype-switcher__head {
    align-items: start;
    flex-direction: column;
    gap: 8px;
  }

  .prototype-switcher__hint {
    max-width: 620px;
    text-align: left;
  }

  .prototype-switcher__nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .prototype-switcher {
    padding: 24px 16px 28px;
  }

  .prototype-switcher__nav {
    grid-template-columns: 1fr;
  }

  .prototype-switcher__link {
    min-height: 58px;
  }
}
