/* Анималес (animales.ru) — тёплая «журнальная» тема: кремовый фон, серифные
   заголовки, одна колонка. Второй сайт (mascotas.ru) намеренно свёрстан иначе. */

:root {
	--bg: #fbf7f0;
	--surface: #ffffff;
	--fg: #2a2422;
	--muted: #7a6e66;
	--accent: #b4542a;
	--accent-soft: #f3e4da;
	--border: #e6ddd1;
	--content: 760px;
	--wide: 1080px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
	margin: 0;
	background: var(--bg);
	color: var(--fg);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	font-size: 17px;
	line-height: 1.7;
}

h1, h2, h3 {
	font-family: Georgia, "Times New Roman", serif;
	font-weight: 600;
	line-height: 1.25;
	letter-spacing: -0.01em;
}

h1 { font-size: clamp(1.9rem, 5vw, 2.7rem); margin: 0 0 16px; }
h2 { font-size: clamp(1.35rem, 3.4vw, 1.7rem); margin: 44px 0 14px; }
h3 { font-size: 1.15rem; margin: 30px 0 10px; }

p, ul, ol, table { margin: 0 0 16px; }
ul, ol { padding-left: 22px; }
li { margin-bottom: 8px; }

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

strong { font-weight: 600; }

.wrap { max-width: var(--wide); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: var(--content); margin: 0 auto; padding: 0 24px; }

/* Шапка */
.site-header {
	border-bottom: 1px solid var(--border);
	background: var(--bg);
}
.site-header .wrap {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	flex-wrap: wrap;
	padding-top: 18px;
	padding-bottom: 18px;
}
.logo {
	font-family: Georgia, "Times New Roman", serif;
	font-size: 1.35rem;
	font-weight: 600;
	color: var(--fg);
	letter-spacing: -0.01em;
}
.logo span { color: var(--accent); }
.site-nav {
	display: flex;
	gap: 22px;
	flex-wrap: wrap;
	font-size: 0.95rem;
}
.site-nav a { color: var(--muted); }
.site-nav a:hover { color: var(--accent); }

/* Главная: первый экран */
.hero { padding: 64px 0 48px; }
.hero .narrow { padding: 0; }
.hero-inner { max-width: 720px; }
.hero h1 { margin-bottom: 20px; }
.hero-lead {
	font-size: 1.15rem;
	color: var(--muted);
	margin-bottom: 0;
}

/* Разделы-плитки */
.tiles {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: 20px;
	margin: 0 0 56px;
	padding: 0;
	list-style: none;
}
.tile {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: 14px;
	padding: 26px 24px;
	margin: 0;
}
.tile h2 { margin: 0 0 10px; font-size: 1.25rem; }
.tile h2 a { color: var(--fg); }
.tile h2 a:hover { color: var(--accent); text-decoration: none; }
.tile p { margin: 0; color: var(--muted); font-size: 0.97rem; }
.tile-tag {
	display: inline-block;
	font-size: 0.78rem;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--accent);
	background: var(--accent-soft);
	border-radius: 999px;
	padding: 3px 10px;
	margin-bottom: 12px;
}

/* Список статей */
.posts { list-style: none; padding: 0; margin: 0 0 56px; }
.posts li {
	border-top: 1px solid var(--border);
	padding: 22px 0;
	margin: 0;
}
.posts li:last-child { border-bottom: 1px solid var(--border); }
.posts a {
	font-family: Georgia, "Times New Roman", serif;
	font-size: 1.25rem;
	color: var(--fg);
	display: block;
	margin-bottom: 6px;
}
.posts a:hover { color: var(--accent); text-decoration: none; }
.posts p { margin: 0; color: var(--muted); font-size: 0.97rem; }

/* Текстовые блоки главной */
.section { padding: 8px 0 0; }
.section-intro { max-width: var(--content); }

/* Статья */
.article { padding: 40px 0 24px; }
.breadcrumbs {
	font-size: 0.9rem;
	color: var(--muted);
	margin-bottom: 24px;
}
.breadcrumbs a { color: var(--muted); }
.article-lead {
	font-size: 1.1rem;
	color: var(--muted);
	margin-bottom: 32px;
}
.article-body > *:first-child { margin-top: 0; }

.note {
	background: var(--surface);
	border: 1px solid var(--border);
	border-left: 3px solid var(--accent);
	border-radius: 0 12px 12px 0;
	padding: 18px 22px;
	margin: 28px 0;
}
.note p:last-child { margin-bottom: 0; }
.note strong { display: block; margin-bottom: 6px; }

.table-scroll { overflow-x: auto; margin: 0 0 20px; }
table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.95rem;
	background: var(--surface);
}
th, td {
	border: 1px solid var(--border);
	padding: 10px 12px;
	text-align: left;
	vertical-align: top;
}
th { background: var(--accent-soft); font-weight: 600; }
caption {
	caption-side: bottom;
	color: var(--muted);
	font-size: 0.87rem;
	padding-top: 8px;
	text-align: left;
}

.names {
	columns: 3 160px;
	column-gap: 24px;
	list-style: none;
	padding: 0;
	font-size: 0.97rem;
}
.names li { margin-bottom: 4px; break-inside: avoid; }

.faq h3 { margin-bottom: 6px; }
.faq p { color: var(--muted); }

.related {
	border-top: 1px solid var(--border);
	margin-top: 48px;
	padding-top: 28px;
}
.related h2 { margin-top: 0; font-size: 1.2rem; }
.related ul { list-style: none; padding: 0; }

/* Подвал */
.site-footer {
	border-top: 1px solid var(--border);
	margin-top: 64px;
	padding: 36px 0 48px;
	color: var(--muted);
	font-size: 0.9rem;
}
.site-footer .wrap { display: grid; gap: 18px; }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }
.disclaimer { max-width: 640px; }

@media (max-width: 640px) {
	body { font-size: 16px; }
	.hero { padding: 40px 0 32px; }
	.names { columns: 2 130px; }
}
