/* Страница вопроса (single-vopros.php) */
.es-q { background: #f6f5f3; padding: 36px 0 80px; font-family: 'Manrope', sans-serif; color: var(--es-ink, #1f2a2a); }
.es-q__wrap { max-width: 760px; margin: 0 auto; padding: 0 16px; }

.es-q__crumbs { font-size: 13px; color: #6b7777; margin-bottom: 22px; }
.es-q__crumbs a { color: #6b7777; text-decoration: none; }
.es-q__crumbs a:hover { color: var(--es-teal, #087f7b); }

.es-q__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; font-size: 13px; color: #6b7777; }
.es-q__tag { display: inline-flex; align-items: center; max-width: 100%; min-height: 28px; padding: 3px 12px; border-radius: 999px; background: #e1f1f0; color: var(--es-teal, #087f7b) !important; font-weight: 700; text-decoration: none !important; line-height: 1.3; }
a.es-q__tag:hover { background: #d2eae8; }
.es-q__title { margin: 14px 0 0; font-family: 'Montserrat', sans-serif; font-weight: 800; font-size: 38px; line-height: 1.2; color: var(--es-ink, #1f2a2a); text-decoration: none; border: 0; }

.es-q__ask { margin-top: 30px; background: #e8f2f1; border-radius: 20px; padding: 24px 28px; }
.es-q__label { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: #0b6f6b; }
.es-q__ask .es-q__text { margin-top: 12px; font-size: 17px; line-height: 1.65; color: #2c3a3a; }

.es-q__answer { margin-top: 18px; background: #fff; border-radius: 20px; box-shadow: 0 4px 18px rgba(20,40,40,.07); padding: 30px 34px 34px; }
.es-q__author { display: flex; align-items: center; gap: 14px; }
.es-q__author img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; flex: none; }
.es-q__author b { display: block; font-size: 16px; }
.es-q__author span { font-size: 14px; color: #5f6b6b; }
.es-q__text--answer { margin-top: 22px; font-size: 18px; line-height: 1.75; color: #263333; }

.es-q__text > :first-child { margin-top: 0; }
.es-q__text > :last-child { margin-bottom: 0; }
.es-q__text p { margin: 0 0 14px; }
.es-q__text ul, .es-q__text ol { margin: 0 0 14px; padding-left: 1.3em; }
.es-q__text li { margin-bottom: 6px; }
.es-q__text h2, .es-q__text h3 { margin: 24px 0 10px; font-family: 'Montserrat', sans-serif; font-weight: 800; font-size: 22px; line-height: 1.3; }
.es-q__text a { color: var(--es-teal, #087f7b); }
.es-q__text img { max-width: 100%; height: auto; border-radius: 14px; }
.es-q__text iframe { max-width: 100%; }

.es-q__topic { margin-top: 18px; display: flex; align-items: center; gap: 20px; padding: 20px; background: #fff; border-radius: 20px; box-shadow: 0 4px 18px rgba(20,40,40,.07); }
.es-q__wrap > article + .es-q__topic { margin-top: 28px; }
.es-q__topic-img { flex: none; width: 132px; height: 100px; border-radius: 14px; overflow: hidden; background: var(--es-teal, #087f7b); color: #fff; display: flex; align-items: center; justify-content: center; }
.es-q__topic-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.es-q__topic-body { flex: 1; min-width: 0; }
.es-q__topic-body span { display: block; font-size: 13px; font-weight: 700; color: var(--es-teal, #087f7b); }
.es-q__topic-body b { display: block; margin-top: 4px; font-family: 'Montserrat', sans-serif; font-weight: 800; font-size: 19px; line-height: 1.3; }
.es-q__btn { flex: none; display: inline-flex; align-items: center; height: 50px; padding: 0 24px; border-radius: 14px; background: var(--es-teal, #087f7b); color: #fff !important; font-weight: 800; font-size: 15px; text-decoration: none !important; transition: background .2s; }
.es-q__btn:hover { background: #066a67; }

.es-q__links { margin-top: 18px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 24px; font-size: 15px; }
.es-q__ask-link { padding: 0; border: 0; background: none; display: inline-flex; align-items: center; gap: 6px; font: inherit; font-weight: 700; color: var(--es-teal, #087f7b); cursor: pointer; }
.es-q__ask-link:hover { color: #066a67; }
.es-q__tg { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: #5f6b6b !important; text-decoration: none !important; }
.es-q__tg:hover { color: var(--es-teal, #087f7b) !important; }

.es-q__adj { margin-top: 40px; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.es-q__adj-item { display: block; padding: 18px 22px; background: #fff; border-radius: 20px; box-shadow: 0 4px 18px rgba(20,40,40,.07); color: inherit !important; text-decoration: none !important; transition: box-shadow .2s, transform .2s; }
.es-q__adj-item:hover { box-shadow: 0 12px 30px rgba(20,40,40,.12); transform: translateY(-2px); }
.es-q__adj-item span { font-size: 13px; color: #6b7777; }
.es-q__adj-item b { display: block; margin-top: 6px; font-size: 15px; line-height: 1.4; }
.es-q__adj-item--next { grid-column: 2; text-align: right; }

.es-q__related { max-width: 1232px; margin: 64px auto 0; padding: 0 16px; }
.es-q__h2 { margin: 0; font-family: 'Montserrat', sans-serif; font-weight: 800; font-size: 28px; }
.es-q__grid { margin-top: 24px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.es-q__cell { display: flex; }

@media (max-width: 991.98px) {
	.es-q__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767.98px) {
	.es-q { padding: 18px 0 56px; }
	.es-q__crumbs { margin-bottom: 14px; font-size: 12px; }
	.es-q__title { font-size: 25px; line-height: 1.22; margin-top: 10px; }
	.es-q__ask { margin-top: 20px; padding: 18px; border-radius: 18px; }
	.es-q__ask .es-q__text { font-size: 15px; line-height: 1.6; }
	.es-q__answer { margin-top: 14px; padding: 20px 18px 22px; border-radius: 18px; }
	.es-q__author img { width: 48px; height: 48px; }
	.es-q__author b { font-size: 15px; }
	.es-q__author span { font-size: 13px; }
	.es-q__text--answer { margin-top: 16px; font-size: 16px; line-height: 1.7; }
	.es-q__topic { flex-wrap: wrap; gap: 14px; padding: 16px; border-radius: 18px; }
	.es-q__topic-img { width: 88px; height: 70px; }
	.es-q__topic-body b { font-size: 17px; }
	.es-q__btn { width: 100%; justify-content: center; }
	.es-q__links { flex-direction: column; align-items: flex-start; }
	.es-q__adj { margin-top: 26px; grid-template-columns: 1fr; gap: 10px; }
	.es-q__adj-item, .es-q__adj-item--next { grid-column: auto; text-align: left; padding: 14px 16px; }
	.es-q__related { margin-top: 40px; }
	.es-q__h2 { font-size: 22px; }
	.es-q__grid { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 14px -16px 0; padding: 0 16px 12px; scrollbar-width: none; }
	.es-q__grid::-webkit-scrollbar { display: none; }
	.es-q__cell { flex: 0 0 82%; scroll-snap-align: start; }
}

/* Комментарии под вопросом */
.es-q__wrap .comments-area { margin-top: 40px; padding: 26px 30px; background: #fff; border-radius: 20px; box-shadow: 0 4px 18px rgba(20,40,40,.07); }
.es-q__wrap .comment-reply-title, .es-q__wrap .comments-title { margin: 0 0 8px; font-family: 'Montserrat', sans-serif; font-weight: 800; font-size: 22px; }
.es-q__wrap .comment-notes, .es-q__wrap .logged-in-as { font-size: 14px; color: #6b7777; }
.es-q__wrap .comments-area label { font-size: 14px; font-weight: 600; }
.es-q__wrap .comments-area input[type="text"], .es-q__wrap .comments-area input[type="email"], .es-q__wrap .comments-area input[type="url"], .es-q__wrap .comments-area textarea { width: 100%; border: 1px solid #dfe5e4; border-radius: 12px; padding: 10px 14px; font: inherit; background: #fbfbfa; }
.es-q__wrap .comments-area textarea { min-height: 120px; }
.es-q__wrap .comments-area input:focus, .es-q__wrap .comments-area textarea:focus { outline: none; border-color: var(--es-teal, #087f7b); box-shadow: 0 0 0 3px rgba(8,127,123,.15); }
.es-q__wrap .comments-area .submit, .es-q__wrap .comments-area .btn-secondary { height: 48px; padding: 0 24px; border: 0; border-radius: 14px; background: var(--es-teal, #087f7b); color: #fff; font-weight: 800; }
@media (max-width: 767.98px) { .es-q__wrap .comments-area { margin-top: 26px; padding: 18px; border-radius: 18px; } }
