/* =========================================================
   NINTENDO SWITCH CUSTOM OVERRIDE
   вставлять в custom.css ПОСЛЕ bootstrap.css / ssg.css
   ========================================================= */

:root {
  --ns-red: #e60012;
  --ns-red-dark: #b8000e;
  --ns-red-light: #ff4b5c;
  --ns-cyan: #00c3e3;
  --ns-cyan-dark: #00a3be;
  --ns-blue-soft: #eafcff;
  --ns-bg: #f4f7fc;
  --ns-bg-2: #edf2f8;
  --ns-card: #ffffff;
  --ns-card-soft: #fbfcff;
  --ns-text: #151821;
  --ns-text-2: #657080;
  --ns-line: #e5e9f1;
  --ns-line-2: #d9e0eb;
  --ns-success: #21b66f;
  --ns-warning: #ffb020;
  --ns-radius-xs: 10px;
  --ns-radius-sm: 14px;
  --ns-radius-md: 18px;
  --ns-radius-lg: 24px;
  --ns-radius-xl: 30px;
  --ns-shadow-sm: 0 8px 20px rgba(21, 24, 33, 0.05);
  --ns-shadow: 0 14px 35px rgba(21, 24, 33, 0.08);
  --ns-shadow-hover: 0 18px 45px rgba(21, 24, 33, 0.14);
  --ns-grad-red: linear-gradient(135deg, #ff4558 0%, #e60012 60%, #b8000e 100%);
  --ns-grad-cyan: linear-gradient(135deg, #2bdcf8 0%, #00c3e3 60%, #00a3be 100%);
  --ns-grad-bg: radial-gradient(circle at top left, rgba(230, 0, 18, 0.07), transparent 22%), radial-gradient(circle at top right, rgba(0, 195, 227, 0.10), transparent 24%), linear-gradient(180deg, #f8fbff 0%, #eef3f9 100%);
  --ns-container-max: 1286px;
}

/* =========================================================
   BASE
   ========================================================= */

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Rubik', sans-serif;
  color: var(--ns-text);
  background: var(--ns-grad-bg);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--ns-red);
  text-decoration: none;
  transition: color .22s ease, opacity .22s ease, transform .22s ease, box-shadow .22s ease;
}

a:hover,
a:focus {
  color: var(--ns-red-dark);
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
}

::selection {
  background: var(--ns-red);
  color: #fff;
}

.container {
  max-width: var(--ns-container-max);
}

/* =========================================================
   TYPOGRAPHY
   ========================================================= */

h1,
h2,
h3,
h4,
h5,
h6,
.h1,
.h2,
.h3,
.h4,
.h5,
.h6 {
  color: var(--ns-text);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

h1,
.h1 {
  font-size: clamp(2rem, 4vw, 3rem);
}

h2,
.h2 {
  font-size: clamp(1.6rem, 3vw, 2.25rem);
}

h3,
.h3 {
  font-size: clamp(1.35rem, 2vw, 1.8rem);
}

p,
li,
span,
small,
.text-muted,
.text-secondary {
  color: inherit;
  margin-left: 2px;
}

.text-muted {
  color: var(--ns-text-2) !important;
}

.text-primary {
  color: var(--ns-red) !important;
}

.text-info {
  color: var(--ns-cyan-dark) !important;
}

/* =========================================================
   TOP MENU / HEADER
   ========================================================= */

body > .navbar,
body header.navbar,
body .site-header,
body .topbar,
body .main-header,
body > nav.navbar {
  position: sticky;
  top: 0;
  z-index: 1050;
  background: rgba(255, 255, 255, 0.88) !important;
  border-bottom: 1px solid rgba(229, 233, 241, 0.88);
  box-shadow: 0 10px 25px rgba(21, 24, 33, 0.04);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.navbar-brand,
.logo,
.site-logo {
  position: relative;
  font-weight: 800;
  color: var(--ns-text) !important;
  letter-spacing: -0.03em;
}



.navbar .nav-link,
.navbar-light .navbar-nav .nav-link,
.nav-link {
  color: var(--ns-text) !important;
  font-weight: 600;
  border-radius: 999px;
  padding: .72rem 1rem;
  transition: background-color .22s ease, color .22s ease, transform .22s ease, box-shadow .22s ease;
}

.navbar .nav-link:hover,
.navbar .nav-link:focus,
.navbar-light .navbar-nav .nav-link:hover,
.navbar-light .navbar-nav .nav-link:focus,
.navbar .active > .nav-link,
.navbar-light .navbar-nav .active > .nav-link {
  color: var(--ns-red) !important;
  background: #fff;
  box-shadow: var(--ns-shadow-sm);
  transform: translateY(-1px);
}

.navbar-toggler {
  border: 0;
  border-radius: var(--ns-radius-sm);
  background: #fff;
  box-shadow: var(--ns-shadow-sm);
}

/* =========================================================
   LAYOUT SHELL
   ========================================================= */

body > .container {
  position: relative;
  z-index: 2;
}

body > .container > .row {
  align-items: flex-start;
}

.col-lg-9.col-md-12.col-sm-12.my-4,
.col-lg-3.col-md-12.col-sm-12 {
  position: relative;
}

/* =========================================================
   CARD SYSTEM
   ========================================================= */

.card {
  border: 1px solid rgba(229, 233, 241, 0.92);
  border-radius: var(--ns-radius-lg);
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
  box-shadow: var(--ns-shadow);
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--ns-shadow-hover);
  border-color: rgba(230, 0, 18, 0.12);
}

.card-body {
  padding: 1.35rem 1.35rem;
}

.card-title {
  color: var(--ns-text);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.card-link {
  color: var(--ns-red);
  font-weight: 600;
}

.card-link:hover {
  color: var(--ns-red-dark);
}

.card .collapse {
  color: var(--ns-text-2);
}

/* =========================================================
   SHORTSTORY / CONTENT / ARTICLES
   ========================================================= */

.shortstory,
.story,
.post,
.article,
.entry,
.item,
.news-item,
.news-card,
.content-box,
.post-card,
.product-item,
.customcomments,
.lastcomments_main {
  position: relative;
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
  border: 1px solid rgba(229, 233, 241, 0.92);
  border-radius: var(--ns-radius-lg);
  box-shadow: var(--ns-shadow);
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.shortstory:hover,
.story:hover,
.post:hover,
.article:hover,
.entry:hover,
.item:hover,
.news-item:hover,
.news-card:hover,
.content-box:hover,
.post-card:hover,
.product-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--ns-shadow-hover);
  border-color: rgba(230, 0, 18, 0.14);
}

.shortstory .title,
.story .title,
.post .title,
.article .title,
.entry .title,
.item .title,
.shortstory h2,
.story h2,
.post h2,
.article h2,
.entry h2,
.item h2 {
  color: var(--ns-text);
  margin-bottom: .75rem;
  font-weight: 700;
}

.shortstory .title a,
.story .title a,
.post .title a,
.article .title a,
.entry .title a,
.item .title a,
.shortstory h2 a,
.story h2 a,
.post h2 a,
.article h2 a,
.entry h2 a,
.item h2 a {
  color: var(--ns-text);
}

.shortstory .title a:hover,
.story .title a:hover,
.post .title a:hover,
.article .title a:hover,
.entry .title a:hover,
.item .title a:hover,
.shortstory h2 a:hover,
.story h2 a:hover,
.post h2 a:hover,
.article h2 a:hover,
.entry h2 a:hover,
.item h2 a:hover {
  color: var(--ns-red);
}

.shortstory img,
.story img,
.post img,
.article img,
.entry img,
.item img,
.card img {
  border-radius: calc(var(--ns-radius-lg) - 8px);
}

/* =========================================================
   BUTTONS
   ========================================================= */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  min-height: 46px;
  padding: .72rem 1.15rem;
  font-weight: 700;
  line-height: 1.2;
  border-radius: 999px;
  border: 1px solid transparent;
  box-shadow: none;
  transition: transform .22s ease, box-shadow .22s ease, background .22s ease, border-color .22s ease, color .22s ease;
}

.btn:hover,
.btn:focus {
  transform: translateY(-2px);
  text-decoration: none;
}

.btn:focus,
.btn.focus {
  box-shadow: 0 0 0 .2rem rgba(230, 0, 18, 0.12);
}

.btn-primary,
.btn-primary.disabled,
.btn-primary:disabled {
  color: #fff;
  background: var(--ns-grad-red);
  border-color: transparent;
  box-shadow: 0 12px 24px rgba(230, 0, 18, 0.22);
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:not(:disabled):not(.disabled):active {
  color: #fff;
  background: linear-gradient(135deg, #ff5a6a 0%, #e60012 65%, #a4000c 100%);
  border-color: transparent;
  box-shadow: 0 16px 30px rgba(230, 0, 18, 0.28);
}

.btn-secondary {
  color: var(--ns-text);
  background: #fff;
  border-color: rgba(229, 233, 241, 0.95);
  box-shadow: var(--ns-shadow-sm);
}

.btn-secondary:hover,
.btn-secondary:focus {
  color: var(--ns-red);
  background: #fff;
  border-color: rgba(230, 0, 18, 0.12);
  box-shadow: var(--ns-shadow);
}

.btn-outline-primary {
  color: var(--ns-red);
  background: #fff;
  border-color: rgba(230, 0, 18, 0.18);
  box-shadow: var(--ns-shadow-sm);
}

.btn-outline-primary:hover,
.btn-outline-primary:focus,
.btn-outline-primary:not(:disabled):not(.disabled):active {
  color: #fff;
  background: var(--ns-grad-red);
  border-color: transparent;
  box-shadow: 0 14px 28px rgba(230, 0, 18, 0.22);
}

.btn-outline-secondary {
  color: var(--ns-cyan-dark);
  background: #fff;
  border-color: rgba(0, 195, 227, 0.22);
  box-shadow: var(--ns-shadow-sm);
}

.btn-outline-secondary:hover,
.btn-outline-secondary:focus {
  color: #fff;
  background: var(--ns-grad-cyan);
  border-color: transparent;
}

.btn-link {
  color: var(--ns-red);
  font-weight: 700;
}

.btn-link:hover {
  color: var(--ns-red-dark);
}

/* =========================================================
   DROPDOWNS / FILTERS
   ========================================================= */

.dropdown-menu {
  padding: .6rem;
  border: 1px solid rgba(229, 233, 241, 0.92);
  border-radius: var(--ns-radius-md);
  box-shadow: 0 18px 45px rgba(21, 24, 33, 0.12);
  background: rgba(255, 255, 255, 0.98);
  min-width: 220px;
}

.dropdown-item {
  border-radius: 12px;
  padding: .72rem .9rem;
  font-weight: 600;
  color: var(--ns-text);
  transition: background-color .2s ease, color .2s ease, transform .2s ease;
}

.dropdown-item:hover,
.dropdown-item:focus {
  color: var(--ns-red);
  background: rgba(230, 0, 18, 0.06);
}

.dropdown-toggle::after {
  margin-left: .55rem;
  vertical-align: middle;
}

/* =========================================================
   FORMS / INPUTS
   ========================================================= */

.form-control,
input[type="text"],
input[type="email"],
input[type="search"],
input[type="password"],
textarea,
select {
  width: 100%;
  min-height: 48px;
  padding: .72rem 1rem;
  color: var(--ns-text);
  background: rgba(255, 255, 255, 0.97);
  border: 1px solid var(--ns-line-2);
  border-radius: var(--ns-radius-md);
  box-shadow: inset 0 1px 1px rgba(21, 24, 33, 0.02);
  transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}

textarea.form-control,
textarea {
  min-height: 120px;
}

.form-control:focus,
input:focus,
textarea:focus,
select:focus {
  color: var(--ns-text);
  background: #fff;
  border-color: rgba(230, 0, 18, 0.34);
  box-shadow: 0 0 0 .2rem rgba(230, 0, 18, 0.10);
  outline: 0;
}

.form-control::placeholder,
input::placeholder,
textarea::placeholder {
  color: #8b97a8;
}

/* =========================================================
   TABLES
   ========================================================= */

.table {
  color: var(--ns-text);
  background: #fff;
  border-radius: var(--ns-radius-lg);
  overflow: hidden;
  box-shadow: var(--ns-shadow);
}

.table th,
.table td {
  padding: .95rem 1rem;
  border-top: 1px solid var(--ns-line);
  vertical-align: middle;
}

.table thead th {
  background: #f9fbff;
  color: var(--ns-text);
  font-weight: 700;
  border-bottom: 1px solid var(--ns-line);
}

.table-striped tbody tr:nth-of-type(odd) {
  background-color: rgba(230, 0, 18, 0.025);
}

.table-hover tbody tr:hover {
  color: var(--ns-text);
  background-color: rgba(0, 195, 227, 0.06);
}

/* =========================================================
   ALERTS / INFO BLOCKS
   ========================================================= */

.alert {
  border: 0;
  border-radius: var(--ns-radius-lg);
  box-shadow: var(--ns-shadow);
  padding: 1rem 1.15rem;
}

.alert-primary {
  color: var(--ns-red-dark);
  background: rgba(230, 0, 18, 0.08);
}

.alert-info {
  color: #007d92;
  background: rgba(0, 195, 227, 0.10);
}

.alert-success {
  color: #14865c;
  background: rgba(33, 182, 111, 0.10);
}

.alert-warning {
  color: #9a6b00;
  background: rgba(255, 176, 32, 0.16);
}

.alert-danger {
  color: #b31320;
  background: rgba(255, 75, 92, 0.12);
}

/* =========================================================
   SIDEBAR
   ========================================================= */

aside,
.sidebar,
.sidebar-box,
.widget,
.side-block,
.right-sidebar {
  position: relative;
}

.sidebar .card,
.sidebar-box .card,
.widget.card,
.side-block .card,
.col-lg-3 .card {
  border-radius: var(--ns-radius-lg);
  margin-top: 1.5rem !important;
}

.col-lg-3 .card-title,
.sidebar .card-title,
.widget .card-title {
  position: relative;
  padding-left: 16px;
}

.col-lg-3 .card-title::before,
.sidebar .card-title::before,
.widget .card-title::before {
  content: "";
  position: absolute;
  top: .15em;
  left: 0;
  width: 6px;
  height: 1.1em;
  border-radius: 999px;
  background: var(--ns-grad-red);
}

/* =========================================================
   PAGINATION
   ========================================================= */

.pagination {
  gap: .45rem;
  flex-wrap: wrap;
}

.page-link {
  min-width: 42px;
  height: 42px;
  padding: 0 .85rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--ns-line);
  border-radius: 999px !important;
  background: #fff;
  color: var(--ns-text);
  font-weight: 700;
  box-shadow: var(--ns-shadow-sm);
  transition: all .2s ease;
}

.page-link:hover {
  color: var(--ns-red);
  background: rgba(230, 0, 18, 0.04);
  border-color: rgba(230, 0, 18, 0.10);
}

.page-item.active .page-link {
  color: #fff;
  background: var(--ns-grad-red);
  border-color: transparent;
  box-shadow: 0 12px 24px rgba(230, 0, 18, 0.22);
}

.page-item.disabled .page-link {
  opacity: .5;
  background: #fff;
}

/* =========================================================
   BREADCRUMBS
   ========================================================= */

.breadcrumb {
  padding: .8rem 1rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(229, 233, 241, 0.9);
  box-shadow: var(--ns-shadow-sm);
}

.breadcrumb-item + .breadcrumb-item::before {
  color: #95a1b0;
}

.breadcrumb a {
  color: var(--ns-text);
  font-weight: 600;
}

.breadcrumb a:hover {
  color: var(--ns-red);
}

/* =========================================================
   BADGES / LABELS / TAGS
   ========================================================= */

.badge,
.label,
.tag,
.meta-badge,
.cat-label {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .48rem .8rem;
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 700;
  line-height: 1;
  border: 0;
}

.badge-primary,
.label-primary,
.tag-primary {
  color: var(--ns-red);
  background: rgba(230, 0, 18, 0.10);
}

.badge-info,
.label-info,
.tag-info {
  color: var(--ns-cyan-dark);
  background: rgba(0, 195, 227, 0.12);
}

.badge-success,
.label-success,
.tag-success {
  color: #129763;
  background: rgba(33, 182, 111, 0.12);
}

.badge-warning,
.label-warning,
.tag-warning {
  color: #a36b00;
  background: rgba(255, 176, 32, 0.16);
}

/* =========================================================
   CATEGORY INFO CARD / TOGGLES
   ========================================================= */

.card-link[data-toggle="collapse"] .card-body {
  position: relative;
  transition: background-color .2s ease;
}

.card-link[data-toggle="collapse"]:hover .card-body {
  background: rgba(230, 0, 18, 0.03);
}

.card-link[data-toggle="collapse"] .icon-arrow-down {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(230, 0, 18, 0.08);
  color: var(--ns-red);
}

/* =========================================================
   FOOTER
   ========================================================= */

.footer,
footer {
  position: relative;
  margin-top: 46px;
  padding-top: 24px;
  padding-bottom: 24px;
  color: rgba(255, 255, 255, 0.82);
  background: linear-gradient(180deg, #191d27 0%, #10141d 100%);
  border-top-left-radius: 28px;
  border-top-right-radius: 28px;
  overflow: hidden;
}

.footer::before,
footer::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 12% 20%, rgba(230, 0, 18, 0.18), transparent 18%),
    radial-gradient(circle at 88% 0%, rgba(0, 195, 227, 0.16), transparent 22%);
}

.footer .container,
footer .container {
  position: relative;
  z-index: 2;
}

.footer a,
footer a {
  color: #fff;
  opacity: .9;
}

.footer a:hover,
footer a:hover {
  color: #fff;
  opacity: 1;
}

/* =========================================================
   UTILITIES
   ========================================================= */

.bg-primary {
  background: var(--ns-grad-red) !important;
}

.bg-info,
.bg-secondary {
  background: var(--ns-grad-cyan) !important;
}

.bg-light {
  background: #f8fbff !important;
}

.bg-white {
  background: #ffffff !important;
}

.border,
.border-top,
.border-right,
.border-bottom,
.border-left {
  border-color: var(--ns-line) !important;
}

.rounded {
  border-radius: var(--ns-radius-md) !important;
}

.shadow,
.shadow-sm,
.shadow-lg {
  box-shadow: var(--ns-shadow) !important;
}

/* =========================================================
   SCROLLBAR
   ========================================================= */

*::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}

