
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body{
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  
}

/* Контейнер со всеми строками */
.rows {
  display: grid;
  width: 100%;
  row-gap: 40px;
}

/* Одна строка: 2 половины на всю ширину */
.row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: 100%;
  gap: 0px;          /* отступ между колонками */
}

.page {
  width: 100%;
  max-width: 1100px;   /* ограничение */
  margin: 0 auto;      /* центрирование */
  padding: 0px; /* опционально, чтобы не липло к краям */
}

/* Каждая половина */
.cell {
  /* чтобы контент красиво "дышал" */
  padding: 0px 20px;
}

/* Карточка внутри половины */
.card {
  display: grid;
  grid-template-columns: 150px 1fr; /* слева квадрат+подпись, справа текст */
  column-gap: 24px;
  align-items: start;
}

/* Левый блок (картинка + подпись под ней) */
.media {
  width: 150px;
}

.media .caption{
  width: calc(100% + 20px);   /* +40px ширины */
  max-width: 220px;
}

/* Квадратное фото */
.img {
  width: 100%;
  max-width: 150px;  /* ограничение на десктопе */
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.08);
}

@media (max-width: 768px) {
	  
  .card {
	grid-template-columns: 1fr;
	row-gap: 8px;
  }

  .media {
	width: 100%;
  }

  .img {
	width: 100%;
	max-width: none;
	height: auto;          /* ← ВАЖНО */
  }
}

/* Текст под картинкой */
.caption {
  margin-top: 12px;
  font-size: 13px;
  line-height: 1.2;
  opacity: 0.85;
}

/* Текст справа от картинки */
.content {
  font-size: 15px;
  line-height: 1.5;
}

/* Верхний серый текст */
.pretext {
  margin-bottom: 0px;
}

/* Основной текст */
.maintext {
  color: #222;
  overflow-wrap: anywhere;   /* современный способ */
  word-break: break-word;    /* fallback */  
}

.pretext,
.note {
  font-size: 14px;
  color: #6b7280;
}

.note {
 padding-top:15px
}

.pretext {
  padding-bottom:15px
}

.bracket-note {
  color: #999;   /* мягкий серый */
}

.maintext.is-quote-striked{
  text-decoration: line-through;
  opacity: 0.55;
}

/* скрыть одну ячейку, но сохранить сетку */
.is-cell-hidden {
  opacity: 10%;
  pointer-events: none;
}

/* скрыть строку полностью */
.is-row-hidden {
  display: none;
}

/* скрыть теги во время поиска */
.tags-row.is-hidden-by-search {
  display: none;
}

body.is-searching .rows {
  padding-top: 20px; /* можешь 20px если нужно больше воздуха */
}

a {
	color:#999;
    text-decoration: none;
}

.links {
  display: flex;
  gap: 6px;
  list-style: none;
  padding: 0;
  margin-top: 20px;
  font-size: 13px;
}

.links li:not(:last-child)::after {
  content: "•";
  margin-left: 3px;
  color: #bbb;
  
}

/* для ссылок — обязательно */
.links { 
  flex-wrap: wrap;         /* чтобы переносились */
  min-width: 0;
}
.links a {
  overflow-wrap: anywhere;
  color:#79b8c6
}

/* ===== DESKTOP ===== */

.people .person {
  display: block;      /* столбцом */
  margin-bottom: 6px;
}

.people .name {
  display: block;      /* имя отдельной строкой */
  font-size: 14px;
  font-weight: 500;
  line-height: 22px;
  color: #009;
}

.people .role {
  display: block;      /* профессия на новой строке */
  color: #6b7280;
  font-size: 14px;
  line-height: 24px;
}

.people .nickname {
  display: block;     /* новой строкой */
  color: #6b7280;     /* серый как у note */
  font-size: 14px;
  line-height: 25px;
}

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

