/* ART CANVAS */
#art {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* SCROLL PROGRESS BAR */
.prog {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 999;
  height: 3px;
  background: linear-gradient(90deg, var(--blue, #003087), var(--red, #C8102E));
  width: 0%;
  transition: width .1s linear;
  pointer-events: none;
}

:root {
  --blue: #003087;
  --blue-2: #1a4faa;
  --blue-3: #3b82f6;
  --red: #c8102e;
  --red-2: #e8213f;
  --green: #0e7f57;
  --yellow: #f5b800;
  --cream: #f5f0e8;
  --cream-2: #ede8dc;
  --cream-3: #d9d2c2;
  --ink: #0d1117;
  --ink-2: #3d4455;
  --ink-3: #7a8099;
  --surface: #ffffff;
  --surface-2: #f8f5ef;
  --surface-3: #eef2fb;
  --border: rgba(0, 48, 135, 0.12);
  --border-soft: rgba(0, 48, 135, 0.06);
  --shadow: 0 2px 16px rgba(0, 48, 135, 0.07), 0 1px 3px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 10px 34px rgba(0, 48, 135, 0.12), 0 2px 12px rgba(0, 0, 0, 0.05);
  --shadow-red: 0 10px 26px rgba(200, 16, 46, 0.22);
  --display: "Bebas Neue", "Oswald", sans-serif;
  --serif: "Playfair Display", serif;
  --body: "DM Sans", "Manrope", sans-serif;
  --mono: "DM Mono", "JetBrains Mono", monospace;
  --radius: 12px;
  --radius-lg: 22px;
}

[data-theme="dark"] {
  --blue: #3b82f6;
  --blue-2: #60a5fa;
  --blue-3: #93c5fd;
  --red: #ef4444;
  --red-2: #fb7185;
  --green: #22c55e;
  --yellow: #f59e0b;
  --cream: #0c1221;
  --cream-2: #111827;
  --cream-3: #19243a;
  --ink: #eef2ff;
  --ink-2: #c8d1e6;
  --ink-3: #8ea0c3;
  --surface: #0d1220;
  --surface-2: #111827;
  --surface-3: #152033;
  --border: rgba(59, 130, 246, 0.18);
  --border-soft: rgba(59, 130, 246, 0.08);
  --shadow: 0 2px 16px rgba(0, 0, 0, 0.28);
  --shadow-lg: 0 10px 34px rgba(0, 0, 0, 0.34);
  --shadow-red: 0 10px 26px rgba(239, 68, 68, 0.2);
}

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

html {
  scroll-behavior: smooth;
}

body {
  position: relative;
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(circle at top right, rgba(245, 184, 0, 0.15), transparent 25%),
    radial-gradient(circle at bottom left, rgba(0, 48, 135, 0.12), transparent 28%),
    var(--cream);
  color: var(--ink);
  font-family: var(--body);
}

[data-theme="dark"] body {
  background:
    radial-gradient(circle at top right, rgba(245, 158, 11, 0.1), transparent 22%),
    radial-gradient(circle at bottom left, rgba(59, 130, 246, 0.16), transparent 26%),
    linear-gradient(180deg, #07101d 0%, #0b1220 42%, #0d1629 100%);
}

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

button,
input,
textarea {
  font: inherit;
}

.shell {
  position: relative;
  z-index: 1;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 clamp(16px, 3vw, 30px) 92px;
}

.bg-scene {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.bg-grid {
  position: absolute;
  inset: -15%;
  background-image:
    linear-gradient(rgba(0, 48, 135, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 48, 135, 0.045) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: radial-gradient(circle at center, rgba(0, 0, 0, 0.7), transparent 78%);
  animation: driftGrid 20s linear infinite;
}

.bg-orb {
  position: absolute;
  border-radius: 999px;
  filter: blur(10px);
  opacity: 0.5;
}

.bg-orb-a {
  top: 4%;
  left: -3%;
  width: clamp(220px, 30vw, 420px);
  height: clamp(220px, 30vw, 420px);
  background: radial-gradient(circle, rgba(0, 48, 135, 0.24) 0%, rgba(0, 48, 135, 0) 70%);
  animation: floatOrbA 18s ease-in-out infinite;
}

.bg-orb-b {
  top: 28%;
  right: -4%;
  width: clamp(180px, 24vw, 340px);
  height: clamp(180px, 24vw, 340px);
  background: radial-gradient(circle, rgba(200, 16, 46, 0.18) 0%, rgba(200, 16, 46, 0) 72%);
  animation: floatOrbB 22s ease-in-out infinite;
}

.bg-orb-c {
  bottom: -6%;
  left: 28%;
  width: clamp(260px, 32vw, 460px);
  height: clamp(260px, 32vw, 460px);
  background: radial-gradient(circle, rgba(245, 184, 0, 0.16) 0%, rgba(245, 184, 0, 0) 74%);
  animation: floatOrbC 24s ease-in-out infinite;
}

.ann {
  margin-top: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  border-radius: 14px;
  background: linear-gradient(90deg, var(--blue) 0%, #001a60 45%, var(--red) 100%);
  background-size: 220% 100%;
  animation: bandFlow 14s ease-in-out infinite;
  padding: 9px 14px;
  color: rgba(255, 255, 255, 0.92);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.ann-main {
  text-align: center;
}

.ann s {
  opacity: 0.4;
  text-decoration: none;
  margin: 0 10px;
}

.ann-feeds {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}

.ann-feed {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 9px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.96);
  font-size: 10px;
  letter-spacing: 1px;
  white-space: nowrap;
}

.ann-feed:hover {
  background: rgba(255, 255, 255, 0.16);
}

.ann-feed-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  flex-shrink: 0;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.16);
}

.ann-feed-top .ann-feed-dot {
  background: #ff5a6f;
}

.ann-feed-new .ann-feed-dot {
  background: #22c55e;
}

@keyframes bandFlow {

  0%,
  100% {
    background-position: 0%;
  }

  50% {
    background-position: 100%;
  }
}

@keyframes driftGrid {
  0% {
    transform: translate3d(0, 0, 0);
  }

  50% {
    transform: translate3d(-18px, 14px, 0);
  }

  100% {
    transform: translate3d(0, 0, 0);
  }
}

@keyframes floatOrbA {

  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }

  50% {
    transform: translate3d(32px, 20px, 0) scale(1.08);
  }
}

@keyframes floatOrbB {

  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }

  50% {
    transform: translate3d(-28px, 26px, 0) scale(0.95);
  }
}

@keyframes floatOrbC {

  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }

  50% {
    transform: translate3d(18px, -24px, 0) scale(1.04);
  }
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 90;
  margin-top: 14px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px) saturate(140%);
  box-shadow: var(--shadow);
}

