/**
 * Кнопки баннера — как на главной (.cta-row / .cta-link).
 * POST: скрытая форма + <button type="submit" form="…" class="cta-link"> в ряду.
 */

.hero-overlay .cta-row,
.pub-hero-copy .cta-row {
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  flex-wrap: nowrap;
  gap: 4px;
  margin: auto 0 0;
  width: 75%;
  max-width: 980px;
}

.cta-link-form-anchor {
  display: none !important;
}

.cta-row > a.cta-link,
.cta-row > .cta-link--static,
.cta-row > button.cta-link {
  flex: 1 1 0;
  min-width: 0;
  align-self: flex-start;
  margin: 0;
}

.hero-overlay a.cta-link,
.hero-overlay button.cta-link,
.pub-hero-copy a.cta-link,
.pub-hero-copy button.cta-link,
.pub-hero-copy .cta-link--static,
.cta-row .cta-link--static {
  display: block;
  width: 100%;
  padding: 10px 4px 2px;
  position: relative;
  box-sizing: border-box;
  text-align: left;
  text-decoration: none !important;
  text-underline-offset: unset !important;
  color: #fff !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  cursor: pointer;
  font: inherit;
  -webkit-appearance: none;
  appearance: none;
  min-width: 0 !important;
  min-height: 0 !important;
  margin: 0 !important;
  vertical-align: top;
}

.cta-link--static {
  cursor: default;
}

a.cta-link:hover,
a.cta-link:focus,
a.cta-link:visited,
button.cta-link:hover,
button.cta-link:focus,
button.cta-link:active {
  color: #fff !important;
  text-decoration: none !important;
  background: transparent !important;
  box-shadow: none !important;
}

.cta-link::before {
  content: "";
  position: absolute;
  top: 0;
  left: 4px;
  right: 20%;
  height: 1px;
  background: rgba(255, 255, 255, 0.58);
  border-radius: 999px;
}

.cta-link-title,
.cta-link-subtitle {
  display: block !important;
  text-decoration: none !important;
  text-underline-offset: unset !important;
}

.cta-link-title {
  font-size: 30px;
  font-weight: 900 !important;
  line-height: 1.1;
  color: #fff !important;
  font-family: inherit;
}

.cta-link-subtitle {
  color: rgba(255, 255, 255, 0.88) !important;
  font-size: 18px;
  margin-top: 2px;
  line-height: 1.2;
  font-weight: 400 !important;
}

@media (max-width: 720px) {
  .hero-overlay .cta-row,
  .pub-hero-copy .cta-row {
    flex-direction: row;
    width: 100%;
    max-width: 100%;
    gap: 0;
    padding-top: 4px;
    margin: 6px 0 0;
    flex: 0 0 auto;
    flex-wrap: nowrap;
  }

  .hero-overlay a.cta-link,
  .hero-overlay button.cta-link,
  .pub-hero-copy a.cta-link,
  .pub-hero-copy button.cta-link,
  .pub-hero-copy .cta-link--static {
    padding: 1px 0 0;
  }

  .cta-link::before {
    left: 1px;
    right: 30%;
  }

  .cta-link-title {
    font-size: clamp(9px, 2.8vw, 11px) !important;
    font-weight: 900 !important;
    line-height: 1.1 !important;
    letter-spacing: -0.02em;
    word-break: break-word;
    white-space: normal;
    color: #fff !important;
  }

  .cta-link-subtitle {
    display: none !important;
  }
}