.links {
  margin-top: 20px;
}

  .people .name {
	display: inline;
  }
  
  .people .person {
	  display: inline;
  }
  
  /* запятая ПЕРЕД каждым человеком, кроме первого */
  .people .name + .name::before {
    content: ", ";
    color: #999;
  }
  
  .links li:not(:last-child)::after {
    content: " ";
    color: #bbb;
  }
  
  .pretext, .note{
    background: #f3f4f6;        /* мягкий серый */
    border-radius: 10px;        /* закругление */
    padding: 10px 12px;         /* внутренние отступы */
    margin-bottom: 10px;        /* отступ снизу */
  }
  
  .pretext {
    margin-top:5px
  }
  
  .note {
    margin-top:20px
  }
  
  .maintext{
    padding-top:5px;
  }
  
}

/* ====== HEADER 2 COLUMNS (same grid as .row) ====== */

.container_top{
  width: 100%;
  margin: 0 auto;      /* центрирование */
  padding: 0px;     /* внутренние отступы */
  background-color: #f2f2f2
}

.container{
  width: 100%;
  margin: 0 auto;      /* центрирование */
  padding: 0px;     /* внутренние отступы */
  
  border-bottom: 1px solid rgba(0,0,0,0.08);
  position: sticky;
  top: 0;
  z-index: 50;
  
  background: #fff;
}

.cols-header{
  width: min(1100px, 100%);

  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0px;

  padding-bottom: 15px;
  margin: 0 auto;   /* ← центрирование */

}

.col-head{
  display: flex;
  flex-direction: column;
  align-items: flex-start; /* гарантируем левое выравнивание */
  
  padding-left: 20px
}

.col-title{
  font-size: 48px;
  font-weight: 100;
  color: #444;
  margin-top: 14px;
  line-height: 1.2;
}

.col-subtitle{
  font-size: 13px;
  color: #888;
  margin-top: 4px;
  line-height: 1.3;
}

/* если хочешь на мобиле чуть компактнее */
@media (max-width: 768px){
  .col-title{
    font-size: 20px;
    font-weight: 400
  }
    
  .cols-header {
    gap: 0px;
  }
  
  .container_top {
    background-color: #fff
  }
  
  .container{  
    border: 0px;
  }
}









.tags-row{
  width: 100%;
  margin: 10px 0 14px;

  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding:10px 20px;
  padding-bottom:30px;
}

.tag{
  appearance: none;
  border: 1px solid rgba(0,0,0,0.10);
  background: rgba(0,0,0,0.06);
  color: #555;

  font-size: 12px;
  line-height: 1;
  padding: 7px 12px;
  border-radius: 999px;

  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;

  transition: transform 0.05s ease, background 0.15s ease, border-color 0.15s ease;
}

.tag{
  text-decoration: none;
  display: inline-block;
}

.tag:hover{
  background: rgba(0,0,0,0.085);
  border-color: rgba(0,0,0,0.16);
}

.tag:active{
  transform: translateY(1px);
}

.tag:focus-visible{
  outline: 2px solid rgba(0,0,0,0.35);
  outline-offset: 2px;
}

/* выбранный тег */
.tag.is-active,
.tag[aria-pressed="true"]{
  background: rgba(0,0,0,0.25);
  border-color: rgba(0,0,0,0.25);
  color: #222;
}










/* Панель тегов человека (внутри .person) */
.caption.people .person .ptags{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0px;
}

.caption.people .person .ptag{
  font-size: 12px;
  line-height: 1;
  padding: 4px 8px;
  border-radius: 999px;

  white-space: nowrap;
}

span.switch{
  background: #666;
  color: #fff;
}

span.terror{
  background:#15803d;
  color:#fff;
}

span.agent{
  background:#2563eb;
  color:#fff;
}

span.killed{
  background:#f00;
  color: #fff;
}

span.new{
  background:#ea580c;
  color: #fff;
}

