/* ---------- Общее ---------- */
.arhiv {
	max-width: 1200px;
	margin: 0 auto;
	color: #2b2b2b;
}

.arhiv *,
.arhiv-portal,
.arhiv-portal * {
	box-sizing: border-box;
}

.arhiv [hidden],
.arhiv-portal [hidden],
.arhiv-portal[hidden] {
	display: none !important;
}

html.arhiv-noscroll,
html.arhiv-noscroll body {
	overflow: hidden;
}

.arhiv-title {
	margin: 0 0 15px;
	font-size: 32px;
	line-height: 1.2;
	text-align: center;
}

.arhiv-label {
	color: #777;
}

.arhiv-row {
	margin-bottom: 6px;
}

.arhiv-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 10px 22px;
	border: 1px solid #3a5a40;
	border-radius: 4px;
	background: #3a5a40;
	color: #fff !important;
	font-size: 15px;
	line-height: 1.3;
	text-decoration: none !important;
	cursor: pointer;
	transition: background .2s, color .2s;
}

.arhiv-btn:hover,
.arhiv-btn:focus {
	background: #2c4631;
	border-color: #2c4631;
}

.arhiv-btn:disabled {
	opacity: .6;
	cursor: default;
}

.arhiv-btn--outline {
	background: transparent;
	color: #3a5a40 !important;
}

.arhiv-btn--outline:hover,
.arhiv-btn--outline:focus {
	background: #3a5a40;
	color: #fff !important;
}

.arhiv .arhiv-input,
.arhiv-portal .arhiv-input {
	display: block;
	width: 100%;
	max-width: none;
	height: 42px;
	margin: 0;
	padding: 8px 12px;
	border: 1px solid #ccc;
	border-radius: 4px;
	background: #fff;
	box-shadow: none;
	color: #2b2b2b;
	font-size: 15px;
	line-height: 1.4;
}

.arhiv .arhiv-input:focus,
.arhiv-portal .arhiv-input:focus {
	border-color: #3a5a40;
	outline: none;
	box-shadow: 0 0 0 2px rgba(58, 90, 64, .15);
}

.arhiv-notice {
	padding: 12px 15px;
	border: 1px solid #f3d19e;
	border-radius: 4px;
	background: #fff4e5;
}

/* ---------- Поиск ---------- */
.arhiv-counter {
	margin-bottom: 30px;
	text-align: center;
}

.arhiv-counter__num {
	color: #3a5a40;
	font-size: 44px;
	font-weight: 700;
	line-height: 1.1;
}

.arhiv-counter__text {
	color: #777;
	font-size: 16px;
}

.arhiv-search {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	align-items: stretch;
	margin: 0 0 30px;
}

.arhiv-search__field {
	flex: 1 1 170px;
}

.arhiv-search__btn {
	flex: 0 0 auto;
	height: 42px;
}

.arhiv-results__found {
	margin-bottom: 10px;
	color: #777;
}

.arhiv-result {
	display: flex;
	gap: 20px;
	padding: 20px 0;
	border-bottom: 1px solid #e5e5e5;
}

.arhiv-result__img {
	display: block;
	flex: 0 0 200px;
	width: 200px;
	height: 200px;
	border-radius: 4px;
	background: #f3f3f3;
	overflow: hidden;
}

.arhiv-result__img img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.arhiv-result__img--empty img {
	padding: 30px;
	object-fit: contain;
}

.arhiv-result__info {
	flex: 1;
	min-width: 0;
}

.arhiv-result__fio {
	display: inline-block;
	margin-bottom: 10px;
	color: #2b2b2b;
	font-size: 20px;
	font-weight: 600;
	line-height: 1.3;
}

.arhiv-result .arhiv-btn {
	margin-top: 10px;
}

.arhiv-empty {
	padding: 30px;
	border-radius: 4px;
	background: #f7f7f7;
	color: #666;
	text-align: center;
}

.arhiv-pagination {
	margin-top: 25px;
	text-align: center;
}

.arhiv-pagination__counter {
	margin-top: 8px;
	color: #777;
	font-size: 14px;
}

/* ---------- Страница захоронения ---------- */
.arhiv-burial_main {
	display: block;
	margin-bottom: 35px;
}

.arhiv-burial__main {
	display: flex;
	gap: 30px;
	align-items: flex-start;
	margin-bottom: 35px;
}

