/*
Theme Name: Дом Пушистиков — Гагаринский
Theme URI: https://dompushistikov.ru/
Author: Дом Пушистиков
Description: Тема контактного зоопарка «Дом Пушистиков», филиал ТРЦ «Гагаринский» (Москва). SEO-разметка для Яндекса, адаптивная вёрстка.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: dompushistikov-gagarinskiy
*/

/* Шрифт Nunito подключается в functions.php через wp_enqueue_style.
   Запасной импорт — если тема используется без wp_head(). */
@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700;800&display=swap');

:root {
	--c-bg: #FAF7F0;
	--c-card: #F3EEE2;
	--c-text: #1E4D2B;
	--c-text-soft: #3E5F47;
	--c-coral: #E8694A;
	--c-coral-dark: #D4553A;
	--c-gold: #F5B041;
	--c-gold-soft: #FBE3B0;
	--c-leaf: #9DBF88;
	--c-wood: #8B6914;
	--radius: 20px;
	--shadow: 0 10px 30px rgba(30, 77, 43, .08);
	--container: 1180px;
	--font: 'Nunito', 'Open Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
	margin: 0;
	background: var(--c-bg);
	color: var(--c-text);
	font-family: var(--font);
	font-size: 17px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}

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

a { color: var(--c-coral); text-decoration: none; transition: color .2s; }
a:hover { color: var(--c-coral-dark); }

h1, h2, h3, h4 {
	font-family: var(--font);
	font-weight: 800;
	line-height: 1.15;
	margin: 0 0 .5em;
	color: var(--c-text);
}

h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
h3 { font-size: clamp(1.5rem, 2.8vw, 2.2rem); }

p { margin: 0 0 1em; }

.container {
	width: 100%;
	max-width: var(--container);
	margin: 0 auto;
	padding: 0 24px;
}

.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
}

.skip-link:focus {
	position: fixed; top: 10px; left: 10px; z-index: 1000;
	width: auto; height: auto; clip: auto;
	background: #fff; color: var(--c-text);
	padding: 10px 18px; border-radius: 10px;
}

.icon { width: 1em; height: 1em; flex-shrink: 0; }

/* ---------- Кнопки ---------- */
.btn {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	background: var(--c-coral);
	color: #fff;
	border: 0;
	border-radius: 50px;
	padding: 14px 32px;
	font-family: var(--font);
	font-size: 1.05rem;
	font-weight: 700;
	line-height: 1.2;
	cursor: pointer;
	box-shadow: 0 8px 20px rgba(232, 105, 74, .3);
	transition: background .2s, transform .2s, box-shadow .2s;
}
.btn:hover, .btn:focus-visible {
	background: var(--c-coral-dark);
	color: #fff;
	transform: translateY(-2px);
	box-shadow: 0 12px 24px rgba(232, 105, 74, .38);
}
.btn .icon { width: 20px; height: 20px; }
.btn--small { padding: 11px 24px; font-size: .98rem; }

/* ---------- Шапка ---------- */
.site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: rgba(250, 247, 240, .96);
	backdrop-filter: blur(6px);
	border-bottom: 1px solid rgba(30, 77, 43, .06);
}
.admin-bar .site-header { top: 32px; }

.site-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	min-height: 84px;
}

.logo {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	color: var(--c-text);
}
.logo:hover { color: var(--c-text); }
.logo__mark { width: 62px; height: 56px; }
.logo__text { display: flex; flex-direction: column; line-height: 1.05; }
.logo__name { font-size: 1.55rem; font-weight: 800; letter-spacing: -.01em; }
.logo__sub { font-size: .95rem; font-weight: 600; color: var(--c-text-soft); opacity: .8; margin-top: 3px; }
.custom-logo { max-height: 60px; width: auto; }