/* Чёрно-белые фото во второй колонке */
.row > .cell:nth-child(2) .img {
  filter: grayscale(100%);
}

/* Фото становится ч/б если в ячейке есть strike */
.cell.has-strike .img {
  filter: grayscale(100%);
}




.topbar{
  width: min(1100px, 100%);

  display: flex;
  justify-content: space-between; /* главное */
  align-items: center;

  padding: 0px;
  margin: 0 auto;   /* ← центрирование */
  
  padding:5px 20px;

}

.topbar-left{
  text-align: left;
  color:#555;
  display: flex;
  align-items: baseline;
  gap: 3px;
}

.topbar-right{
  text-align: right;
}


@media (max-width: 768px){

  .topbar-left{
    width: 100%;
    font-weight:500;
  }

  .langSelect{
    margin-left: auto;   /* ключевая строка */
    margin-right: 20px
  }

  .topbar-title{
    background: #f4f4f4;
    padding: 6px 14px;
    border-radius: 20px;
    font-weight: 500;
    display: inline-block;
    margin-left: -12px;
  }

}

.searchInput{
  width: 260px;
  max-width: 100%;

  padding: 10px 14px;
  font-size: 13px;
  font-family: inherit;

  border-radius: 5px;
  border: 1px solid rgba(0,0,0,0.12);

  color: #555;
  outline: none;

  transition: 
    border-color 0.2s ease,
    background 0.2s ease,
    box-shadow 0.2s ease;
}

/* при фокусе */
.searchInput:focus{
  background: #fff;
  border-color: rgba(0,0,0,0.25);
}

/* placeholder */
.searchInput::placeholder{
  color: #999;
}

@media (max-width: 768px){

  .topbar{
    flex-direction: column;   /* ставим элементы столбцом */
    align-items: stretch;     /* чтобы заняли всю ширину */
    gap: 10px;
    
    font-size:14px;
    padding-top: 9px;
  }

  .topbar-right{
    width: 100%;
    text-align: left;         /* по желанию */
  }
  
  .searchInput {
    width:100%;
    font-size: 16px;        /* ключевое: отключает iOS auto-zoom */
  }
  
}


/* Нижняя плашка активного фильтра */
.active-filter{
  position: fixed;
  left: 20px;
  bottom: 20px;
  display: flex;
  justify-content: left;
  z-index: 999;
  color:#fff;
  pointer-events: none; /* кликабелен только pill */
}

