/* Анимация заливки при hover (Uiverse / gharsh11032000) — цвета кнопок сайта */

.btn-fill-gold {
  position: relative;
  overflow: hidden;
  z-index: 0;
  isolation: isolate;
  transition:
    transform 0.32s var(--ease-spring, cubic-bezier(0.34, 1.45, 0.64, 1)),
    box-shadow 0.38s var(--ease-spring-soft, cubic-bezier(0.22, 1, 0.36, 1)),
    color 0.32s var(--ease-spring-soft, cubic-bezier(0.22, 1, 0.36, 1));
}

.btn-fill-gold::before {
  content: "";
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  border-radius: inherit;
  z-index: -1;
  transform: scale(0);
  transform-origin: center center;
  transition: transform 0.55s cubic-bezier(0.23, 1, 0.32, 1);
}

.btn-fill-gold:hover::before {
  transform: scale(1);
}

.btn-fill-gold:disabled::before {
  transform: scale(0);
}

.btn-fill-gold:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

/* --- primary / submit --- */
.btn-fill-gold.primary-btn {
  color: #fff;
  border: 0;
  background: linear-gradient(135deg, #6f1f1e, #9a3d33);
}

.btn-fill-gold.primary-btn::before {
  background: linear-gradient(135deg, #c23a38, #9a2826);
}

.btn-fill-gold.primary-btn:hover {
  color: #fff;
  transform: translateY(-2px);
  filter: saturate(1.15);
  box-shadow: 0 10px 22px rgba(126, 38, 37, 0.38);
}

.btn-fill-gold.primary-btn:active {
  transform: scale(0.96) translateY(0);
}

/* --- «Посмотреть еще» --- */
.btn-fill-gold.view-more-btn {
  animation: none;
  border: 1px solid #7e2625;
  background: linear-gradient(135deg, #fff, #f7eee1);
  color: #7e2625;
}

.btn-fill-gold.view-more-btn::after {
  display: none;
}

.btn-fill-gold.view-more-btn::before {
  background: linear-gradient(135deg, #7e2625, #9f3b32);
}

.btn-fill-gold.view-more-btn:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 10px 18px rgba(88, 27, 22, 0.28);
  background: linear-gradient(135deg, #fff, #f7eee1);
}

/* --- Мягкое переливание (хиты, «О компании») --- */
.btn-fill-gold.btn-shimmer-soft,
.btn-fill-gold.hits-catalog-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 220px;
  padding: 12px 30px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 0.02em;
  text-decoration: none;
  border: 2px solid rgba(126, 38, 37, 0.32);
  background: linear-gradient(135deg, #fffefb 0%, #f7eee1 45%, #f0dfc8 100%);
  color: #7e2625;
  box-shadow:
    0 0 0 1px rgba(212, 165, 116, 0.25),
    0 8px 22px rgba(88, 27, 22, 0.16);
}

.btn-fill-gold.btn-shimmer-soft::before,
.btn-fill-gold.hits-catalog-btn::before {
  background: linear-gradient(135deg, #7e2625, #9f3b32);
}

.btn-shimmer-soft__shine,
.hits-catalog-btn__shine {
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  z-index: 0;
  background: linear-gradient(
    105deg,
    transparent 0%,
    rgba(255, 255, 255, 0.35) 45%,
    transparent 55%
  );
  transform: translateX(-120%);
  animation: heroCtaShine 4.2s ease-in-out infinite;
  pointer-events: none;
}

.btn-fill-gold.btn-shimmer-soft:hover,
.btn-fill-gold.hits-catalog-btn:hover {
  color: #fff;
  transform: translateY(-3px) scale(1.02);
  box-shadow:
    0 0 0 2px rgba(255, 248, 220, 0.7),
    0 14px 30px rgba(126, 38, 37, 0.35);
}

.btn-fill-gold.btn-shimmer-soft:hover .btn-shimmer-soft__shine,
.btn-fill-gold.hits-catalog-btn:hover .hits-catalog-btn__shine {
  animation-duration: 1.4s;
}

.btn-fill-gold.btn-shimmer-soft:active,
.btn-fill-gold.hits-catalog-btn:active {
  transform: translateY(-1px) scale(1.01);
}

/* --- Герой: заметная золотая CTA --- */
.btn-fill-gold.hero-cta {
  position: absolute;
  z-index: 4;
  padding: clamp(14px, 2vw, 18px) clamp(26px, 4vw, 36px);
  font-size: clamp(15px, 1.8vw, 19px);
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1.2;
  color: #3a1608;
  border: 2px solid rgba(255, 252, 240, 0.75);
  border-radius: 999px;
  background: linear-gradient(145deg, #ffe9a8 0%, #f0c24a 28%, #e5a82a 55%, #ffd978 100%);
  box-shadow:
    0 0 0 1px rgba(212, 154, 54, 0.35),
    0 10px 32px rgba(212, 154, 54, 0.55),
    0 6px 18px rgba(43, 14, 13, 0.28);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.35);
  pointer-events: auto;
  animation: heroCtaPulse 2.8s ease-in-out infinite;
}

.btn-fill-gold.hero-cta::before {
  background: linear-gradient(145deg, #fff4c8, #f5c84a, #d4921f);
}

.btn-fill-gold.hero-cta::after {
  display: none;
}

.hero-cta__shine {
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  z-index: 0;
  background: linear-gradient(
    105deg,
    transparent 0%,
    rgba(255, 255, 255, 0.55) 45%,
    transparent 55%
  );
  transform: translateX(-120%);
  animation: heroCtaShine 3.2s ease-in-out infinite;
  pointer-events: none;
}

@keyframes heroCtaPulse {
  0%,
  100% {
    box-shadow:
      0 0 0 1px rgba(212, 154, 54, 0.35),
      0 10px 32px rgba(212, 154, 54, 0.5),
      0 6px 18px rgba(43, 14, 13, 0.25);
  }
  50% {
    box-shadow:
      0 0 0 1px rgba(255, 230, 160, 0.65),
      0 14px 40px rgba(240, 180, 60, 0.72),
      0 8px 22px rgba(43, 14, 13, 0.32);
  }
}

@keyframes heroCtaShine {
  0%,
  42% {
    transform: translateX(-120%);
  }
  58%,
  100% {
    transform: translateX(120%);
  }
}

.btn-fill-gold.hero-cta:hover {
  color: #2a1006;
  transform: translateX(-50%) translateY(-3px) scale(1.03);
  animation-play-state: paused;
  box-shadow:
    0 0 0 2px rgba(255, 248, 220, 0.85),
    0 16px 44px rgba(240, 190, 70, 0.75),
    0 10px 24px rgba(43, 14, 13, 0.35);
}

.btn-fill-gold.hero-cta:active {
  transform: translateX(-50%) translateY(-1px) scale(1.01);
}

.btn-fill-gold.hero-cta:hover .hero-cta__shine {
  animation-duration: 1.2s;
}

/* Широкие кнопки в формах */
.btn-fill-gold.custom-submit,
.btn-fill-gold.catalog-submit {
  border-radius: 11px;
}

@media (prefers-reduced-motion: reduce) {
  .btn-fill-gold.hero-cta,
  .hero-cta__shine,
  .btn-fill-gold.hits-catalog-btn,
  .hits-catalog-btn__shine {
    animation: none;
  }
}
