:root{
  --hero-maxw: 1600px;
  --hero-radius: 28px;

  --txt-main: #ffffff;
  --txt-dim:  rgba(255,255,255,.92);

  --accent:     #7c92a0;
  --accent-ink: #0B1221;

  --shadow: 0 28px 60px rgba(0,0,0,.45);
  --badge-bg: rgba(0,0,0,.38);
}

.hero{
  position: relative;
  padding: clamp(14px, 3vw, 24px);
  display: grid;
  place-items: center;
  color: var(--txt-main);
}

.hero-shell{
  width: 100%;
  max-width: var(--hero-maxw);
  margin-inline: auto;
}

.hero-card{
  position: relative;
  width: min(100%, var(--hero-maxw));
  aspect-ratio: 1600 / 640;
  border-radius: var(--hero-radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  /* Фон баннера: путь к статику абсолютный */
  background: url("/static/background.webp") center/cover no-repeat;
  display: grid;
  place-items: center;
  isolation: isolate;
}

@media (max-width: 992px){
  .hero-card{
    aspect-ratio: auto;
    min-height: clamp(520px, 70vh, 760px);
  }
}

.hero-card::before{
  content:""; position:absolute; inset:0; z-index:0;
  background: linear-gradient(to top, rgba(0,0,0,.55) 0%, rgba(0,0,0,.25) 40%, rgba(0,0,0,0) 65%);
}

.hero-content{
  position: relative; z-index: 1;
  max-width: min(980px, 92%);
  padding: clamp(16px, 4vw, 40px);
  text-align: center;
  display: grid;
  gap: clamp(12px, 2.2vw, 18px);
  align-content: center;
  justify-items: center;
}

.hero-badge{
  padding: 8px 14px;
  border-radius: 999px;
  font: 600 14px/1.2 Inter, sans-serif;
  background: var(--badge-bg);
  backdrop-filter: blur(3px);
}

.hero-title{
  margin: 0;
  font-family: "Unbounded", sans-serif;
  font-weight: 800;
  font-size: clamp(28px, 5.2vw, 54px);
  line-height: 1.1;
  text-shadow: 0 2px 18px rgba(0,0,0,.45);
}

.hero-text{
  margin: 0;
  font: 400 clamp(16px, 2vw, 18px)/1.65 Inter, sans-serif;
  color: var(--txt-dim);
  text-shadow: 0 1px 12px rgba(0,0,0,.35);
}

.hero-actions{
  display: flex;
  gap: 16px;
  justify-content: center;
  align-items: center;
  margin-top: clamp(6px, 1.6vw, 10px);
}

.hero-phone,
.btn-hero{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 20px;
  border-radius: 14px;
  text-decoration: none;
  font: 700 16px/1 Inter, sans-serif;
  transition: transform .15s ease, filter .2s ease;
  white-space: nowrap;
}

.hero-phone{
  color: #fff;
  background: rgba(0,0,0,.35);
  backdrop-filter: blur(3px);
}

.hero-phone-ico{
  width: 18px; height: 18px; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='%23000' d='M6.62 10.79a15.05 15.05 0 006.59 6.59l2.2-2.2a1 1 0 011.01-.24c1.1.37 2.28.57 3.5.57a1 1 0 011 1V21a1 1 0 01-1 1C10.07 22 2 13.93 2 3a1 1 0 011-1h3.5a1 1 0 011 1c0 1.22.2 2.4.57 3.5a1 1 0 01-.24 1.01l-2.2 2.2z'/%3E%3C/svg%3E") center/contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='%23000' d='M6.62 10.79a15.05 15.05 0 006.59 6.59l2.2-2.2a1 1 0 011.01-.24c1.1.37 2.28.57 3.5.57a1 1 0 011 1V21a1 1 0 01-1 1C10.07 22 2 13.93 2 3a1 1 0 011-1h3.5a1 1 0 011 1c0 1.22.2 2.4.57 3.5a1 1 0 01-.24 1.01l-2.2 2.2z'/%3E%3C/svg%3E") center/contain no-repeat;
}

.btn-hero{
  background: linear-gradient(90deg, var(--accent), var(--accent));
  color: var(--accent-ink);
}

.hero-phone:hover,
.btn-hero:hover{ filter: brightness(.96); transform: translateY(-1px); }
.hero-phone:active,
.btn-hero:active{ transform: translateY(0); }

@media (max-width: 640px){
  .hero-actions{
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }
  .hero-phone, .btn-hero{
    width: 100%;
    max-width: 320px;
    text-align: center;
  }
}
