/*
Theme Name: IQ Meter Lite
Theme URI: https://iq-meter.com/
Author: Nikita
Author URI: https://iq-meter.com/
Description: Легкая кастомная тема для IQ-meter.com без сайдбаров и лишнего мусора.
Version: 1.1
Text Domain: iqmeterlite
Domain Path: /languages
*/

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	margin: 0;
	padding: 0;
	scroll-behavior: smooth;
}

body {
	margin: 0;
	padding: 0;
	background: #fff;
	color: #222;
	font-family: Arial, sans-serif;
	font-size: 17px;
	line-height: 1.5;
	font-weight: 400;
}

body,
button,
input,
select,
textarea {
	font-family: Arial, sans-serif;
	font-size: 17px;
	line-height: 1.5;
	font-weight: 400;
}

a {
	color: #337ab7;
	text-decoration: none;
}

a:hover {
	text-decoration: none;
}

img {
	display: block;
	max-width: 100%;
	height: auto;
}

p,
a,
h1,
h2,
h3,
h4,
h5,
h6 {
	unicode-bidi: isolate;
}

p {
	margin: 20px 0;
	padding: 0;
	font-size: 17px;
	line-height: 1.5;
	font-weight: 400;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	margin: 20px 0;
	line-height: 1.2;
	font-weight: 500;
	color: #222;
}

h1 {
	font-size: 42px;
}

h2 {
	font-size: 35px;
}

h3 {
	font-size: 29px;
}

h4 {
	font-size: 24px;
}

h5 {
	font-size: 20px;
}

ol,
ul {
	margin: 0 0 1.5em 3em;
	padding: 0;
}

ul {
	list-style: disc;
}

ol {
	list-style: decimal;
}

li > ol,
li > ul {
	margin-bottom: 0;
	margin-left: 1.5em;
}

table {
	width: 100%;
	border-collapse: collapse;
}

td,
th {
	padding: 8px;
	border: 1px solid #bbbbbb;
}

thead {
	background: #dbdbdb;
	font-weight: 500;
}

code {
	margin: 0;
	padding: 2px 4px;
	color: #222;
	background: #f2f4f5;
	border-radius: 2px;
	font-family: monospace;
}

input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
	margin: 0;
	-webkit-appearance: none;
}

input[type="number"] {
	-moz-appearance: textfield;
}

.screen-reader-text,
.skip-link {
	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;
	top: 10px;
	left: 10px;
	width: auto;
	height: auto;
	padding: 8px 12px;
	margin: 0;
	clip: auto;
	background: #111;
	color: #fff;
	z-index: 9999;
}

.site-header {
	background: #337ab7;
	color: #fff;
	padding: 20px 0;
}

.site-header a {
	color: #fff;
}

.grid-container {
	width: 100%;
	max-width: 1200px;
	margin-left: auto;
	margin-right: auto;
	padding-left: 20px;
	padding-right: 20px;
}

.site-branding-container {
	display: inline-flex;
	align-items: center;
}

.site-logo {
	padding: 0 12px 0 0;
	flex-shrink: 0;
}

.site-logo img {
	max-height: 64px;
	width: auto;
}

.main-title {
	margin: 0;
	padding: 0;
	font-size: 30px;
	line-height: 1.1;
	font-weight: 600;
}

.main-title a {
	color: #fff;
}

.site-content {
	padding: 40px 0;
	background: #fff;
}

.site-main,
.content-area {
	width: 100%;
}

.entry-header {
	margin-bottom: 25px;
}

.entry-title,
.page-title {
	margin: 0 0 10px;
	font-size: 30px;
	font-weight: 500;
}

.entry-content,
.entry-summary,
.archive-description {
	word-wrap: break-word;
	overflow-wrap: break-word;
}

.entry-content > *:first-child,
.entry-summary > *:first-child {
	margin-top: 0;
}

.entry-content > *:last-child,
.entry-summary > *:last-child {
	margin-bottom: 0;
}

.post-thumbnail,
.featured-image,
.page-header-image,
.page-header-image-single,
.entry-meta,
.byline,
.cat-links,
.tags-links,
.comments-area,
#comments,
.search-form,
.search-field,
.search-submit {
	display: none !important;
}

.breadcrumbs {
	margin: 0 0 25px;
	font-size: 14px;
	line-height: 1.4;
	color: #666;
}

.breadcrumbs a {
	color: #337ab7;
}

.breadcrumbs .sep {
	margin: 0 8px;
	color: #999;
}

.author-box {
	display: flex;
	gap: 20px;
	align-items: flex-start;
	margin-top: 40px;
	padding: 24px;
	border: 1px solid #e3e3e3;
	border-radius: 12px;
	background: #fafafa;
}

.author-box__avatar {
	flex: 0 0 auto;
}

.author-box__avatar img {
	display: block;
	width: 72px;
	height: 72px;
	border-radius: 50%;
}

.author-box__content {
	min-width: 0;
	flex: 1 1 auto;
}

.author-box__label {
	margin: 0 0 6px;
	font-size: 14px;
	color: #666;
}