.nav { display: flex; align-items: center; gap: 28px; }
.nav__list {
	display: flex;
	gap: 40px;
	list-style: none;
	margin: 0;
	padding: 0;
}
.nav__list a {
	position: relative;
	display: block;
	padding: 8px 0;
	color: var(--c-text);
	font-weight: 600;
}
.nav__list a::after {
	content: '';
	position: absolute;
	left: 0; right: 0; bottom: -2px;
	height: 4px;
	border-radius: 4px;
	background: var(--c-gold);
	transform: scaleX(0);
	transition: transform .25s;
}
.nav__list a:hover::after,
.nav__list .current-menu-item > a::after,
.nav__list .current_page_item > a::after { transform: scaleX(1); }
.nav__list .current-menu-item > a,
.nav__list .current_page_item > a { font-weight: 800; }

.nav-toggle {
	display: none;
	width: 46px; height: 46px;
	border: 0;
	border-radius: 14px;
	background: var(--c-card);
	cursor: pointer;
	padding: 0;
	align-items: center;
	justify-content: center;
}
.nav-toggle__bar,
.nav-toggle__bar::before,
.nav-toggle__bar::after {
	display: block;
	width: 22px; height: 3px;
	border-radius: 3px;
	background: var(--c-text);
	position: relative;
	transition: transform .25s, background .25s;
}
.nav-toggle__bar::before, .nav-toggle__bar::after { content: ''; position: absolute; left: 0; }
.nav-toggle__bar::before { top: -7px; }
.nav-toggle__bar::after { top: 7px; }
.nav-open .nav-toggle__bar { background: transparent; }
.nav-open .nav-toggle__bar::before { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle__bar::after { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Декор ---------- */
.sprig { position: absolute; pointer-events: none; width: 110px; height: auto; opacity: .95; z-index: 0; }
.sprig--left { left: -10px; top: 20px; transform: rotate(-18deg); }
.sprig--right { right: -10px; top: 10px; transform: scaleX(-1) rotate(-14deg); }
.sprig--card { right: 18px; top: 18px; width: 64px; transform: rotate(18deg); opacity: .9; }
.sprig--bottom-left { left: 10px; bottom: -20px; width: 90px; transform: rotate(-8deg); }
.sprig--bottom-right { right: 10px; bottom: -20px; width: 90px; transform: scaleX(-1) rotate(-8deg); }

.heart-divider {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 10px;
	color: var(--c-gold);
	margin-top: 10px;
}
.heart-divider .icon { width: 26px; height: 26px; }
.heart-divider::before, .heart-divider::after {
	content: '';
	width: 14px; height: 3px;
	border-radius: 3px;
	background: var(--c-gold);
}
.heart-divider::before { transform: rotate(20deg); }
.heart-divider::after { transform: rotate(-20deg); }

.note-bubble {
	display: inline-block;
	padding: 22px 26px;
	border-radius: 50% 46% 52% 44%;
	background: rgba(157, 191, 136, .2);
	font-style: italic;
	font-weight: 600;
	line-height: 1.3;
	transform: rotate(-10deg);
	color: var(--c-text);
}

/* Деревянная табличка */
.media { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: var(--c-card); }
.media img { width: 100%; height: 100%; object-fit: cover; }
.wood-sign {
	position: absolute;
	right: 22px;
	bottom: 22px;
	max-width: 46%;
	padding: 10px 16px;
	background: var(--c-wood);
	background-image: repeating-linear-gradient(0deg, rgba(0,0,0,.06) 0 2px, transparent 2px 9px);
	color: #fff;
	border: 3px solid #6F530F;
	border-radius: 10px;
	font-weight: 800;
	font-size: .9rem;
	letter-spacing: .06em;
	line-height: 1.25;
	text-align: center;
	text-transform: uppercase;
	box-shadow: 0 6px 14px rgba(0,0,0,.25);
	transform: rotate(-3deg);
}
.wood-sign--left { right: auto; left: 22px; transform: rotate(3deg); }

/* ---------- Hero ---------- */
.hero {
	position: relative;
	overflow: hidden;
	padding: 80px 0 110px;
}
.hero--green { background: var(--c-text); color: #fff; }
.hero--yellow { background: var(--c-gold); color: var(--c-text); }
.hero__pattern { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__inner {
	position: relative;
	z-index: 1;
	display: grid;
	grid-template-columns: 1.05fr 1fr;
	align-items: center;
	gap: 56px;
}
.hero__eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 6px 16px;
	border-radius: 50px;
	font-weight: 700;
	font-size: .95rem;
	margin-bottom: 18px;
}
.hero--green .hero__eyebrow { background: rgba(255,255,255,.12); color: var(--c-gold); }
.hero--yellow .hero__eyebrow { background: rgba(255,255,255,.45); color: var(--c-text); }
.hero__eyebrow .icon { width: 18px; height: 18px; }
.hero h1 { color: inherit; }
.hero__subtitle { font-size: 1.25rem; font-weight: 600; margin-bottom: 32px; opacity: .92; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; }
.hero__link { font-weight: 700; color: inherit; border-bottom: 2px solid currentColor; padding-bottom: 2px; }
.hero__link:hover { color: inherit; opacity: .8; }
.hero__media { position: relative; }
.hero__media .media { aspect-ratio: 6 / 5; border: 6px solid rgba(255,255,255,.9); }
.hero__media .note-bubble {
	position: absolute;
	left: -36px;
	bottom: -28px;
	background: var(--c-bg);
	box-shadow: var(--shadow);
	z-index: 2;
}
.hero__wave {
	position: absolute;
	left: 0; right: 0; bottom: -1px;
	width: 100%;
	height: 70px;
	z-index: 1;
}

/* ---------- Секции ---------- */
.section { position: relative; padding: 90px 0; overflow: hidden; }
.section--tight { padding-top: 40px; }
.section-head { position: relative; z-index: 1; max-width: 680px; margin: 0 auto 48px; text-align: center; }
.section-head p { font-size: 1.1rem; color: var(--c-text-soft); }

/* Карточки жителей на главной */
.residents-grid {
	position: relative;
	z-index: 1;
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 28px;
}
.resident-card {
	display: flex;
	flex-direction: column;
	background: var(--c-card);
	border-radius: var(--radius);
	overflow: hidden;
	color: var(--c-text);
	box-shadow: var(--shadow);
	transition: transform .25s, box-shadow .25s;
}
.resident-card:hover { color: var(--c-text); transform: translateY(-6px); box-shadow: 0 18px 36px rgba(30, 77, 43, .14); }
.resident-card .media { border-radius: 0; box-shadow: none; aspect-ratio: 4 / 3; }
.resident-card__body { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.resident-card__title { font-size: 1.6rem; margin: 0; }
.resident-card__text { margin: 0; color: var(--c-text-soft); }
.resident-card__more {
	margin-top: auto;
	padding-top: 10px;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: var(--c-coral);
	font-weight: 700;
}
.resident-card__more .icon { width: 18px; height: 18px; transition: transform .2s; }
.resident-card:hover .resident-card__more .icon { transform: translateX(4px); }

/* Преимущества на главной */
.features {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
	position: relative;
	z-index: 1;
}
.feature {
	background: #fff;
	border-radius: var(--radius);
	padding: 28px;
	box-shadow: var(--shadow);
}
.feature__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 56px; height: 56px;
	border-radius: 18px;
	background: var(--c-gold-soft);
	color: var(--c-coral);
	margin-bottom: 14px;
}
.feature__icon .icon { width: 28px; height: 28px; }
.feature h3 { font-size: 1.3rem; }
.feature p { margin: 0; color: var(--c-text-soft); }

/* ---------- Наши жители: шапка страницы ---------- */
.page-hero { position: relative; padding: 60px 0 40px; text-align: center; overflow: hidden; }
.page-hero__inner { position: relative; z-index: 1; max-width: 760px; margin: 0 auto; }
.page-hero p { font-size: 1.12rem; color: var(--c-text-soft); }
.page-hero .note-bubble { position: absolute; left: 70px; top: 70px; font-size: 1.05rem; }
.page-hero__sign {
	position: absolute;
	right: 80px;
	top: 60px;
	padding: 12px 20px;
	background: #D9B27C;
	background-image: repeating-linear-gradient(0deg, rgba(139,105,20,.12) 0 2px, transparent 2px 10px);
	border: 3px solid #A87E3E;
	border-radius: 10px;
	color: var(--c-text);
	font-weight: 800;
	line-height: 1.25;
	text-align: center;
	transform: rotate(5deg);
	box-shadow: 0 6px 14px rgba(0,0,0,.12);
}
.page-hero__sign::after {
	content: '';
	position: absolute;
	left: 50%;
	top: 100%;
	width: 14px; height: 60px;
	margin-left: -7px;
	background: #8B6914;
	border-radius: 0 0 4px 4px;
	z-index: -1;
}

/* Чередующиеся секции жителей */
.resident-rows { display: flex; flex-direction: column; gap: 28px; }
.resident-row {
	display: grid;
	grid-template-columns: 1.05fr 1fr;
	gap: 22px;
	align-items: stretch;
	scroll-margin-top: 110px;
}
.resident-row--reverse { grid-template-columns: 1fr 1.05fr; }
.resident-row--reverse .resident-row__media { order: 2; }
.resident-row__media { min-height: 300px; }
.resident-row__media .media { height: 100%; }
.resident-row__info {
	position: relative;
	background: var(--c-card);
	border-radius: var(--radius);
	padding: 36px 36px 30px;
	display: flex;
	flex-direction: column;
	justify-content: center;
	overflow: hidden;
}
.resident-row__info h2 { position: relative; z-index: 1; padding-right: 70px; }
.resident-row__desc { position: relative; z-index: 1; font-size: 1.2rem; color: var(--c-text-soft); max-width: 360px; margin-bottom: 26px; }

.traits {
	position: relative;
	z-index: 1;
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 12px;
	list-style: none;
	margin: 0;
	padding: 0;
	text-align: center;
}
.trait { display: flex; flex-direction: column; align-items: center; gap: 8px; font-weight: 600; line-height: 1.25; font-size: .98rem; }
.trait .icon { width: 38px; height: 38px; }
.trait--gold .icon { color: var(--c-gold); }
.trait--coral .icon { color: var(--c-coral); }
.trait--green .icon { color: #7FA36B; }

/* ---------- CTA ---------- */
.cta { padding: 30px 0 90px; }
.cta__box {
	position: relative;
	overflow: hidden;
	border-radius: var(--radius);
	background: linear-gradient(180deg, #FCE7B8 0%, #F8D488 100%);
	padding: 54px 30px 120px;
	text-align: center;
}
.cta__waves { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 130px; }
.cta__content { position: relative; z-index: 2; max-width: 640px; margin: 0 auto; }
.cta__title { font-size: clamp(1.4rem, 2.6vw, 1.9rem); margin-bottom: 24px; }
.cta__note {
	position: absolute;
	right: 90px;
	top: 34px;
	z-index: 2;
	font-style: italic;
	font-weight: 600;
	line-height: 1.25;
	transform: rotate(-12deg);
	text-align: center;
}
.cta__note .icon { color: var(--c-gold); width: 20px; height: 20px; display: inline-block; vertical-align: middle; }
.cta__silhouette { position: absolute; z-index: 2; bottom: 18px; color: var(--c-text); }
.cta__silhouette--left { left: 160px; width: 48px; }
.cta__silhouette--right { right: 190px; width: 54px; }
.cta__fence { position: absolute; z-index: 2; left: 30px; bottom: 14px; width: 110px; color: var(--c-text); }
.cta .sprig { z-index: 1; }

/* ---------- Контакты ---------- */
.contacts-grid {
	display: grid;
	grid-template-columns: 1.15fr .85fr;
	gap: 36px;
	align-items: start;
	position: relative;
	z-index: 1;
}
.contact-cards {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 16px;
	list-style: none;
	margin: 0 0 30px;
	padding: 0;
}
.contact-card {
	background: var(--c-card);
	border-radius: var(--radius);
	padding: 22px 20px;
	display: flex;
	flex-direction: column;
	gap: 8px;
}
.contact-card__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 46px; height: 46px;
	border-radius: 50%;
	background: #fff;
	color: var(--c-coral);
}
.contact-card__icon .icon { width: 24px; height: 24px; }
.contact-card__label { font-size: .85rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--c-text-soft); opacity: .8; }
.contact-card__value { font-weight: 700; line-height: 1.35; color: var(--c-text); }
.contact-card__value a { color: var(--c-text); }

.contact-form {
	background: #fff;
	border-radius: var(--radius);
	padding: 34px;
	box-shadow: var(--shadow);
}
.contact-form h2 { font-size: 1.6rem; }
.contact-form__intro { color: var(--c-text-soft); }
.form-row { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.form-row label { font-weight: 700; font-size: .95rem; }
.form-row input,
.form-row textarea {
	width: 100%;
	padding: 14px 18px;
	border: 2px solid #E6DFCF;
	border-radius: 14px;
	background: var(--c-bg);
	color: var(--c-text);
	font-family: var(--font);
	font-size: 1rem;
	transition: border-color .2s, background .2s;
}
.form-row textarea { min-height: 130px; resize: vertical; }
.form-row input:focus,
.form-row textarea:focus { outline: none; border-color: var(--c-gold); background: #fff; }
.form-consent { font-size: .85rem; color: var(--c-text-soft); margin: 14px 0 0; }

.contacts-photo { position: relative; }
.contacts-photo .media { aspect-ratio: 4 / 5; }

.map-hint {
	margin-top: 22px;
	background: var(--c-card);
	border-radius: var(--radius);
	padding: 20px 22px;
	font-weight: 600;
}
.map-hint a { font-weight: 800; }

/* ---------- Обычные страницы и 404 ---------- */
.entry { max-width: 820px; margin: 0 auto; }
.entry-content { font-size: 1.08rem; }
.error-404 { text-align: center; padding: 100px 0; }
.error-404__code { font-size: clamp(5rem, 14vw, 9rem); font-weight: 800; color: var(--c-gold); line-height: 1; margin-bottom: 10px; }

/* ---------- Подвал ---------- */
.site-footer {
	position: relative;
	overflow: hidden;
	background: var(--c-text);
	color: rgba(255,255,255,.88);
	padding: 34px 0;
}
.site-footer__inner {
	position: relative;
	z-index: 1;
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	gap: 20px;
}
.site-footer__info { grid-column: 2; text-align: center; font-size: .98rem; }
.site-footer__info p { margin: 0; }
.site-footer__meta { font-size: .88rem; opacity: .75; margin-top: 4px !important; }
.site-footer__meta a { color: #fff; }
.site-footer__slogan {
	justify-self: end;
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: .9rem;
	font-style: italic;
	line-height: 1.25;
	opacity: .7;
}
.site-footer__slogan .icon { width: 22px; height: 22px; color: var(--c-leaf); }
.site-footer__grass { position: absolute; bottom: 0; width: 160px; height: 60px; color: rgba(157, 191, 136, .35); }
.site-footer__grass--left { left: 30px; }
.site-footer__grass--right { right: 260px; }

/* ---------- Адаптив ---------- */
@media (max-width: 1024px) {
	.page-hero .note-bubble, .page-hero__sign { display: none; }
	.cta__note { right: 30px; }
	.cta__silhouette--left { left: 130px; }
	.cta__silhouette--right { right: 110px; }
}

@media (max-width: 900px) {
	.hero__inner { grid-template-columns: 1fr; gap: 50px; }
	.hero__media { max-width: 560px; margin: 0 auto; width: 100%; }
	.residents-grid, .features { grid-template-columns: 1fr 1fr; }
	.contacts-grid { grid-template-columns: 1fr; }
	.contacts-photo { max-width: 520px; margin: 0 auto; width: 100%; }
}

@media (max-width: 767px) {
	body { font-size: 16px; }
	.container { padding: 0 18px; }
	.admin-bar .site-header { top: 0; }

	.site-header__inner { min-height: 70px; }
	.logo__mark { width: 48px; height: 44px; }
	.logo__name { font-size: 1.2rem; }
	.logo__sub { font-size: .82rem; }

	.nav-toggle { display: inline-flex; }
	.nav {
		position: absolute;
		left: 0; right: 0; top: 100%;
		flex-direction: column;
		align-items: stretch;
		gap: 16px;
		padding: 18px 18px 24px;
		background: var(--c-bg);
		box-shadow: 0 16px 30px rgba(30, 77, 43, .12);
		display: none;
	}
	.nav-open .nav { display: flex; }
	.nav__list { flex-direction: column; gap: 4px; }
	.nav__list a { padding: 12px 6px; font-size: 1.1rem; }
	.nav__list a::after { left: 6px; right: auto; width: 40px; }
	.nav .btn { justify-content: center; }

	.hero { padding: 50px 0 90px; text-align: center; }
	.hero__actions { justify-content: center; }
	.hero__media .note-bubble { left: 50%; bottom: -24px; transform: translateX(-50%) rotate(-6deg); font-size: .92rem; padding: 14px 18px; }

	.section { padding: 60px 0; }
	.residents-grid, .features { grid-template-columns: 1fr; }

	.page-hero { padding: 40px 0 20px; }
	.resident-row, .resident-row--reverse { grid-template-columns: 1fr; gap: 0; }
	.resident-row--reverse .resident-row__media { order: 0; }
	.resident-row__media { min-height: 0; }
	.resident-row__media .media { aspect-ratio: 16 / 11; border-radius: var(--radius) var(--radius) 0 0; }
	.resident-row__info { border-radius: 0 0 var(--radius) var(--radius); padding: 26px 22px; }
	.resident-row__desc { font-size: 1.08rem; }
	.trait .icon { width: 32px; height: 32px; }
	.trait { font-size: .9rem; }
	.wood-sign { font-size: .75rem; padding: 7px 11px; right: 14px; bottom: 14px; }
	.wood-sign--left { left: 14px; }

	.cta { padding: 10px 0 60px; }
	.cta__box { padding: 40px 18px 110px; }
	.cta__note, .cta__silhouette, .cta__fence { display: none; }
	.cta .btn { padding: 14px 24px; }

	.contact-cards { grid-template-columns: 1fr; }
	.contact-card { flex-direction: row; align-items: center; gap: 14px; }
	.contact-form { padding: 24px 20px; }

	.site-footer__inner { grid-template-columns: 1fr; text-align: center; }
	.site-footer__info { grid-column: auto; }
	.site-footer__slogan { justify-self: center; }
	.site-footer__grass--right { right: 20px; }

	.sprig { width: 70px; }
	.sprig--card { width: 46px; }
}

/* Главная — кнопки в центрированном герое (как в дизайне) */
.page-hero__actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 18px; margin: 26px 0 6px; }
.page-hero .hero__link { color: var(--c-text); }

/* ==========================================================
   Главная по макету: hero-карточка + «Наши жители» (3 карточки)
   ========================================================== */
.home-hero-wrap { padding: 14px 0 0; }
.home-hero {
	position: relative;
	overflow: hidden;
	border-radius: 28px;
	background: #F9E0AB;
	aspect-ratio: 1259 / 721;
	container-type: inline-size;
}
.home-hero__media { display: block; }
.home-hero__media img {
	position: absolute; inset: 0;
	width: 100%; height: 100%;
	object-fit: cover; object-position: right center;
}
.home-hero__text {
	position: absolute; z-index: 3;
	left: 4.7%; top: 11.2%;
	width: 50%;
}
.home-hero h1 {
	font-size: 5.55cqw;
	line-height: 1.1;
	letter-spacing: -.01em;
	color: #17382A;
	margin: 0 0 .32em;
}
.home-hero__sub {
	font-size: 2.3cqw;
	line-height: 1.32;
	color: #2B3F33;
	margin: 0 0 1.25em;
	max-width: 37cqw;
}
.home-hero__btn {
	font-size: 1.72cqw;
	padding: 1.45cqw 3.2cqw;
	gap: .7cqw;
	font-weight: 600;
}
.home-hero__btn .icon { width: 1.5cqw; height: 1.5cqw; }

/* вариант без готовой композиции (Гагаринский): фото справа + декор */
.home-hero--split .home-hero__hills { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 36%; z-index: 0; }
.home-hero__photo {
	position: absolute; z-index: 1;
	right: 7%; bottom: 6%;
	width: 42%; aspect-ratio: 6 / 5;
	border-radius: 26px; overflow: hidden;
	box-shadow: 0 14px 34px rgba(30, 77, 43, .18);
}
.home-hero__photo img { width: 100%; height: 100%; object-fit: cover; }
.home-hero__sprig { position: absolute; z-index: 2; width: 9%; }
.home-hero__sprig--l { left: -1.5%; bottom: 4%; transform: rotate(-12deg); }
.home-hero__sprig--r { right: -1.5%; top: 6%; transform: scaleX(-1) rotate(-10deg); }
.home-hero__note {
	position: absolute; z-index: 2; left: 7%; bottom: 6%;
	background: #FBF8EF; border-radius: 50% 46% 52% 44%;
	padding: 2.2cqw 2.6cqw; font-size: 1.6cqw; line-height: 1.25;
	transform: rotate(-12deg); color: #2B3F33; font-weight: 600;
}
.home-hero__sign.page-hero__sign { right: 4%; top: 6%; z-index: 3; }

/* Наши жители */
.home-residents { padding: 34px 0 20px; text-align: center; }
.home-residents__title { font-size: clamp(2rem, 4.2vw, 3.1rem); margin: 0 0 4px; color: #17382A; }
.home-residents .heart-divider { margin: 0 auto 22px; }
.home-cards {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 18px;
	text-align: left;
}
.home-card {
	display: flex; flex-direction: column;
	border-radius: 22px; overflow: hidden;
	background: #F0EDE2;
	color: inherit;
	box-shadow: 0 6px 18px rgba(30, 77, 43, .05);
	transition: transform .2s, box-shadow .2s;
}
.home-card:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(30, 77, 43, .12); color: inherit; }
.home-card__img { width: 100%; aspect-ratio: 393 / 370; object-fit: cover; }
.home-card__body { position: relative; display: block; padding: 18px 92px 24px 22px; min-height: 118px; }
.home-card__name { display: block; font-size: clamp(1.5rem, 2.6vw, 2.15rem); font-weight: 800; line-height: 1.1; color: #17382A; margin-bottom: 6px; }
.home-card__text { display: block; font-size: 1.22rem; line-height: 1.35; color: #2B3F33; }
.home-card .sprig.home-card__sprig { position: absolute; right: 20px; top: 14px; width: 54px; transform: rotate(22deg); }

.home-residents + .cta { padding-top: 26px; padding-bottom: 36px; }

@media (max-width: 760px) {
	.home-hero { aspect-ratio: auto; container-type: normal; border-radius: 24px; }
	.home-hero__text { position: relative; left: auto; top: auto; width: auto; padding: 30px 22px 6px; }
	.home-hero h1 { font-size: 2.05rem; }
	.home-hero__sub { font-size: 1.08rem; max-width: none; }
	.home-hero__btn { font-size: 1rem; padding: 13px 24px; gap: 8px; }
	.home-hero__btn .icon { width: 18px; height: 18px; }
	.home-hero__media img { position: static; width: 100%; height: auto; aspect-ratio: 671 / 712; display: block; }
	.home-hero--split .home-hero__photo { position: relative; right: auto; bottom: auto; width: auto; margin: 18px 22px 26px; }
	.home-hero--split .home-hero__sign, .home-hero--split .home-hero__note { display: none; }
	.home-hero__sprig { width: 60px; }
	.home-cards { grid-template-columns: 1fr; gap: 16px; }
	.home-card__body { min-height: 0; }
}
@media (min-width: 761px) and (max-width: 980px) {
	.home-cards { gap: 12px; }
	.home-card__body { padding: 14px 60px 18px 16px; }
	.home-card .sprig.home-card__sprig { width: 40px; right: 12px; }
	.home-card__text { font-size: 1rem; }
}
