/*
Theme Name: Дом Пушистиков — Мытищи
Theme URI: https://dompushistikov.ru/
Author: Дом Пушистиков
Description: Тема зоопарка «Дом Пушистиков», филиал ТРЦ «Красный кит» (Мытищи). SEO-разметка для Яндекса, адаптивная вёрстка.
Version: 1.3.4
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-mytishchi
*/

/* Шрифт 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; }
}

/* ==========================================================
   v1.1.0: правила посещения, e-mail, согласие, ссылки в подвале
   ========================================================== */
/* Секция правил на главной */
.home-rules { padding: 40px 0 10px; text-align: center; }
.home-rules .heart-divider { margin: 0 auto 14px; }
.home-rules__intro { max-width: 640px; margin: 0 auto 26px; color: var(--c-text-soft); font-size: 1.1rem; }
.home-rules__grid {
	list-style: none; margin: 0 0 30px; padding: 0;
	display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
	text-align: left;
}
.home-rule { padding: 24px 24px 26px; }
.home-rule h3 { font-size: 1.2rem; margin-bottom: .35em; }
.home-rule p { font-size: .98rem; line-height: 1.5; }
.home-rules + .cta { padding-top: 26px; padding-bottom: 36px; }

/* Страница правил */
.rules-list {
	list-style: none; margin: 0 auto; padding: 0; max-width: 1000px;
	display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px;
	position: relative; z-index: 1;
}
.rule-card {
	display: flex; gap: 18px; align-items: flex-start;
	background: #fff; border-radius: var(--radius); padding: 24px;
	box-shadow: var(--shadow);
}
.rule-card__icon {
	flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center;
	width: 58px; height: 58px; border-radius: 18px;
	background: var(--c-gold-soft); color: var(--c-coral);
}
.rule-card__icon .icon { width: 30px; height: 30px; }
.rule-card__body { display: block; }
.rule-card__num { display: block; font-size: .85rem; font-weight: 800; letter-spacing: .08em; color: var(--c-leaf); }
.rule-card__title { font-size: 1.22rem; margin: 2px 0 6px; }
.rule-card__text { margin: 0; color: var(--c-text-soft); line-height: 1.5; }
.rules-note {
	max-width: 1000px; margin: 30px auto 0; padding: 24px 28px;
	background: var(--c-card); border-radius: var(--radius); text-align: center;
}
.rules-note p { margin: 0; }
.rules-note a { font-weight: 800; }
.rules-note__meta { margin-top: 6px !important; font-size: .92rem; color: var(--c-text-soft); }
.rules-extra { margin-top: 30px; }

/* Контакты: 4 карточки 2×2, длинный e-mail переносится */
.contact-cards { grid-template-columns: repeat(2, 1fr); }
.contact-card__value--email { word-break: break-all; }
.form-check { display: flex; gap: 10px; align-items: flex-start; margin: 0 0 20px; font-size: .9rem; line-height: 1.45; color: var(--c-text-soft); cursor: pointer; }
.form-check input { flex-shrink: 0; width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--c-coral); cursor: pointer; }
.form-check a { font-weight: 700; text-decoration: underline; }

/* Обычная страница (политика) */
.entry-content h2 { font-size: 1.45rem; margin: 1.6em 0 .5em; }
.entry-content ul { padding-left: 1.3em; margin: 0 0 1em; }
.entry-content li { margin-bottom: .35em; }

