/* Hero — мокап персональной страницы подбора для клиента */

.hero-visual--offer::before {
  background: linear-gradient(160deg, rgba(14, 165, 233, 0.22), rgba(249, 115, 22, 0.1));
}

.lead-tagline {
  font-family: var(--font-display);
  font-size: clamp(1rem, 1.4vw, 1.125rem);
  font-weight: 600;
  color: var(--ink-soft);
  margin: -0.75rem 0 1.75rem;
  animation: fade-up 0.8s ease 0.25s both;
}

.hero-offer {
  position: relative;
  z-index: 1;
  width: 100%;
  border-radius: 1.35rem;
  overflow: hidden;
  background: #f0f9ff;
  border: 1px solid rgba(255, 255, 255, 0.95);
  box-shadow:
    var(--shadow-lg),
    0 24px 56px rgba(14, 165, 233, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
  transform: perspective(1200px) rotateY(-4deg) rotateX(2deg);
  transform-origin: center center;
  transition:
    transform 0.6s cubic-bezier(0.23, 1, 0.32, 1),
    box-shadow 0.6s ease;
}

.hero-offer:hover {
  transform: perspective(1200px) rotateY(-2deg) rotateX(1deg) translateY(-4px);
  box-shadow:
    var(--shadow-lg),
    0 32px 64px rgba(14, 165, 233, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

@media (max-width: 959px) {
  .hero-offer {
    transform: none;
  }

  .hero-offer:hover {
    transform: translateY(-4px);
  }
}

.hero-offer-chrome {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.55rem 0.75rem;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--line);
}

.hero-offer-chrome-dot {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: #cbd5e1;
}

.hero-offer-chrome-dot:nth-child(1) {
  background: #f87171;
}
.hero-offer-chrome-dot:nth-child(2) {
  background: #fbbf24;
}
.hero-offer-chrome-dot:nth-child(3) {
  background: #4ade80;
}

.hero-offer-chrome-url {
  flex: 1;
  margin-left: 0.35rem;
  padding: 0.28rem 0.55rem;
  border-radius: 0.4rem;
  background: #f1f5f9;
  font-size: 0.58rem;
  font-weight: 600;
  color: #64748b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hero-offer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.65rem 0.85rem;
  background: linear-gradient(135deg, #0284c7, #0369a1);
  color: #fff;
}

.hero-offer-brand {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  min-width: 0;
}

.hero-offer-logo {
  display: grid;
  place-items: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 0.55rem;
  background: rgba(255, 255, 255, 0.2);
  font-family: var(--font-display);
  font-size: 0.62rem;
  font-weight: 700;
  flex-shrink: 0;
}

.hero-offer-brand strong {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hero-offer-brand span {
  display: block;
  font-size: 0.5rem;
  opacity: 0.82;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hero-offer-call {
  flex-shrink: 0;
  padding: 0.3rem 0.55rem;
  border-radius: 0.45rem;
  background: rgba(255, 255, 255, 0.15);
  font-size: 0.52rem;
  font-weight: 700;
}

.hero-offer-layout {
  display: grid;
  gap: 0.55rem;
  padding: 0.65rem;
}

@media (min-width: 520px) {
  .hero-offer-layout {
    grid-template-columns: minmax(0, 1fr) 5.5rem;
    align-items: start;
  }
}

.hero-offer-main {
  min-width: 0;
}

.hero-offer-intro {
  padding: 0.65rem 0.75rem;
  border-radius: 0.85rem;
  background: #fff;
  box-shadow: 0 2px 10px rgba(12, 74, 110, 0.05);
}

.hero-offer-kicker {
  display: block;
  font-size: 0.48rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #94a3b8;
}

.hero-offer-intro h3 {
  margin: 0.25rem 0 0;
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--ink);
}

.hero-offer-intro p {
  margin: 0.25rem 0 0;
  font-size: 0.55rem;
  color: var(--muted);
}

.hero-offer-pills {
  display: flex;
  gap: 0.3rem;
  margin-top: 0.45rem;
  overflow-x: auto;
  padding-bottom: 0.1rem;
  -webkit-overflow-scrolling: touch;
}

.hero-offer-pill {
  flex-shrink: 0;
  padding: 0.3rem 0.55rem;
  border-radius: 999px;
  border: 1px solid #bae6fd;
  background: #fff;
  font-family: var(--font-body);
  font-size: 0.5rem;
  font-weight: 700;
  color: #334155;
  cursor: pointer;
  transition: all 0.25s ease;
}

.hero-offer-pill:hover {
  border-color: #38bdf8;
}

.hero-offer-pill.is-active {
  border-color: transparent;
  background: linear-gradient(135deg, #0284c7, #0ea5e9);
  color: #fff;
  box-shadow: 0 4px 14px rgba(14, 165, 233, 0.35);
}

.hero-offer-slider {
  margin-top: 0.45rem;
  overflow: hidden;
  border-radius: 0.85rem;
}

.hero-offer-track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.hero-offer-slide {
  flex: 0 0 100%;
  min-width: 0;
}

.hero-offer-card {
  overflow: hidden;
  border-radius: 0.85rem;
  border: 1px solid #e0f2fe;
  background: #fff;
  box-shadow: 0 4px 16px rgba(12, 74, 110, 0.06);
  transition:
    border-color 0.3s ease,
    box-shadow 0.3s ease;
}

.hero-offer-card.is-selected {
  border-color: #0ea5e9;
  box-shadow:
    0 0 0 1px rgba(14, 165, 233, 0.35),
    0 8px 24px rgba(14, 165, 233, 0.18);
  animation: hero-offer-pulse 2s ease-in-out infinite;
}

@keyframes hero-offer-pulse {
  0%,
  100% {
    box-shadow:
      0 0 0 1px rgba(14, 165, 233, 0.35),
      0 8px 24px rgba(14, 165, 233, 0.18);
  }
  50% {
    box-shadow:
      0 0 0 3px rgba(14, 165, 233, 0.12),
      0 12px 28px rgba(14, 165, 233, 0.22);
  }
}

.hero-offer-card-media {
  position: relative;
  height: 5.5rem;
  overflow: hidden;
}

.hero-offer-card-media-bg {
  position: absolute;
  inset: 0;
}

.hero-offer-card-media-bg--tr {
  background: linear-gradient(135deg, #0ea5e9 0%, #38bdf8 40%, #fbbf24 100%);
}
.hero-offer-card-media-bg--ae {
  background: linear-gradient(135deg, #f59e0b 0%, #fbbf24 35%, #0284c7 100%);
}
.hero-offer-card-media-bg--th {
  background: linear-gradient(135deg, #10b981 0%, #34d399 45%, #0ea5e9 100%);
}

.hero-offer-card-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.75) 0%, transparent 55%);
}

.hero-offer-card-num {
  position: absolute;
  top: 0.45rem;
  left: 0.45rem;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 0.4rem;
  background: rgba(255, 255, 255, 0.95);
  font-family: var(--font-display);
  font-size: 0.58rem;
  font-weight: 700;
  color: #0f172a;
}

.hero-offer-card-badge {
  position: absolute;
  top: 0.45rem;
  right: 0.45rem;
  z-index: 1;
  display: none;
  align-items: center;
  gap: 0.15rem;
  padding: 0.2rem 0.45rem;
  border-radius: 999px;
  background: #10b981;
  font-size: 0.46rem;
  font-weight: 800;
  color: #fff;
}

.hero-offer-card.is-selected .hero-offer-card-badge {
  display: inline-flex;
  animation: hero-offer-pop 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes hero-offer-pop {
  0% {
    transform: scale(0.6);
    opacity: 0;
  }
  70% {
    transform: scale(1.08);
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.hero-offer-card-title {
  position: absolute;
  left: 0.45rem;
  right: 0.45rem;
  bottom: 0.45rem;
  z-index: 1;
}

.hero-offer-card-title strong {
  display: block;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.15;
  color: #fff;
}

.hero-offer-card-title span {
  display: block;
  margin-top: 0.1rem;
  font-size: 0.5rem;
  color: rgba(255, 255, 255, 0.9);
}

.hero-offer-card-body {
  padding: 0.5rem 0.55rem 0.55rem;
}

.hero-offer-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
}

.hero-offer-card-tag {
  padding: 0.18rem 0.38rem;
  border-radius: 0.4rem;
  background: #f0f9ff;
  font-size: 0.46rem;
  font-weight: 700;
  color: #0369a1;
}

.hero-offer-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.35rem;
  margin-top: 0.45rem;
  padding-top: 0.4rem;
  border-top: 1px solid #f1f5f9;
}

.hero-offer-card-price {
  margin: 0;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--ink);
  line-height: 1;
}

.hero-offer-card-price small {
  display: block;
  margin-top: 0.1rem;
  font-family: var(--font-body);
  font-size: 0.44rem;
  font-weight: 600;
  color: var(--muted);
}

.hero-offer-card-btn {
  flex-shrink: 0;
  padding: 0.35rem 0.55rem;
  border: none;
  border-radius: 0.5rem;
  background: linear-gradient(135deg, #0284c7, #0ea5e9);
  font-family: var(--font-body);
  font-size: 0.48rem;
  font-weight: 800;
  color: #fff;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(14, 165, 233, 0.35);
  transition: transform 0.15s ease, box-shadow 0.2s ease;
}

.hero-offer-card-btn:hover {
  transform: scale(1.04);
}

.hero-offer-card-btn.is-chosen {
  background: linear-gradient(135deg, #059669, #10b981);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.35);
}

.hero-offer-steps {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-top: 0.45rem;
  padding: 0.4rem 0.55rem;
  border-radius: 0.65rem;
  background: #fff;
}

.hero-offer-step {
  flex: 1;
  text-align: center;
  font-size: 0.44rem;
  font-weight: 700;
  color: #94a3b8;
  position: relative;
}

.hero-offer-step.is-done {
  color: #0284c7;
}

.hero-offer-step.is-active {
  color: #0f172a;
}

.hero-offer-step.is-active::after {
  content: '';
  display: block;
  width: 0.35rem;
  height: 0.35rem;
  margin: 0.15rem auto 0;
  border-radius: 50%;
  background: #0ea5e9;
  animation: hero-offer-pulse-dot 1.5s ease-in-out infinite;
}

@keyframes hero-offer-pulse-dot {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(14, 165, 233, 0.45);
  }
  50% {
    box-shadow: 0 0 0 5px transparent;
  }
}

.hero-offer-manager {
  display: none;
  padding: 0.45rem;
  border-radius: 0.75rem;
  background: #fff;
  box-shadow: 0 2px 10px rgba(12, 74, 110, 0.05);
}

@media (min-width: 520px) {
  .hero-offer-manager {
    display: block;
  }
}

.hero-offer-manager::before {
  content: '';
  display: block;
  height: 0.2rem;
  margin: -0.45rem -0.45rem 0.4rem;
  border-radius: 0.75rem 0.75rem 0 0;
  background: linear-gradient(90deg, #0284c7, #0ea5e9);
}

.hero-offer-manager-label {
  font-size: 0.42rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #94a3b8;
}

.hero-offer-manager-avatar {
  display: grid;
  place-items: center;
  width: 1.65rem;
  height: 1.65rem;
  margin-top: 0.35rem;
  border-radius: 0.5rem;
  background: linear-gradient(135deg, #0284c7, #0ea5e9);
  font-size: 0.5rem;
  font-weight: 800;
  color: #fff;
}

.hero-offer-manager-name {
  margin: 0.3rem 0 0;
  font-size: 0.52rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.2;
}

.hero-offer-manager-role {
  margin: 0.1rem 0 0;
  font-size: 0.42rem;
  color: var(--muted);
}

.hero-offer-sparkles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 5;
}

.hero-offer-sparkle {
  position: absolute;
  width: 0.35rem;
  height: 0.35rem;
  border-radius: 50%;
  background: #fbbf24;
  opacity: 0;
  animation: hero-offer-sparkle 0.7s ease-out forwards;
}

@keyframes hero-offer-sparkle {
  0% {
    opacity: 1;
    transform: scale(0) translate(0, 0);
  }
  100% {
    opacity: 0;
    transform: scale(1.2) translate(var(--sx), var(--sy));
  }
}

.float-card-offer {
  border-color: color-mix(in srgb, #10b981 35%, var(--line));
  background: linear-gradient(135deg, #fff, #ecfdf5);
}

.float-card-offer.is-show {
  animation: hero-offer-toast-in 0.5s cubic-bezier(0.22, 1, 0.36, 1) both, float-card 5s ease-in-out 0.5s infinite;
}

@keyframes hero-offer-toast-in {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.92);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-offer-track {
    transition: none;
  }

  .hero-offer-card.is-selected {
    animation: none;
  }

  .hero-offer-step.is-active::after {
    animation: none;
  }
}
