/* === 7. Модальные окна под дизайн main2 === */

/* Фон-оверлей */
.modal-overlay{
  display:none;
  position:fixed;
  inset:0;
  z-index:80; /* выше контента и шапки, но ниже плавающего WhatsApp */
  background:rgba(15,23,42,0.45);
  backdrop-filter:blur(10px);
  -webkit-backdrop-filter:blur(10px);

  padding:24px 12px;
  overflow-y:auto;
  scrollbar-width:none;
  -ms-overflow-style:none;

  display:flex;
  align-items:center;
  justify-content:center;

  animation:modal-fade-in var(--dur-3) var(--ease) forwards;
}

.modal-overlay::-webkit-scrollbar{
  display:none;
}

/* Окно */
.modal-window{
  background:var(--surface);
  color:var(--ink);
  border-radius:var(--r-xl);
  max-width:640px;
  width:100%;

  border:1px solid var(--border);
  box-shadow:var(--shadow-3);

  overflow:hidden;
  display:flex;
  flex-direction:column;
}

/* Верхняя панель с крестиком */
.modal-sticky-bar{
  position:sticky;
  top:0;
  display:flex;
  justify-content:flex-end;
  padding:10px 10px 0;
  background:linear-gradient(180deg,#F9FAFB,#EFF6FF);
  z-index:1;
}

/* Контент с прокруткой */
.modal-scroll{
  padding:18px 22px 24px;
  max-height:80vh;
  overflow-y:auto;
  scrollbar-width:thin;
}

.modal-scroll::-webkit-scrollbar{
  width:6px;
}

.modal-scroll::-webkit-scrollbar-thumb{
  background:rgba(148,163,184,0.55);
  border-radius:999px;
}

/* Кнопка закрытия */
.modal-close{
  border:none;
  border-radius:999px;
  width:32px;
  height:32px;

  display:flex;
  align-items:center;
  justify-content:center;

  font-size:18px;
  font-weight:600;
  cursor:pointer;

  color:var(--ink);
  background:#ffffff;
  box-shadow:var(--shadow-1);

  transition:
    background var(--dur-2) var(--ease),
    transform var(--dur-2) var(--ease),
    box-shadow var(--dur-2) var(--ease);
}

.modal-close:hover{
  background:#EFF6FF;
  transform:translateY(-1px);
  box-shadow:var(--shadow-2);
}

/* Поддержка анимации .fade-out из JS */
.modal-overlay.fade-out{
  animation:modal-fade-out var(--dur-3) var(--ease) forwards;
}

/* Анимации появления/исчезновения */
@keyframes modal-fade-in{
  from{
    opacity:0;
    transform:translateY(6px);
  }
  to{
    opacity:1;
    transform:translateY(0);
  }
}

@keyframes modal-fade-out{
  from{
    opacity:1;
    transform:translateY(0);
  }
  to{
    opacity:0;
    transform:translateY(6px);
  }
}

/* Кнопки-триггеры модалок в стиле .btn-primary */
.modern-request-button,
#plan-trigger > button,
#risks-trigger > button,
#extra-tests-trigger > button{
  border:none;
  background:linear-gradient(135deg,var(--primary),var(--primary-2));
  color:#fff;

  border-radius:var(--r-l);
  padding:12px 22px;
  font-size:15px;
  font-weight:700;
  cursor:pointer;

  box-shadow:var(--shadow-2);
  display:inline-flex;
  align-items:center;
  gap:8px;

  transition:
    transform var(--dur-2) var(--ease),
    box-shadow var(--dur-2) var(--ease),
    filter var(--dur-2) var(--ease);
}

.modern-request-button:hover,
#plan-trigger > button:hover,
#risks-trigger > button:hover,
#extra-tests-trigger > button:hover{
  transform:translateY(-1px);
  box-shadow:var(--shadow-3);
  filter:saturate(1.05);
}

.modern-request-button:active,
#plan-trigger > button:active,
#risks-trigger > button:active,
#extra-tests-trigger > button:active{
  transform:translateY(0);
  box-shadow:var(--shadow-2);
}

/* Поправленный блок для модалок под main2 */

.modal-overlay {
  /* ГЛАВНОЕ: по умолчанию СКРЫТО */
  display: none;

  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);

  padding: 24px 12px;
  overflow-y: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;

  /* flex убираем отсюда — его даст JS через style.display = 'flex' */
  align-items: center;
  justify-content: center;

  animation: modal-fade-in var(--dur-3) var(--ease) forwards;
}

