/* Блог — базовый слой (как на странице политики), список и статья */

.blog-articles {
    background: #fff;
    border: 1px solid #eae8e8;
    border-radius: 10px;
    margin: 20px auto;
    padding: 1.5rem 2rem;
}

@media (max-width: 450px) {
    .blog-articles {
        padding: 10px;
    }
}

.blog-articles a:not(.blog-tile) {
    color: #1d6d9a;
    border-bottom: 1px dashed #1d6d9a;
}

/* Только изображения в тексте статьи и обложка — не билет в .blog-pdd-widget */
.blog-article__body img,
.blog-article__content > p > img {
    width: 100%;
    border-radius: 20px;
}

body.dark .blog-articles {
    border: 1px solid #4e4e4e;
    background-color: #2c2c2c;
}

/* Явно фиксируем стиль главной контентной зоны блога как на остальных страницах */
.blog-main-zone {
    background: white;
    border: 1px solid #eae8e8;
    border-radius: 10px;
    margin: 20px auto;
}

body.dark .blog-main-zone {
    border: 1px solid #4e4e4e;
    background-color: #2c2c2c;
}

.blog-page__wrapper {
    max-width: 720px;
    margin: 0 auto;
}

.blog-breadcrumbs {
    margin-bottom: 10px;
    font-size: 14px;
    color: #666;
}

.blog-breadcrumbs a {
    color: #2785b7;
    text-decoration: none;
}

.blog-breadcrumbs a:hover {
    text-decoration: underline;
}

.blog-breadcrumbs__sep {
    margin: 0 6px;
    color: #999;
}

.blog-breadcrumbs__current {
    color: #666;
}

body.dark .blog-breadcrumbs {
    color: #b0b0b0;
}

body.dark .blog-breadcrumbs a {
    color: #5a9fd4;
}

body.dark .blog-breadcrumbs__sep {
    color: #7d7d7d;
}

body.dark .blog-breadcrumbs__current {
    color: #b0b0b0;
}

.blog-list__title {
    font-size: 1.25rem;
    margin: 0 0 1.25rem;
    color: #333;
}

body.dark .blog-list__title {
    color: #e0e0e0;
}

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

.blog-list__items--tiles {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    margin-top: 1.25rem;
}

.blog-list__items--tiles .blog-list__item {
    margin-bottom: 0;
}

.blog-list__item {
    margin-bottom: 1.5rem;
}

.blog-list__item:last-child {
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .blog-list__items--tiles {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }
}

@media (max-width: 520px) {
    .blog-list__items--tiles {
        grid-template-columns: 1fr;
    }
}

