.blog-article-layout {
  display: flex;
  flex-wrap: wrap;
}

.blog-article-layout > .col-lg-9,
.blog-article-layout > .col-md-8,
.blog-article-layout > .col-lg-3,
.blog-article-layout > .col-md-4 {
  float: none;
}

.blog-article-page,
.blog-article-content {
  min-width: 0;
  overflow: visible;
}

.blog-article-content > * {
  max-width: 100% !important;
}

.blog-article-content img,
.blog-article-content iframe,
.blog-article-content video,
.blog-article-content canvas,
.blog-article-content svg {
  max-width: 100% !important;
  height: auto !important;
}

.blog-content-lightbox-trigger {
  position: relative;
  display: block;
  width: fit-content;
  max-width: 100%;
  margin: 0 auto;
  line-height: 0;
  cursor: zoom-in;
}

.blog-content-image-block {
  width: fit-content;
  max-width: 100%;
  margin: 24px auto;
}

.blog-content-image-caption {
  margin-top: 6px;
  color: #4b5563;
  font-size: 15px;
  line-height: 1.5;
  text-align: center;
}

.blog-content-lightbox-image {
  cursor: zoom-in !important;
}

.blog-content-lightbox-trigger::before {
  content: "+";
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 2;
  width: 56px;
  height: 56px;
  margin: -28px 0 0 -28px;
  border-radius: 50%;
  background: rgba(17, 24, 39, 0.72);
  color: #fff;
  font-size: 34px;
  font-weight: 700;
  line-height: 56px;
  text-align: center;
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.2s ease, transform 0.2s ease, background 0.2s ease;
  pointer-events: none;
}

.blog-content-lightbox-trigger::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(17, 24, 39, 0.16);
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
}

.blog-content-lightbox-trigger:hover::before,
.blog-content-lightbox-trigger:focus-within::before {
  opacity: 1;
  transform: scale(1);
  background: rgba(245, 158, 11, 0.92);
}

.blog-content-lightbox-trigger:hover::after,
.blog-content-lightbox-trigger:focus-within::after {
  opacity: 1;
}

.blog-article-content table {
  display: block;
  width: 100% !important;
  max-width: 100% !important;
  overflow-x: auto;
}

.blog-article-content .table-responsive {
  overflow-x: auto;
}

.blog-sidebar {
  position: sticky;
  top: 20px;
  z-index: 2;
}

.blog-box {
  margin-bottom: 20px;
}

.blog-inline-gallery-thumb img {
  cursor: pointer !important;
}

.blog-image-lightbox {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9999;
  width: 100%;
  height: 100%;
}

.blog-image-lightbox-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(20, 24, 28, 0.88);
}

.blog-image-lightbox-dialog {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  padding: 40px 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.blog-image-lightbox-img {
  max-width: 95vw;
  max-height: 90vh;
  width: auto;
  height: auto;
  display: block;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
  border-radius: 6px;
  background: #fff;
  cursor: zoom-out;
}

.blog-image-lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  border: 0;
  border-radius: 999px;
  background: rgba(17, 24, 39, 0.72);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease;
  z-index: 3;
}

.blog-image-lightbox-nav:hover {
  background: rgba(245, 158, 11, 0.95);
}

.blog-image-lightbox-nav span {
  font-size: 34px;
  line-height: 1;
}

.blog-image-lightbox-prev {
  left: 24px;
}

.blog-image-lightbox-next {
  right: 24px;
}

.blog-image-lightbox-close {
  position: absolute;
  top: 18px;
  right: 24px;
  z-index: 3;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 52px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
}

.blog-sidebar-col {
  align-self: flex-start;
}

.blog-article-header,
.blog-article-page {
  display: block !important;
  width: 100% !important;
}

.blog-article-image {
  display: block !important;
  width: 100% !important;
  overflow: hidden;
  margin: 16px 0 8px;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  background: #ffffff;
}

img.blog-hero-img {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  border-radius: 10px;
}