.modal-overlay::-webkit-scrollbar {
  display: none;
}

/* остальное можно оставить как было */
.modal-window {
  background: var(--surface);
  color: var(--ink);
  border-radius: var(--r-xl);
  max-width: 640px;
  width: 100%;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-3);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.modal-sticky-bar {
  position: sticky;
  top: 0;
  display: flex;
  justify-content: flex-end;
  padding: 10px 10px 0;
  background: linear-gradient(180deg, #F9FAFB, #EFF6FF);
  z-index: 1;
}

.modal-scroll {
  padding: 18px 22px 24px;
  max-height: 80vh;
  overflow-y: auto;
  scrollbar-width: thin;
}
.modal-scroll::-webkit-scrollbar {
  width: 6px;
}
.modal-scroll::-webkit-scrollbar-thumb {
  background: rgba(148,163,184,0.55);
  border-radius: 999px;
}

/* === Мобильная адаптация модалок (≤ 640px) === */
@media (max-width: 640px) {

  /* Оверлей — меньше отступы, безопасная зона */
  .modal-overlay {
    padding: 12px;
    backdrop-filter: blur(12px);
  }

  /* Окно — больше ширины, округления ниже */
  .modal-window {
    width: 100%;
    max-width: 100%;
    border-radius: var(--r-m);
    box-shadow: var(--shadow-2);
    border: 1px solid var(--border);
  }

  /* Верхняя панель с крестиком */
  .modal-sticky-bar {
    padding: 8px 8px 0;
    background: linear-gradient(180deg, #F9FAFB, #EFF6FF);
  }

  /* Крестик */
  .modal-close {
    width: 30px;
    height: 30px;
    font-size: 17px;
    border-radius: 50%;
    box-shadow: var(--shadow-1);
  }

  /* Контент — компактнее, выше скролл */
  .modal-scroll {
    padding: 14px 16px 18px;
    max-height: 82vh;
    font-size: 15px;
    line-height: 1.45;
  }

  /* Мобильный скроллбар */
  .modal-scroll::-webkit-scrollbar {
    width: 4px;
  }
  .modal-scroll::-webkit-scrollbar-thumb {
    background: rgba(148,163,184,0.45);
  }

  /* Сами модалки должны появляться чуть быстрее на мобилках */
  @keyframes modal-fade-in {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
  }
}

/* === Кнопка "Открыть пример заключения" (сине-зелёная) === */
.btn-pdf {
  appearance: none;
  border: none;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 14px 26px;
  border-radius: var(--r-l, 14px);

  font-weight: 700;
  font-size: 15px;
  cursor: pointer;

  background: linear-gradient(135deg, #34d3e0, #2086ff);
  color: #ffffff;

  box-shadow: 0 4px 12px rgba(32, 134, 255, 0.45);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    filter 0.25s ease;
}

/* лёгкая пульсация */
.btn-pdf.pulse-bluegreen {
  animation: bluegreenPulse 2.4s ease-in-out infinite;
}

.btn-pdf:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(32, 134, 255, 0.55);
  filter: saturate(1.05);
}

.btn-pdf:active {
  transform: translateY(0);
  box-shadow: 0 4px 12px rgba(32, 134, 255, 0.45);
}

/* Пульсирующее свечение вокруг */
@keyframes bluegreenPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(0, 190, 210, 0.55);
  }
  40% {
    box-shadow: 0 0 0 12px rgba(0, 190, 210, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(0, 190, 210, 0);
  }
}

/* =====================================================================
   КНОПКА ОТКРЫТИЯ PDF (сине-зелёная, с пульсацией)
   ===================================================================== */
.btn-pdf {
  appearance: none;
  border: none;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 14px 26px;
  border-radius: 14px;

  font-weight: 700;
  font-size: 15px;
  cursor: pointer;

  background: linear-gradient(135deg, #34d3e0, #2086ff);
  color: #ffffff;

  box-shadow: 0 4px 12px rgba(32, 134, 255, 0.4);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.btn-pdf.pulse-bluegreen {
  animation: pdfPulse 2.4s ease-in-out infinite;
}

.btn-pdf:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(32, 134, 255, 0.55);
  filter: saturate(1.05);
}

@keyframes pdfPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(0, 190, 210, 0.45);
  }
  40% {
    box-shadow: 0 0 0 12px rgba(0, 190, 210, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(0, 190, 210, 0);
  }
}

/* =====================================================================
   PDF VIEWER — ФИКСИРОВАННЫЙ ОВЕРЛЕЙ
   ===================================================================== */
.pdfjs-viewer {
  position: fixed;
  inset: 0;
  z-index: 12000;

  display: none; /* JS включает display:flex */
  align-items: center;
  justify-content: center;

  padding: 20px;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* =====================================================================
   ОКНО PDF
   ===================================================================== */
.pdfjs-window {
  background: #ffffff;     /* белый фон */
  color: #111827;

  border-radius: 14px;
  max-width: 940px;
  width: 100%;
  max-height: 90vh;        /* ограничение высоты окна */
  display: flex;
  flex-direction: column;

  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
  border: 1px solid #d1d5db;
  overflow: hidden;
  position: relative;
}

/* =====================================================================
   КНОПКА ЗАКРЫТИЯ
   ===================================================================== */
.pdfjs-close {
  position: absolute;
  top: 10px;
  right: 12px;

  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: none;
  cursor: pointer;

  display: flex;
  align-items: center;
  justify-content: center;

  background: #1e3a8a;
  color: white;
  font-size: 17px;

  box-shadow: 0 0 0 1px rgba(30, 64, 175, 0.45);
  transition: transform 0.2s ease, background 0.2s ease;
}

.pdfjs-close:hover {
  background: #2563eb;
  transform: translateY(-2px);
}

/* =====================================================================
   ТУЛБАР
   ===================================================================== */
.pdfjs-toolbar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;

  padding: 10px 14px;
  background: #f3f4f6;
  border-bottom: 1px solid #d1d5db;
}

/* кнопки ← → */
.pdfjs-btn {
  border: 1px solid #9ca3af;
  border-radius: 999px;
  background: #ffffff;
  color: #111827;

  padding: 6px 12px;
  font-size: 14px;
  cursor: pointer;
  transition: 0.2s ease;
}

.pdfjs-btn:hover {
  background: #e0e7ff;
}

/* =====================================================================
   ЗОНА CANVAS — ВНУТРЕННЯЯ ПРОКРУТКА
   ===================================================================== */
.pdfjs-canvas-wrap {
  flex: 1;
  overflow: auto;      /* появится скролл вместо сжатия PDF */
  padding: 16px;

  background: #ffffff; /* белый фон */
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
}

/* сам canvas — оригинальный размер, НЕ сжимается */
#pdfCanvas {
  display: block;
  width: auto !important;
  height: auto !important;
  max-width: none !important;
  max-height: none !important;
}