.arhiv-burial__info {
	flex: 1 1 50%;
	min-width: 0;
}

.arhiv-burial__media {
	flex: 0 0 45%;
	max-width: 45%;
}

.arhiv-burial__fio {
	margin-bottom: 20px;
	font-size: 28px;
	font-weight: 700;
	line-height: 1.25;
}

.arhiv-burial__row {
	margin-bottom: 12px;
	font-size: 16px;
}

.arhiv-burial__row .arhiv-label {
	display: block;
	font-size: 14px;
}

.arhiv-link {
	margin-left: 10px;
	border-bottom: 1px dashed currentColor;
	text-decoration: none !important;
	cursor: pointer;
}

.arhiv-copy.is-copied {
	color: #3a5a40;
}

.arhiv-gallery {
	position: relative;
	border-radius: 4px;
	background: #f3f3f3;
	overflow: hidden;
}

.arhiv-gallery__track {
	position: relative;
	padding-top: 100%;
}

.arhiv-gallery__slide {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	opacity: 0;
	visibility: hidden;
	transition: opacity .3s, visibility .3s;
}

.arhiv-gallery__slide.is-active {
	opacity: 1;
	visibility: visible;
}

.arhiv-gallery__slide a,
.arhiv-gallery__slide img {
	display: block;
	width: 100%;
	height: 100%;
}

.arhiv-gallery__slide img {
	object-fit: contain;
}

.arhiv-gallery__prev,
.arhiv-gallery__next {
	position: absolute;
	top: 50%;
	z-index: 2;
	width: 40px;
	height: 40px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(0, 0, 0, .45);
	color: #fff;
	font-size: 28px;
	line-height: 38px;
	cursor: pointer;
	transform: translateY(-50%);
}

.arhiv-gallery__prev {
	left: 10px;
}

.arhiv-gallery__next {
	right: 10px;
}

.arhiv-gallery__prev:hover,
.arhiv-gallery__next:hover {
	background: rgba(0, 0, 0, .7);
}

.arhiv-gallery__dots {
	position: absolute;
	right: 0;
	bottom: 10px;
	left: 0;
	z-index: 2;
	text-align: center;
}

.arhiv-gallery__dot {
	width: 10px;
	height: 10px;
	margin: 0 4px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, .6);
	cursor: pointer;
}

.arhiv-gallery__dot.is-active {
	background: #fff;
}

.arhiv-noimg {
	position: relative;
	padding-top: 100%;
	border-radius: 4px;
	background: #f3f3f3;
}

.arhiv-noimg img {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 40%;
	height: 40%;
	transform: translate(-50%, -50%);
}

.arhiv-services {
	margin-bottom: 35px;
	padding: 25px;
	border-radius: 6px;
	background: #f7f7f5;
	text-align: center;
}

.arhiv-services__title {
	margin: 0 0 20px;
	font-size: 22px;
}

.arhiv-services__buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	justify-content: center;
}

.arhiv-obituary {
	padding: 25px;
	border: 1px solid #e5e5e5;
	border-radius: 6px;
	line-height: 1.6;
}

/* ---------- Модальные окна ---------- */
.arhiv-modal {
	position: fixed;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: 10000;
	display: none;
}

.arhiv-modal.is-open {
	display: block;
}

.arhiv-modal__overlay {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	background: rgba(0, 0, 0, .55);
}

.arhiv-modal__dialog {
	position: absolute;
	top: 0;
	bottom: 0;
	left: 50%;
	display: flex;
	flex-direction: column;
	width: 1000px;
	max-width: 100%;
	background: #fff;
	box-shadow: 0 0 30px rgba(0, 0, 0, .3);
	color: #2b2b2b;
	transform: translateX(-50%);
}

.arhiv-modal__header {
	display: flex;
	flex: 0 0 auto;
	gap: 15px;
	align-items: center;
	justify-content: space-between;
	padding: 18px 25px;
	border-bottom: 1px solid #e5e5e5;
}

.arhiv-modal__title {
	font-size: 22px;
	font-weight: 600;
	line-height: 1.25;
}

.arhiv-modal__close {
	flex: 0 0 auto;
	width: 36px;
	height: 36px;
	padding: 0;
	border: 0;
	background: transparent;
	color: #666;
	font-size: 32px;
	line-height: 36px;
	cursor: pointer;
}