.tbi {
  display: grid;
  grid-template-columns: auto minmax(220px, 360px) minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 14px 18px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.b-em {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(145deg, var(--blue) 0%, var(--red) 100%);
  color: #fff;
  font-family: var(--display);
  font-size: 20px;
  letter-spacing: -1px;
  box-shadow: 0 6px 16px rgba(200, 16, 46, 0.22);
}

.b-tx {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.b-name {
  font-family: var(--display);
  font-size: 24px;
  letter-spacing: 2px;
  color: var(--blue);
}

.b-sub {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--red);
  text-transform: uppercase;
}

.sf {
  width: 100%;
}

.ss {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 42px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 0 12px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.ss:focus-within {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(0, 48, 135, 0.08);
}

.ss svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  color: var(--ink-3);
}

.ss input {
  width: 100%;
  border: none;
  outline: none;
  background: transparent;
  color: var(--ink);
  font-size: 14px;
}

.ss input::placeholder {
  color: var(--ink-3);
}

.kh {
  flex-shrink: 0;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: var(--surface-2);
  padding: 3px 6px;
  color: var(--ink-3);
  font-family: var(--mono);
  font-size: 10px;
}

.nr {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

.nl,
.lcur,
.lopt,
.cta,
.thb,
.chat-icon-nav {
  transition: all 0.2s ease;
}

.nl {
  padding: 7px 10px;
  border-radius: 8px;
  color: var(--ink-2);
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
}

.nl:hover {
  background: rgba(0, 48, 135, 0.08);
  color: var(--blue);
}

.lsw {
  position: relative;
}

.lcur {
  display: flex;
  align-items: center;
  gap: 5px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  padding: 7px 10px;
  color: var(--ink-2);
  font-family: var(--mono);
  font-size: 11px;
  cursor: pointer;
}

.lcur:hover {
  border-color: var(--blue);
  color: var(--blue);
}

.lcur svg {
  width: 11px;
  height: 11px;
}

.ldrop {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 132px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  padding: 6px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px);
}

.lsw:hover .ldrop,
.lsw:focus-within .ldrop {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.lopt {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 13px;
  color: var(--ink-2);
}

.lopt:hover,
.lopt.active {
  background: rgba(0, 48, 135, 0.08);
  color: var(--blue);
}

.lopt span {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 10px;
  opacity: 0.6;
}

.thb,
.chat-icon-nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1.5px solid var(--border);
  border-radius: 9px;
  background: var(--surface);
  color: var(--ink-2);
  cursor: pointer;
}

.thb:hover,
.chat-icon-nav:hover {
  border-color: var(--blue);
  background: var(--blue);
  color: #fff;
}

.thb svg,
.chat-icon-nav svg {
  width: 16px;
  height: 16px;
}

.chat-icon-nav {
  position: relative;
}

.chat-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  width: 10px;
  height: 10px;
  border: 2px solid var(--cream);
  border-radius: 50%;
  background: var(--red);
}

.cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 15px;
  border-radius: 9px;
  background: var(--red);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.cta:hover {
  background: var(--red-2);
  transform: translateY(-1px);
  box-shadow: var(--shadow-red);
}

.hero {
  display: grid;
  grid-template-columns: minmax(320px, 1.08fr) minmax(250px, 0.78fr) minmax(250px, 370px);
  gap: 18px;
  margin-top: 18px;
  align-items: stretch;
}

.hero-panel,
.hero-left,
.hero-mid,
.hero-right--cards {
  min-width: 0;
}

.hero-panel {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, var(--surface-2) 100%);
  box-shadow: var(--shadow-lg);
}

.hero-panel::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 5px;
  background: linear-gradient(90deg, rgba(0, 48, 135, 0.95), rgba(59, 130, 246, 0.45), rgba(200, 16, 46, 0.85));
  opacity: 0.9;
}

.hero-panel--catalog {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(238, 242, 251, 0.92) 100%);
}

.hero-panel--catalog::before {
  background: linear-gradient(90deg, rgba(0, 48, 135, 0.95), rgba(26, 79, 170, 0.65), rgba(245, 184, 0, 0.85));
}

.hero-left {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100%;
  padding: clamp(22px, 3vw, 42px);
}

.hero-ey {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  color: var(--red);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 2.2px;
  text-transform: uppercase;
}

.pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--red);
  animation: pulseDot 2s ease-in-out infinite;
}

@keyframes pulseDot {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.3;
    transform: scale(0.75);
  }
}

.hero-brand-block {
  margin-bottom: 10px;
}

.hero-h1 {
  margin: 0;
  color: var(--blue);
  font-family: var(--display);
  font-size: clamp(54px, 7vw, 110px);
  line-height: 0.86;
  letter-spacing: -2px;
}

