/*!
Theme Name: tehnika-servis
Theme URI: http://underscores.me/
Author: Underscores.me
Author URI: http://underscores.me/
Description: Кастомная тема для сервиса по ремонту бытовой техники
Version: 1.0.0
Tested up to: 5.4
Requires PHP: 5.6
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: tehnika-servis
Tags: custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready
*/

/*--------------------------------------------------------------
>>> TABLE OF CONTENTS:
----------------------------------------------------------------
# Переменные
# Общие стили
# Шапка
	- Полоса контактов
	- Основной хедер
	- Навигация
	- Гамбургер
# Слайдер
# Контент
# Подвал
# Утилиты
# Мобильная версия
--------------------------------------------------------------*/

/*--------------------------------------------------------------
# Переменные
--------------------------------------------------------------*/
:root {
	--color-accent: #2981ba;
	--color-accent-dark: #396887;
	--color-dark-1: #344754;
	--color-dark-2: #2A2F33;
	--color-dark-3: #282F33;
	--color-white: #ffffff;
	--color-text: #2A2F33;
	--color-text-muted: #6b7684;
	--color-border: #e5e9ed;
	--shadow-header: 0 2px 12px rgba(0, 0, 0, 0.08);
}

/*--------------------------------------------------------------
# Общие стили
--------------------------------------------------------------*/
html {
	box-sizing: border-box;
	line-height: 1.15;
	-webkit-text-size-adjust: 100%;
}

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

body {
	margin: 0;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
	font-size: 1rem;
	line-height: 1.5;
	color: var(--color-text);
	background: #fff;
}

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

h1, h2, h3, h4, h5, h6 {
	clear: both;
}

p {
	margin-bottom: 1.5em;
}

a {
	color: var(--color-accent);
	text-decoration: none;
	transition: color 0.2s;
}

a:hover,
a:focus {
	color: var(--color-accent-dark);
}

/*--------------------------------------------------------------
# Шапка
--------------------------------------------------------------*/

/* ===== ЗАКРЕПЛЁННАЯ ОБЁРТКА ===== */
.sticky-header-wrap {
	position: sticky;
	top: 0;
	z-index: 999;
	box-shadow: var(--shadow-header);
}

/* ===== ПОЛОСА КОНТАКТОВ (ПОД МЕНЮ) ===== */
.top-contact-bar {
	background: var(--color-dark-2);
	color: var(--color-white);
	font-size: 0.85rem;
}

.top-contact-inner {
	max-width: 1200px;
	margin: 0 auto;
	padding: 10px 20px;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 40px;
}

.top-contact-item {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: #d0d5dd;
	text-decoration: none;
	transition: color 0.2s;
}

.top-contact-item:hover {
	color: var(--color-accent);
}

.top-contact-icon {
	display: inline-flex;
	align-items: center;
	color: var(--color-accent);
}

.top-contact-icon svg {
	display: block;
}

/* ===== ОСНОВНОЙ ХЕДЕР ===== */
.site-header {
	background: var(--color-white);
	border-bottom: 1px solid var(--color-border);
}

.header-inner {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 20px;
	height: 80px;
	display: flex;
	align-items: center;
	gap: 24px;
}

/* Логотип */
.site-branding {
	flex-shrink: 0;
}

.custom-logo {
	max-height: 56px;
	width: auto;
	display: block;
}

.site-title-link {
	color: var(--color-text);
	font-size: 1.4rem;
	font-weight: 700;
	text-decoration: none;
}

/* ===== НАВИГАЦИЯ ===== */
.main-navigation {
	margin-left: auto;
}

.main-navigation ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	gap: 28px;
}

.main-navigation a {
	color: var(--color-text);
	text-decoration: none;
	font-size: 0.95rem;
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: 0.3px;
	padding: 6px 0;
	position: relative;
	transition: color 0.2s;
}

.main-navigation a::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 0;
	width: 0;
	height: 2px;
	background: var(--color-accent);
	transition: width 0.3s;
}

.main-navigation a:hover {
	color: var(--color-accent);
}

.main-navigation a:hover::after {
	width: 100%;
}

/* ===== ДЕЙСТВИЯ (CTA + ГАМБУРГЕР) ===== */
.header-actions {
	display: flex;
	align-items: center;
	gap: 16px;
	margin-left: 24px;
}

.header-cta {
	display: inline-block;
	padding: 12px 24px;
	background: var(--color-accent);
	color: var(--color-white);
	text-decoration: none;
	border-radius: 8px;
	font-weight: 600;
	font-size: 0.9rem;
	white-space: nowrap;
	transition: background 0.2s, transform 0.15s;
}

.header-cta:hover {
	background: var(--color-accent-dark);
	transform: translateY(-1px);
	color: var(--color-white);
}

/* ===== ГАМБУРГЕР ===== */
.menu-toggle {
	display: none;
	background: transparent;
	border: none;
	cursor: pointer;
	padding: 10px;
	width: 44px;
	height: 44px;
	position: relative;
	z-index: 1001;
}

.hamburger-line {
	display: block;
	width: 26px;
	height: 2px;
	background: var(--color-text);
	margin: 5px auto;
	transition: transform 0.3s, opacity 0.3s, background 0.3s;
	border-radius: 2px;
}

.menu-toggle.active .hamburger-line {
	background: var(--color-white);
}

