/*
Theme Name: Tehnika-check
Theme URI: https://tehnika-check.pro/
Author: Tehnika-check
Description: Лёгкая редакционная тема для обзоров, рейтингов и материалов о бытовой технике. Совместима с Gutenberg и Elementor.
Version: 1.1.0
Requires at least: 5.9
Tested up to: 7.0
Requires PHP: 7.4
Text Domain: tehnika-check
*/

:root {
	--tc-bg: #f7f2ea;
	--tc-surface: #fffdf9;
	--tc-surface-soft: #efe3d4;
	--tc-border: #dec9b4;
	--tc-accent: #a76532;
	--tc-accent-dark: #75401f;
	--tc-caramel: #c99a62;
	--tc-chocolate: #4a2d1e;
	--tc-text: #2a1b14;
	--tc-muted: #6f5b50;
	--tc-success: #55744d;
	--tc-warning: #8b5a23;
	--tc-radius-sm: 12px;
	--tc-radius: 20px;
	--tc-radius-lg: 32px;
	--tc-shadow: 0 18px 54px rgba(74, 45, 30, 0.1);
	--tc-content: 1180px;
	--tc-reading: 760px;
}

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

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	background: var(--tc-bg);
	color: var(--tc-text);
	font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
	font-size: 17px;
	line-height: 1.65;
	text-rendering: optimizeLegibility;
}

body.admin-bar .tc-header {
	top: 32px;
}

a {
	color: var(--tc-accent-dark);
	text-decoration-thickness: 1px;
	text-underline-offset: 0.18em;
}

a:hover {
	color: var(--tc-accent);
}

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

button,
input,
select,
textarea {
	font: inherit;
}

:focus-visible {
	outline: 3px solid var(--tc-caramel);
	outline-offset: 3px;
}

.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;
	z-index: 99999;
	top: 12px;
	left: 12px;
	width: auto;
	height: auto;
	padding: 12px 18px;
	clip: auto;
	background: var(--tc-text);
	color: #fff;
	border-radius: 8px;
}

.tc-container {
	width: min(calc(100% - 40px), var(--tc-content));
	margin-inline: auto;
}

.tc-header {
	position: sticky;
	z-index: 100;
	top: 0;
	background: rgba(247, 242, 234, 0.94);
	border-bottom: 1px solid rgba(167, 101, 50, 0.14);
	backdrop-filter: blur(16px);
}

.tc-header__inner {
	min-height: 82px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 28px;
}

.tc-brand {
	display: inline-flex;
	align-items: center;
	flex: 0 0 auto;
	text-decoration: none;
}

.tc-brand img {
	display: block;
	width: 246px;
	max-height: 60px;
	object-fit: contain;
	object-position: left center;
}

.tc-nav ul {
	display: flex;
	align-items: center;
	gap: 30px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.tc-nav a {
	color: var(--tc-text);
	font-size: 15px;
	font-weight: 650;
	text-decoration: none;
}

.tc-nav a:hover,
.tc-nav .current-menu-item > a {
	color: var(--tc-accent);
}

.tc-menu-toggle {
	display: none;
	width: 46px;
	height: 46px;
	padding: 0;
	border: 1px solid var(--tc-border);
	border-radius: 50%;
	background: var(--tc-surface);
	color: var(--tc-text);
	cursor: pointer;
}

.tc-main {
	min-height: 60vh;
}

.tc-hero {
	padding: 74px 0 42px;
}

.tc-hero__grid {
	display: grid;
	grid-template-columns: minmax(0, 1.18fr) minmax(360px, 0.82fr);
	align-items: stretch;
	gap: 36px;
}

.tc-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	margin: 0 0 18px;
	color: var(--tc-accent-dark);
	font-size: 13px;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.tc-eyebrow::before {
	content: "";
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--tc-caramel);
	box-shadow: 0 0 0 6px rgba(201, 154, 98, 0.18);
}

h1,
h2,
h3,
h4 {
	margin: 0 0 0.55em;
	color: var(--tc-text);
	font-family: Georgia, "Times New Roman", serif;
	line-height: 1.08;
	letter-spacing: -0.035em;
}

