:root {
  --bg: #050505;
  --bg-2: #090909;
  --surface: rgba(18, 18, 18, 0.9);
  --surface-solid: #121212;
  --surface-soft: #1b1b1b;
  --surface-card: #101010;
  --text: #f7f7f7;
  --muted: #b5b5b5;
  --muted-2: #777777;
  --line: rgba(255, 255, 255, 0.1);
  --line-strong: rgba(255, 255, 255, 0.16);
  --accent: #ffffff;
  --accent-dark: #dcdcdc;
  --accent-soft: rgba(255, 255, 255, 0.12);
  --violet: #bdbdbd;
  --violet-soft: rgba(255, 255, 255, 0.1);
  --teal: #f1f1f1;
  --teal-soft: rgba(255, 255, 255, 0.1);
  --warning: #cfcfcf;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.38);
  --shadow-soft: 0 18px 48px rgba(0, 0, 0, 0.24);
  --radius-sm: 12px;
  --radius: 18px;
  --radius-lg: 28px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: -0.01em;
}

body::selection {
  background: var(--accent);
  color: #050505;
}

body.no-scroll {
  overflow: hidden;
}

.page-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(circle at 18% 12%, rgba(255, 255, 255, 0.12), transparent 30%),
    radial-gradient(circle at 86% 8%, rgba(255, 255, 255, 0.08), transparent 26%),
    radial-gradient(circle at 70% 68%, rgba(255, 255, 255, 0.06), transparent 30%),
    linear-gradient(180deg, #080808 0%, #050505 48%, #0a0a0a 100%);
}

.page-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.22;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, #000, transparent 82%);
}

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

button,
input,
select {
  font: inherit;
}

button,
select {
  cursor: pointer;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid rgba(255, 255, 255, 0.28);
  outline-offset: 3px;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid var(--line);
  background: rgba(7, 9, 17, 0.78);
  backdrop-filter: blur(18px);
}

.header-inner {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  min-height: 78px;
}

.logo,
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-size: 25px;
  font-weight: 950;
  letter-spacing: -0.04em;
}

.logo-mark {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(180, 180, 180, 0.92));
  color: #050505;
  font-size: 18px;
  font-weight: 950;
  box-shadow: 0 14px 30px rgba(255, 255, 255, 0.12);
}

.main-nav,
.footer-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

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

.nav-link {
  position: relative;
  padding: 10px 14px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}

.primary-btn,
.secondary-btn,
.ghost-btn,
.telegram-btn,
.page-btn,
.icon-btn,
.chip {
  min-height: 44px;
  border: 0;
  border-radius: 999px;
  font-weight: 900;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease, opacity 0.2s ease;
}

.primary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  background: linear-gradient(135deg, var(--accent), var(--violet));
  color: #050505;
  box-shadow: 0 16px 36px rgba(255, 255, 255, 0.12);
}

.primary-btn:hover,
.secondary-btn:hover,
.ghost-btn:hover,
.telegram-btn:hover,
.page-btn:hover,
.chip:hover {
  transform: translateY(-2px);
}

.secondary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  background: linear-gradient(135deg, #ffffff, var(--teal));
  color: #050505;
}

.ghost-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.055);
  color: var(--text);
}

.ghost-btn:hover {
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.09);
}

.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.055);
  color: var(--text);
}

.menu-toggle span {
  display: block;
  width: 19px;
  height: 2px;
  margin: 4px auto;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.menu-toggle.is-open span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.menu-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.is-open span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.mobile-menu {
  display: none;
}

.page-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 26px;
  padding: 30px 0 52px;
}

.content-area {
  align-self: start;
  min-width: 0;
}

.hero,
.catalog-section,
.side-panel,
.modal {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(17, 21, 34, 0.92), rgba(11, 14, 24, 0.92));
  box-shadow: var(--shadow-soft);
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.65fr);
  gap: 22px;
  overflow: hidden;
  padding: 28px;
  border-radius: var(--radius-lg);
}

.hero::before {
  content: "";
  position: absolute;
  inset: -1px;
  background:
    radial-gradient(circle at 18% 20%, rgba(255, 255, 255, 0.1), transparent 34%),
    radial-gradient(circle at 90% 16%, rgba(255, 255, 255, 0.06), transparent 26%);
  pointer-events: none;
}

.hero-content,
.hero-preview {
  position: relative;
  z-index: 1;
}