.arhiv-modal__close:hover {
	color: #000;
}

.arhiv-modal__body {
	flex: 1 1 auto;
	padding: 20px 25px 30px;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
}

.arhiv-modal__desc {
	margin-bottom: 20px;
	padding: 15px;
	border-radius: 4px;
	background: #f7f7f5;
	line-height: 1.5;
}

.arhiv-modal__notice {
	margin-bottom: 20px;
	padding: 12px 15px;
	border: 1px solid #f3d19e;
	border-radius: 4px;
	background: #fff4e5;
}

.arhiv-modal__filter {
	margin-bottom: 20px;
}

.arhiv-portal .arhiv-modal__cat {
	max-width: 360px;
}

.arhiv-modal__status {
	padding: 15px 0;
	color: #777;
	text-align: center;
}

.arhiv-modal__status:empty {
	display: none;
}

.arhiv-check {
	flex: 0 0 auto;
	width: 20px;
	height: 20px;
	margin: 2px 0 0 !important;
	cursor: pointer;
}

/* Тарифы */
.arhiv-tariff {
	margin-bottom: 15px;
	padding: 18px 20px;
	border: 1px solid #e5e5e5;
	border-radius: 6px;
}

.arhiv-tariff__head {
	display: flex;
	gap: 12px;
	align-items: flex-start;
	margin: 0;
	font-weight: normal;
	cursor: pointer;
}

.arhiv-tariff__text {
	display: block;
}

.arhiv-tariff__title {
	display: block;
	font-size: 18px;
	font-weight: 600;
}

.arhiv-tariff__desc {
	display: block;
	margin-top: 4px;
	color: #666;
	white-space: pre-line;
}

.arhiv-tariff__price {
	margin: 10px 0 0 32px;
	color: #3a5a40;
	font-size: 20px;
	font-weight: 700;
}

.arhiv-tariff__features {
	margin: 10px 0 0 32px;
	padding: 0 0 0 18px;
	color: #444;
}

.arhiv-tariff__features li {
	margin-bottom: 3px;
}

/* Разовые услуги */
.arhiv-service {
	display: flex;
	gap: 12px;
	align-items: flex-start;
	margin: 0;
	padding: 14px 0;
	border-bottom: 1px solid #eee;
	font-weight: normal;
	cursor: pointer;
}

.arhiv-service__text {
	flex: 1;
	min-width: 0;
}

.arhiv-service__title {
	display: block;
	font-size: 16px;
	font-weight: 600;
}

.arhiv-service__desc {
	display: block;
	margin-top: 3px;
	color: #666;
	font-size: 14px;
	white-space: pre-line;
}

.arhiv-service__price {
	flex: 0 0 auto;
	color: #3a5a40;
	font-weight: 700;
	white-space: nowrap;
}

/* Венки и цветы */
.arhiv-list--wreath {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
}

.arhiv-wreath {
	display: flex;
	flex-direction: column;
	padding: 15px;
	border: 1px solid #e5e5e5;
	border-radius: 6px;
	text-align: center;
}

.arhiv-wreath__title {
	min-height: 2.6em;
	margin-bottom: 10px;
	font-weight: 600;
}

.arhiv-wreath__img {
	position: relative;
	margin-bottom: 10px;
	padding-top: 100%;
	border-radius: 4px;
	background: #f7f7f7;
	overflow: hidden;
}

