/* =========================================================
   TECHFIX / TECHNOHELL — FULL CUSTOM CSS
   Полный кастомный файл под сайт:
   ошибки техники / диагностика / инструкции / ремонт
   + techno header с нормальным логотипом
   ========================================================= */

/* =========================================================
   1. TOKENS / PALETTE
   ========================================================= */

:root {
  --tf-bg: #f3f7fc;
  --tf-bg-2: #edf3fa;
  --tf-bg-3: #e4edf8;

  --tf-card: #ffffff;
  --tf-card-2: #f8fbff;
  --tf-card-dark: #101827;
  --tf-card-dark-2: #162033;
  --tf-card-dark-3: #0f172a;

  --tf-text: #0f172a;
  --tf-text-2: #526277;
  --tf-text-3: #70839a;

  --tf-line: #d9e4f0;
  --tf-line-2: #c8d6e7;
  --tf-line-3: #b6c9df;

  --tf-blue: #2563eb;
  --tf-blue-dark: #1d4ed8;
  --tf-blue-light: #93c5fd;
  --tf-cyan: #06b6d4;

  --tf-danger: #ef4444;
  --tf-danger-dark: #dc2626;
  --tf-danger-soft: #fff1f2;

  --tf-success: #16a34a;
  --tf-warning: #f59e0b;

  --tf-radius-xs: 10px;
  --tf-radius-sm: 14px;
  --tf-radius-md: 18px;
  --tf-radius-lg: 24px;
  --tf-radius-xl: 30px;

  --tf-shadow-xs: 0 6px 18px rgba(15, 23, 42, 0.05);
  --tf-shadow-sm: 0 12px 26px rgba(15, 23, 42, 0.07);
  --tf-shadow: 0 18px 42px rgba(15, 23, 42, 0.08);
  --tf-shadow-lg: 0 26px 60px rgba(15, 23, 42, 0.12);

  --tf-grad-accent: linear-gradient(135deg, #60a5fa 0%, #2563eb 58%, #1d4ed8 100%);
  --tf-grad-dark: linear-gradient(135deg, #162033 0%, #0f172a 100%);
  --tf-grad-dark-soft: linear-gradient(180deg, #172235 0%, #101827 100%);
  --tf-grad-danger: linear-gradient(135deg, #fb7185 0%, #ef4444 58%, #dc2626 100%);
  --tf-grad-body:
    radial-gradient(circle at top left, rgba(37,99,235,.06), transparent 24%),
    radial-gradient(circle at top right, rgba(239,68,68,.04), transparent 18%),
    linear-gradient(180deg, #f8fbff 0%, #eef4fa 100%);

  --tf-container: 1286px;

  --th-bg: #070b14;
  --th-bg-2: #0d1322;
  --th-bg-3: #121a2d;
  --th-card: rgba(255,255,255,.04);
  --th-card-2: rgba(255,255,255,.06);

  --th-text: #f4f7fb;
  --th-text-2: rgba(244,247,251,.72);
  --th-text-3: rgba(244,247,251,.48);

  --th-line: rgba(255,255,255,.08);
  --th-line-2: rgba(255,255,255,.12);

  --th-blue: #4da3ff;
  --th-blue-2: #2f7cf6;
  --th-blue-3: #78bbff;
  --th-cyan: #67e8f9;

  --th-red: #ff4d67;
  --th-red-2: #ff6a7f;

  --th-shadow: 0 14px 40px rgba(0,0,0,.26);
  --th-shadow-lg: 0 22px 60px rgba(0,0,0,.32);

  --th-radius-sm: 14px;
  --th-radius-md: 18px;
  --th-radius-lg: 22px;
  --th-radius-xl: 28px;

  --th-grad-main: linear-gradient(135deg, #59b2ff 0%, #2f7cf6 55%, #235be7 100%);
  --th-grad-dark: linear-gradient(180deg, rgba(12,18,32,.96) 0%, rgba(7,11,20,.98) 100%);
  --th-grad-red: linear-gradient(135deg, #ff7a8e 0%, #ff4d67 100%);
}

/* =========================================================
   2. GLOBAL RESET / BASE
   ========================================================= */

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Inter', 'Rubik', Arial, sans-serif !important;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.55;
  color: var(--tf-text) !important;
  text-align: left;
  background: var(--tf-grad-body) !important;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: var(--tf-container) !important;
}

p, li, span, small, div, label, td, th {
  color: inherit;
}

a {
  color: var(--tf-blue-dark) !important;
  text-decoration: none !important;
  background-color: transparent;
  transition: color .2s ease, transform .2s ease, box-shadow .2s ease, opacity .2s ease;
}

a:hover,
a:focus {
  color: var(--tf-blue) !important;
  text-decoration: none !important;
}

img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
  border-style: none;
}

::selection {
  background: var(--tf-blue);
  color: #fff;
}

.text-muted,
.text-secondary {
  color: var(--tf-text-2) !important;
}

.text-primary {
  color: var(--tf-blue-dark) !important;
}

.text-info {
  color: var(--tf-blue-dark) !important;
}

.text-danger {
  color: var(--tf-danger-dark) !important;
}

.text-success {
  color: var(--tf-success) !important;
}

.bg-white,
.bg-light {
  background: transparent !important;
}

/* =========================================================
   3. TYPOGRAPHY
   ========================================================= */

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
  margin-top: 0;
  margin-bottom: .6rem;
  color: var(--tf-text) !important;
  font-weight: 900 !important;
  line-height: 1.14 !important;
  letter-spacing: -0.03em !important;
}

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

h2, .h2 {
  font-size: clamp(1.6rem, 2.2vw, 2.2rem) !important;
}

h3, .h3 {
  font-size: clamp(1.2rem, 1.8vw, 1.55rem) !important;
}

p {
  margin-top: 0;
  margin-bottom: 1rem;
}

/* =========================================================
   4. GENERIC NAV FALLBACK
   ========================================================= */

.switch-nav,
.navbar,
body > .navbar,
body header.navbar,
body .site-header,
body .topbar,
body .main-header,
body > nav.navbar {
  background: rgba(15, 23, 42, 0.96) !important;
  border-bottom: 1px solid rgba(255,255,255,.08) !important;
  box-shadow: 0 16px 36px rgba(0,0,0,.14) !important;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.switch-nav {
  padding-top: 8px;
  padding-bottom: 8px;
}

.switch-nav .container {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  min-height: 76px;
}

.switch-toggler,
.navbar-toggler {
  border: 0 !important;
  border-radius: 14px !important;
  background: rgba(255,255,255,.08) !important;
  box-shadow: none !important;
  padding: 8px 12px !important;
}

.switch-toggler:focus,
.navbar-toggler:focus {
  outline: none !important;
  box-shadow: 0 0 0 .2rem rgba(37,99,235,.15) !important;
}

#navbarResponsive,
.navbar-collapse {
  align-items: center;
  min-width: 0;
}

.switch-menu {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  gap: 2px;
  min-width: 0;
  margin-left: auto;
  margin-right: auto;
}

.switch-menu .nav-item {
  margin: 0;
  flex: 0 1 auto;
  min-width: 0;
}

.navbar .nav-link,
.navbar-light .navbar-nav .nav-link,
.nav-link,
.switch-menu .nav-link {
  position: relative;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 40px;
  padding: 8px 10px !important;
  border-radius: 12px !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  line-height: 1.15 !important;
  letter-spacing: -.01em !important;
  color: rgba(255,255,255,.92) !important;
  white-space: nowrap;
  word-break: normal;
  text-align: center;
  transition: all .22s ease;
  background: transparent !important;
}

.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,
.switch-menu .nav-link:hover,
.switch-menu .nav-link:focus,
.switch-menu .nav-item.active .nav-link,
.switch-menu .nav-link.active {
  color: #fff !important;
  background: rgba(255,255,255,.08) !important;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.05) !important;
  transform: translateY(-1px);
}

.switch-search-wrap {
  display: flex;
  align-items: center;
  margin-left: 14px !important;
  flex: 0 0 auto;
}

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

.switch-search-input {
  width: 220px;
  min-width: 220px;
  height: 42px;
  min-height: 42px;
  border-radius: 16px !important;
  border: 1px solid rgba(255,255,255,.10) !important;
  background: rgba(255,255,255,.96) !important;
  color: var(--tf-text) !important;
  padding: 0 15px !important;
  box-shadow: none !important;
  max-height: none !important;
}

.switch-search-input::placeholder {
  color: #8da0b6 !important;
}

.switch-search-input:focus {
  border-color: rgba(37,99,235,.32) !important;
  background: #fff !important;
  box-shadow: 0 0 0 .2rem rgba(37,99,235,.10) !important;
}

.switch-search-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 42px;
  min-height: 42px;
  padding: 0 16px;
  border: 0 !important;
  border-radius: 16px !important;
  font-size: 14px;
  font-weight: 800;
  color: #fff !important;
  background: var(--tf-grad-accent) !important;
  box-shadow: 0 10px 22px rgba(37,99,235,.22) !important;
  white-space: nowrap;
}

.switch-search-btn:hover,
.switch-search-btn:focus {
  color: #fff !important;
  transform: translateY(-1px);
  box-shadow: 0 14px 26px rgba(37,99,235,.28) !important;
}

/* =========================================================
   5. TECHNO HEADER / MENU / SEARCH / LOGO
   ========================================================= */

.techno-nav.navbar,
.techno-nav.navbar-light,
.techno-nav.bg-light {
  background: var(--th-grad-dark) !important;
  border-bottom: 1px solid var(--th-line) !important;
  box-shadow: var(--th-shadow-lg) !important;
  padding-top: 10px;
  padding-bottom: 10px;
  position: relative;
  z-index: 120;
}

.techno-nav::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at left top, rgba(77,163,255,.16), transparent 22%),
    radial-gradient(circle at right top, rgba(103,232,249,.08), transparent 18%),
    linear-gradient(90deg, transparent, rgba(255,255,255,.02), transparent);
  pointer-events: none;
}

.techno-nav-container {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  min-height: 76px;
  max-width: 100%;
}

/* ----------------------------------------
   BRAND
   ---------------------------------------- */

.techno-brand {
  display: inline-flex !important;
  align-items: center !important;
  gap: 14px;
  text-decoration: none !important;
  padding: 0;
  margin-right: 16px;
  flex: 0 0 auto;
  position: relative;
}

/* ----------------------------------------
   LOGO — FIXED NORMAL ICON
   Было: лупа/палка/кружок/!
   Стало: чип + дорожки платы + индикатор
   ---------------------------------------- */

.techno-logo {
  position: relative;
  width: 52px;
  height: 52px;
  border-radius: 18px;
  flex: 0 0 52px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.02)),
    linear-gradient(180deg, #131c31 0%, #0a1020 100%);
  border: 1px solid rgba(255,255,255,.08);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.06),
    0 14px 28px rgba(0,0,0,.30);
  overflow: hidden;
}