*::-webkit-scrollbar-track {
  background: #edf2f8;
  border-radius: 999px;
}

*::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #ff5666 0%, #e60012 100%);
  border-radius: 999px;
  border: 2px solid #edf2f8;
}

*::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #ff3b4f 0%, #c60010 100%);
}

/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 1199.98px) {
  .container {
    max-width: 100%;
  }
}

@media (max-width: 991.98px) {
  .card,
  .shortstory,
  .story,
  .post,
  .article,
  .entry,
  .item,
  .news-item,
  .news-card,
  .content-box,
  .post-card,
  .product-item {
    border-radius: var(--ns-radius-md);
  }

  .footer,
  footer {
    border-top-left-radius: 22px;
    border-top-right-radius: 22px;
  }
}

@media (max-width: 767.98px) {
  body {
    font-size: .96rem;
  }

  .card-body {
    padding: 1rem;
  }

  .btn {
    min-height: 44px;
    padding: .68rem 1rem;
  }

  .form-control,
  input[type="text"],
  input[type="email"],
  input[type="search"],
  input[type="password"],
  textarea,
  select {
    min-height: 46px;
    border-radius: 14px;
  }

  .breadcrumb {
    border-radius: 18px;
  }

  .page-link {
    min-width: 38px;
    height: 38px;
  }
}

/* =========================================================
   EXTRA DLE / SAFE TARGETS
   ========================================================= */

#dle-content,
#content,
.main-content,
.page-content {
  position: relative;
}

.icon-info.text-primary,
.fa.text-primary,
.text-primary .fa {
  color: var(--ns-red) !important;
}

.row-flex > [class*="col-"] > .card,
.row-flex > [class*="col-"] > .shortstory,
.row-flex > [class*="col-"] > .post {
  height: 100%;
}

blockquote {
  margin: 1rem 0;
  padding: 1rem 1.15rem;
  border-left: 4px solid var(--ns-red);
  border-radius: 0 var(--ns-radius-md) var(--ns-radius-md) 0;
  background: rgba(230, 0, 18, 0.04);
  color: var(--ns-text);
}

hr {
  border-top: 1px solid var(--ns-line);
}

/* =========================
   SWITCH MENU
   ========================= */

.switch-nav {
  background: rgba(255, 255, 255, 0.92) !important;
  border-bottom: 1px solid rgba(229, 233, 241, 0.9);
  box-shadow: 0 10px 30px rgba(20, 24, 35, 0.06);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding-top: 12px;
  padding-bottom: 12px;
}

.switch-brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  text-decoration: none !important;
  padding: 0;
  margin-right: 28px;
}

.switch-logo {
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
  width: 46px;
  height: 34px;
  flex: 0 0 auto;
}

.switch-logo-left,
.switch-logo-right {
  position: relative;
  display: block;
  width: 20px;
  height: 34px;
  border-radius: 999px;
}

.switch-logo-left {
  background: linear-gradient(180deg, #ff4d5e 0%, #e60012 100%);
  box-shadow: 0 8px 18px rgba(230, 0, 18, 0.25);
}

.switch-logo-right {
  background: linear-gradient(180deg, #2fdcff 0%, #00c3e3 100%);
  box-shadow: 0 8px 18px rgba(0, 195, 227, 0.25);
}

.switch-logo-left::before,
.switch-logo-right::before {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 50%;
  background: #fff;
}

.switch-logo-left::before {
  width: 7px;
  height: 7px;
  top: 8px;
}

.switch-logo-right::before {
  width: 10px;
  height: 10px;
  bottom: 7px;
}

.switch-brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.switch-brand-main {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.04em;
  text-transform: none;
  color: #131722;
}

.switch-brand-sub {
  margin-top: 3px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #e60012;
}

.switch-menu {
  align-items: center;
  gap: 6px;
}

.switch-menu .nav-item {
  margin: 0;
}

.switch-menu .nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 16px !important;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  color: #18202c !important;
  transition: all 0.22s ease;
}

.switch-menu .nav-link:hover,
.switch-menu .nav-link:focus {
  color: #e60012 !important;
  background: #ffffff;
  box-shadow: 0 10px 22px rgba(21, 24, 33, 0.08);
  transform: translateY(-1px);
}

.switch-menu .nav-item.active .nav-link,
.switch-menu .nav-link.active {
  color: #fff !important;
  background: linear-gradient(135deg, #ff4558 0%, #e60012 60%, #b8000e 100%);
  box-shadow: 0 12px 24px rgba(230, 0, 18, 0.24);
}

.switch-search-wrap {
  display: flex;
  align-items: center;
}

.switch-search-form {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
}

.switch-search-input {
  width: 220px;
  min-height: 44px;
  border-radius: 999px;
  border: 1px solid #dde3ee;
  background: #fff;
  color: #151821;
  padding: 0 16px;
  box-shadow: none;
  max-height: none !important;
}

.switch-search-input:focus {
  border-color: rgba(230, 0, 18, 0.35);
  box-shadow: 0 0 0 0.2rem rgba(230, 0, 18, 0.10);
}

.switch-search-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 44px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #23d9f6 0%, #00c3e3 60%, #00a6c2 100%);
  box-shadow: 0 12px 22px rgba(0, 195, 227, 0.22);
  transition: all 0.22s ease;
}

.switch-search-btn:hover,
.switch-search-btn:focus {
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 16px 28px rgba(0, 195, 227, 0.28);
}

.switch-toggler {
  border: 0;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 8px 18px rgba(20, 24, 35, 0.08);
  padding: 8px 12px;
}

.switch-toggler:focus {
  outline: none;
  box-shadow: 0 0 0 0.2rem rgba(230, 0, 18, 0.12);
}

@media (max-width: 991.98px) {
  .switch-nav {
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .switch-brand {
    margin-right: 0;
  }

  .switch-brand-main {
    font-size: 20px;
  }

  .switch-menu {
    gap: 0;
    margin-top: 14px;
    margin-bottom: 14px;
  }

  .switch-menu .nav-link {
    justify-content: flex-start;
    width: 100%;
    border-radius: 14px;
    padding: 12px 14px !important;
  }

  .switch-search-wrap {
    width: 100%;
    margin-left: 0 !important;
  }

  .switch-search-form {
    width: 100%;
    flex-wrap: wrap;
  }

  .switch-search-input {
    width: 100%;
  }

  .switch-search-btn {
    width: 100%;
  }
}

@media (max-width: 575.98px) {
  .switch-brand {
    gap: 10px;
  }

  .switch-logo {
    width: 40px;
    height: 30px;
  }

  .switch-logo-left,
  .switch-logo-right {
    width: 17px;
    height: 30px;
  }

  .switch-brand-main {
    font-size: 18px;
  }

  .switch-brand-sub {
    font-size: 11px;
  }
}

/* =========================================================
   FULLSTORY CLEAN SWITCH
   ========================================================= */

.fs-article {
  overflow: visible;
}

.fs-body {
  padding: 1.5rem 1.5rem 1.25rem;
}

.fs-dropdown {
  margin-left: 10px;
}

.fs-header {
  margin-bottom: 1.1rem;
}

.fs-title {
  margin: 0 0 .7rem;
  padding-right: 56px;
  font-size: clamp(1.7rem, 3vw, 2.45rem);
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--ns-text);
}

.fs-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  align-items: center;
  font-size: .95rem;
  color: var(--ns-text-2);
}