.blog-box-author {
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
}

.blog-author-row {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
}

.blog-author-icon {
  width: 85px;
  height: 85px;
  flex: 0 0 85px;
  margin-bottom: 18px;
}

.blog-author-icon .userpic-gradient {
  width: 85px;
  height: 85px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.blog-author-icon .userpic-inner {
  width: 76px;
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.blog-author-icon svg {
  width: 52px;
  height: 52px;
}

.blog-author-pic {
  width: 85px;
  height: 85px;
  border-radius: 50%;
  display: block;
  object-fit: cover;
}

.blog-sidebar-author-name {
  margin: 0 0 10px;
  font-size: 20px;
  line-height: 1.3;
  font-weight: 700;
  color: #2f3137;
}

.blog-sidebar-author-exp {
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
  color: #4b5563;
}

.blog-article-page,
.blog-sidebar,
.blog-article-meta,
.blog-article-content {
  font-family: "IBM Plex Sans", sans-serif;
  font-size: 18px;
}

.blog-article-header h1,
.blog-article-content h2,
.blog-article-content h3 {
  margin: 0;
  color: #1f2937;
  letter-spacing: -0.03em;
}

.blog-article-header h1 {
  margin-bottom: 18px;
  font-size: 46px;
  line-height: 1.08;
  font-weight: 700;
  letter-spacing: -0.035em;
  max-width: 22ch;
}

.blog-article-content h2 {
  margin-top: 54px;
  margin-bottom: 18px;
  font-size: 38px;
  line-height: 1.12;
  font-weight: 700;
  max-width: 18ch;
}

.blog-article-content h3 {
  margin-top: 34px;
  margin-bottom: 14px;
  font-size: 28px;
  line-height: 1.2;
  font-weight: 700;
  max-width: 22ch;
}

.blog-article-content p,
.blog-article-content ul,
.blog-article-content ol,
.blog-article-content blockquote {
  margin-top: 0;
  margin-bottom: 20px;
}

.blog-article-content p > br:first-child:last-child {
  display: none;
}

.blog-article-content p:empty {
  display: none;
}

.blog-article-content p > br:first-child + .blog-content-lightbox-trigger,
.blog-article-content p > br:first-child + img {
  margin-top: 0;
}

.blog-article-content p > .blog-content-lightbox-trigger + br:last-child,
.blog-article-content p > img + br:last-child {
  display: none;
}

.blog-article-meta {
  margin: 6px 0 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: #6b7280;
  font-size: 15px;
  line-height: 1.5;
}

.blog-article-meta-author {
  display: flex;
  align-items: center;
  gap: 4px;
  color: #6b7280;
}

.blog-article-meta-label {
  color: #6b7280;
  font-weight: 400;
}

.blog-article-meta-value {
  color: #6b7280;
  font-weight: 400;
}

.blog-article-meta-info {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #6b7280;
  text-align: right;
}

.blog-article-meta-info span {
  color: #6b7280;
}

.blog-sidebar .blog-list {
  font-size: 16px;
}

.blog-article-content img {
  display: block;
  max-width: 100%;
  height: auto;
  border: none;
  box-shadow:
    0 1px 4px 0 rgba(0, 0, 0, 0.10),
    0 0 6px 0 rgba(0, 0, 0, 0.10),
    0 2px 2px -2px rgba(0, 0, 0, 0.15);
  margin: 0;
}

.blog-reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  z-index: 9999;
  background: rgba(229, 231, 235, 0.45);
  pointer-events: none;
}

.blog-reading-progress-bar {
  width: 0;
  height: 100%;
  background: #f59e0b;
  transition: width 0.1s linear;
}

.blog-toc-list {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.blog-toc-list li {
  margin-bottom: 10px;
}

.blog-toc-list li:last-child {
  margin-bottom: 0;
}

.blog-toc-link {
  display: block;
  color: #4b5563;
  text-decoration: none !important;
  transition: color 0.2s ease, transform 0.2s ease;
}

.blog-toc-link:hover,
.blog-toc-link:focus {
  color: #f59e0b;
  text-decoration: none !important;
}

.blog-toc-link.is-active {
  color: #f59e0b;
  font-weight: 600;
}

.blog-sidebar .blog-list a {
  color: #4b5563;
  text-decoration: none !important;
  transition: color 0.2s ease;
}

.blog-sidebar .blog-list a:hover,
.blog-sidebar .blog-list a:focus {
  color: #f59e0b;
  text-decoration: none !important;
}

.blog-cats {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.blog-cat-separator {
  color: inherit;
  line-height: 1;
}

.blog-cat-link {
  color: inherit;
  text-decoration: none !important;
  transition: color 0.2s ease;
}

.blog-cat-link:hover,
.blog-cat-link:focus {
  color: #f59e0b;
  text-decoration: none !important;
}

.blog-inline-gallery {
  margin: 24px 0;
}

.blog-inline-gallery-stage {
  display: block;
  width: 100%;
  position: relative;
}

.blog-inline-gallery-main {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 1px;
  border: 0 !important;
  outline: 0 !important;
  border-radius: 0;
  background: #ffffff !important;
  padding: 0;
  margin: 0;
  overflow: visible;
  box-shadow: none !important;
  cursor: zoom-in;
  touch-action: pan-y;
  appearance: none;
  -webkit-appearance: none;
  box-sizing: border-box;
}

.blog-inline-gallery-main::before {
  content: "+";
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 2;
  width: 56px;
  height: 56px;
  margin: -28px 0 0 -28px;
  border-radius: 50%;
  background: rgba(17, 24, 39, 0.72);
  color: #fff;
  font-size: 34px;
  font-weight: 700;
  line-height: 56px;
  text-align: center;
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.2s ease, transform 0.2s ease, background 0.2s ease;
  pointer-events: none;
}

.blog-inline-gallery-main::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(17, 24, 39, 0.16);
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
}

.blog-inline-gallery-main:hover::before,
.blog-inline-gallery-main:focus::before {
  opacity: 1;
  transform: scale(1);
  background: rgba(245, 158, 11, 0.92);
}

.blog-inline-gallery-main:hover::after,
.blog-inline-gallery-main:focus::after {
  opacity: 1;
}

.blog-inline-gallery-main:focus,
.blog-inline-gallery-main:active,
.blog-inline-gallery-main:hover {
  border: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
}

.blog-inline-gallery-main img {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: calc(100% - 20px);
  height: auto;
  border: none;
  outline: 0;
  border-radius: 0;
  box-shadow:
    0 1px 4px 0 rgba(0, 0, 0, 0.10),
    0 0 6px 0 rgba(0, 0, 0, 0.10),
    0 2px 2px -2px rgba(0, 0, 0, 0.15);
  margin: 10px auto;
  user-select: none;
  -webkit-user-drag: none;
  cursor: zoom-in;
}

.blog-inline-gallery-arrow {
  display: none !important;
}

.blog-inline-gallery-caption {
  margin-top: 6px;
  color: #4b5563;
  font-size: 15px;
  line-height: 1.5;
  text-align: center;
}

.blog-inline-gallery-thumbs {
  display: flex;
  gap: 10px;
  margin-top: 14px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.blog-inline-gallery-thumb {
  flex: 0 0 auto;
  width: 108px;
  border: 2px solid transparent;
  border-radius: 10px;
  padding: 0;
  overflow: hidden;
  background: #fff;
  cursor: pointer;
  transition: border-color 0.2s ease, opacity 0.2s ease;
  opacity: 0.72;
}

.blog-inline-gallery-thumb:hover,
.blog-inline-gallery-thumb.is-active {
  border-color: #f59e0b;
  opacity: 1;
}

.blog-inline-gallery-thumb img {
  display: block;
  width: 100%;
  height: 72px;
  object-fit: cover;
}

@media (max-width: 991px) {
  .blog-box-author {
    background: #f7f7f5;
    border: 1px solid #ece7df;
    border-radius: 3px;
    padding: 22px 18px;
    text-align: center;
  }

  .blog-author-row {
    align-items: center;
  }

  .blog-author-icon {
    margin: 0 auto 14px;
  }

  .blog-sidebar-author-name {
    margin: 0;
    text-align: center;
  }

  .blog-sidebar-author-name::before {
    content: "Статья от";
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    line-height: 1.4;
    font-weight: 500;
    color: #7a7a7a;
  }

  .blog-sidebar-author-exp {
    margin-top: 10px;
    text-align: center;
  }
    
  .blog-toc-box {
    display: none !important;
  }
    
  .blog-article-layout {
    display: block;
  }

  .blog-sidebar {
    position: static;
    top: auto;
    margin-top: 30px;
  }

  .blog-image-lightbox-dialog {
    padding: 20px 56px;
  }

  .blog-image-lightbox-close {
    top: 10px;
    right: 16px;
    font-size: 42px;
  }

  .blog-image-lightbox-prev {
    left: 10px;
  }

  .blog-image-lightbox-next {
    right: 10px;
  }

  .blog-image-lightbox-nav {
    width: 42px;
    height: 42px;
  }

  .blog-author-icon {
    width: 72px;
    height: 72px;
    flex-basis: 72px;
    margin-bottom: 14px;
  }

  .blog-author-icon .userpic-gradient {
    width: 72px;
    height: 72px;
  }

  .blog-author-icon .userpic-inner {
    width: 66px;
    height: 66px;
  }

  .blog-author-icon svg {
    width: 44px;
    height: 44px;
  }

  .blog-author-pic {
    width: 72px;
    height: 72px;
  }

  .blog-article-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .blog-article-meta-info {
    text-align: left;
    justify-content: flex-start;
    flex-wrap: wrap;
  }
  
  .blog-article-header h1 {
    margin-bottom: 18px;
    font-size: 40px;
    line-height: 1.08;
    max-width: none;
  }

  .blog-article-content h2 {
    margin-top: 42px;
    margin-bottom: 16px;
    font-size: 31px;
    line-height: 1.14;
    max-width: none;
  }

  .blog-article-content h3 {
    margin-top: 28px;
    margin-bottom: 12px;
    font-size: 24px;
    line-height: 1.22;
    max-width: none;
  }

  .blog-inline-gallery-thumb {
    width: 88px;
  }

  .blog-inline-gallery-thumb img {
    height: 60px;
  }
}

@media (max-width: 575px) {
  .blog-toc-box {
    display: none !important;
  }
    
  .blog-article-header h1 {
    font-size: 34px;
    line-height: 1.1;
    letter-spacing: -0.035em;
  }

  .blog-article-content h2 {
    margin-top: 34px;
    margin-bottom: 14px;
    font-size: 27px;
    line-height: 1.16;
    letter-spacing: -0.03em;
  }

  .blog-article-content h3 {
    margin-top: 24px;
    margin-bottom: 10px;
    font-size: 21px;
    line-height: 1.24;
    letter-spacing: -0.025em;
  }
}

.tb-blog-cta {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 9998;
  width: 340px;
  max-width: calc(100vw - 24px);
  padding: 22px 22px 22px;
  border-radius: 16px;
  background: linear-gradient(135deg, #1e3a8a 0%, #1d4ed8 100%);
  color: #ffffff;
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.32);
  opacity: 0;
  visibility: hidden;
  transform: translate3d(0, 20px, 0);
  transition: opacity 0.28s ease, transform 0.28s ease, visibility 0.28s ease;
  pointer-events: none;
}

.tb-blog-cta.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translate3d(0, 0, 0);
  pointer-events: auto;
}

.tb-blog-cta-body {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
}

.tb-blog-cta-title {
  padding-right: 28px;
  font-size: 24px;
  line-height: 1.18;
  font-weight: 700;
  color: #ffffff;
}

.tb-blog-cta-text {
  font-size: 17px;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.94);
}

.tb-blog-cta-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: center;
  min-height: 50px;
  padding: 14px 18px;
  border-radius: 14px;
  background: #ffffff;
  color: #1e3a8a;
  text-decoration: none;
  text-align: center;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.18);
  transition: background-color 0.22s ease, color 0.22s ease, box-shadow 0.22s ease, transform 0.22s ease;
}