/* =====================================================================
   МОБИЛЬНАЯ АДАПТАЦИЯ
   ===================================================================== */
@media (max-width: 640px) {
  .pdfjs-viewer {
    padding: 12px;
  }

  .pdfjs-window {
    max-width: 100%;
    max-height: 88vh;
    border-radius: 10px;
  }

  .pdfjs-toolbar {
    gap: 8px;
    padding: 8px 10px;
    font-size: 13px;
  }

  .pdfjs-btn {
    padding: 5px 10px;
    font-size: 13px;
  }

  .pdfjs-canvas-wrap {
    padding: 10px;
  }
}

/* === Яркая секция перед блоком с тестами === */
.hero-diag {
  margin: 50px auto 40px;
  padding: 0 16px;
}

.hero-diag-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 26px 24px 26px;

  border-radius: 20px;
  background: radial-gradient(circle at top left, #38bdf8 0, #6366f1 35%, #0f172a 100%);
  color: #f9fafb;

  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.45);
  position: relative;
  overflow: hidden;
  text-align: center; /* 🎯 Центрирование текста */
}

/* лёгкое свечение в углу */
.hero-diag-inner::before {
  content: "";
  position: absolute;
  inset: -40%;
  background:
    radial-gradient(circle at 0% 0%, rgba(56, 189, 248, 0.28) 0, transparent 55%),
    radial-gradient(circle at 100% 0%, rgba(52, 211, 153, 0.26) 0, transparent 50%);
  opacity: 0.9;
  pointer-events: none;
}