/* Подвал */
.site-footer__links { margin-top: 8px !important; font-size: .88rem; display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 18px; }
.site-footer__links a { color: var(--c-gold); }
.site-footer__links a:hover { color: #fff; }

@media (max-width: 900px) {
	.home-rules__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 767px) {
	.home-rules__grid, .rules-list { grid-template-columns: 1fr; gap: 14px; }
	.rule-card { padding: 20px 18px; gap: 14px; }
	.rule-card__icon { width: 50px; height: 50px; }
	.rules-note { padding: 20px 18px; }
	.contact-cards { grid-template-columns: 1fr; }
	.site-footer { padding-bottom: 40px; }
}

/* ==========================================================
   v1.2.0: цены, блок стоимости на главной, форма заявки
   ========================================================== */
.price-grid {
	list-style: none; margin: 0 auto; padding: 0; max-width: 1100px;
	display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
	position: relative; z-index: 1;
}
.price-card {
	display: flex; flex-direction: column; align-items: center; text-align: center;
	background: #fff; border-radius: var(--radius); padding: 28px 20px 26px;
	box-shadow: var(--shadow); border-top: 6px solid var(--c-gold);
}
.price-card--adult { border-top-color: var(--c-coral); }
.price-card--baby { border-top-color: var(--c-leaf); }
.price-card--feed { border-top-color: var(--c-wood); }
.price-card__icon {
	display: inline-flex; align-items: center; justify-content: center;
	width: 60px; height: 60px; border-radius: 18px; margin-bottom: 14px;
	background: var(--c-gold-soft); color: var(--c-coral);
}
.price-card__icon .icon { width: 30px; height: 30px; }
.price-card__label { font-size: 1.12rem; line-height: 1.3; margin: 0 0 10px; }
.price-card__value { margin: auto 0 0; font-size: 2.1rem; font-weight: 900; line-height: 1.1; color: var(--c-coral); white-space: nowrap; }
.price-card__note { margin: 6px 0 0; font-size: .9rem; color: var(--c-text-soft); }

.price-info {
	max-width: 1100px; margin: 30px auto 0;
	display: grid; grid-template-columns: 1fr 1.4fr; gap: 20px;
}
.price-info__box {
	display: flex; gap: 18px; align-items: flex-start;
	background: var(--c-card); border-radius: var(--radius); padding: 26px;
}
.price-info__box h2 { font-size: 1.35rem; margin: 2px 0 8px; }
.price-info__box p { margin: 0; color: var(--c-text-soft); line-height: 1.5; }
.price-info__icon {
	flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center;
	width: 56px; height: 56px; border-radius: 18px; background: #fff; color: var(--c-text);
}
.price-info__icon .icon { width: 30px; height: 30px; }
.price-info__icon--coral { color: var(--c-coral); }
.discounts__list { list-style: none; margin: 0 0 12px; padding: 0; }
.discounts__list li { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 10px; font-weight: 700; line-height: 1.45; }
.discounts__list .icon { flex-shrink: 0; width: 22px; height: 22px; color: var(--c-coral); margin-top: 1px; }
.discounts__hint { font-size: .92rem; }
.price-cta { margin: 34px auto 0; text-align: center; }
.price-cta__meta { margin: 12px 0 0; color: var(--c-text-soft); font-size: .95rem; }
.price-cta__meta a { font-weight: 800; }

/* Блок стоимости на главной */
.home-price { padding: 40px 0 10px; text-align: center; }
.home-price .heart-divider { margin: 0 auto 14px; }
.price-grid--home { margin-bottom: 30px; text-align: center; }
.price-grid--home .price-card { padding: 24px 18px 22px; }
.home-rules + .home-price { padding-top: 20px; }
.home-price + .cta { padding-top: 26px; padding-bottom: 36px; }

/* Форма заявки */
.form-row--half { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.form-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.contact-form { position: relative; }
.form-notice { margin: 0 0 16px; padding: 14px 18px; border-radius: 14px; font-weight: 700; line-height: 1.4; }
.form-notice--ok { background: #E4F0DC; color: var(--c-text); border-left: 5px solid var(--c-leaf); }
.form-notice--err { background: #FCE3DC; color: #8A2E18; border-left: 5px solid var(--c-coral); }

@media (max-width: 900px) {
	.price-grid { grid-template-columns: 1fr 1fr; }
	.price-info { grid-template-columns: 1fr; }
}
@media (max-width: 767px) {
	.price-grid { gap: 14px; }
	.price-card { padding: 22px 14px 20px; }
	.price-card__value { font-size: 1.7rem; }
	.price-card__label { font-size: 1rem; }
	.price-info__box { padding: 20px 18px; gap: 14px; }
	.price-info__icon { width: 48px; height: 48px; }
	.form-row--half { grid-template-columns: 1fr; }
}
@media (max-width: 400px) {
	.price-grid { grid-template-columns: 1fr; }
}

/* ==========================================================
   v1.3.0 — страницы жителей, фотоальбом, новости
   ========================================================== */
a.resident-row__media { display: block; color: inherit; transition: transform .25s; }
a.resident-row__media:hover { transform: translateY(-4px); }
.resident-row__btn { position: relative; z-index: 1; align-self: flex-start; margin-top: 24px; }

.animal-back { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--c-text-soft); margin-bottom: 18px; }
.animal-back:hover { color: var(--c-coral); }

.animal-hero__media .media { aspect-ratio: 15 / 7; border-radius: 28px; }
.animal-hero__media .wood-sign { font-size: 1.05rem; padding: 12px 20px; right: 34px; bottom: 30px; }
.animal-intro {
	position: relative;
	max-width: 900px;
	margin: -60px auto 0;
	background: var(--c-card);
	border-radius: var(--radius);
	padding: 40px 44px 30px;
	box-shadow: var(--shadow);
	overflow: hidden;
	z-index: 2;
}
.animal-intro h1 { position: relative; z-index: 1; padding-right: 70px; margin-bottom: .25em; }
.animal-intro__lead { position: relative; z-index: 1; font-size: 1.2rem; color: var(--c-text-soft); margin-bottom: 26px; }
.animal-intro__traits { max-width: 520px; margin-bottom: 28px; }
.animal-intro__text { position: relative; z-index: 1; color: var(--c-text); }
.animal-intro__text p:last-child { margin-bottom: 0; }

.animal-facts__grid {
	list-style: none;
	margin: 34px 0 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 20px;
}
.animal-fact { display: flex; flex-direction: column; }
.animal-fact p { font-size: 1.02rem; line-height: 1.5; color: var(--c-text); }

.gallery-grid {
	list-style: none;
	margin: 34px 0 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 16px;
}
.gallery-grid__link { display: block; border-radius: 16px; overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 1 / 1; background: var(--c-card); }
.gallery-grid__img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.gallery-grid__link:hover .gallery-grid__img { transform: scale(1.05); }

.gallery-empty {
	margin: 34px auto 0;
	max-width: 560px;
	text-align: center;
	background: #fff;
	border: 2px dashed var(--c-leaf);
	border-radius: var(--radius);
	padding: 34px 24px 24px;
}
.gallery-empty p { font-size: 1.2rem; font-weight: 700; margin: 0; }

.animal-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 22px; margin-top: 44px; }
.animal-back--bottom { margin: 0; }
.animal-gallery { padding-bottom: 80px; }

/* Лайтбокс */
.lightbox {
	position: fixed;
	inset: 0;
	z-index: 1000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 60px 70px;
	background: rgba(20, 40, 26, .92);
}
.lightbox[hidden] { display: none; }
.lightbox-open { overflow: hidden; }
.lightbox__figure { margin: 0; max-width: 100%; max-height: 100%; text-align: center; }
.lightbox__img { max-width: 100%; max-height: calc(100vh - 150px); margin: 0 auto; border-radius: 16px; box-shadow: 0 20px 50px rgba(0,0,0,.4); }
.lightbox__caption { color: #fff; margin-top: 12px; font-weight: 600; }
.lightbox__close, .lightbox__nav {
	position: absolute;
	border: 0;
	background: rgba(255,255,255,.14);
	color: #fff;
	cursor: pointer;
	border-radius: 50%;
	width: 52px; height: 52px;
	font-size: 2.2rem;
	line-height: 1;
	display: flex; align-items: center; justify-content: center;
	transition: background .2s;
}
.lightbox__close:hover, .lightbox__nav:hover { background: var(--c-coral); }
.lightbox__close { top: 16px; right: 16px; }
.lightbox__nav--prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lightbox__nav--next { right: 12px; top: 50%; transform: translateY(-50%); }
.lightbox--single .lightbox__nav { display: none; }

/* Новости: сетка карточек */
.news-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 28px;
	margin-top: 10px;
}
.news-related .news-grid { margin-top: 34px; }
.news-card { height: 100%; }
.news-card__link {
	display: flex;
	flex-direction: column;
	height: 100%;
	background: #fff;
	border-radius: var(--radius);
	overflow: hidden;
	color: var(--c-text);
	box-shadow: var(--shadow);
	transition: transform .25s, box-shadow .25s;
}
.news-card__link:hover { color: var(--c-text); transform: translateY(-4px); box-shadow: 0 16px 34px rgba(30, 77, 43, .14); }
.news-card__media { display: block; aspect-ratio: 16 / 10; background: var(--c-card); overflow: hidden; }
.news-card__img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.news-card__link:hover .news-card__img { transform: scale(1.04); }
.news-card__placeholder { display: flex; align-items: center; justify-content: center; height: 100%; color: var(--c-leaf); }
.news-card__placeholder .icon { width: 64px; height: 64px; }
.news-card__body { display: flex; flex-direction: column; gap: 10px; padding: 22px 24px 24px; flex: 1; }
.news-card__date { display: inline-flex; align-items: center; gap: 8px; font-size: .9rem; font-weight: 700; color: var(--c-text-soft); }
.news-card__date .icon { width: 18px; height: 18px; color: var(--c-gold); }
.news-card__title { font-size: 1.3rem; font-weight: 800; line-height: 1.25; }
.news-card__excerpt { color: var(--c-text-soft); font-size: .98rem; line-height: 1.5; }
.news-card__more { margin-top: auto; padding-top: 6px; display: inline-flex; align-items: center; gap: 8px; color: var(--c-coral); font-weight: 700; }
.news-card__more .icon { width: 18px; height: 18px; transition: transform .2s; }
.news-card__link:hover .news-card__more .icon { transform: translateX(4px); }

.news-pagination { display: flex; justify-content: space-between; gap: 16px; margin-top: 40px; }
.news-pagination a {
	display: inline-flex;
	padding: 12px 26px;
	border-radius: 50px;
	background: var(--c-card);
	color: var(--c-text);
	font-weight: 700;
	transition: background .2s, color .2s;
}
.news-pagination a:hover { background: var(--c-coral); color: #fff; }

/* Отдельная статья */
.post-article__head { padding-bottom: 30px; }
.post-article__head h1 { font-size: clamp(1.9rem, 4vw, 3rem); }
.post-article__meta { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; margin: 0; }
.post-article__meta .icon { color: var(--c-gold); width: 20px; height: 20px; }
.post-article__container { max-width: 980px; }
.post-article__cover { margin: 0 0 40px; border-radius: 28px; overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 16 / 8; background: var(--c-card); }
.post-article__cover img { width: 100%; height: 100%; object-fit: cover; }
.post-content { max-width: 760px; margin: 0 auto; font-size: 1.1rem; line-height: 1.75; }
.post-content h2 { font-size: clamp(1.45rem, 2.6vw, 1.85rem); margin: 1.7em 0 .6em; }
.post-content h3 { font-size: clamp(1.2rem, 2.1vw, 1.45rem); margin: 1.5em 0 .5em; }
.post-content p { margin: 0 0 1.1em; }
.post-content ul, .post-content ol { padding-left: 1.4em; margin: 0 0 1.2em; }
.post-content li { margin-bottom: .45em; }
.post-content ul li::marker { color: var(--c-coral); }
.post-content img { border-radius: 18px; margin: 1.4em auto; height: auto; }
.post-content figure { margin: 1.6em 0; }
.post-content figcaption { text-align: center; font-size: .92rem; color: var(--c-text-soft); margin-top: 8px; }
.post-content blockquote { margin: 1.5em 0; padding: 18px 24px; background: var(--c-gold-soft); border-radius: 16px; border-left: 6px solid var(--c-gold); }
.post-content a { text-decoration: underline; text-underline-offset: 3px; }
.post-article__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; max-width: 760px; margin: 40px auto 0; }
.btn--ghost { background: transparent; color: var(--c-coral); box-shadow: inset 0 0 0 2px var(--c-coral); }
.btn--ghost:hover, .btn--ghost:focus-visible { background: var(--c-coral); color: #fff; box-shadow: 0 12px 24px rgba(232, 105, 74, .3); }

@media (max-width: 900px) {
	.news-grid { grid-template-columns: repeat(2, 1fr); }
	.animal-hero__media .media { aspect-ratio: 16 / 9; }
}
@media (max-width: 767px) {
	.animal-hero__media .media { aspect-ratio: 4 / 3; border-radius: var(--radius); }
	.animal-hero__media .wood-sign { font-size: .78rem; padding: 8px 12px; right: 14px; bottom: 44px; }
	.animal-intro { margin-top: -30px; padding: 28px 22px 24px; }
	.animal-intro h1 { font-size: 2rem; padding-right: 50px; }
	.animal-intro__lead { font-size: 1.05rem; }
	.animal-facts__grid { grid-template-columns: 1fr; gap: 14px; }
	.gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
	.animal-actions { flex-direction: column; gap: 16px; }
	.lightbox { padding: 60px 10px; }
	.lightbox__nav { top: auto; bottom: 14px; transform: none; }
	.lightbox__nav--prev { left: calc(50% - 64px); }
	.lightbox__nav--next { right: calc(50% - 64px); }
	.news-grid { grid-template-columns: 1fr; gap: 20px; }
	.post-article__cover { aspect-ratio: 4 / 3; border-radius: var(--radius); margin-bottom: 28px; }
	.post-content { font-size: 1.03rem; }
	.news-pagination a { padding: 10px 18px; }
}

/* v1.3.0 — правки по скриншотам */
.animal-facts, .animal-gallery, .news-related { text-align: center; }
.animal-facts__grid { display: flex; flex-wrap: wrap; justify-content: center; text-align: left; }
.animal-fact { flex: 0 1 260px; }
.gallery-grid { text-align: left; }
.news-related .news-grid { text-align: left; }
.animal-hero__media .wood-sign { top: 26px; bottom: auto; }

.logo__name { white-space: nowrap; }
.nav { gap: 22px; }
.nav__list { gap: clamp(16px, 2.1vw, 32px); }
.nav__list a { white-space: nowrap; }
@media (min-width: 768px) and (max-width: 1180px) {
	.nav__list { flex-wrap: wrap; justify-content: flex-end; row-gap: 0; }
	.nav__list a { font-size: .95rem; }
}
@media (min-width: 768px) and (max-width: 1024px) {
	.nav > .btn { display: none; }
	.logo__name { font-size: 1.3rem; }
	.logo__mark { width: 50px; height: 46px; }
}
@media (max-width: 767px) {
	.animal-hero__media .wood-sign { top: 14px; bottom: auto; }
	.animal-fact { flex-basis: 100%; }
}
.animal-facts__grid { max-width: 880px; margin-left: auto; margin-right: auto; }

/* ---------- v1.3.1: хаб «Попугаи» ---------- */
.crumbs { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 8px; font-size: .95rem; font-weight: 600; color: var(--c-text-soft); margin-bottom: 18px; position: relative; z-index: 1; }
.crumbs a { color: var(--c-text-soft); }
.crumbs a:hover { color: var(--c-coral); }
.crumbs [aria-current] { color: var(--c-text); }
.crumbs--left { justify-content: flex-start; }
.parrot-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; list-style: none; margin: 0; padding: 0; }
.parrot-card { display: flex; }
.parrot-card__link { display: flex; flex-direction: column; width: 100%; background: var(--c-card); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); color: var(--c-text); transition: transform .2s ease, box-shadow .2s ease; }
.parrot-card__link:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(30, 77, 43, .12); color: var(--c-text); }
.parrot-card__img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: center 20%; display: block; }
.parrot-card__body { display: flex; flex-direction: column; flex: 1; padding: 22px 22px 24px; text-align: center; }
.parrot-card__name { font-size: 1.45rem; font-weight: 800; line-height: 1.2; margin-bottom: 6px; }
.parrot-card__desc { color: var(--c-text-soft); font-size: 1.02rem; line-height: 1.4; margin-bottom: 18px; min-height: 2.8em; }
.parrot-card__traits { margin-bottom: 18px; }
.parrot-card__traits .trait { font-size: .9rem; }
.parrot-card__traits .trait .icon { width: 32px; height: 32px; }
.parrot-card__more { margin-top: auto; display: inline-flex; align-items: center; justify-content: center; gap: 6px; font-weight: 700; color: var(--c-coral); }
.parrot-card__more .icon { width: 18px; height: 18px; }
.photo-credits { margin: 36px auto 0; max-width: 880px; font-size: .78rem; line-height: 1.5; color: var(--c-text-soft); text-align: center; }
.photo-credits a { color: inherit; text-decoration: underline; }
.photo-credits--hero { margin: 8px 0 0; text-align: right; max-width: none; }
@media (max-width: 1024px) {
	.parrot-grid { grid-template-columns: repeat(2, 1fr); gap: 22px; }
}
@media (max-width: 640px) {
	.parrot-grid { grid-template-columns: 1fr; gap: 18px; }
	.crumbs { font-size: .85rem; }
}