.arhiv-wreath__img img {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.arhiv-wreath__img--empty img {
	padding: 20%;
	object-fit: contain;
}

.arhiv-wreath__price {
	margin: auto 0 10px;
	color: #3a5a40;
	font-size: 18px;
	font-weight: 700;
}

.arhiv-wreath__check {
	display: inline-flex;
	gap: 8px;
	align-items: center;
	justify-content: center;
	margin: 0;
	font-weight: normal;
	cursor: pointer;
}

.arhiv-wreath__check .arhiv-check {
	margin: 0 !important;
}

/* Карта */
.arhiv-modal--map {
	z-index: 10030;
}

.arhiv-modal--map .arhiv-modal__dialog {
	top: 5vh;
	bottom: 5vh;
	width: 900px;
	border-radius: 6px;
	overflow: hidden;
}

.arhiv-modal--map .arhiv-modal__body {
	display: flex;
	flex-direction: column;
	padding: 0;
	overflow: hidden;
}

.arhiv-map {
	flex: 1;
	min-height: 300px;
}

.arhiv-map__footer {
	padding: 10px 20px;
	border-top: 1px solid #e5e5e5;
	font-size: 14px;
}

.arhiv-map__error {
	padding: 40px;
	color: #a94442;
	text-align: center;
}

/* ---------- Корзина ---------- */
.arhiv-cart-toggle {
	position: fixed;
	top: 40%;
	right: 0;
	z-index: 10010;
	width: 60px;
	height: 60px;
	padding: 0;
	border: 0;
	border-radius: 6px 0 0 6px;
	background: #3a5a40;
	box-shadow: 0 3px 12px rgba(0, 0, 0, .25);
	cursor: pointer;
	animation: arhiv-slide-in .3s ease-out;
}

.arhiv-cart-toggle img {
	display: block;
	width: 32px;
	height: 32px;
	margin: 0 auto;
}

.arhiv-cart-toggle__count {
	position: absolute;
	top: 4px;
	right: 4px;
	min-width: 20px;
	height: 20px;
	padding: 0 5px;
	border-radius: 10px;
	background: #d9534f;
	color: #fff;
	font-size: 12px;
	font-weight: 700;
	line-height: 20px;
}

@keyframes arhiv-slide-in {
	from { transform: translateX(100%); }
	to { transform: translateX(0); }
}

.arhiv-cart {
	position: fixed;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: 10020;
	visibility: hidden;
	transition: visibility 0s .3s;
}

.arhiv-cart.is-open {
	visibility: visible;
	transition: visibility 0s;
}

.arhiv-cart__overlay {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	background: rgba(0, 0, 0, .35);
	opacity: 0;
	transition: opacity .3s;
}

.arhiv-cart.is-open .arhiv-cart__overlay {
	opacity: 1;
}

.arhiv-cart__panel {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	display: flex;
	flex-direction: column;
	width: 400px;
	max-width: 100%;
	background: #fff;
	box-shadow: -5px 0 25px rgba(0, 0, 0, .2);
	color: #2b2b2b;
	transform: translateX(100%);
	transition: transform .3s;
}

.arhiv-cart.is-open .arhiv-cart__panel {
	transform: translateX(0);
}

.arhiv-cart__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 15px 20px;
	border-bottom: 1px solid #e5e5e5;
	font-size: 18px;
	font-weight: 600;
}

.arhiv-cart__list {
	flex: 1;
	padding: 5px 20px;
	overflow-y: auto;
}

.arhiv-cart__item {
	display: flex;
	gap: 10px;
	align-items: center;
	padding: 10px 0;
	border-bottom: 1px solid #f0f0f0;
}

.arhiv-cart__thumb {
	flex: 0 0 50px;
	width: 50px;
	height: 50px;
	border-radius: 4px;
	object-fit: cover;
}

.arhiv-cart__name {
	flex: 1;
	min-width: 0;
	font-size: 14px;
}

.arhiv-cart__qty {
	color: #777;
	white-space: nowrap;
}

.arhiv-cart__price {
	flex: 0 0 auto;
	font-size: 14px;
	font-weight: 600;
	white-space: nowrap;
}

.arhiv-cart__remove,
.arhiv-del {
	flex: 0 0 auto;
	width: 28px;
	height: 28px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: #f3f3f3;
	color: #888;
	font-size: 18px;
	line-height: 28px;
	cursor: pointer;
}

.arhiv-cart__remove:hover,
.arhiv-del:hover {
	background: #d9534f;
	color: #fff;
}

.arhiv-cart__empty {
	padding: 30px 0;
	color: #888;
	text-align: center;
}

.arhiv-cart__footer {
	padding: 18px 20px;
	border-top: 1px solid #e5e5e5;
	background: #fafafa;
}

.arhiv-cart__total {
	margin-bottom: 8px;
	font-size: 18px;
}

.arhiv-cart__note {
	margin-bottom: 10px;
	color: #a66b00;
	font-size: 13px;
}

.arhiv-cart__order {
	width: 100%;
}

/* ---------- Заказ ---------- */
.arhiv-back {
	display: inline-block;
	margin-bottom: 20px;
}

