:root {
  --bg: #eef5ff;
  --surface: #ffffff;
  --surface-soft: #f6fbff;
  --text: #132238;
  --muted: #5f7087;
  --line: #d9e4f1;
  --brand: #1f78ff;
  --brand-dark: #1359c8;
  --brand-soft: #e7f1ff;
  --accent: #ff8a1f;
  --accent-soft: #fff1e2;
  --green: #1ecf8f;
  --shadow: 0 14px 30px rgba(19, 34, 56, 0.08);
  --shadow-strong: 0 24px 48px rgba(19, 34, 56, 0.14);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Segoe UI Variable", "Bahnschrift", "Trebuchet MS", sans-serif;
  background:
    radial-gradient(circle at top right, rgba(31, 120, 255, 0.08), transparent 28%),
    radial-gradient(circle at top left, rgba(255, 138, 31, 0.08), transparent 22%),
    linear-gradient(180deg, #f8fbff 0%, var(--bg) 100%);
  color: var(--text);
  line-height: 1.5;
}

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

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

a:focus-visible,
button:focus-visible,
select:focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.32);
  outline-offset: 2px;
}

.container {
  width: min(1180px, calc(100% - 16px));
  margin: 0 auto;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -48px;
  z-index: 40;
  padding: 10px 14px;
  border-radius: 10px;
  background: #111827;
  color: #fff;
}

.skip-link:focus {
  top: 12px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(31, 120, 255, 0.14);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(10px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 0;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  color: var(--brand-dark);
}

.site-logo img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.site-logo span {
  font-size: 24px;
  letter-spacing: 0.03em;
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.header-link,
.header-button,
.user-pill {
  min-height: 42px;
  padding: 0 14px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
}

.header-link,
.user-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.header-link {
  color: var(--muted);
}

.header-link.active {
  background: var(--brand-soft);
  color: var(--brand-dark);
}

.user-pill {
  background: linear-gradient(180deg, #f7fbff 0%, #e8f2ff 100%);
  border: 1px solid rgba(31, 120, 255, 0.14);
  color: var(--brand-dark);
}

.header-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.header-button:hover {
  transform: translateY(-1px);
}

.header-button.ghost {
  border: 1px solid var(--line);
  background: rgba(255,255,255,.88);
}

.header-button.primary {
  background: linear-gradient(180deg, var(--brand) 0%, var(--brand-dark) 100%);
  color: #fff;
  box-shadow: 0 12px 24px rgba(31, 120, 255, 0.22);
}

.page {
  padding: 20px 0 40px;
}

.hero-panel,
.filter-section,
.results-section {
  margin-top: 16px;
}

.hero-grid,
.filter-card,
.acc-card,
.empty-state {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow);
}

.hero-grid {
  display: grid;
  gap: 18px;
  padding: 24px;
  background:
    radial-gradient(circle at top right, rgba(31, 120, 255, 0.12), transparent 28%),
    radial-gradient(circle at top left, rgba(255, 138, 31, 0.12), transparent 22%),
    linear-gradient(145deg, #f7fbff 0%, #ffffff 38%, #ffffff 100%);
}

.hero-kicker {
  margin-bottom: 10px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-copy h1 {
  margin-bottom: 10px;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.06;
}

.hero-copy p:last-child {
  max-width: 760px;
  color: var(--muted);
}

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

.stat-card {
  display: grid;
  gap: 4px;
  padding: 18px 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255,255,255,.98) 0%, rgba(248,251,255,.95) 100%);
}

.stat-card strong {
  color: var(--brand-dark);
  font-size: 24px;
}

.stat-card span {
  color: var(--muted);
  font-size: 13px;
}

.filter-card {
  padding: 22px;
}

.section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.section-head h2 {
  margin-bottom: 6px;
  font-size: 24px;
}

.section-head p {
  color: var(--muted);
}

.reset-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 12px;
  background: var(--brand-soft);
  color: var(--brand-dark);
  font-weight: 700;
}

.filter-form {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  align-items: end;
}

.field {
  display: grid;
  gap: 8px;
}

.field span {
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
}

.field select {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  color: var(--text);
  font-size: 14px;
}

.filter-actions {
  display: flex;
  gap: 10px;
}

.primary-action,
.secondary-action,
.buy-btn,
.detail-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 16px;
  border: none;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
}

