/* =========================================================
   МЕМОРИАЛ-СЕРВИС — основной файл стилей
   Чистый CSS без фреймворков.
   Брейкпоинты: 1024px (планшет), 768px (мобильный).
   ========================================================= */

/* ---------- Дизайн-система: переменные ---------- */
:root {
	/* Цвета */
	--color-bg: #f5ede4;          /* Фон сайта */
	--color-accent: #8B6332;      /* Акцент: кнопки, ссылки */
	--color-accent-dark: #6f4f28; /* Акцент при наведении (темнее) */
	--color-text: #2c2c2c;        /* Основной текст */
	--color-text-muted: #6b6b6b;  /* Вторичный текст */
	--color-text-secondary: #6b6b6b; /* Вторичный текст (псевдоним --color-text-muted) */
	--color-white: #ffffff;       /* Белые блоки */
	--color-border: #e0d5c8;      /* Границы */
	--color-dark: #2c2c2c;        /* Тёмный фон (футер) */

	/* Шрифты */
	--font-heading: 'Playfair Display', Georgia, serif;
	--font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;

	/* Радиусы */
	--radius-btn: 6px;            /* Скругление кнопок */
	--radius-card: 12px;          /* Скругление карточек */

	/* Прочее */
	--container-width: 1200px;
	--header-height: 80px;
	--shadow-header: 0 2px 8px rgba(0, 0, 0, 0.06);
	--transition: 0.2s ease;
}

/* ---------- Сброс и базовые стили ---------- */
*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	font-family: var(--font-body);
	font-weight: 400;
	font-size: 16px;
	line-height: 1.6;
	color: var(--color-text);
	background-color: var(--color-bg);
	-webkit-font-smoothing: antialiased;
	/* Отступ под фиксированный хедер */
	padding-top: var(--header-height);
	/* Защита от горизонтального скролла на мобильных */
	overflow-x: hidden;
}

/* Картинки и медиа не выходят за пределы контейнера */
img,
svg,
iframe {
	max-width: 100%;
}

h1, h2, h3, h4, h5, h6 {
	font-family: var(--font-heading);
	font-weight: 700;
	line-height: 1.25;
	color: var(--color-text);
	margin: 0 0 0.5em;
}

p {
	margin: 0 0 1em;
}

a {
	color: var(--color-accent);
	text-decoration: none;
	transition: color var(--transition);
}

a:hover {
	color: var(--color-accent-dark);
}

img {
	max-width: 100%;
	height: auto;
	display: block;
}

ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

/* ---------- Контейнер ---------- */
.container {
	width: 100%;
	max-width: var(--container-width);
	margin: 0 auto;
	padding: 0 20px;
}

.content-area {
	padding-top: 40px;
	padding-bottom: 60px;
}

/* =========================================================
   КНОПКИ
   ========================================================= */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 12px 22px;
	font-family: var(--font-body);
	font-size: 15px;
	font-weight: 500;
	line-height: 1;
	text-align: center;
	border-radius: var(--radius-btn);
	border: 1px solid transparent;
	cursor: pointer;
	white-space: nowrap;
	transition: background-color var(--transition), color var(--transition), border-color var(--transition);
}

/* Основная кнопка (акцент) */
.btn-primary {
	background-color: var(--color-accent);
	color: var(--color-white);
	border-color: var(--color-accent);
}

.btn-primary:hover {
	background-color: var(--color-accent-dark);
	border-color: var(--color-accent-dark);
	color: var(--color-white);
}

/* Вторичная кнопка (контурная, акцентная) */
.btn-secondary {
	background-color: transparent;
	color: var(--color-accent);
	border-color: var(--color-accent);
}

.btn-secondary:hover {
	background-color: var(--color-accent);
	color: var(--color-white);
}

/* Контурная нейтральная кнопка */
.btn-outline {
	background-color: var(--color-white);
	color: var(--color-text);
	border-color: var(--color-border);
}

.btn-outline:hover {
	border-color: var(--color-accent);
	color: var(--color-accent);
}

/* =========================================================
   ХЕДЕР (sticky)
   ========================================================= */
.site-header {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 1000;
	height: var(--header-height);
	background-color: var(--color-white);
	box-shadow: var(--shadow-header);
}

.header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	height: 100%;
	/* Хедер во всю ширину: контента (логотип + меню + телефон + кнопка)
	   не хватает места в контейнере 1200px, поэтому снимаем ограничение. */
	max-width: none;
}

/* ---------- Логотип-изображение ---------- */
/* Контейнер логотипа не схлопывается и не обрезает картинку */
.site-logo,
.footer-logo {
	display: flex;
	align-items: center;
	flex-shrink: 0;
	overflow: visible;
	min-width: 0;
}

/* Логотип в хедере: высота 55px, ширина авто */
.site-logo img,
.site-logo__img {
	height: 55px;
	width: auto;
	display: block;
}

/* Логотип в футере: высота 50px, ширина авто */
.footer-logo img,
.footer-logo__img {
	height: 50px;
	width: auto;
	background: transparent;
	display: block;
}

/* ---------- Главное меню (desktop) ---------- */
.main-nav {
	flex: 1;
	display: flex;
	justify-content: center;
	min-width: 0;
}

