.rich-wrapper--hero-vertical h1 {
    font-family: "BIZ UDMincho", serif;
    font-weight: 700;
    font-style: normal;
    font-size: 4em;
    margin-top: 100px;
    margin-bottom: 1.5rem;
    color: var(--text-color);
    letter-spacing: -7px; 
}
.rich-wrapper--hero-vertical green {
    color: var(--green-color); 
}
.rich-wrapper--hero-vertical blue {
    color: var(--blue-color); 
}
.rich-wrapper--hero-vertical orange {
    color: var(--orange-color); 
}
.rich-wrapper--hero-vertical violet {
    color: var(--violet-color); 
}
.rich-wrapper--hero-vertical h2 {
    font-weight: 500;

    margin-top: 100px;

    color: var(--description-color);
}
.rich-wrapper--hero-vertical p {
    font-family: 'Varela Round', sans-serif;
    font-weight: 600;
    font-size: 1.3rem;
    margin-top: 30px;
    margin-bottom: 150px;
    color: var(--description-color);
}
@media (max-width: 768px) {
    .rich-wrapper--hero-vertical h1 {
    font-family: "BIZ UDMincho", serif;
    font-weight: 700;
    font-style: normal;
    font-size: 2em;
    margin-top: 50px;
    margin-bottom: 1.5rem;
    color: var(--text-color);
    letter-spacing: -7px; 
}
}

.advantages img {
    margin-top: 20px;
    margin-bottom: 2.5rem;
    margin-left: auto;
    margin-right: auto;

}
.advantages b {
    font-weight: 700;
    font-style: normal;
    font-size: 1.1em;
    color: var(--text-color);    
}
.advantages p {
    font-weight: 400;
    font-style: normal;
    font-size: 1em;
    margin-bottom: 1.5rem;
    width: auto;
    position: relative;
    text-align: justify;
    color: var(--description-color);    
}
.container-fluid p {
    font-family: "BIZ UDMincho", serif;
    font-weight: 700;
    font-style: normal;
    font-size: 2em;
    margin-top: 250px;
    letter-spacing: -5px;
    text-align: center;
}
@media (max-width: 768px) {
    .container-fluid p {
    font-family: "BIZ UDMincho", serif;
    font-weight: 700;
    font-style: normal;
    font-size: 1.5em;
    margin-top: 150px;
    letter-spacing: -6px;
    text-align: center;
}
}    

.random-products {
    margin-top: 250px;
    margin-bottom: 3.5rem;
}
.section-title-random {
    font-family: "BIZ UDMincho", serif;
    font-weight: 700;
    font-style: normal;
    font-size: 1.5em;
    letter-spacing: -6px;
    text-align: center;
}


/* если внутри у WooCommerce есть фиксированная ширина у li.product — пробиваем */
.random-products ul.products li.product,
.random-products li.product{
  width: 100% !important;
  margin: 0 !important;
}


/* ===== Главная: header поверх hero ===== */

body.home .topbar,
body.home .sleepprofi-header {
  position: absolute;
  left: 0;
  width: 100%;
  z-index: 50;
}

body.home .topbar {
  top: 0;
  background: transparent !important;
  border-bottom: 1px solid rgba(255,255,255,0.18);
}

body.home .sleepprofi-header {

  background: transparent !important;
  border-top: 0 !important;
  border-bottom: 1px solid rgba(255,255,255,0.18) !important;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* если у тебя верхней полосы нет, поставь top: 0 */

/* делаем header светлым поверх видео */
body.home .catalog-button,
body.home .search-toggle {
  background: rgba(255,255,255,0.10) !important;
  border-color: rgba(255,255,255,0.22) !important;
  color: #fff !important;
  box-shadow: none !important;
}

body.home .catalog-button:hover,
body.home .search-toggle:hover {
  background: rgba(255,255,255,0.18) !important;
  border-color: rgba(255,255,255,0.34) !important;
  color: #fff !important;
}

body.home .logo-sleep {
  color: #fff !important;
}

body.home .header-extra-link,
body.home .header-extra-text,
body.home .header-extra-link i {
  color: #fff !important;
}
body.home .search-panel-inner {
    margin-top: 0em;
}
body.home .catalog-popup-inner {
    margin-top: 0em;
}
/* ===== Hero ===== */

.hero.hero--fullscreen {
  position: relative;
  width: 100%;
  min-height: 100vh;
  overflow: hidden;
  margin: 0;
  border-radius: 0;
}

.hero.hero--fullscreen video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.34);
  z-index: 2;
}