.techno-logo::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 22% 20%, rgba(77,163,255,.18), transparent 28%),
    radial-gradient(circle at 80% 84%, rgba(255,77,103,.10), transparent 24%),
    linear-gradient(180deg, rgba(255,255,255,.04), transparent 40%);
  pointer-events: none;
}

/* центральный чип */
.techno-logo-core {
  position: absolute;
  left: 16px;
  top: 16px;
  width: 20px;
  height: 20px;
  border-radius: 6px;
  background: linear-gradient(180deg, #eef6ff 0%, #d6e8fb 100%);
  box-shadow:
    0 0 0 2px rgba(77,163,255,.14),
    0 8px 18px rgba(0,0,0,.18);
  z-index: 3;
}

.techno-logo-core::before,
.techno-logo-core::after {
  content: "";
  position: absolute;
  top: 4px;
  width: 6px;
  height: 12px;
  background:
    repeating-linear-gradient(
      to bottom,
      rgba(96,165,250,.95) 0 2px,
      transparent 2px 4px
    );
  opacity: .95;
}

.techno-logo-core::before {
  left: -8px;
}

.techno-logo-core::after {
  right: -8px;
}

/* рамка и дорожки */
.techno-logo-ring {
  position: absolute;
  inset: 9px;
  border-radius: 12px;
  border: 1.5px solid rgba(77,163,255,.18);
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,.02),
    0 0 0 1px rgba(77,163,255,.04);
  z-index: 1;
}

.techno-logo-ring::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 18px;
  width: 10px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(96,165,250,.95), rgba(147,197,253,.9));
  box-shadow: 0 0 10px rgba(77,163,255,.22);
}

.techno-logo-ring::after {
  content: "";
  position: absolute;
  right: 7px;
  top: 7px;
  width: 12px;
  height: 12px;
  border-top: 2px solid rgba(96,165,250,.92);
  border-right: 2px solid rgba(96,165,250,.92);
  border-radius: 0 8px 0 0;
  box-shadow: 0 0 10px rgba(77,163,255,.16);
}

/* индикатор */
.techno-logo-alert {
  position: absolute;
  right: 5px;
  top: 5px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff7d91 0%, #ff4d67 100%);
  box-shadow:
    0 0 0 4px rgba(255,77,103,.10),
    0 8px 16px rgba(255,77,103,.24);
  z-index: 4;
}

.techno-logo-alert::before {
  content: none;
}

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

.techno-brand-main {
  font-family: 'Rubik', Arial, sans-serif;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -.05em;
  color: #ffffff !important;
  text-transform: none;
}

.techno-brand-sub {
  margin-top: 4px;
  font-family: 'Rubik', Arial, sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: #89c4ff !important;
}

/* ----------------------------------------
   TOGGLER
   ---------------------------------------- */

.techno-toggler {
  border: 1px solid rgba(255,255,255,.10) !important;
  background: rgba(255,255,255,.04) !important;
  border-radius: 14px !important;
  padding: 10px 11px !important;
  box-shadow: none !important;
}

.techno-toggler:focus,
.techno-toggler:hover {
  outline: none !important;
  box-shadow: 0 0 0 0.18rem rgba(77,163,255,.16) !important;
  border-color: rgba(77,163,255,.30) !important;
}

.techno-toggler-box {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.techno-toggler-box span {
  display: block;
  width: 21px;
  height: 2px;
  border-radius: 999px;
  background: #fff;
}

/* ----------------------------------------
   MENU
   ---------------------------------------- */

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

.techno-menu .nav-item {
  margin: 0 2px;
}

.techno-menu .nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 10px 14px !important;
  border-radius: 14px;
  font-family: 'Rubik', Arial, sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: var(--th-text-2) !important;
  transition: .22s ease;
  white-space: nowrap;
}

.techno-menu .nav-link:hover,
.techno-menu .nav-link:focus {
  color: #ffffff !important;
  background: rgba(255,255,255,.05);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.05);
  text-decoration: none !important;
}

.techno-menu .nav-link::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 7px;
  height: 2px;
  border-radius: 999px;
  background: var(--th-grad-main);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform .22s ease;
}

.techno-menu .nav-link:hover::after,
.techno-menu .nav-link:focus::after {
  transform: scaleX(1);
}

/* ----------------------------------------
   SEARCH
   ---------------------------------------- */

.techno-search-wrap {
  width: 100%;
  max-width: 290px;
  flex: 0 1 290px;
  min-width: 220px;
}

.techno-search-form {
  width: 100%;
  margin: 0;
}

.techno-search-field {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 52px;
  padding: 6px;
  border-radius: 18px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
  transition: .22s ease;
}

.techno-search-field:focus-within {
  background: rgba(255,255,255,.07);
  border-color: rgba(77,163,255,.34);
  box-shadow:
    0 0 0 4px rgba(77,163,255,.10),
    inset 0 1px 0 rgba(255,255,255,.04);
}

.techno-search-icon {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  color: #fff;
  background: rgba(255,255,255,.05);
}

.techno-search-icon i,
.techno-search-icon svg {
  font-size: 15px;
  color: #fff !important;
}

.techno-search-input.form-control,
.techno-search-input {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 40px;
  height: 40px;
  border: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
  color: #fff !important;
  padding: 0 6px 0 0 !important;
  font-family: 'Inter', Arial, sans-serif;
  font-size: 14px;
}

.techno-search-input::placeholder {
  color: rgba(244,247,251,.52) !important;
}

.techno-search-input:focus {
  background: transparent !important;
  color: #fff !important;
  box-shadow: none !important;
}

.techno-search-btn.btn,
.techno-search-btn {
  flex: 0 0 auto;
  min-height: 40px;
  height: 40px;
  padding: 0 16px !important;
  border: 0 !important;
  border-radius: 14px !important;
  font-family: 'Rubik', Arial, sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: #fff !important;
  background: var(--th-grad-main) !important;
  box-shadow: 0 10px 22px rgba(47,124,246,.24);
}

.techno-search-btn:hover,
.techno-search-btn:focus {
  color: #fff !important;
  transform: translateY(-1px);
  box-shadow: 0 16px 28px rgba(47,124,246,.30);
}

.techno-brand:hover .techno-logo {
  transform: translateY(-1px);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.06),
    0 18px 34px rgba(0,0,0,.32);
}

/* ----------------------------------------
   DESKTOP ALIGN / OVERFLOW FIX
   ---------------------------------------- */

.techno-nav .navbar-collapse {
  min-width: 0;
}

.techno-menu {
  flex-wrap: nowrap;
  min-width: 0;
}