h1 {
	font-size: clamp(42px, 6vw, 76px);
}

h2 {
	font-size: clamp(32px, 4vw, 50px);
}

h3 {
	font-size: clamp(23px, 2.5vw, 31px);
}

.tc-hero__lead {
	max-width: 680px;
	margin: 0 0 30px;
	color: var(--tc-muted);
	font-size: clamp(18px, 2vw, 22px);
}

.tc-search {
	display: flex;
	gap: 10px;
	max-width: 690px;
	padding: 8px;
	background: var(--tc-surface);
	border: 1px solid var(--tc-border);
	border-radius: 18px;
	box-shadow: 0 12px 34px rgba(74, 45, 30, 0.08);
}

.tc-search label {
	flex: 1;
}

.tc-search input[type="search"] {
	width: 100%;
	height: 54px;
	padding: 0 18px;
	border: 0;
	outline: 0;
	background: transparent;
	color: var(--tc-text);
}

.tc-button,
.tc-search button,
.wp-block-button__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 50px;
	padding: 12px 22px;
	border: 1px solid var(--tc-accent);
	border-radius: 14px;
	background: var(--tc-accent);
	color: #fff;
	font-size: 15px;
	font-weight: 800;
	line-height: 1.25;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
	transition: transform 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.tc-button:hover,
.tc-search button:hover,
.wp-block-button__link:hover {
	transform: translateY(-1px);
	background: var(--tc-accent-dark);
	color: #fff;
	box-shadow: 0 10px 24px rgba(117, 64, 31, 0.2);
}

.tc-button--ghost {
	background: transparent;
	color: var(--tc-accent-dark);
}

.tc-button--ghost:hover {
	background: var(--tc-surface-soft);
	color: var(--tc-text);
}

.tc-hero-card {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	min-height: 420px;
	padding: 34px;
	overflow: hidden;
	background:
		radial-gradient(circle at 86% 18%, rgba(255, 255, 255, 0.85) 0 7%, transparent 7.5%),
		linear-gradient(145deg, #ead7c1 0%, #d8b187 52%, #a76532 160%);
	border: 1px solid rgba(117, 64, 31, 0.16);
	border-radius: var(--tc-radius-lg);
	box-shadow: var(--tc-shadow);
}

.tc-hero-card::after {
	content: "";
	position: absolute;
	right: -56px;
	bottom: -72px;
	width: 280px;
	height: 280px;
	border: 58px solid rgba(255, 253, 249, 0.36);
	border-radius: 50%;
}

.tc-hero-card__mark {
	position: relative;
	z-index: 1;
	display: grid;
	place-items: center;
	width: 64px;
	height: 64px;
	border-radius: 20px;
	background: rgba(255, 253, 249, 0.88);
	color: var(--tc-accent-dark);
	font-family: Georgia, serif;
	font-size: 34px;
	font-weight: 700;
	box-shadow: 0 12px 28px rgba(74, 45, 30, 0.12);
}

.tc-hero-card__content {
	position: relative;
	z-index: 1;
	max-width: 330px;
}

.tc-hero-card__content h2 {
	font-size: clamp(29px, 3vw, 40px);
}

.tc-section {
	padding: 70px 0;
}

.tc-section--tight {
	padding-top: 24px;
}

.tc-section--surface {
	background: var(--tc-surface);
	border-block: 1px solid rgba(167, 101, 50, 0.12);
}

.tc-section__head {
	display: flex;
	align-items: end;
	justify-content: space-between;
	gap: 24px;
	margin-bottom: 30px;
}

.tc-section__head p {
	max-width: 600px;
	margin: 0;
	color: var(--tc-muted);
}

.tc-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 20px;
}

