/* Runetki visual refresh — isolated override layer. */
:root {
  --rt-bg: #090a0f;
  --rt-surface: #12131b;
  --rt-surface-2: #191a24;
  --rt-surface-3: #22232f;
  --rt-border: rgba(255, 255, 255, 0.09);
  --rt-border-strong: rgba(255, 255, 255, 0.16);
  --rt-text: #f7f7fa;
  --rt-muted: #a7a8b4;
  --rt-accent: #f43f72;
  --rt-accent-2: #ff6b5f;
  --rt-green: #3ddc84;
  --rt-radius-sm: 10px;
  --rt-radius: 16px;
  --rt-radius-lg: 24px;
  --rt-shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
  --rt-font: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

html {
  color-scheme: dark;
  background: var(--rt-bg);
}

body,
html {
  font-family: var(--rt-font);
  color: var(--rt-text);
  background:
    radial-gradient(circle at 20% -10%, rgba(244, 63, 114, 0.14), transparent 32rem),
    radial-gradient(circle at 85% 10%, rgba(126, 87, 194, 0.1), transparent 28rem),
    var(--rt-bg);
}

body {
  font-size: 16px;
  line-height: 1.5;
}

body,
body a,
body h1,
body h2,
body h3,
body h4,
body h5,
body h6,
body p {
  font-family: var(--rt-font);
}

body a:focus-visible,
body button:focus-visible,
body [tabindex]:focus-visible {
  outline: 3px solid rgba(244, 63, 114, 0.55);
  outline-offset: 3px;
}

.wrapper {
  min-height: 100vh;
  color: var(--rt-text);
  background: transparent;
}

.container {
  max-width: 1640px;
  padding-right: 24px;
  padding-left: 24px;
}

/* Header */
.top-menu {
  position: sticky;
  top: 0;
  z-index: 1000;
  margin: 0;
  padding: 12px 0 0;
  background: linear-gradient(180deg, rgba(9, 10, 15, 0.96) 0%, rgba(9, 10, 15, 0.82) 75%, transparent 100%);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.top-menu-inner {
  height: 64px;
  padding: 0 10px 0 18px;
  overflow: visible;
  border: 1px solid var(--rt-border);
  border-radius: var(--rt-radius);
  background: rgba(18, 19, 27, 0.88);
  background-image: none;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 10px 34px rgba(0, 0, 0, 0.24);
}

.top-menu-left,
.top-menu-right {
  height: 100%;
  align-items: center;
}

.top-menu-left {
  padding-left: 0;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 164px;
  color: var(--rt-text);
  text-decoration: none;
}

.logo picture,
.logo > img {
  display: none;
}

.logo::before {
  content: "RUNETKI";
  position: static;
  display: block;
  width: auto;
  height: auto;
  background: none;
  font-size: 20px;
  font-weight: 850;
  line-height: 1;
  letter-spacing: -0.04em;
}

.logo::after {
  content: "LIVE";
  position: static;
  display: block;
  width: auto;
  height: auto;
  padding: 4px 6px 3px;
  border: 1px solid rgba(244, 63, 114, 0.38);
  border-radius: 6px;
  color: #ff8cab;
  background: rgba(244, 63, 114, 0.12);
  font-size: 9px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.12em;
}

.logo.logo-mob {
  display: none;
}

.main-menu {
  align-items: center;
  gap: 2px;
}

.main-menu li {
  margin: 0;
}

.main-menu a,
.search,
.login,
.registration,
.language .button-dropdown a {
  height: 42px;
  padding: 0 14px;
  border-radius: 10px;
  color: var(--rt-muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 42px;
  letter-spacing: 0.04em;
}

.main-menu a:hover,
.search:hover,
.login:hover,
.language .button-dropdown a:hover,
.language .button-dropdown a:focus {
  color: var(--rt-text);
  background: rgba(255, 255, 255, 0.07);
  background-image: none;
}

.main-menu .bnfree {
  color: #ff9db7;
}

.search {
  margin-left: 2px;
  cursor: pointer;
}

.search svg,
.login svg,
.registration svg,
.view-list svg,
.sidebar-title svg {
  color: currentColor;
}

.top-menu svg path,
.top-menu svg rect {
  fill: currentColor;
}

.not-autorized {
  display: flex;
  align-items: center;
  gap: 4px;
}

.login,
.registration {
  align-items: center;
  padding-top: 0;
  padding-bottom: 0;
  color: var(--rt-muted);
  line-height: normal;
  text-decoration: none;
}

.registration,
.registration:hover {
  color: #fff;
  background: linear-gradient(135deg, var(--rt-accent), var(--rt-accent-2));
  background-image: linear-gradient(135deg, var(--rt-accent), var(--rt-accent-2));
  box-shadow: 0 8px 24px rgba(244, 63, 114, 0.24);
}

.registration:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 30px rgba(244, 63, 114, 0.34);
}

.top-vertical-line {
  width: 1px;
  height: 28px;
  margin: 0 4px;
  background: var(--rt-border);
}

.language {
  min-width: 76px;
}

.language .dropdown-toggle {
  height: 42px;
  padding: 0 12px;
}

.language .dropdown-menu {
  top: calc(100% + 12px);
  margin-top: 0;
  padding: 8px;
  border: 1px solid var(--rt-border);
  border-radius: 12px;
  background: rgba(25, 26, 36, 0.98);
  box-shadow: var(--rt-shadow);
}

.language .dropdown-menu.is-open {
  top: calc(100% + 6px);
}

.language .dropdown-menu a,
.language .dropdown-menu a:hover {
  min-height: 40px;
  color: var(--rt-muted);
  background: transparent;
  background-image: none;
}

.language .dropdown-menu a:hover {
  color: var(--rt-text);
  background: rgba(255, 255, 255, 0.07);
}

.burger-box,
.top-menu .burger-box {
  width: 44px;
  height: 44px;
  border-radius: 11px;
  background: var(--rt-surface-2);
}

.burger,
.burger::before,
.burger::after {
  width: 20px;
  height: 2px;
  background: var(--rt-text);
}

.sliding-panel-content {
  z-index: 1001;
  width: min(420px, 100%);
  height: 100vh;
  height: 100dvh;
  min-height: 100vh;
  border-left: 1px solid var(--rt-border);
  color: var(--rt-text);
  background: rgba(12, 13, 20, 0.97);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow: -24px 0 70px rgba(0, 0, 0, 0.4);
}

.sliding-panel-content-inner {
  max-width: none;
  padding: 104px 28px 40px;
}

.sliding-panel-content-inner li,
.sliding-panel-content li {
  margin: 0;
  padding: 0;
  text-align: left;
}

.sliding-panel-content-inner .main-menu {
  width: 100%;
  align-items: stretch;
  gap: 5px;
}

.sliding-panel-content-inner .main-menu a,
.sliding-panel-content-inner a {
  box-sizing: border-box;
  width: 100%;
  height: auto;
  margin: 0;
  padding: 13px 14px;
  border-radius: 10px;
  color: var(--rt-text);
  font-size: 17px;
  font-weight: 720;
  line-height: 1.25;
  text-align: left;
}

.sliding-panel-content-inner .main-menu a:hover,
.sliding-panel-content-inner a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.07);
}

