:root {
      --asclin-heading: #091321;
      --asclin-heading-soft: #3a434f;
      --asclin-navy: #11172d;
      --asclin-dark: #091321;
      --asclin-blue: #2f76a8;
      --asclin-orange: #e07c26;
      --asclin-page-bg: #f6f8fb;
      --asclin-card-bg: #f5f8fc;
      --asclin-badge-blue: #e6f1fa;
      --asclin-badge-grey: #eef3f7;
      --asclin-badge-grey-text: #526175;
      --asclin-hero-circle: #16222f;
      --asclin-hero-dot: #8296ab;
      --asclin-hero-line: #33465c;
      --asclin-border: #e3eaf2;
      --asclin-gutter: max(96px, calc((100% - 1248px) / 2));
    }

    body {
      margin: 0;
      background: var(--asclin-page-bg);
    }

    .asclin-doc,
    .asclin-doc * {
      box-sizing: border-box;
      font-family: "Montserrat", Arial, sans-serif;
    }

    .asclin-doc {
      width: 100%;
      background: #ffffff;
      color: var(--asclin-navy);
    }

    /* ===================== ШАПКА + ПЕРВЫЙ ЭКРАН ДОКУМЕНТА ===================== */

    .asclin-doc .hero {
      position: relative;
      background: var(--asclin-dark);
      color: #ffffff;
      padding: 28px var(--asclin-gutter) 64px;
      overflow: hidden;
    }

    .asclin-doc .hero__decor {
      position: absolute;
      inset: 0;
      pointer-events: none;
    }

    .asclin-doc .hero__circle {
      position: absolute;
      border-radius: 50%;
      background: var(--asclin-hero-circle);
    }

    .asclin-doc .hero__circle--left {
      width: 480px;
      height: 480px;
      left: -120px;
      top: 140px;
    }

    .asclin-doc .hero__circle--right {
      width: 560px;
      height: 560px;
      right: -80px;
      top: -180px;
    }

    .asclin-doc .hero__dot {
      position: absolute;
      width: 14px;
      height: 14px;
      border-radius: 50%;
      background: var(--asclin-hero-dot);
      opacity: .85;
    }

    .asclin-doc .hero__line {
      position: absolute;
      height: 1px;
      background: var(--asclin-hero-line);
    }

    .asclin-doc .hero__content {
      position: relative;
      max-width: 1248px;
      margin: 60px auto 0;
      z-index: 1;
    }

    /* Хлебные крошки: Рекомендации / Вызванные потенциалы / Название */
    .asclin-doc .hero__breadcrumbs {
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      gap: 10px;
      margin: 0;
      color: #aeb9c6;
      font-size: 14px;
      line-height: 1.35;
      font-weight: 400;
    }

    .asclin-doc .hero__breadcrumbs a {
      color: #dfe6ee !important;
      text-decoration: none;
    }

    .asclin-doc .hero__breadcrumbs a:hover {
      text-decoration: underline;
    }

    /* Бейджи: категория / статус / доступ — визуально различимы */
    .asclin-doc .hero__badges {
      display: flex;
      flex-wrap: wrap;
      gap: 10px;
      margin-top: 22px;
    }

    .asclin-doc .hero__badge {
      display: inline-flex;
      align-items: center;
      gap: 7px;
      border-radius: 15px;
      padding: 8px 14px;
      font-size: 12px;
      line-height: 1;
      font-weight: 600;
      white-space: nowrap;
    }

    .asclin-doc .hero__badge--cat {
      background: var(--asclin-blue);
      color: #ffffff !important;
    }

    .asclin-doc .hero__badge--status {
      background: var(--asclin-orange);
      color: #ffffff !important;
    }

    /* Правки 29.09: «Утверждено» на тёмном первом экране — сплошной зелёный (#2b8a4b, как «Решено» в карте стилей) */
    .asclin-doc .hero__badge--approved {
      background: #2b8a4b;
      color: #ffffff !important;
    }

    .asclin-doc .hero__badge--access {
      border: 1px solid rgba(255, 255, 255, .55);
      color: #ffffff !important;
    }

    .asclin-doc .hero__title {
      margin: 24px 0 0;
      max-width: 1240px;
      color: #ffffff !important;
      font-size: clamp(28px, 3.2vw, 44px);
      line-height: 1.15;
      font-weight: 700;
      text-transform: none;
    }

    .asclin-doc .hero__subtitle {
      margin: 18px 0 0;
      max-width: 860px;
      color: #dfe6ee;
      font-size: 17px;
      line-height: 1.5;
      font-weight: 400;
    }

    /* Метаданные документа */
    .asclin-doc .hero__meta {
      display: flex;
      flex-wrap: wrap;
      gap: 12px 28px;
      margin-top: 26px;
      color: #dfe6ee;
      font-size: 15px;
      font-weight: 400;
    }

    .asclin-doc .hero__meta span {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      white-space: nowrap;
    }

    .asclin-doc .hero__meta svg {
      color: #93b9d3;
      flex-shrink: 0;
    }

    /* Основные действия */
    .asclin-doc .hero__actions {
      display: flex;
      flex-wrap: wrap;
      gap: 16px;
      margin-top: 32px;
    }

    .asclin-doc a.hero__btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 10px;
      border-radius: 999px;
      padding: 17px 32px;
      font-size: 15px;
      line-height: 1;
      font-weight: 600;
      text-decoration: none !important;
      transition: opacity .2s ease;
    }

    .asclin-doc a.hero__btn:hover {
      opacity: .85;
    }

    .asclin-doc a.hero__btn--primary {
      background: #ffffff !important;
      color: var(--asclin-heading) !important;
    }

    .asclin-doc a.hero__btn--ghost {
      border: 1px solid rgba(255, 255, 255, .8);
      background: transparent;
      color: #ffffff !important;
    }

    /* ===================== PDF-ПРОСМОТРЩИК ===================== */

    .asclin-doc .viewer {
      background: var(--asclin-card-bg);
      border-bottom: 1px solid var(--asclin-border);
      padding: 56px var(--asclin-gutter);
    }

    .asclin-doc .viewer__frame {
      border-radius: 8px;
      overflow: hidden;
      box-shadow: 0 18px 44px rgba(9, 19, 33, .10);
    }

    /* Панель просмотрщика */
    .asclin-doc .viewer__bar {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 18px;
      background: var(--asclin-navy);
      color: #dfe6ee;
      padding: 10px 18px;
      font-size: 13px;
      font-weight: 500;
    }

    .asclin-doc .viewer__group {
      display: flex;
      align-items: center;
      gap: 6px;
    }

    .asclin-doc .viewer__tool {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      width: 34px;
      height: 34px;
      border: 0;
      border-radius: 6px;
      background: transparent;
      color: #dfe6ee;
      cursor: pointer;
    }

    .asclin-doc .viewer__tool:hover {
      background: rgba(255, 255, 255, .12);
    }

    .asclin-doc .viewer__page {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      margin: 0 6px;
      white-space: nowrap;
    }

    .asclin-doc .viewer__page-input {
      width: 42px;
      border: 1px solid rgba(255, 255, 255, .25);
      border-radius: 6px;
      background: rgba(255, 255, 255, .08);
      padding: 7px 0;
      color: #ffffff;
      font-size: 13px;
      font-weight: 600;
      text-align: center;
    }

    .asclin-doc .viewer__zoom-value {
      min-width: 46px;
      text-align: center;
      font-weight: 600;
      color: #ffffff;
    }

    .asclin-doc .viewer__divider {
      width: 1px;
      height: 22px;
      background: rgba(255, 255, 255, .2);
      margin: 0 8px;
    }

    /* Область документа */
    .asclin-doc .viewer__canvas {
      display: flex;
      justify-content: center;
      background: #e9eef4;
      padding: 40px 24px;
    }

    .asclin-doc .viewer__sheet {
      position: relative;
      width: min(640px, 100%);
      min-height: 680px;
      background: #ffffff;
      border-radius: 2px;
      box-shadow: 0 10px 28px rgba(9, 19, 33, .14);
      padding: 56px 60px 44px;
    }

    .asclin-doc .viewer__sheet-num {
      position: absolute;
      left: 0;
      right: 0;
      bottom: 22px;
      color: #93a2b4;
      font-size: 11px;
      text-align: center;
    }

    .asclin-doc .viewer__sheet-title {
      margin: 0 0 8px;
      color: var(--asclin-heading);
      font-size: 17px;
      line-height: 1.35;
      font-weight: 700;
      text-align: center;
    }

    .asclin-doc .viewer__sheet-sub {
      margin: 0 0 34px;
      color: var(--asclin-badge-grey-text);
      font-size: 12px;
      text-align: center;
    }

    .asclin-doc .viewer__sheet-line {
      height: 9px;
      border-radius: 4px;
      background: #e6ecf3;
      margin-bottom: 13px;
    }

    .asclin-doc .viewer__sheet-line--head {
      width: 46%;
      background: #cfdae6;
      margin: 26px 0 16px;
    }

    .asclin-doc .viewer__sheet-line--short {
      width: 72%;
    }

    /* ===================== О ДОКУМЕНТЕ ===================== */

    .asclin-doc .about {
      background: #ffffff;
      padding: 64px var(--asclin-gutter) 68px;
    }

    .asclin-doc .about__title {
      margin: 0 0 34px;
      color: var(--asclin-heading) !important;
      font-size: 34px;
      line-height: 1.15;
      font-weight: 700;
      text-transform: none;
    }

    .asclin-doc .about__grid {
      display: grid;
      grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
      gap: 40px 64px;
    }

    .asclin-doc .about__list {
      display: flex;
      flex-direction: column;
      gap: 22px;
      margin: 0;
    }

    .asclin-doc .about__row dt {
      margin: 0 0 6px;
      color: var(--asclin-badge-grey-text);
      font-size: 12px;
      line-height: 1.2;
      font-weight: 700;
      letter-spacing: .08em;
      text-transform: uppercase;
    }

    .asclin-doc .about__row dd {
      margin: 0;
      color: var(--asclin-heading-soft);
      font-size: 15px;
      line-height: 1.5;
      font-weight: 500;
    }

    .asclin-doc .about__annotation h3 {
      margin: 0 0 6px;
      color: var(--asclin-badge-grey-text);
      font-size: 12px;
      line-height: 1.2;
      font-weight: 700;
      letter-spacing: .08em;
      text-transform: uppercase;
    }

    .asclin-doc .about__annotation p {
      margin: 10px 0 0;
      color: var(--asclin-heading-soft);
      font-size: 15px;
      line-height: 1.6;
      font-weight: 400;
    }

    /* ===================== СВЯЗАННЫЕ РЕКОМЕНДАЦИИ ===================== */

    .asclin-doc .related {
      background: var(--asclin-card-bg);
      border-top: 1px solid var(--asclin-border);
      padding: 56px var(--asclin-gutter) 64px;
    }

    .asclin-doc .related__title {
      margin: 0 0 30px;
      color: var(--asclin-heading) !important;
      font-size: 34px;
      line-height: 1.15;
      font-weight: 700;
      text-transform: none;
    }

    .asclin-doc .related__list {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 24px;
      margin: 0;
      padding: 0;
      list-style: none;
    }

    .asclin-doc .related-card {
      position: relative;
      display: flex;
      flex-direction: column;
      gap: 12px;
      background: #ffffff;
      border: 1px solid var(--asclin-border);
      border-radius: 8px;
      padding: 24px 26px 26px;
      transition: box-shadow .2s ease;
    }

    .asclin-doc .related-card:hover {
      box-shadow: 0 14px 30px rgba(9, 19, 33, .10);
    }

    .asclin-doc .related-card__badges {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
    }

    .asclin-doc .related-card__badge {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      border-radius: 20px;
      padding: 7px 12px;
      font-size: 11px;
      line-height: 1;
      font-weight: 600;
    }

    .asclin-doc .related-card__badge--cat {
      background: var(--asclin-badge-blue);
      color: var(--asclin-blue) !important;
    }

    .asclin-doc .related-card__badge--members {
      background: var(--asclin-navy) !important;
      color: #ffffff !important;
    }

    /* Правки 29.09: статусы документа в связанных — «Утверждено» зелёный, «Проект» / «Общественное обсуждение» оранжевый */
    .asclin-doc .related-card__badge--approved {
      background: #e7f3ec;
      color: #1f6b3a !important;
    }

    .asclin-doc .related-card__badge--status {
      background: #fbeee0;
      color: #c9670f !important;
    }

    .asclin-doc .related-card__title {
      margin: 2px 0 0;
      color: var(--asclin-navy) !important;
      font-size: 17px;
      line-height: 1.3;
      font-weight: 700;
      text-transform: none;
    }

    .asclin-doc .related-card__title a {
      color: inherit !important;
      text-decoration: none !important;
    }

    .asclin-doc .related-card__title a::after {
      content: "";
      position: absolute;
      inset: 0;
      border-radius: 8px;
    }

    .asclin-doc .related-card:hover .related-card__title a {
      color: var(--asclin-blue) !important;
    }

    .asclin-doc .related-card__meta {
      margin-top: auto;
      padding-top: 4px;
      color: var(--asclin-badge-grey-text);
      font-size: 13px;
      line-height: 1.2;
      font-weight: 500;
    }

    /* ===================== ПРИГЛАШЕНИЕ К УЧАСТИЮ ===================== */

    .asclin-doc .join {
      background: var(--asclin-dark);
      color: #ffffff;
      padding: 60px var(--asclin-gutter) 64px;
      position: relative;
      overflow: hidden;
    }

    .asclin-doc .join__circle {
      position: absolute;
      border-radius: 50%;
      background: var(--asclin-hero-circle);
      width: 480px;
      height: 480px;
      right: -140px;
      top: -180px;
      pointer-events: none;
    }

    .asclin-doc .join__inner {
      position: relative;
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      justify-content: space-between;
      gap: 28px;
      max-width: 1248px;
      margin: 0 auto;
    }

    @media (min-width: 1200px) {
      .asclin-doc .join__inner {
        flex-wrap: nowrap;
      }

      .asclin-doc .join__actions {
        flex-shrink: 0;
      }
    }

    .asclin-doc .join__text {
      max-width: 720px;
    }

    .asclin-doc .join__title {
      margin: 0;
      color: #ffffff !important;
      font-size: 30px;
      line-height: 1.2;
      font-weight: 700;
      text-transform: none;
    }

    .asclin-doc .join__desc {
      margin: 16px 0 0;
      color: #dfe6ee;
      font-size: 16px;
      line-height: 1.5;
      font-weight: 400;
    }

    .asclin-doc .join__actions {
      display: flex;
      flex-wrap: wrap;
      gap: 16px;
    }

    .asclin-doc a.join__btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      border-radius: 999px;
      padding: 18px 36px;
      font-size: 16px;
      line-height: 1;
      font-weight: 600;
      text-decoration: none !important;
      transition: opacity .2s ease;
    }

    .asclin-doc a.join__btn:hover {
      opacity: .85;
    }

    .asclin-doc a.join__btn--primary {
      background: #ffffff !important;
      color: var(--asclin-heading) !important;
    }

    .asclin-doc a.join__btn--ghost {
      border: 1px solid rgba(255, 255, 255, .8);
      background: transparent;
      color: #ffffff !important;
    }

    /* ===================== АДАПТИВ ===================== */

    @media (max-width: 1200px) {
      :root {
        --asclin-gutter: 40px;
      }

      .asclin-doc .related__list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
      }

      .asclin-doc .about__grid {
        grid-template-columns: none;
      }
    }

    @media (max-width: 640px) {
      :root {
        --asclin-gutter: 20px;
      }

      .asclin-doc .hero__content {
        margin-top: 40px;
      }

      .asclin-doc .hero__meta {
        flex-direction: column;
        gap: 12px;
      }

      /* Кнопки — вертикально, на всю ширину */
      .asclin-doc .hero__actions {
        flex-direction: column;
        align-items: stretch;
      }

      .asclin-doc a.hero__btn {
        width: 100%;
      }

      /* PDF-просмотрщик — на всю ширину экрана */
      .asclin-doc .viewer {
        padding: 28px 0 36px;
      }

      .asclin-doc .viewer__frame {
        border-radius: 0;
      }

      .asclin-doc .viewer__bar {
        flex-wrap: wrap;
        gap: 10px 14px;
        padding: 10px 12px;
      }

      .asclin-doc .viewer__canvas {
        padding: 20px 12px;
      }

      .asclin-doc .viewer__sheet {
        padding: 30px 24px;
      }

      .asclin-doc .related__list {
        grid-template-columns: none;
      }

      .asclin-doc .join__actions {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
      }

      .asclin-doc a.join__btn {
        width: 100%;
      }
    }