.nav-menu {
	display: flex;
	align-items: center;
	gap: 18px;
}

.nav-menu > li {
	position: relative;
}

.nav-menu > li > a {
	display: block;
	padding: 8px 2px;
	color: var(--color-text);
	font-size: 15px;
	font-weight: 500;
	white-space: nowrap;
}

.nav-menu > li > a:hover {
	color: var(--color-accent);
}

/* Выпадающее подменю */
.nav-menu .sub-menu {
	position: absolute;
	top: 100%;
	left: 0;
	min-width: 230px;
	padding: 8px 0;
	background-color: var(--color-white);
	border: 1px solid var(--color-border);
	border-radius: var(--radius-card);
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
	opacity: 0;
	visibility: hidden;
	transform: translateY(8px);
	transition: opacity var(--transition), transform var(--transition), visibility var(--transition);
}

.nav-menu > li:hover > .sub-menu,
.nav-menu > li:focus-within > .sub-menu {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.nav-menu .sub-menu li a {
	display: block;
	padding: 9px 18px;
	color: var(--color-text);
	font-size: 14px;
	white-space: nowrap;
}

.nav-menu .sub-menu li a:hover {
	background-color: var(--color-bg);
	color: var(--color-accent);
}

/* Стрелка у пунктов с подменю */
.nav-menu .menu-item-has-children > a::after {
	content: '▾';
	margin-left: 6px;
	font-size: 11px;
	color: var(--color-text-muted);
}

/* ---------- Действия в хедере (телефон + кнопка) ---------- */
.header-actions {
	display: flex;
	align-items: center;
	gap: 16px;
	/* Не сжимается (телефон и кнопка не наезжают друг на друга),
	   прижат вправо, когда меню скрыто в бургер. */
	flex-shrink: 0;
	margin-left: auto;
}

.header-phone {
	font-weight: 500;
	font-size: 16px;
	color: var(--color-text);
	white-space: nowrap;
}

.header-phone:hover {
	color: var(--color-accent);
}

/* ---------- Бургер-кнопка ---------- */
.burger {
	display: none;
	flex-direction: column;
	justify-content: center;
	gap: 5px;
	width: 44px;
	height: 44px;
	padding: 0;
	background: none;
	border: none;
	cursor: pointer;
}

.burger span {
	display: block;
	width: 24px;
	height: 2px;
	margin: 0 auto;
	background-color: var(--color-text);
	transition: transform var(--transition), opacity var(--transition);
}

/* Анимация бургера в «крестик» при открытом меню */
.burger.is-active span:nth-child(1) {
	transform: translateY(7px) rotate(45deg);
}

.burger.is-active span:nth-child(2) {
	opacity: 0;
}

.burger.is-active span:nth-child(3) {
	transform: translateY(-7px) rotate(-45deg);
}

/* =========================================================
   МОБИЛЬНОЕ МЕНЮ (drawer слева)
   ========================================================= */
.mobile-drawer {
	position: fixed;
	top: 0;
	left: 0;
	bottom: 0;
	z-index: 1200;
	width: 300px;
	max-width: 85vw;
	background-color: var(--color-white);
	box-shadow: 4px 0 24px rgba(0, 0, 0, 0.15);
	transform: translateX(-100%);
	transition: transform 0.3s ease;
	overflow-y: auto;
}

.mobile-drawer.is-open {
	transform: translateX(0);
}

.drawer-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 18px 20px;
	border-bottom: 1px solid var(--color-border);
}

.drawer-title {
	font-family: var(--font-heading);
	font-weight: 700;
	font-size: 18px;
}

.drawer-close {
	width: 40px;
	height: 40px;
	font-size: 28px;
	line-height: 1;
	background: none;
	border: none;
	color: var(--color-text);
	cursor: pointer;
}

.drawer-nav {
	padding: 10px 0;
}

.drawer-menu li a {
	display: block;
	padding: 13px 20px;
	color: var(--color-text);
	font-size: 16px;
	font-weight: 500;
	border-bottom: 1px solid var(--color-border);
}

.drawer-menu li a:hover {
	background-color: var(--color-bg);
	color: var(--color-accent);
}

/* Затемнение фона под drawer */
.drawer-overlay {
	position: fixed;
	inset: 0;
	z-index: 1100;
	background-color: rgba(0, 0, 0, 0.45);
	opacity: 0;
	transition: opacity 0.3s ease;
}

.drawer-overlay.is-visible {
	opacity: 1;
}

/* =========================================================
   ФИКСИРОВАННАЯ НИЖНЯЯ ПАНЕЛЬ (mobile)
   ========================================================= */
.mobile-bar {
	display: none;
	position: fixed;
	bottom: 0;
	left: 0;
	right: 0;
	z-index: 900;
	background-color: var(--color-white);
	border-top: 1px solid var(--color-border);
	box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.08);
}

.mobile-bar__item {
	flex: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 3px;
	padding: 9px 4px;
	font-size: 12px;
	font-weight: 500;
	color: var(--color-text);
}

.mobile-bar__item:hover {
	color: var(--color-accent);
}