/* контент поверх свечения */
.hero-diag-tag,
.hero-diag-title,
.hero-diag-text,
.hero-diag-accent {
  position: relative;
  z-index: 1;
}

/* маленький бейджик */
.hero-diag-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;

  padding: 4px 10px;
  margin-bottom: 10px;

  border-radius: 999px;
  background: rgba(15, 23, 42, 0.55);
  border: 1px solid rgba(191, 219, 254, 0.5);

  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #e5e7eb;
}

/* заголовок */
.hero-diag-title {
  font-size: 26px;
  line-height: 1.25;
  margin: 4px 0 10px;
}

/* основной текст */
.hero-diag-text {
  font-size: 17px;
  line-height: 1.7;
  max-width: 650px;
  margin: 0 0 18px;
  color: #e5e7eb;
}

/* акцентная подплашка */
.hero-diag-accent {
  display: inline-block;
  margin-top: 4px;
  padding: 10px 14px;
  border-radius: 14px;

  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(191, 219, 254, 0.45);

  font-size: 14px;
  color: #e5e7eb;
}

/* адаптация под мобильные */
@media (max-width: 640px) {
  .hero-diag-inner {
    padding: 18px 16px 20px;
    border-radius: 16px;
  }

  .hero-diag-title {
    font-size: 22px;
  }

  .hero-diag-text {
    font-size: 15px;
  }

  .hero-diag-accent {
    font-size: 13px;
  }
}

/* --- Форсированное центрирование текста в яркой секции --- */
.hero-diag-title,
.hero-diag-text,
.hero-diag-accent,
.hero-diag-tag {
  text-align: center !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

.hero-diag-title {
  color: #fbbf24 !important;  /* яркий оранжевый Tailwind orange-500 */
}

/* ==========================================================
   ГЛОБАЛЬНОЕ ВЫРАВНИВАНИЕ ДЛЯ tests1.html
   ========================================================== */

/* Центровка всей секции с заглавием */
.container,
section,
.hero-diag,
.hero-diag-inner {
  text-align: center !important;
}

/* Центровка всех заголовков tests1.html */
.hero-diag-title,
.section-title,
h1, h2, h3 {
  text-align: center !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

/* Центровка всех параграфов */
.hero-diag-text,
.hero-diag-accent,
p {
  text-align: center !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

/* Центрирование кнопок */
.btn,
.btn-pdf,
.pdf-open,
.modern-request-button {
  display: inline-block !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

/* Центровка блоков-контейнеров с кнопками */
#plan-trigger,
#risks-trigger,
#extra-tests-trigger,
#nanny-test-info .cta-actions {
  display: flex !important;
  justify-content: center !important;
  text-align: center !important;
  width: 100%;
}


/* Централные карточки */
.grid {
  display: flex !important;
  justify-content: center !important;
  flex-wrap: wrap !important;
  gap: 12px !important;
  text-align: center !important;
}

.grid .card {
  margin-left: auto !important;
  margin-right: auto !important;
  text-align: center !important;
}

/* Секция стоимости */
#nanny-test-info section {
  text-align: center !important;
}

/* Блоки внизу страницы */
section[style*="margin-top"],
section[style*="background"] {
  text-align: center !important;
}

/* ===== Белая пульсация для hero-diag-accent ===== */
.hero-diag-accent {
  position: relative;
  overflow: visible;
}

.hero-diag-accent::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: rgba(255, 255, 255, 0.7);
  filter: blur(12px);
  opacity: 0;
  z-index: -1;

  animation: accentPulse 2.4s ease-in-out infinite;
}

@keyframes accentPulse {
  0% {
    opacity: 0.0;
    transform: scale(1);
  }
  40% {
    opacity: 0.6;
    transform: scale(1.12);
  }
  100% {
    opacity: 0;
    transform: scale(1);
  }
}

/* =========================================================================
   DARK SILVER — тёмно-серебристая версия секции hero-diag
   ========================================================================= */

.hero-diag.hero-diag--metal-dark {
  margin: 50px auto 40px;
  padding: 0 16px;
}

.hero-diag-inner.hero-diag-inner--metal-dark {
  max-width: 1040px;
  margin: 0 auto;
  padding: 32px 26px 34px;

  border-radius: 22px;

  /* Тёмно-серебристый металл */
  background:
    radial-gradient(circle at top left,
      rgba(205, 207, 212, 1) 0%,
      rgba(111, 115, 124, 1) 45%,
      rgba(48, 50, 54, 1) 100%
    );

  color: #f3f4f6;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.45);

  text-align: center;
  position: relative;
  overflow: hidden;
}

/* металлическое отражение */
.hero-diag-inner.hero-diag-inner--metal-dark::before {
  content: "";
  position: absolute;
  inset: -45%;
  background:
    radial-gradient(circle at 20% 0%,
      rgba(255, 255, 255, 0.25) 0%,
      transparent 55%
    ),
    radial-gradient(circle at 80% 0%,
      rgba(180, 180, 190, 0.18) 0%,
      transparent 55%
    );
  pointer-events: none;
  z-index: 0;
}

/* Заголовок */
.hero-diag-title--metal-dark {
  position: relative;
  z-index: 1;
  font-size: 28px;
  color: #e5e7eb;
  margin-bottom: 12px;
}

/* Текст */
.hero-diag-text--metal-dark {
  position: relative;
  z-index: 1;
  font-size: 17px;
  color: #e5e7eb;
  margin-bottom: 20px;
}

/* Акцент с белой пульсацией, но в холодных серебристых тонах */
.hero-diag-accent--metal-dark {
  display: inline-block;
  padding: 12px 18px;
  border-radius: 14px;
  background: rgba(20, 20, 22, 0.65);
  border: 1px solid rgba(230, 231, 236, 0.9);

  color: #f3f4f6;
  font-size: 15px;

  position: relative;
  overflow: visible;
  margin-bottom: 28px;
}

/* серебристая сияющая аура */
.hero-diag-accent--metal-dark::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;

  background: radial-gradient(
    circle,
    rgba(210, 212, 218, 0.9) 0%,
    rgba(115, 119, 128, 0.6) 55%,
    rgba(115, 119, 128, 0) 100%
  );

  filter: blur(14px);
  opacity: 0;
  z-index: -1;
  animation: metalDarkPulse 2.8s ease-in-out infinite;
}