.sliding-panel-close {
  top: 30px;
  right: 28px;
  left: auto;
  width: 36px;
  height: 36px;
}

.sliding-panel-content-inner .sliding-panel-close {
  position: absolute;
  top: 30px;
  right: 28px;
  left: auto;
  width: 36px;
  height: 36px;
  padding: 0;
}

.sliding-panel-close::before,
.sliding-panel-close::after {
  top: 17px;
  left: 6px;
  width: 24px;
  height: 2px;
  background: var(--rt-text);
}

.sliding-panel-fade-screen.is-visible {
  opacity: 0.62;
}

/* Navigation and filters */
.second-menu {
  margin: 10px 0 18px;
}

.second-menu-inner {
  height: 56px;
  margin-top: 0;
  padding: 6px 8px 6px 16px;
  border: 1px solid var(--rt-border);
  border-radius: var(--rt-radius);
  background: rgba(18, 19, 27, 0.74);
}

.online-models {
  display: flex;
  width: auto;
  min-width: 126px;
  align-items: center;
  gap: 8px;
  margin: 0 14px 0 0;
  color: var(--rt-muted);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.08em;
}

.online-models::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--rt-green);
  box-shadow: 0 0 0 5px rgba(61, 220, 132, 0.11);
}

.online-models b {
  margin-right: -4px;
  color: var(--rt-text);
  font-size: 13px;
}