.mobile-bar__icon {
	font-size: 19px;
}

/* =========================================================
   КОНТЕНТ
   ========================================================= */
.page-title {
	font-size: 34px;
}

.page-header {
	margin-bottom: 24px;
}

.page-thumb {
	margin-bottom: 24px;
	border-radius: var(--radius-card);
	overflow: hidden;
}

/* Карточки записей */
.posts-list {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
}

.post-card {
	background-color: var(--color-white);
	border: 1px solid var(--color-border);
	border-radius: var(--radius-card);
	padding: 20px;
}

.post-card__thumb {
	display: block;
	margin-bottom: 14px;
	border-radius: var(--radius-btn);
	overflow: hidden;
}

.post-card__title {
	font-size: 20px;
	margin-bottom: 10px;
}

.post-card__excerpt {
	color: var(--color-text-muted);
	font-size: 15px;
	margin-bottom: 16px;
}

/* =========================================================
   ФУТЕР
   ========================================================= */
.site-footer {
	background-color: var(--color-dark);
	color: var(--color-white);
	margin-top: 60px;
}

.footer-inner {
	display: grid;
	grid-template-columns: 1.4fr 1fr 1fr;
	gap: 40px;
	padding-top: 50px;
	padding-bottom: 40px;
}

.footer-desc {
	color: rgba(255, 255, 255, 0.7);
	margin-top: 14px;
	max-width: 320px;
}

.footer-unp {
	color: rgba(255, 255, 255, 0.55);
	font-size: 14px;
}

.footer-heading {
	color: var(--color-white);
	font-size: 18px;
	margin-bottom: 18px;
}

.footer-menu li,
.contacts-list li {
	margin-bottom: 10px;
}

.footer-menu li a,
.contacts-list li a {
	color: rgba(255, 255, 255, 0.75);
	font-size: 15px;
}

.footer-menu li a:hover,
.contacts-list li a:hover {
	color: var(--color-white);
}

.contacts-list li {
	color: rgba(255, 255, 255, 0.75);
	font-size: 15px;
}

/* Нижняя строка футера */
.footer-bottom {
	border-top: 1px solid rgba(255, 255, 255, 0.12);
	padding: 18px 0;
}

.footer-bottom p {
	margin: 0;
	color: rgba(255, 255, 255, 0.55);
	font-size: 14px;
	text-align: center;
}

/* =========================================================
   СТРАНИЦА 404
   ========================================================= */
.error-404 {
	text-align: center;
	padding: 80px 20px 100px;
}

.error-404__code {
	font-size: 96px;
	color: var(--color-accent);
	margin: 0;
}

.error-404__title {
	font-size: 28px;
}

.error-404__text {
	color: var(--color-text-muted);
	margin-bottom: 28px;
}

/* =========================================================
   ПАГИНАЦИЯ
   ========================================================= */
.pagination {
	margin-top: 40px;
}

.pagination .nav-links {
	display: flex;
	justify-content: center;
	gap: 8px;
	flex-wrap: wrap;
}

.pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 42px;
	height: 42px;
	padding: 0 12px;
	background-color: var(--color-white);
	border: 1px solid var(--color-border);
	border-radius: var(--radius-btn);
	color: var(--color-text);
}

.pagination .page-numbers.current,
.pagination .page-numbers:hover {
	background-color: var(--color-accent);
	border-color: var(--color-accent);
	color: var(--color-white);
}

/* =========================================================
   ГЛАВНАЯ СТРАНИЦА — общие элементы секций
   ========================================================= */

/* Базовая секция с вертикальными отступами */
.section {
	padding: 70px 0;
}

.section--bg {
	background-color: var(--color-bg);
}

.section--white {
	background-color: var(--color-white);
}

/* Заголовок секции по центру */
.section__title {
	font-size: 32px;
	text-align: center;
	margin-bottom: 12px;
}

.section__subtitle {
	text-align: center;
	color: var(--color-text-muted);
	font-size: 17px;
	max-width: 640px;
	margin: 0 auto 44px;
}

/* Если после заголовка нет подзаголовка — добавляем отступ заголовку */
.section__title:last-child {
	margin-bottom: 44px;
}
.section .section__title + .grid,
.section .section__title + .accordion {
	margin-top: 44px;
}

/* Узкий контейнер (для FAQ) */
.container--narrow {
	max-width: 820px;
}

/* ---------- Универсальные сетки ---------- */
.grid {
	display: grid;
	gap: 24px;
}

.grid--3 {
	grid-template-columns: repeat(3, 1fr);
}

.grid--6 {
	grid-template-columns: repeat(6, 1fr);
}

/* Ссылка-стрелка */
.link-arrow {
	display: inline-block;
	margin-top: auto;
	font-weight: 500;
	font-size: 15px;
	color: var(--color-accent);
}

.link-arrow:hover {
	color: var(--color-accent-dark);
}

/* =========================================================
   1. HERO
   ========================================================= */
.hero {
	background-color: var(--color-bg);
	min-height: 80vh;
	display: flex;
	align-items: center;
	padding: 60px 0;
}

.hero__inner {
	max-width: 820px;
	text-align: center;
	margin: 0 auto;
}