.arhiv-block {
	margin-bottom: 30px;
	padding: 25px;
	border: 1px solid #e5e5e5;
	border-radius: 6px;
}

.arhiv-block__title {
	margin: 0 0 20px;
	font-size: 22px;
}

.arhiv-table-wrap {
	overflow-x: auto;
}

.arhiv-order-table {
	width: 100%;
	border-collapse: collapse;
}

.arhiv-order-table th,
.arhiv-order-table td {
	padding: 12px 10px;
	border-bottom: 1px solid #e5e5e5;
	text-align: left;
	vertical-align: middle;
}

.arhiv-order-table th {
	background: #f7f7f5;
	font-weight: 600;
	white-space: nowrap;
}

.arhiv-order-table .arhiv-order-table__del,
.arhiv-order-table .arhiv-order-table__qty {
	width: 90px;
	text-align: center;
}

.arhiv-order-table .arhiv-order-table__sum {
	width: 150px;
	text-align: right;
	white-space: nowrap;
}

.arhiv-order-table__item {
	display: flex;
	gap: 12px;
	align-items: center;
}

.arhiv-order-table__thumb {
	flex: 0 0 50px;
	width: 50px;
	height: 50px;
	border-radius: 4px;
	object-fit: cover;
}

.arhiv-order-table__loading {
	color: #777;
	text-align: center !important;
}

.arhiv .arhiv-qty {
	width: 70px;
	height: 36px;
	margin: 0;
	padding: 4px;
	border: 1px solid #ccc;
	border-radius: 4px;
	text-align: center;
}

.arhiv-order-table__note td {
	background: #fff4e5;
	color: #8a5a00;
	font-size: 14px;
}

.arhiv-order-table__total td {
	border-bottom: 0;
	font-size: 18px;
	font-weight: 700;
	text-align: right;
}

.arhiv-form {
	max-width: 480px;
}

.arhiv-form__field {
	margin-bottom: 15px;
}

.arhiv-form__field label {
	display: block;
	margin-bottom: 5px;
	font-weight: 600;
}

.arhiv-form__req {
	color: #d9534f;
}

.arhiv-form__hp {
	position: absolute !important;
	left: -9999px !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.arhiv-form__error {
	margin-bottom: 15px;
	padding: 12px 15px;
	border: 1px solid #f5c2c0;
	border-radius: 4px;
	background: #fdecea;
	color: #a94442;
	white-space: pre-line;
}

.arhiv-order__success {
	padding: 30px;
	border: 1px solid #cfe5cf;
	border-radius: 6px;
	background: #eef6ee;
	font-size: 17px;
	text-align: center;
}

.arhiv-order__success-number {
	margin: 15px 0 0;
}

/* ---------- SmartCaptcha ---------- */
.arhiv-form__captcha {
	min-height: 102px;
	margin-bottom: 15px;
}

/* ---------- Адаптив ---------- */
@media (max-width: 1100px) {
	.arhiv-modal__dialog,
	.arhiv-modal--map .arhiv-modal__dialog {
		width: 90%;
	}
}

@media (max-width: 767px) {
	.arhiv-title {
		font-size: 26px;
	}

	.arhiv-search__field,
	.arhiv-search__btn {
		flex-basis: 100%;
	}

	.arhiv-burial__main {
		flex-direction: column;
	}

	.arhiv-burial__media {
		order: -1;
		flex-basis: auto;
		width: 100%;
		max-width: 100%;
	}

	.arhiv-list--wreath {
		grid-template-columns: repeat(2, 1fr);
	}

	.arhiv-modal__header,
	.arhiv-modal__body {
		padding-right: 15px;
		padding-left: 15px;
	}

	.arhiv-block {
		padding: 15px;
	}
}

@media (max-width: 575px) {
	.arhiv-result {
		flex-direction: column;
	}

	.arhiv-result__img {
		flex-basis: auto;
	}

	.arhiv-list--wreath {
		grid-template-columns: 1fr;
	}

	.arhiv-tariff__price,
	.arhiv-tariff__features {
		margin-left: 0;
	}
}


/* ---------- Изображения отключены ---------- */
.arhiv-result--noimg .arhiv-result__info,
.arhiv-burial__main--noimg .arhiv-burial__info {
	flex: 1 1 100%;
	width: 100%;
	max-width: 100%;
}

.arhiv-gallery__slide img {
	cursor: default;
}