:root {
  color-scheme: light;
  --canvas: #f3f0e8;
  --surface: #fffcf8;
  --ink: #1c1915;
  --muted: #6f675c;
  --line: #e4ded2;
  --control-line: #8f8374;
  --teal: #0f8f78;
  --teal-ink: #096c5d;
  --blue: #173ba2;
  --orange: #fa0;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  font-family: Manrope, system-ui, sans-serif;
  background: var(--canvas);
  color: var(--ink);
  scroll-padding-top: 80px;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  margin: 0;
}

button,
input {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 4px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.wrap {
  width: min(1160px, calc(100% - 64px));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  z-index: 2;
  top: 0;
  border-bottom: 1px solid var(--line);
  background: rgba(243, 240, 232, 0.96);
  backdrop-filter: blur(12px);
}

.site-header__inner {
  display: flex;
  align-items: center;
  min-height: 66px;
}

.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  border-radius: 6px;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.025em;
}

.site-brand strong {
  color: var(--blue);
  font-weight: 800;
}

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin-top: 30px;
  display: flex;
  align-items: center;
  min-height: 290px;
  padding: 32px 45px;
  border-radius: 23px;
  background: radial-gradient(ellipse at 90% 100%, #2853bc, transparent 62%), linear-gradient(112deg, #153589, var(--blue));
  color: var(--surface);
}

.hero__content {
  position: relative;
  z-index: 1;
}

.hero h1 {
  margin: 0;
  font-size: clamp(46px, 5.5vw, 72px);
  font-weight: 800;
  letter-spacing: -0.07em;
  line-height: 0.99;
}

.hero p {
  max-width: 425px;
  margin: 19px 0 0;
  color: #e7edff;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.65;
}

