/*
Theme Name: ГНБ Вектор
Template: generatepress
Description: Дочерняя тема GeneratePress для gnb-vektor.ru. Повторяет прежний вид сайта (тема Yoko).
Version: 1.3.0
Text Domain: gnb-vektor
*/

:root {
	--gnb-accent: #009bc2;
	--gnb-bg: #ececec;
	--gnb-box: #ffefd5;
	--gnb-red: #ff2400;
	--gnb-blue: #1e90ff;
}

body {
	background: var(--gnb-bg);
	font-family: arial, sans-serif;
	color: #000;
	font-size: 16px;
}
a, a:visited { color: var(--gnb-accent); }
a:hover { color: #999; }

/* Белый лист по центру, как раньше */
.site.grid-container,
.site-header .inside-header,
.main-navigation .inside-navigation,
.gnb-banner,
.site-footer .inside-site-info { max-width: 1060px; }
body .site { margin-top: 12px; background: #fff; }
.separate-containers .inside-article,
.separate-containers .widget,
.one-container .container { background: #fff; }

/* Один белый лист 1060 px по центру, как в Yoko: шапка, меню, баннер и колонки */
body .site-header, body .main-navigation { background-color: transparent !important; }
body .main-navigation .inside-navigation, body .main-navigation ul ul { background-color: #fff; }
body .site-header .inside-header.grid-container,
body .main-navigation .inside-navigation.grid-container,
body .gnb-banner,
body .site.grid-container {
	max-width: 1060px !important;
	width: 100%;
	box-sizing: border-box;
	margin-left: auto;
	margin-right: auto;
	background: #fff;
}
.site-header { margin-top: 12px; }
body .site { margin-top: 0; }

/* Шапка */
body .site-header .gnb-header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 20px;
	padding: 10px 30px 15px;
	min-height: 190px;
}
body .site-header .gnb-header::before, body .site-header .gnb-header::after { display: none; }
.gnb-brand { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; text-align: left; margin: 0 !important; }
.gnb-brand img { max-width: 100%; height: auto; display: block; }
.gnb-tagline { font-size: 17px; color: #000; }
.gnb-contact {
	background: var(--gnb-box);
	width: 310px;
	min-height: 110px;
	text-align: center;
	padding: 8px 0 10px;
	flex-shrink: 0;
}
.gnb-phone { font-size: 32px; line-height: 1.2; color: #000; text-decoration: none; display: block; }
.gnb-phone:visited { color: #000; }
.gnb-hours { font-size: 15px; margin-bottom: 12px; }
.gnb-buttons { display: flex; justify-content: center; gap: 5px; }

/* Меню */
.main-navigation, .main-navigation ul ul { background: #fff; }
.main-navigation .inside-navigation { padding: 0 30px; justify-content: center; }
.main-navigation .main-nav ul li a {
	color: var(--gnb-accent);
	font-size: 12px;
	text-transform: uppercase;
	padding-left: 10px;
	padding-right: 10px;
	line-height: 40px;
	border-right: 1px solid #f9f9f9;
}
.main-navigation .main-nav ul li:hover > a,
.main-navigation .main-nav ul li.current-menu-item > a { background: #f0f0f0; color: #999; }
.main-navigation .main-nav ul ul li a { background: #f9f9f9; text-transform: none; line-height: 1.4; }
.main-navigation .menu-toggle { color: var(--gnb-accent); }

/* Баннер под меню */
.gnb-banner { margin-top: 0; padding: 12px 30px 0; }
.gnb-banner img { width: 100%; height: auto; display: block; }

/* Три колонки: услуги — текст — заявка */
body .site-content { border-top: 1px solid #ddd; border-bottom: 1px solid #ddd; margin: 4px 30px 0; padding: 40px 0 !important; }
.both-sidebars .site-content { display: flex; justify-content: space-between; align-items: flex-start; }
.both-sidebars .site-content .content-area,
.both-sidebars .site-content .is-left-sidebar,
.both-sidebars .site-content .is-right-sidebar { float: none; left: auto !important; right: auto !important; }
.both-sidebars .site-content .is-left-sidebar { order: 1; flex: 0 0 189px; width: 189px; background: #fefefe; }
.both-sidebars .site-content .content-area { order: 2; flex: 0 0 575px; width: 575px; }
.both-sidebars .site-content .is-right-sidebar { order: 3; flex: 0 0 200px; width: 200px; }
.one-container.both-sidebars .site-main, .site-main { margin: 0 !important; }
.inside-article, .sidebar .widget { padding: 0 !important; }


.sidebar .widget { margin-bottom: 30px; font-size: 12.8px; line-height: 1.6; }
.sidebar .widget .widget-title {
	font-size: 12.8px;
	font-weight: bold;
	text-transform: uppercase;
	letter-spacing: .1em;
	color: #000;
	margin-bottom: 15px;
}
.sidebar .widget ul li { padding: 0 0 7px; margin: 0; }
.entry-title, .page-title { color: var(--gnb-accent); font-size: 22.8px; font-weight: bold; line-height: 1.3; }
.entry-content { font-size: 15.2px; line-height: 1.6; }
.entry-content h1 { font-size: 1.4em; line-height: 1.4; font-weight: bold; margin: 26px 0 12px; }
.entry-content h2 { font-size: 1.3em; line-height: 1.4; font-weight: bold; margin: 26px 0 12px; }
.entry-content h3 { font-size: 1.2em; line-height: 1.4; font-weight: bold; margin: 26px 0 12px; }
.entry-content h4 { font-size: 1.1em; line-height: 1.4; font-weight: bold; margin: 22px 0 12px; }
.entry-content h5, .entry-content h6 { font-size: 1em; font-weight: bold; margin: 20px 0 10px; }
.entry-content p { margin: 0 0 20px; }
.entry-header { margin-bottom: 20px; }
.entry-content img { max-width: 100%; height: auto; }

/* Подвал */
.site-footer, .site-info { background: #fff; color: #000; }
.gnb-footer { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; padding: 20px 30px; flex-wrap: wrap; }
.gnb-copy { font-size: 13px; }
.gnb-footer-phone { background: var(--gnb-box); width: 250px; padding: 6px 0; text-align: center; }
.gnb-footer-phone:hover { background: #ffa500; }
.gnb-footer-phone a { font-size: 24px; color: #000; text-decoration: none; }
.gnb-counters { width: 100%; display: flex; gap: 8px; align-items: center; }
.gnb-counters img { display: block; }

/* Телефоны и планшеты */
@media (max-width: 1060px) {
	.both-sidebars .site-content { flex-direction: column; }
	.both-sidebars .site-content .content-area,
	.both-sidebars .site-content .is-left-sidebar,
	.both-sidebars .site-content .is-right-sidebar { flex: 1 1 auto; width: 100%; }
	.both-sidebars .site-content .content-area { order: 1; }
	.both-sidebars .site-content .is-left-sidebar { order: 2; }
}
@media (max-width: 768px) {
	body .site-header .gnb-header { flex-direction: column; align-items: center; padding: 10px 16px; text-align: center; }
	.gnb-contact { width: 100%; max-width: 360px; }
	.gnb-phone { font-size: 26px; }
	.gnb-banner { padding: 0 16px; }
	.site-content { margin: 4px 16px 0; padding: 24px 0; }
	.inside-article, .sidebar .widget { padding: 0; }
	.gnb-footer { padding: 16px; justify-content: center; text-align: center; }
	.gnb-counters { justify-content: center; }
}

/* Превью видео YouTube */
.gnb-yt { position: relative; display: block; width: 100%; max-width: 600px; aspect-ratio: 4 / 3; padding: 0; border: 0; background: #000; cursor: pointer; overflow: hidden; }
.gnb-yt img { width: 100%; height: 100%; object-fit: cover; display: block; opacity: .9; }
.gnb-yt:hover img { opacity: 1; }
.gnb-yt__play { position: absolute; left: 50%; top: 50%; width: 68px; height: 48px; margin: -24px 0 0 -34px; background: #f00; border-radius: 12px; }
.gnb-yt__play::after { content: ""; position: absolute; left: 27px; top: 14px; border-style: solid; border-width: 10px 0 10px 17px; border-color: transparent transparent transparent #fff; }
.gnb-yt-frame { width: 100%; max-width: 600px; aspect-ratio: 4 / 3; border: 0; display: block; }


/* ---------- Кнопки ---------- */
:root { --gnb-btn: #e53935; --gnb-btn-hover: #c62828; }
.gnb-btn,
.wpcf7 .wpcf7-submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 38px;
	padding: 8px 18px;
	border: 0;
	border-radius: 4px;
	background: var(--gnb-btn);
	color: #fff !important;
	font: 600 14px/1.2 arial, sans-serif;
	text-decoration: none;
	cursor: pointer;
	transition: background-color .15s;
}
.gnb-btn:hover, .gnb-btn:focus,
.wpcf7 .wpcf7-submit:hover, .wpcf7 .wpcf7-submit:focus { background: var(--gnb-btn-hover); color: #fff !important; }
.gnb-buttons .gnb-btn { min-width: 200px; }

/* Телефон в шапке — заметная ссылка */
.gnb-phone { text-decoration: none; }
.gnb-phone:hover { color: var(--gnb-btn-hover); }

/* ---------- Поля форм ---------- */
.wpcf7 input[type=text], .wpcf7 input[type=email], .wpcf7 input[type=tel], .wpcf7 select, .wpcf7 textarea {
	width: 100%;
	height: 36px;
	padding: 6px 10px;
	border: 1px solid #ccc;
	border-radius: 4px;
	background: #fff;
	font: 14px/1.3 arial, sans-serif;
	color: #000;
	box-sizing: border-box;
}
.wpcf7 textarea { height: auto; min-height: 100px; }
.wpcf7 input:focus, .wpcf7 select:focus, .wpcf7 textarea:focus { border-color: var(--gnb-accent); outline: none; box-shadow: 0 0 0 2px rgba(0,155,194,.15); }
.wpcf7 label { display: block; font-size: 13px; }
.wpcf7 p { margin: 0 0 10px; }

/* Форма в правой колонке */
.sidebar .wpcf7 input[type=text], .sidebar .wpcf7 input[type=email], .sidebar .wpcf7 input[type=tel], .sidebar .wpcf7 select { height: 32px; font-size: 13px; padding: 4px 8px; }
.sidebar .wpcf7 .wpcf7-submit { width: 100%; }

/* ---------- Окно «Заказать звонок» ---------- */
.gnb-dialog { border: 0; border-radius: 8px; padding: 28px 24px 20px; width: 92%; max-width: 360px; box-shadow: 0 12px 40px rgba(0,0,0,.25); }
.gnb-dialog::backdrop { background: rgba(0,0,0,.5); }
.gnb-dialog__close,
.gnb-dialog__close:hover,
.gnb-dialog__close:focus { position: absolute; top: 8px; right: 10px; width: 32px; height: 32px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: #888; font-size: 26px; line-height: 32px; cursor: pointer; box-shadow: none; }
.gnb-dialog__close:hover { background: #f2f2f2; color: #333; }
.gnb-dialog__title { font-size: 20px; font-weight: bold; color: #000; margin-bottom: 4px; }
.gnb-dialog__text { font-size: 14px; color: #555; margin-bottom: 16px; }
.gnb-dialog .wpcf7 input[type=text], .gnb-dialog .wpcf7 input[type=tel] { height: 42px; font-size: 16px; }
.gnb-dialog .wpcf7 .wpcf7-submit { width: 100%; min-height: 44px; font-size: 15px; margin-top: 4px; }
.gnb-dialog .wpcf7-response-output { margin: 12px 0 0 !important; font-size: 13px; }

/* Блок «Полезные статьи» в подвале */
.site-footer .footer-widgets { background: #fff; max-width: 1060px; margin: 0 auto; border-top: 1px solid #ddd; }
.site-footer .footer-widgets .inside-footer-widgets { padding: 24px 30px 8px; }
.site-footer .footer-widgets .widget-title { font-size: 12.8px; font-weight: bold; text-transform: uppercase; letter-spacing: .1em; color: #000; margin-bottom: 12px; }
.site-footer .footer-widgets .menu { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 40px; }
.site-footer .footer-widgets .menu li { margin: 0 0 8px; font-size: 14px; break-inside: avoid; }
@media (max-width: 768px) { .site-footer .footer-widgets .menu { columns: 1; } .site-footer .footer-widgets .inside-footer-widgets { padding: 16px; } }