.blog-card {
    background: #fff;
    border: 1px solid #eae8e8;
    border-radius: 10px;
    padding: 1.25rem 1.5rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.blog-card:hover {
    border-color: #2785b7;
    box-shadow: 0 2px 8px rgba(39, 133, 183, 0.12);
}

body.dark .blog-card {
    background: #2c2c2c;
    border-color: #4e4e4e;
}

body.dark .blog-card:hover {
    border-color: #5a9fd4;
}

.blog-card__date {
    display: block;
    font-size: 0.875rem;
    color: #666;
    margin-bottom: 0.5rem;
}

body.dark .blog-card__date {
    color: #aaa;
}

.blog-card__title {
    margin: 0 0 0.5rem;
    font-size: 1.125rem;
    line-height: 1.35;
}

.blog-card__link {
    color: #2785b7;
    text-decoration: none;
}

.blog-card__link:hover {
    text-decoration: underline;
}

body.dark .blog-card__link {
    color: #5a9fd4;
}

.blog-card__description {
    margin: 0;
    font-size: 0.9375rem;
    line-height: 1.5;
    color: #555;
}

body.dark .blog-card__description {
    color: #b0b0b0;
}

.blog-list__empty {
    color: #666;
    margin: 0;
}

body.dark .blog-list__empty {
    color: #aaa;
}

.blog-tile {
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 1px solid #e4e4e4;
    border-radius: 10px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    background: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.blog-tile:hover {
    border-color: #2785b7;
    box-shadow: 0 4px 16px rgba(39, 133, 183, 0.15);
}

.blog-tile__image-wrap {
    display: block;
    width: 100%;
    height: 160px;
    flex-shrink: 0;
    background: #f2f2f2;
}

.blog-tile__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.blog-tile__body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 14px 16px 16px;
}

.blog-tile__title {
    display: block;
    font-size: 1.0625rem;
    line-height: 1.35;
    font-weight: 700;
    color: #2785b7;
}

.blog-tile__description {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
    margin-top: 8px;
    margin-bottom: 10px;
    color: #555;
    line-height: 1.5;
    font-size: 0.9375rem;
    flex: 1;
}

.blog-tile__button {
    display: inline-block;
    align-self: flex-start;
    margin-top: auto;
    padding: 8px 14px;
    border-radius: 8px;
    background: #2785b7;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    border-bottom: none !important;
}

body.dark .blog-tile {
    background: #333;
    border-color: #4e4e4e;
}

body.dark .blog-tile:hover {
    border-color: #5a9fd4;
}

body.dark .blog-tile__image-wrap {
    background: #2f2f2f;
}

body.dark .blog-tile__title {
    color: #e8e8e8;
}

body.dark .blog-tile__description {
    color: #b6b6b6;
}

.blog-pagination {
    margin-top: 18px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.blog-pagination__item {
    display: inline-block;
    min-width: 36px;
    text-align: center;
    border: 1px solid #d8d8d8;
    border-radius: 8px;
    padding: 7px 10px;
    text-decoration: none;
    color: #333;
    background: transparent;
}

.blog-pagination__item:hover {
    border-color: #2785b7;
    color: #2785b7;
}

.blog-pagination__item--active {
    border-color: #2785b7;
    color: #fff;
    background: #2785b7;
    font-weight: 700;
}

body.dark .blog-pagination__item {
    border-color: #4e4e4e;
    color: #d8d8d8;
}

body.dark .blog-pagination__item:hover {
    border-color: #5a9fd4;
    color: #5a9fd4;
}

body.dark .blog-pagination__item--active {
    border-color: #5a9fd4;
    background: #5a9fd4;
    color: #1d1d1d;
}

/* Страница одной статьи */

.blog-article {
    padding: 1.5rem 0 2rem;
}

.blog-article__wrapper {
    max-width: 720px;
    margin: 0 auto;
}

.blog-article__content {
    /* Базовый фон и рамка заданы у обёртки .blog-articles.wrapper */
}

.blog-article__header {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eee;
}

body.dark .blog-article__header {
    border-bottom-color: #4e4e4e;
}

.blog-article__breadcrumbs {
    margin-bottom: 10px;
    font-size: 14px;
    color: #666;
}

.blog-article__breadcrumbs a {
    color: #2785b7;
    text-decoration: none;
}

.blog-article__breadcrumbs a:hover {
    text-decoration: underline;
}

.blog-article__breadcrumbs-sep {
    margin: 0 6px;
    color: #999;
}

.blog-article__breadcrumbs-current {
    color: #666;
}

body.dark .blog-article__breadcrumbs {
    color: #b0b0b0;
}

body.dark .blog-article__breadcrumbs a {
    color: #5a9fd4;
}

body.dark .blog-article__breadcrumbs-sep {
    color: #7d7d7d;
}

body.dark .blog-article__breadcrumbs-current {
    color: #b0b0b0;
}

.blog-article__date {
    display: block;
    font-size: 0.875rem;
    color: #666;
    margin-bottom: 0.5rem;
}

body.dark .blog-article__date {
    color: #aaa;
}

.blog-article__title {
    margin: 0;
    font-size: 2rem;
    line-height: 1.3;
    color: #222;
}

body.dark .blog-article__title {
    color: #e8e8e8;
}

.blog-article__body {
    line-height: 1.6;
}

.blog-toc {
    margin: 0 0 1.25rem;
    padding: 12px 14px;
    border: 1px solid #e4e4e4;
    border-radius: 8px;
    background: #fafafa;
}

.blog-toc__title {
    margin: 0 0 8px;
    font-weight: 700;
    color: #333;
}

.blog-toc__list {
    margin: 0;
    padding-left: 1.2rem;
}

.blog-toc__item {
    margin: 4px 0;
}

.blog-toc__item a {
    color: #2785b7;
    text-decoration: none;
}

.blog-toc__item a:hover {
    color: #325884;
}

.blog-toc__item--level-3,
.blog-toc__item--level-4,
.blog-toc__item--level-5,
.blog-toc__item--level-6 {
    margin-left: 14px;
}

body.dark .blog-toc {
    border-color: #4e4e4e;
    background: #2f2f2f;
}

body.dark .blog-toc__title {
    color: #e2e2e2;
}

body.dark .blog-toc__item a {
    color: #5a9fd4;
}

.blog-article__body h2 {
    font-size: 1.8rem;
    margin: 1.5rem 0 0.75rem;
    color: #333;
}

body.dark .blog-article__body h2 {
    color: #ddd;
}

.blog-article__body p {
    margin: 0 0 1rem;
}

.blog-article__body p:last-child {
    margin-bottom: 0;
}

.blog-article__body ul {
    margin: 0 0 1rem;
    padding-left: 1.5rem;
}

.blog-article__body code {
    background: #f0f0f0;
    padding: 0.15em 0.4em;
    border-radius: 4px;
    font-size: 0.9em;
}

body.dark .blog-article__body code {
    background: #3a3a3a;
    color: #ddd;
}

.blog-article__footer {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid #eee;
}

body.dark .blog-article__footer {
    border-top-color: #4e4e4e;
}

.blog-article__back {
    color: #2785b7;
    text-decoration: none;
    font-size: 0.9375rem;
}

.blog-article__back:hover {
    text-decoration: underline;
}

body.dark .blog-article__back {
    color: #5a9fd4;
}

/* КАСТОМНЫЙ CSS для статей */

.pdd-article__learning-scheme {
    margin: 28px 0;
    padding: 24px;
    border-radius: 22px;
    background: #f5f8ff;
    border: 1px solid #dbe7ff;
  }
  
  .pdd-article__learning-scheme-head {
    margin-bottom: 22px;
  }
  
  .pdd-article__learning-scheme-title {
    margin: 0 0 10px;
    font-size: 26px;
    font-weight: 700;
    line-height: 1.25;
    color: #1f2937;
  }
  
  .pdd-article__learning-scheme-intro {
    margin: 0;
    font-size: 16px;
    line-height: 1.6;
    color: #4b5563;
  }
  
  .pdd-article__learning-steps {
    display: flex;
    flex-direction: column;
    gap: 14px;
  }
  
  .pdd-article__learning-step {
    position: relative;
    display: flex;
    align-items: stretch;
    gap: 14px;
  }
  
  .pdd-article__learning-step:not(:last-child)::after {
    content: "";
    position: absolute;
    left: 21px;
    top: 46px;
    bottom: -14px;
    width: 2px;
    background: #bfd0fa;
  }
  
  .pdd-article__learning-step-number {
    position: relative;
    z-index: 2;
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    margin-top: 6px;
    border-radius: 50%;
    background: #2785b9;
    color: #ffffff;
    font-size: 18px;
    font-weight: 700;
    line-height: 44px;
    text-align: center;
    box-shadow: 0 8px 18px rgba(37, 99, 235, 0.22);
  }
  
  .pdd-article__learning-step-card {
    flex: 1;
    min-width: 0;
    padding: 16px 18px;
    border-radius: 18px;
    background: #ffffff;
    border: 1px solid #e5edff;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
  }
  
  .pdd-article__learning-step-title {
    margin: 0 0 6px;
    font-size: 19px;
    font-weight: 700;
    line-height: 1.3;
    color: #111827;
  }
  
  .pdd-article__learning-step-text {
    margin: 0;
    font-size: 15px;
    line-height: 1.55;
    color: #4b5563;
  }
  
  @media (max-width: 620px) {
    .pdd-article__learning-scheme {
      padding: 18px;
      border-radius: 18px;
    }
  
    .pdd-article__learning-scheme-title {
      font-size: 22px;
    }
  
    .pdd-article__learning-step {
      gap: 10px;
    }
  
    .pdd-article__learning-step-number {
      flex-basis: 36px;
      width: 36px;
      height: 36px;
      margin-top: 8px;
      font-size: 16px;
      line-height: 36px;
    }
  
    .pdd-article__learning-step:not(:last-child)::after {
      left: 17px;
      top: 46px;
    }
  
    .pdd-article__learning-step-card {
      padding: 14px 15px;
      border-radius: 16px;
    }
  
    .pdd-article__learning-step-title {
      font-size: 18px;
    }
  
    .pdd-article__learning-step-text {
      font-size: 14px;
    }
  }

  .pdd-article__topic-slider {
    margin: 28px 0;
    padding: 22px;
    border-radius: 22px;
    background: #f5f8ff;
    border: 1px solid #dbe7ff;
  }
  
  .pdd-article__topic-slider-head {
    margin-bottom: 16px;
  }
  
  .pdd-article__topic-slider-title {
    margin: 0 0 8px;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.25;
    color: #1f2937;
  }
  
  .pdd-article__topic-slider-text {
    margin: 0;
    font-size: 16px;
    line-height: 1.55;
    color: #4b5563;
  }
  
  .pdd-article__topic-slider-wrap {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
  }
  
  .pdd-article__topic-slider-track {
    display: flex;
    gap: 12px;
    flex: 1;
    min-width: 0;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    padding: 2px 1px 10px;
  }
  
  .pdd-article__topic-slider-track::-webkit-scrollbar {
    display: none;
  }
  
  .pdd-article__topic-slide {
    flex: 0 0 250px;
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 76px;
    padding: 14px 16px;
    border-radius: 18px;
    background: #ffffff;
    border: 1px solid #e5edff !important;
    text-decoration: none;
    scroll-snap-align: start;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  }
  
  .pdd-article__topic-slide:hover {
    transform: translateY(-2px);
    border-color: #bfd0fa;
    box-shadow: 0px 4px 18px rgba(15, 23, 42, 0.1);
  }
  
  .pdd-article__topic-slide-number {
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #2785b9;
    color: #ffffff;
    font-size: 17px;
    font-weight: 700;
    line-height: 38px;
    text-align: center;
  }
  
  .pdd-article__topic-slide-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
  }
  
  .pdd-article__topic-slide-title {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.25;
    color: #111827;
  }
  
  .pdd-article__topic-slide-count {
    font-size: 14px;
    line-height: 1.3;
    color: #6b7280;
  }
  
  .pdd-article__topic-slide--all {
    justify-content: center;
    text-align: center;
    background: #2785b9;
    border-color: #2785b9;
  }
  
  .pdd-article__topic-slide--all .pdd-article__topic-slide-title,
  .pdd-article__topic-slide--all .pdd-article__topic-slide-count {
    color: #ffffff;
  }
  
  .pdd-article__topic-slider-nav {
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #ffffff;
    color: #2785b9;
    cursor: pointer;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.1);
  
    display: flex;
    align-items: center;
    justify-content: center;
  
    font-size: 0;
    line-height: 1;
  }
  
  .pdd-article__topic-slider-nav::before {
    display: block;
    font-size: 24px;
    font-weight: 700;
    line-height: 1;
    color: currentColor;
    transform: translateY(-1px);
  }
  
  .pdd-article__topic-slider-nav--prev::before {
    content: "‹";
  }
  
  .pdd-article__topic-slider-nav--next::before {
    content: "›";
  }
  
  .pdd-article__topic-slider-nav:hover {
    background: #2785b9;
    color: #ffffff;
  }
  
  .pdd-article__topic-slider-nav:hover {
    background: #2785b9;
    color: #ffffff;
  }
  
  @media (max-width: 620px) {
    .pdd-article__topic-slider {
      padding: 18px;
      border-radius: 18px;
    }
  
    .pdd-article__topic-slider-title {
      font-size: 22px;
    }
  
    .pdd-article__topic-slider-wrap {
      gap: 0;
    }
  
    .pdd-article__topic-slider-nav {
      display: none;
    }
  
    .pdd-article__topic-slide {
      flex-basis: 230px;
    }
  }

  .pdd-article__training-cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin: 26px 0;
  }
  
  .pdd-article__training-card {
    position: relative;
    padding: 20px;
    border-radius: 20px;
    background: #ffffff;
    border: 1px solid rgba(39, 133, 185, 0.22);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.07);
    overflow: hidden;
  }
  
  .pdd-article__training-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 4px;
    background: #2785b9;
  }
  
  .pdd-article__training-card-content {
    min-width: 0;
  }
  
  .pdd-article__training-card-title {
    margin: 0 0 8px;
    font-size: 19px;
    font-weight: 700;
    line-height: 1.3;
    color: #111827;
  }
  
  .pdd-article__training-card-text {
    margin: 0;
    font-size: 15px;
    line-height: 1.6;
    color: #4b5563;
  }
  
  @media (max-width: 900px) {
    .pdd-article__training-cards {
      grid-template-columns: 1fr;
    }
  
    .pdd-article__training-card {
      padding: 18px;
    }
  }
  
  @media (max-width: 520px) {
    .pdd-article__training-card {
      padding: 16px;
      border-radius: 18px;
    }
  
    .pdd-article__training-card-title {
      font-size: 18px;
    }
  
    .pdd-article__training-card-text {
      font-size: 14px;
    }
  }

  .pdd-prep-table-wrap {
    margin: 24px 0;
    overflow-x: auto;
  }
  
  .pdd-prep-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: #fff;
    border: 1px solid #dce8f1;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(39, 133, 185, 0.08);
    font-size: 15px;
    line-height: 1.5;
  }
  
  .pdd-prep-table th {
    background: linear-gradient(135deg, #2785b9, #1f74a3);
    color: #fff;
    text-align: left;
    font-weight: 700;
    padding: 15px 18px;
    border-right: 1px solid rgba(255,255,255,0.22);
  }
  
  .pdd-prep-table th:last-child {
    border-right: 0;
  }
  
  .pdd-prep-table td {
    padding: 16px 18px;
    vertical-align: top;
    border-bottom: 1px solid #e8f0f6;
    border-right: 1px solid #e8f0f6;
    color: #263238;
  }
  
  .pdd-prep-table td:last-child {
    border-right: 0;
  }
  
  .pdd-prep-table tr:last-child td {
    border-bottom: 0;
  }
  
  .pdd-prep-table tbody tr:nth-child(even) {
    background: #f7fbfe;
  }
  
  .pdd-prep-table tbody tr:hover {
    background: #eef7fc;
  }
  
  .pdd-prep-table td:first-child {
    width: 180px;
    font-weight: 700;
    color: #1f74a3;
    white-space: nowrap;
  }
  
  .pdd-prep-table td:nth-child(2) {
    width: 48%;
  }
  
  .pdd-prep-table td:nth-child(3) {
    color: #40515c;
  }
  
  /* Мобильная версия: таблица превращается в карточки */
  @media (max-width: 700px) {
    .pdd-prep-table-wrap {
      overflow: visible;
    }
  
    .pdd-prep-table,
    .pdd-prep-table thead,
    .pdd-prep-table tbody,
    .pdd-prep-table tr,
    .pdd-prep-table th,
    .pdd-prep-table td {
      display: block;
    }
  
    .pdd-prep-table {
      border: 0;
      box-shadow: none;
      background: transparent;
    }
  
    .pdd-prep-table thead {
      display: none;
    }
  
    .pdd-prep-table tr {
      margin-bottom: 14px;
      background: #fff;
      border: 1px solid #dce8f1;
      border-radius: 14px;
      overflow: hidden;
      box-shadow: 0 6px 18px rgba(39, 133, 185, 0.08);
    }
  
    .pdd-prep-table tbody tr:nth-child(even),
    .pdd-prep-table tbody tr:hover {
      background: #fff;
    }
  
    .pdd-prep-table td {
      width: auto !important;
      border-right: 0;
      border-bottom: 1px solid #e8f0f6;
      padding: 12px 14px;
      white-space: normal;
    }
  
    .pdd-prep-table td:last-child {
      border-bottom: 0;
    }
  
    .pdd-prep-table td::before {
      content: attr(data-label);
      display: block;
      margin-bottom: 4px;
      font-size: 12px;
      line-height: 1.3;
      font-weight: 700;
      color: #7a8b96;
    }
  
    .pdd-prep-table td:first-child {
      background: #eef7fc;
      color: #1f74a3;
      font-size: 16px;
    }
  
    .pdd-prep-table td:first-child::before {
      color: #5d8ca8;
    }
  }

  .pdd-reaction {
    --pdd-blue: #2785b9;
    --pdd-blue-dark: #176a96;
    --pdd-blue-soft: #eef8fc;
    --pdd-yellow: #fff4d8;
    --pdd-orange: #f59e0b;
    --pdd-red: #ef4444;
    --pdd-green: #22a06b;
    --pdd-text: #263238;
    --pdd-muted: #60717b;
    --pdd-border: #dbe8ef;
    --pdd-card: #ffffff;

    color: var(--pdd-text);
    font-size: 16px;
    line-height: 1.65;
}

.pdd-reaction * {
    box-sizing: border-box;
}

.pdd-reaction a {
    color: var(--pdd-blue-dark);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.pdd-reaction h1,
.pdd-reaction h2,
.pdd-reaction h3 {
    line-height: 1.25;
    color: #17242b;
}

.pdd-reaction h2 {
    margin: 0;
    margin-top: 10px;
    margin-bottom: 20px;
    font-size: 28px;
}

.pdd-reaction h3 {
    margin: 24px 0 10px;
    font-size: 20px;
}

.pdd-reaction p {
    margin: 0 0 16px;
}

.pdd-reaction__hero {
    position: relative;
    overflow: hidden;
    margin: 0 0 30px;
    padding: 34px;
    border-radius: 24px;
    background:
        radial-gradient(circle at top right, rgba(255,255,255,.65), transparent 32%),
        linear-gradient(135deg, #e9f7ff 0%, #f6fbff 45%, #ffffff 100%);
    border: 1px solid var(--pdd-border);
}

.pdd-reaction__hero:before {
    content: "";
    position: absolute;
    right: -70px;
    bottom: -90px;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    background: rgba(39, 133, 185, .12);
}

.pdd-reaction__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    padding: 6px 12px;
    border-radius: 999px;
    background: #ffffff;
    color: var(--pdd-blue-dark);
    font-size: 14px;
    font-weight: 700;
    box-shadow: 0 6px 18px rgba(39, 133, 185, .12);
}

.pdd-reaction__badge:before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--pdd-blue);
}