.hero__eyebrow {
	text-transform: uppercase;
	letter-spacing: 3px;
	font-size: 13px;
	font-weight: 500;
	color: var(--color-accent);
	margin-bottom: 18px;
}

.hero__title {
	font-size: 46px;
	line-height: 1.2;
	margin-bottom: 22px;
}

.hero__subtitle {
	font-size: 18px;
	color: var(--color-text-muted);
	max-width: 620px;
	margin: 0 auto 34px;
}

.hero__actions {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: 14px;
}

/* =========================================================
   2. ЧТО ДЕЛАТЬ + общие карточки с описанием
   ========================================================= */
.info-card,
.service-card,
.step-card {
	display: flex;
	flex-direction: column;
	background-color: var(--color-white);
	border: 1px solid var(--color-border);
	border-radius: var(--radius-card);
	padding: 28px;
	height: 100%;
	transition: box-shadow var(--transition), transform var(--transition);
}

/* Внутри секции с белым фоном карточки «что делать» получают фон-подложку */
.section--white .info-card {
	background-color: var(--color-bg);
}

.info-card:hover,
.service-card:hover {
	box-shadow: 0 10px 28px rgba(0, 0, 0, 0.08);
	transform: translateY(-3px);
}

.info-card__title,
.service-card__title {
	font-size: 21px;
	margin-bottom: 12px;
}

.info-card__text,
.service-card__text {
	color: var(--color-text-muted);
	font-size: 15px;
	margin-bottom: 20px;
}

/* =========================================================
   3. УСЛУГИ
   ========================================================= */
.service-card__icon {
	font-size: 38px;
	line-height: 1;
	margin-bottom: 16px;
}

/* =========================================================
   4. СТОИМОСТЬ
   ========================================================= */
.price-card {
	position: relative;
	display: flex;
	flex-direction: column;
	background-color: var(--color-white);
	border: 1px solid var(--color-border);
	border-radius: var(--radius-card);
	padding: 32px 28px;
	height: 100%;
}

/* Выделенный (популярный) пакет */
.price-card--featured {
	border-color: var(--color-accent);
	border-width: 2px;
	box-shadow: 0 12px 32px rgba(139, 99, 50, 0.14);
}

.price-card__badge {
	position: absolute;
	top: -14px;
	left: 50%;
	transform: translateX(-50%);
	background-color: var(--color-accent);
	color: var(--color-white);
	font-size: 13px;
	font-weight: 500;
	padding: 5px 16px;
	border-radius: 999px;
	white-space: nowrap;
}

.price-card__name {
	font-size: 24px;
	text-align: center;
	margin-bottom: 22px;
}

.price-card__list {
	margin-bottom: 26px;
	flex: 1;
}

.price-card__list li {
	position: relative;
	padding: 9px 0 9px 26px;
	font-size: 15px;
	color: var(--color-text);
	border-bottom: 1px solid var(--color-border);
}

.price-card__list li:last-child {
	border-bottom: none;
}

/* Галочка перед пунктом */
.price-card__list li::before {
	content: '✓';
	position: absolute;
	left: 0;
	color: var(--color-accent);
	font-weight: 700;
}

.price-card__btn {
	width: 100%;
}

/* =========================================================
   5. РИТУАЛЬНЫЕ ТОВАРЫ
   ========================================================= */
.goods-card {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	gap: 12px;
	background-color: var(--color-white);
	border: 1px solid var(--color-border);
	border-radius: var(--radius-card);
	padding: 28px 16px;
	transition: box-shadow var(--transition), transform var(--transition);
}

.goods-card:hover {
	box-shadow: 0 10px 28px rgba(0, 0, 0, 0.08);
	transform: translateY(-3px);
}

.goods-card__icon {
	font-size: 40px;
	line-height: 1;
}

.goods-card__title {
	font-size: 17px;
	margin: 0;
}

/* =========================================================
   6. КАК МЫ РАБОТАЕМ (шаги)
   ========================================================= */
.step-card {
	background-color: var(--color-bg);
}

.step-card__num {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	margin-bottom: 16px;
	border-radius: 50%;
	background-color: var(--color-accent);
	color: var(--color-white);
	font-family: var(--font-heading);
	font-weight: 700;
	font-size: 22px;
}

.step-card__title {
	font-size: 19px;
	margin-bottom: 10px;
}

.step-card__text {
	color: var(--color-text-muted);
	font-size: 15px;
	margin: 0;
}

/* =========================================================
   7. FAQ (аккордеон)
   ========================================================= */
.accordion__item {
	background-color: var(--color-white);
	border: 1px solid var(--color-border);
	border-radius: var(--radius-card);
	margin-bottom: 14px;
	overflow: hidden;
}

.accordion__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	width: 100%;
	padding: 20px 24px;
	background: none;
	border: none;
	text-align: left;
	font-family: var(--font-body);
	font-size: 17px;
	font-weight: 500;
	color: var(--color-text);
	cursor: pointer;
}

.accordion__head:hover {
	color: var(--color-accent);
}

