:root {
  --bg: #f4f6f9;
  --card: #ffffff;
  --line: #e8edf3;
  --text: #212529;
  --muted: #6c757d;
  --primary: #007bff;
  --primary-soft: rgba(0, 123, 255, .08);
  --dark-1: #1f2732;
  --dark-2: #2c3642;
  --accent: #ffb703;
  --success-soft: #eefaf2;
  --warning-soft: #fff8e8;
  --danger-soft: #fff1f1;
  --shadow: 0 10px 30px rgba(20, 32, 50, .08);
  --radius: 16px;
}
.sidebar-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.sidebar-chip {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  max-width: 100%;
  padding: .45rem .72rem;
  border: 1px solid #e4eaf1;
  border-radius: 999px;
  background: #fff;
  color: #2d3748;
  font-size: .82rem;
  font-weight: 600;
  line-height: 1.2;
  transition: .18s ease;
}

.sidebar-chip:hover {
  color: #0b63ce;
  border-color: #cfe0f4;
  background: #f8fbff;
  box-shadow: 0 6px 14px rgba(20, 30, 50, .06);
}

.sidebar-chip-accent {
  background: #eef5ff;
  border-color: #d6e5fb;
  color: #245ea8;
  font-weight: 700;
}

.sidebar-chip-accent:hover {
  background: #e8f1ff;
  color: #134f97;
}

.navbar-toggler {
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid #dbe3ec;
  border-radius: 10px;
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  appearance: none;
  -webkit-appearance: none;
}

.navbar-toggler:focus,
.navbar-toggler:active {
  outline: none;
  box-shadow: none;
}

.burger-lines {
  position: relative;
  display: block;
  width: 18px;
  height: 2px;
  background: #1c2430;
  border-radius: 2px;
}

.burger-lines:before,
.burger-lines:after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: #1c2430;
  border-radius: 2px;
}

.burger-lines:before {
  top: -6px;
}

.burger-lines:after {
  top: 6px;
}
body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 15px;
}

a:hover {
  text-decoration: none;
}

.topbar {
  display: none;
}

.site-header {
  background: #fff;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 8px 20px rgba(31, 39, 50, .04);
}

.brand-wrap {
  display: flex;
  align-items: center;
  min-width: 0;
}

.brand-logo {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--primary), #53a7ff);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  margin-right: .9rem;
  box-shadow: 0 10px 22px rgba(0, 123, 255, .28);
}

.brand-title {
  font-size: 1.4rem;
  font-weight: 800;
  color: #1c2430;
  line-height: 1;
  margin-bottom: .15rem;
}

.brand-subtitle {
  color: var(--muted);
  font-size: .84rem;
}

.header-info-strip {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  justify-content: flex-end;
}

.header-info-pill {
  display: inline-flex;
  align-items: center;
  padding: .55rem .8rem;
  border-radius: 50px;
  background: #f8fbff;
  border: 1px solid #d9e8f7;
  color: #4f5d6b;
  font-size: .84rem;
  font-weight: 700;
  white-space: nowrap;
}

.header-info-pill i {
  color: var(--primary);
  margin-right: .45rem;
}

.header-right {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.main-nav {
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.main-nav .nav-link {
  color: #44505d;
  font-weight: 600;
  padding: 1rem .9rem;
  border-bottom: 2px solid transparent;
}

.main-nav .nav-link:hover,
.main-nav .nav-link.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}
.article-content-reset .card,
.article-content-reset .card-body,
.article-content-reset .card-header,
.article-content-reset .card-footer,
.article-content-reset .shadow,
.article-content-reset .shadow-sm,
.article-content-reset .shadow-lg,
.article-content-reset [class*="shadow"] {
  box-shadow: none !important;
}

.article-content-reset .card {
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  overflow: visible !important;
}

.article-content-reset .card-body,
.article-content-reset .card-header,
.article-content-reset .card-footer {
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
}

.article-content-reset .rounded,
.article-content-reset .rounded-sm,
.article-content-reset .rounded-lg,
.article-content-reset [class*="rounded"] {
  border-radius: 0 !important;
}
.navbar-toggler {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: .45rem .7rem;
}

.navbar-toggler:focus {
  outline: 0;
  box-shadow: none;
}

.page-wrap {
  padding-top: 1.25rem;
  padding-bottom: 2.5rem;
}

/* Немного шире контент на десктопе */
.container {
  max-width: 1240px;
}

.card-soft {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero {
  background: linear-gradient(135deg, #ffffff 0%, #eef4fb 100%);
  overflow: hidden;
  position: relative;
}

.hero:after {
  content: "";
  position: absolute;
  right: -50px;
  top: -50px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 123, 255, .12), transparent 70%);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  padding: .5rem .85rem;
  border-radius: 50px;
  background: #fff;
  border: 1px solid #dbe5f0;
  color: #506070;
  font-size: .84rem;
  font-weight: 700;
  margin-right: .45rem;
  margin-bottom: .45rem;
}

.hero-badge i {
  margin-right: .45rem;
  color: var(--primary);
}

.stat-mini {
  background: rgba(255, 255, 255, .84);
  border: 1px solid #e5ebf2;
  border-radius: 14px;
  padding: 1rem;
  height: 100%;
}

.stat-mini .num {
  font-size: 1.45rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: .35rem;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  gap: 1rem;
}

.section-head h2,
.section-head h3,
.section-head h4 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 800;
}