.pdd-reaction__hero h1 {
    position: relative;
    max-width: 820px;
    margin: 0 0 16px;
    font-size: 36px;
}

.pdd-reaction__lead {
    position: relative;
    max-width: 760px;
    margin: 0;
    color: #40515a;
    font-size: 18px;
}

.pdd-reaction__stats {
    position: relative;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-top: 26px;
}

.pdd-reaction__stat {
    padding: 18px;
    border-radius: 18px;
    background: #ffffff;
    border: 1px solid var(--pdd-border);
    box-shadow: 0 12px 28px rgba(39, 133, 185, .09);
}

.pdd-reaction__stat strong {
    display: block;
    margin-bottom: 4px;
    color: var(--pdd-blue-dark);
    font-size: 30px;
    line-height: 1;
}

.pdd-reaction__stat span {
    display: block;
    color: var(--pdd-muted);
    font-size: 14px;
    line-height: 1.4;
}

.pdd-reaction__card {
    margin: 22px 0;
    padding: 24px;
    border-radius: 22px;
    background: var(--pdd-card);
    border: 1px solid var(--pdd-border);
    box-shadow: 0 12px 30px rgba(16, 58, 86, .07);
}

.pdd-reaction__note {
    margin: 24px 0;
    padding: 20px 22px;
    border-radius: 18px;
    background: var(--pdd-blue-soft);
    border-left: 5px solid var(--pdd-blue);
}