/* Иконка «плюс/минус» */
.accordion__icon {
	position: relative;
	flex-shrink: 0;
	width: 18px;
	height: 18px;
}

.accordion__icon::before,
.accordion__icon::after {
	content: '';
	position: absolute;
	top: 50%;
	left: 50%;
	width: 14px;
	height: 2px;
	background-color: var(--color-accent);
	transform: translate(-50%, -50%);
	transition: transform var(--transition);
}

/* Вертикальная палочка (превращает «−» в «+») */
.accordion__icon::after {
	transform: translate(-50%, -50%) rotate(90deg);
}

/* В открытом состоянии вертикальная палочка прячется → остаётся «−» */
.accordion__head[aria-expanded="true"] .accordion__icon::after {
	transform: translate(-50%, -50%) rotate(0deg);
	opacity: 0;
}

/* Тело ответа — скрыто по умолчанию, раскрывается через max-height */
.accordion__body {
	max-height: 0;
	overflow: hidden;
	transition: max-height 0.3s ease;
}

.accordion__body p {
	padding: 0 24px 22px;
	margin: 0;
	color: var(--color-text-muted);
	font-size: 15px;
}

/* =========================================================
   8. ФИНАЛЬНЫЙ CTA
   ========================================================= */
.cta {
	background-color: var(--color-accent);
	color: var(--color-white);
	padding: 70px 0;
}

.cta__inner {
	text-align: center;
}

.cta__title {
	color: var(--color-white);
	font-size: 34px;
	margin-bottom: 12px;
}

.cta__subtitle {
	color: rgba(255, 255, 255, 0.85);
	font-size: 18px;
	margin-bottom: 30px;
}

.cta__actions {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: 14px;
}

/* =========================================================
   ВНУТРЕННИЕ СТРАНИЦЫ — общие компоненты
   ========================================================= */

/* Уменьшенный hero для внутренних страниц (без 80vh) */
.hero--page {
	min-height: auto;
	padding: 64px 0;
}

/* Сетка в 2 колонки */
.grid--2 {
	grid-template-columns: repeat(2, 1fr);
}

/* ---------- Блок-обёртка для списков ---------- */
.list-block {
	background-color: var(--color-white);
	border: 1px solid var(--color-border);
	border-radius: var(--radius-card);
	padding: 30px;
	height: 100%;
}

/* На белой секции делаем подложку другого тона для контраста */
.section--white .list-block {
	background-color: var(--color-bg);
}

.list-block__title {
	font-size: 22px;
	margin-bottom: 18px;
}

.list-block p {
	color: var(--color-text-muted);
}

/* ---------- Списки: с галочкой / с тире / нумерованный ---------- */
.check-list,
.dash-list {
	margin: 0;
}

.check-list li,
.dash-list li {
	position: relative;
	padding: 9px 0 9px 30px;
	color: var(--color-text);
	font-size: 16px;
	border-bottom: 1px solid var(--color-border);
}

.check-list li:last-child,
.dash-list li:last-child {
	border-bottom: none;
}

.check-list li::before {
	content: '✓';
	position: absolute;
	left: 0;
	color: var(--color-accent);
	font-weight: 700;
}

.dash-list li::before {
	content: '—';
	position: absolute;
	left: 0;
	color: var(--color-accent);
}

/* Нумерованный список с акцентными цифрами */
.num-list {
	counter-reset: num;
	margin: 0;
	padding: 0;
}

.num-list li {
	position: relative;
	list-style: none;
	padding: 12px 0 12px 50px;
	min-height: 36px;
	color: var(--color-text);
	font-size: 16px;
}

.num-list li::before {
	counter-increment: num;
	content: counter(num);
	position: absolute;
	left: 0;
	top: 8px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background-color: var(--color-accent);
	color: var(--color-white);
	font-family: var(--font-heading);
	font-weight: 700;
	font-size: 15px;
}

/* ---------- Текстовый блок ---------- */
.text-block p {
	font-size: 17px;
	color: var(--color-text);
	margin-bottom: 1.2em;
}

/* ---------- Текстовая секция (content-text) ---------- */
.content-text {
	max-width: 720px;
	margin: 0 auto;
	text-align: left;
	padding: 0 24px;
}

.content-text h2 {
	font-family: 'Playfair Display', serif;
	font-size: 2rem;
	color: var(--color-text);
	margin-bottom: 1.5rem;
	text-align: center;
}

.content-text p {
	font-size: 1.1rem;
	line-height: 1.8;
	color: var(--color-text-secondary);
	margin-bottom: 1rem;
}

/* =========================================================
   ФОРМЫ
   ========================================================= */
.form {
	background-color: var(--color-white);
	border: 1px solid var(--color-border);
	border-radius: var(--radius-card);
	padding: 32px;
}

.section--white .form {
	background-color: var(--color-bg);
}

.form__row {
	margin-bottom: 18px;
}

.form__label {
	display: block;
	margin-bottom: 7px;
	font-size: 14px;
	font-weight: 500;
	color: var(--color-text);
}

.form__input {
	width: 100%;
	padding: 12px 14px;
	font-family: var(--font-body);
	font-size: 15px;
	color: var(--color-text);
	background-color: var(--color-white);
	border: 1px solid var(--color-border);
	border-radius: var(--radius-btn);
	transition: border-color var(--transition);
}