.techno-menu .nav-item {
  flex: 0 0 auto;
}

.techno-menu .nav-link {
  font-size: 13px;
  padding: 10px 10px !important;
}

@media (min-width: 992px) {
  .techno-nav .navbar-collapse {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
  }

  .techno-menu.mx-lg-auto {
    margin-left: 20px !important;
    margin-right: 20px !important;
  }

  .techno-search-wrap {
    margin-left: 0 !important;
  }
}

@media (min-width: 1200px) {
  .techno-menu .nav-link {
    font-size: 14px;
    padding: 10px 12px !important;
  }

  .techno-search-wrap {
    max-width: 320px;
    flex-basis: 320px;
  }
}

@media (min-width: 992px) and (max-width: 1399.98px) {
  .techno-brand {
    margin-right: 10px;
  }

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

  .techno-menu .nav-link {
    font-size: 12.5px;
    padding: 10px 8px !important;
  }

  .techno-search-wrap {
    max-width: 250px;
    flex-basis: 250px;
    min-width: 200px;
  }

  .techno-search-btn.btn,
  .techno-search-btn {
    padding: 0 14px !important;
    font-size: 13px;
  }
}

/* =========================================================
   6. MAIN INTRO / HERO / CATEGORY HEADER
   ========================================================= */

.main-seo-text {
  position: relative;
  padding: 24px 24px;
  border-radius: 28px;
  border: 1px solid var(--tf-line);
  background:
    radial-gradient(circle at top right, rgba(239,68,68,.06), transparent 24%),
    radial-gradient(circle at left, rgba(37,99,235,.07), transparent 28%),
    linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  box-shadow: var(--tf-shadow);
  overflow: hidden;
}

.main-seo-text::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 6px;
  border-radius: 999px;
  background: var(--tf-grad-danger);
}

.main-seo-text h1 {
  margin: 0 0 12px;
  font-size: clamp(2rem, 3vw, 3.2rem);
  line-height: 1.08;
  font-weight: 900;
  letter-spacing: -0.04em;
  color: var(--tf-text) !important;
}

.main-seo-text p {
  margin: 0;
  font-size: 15px;
  line-height: 1.7;
  color: var(--tf-text-2) !important;
}

.card-link[data-toggle="collapse"] .card-body {
  background:
    radial-gradient(circle at top right, rgba(37,99,235,.05), transparent 26%),
    linear-gradient(180deg, #ffffff 0%, #f8fbff 100%) !important;
  border: 1px solid var(--tf-line) !important;
  color: var(--tf-text) !important;
  box-shadow: var(--tf-shadow-sm) !important;
  border-radius: 24px !important;
}

/* =========================================================
   7. CARDS / POSTS / LISTING
   ========================================================= */

.card,
.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%, #f9fbff 100%) !important;
  border: 1px solid var(--tf-line) !important;
  border-radius: 26px !important;
  box-shadow: var(--tf-shadow) !important;
  overflow: hidden;
  transition: transform .24s ease, box-shadow .24s ease, border-color .24s ease;
}

.card:hover,
.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(--tf-shadow-lg) !important;
  border-color: #bfd0e4 !important;
}

.card-body {
  padding: 1.25rem 1.25rem;
  background: transparent !important;
}

.card-title {
  color: var(--tf-text) !important;
  font-weight: 900 !important;
}

.shortstory .title,
.story .title,
.post .title,
.article .title,
.entry .title,
.item .title,
.shortstory h2,
.story h2,
.post h2,
.article h2,
.entry h2,
.item h2,
.shortstory h3,
.story h3,
.post h3,
.article h3,
.entry h3,
.item h3 {
  color: var(--tf-text) !important;
  margin-bottom: .75rem;
  font-weight: 900 !important;
  letter-spacing: -.03em;
}

.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,
.shortstory h3 a,
.story h3 a,
.post h3 a,
.article h3 a,
.entry h3 a,
.item h3 a {
  color: var(--tf-text) !important;
}

.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(--tf-blue-dark) !important;
}

.shortstory p,
.story p,
.post p,
.article p,
.entry p,
.item p,
.news-item p,
.news-card p,
.content-box p,
.post-card p {
  color: var(--tf-text-2) !important;
  line-height: 1.68;
}

.shortstory img,
.story img,
.post img,
.article img,
.entry img,
.item img,
.card img {
  border-radius: 18px;
}

/* =========================================================
   8. TEXT READABILITY
   ========================================================= */

.shortstory *,
.story *,
.post *,
.article *,
.entry *,
.item *,
.news-item *,
.news-card *,
.content-box *,
.post-card *,
.card-body *,
.fs-body *,
.fs-content *,
.ai-article * {
  color: inherit;
}

.shortstory,
.story,
.post,
.article,
.entry,
.item,
.news-item,
.news-card,
.content-box,
.post-card,
.fs-article,
.fs-body,
.fs-content,
.ai-article {
  color: var(--tf-text) !important;
}

.shortstory .text-muted,
.story .text-muted,
.post .text-muted,
.article .text-muted,
.entry .text-muted,
.item .text-muted,
.news-item .text-muted,
.news-card .text-muted,
.content-box .text-muted,
.post-card .text-muted,
.fs-body .text-muted,
.ai-article .text-muted {
  color: var(--tf-text-2) !important;
}

/* =========================================================
   9. ARTICLE META / BADGES
   ========================================================= */

.meta,
.post-meta,
.short-meta,
.entry-meta,
.fs-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 12px;
  align-items: center;
  color: var(--tf-text-2) !important;
  font-size: 14px;
}

.meta > *,
.post-meta > *,
.short-meta > *,
.entry-meta > *,
.fs-meta > *,
.fs-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  padding: 7px 12px;
  border-radius: 999px;
  background: #f3f8ff;
  border: 1px solid var(--tf-line);
  color: var(--tf-text-2) !important;
}

.meta a,
.post-meta a,
.short-meta a,
.entry-meta a,
.fs-meta a {
  color: var(--tf-blue-dark) !important;
  font-weight: 700 !important;
}

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

.badge-primary,
.label-primary,
.tag-primary {
  color: var(--tf-blue-dark) !important;
  background: rgba(37,99,235,.10) !important;
}

.badge-info,
.label-info,
.tag-info {
  color: var(--tf-blue-dark) !important;
  background: rgba(37,99,235,.10) !important;
}

.badge-success,
.label-success,
.tag-success {
  color: var(--tf-success) !important;
  background: rgba(22,163,74,.10) !important;
}

.badge-warning,
.label-warning,
.tag-warning {
  color: #9a6700 !important;
  background: rgba(245,158,11,.14) !important;
}

.badge-danger,
.label-danger,
.tag-danger,
.fs-category {
  color: var(--tf-danger-dark) !important;
  background: rgba(239,68,68,.10) !important;
}

/* =========================================================
   10. BUTTONS
   ========================================================= */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  min-height: 44px;
  padding: .68rem 1.05rem;
  font-weight: 800;
  line-height: 1.2;
  border-radius: 16px !important;
  border: 1px solid transparent;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease, color .2s ease;
}

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

