/* Правки конгресса 2026: бегущая строка, звёздочка, параллакс, архив, кнопки */
/* Бегущая строка: едет влево всегда (в т.ч. при «уменьшении движения» в ОС) */
.marquee .marquee-track {
  animation: marquee var(--marquee-time, 35s) linear infinite !important;
  animation-duration: var(--marquee-time, 35s) !important;
}

/* Звёздочка у «Не просто услышать историю»: рисуем сами, чтобы центр вращения был ровно в центре.
   Влево 2.5 c, вправо на 10% дольше (2.75 c). */
.intro-foot .big-star {
  display: block !important;
  position: relative;
  flex: none;
  width: 39px;
  height: 39px;
  font-size: 0 !important;
  line-height: 0;
  color: transparent;
  transform-origin: 50% 50%;
  animation: big-star-swing 5.25s ease-in-out infinite !important;
  animation-duration: 5.25s !important;
}
.intro-foot .big-star::after {
  content: '' !important;
  position: absolute;
  inset: 0;
  font-size: 0 !important;
  background: #f39a38;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-20 -20 40 40'%3E%3Cg stroke='%23000' stroke-width='3.2' stroke-linecap='butt'%3E%3Cpath d='M0 -19V19'/%3E%3Cpath d='M-19 0H19'/%3E%3Cpath d='M-13.4 -13.4L13.4 13.4'/%3E%3Cpath d='M13.4 -13.4L-13.4 13.4'/%3E%3C/g%3E%3C/svg%3E") center / 100% 100% no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-20 -20 40 40'%3E%3Cg stroke='%23000' stroke-width='3.2' stroke-linecap='butt'%3E%3Cpath d='M0 -19V19'/%3E%3Cpath d='M-19 0H19'/%3E%3Cpath d='M-13.4 -13.4L13.4 13.4'/%3E%3Cpath d='M13.4 -13.4L-13.4 13.4'/%3E%3C/g%3E%3C/svg%3E") center / 100% 100% no-repeat;
}
@keyframes big-star-swing {
  0%      { transform: rotate(0deg); }
  47.62%  { transform: rotate(-360deg); }
  100%    { transform: rotate(0deg); }
}

/* Параллакс «Летопись добра»: 3 слоя — фон (круги, звёзды) / шар / надпись */
.platform-visual { --px: 0; --py: 0; }
.platform-visual::before { translate: calc(var(--px) * -26px) calc(var(--py) * -26px); }
.platform-visual .platform-star.a { translate: calc(var(--px) * -44px) calc(var(--py) * -44px); }
.platform-visual .platform-star.b { translate: calc(var(--px) * -64px) calc(var(--py) * -64px); }
.platform-visual .platform-shape strong {
  display: block;
  translate: calc(var(--px) * 34px) calc(var(--py) * 34px);
}
@media (max-width: 600px) {
  .platform-visual .platform-shape strong { translate: calc(var(--px) * 20px) calc(var(--py) * 20px); }
}

/* Кнопка «Перейти на AI Добра 2026»: отступ от текста, подпись по ширине кнопки */
.ai-cta {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: max-content;
  max-width: 100%;
  margin-top: 34px;
}
.ai-cta .btn { margin-top: 0; }
.ai-cta small {
  display: block;
  width: 0;
  min-width: 100%;
  margin-top: 10px;
  font-size: 11px;
  line-height: 1.35;
  text-align: center;
  white-space: normal;
}