.tb-blog-cta-link:hover,
.tb-blog-cta-link:focus {
  background: #eff4ff;
  color: #17327b;
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.22);
}

.tb-blog-cta-link:active {
  transform: translateY(0);
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.16);
}

.tb-blog-cta-link:focus {
  outline: none;
}

.tb-blog-cta-link:focus-visible {
  outline: none;
  box-shadow:
    0 0 0 3px rgba(255, 255, 255, 0.3),
    0 14px 28px rgba(15, 23, 42, 0.22);
}

.tb-blog-cta-button-text {
  display: block;
  font-size: 16px;
  line-height: 1.25;
  font-weight: 700;
  color: inherit;
}

.tb-blog-cta-note {
  align-self: center;
  text-align: center;
  font-size: 13px;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.78);
}

.tb-blog-cta-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.tb-blog-cta-close:hover,
.tb-blog-cta-close:focus {
  background: rgba(255, 255, 255, 0.24);
  transform: scale(1.05);
}

@media (max-width: 767px) {
  .tb-blog-cta {
    left: 12px;
    right: 12px;
    bottom: 12px;
    width: auto;
    max-width: none;
    padding: 18px 18px 18px;
    border-radius: 15px;
  }

  .tb-blog-cta-title {
    font-size: 20px;
    padding-right: 26px;
  }

  .tb-blog-cta-text {
    font-size: 15px;
    line-height: 1.35;
  }

  .tb-blog-cta-link {
    width: 100%;
    min-height: 48px;
    padding: 13px 16px;
  }

  .tb-blog-cta-button-text {
    font-size: 15px;
  }

  .tb-blog-cta-note {
    font-size: 12px;
  }
}