.fs-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.fs-category {
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(230, 0, 18, 0.08);
  color: var(--ns-red);
  font-weight: 700;
}

.fs-content {
  display: block;
  font-size: 1.02rem;
  line-height: 1.82;
  color: var(--ns-text);
}

.fs-poster {
  float: left;
  width: 320px;
  max-width: 42%;
  margin: 4px 26px 18px 0;
  position: relative;
}

.fs-poster-image,
.fs-poster img,
.fs-poster .xfieldimage img,
.fs-poster .xfieldimage {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 18px 36px rgba(21, 24, 33, 0.14);
}

.fs-text {
  color: var(--ns-text);
}

.fs-text::after {
  content: "";
  display: block;
  clear: both;
}

.fs-text p {
  margin-bottom: 1rem;
}

.fs-text h2,
.fs-text h3,
.fs-text h4 {
  margin-top: 1.4rem;
  margin-bottom: .75rem;
  color: var(--ns-text);
  line-height: 1.25;
}

.fs-text ul,
.fs-text ol {
  padding-left: 1.25rem;
  margin-bottom: 1rem;
}

.fs-text blockquote {
  margin: 1.2rem 0;
}

.fs-pages {
  clear: both;
  padding-top: .5rem;
}

.fs-section {
  border-top: 1px solid var(--ns-line);
  padding-top: 1.2rem;
}

.fs-section-title {
  margin-bottom: 1rem;
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--ns-text);
}

.fs-editnote .alert {
  border-radius: 16px;
}

.fs-footer {
  background: transparent;
}

.fs-footer-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  align-items: center;
}

.fs-rate-btn {
  margin: 0 !important;
  padding: 4px 10px !important;
}

.fs-comments-card {
  margin-top: 18px;
}

.fs-comments-card .card-body {
  padding: 1.35rem;
}

/* контентные картинки внутри текста */
.fs-text img:not(.poster_one):not(.xfieldimage):not(.owl-lazy) {
  max-width: 100%;
  height: auto;
  border-radius: 16px;
}

/* мобилка */
@media (max-width: 991.98px) {
  .fs-poster {
    width: 270px;
    max-width: 46%;
    margin-right: 20px;
  }
}

@media (max-width: 767.98px) {
  .fs-body {
    padding: 1rem;
  }

  .fs-title {
    padding-right: 0;
    font-size: 1.55rem;
  }

  .fs-meta {
    gap: 8px 12px;
    font-size: .9rem;
  }

  .fs-poster {
    float: none;
    width: 100%;
    max-width: 100%;
    margin: 0 0 16px 0;
  }

  .fs-content {
    font-size: 1rem;
    line-height: 1.72;
  }

  .fs-footer-list {
    gap: 8px 12px;
  }
}
/* =========================================================
   COMMENTS REDESIGN
   ========================================================= */

.switch-comment {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 18px;
  padding: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
  border: 1px solid var(--ns-line);
  border-radius: 20px;
  box-shadow: 0 12px 28px rgba(21, 24, 33, 0.05);
}

.switch-comment-avatar {
  flex: 0 0 54px;
  max-width: 54px;
}

.switch-comment-avatar-link {
  display: block;
  text-decoration: none;
}

.switch-comment-avatar-img {
  display: block;
  width: 54px !important;
  height: 54px !important;
  object-fit: cover;
  border-radius: 16px !important;
  border: 1px solid rgba(229, 233, 241, 0.9);
  box-shadow: 0 8px 18px rgba(21, 24, 33, 0.08);
}

.switch-comment-body {
  width: 100%;
  min-width: 0;
}

.switch-comment-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.switch-comment-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 14px;
  min-width: 0;
}

.switch-comment-author {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ns-red);
  font-size: 16px;
  font-weight: 800;
  text-decoration: none;
  line-height: 1.2;
}

.switch-comment-author:hover {
  color: var(--ns-red-dark);
  text-decoration: none;
}

.switch-comment-date {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ns-text-2);
  font-size: 14px;
  font-weight: 600;
}

.switch-comment-parent {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 11px;
  border-radius: 999px;
  background: rgba(0, 195, 227, 0.10);
  color: var(--ns-cyan-dark);
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
}

.switch-comment-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.switch-comment-iconbtn {
  min-width: 36px;
  min-height: 36px;
  padding: 0 10px;
  border: 1px solid var(--ns-line);
  border-radius: 12px;
  background: #fff;
  color: #8f98a6;
  box-shadow: none;
}

.switch-comment-iconbtn:hover,
.switch-comment-iconbtn:focus {
  color: var(--ns-red);
  background: #fff;
  border-color: rgba(230, 0, 18, 0.14);
  box-shadow: 0 8px 18px rgba(21, 24, 33, 0.06);
}

.switch-comment-like-btn {
  min-height: 36px;
  padding: 0 12px;
  border-radius: 12px;
  font-weight: 700;
}

.switch-comment-dropdown .dropdown-menu {
  min-width: 180px;
}

.switch-comment-content {
  padding: 14px 16px;
  border-radius: 16px;
  background: #f9fbff;
  border: 1px solid rgba(229, 233, 241, 0.9);
  color: var(--ns-text);
  font-size: 15px;
  line-height: 1.75;
  word-break: break-word;
}

.switch-comment-content p:last-child {
  margin-bottom: 0;
}

.switch-comment-divider {
  height: 1px;
  margin: 14px 0;
  background: var(--ns-line);
}

.switch-comment-images img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
}

.switch-comment-signature {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(21, 24, 33, 0.04);
  color: #7d8794;
  font-size: 13px;
  line-height: 1.55;
}

/* =========================================================
   COMMENT FORM / EDITOR
   ========================================================= */

#dle-comments-form,
.addcomments,
.mass_comments_action,
.comment-form,
#commentform {
  margin-top: 22px;
  padding: 22px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
  border: 1px solid var(--ns-line);
  border-radius: 22px;
  box-shadow: 0 12px 28px rgba(21, 24, 33, 0.05);
}

#dle-comments-form h3,
.addcomments h3,
.comment-form h3,
#commentform h3 {
  margin-bottom: 16px;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--ns-text);
}

#dle-comments-form .bb-editor,
.addcomments .bb-editor,
#commentform .bb-editor {
  border: 1px solid var(--ns-line) !important;
  border-radius: 16px !important;
  overflow: hidden;
  background: #fff;
}

#dle-comments-form .bb-editor textarea,
.addcomments .bb-editor textarea,
#commentform .bb-editor textarea,
#comments textarea,
.addcomments textarea,
form textarea {
  min-height: 210px;
  border: 0 !important;
  border-radius: 0 0 16px 16px !important;
  background: #fff !important;
  color: var(--ns-text) !important;
  box-shadow: none !important;
  padding: 14px 16px !important;
  font-size: 15px;
  line-height: 1.7;
}

#dle-comments-form .bb-editor textarea:focus,
.addcomments .bb-editor textarea:focus,
#commentform .bb-editor textarea:focus,
#comments textarea:focus,
.addcomments textarea:focus,
form textarea:focus {
  box-shadow: none !important;
  outline: none !important;
}

.bb-editor .editor-panel,
.wseditor .editor-panel,
.xfiler,
#bbeditor,
#bb-pane {
  background: #f8fbff !important;
  border-bottom: 1px solid var(--ns-line) !important;
}

.bb-editor .editor-panel a,
.bb-editor .editor-panel button,
.wseditor .editor-panel a,
.wseditor .editor-panel button,
#bbeditor a,
#bbeditor button {
  border-radius: 10px !important;
}

.bb-editor .editor-panel a:hover,
.bb-editor .editor-panel button:hover,
.wseditor .editor-panel a:hover,
.wseditor .editor-panel button:hover,
#bbeditor a:hover,
#bbeditor button:hover {
  background: rgba(230, 0, 18, 0.06) !important;
}

#dle-comments-form input[type="text"],
#dle-comments-form input[type="email"],
.addcomments input[type="text"],
.addcomments input[type="email"],
#commentform input[type="text"],
#commentform input[type="email"] {
  min-height: 46px;
  border-radius: 14px;
  border: 1px solid var(--ns-line);
  background: #fff;
  padding: 0 14px;
}

.xfiler,
.qq-uploader,
.drop-files,
#drop-files,
.comments-upload-area {
  margin-top: 14px;
  padding: 18px;
  border: 2px dashed #dbe3ef !important;
  border-radius: 18px;
  background: #fbfdff;
}

#dle-comments-form .btn,
.addcomments .btn,
#commentform .btn,
#dle-comments-form button[type="submit"],
.addcomments button[type="submit"],
#commentform button[type="submit"] {
  min-height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  font-weight: 800;
}

#dle-comments-form button[type="submit"],
.addcomments button[type="submit"],
#commentform button[type="submit"] {
  background: var(--ns-grad-red);
  border: 0;
  color: #fff;
  box-shadow: 0 12px 24px rgba(230, 0, 18, 0.20);
}

#dle-comments-form button[type="submit"]:hover,
.addcomments button[type="submit"]:hover,
#commentform button[type="submit"]:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 28px rgba(230, 0, 18, 0.26);
}

#dle-comments-form label,
.addcomments label,
#commentform label {
  font-weight: 700;
  color: var(--ns-text);
}

#dle-comments-form .form-check,
.addcomments .form-check,
#commentform .form-check {
  margin-top: 12px;
}