/* Карточки архива 2024 / 2025: отступ текста от стрелки + живая анимация */
.archive-card > div { padding-right: 76px; position: relative; z-index: 1; }
.archive-card p { max-width: 300px; }
.archive-card::after {
  transition: border-color .8s ease, opacity .8s ease;
}
/* Радарные волны из центра кольца при наведении: мягко, без рывков */
.archive-card::before {
  content: '';
  position: absolute;
  right: -80px;
  bottom: -125px;
  width: 365px;
  height: 365px;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
  transition: opacity .8s ease;
}
.archive-card:hover::before {
  opacity: 1;
  animation: archive-radar 3.2s cubic-bezier(.2,.5,.3,1) infinite;
}
@keyframes archive-radar {
  0%   { box-shadow: 0 0 0 0 #ffffff00, 0 0 0 0 #ffffff00; }
  8%   { box-shadow: 0 0 0 6px #ffffff66, 0 0 0 0 #ffffff00; }
  50%  { box-shadow: 0 0 0 80px #ffffff00, 0 0 0 40px #ffffff44; }
  100% { box-shadow: 0 0 0 150px #ffffff00, 0 0 0 130px #ffffff00; }
}
.archive-card:hover::after { border-color: #ffffff99; }
.archive-card .year {
  display: inline-block;
  transition: transform .45s cubic-bezier(.2,.8,.2,1), letter-spacing .45s;
}
.archive-card:hover .year { transform: translateX(10px) scale(1.04); transform-origin: left center; }
.archive-card h3, .archive-card p { transition: transform .45s cubic-bezier(.2,.8,.2,1); }
.archive-card:hover h3 { transform: translateX(6px); }
.archive-card:hover p  { transform: translateX(6px); transition-delay: .04s; }
.archive-card .archive-link {
  transition: transform .4s cubic-bezier(.2,.8,.2,1), background-color .3s;
}
.archive-card:hover .archive-link { transform: rotate(45deg) scale(1.08); background-color: var(--orange); }
.archive-card:hover .archive-link { color: var(--ink); }
@media (max-width: 600px) {
  .archive-card > div { padding-right: 64px; }
}

/* Форма заявки: галочка согласия — отступ от текста, единый шрифт и цвет */
.t-input-group_cb .t-checkbox__control {
  position: relative;
  display: flex !important;
  align-items: flex-start;
  gap: 14px;
  margin: 6px 0 4px;
  padding: 0;
  font-family: inherit;
  font-size: 14px;
  line-height: 1.5;
  color: #17393b !important;
  cursor: pointer;
  text-align: left;
}
.t-input-group_cb .t-checkbox {
  position: absolute !important;
  opacity: 0 !important;
  width: 22px !important;
  height: 22px !important;
  margin: 0 !important;
  left: 0;
  top: 1px;
  cursor: pointer;
}
.t-input-group_cb .t-checkbox__indicator {
  position: relative;
  flex: none;
  box-sizing: border-box;
  width: 22px !important;
  height: 22px !important;
  margin: 1px 0 0 !important;
  border: 1.5px solid #17393b !important;
  border-radius: 6px !important;
  background: #fff !important;
  transition: background-color .2s, border-color .2s, box-shadow .2s;
}
.t-input-group_cb .t-checkbox__indicator::after {
  content: '';
  position: absolute;
  left: 6px;
  top: 2px;
  width: 6px;
  height: 11px;
  border: solid #17393b;
  border-width: 0 2.5px 2.5px 0;
  transform: rotate(45deg) scale(0);
  transition: transform .2s;
}
.t-input-group_cb .t-checkbox:checked + .t-checkbox__indicator {
  background: #f39a38 !important;
  border-color: #f39a38 !important;
}
.t-input-group_cb .t-checkbox:checked + .t-checkbox__indicator::after { transform: rotate(45deg) scale(1); }
.t-input-group_cb .t-checkbox:focus-visible + .t-checkbox__indicator { box-shadow: 0 0 0 3px #f39a3866; }
.t-input-group_cb .t-checkbox__control > span { display: block; flex: 1; }
.t-input-group_cb .t-checkbox__control a { color: inherit; text-underline-offset: 3px; }

/* Телефоны и планшеты: у блока «Летопись добра» нет мыши, а бесконечное «дыхание» кольца и размытие 75px
   на старых iPhone заставляют блок мерцать при прокрутке. Оставляем статичную картинку. */
@media (hover: none) {
  .platform-visual::before { animation: none !important; }
  .platform-visual::after { filter: none !important; background: radial-gradient(circle, #f4a23a99 0%, transparent 70%) !important; width: 220px !important; height: 220px !important; right: -60px !important; bottom: -60px !important; }
}