.tb-inline-demo {
  margin: 32px 0;
  padding: 1px 24px 24px;
  border: 1px solid #d9e2ec;
  border-radius: 16px;
  background: #f1f5f9;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.05);
}

.tb-inline-demo-header {
  margin-bottom: 16px;
}

.blog-article-content .tb-inline-demo-title {
  margin: 20px 0 8px !important;
  font-size: 28px;
  line-height: 1.18;
  font-weight: 700;
  color: #0f172a;
  max-width: none;
}

.blog-article-content .tb-inline-demo-subtitle {
  margin: 0 !important;
  font-size: 16px;
  line-height: 1.45;
  color: #475569;
}

.tb-inline-demo-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tb-inline-demo-bet {
  position: relative;
  padding: 18px 18px 16px;
  border: 1px solid #dbe4f0;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
}

.tb-inline-demo-bet-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.tb-inline-demo-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.tb-inline-demo-label {
  font-size: 13px;
  line-height: 1.35;
  font-weight: 600;
  color: #334155;
}

.tb-inline-demo-input,
.tb-inline-demo-select {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  background: #ffffff;
  color: #0f172a;
  font-size: 15px;
  line-height: 1.35;
  box-sizing: border-box;
  transition: border-color 0.22s ease, box-shadow 0.22s ease;
}