.pdd-reaction__note strong {
    color: var(--pdd-blue-dark);
}

.pdd-reaction__warning {
    margin: 24px 0;
    padding: 20px 22px;
    border-radius: 18px;
    background: var(--pdd-yellow);
    border-left: 5px solid var(--pdd-orange);
}

.pdd-reaction__danger {
    margin: 24px 0;
    padding: 20px 22px;
    border-radius: 18px;
    background: #fff1f1;
    border-left: 5px solid var(--pdd-red);
}

.pdd-reaction__steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin: 22px 0;
    counter-reset: reaction-step;
}

.pdd-reaction__step {
    position: relative;
    min-height: 130px;
    padding: 18px;
    border-radius: 18px;
    background: #ffffff;
    border: 1px solid var(--pdd-border);
    box-shadow: 0 10px 24px rgba(16, 58, 86, .06);
    counter-increment: reaction-step;
}

.pdd-reaction__step:before {
    content: counter(reaction-step);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    margin-bottom: 12px;
    border-radius: 50%;
    background: var(--pdd-blue);
    color: #ffffff;
    font-weight: 700;
}

.pdd-reaction__step strong {
    display: block;
    margin-bottom: 5px;
    color: #17242b;
}

.pdd-reaction__step span {
    display: block;
    color: var(--pdd-muted);
    font-size: 14px;
    line-height: 1.45;
}