.hero-h1 em {
  display: block;
  color: var(--red);
  font-style: normal;
}

.hero-tagline {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
}

.hero-tagline-line {
  width: 28px;
  height: 2px;
  border-radius: 999px;
  background: var(--red);
}

.hero-tagline-text {
  color: var(--ink-3);
  font-family: var(--serif);
  font-size: clamp(14px, 1.5vw, 20px);
  font-style: italic;
}

.hero-desc {
  max-width: 430px;
  margin: 16px 0 18px;
  color: var(--ink-2);
  font-size: 14px;
  line-height: 1.7;
}

.hero-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 44px;
  padding: 0 20px;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
}

.btn-red {
  background: var(--red);
  color: #fff;
}

.btn-red:hover {
  background: var(--red-2);
  transform: translateY(-2px);
  box-shadow: var(--shadow-red);
}

.btn-out {
  background: transparent;
  color: var(--blue);
  border: 2px solid var(--blue);
}

.btn-out:hover {
  background: var(--blue);
  color: #fff;
  transform: translateY(-2px);
}

.btn-soft {
  background: var(--surface);
  color: var(--ink-2);
  border: 1.5px solid var(--border);
}

.btn-soft:hover {
  border-color: var(--blue);
  color: var(--blue);
}

.hero-stats-row {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  width: fit-content;
  max-width: 100%;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.hsr-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 88px;
  padding: 9px 12px;
}

.hsr-val {
  color: var(--blue);
  font-family: var(--display);
  font-size: 24px;
  line-height: 1;
}

.hsr-lbl {
  margin-top: 2px;
  color: var(--ink-3);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-align: center;
}

.hsr-div {
  width: 1px;
  background: var(--border);
}

.hero-mid {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  background: transparent;
}

.hm-top {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(135deg, rgba(0, 48, 135, 0.05) 0%, transparent 70%);
}

.hm-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--blue) 0%, var(--blue-2) 100%);
  color: #fff;
  font-size: 18px;
  box-shadow: 0 5px 16px rgba(0, 48, 135, 0.2);
}

.hm-info {
  min-width: 0;
}

.hm-title {
  color: var(--blue);
  font-family: var(--display);
  font-size: 18px;
}

.hm-sub {
  margin-top: 2px;
  color: var(--ink-3);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.hm-cats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 12px;
  flex: 1;
}

.hm-cat-card {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  min-height: 74px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface-2);
  padding: 10px 11px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.hm-cat-card:hover {
  transform: translateY(-2px);
  border-color: rgba(0, 48, 135, 0.24);
  box-shadow: 0 8px 18px rgba(0, 48, 135, 0.12);
}

.hm-cat-card--wide {
  grid-column: 1 / -1;
}

.hm-cat-ico {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-2) 100%);
  color: #fff;
  font-size: 17px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.16);
  flex-shrink: 0;
}

.hm-cat-info {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-width: 0;
}

.hm-cat-name {
  display: block;
  width: 100%;
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.hm-cat-n {
  margin-top: 2px;
  color: var(--ink-3);
  font-family: var(--mono);
  font-size: 10px;
  line-height: 1.25;
}

.hm-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border);
  padding: 11px 14px;
  background: linear-gradient(135deg, rgba(0, 48, 135, 0.04), transparent);
  color: var(--blue);
  font-size: 12px;
  font-weight: 700;
}

.hm-footer-n {
  border-radius: 999px;
  background: var(--blue);
  padding: 3px 8px;
  color: #fff;
  font-family: var(--mono);
  font-size: 10px;
}

.hero-right--cards {
  display: flex;
  flex-direction: column;
  gap: 9px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.84) 0%, rgba(237, 232, 220, 0.96) 100%);
  box-shadow: var(--shadow-lg);
  padding: 12px;
}

.hpc {
  position: relative;
  display: flex;
  flex: 1;
  min-height: 0;
  overflow: hidden;
  border-radius: 18px;
  color: #fff;
  transition: transform 0.22s ease, filter 0.22s ease, box-shadow 0.22s ease;
}

.hpc:hover {
  transform: translateY(-2px) scale(1.01);
  filter: brightness(1.04);
}

.hpc-rank {
  background: linear-gradient(140deg, #003087 0%, #1a4faa 45%, #2563eb 75%, #3b82f6 100%);
  box-shadow: 0 5px 18px rgba(0, 48, 135, 0.28);
}

.hpc-rates {
  background: linear-gradient(140deg, #8b0020 0%, #c8102e 45%, #e8213f 75%, #ff4d6a 100%);
  box-shadow: 0 5px 18px rgba(200, 16, 46, 0.28);
}

.hpc-reg {
  background: linear-gradient(140deg, #072c64 0%, #0f4597 55%, #1a4faa 100%);
  box-shadow: 0 5px 18px rgba(7, 44, 100, 0.3);
}

.hpc-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 18px;
}

.hpc-head {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 12px;
}

.hpc-ico-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.14);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.15);
  flex-shrink: 0;
}

.hpc-ico-wrap svg {
  width: 20px;
  height: 20px;
}

.hpc-label {
  color: rgba(255, 255, 255, 0.72);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 1.7px;
  text-transform: uppercase;
}

.hpc-title {
  margin-top: 3px;
  font-family: var(--display);
  font-size: 25px;
  letter-spacing: 0.5px;
  line-height: 0.98;
}

.hpc-desc {
  color: rgba(255, 255, 255, 0.88);
  font-size: 13px;
  line-height: 1.55;
}

.hpc-search-row,
.hpc-reg-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: auto;
  padding-top: 14px;
}

.hpc-field {
  width: 100%;
  border: none;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.12);
  padding: 11px 12px;
  color: #fff;
  outline: none;
}