.hero__art {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero__rings,
.hero__orbit,
.hero__orbit::before,
.hero__orbit::after,
.hero__emblem {
  position: absolute;
  border-radius: 50%;
}

.hero__rings {
  width: 448px;
  aspect-ratio: 1;
  right: 38px;
  top: 50%;
  translate: 0 -50%;
  border: 1px solid rgba(255, 255, 255, 0.17);
  box-shadow: 0 0 0 47px rgba(255, 255, 255, 0.035), 0 0 0 48px rgba(255, 255, 255, 0.1);
}

.hero__orbit {
  inset: 55px;
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.hero__orbit::before,
.hero__orbit::after {
  content: "";
}

.hero__orbit::before {
  inset: 46px;
  border: 1px dashed rgba(255, 255, 255, 0.32);
}

.hero__orbit::after {
  width: 10px;
  height: 10px;
  right: 29px;
  top: 58px;
  background: var(--orange);
  box-shadow: 0 0 0 7px rgba(255, 170, 0, 0.15);
}

.hero__emblem {
  inset: 50% auto auto 50%;
  translate: -50% -50%;
  display: grid;
  place-items: center;
  width: 174px;
  aspect-ratio: 1;
  background: var(--surface);
  box-shadow: 0 14px 40px rgba(13, 28, 80, 0.28), 0 0 0 11px rgba(255, 255, 255, 0.09);
}

.hero__emblem img {
  width: 66%;
  height: auto;
}

.catalog {
  padding-block: 34px 64px;
}

.catalog__head,
.catalog__toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px 20px;
}

.catalog h2 {
  margin: 0;
  font-size: clamp(25px, 3vw, 34px);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1.15;
}

.search {
  display: flex;
  align-items: center;
  gap: 10px;
  width: min(100%, 300px);
  padding-inline: 13px;
  border: 1px solid var(--control-line);
  border-radius: 12px;
  background: var(--surface);
  color: var(--muted);
}

.search:focus-within {
  border-color: var(--teal-ink);
  outline: 2px solid var(--teal-ink);
  outline-offset: 2px;
}

.search svg {
  flex: none;
}

.search input {
  min-width: 0;
  width: 100%;
  min-height: 43px;
  padding: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-size: 16px;
}

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

.catalog__toolbar {
  margin-block: 16px 18px;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  width: 100%;
  min-width: 0;
}

.filters button,
.empty-state button {
  min-height: 36px;
  padding: 6px 13px;
  border: 1px solid var(--control-line);
  border-radius: 999px;
  background: var(--surface);
  color: #4d4438;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}

.filters button:hover,
.empty-state button:hover {
  border-color: var(--teal);
  background: #eaf5f0;
  color: var(--teal-ink);
}

.filters button[aria-pressed="true"] {
  border-color: var(--teal-ink);
  background: var(--teal-ink);
  color: #fff;
}

.catalog__count {
  flex-shrink: 0;
  margin: 0 0 0 auto;
  color: var(--muted);
  font: 500 12px/1.5 var(--mono);
}

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

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.service-card {
  --mark-bg: #edf1fc;
  display: flex;
  flex-direction: column;
  padding: 20px 21px 17px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: var(--surface);
  box-shadow: 0 2px 4px rgba(43, 31, 9, 0.035);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.service-card--prom { --mark-bg: #faebe3; }
.service-card--ssl { --mark-bg: #e4f3ef; }
.service-card--voting { --mark-bg: #eaf3e4; }
.service-card--shop { --mark-bg: #f6eddc; }
.service-card--speaker { --mark-bg: #e9effc; }
.service-card--ping { --mark-bg: #e5f2f6; }
.service-card--meeting { --mark-bg: #efebfa; }
.service-card--vpn { --mark-bg: #e8ebf8; }

.service-card:focus-visible {
  border-color: var(--blue);
  box-shadow: 0 6px 16px rgba(23, 59, 162, 0.1);
}

@media (hover: hover) {
  .service-card:hover {
    transform: translateY(-3px);
    border-color: #a7c6bc;
    box-shadow: 0 12px 24px rgba(47, 39, 19, 0.08);
  }

  .service-card:hover .service-card__open span {
    transform: translateX(3px);
  }
}

.service-card__mark {
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  margin-bottom: 13px;
  border-radius: 14px;
  background: var(--mark-bg);
}

.service-card__mark img {
  object-fit: contain;
}

.service-card h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.2;
}

.service-card p {
  margin: 8px 0 14px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.6;
}

.service-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin: auto 0 13px;
  padding: 0;
  list-style: none;
}

.service-card__tags li {
  padding: 3px 8px;
  border: 1px solid #e6dac8;
  border-radius: 999px;
  background: #f4ede1;
  color: #4d4438;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
}

.service-card__open {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding-top: 10px;
  border-top: 1px solid #efe9e0;
  color: var(--teal-ink);
  font-size: 13px;
  font-weight: 800;
}

.service-card__open span {
  font: 500 18px/1 var(--mono);
  transition: transform 180ms ease;
}

.service-card:focus-visible .service-card__open span {
  transform: translateX(3px);
}

.empty-state {
  padding: 36px 20px;
  border: 1px solid #c9d5ee;
  border-radius: 17px;
  background: #edf1fc;
  text-align: center;
}

.empty-state h3 {
  margin: 0;
  font-size: 21px;
  letter-spacing: -0.03em;
}

.empty-state p {
  margin: 8px 0 16px;
  color: var(--muted);
}

.empty-state button {
  min-height: 40px;
  border-color: var(--teal-ink);
  color: var(--teal-ink);
}


@media (max-width: 950px) {
  .hero p {
    max-width: 365px;
  }

  .hero__rings {
    width: 395px;
    right: -20px;
  }

  .hero__emblem {
    width: 150px;
  }

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

@media (max-width: 740px) {
  .wrap {
    width: calc(100% - 32px);
  }

  .hero {
    min-height: 248px;
    padding: 27px 25px;
  }

  .hero__rings {
    width: 288px;
    right: -40px;
  }

  .hero__orbit {
    inset: 39px;
  }

  .hero__orbit::before {
    inset: 25px;
  }

  .hero__orbit::after {
    right: 13px;
    top: 42px;
    width: 7px;
    height: 7px;
  }

  .hero__emblem {
    width: 114px;
  }

  .hero p {
    max-width: 315px;
  }

  .catalog__toolbar {
    align-items: stretch;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    min-width: 0;
  }

  .catalog__count {
    margin-left: 0;
  }
}

@media (max-width: 540px) {
  .site-header__inner {
    min-height: 58px;
  }

  .site-brand {
    font-size: 16px;
  }

  .site-brand img {
    width: 30px;
    height: auto;
  }

  .hero {
    display: block;
    min-height: auto;
    margin-top: 16px;
    padding: 0;
    border-radius: 18px;
  }

  .hero__content {
    padding: 23px 21px 0;
  }

  .hero h1 {
    font-size: clamp(28px, 9.4vw, 46px);
  }

  .hero p {
    max-width: 310px;
    margin-top: 13px;
    font-size: 14px;
  }

  .hero__art {
    position: relative;
    inset: auto;
    height: 100px;
    overflow: hidden;
  }

  .hero__rings {
    right: -13px;
    width: 216px;
  }

  .hero__orbit {
    inset: 30px;
  }

  .hero__orbit::before {
    inset: 17px;
  }

  .hero__emblem {
    width: 66px;
    box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.09);
  }

  .catalog {
    padding-block: 26px 42px;
  }

  .catalog__head {
    flex-direction: column;
    align-items: flex-start;
  }

  .search {
    width: 100%;
  }

  .filters {
    gap: 6px;
  }

  .filters button {
    min-height: 36px;
    padding-inline: 10px;
  }

  .service-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }

  .service-card {
    padding-inline: 17px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
  }

  .service-card:hover,
  .service-card:hover .service-card__open span,
  .service-card:focus-visible .service-card__open span {
    transform: none;
  }
}
