/**
 * Nadezhda Online — основные стили, шапка, подвал, записи, блог.
 * Адаптация под все устройства.
 */
:root {
	--color-primary: #8B2635;
	--color-gold: #D4AF37;
	--color-bg: #F5F0E8;
	--color-text: #2C2C2C;
	--color-text-muted: #6B6B6B;
	--font-heading: "Cormorant Garamond", Georgia, serif;
	--font-body: "Montserrat", sans-serif;
	--radius: 8px;
	--radius-img: 30px;
	--container: 1200px;
	--shadow: 0 4px 20px rgba(0,0,0,0.08);
}
* { box-sizing: border-box; }
body { margin: 0; font-family: var(--font-body); font-size: 16px; line-height: 1.6; color: var(--color-text); background: var(--color-bg); }
a { color: var(--color-primary); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; }
.container { max-width: var(--container); margin: 0 auto; padding: 0 20px; }

/* ========== ШАПКА — лого по центру, навигация ========== */
.site-header {
	background: rgba(255,255,255,0.95);
	box-shadow: 0 2px 16px rgba(0,0,0,0.06);
	position: sticky;
	top: 0;
	z-index: 100;
}
.header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 16px;
	min-height: 72px;
}
.site-logo {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	text-decoration: none;
	color: var(--color-text);
}
.site-logo:hover { color: var(--color-primary); text-decoration: none; }
.site-logo-name { font-family: var(--font-heading); font-size: 22px; font-weight: 600; color: var(--color-primary); line-height: 1.2; }
.site-logo-desc { font-size: 13px; color: var(--color-text-muted); margin-top: 2px; }
.main-nav { flex: 1; display: flex; justify-content: center; }
.nav-menu { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px; justify-content: center; }
.nav-menu a { padding: 8px 14px; color: var(--color-text); font-weight: 500; border-radius: var(--radius); }
.nav-menu a:hover { background: rgba(139,38,53,0.08); color: var(--color-primary); text-decoration: none; }
.menu-toggle { display: none; background: none; border: none; padding: 10px; cursor: pointer; flex-direction: column; gap: 5px; }
.menu-toggle-bar { width: 24px; height: 2px; background: var(--color-text); border-radius: 1px; }
@media (max-width: 768px) {
	.menu-toggle { display: flex; }
	.main-nav { display: none; width: 100%; }
	.main-nav.is-open { display: block; }
	.nav-menu { flex-direction: column; }
	.site-logo { align-items: flex-start; text-align: left; }
}

/* Фото в материалах — скругление 30px */
.single-post-img,
.fp-hero-photo img,
.fp-about-photo img,
.blog-card-img { border-radius: var(--radius-img) !important; }