.pdd-reaction__formula {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin: 24px 0;
    padding: 20px;
    border-radius: 20px;
    background: linear-gradient(135deg, #f8fcff, #eef8fc);
    border: 1px solid var(--pdd-border);
}

.pdd-reaction__formula span {
    padding: 10px 14px;
    border-radius: 14px;
    background: #ffffff;
    border: 1px solid var(--pdd-border);
    font-weight: 700;
}

.pdd-reaction__formula b {
    color: var(--pdd-blue-dark);
    font-size: 22px;
}

.pdd-reaction__table-wrap {
    overflow-x: auto;
    margin: 24px 0;
    border-radius: 18px;
    border: 1px solid var(--pdd-border);
    box-shadow: 0 10px 24px rgba(16, 58, 86, .06);
}

.pdd-reaction__table {
    width: 100%;
    min-width: 520px;
    border-collapse: collapse;
    background: #ffffff;
}

.pdd-reaction__table th,
.pdd-reaction__table td {
    padding: 15px 18px;
    border-bottom: 1px solid var(--pdd-border);
    text-align: left;
}

.pdd-reaction__table th {
    background: var(--pdd-blue);
    color: #ffffff;
    font-weight: 700;
}

.pdd-reaction__table tr:last-child td {
    border-bottom: none;
}

.pdd-reaction__table td:last-child {
    font-weight: 700;
    color: var(--pdd-blue-dark);
}

.pdd-reaction__paths {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin: 22px 0;
}

.pdd-reaction__path {
    padding: 20px;
    border-radius: 20px;
    background: #ffffff;
    border: 1px solid var(--pdd-border);
    box-shadow: 0 10px 24px rgba(16, 58, 86, .06);
}

.pdd-reaction__path-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    margin-bottom: 12px;
    border-radius: 14px;
    background: var(--pdd-blue-soft);
    color: var(--pdd-blue-dark);
    font-weight: 800;
}