.eyebrow,
.section-kicker,
.modal-kicker,
.premium-label,
.mini-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--teal);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow::before,
.section-kicker::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 18px currentColor;
}

.hero h1 {
  max-width: 720px;
  margin: 14px 0 14px;
  font-size: clamp(34px, 6vw, 66px);
  line-height: 0.98;
  letter-spacing: -0.07em;
}

.hero p,
.side-panel p,
.footer-inner p,
.empty-state {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  font-weight: 650;
  line-height: 1.65;
}

.hero-content > p {
  max-width: 660px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

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

.hero-stats div {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.045);
}

.hero-stats dt {
  color: var(--text);
  font-size: 28px;
  font-weight: 950;
  line-height: 1;
}

.hero-stats dd {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.hero-preview {
  align-self: center;
  overflow: hidden;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 24px;
  background: rgba(6, 8, 16, 0.64);
  backdrop-filter: blur(12px);
}

.preview-glow {
  position: absolute;
  top: -80px;
  right: -80px;
  width: 190px;
  height: 190px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  filter: blur(22px);
}

.preview-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  color: var(--text);
  font-size: 13px;
  font-weight: 900;
}

.status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 0 18px rgba(255, 255, 255, 0.32);
}

.preview-list {
  display: grid;
  gap: 10px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.preview-list li {
  display: grid;
  grid-template-columns: 48px 1fr;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.045);
}

.preview-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.06));
  color: var(--text);
  font-size: 13px;
  font-weight: 950;
}

.preview-list strong,
.preview-list small {
  display: block;
}

.preview-list strong {
  font-size: 14px;
  line-height: 1.2;
}

.preview-list small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.catalog-section {
  margin-top: 22px;
  padding: 22px;
  border-radius: var(--radius-lg);
}

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

.section-heading h2,
.side-panel h2,
.modal h2 {
  margin: 0;
  color: var(--text);
  line-height: 1.15;
}

.section-heading h2 {
  margin-top: 6px;
  font-size: 34px;
  font-weight: 950;
  letter-spacing: -0.045em;
}

.section-heading > span,
#catalog-count {
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
  white-space: nowrap;
}

.catalog-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.055);
  color: var(--muted);
  font-size: 13px;
}

.chip.active,
.chip:hover {
  border-color: rgba(255, 255, 255, 0.38);
  background: var(--accent-soft);
  color: var(--text);
}

.sort-select {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
}

.sort-select select {
  min-height: 40px;
  padding: 0 36px 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #111111;
  color: var(--text);
}

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

.leak-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface-card);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.2);
  transition: transform 0.24s ease, border-color 0.24s ease, box-shadow 0.24s ease;
}

.leak-card:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 255, 255, 0.34);
  box-shadow: 0 24px 58px rgba(0, 0, 0, 0.34);
}

.leak-link {
  display: grid;
  height: 100%;
  color: inherit;
}

.leak-media {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.leak-image,
.top-thumb,
.ad-banner {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 28% 24%, rgba(255, 255, 255, 0.32), transparent 16%),
    linear-gradient(135deg, rgba(235, 235, 235, 0.34), rgba(120, 120, 120, 0.24));
}

.leak-image {
  display: block;
  width: 100%;
  height: 100%;
  transform-origin: center;
  transition: transform 0.32s ease;
}

.leak-image::before {
  content: "";
  position: absolute;
  inset: 14%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 22px;
  background:
    linear-gradient(rgba(255, 255, 255, 0.13) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.13) 1px, transparent 1px);
  background-size: 18px 18px;
  opacity: 0.5;
}

.leak-image::after {
  content: "SH";
  position: absolute;
  left: 18px;
  bottom: 16px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 36px;
  font-weight: 950;
  letter-spacing: -0.08em;
}

.leak-card:hover .leak-image {
  transform: scale(1.06);
}