/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 767.98px) {
  .switch-comment {
    padding: 14px;
    border-radius: 16px;
  }

  .switch-comment-head {
    flex-direction: column;
    align-items: stretch;
  }

  .switch-comment-actions {
    justify-content: flex-start;
  }

  .switch-comment-content {
    padding: 12px 13px;
    font-size: 14px;
    line-height: 1.65;
  }

  #dle-comments-form,
  .addcomments,
  .mass_comments_action,
  .comment-form,
  #commentform {
    padding: 16px;
    border-radius: 18px;
  }

  #dle-comments-form h3,
  .addcomments h3,
  .comment-form h3,
  #commentform h3 {
    font-size: 22px;
  }
}
/* =========================================================
   COMMENTS FORM
   ========================================================= */

.comments-form-wrap {
  position: relative;
  padding: 1.35rem;
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
  border: 1px solid rgba(229, 233, 241, 0.92);
  border-radius: var(--ns-radius-lg);
  box-shadow: var(--ns-shadow);
  overflow: hidden;
}

.comments-form-wrap::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at top left, rgba(230, 0, 18, 0.05), transparent 20%),
    radial-gradient(circle at top right, rgba(0, 195, 227, 0.07), transparent 22%);
}

.comments-form-wrap > * {
  position: relative;
  z-index: 2;
}

.comments-form-head {
  gap: 12px;
  margin-bottom: 1rem;
  padding-bottom: .9rem;
  border-bottom: 1px solid var(--ns-line);
}

.comments-form-title {
  margin: 0;
  color: var(--ns-text);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.comments-form-subtitle {
  font-size: .95rem;
  color: var(--ns-text-2) !important;
}

.comments-login-note {
  margin-bottom: 1rem;
  border: 0;
  border-radius: var(--ns-radius-md);
  box-shadow: none;
  font-size: .95rem;
}

.comments-editor {
  position: relative;
}

.comments-editor .bb-editor,
.comments-editor .wseditor,
.comments-editor .editor-panel,
.comments-editor textarea,
.comments-editor .form-control {
  border-radius: var(--ns-radius-md);
}

.comments-extra-box,
.comments-subscribe-box,
.comments-captcha-box {
  padding: 1rem;
  background: var(--ns-card-soft);
  border: 1px solid var(--ns-line);
  border-radius: var(--ns-radius-md);
}

.comments-extra-title {
  margin-bottom: .55rem;
  font-size: .95rem;
  font-weight: 700;
  color: var(--ns-text);
}

.comments-extra-content {
  color: var(--ns-text-2);
}

.comments-check {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  font-weight: 600;
  color: var(--ns-text);
  cursor: pointer;
}

.comments-check input[type="checkbox"] {
  transform: translateY(-1px);
}

.comments-check span {
  margin-left: 0 !important;
}

.comments-label {
  display: inline-block;
  margin-bottom: .55rem;
  font-weight: 700;
  color: var(--ns-text);
}

.comments-captcha-local {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.comments-captcha-image {
  flex: 0 0 auto;
  min-width: 120px;
}

.comments-captcha-field {
  flex: 1 1 240px;
}

.comments-form-actions {
  gap: 12px;
  margin-top: .5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--ns-line);
}

.comments-form-tip {
  font-size: .92rem;
}

.comments-submit-btn {
  min-width: 220px;
}

/* ---------------------------------------------------------
   DLE editor / textarea polishing
   --------------------------------------------------------- */

#dle-comments-form textarea,
#dle-comments-form .form-control,
.comments-form-wrap textarea,
.comments-form-wrap input[type="text"],
.comments-form-wrap input[type="email"] {
  border-radius: var(--ns-radius-md);
}

#dle-comments-form textarea {
  min-height: 150px;
}

/* ---------------------------------------------------------
   image upload / recaptcha visual normalize
   --------------------------------------------------------- */

.comments-extra-content input[type="file"],
.comments-captcha-box input[type="text"] {
  max-width: 100%;
}

.comments-captcha-box img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
}

/* ---------------------------------------------------------
   mobile
   --------------------------------------------------------- */

@media (max-width: 767.98px) {
  .comments-form-wrap {
    padding: 1rem;
    border-radius: var(--ns-radius-md);
  }

  .comments-form-head {
    padding-bottom: .75rem;
    margin-bottom: .9rem;
  }

  .comments-form-title {
    font-size: 1.1rem;
  }

  .comments-captcha-local {
    flex-direction: column;
    align-items: stretch;
  }

  .comments-captcha-image,
  .comments-captcha-field,
  .comments-submit-btn {
    width: 100%;
  }

  .comments-form-actions {
    flex-direction: column;
    align-items: stretch !important;
  }
}
/* =========================================================
   AI ARTICLE / SEO ARTICLE CONTENT
   вставить В САМЫЙ КОНЕЦ custom.css
   ========================================================= */

.shortstory .ai-article,
.story .ai-article,
.post .ai-article,
.article .ai-article,
.entry .ai-article,
.item .ai-article,
.news-item .ai-article,
.news-card .ai-article,
.content-box .ai-article,
.post-card .ai-article {
  position: relative;
  color: var(--ns-text);
  line-height: 1.82;
  font-size: 16.5px;
  word-wrap: break-word;
}

.shortstory .ai-article > *:last-child,
.story .ai-article > *:last-child,
.post .ai-article > *:last-child,
.article .ai-article > *:last-child,
.entry .ai-article > *:last-child,
.item .ai-article > *:last-child {
  margin-bottom: 0;
}

/* =========================
   PARAGRAPHS / LINKS / LISTS
   ========================= */

.ai-article p {
  margin: 0 0 1.15rem;
  color: var(--ns-text);
}

.ai-article p + ul,
.ai-article p + ol {
  margin-top: -.25rem;
}

.ai-article ul,
.ai-article ol {
  margin: 0 0 1.35rem;
  padding-left: 1.2rem;
}

.ai-article ul li,
.ai-article ol li {
  margin-bottom: .55rem;
  padding-left: .1rem;
}

.ai-article ul li::marker {
  color: var(--ns-red);
}

.ai-article a {
  color: var(--ns-red);
  font-weight: 700;
  text-decoration: none !important;
  border-bottom: 1px solid rgba(230, 0, 18, 0.22);
  box-shadow: inset 0 -1px 0 rgba(230, 0, 18, 0.08);
  transition: color .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.ai-article a:hover,
.ai-article a:focus {
  color: var(--ns-red-dark);
  border-color: rgba(230, 0, 18, 0.55);
  box-shadow: inset 0 -2px 0 rgba(230, 0, 18, 0.12);
  text-decoration: none !important;
}

.ai-article strong {
  color: #10141d;
  font-weight: 800;
}

.ai-article em {
  color: #445062;
  font-style: italic;
}

/* =========================
   HEADINGS
   ========================= */

.ai-article h2,
.ai-article h3 {
  position: relative;
  color: var(--ns-text);
  letter-spacing: -0.025em;
  line-height: 1.22;
  font-weight: 800;
}

.ai-article h2 {
  margin: 2.25rem 0 1rem;
  padding: 0 0 .85rem;
  font-size: clamp(1.5rem, 2.1vw, 2rem);
  border-bottom: 1px solid rgba(229, 233, 241, 0.95);
}

.ai-article h2::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 76px;
  height: 3px;
  border-radius: 999px;
  background: var(--ns-grad-red);
}

.ai-article h3 {
  margin: 1.6rem 0 .8rem;
  font-size: clamp(1.18rem, 1.5vw, 1.45rem);
  padding-left: 15px;
}

.ai-article h3::before {
  content: "";
  position: absolute;
  left: 0;
  top: .22em;
  width: 6px;
  height: 1em;
  border-radius: 999px;
  background: var(--ns-grad-cyan);
}

.ai-article h2:first-child,
.ai-article .ai-note + h2 {
  margin-top: .35rem;
}

/* =========================
   TOP NOTE
   ========================= */

.ai-article .ai-note {
  position: relative;
  overflow: hidden;
  margin: 0 0 1.5rem;
  padding: 1.15rem 1.15rem 1rem;
  border: 1px solid rgba(230, 0, 18, 0.10);
  border-radius: calc(var(--ns-radius-lg) - 4px);
  background:
    radial-gradient(circle at top right, rgba(0, 195, 227, 0.14), transparent 30%),
    linear-gradient(135deg, rgba(230, 0, 18, 0.07), rgba(255,255,255,0.96) 55%);
  box-shadow: var(--ns-shadow-sm);
}

.ai-article .ai-note::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--ns-grad-red);
}