.author-box__name {
	margin: 0 0 10px;
	font-size: 22px;
	font-weight: 600;
	line-height: 1.2;
}

.author-box__bio {
	margin: 0;
}

.author-box__bio p {
	margin: 0 0 10px;
}

.author-box__bio p:last-child {
	margin-bottom: 0;
}

.author-box__link,
.author-box__socials {
	display: inline-flex;
	align-items: center;
	vertical-align: middle;
	margin-top: 14px;
}

.author-box__link {
	margin-right: 14px;
}

.author-box__link a {
	text-decoration: none;
	font-weight: 500;
}

.author-box__socials {
	gap: 10px;
	vertical-align: baseline;
}

.author-social {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	background: #337ab7;
	color: #fff;
	text-decoration: none;
	transition: background-color .2s ease, color .2s ease;
}

.author-social:hover {
	color: #dedede;
}

@media (max-width: 768px) {
	.author-box {
		display: block;
		padding: 18px;
	}

	.author-box__avatar {
		float: left;
		margin: 0 14px 8px 0;
	}

	.author-box__avatar img {
		width: 64px;
		height: 64px;
	}

	.author-box__name {
		font-size: 20px;
	}

	.author-box__link {
		margin-right: 10px;
	}

	.author-box__link,
	.author-box__socials {
		margin-top: 10px;
	}
}

.author-box::after {
	content: "";
	display: block;
	clear: both;
}

.faq-accordion {
	margin: 30px 0;
	border-top: 1px solid #ddd;
}

.faq-item {
	border-bottom: 1px solid #ddd;
}

.faq-question {
	position: relative;
	display: block;
	padding: 18px 44px 18px 0;
	cursor: pointer;
	list-style: none;
	font-size: 24px;
	font-weight: 500;
	line-height: 1.25;
	color: #222;
}

.faq-question::-webkit-details-marker {
	display: none;
}

.faq-question::after {
	content: "+";
	position: absolute;
	right: 0;
	top: 50%;
	transform: translateY(-50%);
	font-size: 28px;
	line-height: 1;
	color: #337ab7;
}

.faq-item[open] .faq-question::after {
	content: "−";
}

.faq-answer {
	padding: 0 0 18px;
}

.faq-answer > *:first-child {
	margin-top: 0;
}

.faq-answer > *:last-child {
	margin-bottom: 0;
}

.site-footer {
	background: #337ab7;
	color: #fff;
}

.site-footer a {
	color: #fff;
}

.site-info {
	padding: 20px 0;
}

.site-info::after {
	content: "";
	display: table;
	clear: both;
}

.footer-left {
	float: left;
	max-width: 55%;
}

.footer-left p {
	margin: 0;
}

.footer-right {
	float: right;
	max-width: 45%;
	text-align: right;
}

.footer-right .polylang-switcher,
.footer-right .footer-policies {
	margin-bottom: 10px;
}

.footer-right .footer-policies:last-child {
	margin-bottom: 0;
}

.footer-right ul,
.footer-policies-menu {
	margin: 0;
	padding: 0;
	list-style: none;
}

.footer-right li,
.footer-policies-menu li {
	display: inline-block;
	margin: 0 0 0 14px;
	padding: 0;
}

.language-switcher-label {
	display: block;
	margin-bottom: 6px;
	font-size: 14px;
	color: #fff;
}

.language-switcher-select {
	max-width: 100%;
	padding: 6px 10px;
	border: 1px solid rgba(255,255,255,.45);
	border-radius: 6px;
	background: #fff;
	color: #222;
	font-size: 14px;
}

.link-start-test {
	margin: 70px 0;
	text-align: center;
}

.link-start-test a,
.link-start-test-widget a {
	display: inline-block;
	padding: 14px 36px;
	border-radius: 8px;
	background: #337ab7;
	color: #fff;
	font-size: 34px;
	font-weight: 600;
	line-height: 1;
	text-decoration: none !important;
}

.link-start-test-widget {
	margin-top: 20px;
	text-align: center;
}

.link-start-test-widget a {
	display: inline-flex;
	align-items: center;
	padding: 15px 25px;
	white-space: normal;
	overflow-wrap: normal;
	word-break: keep-all;
	hyphens: manual;
}

.link-start-test-widget p {
	margin-top: 18px;
}

.link-start-test a:hover,
.link-start-test-widget a:hover {
	color: #dedede;
}

.home-games-block {
	margin-bottom: 40px;
}

.home-games-block a.all-games {
	font-size: 20px;
	font-weight: 500;
}

.not-found {
	padding: 30px 0 10px;
}

.not-found__title {
	margin-bottom: 12px;
}

.not-found__actions {
	margin-top: 24px;
}

.not-found__home {
	display: inline-block;
	padding: 12px 20px;
	border-radius: 8px;
	background: #337ab7;
	color: #fff;
	font-weight: 600;
}

body.archive .site-main {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 24px;
}

body.archive .site-main > header.page-header {
	grid-column: 1 / -1;
}