.primary-action,
.buy-btn {
  background: linear-gradient(180deg, var(--brand) 0%, var(--brand-dark) 100%);
  color: #fff;
  box-shadow: 0 12px 24px rgba(31, 120, 255, 0.2);
}

.secondary-action,
.detail-link {
  border: 1px solid var(--line);
  background: rgba(255,255,255,.9);
  color: var(--text);
}

.inline-action {
  margin-top: 14px;
}

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

.acc-card {
  overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.acc-card:hover {
  transform: translateY(-3px);
  border-color: #bfd4f7;
  box-shadow: var(--shadow-strong);
}

.acc-image-link {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #eff2f7;
}

.acc-image-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.acc-card:hover .acc-image-link img {
  transform: scale(1.04);
}

.server-badge {
  position: absolute;
  left: 14px;
  top: 14px;
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(19, 34, 56, 0.76);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}

.acc-body {
  display: grid;
  gap: 16px;
  padding: 18px;
}

.acc-topline {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.class-pill,
.level-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.class-pill {
  background: var(--accent-soft);
  color: #9b4f00;
}

.level-pill {
  background: var(--brand-soft);
  color: var(--brand-dark);
}

.acc-body h3 {
  font-size: 24px;
  line-height: 1;
}

.meta-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.meta-item {
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #f9fbff;
}

.meta-item span {
  color: var(--muted);
  font-size: 12px;
}

.meta-item strong {
  font-size: 14px;
}

.acc-footer {
  display: grid;
  gap: 14px;
}

.price-box {
  display: grid;
  gap: 4px;
}

.price-box span {
  color: var(--muted);
  font-size: 12px;
}

.price-box strong {
  color: var(--brand-dark);
  font-size: 28px;
  line-height: 1;
}

.action-group {
  display: flex;
  gap: 10px;
}

.action-group > * {
  flex: 1;
}

.empty-state {
  display: grid;
  place-items: center;
  min-height: 240px;
  padding: 24px;
  text-align: center;
}

.empty-state h3 {
  margin-bottom: 8px;
  font-size: 28px;
}

.empty-state p {
  color: var(--muted);
}

.site-footer {
  margin-top: 24px;
  padding: 34px 0;
  background:
    radial-gradient(circle at top left, rgba(66, 153, 225, 0.18), transparent 24%),
    linear-gradient(180deg, #132946 0%, #0f1f36 100%);
  color: #eef5ff;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 24px;
}

.footer-brand img {
  width: 70px;
  height: 70px;
  margin-bottom: 12px;
  object-fit: contain;
}

.footer-brand h2,
.footer-column h3 {
  margin-bottom: 10px;
}

.footer-brand p,
.footer-column li {
  color: #c9d7ea;
  line-height: 1.55;
}

.footer-column ul {
  list-style: none;
  display: grid;
  gap: 8px;
}

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

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

@media (max-width: 768px) {
  .container {
    width: min(100%, calc(100% - 16px));
  }

  .header-inner,
  .section-head,
  .footer-inner {
    grid-template-columns: 1fr;
    display: grid;
  }

  .header-actions {
    justify-content: flex-start;
  }

  .header-link {
    display: none;
  }

  .site-logo span {
    font-size: 18px;
  }

  .hero-grid,
  .filter-card {
    padding: 18px;
  }

  .hero-stats,
  .filter-form,
  .acc-grid,
  .meta-list {
    grid-template-columns: 1fr;
  }

  .filter-actions,
  .action-group {
    flex-direction: column;
  }

  .acc-body h3 {
    font-size: 22px;
  }

  .price-box strong {
    font-size: 24px;
  }
}
