:root {
  --surface: #f9f9fb;
  --surface-low: #ffffff;
  --surface-soft: #f3f3f5;
  --surface-mid: #e2e2e4;
  --text: #1a1c1d;
  --text-muted: #636264;
  --text-soft: #9a9ca3;
  --primary: #0b56ab;
  --primary-strong: #004e9f;
  --outline: rgba(114, 119, 132, 0.2);
  --outline-soft: rgba(0, 0, 0, 0.06);
  --shadow-nav: 0 10px 30px -14px rgba(17, 24, 39, 0.08);
  --shadow-card: 0 22px 50px -28px rgba(17, 24, 39, 0.18);
  --shadow-button: 0 14px 24px rgba(11, 86, 171, 0.24);
  --container: 1200px;
  --radius-pill: 999px;
  --radius-card: 32px;
  --radius-search: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  font-family: "Inter", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top center, rgba(255, 255, 255, 0.92), rgba(249, 249, 251, 0.98)),
    linear-gradient(180deg, #fcfcfd 0%, #f7f7fa 100%);
  -webkit-font-smoothing: antialiased;
}

button,
input {
  font: inherit;
}

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

svg {
  display: block;
  width: 100%;
  height: 100%;
  fill: currentColor;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--outline-soft);
  background: rgba(249, 249, 251, 0.82);
  backdrop-filter: blur(20px);
}

.topbar-inner,
.footer-inner {
  width: min(calc(100% - 40px), var(--container));
  margin: 0 auto;
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 24px;
}

.brand-wrap,
.topbar-actions,
.main-nav,
.footer-links {
  display: flex;
  align-items: center;
}

.brand-wrap {
  gap: 30px;
}

.brand {
  font-size: 1.02rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.main-nav {
  gap: 26px;
}

.main-nav a {
  position: relative;
  color: var(--text-muted);
  font-size: 1rem;
  transition: color 180ms ease;
}

.main-nav a.is-active,
.main-nav a:hover {
  color: var(--primary);
}

.main-nav a.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -14px;
  height: 2px;
  border-radius: 999px;
  background: var(--primary);
}

.topbar-actions {
  gap: 14px;
}

.icon-button,
.primary-button,
.filter-chip,
.cta-button {
  border: 0;
  cursor: pointer;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background-color 180ms ease,
    color 180ms ease,
    border-color 180ms ease,
    opacity 180ms ease;
}

.icon-button {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: 999px;
  color: var(--text-muted);
  background: transparent;
}

.icon-button svg {
  width: 22px;
  height: 22px;
}

.primary-button,
.cta-button {
  min-height: 50px;
  padding: 0 28px;
  border-radius: var(--radius-pill);
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  box-shadow: var(--shadow-button);
}

.primary-button:hover,
.cta-button:hover {
  transform: translateY(-1px);
  background: var(--primary-strong);
}

.page {
  padding-top: 62px;
}

.search-section,
.gallery-section,
.cta-section {
  width: min(calc(100% - 40px), var(--container));
  margin: 0 auto;
}

.search-section {
  padding-top: 26px;
}

.search-wrap {
  max-width: 770px;
  margin: 0 auto;
}

.search-field {
  position: relative;
  display: block;
}

.search-field svg {
  position: absolute;
  top: 50%;
  left: 20px;
  width: 22px;
  height: 22px;
  color: var(--text-muted);
  transform: translateY(-50%);
}

.search-field input {
  width: 100%;
  height: 60px;
  padding: 0 22px 0 54px;
  border: 1px solid rgba(193, 198, 213, 0.62);
  border-radius: var(--radius-search);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow-nav);
  color: var(--text);
  font-size: 1rem;
  outline: none;
}

.search-field input:focus {
  border-color: rgba(0, 92, 186, 0.36);
  box-shadow:
    0 10px 30px -16px rgba(17, 24, 39, 0.12),
    0 0 0 4px rgba(0, 92, 186, 0.08);
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 16px;
}

.filter-chip {
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid rgba(193, 198, 213, 0.72);
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.82);
  color: var(--text-muted);
  box-shadow: 0 6px 16px -14px rgba(17, 24, 39, 0.2);
}

.filter-chip.is-active {
  background: #ececef;
  border-color: transparent;
  color: var(--text);
}