/* v1.3.2 — попугаи без обрезки: фото целиком + размытый фон из того же кадра */
.parrot-card__frame { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; background: #F3EEE2; }
.parrot-card__frame::before { content: ""; position: absolute; inset: -24px; background: var(--dp-bg) center / cover no-repeat; filter: blur(22px) saturate(1.1); opacity: .55; }
.parrot-card__frame .parrot-card__img { position: relative; z-index: 1; width: 100%; height: 100%; aspect-ratio: auto; object-fit: contain; object-position: center; }
.animal-hero--parrot .animal-hero__media .media { background: #F3EEE2; aspect-ratio: 16 / 9; }
.animal-hero--parrot .animal-hero__media .media::before { content: ""; position: absolute; inset: -30px; background: var(--dp-bg) center / cover no-repeat; filter: blur(28px) saturate(1.1); opacity: .55; }
.animal-hero--parrot .animal-hero__media .media img { position: relative; z-index: 1; object-fit: contain; object-position: center; }
.animal-hero--parrot .animal-hero__media .wood-sign { z-index: 2; }
@media (max-width: 767px) {
	.animal-hero--parrot .animal-hero__media .media { aspect-ratio: 1 / 1; }
}
.animal-hero--parrot .animal-hero__media .media img { box-sizing: border-box; padding-bottom: 60px; }
@media (max-width: 767px) {
	.animal-hero--parrot .animal-hero__media .media img { padding-bottom: 30px; }
}