.btn-primary,
.btn-primary.disabled,
.btn-primary:disabled {
  color: #fff !important;
  background: var(--tf-grad-accent) !important;
  border-color: transparent !important;
  box-shadow: 0 12px 24px rgba(37,99,235,.22) !important;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:not(:disabled):not(.disabled):active {
  color: #fff !important;
  background: linear-gradient(135deg, #79b7ff 0%, #2563eb 64%, #1d4ed8 100%) !important;
  box-shadow: 0 16px 28px rgba(37,99,235,.28) !important;
}

.btn-secondary {
  color: var(--tf-text) !important;
  background: #fff !important;
  border-color: var(--tf-line) !important;
  box-shadow: var(--tf-shadow-xs) !important;
}

.btn-secondary:hover,
.btn-secondary:focus {
  color: var(--tf-blue-dark) !important;
  background: #fff !important;
  border-color: #cfd9e6 !important;
}

.btn-outline-primary {
  color: var(--tf-blue-dark) !important;
  background: #fff !important;
  border-color: rgba(37,99,235,.24) !important;
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
  color: #fff !important;
  background: var(--tf-grad-accent) !important;
  border-color: transparent !important;
}

.btn-outline-secondary {
  color: var(--tf-blue-dark) !important;
  background: #fff !important;
  border-color: rgba(37,99,235,.20) !important;
}

.btn-outline-secondary:hover,
.btn-outline-secondary:focus {
  color: #fff !important;
  background: var(--tf-grad-accent) !important;
  border-color: transparent !important;
}

.btn-link {
  color: var(--tf-blue-dark) !important;
  font-weight: 800 !important;
}

/* =========================================================
   11. FORMS
   ========================================================= */

.form-control,
input[type="text"],
input[type="email"],
input[type="search"],
input[type="password"],
textarea,
select {
  width: 100%;
  min-height: 46px;
  padding: .68rem 1rem;
  color: var(--tf-text) !important;
  background: #ffffff !important;
  border: 1px solid var(--tf-line-2) !important;
  border-radius: 16px !important;
  box-shadow: inset 0 1px 1px rgba(15, 23, 42, 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(--tf-text) !important;
  background: #fff !important;
  border-color: rgba(37,99,235,.34) !important;
  box-shadow: 0 0 0 .2rem rgba(37,99,235,.10) !important;
  outline: 0;
}

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

/* =========================================================
   12. DROPDOWNS
   ========================================================= */

.dropdown-menu {
  padding: .55rem;
  border: 1px solid var(--tf-line) !important;
  border-radius: 16px !important;
  box-shadow: 0 18px 40px rgba(16,24,40,.14) !important;
  background: rgba(255,255,255,.98) !important;
}

.dropdown-item {
  border-radius: 12px;
  padding: .72rem .9rem;
  font-weight: 700;
  color: var(--tf-text) !important;
}

.dropdown-item:hover,
.dropdown-item:focus {
  color: var(--tf-blue-dark) !important;
  background: rgba(37,99,235,.08) !important;
}

/* =========================================================
   13. TABLES
   ========================================================= */

.table {
  color: var(--tf-text) !important;
  background: #fff !important;
  border-radius: 20px !important;
  overflow: hidden;
  box-shadow: var(--tf-shadow) !important;
}

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

.table thead th {
  background: #f4f8fe !important;
  color: var(--tf-text) !important;
  font-weight: 800 !important;
  border-bottom: 1px solid var(--tf-line) !important;
}

.table-striped tbody tr:nth-of-type(odd) {
  background-color: rgba(37,99,235,.025) !important;
}

.table-hover tbody tr:hover {
  color: var(--tf-text) !important;
  background-color: rgba(37,99,235,.05) !important;
}

/* =========================================================
   14. SIDEBAR / LOGIN / USER MENU
   ========================================================= */

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: 26px !important;
  margin-top: 1.5rem !important;
  overflow: hidden;
}

.col-lg-3 .card,
.sidebar .card,
.widget .card,
.sidebar-box .card {
  background: linear-gradient(180deg, #162033 0%, #101827 100%) !important;
  border: 1px solid rgba(255,255,255,.06) !important;
  box-shadow: 0 16px 38px rgba(7,12,18,.18) !important;
}

.col-lg-3 .card .card-body,
.sidebar .card .card-body,
.widget .card .card-body,
.sidebar-box .card .card-body {
  background: transparent !important;
  color: rgba(255,255,255,.92) !important;
}

.col-lg-3 .card *,
.sidebar .card *,
.widget .card *,
.sidebar-box .card * {
  color: rgba(255,255,255,.92) !important;
}

.col-lg-3 .card .text-muted,
.sidebar .card .text-muted,
.widget .card .text-muted,
.sidebar-box .card .text-muted {
  color: rgba(255,255,255,.62) !important;
}

.col-lg-3 .card a,
.sidebar .card a,
.widget .card a,
.sidebar-box .card a {
  color: #fff !important;
}

.col-lg-3 .card a:hover,
.sidebar .card a:hover,
.widget .card a:hover,
.sidebar-box .card a:hover {
  color: #93c5fd !important;
}

.col-lg-3 .card-title,
.sidebar .card-title,
.widget .card-title,
.sidebar-box .card-title {
  position: relative;
  padding-left: 16px;
  color: #fff !important;
}

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

.col-lg-3 .card ul,
.col-lg-3 .card ol,
.sidebar .card ul,
.sidebar .card ol,
.widget .card ul,
.widget .card ol,
.sidebar-box .card ul,
.sidebar-box .card ol {
  list-style: none;
  margin: 0;
  padding: 0;
}

.col-lg-3 .card .list-group-item,
.sidebar .card .list-group-item,
.widget .card .list-group-item,
.sidebar-box .card .list-group-item {
  background: transparent !important;
  border: 0 !important;
  border-top: 1px solid rgba(255,255,255,.08) !important;
  color: rgba(255,255,255,.90) !important;
  padding: 14px 20px !important;
  font-weight: 700 !important;
}

.col-lg-3 .card .list-group-item:hover,
.sidebar .card .list-group-item:hover,
.widget .card .list-group-item:hover,
.sidebar-box .card .list-group-item:hover {
  background: rgba(255,255,255,.05) !important;
  color: #fff !important;
}

.col-lg-3 .card form input,
.sidebar .card form input,
.widget .card form input,
.sidebar-box .card form input,
.col-lg-3 .card form .form-control,
.sidebar .card form .form-control,
.widget .card form .form-control,
.sidebar-box .card form .form-control {
  background: #fff !important;
  color: var(--tf-text) !important;
  border: 1px solid var(--tf-line-2) !important;
  -webkit-text-fill-color: var(--tf-text) !important;
}

.col-lg-3 .card .bg-white,
.col-lg-3 .card .bg-light,
.col-lg-3 .card .table,
.col-lg-3 .card .table tr,
.col-lg-3 .card .table td,
.col-lg-3 .card .table th,
.sidebar .card .bg-white,
.sidebar .card .bg-light,
.sidebar .card .table,
.sidebar .card .table tr,
.sidebar .card .table td,
.sidebar .card .table th,
.widget .card .bg-white,
.widget .card .bg-light,
.widget .card .table,
.widget .card .table tr,
.widget .card .table td,
.widget .card .table th,
.sidebar-box .card .bg-white,
.sidebar-box .card .bg-light,
.sidebar-box .card .table,
.sidebar-box .card .table tr,
.sidebar-box .card .table td,
.sidebar-box .card .table th {
  background: transparent !important;
  color: rgba(255,255,255,.90) !important;
  border-color: rgba(255,255,255,.08) !important;
}

/* =========================================================
   15. PAGINATION / BREADCRUMB
   ========================================================= */

.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(--tf-line) !important;
  border-radius: 999px !important;
  background: #fff !important;
  color: var(--tf-text) !important;
  font-weight: 800 !important;
  box-shadow: var(--tf-shadow-xs) !important;
}

.page-link:hover {
  color: var(--tf-blue-dark) !important;
  background: rgba(37,99,235,.05) !important;
  border-color: rgba(37,99,235,.14) !important;
}

.page-item.active .page-link {
  color: #fff !important;
  background: var(--tf-grad-accent) !important;
  border-color: transparent !important;
  box-shadow: 0 12px 24px rgba(37,99,235,.20) !important;
}

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

.breadcrumb {
  padding: .8rem 1rem;
  border-radius: 999px !important;
  background: rgba(255,255,255,.88) !important;
  border: 1px solid var(--tf-line) !important;
  box-shadow: var(--tf-shadow-xs) !important;
}

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

.breadcrumb a {
  color: var(--tf-text) !important;
  font-weight: 700 !important;
}

.breadcrumb a:hover {
  color: var(--tf-blue-dark) !important;
}

/* =========================================================
   16. FULLSTORY / ARTICLE PAGE
   ========================================================= */

.fs-article {
  position: relative;
  overflow: visible !important;
  background:
    radial-gradient(circle at top right, rgba(37,99,235,.05), transparent 18%),
    linear-gradient(180deg, #ffffff 0%, #f9fbff 100%) !important;
  border: 1px solid var(--tf-line) !important;
  border-radius: 30px !important;
  box-shadow: 0 18px 46px rgba(15,23,42,.10) !important;
}

.fs-body {
  padding: 28px 30px 24px;
  color: var(--tf-text) !important;
}

.fs-header {
  position: relative;
  margin-bottom: 20px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--tf-line) !important;
}

.fs-title {
  margin: 0 0 14px;
  padding-right: 54px;
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 1.08;
  font-weight: 900;
  letter-spacing: -0.05em;
  color: var(--tf-text) !important;
}

.fs-title .ffx,
.fs-title .error-code {
  color: var(--tf-danger-dark) !important;
}

.fs-content {
  display: block;
  font-size: 16px;
  line-height: 1.84;
  color: var(--tf-text) !important;
}

.fs-poster {
  float: left;
  width: 350px;
  max-width: 44%;
  margin: 6px 28px 20px 0;
  position: relative;
}

.fs-poster-image,
.fs-poster img,
.fs-poster .xfieldimage img,
.fs-poster .xfieldimage {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 24px !important;
  overflow: hidden;
  box-shadow: 0 22px 40px rgba(15,23,42,.12) !important;
  border: 1px solid rgba(15,23,42,.05) !important;
  background: #fff !important;
}

.fs-text {
  color: var(--tf-text) !important;
}

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

.fs-text p {
  color: var(--tf-text) !important;
  margin-bottom: 1rem;
}

.fs-text h2,
.ai-article h2 {
  position: relative;
  margin: 2rem 0 1rem;
  padding: 0 0 .9rem;
  font-size: clamp(1.5rem, 2vw, 2rem);
  line-height: 1.2;
  border-bottom: 1px solid var(--tf-line) !important;
  color: var(--tf-text) !important;
}

.fs-text h2::before,
.ai-article h2::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 86px;
  height: 4px;
  border-radius: 999px;
  background: var(--tf-grad-danger);
}

.fs-text h3,
.ai-article h3 {
  position: relative;
  margin: 1.55rem 0 .8rem;
  padding-left: 16px;
  font-size: clamp(1.18rem, 1.5vw, 1.42rem);
  line-height: 1.28;
  color: var(--tf-text) !important;
}

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

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

.fs-text blockquote,
.ai-article blockquote {
  position: relative;
  margin: 1.4rem 0;
  padding: 1.1rem 1.2rem 1rem 1.2rem;
  border: 1px solid #cfe0ff !important;
  border-left: 4px solid var(--tf-blue) !important;
  border-radius: 0 18px 18px 0 !important;
  background: linear-gradient(135deg, #f5f9ff 0%, #edf5ff 100%) !important;
  color: #28415c !important;
  box-shadow: var(--tf-shadow-xs) !important;
}

/* =========================================================
   17. ARTICLE SERVICE BLOCKS
   ========================================================= */

.ai-article {
  position: relative;
  color: var(--tf-text) !important;
  font-size: 16px;
  line-height: 1.82;
  word-wrap: break-word;
}

.ai-article > *:first-child,
.fs-text > *:first-child {
  margin-top: 0 !important;
}

.ai-article .ai-note {
  position: relative;
  overflow: hidden;
  margin: 0 0 1.5rem;
  padding: 1.1rem 1.15rem 1rem 1.15rem;
  border: 1px solid rgba(37,99,235,.16) !important;
  border-radius: 22px !important;
  background:
    radial-gradient(circle at top right, rgba(239,68,68,.06), transparent 25%),
    linear-gradient(135deg, rgba(37,99,235,.07), rgba(255,255,255,.98) 58%) !important;
  box-shadow: 0 12px 28px rgba(15,23,42,.05) !important;
}

.ai-article .ai-note::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  border-radius: 999px;
  background: var(--tf-grad-accent);
}

.ai-article .ai-note-title {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: .42rem .84rem;
  margin: 0 0 .8rem;
  border-radius: 999px;
  background: #fff !important;
  border: 1px solid rgba(37,99,235,.14) !important;
  color: var(--tf-blue-dark) !important;
  font-size: .8rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: .05em;
  text-transform: uppercase;
  box-shadow: var(--tf-shadow-xs);
}

.ai-article .ai-error {
  position: relative;
  margin: 1.25rem 0;
  padding: 1rem 1.1rem 1rem 1.15rem;
  border-radius: 20px !important;
  border: 1px solid rgba(239,68,68,.18) !important;
  background: linear-gradient(135deg, #fff5f5 0%, #fff0f0 100%) !important;
  box-shadow: var(--tf-shadow-xs) !important;
}

.ai-article .ai-error::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  border-radius: 999px;
  background: var(--tf-grad-danger);
}

.ai-article .ai-steps {
  counter-reset: stepnum;
  list-style: none;
  margin: 1.3rem 0;
  padding: 0;
}

.ai-article .ai-steps li {
  position: relative;
  margin: 0 0 12px;
  padding: 14px 16px 14px 58px;
  border: 1px solid var(--tf-line) !important;
  border-radius: 20px !important;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%) !important;
  box-shadow: var(--tf-shadow-xs) !important;
}

