.table4 .table-head .table-col:last-child {
	flex-grow: 1;
}
.table4 .table-fio {
	width: 28%;
}
.table4 .table-year {
	flex: 0 0 120px;
	max-width: 120px;
	min-width: 100px;
}
.table4 .table-col:nth-child(3) {
	max-width: 200px;
}
.table-foto {
	flex: 0 0 64px;
	max-width: 64px;
	min-width: 64px;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
}
.table-content .table-foto img {
	border: 0.5px solid var(--grays-gray-100, #dcdcdb);
	width: 40px;
	height: 40px;
}
.jcsb {
	justify-content: space-between;
}
.table-bottom.jcsb > div {
	width: unset;
}
.wrap-single-text {
	color: var(--grays-gray-800, #1d1d1d);

	/* Body M */
	font-family: "Roboto Condensed";
	font-size: 16px;
	font-style: normal;
	font-weight: 400;
	line-height: 150%; /* 24px */
	margin-top: 32px;
}
.wrap-single-text p:not(:last-child) {
	margin-bottom: 20px;
}
.wrap-single-gallery {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 40px;
}
.wrap-single-gallery img {
	max-width: 95px;
}
.wrap-single-gallery a {
	display: flex;
	position: relative;
}
.wrap-single-gallery a::before {
	content: "";
	display: block;
	width: 100%;
	height: 100%;
	position: absolute;
	top: 0;
	left: 0;
	background: transparent;
	transition: all 0.3s linear;
}
.wrap-single-gallery a::after {
	content: "";
	background: url("../new-img/zoom.svg");
	background-repeat: no-repeat;
	width: 24px;
	height: 24px;
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	opacity: 0;
}
.wrap-single-gallery a:hover::after {
	opacity: 1;
}
.wrap-single-gallery a:hover::before {
	background: linear-gradient(0deg, rgba(29, 29, 29, 0.48) 0%, rgba(29, 29, 29, 0.48) 100%);
	transition: all 0.3s linear;
}
.table-graves {
	flex: 0 0 240px;
	max-width: 240px;
	min-width: 100px;
}
.table-district {
	flex: 0 0 240px;
	max-width: 240px;
	min-width: 100px;
}
.table-adress {
	flex-grow: 1;
	max-width: unset;
	width: unset;
}
.sidebar-list a svg {
	min-width: 24px;
}
.list-documents-content {
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-grow: 1;
	gap: 40px;
}
.list-documents-content__left {
}
.list-documents-content__right {
	display: flex;
	gap: 16px;
	align-items: center;
}
.list-documents-content__right a {
	display: flex;
	gap: 4px;
	align-items: center;
	font-size: 16px;
}
.list-documents-content__right a svg {
	min-width: 18px;
}
.list-documents-content__right a:last-child svg {
	min-width: 24px;
}
.list-documents-row {
	width: 100%;
	gap: 8px;
}
input.decoration-input:focus {
	border-radius: 2px;
	border: 1px solid var(--greens-green-400, #86946a);
	background: var(--grays-gray-0, #fff);
}
input.decoration-input:invalid {
	border-radius: 2px;
	border: 1px solid var(--accents-red-600, #ed1b36);
	background: var(--grays-gray-0, #fff);
}
/* ПОДСКАЗКА ПОД ПОЛЕМ — точный цвет, скругления, как на макете */
.error-message {
	color: #ed1b36;
	font-family: "Roboto Condensed";
	font-size: 14px;
	font-style: normal;
	font-weight: 400;
	line-height: 100%;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	width: auto;
	max-width: 100%;
	margin-top: 6px;
}
/* Контейнер для ошибок — резервирует место */
.error-container {
	min-height: 24px;
	width: 100%;
	position: absolute !important;
	bottom: -22px;
	left: 0;
	margin-top: 2px;
}
.search-relatives-refine__form form ul li {
	position: relative;
}
@media (max-width: 1170px) {
	.table-graves {
		flex: 0 0 130px;
	}
	.table-district {
		flex: 0 0 158px;
	}
}
@media (max-width: 767px) {
	.list-documents {
		gap: 32px;
	}
	.list-documents-content {
		flex-direction: column;
		align-items: flex-start;
		gap: 12px;
	}
	.list-documents-row {
		align-items: flex-start;
	}
	.wrap-single-gallery a {
		flex-grow: 1;
	}
	.table-bottom {
		align-items: flex-start;
	}
	.Table3SelectPerPage {
		margin-bottom: 10px;
	}
	.wrap-single-gallery img {
		max-width: 138px;
	}
	.wrap-single-img {
		margin-bottom: 20px;
	}
	.wrap-single-flex__row {
		gap: 6px 14px;
	}
	.table-head > div:first-child,
	.table-row > div:first-child {
		min-width: 48px;
	}
}
/* 28.08.2026 new css  */
.wrap-single-badge__content .inactive {
	display: flex;
	padding: 7px 8px;
	justify-content: center;
	align-items: center;
	gap: 10px;
	border-radius: 2px;
	background: #fde8eb;
	color: #ed1b36;
	font-family: "Roboto Condensed";
	font-size: 12px;
	font-style: normal;
	font-weight: 400;
	line-height: 100%;
	text-transform: uppercase;
}
.wrap-single-badge__social {
	display: flex;
	align-items: center;
	gap: 12px;
}
.wrap-single-badge__social a {
	display: flex;
}
.breadcrumb {
	flex-wrap: wrap;
}
/* 31.08.2026 new css  */
.awards-list {
	width: 100%;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: flex-start;
	gap: 24px;
}
.awards-card {
	display: flex;
	align-items: center;
	gap: 80px;
	align-self: stretch;
}
.awards-card-left {
	display: flex;
	align-items: center;
	gap: 8px;
	flex: 1 0 0;
	max-width: 60%;
}
.awards-card-img {
	width: 48px;
	min-width: 48px;
	height: 48px;
	aspect-ratio: 1/1;
}
.awards-card-content {
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: flex-start;
	gap: 2px;
	flex: 1 0 0;
}
.awards-card-name {
	overflow: hidden;
	color: #1d1d1d;
	text-overflow: ellipsis;
	white-space: nowrap;
	font-family: "Roboto Condensed";
	font-size: 18px;
	font-style: normal;
	font-weight: 400;
	line-height: 146%;
}
.awards-card-bottom {
	display: flex;
	align-items: center;
	gap: 20px;
}
.awards-card-info {
	color: #1d1d1d;
	font-family: "Roboto Condensed";
	font-size: 14px;
	font-style: normal;
	font-weight: 400;
	line-height: 150%;
	display: flex;
	align-items: center;
	gap: 4px;
}
.awards-card-info span {
	color: #808080;
	font-family: "Roboto Condensed";
	font-size: 12px;
	font-style: normal;
	font-weight: 400;
	line-height: 100%;
	text-transform: uppercase;
}
.awards-card-right {
	display: flex;
	align-items: center;
	gap: 40px;
}
.awards-card-right a,
.awards-card-right button {
	color: #86946a;
	font-family: "Roboto Condensed";
	font-size: 16px;
	font-style: normal;
	font-weight: 400;
	line-height: 150%;
	display: flex;
	align-items: center;
	gap: 4px;
}
.disabled .awards-card-right a,
.disabled .awards-card-right button {
	color: #c1c1bf;
}
.awards-card-right a:hover,
.awards-card-right button:hover {
	opacity: 0.75;
	color: rgb(87, 98, 62);
}
@media (max-width: 1170px) {
	.awards-card-name {
		width: 94%;
	}
	.awards-card-content {
		max-width: 326px;
	}
}
@media (max-width: 767px) {
	.awards-card {
		flex-direction: column;
		gap: 12px;
		align-items: unset;
	}
	.awards-card-left {
		max-width: unset;
		align-items: unset;
	}
	.awards-card-bottom {
		flex-direction: column;
		align-items: unset;
		gap: 2px;
	}
	.awards-card-right {
		padding-left: 56px;
		gap: 16px;
	}
	.awards-card-name {
		width: unset;
		white-space: unset;
		overflow: hidden;
		text-overflow: ellipsis;
		display: -webkit-box;
		-webkit-line-clamp: 2;
		-webkit-box-orient: vertical;
	}
	.awards-list {
		gap: 32px;
	}
}
/* new css 02.09.2026  */
.media .search-relatives-search button {
	border-radius: 2px;
	background: var(--Avocado-500);
	color: #fff;
	gap: 8px;
	padding: 12px 24px;
	position: unset;
}
.media .search-relatives-search button:hover {
	opacity: 0.9;
	background-color: rgb(134, 148, 106);
	border-color: rgb(134, 148, 106);
	color: rgb(255, 255, 255);
}
.media .choices__inner {
	min-height: 50px;
}
.media .search-relatives-top {
	gap: 24px;
}
.media .search-relatives-search {
	display: flex;
	gap: 16px;
	background: unset;
}
.media .search-relatives-search button svg {
	min-width: 24px;
}
.media .search-relatives-top .container__input {
	max-width: 304px;
	width: 100%;
}
.media-grid {
	display: grid;
	grid-template-columns: 1fr 1fr 1fr;
	grid-gap: 24px;
	margin-top: 64px;
}
.media-item {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	transition: 0.2s ease;
}
.media-item-galery {
	position: relative;
	display: flex;
	gap: 4px;
	aspect-ratio: 16 / 9;
}
.media-item-galery__left {
	/* max-width: 250px; */
	/* width: 100%; */
}
.media-item-galery__right {
	max-width: 130px;
	width: 100%;
	display: flex;
	flex-direction: column;
	gap: 4px;
}
.media-item-galery img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.media-item-galery span {
	position: absolute;
	top: 8px;
	left: 8px;
	display: flex;
	padding: 7px 8px;
	justify-content: center;
	align-items: center;
	gap: 10px;
	border-radius: 2px;
	background: #fff;
	color: #1d1d1d;
	font-family: "Roboto Condensed";
	font-size: 12px;
	font-style: normal;
	font-weight: 400;
	line-height: 100%;
	text-transform: uppercase;
}
.media-item-content {
	display: flex;
	padding: 32px 16px;
	flex-direction: column;
	align-items: flex-start;
	align-self: stretch;
	border-top: 4px solid #dcdcdb;
	background: #fff;
	flex-grow: 1;
}
.media-item-title {
	color: #312f2b;
	font-family: "Roboto Condensed";
	font-size: 20px;
	font-style: normal;
	font-weight: 700;
	line-height: 125%;
	text-transform: uppercase;
	margin-bottom: 2px;
}
.media-item-text {
	overflow: hidden;
	text-overflow: ellipsis;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	color: #1d1d1d;
	font-family: "Roboto Condensed";
	font-size: 16px;
	font-style: normal;
	font-weight: 400;
	line-height: 150%;
	margin-bottom: 12px;
}
.media-item-info {
	display: flex;
	justify-content: space-between;
	align-items: center;
	width: 100%;
}
.media-item-date {
	color: #9e9e9e;
	font-family: "Roboto Condensed";
	font-size: 16px;
	font-style: normal;
	font-weight: 400;
	line-height: 150%;
}
a.media-item-view {
	color: #86946a;
	font-family: "Roboto Condensed";
	font-size: 18px;
	font-style: normal;
	font-weight: 400;
	line-height: 132%;
	text-decoration: underline;
	transition: 0.15s ease;
}
.media-item-view:hover {
	text-decoration: none;
	opacity: 0.75;
	color: rgb(87, 98, 62);
}
.media-item-img {
	position: relative;
	overflow: hidden;
}
.media-item-img:last-child::before {
	content: "";
	display: block;
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: linear-gradient(0deg, rgba(29, 29, 29, 0.48) 0%, rgba(29, 29, 29, 0.48) 100%);
}
.media-item-img:last-child::after {
	content: "";
	display: block;
	background: url("/img/media-item-img-play.svg");
	background-repeat: no-repeat;
	position: absolute;
	top: 50%;
	left: 50%;
	width: 16px;
	height: 16px;
	transform: translate(-50%, -50%);
}
@media (max-width: 1170px) {
	.media .search-relatives-top .container__input {
		max-width: 240px;
	}
	.media .search-relatives-search {
		gap: 8px;
	}
	.media .search-relatives-search button {
		gap: 0;
		font-size: 0;
		padding: 12px 12px;
	}
	.media-grid {
		grid-template-columns: 1fr 1fr;
	}
}
@media (max-width: 767px) {
	.media .search-relatives-top .container__input {
		max-width: unset;
	}
	.media .search-relatives-search {
		flex-direction: column;
	}
	.media .search-relatives-search button {
		font-size: 18px;
		gap: 8px;
	}
	.media-grid {
		grid-template-columns: 1fr;
	}
}





/* всплывающее окно */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    z-index: 1000;
  }

  /* Само окно */
  .modal-content {
    background-color: #ffffff;
    width: 100%;
    max-width: 900px;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    padding: 24px 32px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
  }

  /* Шапка */
  .modal-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
  }

  .title-group {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
  }

  .modal-title {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
    text-transform: uppercase;
    letter-spacing: 0.5px;
  }

  /* Желтый бейдж */
  .badge {
    background-color: #fce205;
    color: #1a1a1a;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 4px;
    text-transform: uppercase;
  }

  /* Кнопка закрытия */
  .close-btn {
    background: none;
    border: none;
    font-size: 24px;
    line-height: 1;
    color: #666;
    cursor: pointer;
    padding: 4px;
    transition: color 0.2s;
  }

  .close-btn:hover {
    color: #000;
  }

  /* Текстовый контент */
  .modal-date {
    font-size: 12px;
    color: #888;
    margin-bottom: 12px;
  }

  .modal-description {
    font-size: 14px;
    color: #333;
    line-height: 1.5;
    margin-bottom: 24px;
  }

  /* Сетка изображений */
  .gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
  }

  .gallery-item {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3; /* Сохраняет пропорции картинок */
    background-color: #e0e0e0;
    border-radius: 2px;
    overflow: hidden;
  }

  .gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }

  /* Иконка воспроизведения (Play) */
  .play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 28px;
    height: 28px;
    background-color: rgba(255, 255, 255, 0.85);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    pointer-events: none; /* Чтобы клик проходил по картинке */
  }

  .play-icon::after {
    content: '';
    display: block;
    width: 0;
    height: 0;
    border-top: 5px solid transparent;
    border-bottom: 5px solid transparent;
    border-left: 8px solid #333;
    margin-left: 2px; /* Небольшой сдвиг для визуального центрирования */
  }

  /* Адаптив для мобильных устройств */
  @media (max-width: 768px) {
    .modal-content {
      padding: 16px;
    }
    .gallery-grid {
      grid-template-columns: repeat(2, 1fr);
    }
  }

  .media-item-galery__right .media-item-img {
    width: 100%;
    height: 100%; 
    overflow: hidden; 
}

.media-item-galery__right .media-item-img a {
    display: block;
    width: 100%;
    height: 100%;
}

.media-item-galery__right .media-item-img img {
    width: 100%;
    height: 100%;
    object-fit: cover; 
    object-position: center; 
}
.form-media{
	width: 100%;
}