.ai-article .ai-note-title {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: .4rem .8rem;
  margin: 0 0 .8rem;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 8px 18px rgba(21, 24, 33, 0.07);
  color: var(--ns-red);
  font-size: .8rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.ai-article .ai-note p:last-child {
  margin-bottom: 0;
}

/* =========================
   TOC
   ========================= */

.ai-article .ai-toc {
  margin: 0 0 1.7rem;
  padding: 1.1rem 1.15rem 1rem;
  border: 1px solid rgba(229, 233, 241, 0.95);
  border-radius: calc(var(--ns-radius-lg) - 4px);
  background: linear-gradient(180deg, #ffffff 0%, #f9fbff 100%);
  box-shadow: var(--ns-shadow-sm);
}

.ai-article .ai-toc-title {
  display: flex;
  align-items: center;
  margin: 0 0 .9rem;
  color: var(--ns-text);
  font-size: .95rem;
  font-weight: 800;
  letter-spacing: -.01em;
}

.ai-article .ai-toc-title::before {
  content: "";
  width: 10px;
  height: 10px;
  margin-right: .65rem;
  border-radius: 50%;
  background: var(--ns-grad-red);
  flex: 0 0 auto;
}

.ai-article .ai-toc ul {
  list-style: none;
  padding: 0;
  margin: 0;
  columns: 2;
  column-gap: 26px;
}

.ai-article .ai-toc li {
  margin: 0 0 .55rem;
  break-inside: avoid;
  padding: 0;
}

.ai-article .ai-toc a {
  display: inline-flex;
  align-items: flex-start;
  gap: .55rem;
  border-bottom: 0;
  box-shadow: none;
  color: var(--ns-text);
  font-weight: 700;
}

.ai-article .ai-toc a::before {
  content: "";
  width: 7px;
  height: 7px;
  margin-top: .48rem;
  border-radius: 50%;
  background: var(--ns-cyan);
  flex: 0 0 auto;
}

.ai-article .ai-toc a:hover {
  color: var(--ns-red);
}

/* =========================
   TABLES
   ========================= */

.ai-article table {
  width: 100%;
  margin: 1.45rem 0 1.55rem;
  border-collapse: separate;
  border-spacing: 0;
  background: #fff;
  border: 1px solid rgba(229, 233, 241, 0.95);
  border-radius: calc(var(--ns-radius-lg) - 2px);
  box-shadow: var(--ns-shadow);
  overflow: hidden;
}

.ai-article table thead th {
  padding: 1rem 1rem;
  background: linear-gradient(180deg, #f8fbff 0%, #eef6ff 100%);
  color: var(--ns-text);
  font-size: .95rem;
  font-weight: 800;
  border-bottom: 1px solid var(--ns-line);
  border-top: 0;
}

.ai-article table tbody td {
  padding: .92rem 1rem;
  color: var(--ns-text);
  border-top: 1px solid var(--ns-line);
  vertical-align: top;
}

.ai-article table tbody tr:nth-child(even) td {
  background: rgba(0, 195, 227, 0.025);
}

.ai-article table tbody tr:hover td {
  background: rgba(230, 0, 18, 0.03);
}

/* =========================
   BLOCKQUOTE
   ========================= */

.ai-article blockquote {
  position: relative;
  margin: 1.35rem 0 1.45rem;
  padding: 1.05rem 1.15rem 1.05rem 1.25rem;
  border-left: 0;
  border-radius: 0 calc(var(--ns-radius-lg) - 6px) calc(var(--ns-radius-lg) - 6px) 0;
  background:
    linear-gradient(180deg, rgba(230, 0, 18, 0.04) 0%, rgba(255,255,255,0.96) 100%);
  box-shadow: var(--ns-shadow-sm);
  color: var(--ns-text);
}

.ai-article blockquote::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  bottom: 12px;
  width: 4px;
  border-radius: 999px;
  background: var(--ns-grad-red);
}

/* =========================
   PROS / CONS
   ========================= */

.ai-article .ai-proscons {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin: 1.5rem 0 1.7rem;
}

.ai-article .ai-pros,
.ai-article .ai-cons {
  position: relative;
  padding: 1rem 1rem .35rem;
  border-radius: calc(var(--ns-radius-lg) - 4px);
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
  border: 1px solid rgba(229, 233, 241, 0.95);
  box-shadow: var(--ns-shadow-sm);
  overflow: hidden;
}

.ai-article .ai-pros::before,
.ai-article .ai-cons::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
}

.ai-article .ai-pros::before {
  background: linear-gradient(180deg, #21b66f 0%, #14935a 100%);
}

.ai-article .ai-cons::before {
  background: linear-gradient(180deg, #ff6a78 0%, #e60012 100%);
}

.ai-article .ai-pros-title,
.ai-article .ai-cons-title {
  margin: 0 0 .85rem;
  font-size: .98rem;
  font-weight: 800;
  letter-spacing: -.01em;
}

.ai-article .ai-pros-title {
  color: #14865c;
}

.ai-article .ai-cons-title {
  color: var(--ns-red-dark);
}

.ai-article .ai-pros ul,
.ai-article .ai-cons ul {
  padding-left: 1.1rem;
}

/* =========================
   FAQ
   ========================= */

.ai-article .ai-faq {
  margin: 1.55rem 0 .4rem;
}

.ai-article .ai-faq-item {
  margin-bottom: .9rem;
  padding: 1rem 1.05rem;
  border: 1px solid rgba(229, 233, 241, 0.95);
  border-radius: calc(var(--ns-radius-lg) - 6px);
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
  box-shadow: var(--ns-shadow-sm);
}

.ai-article .ai-faq-question {
  margin: 0 0 .6rem;
  padding: 0;
  font-size: 1.02rem;
  line-height: 1.35;
  color: var(--ns-text);
}

.ai-article .ai-faq-question::before {
  display: none;
}

.ai-article .ai-faq-answer p:last-child {
  margin-bottom: 0;
}

/* =========================
   FINAL SUMMARY
   ========================= */

.ai-article .ai-summary {
  position: relative;
  overflow: hidden;
  margin: 1.8rem 0 0;
  padding: 1.15rem 1.15rem 1rem;
  border-radius: calc(var(--ns-radius-lg) - 4px);
  background:
    radial-gradient(circle at top right, rgba(0, 195, 227, 0.16), transparent 32%),
    linear-gradient(135deg, rgba(230, 0, 18, 0.07), rgba(255,255,255,0.98) 62%);
  border: 1px solid rgba(230, 0, 18, 0.12);
  box-shadow: var(--ns-shadow);
}

.ai-article .ai-summary::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--ns-grad-red);
}

.ai-article .ai-summary h2,
.ai-article .ai-summary h3 {
  margin-top: 0;
}

.ai-article .ai-summary h2::before,
.ai-article .ai-summary h3::before {
  display: none;
}

/* =========================
   SPACING INSIDE ARTICLE CARD
   ========================= */

.shortstory .ai-article,
.story .ai-article,
.post .ai-article,
.article .ai-article,
.entry .ai-article,
.item .ai-article,
.news-item .ai-article,
.news-card .ai-article,
.content-box .ai-article,
.post-card .ai-article {
  padding: 0;
}

.shortstory .fullcontent,
.story .fullcontent,
.post .fullcontent,
.article .fullcontent,
.entry .fullcontent,
.item .fullcontent,
.news-item .fullcontent,
.news-card .fullcontent,
.content-box .fullcontent,
.post-card .fullcontent {
  padding-top: .2rem;
}

/* =========================
   MOBILE
   ========================= */

@media (max-width: 991.98px) {
  .ai-article {
    font-size: 16px;
    line-height: 1.76;
  }

  .ai-article .ai-toc ul {
    columns: 1;
  }

  .ai-article .ai-proscons {
    grid-template-columns: 1fr;
    gap: 14px;
  }
}

@media (max-width: 767.98px) {
  .ai-article h2 {
    margin-top: 1.8rem;
    padding-bottom: .72rem;
    font-size: 1.34rem;
  }

  .ai-article h3 {
    font-size: 1.08rem;
    padding-left: 13px;
  }

  .ai-article .ai-note,
  .ai-article .ai-toc,
  .ai-article .ai-summary,
  .ai-article .ai-faq-item,
  .ai-article .ai-pros,
  .ai-article .ai-cons {
    padding: .95rem .9rem .85rem;
    border-radius: var(--ns-radius-md);
  }

  .ai-article table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: var(--ns-radius-md);
  }

  .ai-article table thead th,
  .ai-article table tbody td {
    padding: .8rem .8rem;
    font-size: .94rem;
  }

  .ai-article blockquote {
    padding: .95rem .95rem .95rem 1.05rem;
    border-radius: 0 var(--ns-radius-md) var(--ns-radius-md) 0;
  }
}
/* =========================
   RULES PAGE SWITCH STYLE
   ========================= */

.rules-page {
  max-width: 900px;
  margin: 0 auto;
}

.rules-title {
  font-size: 34px;
  font-weight: 800;
  margin-bottom: 20px;
  color: var(--ns-text);
}

.rules-subtitle {
  font-size: 20px;
  font-weight: 800;
  margin: 26px 0 12px;
  color: var(--ns-text);
}

.rules-box {
  padding: 18px 20px;
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
  border: 1px solid var(--ns-line);
  margin-bottom: 12px;
  line-height: 1.7;
  font-size: 15px;
  color: var(--ns-text);
}

.rules-danger {
  border-color: rgba(230,0,18,0.2);
  background: linear-gradient(180deg, #fff7f7 0%, #fff 100%);
}

.rules-final {
  background: linear-gradient(180deg, #f8fbff 0%, #fff 100%);
  font-weight: 600;
}

.rules-list {
  padding-left: 18px;
  margin: 0;
}

.rules-list li {
  margin-bottom: 6px;
}

.rules-accept {
  text-align: center;
  margin-top: 20px;
}
.main-seo-text {
  padding: 16px 18px;
}

.main-seo-text h1 {
  font-size: 20px;
  line-height: 1.25;
  margin: 0 0 10px;
  font-weight: 700;
}

.main-seo-text p {
  margin: 0 0 8px;
  font-size: 15px;
  line-height: 1.6;
}

@media (max-width: 768px) {
  .main-seo-text {
    padding: 14px 16px;
  }

  .main-seo-text h1 {
    font-size: 22px;
  }

  .main-seo-text p {
    font-size: 14px;
    line-height: 1.55;
  }
}
/* =========================
   SHORTSTORY POSTER FIX
   ========================= */

.switch-card .col-sm-4.col-md-3.col-lg-3,
.switch-card .col-12.col-sm-4.col-md-3.col-lg-3 {
  flex: 0 0 180px;
  max-width: 180px;
}

.switch-card .switch-poster,
.switch-card .fs-poster,
.switch-card .xfieldimage {
  display: block;
  width: 100%;
  margin: 0;
}

.switch-card .fs-poster-image,
.switch-card .switch-poster img,
.switch-card .xfieldimage img,
.switch-card .xfieldimage {
  display: block;
  width: 100%;
  height: 128px;
  object-fit: cover;
  object-position: center;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 12px 28px rgba(21, 24, 33, 0.14);
  background: #eef3f9;
}

@media (max-width: 991.98px) {
  .switch-card .col-sm-4.col-md-3.col-lg-3,
  .switch-card .col-12.col-sm-4.col-md-3.col-lg-3 {
    flex: 0 0 170px;
    max-width: 170px;
  }

  .switch-card .fs-poster-image,
  .switch-card .switch-poster img,
  .switch-card .xfieldimage img,
  .switch-card .xfieldimage {
    height: 120px;
  }
}

@media (max-width: 767.98px) {
  .switch-card .col-sm-4.col-md-3.col-lg-3,
  .switch-card .col-12.col-sm-4.col-md-3.col-lg-3 {
    flex: 0 0 100%;
    max-width: 100%;
    margin-bottom: 14px;
  }

  .switch-card .fs-poster-image,
  .switch-card .switch-poster img,
  .switch-card .xfieldimage img,
  .switch-card .xfieldimage {
    height: 190px;
    border-radius: 16px;
  }
}
/* ===== META ARTICLE ===== */

.fs-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin-bottom: 18px;
  padding: 14px 16px;
  border: 1px solid var(--ns-line);
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  box-shadow: var(--ns-shadow-sm);
}

.fs-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--ns-muted);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
}

.fs-meta-item i {
  color: var(--ns-red);
}

.fs-meta-rating {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
}

.fs-meta .rate,
.fs-meta .rate_stars,
.fs-meta .rate_like,
.fs-meta .rate_like-dislike {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.fs-meta .rate_like,
.fs-meta .rate_like-dislike,
.fs-meta .rate_stars {
  padding: 7px 10px;
  border: 1px solid rgba(230, 0, 18, 0.12);
  border-radius: 999px;
  background: rgba(230, 0, 18, 0.04);
}

.rate-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  font-size: 22px;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
  user-select: none;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease, color .18s ease;
  border: 1px solid transparent;
}

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

.rate-btn--plus {
  background: rgba(22, 155, 69, 0.12);
  border-color: rgba(22, 155, 69, 0.22);
  color: #169b45;
  box-shadow: 0 8px 18px rgba(22, 155, 69, 0.12);
}

.rate-btn--plus:hover {
  background: rgba(22, 155, 69, 0.18);
  border-color: rgba(22, 155, 69, 0.30);
}

.rate-btn--minus {
  background: rgba(217, 48, 37, 0.12);
  border-color: rgba(217, 48, 37, 0.22);
  color: #d93025;
  box-shadow: 0 8px 18px rgba(217, 48, 37, 0.12);
}

.rate-btn--minus:hover {
  background: rgba(217, 48, 37, 0.18);
  border-color: rgba(217, 48, 37, 0.30);
}

.fs-meta .rate-value {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 64px;
  height: 38px;
  padding: 0 16px;
  border-radius: 999px;
  background: #fff;
  border: 2px solid rgba(230, 0, 18, 0.14);
  color: var(--ns-text);
  font-size: 15px;
  font-weight: 900;
  line-height: 1;
  text-align: center;
  box-shadow: 0 8px 18px rgba(16, 24, 40, 0.06);
}

.fs-meta .ratingtypeplusminus {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 38px;
  padding: 0 12px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid rgba(16, 24, 40, 0.08);
  font-size: 14px;
  font-weight: 900;
  line-height: 1;
}

.fs-meta .ratingplus {
  color: #169b45;
}

.fs-meta .ratingminus {
  color: #d93025;
}

.fs-meta .rate_stars img,
.fs-meta .rate_stars svg {
  display: inline-block;
  vertical-align: middle;
}

@media (max-width: 991.98px) {
  .fs-meta-rating {
    margin-left: 0;
    width: 100%;
  }
}

@media (max-width: 767.98px) {
  .fs-meta {
    padding: 12px 14px;
    gap: 9px 12px;
  }

  .fs-meta-item {
    font-size: 13px;
  }

  .fs-meta-rating {
    width: 100%;
  }

  .fs-meta .rate,
  .fs-meta .rate_like,
  .fs-meta .rate_like-dislike,
  .fs-meta .rate_stars {
    flex-wrap: wrap;
  }

  .rate-btn {
    width: 34px;
    height: 34px;
    font-size: 20px;
  }

  .fs-meta .rate-value {
    min-width: 58px;
    height: 34px;
    font-size: 14px;
    padding: 0 12px;
  }

  .fs-meta .ratingtypeplusminus {
    min-width: 38px;
    height: 34px;
    padding: 0 10px;
  }
}
/* ===== SIDEBAR TOP NEWS ===== */

