/* =========================
   CATEGORY HERO
   ========================= */

@media (min-width: 768px) {
    body#category .breadcrumb__wrapper {
      margin-bottom: 0;
      border-bottom: 1px solid var(--sv-line);
    }
  }
  body#category .breadcrumb__wrapper {
    margin-bottom: 0;
    border-bottom: 1px solid var(--sv-line);
  }


/* =========================
   CATEGORY HERO
   ========================= */

   .category-hero {
    
    width: calc(100vw - 0.2rem);
    left: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
     
    position: relative;
    /*height: clamp(580px, 72vh, 760px);*/
    height: 480px;
    display: flex;
    align-items: center;
    padding-left: 8%;
    overflow: hidden;
    margin-bottom: 2rem;
  }
  
  .category-hero__media{
    position:absolute;
    inset:0;
    z-index:0;
}

.category-hero__media picture{
    display:block;
    width:100%;
    height:100%;
}

  
  .category-hero__image {
   
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center  ;
    z-index: 0;
  }
  
  .category-hero__overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(
      90deg,
      rgba(248, 244, 237, 0.96) 0%,
      rgba(248, 244, 237, 0.82) 34%,
      rgba(248, 244, 237, 0.28) 62%,
      rgba(248, 244, 237, 0.08) 100%
    );

    
    pointer-events: none;
  }
  
  .category-hero__content {
    position: relative;
    z-index: 2;
  
    width: 100%;
    /*max-width: 1320px;*/
    
    margin: 0 auto;
    padding: 55px 30px;
  
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;



     

 
  }
  
  .category-hero .page-title-section {
    margin: 0 0 18px;
    max-width: 560px;
  
    font-family: "Cormorant Garamond", serif;
    font-size: clamp(42px, 4vw, 60px);
    line-height: 1;
    font-weight: 500;
    color: var(--sv-ink);
  }
  
  .category-hero__description {
    max-width: 560px;
    color: var(--sv-text);
    font-size: 16px;
    line-height: 1.6;
  }
  
  .category-hero__description p:last-child {
    margin-bottom: 0;
  }
  
  @media (max-width: 767px) {
    .category-hero {
           
        min-height: 560px;
        padding: 55px 24px 35px;
        align-items: flex-start;
      }
      .category-hero__media img {
        object-position: 68% center;
      }

      .category-hero__image {
        object-position: 68% center;
    }  
  
    .category-hero__content {
      min-height: 300px;
      padding: 40px 20px;
    }
  
    .category-hero .page-title-section {
      font-size: 40px;
    }
  
    .category-hero__description {
      max-width: 100%;
      font-size: 15px;
    }
  
    
  }







/*
   .category-hero {
    position: relative;
    min-height: 430px;
    overflow: hidden;
    background: var(--sv-cream);
}
*/
/* Picture занимает весь hero 
.category-hero__picture {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    z-index: 0;
}
*/
/* Реальное изображение вместо background-image 
.category-hero__image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}*/

/* Наш старый светлый градиент поверх фотографии 
.category-hero__overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;

    background: linear-gradient(
        90deg,
        rgba(250, 247, 242, 0.98) 0%,
        rgba(250, 247, 242, 0.96) 16%,
        rgba(250, 247, 242, 0.90) 28%,
        rgba(250, 247, 242, 0.76) 40%,
        rgba(250, 247, 242, 0.42) 55%,
        rgba(250, 247, 242, 0.08) 68%,
        rgba(250, 247, 242, 0) 76%
    );
}*/

/* Текст 
.category-hero__content {
    position: relative;
    z-index: 2;

    max-width: 1320px;
    min-height: 430px;
    margin: 0 auto;
    padding: 70px 30px;

    display: flex;
    flex-direction: column;
    justify-content: center;
}*/

/*.category-hero__content h1 {
    margin: 0 0 18px;
    max-width: 560px;
    font-family: "Cormorant Garamond", serif;
    font-size: 52px;
    line-height: 1.05;
    font-weight: 500;

    color: #2d241d;
}

.category-hero__description {
    max-width: 540px;

    font-size: 15px;
    line-height: 1.65;
    color: #65584e;
}

.category-hero__description p {
    margin: 0;
}*/





/* =========================
   MOBILE
   ========================= */
 
@media (max-width: 767px) {

    .category-hero {
        min-height: 390px;
    }

    .category-hero__image {
        object-position: 68% center;
    }

    .category-hero__overlay {
        background: linear-gradient(
            90deg,
            rgba(250, 247, 242, 0.96) 0%,
            rgba(250, 247, 242, 0.88) 45%,
            rgba(250, 247, 242, 0.48) 72%,
            rgba(250, 247, 242, 0.12) 100%
        );
    }

    .category-hero__content {
        min-height: 390px;
        padding: 45px 24px;
    }

    .category-hero__content h1 {
        max-width: 75%;
        font-size: 38px;
    }

    .category-hero__description {
        max-width: 70%;
        font-size: 14px;
        line-height: 1.55;
    }
}