.hpc-field::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

.hpc-field:focus {
  background: rgba(255, 255, 255, 0.18);
}

.hpc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border: none;
  border-radius: 10px;
  background: #fff;
  color: #071938;
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
}

.hpc-btn:hover {
  transform: translateY(-1px);
}

.hpc-btn--full {
  width: 100%;
}

.hpc-link,
.hr-note {
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 11px;
}

.hpc-link {
  font-weight: 700;
}

.ad-strip {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  margin-top: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: linear-gradient(135deg, var(--surface) 0%, var(--surface-2) 100%);
  box-shadow: var(--shadow);
  padding: 18px 22px;
}

.as-body {
  position: relative;
  z-index: 1;
}

.as-title {
  color: var(--blue);
  font-family: var(--display);
  font-size: clamp(26px, 4vw, 36px);
  line-height: 0.95;
}

.as-sub {
  margin-top: 6px;
  color: var(--ink-2);
  font-size: 14px;
}

.as-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 10px;
  background: var(--red);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  white-space: nowrap;
}

.as-btn:hover {
  background: var(--red-2);
}

.chip-bar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.chip {
  display: inline-flex;
  align-items: flex-start;
  gap: 8px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  padding: 9px 13px;
  color: var(--ink-2);
  font-size: 12.5px;
  font-weight: 700;
  box-shadow: var(--shadow);
  line-height: 1.2;
  white-space: normal;
  overflow-wrap: anywhere;
}

.chip .cn {
  align-self: center;
}

.chip:hover,
.chip.on {
  border-color: var(--blue);
  color: var(--blue);
}

.cn,
.cn2 {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 26px;
  height: 22px;
  border-radius: 999px;
  background: rgba(0, 48, 135, 0.08);
  padding: 0 8px;
  font-family: var(--mono);
  font-size: 10px;
}

.main-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 18px;
  margin-top: 18px;
}

.main-col,
.side {
  min-width: 0;
}

.main-col {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.block,
.scard,
.wid-sec {
  border: 1px solid var(--border);
  border-radius: 22px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.block {
  overflow: hidden;
}

.sh {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 22px 14px;
}

.sh-t {
  color: var(--blue);
  font-family: var(--display);
  font-size: 34px;
  line-height: 0.95;
}

.sh-s {
  margin-top: 4px;
  color: var(--ink-3);
  font-size: 13px;
}

.sh-more {
  color: var(--red);
  font-size: 13px;
  font-weight: 800;
}

.cat-hd {
  display: flex;
  align-items: center;
  gap: 10px;
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
  background: linear-gradient(90deg, rgba(0, 48, 135, 0.04), transparent);
  padding: 12px 22px;
}

.cat-hd-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  font-size: 17px;
}

.cat-hd-name {
  color: var(--ink);
  font-size: 15px;
  font-weight: 800;
}

.cat-hd-count {
  margin-left: auto;
  color: var(--ink-3);
  font-family: var(--mono);
  font-size: 11px;
}

.tw {
  overflow-x: auto;
}

.rt {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.rt-col-rank {
  width: 8%;
}

.rt-col-site {
  width: 32%;
}

.rt-col-category {
  width: 26%;
}

.rt-col-metric {
  width: 10%;
}

.rt-col-actions {
  width: 14%;
}

.rt thead th {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-soft);
  color: var(--ink-3);
  font-size: 11px;
  font-weight: 700;
  text-align: left;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.rt tbody td {
  padding: 13px 16px;
  border-bottom: 1px solid var(--border-soft);
  vertical-align: top;
  font-size: 13px;
}

.rt tbody tr:last-child td {
  border-bottom: none;
}

.rp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  border-radius: 999px;
  padding: 6px 10px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
}

.rp1 {
  background: rgba(0, 48, 135, 0.1);
  color: var(--blue);
}

.sc-cell {
  display: flex;
  gap: 10px;
  min-width: 0;
}

.sc-meta {
  min-width: 0;
}

.sc-av {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 11px;
  background: linear-gradient(145deg, var(--blue) 0%, var(--red) 100%);
  color: #fff;
  font-family: var(--display);
  font-size: 20px;
  flex-shrink: 0;
}

.sc-dn {
  display: inline-block;
  color: var(--blue);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.sc-pj {
  margin-top: 2px;
  color: var(--ink);
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.sc-ds {
  margin-top: 4px;
  color: var(--ink-3);
  font-size: 11.5px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.tag-s {
  display: inline-block;
  max-width: 100%;
  border-radius: 18px;
  background: rgba(0, 48, 135, 0.08);
  padding: 6px 11px;
  color: var(--blue);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.35;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.mono {
  font-family: var(--mono);
  font-size: 12px;
}

.table-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.table-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  border-radius: 9px;
  background: var(--blue);
  padding: 0 11px;
  color: #fff;
  font-size: 11.5px;
  font-weight: 700;
  white-space: nowrap;
}

.table-link:hover {
  background: var(--blue-2);
}

.table-link.ghost {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--ink-2);
}

.table-link.ghost:hover {
  border-color: var(--blue);
  color: var(--blue);
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 18px 22px 22px;
}

.pagination-link,
.pagination-current {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid var(--border);
  font-weight: 700;
}

.pagination-link:hover {
  border-color: var(--blue);
  color: var(--blue);
}

.pagination-current {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
}

.empty-state {
  padding: 22px;
  color: var(--ink-2);
}

.news-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 0 18px 18px;
}

.nc {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 12px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--surface-2);
  padding: 14px;
}

.nc-n {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: linear-gradient(145deg, var(--blue) 0%, var(--red) 100%);
  color: #fff;
  font-family: var(--display);
  font-size: 28px;
}

.nc-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.ntag,
.ndate {
  border-radius: 999px;
  padding: 4px 9px;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.ntag {
  background: rgba(0, 48, 135, 0.09);
  color: var(--blue);
}

.ndate {
  background: rgba(200, 16, 46, 0.08);
  color: var(--red);
}

.ntitle {
  margin-top: 8px;
  color: var(--ink);
  font-size: 16px;
  font-weight: 800;
  line-height: 1.32;
}

.nexc {
  margin-top: 6px;
  color: var(--ink-2);
  font-size: 13px;
  line-height: 1.6;
}

.nmore {
  display: inline-block;
  margin-top: 8px;
  color: var(--red);
  font-size: 12px;
  font-weight: 800;
}

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

.service-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--surface-2);
  padding: 16px;
}