.form__input:focus {
	outline: none;
	border-color: var(--color-accent);
}

textarea.form__input {
	resize: vertical;
	min-height: 110px;
}

/* Кнопка отправки на всю ширину формы */
.form .btn {
	width: 100%;
	margin-top: 6px;
}

/* Заблокированная кнопка во время отправки */
.form .btn:disabled {
	opacity: 0.6;
	cursor: default;
}

/* Сообщение об отправке формы (успех/ошибка) */
.form__response {
	margin: 14px 0 0;
	font-size: 15px;
	font-weight: 500;
	text-align: center;
}

.form__response:empty {
	display: none;
}

.form__response.is-success {
	color: #2e7d32;
}

.form__response.is-error {
	color: #c62828;
}

/* =========================================================
   ТАБЫ (страница «Что делать»)
   ========================================================= */
.tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 28px;
	border-bottom: 1px solid var(--color-border);
}

.tabs__btn {
	padding: 12px 20px;
	font-family: var(--font-body);
	font-size: 16px;
	font-weight: 500;
	color: var(--color-text-muted);
	background: none;
	border: none;
	border-bottom: 2px solid transparent;
	margin-bottom: -1px;
	cursor: pointer;
	transition: color var(--transition), border-color var(--transition);
}

.tabs__btn:hover {
	color: var(--color-accent);
}

.tabs__btn.is-active {
	color: var(--color-accent);
	border-bottom-color: var(--color-accent);
}

/* Панели вкладок: скрыты по умолчанию */
.tabs__panel {
	display: none;
}

.tabs__panel.is-active {
	display: block;
}

/* =========================================================
   О КОМПАНИИ — фото + текст, плейсхолдеры, реквизиты
   ========================================================= */
.about-split {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 40px;
	align-items: center;
}

.about-split__text h2 {
	font-size: 26px;
	margin-bottom: 16px;
}

.about-split__text p {
	color: var(--color-text-muted);
}

/* Серый плейсхолдер фотографии */
.placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 320px;
	background-color: #d9d2c8;
	border-radius: var(--radius-card);
	color: var(--color-text-muted);
	font-size: 16px;
}

/* Таблица реквизитов */
.requisites-table {
	width: 100%;
	border-collapse: collapse;
	background-color: var(--color-white);
	border: 1px solid var(--color-border);
	border-radius: var(--radius-card);
	overflow: hidden;
}

.requisites-table th,
.requisites-table td {
	padding: 15px 20px;
	text-align: left;
	border-bottom: 1px solid var(--color-border);
	font-size: 16px;
}

.requisites-table tr:last-child th,
.requisites-table tr:last-child td {
	border-bottom: none;
}

.requisites-table th {
	width: 35%;
	font-weight: 500;
	color: var(--color-text-muted);
	background-color: var(--color-bg);
}

/* =========================================================
   КОНТАКТЫ — карточки связи и плейсхолдер карты
   ========================================================= */
.contact-card {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: 8px;
	background-color: var(--color-bg);
	border: 1px solid var(--color-border);
	border-radius: var(--radius-card);
	padding: 32px 24px;
}

.contact-card__icon {
	font-size: 40px;
	line-height: 1;
	margin-bottom: 6px;
}

.contact-card__title {
	font-size: 20px;
	margin: 0;
}

.contact-card__value {
	font-size: 17px;
	font-weight: 500;
}

.contact-card__note {
	color: var(--color-text-muted);
	font-size: 14px;
	margin: 0;
}

/* Серый плейсхолдер карты */
.map-placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 400px;
	background-color: #d9d2c8;
	border-radius: var(--radius-card);
	color: var(--color-text-muted);
	font-size: 16px;
}

/* =========================================================
   ИКОНКИ LUCIDE (SVG)
   ========================================================= */

/* Иконка-плашка в карточках (услуги, товары, «что делать», принципы) */
.card-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 56px;
	height: 56px;
	background: var(--color-bg);
	border-radius: 12px;
	margin-bottom: 16px;
}

.card-icon svg {
	width: 28px;
	height: 28px;
	stroke: var(--color-accent);
	stroke-width: 1.5;
}

/* Иконки в нижней мобильной панели */
.mobile-bar__icon svg {
	width: 20px;
	height: 20px;
	stroke: currentColor;
	stroke-width: 1.5;
}