.gallery-section {
  padding-top: 64px;
}

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

.profile-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 224px;
  padding: 30px 32px;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition:
    transform 220ms ease,
    opacity 220ms ease,
    box-shadow 220ms ease;
}

.profile-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 28px 60px -30px rgba(17, 24, 39, 0.24);
}

.profile-card.is-hidden {
  display: none;
}

.gradient-1 {
  background: linear-gradient(135deg, #fdf2f8 0%, #f0f8ff 100%);
}

.gradient-2 {
  background: linear-gradient(135deg, #f0f8ff 0%, #fdf2f8 100%);
}

.gradient-3 {
  background: linear-gradient(135deg, #fdf2f8 0%, #f0f8ff 56%, #f0fdf4 100%);
}

.gradient-4 {
  background: linear-gradient(135deg, #f5f3ff 0%, #eef7ff 100%);
}

.gradient-5 {
  background: linear-gradient(135deg, #f0fdf4 0%, #f5f3ff 100%);
}

.gradient-6 {
  background: linear-gradient(135deg, #fdf2f8 0%, #f5f3ff 100%);
}

.card-icon,
.card-avatar {
  position: absolute;
  top: 26px;
  right: 26px;
}

.card-icon {
  width: 22px;
  height: 22px;
  color: rgba(26, 28, 29, 0.32);
}

.card-avatar {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 2px solid rgba(255, 255, 255, 0.65);
  border-radius: 999px;
  background:
    linear-gradient(135deg, rgba(26, 28, 29, 0.1), rgba(26, 28, 29, 0.04)),
    rgba(255, 255, 255, 0.7);
  color: rgba(26, 28, 29, 0.68);
  font-size: 0.68rem;
  font-weight: 700;
}

.card-copy {
  text-align: center;
}

.card-copy h2 {
  margin: 0 0 8px;
  font-size: clamp(1.75rem, 2vw, 2.1rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.card-copy p {
  margin: 0;
  color: rgba(26, 28, 29, 0.66);
  font-size: 1rem;
}

.card-id {
  position: absolute;
  left: 32px;
  bottom: 26px;
  color: rgba(26, 28, 29, 0.3);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.cta-section {
  padding-top: 130px;
  padding-bottom: 150px;
}

.cta-inner {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.cta-inner h1 {
  margin: 0;
  font-size: clamp(3rem, 7vw, 5.2rem);
  line-height: 1;
  letter-spacing: -0.06em;
}

.cta-inner p {
  max-width: 600px;
  margin: 22px auto 40px;
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.8;
}

.cta-button {
  min-height: 64px;
  padding: 0 38px;
  font-size: 1rem;
}

.footer {
  border-top: 1px solid var(--outline-soft);
  background: rgba(249, 249, 251, 0.9);
}

.footer-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  padding: 34px 0 40px;
}

.footer-brand {
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.footer-links {
  justify-content: center;
  gap: 28px;
  flex-wrap: wrap;
}

.footer-links a,
.footer-copy {
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: none;
}

@media (max-width: 1024px) {
  .card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-inner {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }
}

@media (max-width: 767px) {
  .topbar-inner,
  .search-section,
  .gallery-section,
  .cta-section,
  .footer-inner {
    width: min(calc(100% - 24px), var(--container));
  }

  .topbar-inner {
    min-height: 66px;
  }

  .brand-wrap {
    gap: 18px;
  }

  .main-nav {
    display: none;
  }

  .icon-button {
    display: none;
  }

  .primary-button {
    min-height: 46px;
    padding: 0 20px;
    font-size: 0.95rem;
  }

  .page {
    padding-top: 40px;
  }

  .search-field input {
    height: 56px;
    font-size: 0.98rem;
  }

  .gallery-section {
    padding-top: 40px;
  }

  .card-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .profile-card {
    min-height: 196px;
    padding: 28px 24px;
  }

  .card-id {
    left: 24px;
  }

  .cta-section {
    padding-top: 88px;
    padding-bottom: 100px;
  }

  .cta-inner p {
    margin-bottom: 30px;
    font-size: 0.98rem;
  }

  .cta-button {
    min-height: 58px;
    width: 100%;
  }

  .footer-inner {
    gap: 18px;
    padding: 28px 0 32px;
  }

  .footer-links {
    gap: 14px 18px;
  }
}