.leak-image-1 { background: radial-gradient(circle at 24% 22%, rgba(255, 255, 255, 0.22), transparent 20%), linear-gradient(135deg, #111111, #3a3a3a); }
.leak-image-2 { background: radial-gradient(circle at 78% 18%, rgba(255, 255, 255, 0.18), transparent 22%), linear-gradient(135deg, #0d0d0d, #4a4a4a); }
.leak-image-3 { background: radial-gradient(circle at 30% 24%, rgba(255, 255, 255, 0.2), transparent 18%), linear-gradient(135deg, #181818, #565656); }
.leak-image-4 { background: radial-gradient(circle at 75% 24%, rgba(255, 255, 255, 0.18), transparent 20%), linear-gradient(135deg, #0b0b0b, #343434); }
.leak-image-5 { background: radial-gradient(circle at 22% 26%, rgba(255, 255, 255, 0.2), transparent 18%), linear-gradient(135deg, #141414, #474747); }
.leak-image-6 { background: radial-gradient(circle at 70% 24%, rgba(255, 255, 255, 0.2), transparent 20%), linear-gradient(135deg, #171717, #5a5a5a); }
.leak-image-7 { background: radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.18), transparent 20%), linear-gradient(135deg, #101010, #3f3f3f); }
.leak-image-8 { background: radial-gradient(circle at 72% 22%, rgba(255, 255, 255, 0.18), transparent 20%), linear-gradient(135deg, #090909, #4d4d4d); }

.video-badge,
.category-badge,
.lock-badge {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 9px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  color: #fff;
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0.02em;
  backdrop-filter: blur(10px);
}

.video-badge {
  top: 12px;
  right: 12px;
  background: rgba(255, 255, 255, 0.18);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.24);
}

.category-badge {
  left: 12px;
  top: 12px;
  background: rgba(6, 8, 16, 0.56);
}

.lock-badge {
  right: 12px;
  bottom: 12px;
  background: rgba(6, 8, 16, 0.62);
}

.leak-body {
  display: grid;
  gap: 12px;
  padding: 15px;
}

.leak-body h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 950;
  line-height: 1.28;
  letter-spacing: -0.025em;
}

.leak-meta,
.card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.leak-meta span,
.card-foot span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.card-foot {
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.views {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--muted);
  white-space: nowrap;
}

.views::before {
  content: "";
  width: 15px;
  height: 15px;
  background: currentColor;
  clip-path: path("M7.5 3C3.5 3 1 7.5 1 7.5S3.5 12 7.5 12 14 7.5 14 7.5 11.5 3 7.5 3Zm0 6.8a2.3 2.3 0 1 1 0-4.6 2.3 2.3 0 0 1 0 4.6Z");
}

.empty-state {
  display: grid;
  place-items: center;
  min-height: 160px;
  margin-top: 16px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.035);
  text-align: center;
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  padding: 0 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.055);
  color: var(--muted);
}

.page-btn:hover,
.page-btn.active {
  border-color: rgba(255, 255, 255, 0.42);
  background: var(--accent-soft);
  color: var(--text);
}

.page-btn:disabled {
  cursor: not-allowed;
  opacity: 0.45;
  transform: none;
}

.sidebar {
  display: grid;
  align-content: start;
  gap: 18px;
}

.side-panel {
  overflow: hidden;
  padding: 18px;
  border-radius: var(--radius);
}

.side-panel h2 {
  margin-bottom: 14px;
  font-size: 20px;
  font-weight: 950;
  letter-spacing: -0.035em;
}

.panel-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.panel-title-row h2 {
  margin-bottom: 0;
}

.mini-badge {
  min-height: 24px;
  padding: 0 8px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: var(--teal-soft);
  font-size: 10px;
}

.ad-panel,
.premium-panel {
  display: grid;
  gap: 12px;
}

.ad-banner {
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 16 / 7;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 24% 28%, rgba(255, 255, 255, 0.2), transparent 22%),
    linear-gradient(135deg, #080808, #242424 58%, #565656);
}

.ad-banner::before {
  content: "";
  position: absolute;
  inset: 16px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 16px;
}

.ad-banner span {
  position: relative;
  z-index: 1;
  color: rgba(255, 255, 255, 0.84);
  font-size: 34px;
  font-weight: 950;
  letter-spacing: -0.06em;
}

.search-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 44px;
  gap: 8px;
}

.search-form input,
.login-form input,
.register-form input {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.055);
  color: var(--text);
  padding: 0 14px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.search-form input::placeholder,
.login-form input::placeholder,
.register-form input::placeholder {
  color: var(--muted-2);
}

.search-form input:focus,
.login-form input:focus,
.register-form input:focus {
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.075);
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.1);
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.09);
  color: var(--text);
}

.icon-btn:hover {
  background: var(--accent-soft);
}

.icon-btn svg,
.telegram-btn svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.telegram-btn svg {
  fill: currentColor;
  stroke: none;
}

.login-form,
.register-form {
  display: grid;
  gap: 10px;
}

.login-form label,
.register-form label {
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}

.full-width {
  width: 100%;
}

.account-actions {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin: 13px 0;
}

.link-btn {
  border: 0;
  background: transparent;
  color: var(--teal);
  font-weight: 900;
  padding: 0;
}

.link-btn:hover {
  color: #fff;
  text-decoration: underline;
}

.telegram-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  background: #f7f7f7;
  color: #050505;
}

.premium-panel {
  position: relative;
  background:
    radial-gradient(circle at 90% 10%, rgba(255, 255, 255, 0.1), transparent 32%),
    linear-gradient(180deg, rgba(22, 22, 22, 0.96), rgba(10, 10, 10, 0.96));
}

.premium-label {
  width: fit-content;
  min-height: 26px;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 999px;
  background: var(--accent-soft);
  color: #ffffff;
}

.top-table {
  width: 100%;
  border-collapse: collapse;
}

.top-table tr + tr {
  border-top: 1px solid var(--line);
}

.top-table td {
  padding: 10px 6px;
  vertical-align: middle;
  color: var(--text);
  font-size: 14px;
  font-weight: 850;
}

.top-table td:first-child {
  width: 24px;
  color: var(--muted-2);
  font-weight: 950;
}

.top-table td:last-child {
  text-align: right;
}

.top-thumb {
  display: block;
  width: 42px;
  height: 42px;
  border-radius: 12px;
}

.top-thumb::after {
  content: "";
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-cloud button {
  min-height: 34px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.045);
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}

.tag-cloud button:hover {
  border-color: rgba(255, 255, 255, 0.3);
  color: var(--text);
}

.site-footer {
  border-top: 1px solid var(--line);
  background: rgba(7, 9, 17, 0.76);
  backdrop-filter: blur(14px);
}

.footer-inner {
  display: grid;
  justify-items: center;
  gap: 14px;
  padding: 34px 0;
  text-align: center;
}

.footer-logo {
  font-size: 22px;
}

.footer-logo .logo-mark {
  width: 32px;
  height: 32px;
  font-size: 16px;
}

.footer-nav a {
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.footer-nav a:hover {
  color: var(--text);
}

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.68);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.24s ease, visibility 0s linear 0.24s;
}

.modal-overlay.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition-delay: 0s;
}

.modal {
  width: min(460px, 100%);
  padding: 22px;
  border-radius: 24px;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(16px) scale(0.98);
  transition: opacity 0.24s ease, transform 0.24s ease;
}

.modal-overlay.is-open .modal {
  opacity: 1;
  transform: translateY(0) scale(1);
}

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

.modal h2 {
  margin-top: 6px;
  font-size: 28px;
  font-weight: 950;
  letter-spacing: -0.05em;
}

.modal-close {
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.055);
  color: var(--text);
  font-size: 28px;
  line-height: 1;
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.1);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 1120px) {
  .page-layout {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 900px) {
  .header-inner {
    grid-template-columns: 1fr auto;
    gap: 14px;
    min-height: 72px;
    padding: 12px 0;
  }

  .main-nav,
  .header-actions .primary-btn {
    display: none;
  }

  .menu-toggle {
    display: inline-block;
  }

  .mobile-menu {
    grid-column: 1 / -1;
    display: grid;
    gap: 8px;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-4px);
    transition: max-height 0.24s ease, opacity 0.2s ease, transform 0.2s ease;
  }

  .mobile-menu.is-open {
    max-height: 320px;
    opacity: 1;
    transform: translateY(0);
  }

  .mobile-menu .nav-link,
  .mobile-menu .primary-btn {
    width: 100%;
    justify-content: center;
  }

  .mobile-menu .nav-link {
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.055);
  }

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

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

@media (max-width: 720px) {
  .container {
    width: min(100% - 20px, 1220px);
  }

  .page-layout {
    gap: 18px;
    padding-top: 18px;
  }

  .hero,
  .catalog-section,
  .side-panel {
    border-radius: 20px;
  }

  .hero,
  .catalog-section {
    padding: 16px;
  }

  .hero h1 {
    font-size: 38px;
  }

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

  .catalog-toolbar,
  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .sort-select {
    width: 100%;
    justify-content: space-between;
  }

  .sort-select select {
    width: 100%;
  }

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

@media (max-width: 520px) {
  .logo {
    font-size: 22px;
  }

  .logo-mark {
    width: 32px;
    height: 32px;
    font-size: 16px;
  }

  .hero-actions {
    display: grid;
  }

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

  .section-heading h2 {
    font-size: 28px;
  }

  .account-actions {
    flex-wrap: wrap;
  }
}