.pdd-reaction__path strong {
    display: block;
    margin-bottom: 7px;
    font-size: 18px;
}

.pdd-reaction__path p {
    margin: 0;
    color: var(--pdd-muted);
    font-size: 15px;
}

.pdd-reaction__factors {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    margin: 22px 0;
}

.pdd-reaction__factor {
    padding: 20px;
    border-radius: 20px;
    background: #ffffff;
    border: 1px solid var(--pdd-border);
    box-shadow: 0 10px 24px rgba(16, 58, 86, .06);
}

.pdd-reaction__factor-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    font-weight: 800;
    color: #17242b;
}

.pdd-reaction__factor-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    border-radius: 13px;
    background: var(--pdd-blue-soft);
    color: var(--pdd-blue-dark);
}

.pdd-reaction__factor p {
    margin: 0;
    color: var(--pdd-muted);
}

.pdd-reaction__checklist {
    display: grid;
    gap: 10px;
    margin: 22px 0;
    padding: 0;
    list-style: none;
}

.pdd-reaction__checklist li {
    position: relative;
    padding: 14px 16px 14px 48px;
    border-radius: 16px;
    background: #ffffff;
    border: 1px solid var(--pdd-border);
}

.pdd-reaction__checklist li:before {
    content: "✓";
    position: absolute;
    left: 16px;
    top: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #e9f8f1;
    color: var(--pdd-green);
    font-weight: 900;
}

