/* ===== ЗАГАДКИНО — Custom Styles ===== */

/* Float animation for mascot */
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-12px); }
}
.animate-float { animation: float 4s ease-in-out infinite; }

/* Fade-in on scroll */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-in { opacity: 0; }
.fade-in.visible { animation: fadeInUp 0.6s ease forwards; }

/* Custom scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #FFF4E1; }
::-webkit-scrollbar-thumb { background: #E6A24A; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #C8882E; }

/* Smooth scroll */
html { scroll-behavior: smooth; }

/* Form focus ring */
.form-field:focus {
  outline: none;
  border-color: #E6A24A;
  box-shadow: 0 0 0 3px rgba(230, 162, 74, 0.2);
}

/* Gradient text */
.text-gradient {
  background: linear-gradient(135deg, #E6A24A 0%, #C8882E 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Card hover lift */
.card-hover { transition: transform 0.2s ease, box-shadow 0.2s ease; }
.card-hover:hover { transform: translateY(-4px); box-shadow: 0 20px 40px rgba(90, 51, 24, 0.15); }

/* Sticky header transition */
.header-scrolled { box-shadow: 0 2px 20px rgba(90, 51, 24, 0.1); }

/* B2B Table alternating rows */
.advantage-row:nth-child(even) { background: rgba(230, 162, 74, 0.06); }

/* ===== SOLUTIONS MODAL ===== */
.solutions-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.solutions-modal[hidden] { display: none; }

.solutions-overlay {
  position: absolute;
  inset: 0;
  background: rgba(30, 15, 5, 0.75);
  backdrop-filter: blur(4px);
}

.solutions-panel {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 900px;
  max-height: 92vh;
  background: #5A3318;
  border-radius: 24px 24px 0 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: panelSlideUp 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes panelSlideUp {
  from { transform: translateY(100%); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

.solutions-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid rgba(230, 162, 74, 0.2);
  background: rgba(0,0,0,0.15);
  flex-shrink: 0;
}

.solutions-body {
  overflow-y: auto;
  padding: 20px 20px 28px;
  flex: 1;
}
.solutions-body::-webkit-scrollbar { width: 4px; }
.solutions-body::-webkit-scrollbar-track { background: transparent; }
.solutions-body::-webkit-scrollbar-thumb { background: rgba(230,162,74,0.4); border-radius: 2px; }

.solutions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 10px;
}

@media (min-width: 480px) {
  .solutions-grid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }
}

.solution-card {
  aspect-ratio: 9/14;
  background: rgba(255,244,225,0.08);
  border: 1px solid rgba(230,162,74,0.2);
  border-radius: 14px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 10px 8px;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
  overflow: hidden;
}
.solution-card:hover {
  transform: translateY(-3px) scale(1.03);
  background: rgba(230,162,74,0.15);
  border-color: rgba(230,162,74,0.5);
}
.solution-card:hover .solution-play {
  opacity: 1;
  transform: scale(1.15);
}

.solution-num {
  font-family: 'Comfortaa', sans-serif;
  font-size: 11px;
  font-weight: 700;
  color: rgba(230,162,74,0.6);
  align-self: flex-start;
}

.solution-play {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(230,162,74,0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.7;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.solution-name {
  font-family: 'Nunito', sans-serif;
  font-size: 10px;
  font-weight: 600;
  color: rgba(255,244,225,0.75);
  text-align: center;
  line-height: 1.3;
}

.solutions-video-player {
  width: 100%;
  max-width: 360px;
  aspect-ratio: 9/16;
  background: #000;
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.solutions-video-player iframe {
  width: 100%;
  height: 100%;
  border: none;
}
.solutions-video-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: rgba(255,244,225,0.4);
  font-family: 'Nunito', sans-serif;
  font-size: 13px;
  text-align: center;
  padding: 24px;
  height: 100%;
}

/* Узлик speech bubble */
.solutions-bubble {
  animation: bubblePop 0.5s 1.2s both;
}
@keyframes bubblePop {
  from { opacity: 0; transform: scale(0.8) translateY(4px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}