body.archive .site-main > article.post {
	margin: 0;
}

body.archive .site-main > article.post .inside-article,
.im-cat-tiles > article.post .inside-article {
	position: relative;
	padding: 0;
	overflow: hidden;
	border-radius: 12px;
}

body.archive .site-main > article.post .inside-article {
	box-shadow: 0 10px 28px rgba(0, 0, 0, .08);
}

body.archive .site-main > article.post .post-image,
.im-cat-tiles > article.post .post-image {
	margin: 0;
	overflow: hidden;
	aspect-ratio: 1 / 1;
}

.im-cat-tiles > article.post .post-image:empty {
	background: rgba(0, 0, 0, .06);
}

body.archive .site-main > article.post .post-image img,
.im-cat-tiles > article.post .post-image img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transform: scale(1);
	transition: transform .25s ease;
}

body.archive .site-main > article.post:hover .post-image img,
.im-cat-tiles > article.post:hover .post-image img {
	transform: scale(1.03);
}

body.archive .site-main > article.post .entry-header,
.im-cat-tiles > article.post .entry-header {
	position: absolute;
	inset: 0;
	z-index: 2;
	margin: 0;
}

body.archive .site-main > article.post .entry-title,
.im-cat-tiles > article.post .entry-title {
	height: 100%;
	margin: 0;
}

body.archive .site-main > article.post .entry-title a,
.im-cat-tiles > article.post .entry-title a {
	position: absolute;
	inset: 0;
	z-index: 1;
	display: flex;
	align-items: flex-start;
	padding: 16px;
	color: #fff;
	font-weight: 600;
	line-height: 1.25;
	text-decoration: none;
	isolation: isolate;
}

body.archive .site-main > article.post .entry-title a {
	font-size: 24px;
}

.im-cat-tiles > article.post .entry-title a {
	font-size: 18px;
}

body.archive .site-main > article.post .entry-title a::before,
.im-cat-tiles > article.post .entry-title a::before {
	position: absolute;
	inset: 0;
	z-index: -1;
	content: "";
	background: linear-gradient(to bottom, rgba(0, 0, 0, .78) 0, rgba(0, 0, 0, .2) 100%, rgba(0, 0, 0, 0) 82%);
}

body.archive .site-main > article.post .entry-summary,
body.archive .site-main > article.post .read-more,
body.archive .site-main > article.post .entry-meta,
body.archive .site-main > article.post footer.entry-meta,
.im-cat-tiles > article.post .entry-summary,
.im-cat-tiles > article.post .read-more {
	display: none !important;
}

body.archive .site-main > article.post .entry-title a:focus-visible {
	outline: 3px solid #fff;
	outline-offset: -3px;
}

.im-cat-tiles {
	display: flex;
	gap: 24px;
	overflow-x: auto;
	overflow-y: hidden;
	padding: 4px 2px 10px;
	-webkit-overflow-scrolling: touch;
}

.im-cat-tiles > article.post {
	flex: 0 0 200px;
	margin: 0;
}

@media (min-width: 769px) {
	.im-cat-tiles {
		scrollbar-width: thin;
		scrollbar-color: rgba(0, 0, 0, .35) rgba(0, 0, 0, .1);
	}

	.im-cat-tiles::-webkit-scrollbar {
		height: 10px;
	}

	.im-cat-tiles::-webkit-scrollbar-track {
		background: rgba(0, 0, 0, .1);
		border-radius: 999px;
	}

	.im-cat-tiles::-webkit-scrollbar-thumb {
		background: rgba(0, 0, 0, .35);
		border: 2px solid rgba(0, 0, 0, .1);
		border-radius: 999px;
	}

	.im-cat-tiles::-webkit-scrollbar-thumb:hover {
		background: rgba(0, 0, 0, .5);
	}
}

@media (max-width: 1024px) {
	body.archive .site-main {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 768px) {
	h1 {
		font-size: 35px;
	}

	h2 {
		font-size: 30px;
	}

	h3 {
		font-size: 25px;
	}

	h4,
	.faq-question {
		font-size: 22px;
	}

	.main-title {
		font-size: 20px;
	}

	.site-logo img {
		max-height: 48px;
	}

	.grid-container {
		padding-left: 10px;
		padding-right: 10px;
	}

	.site-content {
		padding: 10px 0;
	}

	.entry-title,
	.page-title {
		font-size: 35px;
	}

	body.archive .site-main {
		grid-template-columns: 1fr;
	}

	.im-cat-tiles {
		scrollbar-width: none;
		-ms-overflow-style: none;
	}

	.im-cat-tiles::-webkit-scrollbar {
		display: none;
	}

	.im-cat-tiles > article.post {
		flex-basis: 230px;
	}

	.author-box {
		flex-direction: column;
		gap: 14px;
	}

	.footer-left,
	.footer-right {
		float: none;
		max-width: 100%;
		text-align: left;
	}

	.footer-right {
		margin-top: 18px;
	}

	.footer-right li,
	.footer-policies-menu li {
		display: block;
		margin: 0 0 8px;
	}
}