.pdd-reaction__summary {
    margin: 34px 0;
    padding: 26px;
    border-radius: 24px;
    background: linear-gradient(135deg, var(--pdd-blue-dark), var(--pdd-blue));
    color: #ffffff;
}

.pdd-reaction__summary h2 {
    margin-top: 0;
    color: #ffffff;
}

.pdd-reaction__summary p {
    color: rgba(255,255,255,.92);
}

.pdd-reaction__summary p:last-child {
    margin-bottom: 0;
}

.pdd-reaction__faq {
    margin-top: 36px;
}

.pdd-reaction__faq h2 {
    margin-bottom: 18px;
}

.pdd-reaction__faq-item {
    margin-bottom: 12px;
    border-radius: 18px;
    background: #ffffff;
    border: 1px solid var(--pdd-border);
    box-shadow: 0 8px 20px rgba(16, 58, 86, .05);
    overflow: hidden;
}

.pdd-reaction__faq-item summary {
    cursor: pointer;
    padding: 18px 52px 18px 20px;
    font-weight: 700;
    color: #17242b;
    list-style: none;
    position: relative;
}

.pdd-reaction__faq-item summary::-webkit-details-marker {
    display: none;
}

.pdd-reaction__faq-item summary:after {
    content: "+";
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--pdd-blue-soft);
    color: var(--pdd-blue-dark);
    font-size: 20px;
    font-weight: 800;
}