.tb-inline-demo-input:focus,
.tb-inline-demo-select:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.tb-inline-demo-remove {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 999px;
  background: #f8fafc;
  color: #64748b;
  font-size: 18px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: inset 0 0 0 1px #e2e8f0;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.tb-inline-demo-remove:hover,
.tb-inline-demo-remove:focus {
  outline: none;
  background: #fff1f2;
  color: #dc2626;
  box-shadow: inset 0 0 0 1px #fecdd3;
  transform: scale(1.05);
}

.tb-inline-demo-add {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  margin-top: 14px;
  padding: 11px 16px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  background: #ffffff;
  color: #0f172a;
  font-size: 15px;
  line-height: 1.3;
  font-weight: 400;
  cursor: pointer;
  transition: background-color 0.22s ease, border-color 0.22s ease, transform 0.22s ease;
}

.tb-inline-demo-add:hover,
.tb-inline-demo-add:focus {
  outline: none;
  background: #f8fafc;
  border-color: #94a3b8;
  transform: translateY(-1px);
}

.tb-inline-demo-add:active {
  transform: translateY(0);
}

.tb-inline-demo-add[disabled] {
  opacity: 0.55;
  cursor: default;
  transform: none;
}

.tb-inline-demo-summary {
  margin-top: 18px;
  padding: 16px 18px;
  border-radius: 14px;
  background: #f8fafc;
  border: 1px solid #dbe4f0;
}

.tb-inline-demo-summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.tb-inline-demo-summary-row + .tb-inline-demo-summary-row {
  margin-top: 10px;
}

.tb-inline-demo-summary-label {
  font-size: 15px;
  line-height: 1.4;
  font-weight: 700;
  color: #334155;
}

.tb-inline-demo-summary-value {
  font-size: 18px;
  line-height: 1.3;
  font-weight: 700;
  color: #0f172a;
}

.tb-inline-demo-summary-value.is-positive {
  color: #15803d;
}

.tb-inline-demo-summary-value.is-negative {
  color: #dc2626;
}

.tb-inline-demo-summary-value.is-neutral {
  color: #475569;
}

.blog-article-content .tb-inline-demo-text {
  margin: 16px 0 0 !important;
  font-size: 15px;
  line-height: 1.5;
  color: #475569;
  text-align: left;
}

.tb-inline-demo-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  margin: 18px auto 0;
  min-height: 48px;
  padding: 13px 20px;
  border-radius: 12px;
  background: #1e3a8a;
  color: #ffffff;
  text-decoration: none;
  font-size: 15px;
  line-height: 1.3;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(30, 58, 138, 0.22);
  transition: background-color 0.22s ease, box-shadow 0.22s ease, transform 0.22s ease;
}