.ai-article .ai-steps li::before {
  counter-increment: stepnum;
  content: counter(stepnum);
  position: absolute;
  left: 14px;
  top: 14px;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--tf-grad-accent);
  color: #fff;
  font-size: 14px;
  font-weight: 900;
}

.ai-article .ai-proscons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin: 1.5rem 0;
}

.ai-article .ai-pros,
.ai-article .ai-cons {
  border-radius: 22px !important;
  padding: 1.15rem 1.15rem 1rem;
  border: 1px solid var(--tf-line) !important;
  box-shadow: var(--tf-shadow-xs) !important;
}

.ai-article .ai-pros {
  background: linear-gradient(180deg, #f2fff6 0%, #ebfbf0 100%) !important;
  border-color: rgba(22,163,74,.16) !important;
}

.ai-article .ai-cons {
  background: linear-gradient(180deg, #fff7f7 0%, #fff1f1 100%) !important;
  border-color: rgba(239,68,68,.14) !important;
}

.ai-article .ai-pros-title,
.ai-article .ai-cons-title {
  display: inline-flex;
  align-items: center;
  margin: 0 0 .8rem;
  font-size: 1rem;
  font-weight: 900;
}

.ai-article .ai-toc {
  margin: 0 0 1.7rem;
  padding: 1.15rem 1.15rem 1rem;
  border: 1px solid var(--tf-line) !important;
  border-radius: 22px !important;
  background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%) !important;
  box-shadow: var(--tf-shadow-xs) !important;
}

.ai-article .ai-toc-title {
  display: flex;
  align-items: center;
  margin: 0 0 .9rem;
  color: var(--tf-text) !important;
  font-size: .96rem;
  font-weight: 900;
}

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

.ai-article .ai-toc ul {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.ai-article .ai-toc li {
  margin-bottom: .5rem;
}

.ai-article .ai-toc a {
  display: inline-block;
  color: var(--tf-text) !important;
  font-weight: 700 !important;
  border: 0 !important;
  box-shadow: none !important;
}

.ai-article .ai-toc a:hover {
  color: var(--tf-blue-dark) !important;
}

/* =========================================================
   18. COMMENTS
   ========================================================= */

.switch-comment {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 18px;
  padding: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #f9fbff 100%) !important;
  border: 1px solid var(--tf-line) !important;
  border-radius: 22px !important;
  box-shadow: var(--tf-shadow-sm) !important;
}

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

.switch-comment-avatar-img {
  display: block;
  width: 54px !important;
  height: 54px !important;
  object-fit: cover;
  border-radius: 16px !important;
  border: 1px solid var(--tf-line) !important;
  box-shadow: var(--tf-shadow-xs) !important;
}

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

.switch-comment-author {
  color: var(--tf-blue-dark) !important;
  font-size: 16px;
  font-weight: 800;
  text-decoration: none;
}

.switch-comment-author:hover {
  color: var(--tf-blue) !important;
}

.switch-comment-date {
  color: var(--tf-text-2) !important;
  font-size: 14px;
  font-weight: 700;
}

.switch-comment-content {
  padding: 14px 16px;
  border-radius: 16px !important;
  background: #f8fbff !important;
  border: 1px solid var(--tf-line) !important;
  color: var(--tf-text) !important;
  font-size: 15px;
  line-height: 1.75;
}

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

/* =========================================================
   19. COMMENT FORM
   ========================================================= */

#dle-comments-form,
.addcomments,
.mass_comments_action,
.comment-form,
#commentform,
.comments-form-wrap {
  margin-top: 22px;
  padding: 22px;
  background: linear-gradient(180deg, #ffffff 0%, #f9fbff 100%) !important;
  border: 1px solid var(--tf-line) !important;
  border-radius: 24px !important;
  box-shadow: var(--tf-shadow-sm) !important;
}

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

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

#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(--tf-text) !important;
  box-shadow: none !important;
  padding: 14px 16px !important;
  font-size: 15px;
  line-height: 1.7;
}

/* =========================================================
   20. SCROLLBAR
   ========================================================= */

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

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

*::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #60a5fa 0%, #2563eb 100%);
  border-radius: 999px;
  border: 2px solid #edf3fa;
}

*::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #7ab5ff 0%, #1d4ed8 100%);
}

/* =========================================================
   21. SMALL TECH HELPERS
   ========================================================= */

.tf-code,
.error-code,
.code-badge {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 12px;
  border-radius: 999px !important;
  background: rgba(239,68,68,.10) !important;
  color: var(--tf-danger-dark) !important;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .03em;
  text-transform: uppercase;
}

.tf-status-ok {
  color: var(--tf-success) !important;
}

.tf-status-warn {
  color: #9a6700 !important;
}

.tf-status-bad {
  color: var(--tf-danger-dark) !important;
}

/* =========================================================
   22. RESPONSIVE
   ========================================================= */

