:root {
	--bg: #f6f8f9;
	--surface: #ffffff;
	--ink: #102a43;
	--muted: #5f6f81;
	--line: #d9e2ec;
	--accent: #0d5c63;
	--accent-2: #1b9aaa;
	--accent-warm: #f4a261;
	--danger: #ef476f;
	--topbar-bg: #0b3d44;
	--topbar-fg: #e0f7fa;
	--radius: 14px;
	--radius-sm: 10px;
	--shadow: 0 12px 40px rgba(16, 42, 67, 0.08);
	--shadow-sm: 0 4px 18px rgba(16, 42, 67, 0.06);
	--wrap: min(1180px, 92vw);
	--font-sans: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--font-serif: "PT Serif", Georgia, serif;
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	font-family: var(--font-sans);
	color: var(--ink);
	background: var(--bg);
	line-height: 1.65;
	font-size: 1.0625rem;
}

img {
	max-width: 100%;
	height: auto;
	display: block;
}

a {
	color: var(--accent-2);
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}

a:hover {
	color: var(--accent);
}

.site-wrap {
	width: var(--wrap);
	margin-left: auto;
	margin-right: auto;
	padding-left: 1.25rem;
	padding-right: 1.25rem;
}

/* Верхний блок ссылок — сохранена структура «быстрые ссылки + телефон». */
.site-top-bar {
	background: linear-gradient(90deg, #083137 0%, var(--topbar-bg) 40%, #0f5660 100%);
	color: var(--topbar-fg);
	font-size: 0.9375rem;
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.site-top-bar__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem 1.5rem;
	padding-top: 0.55rem;
	padding-bottom: 0.55rem;
}

.site-top-links {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.35rem 1.25rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.site-top-links a {
	color: var(--topbar-fg);
	text-decoration: none;
	font-weight: 500;
	letter-spacing: 0.01em;
	opacity: 0.95;
}

.site-top-links a:hover {
	opacity: 1;
	text-decoration: underline;
	text-decoration-thickness: 1px;
}

.site-top-bar__phone {
	margin: 0;
	font-weight: 600;
}

.site-top-bar__phone-label {
	font-weight: 500;
	opacity: 0.75;
	margin-right: 0.35rem;
}

.site-top-bar__phone a {
	color: #fff;
	text-decoration: none;
}

.site-top-bar__phone a:hover {
	text-decoration: underline;
}

/* Шапка */
.site-header {
	background: var(--surface);
	box-shadow: var(--shadow-sm);
	position: sticky;
	top: 0;
	z-index: 50;
}

.site-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1.5rem;
	padding-top: 1rem;
	padding-bottom: 1rem;
}

.site-branding {
	min-width: 0;
}

.site-title {
	font-size: 1.35rem;
	font-weight: 700;
	color: var(--ink);
	text-decoration: none;
	letter-spacing: -0.02em;
}

.site-title:hover {
	color: var(--accent);
}

.site-tagline {
	margin: 0.15rem 0 0;
	font-size: 0.9rem;
	color: var(--muted);
}

.custom-logo-link {
	display: inline-flex;
	align-items: center;
}

.custom-logo {
	max-height: 56px;
	width: auto;
}

/* Навигация */
.nav-toggle {
	display: none;
	flex-direction: column;
	justify-content: center;
	gap: 5px;
	width: 44px;
	height: 44px;
	border: 1px solid var(--line);
	border-radius: var(--radius-sm);
	background: var(--surface);
	cursor: pointer;
}

.nav-toggle__bar {
	display: block;
	height: 2px;
	width: 22px;
	margin: 0 auto;
	background: var(--ink);
	border-radius: 2px;
}

.site-nav .site-primary-menu {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.25rem 1.25rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.site-primary-menu a {
	color: var(--ink);
	text-decoration: none;
	font-weight: 600;
	font-size: 0.98rem;
}

.site-primary-menu a:hover {
	color: var(--accent-2);
}

.site-primary-menu .current-menu-item > a {
	color: var(--accent);
}

@media (max-width: 900px) {
	.nav-toggle {
		display: inline-flex;
	}

	.site-nav {
		position: absolute;
		left: 0;
		right: 0;
		top: 100%;
		background: var(--surface);
		border-top: 1px solid var(--line);
		box-shadow: var(--shadow);
		max-height: 0;
		overflow: hidden;
		opacity: 0;
		pointer-events: none;
		transition: max-height 0.35s ease, opacity 0.25s ease;
	}

	.site-header {
		position: relative;
	}

	.site-header.nav-open .site-nav {
		max-height: 70vh;
		overflow: auto;
		opacity: 1;
		pointer-events: auto;
	}

	.site-nav .site-primary-menu {
		flex-direction: column;
		align-items: stretch;
		padding: 1rem 1.25rem 1.25rem;
		gap: 0;
	}

	.site-primary-menu li {
		border-bottom: 1px solid var(--line);
	}

	.site-primary-menu a {
		display: block;
		padding: 0.85rem 0;
	}
}

/* Hero */
.hero {
	background: radial-gradient(1200px 500px at 10% -10%, rgba(27, 154, 170, 0.35), transparent 55%),
		radial-gradient(900px 400px at 90% 0%, rgba(244, 162, 97, 0.25), transparent 50%),
		linear-gradient(135deg, #0d3b42 0%, #0d5c63 45%, #14746f 100%);
	color: #f0fafb;
	padding: clamp(2.5rem, 6vw, 4.5rem) 0;
}

.hero__inner {
	display: grid;
	grid-template-columns: 1.1fr 0.9fr;
	gap: clamp(1.5rem, 4vw, 3rem);
	align-items: center;
}

@media (max-width: 960px) {
	.hero__inner {
		grid-template-columns: 1fr;
	}
}

.eyebrow {
	text-transform: uppercase;
	letter-spacing: 0.12em;
	font-size: 0.72rem;
	font-weight: 700;
	margin: 0 0 0.75rem;
	opacity: 0.85;
}

.hero__title {
	font-family: var(--font-serif);
	font-size: clamp(2rem, 4.5vw, 2.85rem);
	line-height: 1.15;
	margin: 0 0 1rem;
}

.hero__lead {
	margin: 0 0 1.5rem;
	font-size: 1.1rem;
	max-width: 44ch;
	opacity: 0.95;
}

.hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
}

.hero__panel {
	background: rgba(255, 255, 255, 0.08);
	border: 1px solid rgba(255, 255, 255, 0.18);
	border-radius: var(--radius);
	padding: 1.5rem;
	backdrop-filter: blur(6px);
}

.hero-stats {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 1rem;
}

.hero-stats li {
	display: grid;
	gap: 0.2rem;
	padding-bottom: 1rem;
	border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.hero-stats li:last-child {
	border-bottom: 0;
	padding-bottom: 0;
}

.hero-stats strong {
	font-size: 1.05rem;
}

.hero-stats span {
	font-size: 0.92rem;
	opacity: 0.85;
}

/* Кнопки */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	padding: 0.75rem 1.35rem;
	border-radius: 999px;
	background: var(--accent-warm);
	color: #1a1206;
	font-weight: 700;
	text-decoration: none;
	border: 1px solid transparent;
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn:hover {
	transform: translateY(-1px);
	box-shadow: 0 10px 24px rgba(244, 162, 97, 0.35);
	color: #1a1206;
}

.btn--ghost {
	background: transparent;
	border-color: rgba(255, 255, 255, 0.55);
	color: #fff;
}

.btn--ghost:hover {
	background: rgba(255, 255, 255, 0.1);
	box-shadow: none;
	color: #fff;
}

.btn--light.btn--ghost {
	border-color: var(--line);
	color: var(--ink);
}

.btn--light.btn--ghost:hover {
	background: var(--surface);
	color: var(--accent);
}

/* Секции */
.section {
	padding: clamp(2.5rem, 5vw, 4rem) 0;
}

.section--muted {
	background: linear-gradient(180deg, #eef2f4 0%, var(--bg) 100%);
}

.section__head {
	max-width: 640px;
	margin-bottom: 2rem;
}

.section__title {
	font-family: var(--font-serif);
	font-size: clamp(1.6rem, 3vw, 2rem);
	margin: 0 0 0.5rem;
}

.section__sub {
	margin: 0;
	color: var(--muted);
}

.split {
	display: flex;
	justify-content: space-between;
	align-items: flex-end;
	gap: 1rem;
	flex-wrap: wrap;
	margin-bottom: 1.5rem;
}

/* Плитки каталога */
.catalog-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 1rem;
}

.catalog-tile {
	display: grid;
	gap: 0.35rem;
	padding: 1.35rem;
	border-radius: var(--radius);
	background: var(--surface);
	box-shadow: var(--shadow-sm);
	text-decoration: none;
	color: var(--ink);
	border: 1px solid var(--line);
	transition: transform 0.18s ease, box-shadow 0.18s ease;
	position: relative;
	overflow: hidden;
}

.catalog-tile::before {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(145deg, color-mix(in srgb, var(--tile-accent) 18%, white), transparent 55%);
	opacity: 1;
	pointer-events: none;
}

.catalog-tile:hover {
	transform: translateY(-3px);
	box-shadow: var(--shadow);
	color: var(--ink);
}

.catalog-tile__title {
	position: relative;
	font-weight: 700;
	font-size: 1.08rem;
}

.catalog-tile__sub {
	position: relative;
	font-size: 0.9rem;
	color: var(--muted);
}

/* Карточки постов */
.content-area {
	padding: 2rem 1.25rem 3.5rem;
}

.post-list {
	display: grid;
	gap: 1.25rem;
}

.post-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: 1.25rem;
}

.card {
	background: var(--surface);
	border-radius: var(--radius);
	box-shadow: var(--shadow-sm);
	border: 1px solid var(--line);
	overflow: hidden;
	display: grid;
	grid-template-rows: auto 1fr;
}

.card--post {
	grid-template-columns: minmax(0, 260px) 1fr;
}

@media (max-width: 720px) {
	.card--post {
		grid-template-columns: 1fr;
	}
}

.card__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.card__body {
	padding: 1.25rem 1.35rem;
}

.card__title {
	margin: 0 0 0.5rem;
	font-size: 1.25rem;
}

.card__title a {
	color: inherit;
	text-decoration: none;
}

.card__title a:hover {
	color: var(--accent-2);
}

.card__excerpt {
	color: var(--muted);
	font-size: 0.98rem;
	margin-bottom: 1rem;
}

.card--compact {
	grid-template-rows: auto;
}

.card__thumb--sm {
	max-height: 180px;
	overflow: hidden;
}

.card__meta {
	display: block;
	font-size: 0.82rem;
	color: var(--muted);
	margin-bottom: 0.35rem;
}

.text-link {
	font-weight: 600;
	text-decoration: none;
	color: var(--accent-2);
}

.text-link:hover {
	text-decoration: underline;
	color: var(--accent);
}

.muted {
	color: var(--muted);
}

.pagination {
	margin-top: 2rem;
	display: flex;
	justify-content: center;
	gap: 0.5rem;
}

.pagination a,
.pagination span {
	padding: 0.4rem 0.75rem;
	border-radius: 8px;
	border: 1px solid var(--line);
	background: var(--surface);
	text-decoration: none;
	color: var(--ink);
}

.pagination .current {
	background: var(--accent);
	color: #fff;
	border-color: var(--accent);
}

/* Проза страниц */
.prose .page-title {
	font-family: var(--font-serif);
	font-size: clamp(1.75rem, 3vw, 2.25rem);
	margin: 0 0 1rem;
}

.prose .entry-content > * + * {
	margin-top: 1rem;
}

.prose .entry-content h2,
.prose .entry-content h3 {
	font-family: var(--font-serif);
	margin-top: 1.75rem;
}

.featured-image {
	margin: 0 0 1.5rem;
	border-radius: var(--radius);
	overflow: hidden;
	border: 1px solid var(--line);
	box-shadow: var(--shadow-sm);
}

.post-navigation {
	margin-top: 2rem;
	display: flex;
	justify-content: space-between;
	gap: 1rem;
	flex-wrap: wrap;
}

.post-navigation a {
	font-weight: 600;
	text-decoration: none;
	color: var(--accent-2);
}

/* Подвал */
.site-footer {
	background: #08262b;
	color: rgba(255, 255, 255, 0.88);
	padding: 2rem 0;
	margin-top: auto;
	font-size: 0.95rem;
}

.site-footer a {
	color: #b2ebf2;
	text-decoration: none;
}

.site-footer a:hover {
	text-decoration: underline;
	color: #fff;
}

.site-footer-menu {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem 1.5rem;
	list-style: none;
	margin: 0 0 1rem;
	padding: 0;
}

.site-footer__copy {
	margin: 0;
	opacity: 0.7;
	font-size: 0.85rem;
}

.site-main {
	min-height: 40vh;
}

/* Доступность */
.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.skip-link:focus {
	position: fixed;
	left: 1rem;
	top: 1rem;
	z-index: 100000;
	padding: 0.75rem 1rem;
	background: var(--accent-warm);
	color: #000;
	text-decoration: none;
	clip: auto !important;
	width: auto;
	height: auto;
}

body {
	min-height: 100vh;
	display: flex;
	flex-direction: column;
}