.top-news-card {
  border: 1px solid var(--ns-line);
  border-radius: 24px;
  overflow: hidden;
  background:
    radial-gradient(circle at top right, rgba(230, 0, 18, 0.08), transparent 34%),
    linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  box-shadow: var(--ns-shadow);
}

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

.top-news-kicker {
  margin-bottom: 4px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ns-red);
}

.top-news-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--ns-grad-red);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  box-shadow: 0 10px 20px rgba(230, 0, 18, 0.18);
}

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

.top-news-item {
  position: relative;
}

.top-news-link {
  display: flex;
  gap: 12px;
  padding: 10px;
  border-radius: 18px;
  text-decoration: none !important;
  background: #fff;
  border: 1px solid rgba(16, 24, 40, 0.06);
  box-shadow: 0 10px 24px rgba(16, 24, 40, 0.04);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.top-news-link:hover {
  transform: translateY(-2px);
  border-color: rgba(230, 0, 18, 0.18);
  box-shadow: 0 16px 30px rgba(16, 24, 40, 0.08);
}

.top-news-thumb-wrap {
  position: relative;
  flex: 0 0 92px;
  width: 92px;
  height: 72px;
  border-radius: 16px;
  overflow: hidden;
  background: #eef3f8;
}

.top-news-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .25s ease;
}

.top-news-link:hover .top-news-thumb {
  transform: scale(1.04);
}

.top-news-body {
  min-width: 0;
  flex: 1 1 auto;
}

.top-news-title {
  margin-bottom: 8px;
  color: var(--ns-text);
  font-size: 14px;
  font-weight: 900;
  line-height: 1.35;
  letter-spacing: -0.01em;
}

.top-news-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
}

.top-news-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--ns-muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
}

.top-news-meta-item i {
  color: var(--ns-red);
}

/* ===== SIDEBAR TOP NEWS — PRO LOOK ===== */

.top-news-card {
  position: relative;
  border: 1px solid rgba(16, 24, 40, 0.06);
  border-radius: 28px;
  overflow: hidden;
  background:
    radial-gradient(circle at top right, rgba(230, 0, 18, 0.08), transparent 34%),
    linear-gradient(180deg, #ffffff 0%, #f6f8fc 100%);
  box-shadow: 0 18px 40px rgba(16, 24, 40, 0.06);
}

.top-news-card .card-body {
  padding: 18px 16px 16px;
}

.top-news-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.top-news-kicker {
  margin-bottom: 6px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #7d8797;
}

.top-news-card .card-title {
  position: relative;
  margin: 0;
  padding-left: 14px;
  color: var(--ns-text);
  font-size: 28px;
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.top-news-card .card-title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  width: 6px;
  height: 30px;
  border-radius: 999px;
  background: var(--ns-grad-red);
  box-shadow: 0 6px 14px rgba(230, 0, 18, 0.24);
}

.top-news-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 52px;
  height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  background: #111827;
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
  line-height: 1;
  box-shadow: 0 10px 20px rgba(17, 24, 39, 0.16);
  flex-shrink: 0;
}

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

.top-news-item {
  position: relative;
  padding: 2px;
}

.top-news-link {
  position: relative;
  display: flex;
  gap: 12px;
  padding: 11px;
  border-radius: 22px;
  text-decoration: none !important;
  background: linear-gradient(180deg, #ffffff 0%, #fcfdff 100%);
  border: 1px solid rgba(16, 24, 40, 0.06);
  box-shadow: 0 12px 24px rgba(16, 24, 40, 0.04);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.top-news-link:hover {
  transform: translateY(-2px);
  border-color: rgba(230, 0, 18, 0.16);
  box-shadow: 0 18px 32px rgba(16, 24, 40, 0.08);
}

.top-news-thumb-wrap {
  position: relative;
  flex: 0 0 96px;
  width: 96px;
  height: 78px;
  border-radius: 18px;
  overflow: hidden;
  background: #eef2f7;
  box-shadow: inset 0 0 0 1px rgba(16, 24, 40, 0.05);
}

.top-news-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .25s ease;
}

.top-news-link:hover .top-news-thumb {
  transform: scale(1.045);
}

.top-news-body {
  min-width: 0;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.top-news-title {
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 10px;
  color: var(--ns-text);
  font-size: 15px;
  font-weight: 900;
  line-height: 1.28;
  letter-spacing: -0.02em;
}

.top-news-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 12px;
}

.top-news-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #7a8596;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
}

.top-news-meta-item i {
  color: var(--ns-red);
  font-size: 12px;
}

/* ===== красивый rank по порядку ===== */

.top-news-item:nth-child(1) .top-news-link::before,
.top-news-item:nth-child(2) .top-news-link::before,
.top-news-item:nth-child(3) .top-news-link::before {
  position: absolute;
  top: 10px;
  left: 10px;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
  z-index: 2;
  backdrop-filter: blur(8px);
}

