/* Главная — макет design/work/index1_2 */

/* Карточки маршрутов */
.home-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.home-card {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.home-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.home-card-title {
  margin: 0 0 0.75rem;
  font-size: 1.25rem;
  color: #2e4a3e;
  font-weight: 600;
}

.home-card-text {
  margin: 0 0 1.5rem;
  color: var(--pub-text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
  flex: 1 1 auto;
}

/* Блок «О данных» */
.home-info {
  padding: 2.5rem;
  display: flex;
  gap: 2.5rem;
  align-items: flex-start;
}

.home-info-aside {
  flex: 0 0 280px;
  background: var(--pub-icon-bg);
  border-radius: var(--pub-radius-md);
  padding: 2rem;
  text-align: center;
}

/* Прыгающий «?» — design/login/test.html */
.home-info-aside-icon {
  position: relative;
  width: 100%;
  max-width: 200px;
  min-height: 132px;
  margin: 0 auto 1.25rem;
  background: transparent;
  border: none;
  box-shadow: none;
}

.home-info-animation-stage {
  position: relative;
  width: 100%;
  min-height: 132px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.home-info-question-circle {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  width: 92px;
  height: 92px;
  margin: 0;
  padding: 0;
  border: none;
  background: radial-gradient(circle at 35% 30%, #3f8b6e, #236b4c);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.35rem;
  font-weight: 700;
  line-height: 1;
  color: #fff;
  text-shadow: 0 4px 12px rgba(0, 20, 0, 0.3);
  cursor: pointer;
  box-shadow:
    0 12px 22px -8px rgba(0, 0, 0, 0.22),
    inset 0 2px 4px rgba(255, 255, 255, 0.5);
  transition: box-shadow 0.2s, filter 0.2s;
  font-family: system-ui, "Segoe UI", sans-serif;
  will-change: transform;
  z-index: 10;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.home-info-question-circle:hover {
  filter: brightness(1.02);
  box-shadow: 0 16px 26px -10px rgba(0, 0, 0, 0.28);
}

.home-info-question-circle:focus-visible {
  outline: 3px solid rgba(58, 90, 56, 0.45);
  outline-offset: 4px;
}

.home-info-question-shadow {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 72px;
  height: 16px;
  background: radial-gradient(
    ellipse at center,
    rgba(50, 70, 45, 0.35) 0%,
    rgba(30, 50, 30, 0.1) 70%,
    transparent 100%
  );
  border-radius: 50%;
  filter: blur(3px);
  will-change: transform, opacity;
  pointer-events: none;
  z-index: 5;
}

.home-bounce-infinite-circle {
  animation: homeBounceJumpCircle 1.4s cubic-bezier(0.28, 0.65, 0.4, 1) infinite;
}

.home-bounce-infinite-shadow {
  animation: homeBounceShadowScale 1.4s cubic-bezier(0.28, 0.65, 0.4, 1) infinite;
}

@keyframes homeBounceJumpCircle {
  0% {
    transform: translateX(-50%) translateY(0) scale(1);
  }
  25% {
    transform: translateX(-50%) translateY(-38px) scale(1.03, 0.97);
    animation-timing-function: ease-out;
  }
  45% {
    transform: translateX(-50%) translateY(-14px) scale(0.98, 1.02);
    animation-timing-function: ease-in;
  }
  65% {
    transform: translateX(-50%) translateY(0) scale(1.08, 0.92);
    animation-timing-function: ease-out;
  }
  80% {
    transform: translateX(-50%) translateY(0) scale(0.99, 1.01);
  }
  100% {
    transform: translateX(-50%) translateY(0) scale(1);
  }
}

@keyframes homeBounceShadowScale {
  0% {
    transform: translateX(-50%) scaleX(1);
    opacity: 0.6;
    width: 72px;
  }
  25% {
    transform: translateX(-50%) scaleX(0.55);
    opacity: 0.2;
    width: 46px;
  }
  45% {
    transform: translateX(-50%) scaleX(0.75);
    opacity: 0.35;
    width: 58px;
  }
  65% {
    transform: translateX(-50%) scaleX(1.15);
    opacity: 0.7;
    width: 80px;
  }
  80% {
    transform: translateX(-50%) scaleX(0.95);
    opacity: 0.55;
  }
  100% {
    transform: translateX(-50%) scaleX(1);
    opacity: 0.6;
    width: 72px;
  }
}

.home-super-jump-circle {
  animation: homeSuperJumpCircle 0.65s cubic-bezier(0.2, 0.9, 0.4, 1.1) forwards;
}

.home-super-jump-shadow {
  animation: homeSuperJumpShadow 0.65s cubic-bezier(0.2, 0.9, 0.4, 1.1) forwards;
}

@keyframes homeSuperJumpCircle {
  0% {
    transform: translateX(-50%) translateY(0) scale(1);
  }
  35% {
    transform: translateX(-50%) translateY(-68px) scale(1.05, 0.93);
  }
  60% {
    transform: translateX(-50%) translateY(-16px) scale(0.96, 1.05);
  }
  85% {
    transform: translateX(-50%) translateY(0) scale(1.12, 0.88);
  }
  100% {
    transform: translateX(-50%) translateY(0) scale(1);
  }
}

@keyframes homeSuperJumpShadow {
  0% {
    transform: translateX(-50%) scaleX(1);
    opacity: 0.65;
    width: 72px;
  }
  35% {
    transform: translateX(-50%) scaleX(0.4);
    opacity: 0.1;
    width: 34px;
  }
  60% {
    transform: translateX(-50%) scaleX(0.8);
    opacity: 0.3;
    width: 58px;
  }
  85% {
    transform: translateX(-50%) scaleX(1.25);
    opacity: 0.8;
    width: 86px;
  }
  100% {
    transform: translateX(-50%) scaleX(1);
    opacity: 0.6;
    width: 72px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-bounce-infinite-circle,
  .home-bounce-infinite-shadow,
  .home-super-jump-circle,
  .home-super-jump-shadow {
    animation: none !important;
  }
}

.home-info-aside h2 {
  margin: 0 0 1rem;
  font-size: 1.1rem;
  color: #2e4a3e;
  font-weight: 600;
}

.home-info-aside p {
  margin: 0 0 1.5rem;
  font-size: 0.875rem;
  color: var(--pub-text-muted);
  line-height: 1.6;
}

.home-info-jump {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--pub-action-bg);
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: var(--pub-radius-sm);
  color: var(--pub-action-color);
  font-weight: 500;
  font-size: inherit;
  font-family: inherit;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s ease;
}

.home-info-jump-chevron {
  flex-shrink: 0;
  transition: transform 0.25s ease;
}

.home-info--expanded .home-info-jump-chevron {
  transform: rotate(180deg);
}

.home-info-jump:hover {
  background: var(--pub-action-hover-bg);
}

.home-info-body {
  flex: 1 1 auto;
  min-width: 0;
}

.home-info-text p {
  margin: 0 0 1rem;
  color: #555;
  line-height: 1.8;
  font-size: 0.95rem;
}

.home-info-text p:last-child {
  margin-bottom: 0;
}

.home-info-body .cc-license {
  color: #66bb6a;
  font-weight: 600;
}

.home-info {
  transition: box-shadow 0.3s ease;
}

.home-info--expanded {
  box-shadow: 0 10px 28px rgba(46, 74, 62, 0.1);
}

@media (max-width: 1200px) {
  .home-cards {
    grid-template-columns: 1fr;
  }

  .home-info {
    flex-direction: column;
  }

  .home-info-aside {
    flex: none;
    width: 100%;
  }
}

@media (max-width: 768px) {
  .home-card,
  .home-info {
    padding: 1.35rem;
  }
}