.tc-grid--4 {
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

.tc-card {
	position: relative;
	display: flex;
	flex-direction: column;
	min-height: 100%;
	padding: 26px;
	background: var(--tc-surface);
	border: 1px solid var(--tc-border);
	border-radius: var(--tc-radius);
	box-shadow: 0 8px 30px rgba(74, 45, 30, 0.045);
}

.tc-card:hover {
	border-color: var(--tc-caramel);
}

.tc-card h3 {
	margin-bottom: 12px;
	font-size: 25px;
}

.tc-card p {
	margin: 0 0 22px;
	color: var(--tc-muted);
}

.tc-card__link {
	margin-top: auto;
	font-weight: 800;
	text-decoration: none;
}

.tc-category-card {
	min-height: 210px;
}

.tc-category-card__icon {
	display: grid;
	place-items: center;
	width: 54px;
	height: 54px;
	margin-bottom: 28px;
	border-radius: 16px;
	background: var(--tc-surface-soft);
	color: var(--tc-accent-dark);
	font-size: 24px;
	font-weight: 800;
}

.tc-post-card__meta,
.tc-article__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 10px 18px;
	margin-bottom: 14px;
	color: var(--tc-muted);
	font-size: 13px;
}

.tc-badge {
	display: inline-flex;
	align-items: center;
	width: fit-content;
	padding: 7px 11px;
	border-radius: 999px;
	background: var(--tc-surface-soft);
	color: var(--tc-accent-dark);
	font-size: 12px;
	font-weight: 850;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.tc-badge--demo {
	background: #fff2d9;
	color: #70430e;
}

.tc-feature {
	display: grid;
	grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.95fr);
	gap: 0;
	overflow: hidden;
	background: var(--tc-chocolate);
	border-radius: var(--tc-radius-lg);
	box-shadow: var(--tc-shadow);
}

.tc-feature__content {
	padding: clamp(34px, 5vw, 64px);
	color: #f9ede2;
}

.tc-feature__content h2,
.tc-feature__content h3 {
	color: #fffaf5;
}

.tc-feature__content p {
	color: #ddc9bb;
}

