/* assets/css/enhancements.css — полировка UX поверх style.css */

:root {
  --sp-amber-from: #F59E0B;
  --sp-amber-to: #F97316;
  --sp-teal: #0F766E;
}

.hero-cta-primary {
  background-image: linear-gradient(90deg, var(--sp-amber-from), var(--sp-amber-to));
  color: #18181b;
  font-weight: 700;
  box-shadow: 0 12px 28px -14px rgba(249, 115, 22, 0.55);
}

.hero-cta-primary:hover {
  filter: brightness(1.05);
}

.hero-price-anchor {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
  padding: 0.5rem 0.875rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(6px);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

@media (min-width: 1024px) {
  .hero-section-polish {
    padding-top: 5rem;
    padding-bottom: 5rem;
  }
}

/* Mobile sticky CTA */
.sp-sticky-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 55;
  display: none;
  padding: 0.625rem 0.75rem calc(0.625rem + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  border-top: 1px solid #e4e4e7;
  box-shadow: 0 -8px 24px rgba(24, 24, 27, 0.08);
}

.sp-sticky-cta.is-visible {
  display: block;
}

.sp-sticky-cta__inner {
  display: flex;
  gap: 0.5rem;
  max-width: 42rem;
  margin: 0 auto;
}

.sp-sticky-cta__btn {
  flex: 1;
  min-height: 48px;
  border: none;
  border-radius: 0.75rem;
  font-weight: 700;
  font-size: 0.9375rem;
  cursor: pointer;
  transition: transform 0.15s ease, filter 0.15s ease;
}

.sp-sticky-cta__btn:active {
  transform: scale(0.98);
}

.sp-sticky-cta__btn--primary {
  background-image: linear-gradient(90deg, var(--sp-amber-from), var(--sp-amber-to));
  color: #18181b;
}

.sp-sticky-cta__btn--secondary {
  background: var(--sp-teal);
  color: #fff;
}

.sp-sticky-cta.is-pulse .sp-sticky-cta__btn--primary {
  animation: sp-sticky-pulse 1.1s ease-out 1;
}

@keyframes sp-sticky-pulse {
  0% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.55); }
  70% { box-shadow: 0 0 0 14px rgba(245, 158, 11, 0); }
  100% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0); }
}

@media (min-width: 768px) {
  .sp-sticky-cta {
    display: none !important;
  }
}

body.has-sticky-cta {
  padding-bottom: 4.75rem;
}

@media (min-width: 768px) {
  body.has-sticky-cta {
    padding-bottom: 0;
  }
}

button[type="submit"] {
  min-height: 48px;
}


/* Компактная высота левого hero-блока на десктопе:
   выравниваем по высоте правой колонки, ширины не меняем (7/5) */
@media (min-width: 1024px) {
  .hero-main-card {
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
  }
  .hero-main-card h1 {
    font-size: 2.75rem;
    line-height: 1.15;
    margin-bottom: 0.875rem;
  }
  .hero-main-card > p {
    margin-bottom: 1rem;
  }
  .hero-main-card .hero-price-anchor {
    margin-top: 0.25rem;
  }
  .hero-main-card nav {
    margin-top: 1rem;
  }
  .hero-main-card .grid.mt-6 {
    margin-top: 1rem;
  }
  .hero-main-card .border-t {
    margin-top: 1rem;
    padding-top: 0.75rem;
  }
}

@media (min-width: 1280px) {
  .hero-main-card h1 {
    font-size: 3.25rem;
  }
}
