/*
  banner.css — новый большой баннер главной страницы
  Подключать после styles.css, main.css и mobile.css.
  Путь: /templates/Default/css/banner.css
*/

.main_banner_bg.hero-new {
  position: relative;
  float: none;
  display: block;
  overflow: hidden;
  width: min(100% - 32px, 1300px);
  max-width: 1300px;
  margin: 15px auto 35px;
  padding: clamp(18px, 3vw, 26px);
  box-sizing: border-box;
  border-radius: 35px;
  background:
    radial-gradient(circle at 14% 8%, rgba(21, 188, 115, 0.22), transparent 32%),
    radial-gradient(circle at 92% 12%, rgba(30, 149, 232, 0.22), transparent 34%),
    linear-gradient(135deg, #f8fcff 0%, #eef8ff 48%, #ecfff6 100%);
}

.main_banner_bg.hero-new::before {
  content: "";
  position: absolute;
  right: -120px;
  bottom: -160px;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: rgba(21, 188, 115, 0.14);
  filter: blur(10px);
  pointer-events: none;
}

.main_banner_bg.hero-new .main_banner_wrap.hero-new__wrap {
  position: relative;
  float: none;
  width: 100%;
  max-width: 1200px;
  min-height: 430px;
  margin: 0 auto;
  padding: clamp(26px, 5vw, 54px);
  box-sizing: border-box;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  align-items: center;
  gap: clamp(28px, 5vw, 64px);
  border: 1px solid rgba(221, 229, 239, 0.9);
  border-radius: 34px;
  background: rgba(255, 255, 255, 0.78);
  background-image: none !important;
  box-shadow: 0 28px 70px rgba(15, 42, 73, 0.14);
  backdrop-filter: blur(18px);
}

.main_banner_bg.hero-new .main_banner_left.hero-new__content {
  float: none;
  width: auto;
  min-width: 0;
  max-width: none;
  flex-basis: auto;
  padding: 0;
}

.hero-new__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.hero-new__tags a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 8px 14px;
  border: 1px solid rgba(21, 188, 115, 0.25);
  border-radius: 999px;
  background: #effef6;
  color: #0d7a50;
  font-size: 14px;
  line-height: 1.2;
  font-weight: 800;
  text-decoration: none;
}

.hero-new__tags a:hover {
  color: #0d7a50;
  text-decoration: none;
  opacity: 0.85;
}

.main_banner_bg.hero-new .banner_title.hero-new__title h1 {
  margin: 0;
  padding: 0;
  max-width: 720px;
  color: #07111f;
  font-size: clamp(42px, 6vw, 76px);
  line-height: 0.98;
  letter-spacing: -0.06em;
  font-weight: 850;
}

.main_banner_bg.hero-new .banner_title.hero-new__title span {
  position: relative;
  display: inline-block;
  color: #0d985f;
}

.main_banner_bg.hero-new .banner_title.hero-new__title span::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 3px;
  z-index: -1;
  display: block;
  width: auto;
  height: 12px;
  margin: 0;
  border-radius: 999px;
  background: rgba(21, 188, 115, 0.18);
}

.main_banner_bg.hero-new .banner_text.hero-new__text {
  max-width: 620px;
  margin-top: 22px;
  padding: 0;
  color: #4f5d72;
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.6;
}

.main_banner_bg.hero-new .main_banner_btn.hero-new__actions {
  margin-top: 30px;
}

.main_banner_bg.hero-new .main_banner_btn.hero-new__actions a {
  float: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  min-width: 220px;
  min-height: 56px;
  height: auto;
  line-height: 1.2;
  margin: 0;
  padding: 0 28px;
  border-radius: 999px;
  background: linear-gradient(135deg, #0f76c8, #19bd78);
  color: #ffffff;
  font-size: 16px;
  font-weight: 850;
  text-decoration: none;
  box-shadow: 0 14px 28px rgba(15, 118, 200, 0.2);
  transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
}

.main_banner_bg.hero-new .main_banner_btn.hero-new__actions a:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 36px rgba(15, 118, 200, 0.26);
  opacity: 1;
  text-decoration: none;
}

.main_banner_bg.hero-new .banner_text_down.hero-new__note {
  max-width: 660px;
  margin-top: 22px;
  padding: 0;
  color: #6b7a90;
  font-size: 13px;
  line-height: 1.55;
  opacity: 1;
  font-weight: 400;
}

.hero-new__card {
  position: relative;
  isolation: isolate;
  min-height: 360px;
  padding: clamp(22px, 4vw, 34px);
  box-sizing: border-box;
  border: 1px solid rgba(221, 229, 239, 0.95);
  border-radius: 30px;
  background:
    radial-gradient(circle at 80% 0%, rgba(21, 188, 115, 0.22), transparent 36%),
    linear-gradient(180deg, #ffffff, #f8fbff);
  box-shadow: 0 22px 56px rgba(15, 42, 73, 0.14);
  overflow: hidden;
}

.hero-new__card::before {
  content: "";
  position: absolute;
  top: -60px;
  right: -60px;
  z-index: -1;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: rgba(29, 149, 232, 0.12);
}

.hero-new__rate {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 128px;
  height: 128px;
  border-radius: 32px;
  background: linear-gradient(135deg, #0f76c8, #19bd78);
  color: #ffffff;
  font-size: 56px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: -0.06em;
  box-shadow: 0 18px 36px rgba(21, 188, 115, 0.22);
}

.hero-new__card-title {
  margin-top: 22px;
  color: #07111f;
  font-size: 28px;
  line-height: 1.15;
  font-weight: 850;
  letter-spacing: -0.04em;
}

.hero-new__params {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}

.hero-new__params div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  border: 1px solid #dde5ef;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.78);
}

.hero-new__params span {
  color: #6b7a90;
  font-size: 14px;
  font-weight: 700;
}

.hero-new__params strong {
  color: #07111f;
  font-size: 17px;
  line-height: 1.2;
  font-weight: 850;
  text-align: right;
}

@media screen and (max-width: 900px) {
  .main_banner_bg.hero-new {
    width: 100%;
    margin: 0;
    padding: 14px;
    border-radius: 0;
  }

  .main_banner_bg.hero-new .main_banner_wrap.hero-new__wrap {
    grid-template-columns: 1fr;
    min-height: auto;
    gap: 24px;
    padding: 24px 18px;
    border-radius: 26px;
  }

  .hero-new__card {
    min-height: auto;
  }

  .hero-new__rate {
    width: 104px;
    height: 104px;
    border-radius: 26px;
    font-size: 46px;
  }
}

@media screen and (max-width: 520px) {
  .main_banner_bg.hero-new {
    padding: 14px;
  }

  .main_banner_bg.hero-new .main_banner_wrap.hero-new__wrap {
    gap: 20px;
    padding: 22px 16px;
    border-radius: 24px;
  }

  .main_banner_bg.hero-new .banner_title.hero-new__title h1 {
    font-size: 38px;
  }

  .main_banner_bg.hero-new .banner_text.hero-new__text {
    margin-top: 16px;
    font-size: 16px;
  }

  .main_banner_bg.hero-new .main_banner_btn.hero-new__actions a {
    width: 100%;
    min-width: 0;
  }

  .hero-new__params div {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .hero-new__params strong {
    text-align: left;
  }
}