.menu-toggle.active .hamburger-line:nth-child(1) {
	transform: translateY(7px) rotate(45deg);
}
.menu-toggle.active .hamburger-line:nth-child(2) {
	opacity: 0;
}
.menu-toggle.active .hamburger-line:nth-child(3) {
	transform: translateY(-7px) rotate(-45deg);
}

/* ===== ОВЕРЛЕЙ ===== */
.menu-overlay {
	display: none;
	position: fixed;
	inset: 0;
	background: rgba(42, 47, 51, 0.6);
	z-index: 998;
	opacity: 0;
	transition: opacity 0.3s;
}

.menu-overlay.active {
	display: block;
	opacity: 1;
}

/*--------------------------------------------------------------
# Слайдер
--------------------------------------------------------------*/
.hero-slider {
	position: relative;
	height: 500px;
	overflow: hidden;
}

.hero-swiper {
	width: 100%;
	height: 100%;
}

.hero-swiper .swiper-slide {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--color-dark-1);
	color: var(--color-white);
	text-align: center;
}

.hero-swiper .slide-content {
	position: relative;
	z-index: 2;
	max-width: 700px;
	padding: 0 20px;
}

.hero-swiper h1,
.hero-swiper h2 {
	font-size: 2.5rem;
	margin-bottom: 16px;
	color: var(--color-white);
}

.hero-swiper p {
	font-size: 1.1rem;
	margin-bottom: 24px;
	color: #d0d5dd;
}

.btn-primary {
	display: inline-block;
	padding: 14px 32px;
	background: var(--color-accent);
	color: var(--color-white);
	text-decoration: none;
	border-radius: 8px;
	font-weight: 600;
	transition: background 0.2s;
}

.btn-primary:hover {
	background: var(--color-accent-dark);
	color: var(--color-white);
}

.swiper-pagination-bullet-active {
	background: var(--color-accent) !important;
}

/*--------------------------------------------------------------
# Контент
--------------------------------------------------------------*/
.site-main {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 20px;
}

.post,
.page {
	margin: 0 0 1.5em;
}

.entry-content {
	margin: 1.5em 0 0;
}

/*--------------------------------------------------------------
# Подвал
--------------------------------------------------------------*/
.site-footer {
	background: var(--color-dark-2);
	color: #d0d5dd;
	padding: 40px 20px 20px;
	margin-top: 60px;
	text-align: center;
}

.site-footer a {
	color: var(--color-white);
}

.site-footer a:hover {
	color: var(--color-accent);
}

/*--------------------------------------------------------------
# Утилиты
--------------------------------------------------------------*/
.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute !important;
	width: 1px;
	word-wrap: normal !important;
}

.screen-reader-text:focus {
	background-color: #f1f1f1;
	border-radius: 3px;
	box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
	clip: auto !important;
	clip-path: none;
	color: #21759b;
	display: block;
	font-size: 0.875rem;
	font-weight: 700;
	height: auto;
	left: 5px;
	line-height: normal;
	padding: 15px 23px 14px;
	text-decoration: none;
	top: 5px;
	width: auto;
	z-index: 100000;
}

.alignleft {
	float: left;
	margin-right: 1.5em;
	margin-bottom: 1.5em;
}

.alignright {
	float: right;
	margin-left: 1.5em;
	margin-bottom: 1.5em;
}

.aligncenter {
	clear: both;
	display: block;
	margin-left: auto;
	margin-right: auto;
	margin-bottom: 1.5em;
}

/*--------------------------------------------------------------
# Мобильная версия
--------------------------------------------------------------*/
@media (max-width: 991px) {

	.top-contact-inner {
		gap: 20px;
		padding: 8px 16px;
		font-size: 0.75rem;
	}

	.header-inner {
		height: 68px;
		gap: 12px;
	}

	.custom-logo {
		max-height: 44px;
	}

	.main-navigation {
		position: fixed;
		top: 0;
		right: -100%;
		width: 300px;
		max-width: 85vw;
		height: 100vh;
		background: var(--color-dark-3);
		padding: 80px 30px 30px;
		z-index: 1000;
		transition: right 0.35s ease;
		overflow-y: auto;
		box-shadow: -4px 0 20px rgba(0, 0, 0, 0.3);
		margin-left: 0;
	}

	.main-navigation.active {
		right: 0;
	}

	.main-navigation ul {
		flex-direction: column;
		gap: 0;
	}

	.main-navigation li {
		border-bottom: 1px solid rgba(255, 255, 255, 0.08);
	}

	.main-navigation a {
		display: block;
		padding: 16px 0;
		font-size: 1rem;
		text-transform: none;
		color: var(--color-white);
	}

	.main-navigation a::after {
		display: none;
	}

	.main-navigation a:hover {
		color: var(--color-accent);
		padding-left: 8px;
	}

	.header-actions {
		margin-left: auto;
		gap: 10px;
	}

	.header-cta {
		padding: 10px 16px;
		font-size: 0.8rem;
	}

	.menu-toggle {
		display: block;
	}

	.hero-slider {
		height: 400px;
	}

	.hero-swiper h1,
	.hero-swiper h2 {
		font-size: 1.6rem;
	}
}

@media (max-width: 480px) {

	.top-contact-inner {
		flex-direction: column;
		gap: 4px;
		text-align: center;
	}

	.header-cta {
		display: none;
	}
}