/* Cibomio — кнопка «i» (пульс как у микрофона) + модалка «О проекте» */

.km-info-glow {
  --km-info-green: #388e3c;
  --km-info-green-dark: #1b5e20;
  box-sizing: border-box;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: none;
  border-radius: 50%;
  color: #fff;
  font-family: var(--km-font-display, "Akt", Georgia, serif);
  font-size: 18px;
  font-weight: 800;
  font-style: italic;
  line-height: 1;
  background: var(--km-info-green);
  outline: none;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(56, 142, 60, 0.35);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  flex-shrink: 0;
  z-index: 2;
  -webkit-tap-highlight-color: transparent;
  overflow: visible;
}

.km-info-glow::before,
.km-info-glow::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid rgba(56, 142, 60, 0.38);
  pointer-events: none;
  opacity: 0;
  transform: scale(1);
  animation: km-info-ring-idle 3.6s ease-out infinite;
}

.km-info-glow::after {
  animation-delay: 1.8s;
}

@keyframes km-info-ring-idle {
  0% {
    opacity: 0.55;
    transform: scale(1);
  }
  55% {
    opacity: 0;
    transform: scale(1.55);
  }
  100% {
    opacity: 0;
    transform: scale(1.55);
  }
}

.km-info-glow:hover,
.km-info-glow:focus-visible {
  background: var(--km-info-green-dark);
  transform: scale(1.04);
  box-shadow: 0 8px 22px rgba(56, 142, 60, 0.42);
}

.km-info-glow:active {
  transform: scale(0.97);
}

.km-testmain__info-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 6;
}

@media (min-width: 520px) {
  .km-testmain__info-btn {
    top: 14px;
    right: 14px;
    width: 44px;
    height: 44px;
    font-size: 20px;
  }
}

.km-header-info {
  width: 34px;
  height: 34px;
  font-size: 15px;
  margin-right: 2px;
}

@media (max-width: 900px) {
  .km-header-info {
    width: 32px;
    height: 32px;
    font-size: 14px;
  }
}

.km-about-ov {
  position: fixed;
  inset: 0;
  z-index: 10080;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: max(16px, env(safe-area-inset-top)) 16px max(16px, env(safe-area-inset-bottom));
  background: rgba(20, 40, 22, 0);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.32s ease, background 0.32s ease, visibility 0.32s ease;
}

.km-about-ov.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  background: rgba(20, 40, 22, 0.48);
}

.km-about-modal {
  position: relative;
  width: min(560px, 100%);
  max-height: min(82vh, 720px);
  overflow: auto;
  padding: 28px 24px 24px;
  border-radius: 22px;
  background:
    radial-gradient(ellipse 80% 50% at 100% 0%, rgba(76, 175, 80, 0.14), transparent 55%),
    linear-gradient(160deg, #f7fbf7 0%, #ffffff 45%, #eef6ef 100%);
  border: 1.5px solid rgba(56, 142, 60, 0.28);
  box-shadow: 0 24px 64px rgba(26, 46, 28, 0.22);
  color: #1a2e1c;
  transform: translateY(18px) scale(0.96);
  opacity: 0;
  transition: transform 0.34s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.28s ease;
}

.km-about-ov.is-open .km-about-modal {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.km-about-modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  color: #5a6b5c;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(26, 46, 28, 0.08);
}

.km-about-modal__close:hover {
  color: #1b5e20;
  background: #fff;
}

.km-about-modal__title {
  margin: 0 0 18px;
  padding-right: 36px;
  font-family: var(--km-font-display, "Akt", Georgia, serif);
  font-size: clamp(18px, 3.6vw, 24px);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: #1b5e20;
}

.km-about-modal__section {
  margin: 0 0 16px;
}

.km-about-modal__section h3 {
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 900;
  color: #2e7d32;
}

.km-about-modal__section p {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.55;
  color: #445544;
}

.km-about-modal__foot {
  margin: 18px 0 0;
  padding-top: 14px;
  border-top: 1px dashed rgba(56, 142, 60, 0.28);
  font-size: 13px;
  font-weight: 700;
  color: #5a6b5c;
}

.km-about-modal__foot a {
  color: #2e7d32;
  font-weight: 800;
}

@media (prefers-reduced-motion: reduce) {
  .km-info-glow,
  .km-about-ov,
  .km-about-modal {
    transition: none;
  }
  .km-info-glow::before,
  .km-info-glow::after {
    animation: none;
    display: none;
  }
}