.active-filter__pill{
  pointer-events: auto;

  display: inline-flex;
  align-items: center;
  gap: 10px;

  padding: 10px 14px;
  border-radius: 999px;

  background: rgba(0,0,0,0.78);
  color: #fff;

  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 12px 30px rgba(0,0,0,0.25);

  font-size: 13px;
  line-height: 1;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.active-filter__pill:active{
  transform: translateY(1px);
}

.active-filter__x{
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 22px;
  height: 22px;

  border-radius: 999px;
  background: rgba(255,255,255,0.14);
  font-size: 16px;
  line-height: 1;
}

/* Чуть больше воздуха снизу, чтобы плашка не перекрывала контент */
@media (max-width: 768px){
  body{
    padding-bottom: 80px;
  }
}

/* fail-safe: если hidden стоит — никогда не показываем */
.active-filter[hidden]{
  display: none !important;
}


/* Кнопка "Наверх" */
.scroll-top{
  position: fixed;
  right: 20px;
  bottom: 20px;

  width: 44px;
  height: 44px;

  border-radius: 50%;
  border: none;

  background: rgba(0,0,0,0.75);
  color: #fff;

  font-size: 18px;
  cursor: pointer;

  display: flex;
  align-items: center;
  justify-content: center;

  box-shadow: 0 10px 25px rgba(0,0,0,0.25);
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 998;
}

.scroll-top:hover{
  transform: translateY(-2px);
}

.scroll-top[hidden]{
  display: none !important;
}



.searchWrap{
  position: relative;
  display: inline-block;
  width: 260px;
  max-width: 100%;
}

@media (max-width: 768px){
  .searchWrap{ width: 100%; }
}

/* input внутри обёртки */
.searchWrap .searchInput{
  width: 100%;
  padding-right: 38px; /* место под крестик */
}

/* кнопка очистки */
.searchClear{
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);

  width: 22px;
  height: 22px;
  border-radius: 999px;

  border: none;
  background: rgba(0,0,0,0.10);
  color: #444;

  font-size: 16px;
  line-height: 1;
  cursor: pointer;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

.searchClear:hover{
  background: rgba(0,0,0,0.14);
}

.searchClear[hidden]{
  display: none !important;
}


/* по умолчанию: мобильный поиск скрыт */
.header-search{ display:none; }

/* на мобиле: скрываем верхний поиск, показываем под заголовком */
@media (max-width: 768px){
  .container_top .topbar-right{ display:none; }

  .header-search{
    display:block;
    width: min(1100px, 100%);
    margin: 0 auto;
    padding: 0 20px 12px; /* под заголовком */
  }

  .header-search .searchWrap{ width:100%; }
}

.title-count{
  color: #777;
  font-weight: 400;
  margin-left: 3px;
  white-space: nowrap;
}

.silence{
  padding-left:20px;
}

.a-silence{
  color:#2563eb;
  text-decoration: underline
}

@media (max-width: 768px){

  .title-count { display: none !important; }

  .silence {
    padding-left:0px;
  }
  
}

.terror-star{
  color:#060;
  opacity:.8;
  font-weight:600;
}

.legend{
  margin-top:16px;
  font-size:12px;
  color:#6b7280;
}

.legend .terror-star{
  color:#060;
  font-weight:600;
}



.img { transition: opacity 200ms ease; }
.img.is-swapping { opacity: 0; }





.cell { position: relative; } /* важно */

.admin-cell{
  position: absolute;
  top: 6px;
  left: 6px;
  z-index: 5;
  font: 11px/1.25 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  background: rgba(0,0,0,0.55);
  color: #fff;
  padding: 6px 7px;
  border-radius: 8px;
  max-width: calc(100% - 12px);
  pointer-events: none; /* чтобы не мешало кликам */
}

.admin-cell b{
  font-weight: 700;
  margin-right: 6px;
}

.admin-cell__ids{
  margin-top: 4px;
  opacity: 0.85;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.admin-id{
  margin-left: 6px;
  font-size: 11px;
  opacity: 0.6;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}

.langSelect {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 14px;
  
  padding: 4px 28px 4px 10px;
  border: 1px solid #ddd;
  border-radius: 6px;
  background: #f2f2f2;
  color:#777;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  position: relative;
  left:15px;
}

/* стрелка */
.langSelect {
  background-image: url("data:image/svg+xml;utf8,<svg fill='%23999' height='20' viewBox='0 0 20 20' width='20' xmlns='http://www.w3.org/2000/svg'><path d='M5.5 7l4.5 5 4.5-5z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 6px center;
  background-size: 16px;
}

.langSelect:hover {
  border-color: #bbb;
}

.langSelect:focus {
  outline: none;
  border-color: #999;
}

@media (max-width: 768px){

.langSelect {
    background-color:#fff
  }

}



/* ===== Quote overlay (clean) ===== */

.quote-open{
  appearance: none;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
  display: block;
}

.quote-open:focus-visible{
  outline: 2px solid rgba(0,0,0,0.35);
  outline-offset: 4px;
  border-radius: 14px;
}

body.is-modal-open{
  overflow: hidden;
}

.qov{
  position: fixed;
  inset: 0;
  z-index: 9999;
}

.qov[hidden]{ display: none; }

.qov__backdrop{
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 1;
}

.qov__dialog{
  position: relative;
  z-index: 2;

  width: min(1100px, calc(100% - 32px));
  margin: 6vh auto;
  padding: 18px;

  background: #fff;
  border-radius: 18px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.25);

  max-height: 88vh;
  overflow: auto;
}

.qov__close{
  position: absolute;   /* вместо sticky + float */
  top: 20px;
  right: 20px;
  z-index: 10;

  width: 36px;
  height: 36px;
  border-radius: 999px;

  border: 1px solid rgba(0,0,0,0.01);
  background: rgba(0,0,0,0.04);
  cursor: pointer;

  font-size: 22px;
  line-height: 34px;
  color: #333;

  float: none;          /* важно */
}

.qov__close:hover{
  background: rgba(0,0,0,0.08);
}

.qov__body{
  padding-top: 10px;
}

/* keep "nonhuman" look inside overlay */
.qov__dialog.is-right .img{
  filter: grayscale(100%);
}

/* ===== Overlay layout: fixed left column + text ===== */

.qov__dialog .card{
  margin: 0;
  max-width: none;
  text-align: left;

  display: grid;
  grid-template-columns: 300px 1fr;
  column-gap: 32px;
  align-items: start;
}

/* allow right column to shrink and wrap long strings/links */
.qov__dialog .card > *{
  min-width: 0;
}

.qov__dialog .card a,
.qov__dialog .maintext,
.qov__dialog .pretext,
.qov__dialog .note{
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* left column: make sure name/role/nickname area can be as wide as the photo */
.qov__dialog .card > *:first-child{
  width: 300px;
}

/* photo: strict square */
.qov__dialog .img{
  width: 300px;
  height: 300px;
  display: block;
  object-fit: cover;
}

/* ===== Typography ===== */

.qov__dialog .pretext{
  font-size: 1.2rem;
  line-height: 1.5;
  opacity: 0.85;
  padding-bottom: 30px
}

.qov__dialog .maintext{
  font-size: 1.5rem;
  line-height: 1.5;
  font-weight: 300;
  letter-spacing: -0.01em;
}

.qov__dialog .note{
  font-size: 1.2rem;
  line-height: 1.5;
  opacity: 0.85;
  padding-top: 30px
}

.qov__dialog .name{
  font-size: 1.2rem;
  line-height: 1.5;
  font-weight: 400;
}

.qov__dialog .role,
.qov__dialog .nickname{
  font-size: 1rem;
  line-height: 1.6;
}

/* ===== Responsive ===== */

@media (max-width: 900px){
  .qov__dialog{
    margin: 4vh auto;
    padding: 14px;
  }

  .qov__dialog .card{
    grid-template-columns: 1fr;
    row-gap: 16px;
  }

  .qov__dialog .card > *:first-child{
    width: auto;
  }

  .qov__dialog .img{
    width: 100%;
    max-width: 300px;
    height: auto;
    aspect-ratio: 1 / 1;
  }
  
}


/* ===== HARD FIX: overlay image must be 300x300 on desktop ===== */
@media (min-width: 769px){
  
/* left column fixed */
.qov__dialog .card{
  display: grid;
  grid-template-columns: 300px 1fr;
  column-gap: 32px;
  align-items: start;
  padding-bottom:10px
}

/* fix the clickable photo wrapper (button) */
.qov__dialog .quote-open{
  width: 300px;
  height: 300px;
  min-width: 300px;
  min-height: 300px;
  display: block;
  margin-bottom:30px
}

/* force img to fill wrapper, override any global img rules */
.qov__dialog .quote-open .img{
  width: 300px !important;
  height: 300px !important;
  max-width: none !important;
  max-height: none !important;
  object-fit: cover;
  display: block;
}

}






/* ===== Mobile layout: stack under photo ===== */

@media (max-width: 768px){

.qov__dialog .pretext{
  font-size: 1rem;
  line-height: 1.5;
  opacity: 0.85;
  padding: 15px
}

.qov__dialog .maintext{
  font-size: 1.2rem;
  line-height: 1.5;
  font-weight: 300;
  letter-spacing: -0.01em;
}

.qov__dialog .note{
  font-size: 1rem;
  line-height: 1.3;
  opacity: 0.85;
  padding: 15px
}

.qov__dialog .name,
.qov__dialog .role,
.qov__dialog .nickname{
  font-size: 1rem;
  line-height: 1.5;
}

  .qov__dialog{
    margin: 0px auto;
    max-height: calc(100vh - 24px);
  }

  .qov__body{
    padding-top: 0;
  }

  .qov__dialog .card{
    grid-template-columns: 1fr;
    row-gap: 12px;
    align-content: start;
    justify-items: start;
  }

  /* фото меньше и по центру */
  .qov__dialog .quote-open{
    width: 200px;
    height: 200px;
    margin: 0;              /* было 0 auto */
    margin-top: 20px;              /* было 0 auto */
    margin-bottom: 20px;              /* было 0 auto */
    justify-self: start;    /* было center */
  }

  .qov__dialog .quote-open .img{
    width: 100% !important;  /* заполняет кнопку */
    height: 100% !important;
    object-fit: cover;
  }
  
  .qov__close{
    top: 15px;
    right: 15px;
  
    width: 40px;
    height: 40px;
  
    border: 1px solid rgba(0,0,0,0.01);
  
    font-size: 25px;
  }
  
  .qov__dialog{
    margin: 20px auto;
    max-height: calc(100vh - 74px);
    padding: 0px 0px 20px 0px; /* ← добавили воздух снизу */
  }

}




/* ===== Share icons ===== */

.qov__share{
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  align-items: center;
  margin: 0px 20px 10px 20px;
}

.share-icn{
  width: 36px;
  height: 36px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;

  border: 1px solid rgba(0,0,0,0);
  background: rgba(0,0,0,0.04);
  color: #333;

  text-decoration: none;
  cursor: pointer;
  padding: 0;
}

.share-icn:hover{
  background: rgba(0,0,0,0.08);
}

.share-icn svg{
  width: 18px;
  height: 18px;
  display: block;
}

.share-icn.is-copied{
  background: rgba(0,0,0,0.14);
}

.share-icn[data-share="telegram"] svg{
  transform: translateX(-2px);
}

.share-icn[data-share="facebook"] svg{
  transform: translateX(-1px);
}

.share-icn[data-share="facebook"] svg{
  transform: translateX(-1px);
}


@media (max-width: 768px){
  .qov__share{
    gap: 10px;
    margin:0px;
    margin-top: 40px; /* компактнее */
  }
  .share-icn{
    width: 38px;
    height: 38px;
  }
  
  .qov__dialog .card,
  .qov__dialog .card > *{
    width: 100%;
  }
  
}


/* ===== Close button focus ring fix ===== */

/* убираем дефолтный синий ring при клике мышью/тапом */
.qov__close:focus{
  outline: none;
}
.qov__close:focus:not(:focus-visible){
  outline: none;
  box-shadow: none;
}

/* оставляем красивый фокус для клавиатуры (Tab) */
.qov__close:focus-visible{
  outline: 2px solid rgba(0,0,0,0.35);
  outline-offset: 3px;
  box-shadow: 0 0 0 4px rgba(0,0,0,0.08);
}

.qov__close{
  -webkit-tap-highlight-color: transparent;
}

/* чтобы share и body НЕ обтекали float close */
.qov__share,
.qov__body{
  clear: both;
}

/* растянуть клонированную cell внутри оверлея */
.qov__dialog .qov__cell,
.qov__dialog .qov__cell.cell{
  width: 100% !important;
  max-width: none !important;
}

@media (max-width: 768px){
  .qov__dialog .card > *:first-child{
    width: 100% !important;
  }
}

@media (max-width: 768px){

  /* на мобиле: левая часть (media) должна занимать всю ширину */
  .qov__dialog .media{
    width: 100%;
    max-width: none;
  }

  /* подпись с именами — тоже на всю ширину */
  .qov__dialog .caption.people,
  .qov__dialog .person{
    display: block;
    width: 100%;
    max-width: none;
  }

  /* share-блок, когда он вставлен под именами (внутри media) */
  .qov__dialog .qov__share{
    width: 100%;
    margin: 20px 0px 10px 0px;
    justify-content: flex-start;
  }
}

/* ===== Share hint icon on photo hover ===== */

/* чтобы позиционировать псевдо-иконку */
.quote-open{
  position: relative;
  display: block;
  border: 0;
  padding: 0;
  background: transparent;
}

/* сама иконка (псевдоэлемент) */
.quote-open::after{
  content: "";
  position: absolute;
  right: 10px;
  bottom: 10px;
  width: 28px;
  height: 28px;

  /* круглая подложка */
  background: rgba(0,0,0,.55);
  border: 1px solid rgba(255,255,255,0);
  border-radius: 999px;

  /* иконка-шаринг (встроенный SVG) */
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3v10'/%3E%3Cpath d='M8 7l4-4 4 4'/%3E%3Cpath d='M5 13v6a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2v-6'/%3E%3C/g%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 16px 16px;

  /* скрыто по умолчанию */
  opacity: 0;
  transform: translateY(2px) scale(.95);
  transition: opacity .15s ease, transform .15s ease;
  pointer-events: none; /* не мешаем клику по кнопке */
}

/* показываем при наведении и при фокусе (клавиатура) */
.quote-open:hover::after,
.quote-open:focus-visible::after{
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* На тач-устройствах hover не всегда есть — можно показывать всегда */
@media (hover: none) {
  .quote-open::after{
    opacity: .9;
    transform: none;
  }
}

/* Убираем share-иконку внутри оверлея */
#quoteOverlay .quote-open::after{
  display: none !important;
}

/* Кнопка на фото */
.quote-open{
  touch-action: manipulation;          /* просит браузер не делать double-tap zoom и т.п. */
  -webkit-tap-highlight-color: transparent;
}

.quote-open {
  position: relative;
}

.qo-icn {
  position: absolute;
  right: 8px;
  bottom: 8px;

  width: 22px;
  height: 22px;

  display: flex;
  align-items: center;
  justify-content: center;

  background: rgba(0,0,0,0.55);
  color: #fff;
  border-radius: 999px;

  opacity: 0;
  transition: opacity .2s ease;
}

.qo-icn svg {
  width: 14px;
  height: 14px;
}

/* появляется только при hover на десктопе */
.cell:hover .qo-icn {
  opacity: 1;
}

/* по умолчанию мобильная скрыта */
.qo-icn--mobile { display: none; }

/* === MOBILE === */

@media (max-width: 768px){
  .quote-open::after{
    display: none !important;
    content: none !important;
    background-image: none !important;
  }
}

@media (max-width: 768px) {

  .qo-icn--desktop { display: none; }
  .qo-icn--mobile  { display: flex; }

  .qo-icn svg {
    width: 16px;
    height: 16px;
  }

  .qo-icn {
    opacity: 1;
    background: none;
    width: auto;
    height: auto;
    color: #fff;
    filter: drop-shadow(0 1px 3px rgba(0,0,0,0.6));
  }
}

/* Убираем share-иконку внутри оверлея */
#quoteOverlay .quote-open::after{
  display: none !important;
}

/* Убираем три точки внутри открытого оверлея */
#quoteOverlay .qo-icn {
  display: none !important;
}

#quoteOverlay .quote-open {
  pointer-events: none;
  cursor: default;
}

.qov__dialog .img{
  transition: opacity 0.18s ease;
}

.qov__dialog .img.is-swapping{
  opacity: 0.88;
}