.section-link {
  color: var(--primary);
  font-weight: 700;
  white-space: nowrap;
}

.section-link:hover {
  color: #005fcb;
}

.chip-link {
  display: inline-flex;
  align-items: center;
  padding: .48rem .82rem;
  border-radius: 50px;
  background: #fff;
  border: 1px solid var(--line);
  color: #4d5864;
  font-weight: 700;
  font-size: .88rem;
  margin: 0 .45rem .45rem 0;
}

.chip-link:hover {
  color: var(--primary);
  border-color: #cadff6;
  background: #f8fbff;
}

.chip-link i {
  margin-right: .45rem;
}

.post-card,
.comment-card,
.side-link,
.mini-list-item {
  display: block;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1rem;
  color: inherit;
  transition: .2s ease;
}

.post-card:hover,
.comment-card:hover,
.side-link:hover,
.mini-list-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(27, 40, 58, .08);
  color: inherit;
}

.post-card + .post-card,
.comment-card + .comment-card,
.mini-list-item + .mini-list-item,
.side-link + .side-link {
  margin-top: .8rem;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  margin-top: .75rem;
}

.meta-pill {
  display: inline-flex;
  align-items: center;
  padding: .28rem .62rem;
  border-radius: 50px;
  background: #f7f9fc;
  border: 1px solid #e7edf3;
  color: #65707c;
  font-size: .77rem;
  font-weight: 700;
}

.meta-pill i {
  margin-right: .35rem;
}

.author-block {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-bottom: .65rem;
}

.avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), #52a6ff);
  flex: 0 0 38px;
}

.small-title {
  font-size: 1rem;
  font-weight: 800;
  margin-bottom: .75rem;
}

.sidebar .widget + .widget {
  margin-top: 1rem;
}

.widget {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.widget-head {
  padding: 1rem 1rem .85rem;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .75rem;
}

.widget-head h3 {
  font-size: 1rem;
  font-weight: 800;
  margin: 0;
}

.widget-body {
  padding: 1rem;
}

.trend-item {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  padding: .75rem 0;
  border-bottom: 1px dashed #e9edf2;
}

.trend-item:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.trend-item:first-child {
  padding-top: 0;
}

.trend-num {
  width: 28px;
  height: 28px;
  border-radius: 10px;
  background: var(--primary-soft);
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: .82rem;
  font-weight: 800;
  flex: 0 0 28px;
}

.dark-widget {
  background: linear-gradient(135deg, var(--dark-1) 0%, var(--dark-2) 100%);
  color: #fff;
  border-color: transparent;
}

.dark-widget .widget-head {
  border-bottom-color: rgba(255, 255, 255, .08);
}

.dark-widget .meta-pill {
  background: rgba(255, 255, 255, .08);
  border-color: rgba(255, 255, 255, .12);
  color: rgba(255, 255, 255, .9);
}

.dark-widget .side-link,
.dark-widget .mini-list-item {
  background: rgba(255, 255, 255, .05);
  border-color: rgba(255, 255, 255, .08);
  color: #fff;
}

.footer {
  background: linear-gradient(135deg, #202833 0%, #2c3743 100%);
  color: rgba(255, 255, 255, .86);
  margin-top: 2rem;
}

.footer a {
  color: rgba(255, 255, 255, .82);
}

.footer a:hover {
  color: #fff;
}

.footer-title {
  font-size: 1rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 1rem;
}

.footer-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-list li + li {
  margin-top: .55rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .08);
  color: rgba(255, 255, 255, .66);
  font-size: .9rem;
}

/* ===== Виджет двигателей ===== */

.engine-link {
  display: flex;
  align-items: center;
  padding: .95rem;
  border: 1px solid #e8edf3;
  border-radius: 14px;
  margin-bottom: .7rem;
  background: #fff;
  transition: .2s ease;
}

.engine-link:last-child {
  margin-bottom: 0;
}

.engine-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(20, 30, 50, .07);
  border-color: #d9e5f2;
}

.engine-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, #007bff, #4da3ff);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: .85rem;
  flex: 0 0 42px;
  font-size: .95rem;
  box-shadow: 0 8px 18px rgba(0, 123, 255, .18);
}

.engine-content {
  flex: 1;
  min-width: 0;
}

.engine-topline {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin-bottom: .15rem;
  flex-wrap: wrap;
}

.engine-content strong {
  display: block;
  font-size: .93rem;
  line-height: 1.25;
  color: #1f2933;
}

.engine-meta {
  font-size: .76rem;
  color: #6c757d;
  margin-top: .1rem;
}

.engine-stats {
  margin-top: .35rem;
  font-size: .75rem;
  color: #7b8794;
}