@keyframes metalDarkPulse {
  0% {
    opacity: 0;
    transform: scale(1);
  }
  45% {
    opacity: 0.75;
    transform: scale(1.16);
  }
  100% {
    opacity: 0;
    transform: scale(1);
  }
}

/* =========================================================================
   GRID внутри тёмно-серебристой секции
   ========================================================================= */

.metal-grid {
  position: relative;
  z-index: 2;
}

.metal-grid .grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 10px;
}

.metal-grid .card {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(230, 231, 236, 0.25);

  padding: 14px 18px;
  border-radius: 14px;

  box-shadow: 0 6px 18px rgba(0,0,0,0.25);
  backdrop-filter: blur(3px);

  min-width: 260px;
  text-align: center;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.metal-grid .card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 26px rgba(0,0,0,0.35);
}

.metal-grid .card a {
  color: #f3f4f6;
  text-decoration: none;
  font-size: 16px;
  font-weight: 600;
}

/* Мобильная адаптация */
@media (max-width: 640px) {
  .hero-diag-inner.hero-diag-inner--metal-dark {
    padding: 22px 16px 26px;
  }

  .metal-grid .card {
    min-width: 100%;
  }
}

.hero-diag-title {
  font-size: 42px !important;
}

#rotating-text {
  transition: opacity 0.6s ease; /* мягкое затухание и появление */
}

/* =========================================================================
   SUNBURST — секция с градиентом от красного к жёлтому
   ========================================================================= */

.hero-diag.hero-diag--sunburst {
  margin: 50px auto 40px;
  padding: 0 16px;
}

.hero-diag-inner.hero-diag-inner--sunburst {
  max-width: 1000px;
  margin: 0 auto;
  padding: 32px 28px 36px;

  border-radius: 22px;

  /* Красный → Оранжевый → Жёлтый */
  background:
    radial-gradient(circle at top left,
      rgba(255, 76, 64, 0.95) 0%,     /* яркий красный */
      rgba(255, 140, 60, 0.95) 40%,    /* тёплый оранжевый */
      rgba(255, 200, 55, 0.95) 100%    /* яркий солнечный жёлтый */
    );

  color: #fff9eb;
  text-align: center;

  box-shadow: 0 20px 45px rgba(0,0,0,0.35);
  position: relative;
  overflow: hidden;
}