.service-badge {
  color: var(--red);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.service-title {
  color: var(--blue);
  font-family: var(--display);
  font-size: 26px;
  line-height: 0.95;
}

.service-text {
  color: var(--ink-2);
  font-size: 13px;
  line-height: 1.6;
}

.service-link {
  margin-top: auto;
  color: var(--blue);
  font-size: 13px;
  font-weight: 800;
}

.side {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.scard {
  padding: 16px;
}

.scard h3 {
  margin: 0 0 10px;
  color: var(--blue);
  font-family: var(--display);
  font-size: 28px;
  line-height: 0.95;
}

.scard p {
  margin: 0;
  color: var(--ink-2);
  font-size: 13px;
  line-height: 1.65;
}

.scard-news {
  position: sticky;
  top: 92px;
}

.side-news-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 12px;
}

.side-news-item {
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface-2);
  padding: 11px 12px;
}

.side-news-top {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.side-news-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 34px;
  border-radius: 12px;
  background: linear-gradient(145deg, var(--blue) 0%, var(--red) 100%);
  color: #fff;
  font-family: var(--display);
  font-size: 22px;
  line-height: 1;
  flex-shrink: 0;
}

.side-news-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  min-width: 0;
}

.side-news-title {
  margin-top: 8px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.side-news-excerpt {
  margin-top: 6px;
  color: var(--ink-2);
  font-size: 11.5px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.cnav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.clink {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface-2);
  padding: 10px 12px;
  font-size: 13px;
  font-weight: 700;
}

.clink:hover {
  border-color: var(--blue);
  color: var(--blue);
}

.clink-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 10px;
  background: linear-gradient(145deg, var(--blue) 0%, var(--blue-2) 100%);
  color: #fff;
  flex-shrink: 0;
}

.bcol {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 14px;
}

.sad {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 18px;
  color: #fff;
  box-shadow: var(--shadow);
}

.sa1 {
  background: linear-gradient(140deg, #8b0020 0%, #c8102e 45%, #ff4d6a 100%);
}

.sa2 {
  background: linear-gradient(140deg, #003087 0%, #2563eb 60%, #60a5fa 100%);
}

.sa3 {
  background: linear-gradient(140deg, #054f35 0%, #0e7f57 55%, #22c55e 100%);
}

.sat {
  font-family: var(--display);
  font-size: 28px;
  line-height: 0.95;
}

.sas {
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 13px;
  line-height: 1.55;
}

.sab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  margin-top: 14px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.18);
  padding: 0 14px;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
}

.sab:hover {
  background: rgba(255, 255, 255, 0.24);
}

.wid-sec {
  margin-top: 22px;
  padding: 18px;
}

.wgrid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.wc {
  display: flex;
  flex-direction: column;
  gap: 10px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--surface-2);
  padding: 14px;
}

.wlbl {
  color: var(--ink-3);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.wframe {
  min-height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: var(--surface);
  padding: 10px;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px var(--border-soft);
}

.wframe iframe {
  width: 100%;
  border: none;
}

.wframe .top-one-top100-widget,
.wframe .rate-ru-top100-widget {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 100%;
  min-height: 80px;
}

.wlnk {
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
}

.footer {
  margin-top: 22px;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: var(--surface);
  box-shadow: var(--shadow);
  padding: 20px 22px;
}

.cookie-notice {
  position: fixed;
  left: 20px;
  bottom: 20px;
  z-index: 70;
  width: min(420px, calc(100vw - 32px));
  padding: 16px 18px;
  border: 1px solid rgba(17, 17, 17, 0.12);
  border-radius: 20px;
  background: rgba(255, 252, 246, 0.96);
  box-shadow: 0 20px 48px rgba(14, 26, 54, 0.16);
  backdrop-filter: blur(14px);
}

.cookie-notice[hidden] {
  display: none !important;
}

.cookie-title {
  color: var(--blue);
  font-family: var(--display);
  font-size: 24px;
  line-height: 0.95;
}

.cookie-text {
  margin-top: 10px;
  color: var(--ink-2);
  font-size: 13px;
  line-height: 1.6;
}

.cookie-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  margin-top: 14px;
}

.cookie-link {
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
}

.cookie-link:hover {
  text-decoration: underline;
}

.fi {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-end;
}

.f-brand {
  color: var(--blue);
  font-family: var(--display);
  font-size: 34px;
  line-height: 0.95;
}

.f-meta {
  margin-top: 6px;
  color: var(--ink-3);
  font-size: 13px;
}

.f-meta a {
  color: var(--red);
}

.flinks {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  justify-content: flex-end;
  color: var(--ink-2);
  font-size: 13px;
  font-weight: 700;
}

.flinks a:hover {
  color: var(--blue);
}

.fservice-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  justify-content: flex-end;
  width: 100%;
  padding-top: 14px;
  margin-top: 14px;
  border-top: 1px solid var(--border-soft);
  color: var(--ink-3);
  font-size: 12.5px;
  font-weight: 700;
}