@media (max-width: 1199.98px) {
  .techno-menu .nav-link {
    padding: 10px 11px !important;
    font-size: 13px;
  }

  .techno-search-wrap {
    max-width: 290px;
    flex-basis: 290px;
  }
}

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

  .switch-nav .container {
    flex-wrap: wrap;
  }

  .switch-menu {
    gap: 0;
    margin-top: 14px;
    margin-bottom: 14px;
    width: 100%;
    align-items: stretch;
  }

  .switch-menu .nav-item {
    width: 100%;
  }

  .switch-menu .nav-link {
    justify-content: flex-start !important;
    width: 100%;
    border-radius: 14px !important;
    padding: 12px 14px !important;
    font-size: 14px !important;
    white-space: normal;
    text-align: left;
  }

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

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

  .switch-search-input,
  .switch-search-btn {
    width: 100%;
    min-width: 0;
  }

  .fs-poster {
    width: 270px;
    max-width: 46%;
    margin-right: 20px;
  }

  .techno-nav {
    padding-top: 12px;
    padding-bottom: 12px;
  }

  .techno-nav-container {
    min-height: auto;
  }

  .techno-brand {
    margin-right: auto;
  }

  .techno-nav .navbar-collapse {
    margin-top: 16px;
    padding: 14px;
    border-radius: 20px;
    background:
      linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.02)),
      linear-gradient(180deg, #11192b 0%, #0b1120 100%);
    border: 1px solid rgba(255,255,255,.07);
    box-shadow: 0 18px 40px rgba(0,0,0,.22);
  }

  .techno-menu {
    align-items: stretch;
    gap: 4px;
    margin-bottom: 14px;
  }

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

  .techno-menu .nav-link {
    width: 100%;
    min-height: 46px;
    border-radius: 14px;
    justify-content: flex-start;
    padding: 12px 14px !important;
    background: rgba(255,255,255,.025);
  }

  .techno-menu .nav-link::after {
    display: none;
  }

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

@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 !important;
  }

  .breadcrumb {
    border-radius: 18px !important;
  }

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

  .main-seo-text {
    padding: 18px;
  }

  .main-seo-text h1 {
    font-size: 32px;
    line-height: 1.12;
  }

  .main-seo-text p {
    font-size: 14px;
    line-height: 1.6;
  }

  .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,
  .ai-article {
    font-size: 1rem;
    line-height: 1.72;
  }

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

  .switch-comment {
    padding: 14px;
    border-radius: 18px !important;
  }

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

  #dle-comments-form h3,
  .addcomments h3,
  .comment-form h3,
  #commentform h3,
  .comments-form-title {
    font-size: 22px;
  }
}

@media (max-width: 575.98px) {
  .techno-brand-main {
    font-size: 20px;
  }

  .techno-brand-sub {
    font-size: 10px;
    letter-spacing: .18em;
  }

  .techno-logo {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    flex-basis: 48px;
  }

  .techno-logo-ring {
    inset: 8px;
  }

  .techno-logo-core {
    left: 14px;
    top: 14px;
    width: 18px;
    height: 18px;
  }

  .techno-search-field {
    min-height: auto;
    padding: 6px;
  }

  .techno-search-btn.btn,
  .techno-search-btn {
    padding: 0 14px !important;
    font-size: 13px;
  }
}
/* =========================================================
   TECHNOHELL ARTICLE FIXES V2
   ЗАМЕНИТЬ ИМ ЭТОТ ПРОШЛЫЙ БЛОК ЦЕЛИКОМ
   ========================================================= */

/* ---------- TOC ---------- */

/* =========================================================
   TOC / СОДЕРЖАНИЕ — GRID FIXED
   ========================================================= */

.ai-toc {
  margin: 1.7rem 0 2rem;
  padding: 1.2rem 1.25rem 1.25rem;
  border: 1px solid #dbe5f0;
  border-radius: 24px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  box-shadow: 0 10px 24px rgba(15, 23, 42, .04);
}

.ai-toc-title {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 1rem;
  padding: 0;
  font-size: 1.12rem;
  font-weight: 900;
  line-height: 1.2;
  color: #0f172a;
}

.ai-toc-title::before {
  content: "";
  width: 11px;
  height: 11px;
  flex: 0 0 11px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff8a8a 0%, #ef4444 100%);
  box-shadow: 0 0 0 6px rgba(239, 68, 68, .10);
}

.ai-toc-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 34px;
  align-items: start;
}

.ai-toc-grid ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.ai-toc-grid li {
  margin: 0 0 10px;
  padding: 0;
}

.ai-toc-grid li:last-child {
  margin-bottom: 0;
}

.ai-toc-grid li a {
  position: relative;
  display: block;
  padding: 2px 0 2px 18px;
  color: #0f172a !important;
  font-size: 1rem;
  font-weight: 750;
  line-height: 1.45;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  transition: color .2s ease, opacity .2s ease;
}

.ai-toc-grid li a::before {
  content: "";
  position: absolute;
  left: 0;
  top: .62em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #2563eb;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, .08);
}

.ai-toc-grid li a:hover,
.ai-toc-grid li a:focus {
  color: #1d4ed8 !important;
  text-decoration: none !important;
  opacity: .92;
}

/* если у тебя внутри .ai-toc-grid один ul, а не два —
   можно автоматически раскидать li по двум колонкам */
.ai-toc-grid > ul:only-child {
  columns: 2;
  column-gap: 34px;
}

.ai-toc-grid > ul:only-child li {
  break-inside: avoid;
}

@media (min-width: 1200px) {
  .ai-toc-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .ai-toc-grid > ul:only-child {
    columns: 3;
    column-gap: 34px;
  }
}

@media (max-width: 767.98px) {
  .ai-toc {
    padding: 1rem;
    border-radius: 18px;
  }

  .ai-toc-title {
    margin-bottom: .85rem;
    font-size: 1.02rem;
  }

  .ai-toc-grid {
    grid-template-columns: 1fr;
    gap: 8px 0;
  }

  .ai-toc-grid > ul:only-child {
    columns: 1;
    column-gap: 0;
  }

  .ai-toc-grid li {
    margin-bottom: 8px;
  }

  .ai-toc-grid li a {
    padding-left: 16px;
    font-size: .96rem;
    line-height: 1.4;
  }

  .ai-toc-grid li a::before {
    width: 6px;
    height: 6px;
    top: .66em;
  }
}

/* ---------- TABLE ---------- */

.ai-table-wrap {
  margin: 1.45rem 0 1.9rem;
  border: 1px solid #d6e1ee !important;
  border-radius: 24px !important;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%) !important;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06) !important;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
}

.ai-table-wrap table {
  width: 100%;
  min-width: 760px;
  border-collapse: separate !important;
  border-spacing: 0 !important;
  table-layout: fixed;
  margin: 0 !important;
  background: transparent !important;
}

