:root{
  --maxw: 760px;
  --gap: 16px;
  --radius: 16px;
  --border: rgba(0,0,0,.10);
  --text: #111;
  --muted: rgba(0,0,0,.65);
}

.jerui{ color: var(--text); }

/* HERO */
.jerui-hero{
  position: relative;
  overflow: hidden;
  background: #111;

  height: 50vh;     /* fallback */
  height: 50svh;    /* стабильнее на телефонах */
  min-height: 320px;
  max-height: 640px;
}

.jerui-hero__media{
  position: absolute;
  inset: 0;
  margin: 0;
  pointer-events: none;
  z-index: 0;
}

.jerui-hero__media img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(.72);
  transform: scale(1.02);
}

/* текст поверх */
.jerui-hero__header{
  position: relative;
  z-index: 1;
  width: min(var(--maxw), 100% - 32px);
  margin: 0 auto;
  height: 100%;

  display: grid;
  place-content: center;
  justify-items: center;
  text-align: center;
  gap: 14px;

  padding: 28px 0;
}

.jerui-hero__title{
  margin: 0;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.05;
  color: #fff;
}

/* breadcrumbs */
.jerui-bc{
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  color: rgba(255,255,255,.86);
  font-size: 14px;
}

.jerui-bc__link{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: inherit;
  text-decoration: none;
}

.jerui-bc__link:hover{ text-decoration: underline; }

.jerui-bc__icon svg,
.jerui-bc__sep svg{
  fill: rgba(255,255,255,.86);
}

.jerui-bc__current{
  color: rgba(255,255,255,.95);
  font-weight: 600;
}

/* POST */
.jerui-post{
  width: min(var(--maxw), 100% - 32px);
  margin: 0 auto;
  padding: 26px 0 44px;
}

.jerui-post__content{
  display: grid;
  gap: 22px;
}

/* MEDIA / GALLERY */
.jerui-media{
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: #f5f5f5;
}

.jerui-media img{
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.jerui-gallery{
    display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.jerui-gallery .jerui-media,
.jerui-media--single{
  aspect-ratio: 3 / 4;
}

.jerui-singles{
  padding-top: 10px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}


/* ===== TEXT BLOCK ===== */
.jerui-text{
  width: min(var(--maxw), 100% - 32px);
  margin: 0 auto;
  padding: 10px 0 0;
}

.jerui-text__title{
  margin: 18px 0 12px;
  font-size: clamp(18px, 2.2vw, 22px);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text);
}

/* список как на скрине */
.jerui-list{
  margin: 0;
  padding: 0;
  list-style: none;

  display: grid;
  gap: 10px;
}

.jerui-list li{
  position: relative;
  padding-left: 22px;

  font-size: clamp(14px, 1.4vw, 16px);
  line-height: 1.65;
  color: rgba(0,0,0,.82);
}

/* буллет */
.jerui-list li::before{
  content: "•";
  position: absolute;
  left: 0;
  top: 0.15em;
  font-size: 22px;
  line-height: 1;
  color: rgba(0,0,0,.75);
}


/* ===== VERTICAL PHOTO STACK ===== */

.jerui-stack{
  width: min(var(--maxw), 100% - 32px);
  margin: 22px auto 0;

  display: grid;
  grid-template-columns: 1fr; /* одна колонка */
  gap: var(--gap);
}

/* размер карточки — как реальные фото */
.jerui-stack__item{
  aspect-ratio: 4 / 3;   /* можешь поменять если фото другие */
}



/* mobile */
@media (max-width: 720px){
  .jerui-hero{
    height: 34vh;
    height: 34svh;
    min-height: 240px;
    max-height: 360px;
  }
}

@media (max-width: 600px){
  .jerui-gallery{
    grid-template-columns: repeat(2, 1fr);
  }

  .jerui-text{
    width: calc(100% - 24px);
  }
  .jerui-list{
    gap: 8px;
  }
  .jerui-list li{
    padding-left: 20px;
    line-height: 1.6;
  }
}