.fservice-links a {
  transition: color 0.18s ease;
}

.fservice-links a:hover {
  color: var(--red);
}

.mob-nav {
  position: fixed;
  right: 12px;
  bottom: 12px;
  left: 12px;
  z-index: 80;
  display: none;
}

.mob-nav-inner {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 4px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow-lg);
  padding: 6px;
}

.mni {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  border: none;
  border-radius: 12px;
  background: transparent;
  padding: 8px 6px;
  color: var(--ink-3);
  font-size: 10px;
  font-weight: 700;
  text-align: center;
}

.mni svg {
  width: 18px;
  height: 18px;
}

.mni.active,
.mni:hover {
  background: rgba(0, 48, 135, 0.08);
  color: var(--blue);
}

[data-theme="dark"] .topbar,
[data-theme="dark"] .hero-panel,
[data-theme="dark"] .block,
[data-theme="dark"] .scard,
[data-theme="dark"] .wid-sec,
[data-theme="dark"] .footer,
[data-theme="dark"] .cookie-notice {
  background: rgba(12, 18, 33, 0.88);
}

[data-theme="dark"] .hero-right--cards {
  background: rgba(17, 24, 39, 0.92);
}

[data-theme="dark"] .ss,
[data-theme="dark"] .lcur,
[data-theme="dark"] .thb,
[data-theme="dark"] .chat-icon-nav,
[data-theme="dark"] .chip,
[data-theme="dark"] .clink,
[data-theme="dark"] .hm-cat-card,
[data-theme="dark"] .nc,
[data-theme="dark"] .service-card,
[data-theme="dark"] .wc,
[data-theme="dark"] .wframe,
[data-theme="dark"] .btn-soft,
[data-theme="dark"] .mob-nav-inner {
  background: rgba(17, 24, 39, 0.88);
}

[data-theme="dark"] .cat-hd,
[data-theme="dark"] .hm-top,
[data-theme="dark"] .hm-footer {
  background: linear-gradient(90deg, rgba(59, 130, 246, 0.12), rgba(17, 24, 39, 0));
}

[data-theme="dark"] .hero-stats-row,
[data-theme="dark"] .table-link.ghost {
  background: rgba(13, 18, 32, 0.82);
}

[data-theme="dark"] .cn,
[data-theme="dark"] .cn2,
[data-theme="dark"] .tag-s,
[data-theme="dark"] .rp1,
[data-theme="dark"] .ntag {
  background: rgba(59, 130, 246, 0.16);
}

[data-theme="dark"] .ndate {
  background: rgba(239, 68, 68, 0.14);
}

[data-theme="dark"] .table-link.ghost,
[data-theme="dark"] .btn-soft,
[data-theme="dark"] .ss,
[data-theme="dark"] .lcur,
[data-theme="dark"] .thb,
[data-theme="dark"] .chat-icon-nav,
[data-theme="dark"] .clink,
[data-theme="dark"] .chip,
[data-theme="dark"] .hm-cat-card,
[data-theme="dark"] .service-card,
[data-theme="dark"] .wc {
  border-color: rgba(96, 165, 250, 0.2);
}

[data-theme="dark"] .topbar {
  box-shadow: 0 16px 40px rgba(2, 6, 23, 0.42);
}

[data-theme="dark"] .ss:focus-within,
[data-theme="dark"] .lcur:hover,
[data-theme="dark"] .thb:hover,
[data-theme="dark"] .chat-icon-nav:hover,
[data-theme="dark"] .btn-soft:hover,
[data-theme="dark"] .table-link.ghost:hover,
[data-theme="dark"] .clink:hover,
[data-theme="dark"] .chip:hover,
[data-theme="dark"] .chip.on,
[data-theme="dark"] .mni.active,
[data-theme="dark"] .mni:hover {
  background: rgba(59, 130, 246, 0.14);
}

[data-theme="dark"] .hero-desc,
[data-theme="dark"] .sh-s,
[data-theme="dark"] .scard p,
[data-theme="dark"] .service-text,
[data-theme="dark"] .nexc,
[data-theme="dark"] .f-meta,
[data-theme="dark"] .wlbl,
[data-theme="dark"] .hm-sub,
[data-theme="dark"] .hm-cat-n,
[data-theme="dark"] .sc-ds {
  color: var(--ink-2);
}

[data-theme="dark"] .bg-grid {
  background-image:
    linear-gradient(rgba(96, 165, 250, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(96, 165, 250, 0.08) 1px, transparent 1px);
}

[data-theme="dark"] .bg-orb-a {
  background: radial-gradient(circle, rgba(59, 130, 246, 0.2) 0%, rgba(59, 130, 246, 0) 70%);
}

[data-theme="dark"] .bg-orb-b {
  background: radial-gradient(circle, rgba(239, 68, 68, 0.18) 0%, rgba(239, 68, 68, 0) 72%);
}

[data-theme="dark"] .bg-orb-c {
  background: radial-gradient(circle, rgba(245, 158, 11, 0.16) 0%, rgba(245, 158, 11, 0) 74%);
}

[dir="rtl"] .nr,
[dir="rtl"] .hero-btns,
[dir="rtl"] .hero-tagline,
[dir="rtl"] .table-actions,
[dir="rtl"] .sc-cell,
[dir="rtl"] .nc-meta,
[dir="rtl"] .fi,
[dir="rtl"] .flinks,
[dir="rtl"] .fservice-links {
  flex-direction: row-reverse;
}

[dir="rtl"] .nr {
  justify-content: flex-start;
}

[dir="rtl"] .ldrop {
  right: auto;
  left: 0;
}

[dir="rtl"] .cat-hd-count,
[dir="rtl"] .cn2,
[dir="rtl"] .lopt span {
  margin-left: 0;
  margin-right: auto;
}

[dir="rtl"] .sc-cell,
[dir="rtl"] .nc,
[dir="rtl"] .fi,
[dir="rtl"] .flinks,
[dir="rtl"] .fservice-links,
[dir="rtl"] .hero-tagline,
[dir="rtl"] .hero-btns,
[dir="rtl"] .table-actions {
  text-align: right;
}

/* ── HERO RIGHT: 3 VIVID GRADIENT CARDS ── */
.hero-right--cards {
  display: flex;
  flex-direction: column;
  gap: clamp(6px, .9vh, 10px);
  padding: clamp(8px, 1.2vh, 14px) clamp(8px, 1vw, 13px);
  border: 1px solid var(--border);
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.84) 0%, rgba(237, 232, 220, 0.96) 100%);
  box-shadow: var(--shadow-lg);
  align-self: stretch;
  overflow: hidden;
}