.ai-table-wrap thead th {
  padding: 1rem 1rem;
  font-size: 15px;
  line-height: 1.35;
  font-weight: 900;
  color: #0f172a !important;
  text-align: left;
  vertical-align: top;
  background: linear-gradient(180deg, #f6faff 0%, #edf5ff 100%) !important;
  border-bottom: 1px solid #d6e1ee !important;
  border-right: 1px solid #dfe8f3 !important;
}

.ai-table-wrap thead th:first-child {
  width: 35%;
}

.ai-table-wrap thead th:nth-child(2) {
  width: 33%;
}

.ai-table-wrap thead th:nth-child(3) {
  width: 32%;
}

.ai-table-wrap thead th:last-child {
  border-right: 0 !important;
}

.ai-table-wrap tbody td {
  padding: .95rem 1rem;
  font-size: 15px;
  line-height: 1.65;
  color: #1f2a37 !important;
  vertical-align: top;
  border-bottom: 1px solid #e6edf5 !important;
  border-right: 1px solid #edf3f8 !important;
  word-break: break-word;
}

.ai-table-wrap tbody td:last-child {
  border-right: 0 !important;
}

.ai-table-wrap tbody tr:last-child td {
  border-bottom: 0 !important;
}

/* строки */
.ai-table-wrap tbody tr:nth-child(odd) td {
  background: #ffffff !important;
}

.ai-table-wrap tbody tr:nth-child(even) td {
  background: #fbfdff !important;
}

.ai-table-wrap tbody tr:hover td {
  background: #f7fbff !important;
}

/* визуально разделяем смысл колонок */
.ai-table-wrap tbody td:nth-child(1) {
  color: #0f172a !important;
  font-weight: 800;
  background-image: linear-gradient(180deg, rgba(255,255,255,0), rgba(255,255,255,0));
}

.ai-table-wrap tbody td:nth-child(2) {
  background-color: #f9fbff !important;
}

.ai-table-wrap tbody td:nth-child(3) {
  background-color: #fcfdff !important;
}

/* =========================================================
   FAQ — FIXED / NO DOUBLE BLUE BARS
   ========================================================= */

.ai-faq {
  margin: 1.7rem 0;
}

.ai-faq-item {
  position: relative;
  margin: 0 0 14px;
  padding: 0 0 0 22px;
  border: 1px solid #dbe5f0 !important;
  border-radius: 22px !important;
  background: linear-gradient(180deg, #ffffff 0%, #f9fbff 100%) !important;
  box-shadow: 0 8px 20px rgba(15, 23, 42, .04) !important;
  overflow: hidden;
}

.ai-faq-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 16px;
  bottom: 16px;
  width: 8px;
  border-radius: 0 999px 999px 0;
  background: linear-gradient(180deg, #59b2ff 0%, #2f7cf6 58%, #235be7 100%);
  box-shadow: 0 0 0 1px rgba(47, 124, 246, .04);
}

.ai-faq-question {
  position: relative;
  margin: 0 !important;
  padding: 1.05rem 1.15rem .55rem 0 !important;
  color: #0f172a !important;
  font-size: clamp(1.15rem, 1.8vw, 1.42rem);
  font-weight: 900 !important;
  line-height: 1.25;
  border: 0 !important;
  background: transparent !important;
}

/* УБИВАЕМ общую синюю палку от .ai-article h3::before */
.ai-article .ai-faq-question::before,
.ai-faq .ai-faq-question::before,
.ai-faq-item .ai-faq-question::before {
  content: none !important;
  display: none !important;
}

/* И на всякий случай убираем любые after, если тема/шаблон что-то дорисовывает */
.ai-article .ai-faq-question::after,
.ai-faq .ai-faq-question::after,
.ai-faq-item .ai-faq-question::after {
  content: none !important;
  display: none !important;
}

.ai-faq-answer {
  padding: 0 1.15rem 1.05rem 0;
}

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

@media (max-width: 767.98px) {
  .ai-faq-item {
    padding-left: 18px;
    border-radius: 18px !important;
  }

  .ai-faq-item::before {
    top: 14px;
    bottom: 14px;
    width: 6px;
  }

  .ai-faq-question {
    padding: .95rem 1rem .45rem 0 !important;
    font-size: 1.05rem !important;
    line-height: 1.3;
  }

  .ai-faq-answer {
    padding: 0 1rem .95rem 0;
  }
}

/* ---------- STEPS ---------- */

.ai-steps {
  counter-reset: aiStep;
  list-style: none;
  margin: 1.35rem 0;
  padding: 0;
}

.ai-steps li {
  position: relative;
  margin: 0 0 12px;
  padding: 14px 16px 14px 58px;
  border: 1px solid #dbe5f0 !important;
  border-radius: 20px !important;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%) !important;
  box-shadow: 0 8px 18px rgba(15,23,42,.04) !important;
}

.ai-steps li::before {
  counter-increment: aiStep;
  content: counter(aiStep);
  position: absolute;
  left: 14px;
  top: 14px;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #59b2ff 0%, #2f7cf6 58%, #235be7 100%);
  color: #fff;
  font-size: 14px;
  font-weight: 900;
  box-shadow: 0 8px 16px rgba(47,124,246,.20);
}

/* ---------- NOTE / SUMMARY ---------- */

.ai-note,
.ai-summary,
.ai-faq,
.ai-proscons,
.ai-steps,
.ai-table-wrap,
.ai-toc {
  scroll-margin-top: 90px;
}

/* ---------- MOBILE ---------- */

@media (max-width: 991.98px) {
  .ai-toc-grid {
    grid-template-columns: 1fr;
    gap: 6px 0;
  }

  .ai-toc-grid > ul:only-child {
    columns: 1;
  }
}

@media (max-width: 767.98px) {
  .ai-toc {
    padding: 1rem;
    border-radius: 18px !important;
  }

  .ai-toc-title {
    font-size: .98rem;
  }

  .ai-toc-grid a {
    padding: .56rem .72rem;
    font-size: 14px;
    line-height: 1.3;
  }

  .ai-table-wrap {
    border-radius: 18px !important;
  }

  .ai-table-wrap table {
    min-width: 640px;
  }

  .ai-table-wrap thead th,
  .ai-table-wrap tbody td {
    padding: .82rem .85rem;
    font-size: 14px;
    line-height: 1.55;
  }

  .ai-faq-item {
    padding-left: 18px;
    border-radius: 18px !important;
  }

  .ai-faq-item::before {
    top: 12px;
    bottom: 12px;
    width: 7px;
  }

  .ai-faq-question {
    padding: .92rem 1rem .5rem 0;
    font-size: 1.05rem;
    line-height: 1.28;
  }

  .ai-faq-answer {
    padding: 0 1rem .95rem 0;
  }
}
.main-seo-text h1 {
  font-size: clamp(1.45rem, 2vw, 2.15rem) !important;
  line-height: 1.2 !important;
}
/* =========================================================
   TOP-3 / TOPNEWS SIDEBAR FIXED
   компактный вариант под узкую колонку
   ========================================================= */

.top-rated-card {
  position: relative;
  overflow: hidden;
  margin-top: 1.2rem;
  border: 1px solid rgba(255,255,255,.06) !important;
  border-radius: 28px !important;
  background:
    radial-gradient(circle at top right, rgba(77,163,255,.14), transparent 24%),
    radial-gradient(circle at left bottom, rgba(255,77,103,.10), transparent 22%),
    linear-gradient(180deg, #142033 0%, #0c1628 100%) !important;
  box-shadow: 0 18px 42px rgba(7,11,20,.24) !important;
}

.top-rated-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  border-radius: 999px;
  background: linear-gradient(180deg, #ff7589 0%, #ff4d67 100%);
}

.top-rated-card .card-body {
  padding: 1.15rem !important;
  background: transparent !important;
}

.top-rated-head {
  display: block;
  margin-bottom: 14px;
}

.top-rated-kicker {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 14px;
  margin-bottom: 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #ffe8ec !important;
  background: linear-gradient(180deg, rgba(255,255,255,.09), rgba(255,255,255,.04));
  border: 1px solid rgba(255,255,255,.10);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05);
}

.top-rated-card .card-title {
  position: relative;
  display: block;
  margin: 0 !important;
  padding-left: 16px;
  color: #fff !important;
  font-size: 1.15rem !important;
  line-height: 1.1 !important;
  font-weight: 900 !important;
  letter-spacing: -0.03em !important;
  text-shadow: 0 2px 8px rgba(0,0,0,.16);
}

.top-rated-card .card-title::before {
  content: "";
  position: absolute;
  left: 0;
  top: .08em;
  width: 8px;
  height: .95em;
  border-radius: 999px;
  background: linear-gradient(180deg, #ff7085 0%, #ff405c 100%);
  box-shadow: 0 0 14px rgba(255,77,103,.28);
}

.top-rated-list {
  display: grid;
  gap: 12px;
}

/* item */

.top-news-item {
  position: relative;
  min-width: 0;
}

.top-news-item::before {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 900;
  color: #fff;
  box-shadow: 0 8px 18px rgba(0,0,0,.18);
  z-index: 3;
}

.top-news-item:nth-child(1)::before {
  content: "1";
  background: linear-gradient(135deg, #ff7c90 0%, #ff4d67 100%);
}

.top-news-item:nth-child(2)::before {
  content: "2";
  background: linear-gradient(135deg, #5da9ff 0%, #2f7cf6 100%);
}

.top-news-item:nth-child(3)::before {
  content: "3";
  background: linear-gradient(135deg, #7ad9ff 0%, #49bdff 100%);
}

/* link */

.top-news-link {
  position: relative;
  display: grid !important;
  grid-template-columns: 72px minmax(0, 1fr);
  align-items: center;
  column-gap: 12px;
  row-gap: 0;
  min-width: 0;
  min-height: 108px;
  padding: 14px 14px 14px 44px;
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(255,255,255,.10) 0%, rgba(255,255,255,.04) 100%) !important;
  border: 1px solid rgba(255,255,255,.09) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.05),
    0 12px 26px rgba(0,0,0,.12);
  text-decoration: none !important;
  transition: transform .2s ease, background .2s ease, border-color .2s ease, box-shadow .2s ease;
  overflow: hidden;
}

.top-news-link:hover,
.top-news-link:focus {
  transform: translateY(-2px);
  background: linear-gradient(135deg, rgba(255,255,255,.13) 0%, rgba(255,255,255,.05) 100%) !important;
  border-color: rgba(255,255,255,.14) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.06),
    0 16px 30px rgba(0,0,0,.16);
  text-decoration: none !important;
}

.top-news-thumb-wrap {
  position: relative;
  grid-column: 1;
  flex: 0 0 72px;
  width: 72px;
  height: 72px;
  border-radius: 18px;
  overflow: hidden;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.09);
  box-shadow:
    0 10px 20px rgba(0,0,0,.16),
    inset 0 1px 0 rgba(255,255,255,.06);
}

.top-news-thumb {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.top-news-body {
  grid-column: 2;
  min-width: 0;
  width: 100%;
}

.top-news-title {
  margin: 0 0 10px;
  color: #fff !important;
  font-size: 14px;
  line-height: 1.34;
  font-weight: 850;
  letter-spacing: -0.015em;
  text-shadow: 0 1px 4px rgba(0,0,0,.12);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
}

.top-news-link:hover .top-news-title,
.top-news-link:focus .top-news-title {
  color: #a6d4ff !important;
}

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

.top-news-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 30px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.08);
  color: rgba(244,247,251,.88) !important;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.03);
}