.engine-stats i {
  margin-right: .25rem;
}

.engine-arrow {
  color: #b4bec8;
  margin-left: .55rem;
  font-size: .8rem;
}

.engine-badge {
  display: inline-flex;
  align-items: center;
  padding: .22rem .5rem;
  border-radius: 999px;
  font-size: .68rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: .01em;
  border: 1px solid transparent;
}

.engine-badge-top {
  background: #fdf3e3;
  color: #9a6700;
  border-color: #f3dfb3;
}

.engine-badge-popular {
  background: #eef5ff;
  color: #245ea8;
  border-color: #d7e6fb;
}

.engine-badge-choice {
  background: #f3f4f6;
  color: #5b6470;
  border-color: #e3e7ec;
}

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

.engine-chip {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  padding: .5rem .75rem;
  border: 1px solid #e4eaf1;
  border-radius: 999px;
  background: #fff;
  color: #2d3748;
  font-size: .82rem;
  line-height: 1.2;
  transition: .18s ease;
}

.engine-chip:hover {
  color: #0b63ce;
  border-color: #cfe0f4;
  background: #f8fbff;
  box-shadow: 0 6px 14px rgba(20, 30, 50, .06);
}

.engine-chip-title {
  display: inline-block;
  max-width: 210px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chip-badge {
  margin-left: 8px;
  padding: .18rem .42rem;
  border-radius: 999px;
  font-size: .64rem;
  font-weight: 700;
  line-height: 1;
  border: 1px solid transparent;
  flex: 0 0 auto;
}

.chip-badge-top {
  background: #fdf3e3;
  color: #9a6700;
  border-color: #f1dfb7;
}

.chip-badge-popular {
  background: #eef5ff;
  color: #245ea8;
  border-color: #d6e5fb;
}

.chip-badge-choice {
  background: #f3f4f6;
  color: #5b6470;
  border-color: #e2e7ec;
}

/* ===== Типографика статьи ===== */

article h2,
article h3 {
  font-weight: 800;
  color: #1f2933;
  line-height: 1.25;
  letter-spacing: -.01em;
}

article h2 {
  font-size: 1.45rem;
  margin-top: 2rem;
  margin-bottom: 1rem;
  padding-left: .95rem;
  position: relative;
}

article h2:before {
  content: "";
  position: absolute;
  left: 0;
  top: .2rem;
  width: 4px;
  height: calc(100% - .4rem);
  border-radius: 4px;
  background: linear-gradient(180deg, var(--primary), #53a7ff);
}

article h3 {
  font-size: 1.12rem;
  margin-top: 1.45rem;
  margin-bottom: .8rem;
}

/* ===== Хлебные крошки ===== */

.breadcrumb {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: var(--shadow);
  margin-bottom: 1rem;
}

.breadcrumb-item,
.breadcrumb-item a {
  font-size: .9rem;
}

/* ===== Планшеты и ниже ===== */

@media (max-width: 991.98px) {
  .site-header {
    position: static;
  }

  .page-wrap {
    padding-top: 1rem;
  }

  .container {
    max-width: 100%;
  }

  .brand-title {
    font-size: 1.2rem;
  }

  .brand-subtitle,
  .header-info-strip {
    display: none;
  }

  .site-header .container {
    padding-top: .7rem !important;
    padding-bottom: .7rem !important;
  }
}

/* ===== Мобилки ===== */

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

  article.card-soft {
    padding: 1rem !important;
    border-radius: 0 !important;
    margin-left: -10px;
    margin-right: -10px;
    border-left: 0;
    border-right: 0;
    box-shadow: none;
  }

  .widget {
    border-radius: 0 !important;
    margin-left: -10px;
    margin-right: -10px;
    border-left: 0;
    border-right: 0;
    box-shadow: none;
  }

  .breadcrumb {
    border-radius: 0 !important;
    margin-left: -10px;
    margin-right: -10px;
    margin-bottom: .75rem;
    padding: .38rem .75rem !important;
    font-size: .78rem;
    white-space: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    box-shadow: none;
    border-left: 0;
    border-right: 0;
  }

  .breadcrumb .breadcrumb-item + .breadcrumb-item::before {
    padding-right: .35rem;
    padding-left: .35rem;
  }

  .breadcrumb-item,
  .breadcrumb-item a {
    white-space: nowrap;
    font-size: .78rem;
  }

  h1 {
    font-size: 1.45rem !important;
    line-height: 1.2 !important;
  }

  article h2 {
    font-size: 1.22rem;
    margin-top: 1.6rem;
    margin-bottom: .85rem;
    padding-left: .8rem;
  }

  article h3 {
    font-size: 1.02rem;
    margin-top: 1.2rem;
    margin-bottom: .7rem;
  }

  .meta-pill {
    font-size: .73rem;
  }

  .widget-head,
  .widget-body {
    padding-left: .9rem;
    padding-right: .9rem;
  }
}

/* ===== Десктоп ===== */

@media (min-width: 768px) {
  h1 {
    font-size: 1.8rem !important;
    line-height: 1.2 !important;
  }
}