.top-news-item:nth-child(1) .top-news-link::before {
  content: "1";
  background: linear-gradient(135deg, #ffd76a 0%, #ffb800 100%);
  color: #4a3200;
  box-shadow: 0 10px 20px rgba(255, 184, 0, 0.22);
}

.top-news-item:nth-child(2) .top-news-link::before {
  content: "2";
  background: linear-gradient(135deg, #edf1f7 0%, #cfd7e6 100%);
  color: #334155;
  box-shadow: 0 10px 20px rgba(148, 163, 184, 0.18);
}

.top-news-item:nth-child(3) .top-news-link::before {
  content: "3";
  background: linear-gradient(135deg, #f6c7a6 0%, #d98c56 100%);
  color: #4c2509;
  box-shadow: 0 10px 20px rgba(217, 140, 86, 0.18);
}

/* если у тебя в tpl остался старый rank-бейдж */
.top-news-rank {
  display: none !important;
}

/* ===== адаптив ===== */

@media (max-width: 767.98px) {
  .top-news-card .card-title {
    font-size: 24px;
  }

  .top-news-thumb-wrap {
    flex-basis: 88px;
    width: 88px;
    height: 72px;
  }

  .top-news-title {
    font-size: 14px;
  }

  .top-news-meta {
    gap: 6px 10px;
  }

  .top-news-meta-item {
    font-size: 11px;
  }
}
/* =========================================================
   SIDEBAR TELEGRAM MINI
   не трогаем внешние отступы card/card-body шаблона
   ========================================================= */

.sidebar-telegram-mini-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.sidebar-telegram-mini-dot {
  width: 10px;
  height: 10px;
  flex: 0 0 10px;
  border-radius: 50%;
  background: var(--ns-grad-cyan);
  box-shadow: 0 0 0 4px rgba(0, 195, 227, 0.10);
}

.sidebar-telegram-mini-label {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--ns-text-2);
  line-height: 1.2;
}

.sidebar-telegram-mini-text {
  margin-bottom: 12px;
  color: var(--ns-text);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.45;
}

.sidebar-telegram-mini-btn {
  display: inline-flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #2bdcf8 0%, #00c3e3 60%, #00a3be 100%);
  color: #fff !important;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none !important;
  box-shadow: 0 12px 24px rgba(0, 195, 227, 0.22);
  transition: transform .22s ease, box-shadow .22s ease;
}

.sidebar-telegram-mini-btn:hover,
.sidebar-telegram-mini-btn:focus {
  color: #fff !important;
  text-decoration: none !important;
  transform: translateY(-2px);
  box-shadow: 0 16px 30px rgba(0, 195, 227, 0.30);
}

.sidebar-telegram-mini-btn i {
  font-size: 15px;
  line-height: 1;
}

@media (max-width: 767.98px) {
  .sidebar-telegram-mini-text,
  .sidebar-telegram-mini-btn {
    font-size: 13px;
  }
}
/* =========================================================
   USER PROFILE — NINTENDO STYLE
   вставить В САМЫЙ КОНЕЦ custom.css
   ========================================================= */

.db-user-profile .card,
.db-user-profile.card,
.db-user-profile .table {
  box-shadow: none;
}

/* общий контейнер профиля */
.db-user-profile {
  position: relative;
}

/* hero */
.db-user-profile .db-user-hero.card,
.db-user-profile .card:first-child {
  border: 1px solid rgba(229, 233, 241, 0.92);
  border-radius: var(--ns-radius-xl);
  background:
    radial-gradient(circle at top left, rgba(230, 0, 18, 0.08), transparent 24%),
    radial-gradient(circle at top right, rgba(0, 195, 227, 0.11), transparent 26%),
    linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
  box-shadow: var(--ns-shadow);
  overflow: hidden;
}

.db-user-profile .db-user-hero .card-body,
.db-user-profile > .col-md-12:first-child > .card > .card-body {
  padding: 1.55rem;
}

/* верхний блок */
.db-user-profile .db-user-hero-inner,
.db-user-profile > .col-md-12:first-child .row {
  align-items: center;
}

/* колонка аватара */
.db-user-profile .db-user-avatar-col,
.db-user-profile > .col-md-12:first-child .col-md-2 {
  flex: 0 0 170px;
  max-width: 170px;
}

/* ссылка аватара */
.db-user-profile .db-user-avatar-link,
.db-user-profile > .col-md-12:first-child .col-md-2 > a {
  display: block;
  position: relative;
}

/* статус */
.db-user-profile .db-user-badge,
.db-user-profile > .col-md-12:first-child [role="status"] {
  position: absolute !important;
  top: 12px;
  left: 12px;
  margin: 0 !important;
  z-index: 3;
}

.db-user-profile .db-user-badge .badge,
.db-user-profile > .col-md-12:first-child [role="status"] .badge {
  min-height: 30px;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  box-shadow: 0 10px 24px rgba(21, 24, 33, 0.10);
}

.db-user-profile .badge-success {
  color: #fff;
  background: linear-gradient(135deg, #2bd987 0%, #1fb96e 100%);
}

.db-user-profile .badge-danger {
  color: #fff;
  background: linear-gradient(135deg, #ff6a78 0%, #e60012 100%);
}

/* аватар */
.db-user-profile .db-user-avatar,
.db-user-profile > .col-md-12:first-child img.rounded.w-100 {
  display: block;
  width: 150px !important;
  height: 150px !important;
  object-fit: cover;
  border-radius: 28px !important;
  border: 5px solid #fff;
  background: #eef3f9;
  box-shadow: 0 18px 36px rgba(21, 24, 33, 0.12);
}

/* правая часть */
.db-user-profile .db-user-main-col,
.db-user-profile > .col-md-12:first-child .col-md-10 {
  position: relative;
  min-width: 0;
}

/* шестеренка */
.db-user-profile .db-user-settings,
.db-user-profile > .col-md-12:first-child .float-right {
  position: absolute;
  top: 2px;
  right: 0;
  margin: 0 !important;
  z-index: 2;
}

.db-user-profile .db-user-settings a,
.db-user-profile > .col-md-12:first-child .float-right a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--ns-line);
  color: var(--ns-text-2);
  box-shadow: var(--ns-shadow-sm);
}

.db-user-profile .db-user-settings a:hover,
.db-user-profile > .col-md-12:first-child .float-right a:hover {
  color: var(--ns-red);
}

/* логин */
.db-user-profile .db-user-title,
.db-user-profile > .col-md-12:first-child .card-title {
  margin: 0 54px 10px 0 !important;
  font-size: clamp(1.65rem, 2.5vw, 2.2rem);
  line-height: 1.08;
  font-weight: 800;
  color: var(--ns-text);
  letter-spacing: -0.03em;
}

.db-user-profile .db-user-title span,
.db-user-profile > .col-md-12:first-child .card-title .text-muted {
  color: var(--ns-text-2) !important;
  font-weight: 700;
}

/* имя */
.db-user-profile .db-user-name,
.db-user-profile > .col-md-12:first-child p.text-primary {
  margin-bottom: 12px !important;
  color: var(--ns-red) !important;
  font-size: 1.05rem;
  font-weight: 800;
}

/* о себе */
.db-user-profile .db-user-about,
.db-user-profile > .col-md-12:first-child .arrow_box {
  margin-top: 10px;
  padding: 14px 16px !important;
  border-radius: 18px;
  background: linear-gradient(180deg, #f9fbff 0%, #f3f8ff 100%);
  border: 1px solid var(--ns-line);
  color: var(--ns-text-2) !important;
  line-height: 1.7;
}

/* подпись */
.db-user-profile .db-user-signature,
.db-user-profile > .col-md-12:first-child .card-body.pt-1 {
  margin-top: 14px;
  padding-top: 14px !important;
  border-top: 1px solid var(--ns-line);
  background: transparent !important;
  color: var(--ns-text);
}

/* две сетки кнопок */
.db-user-profile .db-user-actions-grid,
.db-user-profile .db-user-stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 18px;
}

.db-user-profile > .col-md-12:nth-child(2) .row,
.db-user-profile > .col-md-12:nth-child(3) .row {
  align-items: stretch;
}

.db-user-profile > .col-md-12:nth-child(2) .card,
.db-user-profile > .col-md-12:nth-child(3) .card {
  border-radius: var(--ns-radius-lg);
  border: 1px solid rgba(229, 233, 241, 0.92);
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
  box-shadow: var(--ns-shadow);
}

.db-user-profile > .col-md-12:nth-child(2) .card-body,
.db-user-profile > .col-md-12:nth-child(3) .card-body {
  padding: 14px;
}

/* кнопки действий и статистики */
.db-user-profile .db-user-action-btn,
.db-user-profile .db-user-stat-btn,
.db-user-profile .list-group-item.list-group-item-action,
.db-user-profile [not-group] a,
.db-user-profile [group] a {
  display: flex;
  align-items: center;
  min-height: 58px;
  padding: 0 18px !important;
  border-radius: 999px !important;
  border: 1px solid var(--ns-line) !important;
  background: #fff !important;
  color: var(--ns-text) !important;
  font-weight: 700;
  box-shadow: var(--ns-shadow-sm);
  transition: all .22s ease;
}

.db-user-profile .db-user-action-btn:hover,
.db-user-profile .db-user-stat-btn:hover,
.db-user-profile .list-group-item.list-group-item-action:hover {
  color: var(--ns-red) !important;
  border-color: rgba(230, 0, 18, 0.16) !important;
  background: #fff !important;
  box-shadow: var(--ns-shadow);
  transform: translateY(-1px);
}

/* левая action кнопка — можно сделать красной */
.db-user-profile > .col-md-12:nth-child(2) .col-md-6:first-child .list-group-item.list-group-item-action,
.db-user-profile > .col-md-12:nth-child(2) .col-md-6:first-child .pm_btn,
.db-user-profile > .col-md-12:nth-child(2) .col-md-6:first-child a[class*="pm"] {
  color: #fff !important;
  background: var(--ns-grad-red) !important;
  border-color: transparent !important;
  box-shadow: 0 12px 24px rgba(230, 0, 18, 0.20);
}

.db-user-profile > .col-md-12:nth-child(2) .col-md-6:first-child .list-group-item.list-group-item-action:hover,
.db-user-profile > .col-md-12:nth-child(2) .col-md-6:first-child .pm_btn:hover,
.db-user-profile > .col-md-12:nth-child(2) .col-md-6:first-child a[class*="pm"]:hover {
  color: #fff !important;
  background: linear-gradient(135deg, #ff5a6a 0%, #e60012 65%, #a4000c 100%) !important;
}

/* карточка таблицы */
.db-user-profile .db-user-table-card,
.db-user-profile > .col-md-12:nth-child(4) > .card {
  margin-top: 18px;
  border-radius: var(--ns-radius-xl);
  border: 1px solid rgba(229, 233, 241, 0.92);
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
  box-shadow: var(--ns-shadow);
  overflow: hidden;
}

.db-user-profile .db-user-table,
.db-user-profile > .col-md-12:nth-child(4) .table {
  margin: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  border-radius: 0 !important;
}

.db-user-profile .db-user-table td,
.db-user-profile > .col-md-12:nth-child(4) .table td {
  padding: 18px 24px !important;
  vertical-align: middle;
  border-top: 1px solid var(--ns-line) !important;
  color: var(--ns-text) !important;
  font-weight: 600;
  background: transparent !important;
}

.db-user-profile .db-user-table tr:first-child td,
.db-user-profile > .col-md-12:nth-child(4) .table tr:first-child td {
  border-top: 0 !important;
}

.db-user-profile .db-user-table td:first-child,
.db-user-profile > .col-md-12:nth-child(4) .table td:first-child {
  width: 34%;
  color: var(--ns-text-2) !important;
  font-weight: 700;
}

.db-user-profile .db-user-role,
.db-user-profile > .col-md-12:nth-child(4) .table td span[style*="color:#FC6E51"] {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(230, 0, 18, 0.10);
  border: 1px solid rgba(230, 0, 18, 0.14);
  color: var(--ns-red) !important;
  font-weight: 800;
}

/* модалки */
.db-user-profile .modal-content {
  border: 1px solid var(--ns-line);
  border-radius: 24px;
  box-shadow: 0 24px 50px rgba(21, 24, 33, 0.16);
  overflow: hidden;
}

.db-user-profile .modal-header {
  border-bottom: 1px solid var(--ns-line);
  background: linear-gradient(180deg, #ffffff 0%, #f9fbff 100%);
}

.db-user-profile .modal-footer {
  border-top: 1px solid var(--ns-line);
  background: #fbfdff;
}

.db-user-profile .modal-title {
  color: var(--ns-text);
  font-weight: 800;
}

/* мобильная адаптация */
@media (max-width: 991.98px) {
  .db-user-profile > .col-md-12:first-child .col-md-2,
  .db-user-profile .db-user-avatar-col {
    flex: 0 0 140px;
    max-width: 140px;
  }

  .db-user-profile .db-user-actions-grid,
  .db-user-profile .db-user-stats-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767.98px) {
  .db-user-profile > .col-md-12:first-child .card-body {
    padding: 1rem;
  }

  .db-user-profile > .col-md-12:first-child .row {
    display: block;
  }

  .db-user-profile > .col-md-12:first-child .col-md-2,
  .db-user-profile > .col-md-12:first-child .col-md-10 {
    max-width: 100%;
  }

  .db-user-profile > .col-md-12:first-child .col-md-2 {
    margin-bottom: 16px;
  }

  .db-user-profile > .col-md-12:first-child img.rounded.w-100 {
    width: 118px !important;
    height: 118px !important;
    border-radius: 22px !important;
  }

  .db-user-profile > .col-md-12:first-child .float-right {
    top: 0;
    right: 0;
  }

  .db-user-profile > .col-md-12:first-child .card-title {
    margin-right: 46px !important;
    font-size: 1.45rem;
  }

  .db-user-profile > .col-md-12:nth-child(2) .col-md-6,
  .db-user-profile > .col-md-12:nth-child(3) .col-md-6 {
    margin-bottom: 12px;
  }

  .db-user-profile > .col-md-12:nth-child(4) .table td {
    padding: 14px 16px !important;
  }

  .db-user-profile > .col-md-12:nth-child(4) .table td:first-child {
    width: 42%;
  }
}
/* =========================================
   MODAL FIX
   ========================================= */

.modal {
  z-index: 99999 !important;
}

.modal-backdrop {
  z-index: 99990 !important;
}

.modal-dialog {
  pointer-events: none;
}

.modal-content {
  pointer-events: auto;
  position: relative;
  z-index: 100000 !important;
}

/* если какой-то родитель создает кривой слой */
.db-user-profile,
.db-user-profile * {
  transform-style: flat;
}

.db-user-profile .modal,
.db-user-profile .modal-dialog,
.db-user-profile .modal-content {
  transform: none !important;
}

/* на всякий случай для кликов */
.modal.show {
  display: block;
}

.modal.show .modal-dialog {
  pointer-events: none;
}

.modal.show .modal-content,
.modal.show input,
.modal.show textarea,
.modal.show select,
.modal.show button,
.modal.show label,
.modal.show a {
  pointer-events: auto;
}
/* =========================================
   AI ARTICLE TOP UX PATCH
   вставить В САМЫЙ КОНЕЦ custom.css
   ========================================= */

.ai-article{
  --ai-accent: var(--ns-red, var(--tf-danger-dark, #e60012));
  --ai-accent-2: var(--ns-cyan, var(--tf-blue, #2563eb));
  --ai-text-main: var(--ns-text, var(--tf-text, #151821));
  --ai-text-muted: var(--ns-text-2, var(--tf-text-2, #657080));
  --ai-line: var(--ns-line, var(--tf-line, #e5e9f1));
  --ai-line-2: var(--ns-line-2, var(--tf-line-2, #d9e0eb));
  --ai-card: var(--ns-card, var(--tf-card, #ffffff));
  --ai-card-soft: var(--ns-card-soft, var(--tf-card-2, #fbfcff));
  --ai-shadow-sm: var(--ns-shadow-sm, var(--tf-shadow-xs, 0 8px 20px rgba(21,24,33,.05)));
  --ai-shadow: var(--ns-shadow, var(--tf-shadow-sm, 0 14px 35px rgba(21,24,33,.08)));
  --ai-radius: 22px;
}

/* -------------------------
   NOTE / "ЕСЛИ КРАТКО"
   ------------------------- */

.ai-article .ai-note{
  position: relative;
  margin: 0 0 18px;
  padding: 18px 18px 14px;
  border-radius: var(--ai-radius) !important;
  border: 1px solid color-mix(in srgb, var(--ai-accent-2) 14%, white) !important;
  background:
    radial-gradient(circle at top right, color-mix(in srgb, var(--ai-accent) 7%, transparent), transparent 34%),
    linear-gradient(180deg, var(--ai-card) 0%, var(--ai-card-soft) 100%) !important;
  box-shadow: var(--ai-shadow-sm) !important;
  overflow: hidden;
}

.ai-article .ai-note::before{
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--ai-accent-2) 0%, var(--ai-accent) 100%);
}

.ai-article .ai-note-title{
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 14px;
  margin: 0 0 10px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--ai-accent-2) 12%, white);
  background: #fff !important;
  color: var(--ai-accent-2) !important;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
  box-shadow: var(--ai-shadow-sm);
}

.ai-article .ai-note p{
  margin: 0;
  color: var(--ai-text-main) !important;
  line-height: 1.72;
}

.ai-article .ai-note.ai-note-collapsed .ai-note-body{
  position: relative;
  max-height: 4.95em;
  overflow: hidden;
}

.ai-article .ai-note.ai-note-collapsed .ai-note-body::after{
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 46px;
  background: linear-gradient(180deg, rgba(255,255,255,0) 0%, rgba(255,255,255,.96) 72%);
  pointer-events: none;
}

.ai-article .ai-note-toggle{
  margin-top: 12px;
}

.ai-article .ai-note-toggle-btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--ai-accent) 16%, white);
  background: #fff !important;
  color: var(--ai-text-main) !important;
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  box-shadow: var(--ai-shadow-sm);
  transition: .18s ease;
}

.ai-article .ai-note-toggle-btn:hover{
  color: #fff !important;
  background: linear-gradient(135deg, var(--ai-accent-2) 0%, var(--ai-accent) 100%) !important;
  border-color: transparent !important;
  transform: translateY(-1px);
}


/* -------------------------
   FAQ — чуть сильнее по клику
   ------------------------- */

.ai-article .ai-faq-item{
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.ai-article .ai-faq-item:hover{
  border-color: color-mix(in srgb, var(--ai-accent) 14%, white) !important;
  box-shadow: 0 14px 26px rgba(16,24,40,.06);
}

.ai-article .ai-faq-question{
  position: relative;
  padding-right: 34px !important;
  cursor: pointer;
}

.ai-article .ai-faq-question::after{
  content: "+";
  position: absolute;
  right: 0;
  top: 0;
  color: var(--ai-accent) !important;
  font-size: 24px;
  font-weight: 900;
  line-height: 1;
}

.ai-article .ai-faq-item.faq-open .ai-faq-question::after{
  content: "−";
}

.ai-article .ai-faq-item.faq-collapsed .ai-faq-answer{
  display: none;
}

/* -------------------------
   RESPONSIVE
   ------------------------- */

@media (max-width: 1199.98px){
  .ai-article .ai-toc ul{
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 767.98px){
  .ai-article .ai-note,
  .ai-article .ai-toc{
    padding: 14px;
    border-radius: 18px !important;
  }

  .ai-article .ai-toc-title{
    font-size: 15px;
    margin-bottom: 12px;
  }

  .ai-article .ai-toc ul{
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }

  .ai-article .ai-toc a{
    min-height: 58px;
    padding: 12px 12px 12px 14px !important;
    border-radius: 16px !important;
    font-size: 13px;
  }

  .ai-article .ai-note.ai-note-collapsed .ai-note-body{
    max-height: 4.7em;
  }

  .ai-article .ai-note-toggle-btn{
    min-height: 36px;
    padding: 0 12px;
    font-size: 12px;
  }
}
.ai-article a[id] {
  display: block;
  position: relative;
  top: -90px;
  visibility: hidden;
}
/* =========================================================
   CLEAN SEARCH PAGE
   без hover-сдвигов, без анимации, без наездов
   ========================================================= */

/* корень */
.switch-search-page,
.switch-search-page *,
.switch-search-page *::before,
.switch-search-page *::after {
  box-sizing: border-box;
}

.switch-search-page {
  display: block;
  margin: 0;
  padding: 0;
  border: 1px solid rgba(229, 233, 241, 0.95);
  border-radius: 22px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
  box-shadow: 0 10px 24px rgba(21, 24, 33, 0.06);
  overflow: hidden;
  transform: none !important;
  transition: none !important;
  animation: none !important;
}

.switch-search-page:hover,
.switch-search-page:focus,
.switch-search-page:active {
  transform: none !important;
  transition: none !important;
  animation: none !important;
  box-shadow: 0 10px 24px rgba(21, 24, 33, 0.06);
}

/* внутренности */
.switch-search-page .box_in {
  margin: 0;
  padding: 0;
}

.switch-search-top {
  padding: 18px 20px 14px;
  border-bottom: 1px solid var(--ns-line);
  background:
    radial-gradient(circle at top right, rgba(0, 195, 227, 0.08), transparent 24%),
    radial-gradient(circle at top left, rgba(230, 0, 18, 0.06), transparent 20%),
    linear-gradient(180deg, #ffffff 0%, #f9fbff 100%);
}

.switch-search-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 26px;
  padding: 0 10px;
  margin: 0 0 8px;
  border-radius: 999px;
  background: rgba(230, 0, 18, 0.08);
  color: var(--ns-red);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  line-height: 1;
  white-space: nowrap;
}

.switch-search-title {
  margin: 0 0 6px;
  color: var(--ns-text);
  font-size: clamp(1.35rem, 2.2vw, 1.9rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.12;
}

.switch-search-subtitle {
  margin: 0;
  color: var(--ns-text-2);
  font-size: 13px;
  line-height: 1.55;
}

.switch-search-shell {
  padding: 16px 20px 18px;
}

/* карточка */
.switch-search-card {
  display: block;
  margin: 0;
  padding: 16px;
  border: 1px solid rgba(229, 233, 241, 0.95);
  border-radius: 18px;
  background: #fff;
  box-shadow: none;
  overflow: visible;
  transform: none !important;
  transition: none !important;
  animation: none !important;
}

.switch-search-card:hover,
.switch-search-card:focus,
.switch-search-card:active {
  transform: none !important;
  transition: none !important;
  animation: none !important;
  box-shadow: none !important;
}

.switch-search-head {
  margin: 0 0 12px;
}

.switch-search-head-title {
  margin: 0 0 4px;
  color: var(--ns-text);
  font-size: 17px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.switch-search-head-text {
  margin: 0;
  color: var(--ns-text-2);
  font-size: 12px;
  line-height: 1.45;
}

/* простой поиск */
.switch-search-simple-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: stretch;
}

/* расширенный */
.switch-search-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.switch-search-box {
  display: block;
  min-width: 0;
  margin: 0;
  padding: 14px;
  border: 1px solid var(--ns-line);
  border-radius: 16px;
  background: #f9fbff;
  overflow: hidden;
  transform: none !important;
  transition: none !important;
  animation: none !important;
}

.switch-search-box:hover,
.switch-search-box:focus,
.switch-search-box:active {
  transform: none !important;
  transition: none !important;
  animation: none !important;
  box-shadow: none !important;
}

.switch-search-box-title {
  margin: 0 0 10px;
  color: var(--ns-text);
  font-size: 15px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.switch-search-label {
  display: block;
  margin: 0 0 6px;
  color: var(--ns-text-2);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
  line-height: 1.3;
}

.switch-search-field,
.switch-search-inline,
.switch-search-area,
.switch-search-cats {
  display: block;
  margin: 0 0 10px;
  min-width: 0;
}

.switch-search-field:last-child,
.switch-search-inline:last-child,
.switch-search-area:last-child,
.switch-search-cats:last-child {
  margin-bottom: 0;
}

.switch-search-mini-group + .switch-search-mini-group {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(229, 233, 241, 0.9);
}

.switch-search-note {
  display: inline-block;
  margin-left: 6px;
  color: var(--ns-text-2);
  font-size: 12px;
  line-height: 1.4;
}

/* кнопки */
.switch-search-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

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

.switch-search-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 16px !important;
  margin: 0 !important;
  border-radius: 999px;
  border: 1px solid transparent !important;
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
  text-align: center;
  cursor: pointer;
  box-shadow: none !important;
  transform: none !important;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease !important;
  animation: none !important;
}

.switch-search-btn:hover,
.switch-search-btn:focus,
.switch-search-btn:active {
  transform: none !important;
  box-shadow: none !important;
  animation: none !important;
  outline: none;
}

.switch-search-btn-primary {
  color: #fff !important;
  background: var(--ns-grad-red) !important;
  border-color: transparent !important;
}

.switch-search-btn-primary:hover,
.switch-search-btn-primary:focus,
.switch-search-btn-primary:active {
  color: #fff !important;
  background: var(--ns-grad-red) !important;
  border-color: transparent !important;
}

.switch-search-btn-ghost {
  color: var(--ns-cyan-dark) !important;
  background: #fff !important;
  border: 1px solid rgba(0, 195, 227, 0.20) !important;
}

.switch-search-btn-ghost:hover,
.switch-search-btn-ghost:focus,
.switch-search-btn-ghost:active {
  color: #fff !important;
  background: var(--ns-grad-cyan) !important;
  border-color: transparent !important;
}

.switch-search-btn-light {
  color: var(--ns-text) !important;
  background: #fff !important;
  border: 1px solid rgba(229, 233, 241, 0.95) !important;
}

.switch-search-btn-light:hover,
.switch-search-btn-light:focus,
.switch-search-btn-light:active {
  color: var(--ns-red) !important;
  background: #fff !important;
  border-color: rgba(230, 0, 18, 0.14) !important;
}

/* результат */
.switch-search-result-info {
  margin: 14px 20px 18px;
  padding: 12px 14px;
  border: 1px solid rgba(230, 0, 18, 0.10);
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(230, 0, 18, 0.05), rgba(255,255,255,0.96) 60%);
  color: var(--ns-text);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.45;
  box-shadow: none;
}

/* поля */
.switch-search-page input[type="text"],
.switch-search-page input[type="search"],
.switch-search-page .textinput,
.switch-search-page .form-control,
.switch-search-page select,
.switch-search-page textarea {
  width: 100%;
  max-width: 100%;
  margin: 0;
  font-size: 13px;
  color: var(--ns-text);
  background: #fff;
  border: 1px solid var(--ns-line-2);
  box-shadow: none !important;
  transform: none !important;
  transition: border-color .2s ease, background-color .2s ease !important;
  animation: none !important;
}

.switch-search-page input[type="text"],
.switch-search-page input[type="search"],
.switch-search-page .textinput,
.switch-search-page .form-control,
.switch-search-page select {
  min-height: 42px;
  padding: 0 14px;
  border-radius: 14px;
  line-height: 1.2;
}

.switch-search-page textarea {
  min-height: 100px;
  padding: 10px 14px;
  border-radius: 14px;
  resize: vertical;
  line-height: 1.5;
}

.switch-search-page input[type="text"]:hover,
.switch-search-page input[type="search"]:hover,
.switch-search-page .textinput:hover,
.switch-search-page .form-control:hover,
.switch-search-page select:hover,
.switch-search-page textarea:hover,
.switch-search-page input[type="text"]:focus,
.switch-search-page input[type="search"]:focus,
.switch-search-page .textinput:focus,
.switch-search-page .form-control:focus,
.switch-search-page select:focus,
.switch-search-page textarea:focus {
  border-color: rgba(230, 0, 18, 0.34);
  box-shadow: none !important;
  outline: none;
  transform: none !important;
}

/* чекбоксы и радио */
.switch-search-page input[type="checkbox"],
.switch-search-page input[type="radio"] {
  width: 14px;
  height: 14px;
  min-height: 14px;
  margin: 0 6px 0 0;
  padding: 0;
  display: inline-block;
  vertical-align: middle;
  position: relative;
  top: -1px;
  box-shadow: none !important;
  transform: none !important;
  transition: none !important;
  animation: none !important;
}

.switch-search-page label {
  display: inline;
  vertical-align: middle;
  line-height: 1.45;
}

/* старый dle вывод */
.switch-search-page fieldset,
.switch-search-page legend {
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
}

.switch-search-page legend {
  display: none;
}

.switch-search-page table {
  width: 100% !important;
  margin: 0;
  border: 0;
  border-collapse: collapse;
}

.switch-search-page tr {
  border: 0;
}

.switch-search-page td.search {
  margin: 0;
  padding: 0;
  border: 0;
  vertical-align: top;
}

.switch-search-page .searchtable > table > tbody > tr > td.search > div,
.switch-search-page .searchtable > table > tbody > tr > td.search > div[align="center"] {
  margin: 0 !important;
  padding: 0 !important;
}

.switch-search-page .searchtable br {
  display: none;
}

.switch-search-page .switch-search-inline br,
.switch-search-page .switch-search-area br,
.switch-search-page .switch-search-cats br,
.switch-search-page #userfield br {
  display: block;
}

/* разнос селектов и полей */
.switch-search-page select + select,
.switch-search-page input + select,
.switch-search-page select + input,
.switch-search-page input + input,
.switch-search-page textarea + select,
.switch-search-page select + textarea {
  margin-top: 6px;
}

/* моб */
@media (max-width: 991.98px) {
  .switch-search-grid {
    grid-template-columns: 1fr;
  }

  .switch-search-simple-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767.98px) {
  .switch-search-top {
    padding: 16px 14px 12px;
  }

  .switch-search-shell {
    padding: 12px 14px 14px;
  }

  .switch-search-card {
    padding: 12px;
    border-radius: 16px;
  }

  .switch-search-box {
    padding: 12px;
    border-radius: 14px;
  }

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

  .switch-search-btn {
    width: 100%;
  }

  .switch-search-result-info {
    margin: 12px 14px 14px;
  }
}