.block-margin-category {
  min-height: 1.75rem;
  margin-bottom: 0.563rem;
} 


/* ==========================================================================
   FUTURE: category.css
   Used only on category pages: category hero, category advantages,
   related Sacris Blog articles and category FAQ.
   Keep here while testing; later this whole section can move to category.css.
   ========================================================================== */

   .category-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    /*margin: 40px 0;
    padding: 20px 0;
    border-top: 1px solid #D8C9A5;
    border-bottom: 1px solid #D8C9A5;*/
    
  }
  
  /* адзін элемент */
  .category-feature {
    display: flex;
    align-items: flex-start;
    padding: 20px 30px;
    position: relative;
  }
  
  /* залатыя падзяляльнікі */
  .category-feature:not(:last-child)::after {
    content: "";
    position: absolute;
    right: 0;
    top: 20px;
    bottom: 20px;
    width: 1px;
    background: #D8C9A5;
  }
  
  /* іконка */
  .cf-icon {
    width: 48px;
    height: 48px;
    margin-right: 18px;
  }
  
  /* загаловак */
  .cf-text h3 {
    font-family: "Cormorant Garamond", serif;
    font-size: 20px; /* паменшыў */
    color: #C7A96B;
    margin: 0 0 6px 0;
    font-weight: 500;
    white-space: nowrap; /* ВАЖНА: не пераносіць словы */
  }
  
  /* тэкст */
  .cf-text p {
    font-family: Inter, sans-serif;
    font-size: 13px;
    line-height: 1.55;
    color: #655F58;
    margin: 0;
  }
  
  /* дэсктопы да 1200px — 2 калонкі */
  @media (max-width: 1200px) {
    .category-features {
      grid-template-columns: repeat(2, 1fr);
    }
    .category-feature:nth-child(2)::after {
      display: none;
    }
  }
  
  /* планшэты */
  @media (max-width: 992px) {
    .category-features {
      grid-template-columns: repeat(2, 1fr);
    }
  }
  
  /* мабільныя */
  @media (max-width: 576px) {
    .category-features {
      grid-template-columns: 1fr;
      gap: 20px;
    }
  
    .category-feature {
      padding: 20px 10px;
    }
  
    .category-feature::after {
      display: none;
    }
  
    .cf-icon {
      width: 42px;
      height: 42px;
    }
  
    .cf-text h3 {
      font-size: 18px;
    }
  }

  

  .sacris-blog-category{margin:52px 0 68px;padding-top:38px;border-top:1px solid #e9e1d6}
  .sacris-blog-category__head{margin-bottom:26px}
  .sacris-blog-category__eyebrow{font-size:11px;letter-spacing:.16em;text-transform:uppercase;color:#70572f;margin-bottom:8px}
  .sacris-blog-category__head h2{margin:0;font-family:"Cormorant Garamond",serif;font-size:34px;line-height:1.1;font-weight:500;color:#2d241d}
  .sacris-blog-category__list{display:flex;flex-direction:column;gap:22px}
  .sacris-blog-category-card{display:grid;grid-template-columns:minmax(260px,38%) minmax(0,1fr);min-height:260px;background:#fff;border:1px solid #e9e1d6;overflow:hidden}
  .sacris-blog-category-card__media{display:block;min-height:260px;background:var(--sv-cream);overflow:hidden}
  .sacris-blog-category-card__media img{display:block;width:100%;height:100%;min-height:260px;object-fit:cover;transition:transform .35s ease}
  .sacris-blog-category-card:hover .sacris-blog-category-card__media img{transform:scale(1.02)}
  .sacris-blog-category-card__body{display:flex;flex-direction:column;justify-content:center;padding:34px 42px}
  .sacris-blog-category-card__body h3{margin:0 0 14px;font-family:"Cormorant Garamond",serif;font-size:31px;line-height:1.12;font-weight:500;color:#2d241d}
  .sacris-blog-category-card__body h3 a{color:inherit;text-decoration:none}
  .sacris-blog-category-card__excerpt{max-width:720px;margin-bottom:20px;color:#65584e;font-size:14px;line-height:1.65}
  .sacris-blog-category-card__excerpt p:last-child{margin-bottom:0}
  .sacris-blog-category-card__read{align-self:flex-start;margin-top:auto;color:#5f4a2f;text-decoration:none;font-size:13px;font-weight:500}
  .sacris-blog-category-card__read:hover{text-decoration:underline}
  
  @media(max-width:767px){
      .sacris-blog-category{margin:38px 0 50px;padding-top:28px}
      .sacris-blog-category__head{margin-bottom:20px}
      .sacris-blog-category__head h2{font-size:30px}
      .sacris-blog-category-card{display:block;min-height:0}
      .sacris-blog-category-card__media{min-height:0;aspect-ratio:16/10}
      .sacris-blog-category-card__media img{min-height:0;height:100%}
      .sacris-blog-category-card__body{padding:24px 22px 26px}
      .sacris-blog-category-card__body h3{font-size:27px}
      .sacris-blog-category-card__read{margin-top:4px}
  }  