/* ========== FAQ — ñîâðåìåííûé ñëîé ========== */

/* Layout */
.faq-layout { display: flex; gap: 20px; margin-top: 30px; }
.faq-layout__main { flex: 1 1 auto; min-width: 1140px; }
.faq-layout__side { flex: 0 0 340px; }
@media (max-width: 992px) {
	.faq-layout { flex-direction: column; }
	.faq-layout__side { flex-basis: auto; }
}

/* Hero */
.faq-hero { background: #fff; border-radius: 4px; box-shadow: 2px 4px 20px -4px rgba(0,0,0,.1); padding: 40px 60px; margin-bottom: 20px; }
.faq-hero__title { border-bottom: 1px solid #dddede; line-height: .1em; margin: 20px 0 40px; text-align: center; font-weight: normal; }
.faq-hero__title span { font-family: 'Ubuntu Bold'; font-size: 38px; background: #fff; padding: 0 20px; }

/* Search */
.faq-search { display: flex; }
.faq-search__field { flex: 1 1 auto; }
.faq-search__field input { box-sizing: border-box; font-size: 14px; padding: 5px 20px; width: 100%; border-radius: 4px 0 0 4px; border: 1px solid #aaa; height: 46px; }
.faq-search__field input:hover, .faq-search__field input:focus { border-color: #ffdd2d; outline: none; }
.faq-search__btn { flex: 0 0 200px; }
.faq-search__btn button { font-weight: 600; cursor: pointer; border: 0; border-radius: 0 4px 4px 0; width: 100%; height: 46px; color: #000; background: #ffdd2d; font-size: 16px; padding: 5px 20px; font-family: inherit; }
.faq-search__btn button:hover { opacity: .85; }

/* Sidebar */
.faq-sidebox { background: #fff; border-radius: 4px; box-shadow: 2px 4px 20px -4px rgba(0,0,0,.1); padding: 20px; margin-bottom: 20px; }
.faq-sidebox--ask { text-align: center; }
.faq-sidebox--ask img { width: 60px; height: 60px; }
.faq-sidebox__title { font-family: 'Ubuntu Bold'; font-size: 20px; color: #313b40; margin: 10px 0 5px; }
.faq-sidebox__text { font-size: 14px; color: #aaaaaa; margin-bottom: 15px; }
.faq-sidebox__link { display: inline-block; background: #ffdd2d; color: #000; border-radius: 4px; padding: 12px 20px; font-weight: 600; }
.faq-sidebox__link:hover { opacity: .85; text-decoration: none; }
.faq-sidebox__head { font-family: 'Ubuntu Bold'; font-size: 18px; color: #313b40; margin-bottom: 10px; }
.faq-menu { display: flex; flex-direction: column; }
.faq-menu a { color: #313b40; padding: 8px 0; font-size: 15px; border-bottom: 1px solid #eee; }
.faq-menu a:last-child { border-bottom: 0; }
.faq-menu a:hover { color: #535e76; text-decoration: none; }
.faq-menu a i { color: #aaaaaa; margin-right: 8px; }

/* Card */
.faq-card { background: #fff; border-radius: 4px; box-shadow: 2px 4px 20px -4px rgba(0,0,0,.1); padding: 20px 30px 15px; margin-bottom: 20px; transition: box-shadow .2s ease; }
.faq-card:hover { box-shadow: 2px 6px 24px -4px rgba(0,0,0,.16); }
.faq-card__head { display: flex; align-items: center; gap: 10px; padding-bottom: 12px; border-bottom: 1px solid #eaeaea; }
.faq-card__avatar img { width: 32px; height: 32px; border-radius: 50%; display: block; }
.faq-card__author { display: flex; gap: 10px; align-items: baseline; }
.faq-card__name { font-weight: 600; font-size: 16px; color: #313b40; }
.faq-card__date { font-size: 13px; color: #aaaaaa; }
.faq-card__status { margin-left: auto; font-weight: 600; font-size: 14px; }
.faq-card__status--yes { color: #08d948; }
.faq-card__status--no { color: #ff3d3d; }
.faq-card__body { padding: 12px 0 5px; }
.faq-card__title { font-family: 'Ubuntu Bold'; font-size: 20px; line-height: 1.3; margin: 0 0 10px; font-weight: normal; }
.faq-card__title a { color: #313b40; display: block; padding: 5px 0; }
.faq-card__title a:hover { color: #535e76; text-decoration: none; }
.faq-card__excerpt { font-size: 14px; line-height: 20px; color: #4a4a4a; }
.faq-card__footer { display: flex; align-items: center; gap: 15px; padding-top: 10px; font-size: 14px; }
.faq-card__cat { color: #aaaaaa; }
.faq-card__cat a { color: #aaaaaa; }
.faq-card__cat a:hover { color: #535e76; text-decoration: none; }
.faq-card__stat { color: #aaaaaa; }
.faq-card__more { margin-left: auto; }
.faq-card__more a { color: #535e76; font-size: 15px; border-bottom: 1px dashed #535e76; }
.faq-card__more a:hover { color: #313b40; border-bottom-color: #313b40; text-decoration: none; }

/* Question page */
.faq-question { background: #fff; border-radius: 4px; box-shadow: 2px 4px 20px -4px rgba(0,0,0,.1); padding: 25px 40px; }
.faq-question__head { padding-bottom: 20px; border-bottom: 1px solid #eaeaea; margin-bottom: 25px; }
.faq-question__title { font-family: 'Ubuntu Bold'; font-size: 30px; line-height: 1.25; color: #313b40; margin: 0 0 15px; font-weight: normal; }
.faq-question__meta { display: flex; gap: 20px; font-size: 14px; color: #aaaaaa; }
.faq-question__meta a { color: #aaaaaa; }
.faq-question__meta a:hover { color: #535e76; text-decoration: none; }

.faq-message { display: flex; background: #f3f3f3; border-radius: 4px; padding: 20px; margin-bottom: 25px; position: relative; }
.faq-message--answer { background: #fff; border: 1px solid #eaeaea; }
.faq-message__side { flex: 0 0 150px; text-align: center; }
.faq-message__avatar img { width: 60px; height: 60px; border-radius: 50%; margin: 5px 0 10px; }
.faq-message__name { font-size: 14px; color: #313b40; font-weight: 600; }
.faq-message__date { font-size: 12px; color: #aaaaaa; margin-top: 5px; line-height: 1.4; }
.faq-message__body { flex: 1 1 auto; min-width: 0; padding-left: 20px; border-left: 2px solid #535e76; }
.faq-message__text { font-size: 16px; line-height: 1.55; color: #313b40; }
.faq-message__foot { flex-basis: 100%; display: flex; justify-content: space-between; padding-top: 15px; margin-top: 15px; border-top: 1px solid #eaeaea; font-size: 14px; color: #aaaaaa; }

.faq-answer-title { font-family: 'Ubuntu Bold'; font-size: 22px; color: #313b40; border-bottom: 1px solid #aaa; padding-bottom: 10px; margin-bottom: 20px; font-weight: normal; }
.faq-answer-title i { float: right; color: #08d948; }

/* Promo / share */
.faq-promo { display: flex; align-items: center; gap: 20px; background: #fff; border-radius: 4px; padding: 20px 25px; margin: 25px 0; box-shadow: 2px 4px 20px -4px rgba(0,0,0,.08); }
.faq-promo__image img { max-width: 80px; }
.faq-promo__title { font-family: 'Ubuntu Bold'; font-size: 20px; color: #313b40; }
.faq-promo__desc { font-size: 14px; color: #aaaaaa; }
.faq-promo__action { margin-left: auto; }
.faq-promo__action a { background: #ffdd2d; color: #000; padding: 12px 25px; border-radius: 4px; font-weight: 600; }
.faq-promo__action a:hover { opacity: .85; text-decoration: none; }

.faq-share { margin: 20px 0; }

/* Related */
.faq-related { margin-top: 25px; padding-top: 20px; border-top: 1px solid #eaeaea; }
.faq-related__title { font-family: 'Ubuntu Bold'; font-size: 20px; color: #313b40; margin-bottom: 15px; font-weight: normal; }
.faq-related__list .full-random-link { display: inline-block; width: 48%; vertical-align: top; margin: 1%; }

/* Pagination */
.faq-pagination { margin: 20px 0; text-align: center; }
.faq-pagination a, .faq-pagination span { display: inline-block; padding: 6px 12px; margin: 0 2px; border-radius: 4px; background: #fff; border: 1px solid #eaeaea; color: #313b40; font-size: 14px; }
.faq-pagination a:hover { border-color: #ffdd2d; text-decoration: none; }
.faq-pagination span { background: #ffdd2d; border-color: #ffdd2d; font-weight: 600; }

/* Info/error */
.faq-info { background: #fff; border-radius: 4px; padding: 30px 40px; box-shadow: 2px 4px 20px -4px rgba(0,0,0,.1); text-align: center; }
.faq-info__title { font-family: 'Ubuntu Bold'; font-size: 24px; color: #313b40; margin-bottom: 10px; }
.faq-info__body { font-size: 15px; color: #4a4a4a; }

/* Form */
.faq-form-wrap { max-width: 800px; }
.faq-form { background: #fff; border-radius: 4px; box-shadow: 2px 4px 20px -4px rgba(0,0,0,.1); padding: 30px 40px; }
.faq-form__title { font-family: 'Ubuntu Bold'; font-size: 26px; color: #313b40; margin-bottom: 10px; font-weight: normal; }
.faq-form__hint { font-size: 14px; color: #aaaaaa; margin-bottom: 25px; }
.faq-form__row { margin-bottom: 15px; }
.faq-form__row--half { display: flex; gap: 15px; }
.faq-form__row--half .faq-form__field { flex: 1 1 50%; }
.faq-form__row input[type="text"], .faq-form__row input[type="email"], .faq-form__row select, .faq-form__row textarea { width: 100%; box-sizing: border-box; font-size: 15px; padding: 12px 15px; border: 1px solid #d0d0d0; border-radius: 4px; font-family: inherit; }
.faq-form__row input:focus, .faq-form__row select:focus, .faq-form__row textarea:focus { border-color: #ffdd2d; outline: none; }
.faq-form__submit { font-family: inherit; font-weight: 600; font-size: 16px; padding: 14px 30px; border: 0; border-radius: 4px; background: #ffdd2d; color: #000; cursor: pointer; }
.faq-form__submit:hover { opacity: .85; }
.faq-form__captcha { margin-bottom: 10px; }

/* Comments */
.faq-comment { display: flex; gap: 15px; padding: 20px 0; border-bottom: 1px solid #eaeaea; }
.faq-comment__avatar img { width: 50px; height: 50px; border-radius: 50%; }
.faq-comment__body { flex: 1 1 auto; min-width: 0; }
.faq-comment__head { display: flex; gap: 10px; align-items: baseline; margin-bottom: 10px; }
.faq-comment__author { font-weight: 600; font-size: 15px; color: #313b40; }
.faq-comment__date { font-size: 13px; color: #aaaaaa; }
.faq-comment__text { font-size: 15px; line-height: 1.5; color: #313b40; }
.faq-comment__signature { margin-top: 10px; padding-top: 10px; border-top: 1px dashed #eaeaea; font-size: 13px; color: #aaaaaa; }
.faq-comment__foot { display: flex; align-items: center; margin-top: 10px; gap: 15px; }
.faq-comment__actions { display: flex; gap: 10px; font-size: 14px; }
.faq-comment__action { color: #535e76; }
.faq-comment__action:hover { color: #313b40; text-decoration: none; }
.faq-comment__rate { margin-left: auto; display: flex; align-items: center; gap: 5px; font-size: 14px; color: #aaaaaa; }
.faq-comment__rate-val { color: #ff3d3d; font-weight: 600; }
.faq-comment__rate img { cursor: pointer; vertical-align: middle; }

/* Comment form */
.faq-cform { background: #f8f8f8; border-radius: 4px; padding: 20px; margin-top: 20px; }
.faq-cform__title { font-family: 'Ubuntu Bold'; font-size: 20px; color: #313b40; margin: 0 0 15px; font-weight: normal; }
.faq-cform__row { margin-bottom: 12px; }
.faq-cform__label { display: block; font-size: 13px; color: #666; margin-bottom: 5px; }
.faq-cform__req { color: #ff3d3d; }
.faq-cform__input { width: 100%; max-width: 400px; padding: 10px 12px; border: 1px solid #d0d0d0; border-radius: 4px; font-size: 14px; box-sizing: border-box; font-family: inherit; }
.faq-cform__input:focus { border-color: #ffdd2d; outline: none; }
.faq-cform__editor { margin-top: 5px; }
.faq-cform__submit { font-family: inherit; font-weight: 600; padding: 10px 25px; border: 0; border-radius: 4px; background: #ffdd2d; color: #000; cursor: pointer; margin-right: 10px; }
.faq-cform__close { font-family: inherit; padding: 10px 25px; border: 1px solid #ccc; border-radius: 4px; background: #fff; color: #313b40; cursor: pointer; }

/* Experts */
.faq-experts { background: #fafafa; padding: 15px 20px; border-top: 1px dashed #dadada; border-bottom: 1px dashed #dadada; margin-bottom: 20px; }
.faq-experts__list { list-style: none; padding: 0; margin: 0; }
.faq-experts__item { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid #eaeaea; }
.faq-experts__item:last-child { border-bottom: 0; }
.faq-experts__icon { width: 30px; height: 30px; }
.faq-experts__name { font-weight: 600; color: #313b40; flex: 1 1 auto; }
.faq-experts__actions { font-size: 13px; display: flex; gap: 12px; }
.faq-experts__nav { text-align: center; margin: 10px 0; }

/* Tagscloud */
.faq-tagscloud { background: #fff; border-radius: 4px; box-shadow: 2px 4px 20px -4px rgba(0,0,0,.1); padding: 25px 30px; }
.faq-tagscloud__title { font-family: 'Ubuntu Bold'; font-size: 20px; color: #313b40; margin-bottom: 15px; font-weight: normal; }
.faq-tagscloud__list { line-height: 2; }
.faq-tagscloud__list a { display: inline-block; padding: 3px 10px; margin: 3px; background: #f3f3f3; border-radius: 4px; color: #313b40; font-size: 14px; }
.faq-tagscloud__list a:hover { background: #ffdd2d; text-decoration: none; }

/* Blocks (sidebar showblock) */
.faq-block-list { list-style: none; padding: 0; margin: 0; }
.faq-block-list__item { padding: 8px 0; border-bottom: 1px solid #f0f0f0; font-size: 14px; }
.faq-block-list__item:last-child { border-bottom: 0; }
.faq-block-list__item a { color: #313b40; }
.faq-block-list__item a:hover { color: #535e76; text-decoration: none; }
.faq-block-list__badge { color: #ff3d3d; font-weight: 600; margin-left: 5px; }
.faq-block-random { padding: 8px 0; font-size: 14px; }
.faq-block-random a { color: #313b40; }
.faq-block-random a:hover { color: #535e76; text-decoration: none; }
.faq-block-user__title { font-family: 'Ubuntu Bold'; font-size: 18px; color: #313b40; margin-bottom: 12px; font-weight: normal; }
.faq-block-user__list { list-style: none; padding: 0; margin: 0; }
.faq-block-user__item { padding: 8px 0; border-bottom: 1px solid #f0f0f0; }
.faq-block-user__item a { color: #313b40; }
.faq-block-user__item a:hover { color: #535e76; text-decoration: none; }
.faq-block-user__badge { color: #ff3d3d; }

/* Userinfo (popup) */
.faq-userinfo__title { font-family: 'Ubuntu Bold'; font-size: 18px; margin-bottom: 10px; font-weight: normal; }
.faq-userinfo__subtitle { font-family: 'Ubuntu Bold'; font-size: 16px; margin: 15px 0 8px; font-weight: normal; }
.faq-userinfo__stats, .faq-userinfo__list { list-style: none; padding: 0; margin: 0; }
.faq-userinfo__stats li, .faq-userinfo__list li { padding: 6px 0; font-size: 14px; }
.faq-userinfo__label { color: #888; }
.faq-userinfo__badge { color: #ff3d3d; }

/* Responsive */
@media (max-width: 768px) {
	.faq-hero { padding: 25px 20px; }
	.faq-hero__title span { font-size: 26px; padding: 0 10px; }
	.faq-search { flex-direction: column; }
	.faq-search__field input { border-radius: 4px; }
	.faq-search__btn { flex-basis: auto; margin-top: 10px; }
	.faq-search__btn button { border-radius: 4px; }

	.faq-card { padding: 15px 20px; }
	.faq-card__title { font-size: 18px; }
	.faq-card__footer { flex-wrap: wrap; gap: 10px; }

	.faq-question { padding: 20px; }
	.faq-question__title { font-size: 22px; }
	.faq-message { flex-direction: column; padding: 15px; }
	.faq-message__side { text-align: left; display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
	.faq-message__avatar img { margin: 0; width: 44px; height: 44px; }
	.faq-message__body { padding-left: 0; border-left: 0; }
	.faq-message__text { font-size: 15px; }

	.faq-promo { flex-direction: column; text-align: center; }
	.faq-promo__action { margin: 0; }

	.faq-related__list .full-random-link { width: 100%; margin: 5px 0; }

	.faq-form { padding: 20px; }
	.faq-form__row--half { flex-direction: column; }
}

@media (max-width: 480px) {
	.faq-card__head { flex-wrap: wrap; }
	.faq-card__status { margin-left: 0; flex-basis: 100%; }
	.faq-comment { flex-direction: column; }
}