.second-menu-list {
  gap: 3px;
}

.second-menu-list a {
  height: 40px;
  padding: 0 12px;
  border-radius: 9px;
  color: var(--rt-muted);
  font-size: 12px;
  font-weight: 700;
}

.second-menu-list a.active,
.second-menu-list a:focus,
.second-menu-list a:hover {
  color: var(--rt-text);
  background: var(--rt-surface-3);
}

.second-menu-options-wr {
  display: none;
}

.sort-by,
.view,
.c-dropdown,
.c-button--dropdown {
  color: var(--rt-muted);
  background: var(--rt-surface-2);
  background-image: none;
}

.sort-by {
  height: 40px;
  margin-right: 8px;
  border-radius: 10px;
}

.sort-by-big,
.view-title {
  color: var(--rt-muted);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.04em;
}

.c-dropdown {
  height: 40px;
  border-radius: 10px;
}

.c-button--dropdown {
  padding-top: 12px;
  padding-bottom: 12px;
  border-radius: 10px;
}

.c-button--dropdown::after {
  top: 13px;
  color: var(--rt-muted);
}

.c-dropdown__list {
  padding: 7px;
  border: 1px solid var(--rt-border);
  border-radius: 0 0 12px 12px;
  background: var(--rt-surface-2);
  box-shadow: var(--rt-shadow);
}

.c-dropdown__item,
.sort-by .second-menu-list li {
  padding: 9px 10px;
  border-radius: 7px;
  color: var(--rt-muted);
}

.c-dropdown__item:hover,
.sort-by .second-menu-list li:hover {
  color: var(--rt-text);
  background: rgba(255, 255, 255, 0.07);
  background-image: none;
}

.view {
  height: 40px;
  border-radius: 10px;
}

.view-title {
  padding: 0 10px 0 12px;
}

.view-list a {
  height: 40px;
  padding: 8px 10px;
  box-sizing: border-box;
  color: var(--rt-muted);
}

.view-list a.active,
.view-list a:focus,
.view-list a:hover {
  color: var(--rt-text);
  background: rgba(255, 255, 255, 0.08);
}

.view-list a svg * {
  fill: currentColor;
}

/* Main layout */
.home-content {
  margin-top: 0;
}

.home-content > .container {
  display: grid;
  grid-template-columns: 238px minmax(0, 1fr);
  gap: 24px;
}

.sidebar-wr,
.content {
  display: block;
  width: auto;
}

.sidebar-wr {
  position: relative;
}

.sidebar {
  position: sticky;
  top: 94px;
  max-height: calc(100vh - 112px);
  margin-bottom: 24px;
  overflow: hidden;
  border: 1px solid var(--rt-border);
  border-radius: var(--rt-radius);
  background: rgba(18, 19, 27, 0.82);
  box-shadow: none;
}

.sidebar-title {
  align-items: center;
  padding: 17px 17px 13px;
  border-bottom: 1px solid var(--rt-border);
  color: var(--rt-text);
  font-size: 13px;
  font-weight: 750;
}

.sidebar-title svg path {
  fill: var(--rt-muted);
}

.sidebar-category {
  max-height: calc(100vh - 170px);
  padding: 9px;
  overflow-y: auto;
  scrollbar-color: #343642 transparent;
  scrollbar-width: thin;
}

.sidebar-category li {
  margin: 0;
}

.sidebar-category a {
  min-height: 36px;
  padding: 0 9px;
  border-radius: 8px;
  transition: color 150ms ease, background-color 150ms ease;
}

.sidebar-category a:hover,
.sidebar-category a:focus {
  background: rgba(255, 255, 255, 0.055);
}

.sidebar-category a span:last-child {
  color: #c7c8d1;
  font-size: 12px;
  font-weight: 550;
}