[data-theme="dark"] .hero-right--cards {
  background: rgba(17, 24, 39, 0.92);
}

/* Base card */
.hpc {
  flex: 1 1 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  text-decoration: none;
  color: #fff;
  transition: transform .22s, box-shadow .22s, filter .22s;
  cursor: default;
}

.hpc:hover {
  transform: translateY(-2px) scale(1.01);
  filter: brightness(1.06);
  box-shadow: 0 10px 32px rgba(0, 0, 0, .28);
}

/* Vivid gradients — distinct per card */
.hpc-rank {
  background: linear-gradient(140deg, #003087 0%, #1A4FAA 45%, #2563EB 75%, #3B82F6 100%);
  box-shadow: 0 4px 18px rgba(0, 48, 135, .38);
}

/* Metallic light overlay for rank */
.hpc-rank .hpc-inner::before {
  content: '';
  position: absolute;
  top: 0;
  left: -40%;
  width: 80%;
  height: 100%;
  background: linear-gradient(105deg, transparent 0%, rgba(255, 255, 255, .07) 45%, rgba(255, 255, 255, .13) 50%, rgba(255, 255, 255, .07) 55%, transparent 100%);
  pointer-events: none;
  z-index: 0;
  border-radius: inherit;
}

.hpc-rates {
  background: linear-gradient(140deg, #8B0020 0%, #C8102E 45%, #E8213F 75%, #FF4D6A 100%);
  box-shadow: 0 4px 18px rgba(200, 16, 46, .38);
}

/* Metallic light overlay for rates */
.hpc-rates .hpc-inner::before {
  content: '';
  position: absolute;
  top: 0;
  left: -40%;
  width: 80%;
  height: 100%;
  background: linear-gradient(105deg, transparent 0%, rgba(255, 255, 255, .06) 45%, rgba(255, 255, 255, .12) 50%, rgba(255, 255, 255, .06) 55%, transparent 100%);
  pointer-events: none;
  z-index: 0;
  border-radius: inherit;
}

.hpc-reg {
  /* Green metallic gradient */
  background: linear-gradient(140deg,
      #0A2A1A 0%,
      #0F4D2E 25%,
      #1A7A45 50%,
      #22996B 70%,
      #2EAD78 85%,
      #1A7A45 100%);
  box-shadow: 0 4px 22px rgba(10, 42, 26, .55);
}

/* Metallic sheen on reg card */
.hpc-reg .hpc-inner::before {
  content: '';
  position: absolute;
  top: 0;
  left: -40%;
  width: 80%;
  height: 100%;
  background: linear-gradient(105deg, transparent 0%, rgba(255, 255, 255, .05) 40%, rgba(255, 255, 255, .18) 50%, rgba(255, 255, 255, .05) 60%, transparent 100%);
  pointer-events: none;
  z-index: 0;
  border-radius: inherit;
}

/* Decorative pattern overlay */
.hpc::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 85% 15%, rgba(255, 255, 255, .12) 0%, transparent 50%),
    radial-gradient(circle at 15% 85%, rgba(0, 0, 0, .12) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

/* Subtle grid pattern */
.hpc::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(0deg, transparent, transparent 19px, rgba(255, 255, 255, .04) 20px),
    repeating-linear-gradient(90deg, transparent, transparent 19px, rgba(255, 255, 255, .04) 20px);
  pointer-events: none;
  z-index: 0;
}

/* Inner content above overlays */
.hpc-inner {
  padding: clamp(9px, 1.2vh, 15px) clamp(10px, 1.1vw, 15px);
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  position: relative;
  z-index: 1;
  overflow: hidden;
}

/* Icon + label */
.hpc-head {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: clamp(4px, .5vh, 7px);
  flex-shrink: 0;
}

.hpc-ico-wrap {
  width: clamp(26px, 2.8vh, 34px);
  height: clamp(26px, 2.8vh, 34px);
  border-radius: 8px;
  background: rgba(255, 255, 255, .18);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  backdrop-filter: blur(4px);
}

.hpc-ico-wrap svg {
  width: clamp(13px, 1.5vh, 17px);
  height: clamp(13px, 1.5vh, 17px);
  stroke: #fff;
}

.hpc-label {
  font-family: var(--mono);
  font-size: clamp(8px, .85vh, 10px);
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .65);
  line-height: 1.1;
}

.hpc-title {
  font-size: clamp(12px, 1.35vh, 15px);
  font-weight: 700;
  color: #fff;
  line-height: 1.22;
  margin-bottom: clamp(3px, .4vh, 5px);
  flex-shrink: 0;
}

/* Description */
.hpc-desc {
  font-size: clamp(9.5px, 1vh, 11.5px);
  color: rgba(255, 255, 255, .75);
  line-height: 1.45;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  margin-bottom: clamp(5px, .7vh, 9px);
}

/* Search input row (rank + rates) */
.hpc-search-row {
  display: flex;
  gap: 5px;
  flex-shrink: 0;
  margin-bottom: clamp(4px, .5vh, 7px);
}

.hpc-field {
  flex: 1;
  min-width: 0;
  background: rgba(255, 255, 255, .15);
  border: 1.5px solid rgba(255, 255, 255, .25);
  border-radius: 7px;
  padding: 0 9px;
  height: clamp(26px, 3vh, 34px);
  font-family: var(--body);
  font-size: clamp(10px, 1.05vh, 12px);
  color: #fff;
  outline: none;
  transition: all .2s;
  backdrop-filter: blur(4px);
}

.hpc-field::placeholder {
  color: rgba(255, 255, 255, .5);
}

.hpc-field:focus {
  border-color: rgba(255, 255, 255, .55);
  background: rgba(255, 255, 255, .22);
}

.hpc-field--reg {
  background: rgba(255, 255, 255, .12);
  border-color: rgba(255, 255, 255, .2);
}

.hpc-btn {
  flex-shrink: 0;
  height: clamp(26px, 3vh, 34px);
  padding: 0 clamp(8px, 1vw, 12px);
  border-radius: 7px;
  background: #fff;
  font-family: var(--body);
  font-size: clamp(10px, 1.05vh, 11.5px);
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: all .2s;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.hpc-rank .hpc-btn {
  color: var(--blue);
}

.hpc-rates .hpc-btn {
  color: var(--red);
}

.hpc-reg .hpc-btn {
  color: var(--green);
}

.hpc-btn:hover {
  transform: scale(1.04);
  box-shadow: 0 3px 10px rgba(0, 0, 0, .2);
}

.hpc-btn--full {
  width: 100%;
  height: clamp(28px, 3.2vh, 36px);
  background: #fff;
  color: var(--green);
  font-weight: 700;
  border-radius: 7px;
  font-size: clamp(10px, 1.05vh, 11.5px);
}

/* External link */
.hpc-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: clamp(9px, .95vh, 11px);
  font-weight: 600;
  color: rgba(255, 255, 255, .6);
  transition: color .15s;
  flex-shrink: 0;
  text-decoration: none;
}

.hpc-link:hover {
  color: #fff;
}

/* Reg form */
.hpc-reg-form {
  display: flex;
  flex-direction: column;
  gap: clamp(4px, .55vh, 6px);
  flex-shrink: 0;
}

.hr-note {
  font-size: clamp(8px, .8vh, 9.5px);
  color: rgba(255, 255, 255, .45);
  text-align: center;
  line-height: 1.3;
  flex-shrink: 0;
}

.hpc-cta {
  display: none;
}

/* generic, overridden below */
.hpc-reg-cta-compact {
  display: none !important;
}

/* old unused */
.hpc-bg,
.hri,
.hrb {
  display: none !important;
}

@media (max-width: 1220px) {
  .tbi {
    grid-template-columns: auto minmax(200px, 320px) minmax(0, 1fr);
  }

  .hero {
    grid-template-columns: minmax(240px, 1fr) minmax(260px, 320px);
  }

  .hero-panel--catalog {
    grid-column: 1 / -1;
  }

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

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

@media (max-width: 980px) {
  .tbi {
    grid-template-columns: 1fr;
  }

  .nr {
    justify-content: flex-start;
  }

  .hero {
    grid-template-columns: 1fr;
  }

  .hero-panel--catalog {
    grid-column: auto;
  }

  .hero-right--cards {
    padding: 10px;
  }

  .main-grid {
    grid-template-columns: 1fr;
  }

  .scard-news {
    position: static;
  }

  .service-grid {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 760px) {
  .shell {
    padding-bottom: 118px;
  }

  .cookie-notice {
    left: 16px;
    bottom: 88px;
    width: auto;
  }

  .cookie-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .cookie-actions .btn {
    width: 100%;
  }

  .ann {
    font-size: 10px;
    line-height: 1.5;
  }

  .cta,
  .nl:nth-child(2),
  .nl:nth-child(3),
  .nl:nth-child(4),
  .nl:nth-child(5) {
    display: none;
  }

  .ad-strip {
    grid-template-columns: 1fr;
  }

  .rt,
  .rt thead,
  .rt tbody,
  .rt th,
  .rt td,
  .rt tr {
    display: block;
  }

  .rt thead {
    display: none;
  }

  .rt tbody tr {
    padding: 8px 0;
    border-bottom: 1px solid var(--border-soft);
  }

  .rt tbody td {
    display: flex;
    gap: 12px;
    padding: 10px 18px;
    border-bottom: none;
  }

  .rt tbody td .tag-s {
    max-width: none;
  }

  .rt tbody td::before {
    content: attr(data-l);
    min-width: 82px;
    color: var(--ink-3);
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.9px;
  }

  .service-grid,
  .wgrid {
    grid-template-columns: 1fr;
  }

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

  .flinks {
    justify-content: flex-start;
  }

  .mob-nav {
    display: block;
  }
}

@media (max-width: 560px) {
  .hero-h1 {
    font-size: clamp(44px, 18vw, 76px);
  }

  .hero-btns {
    flex-direction: column;
  }

  .hero-btns .btn {
    width: 100%;
  }

  .hm-cats-grid {
    grid-template-columns: 1fr;
  }

  .hm-cat-card--wide {
    grid-column: auto;
  }

  .nc {
    grid-template-columns: 1fr;
  }

  .nc-n {
    width: 56px;
    height: 56px;
  }

  .side-news-top {
    flex-direction: column;
    gap: 8px;
  }
}