.tb-inline-demo-cta:hover,
.tb-inline-demo-cta:focus {
  outline: none;
  background: #1b347c;
  color: #ffffff;
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 12px 26px rgba(30, 58, 138, 0.26);
}

.tb-inline-demo-cta:active {
  transform: translateY(0);
  box-shadow: 0 6px 16px rgba(30, 58, 138, 0.2);
}

.tb-inline-demo-cta:focus-visible {
  outline: none;
  box-shadow:
    0 0 0 3px rgba(37, 99, 235, 0.16),
    0 12px 26px rgba(30, 58, 138, 0.26);
}

.tb-inline-demo-note {
  display: block;
  width: fit-content;
  margin: 12px auto 0;
  text-align: center;
  font-size: 13px;
  line-height: 1.4;
  color: #64748b;
}

@media (max-width: 767px) {
  .tb-inline-demo {
    margin: 24px 0;
    padding: 16px 18px 18px;
    border-radius: 14px;
  }

  .tb-inline-demo-title {
    font-size: 24px;
  }

  .tb-inline-demo-subtitle {
    font-size: 15px;
  }

  .tb-inline-demo-bet {
    padding: 16px 16px 14px;
  }

  .tb-inline-demo-bet-grid {
    grid-template-columns: 1fr;
    margin-top: 12px;
  }

  .tb-inline-demo-summary {
    padding: 14px 16px;
  }

  .tb-inline-demo-summary-value {
    font-size: 17px;
  }

  .tb-inline-demo-text {
    margin-top: 20px;
  }

  .tb-inline-demo-cta {
    width: 100%;
  }
}
