/**
 * Craft CMS: дополнения к Helix template.css (детские-батуты.рф)
 * Типографика и цвета — как в index.html оригинала.
 */

/* Без прелоадера (на оригинале sp_preloader = 0) */
.sp-preloader,
#sp-preloader,
.preloader,
.km-preloader,
.page-loader {
  display: none !important;
}

body {
  font-family: Roboto, sans-serif;
  font-size: 18px;
  font-weight: normal;
}

h1 {
  font-family: Nunito, sans-serif;
  font-weight: 900;
}

h2,
h3,
h4,
h5 {
  font-family: Nunito, sans-serif;
  font-weight: 300;
}

h6 {
  font-family: "Open Sans", sans-serif;
  font-weight: 800;
}

#sp-bottom,
#sp-bottom2 {
  background-color: #2f3b45;
}

#sp-footer {
  background-color: #262830;
}

.sppb-row-container {
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
}

/* Поиск — стили из template.css (.searchmenunu) */
#sp-search .mod-shop-search {
  margin: 0;
}

#xleb-contact {
  padding-top: 0;
}

#xleb-contact .bottmenu {
  justify-content: flex-end;
}

/* Hero Craft (аналог секции SP Page Builder) */
.craft-hero {
  position: relative;
  min-height: 640px;
  padding: 195px 0 75px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
}

.craft-hero--has-media .craft-hero__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 1;
}

.craft-hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.craft-hero > .container {
  position: relative;
  z-index: 2;
}

.craft-hero .sppb-addon-title {
  color: #fff;
}

.craft-hero h1.sppb-addon-title {
  font-size: clamp(32px, 6vw, 80px);
  line-height: 1.1;
  font-weight: 900;
}

.craft-hero__eyebrow {
  font-size: 28px;
  font-weight: 800;
  color: #f05a2d !important;
}

.craft-hero__lead,
.craft-hero__lead p {
  color: #fff;
  font-size: 18px;
  line-height: 28px;
}

.craft-hero__cta {
  margin-top: 24px;
}

.craft-hero .buttonmaintop div {
  background-color: #f05a2d;
}

.craft-hero .buttonmaintop:hover div {
  background-color: #0f8acb;
}

/* Мегаменю: иконка «Акции» */
.sp-megamenu-parent > li > a.aktsii-i-skidki img {
  margin-right: 6px;
  vertical-align: baseline;
}

/* Секции Matrix без SPB (совместимость km-* из старых partials) */
.km-section {
  padding: 75px 0;
}

.km-section--soft {
  background-color: #f7f9ff;
}

.km-section__title {
  font-family: Nunito, sans-serif;
  font-weight: 900;
  font-size: clamp(32px, 5vw, 80px);
  line-height: 1.1;
  color: #2f3b45;
  text-align: center;
  margin-bottom: 40px;
}

.km-section__title--accent {
  color: #f05a2d;
}

.km-btn {
  display: inline-block;
  height: 60px;
  min-width: 200px;
  padding: 0 32px;
  border-radius: 60px;
  border: none;
  font-family: Roboto, sans-serif;
  font-size: 22px;
  font-weight: 600;
  line-height: 60px;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.km-btn--primary,
.km-btn--hero {
  background-color: #0f8acb;
  color: #fff;
}

.km-btn--primary:hover,
.km-btn--hero:hover {
  background-color: #f05a2d;
  color: #fff;
}

.km-btn--outline {
  background: transparent;
  border: 1px solid #0f8acb;
  color: #0f8acb;
  line-height: 58px;
}

.km-btn--block {
  display: block;
  width: 100%;
}

/* Каталог */
.km-catalog .catalog-grid__item-title {
  font-family: Nunito, sans-serif;
  color: #2f3b45;
}

@media (max-width: 991.98px) {
  .craft-hero {
    min-height: 500px;
    padding-top: 120px;
  }
}