/* ========== ПОДВАЛ — 4 колонки ========== */
.site-footer {
	background: linear-gradient(180deg, #7B2230 0%, #6B1C28 100%);
	color: #fff;
	padding: 48px 0 24px;
	margin-top: 48px;
}
.footer-cols {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 32px;
	margin-bottom: 32px;
}
.footer-col-title { font-family: var(--font-heading); font-size: 1.1rem; margin: 0 0 16px; color: #fff; }
.footer-col p { margin: 0 0 8px; }
.footer-link { color: rgba(255,255,255,0.9); }
.footer-link:hover { color: var(--color-gold); text-decoration: none; }
.footer-buttons { display: flex; flex-wrap: wrap; gap: 10px; }
.footer-btn {
	display: inline-block;
	padding: 10px 16px;
	background: rgba(255,255,255,0.15);
	border: 1px solid rgba(255,255,255,0.3);
	border-radius: var(--radius);
	color: #fff;
	font-size: 14px;
	font-weight: 500;
	transition: background 0.2s, border-color 0.2s;
}
.footer-btn:hover { background: rgba(212,175,55,0.3); border-color: var(--color-gold); color: #fff; text-decoration: none; }
.footer-menu, .footer-docs { list-style: none; margin: 0; padding: 0; }
.footer-menu li, .footer-docs li { margin: 0 0 8px; }
.footer-bottom { text-align: center; padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.15); }
.footer-copy { margin: 0; font-size: 14px; opacity: 0.9; }
@media (max-width: 992px) { .footer-cols { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 576px) { .footer-cols { grid-template-columns: 1fr; text-align: center; } .footer-buttons { justify-content: center; } }

/* ========== ЗАПИСЬ (single) — рамочка, баннеры, похожие, навигация ========== */
.single-post-wrap { padding: 40px 0 60px; }
.article-frame { background: #fff; border-radius: 12px; box-shadow: var(--shadow); padding: 40px; max-width: 800px; margin: 0 auto; }
.single-post-img { width: 100%; border-radius: var(--radius-img); margin-bottom: 24px; display: block; }
.single-header { margin-bottom: 24px; }
.single-title { font-family: var(--font-heading); font-size: clamp(1.5rem, 4vw, 2rem); margin: 0; color: var(--color-text); line-height: 1.3; }
.single-content { font-size: 17px; line-height: 1.75; }
.single-content p { margin: 0 0 1.2em; }
.single-banner { margin: 32px 0; text-align: center; }
.single-banner img { border-radius: var(--radius); max-width: 100%; height: auto; }
.related-posts { padding: 48px 0 24px; }
.related-title { font-family: var(--font-heading); font-size: 1.5rem; margin: 0 0 24px; text-align: center; }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.related-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; transition: transform 0.2s, box-shadow 0.2s; }
.related-card:hover { transform: translateY(-4px); box-shadow: 0 8px 28px rgba(0,0,0,0.12); }
.related-card a { display: block; padding: 20px; color: inherit; }
.related-card a:hover { text-decoration: none; color: var(--color-primary); }
.related-img { width: 100%; height: 180px; object-fit: cover; border-radius: var(--radius); margin-bottom: 12px; }
.related-card-title { font-size: 1rem; margin: 0 0 8px; font-weight: 600; }
.post-nav { padding: 32px 0; }
.post-nav-inner { display: flex; justify-content: space-between; align-items: center; max-width: 800px; margin: 0 auto; flex-wrap: wrap; gap: 16px; }
.post-nav-prev, .post-nav-next { font-size: 14px; font-weight: 600; }
.post-nav a { color: var(--color-primary); }
.post-nav .arrow { margin: 0 4px; }
@media (max-width: 768px) { .article-frame { padding: 24px; } .related-grid { grid-template-columns: 1fr; } }

/* ========== БЛОГ (архив) — 3 в ряд, карточки ========== */
.blog-archive { padding: 40px 0 60px; }
.blog-archive .page-title { font-family: var(--font-heading); font-size: 2rem; margin: 0 0 32px; text-align: center; }
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.blog-card { background: #fff; border-radius: 12px; box-shadow: var(--shadow); overflow: hidden; transition: transform 0.2s, box-shadow 0.2s; }
.blog-card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(0,0,0,0.12); }
.blog-card-link { display: block; padding: 0 0 24px; color: inherit; }
.blog-card-link:hover { text-decoration: none; color: var(--color-text); }
.blog-card-img-wrap { margin: 0; line-height: 0; }
.blog-card-img { width: 100%; height: 220px; object-fit: cover; border-radius: 0; display: block; }
.blog-card-date { font-size: 13px; color: var(--color-text-muted); margin: 16px 24px 8px; }
.blog-card-title { font-family: var(--font-heading); font-size: 1.15rem; margin: 0 24px 12px; font-weight: 600; line-height: 1.35; }
.blog-card-excerpt { font-size: 14px; color: var(--color-text-muted); margin: 0 24px 16px; line-height: 1.5; }
.blog-card-excerpt p { margin: 0; }
.blog-card-btn { display: inline-flex; align-items: center; gap: 6px; margin: 0 24px; padding: 10px 0; font-weight: 600; font-size: 14px; color: var(--color-primary); }
.blog-card .arrow { font-size: 1.1em; }
@media (max-width: 992px) { .blog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 576px) { .blog-grid { grid-template-columns: 1fr; } }

.pagination { margin-top: 32px; text-align: center; }
.pagination a, .pagination span { display: inline-block; padding: 8px 14px; margin: 0 4px; background: #fff; border-radius: var(--radius); box-shadow: 0 2px 8px rgba(0,0,0,0.08); }
.pagination .current { background: var(--color-primary); color: #fff; }

/* ========== Тесты и диагностики (список) ========== */
/* ========== Тесты и диагностики (по скрину) ========== */
.page-tests-list { padding: 40px 0 60px; background: #F5F0E8; }
.page-tests-container { max-width: 1000px; margin: 0 auto; }
.page-tests-title {
	font-family: var(--font-heading);
	font-size: clamp(1.75rem, 4vw, 2.25rem);
	font-weight: 600;
	color: #2C2C2C;
	margin: 0 0 12px;
	line-height: 1.25;
	text-align: center;
}
.page-tests-intro {
	font-size: 1rem;
	color: #6B6B6B;
	line-height: 1.6;
	margin: 0 0 32px;
	text-align: center;
	max-width: 560px;
	margin-left: auto;
	margin-right: auto;
}
.tests-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
}
.test-card {
	background: #fff;
	border-radius: 12px;
	box-shadow: 0 4px 20px rgba(0,0,0,0.08);
	border: 1px solid rgba(0,0,0,0.06);
	border-top: 4px solid var(--color-primary, #8B2635);
	padding: 24px;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	opacity: 0;
	animation: tests-card-in 0.5s ease forwards;
}
.tests-grid .test-card:nth-child(1) { animation-delay: 0.05s; }
.tests-grid .test-card:nth-child(2) { animation-delay: 0.1s; }
.tests-grid .test-card:nth-child(3) { animation-delay: 0.15s; }
.tests-grid .test-card:nth-child(4) { animation-delay: 0.2s; }
.tests-grid .test-card:nth-child(5) { animation-delay: 0.25s; }
.tests-grid .test-card:nth-child(6) { animation-delay: 0.3s; }
.tests-grid .test-card:nth-child(7) { animation-delay: 0.35s; }
.tests-grid .test-card:nth-child(8) { animation-delay: 0.4s; }
.tests-grid .test-card:nth-child(9) { animation-delay: 0.45s; }
.tests-grid .test-card:nth-child(n+10) { animation-delay: 0.5s; }
@keyframes tests-card-in {
	from { opacity: 0; transform: translateY(24px); }
	to { opacity: 1; transform: translateY(0); }
}
.test-card-title {
	font-family: var(--font-body);
	font-size: 1.05rem;
	font-weight: 700;
	color: #2C2C2C;
	margin: 0 0 12px;
	line-height: 1.35;
	text-align: center;
}
.test-card-desc {
	font-size: 0.9rem;
	color: #6B6B6B;
	margin: 0 0 20px;
	line-height: 1.5;
	flex: 1;
	text-align: center;
}
.test-card-btn {
	display: block;
	width: 100%;
	max-width: 200px;
	margin: 0 auto;
	padding: 14px 20px;
	background: #8B2635;
	color: #fff;
	border: none;
	border-radius: 8px;
	font-size: 1rem;
	font-weight: 600;
	text-align: center;
	transition: background 0.2s, transform 0.2s;
}
.test-card-btn:hover { background: #7a2030; color: #fff; text-decoration: none; transform: translateY(-2px); }
@media (max-width: 768px) { .tests-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 576px) { .tests-grid { grid-template-columns: 1fr; } }

/* ========== Страница одного теста (опросник) — единая структура ========== */
.page-test-single { padding: 40px 0 60px; }
.test-container { max-width: 720px; margin: 0 auto; background: #fff; border-radius: 12px; box-shadow: var(--shadow); padding: 40px; }
.test-page-title {
	font-family: var(--font-heading);
	font-size: 1.75rem;
	margin: 0 0 12px;
	color: var(--color-primary, #8B2635);
	text-align: center;
}
.test-description { color: var(--color-text-muted); margin: 0 0 32px; text-align: center; }
.test-form { margin-bottom: 0; }
.test-questions { list-style: none; margin: 0 0 32px; padding: 0; }
.test-question {
	display: none;
	margin: 0;
	padding: 0 0 24px;
	border: none;
}
.test-question.current { display: block; }
.test-question-text {
	font-weight: 600;
	font-size: 1.1rem;
	color: #1a1a1a;
	margin: 0 0 20px;
	line-height: 1.4;
	text-align: center;
}
.test-options { display: flex; flex-direction: column; gap: 12px; max-width: 400px; margin: 0 auto; }
.test-option-btn {
	display: block;
	width: 100%;
	padding: 14px 20px;
	background: var(--color-primary, #8B2635);
	color: #fff;
	border: none;
	border-radius: 8px;
	font-size: 1rem;
	font-weight: 600;
	text-align: center;
	cursor: pointer;
	transition: background 0.2s, transform 0.2s;
	text-decoration: none;
}
.test-option-btn:hover { background: #7a2030; color: #fff; transform: translateY(-2px); }
.test-actions { display: none; }
.test-result { margin-top: 32px; padding: 24px; background: var(--color-bg); border-radius: var(--radius); }
.test-result h2 { font-size: 1.25rem; margin: 0 0 16px; text-align: center; }
.result-score-line { font-size: 1.1rem; margin: 0 0 16px; text-align: center; }
.test-result h3 { font-size: 1.1rem; margin: 0 0 8px; }
.test-result p { margin: 0; }
.test-social-subscribe { margin-top: 32px; padding-top: 24px; border-top: 1px solid #eee; text-align: center; }
.test-social-subscribe-title { font-size: 1.1rem; font-weight: 600; margin: 0 0 16px; color: #2C2C2C; }
.test-social-buttons { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.test-social-btn {
	display: inline-block;
	padding: 12px 24px;
	background: var(--color-primary, #8B2635);
	color: #fff;
	border-radius: 8px;
	font-weight: 600;
	text-decoration: none;
	transition: background 0.2s, transform 0.2s;
}
.test-social-btn:hover { background: #7a2030; color: #fff; transform: translateY(-2px); }
.test-result-consult { margin-top: 24px; padding-top: 24px; border-top: 1px solid #E8DFD5; text-align: center; }
.test-result-consult-invite { font-size: 1.1rem; font-weight: 600; margin: 0 0 16px; color: #2C2C2C; }
.test-result-messengers { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.test-result-messenger-btn {
	display: inline-block;
	padding: 12px 24px;
	background: var(--color-primary, #8B2635);
	color: #fff;
	border-radius: 8px;
	font-weight: 600;
	text-decoration: none;
	transition: background 0.2s, transform 0.2s;
}
.test-result-messenger-btn:hover { background: #7a2030; color: #fff; transform: translateY(-2px); }

/* HADS: результаты с шкалами тревога/депрессия */
.test-result-hads .result-score { font-size: 2rem; font-weight: 700; margin: 16px 0 8px; }
.test-result-hads .score-total { font-size: 1rem; font-weight: 400; color: var(--color-text-muted); }
.result-level { font-size: 1.25rem; font-weight: 700; margin: 24px 0 16px; text-align: center; }
.result-level.normal { color: #51CF66; }
.result-level.mild { color: #D4A84B; }
.result-level.moderate { color: #FFA94D; }
.result-level.severe { color: #E03131; }
.test-result-hads .result-text { margin: 0 0 24px; line-height: 1.6; }
.result-details { background: var(--fp-cream, #FBF8F2); padding: 24px; border-radius: 12px; margin: 24px 0; }
.scale-result { display: flex; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid #E8DFD5; }
.scale-result:last-child { border-bottom: none; }
.result-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.result-actions .btn-secondary { background: transparent; color: var(--color-primary); border: 2px solid var(--color-primary); }
.result-actions .btn-secondary:hover { background: var(--color-primary); color: #fff; }
@media (max-width: 576px) {
	.test-container { padding: 24px 16px; }
	.page-test-single { padding: 24px 0 48px; }
	.test-page-title { font-size: clamp(1.2rem, 5vw, 1.6rem); }
	.test-options { max-width: none; }
	.test-question-text { font-size: 1rem; }
	.test-result-messengers,
	.test-social-buttons { flex-direction: column; align-items: stretch; }
	.test-result-messenger-btn,
	.test-social-btn { text-align: center; justify-content: center; }
}

/* ========== Дипломы и отзывы ========== */
.page-reviews-diplomas { padding: 40px 0 60px; }
.reviews-diplomas-wrap .page-title { font-family: var(--font-heading); font-size: 2rem; margin: 0 0 32px; text-align: center; }
.reviews-diplomas-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; max-width: 720px; margin: 0 auto; }
.rd-card { background: #fff; border-radius: 12px; box-shadow: var(--shadow); padding: 32px; text-align: center; }
.rd-card-title { font-family: var(--font-heading); font-size: 1.35rem; margin: 0 0 12px; }
.rd-card-desc { color: var(--color-text-muted); margin: 0 0 20px; }
.rd-btn { display: inline-block; padding: 12px 24px; background: var(--color-primary); color: #fff; border-radius: var(--radius); font-weight: 600; }
.rd-btn:hover { background: #7a2030; color: #fff; text-decoration: none; }
@media (max-width: 576px) { .reviews-diplomas-grid { grid-template-columns: 1fr; } }

/* ========== ГЛАВНАЯ СТРАНИЦА (по макету) ========== */
:root {
	--fp-gold: #B8860B;
	--fp-gold-light: #D4A84B;
	--fp-maroon: #6B2D2D;
	--fp-cream: #FBF8F2;
	--fp-cream-dark: #F5F0E8;
}
.front-page { padding-bottom: 0; padding-top: 0; }
/* Hero: мягкий крем, светлее сверху — как на скрине */
.fp-hero {
	background: linear-gradient(180deg, #FFFEFB 0%, #FBF8F2 40%, #F5F0E8 100%);
	padding: 60px 0 80px;
}
.fp-hero-inner {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 48px;
	align-items: start;
	max-width: 1100px;
	margin: 0 auto;
}
.fp-hero-text-block { max-width: 520px; }
.fp-hero-title {
	font-family: var(--font-heading);
	font-size: clamp(1.85rem, 4.2vw, 2.6rem);
	font-weight: 600;
	color: #1a1a1a;
	margin: 0 0 14px;
	line-height: 1.28;
	letter-spacing: -0.01em;
}
.fp-hero-subtitle { font-size: 1.05rem; color: #B8860B; margin: 0 0 18px; font-weight: 500; }
.fp-hero-desc { font-size: 1rem; line-height: 1.7; color: #333; margin: 0 0 28px; }
.fp-hero-buttons { display: flex; flex-wrap: wrap; gap: 14px; }
.btn-hero-primary {
	display: inline-block;
	padding: 14px 26px;
	background: #6B2D2D;
	color: #fff;
	border-radius: 30px;
	font-weight: 600;
	font-size: 1rem;
	box-shadow: 0 4px 16px rgba(107,45,45,0.3);
	transition: transform 0.2s, box-shadow 0.2s;
}
.btn-hero-primary:hover { color: #fff; text-decoration: none; transform: translateY(-2px); box-shadow: 0 6px 20px rgba(107,45,45,0.4); }
.btn-hero-outline {
	display: inline-block;
	padding: 14px 26px;
	background: transparent;
	color: var(--fp-gold-light);
	border: 2px solid var(--fp-gold-light);
	border-radius: 30px;
	font-weight: 600;
	font-size: 1rem;
	box-shadow: 0 2px 12px rgba(184,134,11,0.15);
	transition: background 0.2s, color 0.2s;
}
.btn-hero-outline:hover { color: #1a1a1a; background: rgba(212,168,75,0.15); text-decoration: none; }
.fp-hero-photo-block { display: flex; justify-content: center; }
.fp-hero-photo.fp-photo-wrap { max-width: 400px; }
.fp-photo-wrap {
	position: relative;
	overflow: hidden;
	border-radius: 14px;
	box-shadow: 0 10px 40px rgba(0,0,0,0.14);
}
.fp-photo-gold-frame {
	border: 2px solid #D4A84B;
	box-shadow: 0 10px 40px rgba(0,0,0,0.12), 0 4px 20px rgba(184,134,11,0.15);
}
.fp-photo-wrap img { width: 100%; height: auto; display: block; vertical-align: middle; }
@media (max-width: 992px) {
	.fp-hero-inner { grid-template-columns: 1fr; text-align: center; }
	.fp-hero-text-block { max-width: none; }
	.fp-hero-buttons { justify-content: center; }
}
/* Запросы — светлый беж, карточки без иконок */
.fp-requests {
	padding: 70px 0;
	background: var(--fp-cream);
}
.fp-requests-inner { max-width: 1100px; margin: 0 auto; }
.fp-section-title {
	font-family: var(--font-heading);
	font-size: 1.75rem;
	font-weight: 600;
	color: #1a1a1a;
	margin: 0 0 12px;
	text-align: center;
}
.fp-section-subtitle {
	text-align: center;
	color: #444;
	font-size: 1rem;
	margin: 0 0 36px;
	max-width: 560px;
	margin-left: auto;
	margin-right: auto;
	line-height: 1.5;
}
.fp-requests-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
}
.fp-request-card {
	background: #fff;
	border-radius: 12px;
	padding: 28px 24px;
	box-shadow: 0 1px 3px rgba(0,0,0,0.06);
	border: 1px solid rgba(0,0,0,0.06);
	transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.fp-request-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}
.fp-request-icon {
	display: block;
	width: 48px;
	height: 48px;
	margin-bottom: 14px;
	border-radius: 10px;
	background-size: 28px 28px;
	background-position: center;
	background-repeat: no-repeat;
}
.fp-icon-cloud { background-color: rgba(100,140,180,0.2); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%235a8ab4'%3E%3Cpath d='M19.35 10.04C18.67 6.59 15.64 4 12 4 9.11 4 6.6 5.64 5.35 8.04 2.34 8.36 0 10.91 0 14c0 3.31 2.69 6 6 6h13c2.76 0 5-2.24 5-5 0-2.64-2.05-4.78-4.65-4.96z'/%3E%3C/svg%3E"); }
.fp-icon-people { background-color: rgba(70,100,140,0.2); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%2346648c'%3E%3Cpath d='M16 11c1.66 0 2.99-1.34 2.99-3S17.66 5 16 5c-1.66 0-3 1.34-3 3s1.34 3 3 3zm-8 0c1.66 0 2.99-1.34 2.99-3S9.66 5 8 5C6.34 5 5 6.34 5 8s1.34 3 3 3zm0 2c-2.33 0-7 1.17-7 3.5V19h14v-2.5c0-2.33-4.67-3.5-7-3.5zm8 0c-.29 0-.62.02-.97.05 1.16.84 1.97 1.97 1.97 3.45V19h6v-2.5c0-2.33-4.67-3.5-7-3.5z'/%3E%3C/svg%3E"); }
.fp-icon-cycle { background-color: rgba(120,140,160,0.2); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%236a8aa0'%3E%3Cpath d='M12 4V1L8 5l4 4V6c3.31 0 6 2.69 6 6 0 1.01-.25 1.97-.7 2.8l1.46 1.46C19.54 15.03 20 13.57 20 12c0-4.42-3.58-8-8-8zm0 14c-3.31 0-6-2.69-6-6 0-1.01.25-1.97.7-2.8L5.24 7.74C4.46 8.97 4 10.43 4 12c0 4.42 3.58 8 8 8v3l4-4-4-4v3z'/%3E%3C/svg%3E"); }
.fp-icon-worry { background-color: rgba(200,160,80,0.25); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23c49a30'%3E%3Cpath d='M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 17h-2v-2h2v2zm2.07-7.75l-.9.92C13.45 12.9 13 13.5 13 15h-2v-.5c0-1.1.45-2.1 1.12-2.75l1.24-1.26c.37-.36.59-.86.59-1.41 0-1.1-.9-2-2-2s-2 .9-2 2H8c0-2.21 1.79-4 4-4s4 1.79 4 4c0 .88-.36 1.68-.93 2.25z'/%3E%3C/svg%3E"); }
.fp-icon-heart { background-color: rgba(180,90,100,0.2); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23b45a64'%3E%3Cpath d='M16.5 3c-1.74 0-3.41.81-4.5 2.09C10.91 3.81 9.24 3 7.5 3 4.42 3 2 5.42 2 8.5c0 3.78 3.4 6.86 8.55 11.54L12 21.35l1.45-1.32C18.6 15.36 22 12.28 22 8.5 22 5.42 19.58 3 16.5 3z'/%3E%3C/svg%3E"); }
.fp-request-title { font-family: var(--font-body); font-size: 1.05rem; font-weight: 700; margin: 0 0 10px; color: #1a1a1a; line-height: 1.35; }
.fp-request-text { font-size: 0.95rem; color: #555; line-height: 1.5; margin: 0; }
@media (max-width: 768px) { .fp-requests-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 576px) { .fp-requests-grid { grid-template-columns: 1fr; } }
/* Обо мне — линия под заголовком, чеклист с галочками */
.fp-about {
	padding: 70px 0;
	background: var(--fp-cream);
}
.fp-about-inner {
	display: grid;
	grid-template-columns: 350px 1fr;
	gap: 48px;
	align-items: center;
	max-width: 1000px;
	margin: 0 auto;
}
.fp-about-photo.fp-photo-wrap { max-width: 350px; }
.fp-about-heading {
	font-family: var(--font-heading);
	font-size: 1.75rem;
	font-weight: 600;
	color: #1a1a1a;
	margin: 0 0 8px;
}
.fp-about-line {
	display: block;
	width: 52px;
	height: 3px;
	background: #B8860B;
	margin: 0 0 22px;
	border-radius: 2px;
}
.fp-about-intro { font-size: 1rem; color: #444; margin: 0 0 16px; line-height: 1.5; }
.fp-about-name { font-size: 1rem; color: #333; margin: 0 0 20px; }
.fp-about-name-accent { color: var(--fp-gold); }
.fp-about-content p { margin: 0 0 1em; line-height: 1.75; color: #333; }
.fp-about-content p:last-child { margin-bottom: 0; }
.fp-about-list {
	list-style: none;
	margin: 20px 0 0;
	padding: 0;
}
.fp-about-list li {
	position: relative;
	padding-left: 28px;
	margin: 0 0 12px;
	line-height: 1.5;
	color: #333;
}
.fp-about-list li::before {
	content: "✓";
	position: absolute;
	left: 0;
	color: var(--fp-gold);
	font-weight: 700;
	font-size: 1.1rem;
}
@media (max-width: 768px) {
	.fp-about-inner { grid-template-columns: 1fr; }
	.fp-about-photo-block { order: 1; display: flex; justify-content: center; }
	.fp-about-photo.fp-photo-wrap { max-width: 280px; }
	.fp-about-text-block { order: 2; }
}
/* CTA — бордовый баннер, кнопки с оранжевой обводкой */
.fp-cta {
	padding: 70px 0;
	background: #6B2D2D;
	border-top: 1px solid var(--fp-cream);
	border-bottom: 1px solid var(--fp-cream);
	text-align: center;
}
.fp-cta-inner { max-width: 640px; margin: 0 auto; }
.fp-cta-title { font-family: var(--font-heading); font-size: 1.75rem; color: #fff; margin: 0 0 12px; }
.fp-cta-text { color: rgba(255,255,255,0.9); margin: 0 0 28px; font-size: 1rem; }
.fp-cta-buttons { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }
.btn-cta-primary {
	display: inline-block;
	padding: 14px 28px;
	background: #8B3D3D;
	color: #fff;
	border: 2px solid var(--fp-gold-light);
	border-radius: 30px;
	font-weight: 600;
	font-size: 1rem;
	transition: background 0.2s, transform 0.2s;
}
.btn-cta-primary:hover { color: #fff; background: #9B4D4D; text-decoration: none; transform: translateY(-2px); }
.btn-cta-outline {
	display: inline-block;
	padding: 14px 28px;
	background: transparent;
	color: var(--fp-gold-light);
	border: 2px solid var(--fp-gold-light);
	border-radius: 30px;
	font-weight: 600;
	font-size: 1rem;
	transition: background 0.2s, color 0.2s;
}
.btn-cta-outline:hover { color: #fff; background: rgba(212,168,75,0.25); text-decoration: none; }
/* Почему мне доверяют — линия, список с разделителями */
.fp-trust {
	padding: 70px 0;
	background: #FBF9F4;
	text-align: center;
}
.fp-trust-inner { max-width: 560px; margin: 0 auto; }
.fp-trust-title {
	font-family: var(--font-heading);
	font-size: 1.5rem;
	font-weight: 600;
	color: #1a1a1a;
	margin: 0 0 8px;
}
.fp-trust-line {
	display: block;
	width: 48px;
	height: 3px;
	background: var(--fp-gold);
	margin: 0 auto 18px;
	border-radius: 2px;
}
.fp-trust-intro { font-size: 1rem; color: #444; margin: 0 0 28px; line-height: 1.5; }
.fp-trust-list {
	list-style: none;
	margin: 0;
	padding: 0;
	text-align: left;
}
.fp-trust-list li {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 16px 0;
	border-bottom: 1px solid rgba(0,0,0,0.08);
	font-size: 1rem;
	color: #333;
	line-height: 1.4;
}
.fp-trust-list li:last-child { border-bottom: none; }
.fp-trust-icon {
	display: inline-block;
	width: 24px;
	height: 24px;
	min-width: 24px;
	background: var(--fp-gold);
	border-radius: 50%;
	opacity: 0.7;
}
/* Блок «Пройти тест» */
.fp-test-cta {
	padding: 56px 0;
	background: var(--fp-cream);
	text-align: center;
}
.fp-test-cta-inner { max-width: 560px; margin: 0 auto; }
.fp-test-cta-title {
	font-family: var(--font-heading);
	font-size: 1.35rem;
	font-weight: 600;
	color: #444;
	margin: 0 0 12px;
	line-height: 1.4;
}
.fp-test-cta-line {
	display: block;
	width: 40px;
	height: 2px;
	background: var(--fp-gold);
	margin: 0 auto 24px;
	border-radius: 2px;
}
.btn-test-cta {
	display: inline-block;
	padding: 16px 36px;
	background: #6B2D2D;
	color: #fff;
	border: none;
	border-radius: 30px;
	font-weight: 700;
	font-size: 1rem;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	box-shadow: 0 4px 20px rgba(107,45,45,0.35);
	transition: transform 0.2s, box-shadow 0.2s;
}
.btn-test-cta:hover { color: #fff; text-decoration: none; transform: translateY(-2px); box-shadow: 0 6px 24px rgba(107,45,45,0.45); }
.fp-extra { padding: 40px 0; background: #fff; }
.fp-extra-inner { max-width: 720px; margin: 0 auto; }
.fp-extra-inner h2 { font-family: var(--font-heading); font-size: 1.35rem; margin: 0 0 16px; }
.fp-extra-inner p { margin: 0 0 1em; }
.fp-extra-inner a { color: #6B2D2D; font-weight: 500; }

/* Страница по умолчанию (ВОЗДУХ) */
.page-default { padding: 40px 0 60px; }
.page-default .entry-header { margin-bottom: 24px; }
.page-default .entry-title { font-family: var(--font-heading); font-size: 1.75rem; margin: 0; }
.page-default .entry-content { max-width: 720px; }

/* =============================================================================
 * Адаптивность: телефоны, планшеты, «нечёткий» экран, длинный контент
 * ============================================================================= */
html {
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
	scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
}
body {
	overflow-x: hidden;
}
#content.site-content,
.site-main {
	overflow-x: hidden;
	min-width: 0;
}

/* Статическая главная: блоки fp-* с собственными .container — не сужаем до 720px */
.home.page .page-default .entry-content {
	max-width: none;
	width: 100%;
}
.home.page .page-default .entry-content .container {
	padding-left: 20px;
	padding-right: 20px;
}

/* Типографика и переносы в записи / странице */
.entry-content,
.single-content {
	overflow-wrap: anywhere;
	word-break: break-word;
	hyphens: auto;
}
.entry-content iframe,
.entry-content embed,
.entry-content video,
.single-content iframe,
.single-content embed,
.single-content video {
	max-width: 100%;
}
.entry-content .wp-block-embed iframe,
.single-content .wp-block-embed iframe {
	max-width: 100%;
}
.entry-content table,
.single-content table {
	width: 100%;
	max-width: 100%;
	border-collapse: collapse;
	display: block;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}
.entry-content pre,
.single-content pre {
	overflow-x: auto;
	max-width: 100%;
	padding: 12px;
	font-size: 0.875rem;
}

/* Gutenberg: колонки на узких экранах */
.wp-block-columns {
	flex-wrap: wrap !important;
	gap: 1rem;
}
@media (max-width: 782px) {
	.wp-block-columns {
		flex-direction: column !important;
	}
	.wp-block-column {
		flex-basis: 100% !important;
		margin-left: 0 !important;
	}
}

/* Галереи и группы */
.wp-block-gallery {
	gap: 8px;
}
.wp-block-group.has-background {
	padding-left: max(1.25rem, env(safe-area-inset-left, 0px));
	padding-right: max(1.25rem, env(safe-area-inset-right, 0px));
}

/* Выравнивание картинок: на телефоне по центру */
@media (max-width: 576px) {
	.entry-content .alignleft,
	.entry-content .alignright,
	.single-content .alignleft,
	.single-content .alignright {
		float: none;
		display: block;
		margin-left: auto;
		margin-right: auto;
		max-width: 100%;
	}
	.home.page .page-default .entry-title {
		font-size: clamp(1.2rem, 5vw, 1.55rem);
		text-align: center;
	}
	.home.page .page-default .entry-header {
		margin-bottom: 16px;
	}
}

/* Узкий экран: отступы, касания, hero/кнопки */
@media (max-width: 480px) {
	:root {
		--container: 100%;
	}
	.container {
		padding-left: max(16px, env(safe-area-inset-left, 0px));
		padding-right: max(16px, env(safe-area-inset-right, 0px));
	}
	.page-default {
		padding: 24px 0 48px;
	}
	.single-post-wrap {
		padding: 24px 0 48px;
	}
	.blog-archive {
		padding: 28px 0 48px;
	}
	.blog-archive .page-title {
		font-size: clamp(1.35rem, 6vw, 2rem);
	}
	.article-frame {
		padding: 20px 16px;
	}
	.fp-hero {
		padding: 32px 0 48px;
	}
	.fp-requests,
	.fp-about,
	.fp-cta,
	.fp-trust,
	.fp-test-cta {
		padding: 44px 0;
	}
	.fp-section-title,
	.fp-cta-title {
		font-size: clamp(1.25rem, 5vw, 1.65rem);
	}
	.btn-hero-primary,
	.btn-hero-outline,
	.btn-cta-primary,
	.btn-cta-outline,
	.btn-test-cta {
		min-height: 48px;
		display: inline-flex;
		align-items: center;
		justify-content: center;
	}
	.fp-hero-buttons,
	.fp-cta-buttons {
		flex-direction: column;
		align-items: stretch;
	}
	.fp-hero-buttons .btn-hero-primary,
	.fp-hero-buttons .btn-hero-outline,
	.fp-cta-buttons .btn-cta-primary,
	.fp-cta-buttons .btn-cta-outline {
		width: 100%;
		justify-content: center;
	}
}

/* Шапка: компактнее, касания 44px */
@media (max-width: 768px) {
	.header-inner {
		flex-wrap: nowrap;
		align-items: center;
		gap: 12px;
	}
	.site-logo {
		flex: 1;
		min-width: 0;
		text-align: left;
		align-items: flex-start;
	}
	.site-logo-name {
		font-size: clamp(0.95rem, 4.2vw, 1.2rem);
		line-height: 1.2;
	}
	.main-nav.is-open {
		padding-bottom: max(12px, env(safe-area-inset-bottom, 0px));
	}
	.nav-menu a {
		padding: 12px 16px;
		min-height: 44px;
		display: inline-flex;
		align-items: center;
		box-sizing: border-box;
	}
	.menu-toggle {
		min-width: 44px;
		min-height: 44px;
	}
}

@media (max-width: 480px) {
	.scale-result {
		flex-direction: column;
		align-items: flex-start;
		gap: 4px;
	}
	.related-title {
		font-size: clamp(1.2rem, 5vw, 1.5rem);
	}
}

/* alignfull: без горизонтального скролла на мобильных */
.alignfull {
	width: 100vw;
	max-width: 100vw;
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
}
@supports (overflow: clip) {
	body {
		overflow-x: clip;
	}
}
@media (max-width: 782px) {
	.alignfull {
		width: 100%;
		max-width: 100%;
		margin-left: 0;
		margin-right: 0;
	}
}