.tc-feature__visual {
	position: relative;
	min-height: 390px;
	background: linear-gradient(145deg, #f0e0cf 0%, #c18c59 100%);
}

.tc-feature__visual::before,
.tc-feature__visual::after {
	content: "";
	position: absolute;
	border-radius: 50%;
	border: 44px solid rgba(255, 255, 255, 0.34);
}

.tc-feature__visual::before {
	width: 250px;
	height: 250px;
	top: 48px;
	left: 50%;
	transform: translateX(-50%);
}

.tc-feature__visual::after {
	width: 116px;
	height: 116px;
	right: 34px;
	bottom: 32px;
	border-width: 22px;
}

.tc-proof {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 18px;
}

.tc-proof__item {
	padding: 24px 0;
	border-top: 2px solid var(--tc-caramel);
}

.tc-proof__number {
	display: block;
	margin-bottom: 8px;
	color: var(--tc-accent-dark);
	font-family: Georgia, serif;
	font-size: 36px;
	font-weight: 700;
}

.tc-page-head {
	padding: 58px 0 34px;
}

.tc-page-head h1 {
	max-width: 980px;
	font-size: clamp(38px, 5vw, 64px);
}

.tc-breadcrumbs {
	margin-bottom: 22px;
	color: var(--tc-muted);
	font-size: 13px;
}

.tc-breadcrumbs a {
	color: var(--tc-muted);
}

.tc-article {
	padding-bottom: 80px;
}

.tc-article__shell {
	display: grid;
	grid-template-columns: minmax(0, var(--tc-reading)) 280px;
	align-items: start;
	justify-content: center;
	gap: 54px;
}

.tc-article__content,
.tc-page-content {
	font-size: 18px;
}

.tc-article__content > * + *,
.tc-page-content > * + * {
	margin-top: 1.25em;
}

.tc-article__content h2,
.tc-page-content h2 {
	margin-top: 1.7em;
}

.tc-article__content h3,
.tc-page-content h3 {
	margin-top: 1.5em;
}

.tc-article__content p,
.tc-page-content p {
	margin-bottom: 0;
}

.tc-article__content ul,
.tc-article__content ol {
	padding-left: 1.25em;
}

.tc-article__content table {
	display: block;
	width: 100%;
	overflow-x: auto;
	border-collapse: collapse;
}

.tc-article__content th,
.tc-article__content td {
	min-width: 150px;
	padding: 13px 14px;
	border: 1px solid var(--tc-border);
	text-align: left;
}

.tc-article__content th {
	background: var(--tc-surface-soft);
}

.tc-note,
.tc-demo-notice {
	padding: 20px 22px;
	background: var(--tc-surface);
	border: 1px solid var(--tc-border);
	border-left: 5px solid var(--tc-caramel);
	border-radius: var(--tc-radius-sm);
}

.tc-demo-notice {
	margin: 22px 0 34px;
	background: #fff8e8;
	border-left-color: #c98220;
}

.tc-toc {
	position: sticky;
	top: 112px;
	padding: 24px;
	background: var(--tc-surface);
	border: 1px solid var(--tc-border);
	border-radius: var(--tc-radius);
}

.tc-toc h2 {
	margin-bottom: 16px;
	font-family: inherit;
	font-size: 15px;
	letter-spacing: 0;
}

.tc-toc ol {
	margin: 0;
	padding-left: 20px;
	color: var(--tc-muted);
	font-size: 14px;
}

.tc-toc li + li {
	margin-top: 9px;
}

.tc-marketplaces {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin: 32px 0;
	padding: 24px;
	background: var(--tc-surface-soft);
	border-radius: var(--tc-radius);
}

.tc-marketplaces h2,
.tc-marketplaces__title {
	flex-basis: 100%;
	margin: 0 0 8px;
	font-family: inherit;
	font-size: 18px;
	font-weight: 700;
	letter-spacing: 0;
}

.tc-marketplaces--first_screen {
	margin-top: 24px;
	background: #fff;
	border: 1px solid var(--tc-border);
}

.tc-marketplaces--after_winner {
	margin-bottom: 0;
	padding-inline: 0;
	background: transparent;
}

.tc-rating-intro,
.tc-methodology,
.tc-faq {
	margin: 28px 0;
	padding: 24px;
	background: var(--tc-surface-soft);
	border: 1px solid var(--tc-border);
	border-radius: var(--tc-radius);
}

.tc-rating-intro {
	border-top: 5px solid var(--tc-caramel);
}

.tc-eyebrow {
	margin-bottom: 10px;
	color: var(--tc-muted);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.tc-short-answer > :last-child,
.tc-rating-intro > :last-child,
.tc-methodology > :last-child,
.tc-faq > :last-child {
	margin-bottom: 0;
}

.tc-comparison-table {
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}

.tc-comparison-table table {
	min-width: 720px;
}

.tc-image-placeholder {
	border: 2px dashed var(--tc-border);
	color: var(--tc-muted);
	text-align: center;
}

.tc-fit-grid > .wp-block-column,
.tc-faq {
	border-left: 5px solid var(--tc-caramel);
}

.tc-fit-grid > .wp-block-column {
	padding: 22px;
	background: var(--tc-surface);
	border-radius: var(--tc-radius-sm);
}

.tc-fit-grid .tc-not-fit {
	border-left-color: #9b765f;
}

.tc-methodology {
	background: #fff;
}

.tc-sources {
	font-size: 15px;
}

.tc-faq h3 {
	margin-top: 0;
	font-family: inherit;
	font-size: 18px;
}

.tc-product {
	display: grid;
	grid-template-columns: 260px minmax(0, 1fr);
	gap: 28px;
	margin: 30px 0;
	padding: 28px;
	background: var(--tc-surface);
	border: 1px solid var(--tc-border);
	border-radius: var(--tc-radius);
}

.tc-product--winner {
	border: 2px solid var(--tc-caramel);
	box-shadow: var(--tc-shadow);
}

.tc-product__image {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 240px;
	padding: 18px;
	background: #fff;
	border-radius: var(--tc-radius-sm);
}

.tc-product__image img {
	max-height: 260px;
	object-fit: contain;
}

.tc-product h2,
.tc-product h3 {
	margin-top: 0;
}

.tc-pros-cons {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 18px;
}

.tc-pros-cons > div {
	padding: 18px;
	border-radius: var(--tc-radius-sm);
}

.tc-pros {
	background: #eef4eb;
}

.tc-cons {
	background: #f8eee9;
}

.tc-empty {
	padding: 36px;
	background: var(--tc-surface);
	border: 1px dashed var(--tc-border);
	border-radius: var(--tc-radius);
	color: var(--tc-muted);
	text-align: center;
}

.tc-pagination {
	margin-top: 38px;
}

.tc-pagination .nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.tc-pagination a,
.tc-pagination span {
	display: grid;
	place-items: center;
	min-width: 42px;
	height: 42px;
	padding: 0 12px;
	background: var(--tc-surface);
	border: 1px solid var(--tc-border);
	border-radius: 10px;
	text-decoration: none;
}

.tc-footer {
	padding: 58px 0 28px;
	background: var(--tc-chocolate);
	color: #d9c6b9;
}

.tc-footer__grid {
	display: grid;
	grid-template-columns: 1.2fr 1fr 1fr;
	gap: 48px;
}

.tc-footer h2,
.tc-footer h3 {
	color: #fffaf5;
	font-family: inherit;
	font-size: 15px;
	letter-spacing: 0;
}

.tc-footer ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.tc-footer li + li {
	margin-top: 9px;
}

.tc-footer a {
	color: #eadbcf;
}

.tc-footer__bottom {
	display: flex;
	justify-content: space-between;
	gap: 22px;
	margin-top: 44px;
	padding-top: 24px;
	border-top: 1px solid rgba(255, 255, 255, 0.14);
	font-size: 13px;
}

.alignwide {
	width: min(100%, 980px);
	max-width: 980px;
	margin-left: 50%;
	transform: translateX(-50%);
}

.alignfull {
	width: 100vw;
	max-width: none;
	margin-left: calc(50% - 50vw);
}

@media (max-width: 960px) {
	.tc-hero__grid,
	.tc-feature,
	.tc-article__shell {
		grid-template-columns: 1fr;
	}

	.tc-hero-card {
		min-height: 330px;
	}

	.tc-grid,
	.tc-grid--4 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.tc-toc {
		position: static;
		order: -1;
	}

	.tc-footer__grid {
		grid-template-columns: 1fr 1fr;
	}
}

@media (max-width: 760px) {
	body.admin-bar .tc-header {
		top: 46px;
	}

	.tc-container {
		width: min(calc(100% - 28px), var(--tc-content));
	}

	.tc-header__inner {
		min-height: 70px;
	}

	.tc-brand img {
		width: 190px;
		max-height: 52px;
	}

	.tc-menu-toggle {
		display: inline-grid;
		place-items: center;
	}

	.tc-nav {
		position: absolute;
		top: 100%;
		right: 14px;
		left: 14px;
		display: none;
		padding: 18px;
		background: var(--tc-surface);
		border: 1px solid var(--tc-border);
		border-radius: var(--tc-radius);
		box-shadow: var(--tc-shadow);
	}

	.tc-nav.is-open {
		display: block;
	}

	.tc-nav ul {
		align-items: stretch;
		flex-direction: column;
		gap: 0;
	}

	.tc-nav a {
		display: block;
		padding: 12px;
	}

	.tc-hero {
		padding-top: 48px;
	}

	.tc-search {
		flex-direction: column;
	}

	.tc-search button {
		width: 100%;
	}

	.tc-section {
		padding: 50px 0;
	}

	.tc-section__head {
		align-items: flex-start;
		flex-direction: column;
	}

	.tc-grid,
	.tc-grid--4,
	.tc-proof,
	.tc-product,
	.tc-pros-cons,
	.tc-fit-grid,
	.tc-footer__grid {
		grid-template-columns: 1fr;
	}

	.tc-marketplaces .tc-button {
		width: 100%;
		text-align: center;
	}

	.tc-product__image {
		min-height: 190px;
	}

	.tc-footer__bottom {
		flex-direction: column;
	}
}

@media (max-width: 380px) {
	body {
		font-size: 16px;
	}

	.tc-brand img {
		width: 164px;
	}

	.tc-hero-card,
	.tc-card,
	.tc-product {
		padding: 22px;
	}
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	* {
		transition-duration: 0.01ms !important;
		animation-duration: 0.01ms !important;
	}
}