.sidebar-category a span:first-child {
  min-width: 30px;
  padding: 3px 7px;
  border-radius: 20px;
  color: var(--rt-muted);
  background: var(--rt-surface-3);
  font-size: 10px;
  text-align: center;
}

.sidebar-category a:hover span:last-child {
  color: var(--rt-text);
  text-decoration: none;
}

.cat_active {
  margin-left: 0;
  padding-left: 0;
  background: rgba(244, 63, 114, 0.12);
}

.page-h1 {
  margin: 2px 0 18px;
  color: var(--rt-text);
  font-size: clamp(24px, 2.2vw, 36px);
  font-weight: 780;
  line-height: 1.16;
  letter-spacing: -0.035em;
}

.page-h1::after {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin: 0 0 3px 10px;
  border-radius: 50%;
  background: var(--rt-green);
  box-shadow: 0 0 16px rgba(61, 220, 132, 0.7);
}

.models_wrap {
  width: 100%;
}

.content-inner {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  height: auto !important;
  min-height: 0;
  align-items: start;
}

.content-inner.more-view {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}

.chat-item,
.more-view .chat-item {
  width: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid var(--rt-border);
  border-radius: var(--rt-radius);
  background: var(--rt-surface);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.16);
  transform: translateZ(0);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.chat-item:hover,
.chat-item:focus-within {
  z-index: 2;
  border-color: rgba(244, 63, 114, 0.5);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.34), 0 0 0 1px rgba(244, 63, 114, 0.15);
  transform: translateY(-4px);
}

.chat-item-link {
  position: relative;
  display: block;
  width: 100%;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}

.chat-item-link:focus-visible {
  outline: 3px solid rgba(244, 63, 114, 0.75);
  outline-offset: -3px;
}

.chat-item-img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--rt-surface-2);
}

.chat-item-img img,
.chat-item img,
.more-view .chat-item img {
  width: 100%;
  height: 100% !important;
  object-fit: cover;
  transition: transform 450ms cubic-bezier(0.2, 0.7, 0.2, 1), filter 180ms ease;
}

.chat-item:hover .chat-item-img img,
.chat-item:focus-within .chat-item-img img {
  transform: scale(1.035);
}

.chat-item-overlay {
  inset: 0;
  bottom: 0;
  background:
    linear-gradient(180deg, transparent 48%, rgba(8, 8, 13, 0.3) 65%, rgba(8, 8, 13, 0.96) 100%);
}

.chat-item-type {
  top: 10px;
  right: 10px;
  padding: 5px 8px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 20px;
  color: #fff;
  background: rgba(10, 10, 15, 0.58);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-shadow: none;
}

.chat-item-type:has(> .hide:only-child),
.chat-item-type:empty {
  display: none;
}

.chat-item-bottom {
  right: 12px;
  bottom: 11px;
  left: 12px;
}

.chat-item-bottom-row {
  align-items: center;
}

.chat-item-left {
  position: relative;
  width: 9px;
  height: 9px;
  margin: 0 9px 0 0;
  flex: 0 0 9px;
  border-radius: 50%;
  background: var(--rt-green);
  box-shadow: 0 0 0 4px rgba(61, 220, 132, 0.13);
}

.chat-item-left svg {
  display: none;
}

.chat-item-right {
  min-width: 0;
  flex: 1;
}

.chat-item-name,
.more-view .chat-item-name {
  max-width: 100%;
  padding: 0;
  overflow: hidden;
  color: #fff;
  font-size: 13px;
  font-weight: 750;
  line-height: 1.25;
  text-overflow: ellipsis;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.8);
  white-space: nowrap;
}

.chat-item-descr {
  display: none;
}

.chat-btn {
  display: none !important;
  height: 0;
  margin: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(6px);
  transition: height 180ms ease, margin 180ms ease, opacity 180ms ease, transform 180ms ease;
}

.chat-item:hover .chat-btn,
.chat-item:focus-within .chat-btn {
  height: 34px;
  margin-top: 9px;
  margin-bottom: 0;
  opacity: 1;
  transform: translateY(0);
}