/* Иконка телефона в хедере (рядом с номером) */
.header-phone {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.header-phone svg {
	width: 16px;
	height: 16px;
	stroke: var(--color-accent);
	stroke-width: 2;
}

/* =========================================================
   КАСТОМНЫЕ PNG-ИКОНКИ (40×40)
   Используются в карточках услуг/товаров, hero-кнопках,
   нижней панели и телефоне хедера. Lucide остаётся в
   блоках «Что делать» и «Принципы».
   ========================================================= */

/* PNG-иконка внутри плашки карточки (услуги, товары) */
.card-icon img {
	width: 36px;
	height: 36px;
	object-fit: contain;
}

/* PNG-иконки в hero-кнопках */
.btn-icon {
	width: 20px;
	height: 20px;
	object-fit: contain;
}

/* PNG-иконки в нижней мобильной панели */
.mobile-bar__icon img {
	width: 24px;
	height: 24px;
	object-fit: contain;
}

/* PNG-иконка телефона в хедере */
.header-phone img {
	width: 18px;
	height: 18px;
	object-fit: contain;
}

/* =========================================================
   АДАПТАЦИЯ — хедер (≤ 1280px)
   Горизонтальное меню не помещается рядом с телефоном и кнопкой,
   поэтому сворачивается в бургер (меню уходит в drawer).
   ========================================================= */
@media (max-width: 1280px) {
	.main-nav {
		display: none;
	}

	.burger {
		display: flex;
	}
}

/* =========================================================
   АДАПТАЦИЯ — планшет (≤ 1024px)
   ========================================================= */
@media (max-width: 1024px) {
	/* Сетки уплотняются */
	.posts-list,
	.grid--3 {
		grid-template-columns: repeat(2, 1fr);
	}

	.grid--6 {
		grid-template-columns: repeat(3, 1fr);
	}

	.footer-inner {
		grid-template-columns: 1fr 1fr;
	}

	.footer-about {
		grid-column: 1 / -1;
	}

	.hero__title {
		font-size: 40px;
	}
}

/* =========================================================
   АДАПТАЦИЯ — большие телефоны (≤ 768px)
   ========================================================= */
@media (max-width: 768px) {
	:root {
		--header-height: 70px;
	}

	/* Скрываем телефон и кнопку «Получить помощь» в хедере */
	.header-actions {
		display: none;
	}

	/* Фиксированная нижняя панель */
	.mobile-bar {
		display: flex;
	}

	/* Отступ снизу под мобильную панель */
	body {
		padding-bottom: 68px;
	}

	/* Отступы от краёв — 16px */
	.container {
		padding: 0 16px;
	}

	/* Сетки 3 и 6 колонок → 1 и 2; список постов → 1 */
	.posts-list,
	.grid--3 {
		grid-template-columns: 1fr;
	}

	.grid--6 {
		grid-template-columns: repeat(2, 1fr);
	}

	/* Футер в одну колонку, логотип и текст по центру */
	.footer-inner {
		grid-template-columns: 1fr;
		gap: 30px;
		text-align: center;
	}

	.footer-about {
		grid-column: auto;
	}

	.footer-logo {
		justify-content: center;
	}

	.footer-desc {
		margin-left: auto;
		margin-right: auto;
	}

	/* Секции и заголовки */
	.section {
		padding: 50px 0;
	}

	.section__title {
		font-size: 26px;
	}

	.page-title {
		font-size: 26px;
	}

	.cta__title {
		font-size: 26px;
	}

	.error-404__code {
		font-size: 72px;
	}

	/* Hero */
	.hero {
		min-height: auto;
		padding: 48px 0;
	}

	.hero__title {
		font-size: 30px;
	}

	.hero__subtitle {
		font-size: 16px;
	}

	/* Карточки — меньше внутренние отступы */
	.info-card,
	.service-card,
	.step-card,
	.price-card,
	.list-block,
	.form,
	.contact-card {
		padding: 22px;
	}

	/* Плейсхолдеры */
	.placeholder {
		min-height: 220px;
	}

	.map-placeholder {
		height: 280px;
	}

	.requisites-table th {
		width: 42%;
	}

	/* Аккордеон */
	.accordion__head {
		font-size: 16px;
		padding: 16px 18px;
	}

	/* Пакет «Популярный» — первым, когда пакеты встают в колонку */
	.price-card--featured {
		order: -1;
	}

	/* Формы: поля и кнопки на всю ширину, touch target ≥ 44px */
	.form__input,
	.form .btn,
	.hero__actions .btn,
	.cta__actions .btn {
		width: 100%;
	}

	.form__input,
	.btn {
		min-height: 48px;
	}
}

/* =========================================================
   АДАПТАЦИЯ — средние телефоны (≤ 480px)
   ========================================================= */
@media (max-width: 480px) {
	/* Сетки 2 колонок → 1 */
	.grid--2,
	.about-split {
		grid-template-columns: 1fr;
	}

	.about-split {
		gap: 24px;
	}

	/* Чуть плотнее промежутки в сетках */
	.grid {
		gap: 18px;
	}

	/* Секции компактнее */
	.section {
		padding: 40px 0;
	}

	.section__title {
		font-size: 24px;
	}

	.section__subtitle {
		font-size: 16px;
	}

	/* Hero */
	.hero {
		padding: 36px 0;
	}

	.hero__title {
		font-size: 28px;
	}

	.hero__eyebrow {
		font-size: 14px;
		letter-spacing: 2px;
	}

	/* Кнопки hero и CTA — в колонку */
	.hero__actions,
	.cta__actions {
		flex-direction: column;
	}

	/* Карточки — ещё меньше отступы */
	.info-card,
	.service-card,
	.step-card,
	.price-card,
	.list-block,
	.form,
	.contact-card {
		padding: 18px;
	}

	/* Табы — горизонтальный скролл вместо сжатия */
	.tabs {
		flex-wrap: nowrap;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
	}

	.tabs__btn {
		flex: 0 0 auto;
		padding: 11px 14px;
		font-size: 15px;
		white-space: nowrap;
	}

	/* Реквизиты — компактные отступы */
	.requisites-table th,
	.requisites-table td {
		padding: 11px 12px;
		font-size: 15px;
	}
}

/* =========================================================
   АДАПТАЦИЯ — маленькие телефоны (≤ 375px)
   ========================================================= */
@media (max-width: 375px) {
	.hero__title {
		font-size: 26px;
	}

	.section__title {
		font-size: 22px;
	}

	.cta__title {
		font-size: 24px;
	}
}

/* =========================================================
   АДАПТАЦИЯ — очень маленькие экраны (≤ 320px)
   ========================================================= */
@media (max-width: 320px) {
	.hero__title {
		font-size: 24px; /* не больше 2rem */
	}

	/* Реквизиты — компактные отступы */
	.requisites-table th {
		width: 40%;
	}

	.requisites-table th,
	.requisites-table td {
		padding: 9px 8px;
		font-size: 14px;
	}
}

/* =========================================================
   ПЛАШКА «ПОСОБИЕ НА ПОГРЕБЕНИЕ» (announcement bar)
   ========================================================= */
.announcement-bar {
	background: #2c2c2c;
	color: #f5f5f5;
	text-align: center;
	padding: 10px 20px;
	font-size: 14px;
	width: 100%;
	box-sizing: border-box;
}

.announcement-amount {
	font-weight: bold;
	color: #d4af6e;
	/* Сумма «3 075,06 руб.» не рвётся посередине */
	white-space: nowrap;
}

.announcement-link {
	color: #d4af6e;
	margin-left: 8px;
	text-decoration: underline;
}

@media (max-width: 600px) {
	.announcement-bar {
		display: flex;
		flex-direction: column;
		align-items: center;
		gap: 4px;
		font-size: 13px;
		padding: 10px 15px;
	}

	.announcement-text {
		display: block;
	}

	.announcement-amount {
		display: block;
		font-size: 16px;
	}

	.announcement-link {
		margin-left: 0;
		margin-top: 4px;
	}
}

/* =========================================================
   БЛОК СУММЫ ПОСОБИЯ (страница «Пособие на погребение»)
   ========================================================= */
.benefit-box {
	background: #2c2c2c;
	color: #f5f5f5;
	border-radius: var(--radius-card);
	padding: 36px 32px;
	text-align: center;
}

.benefit-box__label {
	font-size: 17px;
	color: rgba(245, 245, 245, 0.8);
	margin: 0 0 8px;
}

.benefit-box__amount {
	font-family: var(--font-heading);
	font-size: 46px;
	font-weight: 700;
	line-height: 1.1;
	color: #d4af6e;
	margin: 0 0 14px;
}

.benefit-box__note {
	font-size: 14px;
	color: rgba(245, 245, 245, 0.65);
	margin: 0 0 16px;
}

.benefit-box__source {
	display: inline-block;
	color: #d4af6e;
	text-decoration: underline;
	font-size: 15px;
}

@media (max-width: 600px) {
	.benefit-box {
		padding: 26px 18px;
	}

	.benefit-box__amount {
		font-size: 36px;
	}
}

/* ---------- Хлебные крошки ---------- */
.breadcrumbs {
	padding: 16px 0 0;
	font-size: 14px;
}

.breadcrumbs__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 8px;
}