/* Эффект солнечного свечения */
.hero-diag-inner.hero-diag-inner--sunburst::before {
  content: "";
  position: absolute;
  inset: -45%;

  background:
    radial-gradient(circle at 0% 0%,
      rgba(255, 255, 255, 0.35) 0%,
      transparent 55%
    ),
    radial-gradient(circle at 100% 0%,
      rgba(255, 235, 140, 0.45) 0%,
      transparent 55%
    );

  pointer-events: none;
  z-index: 0;
}

/* Заголовок */
.hero-diag-title--sunburst {
  position: relative;
  z-index: 2;
  font-size: 32px;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 12px;
  color: #fff8e1;
}

/* Текст */
.hero-diag-text--sunburst {
  position: relative;
  z-index: 2;
  font-size: 18px;
  max-width: 650px;
  margin: 0 auto 20px;
  color: #fffdf3;
}

/* Акцентная плашка */
.hero-diag-accent--sunburst {
  position: relative;
  z-index: 2;

  display: inline-block;
  padding: 12px 18px;
  border-radius: 14px;

  background: rgba(88, 28, 15, 0.55);
  border: 1px solid rgba(255, 245, 180, 0.7);

  font-size: 15px;
  color: #fffbee;

  overflow: visible;
}

/* Пульсация — огненное свечение */
.hero-diag-accent--sunburst::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;

  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.9) 0%,
    rgba(255, 150, 50, 0.55) 55%,
    rgba(255, 150, 50, 0) 100%
  );

  filter: blur(14px);
  opacity: 0;
  z-index: -1;

  animation: sunburst-glow 2.6s ease-in-out infinite;
}

@keyframes sunburst-glow {
  0% {
    opacity: 0;
    transform: scale(1);
  }
  40% {
    opacity: 0.85;
    transform: scale(1.16);
  }
  100% {
    opacity: 0;
    transform: scale(1);
  }
}

/* Адаптив */
@media (max-width: 640px) {
  .hero-diag-inner.hero-diag-inner--sunburst {
    padding: 22px 18px 26px;
    border-radius: 18px;
  }

  .hero-diag-title--sunburst {
    font-size: 26px;
  }

  .hero-diag-text--sunburst {
    font-size: 15px;
  }
}

/* 1. Глобальные стили кнопок – НЕ трогаем бургер */
button:not(.burger),
#plan-trigger > button,
#risks-trigger > button,
#extra-tests-trigger > button {
  border: none;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: #fff;

  border-radius: var(--r-l);
  padding: 12px 22px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;

  box-shadow: var(--shadow-2);
  display: inline-flex;
  align-items: center;
  gap: 8px;

  transition:
    transform var(--dur-2) var(--ease),
    box-shadow var(--dur-2) var(--ease),
    filter var(--dur-2) var(--ease);
}

/* 2. Центрирование кнопок – тоже без бургера */
button:not(.burger),
.btn,
.btn-pdf,
.pdf-open,
.modern-request-button {
  display: inline-block;
  margin-left: auto;
  margin-right: auto;
}


@media (min-width: 769px) {
  .burger {
    display: none !important;    
  }
}

@media (max-width: 768px) {
  .burger {
    margin-left: auto !important;
    margin-right: 14px !important;
    position: relative;
    z-index: 100000;
  }
}

/* === ДОБАВЬ В КОНЕЦ tests(1).css === */
/* Мобильный режим: PDF по ширине экрана + скролл/свайп по высоте */
@media (max-width: 640px) {
  .pdfjs-viewer {
    padding: 0 !important;
  }

  .pdfjs-window {
    width: 100% !important;
    max-width: 100% !important;
    max-height: 100vh !important;
    border-radius: 0 !important;
    border-left: none !important;
    border-right: none !important;
  }

  .pdfjs-canvas-wrap {
    padding: 0 !important;
    justify-content: center !important;
    align-items: flex-start !important;

    /* вертикальный скролл страницы PDF */
    overflow-y: auto;
    /* горизонтальный скролл отключаем, ширину контролируем сами */
    overflow-x: hidden;
  }

  /* Главное: холст растягиваем по ширине окна */
  #pdfCanvas {
    width: 100% !important;
    height: auto !important;
    max-width: 100% !important;
    max-height: none !important;
  }
}