.chat-btn .btn,
.more-view .chat-item .chat-btn a {
  width: 100%;
  min-width: 0;
  max-width: none;
  height: 34px;
  border-radius: 9px;
  color: #fff;
  background: linear-gradient(135deg, var(--rt-accent), var(--rt-accent-2));
  background-image: linear-gradient(135deg, var(--rt-accent), var(--rt-accent-2));
  font-size: 11px;
  font-weight: 800;
  line-height: 34px;
  letter-spacing: 0.06em;
}

.chat-btn .btn:hover,
.chat-btn .btn:focus {
  background: linear-gradient(135deg, #ff5382, #ff796f);
  background-image: linear-gradient(135deg, #ff5382, #ff796f);
}

/* Pagination and editorial content */
.pagination-wr {
  margin-top: 28px;
  padding-bottom: 30px;
}

.pagination {
  gap: 5px;
  padding: 6px;
  overflow: visible;
  border: 1px solid var(--rt-border);
  border-radius: 14px;
  background: var(--rt-surface);
  box-shadow: none;
}

.pagination li a,
.pagination li a.current {
  display: inline-flex;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 9px;
  color: var(--rt-muted) !important;
  background: transparent !important;
  font-size: 12px;
  font-weight: 700;
  line-height: 38px;
}

.pagination li a.current {
  color: #fff !important;
  background: var(--rt-accent) !important;
}

.pagination li a:hover,
.pagination li a:focus {
  color: #fff !important;
  background: var(--rt-surface-3) !important;
  background-image: none;
}

.pagination .next,
.pagination .prev {
  border: 0;
}

.text {
  display: block;
  max-width: 1040px;
  margin: 24px auto 42px;
  padding: clamp(24px, 4vw, 52px);
  border: 1px solid var(--rt-border);
  border-radius: var(--rt-radius-lg);
  color: var(--rt-muted);
  background:
    linear-gradient(145deg, rgba(244, 63, 114, 0.055), transparent 38%),
    var(--rt-surface);
  box-shadow: none;
}

.text * {
  color: inherit;
}

.text h2,
.text h3,
.text h4 {
  margin: 34px 0 14px;
  color: var(--rt-text);
  font-weight: 760;
  line-height: 1.2;
  letter-spacing: -0.025em;
}

.text h2 {
  font-size: clamp(22px, 2.2vw, 30px);
}

.text h3 {
  font-size: clamp(19px, 1.8vw, 24px);
}

.text h2:first-child,
.text h3:first-child {
  margin-top: 0;
}

.text p,
.text span {
  padding: 0;
  color: var(--rt-muted);
  font-size: 15px;
  line-height: 1.75;
  text-align: left;
}

.text p + p {
  margin-top: 14px;
}

.text strong,
.text a {
  color: #ececf2;
  font-weight: 650;
}

.text a:hover {
  color: #ff8cab;
}

/* Search overlay */
html.search-overlay-open,
body.search-overlay-open {
  overflow: hidden !important;
}

.search-wr.is-open {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: block;
  padding: 24px;
  overflow: auto;
  background: rgba(6, 7, 11, 0.82);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.search-wr > .container {
  display: flex;
  min-height: 100%;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.search-inner {
  width: min(1120px, 100%);
  max-height: calc(100vh - 48px);
  max-height: calc(100dvh - 48px);
  box-sizing: border-box;
  padding: 0;
  overflow: auto;
  border: 1px solid var(--rt-border-strong);
  border-radius: var(--rt-radius-lg);
  color: var(--rt-text);
  background: var(--rt-surface);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.55);
}

.search-top {
  position: sticky;
  top: 0;
  z-index: 3;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 18px;
  border-bottom: 1px solid var(--rt-border);
  background: rgba(18, 19, 27, 0.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.search-top svg {
  width: 20px;
  height: 20px;
  margin: 0 auto;
  color: var(--rt-muted);
  cursor: pointer;
}

.search-top svg path {
  fill: currentColor;
}

.search-top input[type="text"] {
  width: 100%;
  height: 44px;
  padding: 0 15px;
  box-sizing: border-box;
  border: 1px solid var(--rt-border);
  border-radius: 11px;
  color: var(--rt-text);
  background: var(--rt-surface-2);
  font-size: 14px;
}

.search-top input[type="text"]::placeholder {
  color: #777985;
}

.search-top .btn-search,
.search-bottom .btn-search,
.search-bottom .btn-reset {
  width: auto;
  min-width: 128px;
  height: 44px;
  padding: 0 20px;
  box-sizing: border-box;
  border: 0;
  border-radius: 11px;
  color: #fff;
  background: linear-gradient(135deg, var(--rt-accent), var(--rt-accent-2));
  background-image: linear-gradient(135deg, var(--rt-accent), var(--rt-accent-2));
  font-size: 13px;
  font-weight: 750;
  line-height: 44px;
  text-decoration: none;
  cursor: pointer;
}

.search-category-wr {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  max-height: none;
  padding: 18px;
  overflow: visible;
}

.search-category {
  padding: 18px;
  border: 1px solid var(--rt-border);
  border-radius: var(--rt-radius);
  background: rgba(255, 255, 255, 0.025);
}

.search-category-top {
  margin-bottom: 14px;
}

.search-big-title {
  color: var(--rt-text);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.search-category-bottom {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.search-category-column {
  width: auto;
}

.search-little-title {
  margin: 0 0 9px;
  color: var(--rt-muted);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

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

.checkbox-list li {
  min-width: 0;
}

.checkbox-list label {
  color: #c7c8d1;
  font-size: 12px;
  line-height: 1.35;
  cursor: pointer;
}

.checkbox-list input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin: 0 8px 0 0;
  vertical-align: -3px;
  accent-color: var(--rt-accent);
}

.search-bottom {
  position: sticky;
  bottom: 0;
  z-index: 3;
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  padding: 16px 18px 18px;
  border-top: 1px solid var(--rt-border);
  background: rgba(18, 19, 27, 0.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.search-bottom .btn-reset {
  color: var(--rt-text);
  background: var(--rt-surface-3);
  background-image: none;
  text-align: center;
}

/* Footer */
.footer {
  position: static;
  height: auto;
  padding: 0;
  border-top: 1px solid var(--rt-border);
  color: var(--rt-muted);
  background: #0c0d13;
}

.footer-center {
  border-bottom: 1px solid var(--rt-border);
}

.footer-center-inner {
  gap: 64px;
  padding: 36px 0 26px;
}

.footer-column {
  width: auto;
  height: auto;
  min-height: 0;
  padding: 0;
  border: 0;
}

.footer-column-1 .footer-list {
  height: auto;
  min-width: 0;
}

.footer-column-1 .footer-list li {
  margin-right: 24px;
}

.footer-list li {
  margin: 0;
}

.footer-list li a {
  padding: 7px 0;
  color: var(--rt-muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.footer-list li a:hover,
.footer-list li a:focus {
  color: var(--rt-text);
  text-decoration: none;
}

.copyright {
  padding: 18px 0 22px;
  color: #747581;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Existing profile/chat screens inherit the same shell. */
#wrapper {
  color: var(--rt-text);
  background: transparent;
}

.chatframe {
  display: block;
  width: calc(100% - 48px);
  margin: 12px auto 18px;
  overflow: hidden;
  border: 1px solid var(--rt-border);
  border-radius: var(--rt-radius);
  background: #fff;
  box-shadow: var(--rt-shadow);
}

.profile-wr,
.model_mnu,
.comments,
.up_chat {
  color: var(--rt-text);
}

@media (min-width: 1500px) {
  .content-inner {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .content-inner.more-view {
    grid-template-columns: repeat(8, minmax(0, 1fr));
  }
}

@media (max-width: 1280px) {
  .home-content > .container {
    grid-template-columns: minmax(0, 1fr);
  }

  .sidebar-wr {
    display: none;
  }

  .content-inner {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .content-inner.more-view {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}

@media (max-width: 1100px) {
  .content-inner {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .content-inner.more-view {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .main-menu a,
  .search,
  .login,
  .registration,
  .language .button-dropdown a {
    padding-right: 10px;
    padding-left: 10px;
  }
}

@media (max-width: 1023px) {
  .container {
    padding-right: 18px;
    padding-left: 18px;
  }

  .top-menu {
    padding-top: 8px;
  }

  .top-menu-inner {
    height: 58px;
    padding: 0 7px 0 15px;
  }

  .top-menu-left,
  .top-menu-right > .top-vertical-line,
  .top-menu-right > .language,
  .top-menu-right > .not-autorized {
    display: none;
  }

  .top-menu-right {
    position: relative;
    width: 100%;
    flex-direction: row;
    justify-content: flex-start;
  }

  .logo.logo-mob {
    position: absolute;
    left: 50%;
    display: inline-flex;
    min-width: 0;
    transform: translateX(-50%);
  }

  .mobile-menu {
    display: block;
  }

  .second-menu {
    display: none;
  }

  .home-content {
    margin-top: 18px;
  }

  .page-h1 {
    margin-bottom: 16px;
  }

  .content-inner.more-view {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .pagination-wr {
    padding-bottom: 26px;
  }

  .pagination li a {
    display: none;
    width: 44px !important;
    height: 44px;
    font-size: 13px;
    line-height: 44px;
  }

  .pagination li a.current,
  .pagination li a.next,
  .pagination li a.prev {
    display: inline-flex;
    width: 108px !important;
  }

  .pagination li a.current {
    width: 44px !important;
    font-size: 16px;
  }

  .pagination .next .pagin-text,
  .pagination .prev .pagin-text {
    margin: 0 8px;
    font-size: 11px;
  }
}

@media (max-width: 720px) {
  .container {
    padding-right: 12px;
    padding-left: 12px;
  }

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

  .content-inner.more-view {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .chat-item,
  .more-view .chat-item {
    border-radius: 13px;
  }

  .chat-item-img {
    aspect-ratio: 3 / 4;
  }

  .chat-item-bottom {
    right: 10px;
    bottom: 9px;
    left: 10px;
  }

  .chat-item-name,
  .more-view .chat-item-name {
    font-size: 12px;
  }

  .chat-btn,
  .chat-item:hover .chat-btn,
  .chat-item:focus-within .chat-btn {
    height: 0;
    margin: 0;
    opacity: 0;
  }

  .text {
    margin: 18px 0 30px;
    padding: 24px 20px;
    border-radius: 18px;
  }

  .text p,
  .text span {
    font-size: 14px;
    line-height: 1.7;
  }

  .search-wr.is-open {
    padding: 8px;
  }

  .search-wr > .container {
    display: block;
  }

  .search-inner {
    min-height: calc(100vh - 16px);
    min-height: calc(100dvh - 16px);
    max-height: none;
    border-radius: 16px;
  }

  .search-top {
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 9px;
    padding: 12px;
  }

  .search-top .btn-search {
    grid-column: 1 / -1;
    width: 100%;
  }

  .search-category-wr {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 10px;
  }

  .search-category {
    padding: 15px;
  }

  .search-category-bottom {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .search-bottom {
    padding: 12px;
  }

  .search-bottom .btn-search,
  .search-bottom .btn-reset {
    min-width: 0;
    flex: 1;
    padding: 0 12px;
  }

  .chatframe {
    width: calc(100% - 24px);
    margin: 10px auto 16px;
    border-radius: 13px;
  }

  .footer-center-inner {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    padding: 28px 0 20px;
  }

  .footer-column-1 {
    grid-column: 1 / -1;
  }

  .footer-column-1 .footer-list {
    flex-direction: row;
    gap: 18px;
  }

  .sliding-panel-content-inner {
    padding: 84px 18px 30px;
  }

  .sliding-panel-close {
    top: 22px;
    right: 18px;
    left: auto;
  }

  .sliding-panel-content-inner .sliding-panel-close {
    top: 22px;
    right: 18px;
    left: auto;
    width: 36px;
  }
}

@media (max-width: 380px) {
  .logo::before {
    font-size: 18px;
  }

  .page-h1 {
    font-size: 22px;
  }

  .content-inner {
    gap: 8px;
  }
}

@media (max-width: 320px) {
  .content-inner {
    grid-template-columns: 1fr;
  }

  .chat-item-img {
    aspect-ratio: 4 / 3;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