.breadcrumbs__item {
	display: inline-flex;
	align-items: center;
	color: var(--color-text-muted);
}

.breadcrumbs__item + .breadcrumbs__item::before {
	content: "→";
	margin-right: 8px;
	color: var(--color-border);
}

.breadcrumbs__item a {
	color: var(--color-text-muted);
	text-decoration: none;
	transition: color var(--transition);
}

.breadcrumbs__item a:hover {
	color: var(--color-accent);
}

.breadcrumbs__item--current {
	color: var(--color-text);
}

@media (max-width: 600px) {
	.breadcrumbs {
		font-size: 13px;
		padding-top: 12px;
	}
}

/* ---------- Блок «Смотрите также» ---------- */
.related__title {
	margin-bottom: 28px;
}

.related__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
}

.related__card {
	display: flex;
	flex-direction: column;
	padding: 22px 24px;
	background-color: var(--color-bg);
	border: 1px solid var(--color-border);
	border-radius: var(--radius-card);
	text-decoration: none;
	color: var(--color-text);
	transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}

.related__card:hover {
	border-color: var(--color-accent);
	transform: translateY(-2px);
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
}

.related__name {
	font-family: var(--font-heading);
	font-size: 19px;
	font-weight: 700;
	margin-bottom: 8px;
}

.related__desc {
	font-size: 15px;
	color: var(--color-text-muted);
	line-height: 1.5;
	flex-grow: 1;
}

.related__arrow {
	margin-top: 14px;
	color: var(--color-accent);
	font-size: 18px;
}

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

@media (max-width: 600px) {
	.related__grid {
		grid-template-columns: 1fr;
	}
}