.hero__inner {
  position: relative;
  z-index: 3;
  max-width: 1400px;
  min-height: 100vh;
  margin: 0 auto;
  padding: 140px 24px 56px;
  display: flex;
  align-items: flex-end;
}

.hero__content {
  color: #fff;
  max-width: 620px;
}

.hero__content h1 {
  margin: 0 0 12px;
  font-size: clamp(36px, 5vw, 72px);
  line-height: 1.02;
  font-weight: 700;
}

.hero__content p {
  margin: 0;
  font-size: clamp(16px, 1.6vw, 24px);
  line-height: 1.35;
}

.front-page-main {
  margin-top: 0;
}

@media (max-width: 991px) {
  body.home .sleepprofi-header {
    top: 0px;
  }

  .hero__inner {
    padding: 130px 20px 42px;
  }
}

@media (max-width: 767px) {
  body.home .topbar {
    top: 0;
  }

  body.home .sleepprofi-header {
    top: 0px;
  }

  .hero__inner {
    padding: 120px 16px 28px;
  }

  .hero__content {
    max-width: 100%;
  }
}

/* ========================= Коллекции матрасов ========================= */

.mattress-lines-section {
  position: relative;
  padding: 84px 0 40px;
}

.mattress-lines-head {
  max-width: 760px;
  margin: 0 auto 34px;
  text-align: center;
}

.mattress-lines-title {
  margin: 0 0 12px;
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.05;
  font-weight: 700;
  color: var(--text-color);
}

.mattress-lines-subtitle {
  margin: 0;
  font-size: 17px;
  line-height: 1.6;
  color: var(--description-color);
}

.mattress-lines-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.m-line-card {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  min-height: 220px;
  text-decoration: none;
  border-radius: 24px;
  overflow: hidden;
  background: rgba(255,255,255,0.34);
  border: 1px solid rgba(32,32,32,0.10);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow:
    0 12px 28px rgba(31, 38, 135, 0.06),
    inset 0 1px 0 rgba(255,255,255,0.45);
  transition:
    transform .35s ease,
    box-shadow .35s ease,
    border-color .35s ease,
    background .35s ease;
}

.m-line-card:hover {
  transform: translateY(-6px);
  box-shadow:
    0 18px 40px rgba(31, 38, 135, 0.10),
    inset 0 1px 0 rgba(255,255,255,0.62);
  border-color: rgba(32,32,32,0.16);
  background: rgba(255,255,255,0.46);
}

.m-line-card__content {
  position: relative;
  z-index: 2;
  padding: 24px 22px 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.m-line-card__title {
  margin: 0 0 10px;
  font-size: 26px;
  line-height: 1.05;
  font-weight: 700;
  color: var(--text-color);
}

.m-line-card__text {
  margin: 0 0 16px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.55;
  color: var(--description-color);
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.m-line-card__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  color: var(--blue-color);
  transition: transform .25s ease, color .25s ease;
}

.m-line-card__link::after {
  content: "→";
  transition: transform .25s ease;
}

.m-line-card:hover .m-line-card__link::after {
  transform: translateX(4px);
}

.m-line-card__image {
  position: relative;
  overflow: hidden;
  min-height: 100%;
  background: rgba(255,255,255,0.5);
}

.m-line-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .6s ease, filter .35s ease;
}

.m-line-card:hover .m-line-card__image img {
  transform: scale(1.05);
}

/* анимация появления */
.reveal-card {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity .7s ease,
    transform .7s ease;
}

.reveal-card.is-visible {
  opacity: 1;
  transform: translateY(0);
}




/* ========================= Адаптив ========================= */

@media (max-width: 1300px) {
  .mattress-lines-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .mattress-lines-section {
    padding: 54px 0 24px;
  }

  .mattress-lines-head {
    margin-bottom: 24px;
  }

  .mattress-lines-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .m-line-card {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .m-line-card__image {
    order: -1;
    height: 220px;
  }

  .m-line-card__content {
    padding: 18px 16px 18px;
  }

  .m-line-card__title {
    font-size: 22px;
  }

  .m-line-card__text {
    -webkit-line-clamp: 2;
  }
}