.pdd-reaction__faq-item[open] summary:after {
    content: "−";
}

.pdd-reaction__faq-answer {
    padding: 0 20px 18px;
    color: var(--pdd-muted);
}

.pdd-reaction__faq-answer p:last-child {
    margin-bottom: 0;
}

@media (max-width: 820px) {
    .pdd-reaction__hero {
        padding: 24px;
    }

    .pdd-reaction__hero h1 {
        font-size: 30px;
    }

    .pdd-reaction__stats,
    .pdd-reaction__steps,
    .pdd-reaction__paths,
    .pdd-reaction__factors {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 520px) {
    .pdd-reaction {
        font-size: 15px;
    }

    .pdd-reaction h2 {
        font-size: 24px;
    }

    .pdd-reaction__hero {
        padding: 20px;
        border-radius: 20px;
    }

    .pdd-reaction__hero h1 {
        font-size: 26px;
    }

    .pdd-reaction__lead {
        font-size: 16px;
    }

    .pdd-reaction__stat strong {
        font-size: 26px;
    }
}

.blog-pdd-widget {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e5e5e5;
}

@media (max-width: 450px) {
    .blog-pdd-widget {
        padding: 10px 0;
    }
}

.blog-pdd-widget__intro {
    margin-bottom: 1.25rem;
}

.blog-pdd-widget__intro-title {
    margin: 0 0 0.5rem;
    font-size: 1.5rem;
    line-height: 1.3;
}

.blog-pdd-widget__intro-text {
    margin: 0;
    color: #555;
    line-height: 1.5;
    font-size: 1rem;
}

.blog-pdd-widget .timer,
.blog-pdd-widget .bilet__comments-wrapper,
.blog-pdd-widget .bilet__fullscreen-btn {
    display: none !important;
}

/* Сброс стилей блога для UI билета (иконки вкладок подсказок и пр.) */
.blog-pdd-widget .bilet__hint-tab-icon,
.blog-pdd-widget .bilet__next-img,
.blog-pdd-widget .bilet__favorite-btn img,
.blog-pdd-widget .bilet__hint-btn img {
    width: auto;
    max-width: none;
    border-radius: 0;
}

.blog-pdd-widget .bilet__hint-tab-icon {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.blog-pdd-widget .bilet__img-zone .bilet__img,
.blog-pdd-widget .bilet__img-zone .bilet__next-img {
    width: 100%;
    max-width: 100%;
    border-radius: 0;
}

@media (max-width: 768px) {
    .blog-pdd-widget__intro-title {
        font-size: 1.25rem;
    }
}