.top-news-meta-item i {
  font-size: 11px;
  color: #9dcbff !important;
  opacity: 1;
}

/* extra narrow sidebar */
@media (max-width: 420px) {
  .top-rated-card .card-body {
    padding: 1rem !important;
  }

  .top-rated-card .card-title {
    font-size: 1.05rem !important;
    padding-left: 14px;
  }

  .top-rated-kicker {
    font-size: 10px;
    min-height: 30px;
    padding: 6px 11px;
    margin-bottom: 10px;
  }

  .top-news-item::before {
    left: 9px;
    width: 24px;
    height: 24px;
    font-size: 12px;
  }

  .top-news-link {
    grid-template-columns: 62px minmax(0, 1fr);
    min-height: 96px;
    padding: 12px 12px 12px 38px;
    column-gap: 10px;
    border-radius: 18px;
  }

  .top-news-thumb-wrap {
    width: 62px;
    height: 62px;
    border-radius: 15px;
  }

  .top-news-title {
    font-size: 13px;
    margin-bottom: 8px;
  }

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

  .top-news-meta-item {
    min-height: 27px;
    padding: 5px 8px;
    font-size: 11px;
    gap: 5px;
  }
}
/* ===== ACTIVE MENU ITEM ===== */

.techno-menu .nav-item.active .nav-link,
.techno-menu .nav-link.active,
.techno-menu .nav-link[aria-current="page"] {
  color: #ffffff !important;
  background: rgba(255,255,255,.08) !important;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.06) !important;
  transform: translateY(-1px);
}

.techno-menu .nav-item.active .nav-link::after,
.techno-menu .nav-link.active::after,
.techno-menu .nav-link[aria-current="page"]::after {
  transform: scaleX(1) !important;
}

.techno-menu .nav-item.active .nav-link:hover,
.techno-menu .nav-link.active:hover,
.techno-menu .nav-link[aria-current="page"]:hover {
  color: #ffffff !important;
  background: rgba(255,255,255,.10) !important;
}
/* =========================================================
   DRIVEBAZA / TECHNOHELL COMMENT STYLE FIX
   Для блока .db-comment
   ========================================================= */

.db-comment {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin: 0 0 18px;
  padding: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  border: 1px solid #dbe6f2;
  border-radius: 22px;
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.07);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.db-comment:hover {
  transform: translateY(-2px);
  border-color: #c9d8ea;
  box-shadow: 0 18px 38px rgba(15, 23, 42, 0.1);
}

.db-comment + .db-comment {
  margin-top: 16px;
}

/* AVATAR */

.db-comment-avatar {
  flex: 0 0 58px;
  width: 58px;
}

.db-comment-avatar-link {
  display: block;
  width: 58px;
  height: 58px;
  border-radius: 18px;
  overflow: hidden;
  background: #eef4fb;
  border: 1px solid #d8e3ef;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
}

.db-comment-avatar-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* BODY */

.db-comment-body {
  flex: 1 1 auto;
  min-width: 0;
}

/* HEAD */

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

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

.db-comment-author {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 8px 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, #eff5ff 0%, #f7fbff 100%);
  border: 1px solid #d6e4f5;
  color: #0f172a !important;
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
  text-decoration: none !important;
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.04);
}

.db-comment-author i {
  color: #2563eb !important;
  font-size: 13px;
}

.db-comment-author:hover {
  color: #1d4ed8 !important;
  background: #f4f8ff;
}

.db-comment-date,
.db-comment-parent {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
}

.db-comment-date {
  background: #f8fafc;
  border: 1px solid #e2eaf3;
  color: #5a6b80;
}

.db-comment-date i {
  color: #64748b !important;
}

.db-comment-parent {
  background: #fff4f4;
  border: 1px solid #ffd8d8;
  color: #c62828;
}

.db-comment-parent i {
  color: #ef4444 !important;
}

/* ACTIONS */

.db-comment-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
  flex: 0 0 auto;
}

.db-comment-like,
.db-comment-dropdown {
  display: inline-flex;
  align-items: center;
}

.db-comment-like-btn,
.db-comment-iconbtn,
.db-comment-dropdown > .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-width: 40px;
  height: 40px;
  padding: 0 13px !important;
  border-radius: 14px !important;
  border: 1px solid #d9e4f0 !important;
  background: #ffffff !important;
  color: #334155 !important;
  font-size: 14px;
  font-weight: 800;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.05);
  transition: all .18s ease;
}

.db-comment-like-btn:hover,
.db-comment-iconbtn:hover,
.db-comment-dropdown > .btn:hover,
.db-comment-like-btn:focus,
.db-comment-iconbtn:focus,
.db-comment-dropdown > .btn:focus {
  background: #f3f8ff !important;
  border-color: #bfd5f3 !important;
  color: #1d4ed8 !important;
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(37, 99, 235, 0.12);
}

.db-comment-like-btn i,
.db-comment-iconbtn i,
.db-comment-dropdown > .btn i {
  font-size: 14px;
}

.db-comment-like-btn span {
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
}

/* DROPDOWN */

.db-comment-dropdown .dropdown-menu {
  margin-top: 10px;
  padding: 8px;
  min-width: 190px;
  border: 1px solid #dbe6f1 !important;
  border-radius: 16px !important;
  background: rgba(255,255,255,.98) !important;
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.12) !important;
}

.db-comment-dropdown .dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 10px 12px;
  border-radius: 12px;
  background: transparent !important;
  border: 0 !important;
  color: #0f172a !important;
  font-size: 14px;
  font-weight: 700;
  transition: all .16s ease;
}

.db-comment-dropdown .dropdown-item:hover,
.db-comment-dropdown .dropdown-item:focus {
  background: #f4f8ff !important;
  color: #1d4ed8 !important;
}

.db-comment-dropdown .dropdown-item i {
  width: 16px;
  text-align: center;
  color: #64748b !important;
}

/* CONTENT */

.db-comment-content {
  position: relative;
  padding: 16px 18px;
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
  border: 1px solid #e2eaf3;
  color: #0f172a !important;
  font-size: 15px;
  line-height: 1.72;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

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

.db-comment-content a {
  color: #1d4ed8 !important;
  font-weight: 700;
  text-decoration: none !important;
}

.db-comment-content a:hover {
  color: #2563eb !important;
  text-decoration: underline !important;
}

.db-comment-content img {
  max-width: 100%;
  height: auto;
  border-radius: 14px;
}

/* DIVIDER / IMAGES / SIGNATURE */

.db-comment-divider {
  height: 1px;
  margin: 16px 0 14px;
  background: linear-gradient(90deg, transparent 0%, #dbe6f2 12%, #dbe6f2 88%, transparent 100%);
}

.db-comment-images {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.db-comment-images img {
  display: block;
  max-width: 140px;
  border-radius: 14px;
  border: 1px solid #dde7f2;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
}

.db-comment-signature {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px dashed #d7e2ee;
  color: #64748b !important;
  font-size: 13px;
  line-height: 1.6;
  font-style: italic;
}

/* ONLINE */

.db-comment-author#online {
  position: relative;
  padding-right: 16px;
}

.db-comment-author#online::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 8px;
  width: 8px;
  height: 8px;
  margin-top: -4px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.14);
}

/* CHILD COMMENTS / NESTED */

.comments-tree-list .comments-tree-list,
.comments-tree-list ol {
  margin-top: 14px;
  margin-left: 34px;
  padding-left: 20px;
  border-left: 2px solid #dce6f2;
}

/* MOBILE */

@media (max-width: 767.98px) {
  .db-comment {
    gap: 12px;
    padding: 14px;
    border-radius: 18px;
  }

  .db-comment-avatar {
    flex: 0 0 46px;
    width: 46px;
  }

  .db-comment-avatar-link {
    width: 46px;
    height: 46px;
    border-radius: 14px;
  }

  .db-comment-head {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

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

  .db-comment-content {
    padding: 14px;
    font-size: 14px;
    line-height: 1.68;
  }

  .comments-tree-list .comments-tree-list,
  .comments-tree-list ol {
    margin-left: 14px;
    padding-left: 12px;
  }
}